@univerjs-pro/sheets-pivot 0.12.3-nightly.202512060617 → 0.12.4

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 (55) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ja-JP.js +1 -1
  9. package/lib/cjs/locale/ko-KR.js +1 -1
  10. package/lib/cjs/locale/ru-RU.js +1 -1
  11. package/lib/cjs/locale/vi-VN.js +1 -1
  12. package/lib/cjs/locale/zh-CN.js +1 -1
  13. package/lib/cjs/locale/zh-TW.js +1 -1
  14. package/lib/es/facade.js +1 -1
  15. package/lib/es/index.js +1 -1
  16. package/lib/es/locale/ca-ES.js +1 -1
  17. package/lib/es/locale/en-US.js +1 -1
  18. package/lib/es/locale/es-ES.js +1 -1
  19. package/lib/es/locale/fa-IR.js +1 -1
  20. package/lib/es/locale/fr-FR.js +1 -1
  21. package/lib/es/locale/ja-JP.js +1 -1
  22. package/lib/es/locale/ko-KR.js +1 -1
  23. package/lib/es/locale/ru-RU.js +1 -1
  24. package/lib/es/locale/vi-VN.js +1 -1
  25. package/lib/es/locale/zh-CN.js +1 -1
  26. package/lib/es/locale/zh-TW.js +1 -1
  27. package/lib/facade.js +1 -1
  28. package/lib/index.js +1 -1
  29. package/lib/locale/ca-ES.js +1 -1
  30. package/lib/locale/en-US.js +1 -1
  31. package/lib/locale/es-ES.js +1 -1
  32. package/lib/locale/fa-IR.js +1 -1
  33. package/lib/locale/fr-FR.js +1 -1
  34. package/lib/locale/ja-JP.js +1 -1
  35. package/lib/locale/ko-KR.js +1 -1
  36. package/lib/locale/ru-RU.js +1 -1
  37. package/lib/locale/vi-VN.js +1 -1
  38. package/lib/locale/zh-CN.js +1 -1
  39. package/lib/locale/zh-TW.js +1 -1
  40. package/lib/types/common/const.d.ts +42 -42
  41. package/lib/types/controllers/const.d.ts +1 -1
  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 -1
  45. package/lib/umd/locale/en-US.js +1 -1
  46. package/lib/umd/locale/es-ES.js +1 -1
  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/ja-JP.js +1 -1
  50. package/lib/umd/locale/ko-KR.js +1 -1
  51. package/lib/umd/locale/ru-RU.js +1 -1
  52. package/lib/umd/locale/vi-VN.js +1 -1
  53. package/lib/umd/locale/zh-CN.js +1 -1
  54. package/lib/umd/locale/zh-TW.js +1 -1
  55. package/package.json +10 -10
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x5cdc89=_0x52a0;(function(_0x21a16c,_0x2bc310){const _0x425705=_0x52a0,_0x42147f=_0x21a16c();while(!![]){try{const _0x4ff6f4=-parseInt(_0x425705(0x3a5))/0x1*(parseInt(_0x425705(0x2ee))/0x2)+parseInt(_0x425705(0x2f4))/0x3*(parseInt(_0x425705(0x267))/0x4)+-parseInt(_0x425705(0x2af))/0x5*(-parseInt(_0x425705(0x2df))/0x6)+-parseInt(_0x425705(0x3b8))/0x7+parseInt(_0x425705(0x2c9))/0x8*(-parseInt(_0x425705(0x3ca))/0x9)+parseInt(_0x425705(0x21c))/0xa*(-parseInt(_0x425705(0x247))/0xb)+-parseInt(_0x425705(0x35f))/0xc*(-parseInt(_0x425705(0x3f3))/0xd);if(_0x4ff6f4===_0x2bc310)break;else _0x42147f['push'](_0x42147f['shift']());}catch(_0x583895){_0x42147f['push'](_0x42147f['shift']());}}}(_0x1164,0x862de));var rn=Object[_0x5cdc89(0x21a)],ln=(_0x12742e,_0x356af3,_0x2bc817)=>_0x356af3 in _0x12742e?rn(_0x12742e,_0x356af3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2bc817}):_0x12742e[_0x356af3]=_0x2bc817,N=(_0x56e4bf,_0x30ac24,_0x245aee)=>ln(_0x56e4bf,typeof _0x30ac24!=_0x5cdc89(0x33b)?_0x30ac24+'':_0x30ac24,_0x245aee);import{PivotCellStyleTypeEnum as _0x3dda21,PivotViewCellValueTypeEnum as _0xa59d99,isPrefixValue as _0x2988ce,isErrorValue as _0x24e384,PivotErrorTypeEnum as _0x20e271,PivotDateGroupFieldDateTypeEnum as _0x344f66,DataFieldManager as _0x2bab21,FieldsCollection as _0x138982,isDateValue as _0x1e4d84,DataField as _0x2bdcb3,generateHexNumber as _0x4251b6,isBaseGroupField as _0x51bc42,PivotTable as _0xb58591,PivotSubtotalTypeEnum as _0x47fce5,PivotTableFiledAreaEnum as _0x33152d,excelDateToUnixMilliseconds as _0x729f53,PivotDataFieldTypeEnum as _0x5457fc,DateGroupField as _0x3eb03e,createValueField as _0x5602b6,createLabelField as _0x868abb,PivotTableChangeTypeEnum as _0x3c53c6,PivotView as _0x186364,GlobalConfig as _0x2ca6e1,isDateGroupFieldJSON as _0x5e9fe2,PivotCallbackEnum as _0x245665,PivotFilterTypeEnum as _0x18216e,getAutoDisplayName as _0x1bf0cf,PivotDataFieldDataTypeEnum as _0x4a9f24,PivotTableValuePositionEnum as _0x31970c,isDateGroupField as _0x27912c}from'@univerjs-pro/engine-pivot';import{cellToRange as _0x36796a,ObjectMatrix as _0x499f9a,IUniverInstanceService as _0x2db36d,UniverInstanceType as _0x3220f9,CellValueType as _0x591d7f,numfmt as _0x2183c5,LocaleService as _0xfc5594,createAsyncInterceptorKey as _0x3fd5c3,createInterceptorKey as _0x122ba0,CommandType as _0x381691,Inject as _0x582676,ICommandService as _0x3ed3f2,Disposable as _0x47e12b,RANGE_TYPE as _0x119a4f,numberToABC as _0x565e8d,Injector as _0x126161,LifecycleService as _0x49cc0d,IResourceManagerService as _0x19443f,Rectangle as _0x5548d4,IConfigService as _0x2b55f2,Tools as _0x34d097,AsyncInterceptorManager as _0x41c8ad,InterceptorManager as _0x1aea3b,InterceptorEffectEnum as _0x3638e6,IUndoRedoService as _0x4d5faf,sequenceExecute as _0x1fffdd,CustomCommandExecutionError as _0x124b3c,mergeWorksheetSnapshotWithDefault as _0x359610,generateRandomId as _0x47afac,DEFAULT_WORKSHEET_COLUMN_COUNT as _0xe6da8f,DEFAULT_WORKSHEET_ROW_COUNT as _0x31f891,DisposableCollection as _0x1bb2be,Range as _0x352f34,DependentOn as _0x312489,Optional as _0x5db1f1,Plugin as _0xc28a30,merge as _0x5268d3}from'@univerjs/core';import{ErrorType as _0x42e13e,serializeRangeWithSpreadsheet as _0x1f93b1,IFeatureCalculationManagerService as _0x5317ba,GlobalComputingStatusService as _0x55f8f9,IActiveDirtyManagerService as _0x1feade}from'@univerjs/engine-formula';import{generateNullCell as _0x3a6314,SetRangeValuesUndoMutationFactory as _0x458c49,SetRangeValuesMutation as _0x3ffa76,getSheetCommandTarget as _0xa32eb7,InsertRowMutation as _0x28a6b8,RemoveRowMutation as _0x50bd07,InsertColMutation as _0x2608da,RemoveColMutation as _0x306d54,IExclusiveRangeService as _0x3d2d75,SheetInterceptorService as _0x1b62ed,INTERCEPTOR_POINT as _0x201f8c,InsertSheetCommand as _0x79947c,InsertSheetUndoMutationFactory as _0x5c921,RemoveSheetMutation as _0x1c3c36,InsertSheetMutation as _0x545fe4,MoveRangeMutation as _0x3ad3f7,SheetsSelectionsService as _0x2654fb,ClearSelectionContentCommand as _0x550f1f,ClearSelectionAllCommand as _0x473a1e,SetWorksheetColWidthMutation as _0x981657,RefRangeService as _0x5ee8a2,SetWorksheetActiveOperation as _0x3efd5b,MoveRangeCommand as _0x25c3dd,RemoveSheetCommand as _0x49c874}from'@univerjs/sheets';import{Subject as _0x24677c,BehaviorSubject as _0x1e0d8a}from'rxjs';import{LS_CONFIG_KEY as _0x9e407d,unshiftString as _0x536af4,isFeatureAuthorizedWithinTime as _0x29944a,getSheetFeatureLimit as _0x1fab5e,ReleaseType as _0x575439,UniverLicensePlugin as _0x19b89b}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x59c483,RemoveSheetsFilterMutation as _0x47b422}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x1a8751}from'@univerjs/rpc';import{getFontStyleString as _0x442ece,FontCache as _0x173467}from'@univerjs/engine-render';const Lo=Number[_0x5cdc89(0x3bf)](0x6933cab5),li=0x10,so=0x1,ao=_0x5cdc89(0x1b0),It=0x1,ci='rgb(240,241,243)',di=_0x5cdc89(0x1f7),wt=_0x5cdc89(0x240),ui=_0x5cdc89(0x223),fi='#f4f4f5',gi=_0x5cdc89(0x1e8),vi='#1d32e9',hi=_0x5cdc89(0x3dc),pi=_0x5cdc89(0x34b),mi='#1d32e9',Ii=_0x5cdc89(0x3dc),Ci=_0x5cdc89(0x428),bi=0xe,Si=0x6;var Bo=(_0x31578e=>(_0x31578e[_0x5cdc89(0x2c4)]=_0x5cdc89(0x1bd),_0x31578e[_0x5cdc89(0x29f)]=_0x5cdc89(0x34d),_0x31578e))(Bo||{});const Go={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Pi=0x1e,je={'b':{'s':0x1,'cl':{'rgb':wt}},'l':{'s':0x1,'cl':{'rgb':wt}},'r':{'s':0x1,'cl':{'rgb':wt}},'t':{'s':0x1,'cl':{'rgb':wt}}},oe={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},R={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':je,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':mi},'bd':null,'cl':{'rgb':Ii},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':je,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':je,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':je,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':je,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':vi},'cl':{'rgb':hi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':je,'vt':0x2}};function Ti(_0x4d87d7,_0x3b6c40,_0x341c7e){const _0x166e76=_0x5cdc89,_0x2bd7a5=_0x4d87d7[_0x166e76(0x3ac)](_0xfc5594),_0x30ce29=_0x341c7e['split']('_');switch(_0x3b6c40){case _0x344f66[_0x166e76(0x26e)]:return _0x2bd7a5['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x30ce29);case _0x344f66[_0x166e76(0x278)]:return _0x2bd7a5['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x30ce29);case _0x344f66[_0x166e76(0x25b)]:return _0x2bd7a5['t'](_0x166e76(0x3fa),..._0x30ce29);case _0x344f66[_0x166e76(0x38c)]:return _0x2bd7a5['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x30ce29);case _0x344f66['Date']:return _0x2bd7a5['t'](_0x166e76(0x3c2),..._0x30ce29);case _0x344f66['Month']:return _0x2bd7a5['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x30ce29);case _0x344f66[_0x166e76(0x32f)]:return _0x2bd7a5['t'](_0x166e76(0x38e),..._0x30ce29);case _0x344f66[_0x166e76(0x3aa)]:return _0x2bd7a5['t'](_0x166e76(0x295),..._0x30ce29);case _0x344f66[_0x166e76(0x359)]:return _0x2bd7a5['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x30ce29);case _0x344f66[_0x166e76(0x376)]:return _0x2bd7a5['t'](_0x166e76(0x318),..._0x30ce29);}return'';}const tt=(_0x1d1732,_0x270005,_0x241457,_0x60bc7a)=>{const _0x2876c4=_0x5cdc89;let _0x2bd835;const _0x1c331b=_0x1d1732['get'](_0x2db36d)[_0x2876c4(0x3b3)](_0x3220f9['UNIVER_SHEET']);if(!_0x1c331b)return null;const _0x2aaa6e=_0x1c331b[_0x2876c4(0x21f)]();let _0x41191b;if(_0x241457&&(_0x41191b=_0x2aaa6e[_0x2876c4(0x284)](_0x241457)),_0x270005!=null&&_0x270005['v']||(_0x270005==null?void 0x0:_0x270005['v'])===0x0){_0x2bd835||(_0x2bd835={});const _0x3a5059=$o(_0x270005['v']);typeof _0x3a5059=='number'?_0x2bd835['t']=_0x591d7f[_0x2876c4(0x1e5)]:typeof _0x3a5059=='string'&&(_0x2bd835['t']=_0x591d7f[_0x2876c4(0x218)]),_0x2bd835['v']=_0x3a5059;}if((_0x270005!=null&&_0x270005['i']||(_0x270005==null?void 0x0:_0x270005['i'])===0x0)&&(_0x2bd835||(_0x2bd835={}),_0x2bd835['fi']=_0x270005['i']),_0x270005!=null&&_0x270005['s']&&(_0x2bd835||(_0x2bd835={}),_0x2bd835[_0x2876c4(0x20e)]=_0x270005['s']),_0x241457&&(_0x2bd835||(_0x2bd835={}),_0x2bd835['s']=_0x41191b),_0x60bc7a&&_0x2bd835!=null&&_0x2bd835['v']&&_0x2bd835[_0x2876c4(0x20e)]!==_0x3dda21[_0x2876c4(0x2da)]&&_0x2bd835[_0x2876c4(0x20e)]!==_0x3dda21[_0x2876c4(0x407)]){const _0x36c3f1=String(_0x2bd835['v']),{dateType:_0x482f0a}=_0x60bc7a;_0x2bd835['v']=Ti(_0x1d1732,_0x482f0a,_0x36c3f1),_0x2bd835['t']=_0x591d7f[_0x2876c4(0x218)];}return _0x2bd835;},yi=(_0x3d6d6d,_0xac6a87,_0x436f8b,_0x1d897b)=>{const _0x5dc430=_0x5cdc89;var _0x1a3ca0,_0x41ab98,_0x57a69e,_0x5c0475,_0x58ebce,_0x129bca,_0x1d1bb4,_0x365156,_0x53dd7e,_0x2bd838,_0x60b74a,_0x2419cc,_0x48a8d6,_0x5cae2c;const _0x25c048=_0x436f8b[_0x5dc430(0x28a)],{cornerView:_0x252f05,rowView:_0x2c3bec,colView:_0x2bc800,dataView:_0x6122ed,pageView:_0x1b4efc,formatMap:_0x3672fb,groupInfo:_0x2f9916}=_0xac6a87,{row:_0x176233,col:_0x379648}=_0x25c048,_0x395c0f=new _0x499f9a(),_0x2cbbb1={},_0x33b961={},_0x3b28cf={},_0x33f9ce={},_0x3a842d={};let _0x2e9dda=_0x176233,_0x17b52c=_0x379648;Object[_0x5dc430(0x329)](_0x1b4efc[_0x5dc430(0x1d7)])[_0x5dc430(0x40a)](_0x5a4db5=>{const _0x35fb63=_0x5dc430;Object[_0x35fb63(0x329)](_0x1b4efc[_0x35fb63(0x1d7)][Number(_0x5a4db5)])['forEach'](_0x55723b=>{const _0x46e274=_0x35fb63,_0x116fa1={..._0x1b4efc['data'][Number(_0x5a4db5)][Number(_0x55723b)]};_0x395c0f[_0x46e274(0x284)](Number(_0x5a4db5)+_0x2e9dda,Number(_0x55723b)+_0x17b52c,tt(_0x3d6d6d,_0x116fa1,fe[_0x46e274(0x352)]));});});const _0x4587ac=Object[_0x5dc430(0x329)](_0x1b4efc[_0x5dc430(0x1d7)])[_0x5dc430(0x36b)];_0x2e9dda+=_0x4587ac+(_0x4587ac?It:0x0);const _0x415de0=_0x252f05[_0x5dc430(0x3bc)](),_0x463e6f=_0x252f05[_0x5dc430(0x3e4)]();for(let _0x3bc19a=0x0;_0x3bc19a<_0x415de0;_0x3bc19a++)for(let _0x5bf40c=0x0;_0x5bf40c<_0x463e6f;_0x5bf40c++){const _0x44a105={...(_0x41ab98=(_0x1a3ca0=_0x252f05[_0x5dc430(0x1d7)])==null?void 0x0:_0x1a3ca0[_0x3bc19a])==null?void 0x0:_0x41ab98[_0x5bf40c]};_0x44a105&&((_0x57a69e=_0x2c3bec['headerMap'][_0x5bf40c])!=null&&_0x57a69e[_0x5dc430(0x386)])&&_0x5bf40c===_0x463e6f-0x1&&_0x3bc19a===_0x415de0-0x1&&(_0x44a105['v']=''+_0x1d897b[_0x5dc430(0x1c2)]),_0x395c0f['setValue'](_0x3bc19a+_0x2e9dda,_0x5bf40c+_0x17b52c,tt(_0x3d6d6d,_0x44a105,fe[_0x5dc430(0x229)]));}for(let _0x501da7=0x0;_0x501da7<_0x252f05['info'][_0x5dc430(0x36b)];_0x501da7++)_0x252f05[_0x5dc430(0x1d2)][_0x501da7]&&(_0x3b28cf[''+(_0x501da7+_0x17b52c)]=_0x252f05['info'][_0x501da7]);_0x17b52c+=_0x463e6f;const _0x274c4a=_0x2bc800['headerMap'],_0x43b826=_0x2bc800['getLastRow']()>=0x0?_0x2bc800[_0x5dc430(0x246)]()+0x1:0x0,_0x4db219=_0x2bc800[_0x5dc430(0x306)]()>=0x0?_0x2bc800[_0x5dc430(0x306)]()+0x1:0x0;for(let _0x51fd50=0x0;_0x51fd50<_0x4db219;_0x51fd50++){for(let _0x25ba28=0x0;_0x25ba28<_0x43b826;_0x25ba28++){const _0x47d257={...(_0x58ebce=(_0x5c0475=_0x2bc800[_0x5dc430(0x1d7)])==null?void 0x0:_0x5c0475[_0x25ba28])==null?void 0x0:_0x58ebce[_0x51fd50]},_0x49f5df=(_0x129bca=_0x274c4a[_0x25ba28])==null?void 0x0:_0x129bca[_0x5dc430(0x1b9)],_0x5e9176=_0x3672fb[_0x49f5df],_0x193d8e=_0x2f9916[_0x49f5df];_0x47d257&&(_0x47d257['v']=ht(_0x47d257,_0x25ba28===0x0&&((_0x1d1bb4=_0x2bc800['getHeaderMapItem'](_0x51fd50+0x1))==null?void 0x0:_0x1d1bb4['isValue']),_0x5e9176,_0x1d897b));let _0x20163b;_0x5e9176?_0x20163b={...fe[_0x5dc430(0x2ef)],'n':{'pattern':_0x5e9176}}:_0x20163b={...fe[_0x5dc430(0x2ef)]},_0x395c0f[_0x5dc430(0x284)](_0x25ba28+_0x2e9dda,_0x51fd50+_0x17b52c,tt(_0x3d6d6d,_0x47d257,_0x20163b,_0x193d8e));}_0x2bc800['info'][_0x51fd50]&&(_0x33b961[''+(_0x51fd50+_0x17b52c)]=_0x2bc800[_0x5dc430(0x1d2)][_0x51fd50]),_0x2bc800['headerMap'][_0x51fd50+0x1]&&(_0x3a842d[''+(_0x51fd50+_0x2e9dda+0x1)]=_0x2bc800[_0x5dc430(0x24e)][_0x51fd50+0x1]);}_0x2e9dda+=_0x415de0;const _0x324aab=_0x2c3bec['headerMap'],_0x54ee15=_0x2c3bec['getLastRow']()>=0x0?_0x2c3bec[_0x5dc430(0x246)]()+0x1:0x0,_0x5afe42=_0x2c3bec['getLastCol']()>=0x0?_0x2c3bec[_0x5dc430(0x306)]()+0x1:0x0;for(let _0x36484b=0x0;_0x36484b<_0x54ee15;_0x36484b++){for(let _0x56d32b=0x0;_0x56d32b<_0x5afe42;_0x56d32b++){const _0xc7aa8c={...(_0x53dd7e=(_0x365156=_0x2c3bec[_0x5dc430(0x1d7)])==null?void 0x0:_0x365156[_0x36484b])==null?void 0x0:_0x53dd7e[_0x56d32b]},_0x3171a0=(_0x2bd838=_0x324aab[_0x56d32b])==null?void 0x0:_0x2bd838[_0x5dc430(0x1b9)],_0x3976e8=_0x3672fb[_0x3171a0],_0x403a96=_0x2f9916[_0x3171a0];_0xc7aa8c&&(_0xc7aa8c['v']=ht(_0xc7aa8c,!0x1,_0x3976e8,_0x1d897b));let _0x2b614d;_0x2c3bec[_0x5dc430(0x1d2)][_0x36484b][_0x5dc430(0x268)]===_0x2c3bec[_0x5dc430(0x3e4)]()?_0x2b614d=fe[_0x5dc430(0x349)]:_0x2c3bec['info'][_0x36484b][_0x5dc430(0x28e)]?_0x2b614d=_0x2c3bec[_0x5dc430(0x1d2)][_0x36484b][_0x5dc430(0x268)]===0x0?fe[_0x5dc430(0x2e0)]:fe[_0x5dc430(0x29e)]:_0x2b614d=fe[_0x5dc430(0x41b)],_0x3976e8&&(_0x2b614d={..._0x2b614d,'n':{'pattern':_0x3976e8}}),_0x395c0f['setValue'](_0x36484b+_0x2e9dda,_0x56d32b+_0x379648,tt(_0x3d6d6d,_0xc7aa8c,_0x2b614d,_0x403a96));}_0x2c3bec[_0x5dc430(0x1d2)][_0x36484b]&&(_0x2cbbb1[''+(_0x36484b+_0x2e9dda)]=_0x2c3bec[_0x5dc430(0x1d2)][_0x36484b]),_0x2c3bec[_0x5dc430(0x24e)][_0x36484b]&&(_0x33f9ce[''+(_0x36484b+_0x379648)]=_0x2c3bec[_0x5dc430(0x24e)][_0x36484b]);}const _0x20fdd7=_0x6122ed['getRowCount'](),_0x1f366e=_0x6122ed[_0x5dc430(0x3e4)]();for(let _0x1f021f=0x0;_0x1f021f<_0x20fdd7;_0x1f021f++)for(let _0x27d7c5=0x0;_0x27d7c5<_0x1f366e;_0x27d7c5++){const _0x3c70b9={...(_0x2419cc=(_0x60b74a=_0x6122ed[_0x5dc430(0x1d7)])==null?void 0x0:_0x60b74a[_0x1f021f])==null?void 0x0:_0x2419cc[_0x27d7c5]};let _0x24eb8a;_0x2c3bec[_0x5dc430(0x1d2)][_0x1f021f][_0x5dc430(0x28e)]?_0x24eb8a=_0x2c3bec[_0x5dc430(0x1d2)][_0x1f021f][_0x5dc430(0x268)]===0x0?fe[_0x5dc430(0x2e0)]:fe[_0x5dc430(0x29e)]:_0x24eb8a=fe[_0x5dc430(0x3ef)];const _0x10bea7=_0x2c3bec[_0x5dc430(0x1d2)][_0x1f021f]['valueIndex'],_0x4d3d83=_0x2bc800['info'][_0x27d7c5][_0x5dc430(0x354)],_0x25b6b3=Math[_0x5dc430(0x2e2)](_0x10bea7,_0x4d3d83),_0x394496=_0x436f8b[_0x5dc430(0x35d)][_0x5dc430(0x271)][_0x5dc430(0x3c7)]();let _0x1cd32d='';_0x25b6b3<0x0?_0x1cd32d=(_0x48a8d6=_0x394496[0x0])!=null?_0x48a8d6:'':_0x1cd32d=(_0x5cae2c=_0x394496[_0x25b6b3])!=null?_0x5cae2c:'';const _0x50bb90=_0x3672fb[_0x1cd32d];_0x50bb90&&(_0x24eb8a={..._0x24eb8a,'n':{'pattern':_0x50bb90}}),_0x395c0f['setValue'](_0x1f021f+_0x2e9dda,_0x27d7c5+_0x17b52c,tt(_0x3d6d6d,_0x3c70b9,_0x24eb8a));}return{'valueMatrix':_0x395c0f,'rowInfo':_0x2cbbb1,'colInfo':_0x33b961,'cornerInfo':_0x3b28cf,'rowHeaderMap':_0x33f9ce,'colHeaderMap':_0x3a842d};};function ht(_0x4d6bea,_0x6c9ab2,_0x4d4104,_0x4c3956){const _0x397dfc=_0x5cdc89;let _0x19da25=_0x4d6bea['v'];_0x6c9ab2&&(_0x19da25=''+_0x4c3956[_0x397dfc(0x1c2)]);const _0x351c7c=_0x4d6bea['t']&&(_0x4d6bea['t']&_0xa59d99[_0x397dfc(0x243)])>0x0;_0x351c7c&&(_0x19da25=''+_0x4c3956[_0x397dfc(0x39e)]);const _0x21738a=_0x4d6bea['t']&&(_0x4d6bea['t']&_0xa59d99[_0x397dfc(0x2aa)])>0x0;if(_0x21738a&&(_0x19da25=''+_0x4c3956[_0x397dfc(0x2d7)]),_0x4d6bea['s']===_0x3dda21[_0x397dfc(0x407)]){let _0x8d3404=_0x19da25,_0x26911a='';_0x2988ce(_0x19da25)&&(_0x8d3404=_0x19da25[_0x397dfc(0x39b)],_0x26911a=_0x19da25[_0x397dfc(0x2de)]);const _0x4fe80c=_0x4d4104&&!_0x351c7c&&!_0x21738a?_0x2183c5[_0x397dfc(0x325)](_0x4d4104,Number(_0x8d3404)):_0x8d3404;_0x26911a?_0x19da25=_0x4fe80c+'\x20'+_0x26911a:_0x19da25=_0x4fe80c+'\x20'+_0x4c3956['sheets-pivot.subTotal'];}else _0x4d6bea['s']===_0x3dda21[_0x397dfc(0x2da)]&&(_0x19da25=_0x19da25+'\x20'+_0x4c3956['sheets-pivot.grandTotal']);return _0x19da25;}function $o(_0x21f52f){const _0x550675=_0x5cdc89;if(_0x24e384(_0x21f52f)){const {errorType:_0x4aff33}=_0x21f52f;switch(_0x4aff33){case _0x20e271[_0x550675(0x309)]:return _0x42e13e['DIV_BY_ZERO'];case _0x20e271[_0x550675(0x2dc)]:return _0x42e13e['NUM'];case _0x20e271[_0x550675(0x332)]:return _0x42e13e['NAME'];case _0x20e271[_0x550675(0x1c3)]:return _0x42e13e['NAME'];case _0x20e271[_0x550675(0x387)]:return _0x42e13e[_0x550675(0x2f9)];}}return _0x21f52f;}function ge(_0x2f3aa8,_0x46f4e0,_0x351769=!0x1,_0x43e5de=!0x1){const _0x190c4c=_0x5cdc89,{data:_0x37db80}=_0x46f4e0,_0x48b4c2=_0x46f4e0['getRowCount'](),_0x12b2d2=_0x46f4e0[_0x190c4c(0x3e4)]();if(_0x48b4c2<=0x0||_0x12b2d2<=0x0)return[];const _0xd2bb33=_0x46f4e0[_0x190c4c(0x306)](),_0x502dd6=_0x46f4e0[_0x190c4c(0x246)](),_0x2593f4=_0x43e5de?_0x502dd6>=0x0?_0x502dd6+0x1:0x0:_0x48b4c2,_0xc70c23=_0x43e5de?_0xd2bb33>=0x0?_0xd2bb33+0x1:0x0:_0x12b2d2,{row:_0x85c29,col:_0x1e1cca}=_0x2f3aa8,_0x2c9850=_0x85c29,_0x433fc3=_0x1e1cca;if(_0x351769){const _0x316083=[];for(const [_0x132542,_0x1f1b6e]of Object[_0x190c4c(0x2b0)](_0x37db80))for(const [_0x1c83a1,_0x1d5024]of Object['entries'](_0x1f1b6e))_0x316083[_0x190c4c(0x323)](_0x36796a(_0x2c9850+Number(_0x132542),_0x433fc3+Number(_0x1c83a1)));return _0x316083;}else{const _0x9ef569=_0x43e5de?_0x2593f4>0x0?0x1:0x0:0x1,_0x431634=_0x43e5de?_0xc70c23>0x0?0x1:0x0:0x1,_0x32fa6b=_0x85c29+_0x2593f4-_0x9ef569,_0x433617=_0x1e1cca+_0xc70c23-_0x431634;return[{'startRow':_0x2c9850,'startColumn':_0x433fc3,'endRow':_0x32fa6b,'endColumn':_0x433617}];}}const X=_0x5cdc89(0x356),Lt=_0x5cdc89(0x36a);var k=(_0x405ffb=>(_0x405ffb[_0x5cdc89(0x287)]='filter',_0x405ffb[_0x5cdc89(0x1b7)]=_0x5cdc89(0x304),_0x405ffb[_0x5cdc89(0x1bc)]=_0x5cdc89(0x345),_0x405ffb[_0x5cdc89(0x3e7)]=_0x5cdc89(0x3e7),_0x405ffb['AddPivotTable']='addPivotTable',_0x405ffb['MovePivotField']=_0x5cdc89(0x29d),_0x405ffb[_0x5cdc89(0x293)]=_0x5cdc89(0x213),_0x405ffb[_0x5cdc89(0x368)]=_0x5cdc89(0x338),_0x405ffb['SetPivotFilter']=_0x5cdc89(0x3a2),_0x405ffb[_0x5cdc89(0x26b)]=_0x5cdc89(0x1de),_0x405ffb[_0x5cdc89(0x1dd)]=_0x5cdc89(0x23a),_0x405ffb[_0x5cdc89(0x2a4)]=_0x5cdc89(0x1c9),_0x405ffb[_0x5cdc89(0x310)]=_0x5cdc89(0x384),_0x405ffb[_0x5cdc89(0x241)]='drillDown',_0x405ffb['SetValuePivotFilter']=_0x5cdc89(0x228),_0x405ffb[_0x5cdc89(0x204)]=_0x5cdc89(0x1c8),_0x405ffb[_0x5cdc89(0x340)]=_0x5cdc89(0x300),_0x405ffb))(k||{});const Mi={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x5cdc89(0x207),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x5cdc89(0x370),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x5cdc89(0x3eb),'sheets-pivot.countName':'Count\x20of\x20','sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':_0x5cdc89(0x1b1),'sheets-pivot.stdDevName':_0x5cdc89(0x3d2),'sheets-pivot.stdDevpName':_0x5cdc89(0x21e),'sheets-pivot.sumName':_0x5cdc89(0x1b4),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x5cdc89(0x370),'sheets-pivot.value':'value','sheets-pivot.blank':'blank','sheets-pivot.other':'other','sheets-pivot.emptyPivot.filter':_0x5cdc89(0x287),'sheets-pivot.emptyPivot.row':_0x5cdc89(0x367),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},To={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},be=_0x3fd5c3(_0x5cdc89(0x21d)),Jo=_0x122ba0(_0x5cdc89(0x3c4));var Be=(_0x4c0122=>(_0x4c0122[_0x5cdc89(0x28f)]='add',_0x4c0122[_0x5cdc89(0x41e)]=_0x5cdc89(0x41e),_0x4c0122[_0x5cdc89(0x1d6)]=_0x5cdc89(0x1d6),_0x4c0122))(Be||{}),G=(_0x20ac69=>(_0x20ac69[_0x5cdc89(0x381)]=_0x5cdc89(0x28f),_0x20ac69['Set']=_0x5cdc89(0x33c),_0x20ac69[_0x5cdc89(0x2c8)]=_0x5cdc89(0x41e),_0x20ac69))(G||{});const ro={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},lo={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.send-pivot-data-local','handler':()=>!0x0},Dt={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},co={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x264),'handler':()=>!0x0},uo={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x3e8),'handler':()=>!0x0};var wi=Object['getOwnPropertyDescriptor'],Ri=(_0x103a51,_0x14a7a7,_0x25fd0c,_0x1ad455)=>{for(var _0xff7a04=_0x1ad455>0x1?void 0x0:_0x1ad455?wi(_0x14a7a7,_0x25fd0c):_0x14a7a7,_0x4ba194=_0x103a51['length']-0x1,_0x71287e;_0x4ba194>=0x0;_0x4ba194--)(_0x71287e=_0x103a51[_0x4ba194])&&(_0xff7a04=_0x71287e(_0xff7a04)||_0xff7a04);return _0xff7a04;},_i=(_0x1fc774,_0x1bba16)=>(_0x348687,_0x179967)=>_0x1bba16(_0x348687,_0x179967,_0x1fc774);let z=class extends _0x47e12b{constructor(_0x135005){const _0x1038a3=_0x5cdc89;super(),N(this,_0x1038a3(0x256),new Map()),this[_0x1038a3(0x2c3)]=_0x135005;}[_0x5cdc89(0x200)](_0x1ad04f){const _0x57b26=_0x5cdc89,{version:_0x210b1d}=_0x1ad04f,_0x2e7270=this[_0x57b26(0x256)]['get'](_0x210b1d);_0x2e7270&&(_0x2e7270(_0x1ad04f),this[_0x57b26(0x256)]['delete'](_0x210b1d));}[_0x5cdc89(0x3e0)](_0x592c6d){return new Promise((_0x9cbe09,_0xb0de0f)=>{const _0x5e9e14=_0x52a0,_0xf8c0e9=this['_generateUniqueVersion']();this[_0x5e9e14(0x256)]['set'](_0xf8c0e9,_0x9cbe09),this['_commandService'][_0x5e9e14(0x425)](ro['id'],{'version':_0xf8c0e9,..._0x592c6d},{'onlyLocal':!0x0});});}[_0x5cdc89(0x26f)](){const _0x4f3cab=_0x5cdc89;return Math[_0x4f3cab(0x3a9)]()[_0x4f3cab(0x3b5)](0x24)[_0x4f3cab(0x3c6)](0x2,0x10);}};z=Ri([_i(0x0,_0x582676(_0x3ed3f2))],z);const Wo={0x0:'h',0x1:'Y',0x2:'X',0x3:'k',0x4:'W',0x5:'1',0x6:'y',0x7:'r',0x8:'b',0x9:'2','J':'0','m':'3','g':'4','K':'5','W':'6','M':'7','D':'8','C':'9','c':'a','Q':'c','F':'d','p':'e','e':'f','U':'g','n':'i','T':'j','G':'l','X':'m','o':'n','R':'o','y':'p','B':'q','u':'s','E':'t','x':'u','l':'v','I':'w','k':'x','O':'z','Z':'A','H':'B','h':'C','t':'D','v':'E','j':'F','A':'G','r':'H','w':'I','L':'J','P':'K','N':'L','z':'M','Y':'N','f':'O','S':'P','b':'Q','s':'R','d':'S','i':'T','q':'U','a':'V','V':'Z'},jo=_0x5cdc89(0x1ae),Fi=_0x274391=>{const _0xae9400=_0x5cdc89;var _0x4b8d3f;return((_0x4b8d3f=_0x274391['body'])==null?void 0x0:_0x4b8d3f[_0xae9400(0x3c8)][_0xae9400(0x2bf)](/\r\n$/,''))||'';};class Di extends _0x2bab21{constructor(_0x556fdf,_0x5e7499){const _0x10ab07=_0x5cdc89;super(),N(this,'rangeKeyMap',{}),N(this,_0x10ab07(0x36f)),N(this,_0x10ab07(0x1b3)),(this[_0x10ab07(0x36f)]=_0x5e7499,this[_0x10ab07(0x1b3)]=_0x556fdf);}[_0x5cdc89(0x3a8)](){const _0x5e2f7f=_0x5cdc89;for(const _0x235028 in this[_0x5e2f7f(0x28c)]){const _0x661226=this[_0x5e2f7f(0x28c)][_0x235028],_0x26768c=_0x661226[_0x5e2f7f(0x1f9)]();this[_0x5e2f7f(0x316)][_0x26768c]=_0x661226[_0x5e2f7f(0x305)]();}}[_0x5cdc89(0x40c)](){const _0x21e052=_0x5cdc89,_0x5acaf7=this[_0x21e052(0x1b3)];return Ai[_0x21e052(0x22a)](_0x5acaf7);}[_0x5cdc89(0x2fb)](_0x258439){const _0x555181=_0x5cdc89,_0x3c8278=this[_0x555181(0x28c)][_0x258439][_0x555181(0x3f6)];delete this[_0x555181(0x28c)][_0x258439],delete this[_0x555181(0x316)][_0x3c8278];}[_0x5cdc89(0x3f4)](_0x48d866){const _0x1c8cd5=_0x5cdc89;this[_0x1c8cd5(0x28c)][_0x48d866[_0x1c8cd5(0x305)]()]=_0x48d866;}[_0x5cdc89(0x341)](_0x4e421d){const _0x2a259c=_0x5cdc89;var _0x33db85,_0x1ee2aa;const _0x18f616=this[_0x2a259c(0x1b3)][_0x2a259c(0x2c2)](_0x4e421d);if(_0x18f616){const {unitId:_0x4d6549,subUnitId:_0x217dfc}=_0x18f616,_0x2f49b1=(_0x33db85=this['_host']['getPivotTableConfig'](_0x4d6549,_0x217dfc,_0x4e421d))==null?void 0x0:_0x33db85['sourceRangeInfo'];this[_0x2a259c(0x1b3)][_0x2a259c(0x347)]({'token':_0x4e421d,'type':Be[_0x2a259c(0x41e)],'dataRangeInfo':_0x2f49b1});}(_0x1ee2aa=this[_0x2a259c(0x2c6)](_0x4e421d))==null||_0x1ee2aa[_0x2a259c(0x1f2)](),delete this['collections'][_0x4e421d];}[_0x5cdc89(0x1f9)](_0x5a4488,_0xae4644){const {sheetName:_0x3fa2fd,unitId:_0x4b0452,range:_0x27b2f3}=_0x5a4488,{startRow:_0x307ebd,endRow:_0x52ea97}=_0x27b2f3;return _0x1f93b1(_0x4b0452,_0x3fa2fd,{'startRow':_0x307ebd,'endRow':_0x52ea97,'startColumn':_0xae4644,'endColumn':_0xae4644});}[_0x5cdc89(0x291)](_0x544e70){const _0x598e14=_0x5cdc89;return this['dataFields'][this[_0x598e14(0x316)][_0x544e70]];}['setRangeKeyMap'](_0x4c0c71,_0x177ca8){const _0x454f16=_0x5cdc89;this[_0x454f16(0x316)][_0x4c0c71]=_0x177ca8;}[_0x5cdc89(0x2d1)](_0x5e45a3,_0x115d22){const _0x2b109b=_0x5cdc89;this[_0x2b109b(0x316)][_0x115d22]=this['rangeKeyMap'][_0x5e45a3],delete this[_0x2b109b(0x316)][_0x5e45a3];}[_0x5cdc89(0x41a)](_0x4788de,_0x1f66ba,_0x3b8298,_0x3a2986){const _0x5b0c32=_0x5cdc89,_0x26cc8b=new _0x138982(this);_0x26cc8b[_0x5b0c32(0x3d5)](_0x1f66ba);const _0x70113a=[];let _0x1e6642=0x0;for(const _0x98ed31 of _0x26cc8b[_0x5b0c32(0x2c5)]){const _0x34e7db=this[_0x5b0c32(0x1f9)](_0x3b8298,_0x1e6642),_0x1b5069=this['dataFields'][_0x98ed31];_0x1b5069&&(_0x1b5069[_0x5b0c32(0x3f6)]=_0x34e7db,this[_0x5b0c32(0x2e5)](_0x34e7db,_0x98ed31),_0x70113a[_0x5b0c32(0x323)]({'index':_0x1e6642,'dataField':_0x1b5069})),_0x1e6642++;}return this['addCollection'](_0x4788de,_0x26cc8b,_0x3b8298,_0x3a2986),{'collection':_0x26cc8b,'updateDataFieldList':_0x70113a};}[_0x5cdc89(0x2d0)](_0x384c31,_0x5d97f2){const _0x10c57f=_0x5cdc89;return _0x384c31[_0x10c57f(0x2b3)]===_0x119a4f[_0x10c57f(0x3f0)]?{'startRow':0x0,'startColumn':_0x384c31[_0x10c57f(0x258)],'endRow':_0x5d97f2['getRowCount']()-0x1,'endColumn':_0x384c31[_0x10c57f(0x35e)]}:{'startRow':_0x384c31[_0x10c57f(0x2e7)],'startColumn':_0x384c31['startColumn'],'endRow':_0x384c31['endRow'],'endColumn':_0x384c31[_0x10c57f(0x35e)]};}[_0x5cdc89(0x2a0)](_0x29d0e2){const _0x173de7=_0x5cdc89,{sheetName:_0x6830c0,range:_0x42434b}=_0x29d0e2,_0x5686e0=this[_0x173de7(0x36f)][_0x173de7(0x3b3)](_0x3220f9[_0x173de7(0x20d)]),_0x57cf46=_0x5686e0[_0x173de7(0x1f0)](_0x6830c0),_0x415e72=_0x57cf46[_0x173de7(0x3d3)](),{startColumn:_0x4ec73a,startRow:_0x520b02,endColumn:_0x899529}=this['getRangeStartEndInfo'](_0x42434b,_0x57cf46),_0x57cb3d=_0x5686e0[_0x173de7(0x21f)](),_0x42ba83=new _0x138982(this);_0x42ba83['setRange'](_0x29d0e2);const _0x20a829=[],_0x3a7885={};for(let _0x3f4c0d=_0x4ec73a;_0x3f4c0d<=_0x899529;_0x3f4c0d++){const _0x140c18=_0x415e72['getValue'](_0x520b02,_0x3f4c0d),_0x824754=this[_0x173de7(0x1f9)](_0x29d0e2,_0x3f4c0d),_0x1bd4e4=this[_0x173de7(0x291)](_0x824754);if(_0x1bd4e4)_0x42ba83[_0x173de7(0x31e)](_0x1bd4e4[_0x173de7(0x305)](),_0x1bd4e4['getName']());else{const _0x55448a=this['createDataFieldId']();let _0x157a7e=this[_0x173de7(0x3ce)](_0x140c18,_0x57cb3d,_0x3a7885);_0x1e4d84(_0x157a7e)&&(_0x157a7e=_0x2183c5[_0x173de7(0x325)](_0x157a7e['f'],Number(_0x157a7e['v'])));const _0x1c2386=this['uniqueDataFieldName'](_0x157a7e,_0x3f4c0d),_0x4415ab=new _0x2bdcb3(_0x55448a,_0x1c2386,_0x4251b6(0x3));_0x4415ab[_0x173de7(0x3f6)]=_0x824754,this[_0x173de7(0x28c)][_0x55448a]=_0x4415ab,_0x42ba83[_0x173de7(0x31e)](_0x55448a,_0x1c2386),_0x20a829['push']({'index':_0x3f4c0d,'dataField':_0x4415ab});}}return{'updateDataFieldList':_0x20a829,'collection':_0x42ba83};}[_0x5cdc89(0x1df)](_0x19e962){const _0xafcf49=_0x5cdc89;return this['_host'][_0xafcf49(0x2a7)]()[_0xafcf49(0x37b)]+'\x20'+_0x565e8d(_0x19e962);}['uniqueDataFieldName'](_0x3b7bd0,_0x579928){const _0x4246c3=_0x5cdc89;return _0x3b7bd0==null||_0x3b7bd0===''?this[_0x4246c3(0x1df)](_0x579928):String(_0x3b7bd0);}[_0x5cdc89(0x2c6)](_0x4091b6){const _0x54fb25=_0x5cdc89;return this[_0x54fb25(0x3b1)][_0x4091b6];}[_0x5cdc89(0x2c0)](_0x50eacc,_0x221027,_0x5a33d1,_0x19287c){const _0x2d33b4=_0x5cdc89;this[_0x2d33b4(0x3b1)][_0x50eacc]=_0x221027,_0x221027['setRange'](_0x5a33d1),this[_0x2d33b4(0x1b3)][_0x2d33b4(0x347)]({'token':_0x50eacc,'type':Be[_0x2d33b4(0x28f)],'dataRangeInfo':_0x5a33d1,'targetCellInfo':_0x19287c});}[_0x5cdc89(0x409)](_0x29deac,_0x102636){const _0x436158=_0x5cdc89,_0x29e92e=this[_0x436158(0x2c6)](_0x29deac),_0x226cb2=_0x29e92e[_0x436158(0x2f3)]();let _0x5856ee=0x0;for(const _0x588812 of _0x226cb2){const _0x981d48=_0x29e92e[_0x436158(0x3d8)](_0x588812),_0x30f2bb=this[_0x436158(0x1f9)](_0x102636,_0x5856ee);this['updateRangeKeyMap'](_0x981d48[_0x436158(0x3f6)],_0x30f2bb),_0x5856ee++;}}[_0x5cdc89(0x392)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x5cdc89(0x214)](_0x59f781,_0x24e4d9){const _0x32a2e8=_0x5cdc89;if(this[_0x32a2e8(0x2c6)](_0x59f781)){const _0x218e87=this['getRangeKeyList'](_0x24e4d9),_0x38b971=[];for(const _0xf6005c of _0x218e87)this[_0x32a2e8(0x316)][_0xf6005c]!==void 0x0&&_0x38b971[_0x32a2e8(0x323)](this[_0x32a2e8(0x316)][_0xf6005c]);const _0xdc3d51=this[_0x32a2e8(0x23b)](_0x59f781),_0x463ce5=[],_0xef38c1=new Set(_0x38b971);for(const _0x181747 of _0xdc3d51)_0xef38c1[_0x32a2e8(0x3a3)](_0x181747)||_0x463ce5[_0x32a2e8(0x323)](_0x181747);return _0x463ce5;}}[_0x5cdc89(0x331)](_0x147ca5,_0x460b1f,_0x11b5cf,_0x2f2a17,_0x3600d6){const _0x119f21=_0x5cdc89;return _0x460b1f&&_0x460b1f[_0x119f21(0x3cc)](_0x2f2a17,_0x3600d6)?_0x460b1f[_0x119f21(0x3cc)](_0x2f2a17,_0x3600d6):_0x11b5cf&&_0x11b5cf[_0x119f21(0x3cc)](_0x2f2a17,_0x3600d6)?_0x11b5cf[_0x119f21(0x3cc)](_0x2f2a17,_0x3600d6):_0x147ca5['getValue'](_0x2f2a17,_0x3600d6);}[_0x5cdc89(0x3fb)](_0x47c37a,_0x18c84d,_0x1c9bf2,_0x5580c1){const _0x771aab=_0x5cdc89,_0x252b05=this[_0x771aab(0x28c)][_0x47c37a];if(!_0x252b05)return;const {subUnitId:_0x2780f3,range:_0x522224,unitId:_0x5eb2b4}=_0x18c84d,_0x575774=this[_0x771aab(0x36f)]['getUnit'](_0x5eb2b4);if(!_0x575774){console[_0x771aab(0x1cc)](_0x771aab(0x1d5));return;}const _0x4eb60a=_0x575774['getSheetBySheetId'](_0x2780f3),_0x41ea25=_0x4eb60a[_0x771aab(0x3d3)](),{arrayFormulaCellDataMatrix:_0x4aac90,unitDataMatrix:_0x3dfb39}=_0x5580c1||{},{startRow:_0x2448d9,startColumn:_0x1c70da,endRow:_0x1d2802}=this[_0x771aab(0x2d0)](_0x522224,_0x4eb60a);_0x252b05['reset']();const _0x454a99=_0x575774[_0x771aab(0x21f)](),_0x589051={},_0x1e49ed=this[_0x771aab(0x331)](_0x41ea25,_0x4aac90,_0x3dfb39,_0x2448d9,_0x1c70da+_0x1c9bf2);let _0x30c5fc=this[_0x771aab(0x3ce)](_0x1e49ed,_0x454a99,_0x589051);_0x1e4d84(_0x30c5fc)&&(_0x30c5fc=_0x2183c5[_0x771aab(0x325)](_0x30c5fc['f'],Number(_0x30c5fc['v'])));const _0xaeda57=this[_0x771aab(0x38d)](_0x30c5fc,_0x1c70da+_0x1c9bf2);_0x252b05['setName'](_0xaeda57);for(let _0x2bae04=_0x2448d9+0x1;_0x2bae04<=_0x1d2802;_0x2bae04++){const _0x4defbd=this[_0x771aab(0x331)](_0x41ea25,_0x4aac90,_0x3dfb39,_0x2bae04,_0x1c70da+_0x1c9bf2);_0x252b05[_0x771aab(0x31b)](this[_0x771aab(0x3ce)](_0x4defbd,_0x454a99,_0x589051),_0x2bae04-0x1-_0x2448d9);}}[_0x5cdc89(0x40e)](_0x39b260,_0x1843de,_0x5bce9f){const _0x3b1b98=_0x5cdc89,{subUnitId:_0x4e19bf,range:_0x2a1d16,unitId:_0x3c6e3d}=_0x5bce9f,_0x253bea=this[_0x3b1b98(0x36f)][_0x3b1b98(0x216)](_0x3c6e3d);if(!_0x253bea){console[_0x3b1b98(0x1cc)](_0x3b1b98(0x1d5));return;}const _0x3a2d2b=_0x253bea[_0x3b1b98(0x2ff)](_0x4e19bf),_0x2fcfb7=_0x3a2d2b[_0x3b1b98(0x3d3)](),{startRow:_0xcb6363,startColumn:_0x209d82,endRow:_0x26b529}=this[_0x3b1b98(0x2d0)](_0x2a1d16,_0x3a2d2b),_0x2deb9c=_0x253bea[_0x3b1b98(0x21f)](),_0x492abc={};for(const {dataField:_0x4cd25c,index:_0x414505}of _0x1843de){_0x4cd25c[_0x3b1b98(0x2d5)]();const _0x8937f7=this[_0x3b1b98(0x331)](_0x2fcfb7,void 0x0,void 0x0,_0xcb6363,_0x209d82+_0x414505);let _0x31495d=this['adjustSheetCellData'](_0x8937f7,_0x2deb9c,_0x492abc);_0x1e4d84(_0x31495d)&&(_0x31495d=_0x2183c5[_0x3b1b98(0x325)](_0x31495d['f'],Number(_0x31495d['v'])));const _0x37b653=this[_0x3b1b98(0x38d)](_0x31495d,_0x209d82+_0x414505);_0x4cd25c[_0x3b1b98(0x375)](_0x37b653);}_0x39b260['updateAllDisplayName']();for(let _0x48a71e=_0xcb6363+0x1;_0x48a71e<=_0x26b529;_0x48a71e++)for(const {index:_0x564d83,dataField:_0x4dea65}of _0x1843de){const _0x18aaea=_0x2fcfb7['getValue'](_0x48a71e,_0x209d82+_0x564d83);_0x4dea65['addRecord'](this['adjustSheetCellData'](_0x18aaea,_0x2deb9c,_0x492abc),_0x48a71e-0x1-_0xcb6363);}_0x39b260['setDataRecordCount'](_0x26b529-_0xcb6363);}[_0x5cdc89(0x36e)](_0x57df34){const _0x52e94a=_0x5cdc89,{range:_0x4836d3}=_0x57df34,{startColumn:_0x2f1f9f,endColumn:_0x32ec6c}=_0x4836d3,_0x492a78=[];for(let _0x2dea21=_0x2f1f9f;_0x2dea21<=_0x32ec6c;_0x2dea21++)_0x492a78[_0x52e94a(0x323)](this[_0x52e94a(0x1f9)](_0x57df34,_0x2dea21));return _0x492a78;}[_0x5cdc89(0x3ce)](_0x39c4fe,_0x59e7ec,_0xd9c59d){const _0x5adef2=_0x5cdc89;if(_0x39c4fe){const {s:_0x357989,v:_0x4c5427,t:_0x499582,p:_0x1fb723}=_0x39c4fe;if(_0x1fb723)return Fi(_0x1fb723);const _0x43b285=_0x59e7ec[_0x5adef2(0x3ac)](_0x357989);if(_0x43b285&&_0x499582===_0x591d7f[_0x5adef2(0x1e5)]&&_0x43b285['n']){const {pattern:_0x5ec8e0}=_0x43b285['n'];_0xd9c59d[_0x5ec8e0]||(_0xd9c59d[_0x5ec8e0]=_0x2183c5[_0x5adef2(0x225)](_0x5ec8e0));const _0x4b2ab7=_0xd9c59d[_0x5ec8e0],_0x33b0f3=_0x4b2ab7[_0x5adef2(0x2f2)];if(_0x4b2ab7['isText'])return String(_0x4c5427);if(_0x33b0f3)return{'v':_0x4c5427,'f':_0x5ec8e0};}if(_0x499582===_0x591d7f[_0x5adef2(0x1e5)])return Number(_0x4c5427);if(_0x499582===_0x591d7f[_0x5adef2(0x218)]||_0x499582===_0x591d7f[_0x5adef2(0x30f)])return String(_0x4c5427);if(_0x499582===void 0x0){const _0x11cb5e=Number(_0x4c5427);if(!Number[_0x5adef2(0x2a8)](_0x11cb5e)&&String(_0x11cb5e)===_0x4c5427)return _0x11cb5e;}return _0x4c5427!=null?_0x4c5427:null;}else return null;}['getRangeData'](_0x12d622){const _0x13be4e=_0x5cdc89,{sheetName:_0x1d9040,range:_0x10e4db,unitId:_0x3d1133}=_0x12d622,_0x3eccf3=this[_0x13be4e(0x36f)][_0x13be4e(0x216)](_0x3d1133);if(!_0x3eccf3)return console['error'](_0x13be4e(0x1d5)),{'header':[],'data':[]};const _0x492b1c=_0x3eccf3['getSheetBySheetName'](_0x1d9040),_0xf16fc4=_0x492b1c[_0x13be4e(0x3d3)](),{startRow:_0x4a2fb2,startColumn:_0x351bcf,endRow:_0x548acc,endColumn:_0x10f1b0}=this[_0x13be4e(0x2d0)](_0x10e4db,_0x492b1c),_0x434931=_0x3eccf3[_0x13be4e(0x21f)](),_0x3c84b7=[],_0x5111fc=[],_0x26be00={};for(let _0x58e24f=_0x4a2fb2;_0x58e24f<=_0x548acc;_0x58e24f++){const _0x9b885f=[];for(let _0x46eba4=_0x351bcf;_0x46eba4<=_0x10f1b0;_0x46eba4++){const _0x1919ab=_0xf16fc4[_0x13be4e(0x3cc)](_0x58e24f,_0x46eba4);_0x58e24f===_0x4a2fb2?_0x3c84b7[_0x13be4e(0x323)](_0x1919ab==null?null:String(_0x1919ab['v'])):_0x9b885f[_0x13be4e(0x323)](this[_0x13be4e(0x3ce)](_0x1919ab,_0x434931,_0x26be00));}_0x5111fc[_0x13be4e(0x323)](_0x9b885f);}return{'header':_0x3c84b7,'data':_0x5111fc};}[_0x5cdc89(0x42a)](){const _0x523d8a=_0x5cdc89;return super[_0x523d8a(0x42a)]();}[_0x5cdc89(0x3d5)](_0x5dbadc){const _0x2eed50=_0x5cdc89;super['fromJSON'](_0x5dbadc),this[_0x2eed50(0x3a8)]();}[_0x5cdc89(0x1f2)](){const _0x5a957c=_0x5cdc89;super[_0x5a957c(0x1f2)](),this[_0x5a957c(0x316)]={},this[_0x5a957c(0x1b3)]=null;}}const Ei=_0x441d15=>{const _0x503692=_0x5cdc89,{targetCellInfo:_0x5663a2}=_0x441d15,{matrixCache:_0x352f2c,rangesCache:_0x831847}=Qo({'filter':_0x503692(0x287),'row':_0x503692(0x367),'column':'Column','values':_0x503692(0x402)},_0x5663a2),_0x396987=new _0x499f9a();return _0x352f2c[_0x503692(0x2d2)]((_0x4c7e41,_0x4f1636,_0x44766d)=>{const _0x23e39b=_0x503692;_0x396987[_0x23e39b(0x284)](_0x4c7e41,_0x4f1636,_0x44766d);}),{'matrix':_0x396987,'rangesCache':_0x831847};},ot=_0x1d075f=>{const _0x3a9b12=_0x5cdc89;let _0x46c4bd;if(_0x1d075f!=null&&_0x1d075f['v']||(_0x1d075f==null?void 0x0:_0x1d075f['v'])===0x0){_0x46c4bd||(_0x46c4bd={});const _0x7b05f0=$o(_0x1d075f['v']);typeof _0x7b05f0==_0x3a9b12(0x217)?_0x46c4bd['t']=_0x591d7f[_0x3a9b12(0x1e5)]:typeof _0x7b05f0==_0x3a9b12(0x220)&&(_0x46c4bd['t']=_0x591d7f[_0x3a9b12(0x218)]),_0x46c4bd['v']=_0x7b05f0;}return _0x46c4bd;},Ni=(_0x3cb38b,_0x9d6d60,_0x5364ae)=>{const _0x54e1f4=_0x5cdc89;var _0xb43b33,_0xdceeb3,_0x31dcd2,_0x46ec58,_0x44286d,_0x3667f8,_0x3a2887,_0x113669,_0x2b73a3,_0xd44844,_0x11975c,_0x1df992;const {cornerView:_0x236573,rowView:_0x30f08c,colView:_0x2d3dda,dataView:_0x160079,pageView:_0x3543c8,formatMap:_0x31648c}=_0x3cb38b,{row:_0x45b33a,col:_0x2fac55}=_0x9d6d60,_0x3cb9cf=new _0x499f9a();let _0x3aea18=_0x45b33a,_0x36cb81=_0x2fac55;Object[_0x54e1f4(0x329)](_0x3543c8[_0x54e1f4(0x1d7)])[_0x54e1f4(0x40a)](_0x5a00ef=>{const _0x1c30b2=_0x54e1f4;Object[_0x1c30b2(0x329)](_0x3543c8['data'][Number(_0x5a00ef)])[_0x1c30b2(0x40a)](_0x1d10a1=>{const _0x3d476a=_0x1c30b2,_0x3e2f83={..._0x3543c8[_0x3d476a(0x1d7)][Number(_0x5a00ef)][Number(_0x1d10a1)]};_0x3cb9cf['setValue'](Number(_0x5a00ef)+_0x3aea18,Number(_0x1d10a1)+_0x36cb81,ot(_0x3e2f83));});});const _0x31d007=Object[_0x54e1f4(0x329)](_0x3543c8['data'])[_0x54e1f4(0x36b)];_0x3aea18+=_0x31d007+(_0x31d007?It:0x0);const _0x57b1e9=_0x236573['getRowCount'](),_0x4963cc=_0x236573[_0x54e1f4(0x3e4)]();for(let _0x2b79a3=0x0;_0x2b79a3<_0x57b1e9;_0x2b79a3++)for(let _0x3c88e8=0x0;_0x3c88e8<_0x4963cc;_0x3c88e8++){const _0x32812e={...(_0xdceeb3=(_0xb43b33=_0x236573['data'])==null?void 0x0:_0xb43b33[_0x2b79a3])==null?void 0x0:_0xdceeb3[_0x3c88e8]};_0x32812e&&((_0x31dcd2=_0x30f08c['headerMap'][_0x3c88e8])!=null&&_0x31dcd2[_0x54e1f4(0x386)])&&_0x3c88e8===_0x4963cc-0x1&&_0x2b79a3===_0x57b1e9-0x1&&(_0x32812e['v']=''+_0x5364ae['sheets-pivot.value']),_0x3cb9cf[_0x54e1f4(0x284)](_0x2b79a3+_0x3aea18,_0x3c88e8+_0x36cb81,ot(_0x32812e));}_0x36cb81+=_0x4963cc;const _0x5379de=_0x2d3dda[_0x54e1f4(0x24e)],_0x15b3e6=_0x2d3dda[_0x54e1f4(0x246)]()>=0x0?_0x2d3dda[_0x54e1f4(0x246)]()+0x1:0x0,_0x37f2f5=_0x2d3dda[_0x54e1f4(0x306)]()>=0x0?_0x2d3dda[_0x54e1f4(0x306)]()+0x1:0x0;for(let _0x14b4ef=0x0;_0x14b4ef<_0x37f2f5;_0x14b4ef++)for(let _0x9145d3=0x0;_0x9145d3<_0x15b3e6;_0x9145d3++){const _0x5be733={...(_0x44286d=(_0x46ec58=_0x2d3dda[_0x54e1f4(0x1d7)])==null?void 0x0:_0x46ec58[_0x14b4ef])==null?void 0x0:_0x44286d[_0x9145d3]},_0x5038b4=(_0x3667f8=_0x5379de[_0x14b4ef])==null?void 0x0:_0x3667f8[_0x54e1f4(0x1b9)],_0x2a906a=_0x31648c[_0x5038b4];_0x5be733&&(_0x5be733['v']=ht(_0x5be733,_0x14b4ef===0x0&&((_0x3a2887=_0x2d3dda['getHeaderMapItem'](_0x9145d3+0x1))==null?void 0x0:_0x3a2887[_0x54e1f4(0x386)]),_0x2a906a,_0x5364ae)),_0x3cb9cf[_0x54e1f4(0x284)](_0x14b4ef+_0x3aea18,_0x9145d3+_0x36cb81,ot(_0x5be733));}_0x3aea18+=_0x57b1e9;const _0x3f27fe=_0x30f08c[_0x54e1f4(0x24e)],_0x3575b4=_0x30f08c[_0x54e1f4(0x246)]()>=0x0?_0x30f08c['getLastRow']()+0x1:0x0,_0x565cf3=_0x30f08c[_0x54e1f4(0x306)]()>=0x0?_0x30f08c['getLastCol']()+0x1:0x0;for(let _0x1ccaa1=0x0;_0x1ccaa1<_0x3575b4;_0x1ccaa1++)for(let _0xb33e20=0x0;_0xb33e20<_0x565cf3;_0xb33e20++){const _0x2add34={...(_0x2b73a3=(_0x113669=_0x30f08c[_0x54e1f4(0x1d7)])==null?void 0x0:_0x113669[_0x1ccaa1])==null?void 0x0:_0x2b73a3[_0xb33e20]},_0x507bc9=(_0xd44844=_0x3f27fe[_0xb33e20])==null?void 0x0:_0xd44844[_0x54e1f4(0x1b9)],_0x16c50f=_0x31648c[_0x507bc9];_0x2add34&&(_0x2add34['v']=ht(_0x2add34,!0x1,_0x16c50f,_0x5364ae)),_0x3cb9cf[_0x54e1f4(0x284)](_0x1ccaa1+_0x3aea18,_0xb33e20+_0x2fac55,ot(_0x2add34));}const _0x57ed7b=_0x160079[_0x54e1f4(0x3bc)](),_0x34f9c3=_0x160079[_0x54e1f4(0x3e4)]();for(let _0x20881b=0x0;_0x20881b<_0x57ed7b;_0x20881b++)for(let _0x2132b8=0x0;_0x2132b8<_0x34f9c3;_0x2132b8++){const _0x415db4={...(_0x1df992=(_0x11975c=_0x160079['data'])==null?void 0x0:_0x11975c[_0x20881b])==null?void 0x0:_0x1df992[_0x2132b8]};_0x3cb9cf[_0x54e1f4(0x284)](_0x20881b+_0x3aea18,_0x2132b8+_0x36cb81,ot(_0x415db4));}return _0x3cb9cf;},Ui=_0x31ea37=>{const _0x4db0dd=_0x5cdc89,{view:_0x9f6ddb,targetCellInfo:_0xe2df89,isEmpty:_0x102798,textInfo:_0xcaa169}=_0x31ea37;if(_0x102798)return Ei(_0x31ea37);const {pageView:_0x27bc88,cornerView:_0xf32e27,rowView:_0x39a474,colView:_0x127801,dataView:_0x2dc4f5}=_0x9f6ddb,_0x462dea=ge(_0xe2df89,_0x27bc88,!0x0),_0x499737=_0x27bc88[_0x4db0dd(0x3b0)]>=0x0?_0x27bc88[_0x4db0dd(0x3b0)]+0x1:0x0,_0x1d0cfc=_0xf32e27['getRowCount'](),_0x22bda8=_0xf32e27[_0x4db0dd(0x3e4)](),_0xf2a3cc=_0x462dea[_0x4db0dd(0x36b)]>0x0?It:0x0,_0x5e8209=ge({'row':_0xe2df89[_0x4db0dd(0x3af)]+_0x499737+_0xf2a3cc,'col':_0xe2df89[_0x4db0dd(0x1cf)]},_0xf32e27,!0x1,!0x1),_0x1f1528=ge({'row':_0xe2df89['row']+_0x499737+_0xf2a3cc+_0x1d0cfc,'col':_0xe2df89[_0x4db0dd(0x1cf)]},_0x39a474,!0x1,!0x0),_0x3e11e7=ge({'row':_0xe2df89['row']+_0x499737+_0xf2a3cc,'col':_0xe2df89['col']+_0x22bda8},_0x127801,!0x1,!0x0),_0x3465b2=ge({'row':_0xe2df89[_0x4db0dd(0x3af)]+_0x499737+_0xf2a3cc+_0x1d0cfc,'col':_0xe2df89[_0x4db0dd(0x1cf)]+_0x22bda8},_0x2dc4f5,!0x1,!0x1),_0x4dfcd1={'rowRanges':_0x1f1528,'colRanges':_0x3e11e7,'cornerRanges':_0x5e8209,'dataRanges':_0x3465b2,'pageRanges':_0x462dea};return{'matrix':Ni(_0x9f6ddb,_0xe2df89,_0xcaa169),'rangesCache':_0x4dfcd1};};var Vi=Object['getOwnPropertyDescriptor'],xi=(_0x396ef1,_0x3aef8c,_0x11f44b,_0x48ee9d)=>{const _0x26149d=_0x5cdc89;for(var _0x44efb4=_0x48ee9d>0x1?void 0x0:_0x48ee9d?Vi(_0x3aef8c,_0x11f44b):_0x3aef8c,_0x198df5=_0x396ef1[_0x26149d(0x36b)]-0x1,_0xcbb05e;_0x198df5>=0x0;_0x198df5--)(_0xcbb05e=_0x396ef1[_0x198df5])&&(_0x44efb4=_0xcbb05e(_0x44efb4)||_0x44efb4);return _0x44efb4;},nt=(_0x33904a,_0x4f14cf)=>(_0x24ae2b,_0x2f1e6b)=>_0x4f14cf(_0x24ae2b,_0x2f1e6b,_0x33904a);let $=class extends _0x47e12b{constructor(_0x52d053,_0x5744f9,_0x3bead8,_0x5db8f3,_0x5637b5){const _0x2a5ffc=_0x5cdc89;super(),N(this,_0x2a5ffc(0x3f2),new Map()),N(this,_0x2a5ffc(0x351),new Map()),N(this,_0x2a5ffc(0x25f),new Map()),N(this,_0x2a5ffc(0x2f7)),N(this,_0x2a5ffc(0x1c6),new _0x24677c()),N(this,_0x2a5ffc(0x3be),this[_0x2a5ffc(0x1c6)][_0x2a5ffc(0x3e9)]()),N(this,'_viewData$',new _0x24677c()),N(this,'viewData$',this[_0x2a5ffc(0x231)][_0x2a5ffc(0x3e9)]()),N(this,_0x2a5ffc(0x334),new _0x24677c()),N(this,'fieldsCollectionChange$',this[_0x2a5ffc(0x334)][_0x2a5ffc(0x3e9)]()),N(this,_0x2a5ffc(0x230),new Map()),N(this,_0x2a5ffc(0x2fe),[]),N(this,_0x2a5ffc(0x265),new Map()),(this[_0x2a5ffc(0x426)]=_0x52d053,this['_univerInstanceService']=_0x5744f9,this[_0x2a5ffc(0x3b4)]=_0x3bead8,this[_0x2a5ffc(0x2c3)]=_0x5db8f3,this[_0x2a5ffc(0x3e1)]=_0x5637b5,this[_0x2a5ffc(0x3ec)]());}['getTextInfo'](){const _0x2e68d8=_0x5cdc89;return this['_textInfo']?this[_0x2e68d8(0x2f7)]:Mi;}[_0x5cdc89(0x2cd)](_0x2c1c04){const _0x597e72=_0x5cdc89;this[_0x597e72(0x2f7)]=_0x2c1c04;}['handleMoveRange'](_0x31f465){const _0x414fe9=_0x5cdc89;var _0x4beaed;const {from:_0x15b2bf,to:_0x50ab42,unitId:_0x5f22b7,fromRange:_0x363796,toRange:_0x41ce77}=_0x31f465;if(_0x15b2bf&&_0x50ab42){const _0x1f9b3c=this[_0x414fe9(0x357)](_0x5f22b7),_0x2297ae=this[_0x414fe9(0x3f2)][_0x414fe9(0x3ac)](_0x5f22b7),_0x4f6031=(_0x4beaed=this[_0x414fe9(0x36f)][_0x414fe9(0x216)](_0x5f22b7))==null?void 0x0:_0x4beaed[_0x414fe9(0x2ff)](_0x50ab42['subUnitId']);if(!_0x2297ae||!_0x4f6031)return;const _0x5be8c8=_0x4f6031==null?void 0x0:_0x4f6031[_0x414fe9(0x3f1)]();for(const [_0x4a2d7f,_0x324eab]of _0x2297ae[_0x414fe9(0x2b0)]())for(const [_0x42362c,_0x342ded]of _0x324eab[_0x414fe9(0x2b0)]()){const {sourceRangeInfo:_0x175abd}=_0x342ded;if(_0x175abd['unitId']===_0x5f22b7&&_0x175abd[_0x414fe9(0x395)]===_0x15b2bf[_0x414fe9(0x395)]&&_0x5548d4['contains'](_0x363796,_0x175abd['range'])){const _0x1ffe98={'row':_0x175abd[_0x414fe9(0x30c)][_0x414fe9(0x2e7)]-_0x363796[_0x414fe9(0x2e7)],'col':_0x175abd['range'][_0x414fe9(0x258)]-_0x363796[_0x414fe9(0x258)]},_0x4ad600={'unitId':_0x5f22b7,'subUnitId':_0x50ab42[_0x414fe9(0x395)],'sheetName':_0x5be8c8,'range':{'startRow':_0x41ce77['startRow']+_0x1ffe98['row'],'endRow':_0x41ce77[_0x414fe9(0x2e7)]+_0x1ffe98[_0x414fe9(0x3af)]+_0x175abd['range'][_0x414fe9(0x260)]-_0x175abd[_0x414fe9(0x30c)]['startRow'],'startColumn':_0x41ce77[_0x414fe9(0x258)]+_0x1ffe98['col'],'endColumn':_0x41ce77[_0x414fe9(0x258)]+_0x1ffe98[_0x414fe9(0x1cf)]+_0x175abd[_0x414fe9(0x30c)][_0x414fe9(0x35e)]-_0x175abd[_0x414fe9(0x30c)][_0x414fe9(0x258)]}};_0x1f9b3c[_0x414fe9(0x409)](_0x42362c,_0x4ad600);const _0x3f1d24={..._0x342ded,'sourceRangeInfo':_0x4ad600};this['_updateModelCache'](_0x5f22b7,_0x50ab42[_0x414fe9(0x395)],_0x42362c,_0x3f1d24),this['broadcastCollectionChange']({'unitId':_0x5f22b7,'token':_0x42362c,'type':Be[_0x414fe9(0x1d6)],'oldSourceRangeInfo':_0x175abd,'dataRangeInfo':_0x4ad600,'targetCellInfo':_0x342ded[_0x414fe9(0x28a)]}),this[_0x414fe9(0x35b)]({'unitId':_0x5f22b7,'subUnitId':_0x50ab42['subUnitId'],'oldSubUnitId':_0x4a2d7f,'pivotTableId':_0x42362c,'pivotTableConfig':_0x3f1d24,'collectionConfig':_0x1f9b3c['toJSON']()});}}}}[_0x5cdc89(0x347)](_0xa62191){const _0x33c926=_0x5cdc89;this['_collectionChange$'][_0x33c926(0x2be)](_0xa62191);}[_0x5cdc89(0x357)](_0x2eec17){const _0x22339f=_0x5cdc89;let _0x16c1f2=this['_dataFieldManagerCollection'][_0x22339f(0x3ac)](_0x2eec17);return _0x16c1f2||(_0x16c1f2=new Di(this,this[_0x22339f(0x36f)]),this['_dataFieldManagerCollection'][_0x22339f(0x33c)](_0x2eec17,_0x16c1f2)),_0x16c1f2;}[_0x5cdc89(0x2c6)](_0x2bdbc1,_0x3b283f){const _0x28c126=_0x5cdc89;return this[_0x28c126(0x357)](_0x2bdbc1)[_0x28c126(0x3b1)][_0x3b283f];}[_0x5cdc89(0x214)](_0x7c09da,_0x619514,_0x4d819f){const _0x3c187e=_0x5cdc89;return this[_0x3c187e(0x357)](_0x7c09da)[_0x3c187e(0x214)](_0x619514,_0x4d819f);}[_0x5cdc89(0x311)](_0x2006bd,_0x3a8e84){const _0x4f4b7f=_0x5cdc89;let _0x593956=this[_0x4f4b7f(0x3f2)][_0x4f4b7f(0x3ac)](_0x2006bd);_0x593956||(_0x593956=new Map(),this['_model'][_0x4f4b7f(0x33c)](_0x2006bd,_0x593956));let _0x1d6174=_0x593956[_0x4f4b7f(0x3ac)](_0x3a8e84);return _0x1d6174||(_0x1d6174=new Map(),_0x593956[_0x4f4b7f(0x33c)](_0x3a8e84,_0x1d6174)),_0x1d6174;}[_0x5cdc89(0x2ec)](_0x3520a9,_0x54a313,_0x50fbf3,_0x4428f4){this['_ensurePivotMap'](_0x3520a9,_0x54a313)['set'](_0x50fbf3,_0x4428f4);}[_0x5cdc89(0x20f)](_0xc4869d,_0x5ea400,_0x54e470){const _0x8a46ea=_0x5cdc89;var _0x12336b,_0x59e4b5,_0x17ae7a,_0x398f44;((_0x59e4b5=(_0x12336b=this[_0x8a46ea(0x3f2)][_0x8a46ea(0x3ac)](_0xc4869d))==null?void 0x0:_0x12336b[_0x8a46ea(0x3ac)](_0x5ea400))==null?void 0x0:_0x59e4b5[_0x8a46ea(0x3ac)](_0x54e470))&&((_0x398f44=(_0x17ae7a=this[_0x8a46ea(0x3f2)][_0x8a46ea(0x3ac)](_0xc4869d))==null?void 0x0:_0x17ae7a[_0x8a46ea(0x3ac)](_0x5ea400))==null||_0x398f44[_0x8a46ea(0x41e)](_0x54e470));}[_0x5cdc89(0x24c)](_0x15bb0e,_0xb7e9fc){const _0x4a4b84=_0x5cdc89;this[_0x4a4b84(0x351)][_0x4a4b84(0x33c)](_0x15bb0e,_0xb7e9fc);}[_0x5cdc89(0x34f)](_0x46eabb){const _0x4e2b53=_0x5cdc89;this[_0x4e2b53(0x351)][_0x4e2b53(0x41e)](_0x46eabb);}[_0x5cdc89(0x348)](_0x4d8d36,_0x621c0d){const _0x13d50b=_0x5cdc89;let _0x394d43=this[_0x13d50b(0x25f)][_0x13d50b(0x3ac)](_0x4d8d36);_0x394d43||(_0x394d43=new Map(),this[_0x13d50b(0x25f)]['set'](_0x4d8d36,_0x394d43));let _0x29f857=_0x394d43[_0x13d50b(0x3ac)](_0x621c0d);return _0x29f857||(_0x29f857=new Map(),_0x394d43['set'](_0x621c0d,_0x29f857)),_0x29f857;}[_0x5cdc89(0x35b)](_0x562b80){const _0x1239b8=_0x5cdc89,{unitId:_0x475125,subUnitId:_0x179801,pivotTableId:_0x5969ed,pivotTableConfig:_0x2971b3,collectionConfig:_0x401ec7}=_0x562b80,_0x2f4b0b={'unitId':_0x475125,'subUnitId':_0x179801,'oldSubUnitId':_0x179801,'pivotTableId':_0x5969ed,'pivotTableConfig':_0x2971b3,'collectionConfig':_0x401ec7};this[_0x1239b8(0x2c3)][_0x1239b8(0x425)](co['id'],_0x2f4b0b,{'onlyLocal':!0x0});}[_0x5cdc89(0x2ac)](_0x4957a5,_0x5f2b55,_0x350567,_0x82384a,_0x3d529e,_0x40fb75,_0x37ca44,_0x21bb5e=!0x1){const _0x5e6805=_0x5cdc89;var _0x25415e;this[_0x5e6805(0x2c3)][_0x5e6805(0x425)](Dt['id'],{'single':{'unitId':_0x4957a5,'subUnitId':_0x5f2b55,'type':_0x350567,'pivotTableId':_0x82384a,'view':_0x3d529e,'pivotConfig':_0x40fb75},'collectionConfig':{[_0x4957a5]:_0x37ca44}},{'onlyLocal':!0x0});const _0x313337=!!((_0x25415e=this[_0x5e6805(0x27b)](_0x82384a))!=null&&_0x25415e[_0x5e6805(0x371)]()),_0x19de15=this[_0x5e6805(0x346)](_0x4957a5,_0x5f2b55,_0x82384a);_0x19de15&&this[_0x5e6805(0x3d6)]({'view':_0x3d529e,'pivotTableId':_0x82384a,'textInfo':this['getTextInfo'](),'isEmpty':_0x313337,'targetCellInfo':_0x19de15[_0x5e6805(0x28a)]},_0x21bb5e);}[_0x5cdc89(0x3d6)](_0xe3b9e0,_0x4c601b){const _0x57a8ad=_0x5cdc89,{targetCellInfo:_0x488900,pivotTableId:_0x5916a8}=_0xe3b9e0,{unitId:_0x17b861,subUnitId:_0x4f2623}=_0x488900,_0x19f1f1=this[_0x57a8ad(0x348)](_0x17b861,_0x4f2623),_0x5827fc=_0x19f1f1[_0x57a8ad(0x3ac)](_0x5916a8);let _0x1db27f,_0x5bbdf4;_0x5827fc&&(_0x1db27f=_0x5827fc[_0x57a8ad(0x315)],_0x5bbdf4=_0x5827fc[_0x57a8ad(0x3f8)]);const {rangesCache:_0x41b178,matrix:_0x3d6422}=Ui(_0xe3b9e0);_0x19f1f1[_0x57a8ad(0x33c)](_0x5916a8,{'rangeCache':_0x41b178,'matrix':_0x3d6422,'oldMatrix':_0x5bbdf4,'oldRangeCache':_0x1db27f}),_0x4c601b||this['_viewData$'][_0x57a8ad(0x2be)]({'unitId':_0x17b861,'subUnitId':_0x4f2623,'pivotTableId':_0x5916a8});}['addPivotTable'](_0x3ed908,_0x4d4023,_0x3e5acc,_0x44e3cd,_0x5510ca){const _0x2be00c=_0x5cdc89;this[_0x2be00c(0x2ec)](_0x3ed908,_0x4d4023,_0x3e5acc,_0x5510ca),this[_0x2be00c(0x24c)](_0x3e5acc,_0x44e3cd);}[_0x5cdc89(0x1e1)](_0x4571ab,_0x160938,_0x161f62){const _0x5cc6cb=_0x5cdc89,_0x1131ad=this[_0x5cc6cb(0x357)](_0x4571ab);_0x1131ad[_0x5cc6cb(0x23b)](_0x161f62)[_0x5cc6cb(0x40a)](_0x3a2f49=>{const _0x2f0c2d=_0x5cc6cb;_0x1131ad[_0x2f0c2d(0x2fb)](_0x3a2f49);}),this[_0x5cc6cb(0x3b9)](_0x4571ab,_0x161f62),this[_0x5cc6cb(0x20f)](_0x4571ab,_0x160938,_0x161f62),this['_deletePivotTableInstanceCache'](_0x161f62);}[_0x5cdc89(0x41d)](_0x1a6f8c,_0x310f37,_0x5e6c6d,_0x357d31){this['_updateModelCache'](_0x1a6f8c,_0x310f37,_0x5e6c6d,_0x357d31);}[_0x5cdc89(0x346)](_0xe496cf,_0x14b57a,_0x157bed){const _0x3b933a=_0x5cdc89;var _0x1488a3,_0x3a3cb5;const _0x473bdf=(_0x3a3cb5=(_0x1488a3=this[_0x3b933a(0x3f2)]['get'](_0xe496cf))==null?void 0x0:_0x1488a3[_0x3b933a(0x3ac)](_0x14b57a))==null?void 0x0:_0x3a3cb5[_0x3b933a(0x3ac)](_0x157bed);if(_0x473bdf)return _0x473bdf;}[_0x5cdc89(0x281)](_0x2f4b6c,_0xd43616,_0x2bcb9a){const _0x17c6f5=_0x5cdc89;var _0x5ecb62,_0x3d6aa0;const _0x489b12=(_0x3d6aa0=(_0x5ecb62=this[_0x17c6f5(0x3f2)]['get'](_0x2f4b6c))==null?void 0x0:_0x5ecb62[_0x17c6f5(0x3ac)](_0xd43616))==null?void 0x0:_0x3d6aa0[_0x17c6f5(0x3ac)](_0x2bcb9a);if(_0x489b12)return _0x489b12[_0x17c6f5(0x35d)];}[_0x5cdc89(0x27b)](_0x4589bd){const _0xb1933a=_0x5cdc89;return this[_0xb1933a(0x351)][_0xb1933a(0x3ac)](_0x4589bd);}['deleteUnitId'](_0x21ae81){const _0x4c593c=_0x5cdc89;this[_0x4c593c(0x3f2)][_0x4c593c(0x41e)](_0x21ae81);const _0x43e844=this[_0x4c593c(0x230)][_0x4c593c(0x3ac)](_0x21ae81);_0x43e844&&(_0x43e844[_0x4c593c(0x1f2)](),this['_dataFieldManagerCollection'][_0x4c593c(0x41e)](_0x21ae81)),this['_viewData'][_0x4c593c(0x41e)](_0x21ae81),this[_0x4c593c(0x2fe)]['forEach'](_0x4c3b82=>{_0x4c3b82['deleteUnitId'](_0x21ae81);});}[_0x5cdc89(0x41a)](_0xa8b640,_0x10a773,_0x3e2e5b,_0x5b19be){const _0x46f639=_0x5cdc89;return this[_0x46f639(0x357)](_0x3e2e5b[_0x46f639(0x1cb)])[_0x46f639(0x41a)](_0xa8b640,_0x10a773,_0x3e2e5b,_0x5b19be);}['createCollectionWithDataRange'](_0x1ca3a3){const _0x427402=_0x5cdc89;return this[_0x427402(0x357)](_0x1ca3a3[_0x427402(0x1cb)])[_0x427402(0x2a0)](_0x1ca3a3);}[_0x5cdc89(0x40e)](_0x4703e8,_0x203298,_0x1197c7){const _0x4a1e2c=_0x5cdc89;this['getDataFieldManager'](_0x1197c7[_0x4a1e2c(0x1cb)])['refreshData'](_0x4703e8,_0x203298,_0x1197c7);}[_0x5cdc89(0x1d4)](_0x349b3a,_0x4cdbc5){const _0x1e44e2=_0x5cdc89;this['getDataFieldManager'](_0x349b3a)[_0x1e44e2(0x2fb)](_0x4cdbc5);}[_0x5cdc89(0x3b9)](_0x25a324,_0x24bd79){const _0x5da34b=_0x5cdc89;this[_0x5da34b(0x357)](_0x25a324)[_0x5da34b(0x341)](_0x24bd79);}['getSubUnitPivotConfigs'](_0x57e814,_0x5d9b4a){const _0xc99e61=_0x5cdc89;var _0x465b7a;return(_0x465b7a=this['_model'][_0xc99e61(0x3ac)](_0x57e814))==null?void 0x0:_0x465b7a['get'](_0x5d9b4a);}[_0x5cdc89(0x2c2)](_0x1d7b38){const _0xd55cb3=_0x5cdc89;for(const [_0x3fd228,_0x31276f]of this[_0xd55cb3(0x3f2)]['entries']())for(const [_0x199e0c,_0x59dc9f]of _0x31276f[_0xd55cb3(0x2b0)]())if(_0x59dc9f[_0xd55cb3(0x3a3)](_0x1d7b38))return{'unitId':_0x3fd228,'subUnitId':_0x199e0c};return null;}[_0x5cdc89(0x378)](_0xe37a57,_0x49719b,_0x14a7cb,_0x21815d){const _0x5addb0=_0x5cdc89,_0x5a54da=this[_0x5addb0(0x348)](_0xe37a57,_0x49719b);_0x21815d?_0x5a54da[_0x5addb0(0x33c)](_0x14a7cb,_0x21815d):_0x5a54da[_0x5addb0(0x41e)](_0x14a7cb),this[_0x5addb0(0x231)]['next']({'unitId':_0xe37a57,'subUnitId':_0x49719b,'pivotTableId':_0x14a7cb});}['dispose'](){super['dispose']();}[_0x5cdc89(0x388)](_0x7554c2,_0x371f47,_0x4699a6){const _0x47badb=_0x5cdc89;var _0xbfe902,_0x209de0;const _0x397a8e=(_0x209de0=(_0xbfe902=this[_0x47badb(0x25f)][_0x47badb(0x3ac)](_0x7554c2))==null?void 0x0:_0xbfe902[_0x47badb(0x3ac)](_0x371f47))==null?void 0x0:_0x209de0[_0x47badb(0x3ac)](_0x4699a6);return _0x397a8e||null;}[_0x5cdc89(0x3c1)](_0x47209d){const _0x55005a=_0x5cdc89;this[_0x55005a(0x2a5)](_0x47209d);}[_0x5cdc89(0x2a5)](_0x2a0714){const _0x1a0873=_0x5cdc89,{token:_0x50e6fb,unitId:_0x502e28,subUnitId:_0xe0d59f}=_0x2a0714,_0x5f476f=_0x502e28+'-'+_0xe0d59f+'-'+_0x50e6fb;this[_0x1a0873(0x265)][_0x1a0873(0x3ac)](_0x5f476f)&&clearTimeout(this[_0x1a0873(0x265)][_0x1a0873(0x3ac)](_0x5f476f));const _0x5994be=setTimeout(()=>{const _0x2e3b46=_0x1a0873;this[_0x2e3b46(0x2a9)](_0x2a0714),this[_0x2e3b46(0x265)][_0x2e3b46(0x41e)](_0x5f476f);},Pi);this[_0x1a0873(0x265)]['set'](_0x5f476f,_0x5994be);}[_0x5cdc89(0x2a9)](_0x1c7aae){const _0x26d7e0=_0x5cdc89,{unitId:_0x20ff42,subUnitId:_0x4d30a3,token:_0xe7e5a7,type:_0x5abd4c,pivotConfig:_0x1161f5}=_0x1c7aae,_0x5c1ec6=this[_0x26d7e0(0x27b)](_0xe7e5a7),_0x2d25a7=_0x5c1ec6==null?void 0x0:_0x5c1ec6[_0x26d7e0(0x270)](),_0x460930=_0x1161f5!=null?_0x1161f5:this[_0x26d7e0(0x346)](_0x20ff42,_0x4d30a3,_0xe7e5a7);_0x460930&&(_0x460930[_0x26d7e0(0x371)]=!!(_0x5c1ec6!=null&&_0x5c1ec6[_0x26d7e0(0x371)]())),(_0x2d25a7||_0x5abd4c===G[_0x26d7e0(0x2c8)])&&this[_0x26d7e0(0x2ac)](_0x20ff42,_0x4d30a3,_0x5abd4c,_0xe7e5a7,_0x2d25a7,_0x460930,this[_0x26d7e0(0x357)](_0x20ff42)['toJSON']());}[_0x5cdc89(0x42a)](_0x4fb05c){const _0x268f93=_0x5cdc89,_0x2e547c={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x4fb05c)&&(_0x2e547c[_0x268f93(0x2dd)][_0x4fb05c]=this[_0x268f93(0x357)](_0x4fb05c)[_0x268f93(0x42a)]()),this['_model'][_0x268f93(0x3ac)](_0x4fb05c)){_0x2e547c[_0x268f93(0x3d7)][_0x4fb05c]={};const _0x5d7263=this['_model'][_0x268f93(0x3ac)](_0x4fb05c);_0x5d7263!=null&&_0x5d7263[_0x268f93(0x35a)]&&[..._0x5d7263['keys']()][_0x268f93(0x40a)](_0x295746=>{const _0x2f19f7=_0x268f93,_0x1a9bcc=_0x5d7263[_0x2f19f7(0x3ac)](_0x295746);_0x1a9bcc!=null&&_0x1a9bcc[_0x2f19f7(0x35a)]&&(_0x2e547c['pivotTableConfigs'][_0x4fb05c][_0x295746]={},[..._0x1a9bcc[_0x2f19f7(0x329)]()][_0x2f19f7(0x40a)](_0x8f6ee8=>{const _0x221c03=_0x2f19f7,_0x446379=_0x1a9bcc['get'](_0x8f6ee8);_0x446379&&(_0x2e547c[_0x221c03(0x3d7)][_0x4fb05c][_0x295746][_0x8f6ee8]=_0x446379);}));});}return _0x2e547c;}[_0x5cdc89(0x3d5)](_0x252da4){const _0xef2f60=_0x5cdc89;var _0x417241;const {dataFieldManagerConfig:_0xa1fb5e,pivotTableConfigs:_0x3fe155}=_0x252da4;_0xa1fb5e&&Object['keys'](_0xa1fb5e)['forEach'](_0x1ff280=>{const _0x325fb0=_0x52a0;this['getDataFieldManager'](_0x1ff280)[_0x325fb0(0x3d5)](_0xa1fb5e[_0x1ff280]);});const _0x7ebe47=[];if(_0x3fe155){const _0x27e6d2=(_0x417241=this[_0xef2f60(0x426)]['get'](_0x2b55f2)['getConfig'](_0x9e407d))!=null?_0x417241:{},{ls:_0x171e80,pbk:_0x42e3dc}=_0x27e6d2,_0x186a9b=go(so,_0x171e80,_0x42e3dc)[_0xef2f60(0x1e7)];Object['keys'](_0x3fe155)[_0xef2f60(0x40a)](_0x30c255=>{const _0x211929=_0xef2f60;let _0x2256f8=0x0;const _0x42cba0=_0x3fe155[_0x30c255];Object[_0x211929(0x329)](_0x42cba0)[_0x211929(0x40a)](_0xcb3fc8=>{const _0xd1abe1=_0x211929,_0x5877b0=_0x42cba0[_0xcb3fc8];Object[_0xd1abe1(0x329)](_0x5877b0)['forEach'](_0x288250=>{const _0x3bdc4b=_0xd1abe1,_0x1d3d68=_0x5877b0[_0x288250];if(_0x1d3d68){if(_0x2256f8>=_0x186a9b)return;_0x2256f8++;const _0x4bc615=this[_0x3bdc4b(0x357)](_0x30c255),_0xf4d04d=_0x4bc615[_0x3bdc4b(0x3b1)][_0x288250],_0xaeabf5=_0xf4d04d[_0x3bdc4b(0x2f3)]();let _0x568936=0x0;const _0x228bd1=[];for(const _0x1d523b of _0xaeabf5){const _0x3167c7=_0xf4d04d['getFieldById'](_0x1d523b);if(_0x51bc42(_0x3167c7)){const _0x14684b=_0x3167c7[_0x3bdc4b(0x369)](),_0x397dc2=_0xf4d04d[_0x3bdc4b(0x3d8)](_0x14684b);_0x397dc2&&_0x228bd1[_0x3bdc4b(0x323)]([_0x3167c7,_0x397dc2]);continue;}_0x4bc615[_0x3bdc4b(0x3fb)](_0x1d523b,_0x1d3d68[_0x3bdc4b(0x3e5)],_0x568936),_0x568936++;}_0x228bd1[_0x3bdc4b(0x40a)](([_0xb96691,_0xa631b7])=>{const _0x7b287e=_0x3bdc4b;_0xb96691[_0x7b287e(0x2cc)](_0xa631b7);});const _0x5d55bf=new _0xb58591(_0xf4d04d);_0x5d55bf[_0x3bdc4b(0x3d5)](_0x1d3d68[_0x3bdc4b(0x35d)]),this[_0x3bdc4b(0x1fb)](_0x30c255,_0xcb3fc8,_0x288250,_0x5d55bf,_0x1d3d68);const _0x2e54f9=_0x5d55bf[_0x3bdc4b(0x270)]();_0x7ebe47[_0x3bdc4b(0x323)]({'unitId':_0x30c255,'subUnitId':_0xcb3fc8,'pivotTableId':_0x288250,'view':_0x2e54f9['toJSON'](),'pivotConfig':_0x1d3d68,'type':G['Add']});const _0x2d2685=!!_0x5d55bf[_0x3bdc4b(0x371)](),_0x421cb5={'view':_0x2e54f9,'pivotTableId':_0x288250,'textInfo':this[_0x3bdc4b(0x2a7)](),'isEmpty':_0x2d2685,'targetCellInfo':_0x1d3d68['targetCellInfo']};this['updateViewData'](_0x421cb5,!0x1);}});});});}_0xa1fb5e&&Object['keys'](_0xa1fb5e)['forEach'](_0x5e74ca=>{const _0x501c34=_0xef2f60,_0x243d50=this['getDataFieldManager'](_0x5e74ca);this[_0x501c34(0x334)][_0x501c34(0x2be)](_0x243d50['collections']);}),this[_0xef2f60(0x2c3)][_0xef2f60(0x425)](Dt['id'],{'batch':_0x7ebe47,'collectionConfig':_0xa1fb5e},{'onlyLocal':!0x0});}[_0x5cdc89(0x3ec)](){const _0x43831e=_0x5cdc89;this[_0x43831e(0x2d3)](this[_0x43831e(0x3e1)][_0x43831e(0x422)]({'toJson':_0x529277=>JSON[_0x43831e(0x1ba)](this[_0x43831e(0x42a)](_0x529277)),'parseJson':_0x21ac01=>{if(!_0x21ac01)return{};try{return JSON['parse'](_0x21ac01);}catch{return{};}},'businesses':[_0x3220f9[_0x43831e(0x20d)]],'pluginName':ao,'onLoad':(_0x36dc7d,_0x5f3507)=>{this['fromJSON'](_0x5f3507);},'onUnLoad':_0x1623bd=>{const _0x5bddc2=_0x43831e;this[_0x5bddc2(0x24d)](_0x1623bd);}}));}};function _0x1164(){const _0x20625a=['interceptor','sheets-pivot.other','sheet.command.add-pivot-table','oldMatrix','GrandTotal','BLANK_PLACEHOLDER','NotNumber','dataFieldManagerConfig','value','24ENYDrY','grandTotal','slice','max','_config','_collectionConfigModel','setRangeKeyMap','varp','startRow','getFieldDataType','Month','sheets-pivot.productName','setRangeValueRedoMutation','_updateModelCache','getAutoFitColumnsMutations','2uVLkFo','colStyle','areaInfo','setDisplayName','isDate','getFieldIds','3pWVPPL','_initRemoveSheetCommandInterceptor','updatePivotTableRangeInfo','_textInfo','getMatrixFromRunTimeData','REF','sheets-pivot.dateGroup.yearMonth','deleteDataField','tuple','getDataFieldId','needSameDeleteModel','getSheetBySheetId','resetPivotTable','_initCommandInterceptListener','_exclusiveRangeService','oldRangeInfo','panel','getId','getLastCol','pushComputingStatusSubject','setSubtotalType','Div0','setConfig','sourceName','range','map','_initRegisterCommand','FORCE_STRING','UpdateValuePosition','_ensurePivotMap','custom','getDate','cornerRanges','rangeCache','rangeKeyMap','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','sheets-pivot.cellDateGroupDisplay.yearQuarter','sheets-pivot.dateGroup.hourMinute','getDataFieldByTableId','addRecord','_initClearSelectionCommandInterceptor','isColMultiMeasure','addField','getConfig','filterInfo','dateGroupField','sheet.mutation.set-pivot-field-subtotal-type','push','realDeleteValue','format','sheet.operation.pivot-table-view-formula-mark-dirty','setSortInfo','deepClone','keys','_sheetInterceptorService','getGroupFieldsInfoByIds','updateConfigCache','getPivotTableRangeInfo','sheet.mutation.pivot-update-value-position','Quarter','MAX_SAFE_INTEGER','getMatrixValue','NotFunction','_sheetsPivotTableConfigModel','_fieldsCollectionChange$','rowInfo','_pivotConfigChange$','pushUndoRedo','setPivotCollapse','pivotInitCompleted$','fieldsCollectionChange$','symbol','set','sheets-pivot.emptyPivot.filter','sheets-pivot.averageName','MIN_SAFE_INTEGER','ResetPivotTable','removeCollectionImp','shouldClear','drillDown','sheet.mutation.set-pivot-collapse','addPivotField','getPivotTableConfig','broadcastCollectionChange','_ensureViewDataMap','leafStyle','pivotConfigChange$','#e6ebfa','interceptCommand','new','registerSyncingMutations','_deletePivotTableInstanceCache','updateCollectionConfig','_pivotTableInstanceCache','pageStyle','getformat','valueIndex','column','SHEET_PIVOT_IN_MAIN_THREAD','getDataFieldManager','getRefRangeMutationsByMoveRange','YearMonthDate','size','updateConfig','_pivotTableMatrixInfo','fieldsConfig','endColumn','5491452ktFeJq','sheet.command.move-pivot-field','getSubUnitPivotMatrix','_localeService','charCodeAt','subscribe','from','removeValueFilterInfo','Row','SetPivotCollapse','getOriginFieldId','SHEET_PIVOT_EXCLUSIVE_ID','length','_ensurePivotItemRenderInfoCache','_subjectCollectionChange','getRangeKeyList','_univerInstanceService','Grand\x20Total','isEmpty','_onRefRangeChange','MonthDate','intersects','setName','YearQuarter','onQueryEnd','sideEffectUpdateWorkerCache','setLabelFilterInfo','UpdateFieldPosition','sheets-pivot.columnName','getMatrix','sheet.mutation.add-pivot-table','SetValuePivotFilter','getOwnPropertyDescriptor','RenameField','Add','_sheetsPivotRpcService','sheets-pivot.emptyPivot.values','updateValuePosition','_initLocale','isValue','BadReference','getViewData','setRangeValueUndoMutation','getCurrentSelections','Set','HourMinute','uniqueDataFieldName','sheets-pivot.cellDateGroupDisplay.quarter','_initPivotTextInfo','resetArea','getIndexesByPathStr','getPivotDirtyViewInfo','getSubtotal','subtotal','subUnitId','node','generateNewSheetName','originTargetInfo','getTypeOfUnitDisposed$','_ensurePivotItemRenderValueMatrixCache','prefix','sheet.command.pivot-drill-down','getFieldCountByArea','sheets-pivot.blank','displayName','cellValue','sheets-pivot.dateGroup.yearQuarter','setPivotFilter','has','options','275440fUELnA','sheets-pivot.dateGroup.hour','limit\x20pivot','initDataRanges','random','YearMonth','sheet.command.add-pivot-table-with-config','get','product','width','row','lastRow','collections','_markDirty$','getCurrentUnitForType','_lifecycleService','toString','undos','sheet.mutation.pivot-update-field-position','5671449vUSBgH','removeCollections','iterateField','stdDev','getRowCount','\x20-\x20','collectionChange$','parseInt','getSourceName','addDirtyPivotTable','sheets-pivot.cellDateGroupDisplay.date','getSubUnitPivotConfigs','pivotMutationGenerate','CELL_CONTENT','substring','concat','dataStream','generateMutationsByRanges','48933DmqmDu','getInterceptPoints','getValue','date','adjustSheetCellData','setDirty','pluginName','sheets-pivot.maxName','StdDev\x20of\x20','getCellMatrix','sheet.command.update-pivot-value-position','fromJSON','updateViewData','pivotTableConfigs','getFieldById','deleteField','SetFieldFormat','createDataFieldId','#FFFFFF','registerCommand','sheets-pivot.dateGroup.month','setDateType','getPivotDisplayConfig','_resourceManagerService','batch','fieldId','getColCount','sourceRangeInfo','_globalComputingSrv','AddPivotTableWithConfig','sheet.mutation.send-init-pivot-text-local','asObservable','setSourceName','Average\x20of\x20','_initSnapshot','hasOwnProperty','sheets-pivot.dateGroup.date','dataStyle','COLUMN','getName','_model','26PhAWoo','addDataFieldWithoutUnitInfo','sheets-pivot.dateGroup.minute','rangeKey','params','matrix','asyncInterceptor','sheets-pivot.cellDateGroupDisplay.hour','refreshDataField','sheets-pivot.dateGroup.year','collectionConfig','sheet.command.set-pivot-value-filter','updateFieldSourceInfo','renameField','getSortInfo','Values','_sheetsPivotTableService','rowHeaderMap','getHeaderMapItem','getFieldPositionInfoById','Subtotal','setValueFilterInfo','handleMoveRange','forEach','sheet.command.set-pivot-fields-config','getAutoDisplayNameFunction','fields','refreshData','disposableCollection','getPivotTableIdByCell','_init','filter','clearRenderCache','ManualFilter','SetSubtotalType','PivotMultipleValueId','getUnitId','var','getPivotTableCellData','addCollectionByJSON','rowStyle','rangesInfo','setPivotTable','delete','_initUnitDisposed','_refRangeHandle','leftOffset','registerPluginResource','_initPivotDataGetListener','addPivotTableWithConfig','executeCommand','_injector','RemoveField','#e6ebfb','_sheetsSelectionsService','toJSON','getPivotTableMatrixInfo','removeField','exoQEnRo\x20FpQ76yEnRo(GnQpoup,\x20yx8GnQPp6)\x20{\x20\x20\x20\x20E76\x20{\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20GnQpoupwoeRSc7EZ77c6\x20=\x20GnQpoup.uyGnE(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20R7nUnozpuucUp\x20=\x20LdfY.yc7up(cER8(GnQpoupwoeRSc7EZ77c6[9]));\x20\x20\x20\x20\x20\x20\x20\x20ne\x20(!R7nUnozpuucUp.xF)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20R7nUnozpuucUp.xF\x20=\x20YxX8p7(GnQpoupwoeRSc7EZ77c6[g]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20nu4R73p7\x20=\x20E6ypRe\x204R73p7AGR8cGdQRyp\x20!==\x20\x27xoFpenopF\x27\x20&&\x20upGe\x20nouEcoQpRe\x204R73p7AGR8cGdQRyp;\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20nuH7RIup7\x20=\x20E6ypRe\x20InoFRI\x20!==\x20\x27xoFpenopF\x27\x20&&\x20E6ypRe\x20InoFRI.GRQcEnRo\x20!==\x20\x27xoFpenopF\x27;\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20QRoEpkE\x20=\x20nu4R73p7\x20?\x20upGe\x20:\x20(nuH7RIup7\x20?\x20InoFRI\x20:\x20UGR8cGi0nu);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20XpuucUp4R7F\x20=\x20QRoEpkE.__HcupWg__.yc7up(GnQpoupwoeRSc7EZ77c6[9]);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20XpuucUp\x20=\x20QRoEpkE.__rpk__.uE7noUne6(XpuucUp4R7F);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20unUocEx7p4R7F\x20=\x20QRoEpkE.__HcupWg__.yc7up(GnQpoupwoeRSc7EZ77c6[m]);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20unUocEx7p\x20=\x20QRoEpkE.__rpk__.uE7noUne6(unUocEx7p4R7F);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20unUoacGnF\x20=\x20QRoEpkE.__lp7ne6__(unUocEx7p,\x20XpuucUp,\x20yx8GnQPp6);\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20FRXcno\x20=\x20R7nUnozpuucUp.FX;\x20\x20\x20\x20\x20\x20\x20\x20exoQEnRo\x20nutRXcnozcEQ0noU(RScEEp7o,\x20RrRuE)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20ycEEp7o\x20=\x20RScEEp7o.7pyGcQp(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x200RuE\x20=\x20RrRuE.7pyGcQp(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20ycEEp7oSc7Eu\x20=\x20ycEEp7o.uyGnE(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x200RuESc7Eu\x20=\x200RuE.uyGnE(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ne\x20(!ycEEp7o.noQGxFpu(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207pEx7o\x20ycEEp7o\x20===\x200RuE;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ne\x20(ycEEp7oSc7Eu.GpoUE0\x20<\x209\x20||\x20ycEEp7oSc7Eu[J]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207pEx7o\x20ecGup;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20ycEEp7odxeenk\x20=\x20ycEEp7oSc7Eu.uGnQp(5).TRno(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x200RuEdxeenk\x20=\x200RuESc7Eu.uGnQp(-ycEEp7oSc7Eu.GpoUE0\x20+\x205).TRno(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207pEx7o\x20ycEEp7odxeenk\x20===\x200RuEdxeenk;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20GpE\x20FRXcnoacGnF\x20=\x20ecGup;\x20\x20\x20\x20\x20\x20\x20\x20ne\x20(nuH7RIup7)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FRXcnoacGnF\x20=\x20(FRXcno\x20&&\x20FRXcno.GpoUE0)\x20?\x20FRXcno.uRXp((FXwEpX)\x20=>\x20nutRXcnozcEQ0noU(FXwEpX,\x20GRQcEnRo.0RuEocXp))\x20:\x20E7xp;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ne\x20(GRQcEnRo.0RuEocXp\x20===\x20\x27GRQcG0RuE\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FRXcnoacGnF\x20=\x20E7xp;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20}\x20pGup\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20FRXcnoacGnF\x20=\x20E7xp;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20QRouE\x20lcGnF\x20=\x20unUoacGnF\x20&&\x20FRXcnoacGnF;\x20\x20\x20\x20\x20\x20\x20\x207pEx7o\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lcGnF,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XpuucUp:\x20R7nUnozpuucUp,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20QcEQ0\x20(p77R7)\x20{\x20\x20\x20\x20\x20\x20\x20\x207pEx7o\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lcGnF:\x20ecGup,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XpuucUp:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','find','SHEET_PIVOT_TABLE_PLUGIN','Product\x20of\x20','pageRanges','_host','Sum\x20of\x20','Expand','dateType','Panel','sheet.command.reset-pivot-fields-config','tableFieldId','stringify','_globalComputedStartHelpFunc','AddPivotField','existing','return\x20','type','_configService','removeSourceRangeChange','sheets-pivot.value','NotName','single','fetchThroughAsyncInterceptors','_collectionChange$','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','setPivotTableConfig','updatePivotSource','columnFields','unitId','error','lastCol','sheets-pivot.dateGroup.yearMonthDate','col','sheet.mutation.rename-pivot-field','sheet.mutation.set-pivot-position','info','_toJSON','removeDataField','workbook\x20is\x20not\x20found','update','data','setFieldFormat','_ensurePivotTableRangeInfo','UpdateSource','updateRenderCache','sheet.command.update-pivot-table-source-range','SetPivotSetting','setPivotSort','_getAutoName','_initViewModelBySheetInterceptor','removePivotTable','stdDevp','setOptions','fetchThroughInterceptors','NUMBER','onCommandExecuted','count','#eceeff','getValuePosition','getFullYear','iterateFieldDim','viewData$','AddField','document','getMonth','getSheetBySheetName','message','dispose','register','_ensurePivotTableMatrixInfo','_initConfig','dataFieldId','rgb(255,255,255)','_pivotRenderInfoCache','getRangeKey','version','addPivotTable','sheet.command.set-pivot-sort','forRow','_sheetsPivotTableAdaptorModel','getActiveSheet','handleAsyncResponse','registerDirtyService','NO_COMMERCIAL','sheets.tabs.sheet','SetPivotTableConfig','COMMAND','_refRangeService','Column\x20','getTextSize','getTableFieldById','getDataFieldItemInfo','getSheetId','getFieldInfo','UNIVER_SHEET','pbt','_deleteModelCache','measure','_initGlobalComputed','MovePivotField','removePivotField','getUpdateRangeDeleteIds','collapseInfo','getUnit','number','STRING','sheetName','defineProperty','registerRefRange','2021310uHqSQF','pivotPerformCheck','StdDevp\x20of\x20','getStyles','string','Style','some','#f4f4f5','registerCallbackWithEvent','getFormatInfo','ptn','getValueIndex','setValuePivotFilter','cornerStyle','bind','includes','getFieldFormat','unshift','_globalComputedEndHelpFunc','sheets-pivot.varpName','_dataFieldManagerCollection','_viewData$','getFilterInfo','onStarting','sheets-pivot.stdDevpName','rowCount','AddPivotTable','_activeDirtyManagerService','sheets-pivot.varName','sheets-pivot.emptyPivot.column','setPivotSetting','getNoUsedDataFieldIds','countNums','redos','SetPivotFilter','_sheetsPivotDataSourceModel','#b2b2b2','DrillDown','fontRenderExtension','blank','_pivotTableRangeInfo','ΣValue','getLastRow','11UtKOkc','setPivotInitCompleted','Date','_dataSyncPrimaryController','result','_updatePivotTableInstanceCache','deleteUnitId','headerMap','updateFieldPosition','handleSourceRangeChange','Value','_viewUpdate$','sheets-pivot.sumName','sum','colCount','_requestResolvers','sheet.command.set-pivot-filter','startColumn','sortInfo','min','Hour','triggerDirtyFeature','getDataFieldByDataFieldId','NORMAL','_viewData','endRow','minDate','iterateFieldByArea','colHeaderMap','sheet.mutation.send-pivot-config-local','_queryingMap','prototype','2132040uZcEuD','level','valueFilter','average','SetPivotSort','endCollectChangeset','sheet.mutation.set-pivot-option','Year','_generateUniqueVersion','query','valueFields','_configVersion$','sheets-pivot.stdDevName','sheets-pivot.config','_globalSubject','_getPivotAppliedRanges','onQueryStart','Minute','MUTATION','values','getPivotTableInstance','filterId','_subjectViewChange','formJSON','getIntersects','contains','getPivotTableModelConfig','colRanges','sheets-pivot.countName','setValue','getDisplayName','remove','Filter','sheets-pivot.countNumsName','Column','targetCellInfo','_featureCalculationManagerService','dataFields','_initDataSendListener','isBottomTotal','add','sheet.mutation.remove-pivot-table','getDataFieldByRangeKey','sheet.mutation.pivot-update-field-source-info','RemovePivotField','rowRanges','sheets-pivot.cellDateGroupDisplay.yearMonth','_createExclusiveRange','_pivotInitCompleted$','floor','getPivotItemRenderInfoCache','paths','name','_pivotRenderValueMatrixCache','movePivotField','subTotalStyle','New','createCollectionWithDataRange','setCollapse','dimension','sheet.mutation.set-pivot-filter','UpdatePivotSource','updateDirtyPivotTable','SetCollapse','getTextInfo','isNaN','queryDirtyPivotTable','other','rowFields','updateView','getSheets','startCollectChangeset','703885vqmWBY','entries','versions','getFilterFieldIdByIndex','rangeType','updatePivotTableMatrixInfo','token','parse','splice','pivotTableId','updateViewInfo','getFormat','sheet.command.add-pivot-field','markDirty','call','next','replace','addCollection','getColumnCount','getTargetByPivotId','_commandService','Existing','fieldIds','getCollection','sheet.command.remove-pivot-field','Delete','256FyRGDR','addFieldWithSourceId','addExclusiveRange','refreshGroupField','setTextInfo','getIntersectsPivotTable','_subjectFieldsCollectionChange','getRangeStartEndInfo','updateRangeKeyMap','forValue','disposeWithMe','updateDataFieldsCollection','reset'];_0x1164=function(){return _0x20625a;};return _0x1164();}$=xi([nt(0x0,_0x582676(_0x126161)),nt(0x1,_0x2db36d),nt(0x2,_0x582676(_0x49cc0d)),nt(0x3,_0x3ed3f2),nt(0x4,_0x582676(_0x19443f))],$);const Oi={0x0:{0x0:{'v':_0x5cdc89(0x412),'s':oe}},0x2:{0x1:{'v':'','s':oe},0x2:{'v':'','s':oe},0x3:{'v':_0x5cdc89(0x355),'s':oe},0x4:{'v':'','s':oe},0x5:{'v':'','s':oe}},0x3:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x4:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x5:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x6:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x7:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x8:{0x0:{'v':_0x5cdc89(0x3af),'s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':_0x5cdc89(0x27a),'s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0x9:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xa:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xb:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xc:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}},0xd:{0x0:{'v':'','s':oe},0x1:{'v':'','s':R},0x2:{'v':'','s':R},0x3:{'v':'','s':R},0x4:{'v':'','s':R},0x5:{'v':'','s':R}}},Bt={'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':[]},Qo=(_0x4e96b8,_0x27e675)=>{const _0x5c672b=_0x5cdc89,_0x152876=new _0x499f9a(),_0x38ae13=new _0x499f9a(Oi),{row:_0x212917,col:_0xd1b01e}=_0x27e675;_0x38ae13['forValue']((_0x550fd4,_0x536428,_0x26e760)=>{const _0x2cd50a=_0x52a0;let _0x55eec6='';_0x26e760['v']===_0x2cd50a(0x412)?_0x55eec6=_0x4e96b8[_0x2cd50a(0x412)]:_0x26e760['v']==='row'?_0x55eec6=_0x4e96b8[_0x2cd50a(0x3af)]:_0x26e760['v']==='column'?_0x55eec6=_0x4e96b8[_0x2cd50a(0x355)]:_0x26e760['v']===_0x2cd50a(0x27a)&&(_0x55eec6=_0x4e96b8[_0x2cd50a(0x27a)]),_0x152876[_0x2cd50a(0x284)](_0x550fd4+_0x212917,_0x536428+_0xd1b01e,{..._0x26e760,'v':_0x55eec6});});const _0x787413=_0x34d097[_0x5c672b(0x328)](Bt);return Object['keys'](Bt)[_0x5c672b(0x40a)](_0x2587df=>{const _0x221c35=_0x5c672b;_0x787413[_0x2587df]=Bt[_0x2587df]['map'](_0x51f0ec=>({..._0x51f0ec,'startRow':_0x51f0ec[_0x221c35(0x2e7)]+_0x212917,'endRow':_0x51f0ec[_0x221c35(0x260)]+_0x212917,'startColumn':_0x51f0ec['startColumn']+_0xd1b01e,'endColumn':_0x51f0ec[_0x221c35(0x35e)]+_0xd1b01e}));}),{'matrixCache':_0x152876,'rangesCache':_0x787413};};function Ai(_0x31bdda,_0x3b82fb){const _0x29ccbb=_0x5cdc89;let _0x280656='';const _0x4bf5a0=this[_0x29ccbb(0x2a7)]();switch(_0x3b82fb){case _0x47fce5[_0x29ccbb(0x26a)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x33e)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x1e7)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x283)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x23c)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x288)]+_0x31bdda;break;case _0x47fce5['max']:_0x280656=_0x4bf5a0[_0x29ccbb(0x3d1)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x25a)]:_0x280656=_0x4bf5a0['sheets-pivot.minName']+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x3ad)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x2ea)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x3bb)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x273)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x1e2)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x234)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x254)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x253)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x418)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x238)]+_0x31bdda;break;case _0x47fce5[_0x29ccbb(0x2e6)]:_0x280656=_0x4bf5a0[_0x29ccbb(0x22f)]+_0x31bdda;break;default:_0x280656=_0x31bdda;break;}return _0x280656;}function ki(_0x1bf6f4,_0x38ff19,_0x4e8b8c,_0x187ac4,_0x31c4e1){const _0x2af2c0=_0x5cdc89;var _0x318d68,_0x59b507,_0x4daf3e,_0x3faadc,_0x11574a;const _0xd4e628=_0x36796a(_0x1bf6f4,_0x38ff19),{rangesInfo:_0x3425e5,areaInfo:_0x53c7f6,headerMap:_0x301fbf}=_0x31c4e1;if(!_0x3425e5||!_0x53c7f6||!_0x301fbf)return;const _0x47f313=Object[_0x2af2c0(0x329)](_0x3425e5)[_0x2af2c0(0x1af)](_0x4b9423=>_0x3425e5[_0x4b9423]['some'](_0x37ab9c=>_0x5548d4[_0x2af2c0(0x280)](_0x37ab9c,_0xd4e628))),_0x49b634=_0x53c7f6;let _0x46c08f,_0xae1716,_0x43b514;if(_0x47f313===_0x2af2c0(0x294))_0x46c08f=(_0x318d68=_0x49b634==null?void 0x0:_0x49b634[_0x2af2c0(0x335)])==null?void 0x0:_0x318d68[_0x1bf6f4],_0xae1716=(_0x59b507=_0x301fbf==null?void 0x0:_0x301fbf['rowHeaderMap'])==null?void 0x0:_0x59b507[_0x38ff19],_0x43b514=_0xae1716==null?void 0x0:_0xae1716[_0x2af2c0(0x1b9)];else{if(_0x47f313===_0x2af2c0(0x282))_0x46c08f=(_0x4daf3e=_0x49b634==null?void 0x0:_0x49b634['colInfo'])==null?void 0x0:_0x4daf3e[_0x38ff19],_0xae1716=(_0x3faadc=_0x301fbf[_0x2af2c0(0x263)])==null?void 0x0:_0x3faadc[_0x1bf6f4+0x1+_0x38ff19-_0x3425e5[_0x2af2c0(0x282)][0x0]['startColumn']],_0x43b514=_0xae1716==null?void 0x0:_0xae1716['tableFieldId'];else{if(_0x47f313===_0x2af2c0(0x314))_0x46c08f=(_0x11574a=_0x49b634==null?void 0x0:_0x49b634['cornerInfo'])==null?void 0x0:_0x11574a[_0x38ff19],_0x43b514=_0x46c08f==null?void 0x0:_0x46c08f['tableFieldId'];else{if(_0x47f313===_0x2af2c0(0x1b2)){const _0xe9196f=_0x4e8b8c==null?void 0x0:_0x4e8b8c['fi'];_0xe9196f!==void 0x0&&(_0x43b514=_0x187ac4[_0x2af2c0(0x2b2)](_0xe9196f));}}}}return{'filterId':_0x43b514,'info':_0x46c08f,'data':_0x4e8b8c,'headerInfo':_0xae1716};}function Li(_0x4ab6c4,_0x8f60fa,_0x3c8ef1){const _0x2d1e9a=_0x5cdc89,_0x686d6d=_0x4ab6c4['dataFieldsCollection'],_0x118c5f=_0x686d6d['getFieldIds'](),_0x1d1993=new Set();_0x4ab6c4[_0x2d1e9a(0x3ba)](_0x96e24e=>{const _0x246c6f=_0x2d1e9a;_0x1d1993[_0x246c6f(0x28f)](_0x96e24e[_0x246c6f(0x1f6)]);});const _0x1c72e1=_0x118c5f['map'](_0x5a76a6=>{const _0x590459=_0x2d1e9a,_0x2fce1a=_0x686d6d[_0x590459(0x3d8)](_0x5a76a6);return{'checked':_0x1d1993['has'](_0x5a76a6),'dataFieldId':_0x2fce1a['id'],'id':_0x2fce1a['id'],'name':_0x686d6d['getDisplayName'](_0x2fce1a['id']),'type':_0x2fce1a[_0x590459(0x2e8)](),'pivotTableId':_0x8f60fa};}),_0x24f5fa=[];_0x4ab6c4['iterateFieldByArea'](_0x33152d[_0x2d1e9a(0x367)],_0x4208d9=>{const _0x697b08=_0x2d1e9a;_0x24f5fa[_0x697b08(0x323)]({'dataFieldId':_0x4208d9[_0x697b08(0x1f6)],'tableFieldId':_0x4208d9[_0x697b08(0x305)](),'displayName':_0x4208d9[_0x697b08(0x285)]()});});const _0x55e864=[];_0x4ab6c4['iterateFieldByArea'](_0x33152d[_0x2d1e9a(0x289)],_0x432b76=>{const _0x31105f=_0x2d1e9a;_0x55e864[_0x31105f(0x323)]({'dataFieldId':_0x432b76[_0x31105f(0x1f6)],'tableFieldId':_0x432b76[_0x31105f(0x305)](),'displayName':_0x432b76[_0x31105f(0x285)]()});});const _0x237df6=[];if(_0x4ab6c4[_0x2d1e9a(0x262)](_0x33152d[_0x2d1e9a(0x251)],_0x413ae3=>{const _0x1ed419=_0x2d1e9a;_0x237df6[_0x1ed419(0x323)]({'dataFieldId':_0x413ae3[_0x1ed419(0x1f6)],'tableFieldId':_0x413ae3[_0x1ed419(0x305)](),'displayName':_0x413ae3[_0x1ed419(0x285)](),'format':_0x413ae3[_0x1ed419(0x2ba)](),'subTotalType':_0x413ae3[_0x1ed419(0x393)]()});}),_0x237df6[_0x2d1e9a(0x36b)]>0x1){const _0xeb6dda=_0x4ab6c4[_0x2d1e9a(0x227)]();(_0x4ab6c4[_0x2d1e9a(0x31d)]()?_0x55e864:_0x24f5fa)[_0x2d1e9a(0x2b7)](_0xeb6dda,0x0,{'dataFieldId':'','tableFieldId':_0x2d1e9a(0x416),'displayName':_0x2d1e9a(0x245)});}const _0x65a520=[];_0x4ab6c4[_0x2d1e9a(0x262)](_0x33152d[_0x2d1e9a(0x287)],_0x31535f=>{const _0x2562e9=_0x2d1e9a;_0x65a520['push']({'dataFieldId':_0x31535f[_0x2562e9(0x1f6)],'tableFieldId':_0x31535f[_0x2562e9(0x305)](),'displayName':_0x31535f[_0x2562e9(0x285)]()});});const _0x26d5a5=_0x3c8ef1[_0x2d1e9a(0x3e5)];return{'sourceList':_0x1c72e1,'sourceRange':_0x26d5a5,'rowFields':_0x24f5fa,'columnFields':_0x55e864,'valueFields':_0x237df6,'filterFields':_0x65a520,'positionInfo':_0x3c8ef1['targetCellInfo']};}function fo(_0x34d0f2,_0x3e3599,_0x240356='',_0x212907={}){const _0x54b1fa=_0x5cdc89,_0x4909d0=_0x34d0f2[_0x54b1fa(0x3ac)](_0xfc5594);for(const _0x1cbbda in _0x3e3599)if(Object[_0x54b1fa(0x266)][_0x54b1fa(0x3ed)][_0x54b1fa(0x2bd)](_0x3e3599,_0x1cbbda)){const _0x1bd07d=_0x240356?_0x240356+'.'+_0x1cbbda:_0x1cbbda;typeof _0x3e3599[_0x1cbbda]=='object'&&_0x3e3599[_0x1cbbda]!==null&&!Array['isArray'](_0x3e3599[_0x1cbbda])?fo(_0x34d0f2,_0x3e3599[_0x1cbbda],_0x1bd07d,_0x212907):_0x212907[_0x1bd07d]=_0x4909d0['t'](_0x1bd07d);}return _0x212907;}const Gt=_0x10e8c8=>{const _0x37c63f=_0x5cdc89;if(!_0x10e8c8)return[];const {rowRanges:_0x135e02,colRanges:_0x248ec1,cornerRanges:_0x24274b,dataRanges:_0x236ae7,pageRanges:_0x2cebc5}=_0x10e8c8,_0x2b024c=[..._0x248ec1,..._0x135e02,..._0x236ae7,..._0x24274b][_0x37c63f(0x412)](_0x5aadad=>_0x5aadad[_0x37c63f(0x2e7)]>=0x0&&_0x5aadad[_0x37c63f(0x258)]>=0x0&&_0x5aadad[_0x37c63f(0x260)]>=0x0&&_0x5aadad[_0x37c63f(0x35e)]>=0x0);let _0xe57a06=Number[_0x37c63f(0x330)],_0x17fcb1=Number[_0x37c63f(0x33f)],_0x188f78=Number['MAX_SAFE_INTEGER'],_0x4da86=Number[_0x37c63f(0x33f)];for(let _0xc6f78=0x0;_0xc6f78<_0x2b024c['length'];_0xc6f78++)_0xe57a06=Math[_0x37c63f(0x25a)](_0xe57a06,_0x2b024c[_0xc6f78][_0x37c63f(0x2e7)]),_0x17fcb1=Math[_0x37c63f(0x2e2)](_0x17fcb1,_0x2b024c[_0xc6f78][_0x37c63f(0x260)]),_0x188f78=Math[_0x37c63f(0x25a)](_0x188f78,_0x2b024c[_0xc6f78][_0x37c63f(0x258)]),_0x4da86=Math[_0x37c63f(0x2e2)](_0x4da86,_0x2b024c[_0xc6f78][_0x37c63f(0x35e)]);return[..._0x2cebc5,{'startRow':_0xe57a06,'endRow':_0x17fcb1,'startColumn':_0x188f78,'endColumn':_0x4da86}];};function Bi(_0x448c30,_0x2451c6){const _0x4d2e08=_0x5cdc89,_0x58c131=_0x2451c6[_0x4d2e08(0x3f7)]['drillDown'],{pivotTableId:_0x3a8623,unitId:_0x2ba351,subUnitId:_0x1bde8f}=_0x2451c6;if(!_0x58c131)return;const _0x499892=_0x448c30[_0x4d2e08(0x3ac)]($),_0x81c242=_0x499892[_0x4d2e08(0x27b)](_0x3a8623),_0x46b47c=_0x499892['getPivotTableConfig'](_0x2ba351,_0x1bde8f,_0x3a8623);if(!_0x81c242||!_0x46b47c)return;const _0xd7921c=_0x81c242[_0x4d2e08(0x391)](_0x58c131[_0x4d2e08(0x2fc)]);if(!(_0xd7921c!=null&&_0xd7921c[_0x4d2e08(0x36b)]))return;const _0x45cba7=_0x46b47c[_0x4d2e08(0x3e5)],{unitId:_0x28ee01,subUnitId:_0x2f1d59,range:_0x3bd56d}=_0x45cba7;let _0x3a71c5=0x0;const _0x278796=_0x81c242['dataFieldsCollection']['getFieldIds']()['reduce']((_0x1d7661,_0x3a8fec)=>{const _0x57c0ab=_0x4d2e08;var _0x3223b8;const _0x3e7c1d=(_0x3223b8=_0x81c242[_0x57c0ab(0x25d)](_0x3a8fec))==null?void 0x0:_0x3223b8[_0x57c0ab(0x353)]();return _0x3e7c1d&&(_0x1d7661[String(_0x3a71c5)]=_0x3e7c1d),_0x3a71c5++,_0x1d7661;},{});return{'indexes':_0xd7921c,'range':_0x3bd56d,'sourceUnitId':_0x28ee01,'sourceSubUnitId':_0x2f1d59,'formatMap':_0x278796};}function Ho(_0x3a904e,_0x18327c){const _0x23e905=_0x5cdc89;if(!_0x3a904e||!_0x18327c)return!0x0;const _0x7eda04=_0x536af4(jo,Wo),_0x546d70=new Function(_0x23e905(0x1be)+_0x7eda04)()(_0x3a904e,_0x18327c)[_0x23e905(0x1f1)],_0xb1dd49=_0x29944a(_0x546d70,'sf',Lo);return!((_0x546d70==null?void 0x0:_0x546d70['rt'])===_0x575439[_0x23e905(0x202)]&&!_0xb1dd49);}function go(_0x22b788,_0x5c7233,_0x38f8dd){const _0x174f3b=_0x5cdc89,_0x5b2cdc={'count':_0x22b788,'timeValid':!0x1};if(!_0x5c7233||!_0x38f8dd)return _0x5b2cdc;const _0x2d6e41=_0x536af4(jo,Wo),_0x54210b=new Function(_0x174f3b(0x1be)+_0x2d6e41)()(_0x5c7233,_0x38f8dd);if(_0x54210b!=null&&_0x54210b['valid']){const _0x2c7f87=_0x54210b['message'],_0x46cd0a=_0x29944a(_0x2c7f87,'sf',Lo);return{'count':_0x1fab5e(_0x2c7f87,_0x46cd0a,_0x174f3b(0x226),_0x22b788,_0x22b788,0x0),'timeValid':_0x46cd0a};}return _0x5b2cdc;}function Ko(_0x2e5971,_0x8b54f0,_0x44cc74,_0x55a22d){const _0x4b5d65=_0x5cdc89,_0x163800={'subUnitId':_0x44cc74,'unitId':_0x8b54f0,'cellValue':_0x3a6314(_0x55a22d)},_0x114fb7=_0x458c49(_0x2e5971,_0x163800);let _0x510505=!0x1;return new _0x499f9a(_0x114fb7[_0x4b5d65(0x3a0)])['forValue']((_0x23b8a2,_0x3e64b2,_0x189fd6)=>{const _0x590fe8=_0x4b5d65;if(!_0x510505&&_0x189fd6&&(_0x189fd6[_0x590fe8(0x312)]||_0x189fd6['f']||_0x189fd6['p']||_0x189fd6['s']||_0x189fd6['si']||_0x189fd6['t']||_0x189fd6['v']))return _0x510505=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x3ffa76['id'],'params':_0x114fb7},'setRangeValueRedoMutation':{'id':_0x3ffa76['id'],'params':_0x163800},'shouldClear':_0x510505};}function Gi(_0x6120a3){const {row:_0x406430,col:_0x56ac77}=_0x6120a3,_0x125d36={'startRow':_0x406430,'endRow':_0x406430,'startColumn':_0x56ac77,'endColumn':_0x56ac77},_0x3fd17a={'startRow':_0x406430+0x2,'endRow':_0x406430+0xe,'startColumn':_0x56ac77,'endColumn':_0x56ac77+0x6};return[_0x125d36,_0x3fd17a];}function $i(_0x598361,_0x5a1f7c,_0x4b94a4){const _0x1caae3=_0x5cdc89,{cornerView:_0x2b01db,rowView:_0x3c2901,colView:_0x50164d,pageView:_0x566b56}=_0x598361,{row:_0x3cb5ba,col:_0x269da0}=_0x5a1f7c;if(_0x4b94a4)return{'rowCount':bi+_0x3cb5ba,'colCount':Si+_0x269da0};const _0x11d450=_0x566b56[_0x1caae3(0x3b0)]>-0x1?_0x566b56[_0x1caae3(0x3b0)]+0x1:0x0,_0x234a66=_0x566b56[_0x1caae3(0x1cd)]>-0x1?_0x566b56['lastCol']:0x0,_0x50eb88=_0x3cb5ba+_0x11d450+(_0x11d450?0x1:0x0)+_0x2b01db['rowCount']+_0x3c2901[_0x1caae3(0x235)],_0x4656b4=_0x269da0+_0x234a66,_0x3f9df5=_0x269da0+_0x2b01db['colCount']+_0x50164d['colCount'],_0x50b265=Math[_0x1caae3(0x2e2)](_0x4656b4,_0x3f9df5);return{'rowCount':_0x50eb88,'colCount':_0x50b265};}function we(_0xd48fff,_0x1be80b,_0x10dd46,_0x42442b){const _0x293bd2=_0x5cdc89,{row:_0x14b932,col:_0x59ad19,unitId:_0x4a3210,subUnitId:_0x28d0c0}=_0x10dd46,_0x1a0cc3=$i(_0x1be80b,{'row':_0x14b932,'col':_0x59ad19},_0x42442b),_0x59e349=_0xd48fff['get'](_0x2db36d),_0x3ae3a0=_0xa32eb7(_0x59e349,{'unitId':_0x4a3210,'subUnitId':_0x28d0c0}),_0x3121b6=[],_0x46f0f9=[];if(!_0x3ae3a0)return{'undos':_0x46f0f9,'redos':_0x3121b6};const {worksheet:_0x2bb246}=_0x3ae3a0,_0x5c68a8=_0x2bb246[_0x293bd2(0x3bc)](),_0x5c1edf=_0x2bb246[_0x293bd2(0x2c1)]();return _0x5c68a8<_0x1a0cc3['rowCount']&&(_0x3121b6[_0x293bd2(0x323)]({'id':_0x28a6b8['id'],'params':{'unitId':_0x4a3210,'subUnitId':_0x28d0c0,'range':{'startRow':_0x5c68a8,'endRow':_0x1a0cc3['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x5c1edf-0x1}}}),_0x46f0f9['push']({'id':_0x50bd07['id'],'params':{'unitId':_0x4a3210,'subUnitId':_0x28d0c0,'range':{'startRow':_0x5c68a8,'endRow':_0x1a0cc3['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x5c1edf-0x1}}})),_0x5c1edf<_0x1a0cc3['colCount']&&(_0x3121b6[_0x293bd2(0x323)]({'id':_0x2608da['id'],'params':{'unitId':_0x4a3210,'subUnitId':_0x28d0c0,'range':{'startRow':0x0,'endRow':_0x5c68a8-0x1,'startColumn':_0x5c1edf,'endColumn':_0x1a0cc3[_0x293bd2(0x255)]-0x1}}}),_0x46f0f9['push']({'id':_0x306d54['id'],'params':{'unitId':_0x4a3210,'subUnitId':_0x28d0c0,'range':{'startRow':0x0,'endRow':_0x5c68a8-0x1,'startColumn':_0x5c1edf,'endColumn':_0x1a0cc3[_0x293bd2(0x255)]-0x1}}})),{'undos':_0x46f0f9,'redos':_0x3121b6};}function Ji(_0x5105fb){const _0x5879bb=_0x5cdc89;let _0x466d3c=0x0;for(let _0x5f1a6e=0x0;_0x5f1a6e<_0x5105fb['length'];_0x5f1a6e++){const _0x27cba7=_0x5105fb[_0x5879bb(0x363)](_0x5f1a6e);_0x27cba7>=0x4e00&&_0x27cba7<=0x9fff||_0x27cba7>=0x3000&&_0x27cba7<=0x303f||_0x27cba7>=0xff00&&_0x27cba7<=0xffef?_0x466d3c+=0x2:_0x466d3c+=0x1;}return _0x466d3c;}function yo(_0x8e7062,_0x53f5cf,_0x5db8cc,_0x216f53){const _0x1f7722=_0x5cdc89;var _0xd5c82d,_0x5f1b1e,_0x58f9d7,_0x58548a;const {rowCount:_0x543801,colCount:_0x53fd97,headerMap:_0x3534d7}=_0x8e7062,_0x4b6783=0x64,_0x59da81=Math['min'](_0x543801,_0x4b6783),_0x409838=Math[_0x1f7722(0x25a)](_0x53fd97,_0x4b6783);let _0x36d9d7='',_0x4bdbef=0x0;for(let _0x1d0c10=0x0;_0x1d0c10<_0x59da81;_0x1d0c10++)for(let _0x4025b8=0x0;_0x4025b8<_0x409838;_0x4025b8++){const _0x327d4f={...(_0x5f1b1e=(_0xd5c82d=_0x8e7062[_0x1f7722(0x1d7)])==null?void 0x0:_0xd5c82d[_0x1d0c10])==null?void 0x0:_0x5f1b1e[_0x4025b8]},_0x3e4aee=(_0x58f9d7=_0x3534d7[_0x1d0c10])==null?void 0x0:_0x58f9d7['tableFieldId'],_0x3c06b1=_0x216f53[_0x3e4aee];let _0x26e930=_0x8e7062[_0x1f7722(0x3cc)](_0x1d0c10,_0x4025b8);if(_0x327d4f){const _0x10b745=_0x5db8cc?_0x4025b8===0x0&&((_0x58548a=_0x8e7062[_0x1f7722(0x405)](_0x4025b8+0x1))==null?void 0x0:_0x58548a[_0x1f7722(0x386)]):!0x1;_0x26e930=ht(_0x327d4f,_0x10b745,_0x3c06b1,_0x53f5cf);}if(_0x26e930!==void 0x0){const _0x495dba=Ji(String(_0x26e930));_0x4bdbef<_0x495dba&&(_0x36d9d7=String(_0x26e930),_0x4bdbef=_0x495dba);}}return _0x36d9d7;}function Wi(_0x129dbc){const _0x12b5a9=_0x5cdc89,{rowCount:_0x309618,colCount:_0x5dbeff}=_0x129dbc;let _0x2d3e33='',_0x1cf304=0x0;for(let _0xe4a6c5=_0x309618-0x1;_0xe4a6c5>0x0&&_0xe4a6c5>_0x309618-0x3;_0xe4a6c5--)for(let _0x3c0d82=0x0;_0x3c0d82<_0x5dbeff;_0x3c0d82++){const _0x2f73ee=_0x129dbc[_0x12b5a9(0x3cc)](_0xe4a6c5,_0x3c0d82);if(_0x2f73ee!==void 0x0){const _0x504548=String(_0x2f73ee)['length'];_0x1cf304<_0x504548&&(_0x2d3e33=String(_0x2f73ee),_0x1cf304=_0x504548);}}return _0x2d3e33;}function ji(_0x40905e){const _0x324a76=_0x5cdc89,{rowCount:_0x49d2e9,colCount:_0x20af15}=_0x40905e;let _0x440d2f='',_0x1ec212=0x0;for(let _0x5d4d8c=0x0;_0x5d4d8c<_0x49d2e9;_0x5d4d8c++)for(let _0x35e9bb=0x0;_0x35e9bb<_0x20af15;_0x35e9bb++){const _0x16fc4b=_0x40905e[_0x324a76(0x3cc)](_0x5d4d8c,_0x35e9bb);if(_0x16fc4b!==void 0x0){const _0x3197ee=String(_0x16fc4b)['length'];_0x1ec212<_0x3197ee&&(_0x440d2f=String(_0x16fc4b),_0x1ec212=_0x3197ee);}}return _0x440d2f;}function Qi(_0x4a7acd,_0x2bc489){const _0x213ce9=_0x5cdc89,{rowFields:_0x4c1122,columnFields:_0x555832,valueFields:_0x487a3c,filterFields:_0x2b805c,dimension:_0x141beb,measure:_0x1bd7b4}=_0x2bc489;for(const _0x2dac8f of _0x4c1122){const _0x100e68=_0x141beb[_0x2dac8f];_0x100e68&&_0x4a7acd['getDataFieldByDataFieldId'](_0x100e68['dataFieldId'])&&(_0x4a7acd['addFieldWithSourceId'](_0x100e68[_0x213ce9(0x1f6)],_0x33152d[_0x213ce9(0x367)],void 0x0,_0x2dac8f),_0x100e68[_0x213ce9(0x39f)]&&_0x4a7acd[_0x213ce9(0x400)](_0x100e68['id'],_0x100e68[_0x213ce9(0x39f)]),_0x100e68[_0x213ce9(0x259)]&&_0x4a7acd['setSortInfo'](_0x100e68['id'],_0x100e68[_0x213ce9(0x259)]),_0x100e68[_0x213ce9(0x320)]&&_0x4a7acd['setLabelFilterInfo'](_0x100e68['id'],_0x100e68[_0x213ce9(0x320)]));}for(const _0x788452 of _0x555832){const _0x2938cc=_0x141beb[_0x788452];_0x2938cc&&_0x4a7acd[_0x213ce9(0x25d)](_0x2938cc[_0x213ce9(0x1f6)])&&(_0x4a7acd[_0x213ce9(0x2ca)](_0x2938cc[_0x213ce9(0x1f6)],_0x33152d[_0x213ce9(0x289)],void 0x0,_0x788452),_0x2938cc[_0x213ce9(0x259)]&&_0x4a7acd[_0x213ce9(0x327)](_0x2938cc['id'],_0x2938cc[_0x213ce9(0x259)]),_0x2938cc['filterInfo']&&_0x4a7acd[_0x213ce9(0x379)](_0x2938cc['id'],_0x2938cc[_0x213ce9(0x320)]),_0x2938cc[_0x213ce9(0x39f)]&&_0x4a7acd[_0x213ce9(0x400)](_0x2938cc['id'],_0x2938cc['displayName']));}for(const _0x5abd47 of _0x2b805c){const _0x2948d1=_0x141beb[_0x5abd47];_0x2948d1&&_0x4a7acd[_0x213ce9(0x25d)](_0x2948d1[_0x213ce9(0x1f6)])&&(_0x4a7acd[_0x213ce9(0x2ca)](_0x2948d1[_0x213ce9(0x1f6)],_0x33152d[_0x213ce9(0x287)],void 0x0,_0x5abd47),_0x2948d1['sortInfo']&&_0x4a7acd[_0x213ce9(0x327)](_0x2948d1['id'],_0x2948d1[_0x213ce9(0x259)]),_0x2948d1[_0x213ce9(0x320)]&&_0x4a7acd[_0x213ce9(0x379)](_0x2948d1['id'],_0x2948d1['filterInfo']),_0x2948d1[_0x213ce9(0x39f)]&&_0x4a7acd[_0x213ce9(0x400)](_0x2948d1['id'],_0x2948d1[_0x213ce9(0x39f)]));}for(const _0x357ab8 of _0x487a3c){const _0xeb3dd8=_0x1bd7b4[_0x357ab8];_0xeb3dd8&&_0x4a7acd[_0x213ce9(0x25d)](_0xeb3dd8[_0x213ce9(0x1f6)])&&(_0x4a7acd['addFieldWithSourceId'](_0xeb3dd8[_0x213ce9(0x1f6)],_0x33152d[_0x213ce9(0x251)],void 0x0,_0x357ab8),_0xeb3dd8[_0x213ce9(0x394)]!==void 0x0&&_0x4a7acd[_0x213ce9(0x308)](_0x357ab8,_0xeb3dd8[_0x213ce9(0x394)]),_0xeb3dd8[_0x213ce9(0x325)]&&_0x4a7acd[_0x213ce9(0x1d8)](_0x357ab8,_0xeb3dd8['format']),_0xeb3dd8[_0x213ce9(0x39f)]&&_0x4a7acd['renameField'](_0xeb3dd8['id'],_0xeb3dd8[_0x213ce9(0x39f)]));}const _0x2b0eee=_0x2bc489[_0x213ce9(0x269)];for(const {fieldId:_0x27592d,filterInfo:_0x5d86be}of _0x2b0eee)_0x4a7acd[_0x213ce9(0x408)](_0x27592d,_0x5d86be);}function Hi(_0x27ce6e,_0xcd1a52){const _0x2e5f0e=_0x5cdc89,_0xb47dc=[];_0xcd1a52===_0x33152d[_0x2e5f0e(0x367)]&&_0x27ce6e[_0x2e5f0e(0x262)](_0x33152d[_0x2e5f0e(0x367)],_0x4b2418=>{const _0x3961d7=_0x2e5f0e;_0xb47dc[_0x3961d7(0x323)](_0x4b2418[_0x3961d7(0x305)]());}),_0xcd1a52===_0x33152d['Column']&&_0x27ce6e['iterateFieldByArea'](_0x33152d[_0x2e5f0e(0x289)],_0x546df5=>{const _0x38d77b=_0x2e5f0e;_0xb47dc[_0x38d77b(0x323)](_0x546df5[_0x38d77b(0x305)]());}),_0xcd1a52===_0x33152d[_0x2e5f0e(0x287)]&&_0x27ce6e[_0x2e5f0e(0x262)](_0x33152d[_0x2e5f0e(0x287)],_0x18a93e=>{const _0xd2a938=_0x2e5f0e;_0xb47dc[_0xd2a938(0x323)](_0x18a93e['getId']());}),_0xcd1a52===_0x33152d[_0x2e5f0e(0x251)]&&_0x27ce6e[_0x2e5f0e(0x262)](_0x33152d[_0x2e5f0e(0x251)],_0x400412=>{const _0x3150df=_0x2e5f0e;_0xb47dc[_0x3150df(0x323)](_0x400412[_0x3150df(0x305)]());}),_0xcd1a52===void 0x0&&_0x27ce6e[_0x2e5f0e(0x3ba)](_0x232a05=>{const _0xbd5d6d=_0x2e5f0e;_0xb47dc[_0xbd5d6d(0x323)](_0x232a05[_0xbd5d6d(0x305)]());});const _0x1dfcdf=_0xb47dc['length'];for(let _0x455c69=_0x1dfcdf-0x1;_0x455c69>=0x0;_0x455c69--)_0x27ce6e[_0x2e5f0e(0x1ad)](_0xb47dc[_0x455c69]);const _0x138453=_0x27ce6e['getValueFilterInfos']();for(const _0x50dec1 in _0x138453)_0x27ce6e[_0x2e5f0e(0x366)](_0x50dec1);}function Ki(_0x537330,_0x170b3b){const _0x1401c0=_0x5cdc89,_0x33fe5c=new Date(_0x729f53(_0x170b3b)),_0x31e85b=new Date(_0x729f53(_0x537330)),_0x314dba=_0x33fe5c[_0x1401c0(0x1ea)](),_0x587a72=_0x31e85b[_0x1401c0(0x1ea)](),_0x316e7c=_0x33fe5c[_0x1401c0(0x1ef)](),_0x47830f=_0x31e85b['getMonth'](),_0x1d88dd=_0x33fe5c[_0x1401c0(0x313)](),_0x1927d4=_0x31e85b[_0x1401c0(0x313)](),_0x59a53d=_0x314dba===_0x587a72,_0xdcef71=_0x59a53d&&_0x316e7c===_0x47830f;return _0x59a53d&&_0xdcef71&&!(_0xdcef71&&_0x1d88dd===_0x1927d4)?_0x344f66['YearMonthDate']:_0x59a53d&&!_0xdcef71?_0x344f66['YearMonth']:_0x344f66[_0x1401c0(0x26e)];}function qo(_0x9a7d32,_0x3b7ac8){const _0x2b4574=_0x5cdc89,_0x37e54b=_0x9a7d32['get']($)[_0x2b4574(0x2a7)]();let _0x31826a='';switch(_0x3b7ac8){case _0x344f66[_0x2b4574(0x359)]:_0x31826a=_0x37e54b[_0x2b4574(0x1ce)];break;case _0x344f66[_0x2b4574(0x3aa)]:_0x31826a=_0x37e54b[_0x2b4574(0x2fa)];break;case _0x344f66['Year']:_0x31826a=_0x37e54b[_0x2b4574(0x3fc)];break;case _0x344f66[_0x2b4574(0x2e9)]:_0x31826a=_0x37e54b[_0x2b4574(0x3de)];break;case _0x344f66[_0x2b4574(0x32f)]:_0x31826a=_0x37e54b['sheets-pivot.dateGroup.quarter'];break;case _0x344f66[_0x2b4574(0x249)]:_0x31826a=_0x37e54b[_0x2b4574(0x3ee)];break;case _0x344f66[_0x2b4574(0x38c)]:_0x31826a=_0x37e54b[_0x2b4574(0x319)];break;case _0x344f66['Hour']:_0x31826a=_0x37e54b[_0x2b4574(0x3a6)];break;case _0x344f66[_0x2b4574(0x278)]:_0x31826a=_0x37e54b[_0x2b4574(0x3f5)];break;case _0x344f66[_0x2b4574(0x373)]:_0x31826a=_0x37e54b['sheets-pivot.dateGroup.monthDate'];break;case _0x344f66[_0x2b4574(0x376)]:_0x31826a=_0x37e54b[_0x2b4574(0x3a1)];break;default:_0x31826a='';break;}return _0x31826a;}const Xo=_0x5cdc89(0x274),Mo={};var qi=Object[_0x5cdc89(0x37f)],Xi=(_0x1d7ff2,_0x26b323,_0x28806c,_0x3e749d)=>{const _0x3e1e0b=_0x5cdc89;for(var _0x52640e=_0x3e749d>0x1?void 0x0:_0x3e749d?qi(_0x26b323,_0x28806c):_0x26b323,_0x59fc0f=_0x1d7ff2[_0x3e1e0b(0x36b)]-0x1,_0x7e3fc1;_0x59fc0f>=0x0;_0x59fc0f--)(_0x7e3fc1=_0x1d7ff2[_0x59fc0f])&&(_0x52640e=_0x7e3fc1(_0x52640e)||_0x52640e);return _0x52640e;},it=(_0x5f4cc4,_0x3cfc67)=>(_0x5553c9,_0x1b63bc)=>_0x3cfc67(_0x5553c9,_0x1b63bc,_0x5f4cc4);let he=class extends _0x47e12b{constructor(_0x41df96,_0x5ad30e,_0x19425e,_0x37ed6c,_0x1426c4){const _0x48ae58=_0x5cdc89;super(),N(this,_0x48ae58(0x3f2),new Map()),N(this,_0x48ae58(0x2e4),new Map()),N(this,'_pivotTableRangeInfo',new Map()),N(this,_0x48ae58(0x35c),new Map()),N(this,'_configVersion$',new _0x24677c()),N(this,'_pivotInitCompleted$',new _0x24677c()),N(this,'pivotInitCompleted$',this[_0x48ae58(0x297)]['asObservable']()),N(this,_0x48ae58(0x336),new _0x24677c()),N(this,_0x48ae58(0x34a),this[_0x48ae58(0x336)][_0x48ae58(0x3e9)]()),N(this,'_textInfo',{}),N(this,'configVersion$',this[_0x48ae58(0x272)][_0x48ae58(0x3e9)]()),(this[_0x48ae58(0x426)]=_0x41df96,this[_0x48ae58(0x2c3)]=_0x5ad30e,this[_0x48ae58(0x36f)]=_0x19425e,this[_0x48ae58(0x3e1)]=_0x37ed6c,this[_0x48ae58(0x1c0)]=_0x1426c4,this[_0x48ae58(0x385)](),this['_initUnitDisposed']());const _0x3a8c05=this['_configService'][_0x48ae58(0x31f)](Xo);(_0x3a8c05==null?void 0x0:_0x3a8c05['notExecuteFormula'])===!0x0&&this[_0x48ae58(0x3ec)]();}[_0x5cdc89(0x41f)](){const _0x459cf6=_0x5cdc89;this[_0x459cf6(0x2d3)](this[_0x459cf6(0x36f)][_0x459cf6(0x399)](_0x3220f9[_0x459cf6(0x20d)])[_0x459cf6(0x364)](_0x282bdb=>{const _0x5d389f=_0x459cf6;this[_0x5d389f(0x24d)](_0x282bdb[_0x5d389f(0x417)]());}));}['setPivotInitCompleted'](){const _0xebe591=_0x5cdc89;this[_0xebe591(0x297)][_0xebe591(0x2be)](!0x0);}[_0x5cdc89(0x385)](){const _0x51e23a=_0x5cdc89,_0x541962=fo(this['_injector'],Go,'',{});this[_0x51e23a(0x2f7)]=_0x541962,this[_0x51e23a(0x2c3)][_0x51e23a(0x425)](uo['id'],{'textInfo':_0x541962},{'onlyLocal':!0x0});}[_0x5cdc89(0x2a7)](){const _0x153efb=_0x5cdc89;return this[_0x153efb(0x2f7)];}[_0x5cdc89(0x2b9)](_0x27a712,_0x49913a,_0x273e5d,_0x9b62ba,_0x4d5b90){const _0x63c61e=_0x5cdc89;this[_0x63c61e(0x2b4)](_0x27a712,_0x49913a,_0x273e5d,_0x9b62ba),this[_0x63c61e(0x2f6)](_0x27a712,_0x49913a,_0x273e5d,_0x4d5b90);}[_0x5cdc89(0x346)](_0x2a86fb,_0x322c3f,_0x1958ca){const _0x3ef3ec=_0x5cdc89;var _0x3b56d7;const _0x27ccfd=(_0x3b56d7=this[_0x3ef3ec(0x3f2)]['get'](_0x2a86fb))==null?void 0x0:_0x3b56d7['get'](_0x322c3f);if(_0x27ccfd)return _0x27ccfd[_0x3ef3ec(0x3ac)](_0x1958ca);}['getTargetByPivotTableId'](_0x4066cf,_0x31e39d){const _0x501717=_0x5cdc89,_0x5581dd=this[_0x501717(0x3f2)][_0x501717(0x3ac)](_0x4066cf);if(_0x5581dd){for(const [_0xedad49,_0x4d0f1e]of _0x5581dd['entries']())for(const [_0x245065,_0x34bc0e]of _0x4d0f1e['entries']())if(_0x245065===_0x31e39d)return _0x34bc0e['targetCellInfo'];}}['getTargetByPivotId'](_0x4a5cfb,_0x4ff095,_0x23695c){const _0x1994de=_0x5cdc89,_0x51f22f=this[_0x1994de(0x346)](_0x4a5cfb,_0x4ff095,_0x23695c);return _0x51f22f==null?void 0x0:_0x51f22f[_0x1994de(0x28a)];}[_0x5cdc89(0x3c3)](_0x472899,_0x2dbe7d){const _0x40b3e7=_0x5cdc89;var _0x2e35c7;return(_0x2e35c7=this[_0x40b3e7(0x3f2)]['get'](_0x472899))==null?void 0x0:_0x2e35c7[_0x40b3e7(0x3ac)](_0x2dbe7d);}[_0x5cdc89(0x32c)](_0x1ffa86,_0x51eedf,_0x20b1a4,_0x96c49b){const _0x6b7b79=_0x5cdc89,_0x35e39b=this[_0x6b7b79(0x311)](_0x1ffa86,_0x51eedf);_0x96c49b?_0x35e39b[_0x6b7b79(0x33c)](_0x20b1a4,_0x96c49b):_0x35e39b['delete'](_0x20b1a4),this[_0x6b7b79(0x336)][_0x6b7b79(0x2be)]({'unitId':_0x1ffa86,'subUnitId':_0x51eedf,'pivotTableId':_0x20b1a4,'pivotTableConfig':_0x96c49b});}[_0x5cdc89(0x2c6)](_0x1b5524,_0x8ac0b4){const _0x2f28fd=_0x5cdc89;var _0x574078;return(_0x574078=this['_collectionConfigModel'][_0x2f28fd(0x3ac)](_0x1b5524))==null?void 0x0:_0x574078[_0x2f28fd(0x3b1)][_0x8ac0b4];}[_0x5cdc89(0x350)](_0x5cd080,_0xec6504){const _0x28a286=_0x5cdc89;this[_0x28a286(0x2e4)][_0x28a286(0x33c)](_0x5cd080,_0xec6504),this[_0x28a286(0x272)]['next'](Math[_0x28a286(0x3a9)]());}[_0x5cdc89(0x311)](_0x479143,_0x92a711){const _0x13041e=_0x5cdc89;let _0x2ae8c2=this[_0x13041e(0x3f2)]['get'](_0x479143);_0x2ae8c2||(_0x2ae8c2=new Map(),this[_0x13041e(0x3f2)][_0x13041e(0x33c)](_0x479143,_0x2ae8c2));let _0x559c07=_0x2ae8c2[_0x13041e(0x3ac)](_0x92a711);return _0x559c07||(_0x559c07=new Map(),_0x2ae8c2[_0x13041e(0x33c)](_0x92a711,_0x559c07)),_0x559c07;}[_0x5cdc89(0x1d9)](_0x2adad8,_0x18eaa7){const _0xee6af7=_0x5cdc89;let _0x24256e=this[_0xee6af7(0x244)][_0xee6af7(0x3ac)](_0x2adad8);_0x24256e||(_0x24256e=new Map(),this['_pivotTableRangeInfo']['set'](_0x2adad8,_0x24256e));let _0x37056f=_0x24256e['get'](_0x18eaa7);return _0x37056f||(_0x37056f=new Map(),_0x24256e[_0xee6af7(0x33c)](_0x18eaa7,_0x37056f)),_0x37056f;}[_0x5cdc89(0x1f4)](_0x3a5633,_0x57f1c4){const _0x39065c=_0x5cdc89;let _0x45c43e=this[_0x39065c(0x35c)]['get'](_0x3a5633);_0x45c43e||(_0x45c43e=new Map(),this['_pivotTableMatrixInfo'][_0x39065c(0x33c)](_0x3a5633,_0x45c43e));let _0x3f2839=_0x45c43e[_0x39065c(0x3ac)](_0x57f1c4);return _0x3f2839||(_0x3f2839=new Map(),_0x45c43e[_0x39065c(0x33c)](_0x57f1c4,_0x3f2839)),_0x3f2839;}[_0x5cdc89(0x2f6)](_0x3085ba,_0x28c207,_0x3da83f,_0x4a7ae5){const _0x47498e=_0x5cdc89;var _0x50f132;const _0x59e4e3=this[_0x47498e(0x1d9)](_0x3085ba,_0x28c207),_0x3b299b=(_0x50f132=_0x59e4e3['get'](_0x3da83f))==null?void 0x0:_0x50f132[_0x47498e(0x303)];_0x59e4e3[_0x47498e(0x33c)](_0x3da83f,{'oldRangeInfo':_0x3b299b,'rangeInfo':_0x4a7ae5});}[_0x5cdc89(0x2b4)](_0x5e3a89,_0x5a0225,_0x45800e,_0x26af38){const _0x52c980=_0x5cdc89;var _0x4178d5;const _0x2e072f=this[_0x52c980(0x1f4)](_0x5e3a89,_0x5a0225),_0xe43a01=(_0x4178d5=_0x2e072f[_0x52c980(0x3ac)](_0x45800e))==null?void 0x0:_0x4178d5[_0x52c980(0x2d9)];_0x2e072f['set'](_0x45800e,{'oldMatrix':_0xe43a01,'matrix':_0x26af38});}[_0x5cdc89(0x32d)](_0x21aa1a,_0xc771e1,_0x48c3ae){const _0x3b315e=_0x5cdc89;var _0x6503e9,_0x1ddaae;return(_0x1ddaae=(_0x6503e9=this[_0x3b315e(0x244)][_0x3b315e(0x3ac)](_0x21aa1a))==null?void 0x0:_0x6503e9[_0x3b315e(0x3ac)](_0xc771e1))==null?void 0x0:_0x1ddaae[_0x3b315e(0x3ac)](_0x48c3ae);}[_0x5cdc89(0x42b)](_0x1aec07,_0x491ba9,_0x5488b3){const _0x2cb71=_0x5cdc89;var _0x4ac21a,_0x3943b2;return(_0x3943b2=(_0x4ac21a=this[_0x2cb71(0x35c)][_0x2cb71(0x3ac)](_0x1aec07))==null?void 0x0:_0x4ac21a[_0x2cb71(0x3ac)](_0x491ba9))==null?void 0x0:_0x3943b2[_0x2cb71(0x3ac)](_0x5488b3);}[_0x5cdc89(0x24d)](_0x2a0d04){const _0x2e2158=_0x5cdc89;this['_model'][_0x2e2158(0x41e)](_0x2a0d04),this[_0x2e2158(0x2e4)][_0x2e2158(0x41e)](_0x2a0d04);}[_0x5cdc89(0x1d3)](_0x228a54){const _0x4d9078=_0x5cdc89,_0x422364={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x4d9078(0x2e4)][_0x4d9078(0x3ac)](_0x228a54)&&(_0x422364[_0x4d9078(0x2dd)][_0x228a54]=this[_0x4d9078(0x2e4)][_0x4d9078(0x3ac)](_0x228a54)),this[_0x4d9078(0x3f2)]['get'](_0x228a54)){_0x422364[_0x4d9078(0x3d7)][_0x228a54]={};const _0x258fdd=this[_0x4d9078(0x3f2)]['get'](_0x228a54);_0x258fdd!=null&&_0x258fdd[_0x4d9078(0x35a)]&&[..._0x258fdd[_0x4d9078(0x329)]()][_0x4d9078(0x40a)](_0x33ed7f=>{const _0x21de3b=_0x4d9078,_0xf0535f=_0x258fdd[_0x21de3b(0x3ac)](_0x33ed7f);_0xf0535f!=null&&_0xf0535f[_0x21de3b(0x35a)]&&(_0x422364[_0x21de3b(0x3d7)][_0x228a54][_0x33ed7f]={},[..._0xf0535f[_0x21de3b(0x329)]()][_0x21de3b(0x40a)](_0x3241b8=>{const _0x1769c7=_0x21de3b,_0x3c00ae=_0xf0535f[_0x1769c7(0x3ac)](_0x3241b8);_0x3c00ae&&(_0x422364[_0x1769c7(0x3d7)][_0x228a54][_0x33ed7f][_0x3241b8]=_0x3c00ae);}));});}return _0x422364;}[_0x5cdc89(0x3ec)](){const _0x2965fa=_0x5cdc89;this[_0x2965fa(0x2d3)](this['_resourceManagerService'][_0x2965fa(0x422)]({'toJson':_0x302e12=>JSON['stringify'](this[_0x2965fa(0x1d3)](_0x302e12)),'parseJson':_0x57294f=>({}),'businesses':[_0x3220f9[_0x2965fa(0x20d)]],'pluginName':ao,'onLoad':(_0x410b28,_0x164d41)=>{},'onUnLoad':_0x57c01d=>{this['deleteUnitId'](_0x57c01d);}}));}};he=Xi([it(0x0,_0x582676(_0x126161)),it(0x1,_0x582676(_0x3ed3f2)),it(0x2,_0x582676(_0x2db36d)),it(0x3,_0x582676(_0x19443f)),it(0x4,_0x582676(_0x2b55f2))],he);var Yi=Object[_0x5cdc89(0x37f)],zi=(_0x4b13ba,_0x1c25ee,_0x137837,_0x27dd03)=>{const _0x26cd63=_0x5cdc89;for(var _0x95c00b=_0x27dd03>0x1?void 0x0:_0x27dd03?Yi(_0x1c25ee,_0x137837):_0x1c25ee,_0x1ed897=_0x4b13ba[_0x26cd63(0x36b)]-0x1,_0x1e2fb6;_0x1ed897>=0x0;_0x1ed897--)(_0x1e2fb6=_0x4b13ba[_0x1ed897])&&(_0x95c00b=_0x1e2fb6(_0x95c00b)||_0x95c00b);return _0x95c00b;},st=(_0x2f77a1,_0x2e3d14)=>(_0x203242,_0x23bb94)=>_0x2e3d14(_0x203242,_0x23bb94,_0x2f77a1);let Ee=class extends _0x47e12b{constructor(_0x43bf62,_0x1d3a60,_0x1078d4,_0x1ec2d9,_0x32a4d7){const _0x421d52=_0x5cdc89;super(),N(this,_0x421d52(0x1f8),new Map()),N(this,'_pivotRenderValueMatrixCache',new Map()),N(this,_0x421d52(0x3b2),new _0x24677c()),N(this,'markDirty$',this['_markDirty$']['asObservable']()),N(this,'_viewUpdate$',new _0x24677c()),N(this,'viewUpdate$',this[_0x421d52(0x252)][_0x421d52(0x3e9)]()),N(this,_0x421d52(0x2f7)),(this[_0x421d52(0x362)]=_0x43bf62,this[_0x421d52(0x426)]=_0x1d3a60,this[_0x421d52(0x333)]=_0x1078d4,this['_univerInstanceService']=_0x1ec2d9,this[_0x421d52(0x302)]=_0x32a4d7,this[_0x421d52(0x385)](),this['_initUnitDisposed']());}[_0x5cdc89(0x41f)](){const _0x4d8941=_0x5cdc89;this[_0x4d8941(0x2d3)](this['_univerInstanceService'][_0x4d8941(0x399)](_0x3220f9[_0x4d8941(0x20d)])[_0x4d8941(0x364)](_0x8915f0=>{const _0x407959=_0x4d8941;this[_0x407959(0x24d)](_0x8915f0['getUnitId']());}));}['_initLocale'](){const _0x23f3e2=_0x5cdc89;this[_0x23f3e2(0x2f7)]=fo(this[_0x23f3e2(0x426)],Go,'',{});}[_0x5cdc89(0x1db)](_0x4edb7b){const _0x18702d=_0x5cdc89,{view:_0x5a9c73,unitId:_0x2630c1,subUnitId:_0x7fca09,pivotTableId:_0x31c3bf,type:_0x53ac70}=_0x4edb7b,_0x2f67b7=this[_0x18702d(0x333)][_0x18702d(0x346)](_0x2630c1,_0x7fca09,_0x31c3bf);if(!_0x5a9c73||!_0x2f67b7||_0x53ac70===G[_0x18702d(0x2c8)])return;const {pageView:_0xe4de49,cornerView:_0x15b325,rowView:_0x17f91a,colView:_0x26b287,dataView:_0x3ad1c4}=_0x5a9c73,_0x57c100=_0x2f67b7[_0x18702d(0x28a)],_0x476c0d=_0x2f67b7[_0x18702d(0x371)],_0x3d4b71=this[_0x18702d(0x39a)](_0x2630c1,_0x7fca09),_0x3ec136=this[_0x18702d(0x36c)](_0x2630c1,_0x7fca09,_0x31c3bf);if(_0x476c0d)return this['_updateRenderEmptyCache'](_0x4edb7b,_0x3d4b71,_0x57c100,_0x3ec136);{const _0x51672c=ge(_0x57c100,_0xe4de49,!0x0),_0x2a301f=_0xe4de49[_0x18702d(0x3b0)]>=0x0?_0xe4de49['lastRow']+0x1:0x0,_0x13b507=_0x15b325[_0x18702d(0x3bc)](),_0x4e9cf3=_0x15b325['getColCount'](),_0x474069=_0x51672c[_0x18702d(0x36b)]>0x0?It:0x0,_0x15efa4=ge({'row':_0x57c100['row']+_0x2a301f+_0x474069,'col':_0x57c100['col']},_0x15b325,!0x1,!0x1),_0x184534=ge({'row':_0x57c100[_0x18702d(0x3af)]+_0x2a301f+_0x474069+_0x13b507,'col':_0x57c100[_0x18702d(0x1cf)]},_0x17f91a,!0x1,!0x0),_0x2aa99c=ge({'row':_0x57c100[_0x18702d(0x3af)]+_0x2a301f+_0x474069,'col':_0x57c100[_0x18702d(0x1cf)]+_0x4e9cf3},_0x26b287,!0x1,!0x0),_0x44fcc1=ge({'row':_0x57c100[_0x18702d(0x3af)]+_0x2a301f+_0x474069+_0x13b507,'col':_0x57c100['col']+_0x4e9cf3},_0x3ad1c4,!0x1,!0x1);_0x3ec136[_0x18702d(0x41c)]={'rowRanges':_0x184534,'colRanges':_0x2aa99c,'cornerRanges':_0x15efa4,'dataRanges':_0x44fcc1,'pageRanges':_0x51672c};const _0xc0439e=yi(this[_0x18702d(0x426)],_0x5a9c73,_0x2f67b7,this[_0x18702d(0x2f7)]),{valueMatrix:_0x3bb898,rowInfo:_0x3fb96f,colInfo:_0x971c15,cornerInfo:_0x1ebd82,rowHeaderMap:_0x3bda4c,colHeaderMap:_0x1762ff}=_0xc0439e;return _0x3ec136[_0x18702d(0x2f0)]={'rowInfo':_0x3fb96f,'colInfo':_0x971c15,'cornerInfo':_0x1ebd82},_0x3ec136['headerMap']={'rowHeaderMap':_0x3bda4c,'colHeaderMap':_0x1762ff},_0x3bb898['forEach']((_0x2f3216,_0x67dfe5)=>{const _0x52087f=_0x18702d;Object['keys'](_0x67dfe5)[_0x52087f(0x40a)](_0x45531e=>{const _0x1a7c0a=_0x52087f,_0x4ccf00=+_0x45531e,_0x2e0fbe=_0x3bb898[_0x1a7c0a(0x3cc)](_0x2f3216,_0x4ccf00);_0x3d4b71[_0x1a7c0a(0x284)](_0x2f3216,_0x4ccf00,_0x2e0fbe);});}),this[_0x18702d(0x252)]['next']({'unitId':_0x2630c1,'subUnitId':_0x7fca09,'valueMatrix':_0x3d4b71,'rangesCache':_0x3ec136[_0x18702d(0x41c)],'pivotTableId':_0x31c3bf,'type':_0x4edb7b['type']}),this[_0x18702d(0x333)][_0x18702d(0x2b9)](_0x2630c1,_0x7fca09,_0x31c3bf,_0x3d4b71,_0x3ec136[_0x18702d(0x41c)]),this[_0x18702d(0x302)][_0x18702d(0x2cb)](_0x2630c1,_0x7fca09,Lt,this[_0x18702d(0x296)](_0x3ec136[_0x18702d(0x41c)],_0x31c3bf)),{'rangeCache':_0x3ec136['rangesInfo'],'matrix':_0x3d4b71};}}['_updateRenderEmptyCache'](_0x59bd41,_0xb05a36,_0x435dc6,_0x4e0d32){const _0x4feab8=_0x5cdc89,_0x5509cc=this[_0x4feab8(0x362)]['t'],{unitId:_0x279e11,subUnitId:_0x5ec3ad,pivotTableId:_0x251d44}=_0x59bd41,_0x441928={'filter':_0x5509cc(_0x4feab8(0x33d)),'row':_0x5509cc('sheets-pivot.emptyPivot.row'),'column':_0x5509cc(_0x4feab8(0x239)),'values':_0x5509cc(_0x4feab8(0x383))},{matrixCache:_0x377df1,rangesCache:_0x231303}=Qo(_0x441928,_0x435dc6);return _0x377df1['forValue']((_0x4d07b8,_0xdf7052,_0x134ab4)=>{const _0x59572d=_0x4feab8;_0xb05a36[_0x59572d(0x284)](_0x4d07b8,_0xdf7052,_0x134ab4);}),_0x4e0d32[_0x4feab8(0x41c)]=_0x231303,this[_0x4feab8(0x252)][_0x4feab8(0x2be)]({'unitId':_0x279e11,'subUnitId':_0x5ec3ad,'valueMatrix':_0xb05a36,'rangesCache':_0x231303,'pivotTableId':_0x251d44,'type':_0x59bd41[_0x4feab8(0x1bf)],'isEmpty':!0x0}),this[_0x4feab8(0x333)][_0x4feab8(0x2b9)](_0x279e11,_0x5ec3ad,_0x251d44,_0xb05a36,_0x231303),this[_0x4feab8(0x302)][_0x4feab8(0x2cb)](_0x279e11,_0x5ec3ad,Lt,this['_createExclusiveRange'](_0x231303,_0x251d44)),{'rangeCache':_0x4e0d32['rangesInfo'],'matrix':_0xb05a36};}[_0x5cdc89(0x296)](_0x4e20a9,_0x29d7b9){const _0x31f142=[],_0x5c00a8=Gt(_0x4e20a9);for(const _0x3f700e of _0x5c00a8)_0x31f142['push']({'groupId':_0x29d7b9,'range':_0x3f700e});return _0x31f142;}[_0x5cdc89(0x413)](_0x13548e){const _0x585d06=_0x5cdc89;var _0x307a9a,_0x446ca2,_0x2e9474,_0x3cc213;const {pivotTableId:_0x290a62,unitId:_0x468885,subUnitId:_0x1032bd}=_0x13548e;if(!_0x290a62||!_0x468885||!_0x1032bd)return;const _0x2c2219=this['_ensurePivotItemRenderValueMatrixCache'](_0x468885,_0x1032bd),_0x5d2a72=(_0x446ca2=(_0x307a9a=this['_pivotRenderInfoCache'][_0x585d06(0x3ac)](_0x468885))==null?void 0x0:_0x307a9a['get'](_0x1032bd))==null?void 0x0:_0x446ca2[_0x585d06(0x3ac)](_0x290a62);if(_0x5d2a72!=null&&_0x5d2a72[_0x585d06(0x41c)]){for(const _0x2615c1 of Object[_0x585d06(0x329)](_0x5d2a72[_0x585d06(0x41c)]))_0x5d2a72[_0x585d06(0x41c)][_0x2615c1][_0x585d06(0x40a)](_0x1d4abb=>{const _0x4b9f82=_0x585d06;for(let _0x4a2ea6=_0x1d4abb[_0x4b9f82(0x2e7)];_0x4a2ea6<=_0x1d4abb[_0x4b9f82(0x260)];_0x4a2ea6++)for(let _0x122bf7=_0x1d4abb[_0x4b9f82(0x258)];_0x122bf7<=_0x1d4abb[_0x4b9f82(0x35e)];_0x122bf7++)_0x2c2219[_0x4b9f82(0x324)](_0x4a2ea6,_0x122bf7);});}_0x5d2a72&&((_0x3cc213=(_0x2e9474=this['_pivotRenderInfoCache'][_0x585d06(0x3ac)](_0x468885))==null?void 0x0:_0x2e9474[_0x585d06(0x3ac)](_0x1032bd))==null||_0x3cc213['delete'](_0x290a62)),this[_0x585d06(0x252)]['next']({'unitId':_0x468885,'subUnitId':_0x1032bd,'valueMatrix':_0x2c2219,'pivotTableId':_0x290a62,'rangesCache':void 0x0,'type':_0x13548e[_0x585d06(0x1bf)]}),this[_0x585d06(0x302)]['clearExclusiveRangesByGroupId'](_0x468885,_0x1032bd,Lt,_0x290a62);}[_0x5cdc89(0x36c)](_0x5547d6,_0x2efe48,_0x3fb7b1){const _0x26b3d4=_0x5cdc89;var _0x19b533,_0x1bbfaf,_0x5a976e,_0x50d643,_0x336137,_0x29842a;return this[_0x26b3d4(0x1f8)][_0x26b3d4(0x3a3)](_0x5547d6)||this[_0x26b3d4(0x1f8)][_0x26b3d4(0x33c)](_0x5547d6,new Map()),(_0x19b533=this[_0x26b3d4(0x1f8)][_0x26b3d4(0x3ac)](_0x5547d6))!=null&&_0x19b533[_0x26b3d4(0x3a3)](_0x2efe48)||(_0x1bbfaf=this[_0x26b3d4(0x1f8)][_0x26b3d4(0x3ac)](_0x5547d6))==null||_0x1bbfaf[_0x26b3d4(0x33c)](_0x2efe48,new Map()),(_0x50d643=(_0x5a976e=this[_0x26b3d4(0x1f8)]['get'](_0x5547d6))==null?void 0x0:_0x5a976e['get'](_0x2efe48))!=null&&_0x50d643[_0x26b3d4(0x3a3)](_0x3fb7b1)||(_0x29842a=(_0x336137=this['_pivotRenderInfoCache']['get'](_0x5547d6))==null?void 0x0:_0x336137['get'](_0x2efe48))==null||_0x29842a['set'](_0x3fb7b1,{}),this[_0x26b3d4(0x1f8)][_0x26b3d4(0x3ac)](_0x5547d6)[_0x26b3d4(0x3ac)](_0x2efe48)['get'](_0x3fb7b1);}[_0x5cdc89(0x39a)](_0x1c699f,_0xd3a4d9){const _0xba977=_0x5cdc89;var _0x324579,_0x23c8b6;return this[_0xba977(0x29c)]['has'](_0x1c699f)||this[_0xba977(0x29c)][_0xba977(0x33c)](_0x1c699f,new Map()),(_0x324579=this[_0xba977(0x29c)][_0xba977(0x3ac)](_0x1c699f))!=null&&_0x324579['has'](_0xd3a4d9)||(_0x23c8b6=this[_0xba977(0x29c)][_0xba977(0x3ac)](_0x1c699f))==null||_0x23c8b6[_0xba977(0x33c)](_0xd3a4d9,new _0x499f9a()),this[_0xba977(0x29c)][_0xba977(0x3ac)](_0x1c699f)['get'](_0xd3a4d9);}[_0x5cdc89(0x419)](_0x19eac0,_0x10441b,_0x5bb5cd,_0x2a4897){const _0x4ca249=_0x5cdc89;var _0x315fb6,_0x45aa71;const _0x3b1508=(_0x45aa71=(_0x315fb6=this['_pivotRenderValueMatrixCache']['get'](_0x19eac0))==null?void 0x0:_0x315fb6[_0x4ca249(0x3ac)](_0x10441b))==null?void 0x0:_0x45aa71['getValue'](_0x5bb5cd,_0x2a4897);if(_0x3b1508!=null)return _0x3b1508;}[_0x5cdc89(0x410)](_0xc90013,_0x3cc5bd,_0x47dffd,_0x23a091){const _0x881c06=_0x5cdc89;var _0x1574c0;const _0x1246a5=_0x36796a(_0x47dffd,_0x23a091),_0x45528f=(_0x1574c0=this[_0x881c06(0x1f8)]['get'](_0xc90013))==null?void 0x0:_0x1574c0['get'](_0x3cc5bd);return _0x45528f?Array['from'](_0x45528f[_0x881c06(0x329)]())['find'](_0x34b814=>{const _0x163384=_0x881c06,_0xaa4162=_0x45528f[_0x163384(0x3ac)](_0x34b814),_0x1ec0cd=_0xaa4162==null?void 0x0:_0xaa4162['rangesInfo'];return _0x1ec0cd?Object['keys'](_0x1ec0cd)[_0x163384(0x222)](_0x4de7a5=>_0x1ec0cd[_0x4de7a5][_0x163384(0x222)](_0x5af82e=>_0x5548d4[_0x163384(0x280)](_0x5af82e,_0x1246a5))):!0x1;}):void 0x0;}[_0x5cdc89(0x2ce)](_0x374a57,_0x471333,_0x403130){const _0x2c5ac7=_0x5cdc89;var _0x2ce909;const _0x338a36=(_0x2ce909=this['_pivotRenderInfoCache'][_0x2c5ac7(0x3ac)](_0x374a57))==null?void 0x0:_0x2ce909[_0x2c5ac7(0x3ac)](_0x471333),_0x33a161=[];return _0x338a36&&Array[_0x2c5ac7(0x365)](_0x338a36[_0x2c5ac7(0x329)]())[_0x2c5ac7(0x40a)](_0x41506a=>{const _0x110b8d=_0x2c5ac7,_0xd9fe8b=_0x338a36[_0x110b8d(0x3ac)](_0x41506a),_0x46768e=_0xd9fe8b==null?void 0x0:_0xd9fe8b[_0x110b8d(0x41c)];if(_0x46768e)for(const _0x2ae3a3 of Object['values'](_0x46768e)){let _0x334894=!0x1;for(const _0x2a2afc of _0x2ae3a3)if(_0x5548d4['intersects'](_0x2a2afc,_0x403130)){_0x33a161['push'](_0x41506a),_0x334894=!0x0;break;}if(_0x334894)break;}}),_0x33a161;}[_0x5cdc89(0x361)](_0x4a8c14,_0x2416fc){const _0x449c0f=_0x5cdc89;var _0xcfa7da,_0x5cfc2f;return(_0x5cfc2f=(_0xcfa7da=this[_0x449c0f(0x29c)][_0x449c0f(0x3ac)](_0x4a8c14))==null?void 0x0:_0xcfa7da[_0x449c0f(0x3ac)](_0x2416fc))!=null?_0x5cfc2f:new _0x499f9a();}['getSubUnitPivotRenderCache'](_0x14dbf5,_0x15fa60){const _0x27d7c0=_0x5cdc89;var _0x15513b;return(_0x15513b=this[_0x27d7c0(0x1f8)]['get'](_0x14dbf5))==null?void 0x0:_0x15513b[_0x27d7c0(0x3ac)](_0x15fa60);}[_0x5cdc89(0x299)](_0x191908,_0x3c9130,_0x4d255f){const _0x377e97=_0x5cdc89;var _0x3e41c6,_0x1dc323;return(_0x1dc323=(_0x3e41c6=this[_0x377e97(0x1f8)][_0x377e97(0x3ac)](_0x191908))==null?void 0x0:_0x3e41c6[_0x377e97(0x3ac)](_0x3c9130))==null?void 0x0:_0x1dc323['get'](_0x4d255f);}[_0x5cdc89(0x24d)](_0x3ebe99){const _0x494c74=_0x5cdc89;this[_0x494c74(0x1f8)][_0x494c74(0x41e)](_0x3ebe99),this[_0x494c74(0x29c)][_0x494c74(0x41e)](_0x3ebe99);}[_0x5cdc89(0x2bc)](_0x48f52b,_0x3ff356){const _0x43965a=_0x5cdc89;this[_0x43965a(0x3b2)][_0x43965a(0x2be)]({'unitId':_0x48f52b,'subUnitId':_0x3ff356});}};Ee=zi([st(0x0,_0x582676(_0xfc5594)),st(0x1,_0x582676(_0x126161)),st(0x2,_0x582676(he)),st(0x3,_0x582676(_0x2db36d)),st(0x4,_0x582676(_0x3d2d75))],Ee);var Zi=Object[_0x5cdc89(0x37f)],es=(_0x4bff3b,_0x457f09,_0x44ae8f,_0xed012a)=>{const _0x34df97=_0x5cdc89;for(var _0x3f1974=_0xed012a>0x1?void 0x0:_0xed012a?Zi(_0x457f09,_0x44ae8f):_0x457f09,_0x4cd62e=_0x4bff3b[_0x34df97(0x36b)]-0x1,_0x9f814d;_0x4cd62e>=0x0;_0x4cd62e--)(_0x9f814d=_0x4bff3b[_0x4cd62e])&&(_0x3f1974=_0x9f814d(_0x3f1974)||_0x3f1974);return _0x3f1974;},wo=(_0x318014,_0x43398c)=>(_0x49ec08,_0x391e2e)=>_0x43398c(_0x49ec08,_0x391e2e,_0x318014);let ie=class extends _0x47e12b{constructor(_0x4d9682,_0x311895){const _0x27d7f5=_0x5cdc89;super(),N(this,'asyncInterceptor',new _0x41c8ad({'PIVOT_PERFORM_CHECK':be})),N(this,'interceptor',new _0x1aea3b({'PIVOT_MUTATION_GENERATE':Jo})),(this[_0x27d7f5(0x32a)]=_0x4d9682,this[_0x27d7f5(0x1fe)]=_0x311895,this[_0x27d7f5(0x411)]());}[_0x5cdc89(0x411)](){const _0x394f7a=_0x5cdc89;this[_0x394f7a(0x1e0)]();}['getPivotPerformCheck'](_0x593b75){const _0x3a352c=_0x5cdc89;return this[_0x3a352c(0x3f9)]['fetchThroughAsyncInterceptors'](be)(!0x1,_0x593b75);}[_0x5cdc89(0x1e0)](){const _0x36fdf2=_0x5cdc89;this['disposeWithMe'](this[_0x36fdf2(0x32a)]['intercept'](_0x201f8c[_0x36fdf2(0x3c5)],{'priority':0xc8,'effect':_0x3638e6[_0x36fdf2(0x251)]|_0x3638e6[_0x36fdf2(0x221)],'handler':(_0x140c79,_0x472a86,_0x5ad625)=>{const _0x4ce986=_0x36fdf2,{row:_0x29ad72,col:_0x827249,unitId:_0x142a52,subUnitId:_0x5ecb69,workbook:_0x1e23fd}=_0x472a86,_0x205a7d=this['_sheetsPivotTableAdaptorModel']['getPivotTableCellData'](_0x142a52,_0x5ecb69,_0x29ad72,_0x827249);if(!_0x205a7d)return _0x5ad625(_0x140c79);const _0xf26734={..._0x140c79};(_0x205a7d['v']||_0x205a7d['v']===0x0)&&(_0xf26734['v']=_0x205a7d['v']),_0x205a7d['t']&&(_0xf26734['t']=_0x205a7d['t']);const _0x1056ad=(typeof(_0x140c79==null?void 0x0:_0x140c79['s'])=='string'?_0x1e23fd['getStyles']()[_0x4ce986(0x3ac)](_0x140c79==null?void 0x0:_0x140c79['s']):_0x140c79==null?void 0x0:_0x140c79['s'])||{},_0x395f7b=_0x1e23fd[_0x4ce986(0x21f)]()[_0x4ce986(0x3ac)](_0x205a7d['s']),_0x1becd0={..._0x395f7b,..._0x1056ad};_0x395f7b!=null&&_0x395f7b['n']&&(_0x1becd0['n']=_0x395f7b['n']);const _0x13ce5c=_0x1e23fd['getStyles']()[_0x4ce986(0x284)](_0x1becd0);return _0xf26734['s']=_0x13ce5c,(_0x205a7d['pbt']===_0x3dda21['Collapse']||_0x205a7d[_0x4ce986(0x20e)]===_0x3dda21[_0x4ce986(0x1b5)])&&(_0xf26734[_0x4ce986(0x242)]={},_0xf26734[_0x4ce986(0x242)][_0x4ce986(0x421)]=li),_0x5ad625(_0xf26734);}}));}};ie=es([wo(0x0,_0x582676(_0x1b62ed)),wo(0x1,_0x582676(Ee))],ie);const Yo={'id':'sheet.mutation.add-group-collection','type':_0x381691[_0x5cdc89(0x279)],'handler':(_0x8648d1,_0x125960)=>{const _0x155e43=_0x5cdc89;if(!_0x125960)return!0x1;if(!!_0x8648d1['get'](_0x2b55f2)[_0x155e43(0x31f)](X))return!0x0;const {pivotTableId:_0x154dc3,fieldJSON:_0x101df1,unitId:_0x23cfb7,subUnitId:_0x20c62c}=_0x125960;let _0x325819;const {dataFieldType:_0x4813a8,id:_0xd8b156,name:_0x363cec,hexCode:_0x3f0b1e,originalFieldId:_0x3c8e3e}=_0x101df1;if(_0x4813a8===_0x5457fc[_0x155e43(0x321)]&&(_0x325819=new _0x3eb03e(_0xd8b156,_0x363cec,_0x3f0b1e,_0x3c8e3e)),!_0x325819)return!0x1;const _0x16eaf7=_0x8648d1[_0x155e43(0x3ac)]($),_0x44b879=_0x16eaf7[_0x155e43(0x357)](_0x23cfb7),_0xa41606=_0x44b879['getCollection'](_0x154dc3);_0x44b879[_0x155e43(0x3f4)](_0x325819),_0xa41606[_0x155e43(0x31e)](_0x325819[_0x155e43(0x305)](),_0x325819[_0x155e43(0x3f1)]());const _0x216107=_0xa41606[_0x155e43(0x3d8)](_0x325819[_0x155e43(0x369)]());_0x216107&&_0x325819[_0x155e43(0x2cc)](_0x216107);const _0x3c95ee=_0x16eaf7[_0x155e43(0x346)](_0x23cfb7,_0x20c62c,_0x154dc3);return _0x16eaf7[_0x155e43(0x3c1)]({'unitId':_0x23cfb7,'subUnitId':_0x20c62c,'token':_0x154dc3,'type':G['Set'],'pivotConfig':_0x3c95ee}),!0x0;}},zo={'id':'sheet.mutation.remove-group-collection','type':_0x381691[_0x5cdc89(0x279)],'handler':(_0x5daa99,_0x220680)=>{const _0x271699=_0x5cdc89;if(!_0x220680)return!0x1;if(!!_0x5daa99[_0x271699(0x3ac)](_0x2b55f2)['getConfig'](X))return!0x0;const {pivotTableId:_0x22527c,dataFieldId:_0x1ecf63,unitId:_0x48530a,subUnitId:_0x4e23e8}=_0x220680,_0x2301bc=_0x5daa99['get']($),_0x2f0841=_0x2301bc['getDataFieldManager'](_0x48530a);_0x2f0841['getCollection'](_0x22527c)[_0x271699(0x3d9)](_0x1ecf63);let _0x1526dd=!0x0;for(const _0x1f83b0 in _0x2f0841['collections'])if(_0x2f0841['collections'][_0x1f83b0]['getFieldIds']()[_0x271699(0x22b)](_0x1ecf63)){_0x1526dd=!0x1;break;}_0x1526dd&&_0x2f0841[_0x271699(0x2fb)](_0x1ecf63);const _0x122306=_0x2301bc['getPivotTableConfig'](_0x48530a,_0x4e23e8,_0x22527c);return _0x2301bc['addDirtyPivotTable']({'unitId':_0x48530a,'subUnitId':_0x4e23e8,'token':_0x22527c,'type':G[_0x271699(0x38b)],'pivotConfig':_0x122306}),!0x0;}};function Et(_0x2d3e8f,_0x14d2de){const _0x5aacbb=_0x5cdc89;switch(_0x14d2de){case _0x33152d[_0x5aacbb(0x251)]:return _0x2d3e8f[_0x5aacbb(0x271)];case _0x33152d[_0x5aacbb(0x287)]:return _0x2d3e8f['filterFields'];case _0x33152d[_0x5aacbb(0x367)]:return _0x2d3e8f[_0x5aacbb(0x2ab)];case _0x33152d[_0x5aacbb(0x289)]:return _0x2d3e8f[_0x5aacbb(0x1ca)];default:return[];}}function We(_0x21e6b3,_0xb00902){const _0x178f72=_0x5cdc89;return _0x21e6b3[_0x178f72(0x210)][_0xb00902]||_0x21e6b3[_0x178f72(0x2a2)][_0xb00902];}function ts(_0x3bb8bf,_0x5787e0){const _0x3b39a0=_0x5cdc89,{area:_0x2d9135,fieldJson:_0x3d303f,index:_0x4f84ce}=_0x5787e0;_0x2d9135===_0x33152d[_0x3b39a0(0x251)]?_0x3bb8bf['measure'][_0x3d303f['id']]=_0x3d303f:_0x3bb8bf['dimension'][_0x3d303f['id']]=_0x3d303f,Et(_0x3bb8bf,_0x2d9135)['splice'](_0x4f84ce,0x0,_0x3d303f['id']);}function os(_0x1498ff,_0xe7dbb6){const _0xd1d2cb=_0x5cdc89,{area:_0x585c0d,fieldId:_0x156535,index:_0x308ca5}=_0xe7dbb6;_0x585c0d===_0x33152d['Value']?delete _0x1498ff[_0xd1d2cb(0x210)][_0x156535]:delete _0x1498ff['dimension'][_0x156535],Et(_0x1498ff,_0x585c0d)[_0xd1d2cb(0x2b7)](_0x308ca5,0x1);}function ns(_0x188445,_0x337222){const _0x599068=_0x5cdc89,{fieldId:_0x5ed687,name:_0x10cd35}=_0x337222,_0x57eca2=We(_0x188445,_0x5ed687);_0x57eca2&&(_0x57eca2[_0x599068(0x39f)]=_0x10cd35);}function is(_0x15a0de,_0x4ff620){const _0x2c5d29=_0x5cdc89,{fieldId:_0x28beff,collapse:_0x26c5a8,item:_0x5de1b5}=_0x4ff620;_0x5de1b5!==void 0x0?(_0x15a0de[_0x2c5d29(0x215)][_0x28beff]=_0x15a0de['collapseInfo'][_0x28beff]||{},_0x15a0de['collapseInfo'][_0x28beff][_0x5de1b5]=_0x26c5a8):_0x15a0de[_0x2c5d29(0x215)][_0x28beff]=_0x26c5a8;}function ss(_0x370295,_0x592e03){const {fieldId:_0x378c45,format:_0x2d4f46}=_0x592e03,_0x425fb2=We(_0x370295,_0x378c45);_0x425fb2&&(_0x425fb2['format']=_0x2d4f46);}function as(_0x449c5c,_0x2a7a40){const _0x41ea37=_0x5cdc89,{fieldId:_0x5c4690,filterInfo:_0x93898d}=_0x2a7a40,_0x43eb4f=We(_0x449c5c,_0x5c4690);_0x43eb4f&&(_0x43eb4f[_0x41ea37(0x320)]=_0x93898d);}function rs(_0x32ef72,_0x50061d){const _0x186c35=_0x5cdc89,{fieldId:_0x136c88,filterInfo:_0x459991}=_0x50061d,_0x1313a7=_0x32ef72[_0x186c35(0x269)]['filter'](_0x217e59=>_0x217e59[_0x186c35(0x3e3)]!==_0x136c88);_0x459991&&_0x1313a7['push']({'fieldId':_0x136c88,'filterInfo':_0x459991}),_0x32ef72[_0x186c35(0x269)]=_0x1313a7;}function ls(_0x1d13be,_0x11529e){const _0x318635=_0x5cdc89,{fieldId:_0x4b8f79,subtotalType:_0x26cadc}=_0x11529e,_0x409444=We(_0x1d13be,_0x4b8f79);_0x409444&&(_0x409444[_0x318635(0x394)]=_0x26cadc);}function cs(_0x460bd4,_0x42c3b1){const _0x31776c=_0x5cdc89,{fieldId:_0x2a7f8a,oldArea:_0x3cf81c,area:_0x3644bd,oldIndex:_0x1b2211,index:_0x2f5cec}=_0x42c3b1,_0xafc49b=_0x3cf81c!==_0x33152d[_0x31776c(0x251)]&&_0x3644bd===_0x33152d['Value'],_0x54fbe3=_0x3cf81c===_0x33152d[_0x31776c(0x251)]&&_0x3644bd!==_0x33152d[_0x31776c(0x251)];if(_0xafc49b||_0x54fbe3){const _0x2e6a77=We(_0x460bd4,_0x2a7f8a);_0x2e6a77&&(_0xafc49b?(delete _0x460bd4[_0x31776c(0x2a2)][_0x2a7f8a],_0x460bd4['measure'][_0x2a7f8a]=_0x2e6a77):(delete _0x460bd4[_0x31776c(0x210)][_0x2a7f8a],_0x460bd4['dimension'][_0x2a7f8a]=_0x2e6a77));}const _0x4257b9=Et(_0x460bd4,_0x3cf81c),_0x45a002=Et(_0x460bd4,_0x3644bd);_0x4257b9[_0x31776c(0x2b7)](_0x1b2211,0x1),_0x45a002[_0x31776c(0x2b7)](_0x2f5cec,0x0,_0x2a7f8a);}function ds(_0xb1d682,_0x2ff43e){const _0x3a3ea4=_0x5cdc89,{valuePosition:_0x2f9467,index:_0x84b6d1}=_0x2ff43e;_0xb1d682['valuePosition']=_0x2f9467,_0xb1d682[_0x3a3ea4(0x354)]=_0x84b6d1;}function us(_0x454bcf,_0x448655){const _0x293729=_0x5cdc89,{tableFieldId:_0x485b73,sourceName:_0x16f324,dataFieldId:_0xa298b}=_0x448655,_0x4cc15a=We(_0x454bcf,_0x485b73);_0x4cc15a&&(_0x4cc15a[_0x293729(0x30b)]=_0x16f324,_0x4cc15a[_0x293729(0x1f6)]=_0xa298b);}function fs(_0x177314,_0x3f07b0){const _0x240dab=_0x5cdc89,{fieldId:_0x3cc0e7,sortInfo:_0x34650d}=_0x3f07b0,_0x546ff5=We(_0x177314,_0x3cc0e7);_0x546ff5&&(_0x546ff5[_0x240dab(0x259)]=_0x34650d);}function gs(_0x4c2131,_0x4f57a1){const _0x4ec1d1=_0x5cdc89,{options:_0x426a87}=_0x4f57a1;_0x4c2131[_0x4ec1d1(0x3a4)]={..._0x4c2131[_0x4ec1d1(0x3a4)],..._0x426a87};}const $t={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.add-pivot-field','handler'(_0x435ce0,_0x5709f8){const _0x25720a=_0x5cdc89;if(!_0x5709f8)return!0x1;if(!!_0x435ce0[_0x25720a(0x3ac)](_0x2b55f2)[_0x25720a(0x31f)](X))return!0x0;const _0xabce2a=_0x435ce0[_0x25720a(0x3ac)]($),{pivotTableId:_0x3d03e2,fieldJson:_0x3d158f,area:_0x358b72,index:_0x54d145,unitId:_0x18dd6f,subUnitId:_0x580e0b}=_0x5709f8,_0x1da2c0=_0xabce2a[_0x25720a(0x27b)](_0x3d03e2);if(!_0x1da2c0)return!0x1;let _0x3c3449;_0x358b72===_0x33152d[_0x25720a(0x251)]?_0x3c3449=_0x5602b6(_0x3d158f):_0x3c3449=_0x868abb(_0x3d158f),_0x1da2c0[_0x25720a(0x31e)](_0x3c3449,_0x358b72,_0x54d145);const _0x133ee0=_0xabce2a[_0x25720a(0x281)](_0x18dd6f,_0x580e0b,_0x3d03e2);ts(_0x133ee0,_0x5709f8);const _0x3a3d44=_0xabce2a[_0x25720a(0x346)](_0x18dd6f,_0x580e0b,_0x3d03e2);return _0xabce2a[_0x25720a(0x3c1)]({'unitId':_0x18dd6f,'subUnitId':_0x580e0b,'token':_0x3d03e2,'type':G['Set'],'pivotConfig':_0x3a3d44}),!0x0;}},Jt={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x5dfa8a,_0x5cb7cb){const _0x4753fb=_0x5cdc89;if(!_0x5cb7cb)return!0x1;if(!!_0x5dfa8a[_0x4753fb(0x3ac)](_0x2b55f2)['getConfig'](X))return!0x0;const _0x3829db=_0x5dfa8a[_0x4753fb(0x3ac)]($),{pivotTableId:_0x599065,fieldId:_0x517218,unitId:_0x4553d4,subUnitId:_0x2da6bf}=_0x5cb7cb,_0x54d0b3=_0x3829db[_0x4753fb(0x27b)](_0x599065);if(!_0x54d0b3)return!0x1;_0x54d0b3['removeField'](_0x517218);const _0x59493c=_0x3829db[_0x4753fb(0x281)](_0x4553d4,_0x2da6bf,_0x599065);os(_0x59493c,_0x5cb7cb);const _0x372a4c=_0x3829db[_0x4753fb(0x346)](_0x4553d4,_0x2da6bf,_0x599065);return _0x3829db[_0x4753fb(0x3c1)]({'unitId':_0x4553d4,'subUnitId':_0x2da6bf,'token':_0x599065,'type':G['Set'],'pivotConfig':_0x372a4c}),!0x0;}},Wt={'type':_0x381691['MUTATION'],'id':_0x5cdc89(0x1d0),'handler'(_0x65584b,_0x363611){const _0xf7a884=_0x5cdc89;if(!_0x363611)return!0x1;if(!!_0x65584b[_0xf7a884(0x3ac)](_0x2b55f2)[_0xf7a884(0x31f)](X))return!0x0;const _0x4a8697=_0x65584b[_0xf7a884(0x3ac)]($),{unitId:_0x5904ce,subUnitId:_0x2ef77c,pivotTableId:_0x3a930a,fieldId:_0xd536f0,name:_0x20891e}=_0x363611,_0x253bb4=_0x4a8697[_0xf7a884(0x27b)](_0x3a930a);if(!_0x253bb4)return!0x1;_0x253bb4[_0xf7a884(0x400)](_0xd536f0,_0x20891e);const _0x287dd4=_0x4a8697[_0xf7a884(0x281)](_0x5904ce,_0x2ef77c,_0x3a930a);return ns(_0x287dd4,_0x363611),_0x4a8697[_0xf7a884(0x3c1)]({'unitId':_0x5904ce,'subUnitId':_0x2ef77c,'token':_0x3a930a,'type':G['Set']}),!0x0;}},jt={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x344),'handler'(_0x2bb627,_0x53c92d){const _0x4324d3=_0x5cdc89;if(!_0x53c92d)return!0x1;if(!!_0x2bb627[_0x4324d3(0x3ac)](_0x2b55f2)['getConfig'](X))return!0x0;const _0x46a729=_0x2bb627['get']($),{unitId:_0x5e51d0,subUnitId:_0x8a7849,pivotTableId:_0x5ee463,fieldId:_0x3f96a7,collapse:_0x2db996,item:_0x4df1e9}=_0x53c92d,_0xef8de5=_0x46a729[_0x4324d3(0x27b)](_0x5ee463);if(!_0xef8de5)return!0x1;_0xef8de5[_0x4324d3(0x2a1)](_0x3f96a7,_0x2db996,_0x4df1e9);const _0x5b886a=_0x46a729['getPivotTableModelConfig'](_0x5e51d0,_0x8a7849,_0x5ee463);return is(_0x5b886a,_0x53c92d),_0x46a729[_0x4324d3(0x3c1)]({'unitId':_0x5e51d0,'subUnitId':_0x8a7849,'token':_0x5ee463,'type':G['Set']}),!0x0;}},Qt={'type':_0x381691['MUTATION'],'id':'sheet.mutation.set-pivot-format','handler'(_0x16b729,_0x4c24ab){const _0x26194d=_0x5cdc89;if(!_0x4c24ab)return!0x1;if(!!_0x16b729[_0x26194d(0x3ac)](_0x2b55f2)[_0x26194d(0x31f)](X))return!0x0;const _0x530442=_0x16b729[_0x26194d(0x3ac)]($),{unitId:_0x3fc930,subUnitId:_0x5d6095,pivotTableId:_0x2fb4d0,fieldId:_0x57480e,format:_0x4f3493}=_0x4c24ab,_0x4d8735=_0x530442['getPivotTableInstance'](_0x2fb4d0);if(!_0x4d8735)return!0x1;_0x4d8735['setFieldFormat'](_0x57480e,_0x4f3493);const _0x340224=_0x530442[_0x26194d(0x281)](_0x3fc930,_0x5d6095,_0x2fb4d0);return ss(_0x340224,_0x4c24ab),_0x530442[_0x26194d(0x3c1)]({'unitId':_0x3fc930,'subUnitId':_0x5d6095,'token':_0x2fb4d0,'type':G['Set']}),!0x0;}},Ht={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x2a3),'handler'(_0x47d824,_0x448588){const _0x201dbf=_0x5cdc89;if(!_0x448588)return!0x1;if(!!_0x47d824[_0x201dbf(0x3ac)](_0x2b55f2)[_0x201dbf(0x31f)](X))return!0x0;const _0x15b9ef=_0x47d824[_0x201dbf(0x3ac)]($),{unitId:_0x780ac0,subUnitId:_0x5b569c,pivotTableId:_0xd67608,fieldId:_0x5482fd,filterInfo:_0x2acb02}=_0x448588,_0x54d26d=_0x15b9ef[_0x201dbf(0x27b)](_0xd67608);if(!_0x54d26d)return!0x1;_0x54d26d[_0x201dbf(0x379)](_0x5482fd,_0x2acb02);const _0x1ddb63=_0x15b9ef[_0x201dbf(0x281)](_0x780ac0,_0x5b569c,_0xd67608);return as(_0x1ddb63,_0x448588),_0x15b9ef[_0x201dbf(0x3c1)]({'unitId':_0x780ac0,'subUnitId':_0x5b569c,'token':_0xd67608,'type':G['Set']}),!0x0;}},Kt={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x26d),'handler'(_0x2f2763,_0x3d86a2){const _0x3ada8a=_0x5cdc89;if(!_0x3d86a2)return!0x1;if(!!_0x2f2763['get'](_0x2b55f2)[_0x3ada8a(0x31f)](X))return!0x0;const _0x50db27=_0x2f2763[_0x3ada8a(0x3ac)]($),{unitId:_0x2e8518,subUnitId:_0x403da0,pivotTableId:_0x7c4e8a,options:_0x236bcf}=_0x3d86a2,_0x22d09b=_0x50db27[_0x3ada8a(0x27b)](_0x7c4e8a);if(!_0x22d09b)return!0x1;_0x22d09b[_0x3ada8a(0x1e3)](_0x236bcf);const _0x3ff240=_0x50db27['getPivotTableModelConfig'](_0x2e8518,_0x403da0,_0x7c4e8a);return gs(_0x3ff240,_0x3d86a2),_0x50db27[_0x3ada8a(0x3c1)]({'unitId':_0x2e8518,'subUnitId':_0x403da0,'token':_0x7c4e8a,'type':G[_0x3ada8a(0x38b)]}),!0x0;}},qt={'type':_0x381691['MUTATION'],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0xdb593f,_0x5cb0c1){const _0x47d459=_0x5cdc89;if(!_0x5cb0c1)return!0x1;if(!!_0xdb593f[_0x47d459(0x3ac)](_0x2b55f2)[_0x47d459(0x31f)](X))return!0x0;const _0x463b84=_0xdb593f[_0x47d459(0x3ac)]($),{unitId:_0x135da5,subUnitId:_0x6f6cc8,pivotTableId:_0x500d51,sortInfo:_0x5783db,fieldId:_0x429d0a}=_0x5cb0c1,_0x40e78e=_0x463b84[_0x47d459(0x27b)](_0x500d51);if(!_0x40e78e)return!0x1;_0x40e78e[_0x47d459(0x327)](_0x429d0a,_0x5783db);const _0x3ff050=_0x463b84['getPivotTableModelConfig'](_0x135da5,_0x6f6cc8,_0x500d51);return fs(_0x3ff050,_0x5cb0c1),_0x463b84[_0x47d459(0x3c1)]({'unitId':_0x135da5,'subUnitId':_0x6f6cc8,'token':_0x500d51,'type':G[_0x47d459(0x38b)]}),!0x0;}},Xt={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x322),'handler'(_0x3066e8,_0x50b255){const _0x57648a=_0x5cdc89;if(!_0x50b255)return!0x1;if(!!_0x3066e8[_0x57648a(0x3ac)](_0x2b55f2)['getConfig'](X))return!0x0;const _0x5692b4=_0x3066e8[_0x57648a(0x3ac)]($),{unitId:_0x5e3594,subUnitId:_0x1a1575,pivotTableId:_0x15427e,fieldId:_0x4946fe,subtotalType:_0x5d1f91}=_0x50b255,_0x3d13a3=_0x5692b4['getPivotTableInstance'](_0x15427e);if(!_0x3d13a3)return!0x1;_0x3d13a3[_0x57648a(0x308)](_0x4946fe,_0x5d1f91);const _0x3c8198=_0x5692b4[_0x57648a(0x281)](_0x5e3594,_0x1a1575,_0x15427e);return ls(_0x3c8198,_0x50b255),_0x5692b4[_0x57648a(0x3c1)]({'unitId':_0x5e3594,'subUnitId':_0x1a1575,'token':_0x15427e,'type':G['Set']}),!0x0;}},Yt={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x51f9cb,_0x45f110){const _0x157a51=_0x5cdc89;if(!_0x45f110)return!0x1;if(!!_0x51f9cb['get'](_0x2b55f2)[_0x157a51(0x31f)](X))return!0x0;const _0x195fd7=_0x51f9cb[_0x157a51(0x3ac)]($),{unitId:_0x4c7bd0,subUnitId:_0x372609,pivotTableId:_0x15b6ba,fieldId:_0x40d2c1,filterInfo:_0x59b94a}=_0x45f110,_0x598ba8=_0x195fd7[_0x157a51(0x27b)](_0x15b6ba);if(!_0x598ba8)return!0x1;_0x598ba8[_0x157a51(0x408)](_0x40d2c1,_0x59b94a);const _0x5c1732=_0x195fd7[_0x157a51(0x281)](_0x4c7bd0,_0x372609,_0x15b6ba);return rs(_0x5c1732,_0x45f110),_0x195fd7[_0x157a51(0x3c1)]({'unitId':_0x4c7bd0,'subUnitId':_0x372609,'token':_0x15b6ba,'type':G[_0x157a51(0x38b)]}),!0x0;}},zt={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x3b7),'handler'(_0x3144ef,_0x5dac4f){const _0x5eb99d=_0x5cdc89;if(!_0x5dac4f)return!0x1;if(!!_0x3144ef[_0x5eb99d(0x3ac)](_0x2b55f2)[_0x5eb99d(0x31f)](X))return!0x0;const _0x5cd541=_0x3144ef['get']($),{unitId:_0x47c4f6,subUnitId:_0x181b65,pivotTableId:_0x2a6bed,area:_0x7f7db7,index:_0x14b286,fieldId:_0x271916}=_0x5dac4f,_0x3e3363=_0x5cd541['getPivotTableInstance'](_0x2a6bed);if(!_0x3e3363)return!0x1;_0x3e3363[_0x5eb99d(0x24f)](_0x271916,_0x7f7db7,_0x14b286);const _0x2c83a3=_0x5cd541['getPivotTableModelConfig'](_0x47c4f6,_0x181b65,_0x2a6bed);return cs(_0x2c83a3,_0x5dac4f),_0x5cd541[_0x5eb99d(0x3c1)]({'unitId':_0x47c4f6,'subUnitId':_0x181b65,'token':_0x2a6bed,'type':G[_0x5eb99d(0x38b)]}),!0x0;}},Zt={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x292),'handler'(_0x37adaa,_0x398058){const _0xf9be9f=_0x5cdc89;if(!_0x398058)return!0x1;if(!!_0x37adaa[_0xf9be9f(0x3ac)](_0x2b55f2)['getConfig'](X))return!0x0;const _0x13fd0a=_0x37adaa[_0xf9be9f(0x3ac)]($),{unitId:_0xc30578,subUnitId:_0x273e5e,pivotTableId:_0x1d98cc,sourceName:_0x460d0c,dataFieldId:_0x6b4c09,tableFieldId:_0x2c4edc}=_0x398058,_0x70d29a=_0x13fd0a['getPivotTableInstance'](_0x1d98cc);if(!_0x70d29a)return!0x1;_0x70d29a[_0xf9be9f(0x3ff)](_0x2c4edc,_0x460d0c,_0x6b4c09);const _0x2f615e=_0x13fd0a[_0xf9be9f(0x281)](_0xc30578,_0x273e5e,_0x1d98cc);return us(_0x2f615e,_0x398058),_0x13fd0a[_0xf9be9f(0x3c1)]({'unitId':_0xc30578,'subUnitId':_0x273e5e,'token':_0x1d98cc,'type':G[_0xf9be9f(0x38b)]}),!0x0;}},eo={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x32e),'handler'(_0x5cd410,_0x3ed366){const _0x5bffd1=_0x5cdc89;if(!_0x3ed366)return!0x1;if(!!_0x5cd410['get'](_0x2b55f2)[_0x5bffd1(0x31f)](X))return!0x0;const _0x6a1177=_0x5cd410[_0x5bffd1(0x3ac)]($),{unitId:_0x270ecb,subUnitId:_0x30ef8e,pivotTableId:_0x3e0b78,valuePosition:_0x874483,index:_0x27e9e1}=_0x3ed366,_0x5372e7=_0x6a1177[_0x5bffd1(0x27b)](_0x3e0b78);if(!_0x5372e7)return!0x1;_0x5372e7['updateValuePosition'](_0x874483,_0x27e9e1);const _0x1e87a=_0x6a1177[_0x5bffd1(0x281)](_0x270ecb,_0x30ef8e,_0x3e0b78);return ds(_0x1e87a,_0x3ed366),_0x6a1177[_0x5bffd1(0x3c1)]({'unitId':_0x270ecb,'subUnitId':_0x30ef8e,'token':_0x3e0b78,'type':G[_0x5bffd1(0x38b)]}),!0x0;}};function me(_0x523da3,_0x11357e,_0x164a64){const _0x32725c=_0x5cdc89,{pivotTableId:_0x5a80ad,unitId:_0x4c9732,subUnitId:_0x29f912}=_0x11357e,_0x1d912f=[],_0x490d28=[];for(const _0x103623 of _0x164a64)switch(_0x103623[_0x32725c(0x1bf)]){case _0x3c53c6[_0x32725c(0x1ed)]:{const {fieldJson:_0x8480b6,area:_0x46503b,index:_0x80b3c1}=_0x103623,_0x1c4eba={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldJson':_0x8480b6,'area':_0x46503b,'index':_0x80b3c1},_0x10ecbc={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x8480b6['id'],'area':_0x46503b,'index':_0x80b3c1};_0x1d912f[_0x32725c(0x323)]({'id':$t['id'],'params':_0x1c4eba}),_0x490d28[_0x32725c(0x22d)]({'id':Jt['id'],'params':_0x10ecbc});}break;case _0x3c53c6[_0x32725c(0x415)]:{const {fieldId:_0x1ba0c0,newSubtotalType:_0x2c1c01,oldSubtotalType:_0x30a857}=_0x103623,_0x1b1ebd={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x1ba0c0,'subtotalType':_0x2c1c01};_0x1d912f['push']({'id':Xt['id'],'params':_0x1b1ebd});const _0x5953b9={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x1ba0c0,'subtotalType':_0x30a857};_0x490d28[_0x32725c(0x22d)]({'id':Xt['id'],'params':_0x5953b9});}break;case _0x3c53c6[_0x32725c(0x427)]:{const {fieldId:_0x5a7147,fieldJson:_0x6c72cd,area:_0x3ed735,index:_0x1ebf59}=_0x103623,_0x51113f={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x5a7147,'index':_0x1ebf59,'area':_0x3ed735};_0x1d912f[_0x32725c(0x323)]({'id':Jt['id'],'params':_0x51113f});const _0x547d06={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldJson':_0x6c72cd,'area':_0x3ed735,'index':_0x1ebf59};_0x490d28['unshift']({'id':$t['id'],'params':_0x547d06});}break;case _0x3c53c6[_0x32725c(0x380)]:{const {fieldId:_0x4c2bd8,oldName:_0x223578,newName:_0x5dafab}=_0x103623,_0x45c205={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x4c2bd8,'name':_0x5dafab};_0x1d912f[_0x32725c(0x323)]({'id':Wt['id'],'params':_0x45c205});const _0x5672a0={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x4c2bd8,'name':_0x223578};_0x490d28[_0x32725c(0x22d)]({'id':Wt['id'],'params':_0x5672a0});}break;case _0x3c53c6['SetFilterInfo']:{const {fieldId:_0x311936,oldFilterInfo:_0x2267d3,newFilterInfo:_0x26c89a}=_0x103623,_0xc7a40a={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x311936,'filterInfo':_0x26c89a};_0x1d912f[_0x32725c(0x323)]({'id':Ht['id'],'params':_0xc7a40a});const _0x163194={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x311936,'filterInfo':_0x2267d3};_0x490d28[_0x32725c(0x22d)]({'id':Ht['id'],'params':_0x163194});}break;case _0x3c53c6['SetSortInfo']:{const {fieldId:_0x9e1384,oldSortInfo:_0x897e1c,newSortInfo:_0x2865f5}=_0x103623,_0x1883ae={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x9e1384,'sortInfo':_0x2865f5};_0x1d912f['push']({'id':qt['id'],'params':_0x1883ae});const _0x136ff3={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x9e1384,'sortInfo':_0x897e1c};_0x490d28[_0x32725c(0x22d)]({'id':qt['id'],'params':_0x136ff3});}break;case _0x3c53c6['SetOptions']:{const {oldOptions:_0x3ff2c7,newOptions:_0x213faa}=_0x103623,_0x4d6ca4={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'options':_0x213faa};_0x1d912f['push']({'id':Kt['id'],'params':_0x4d6ca4});const _0x3e8b67={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'options':_0x3ff2c7};_0x490d28[_0x32725c(0x22d)]({'id':Kt['id'],'params':_0x3e8b67});}break;case _0x3c53c6[_0x32725c(0x37a)]:{const {oldArea:_0x2a8a1e,newArea:_0x5b6fa5,oldIndex:_0x29fbfa,newIndex:_0x337bbb,fieldId:_0x3b06e6}=_0x103623,_0x114eec={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x3b06e6,'area':_0x5b6fa5,'index':_0x337bbb,'oldArea':_0x2a8a1e,'oldIndex':_0x29fbfa};_0x1d912f[_0x32725c(0x323)]({'id':zt['id'],'params':_0x114eec});const _0x1d2ca7={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x3b06e6,'area':_0x2a8a1e,'index':_0x29fbfa,'oldArea':_0x5b6fa5,'oldIndex':_0x337bbb};_0x490d28['unshift']({'id':zt['id'],'params':_0x1d2ca7});}break;case _0x3c53c6[_0x32725c(0x310)]:{const {oldValuePosition:_0x3038dc,newValuePosition:_0x44b5da,oldIndex:_0x5b0133,newIndex:_0x185715}=_0x103623,_0x48fcf0={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'valuePosition':_0x44b5da,'index':_0x185715};_0x1d912f[_0x32725c(0x323)]({'id':eo['id'],'params':_0x48fcf0});const _0x24cfb3={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'valuePosition':_0x3038dc,'index':_0x5b0133};_0x490d28[_0x32725c(0x22d)]({'id':eo['id'],'params':_0x24cfb3});}break;case _0x3c53c6[_0x32725c(0x2a6)]:{const {fieldId:_0xcbd007,collapse:_0x124b11,item:_0x226a68}=_0x103623,_0x52837b={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0xcbd007,'collapse':_0x124b11,'item':_0x226a68};_0x1d912f['push']({'id':jt['id'],'params':_0x52837b});const _0x36dfff={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0xcbd007,'collapse':!_0x124b11,'item':_0x226a68};_0x490d28[_0x32725c(0x22d)]({'id':jt['id'],'params':_0x36dfff});}break;case _0x3c53c6[_0x32725c(0x3da)]:{const {newFormat:_0x288c49,oldFormat:_0x295629,fieldId:_0x31d50e}=_0x103623,_0x488624={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x31d50e,'format':_0x288c49};_0x1d912f[_0x32725c(0x323)]({'id':Qt['id'],'params':_0x488624});const _0x558ca0={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x31d50e,'format':_0x295629};_0x490d28[_0x32725c(0x22d)]({'id':Qt['id'],'params':_0x558ca0});}break;case _0x3c53c6[_0x32725c(0x1da)]:{const {tableFieldId:_0xbb62bd,oldSourceName:_0x1732d8,newSourceName:_0x2671db,oldDataFieldId:_0xcec562,newDataFieldId:_0x3c5b45}=_0x103623,_0x1e3c56={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'tableFieldId':_0xbb62bd,'sourceName':_0x2671db,'dataFieldId':_0x3c5b45};_0x1d912f[_0x32725c(0x323)]({'id':Zt['id'],'params':_0x1e3c56});const _0x388343={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'tableFieldId':_0xbb62bd,'sourceName':_0x1732d8,'dataFieldId':_0xcec562};_0x490d28['unshift']({'id':Zt['id'],'params':_0x388343});}break;case _0x3c53c6['SetValueFilter']:{const {fieldId:_0x4b2b43,filterInfo:_0x2892cb,oldFilterInfo:_0x5264bc}=_0x103623,_0x3d144b={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x4b2b43,'filterInfo':_0x2892cb};_0x1d912f[_0x32725c(0x323)]({'id':Yt['id'],'params':_0x3d144b});const _0x20466c={'unitId':_0x4c9732,'subUnitId':_0x29f912,'pivotTableId':_0x5a80ad,'fieldId':_0x4b2b43,'filterInfo':_0x5264bc};_0x490d28[_0x32725c(0x22d)]({'id':Yt['id'],'params':_0x20466c});}}return{'redos':_0x1d912f,'undos':_0x490d28};}function Re(_0x3b3c6e,_0xf9969c){const _0x35a818=_0x5cdc89;var _0xdd337b;const _0x35ed1a=_0x3b3c6e['get'](ie),{cellInfo:_0x3a897f,view:_0x58b48c,isEmpty:_0x368cf7}=_0xf9969c;return(_0xdd337b=_0x35ed1a['interceptor'][_0x35a818(0x1e4)](Jo)(To,{'cellInfo':_0x3a897f,'view':_0x58b48c,'isEmpty':_0x368cf7}))!=null?_0xdd337b:To;}const vs={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x2bb),async 'handler'(_0x3a31de,_0x2c831f){const _0x492219=_0x5cdc89;if(!_0x2c831f)return!0x1;const _0x1f57df=_0x3a31de[_0x492219(0x3ac)](_0x3ed3f2),_0x1b7111=_0x3a31de['get'](z),_0x5b11c4=_0x3a31de[_0x492219(0x3ac)](_0x4d5faf),{pivotTableId:_0x16843c,dataFieldId:_0x443a7b,fieldArea:_0x549355,index:_0x463703,unitId:_0x1b1741,subUnitId:_0x4629b2}=_0x2c831f,_0x3cc893=(await _0x1b7111['getPivotDisplayConfig']({'unitId':_0x1b1741,'subUnitId':_0x4629b2,'pivotTableId':_0x16843c,'params':{'type':k['AddPivotField'],'addPivotField':{'dataFieldId':_0x443a7b,'fieldArea':_0x549355,'index':_0x463703}}}))[_0x492219(0x24b)]['addPivotField'];if(!_0x3cc893)return!0x1;const {view:_0x1656b5,changesets:_0x3a8a19,isEmpty:_0xec7ef9,pivotTableConfig:_0x582e3c,shouldBeAddedGroupJSON:_0x177d6d}=_0x3cc893,_0x5979c5=_0x582e3c[_0x492219(0x28a)],_0x5e8d6a=new _0x186364();_0x5e8d6a[_0x492219(0x27e)](_0x1656b5);const _0x2121f6={'cellInfo':_0x5979c5,'view':_0x5e8d6a,'isEmpty':_0xec7ef9};if(!await _0x3a31de['get'](ie)[_0x492219(0x3f9)][_0x492219(0x1c5)](be)(!0x0,_0x2121f6))return!0x1;const _0x20d7c5=we(_0x3a31de,_0x5e8d6a,_0x5979c5,_0xec7ef9),_0x1e6ac2=Re(_0x3a31de,_0x2121f6),{undos:_0x62af4d,redos:_0x3ab7f2}=me(_0x1f57df,{'pivotTableId':_0x16843c,'unitId':_0x1b1741,'subUnitId':_0x4629b2},_0x3a8a19);return _0x177d6d&&(_0x3ab7f2[_0x492219(0x22d)]({'id':Yo['id'],'params':{'pivotTableId':_0x16843c,'fieldJSON':_0x177d6d,'unitId':_0x1b1741,'subUnitId':_0x4629b2}}),_0x62af4d[_0x492219(0x323)]({'id':zo['id'],'params':{'pivotTableId':_0x16843c,'dataFieldId':_0x177d6d['id'],'unitId':_0x1b1741,'subUnitId':_0x4629b2}})),_0x1fffdd([..._0x20d7c5[_0x492219(0x23d)],..._0x1e6ac2[_0x492219(0x23d)],..._0x3ab7f2],_0x1f57df),_0x5b11c4[_0x492219(0x337)]({'unitID':_0x1b1741,'redoMutations':[..._0x20d7c5[_0x492219(0x23d)],..._0x1e6ac2[_0x492219(0x23d)],..._0x3ab7f2],'undoMutations':[..._0x20d7c5[_0x492219(0x3b6)],..._0x1e6ac2[_0x492219(0x3b6)],..._0x62af4d]}),!0x0;}},hs=()=>typeof process<'u'&&process['versions']!=null&&process[_0x5cdc89(0x2b1)][_0x5cdc89(0x396)]!=null,Ct={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x37d),'handler'(_0x436df9,_0x111775){const _0x392772=_0x5cdc89;var _0xbb5f7e;if(!_0x111775)return!0x1;const _0x5539fe=_0x436df9['get'](_0x2b55f2);if(!!_0x5539fe[_0x392772(0x31f)](X))return!0x0;const _0x16c7c8=_0x436df9[_0x392772(0x3ac)](_0x2db36d),_0x264e8c=_0x436df9[_0x392772(0x3ac)]($),{pivotTableId:_0x17c057,pivotTableConfig:_0x7cd629,collectionConfig:_0x4915ef,unitId:_0x2912ce,subUnitId:_0x3d4a7c}=_0x111775,{sourceRangeInfo:_0xcc9d2f,fieldsConfig:_0x5b0d91,targetCellInfo:_0x358df9}=_0x7cd629,_0x5e5217=_0x16c7c8['getUnit'](_0x2912ce);if(!_0x5e5217||!_0x5e5217[_0x392772(0x2ff)](_0x3d4a7c))return!0x1;if(!hs()){let _0x3d165b=0x0;_0x5e5217[_0x392772(0x2ad)]()[_0x392772(0x40a)](_0x147df4=>{const _0x515f97=_0x392772;var _0x504c2b,_0x507b52;_0x3d165b+=(_0x507b52=(_0x504c2b=_0x264e8c[_0x515f97(0x3c3)](_0x2912ce,_0x147df4[_0x515f97(0x20b)]()))==null?void 0x0:_0x504c2b[_0x515f97(0x35a)])!=null?_0x507b52:0x0;});const _0x8774dc=(_0xbb5f7e=_0x5539fe[_0x392772(0x31f)](_0x9e407d))!=null?_0xbb5f7e:{},{ls:_0x3bb1e9,pbk:_0x695cd}=_0x8774dc;if(!Ho(_0x3bb1e9,_0x695cd))throw new _0x124b3c(_0x392772(0x3a7));const _0xed6170=go(so,_0x3bb1e9,_0x695cd)[_0x392772(0x1e7)];if(_0x3d165b>=_0xed6170)throw new _0x124b3c(_0x392772(0x3a7));}if(!_0x4915ef||!_0x5b0d91)return!0x1;const {collection:_0x41de2f,updateDataFieldList:_0x14dc5f}=_0x264e8c[_0x392772(0x41a)](_0x17c057,_0x4915ef,_0xcc9d2f,_0x358df9);_0x264e8c[_0x392772(0x40e)](_0x41de2f,_0x14dc5f,_0xcc9d2f);const _0x2a3c14=new _0xb58591(_0x41de2f,void 0x0,_0x17c057);_0x2a3c14['fromJSON'](_0x5b0d91);const _0x76c486=JSON[_0x392772(0x2b6)](JSON[_0x392772(0x1ba)](_0x7cd629));return _0x264e8c[_0x392772(0x1fb)](_0x2912ce,_0x3d4a7c,_0x17c057,_0x2a3c14,_0x76c486),_0x264e8c[_0x392772(0x3c1)]({'unitId':_0x2912ce,'subUnitId':_0x3d4a7c,'token':_0x17c057,'type':G[_0x392772(0x381)],'pivotConfig':_0x76c486}),!0x0;}},ps={'type':_0x381691['COMMAND'],'id':_0x5cdc89(0x3ab),async 'handler'(_0x3a6399,_0x2d1a29){const _0x51bab4=_0x5cdc89;if(!_0x2d1a29)return!0x1;const {sourceDataInfo:_0x365031,pivotTableConfig:_0x11969c}=_0x2d1a29;if(!_0x365031||!_0x11969c)return!0x1;const {unitId:_0xf087b8,subUnitId:_0x4c3452,range:_0x7dd79d}=_0x365031,_0xc0e131=_0x3a6399[_0x51bab4(0x3ac)](_0x2db36d),_0x390a97=_0x3a6399['get'](z),_0x5de714=_0x3a6399[_0x51bab4(0x3ac)](_0xfc5594),_0x51bbe1=_0x3a6399['get'](_0x3ed3f2),_0x190627=_0xc0e131[_0x51bab4(0x216)](_0xf087b8);if(!_0x190627)return!0x1;const _0x338fe6=_0x190627[_0x51bab4(0x2ff)](_0x4c3452);if(!_0x338fe6)return!0x1;const _0x2f0e8c=_0x4251b6(0x8),_0x181ba8=_0x7dd79d||{'startRow':0x0,'startColumn':0x0,'endRow':_0x338fe6[_0x51bab4(0x3bc)]()-0x1,'endColumn':_0x338fe6[_0x51bab4(0x2c1)]()-0x1};_0x181ba8[_0x51bab4(0x2b3)]=_0x119a4f[_0x51bab4(0x25e)];const _0x38fad9=(await _0x390a97[_0x51bab4(0x3e0)]({'unitId':_0xf087b8,'subUnitId':_0x4c3452,'pivotTableId':_0x2f0e8c,'params':{'type':k[_0x51bab4(0x3e7)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0xf087b8,'sheetName':_0x338fe6[_0x51bab4(0x3f1)](),'subUnitId':_0x4c3452,'range':_0x181ba8},'pivotTableId':_0x2f0e8c,'pivotTableIndexConfig':_0x11969c}}}))[_0x51bab4(0x24b)][_0x51bab4(0x424)];if(!_0x38fad9)return!0x1;const {isEmpty:_0x499dee,fieldsConfig:_0x16a591,collectionConfig:_0x43026d,changesets:_0x2a7716}=_0x38fad9,_0x523c81=_0x190627[_0x51bab4(0x2ad)]()[_0x51bab4(0x36b)],_0x41fc9b=_0x359610({'rowCount':_0x338fe6['getRowCount']()-0x1,'columnCount':_0x338fe6[_0x51bab4(0x2c1)]()-0x1});_0x41fc9b['id']=_0x47afac(),_0x41fc9b[_0x51bab4(0x29b)]=_0x190627[_0x51bab4(0x397)](''+_0x5de714['t'](_0x51bab4(0x203)));const _0x3920f1={'index':_0x523c81,'sheet':_0x41fc9b,'unitId':_0xf087b8},{redos:_0x1763ae}=me(_0x51bbe1,{'pivotTableId':_0x2f0e8c,'unitId':_0xf087b8,'subUnitId':_0x41fc9b['id']},_0x2a7716),_0x5dc8e7=[{'id':_0x79947c['id'],'params':_0x3920f1},{'id':Ct['id'],'params':{'unitId':_0xf087b8,'subUnitId':_0x41fc9b['id'],'pivotTableId':_0x2f0e8c,'pivotTableConfig':{'isEmpty':_0x499dee,'fieldsConfig':_0x16a591,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0xf087b8,'subUnitId':_0x41fc9b['id']},'sourceRangeInfo':{'subUnitId':_0x4c3452,'unitId':_0xf087b8,'range':_0x181ba8,'sheetName':_0x338fe6[_0x51bab4(0x3f1)]()}},'collectionConfig':_0x43026d}},..._0x1763ae];return _0x1fffdd(_0x5dc8e7,_0x51bbe1),!0x0;}},xt={'type':_0x381691['MUTATION'],'id':_0x5cdc89(0x290),'handler'(_0x242cc6,_0x16690d){const _0x2d1b16=_0x5cdc89;if(!_0x16690d)return!0x1;if(!!_0x242cc6[_0x2d1b16(0x3ac)](_0x2b55f2)[_0x2d1b16(0x31f)](X))return!0x0;const {pivotTableId:_0x348e5d,unitId:_0x3d23e2,subUnitId:_0x5d7a4b}=_0x16690d,_0x56dcb1=_0x242cc6['get']($);return _0x56dcb1[_0x2d1b16(0x346)](_0x3d23e2,_0x5d7a4b,_0x348e5d)?(_0x56dcb1['addDirtyPivotTable']({'unitId':_0x3d23e2,'subUnitId':_0x5d7a4b,'token':_0x348e5d,'type':G[_0x2d1b16(0x2c8)]}),_0x56dcb1['removePivotTable'](_0x3d23e2,_0x5d7a4b,_0x348e5d),!0x0):!0x1;}},ms={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x2d8),async 'handler'(_0x2690c8,_0x382d78){const _0x3c9ba3=_0x5cdc89;var _0x2f7811,_0x1dedb6;const _0x48755f=_0x2690c8[_0x3c9ba3(0x3ac)](_0x3ed3f2),_0x128fa2=_0x2690c8['get'](_0x2db36d),_0xa82a5e=_0x2690c8['get'](_0xfc5594),_0x198f2a=_0x2690c8[_0x3c9ba3(0x3ac)](z),_0x417140=_0x2690c8['get'](_0x4d5faf),_0x240707=_0x2690c8['get'](he),_0x19eab6=_0x2690c8[_0x3c9ba3(0x3ac)](_0x2b55f2);if(!_0x382d78)return!0x1;const {pivotTableConfig:_0x4d5f47,positionType:_0x328dd1}=_0x382d78,{targetCellInfo:_0x40d2e6,sourceRangeInfo:_0xf0f65f}=_0x4d5f47,{unitId:_0x1654ac,subUnitId:_0x176478}=_0x40d2e6,_0x548d74=_0x128fa2[_0x3c9ba3(0x216)](_0x1654ac);if(!_0x548d74)return!0x1;let _0x120b42=0x0;_0x548d74[_0x3c9ba3(0x2ad)]()['forEach'](_0x426fa5=>{const _0x4ade9a=_0x3c9ba3;var _0x5b84ad,_0x30e55c;_0x120b42+=(_0x30e55c=(_0x5b84ad=_0x240707[_0x4ade9a(0x3c3)](_0x1654ac,_0x426fa5[_0x4ade9a(0x20b)]()))==null?void 0x0:_0x5b84ad[_0x4ade9a(0x35a)])!=null?_0x30e55c:0x0;});const _0x523d50=(_0x2f7811=_0x19eab6['getConfig'](_0x9e407d))!=null?_0x2f7811:{},{ls:_0x110c35,pbk:_0x9fca91}=_0x523d50;if(!Ho(_0x110c35,_0x9fca91))return!0x1;const _0x4c31a6=go(so,_0x110c35,_0x9fca91)[_0x3c9ba3(0x1e7)];if(_0x120b42>=_0x4c31a6)return!0x1;const _0x1baf68=_0x382d78['pivotTableId']||_0x4251b6(0x8),_0x1d1cf4=(await _0x198f2a[_0x3c9ba3(0x3e0)]({'unitId':_0x1654ac,'subUnitId':_0x176478,'pivotTableId':_0x1baf68,'params':{'type':k[_0x3c9ba3(0x236)],'addPivotTable':{'sourceRangeInfo':_0xf0f65f,'pivotTableId':_0x1baf68}}}))['result']['addPivotTable'];if(!_0x1d1cf4)return!0x1;const {view:_0x52097f,isEmpty:_0x57acd0,fieldsConfig:_0x960e89,collectionConfig:_0x1e2591}=_0x1d1cf4,_0x5f17ac=[],_0x1835cb=[];if(_0x328dd1===Bo['New']){const _0x538d35=_0x548d74['getSheets']()[_0x3c9ba3(0x36b)],_0x387624=_0x359610({});_0x387624['id']=_0x4d5f47[_0x3c9ba3(0x28a)]['subUnitId'],_0x387624[_0x3c9ba3(0x29b)]=(_0x1dedb6=_0x4d5f47[_0x3c9ba3(0x28a)][_0x3c9ba3(0x219)])!=null?_0x1dedb6:_0x548d74['generateNewSheetName'](''+_0xa82a5e['t'](_0x3c9ba3(0x203)));const _0x4c35e2={'index':_0x538d35,'sheet':_0x387624,'unitId':_0x1654ac},_0x145be2=_0x5c921(_0x2690c8,_0x4c35e2);_0x5f17ac['push']({'id':_0x1c3c36['id'],'params':_0x145be2}),_0x1835cb[_0x3c9ba3(0x323)]({'id':_0x545fe4['id'],'params':_0x4c35e2});}else{if(!_0x548d74['getSheetBySheetId'](_0x176478))return!0x1;const _0x4ea404=we(_0x2690c8,new _0x186364(),_0x40d2e6,!0x0);_0x1835cb[_0x3c9ba3(0x323)](..._0x4ea404[_0x3c9ba3(0x23d)]),_0x5f17ac[_0x3c9ba3(0x323)](..._0x4ea404[_0x3c9ba3(0x3b6)]);const _0xb7d80a={'cellInfo':_0x40d2e6,'view':_0x52097f,'isEmpty':_0x57acd0};if(!await _0x2690c8[_0x3c9ba3(0x3ac)](ie)[_0x3c9ba3(0x3f9)][_0x3c9ba3(0x1c5)](be)(!0x0,_0xb7d80a))return!0x1;const _0x2b7bbd=Re(_0x2690c8,_0xb7d80a);_0x1835cb[_0x3c9ba3(0x323)](..._0x2b7bbd[_0x3c9ba3(0x23d)]),_0x5f17ac[_0x3c9ba3(0x323)](..._0x2b7bbd[_0x3c9ba3(0x3b6)]);}return _0x1835cb[_0x3c9ba3(0x323)]({'id':Ct['id'],'params':{'unitId':_0x40d2e6[_0x3c9ba3(0x1cb)],'subUnitId':_0x40d2e6[_0x3c9ba3(0x395)],'pivotTableId':_0x1baf68,'pivotTableConfig':{'targetCellInfo':_0x40d2e6,'sourceRangeInfo':_0xf0f65f,'fieldsConfig':_0x960e89},'collectionConfig':_0x1e2591}}),_0x5f17ac[_0x3c9ba3(0x22d)]({'id':xt['id'],'params':{'unitId':_0x1654ac,'subUnitId':_0x176478,'pivotTableId':_0x1baf68}}),_0x1fffdd(_0x1835cb,_0x48755f)&&_0x417140['pushUndoRedo']({'unitID':_0x1654ac,'undoMutations':_0x5f17ac,'redoMutations':_0x1835cb}),!0x0;}},Is={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x360),async 'handler'(_0x539f4f,_0x5a75d1){const _0x287023=_0x5cdc89;if(!_0x5a75d1)return!0x1;const _0x553e0e=_0x539f4f[_0x287023(0x3ac)](_0x3ed3f2),_0x316d09=_0x539f4f[_0x287023(0x3ac)](z),_0x182bf4=_0x539f4f[_0x287023(0x3ac)](_0x4d5faf),{pivotTableId:_0x24328f,fieldId:_0x28585f,area:_0x46fe1d,index:_0x208c45,unitId:_0x4ab960,subUnitId:_0x206400}=_0x5a75d1,_0x2cd3e3=(await _0x316d09[_0x287023(0x3e0)]({'unitId':_0x4ab960,'subUnitId':_0x206400,'pivotTableId':_0x24328f,'params':{'type':k[_0x287023(0x212)],'movePivotField':{'fieldId':_0x28585f,'area':_0x46fe1d,'index':_0x208c45}}}))[_0x287023(0x24b)]['movePivotField'];if(!_0x2cd3e3)return!0x1;const {changesets:_0x142f3c,view:_0x3ac1a2,isEmpty:_0x2c5bc2,pivotTableConfig:_0x262ed0}=_0x2cd3e3,_0x359a0c=_0x262ed0[_0x287023(0x28a)],_0x219837=new _0x186364();_0x219837[_0x287023(0x27e)](_0x3ac1a2);const _0xe0eefa={'cellInfo':_0x359a0c,'view':_0x219837,'isEmpty':_0x2c5bc2};if(!await _0x539f4f[_0x287023(0x3ac)](ie)[_0x287023(0x3f9)][_0x287023(0x1c5)](be)(!0x0,_0xe0eefa))return!0x1;const _0x289d7f=we(_0x539f4f,_0x219837,_0x359a0c,_0x2c5bc2),_0x581b00=Re(_0x539f4f,_0xe0eefa),{redos:_0x186777,undos:_0x551230}=me(_0x553e0e,{'pivotTableId':_0x24328f,'unitId':_0x4ab960,'subUnitId':_0x206400},_0x142f3c);return _0x1fffdd([..._0x289d7f[_0x287023(0x23d)],..._0x581b00['redos'],..._0x186777],_0x553e0e),_0x182bf4[_0x287023(0x337)]({'unitID':_0x4ab960,'redoMutations':[..._0x289d7f[_0x287023(0x23d)],..._0x581b00[_0x287023(0x23d)],..._0x186777],'undoMutations':[..._0x289d7f[_0x287023(0x3b6)],..._0x581b00[_0x287023(0x3b6)],..._0x551230]}),!0x0;}},pt={'type':_0x381691[_0x5cdc89(0x279)],'id':_0x5cdc89(0x1d1),'handler'(_0x23829e,_0x1475f3){const _0x2bfc44=_0x5cdc89;if(!_0x1475f3)return!0x1;if(!!_0x23829e[_0x2bfc44(0x3ac)](_0x2b55f2)[_0x2bfc44(0x31f)](X))return!0x0;const {pivotTableId:_0x500d88,targetCellPosition:_0x14f601,unitId:_0x22f761,subUnitId:_0x106f21}=_0x1475f3,_0x56f62b=_0x23829e[_0x2bfc44(0x3ac)]($);if(!_0x56f62b[_0x2bfc44(0x27b)](_0x1475f3['pivotTableId']))return!0x1;const _0x4a0d36=_0x56f62b[_0x2bfc44(0x2c2)](_0x500d88);if(!_0x4a0d36)return!0x1;const _0x2f33e6=_0x56f62b[_0x2bfc44(0x2c6)](_0x4a0d36[_0x2bfc44(0x1cb)],_0x1475f3[_0x2bfc44(0x2b8)]);if(!_0x2f33e6)return!0x1;const _0x2d43f6=_0x56f62b[_0x2bfc44(0x346)](_0x4a0d36[_0x2bfc44(0x1cb)],_0x4a0d36[_0x2bfc44(0x395)],_0x500d88);if(!_0x2d43f6)return!0x1;const _0x4ecbb1=_0x34d097[_0x2bfc44(0x328)](_0x2d43f6);_0x4ecbb1[_0x2bfc44(0x28a)]={'unitId':_0x22f761,'subUnitId':_0x106f21,'row':_0x14f601['row'],'col':_0x14f601[_0x2bfc44(0x1cf)]};const _0x4c549c=_0x2f33e6[_0x2bfc44(0x42a)]();if(_0x4a0d36['subUnitId']===_0x106f21&&_0x4a0d36[_0x2bfc44(0x1cb)]===_0x22f761)_0x56f62b[_0x2bfc44(0x41d)](_0x22f761,_0x106f21,_0x500d88,_0x4ecbb1),_0x56f62b[_0x2bfc44(0x3c1)]({'unitId':_0x22f761,'subUnitId':_0x106f21,'token':_0x500d88,'type':G['Set']});else{_0x56f62b['addDirtyPivotTable']({'unitId':_0x4a0d36[_0x2bfc44(0x1cb)],'subUnitId':_0x4a0d36['subUnitId'],'token':_0x500d88,'type':G[_0x2bfc44(0x2c8)]}),_0x56f62b[_0x2bfc44(0x1e1)](_0x4a0d36[_0x2bfc44(0x1cb)],_0x4a0d36[_0x2bfc44(0x395)],_0x500d88);const _0x124a67=_0x56f62b[_0x2bfc44(0x41a)](_0x500d88,_0x4c549c,_0x2d43f6[_0x2bfc44(0x3e5)],_0x4ecbb1[_0x2bfc44(0x28a)]),_0x57d437=new _0xb58591(_0x124a67['collection'],void 0x0,_0x500d88);_0x57d437[_0x2bfc44(0x3d5)](_0x4ecbb1[_0x2bfc44(0x35d)]),_0x56f62b['addPivotTable'](_0x22f761,_0x106f21,_0x500d88,_0x57d437,_0x4ecbb1),_0x56f62b['addDirtyPivotTable']({'unitId':_0x22f761,'subUnitId':_0x106f21,'token':_0x500d88,'type':G[_0x2bfc44(0x381)],'pivotConfig':_0x4ecbb1});}return!0x0;}},Cs={'type':_0x381691[_0x5cdc89(0x205)],'id':'sheet.command.move-pivot-table','handler':(_0x2255f4,_0x5c6f5d)=>{const _0x4cb936=_0x5cdc89,_0x44a611=_0x2255f4['get'](_0x3ed3f2),_0x5e8e1f=_0x2255f4[_0x4cb936(0x3ac)](_0x4d5faf),_0x271db6=_0x2255f4[_0x4cb936(0x3ac)](he),_0x170b3c=_0x2255f4[_0x4cb936(0x3ac)](_0x2db36d);if(!_0x5c6f5d)return!0x1;const _0x4c39e0=_0xa32eb7(_0x170b3c);if(!_0x4c39e0)return!0x1;const {unitId:_0x2703c3,subUnitId:_0xfed705,workbook:_0x2effe4}=_0x4c39e0,_0x56a908=_0x271db6[_0x4cb936(0x346)](_0x5c6f5d['originTargetInfo'][_0x4cb936(0x1cb)],_0x5c6f5d[_0x4cb936(0x398)][_0x4cb936(0x395)],_0x5c6f5d['pivotTableId']);if(!_0x56a908)return!0x1;const _0x128a28=_0x2effe4[_0x4cb936(0x2ff)](_0x5c6f5d[_0x4cb936(0x28a)][_0x4cb936(0x395)]);if(!_0x128a28)throw new Error(_0x4cb936(0x317));const _0x3d580b=_0x128a28['getRowCount'](),_0x171fad=_0x128a28[_0x4cb936(0x2c1)]();if(_0x5c6f5d[_0x4cb936(0x28a)][_0x4cb936(0x3af)]>_0x3d580b||_0x5c6f5d[_0x4cb936(0x28a)][_0x4cb936(0x1cf)]>_0x171fad)throw new Error(_0x4cb936(0x1c7));const _0x16b9fc=[{'id':pt['id'],'params':{'unitId':_0x2703c3,'subUnitId':_0x5c6f5d[_0x4cb936(0x28a)][_0x4cb936(0x395)],'pivotTableId':_0x5c6f5d['pivotTableId'],'targetCellPosition':{'row':_0x5c6f5d[_0x4cb936(0x28a)][_0x4cb936(0x3af)],'col':_0x5c6f5d['targetCellInfo'][_0x4cb936(0x1cf)]}}}],_0x1dc065=[{'id':pt['id'],'params':{'unitId':_0x2703c3,'subUnitId':_0xfed705,'pivotTableId':_0x5c6f5d[_0x4cb936(0x2b8)],'targetCellPosition':{'row':_0x56a908['targetCellInfo'][_0x4cb936(0x3af)],'col':_0x56a908[_0x4cb936(0x28a)][_0x4cb936(0x1cf)]}}}];return _0x1fffdd(_0x16b9fc,_0x44a611)&&_0x5e8e1f[_0x4cb936(0x337)]({'unitID':_0x2703c3,'undoMutations':_0x1dc065,'redoMutations':_0x16b9fc}),!0x0;}},bs={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x39c),async 'handler'(_0x3e28da,_0x1345a2){const _0x1d25f0=_0x5cdc89;var _0x42730a;if(!_0x1345a2)return!0x1;const _0xf4edfa=_0x3e28da['get'](_0x2db36d),_0xf3e0b9=_0xa32eb7(_0xf4edfa);if(!_0xf3e0b9)return!0x1;const {unitId:_0xb62212,subUnitId:_0x1b72f5,workbook:_0x42a2cd}=_0xf3e0b9,{row:_0x4c013b,col:_0x11c591}=_0x1345a2,_0x126d55=_0x3e28da[_0x1d25f0(0x3ac)](Ee),_0x386167=_0x126d55[_0x1d25f0(0x410)](_0xb62212,_0x1b72f5,_0x4c013b,_0x11c591);if(!_0x386167)return!0x1;const _0x41bc6f=(_0x42730a=_0x126d55['getPivotItemRenderInfoCache'](_0xb62212,_0x1b72f5,_0x386167))==null?void 0x0:_0x42730a[_0x1d25f0(0x2f0)];if(!_0x41bc6f)return!0x1;const _0x191187=_0x3e28da[_0x1d25f0(0x3ac)](he)[_0x1d25f0(0x346)](_0xb62212,_0x1b72f5,_0x386167);if(!_0x191187)return!0x1;const {rowInfo:_0x41a483,colInfo:_0x2d3e74}=_0x41bc6f,_0x2caf60=_0x41a483[_0x4c013b][_0x1d25f0(0x29a)],_0xd7b03e=_0x2d3e74[_0x11c591][_0x1d25f0(0x29a)],_0x4f9103=_0x41a483[_0x4c013b][_0x1d25f0(0x268)],_0x462f14=_0x2d3e74[_0x11c591]['level'],_0x5ea0c6=_0x2caf60[_0x1d25f0(0x3c7)](_0xd7b03e),_0x17bff0=_0x191187[_0x1d25f0(0x35d)][_0x1d25f0(0x2ab)][_0x1d25f0(0x2e1)](0x0,_0x4f9103),_0x5a47d7=_0x191187[_0x1d25f0(0x35d)][_0x1d25f0(0x1ca)]['slice'](0x0,_0x462f14),_0x3e26d1=_0x17bff0[_0x1d25f0(0x3c7)](_0x5a47d7),_0x17559d=_0x5ea0c6[_0x1d25f0(0x30d)]((_0x17e9b4,_0x3b0d1b)=>[_0x17e9b4,_0x3e26d1[_0x3b0d1b]]),_0x4c754b=(await _0x3e28da[_0x1d25f0(0x3ac)](z)[_0x1d25f0(0x3e0)]({'unitId':_0xb62212,'subUnitId':_0x1b72f5,'pivotTableId':_0x386167,'params':{'type':k[_0x1d25f0(0x241)],'drillDown':{'tuple':_0x17559d}}}))['result'][_0x1d25f0(0x343)];if(!_0x4c754b)return!0x1;const {indexes:_0x501014,range:_0x36de93,sourceUnitId:_0x339b8c,sourceSubUnitId:_0x39d9fd,formatMap:_0x239ccd}=_0x4c754b,{startRow:_0x2661ee,endRow:_0x3585e9,startColumn:_0x33cd0f,endColumn:_0x30153c}=_0x36de93,_0x56f037=new _0x499f9a(),_0x19a664=_0x3585e9-_0x2661ee,_0x1b2dfc=_0x30153c-_0x33cd0f,_0xa2b60a={},_0x27ddeb=_0xa32eb7(_0xf4edfa,{'unitId':_0x339b8c,'subUnitId':_0x39d9fd});if(!_0x27ddeb)return!0x1;const _0x138c40=fe['colStyle'],_0x389654=fe[_0x1d25f0(0x29e)],_0x1758b6=fe[_0x1d25f0(0x29e)],_0x212bc9=_0x42a2cd[_0x1d25f0(0x21f)]()[_0x1d25f0(0x284)](_0x138c40),_0x537905=_0x42a2cd['getStyles']()[_0x1d25f0(0x284)](_0x389654),_0x5a7a2e=_0x42a2cd['getStyles']()[_0x1d25f0(0x284)](_0x1758b6),{worksheet:_0x42ac7d}=_0x27ddeb;let _0x4059e8=0x0;const _0x1d89ee=0x1;_0x501014[_0x1d25f0(0x40a)](_0x13f8f8=>{const _0x1dac34=_0x1d25f0;for(let _0x23d4f9=0x0;_0x23d4f9<=_0x30153c-_0x33cd0f;_0x23d4f9++)_0x56f037[_0x1dac34(0x284)](_0x4059e8,_0x23d4f9,_0x42ac7d['getCellRaw'](_0x13f8f8+_0x36de93[_0x1dac34(0x2e7)]+_0x1d89ee,_0x23d4f9));_0x4059e8++;});for(let _0x1bba44=_0x33cd0f;_0x1bba44<=_0x30153c;_0x1bba44++){const _0x581f0f=_0x42ac7d['getCellRaw'](_0x2661ee,_0x1bba44);_0xa2b60a[_0x2661ee]||(_0xa2b60a[_0x2661ee]={}),_0xa2b60a[_0x2661ee][_0x1bba44]={..._0x581f0f,'s':_0x212bc9};}let _0x3cde4f=0x1;const _0x58f60f={},_0x2d7216={};_0x56f037[_0x1d25f0(0x1fd)]((_0x414db7,_0x36ac88)=>{const _0x1dba61=_0x1d25f0;_0x36ac88[_0x1dba61(0x40a)](_0x659fab=>{const _0xb632b6=_0x1dba61,_0x5d24e7=_0x56f037['getValue'](_0x414db7,_0x659fab);if(_0xa2b60a[_0x3cde4f]||(_0xa2b60a[_0x3cde4f]={}),_0xa2b60a[_0x3cde4f][_0x659fab]={..._0x5d24e7,'s':_0x3cde4f%0x2===0x0?_0x5a7a2e:_0x537905},_0x239ccd[_0x659fab]&&_0x414db7>=0x0){const _0x382c3f=_0x3cde4f%0x2===0x0;let _0x8ae283=_0x382c3f?_0x2d7216[_0x659fab]:_0x58f60f[_0x659fab];_0x8ae283||(_0x8ae283=_0x42a2cd[_0xb632b6(0x21f)]()[_0xb632b6(0x284)]({..._0x382c3f?_0x1758b6:_0x389654,'n':{'pattern':_0x239ccd[_0x659fab]}}),_0x382c3f?_0x2d7216[_0x659fab]=_0x8ae283:_0x58f60f[_0x659fab]=_0x8ae283),_0xa2b60a[_0x3cde4f][_0x659fab]['s']=_0x8ae283;}}),_0x3cde4f++;});const _0x1cdb7a=new _0x499f9a(_0xa2b60a),_0x3be85e={};_0x1cdb7a[_0x1d25f0(0x2d2)]((_0xb1d88f,_0xbe43fe,_0x44297f)=>{_0x3be85e[_0xb1d88f]||(_0x3be85e[_0xb1d88f]={}),_0x3be85e[_0xb1d88f][_0xbe43fe]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x766e76=[],_0x267c1c=[],_0x44a524=_0x42a2cd['getSheets']()[_0x1d25f0(0x36b)],_0x17b1a6=_0x359610({'rowCount':Math[_0x1d25f0(0x2e2)](_0x31f891,_0x19a664+0xa),'columnCount':Math[_0x1d25f0(0x2e2)](_0xe6da8f,_0x1b2dfc+0x5)}),_0x3eefc4=_0x3e28da['get'](_0xfc5594);_0x17b1a6['id']=_0x47afac(),_0x17b1a6[_0x1d25f0(0x29b)]=_0x42a2cd[_0x1d25f0(0x397)](''+_0x3eefc4['t'](_0x1d25f0(0x203)));const _0x466b2f={'index':_0x44a524,'sheet':_0x17b1a6,'unitId':_0xb62212},_0x564c65=_0x5c921(_0x3e28da,_0x466b2f);_0x267c1c['push']({'id':_0x545fe4['id'],'params':_0x466b2f}),_0x766e76[_0x1d25f0(0x323)]({'id':_0x1c3c36['id'],'params':_0x564c65}),_0x267c1c['push']({'id':_0x3ffa76['id'],'params':{'unitId':_0xb62212,'subUnitId':_0x17b1a6['id'],'cellValue':_0xa2b60a}}),_0x766e76['unshift']({'id':_0x3ffa76['id'],'params':{'unitId':_0xb62212,'subUnitId':_0x17b1a6['id'],'cellValue':_0x3be85e}});const _0x3ca204={'startRow':0x0,'startColumn':0x0,'endRow':_0x3cde4f-0x1,'endColumn':_0x30153c};_0x267c1c[_0x1d25f0(0x323)]({'id':_0x59c483['id'],'params':{'unitId':_0xb62212,'subUnitId':_0x17b1a6['id'],'range':_0x3ca204}}),_0x766e76['unshift']({'id':_0x47b422['id'],'params':{'unitId':_0xb62212,'subUnitId':_0x17b1a6['id']}});const _0x2a7f0e=_0x3e28da['get'](_0x3ed3f2);return _0x1fffdd(_0x267c1c,_0x2a7f0e)&&_0x3e28da[_0x1d25f0(0x3ac)](_0x4d5faf)[_0x1d25f0(0x337)]({'unitID':_0xb62212,'undoMutations':_0x766e76,'redoMutations':_0x267c1c}),!0x0;}},Ss={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x2c7),async 'handler'(_0x1379d1,_0x2ce764){const _0x310233=_0x5cdc89;if(!_0x2ce764)return!0x1;const _0x4deed9=_0x1379d1[_0x310233(0x3ac)](_0x3ed3f2),_0x3c1241=_0x1379d1['get'](z),_0x5687e2=_0x1379d1[_0x310233(0x3ac)](_0x4d5faf),{pivotTableId:_0x2360ac,fieldIds:_0xb3996d,unitId:_0x284fd1,subUnitId:_0x14a9e6}=_0x2ce764,_0x47dd02=(await _0x3c1241[_0x310233(0x3e0)]({'unitId':_0x284fd1,'subUnitId':_0x14a9e6,'pivotTableId':_0x2360ac,'params':{'type':k[_0x310233(0x293)],'removePivotField':{'fieldIds':_0xb3996d}}}))[_0x310233(0x24b)][_0x310233(0x213)];if(!_0x47dd02)return!0x1;const {view:_0x1a93d1,changesets:_0x26524f,isEmpty:_0x2b7f5d,pivotTableConfig:_0x321bbe}=_0x47dd02,_0x59f2e0=_0x321bbe['targetCellInfo'],_0x1a6edd=new _0x186364();_0x1a6edd[_0x310233(0x27e)](_0x1a93d1);const _0x4aca10={'cellInfo':_0x59f2e0,'view':_0x1a6edd,'isEmpty':_0x2b7f5d};if(!await _0x1379d1['get'](ie)[_0x310233(0x3f9)][_0x310233(0x1c5)](be)(!0x0,_0x4aca10))return!0x1;const _0x5b38f1=we(_0x1379d1,_0x1a6edd,_0x59f2e0,_0x2b7f5d),_0x14f3ab=Re(_0x1379d1,_0x4aca10),{redos:_0x1613cf,undos:_0x272a3f}=me(_0x4deed9,{'pivotTableId':_0x2360ac,'unitId':_0x284fd1,'subUnitId':_0x14a9e6},_0x26524f);return _0x1fffdd([..._0x5b38f1[_0x310233(0x23d)],..._0x14f3ab['redos'],..._0x1613cf],_0x4deed9),_0x5687e2[_0x310233(0x337)]({'unitID':_0x284fd1,'redoMutations':[..._0x5b38f1[_0x310233(0x23d)],..._0x14f3ab[_0x310233(0x23d)],..._0x1613cf],'undoMutations':[..._0x5b38f1['undos'],..._0x14f3ab[_0x310233(0x3b6)],..._0x272a3f]}),!0x0;}},Ps={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x1b8),async 'handler'(_0x2ab7f8,_0x56f784){const _0xedd850=_0x5cdc89;if(!_0x56f784)return!0x1;const _0x51f81e=_0x2ab7f8[_0xedd850(0x3ac)](_0x3ed3f2),_0x72ff5=_0x2ab7f8[_0xedd850(0x3ac)](_0x4d5faf),_0x20d93d=_0x2ab7f8[_0xedd850(0x3ac)](z),{resetArea:_0x3b38b1,pivotTableId:_0x2cf3bd,unitId:_0x5b17e7,subUnitId:_0x181e6d}=_0x56f784,_0x3da8cd=(await _0x20d93d[_0xedd850(0x3e0)]({'unitId':_0x5b17e7,'subUnitId':_0x181e6d,'pivotTableId':_0x2cf3bd,'params':{'type':k[_0xedd850(0x340)],'resetPivotTable':{'pivotTableId':_0x2cf3bd,'resetArea':_0x3b38b1}}}))[_0xedd850(0x24b)][_0xedd850(0x300)];if(!_0x3da8cd)return!0x1;const {changesets:_0x5066fd}=_0x3da8cd,{redos:_0x1806ed,undos:_0x1beb90}=me(_0x51f81e,{'pivotTableId':_0x2cf3bd,'unitId':_0x5b17e7,'subUnitId':_0x181e6d},_0x5066fd);return _0x1fffdd(_0x1806ed,_0x51f81e),_0x72ff5[_0xedd850(0x337)]({'unitID':_0x5b17e7,'redoMutations':_0x1806ed,'undoMutations':_0x1beb90}),!0x0;}},Ts={'type':_0x381691[_0x5cdc89(0x205)],'id':'sheet.command.set-pivot-collapse',async 'handler'(_0x1bda1e,_0x28b213){const _0x5ca2f7=_0x5cdc89,_0x48f491=_0x1bda1e['get'](_0x3ed3f2),_0x2c2eca=_0x1bda1e[_0x5ca2f7(0x3ac)](z),_0x56f9d2=_0x1bda1e['get'](Ee),_0x5b98df=_0x1bda1e[_0x5ca2f7(0x3ac)](_0x2db36d),_0x29c7f7=_0x1bda1e[_0x5ca2f7(0x3ac)](_0xfc5594),_0x3c96f6=_0x1bda1e[_0x5ca2f7(0x3ac)](_0x4d5faf);if(!_0x28b213)return!0x1;const {unitId:_0x490f3d,subUnitId:_0x209e9f,row:_0xaf8003,col:_0x2b111f,collapse:_0x3ad1c5}=_0x28b213,_0x196235=_0x5b98df[_0x5ca2f7(0x216)](_0x490f3d);if(!_0x196235||!_0x196235['getSheetBySheetId'](_0x209e9f))return!0x1;const _0x2519cf=_0x56f9d2['getPivotTableIdByCell'](_0x490f3d,_0x209e9f,_0xaf8003,_0x2b111f);if(!_0x2519cf)return!0x1;const _0x5d2e8e=_0x56f9d2[_0x5ca2f7(0x299)](_0x490f3d,_0x209e9f,_0x2519cf);if(!_0x5d2e8e)return!0x1;const _0x384894=_0x36796a(_0xaf8003,_0x2b111f),{rangesInfo:_0x1fe9b0,areaInfo:_0x5e9c71,headerMap:_0x142b19}=_0x5d2e8e;if(!_0x1fe9b0||!_0x5e9c71||!_0x142b19)return!0x1;const _0x537927=Object[_0x5ca2f7(0x329)](_0x1fe9b0)[_0x5ca2f7(0x1af)](_0x3368d2=>_0x1fe9b0[_0x3368d2][_0x5ca2f7(0x222)](_0x545a81=>_0x5548d4[_0x5ca2f7(0x280)](_0x545a81,_0x384894)));let _0x950b72;_0x537927===_0x5ca2f7(0x294)?_0x950b72=_0x142b19[_0x5ca2f7(0x404)][_0x2b111f]:_0x537927==='colRanges'&&(_0x950b72=_0x142b19[_0x5ca2f7(0x263)][_0xaf8003]);const _0x3ef599=_0x950b72==null?void 0x0:_0x950b72[_0x5ca2f7(0x1b9)],_0x4fa1a9=_0x56f9d2[_0x5ca2f7(0x419)](_0x490f3d,_0x209e9f,_0xaf8003,_0x2b111f);let _0x458247=_0x4fa1a9==null?void 0x0:_0x4fa1a9['v'];if(_0x458247===_0x29c7f7['t']('sheets-pivot.blank')&&(_0x458247=_0x2ca6e1[_0x5ca2f7(0x2db)]),_0x458247==null||!_0x2519cf||!_0x3ef599)return!0x1;const _0x2590e9=await _0x2c2eca[_0x5ca2f7(0x3e0)]({'unitId':_0x490f3d,'subUnitId':_0x209e9f,'pivotTableId':_0x2519cf,'params':{'type':k[_0x5ca2f7(0x368)],'setPivotCollapse':{'tableFieldId':_0x3ef599,'collapse':_0x3ad1c5,'item':_0x458247}}}),_0x8e5762=_0x2590e9==null?void 0x0:_0x2590e9[_0x5ca2f7(0x24b)][_0x5ca2f7(0x338)];if(!_0x8e5762)return!0x1;const {view:_0x5511e2,pivotTableConfig:_0x5021dc,isEmpty:_0x1722d4,changesets:_0x23b5e6}=_0x8e5762,_0x58b737=new _0x186364();_0x58b737[_0x5ca2f7(0x27e)](_0x5511e2);const _0x5d336c=_0x5021dc[_0x5ca2f7(0x28a)],_0x526b45={'cellInfo':_0x5d336c,'view':_0x58b737,'isEmpty':_0x1722d4};if(!await _0x1bda1e['get'](ie)[_0x5ca2f7(0x3f9)][_0x5ca2f7(0x1c5)](be)(!0x0,_0x526b45))return!0x1;const _0x176abc=we(_0x1bda1e,_0x58b737,_0x5d336c,_0x1722d4),_0x38130d=Re(_0x1bda1e,_0x526b45),{redos:_0x9ead5e,undos:_0x2b00d7}=me(_0x48f491,{'pivotTableId':_0x2519cf,'unitId':_0x490f3d,'subUnitId':_0x209e9f},_0x23b5e6);return _0x1fffdd([..._0x176abc['redos'],..._0x38130d['redos'],..._0x9ead5e],_0x48f491),_0x3c96f6[_0x5ca2f7(0x337)]({'unitID':_0x490f3d,'redoMutations':[..._0x176abc[_0x5ca2f7(0x23d)],..._0x38130d['redos'],..._0x9ead5e],'undoMutations':[..._0x176abc[_0x5ca2f7(0x3b6)],..._0x38130d[_0x5ca2f7(0x3b6)],..._0x2b00d7]}),!0x0;}},ys={'type':_0x381691['COMMAND'],'id':_0x5cdc89(0x40b),async 'handler'(_0x3aa2cc,_0x1035ec){const _0x3f058a=_0x5cdc89;if(!_0x1035ec)return!0x1;const _0x1b7185=_0x3aa2cc[_0x3f058a(0x3ac)](_0x3ed3f2),_0xf4bfec=_0x3aa2cc['get'](_0x4d5faf),_0x215579=_0x3aa2cc[_0x3f058a(0x3ac)](z),{pivotTableConfig:_0x321dd2,pivotTableId:_0x3d7c5c,unitId:_0x135431,subUnitId:_0x31c514}=_0x1035ec,_0x23a2a3=(await _0x215579[_0x3f058a(0x3e0)]({'unitId':_0x135431,'subUnitId':_0x31c514,'pivotTableId':_0x3d7c5c,'params':{'type':k[_0x3f058a(0x204)],'setPivotTableConfig':{'pivotTableId':_0x3d7c5c,'pivotTableConfig':_0x321dd2}}}))[_0x3f058a(0x24b)]['setPivotTableConfig'];if(!_0x23a2a3)return!0x1;const {changesets:_0x271c0f}=_0x23a2a3,{redos:_0xd1e10b,undos:_0x360f4c}=me(_0x1b7185,{'pivotTableId':_0x3d7c5c,'unitId':_0x135431,'subUnitId':_0x31c514},_0x271c0f);return _0x1fffdd(_0xd1e10b,_0x1b7185),_0xf4bfec['pushUndoRedo']({'unitID':_0x135431,'redoMutations':_0xd1e10b,'undoMutations':_0x360f4c}),!0x0;}},Ms={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x257),async 'handler'(_0x3107a8,_0x2bdc79){const _0x5d9746=_0x5cdc89;if(!_0x2bdc79)return!0x1;const _0x36e788=_0x3107a8[_0x5d9746(0x3ac)](_0x3ed3f2),{pivotTableId:_0x2a80cd,tableFieldId:_0x1fac15,items:_0x1d1a98,unitId:_0x76b639,subUnitId:_0x228464,isAll:_0x221fda}=_0x2bdc79,_0xf1f99d=_0x3107a8[_0x5d9746(0x3ac)](z),_0x68f04b=_0x3107a8[_0x5d9746(0x3ac)](_0x4d5faf),_0x268664=(await _0xf1f99d[_0x5d9746(0x3e0)]({'unitId':_0x76b639,'subUnitId':_0x228464,'pivotTableId':_0x2a80cd,'params':{'type':k[_0x5d9746(0x23e)],'setPivotFilter':{'tableFieldId':_0x1fac15,'items':_0x1d1a98,'isAll':_0x221fda}}}))[_0x5d9746(0x24b)][_0x5d9746(0x3a2)];if(!_0x268664)return!0x1;const {changesets:_0x2f016d,pivotTableConfig:_0x5177e4,isEmpty:_0x1a6689,view:_0x221d2f}=_0x268664,_0x4bcd1b=_0x5177e4[_0x5d9746(0x28a)],_0x1f188b=new _0x186364();_0x1f188b[_0x5d9746(0x27e)](_0x221d2f);const _0xae201b={'cellInfo':_0x4bcd1b,'view':_0x1f188b,'isEmpty':_0x1a6689};if(!await _0x3107a8[_0x5d9746(0x3ac)](ie)[_0x5d9746(0x3f9)][_0x5d9746(0x1c5)](be)(!0x0,_0xae201b))return!0x1;const _0x21cbba=we(_0x3107a8,_0x1f188b,_0x4bcd1b,_0x1a6689),_0x9ae6c7=Re(_0x3107a8,_0xae201b),{undos:_0x3ec5f0,redos:_0x503913}=me(_0x36e788,{'pivotTableId':_0x2a80cd,'unitId':_0x76b639,'subUnitId':_0x228464},_0x2f016d);return _0x1fffdd([..._0x21cbba[_0x5d9746(0x23d)],..._0x9ae6c7[_0x5d9746(0x23d)],..._0x503913],_0x36e788),_0x68f04b[_0x5d9746(0x337)]({'unitID':_0x76b639,'redoMutations':[..._0x21cbba['redos'],..._0x9ae6c7[_0x5d9746(0x23d)],..._0x503913],'undoMutations':[..._0x21cbba[_0x5d9746(0x3b6)],..._0x9ae6c7[_0x5d9746(0x3b6)],..._0x3ec5f0]}),!0x0;}},ws={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x1fc),async 'handler'(_0x4e3aa6,_0x2c7657){const _0x14a110=_0x5cdc89;if(!_0x2c7657)return!0x1;const _0x15a77c=_0x4e3aa6[_0x14a110(0x3ac)](_0x3ed3f2),_0x267d1c=_0x4e3aa6[_0x14a110(0x3ac)](_0x4d5faf),_0x341a38=_0x4e3aa6[_0x14a110(0x3ac)](z),{info:_0x183aee,tableFieldId:_0x853a28,pivotTableId:_0x51d032,unitId:_0x1a09cb,subUnitId:_0x2b24cf}=_0x2c7657,_0x37d3f9=(await _0x341a38[_0x14a110(0x3e0)]({'unitId':_0x1a09cb,'subUnitId':_0x2b24cf,'pivotTableId':_0x51d032,'params':{'type':k['SetPivotSort'],'setPivotSort':{'tableFieldId':_0x853a28,'info':_0x183aee}}}))[_0x14a110(0x24b)][_0x14a110(0x1de)];if(!_0x37d3f9)return!0x1;const {changesets:_0x1674c4}=_0x37d3f9,{redos:_0x139a00,undos:_0xaf7fc9}=me(_0x15a77c,{'pivotTableId':_0x51d032,'unitId':_0x1a09cb,'subUnitId':_0x2b24cf},_0x1674c4);return _0x1fffdd(_0x139a00,_0x15a77c),_0x267d1c[_0x14a110(0x337)]({'unitID':_0x1a09cb,'redoMutations':_0x139a00,'undoMutations':_0xaf7fc9}),!0x0;}},Rs={'type':_0x381691['COMMAND'],'id':_0x5cdc89(0x3fe),async 'handler'(_0x3781a9,_0x392ed9){const _0x5e3221=_0x5cdc89;if(!_0x392ed9)return!0x1;const _0x21ce12=_0x3781a9[_0x5e3221(0x3ac)](_0x3ed3f2),{pivotTableId:_0x5da0d2,fieldId:_0x22feb8,valueFilterInfo:_0x427442,unitId:_0x239b1f,subUnitId:_0x8f2f95}=_0x392ed9,_0x364c2c=_0x3781a9[_0x5e3221(0x3ac)](z),_0x42684f=_0x3781a9[_0x5e3221(0x3ac)](_0x4d5faf),_0x59de77=(await _0x364c2c[_0x5e3221(0x3e0)]({'unitId':_0x239b1f,'subUnitId':_0x8f2f95,'pivotTableId':_0x5da0d2,'params':{'type':k['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x22feb8,'filterInfo':_0x427442}}}))[_0x5e3221(0x24b)][_0x5e3221(0x228)];if(!_0x59de77)return!0x1;const {changesets:_0x39bbb9,pivotTableConfig:_0x5a4d08,isEmpty:_0x18f87b,view:_0x5158de}=_0x59de77,_0x174349=_0x5a4d08[_0x5e3221(0x28a)],_0x282506=new _0x186364();_0x282506[_0x5e3221(0x27e)](_0x5158de);const _0x5e69f3={'cellInfo':_0x174349,'view':_0x282506,'isEmpty':_0x18f87b};if(!await _0x3781a9[_0x5e3221(0x3ac)](ie)[_0x5e3221(0x3f9)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x5e69f3))return!0x1;const _0x4ffead=we(_0x3781a9,_0x282506,_0x174349,_0x18f87b),_0x4a3351=Re(_0x3781a9,_0x5e69f3),{undos:_0x297a66,redos:_0x1d8dc4}=me(_0x21ce12,{'pivotTableId':_0x5da0d2,'unitId':_0x239b1f,'subUnitId':_0x8f2f95},_0x39bbb9);return _0x1fffdd([..._0x4ffead['redos'],..._0x4a3351[_0x5e3221(0x23d)],..._0x1d8dc4],_0x21ce12),_0x42684f[_0x5e3221(0x337)]({'unitID':_0x239b1f,'redoMutations':[..._0x4ffead[_0x5e3221(0x23d)],..._0x4a3351[_0x5e3221(0x23d)],..._0x1d8dc4],'undoMutations':[..._0x4ffead['undos'],..._0x4a3351[_0x5e3221(0x3b6)],..._0x297a66]}),!0x0;}},to={'id':'sheet.mutation.update-date-group','type':_0x381691['MUTATION'],'handler':(_0x4c8377,_0x34bb66)=>{const _0x576f02=_0x5cdc89;if(!_0x34bb66)return!0x1;if(!!_0x4c8377[_0x576f02(0x3ac)](_0x2b55f2)[_0x576f02(0x31f)](X))return!0x0;const {unitId:_0xb15df9,subUnitId:_0x521319,pivotTableId:_0x4e7e1b,tableFieldId:_0x689d3b,dateType:_0x259ed7}=_0x34bb66,_0x31569d=_0x4c8377[_0x576f02(0x3ac)]($),_0x4efa22=_0x31569d['getPivotTableInstance'](_0x4e7e1b);if(!_0x4efa22)return!0x1;const _0x34ca05=_0x4efa22[_0x576f02(0x31a)](_0x689d3b);if(!_0x34ca05)return!0x1;const _0x116d93=_0x34ca05[_0x576f02(0x369)](),_0x59c8cb=_0x4efa22['getDataFieldByDataFieldId'](_0x116d93),_0x5dad83=(_0x59c8cb==null?void 0x0:_0x59c8cb[_0x576f02(0x3f1)]())+'\x20'+qo(_0x4c8377,_0x259ed7);_0x31569d[_0x576f02(0x2c6)](_0xb15df9,_0x4e7e1b)[_0x576f02(0x2f1)](_0x34ca05['id'],_0x5dad83);const _0x3ebca4=_0x4efa22[_0x576f02(0x209)](_0x689d3b);if(!_0x3ebca4)return!0x1;_0x4efa22[_0x576f02(0x400)](_0x3ebca4[_0x576f02(0x305)](),_0x5dad83),_0x34ca05[_0x576f02(0x3df)](_0x259ed7);const _0x277265=_0x31569d[_0x576f02(0x346)](_0xb15df9,_0x521319,_0x4e7e1b);return _0x31569d[_0x576f02(0x3c1)]({'unitId':_0xb15df9,'subUnitId':_0x521319,'token':_0x4e7e1b,'type':G[_0x576f02(0x38b)],'pivotConfig':_0x277265}),!0x0;}},_s={'id':'sheet.command.update-date-group','type':_0x381691[_0x5cdc89(0x205)],'handler':(_0x1627ba,_0x55674c)=>{const _0x32e324=_0x5cdc89;if(!_0x55674c)return!0x1;const _0x55d53e=_0x1627ba['get'](_0x4d5faf),{unitId:_0x59563a,subUnitId:_0xacdded,pivotTableId:_0x500548,tableFieldId:_0x37b9ca}=_0x55674c,_0x2a7e00=[],_0xc09409=[],_0x124e10=_0x1627ba['get'](he),_0x47acaa=_0x124e10['getCollection'](_0x59563a,_0x500548),_0x77663a=_0x124e10[_0x32e324(0x346)](_0x59563a,_0xacdded,_0x500548);if(!(_0x77663a!=null&&_0x77663a[_0x32e324(0x35d)]['dimension']))return!0x1;const _0x4245b9=Object[_0x32e324(0x27a)](_0x77663a['fieldsConfig'][_0x32e324(0x2a2)])[_0x32e324(0x1af)](_0x1e5f21=>_0x1e5f21['id']===_0x37b9ca);if(!_0x4245b9)return!0x1;const _0x156f96=_0x4245b9['dataFieldId'];if(!(_0x47acaa!=null&&_0x47acaa['fields']))return!0x1;const _0x4d4cdd=Object['values'](_0x47acaa==null?void 0x0:_0x47acaa[_0x32e324(0x40d)])['find'](_0x58b4c0=>_0x58b4c0['id']===_0x156f96);if(!_0x4d4cdd)return!0x1;_0x5e9fe2(_0x4d4cdd)&&_0x2a7e00[_0x32e324(0x323)]({'id':to['id'],'params':{..._0x55674c,'dateType':_0x4d4cdd[_0x32e324(0x1b6)]}}),_0xc09409[_0x32e324(0x323)]({'id':to['id'],'params':{..._0x55674c}});const _0x1930a1=_0x1627ba['get'](_0x3ed3f2);return _0x1fffdd(_0xc09409,_0x1930a1)&&_0x55d53e[_0x32e324(0x337)]({'unitID':_0x59563a,'undoMutations':_0x2a7e00,'redoMutations':_0xc09409}),!0x0;}},Fs={'type':_0x381691[_0x5cdc89(0x205)],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x2974e2,_0x367f58){const _0x553450=_0x5cdc89;if(!_0x367f58)return!0x1;const _0x4d2bcb=_0x2974e2[_0x553450(0x3ac)](_0x3ed3f2),_0x4575a1=_0x2974e2[_0x553450(0x3ac)](_0x4d5faf),_0x53253a=_0x2974e2[_0x553450(0x3ac)](z),{displayName:_0x53a8fe,subtotalType:_0x45b314,format:_0x33144f,tableFieldId:_0x552f18,pivotTableId:_0x2911b5,unitId:_0x2e53bd,subUnitId:_0x19dd3b}=_0x367f58,_0x139544=(await _0x53253a[_0x553450(0x3e0)]({'unitId':_0x2e53bd,'subUnitId':_0x19dd3b,'pivotTableId':_0x2911b5,'params':{'type':k[_0x553450(0x1dd)],'setPivotSetting':{'tableFieldId':_0x552f18,'displayName':_0x53a8fe,'subtotalType':_0x45b314,'format':_0x33144f}}}))[_0x553450(0x24b)][_0x553450(0x23a)];if(!_0x139544)return!0x1;const {changesets:_0x46305b,view:_0x270f9e,pivotTableConfig:_0x5d2b7b,isEmpty:_0x304f5e}=_0x139544,_0x4df896=_0x5d2b7b[_0x553450(0x28a)],_0x2504cc=new _0x186364();_0x2504cc[_0x553450(0x27e)](_0x270f9e);const _0x2e11c2={'cellInfo':_0x4df896,'view':_0x2504cc,'isEmpty':_0x304f5e};if(!await _0x2974e2[_0x553450(0x3ac)](ie)[_0x553450(0x3f9)][_0x553450(0x1c5)](be)(!0x0,_0x2e11c2))return!0x1;const _0x421a0c=we(_0x2974e2,_0x2504cc,_0x4df896,_0x304f5e),_0x249160=Re(_0x2974e2,_0x2e11c2),{undos:_0x44015e,redos:_0x239102}=me(_0x4d2bcb,{'pivotTableId':_0x2911b5,'unitId':_0x2e53bd,'subUnitId':_0x19dd3b},_0x46305b);return _0x1fffdd([..._0x421a0c[_0x553450(0x23d)],..._0x249160[_0x553450(0x23d)],..._0x239102],_0x4d2bcb),_0x4575a1['pushUndoRedo']({'unitID':_0x2e53bd,'redoMutations':[..._0x421a0c[_0x553450(0x23d)],..._0x249160['redos'],..._0x239102],'undoMutations':[..._0x421a0c[_0x553450(0x3b6)],..._0x249160[_0x553450(0x3b6)],..._0x44015e]}),!0x0;}},oo={'type':_0x381691[_0x5cdc89(0x279)],'id':'sheet.mutation.update-pivot-table-source-range','handler'(_0x5b2fdc,_0x24126f){const _0x31404e=_0x5cdc89;if(!_0x24126f)return!0x1;if(!!_0x5b2fdc[_0x31404e(0x3ac)](_0x2b55f2)[_0x31404e(0x31f)](X))return!0x0;const _0x555810=_0x5b2fdc[_0x31404e(0x3ac)]($),{pivotTableId:_0x5d2b27,deleteIds:_0x52908e,collectionJSON:_0x13e0c1,dataRangeInfo:_0xf78f74,unitId:_0x3aa596,subUnitId:_0x470aa9}=_0x24126f,_0x37c52a=_0x555810[_0x31404e(0x27b)](_0x5d2b27),_0x1637d7=_0x555810[_0x31404e(0x346)](_0x3aa596,_0x470aa9,_0x5d2b27);if(!_0x37c52a||!_0x1637d7)return!0x1;const {collection:_0x4c9d33,updateDataFieldList:_0x16cf85}=_0x555810[_0x31404e(0x41a)](_0x5d2b27,_0x13e0c1,_0xf78f74,_0x1637d7[_0x31404e(0x28a)]);_0x555810[_0x31404e(0x40e)](_0x4c9d33,_0x16cf85,_0xf78f74),_0x37c52a[_0x31404e(0x2d4)](_0x4c9d33);for(const _0x2347ab of _0x52908e)_0x555810['removeDataField'](_0xf78f74[_0x31404e(0x1cb)],_0x2347ab);const _0x2eacdb=_0x555810[_0x31404e(0x346)](_0x3aa596,_0x470aa9,_0x5d2b27);return _0x2eacdb[_0x31404e(0x3e5)]=JSON['parse'](JSON[_0x31404e(0x1ba)](_0xf78f74)),_0x555810[_0x31404e(0x3c1)]({'unitId':_0x3aa596,'subUnitId':_0x470aa9,'token':_0x5d2b27,'type':G[_0x31404e(0x38b)]}),!0x0;}},Ds={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x1dc),async 'handler'(_0x45a7b0,_0x1b2b0f){const _0x55dcdb=_0x5cdc89,_0x51de61=_0x45a7b0[_0x55dcdb(0x3ac)](_0x3ed3f2),_0x625c46=_0x45a7b0[_0x55dcdb(0x3ac)](z),_0x52a83a=_0x45a7b0['get'](_0x4d5faf);if(!_0x1b2b0f)return!0x1;const {token:_0x59e147,dataRangeInfo:_0xadbfd,unitId:_0x103ce9,subUnitId:_0x13e1ca}=_0x1b2b0f,_0x14ad5b=[],_0x3daaa9=[],_0x36adc4=(await _0x625c46[_0x55dcdb(0x3e0)]({'unitId':_0x103ce9,'subUnitId':_0x13e1ca,'pivotTableId':_0x59e147,'params':{'type':k['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0xadbfd,'unitId':_0x103ce9,'subUnitId':_0x13e1ca}}}))[_0x55dcdb(0x24b)][_0x55dcdb(0x1c9)];if(!_0x36adc4)return!0x1;const {changesets:_0x532487,deleteIds:_0x10b012,collectionConfig:_0xc0d333,oldCollectionConfig:_0x33a29d,view:_0x4c4575,isEmpty:_0xf4d107,pivotTableConfig:_0x345f42}=_0x36adc4;_0x3daaa9[_0x55dcdb(0x323)]({'id':oo['id'],'params':{'pivotTableId':_0x59e147,'deleteIds':_0x10b012,'collectionJSON':_0xc0d333,'dataRangeInfo':_0xadbfd,'unitId':_0x103ce9,'subUnitId':_0x13e1ca}}),_0x14ad5b[_0x55dcdb(0x22d)]({'id':oo['id'],'params':{'pivotTableId':_0x59e147,'deleteIds':[],'collectionJSON':_0x33a29d,'dataRangeInfo':_0x345f42[_0x55dcdb(0x3e5)],'unitId':_0x103ce9,'subUnitId':_0x13e1ca}});const _0x5df790=_0x345f42[_0x55dcdb(0x28a)],_0x1879ea=new _0x186364();_0x1879ea['formJSON'](_0x4c4575);const _0x48141f={'cellInfo':_0x5df790,'view':_0x1879ea,'isEmpty':_0xf4d107};if(!await _0x45a7b0[_0x55dcdb(0x3ac)](ie)[_0x55dcdb(0x3f9)][_0x55dcdb(0x1c5)](be)(!0x0,_0x48141f))return!0x1;const _0x19bee6=we(_0x45a7b0,_0x1879ea,_0x5df790,_0xf4d107),_0x1ce484=Re(_0x45a7b0,_0x48141f),{undos:_0x2a0800,redos:_0x58a53f}=me(_0x51de61,{'pivotTableId':_0x59e147,'unitId':_0x103ce9,'subUnitId':_0x13e1ca},_0x532487);return _0x1fffdd([..._0x19bee6['redos'],..._0x1ce484[_0x55dcdb(0x23d)],..._0x3daaa9,..._0x2a0800],_0x51de61),_0x52a83a['pushUndoRedo']({'unitID':_0x103ce9,'redoMutations':[..._0x19bee6[_0x55dcdb(0x23d)],..._0x1ce484[_0x55dcdb(0x23d)],..._0x3daaa9,..._0x2a0800],'undoMutations':[..._0x19bee6[_0x55dcdb(0x3b6)],..._0x1ce484[_0x55dcdb(0x3b6)],..._0x14ad5b,..._0x58a53f]}),!0x0;}},Es={'type':_0x381691[_0x5cdc89(0x205)],'id':_0x5cdc89(0x3d4),async 'handler'(_0x2805e5,_0x1b7ca6){const _0x12a23e=_0x5cdc89;if(!_0x1b7ca6)return!0x1;const _0x37aa05=_0x2805e5['get'](_0x3ed3f2),_0x4ee51b=_0x2805e5[_0x12a23e(0x3ac)](z),_0x1c1c27=_0x2805e5[_0x12a23e(0x3ac)](_0x2db36d),_0x27a230=_0x2805e5['get'](_0x4d5faf),{pivotTableId:_0x51d1b1,position:_0x6fb1d7,index:_0x5c4c47}=_0x1b7ca6,_0x252484=_0xa32eb7(_0x1c1c27);if(!_0x252484)return!0x1;const {unitId:_0x574312,subUnitId:_0x337778}=_0x252484,_0x543dc4=(await _0x4ee51b['getPivotDisplayConfig']({'unitId':_0x574312,'subUnitId':_0x337778,'pivotTableId':_0x51d1b1,'params':{'type':k[_0x12a23e(0x310)],'updateValuePosition':{'position':_0x6fb1d7,'index':_0x5c4c47}}}))[_0x12a23e(0x24b)][_0x12a23e(0x384)];if(!_0x543dc4)return!0x1;const {changesets:_0x29284a,view:_0x2fb2d3,isEmpty:_0xdcfa3a,pivotTableConfig:_0x5554ce}=_0x543dc4,_0x3ed82e=_0x5554ce[_0x12a23e(0x28a)],_0x19a407=new _0x186364();_0x19a407[_0x12a23e(0x27e)](_0x2fb2d3);const _0x40608f=_0x2805e5[_0x12a23e(0x3ac)](ie),_0x24ce61={'cellInfo':_0x3ed82e,'view':_0x19a407,'isEmpty':_0xdcfa3a};if(!await _0x40608f[_0x12a23e(0x3f9)][_0x12a23e(0x1c5)](be)(!0x0,_0x24ce61))return!0x1;const _0x2a429c=we(_0x2805e5,_0x19a407,_0x3ed82e,_0xdcfa3a),_0x11ec65=Re(_0x2805e5,_0x24ce61),{undos:_0x4cabc7,redos:_0x3a7906}=me(_0x37aa05,{'pivotTableId':_0x51d1b1,'unitId':_0x574312,'subUnitId':_0x337778},_0x29284a);return _0x1fffdd([..._0x2a429c[_0x12a23e(0x23d)],..._0x11ec65['redos'],..._0x3a7906],_0x37aa05),_0x27a230[_0x12a23e(0x337)]({'unitID':_0x574312,'redoMutations':[..._0x2a429c['redos'],..._0x11ec65[_0x12a23e(0x23d)],..._0x3a7906],'undoMutations':[..._0x2a429c[_0x12a23e(0x3b6)],..._0x11ec65[_0x12a23e(0x3b6)],..._0x4cabc7]}),!0x0;}},Nt={'type':_0x381691['MUTATION'],'id':_0x5cdc89(0x326),'handler'(){return!0x0;}};var Ns=Object[_0x5cdc89(0x37f)],Us=(_0x371cc6,_0x567984,_0x4b3656,_0x13359a)=>{const _0x17ede6=_0x5cdc89;for(var _0x579075=_0x13359a>0x1?void 0x0:_0x13359a?Ns(_0x567984,_0x4b3656):_0x567984,_0x43282f=_0x371cc6[_0x17ede6(0x36b)]-0x1,_0x133f51;_0x43282f>=0x0;_0x43282f--)(_0x133f51=_0x371cc6[_0x43282f])&&(_0x579075=_0x133f51(_0x579075)||_0x579075);return _0x579075;},at=(_0x4700bf,_0x2fc9f7)=>(_0x2f3f2c,_0x2ad4a1)=>_0x2fc9f7(_0x2f3f2c,_0x2ad4a1,_0x4700bf);const Vs=()=>({'runtimeCellData':{},'dirtyRanges':{}}),xs=(_0x2424d9,_0x18e07d,_0x4f13aa)=>{const _0x412c8c=_0x5cdc89,_0x917a32=_0x2424d9['dataFieldsCollection'];_0x2424d9[_0x412c8c(0x1eb)](_0x12ce39=>{const _0xdab1a1=_0x412c8c,_0x564bc7=_0x12ce39[_0xdab1a1(0x305)](),_0x52808b=_0x12ce39['getDataFieldId'](),_0x38e5b1=_0x12ce39['getSourceName'](),_0x8a98cd=_0x12ce39[_0xdab1a1(0x285)]();_0x18e07d[_0x52808b]&&_0x18e07d[_0x52808b]===_0x8a98cd&&_0x38e5b1===_0x8a98cd&&(_0x2424d9['renameField'](_0x564bc7,_0x917a32[_0xdab1a1(0x285)](_0x52808b)),_0x12ce39[_0xdab1a1(0x3ea)](_0x917a32['getDisplayName'](_0x52808b)));}),_0x2424d9[_0x412c8c(0x262)](_0x33152d[_0x412c8c(0x251)],_0x2a1248=>{const _0x3b38cc=_0x412c8c,_0x233517=_0x2a1248[_0x3b38cc(0x305)](),_0x5d3c17=_0x2a1248[_0x3b38cc(0x2fd)](),_0x9a5e04=_0x2a1248[_0x3b38cc(0x3c0)](),_0x36d4cc=_0x2a1248[_0x3b38cc(0x285)](),_0x4e51b9=_0x2a1248[_0x3b38cc(0x393)](),_0x54c460=_0x4f13aa(_0x9a5e04,_0x4e51b9);_0x18e07d[_0x5d3c17]&&_0x18e07d[_0x5d3c17]===_0x9a5e04&&_0x54c460===_0x36d4cc&&(_0x2424d9['renameField'](_0x233517,_0x4f13aa(_0x917a32['getDisplayName'](_0x5d3c17),_0x4e51b9)),_0x2a1248[_0x3b38cc(0x3ea)](_0x917a32[_0x3b38cc(0x285)](_0x5d3c17)));});},Os=(_0x3564b5,_0x1db369,_0x1e6a42)=>{const _0x278715=_0x5cdc89;var _0x435645,_0x2abaf1;const {arrayFormulaCellData:_0x3b241b,unitData:_0x21afea}=_0x1db369,{unitId:_0x32c4a8,subUnitId:_0x1b16a3}=_0x1e6a42,_0x255e40=_0x1e6a42['range'],{startColumn:_0x355f8a,endColumn:_0x1f84bd}=_0x255e40,_0x40e232=(_0x435645=_0x3b241b==null?void 0x0:_0x3b241b[_0x32c4a8])==null?void 0x0:_0x435645[_0x1b16a3],_0x54f399=(_0x2abaf1=_0x21afea==null?void 0x0:_0x21afea[_0x32c4a8])==null?void 0x0:_0x2abaf1[_0x1b16a3],_0x1045fc=new Set(),_0x3f16c3=_0x1f84bd-_0x355f8a+0x1,{dirtyRanges:_0xf8b0af}=_0x3564b5;if(_0xf8b0af)for(const {range:_0x4e6b1b,sheetId:_0x4a3e9a,unitId:_0x19b001}of _0xf8b0af){if(_0x4a3e9a!==_0x1b16a3||_0x32c4a8!==_0x19b001)continue;const _0x27b24e=_0x5548d4[_0x278715(0x27f)](_0x4e6b1b,_0x255e40);if(_0x27b24e){const {startColumn:_0x147677,endColumn:_0x113b96}=_0x27b24e;for(let _0x155be8=_0x147677;_0x155be8<=_0x113b96;_0x155be8++)_0x1045fc[_0x278715(0x28f)](_0x155be8);}}if(_0x1045fc[_0x278715(0x35a)]===_0x3f16c3||_0x1045fc[_0x278715(0x35a)]===_0x3f16c3)return Array['from'](_0x1045fc);if(_0x54f399){const _0xc3ed8e=_0x54f399[_0x278715(0x37c)](),_0x180257=Object[_0x278715(0x329)](_0xc3ed8e);for(const _0xb452cf of _0x180257){const _0x1451d6=Number(_0xb452cf),_0x50ddad=_0xc3ed8e[_0x1451d6];if(_0x1045fc[_0x278715(0x35a)]===_0x3f16c3)break;for(const _0x5055e2 in _0x50ddad){const _0x130564=Number(_0x5055e2);_0x130564<_0x355f8a||_0x130564>_0x1f84bd||_0x1045fc['add'](_0x130564);}}}if(_0x40e232){const _0x53a6c6=_0x40e232[_0x278715(0x37c)](),_0x47a098=Object['keys'](_0x53a6c6);for(const _0x579f00 of _0x47a098){const _0x3a29cb=Number(_0x579f00),_0x12c23b=_0x53a6c6[_0x3a29cb];if(_0x1045fc[_0x278715(0x35a)]===_0x3f16c3)break;for(const _0x4d2a0e in _0x12c23b){const _0x482935=Number(_0x4d2a0e);_0x482935<_0x355f8a||_0x482935>_0x1f84bd||_0x1045fc[_0x278715(0x28f)](_0x482935);}}}return Array[_0x278715(0x365)](_0x1045fc);},As=_0x3b0468=>{const _0x4d843a=_0x5cdc89,_0x41a1ed=new Set(),_0xc24773=[];for(const _0x4bcddd of _0x3b0468){const _0x4b39e9=_0x4bcddd[_0x4d843a(0x2e7)]+','+_0x4bcddd[_0x4d843a(0x260)]+','+_0x4bcddd['startColumn']+','+_0x4bcddd[_0x4d843a(0x35e)];_0x41a1ed[_0x4d843a(0x3a3)](_0x4b39e9)||(_0x41a1ed[_0x4d843a(0x28f)](_0x4b39e9),_0xc24773[_0x4d843a(0x323)](_0x4bcddd));}return _0xc24773;};let ct=class extends _0x47e12b{constructor(_0x771a87,_0x405cfd,_0x5eacf0,_0x368760,_0x4ad1b2){const _0x138b3b=_0x5cdc89;super(),N(this,_0x138b3b(0x275),new _0x1e0d8a(!0x0)),N(this,'_globalComputedStartHelpFunc',_0x527e1f=>{const _0x2c4dd6=_0x138b3b;this[_0x2c4dd6(0x275)][_0x2c4dd6(0x2be)](!0x1);}),N(this,_0x138b3b(0x22e),_0x42a202=>{const _0x16bab8=_0x138b3b;this[_0x16bab8(0x275)][_0x16bab8(0x2be)](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x771a87,this[_0x138b3b(0x28b)]=_0x405cfd,this[_0x138b3b(0x2c3)]=_0x5eacf0,this[_0x138b3b(0x3e6)]=_0x368760,this[_0x138b3b(0x426)]=_0x4ad1b2,this['_init'](),this['_initPivotDataGetListener']());}['_init'](){const _0x40d5fa=_0x5cdc89;this[_0x40d5fa(0x36d)](),this[_0x40d5fa(0x27d)](),this[_0x40d5fa(0x38f)](),this[_0x40d5fa(0x2cf)]();}[_0x5cdc89(0x211)](){const _0x30aa81=_0x5cdc89;this['_globalComputingSrv'][_0x30aa81(0x307)](this[_0x30aa81(0x275)]),_0xb58591[_0x30aa81(0x224)](_0x245665[_0x30aa81(0x277)],this[_0x30aa81(0x1bb)]),_0xb58591['registerCallbackWithEvent'](_0x245665[_0x30aa81(0x377)],this[_0x30aa81(0x22e)]);}[_0x5cdc89(0x423)](){const _0x2d8c15=_0x5cdc89;this['disposeWithMe'](this[_0x2d8c15(0x2c3)][_0x2d8c15(0x1e6)](_0x2b5b4f=>{const _0xc240b5=_0x2d8c15;_0x2b5b4f['id']===_0x3ad3f7['id']&&this[_0xc240b5(0x23f)][_0xc240b5(0x409)](_0x2b5b4f[_0xc240b5(0x3f7)]);})),this[_0x2d8c15(0x2d3)](this[_0x2d8c15(0x2c3)][_0x2d8c15(0x1e6)](_0x39989f=>{const _0x3acb17=_0x2d8c15;if(_0x39989f['id']!==ro['id'])return;const _0x59234c=_0x39989f[_0x3acb17(0x3f7)],{unitId:_0x2d7db6,subUnitId:_0x1e9944,pivotTableId:_0x20a2b4}=_0x59234c,_0x619a94=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x1bf)],_0x46d1f2={};switch(_0x619a94){case k[_0x3acb17(0x287)]:{const _0x11897c=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x412)];if(!_0x11897c)return;const {row:_0x39d83b,col:_0xafd70e,cellData:_0x53ba85,pivotItemRenderInfoCache:_0xc984db,tableFieldId:_0xd02215}=_0x11897c,_0x133921=this['_sheetsPivotDataSourceModel'][_0x3acb17(0x27b)](_0x59234c[_0x3acb17(0x2b8)]);if(!_0x133921||!_0xc984db)return;if(_0xd02215){const _0x1b222a=_0x133921[_0x3acb17(0x31a)](_0xd02215);if(!_0x1b222a)return;_0x46d1f2[_0x3acb17(0x412)]={..._0x133921[_0x3acb17(0x20a)](_0x1b222a),'tableFieldId':_0xd02215,'pivotTableId':_0x59234c['pivotTableId'],'filterInfo':_0x133921[_0x3acb17(0x232)](_0xd02215),'sortInfo':_0x133921['getSortInfo'](_0xd02215),'format':_0x133921[_0x3acb17(0x22c)](_0xd02215)};}else{const _0xeca6bd=ki(_0x39d83b,_0xafd70e,_0x53ba85,_0x133921,_0xc984db),_0x17ca93=_0xeca6bd==null?void 0x0:_0xeca6bd[_0x3acb17(0x27c)];if(!_0x17ca93)return;const _0x1463a8=_0x133921[_0x3acb17(0x31a)](_0x17ca93);if(!_0x1463a8)return;_0x46d1f2[_0x3acb17(0x412)]={..._0x133921['getDataFieldItemInfo'](_0x1463a8),'tableFieldId':_0x17ca93,'pivotTableId':_0x59234c[_0x3acb17(0x2b8)],'filterInfo':_0x133921[_0x3acb17(0x232)](_0x17ca93),'sortInfo':_0x133921[_0x3acb17(0x401)](_0x17ca93),'format':_0x133921[_0x3acb17(0x22c)](_0x17ca93)};}}break;case k['Panel']:{const _0x541928=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x304)];if(!_0x541928)return;const {pivotTableId:_0x5bd512}=_0x541928,_0x3b7487=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x5bd512);if(!_0x3b7487)return;const _0x50c4fc=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x5bd512),_0x207e55=Li(_0x3b7487,_0x5bd512,_0x50c4fc);_0x46d1f2[_0x3acb17(0x304)]=_0x207e55;}break;case k[_0x3acb17(0x1bc)]:{const _0x465d8e=this['_sheetsPivotDataSourceModel'][_0x3acb17(0x27b)](_0x20a2b4),_0x3de320=this[_0x3acb17(0x23f)]['getDataFieldManager'](_0x2d7db6),_0x128607=_0x3de320[_0x3acb17(0x2c6)](_0x20a2b4);let _0x165d54=null;const _0xfa08bc=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4),_0x21b50c=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x345)];if(!_0x465d8e||!_0xfa08bc||!_0x21b50c)return!0x1;const {dataFieldId:_0x57362e,fieldArea:_0x303770,index:_0x317c49}=_0x21b50c;_0x465d8e['startCollectChangeset']();const _0x1e9228=_0x465d8e[_0x3acb17(0x2ca)](_0x57362e,_0x303770,_0x317c49);if(_0x1e9228&&_0x303770===_0x33152d[_0x3acb17(0x251)]){const _0x1de3ca=_0x1e9228[_0x3acb17(0x305)](),_0x312b7b=_0x465d8e['getDataFieldByTableId'](_0x1de3ca);if(_0x312b7b){const _0x1b7827=_0x312b7b==null?void 0x0:_0x312b7b[_0x3acb17(0x2e8)]();_0x465d8e['setSubtotalType'](_0x1e9228[_0x3acb17(0x305)](),_0x1b7827===_0x4a9f24[_0x3acb17(0x217)]?_0x47fce5['sum']:_0x47fce5[_0x3acb17(0x1e7)]);}const _0x5b5f73=_0x465d8e[_0x3acb17(0x227)](),_0x528a3c=_0x465d8e[_0x3acb17(0x1e9)](),_0x163d69=_0x465d8e['getFieldCountByArea'](_0x33152d[_0x3acb17(0x251)]);if(_0x5b5f73===-0x1&&_0x163d69>0x1){const _0x21b0f8=_0x528a3c===_0x31970c['None']?_0x31970c['Column']:_0x528a3c,_0x124214=_0x21b0f8===_0x31970c['Row']?_0x33152d[_0x3acb17(0x367)]:_0x33152d[_0x3acb17(0x289)];_0x465d8e[_0x3acb17(0x384)](_0x21b0f8,_0x465d8e[_0x3acb17(0x39d)](_0x124214));}}else{if(_0x1e9228&&(_0x303770===_0x33152d[_0x3acb17(0x367)]||_0x303770===_0x33152d['Column'])){const _0x491353=_0x1e9228['getId'](),_0xe59196=_0x465d8e[_0x3acb17(0x31a)](_0x491353);if(_0xe59196&&(_0xe59196==null?void 0x0:_0xe59196[_0x3acb17(0x2e8)]())===_0x4a9f24[_0x3acb17(0x3cd)]){const _0x299316=_0xe59196['getformat']();if(_0x299316&&_0x465d8e[_0x3acb17(0x1d8)](_0x1e9228['getId'](),_0x299316),!_0x128607[_0x3acb17(0x2f3)]()[_0x3acb17(0x222)](_0x5c1303=>{const _0x37c645=_0x3acb17,_0x20f262=_0x128607['getFieldById'](_0x5c1303);return _0x27912c(_0x20f262)?_0x20f262[_0x37c645(0x20c)]()['originalFieldId']===_0x57362e:!0x1;})){const _0x204519=_0x3de320[_0x3acb17(0x3db)](),_0x491c01=Ki(_0xe59196['maxDate'],_0xe59196[_0x3acb17(0x261)]),_0xd9fe63=_0xe59196[_0x3acb17(0x3f1)]()+_0x3acb17(0x3bd)+qo(this[_0x3acb17(0x426)],_0x491c01),_0x47fad2=new _0x3eb03e(_0x204519,_0xd9fe63,_0x4251b6(0x3),_0xe59196[_0x3acb17(0x305)](),_0x491c01);_0x3de320['addDataFieldWithoutUnitInfo'](_0x47fad2),_0x128607[_0x3acb17(0x31e)](_0x204519,_0xd9fe63),_0x465d8e['addFieldWithSourceId'](_0x204519,_0x303770,(_0x317c49!=null?_0x317c49:0x0)+0x1),_0x165d54=_0x47fad2;}}}}const _0xc25bca=_0x465d8e[_0x3acb17(0x371)](),_0x1de09e=_0x465d8e['query']()['toJSON']();let _0x38ea1d;if(_0x165d54){_0x38ea1d=_0x165d54['toJSON']();const _0x48c41e=_0x165d54[_0x3acb17(0x305)]();_0x128607[_0x3acb17(0x3d9)](_0x48c41e);let _0x49f5a7=!0x0;for(const _0x3a5e2e in _0x3de320[_0x3acb17(0x3b1)])if(_0x3de320[_0x3acb17(0x3b1)][_0x3a5e2e][_0x3acb17(0x2f3)]()[_0x3acb17(0x22b)](_0x48c41e)){_0x49f5a7=!0x1;break;}_0x49f5a7&&_0x3de320[_0x3acb17(0x2fb)](_0x48c41e);}const _0x2d67bc=_0x465d8e['endCollectChangeset']();_0x46d1f2['addPivotField']={'view':_0x1de09e,'changesets':_0x2d67bc,'isEmpty':_0xc25bca,'pivotTableConfig':_0xfa08bc,'shouldBeAddedGroupJSON':_0x38ea1d};}break;case k[_0x3acb17(0x236)]:{const _0x3e46c8=_0x59234c[_0x3acb17(0x3f7)]['addPivotTable'];if(!_0x3e46c8)return;const _0x38ed13=_0x3e46c8['sourceRangeInfo'],_0xeb0daf=_0x3e46c8['pivotTableId'],{collection:_0x4fab10}=this[_0x3acb17(0x23f)][_0x3acb17(0x2a0)]({'unitId':_0x38ed13[_0x3acb17(0x1cb)],'sheetName':_0x38ed13[_0x3acb17(0x219)],'subUnitId':_0x38ed13['subUnitId'],'range':_0x38ed13[_0x3acb17(0x30c)]}),_0x8e7a3=new _0xb58591(_0x4fab10,void 0x0,_0xeb0daf),_0x5dacf8=_0x8e7a3[_0x3acb17(0x270)](),_0x5ddb82=_0x8e7a3[_0x3acb17(0x42a)](),_0x54485a=_0x4fab10[_0x3acb17(0x42a)]();_0x46d1f2['addPivotTable']={'view':_0x5dacf8,'fieldsConfig':_0x5ddb82,'collectionConfig':_0x54485a,'isEmpty':_0x8e7a3[_0x3acb17(0x371)]()};}break;case k[_0x3acb17(0x212)]:{const _0x3630e6=_0x59234c['params'][_0x3acb17(0x29d)];if(!_0x3630e6)return;const {fieldId:_0x1968ae,area:_0x19e508,index:_0x430cf8}=_0x3630e6,_0x2c6302=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x2c6302)return;const _0xcf61f=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x20a2b4);if(!_0xcf61f)return;_0xcf61f[_0x3acb17(0x2ae)]();const {area:_0x3a67da,index:_0x384792}=_0xcf61f['getFieldPositionInfoById'](_0x1968ae);if(_0xcf61f[_0x3acb17(0x24f)](_0x1968ae,_0x19e508,_0x430cf8),_0x19e508===_0x33152d[_0x3acb17(0x251)]&&_0xcf61f[_0x3acb17(0x209)](_0x1968ae)[_0x3acb17(0x393)]()===void 0x0){const _0x4fc8f5=_0xcf61f['getTableFieldById'](_0x1968ae);if(_0x4fc8f5&&_0x4fc8f5[_0x3acb17(0x393)]()===void 0x0){const _0x57877f=_0xcf61f[_0x3acb17(0x31a)](_0x1968ae);if(_0x57877f){const _0x156c2f=_0x57877f==null?void 0x0:_0x57877f[_0x3acb17(0x2e8)]();_0xcf61f['setSubtotalType'](_0x1968ae,_0x156c2f===_0x4a9f24[_0x3acb17(0x217)]?_0x47fce5[_0x3acb17(0x254)]:_0x47fce5[_0x3acb17(0x1e7)]);}}}const _0x227464=_0xcf61f['getValuePosition'](),_0x3ae882=_0xcf61f['getValueIndex'](),_0x5d9d4d=_0xcf61f[_0x3acb17(0x39d)](_0x33152d[_0x3acb17(0x251)])>0x1;if(_0x5d9d4d&&_0x3a67da===_0x19e508&&(_0x19e508===_0x33152d[_0x3acb17(0x367)]&&_0x227464===_0x31970c[_0x3acb17(0x367)]||_0x19e508===_0x33152d[_0x3acb17(0x289)]&&_0x227464===_0x31970c[_0x3acb17(0x289)])){let _0x388d49=_0x3ae882;_0x384792<=_0x3ae882&&_0x388d49--,_0x430cf8<=_0x3ae882&&_0x388d49++,_0xcf61f[_0x3acb17(0x384)](_0x227464,_0x388d49);}else _0x5d9d4d&&(_0x3a67da===_0x33152d['Row']&&_0x227464===_0x31970c[_0x3acb17(0x367)]||_0x3a67da===_0x33152d[_0x3acb17(0x289)]&&_0x227464===_0x31970c[_0x3acb17(0x289)])&&_0x3ae882>=_0x384792&&_0xcf61f['updateValuePosition'](_0x227464,_0x3ae882-0x1),_0x5d9d4d&&(_0x19e508===_0x33152d[_0x3acb17(0x367)]&&_0x227464===_0x31970c[_0x3acb17(0x367)]||_0x19e508===_0x33152d[_0x3acb17(0x289)]&&_0x227464===_0x31970c[_0x3acb17(0x289)])&&_0x3ae882>=_0x430cf8&&_0xcf61f[_0x3acb17(0x384)](_0x227464,_0x3ae882+0x1);const _0x3c018b=_0xcf61f[_0x3acb17(0x270)](),_0x3e8400=_0xcf61f[_0x3acb17(0x371)](),_0x204966=_0xcf61f[_0x3acb17(0x26c)]();_0x46d1f2['movePivotField']={'view':_0x3c018b[_0x3acb17(0x42a)](),'changesets':_0x204966,'isEmpty':_0x3e8400,'pivotTableConfig':_0x2c6302};}break;case k[_0x3acb17(0x293)]:{const _0x20b8b2=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x213)];if(!_0x20b8b2)return;const _0x3f5303=_0x20b8b2[_0x3acb17(0x2c5)],_0x3f77b4=this['_sheetsPivotDataSourceModel'][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x3f77b4)return!0x1;const _0x238e11=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4);if(!_0x238e11)return!0x1;_0x238e11[_0x3acb17(0x2ae)]();for(const _0x2fa11f of _0x3f5303){const {area:_0x437136}=_0x238e11[_0x3acb17(0x406)](_0x2fa11f);_0x437136===_0x33152d[_0x3acb17(0x251)]&&_0x238e11['removeValueFilterInfoByValueFieldId'](_0x2fa11f),(_0x437136===_0x33152d['Row']||_0x437136===_0x33152d['Column'])&&_0x238e11['removeValueFilterInfo'](_0x2fa11f),_0x238e11[_0x3acb17(0x1ad)](_0x2fa11f);}const _0x1751a5=_0x238e11[_0x3acb17(0x371)](),_0x4e8e47=_0x238e11[_0x3acb17(0x270)]()['toJSON'](),_0xfd534a=_0x238e11[_0x3acb17(0x26c)]();_0x46d1f2[_0x3acb17(0x213)]={'changesets':_0xfd534a,'pivotTableConfig':_0x3f77b4,'isEmpty':_0x1751a5,'view':_0x4e8e47};}break;case k[_0x3acb17(0x23e)]:{const _0x225b01=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x3a2)];if(!_0x225b01)return;const {tableFieldId:_0x164491,items:_0x4d219a,isAll:_0x42ae7d}=_0x225b01,_0x56cc82=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4),_0x5e0a66=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x56cc82||!_0x5e0a66)return;_0x56cc82['startCollectChangeset'](),_0x56cc82[_0x3acb17(0x379)](_0x164491,{'type':_0x18216e[_0x3acb17(0x414)],'list':_0x4d219a,'isAll':_0x42ae7d});const _0x34e053=_0x56cc82[_0x3acb17(0x371)](),_0xfe0903=_0x56cc82[_0x3acb17(0x270)]()[_0x3acb17(0x42a)](),_0x126ffe=_0x56cc82[_0x3acb17(0x26c)]();_0x46d1f2['setPivotFilter']={'view':_0xfe0903,'changesets':_0x126ffe,'isEmpty':_0x34e053,'pivotTableConfig':_0x5e0a66};}break;case k[_0x3acb17(0x37e)]:{const _0x3ba9a2=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x228)];if(!_0x3ba9a2)return;const {tableFieldId:_0x4fee51,filterInfo:_0x243293}=_0x3ba9a2,_0xccc57=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4),_0xc1aa73=this[_0x3acb17(0x23f)]['getPivotTableConfig'](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0xccc57||!_0xc1aa73)return;_0xccc57[_0x3acb17(0x2ae)](),_0xccc57[_0x3acb17(0x408)](_0x4fee51,_0x243293);const _0x2b1c30=_0xccc57[_0x3acb17(0x371)](),_0x55566c=_0xccc57[_0x3acb17(0x270)]()[_0x3acb17(0x42a)](),_0x4d7e7f=_0xccc57[_0x3acb17(0x26c)]();_0x46d1f2['setValuePivotFilter']={'view':_0x55566c,'changesets':_0x4d7e7f,'isEmpty':_0x2b1c30,'pivotTableConfig':_0xc1aa73};}break;case k[_0x3acb17(0x26b)]:{const _0x5c28f8=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x1de)];if(!_0x5c28f8)return;const {tableFieldId:_0x5806f5,info:_0x4eeecd}=_0x5c28f8,_0x4ccb38=this['_sheetsPivotDataSourceModel'][_0x3acb17(0x27b)](_0x20a2b4),_0x403779=this[_0x3acb17(0x23f)]['getPivotTableConfig'](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x4ccb38||!_0x403779)return;_0x4ccb38['startCollectChangeset'](),_0x4ccb38[_0x3acb17(0x327)](_0x5806f5,_0x4eeecd);const _0x568104=_0x4ccb38[_0x3acb17(0x371)](),_0x53624c=_0x4ccb38[_0x3acb17(0x270)]()[_0x3acb17(0x42a)](),_0x2cebae=_0x4ccb38[_0x3acb17(0x26c)]();_0x46d1f2[_0x3acb17(0x1de)]={'view':_0x53624c,'changesets':_0x2cebae,'isEmpty':_0x568104,'pivotTableConfig':_0x403779};}break;case k[_0x3acb17(0x1dd)]:{const _0x12eaaf=_0x59234c['params'][_0x3acb17(0x23a)];if(!_0x12eaaf)return;const {tableFieldId:_0x3d4b7b,displayName:_0x550b28,subtotalType:_0x55c903,format:_0x11855f}=_0x12eaaf,_0x1fa764=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4),_0x4b1b56=this[_0x3acb17(0x23f)]['getPivotTableConfig'](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x1fa764||!_0x4b1b56)return;_0x1fa764[_0x3acb17(0x2ae)](),_0x550b28!==void 0x0&&_0x1fa764[_0x3acb17(0x400)](_0x3d4b7b,_0x550b28),_0x55c903!==void 0x0&&_0x1fa764[_0x3acb17(0x308)](_0x3d4b7b,_0x55c903),_0x11855f!==void 0x0&&_0x1fa764[_0x3acb17(0x1d8)](_0x3d4b7b,_0x11855f);const _0x2df8eb=_0x1fa764[_0x3acb17(0x371)](),_0x501408=_0x1fa764[_0x3acb17(0x270)]()[_0x3acb17(0x42a)](),_0x644a1f=_0x1fa764[_0x3acb17(0x26c)]();_0x46d1f2['setPivotSetting']={'changesets':_0x644a1f,'pivotTableConfig':_0x4b1b56,'isEmpty':_0x2df8eb,'view':_0x501408};}break;case k[_0x3acb17(0x2a4)]:{const _0x2ca98b=_0x59234c['params'][_0x3acb17(0x1c9)];if(!_0x2ca98b)return;const {dataRangeInfo:_0x40ab46,unitId:_0x10bc75,subUnitId:_0x4f0107}=_0x2ca98b,_0x278c01=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x10bc75,_0x4f0107,_0x20a2b4),_0x336040=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4);if(!this['_sheetsPivotDataSourceModel'][_0x3acb17(0x2c6)](_0x10bc75,_0x20a2b4)||!_0x336040||!_0x278c01)return;const _0x44233d=this[_0x3acb17(0x23f)][_0x3acb17(0x214)](_0x10bc75,_0x20a2b4,_0x40ab46),_0x14ff59=this['_sheetsPivotDataSourceModel']['getCollection'](_0x10bc75,_0x20a2b4)[_0x3acb17(0x42a)](),{collection:_0x3be885}=this[_0x3acb17(0x23f)][_0x3acb17(0x2a0)]({'unitId':_0x40ab46[_0x3acb17(0x1cb)],'sheetName':_0x40ab46[_0x3acb17(0x219)],'subUnitId':_0x40ab46[_0x3acb17(0x395)],'range':_0x40ab46[_0x3acb17(0x30c)]}),_0x4b0e82=_0x3be885[_0x3acb17(0x42a)]();_0x336040['startCollectChangeset']();const _0x12da09=this['_sheetsPivotDataSourceModel'][_0x3acb17(0x357)](_0x10bc75)[_0x3acb17(0x40c)]()||_0x1bf0cf;_0x336040[_0x3acb17(0x3ba)](_0x348805=>{const _0x410cf7=_0x3acb17,_0x1da5f7=_0x348805[_0x410cf7(0x2fd)]();if(!_0x3be885['hasField'](_0x1da5f7)){const _0x1987b2=_0x3be885['getDataFieldBySourceName'](_0x348805[_0x410cf7(0x3c0)]());if(_0x1987b2){_0x336040['updateFieldSourceInfo'](_0x348805[_0x410cf7(0x305)](),_0x1987b2[_0x410cf7(0x3f1)](),_0x1987b2['getId']());const {area:_0x57a6ad}=_0x336040[_0x410cf7(0x406)](_0x348805['getId']());let _0x4e427b=_0x348805[_0x410cf7(0x3c0)]();const _0x56128d=_0x348805[_0x410cf7(0x285)]();if(_0x57a6ad===_0x33152d['Value']){const _0x3fc908=_0x348805[_0x410cf7(0x393)]();_0x4e427b=_0x12da09(_0x1987b2['getName'](),_0x3fc908);}_0x56128d!==_0x4e427b&&_0x336040[_0x410cf7(0x400)](_0x348805[_0x410cf7(0x305)](),_0x4e427b);}else _0x336040[_0x410cf7(0x1ad)](_0x348805[_0x410cf7(0x305)]());}});const _0x337b2e=_0x336040[_0x3acb17(0x371)](),_0x3816e7=_0x336040[_0x3acb17(0x270)]()['toJSON'](),_0x511527=_0x336040[_0x3acb17(0x26c)]();_0x46d1f2['updatePivotSource']={'view':_0x3816e7,'changesets':_0x511527,'isEmpty':_0x337b2e,'pivotTableConfig':_0x278c01,'collectionConfig':_0x4b0e82,'oldCollectionConfig':_0x14ff59,'deleteIds':_0x44233d};}break;case k[_0x3acb17(0x310)]:{const _0x1855f4=_0x59234c[_0x3acb17(0x3f7)]['updateValuePosition'];if(!_0x1855f4)return;const {position:_0x2af44f,index:_0x4f0404}=_0x1855f4,_0x4a3861=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x4a3861)return!0x1;const _0x23744a=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4);if(!_0x23744a)return!0x1;_0x23744a[_0x3acb17(0x2ae)](),_0x23744a[_0x3acb17(0x384)](_0x2af44f,_0x4f0404);const _0xb33aaa=_0x23744a[_0x3acb17(0x371)](),_0x116870=_0x23744a[_0x3acb17(0x270)]()[_0x3acb17(0x42a)](),_0x59e119=_0x23744a[_0x3acb17(0x26c)]();_0x46d1f2[_0x3acb17(0x384)]={'changesets':_0x59e119,'pivotTableConfig':_0x4a3861,'isEmpty':_0xb33aaa,'view':_0x116870};}break;case k[_0x3acb17(0x368)]:{const _0x34cfbc=_0x59234c['params']['setPivotCollapse'];if(!_0x34cfbc)return;const {tableFieldId:_0x2cfedc,collapse:_0x21a2a8,item:_0x38c1dc}=_0x34cfbc,_0x43e03a=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4),_0x289528=this['_sheetsPivotDataSourceModel'][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x43e03a||!_0x289528)return;_0x43e03a['startCollectChangeset'](),_0x43e03a[_0x3acb17(0x2a1)](_0x2cfedc,_0x21a2a8,_0x38c1dc);const _0x234983=_0x43e03a[_0x3acb17(0x371)](),_0x5319f1=_0x43e03a[_0x3acb17(0x270)]()[_0x3acb17(0x42a)](),_0x325b40=_0x43e03a[_0x3acb17(0x26c)]();_0x46d1f2[_0x3acb17(0x338)]={'view':_0x5319f1,'isEmpty':_0x234983,'pivotTableConfig':_0x289528,'changesets':_0x325b40};}break;case k[_0x3acb17(0x204)]:{const _0x1d9fd6=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x1c8)];if(!_0x1d9fd6)return;const {pivotTableConfig:_0x189883}=_0x1d9fd6,_0x37f4bb=this[_0x3acb17(0x23f)][_0x3acb17(0x27b)](_0x20a2b4),_0x565c6c=this[_0x3acb17(0x23f)]['getPivotTableConfig'](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x37f4bb||!_0x565c6c)return;_0x37f4bb[_0x3acb17(0x2ae)](),Qi(_0x37f4bb,_0x189883);const _0x3305e9=_0x37f4bb[_0x3acb17(0x371)](),_0x186e63=_0x37f4bb['query']()[_0x3acb17(0x42a)](),_0x4c393b=_0x37f4bb[_0x3acb17(0x26c)]();_0x46d1f2[_0x3acb17(0x1c8)]={'view':_0x186e63,'isEmpty':_0x3305e9,'pivotTableConfig':{..._0x565c6c,'fieldsConfig':_0x37f4bb[_0x3acb17(0x42a)]()},'changesets':_0x4c393b};}break;case k[_0x3acb17(0x340)]:{const _0x32c1e9=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x300)];if(!_0x32c1e9)return;const _0x303ed9=this[_0x3acb17(0x23f)]['getPivotTableInstance'](_0x20a2b4),_0x448e39=this[_0x3acb17(0x23f)][_0x3acb17(0x346)](_0x2d7db6,_0x1e9944,_0x20a2b4);if(!_0x303ed9||!_0x448e39)return;_0x303ed9[_0x3acb17(0x2ae)](),Hi(_0x303ed9,_0x32c1e9[_0x3acb17(0x390)]);const _0x32e436=_0x303ed9[_0x3acb17(0x270)]()['toJSON'](),_0x21f80a=_0x303ed9[_0x3acb17(0x26c)]();_0x46d1f2[_0x3acb17(0x300)]={'view':_0x32e436,'isEmpty':!0x0,'pivotTableConfig':{..._0x448e39,'fieldsConfig':_0x303ed9[_0x3acb17(0x42a)]()},'changesets':_0x21f80a};}break;case k['AddPivotTableWithConfig']:{const _0x42f4c2=_0x59234c[_0x3acb17(0x3f7)][_0x3acb17(0x424)];if(!_0x42f4c2)return;const _0x208dfa=_0x42f4c2[_0x3acb17(0x3e5)],_0x5608bb=_0x42f4c2[_0x3acb17(0x2b8)],{collection:_0x106495}=this[_0x3acb17(0x23f)][_0x3acb17(0x2a0)]({'unitId':_0x208dfa[_0x3acb17(0x1cb)],'sheetName':_0x208dfa[_0x3acb17(0x219)],'subUnitId':_0x208dfa[_0x3acb17(0x395)],'range':_0x208dfa['range']}),_0x1f7076=new _0xb58591(_0x106495,void 0x0,_0x5608bb),_0x397886=_0x106495[_0x3acb17(0x2f3)](),{rows:_0x42e96b,columns:_0x52d347,filters:_0x1293a5,values:_0x4ae109}=_0x42f4c2['pivotTableIndexConfig'];_0x1f7076[_0x3acb17(0x2ae)]();for(const {field:_0x1ad300,selectedItems:_0x249abc}of _0x42e96b||[]){const _0x335ae6=_0x397886[_0x1ad300];if(_0x335ae6){const _0xc66129=_0x1f7076[_0x3acb17(0x2ca)](_0x335ae6,_0x33152d[_0x3acb17(0x367)]);_0x249abc&&_0xc66129&&_0x1f7076[_0x3acb17(0x379)](_0xc66129['getId'](),{'type':_0x18216e['ManualFilter'],'list':_0x249abc,'isAll':!0x1});}}for(const {field:_0x3e016b,selectedItems:_0x22c15e}of _0x52d347||[]){const _0x286e9f=_0x397886[_0x3e016b];if(_0x286e9f){const _0x1861a2=_0x1f7076[_0x3acb17(0x2ca)](_0x286e9f,_0x33152d['Column']);_0x22c15e&&_0x1861a2&&_0x1f7076[_0x3acb17(0x379)](_0x1861a2['getId'](),{'type':_0x18216e[_0x3acb17(0x414)],'list':_0x22c15e,'isAll':!0x1});}}for(const {field:_0x274fae,selectedItems:_0x139b1a}of _0x1293a5||[]){const _0x3f69c8=_0x397886[_0x274fae];if(_0x3f69c8){const _0x2e4133=_0x1f7076[_0x3acb17(0x2ca)](_0x3f69c8,_0x33152d[_0x3acb17(0x287)]);_0x139b1a&&_0x2e4133&&_0x1f7076[_0x3acb17(0x379)](_0x2e4133['getId'](),{'type':_0x18216e[_0x3acb17(0x414)],'list':_0x139b1a,'isAll':!0x1});}}for(const {field:_0xee70d6,subTotalType:_0x3138fb,formatString:_0x2924c1}of _0x4ae109||[]){const _0xb16316=_0x106495[_0x3acb17(0x3d8)](_0x397886[_0xee70d6]);if(!_0xb16316)continue;const _0x418099=_0x397886[_0xee70d6];if(_0x418099){const _0x3cea81=_0x1f7076[_0x3acb17(0x2ca)](_0x418099,_0x33152d['Value']);if(_0x3cea81){if(_0x3138fb!==void 0x0){_0x1f7076['setSubtotalType'](_0x3cea81[_0x3acb17(0x305)](),_0x3138fb);const _0x5eb1cf=this[_0x3acb17(0x23f)]['getDataFieldManager'](_0x208dfa[_0x3acb17(0x1cb)])['getAutoDisplayNameFunction']()||_0x1bf0cf,_0x57d32b=_0x106495[_0x3acb17(0x285)](_0x418099),_0xff86ae=_0x5eb1cf(_0x57d32b,_0x3138fb);_0x1f7076[_0x3acb17(0x400)](_0x3cea81[_0x3acb17(0x305)](),_0xff86ae);}else{if(_0xb16316){const _0x304ad4=_0xb16316==null?void 0x0:_0xb16316[_0x3acb17(0x2e8)]();_0x1f7076[_0x3acb17(0x308)](_0x3cea81[_0x3acb17(0x305)](),_0x304ad4===_0x4a9f24[_0x3acb17(0x217)]?_0x47fce5[_0x3acb17(0x254)]:_0x47fce5[_0x3acb17(0x1e7)]);}}_0x2924c1&&_0x1f7076[_0x3acb17(0x1d8)](_0x3cea81['getId'](),_0x2924c1);}}}const _0x2d9925=_0x1f7076[_0x3acb17(0x270)](),_0x12f80d=_0x1f7076['toJSON'](),_0x3d6641=_0x1f7076[_0x3acb17(0x371)](),_0x53656e=_0x1f7076[_0x3acb17(0x26c)](),_0x28021d=_0x106495[_0x3acb17(0x42a)]();_0x46d1f2[_0x3acb17(0x424)]={'view':_0x2d9925,'fieldsConfig':_0x12f80d,'collectionConfig':_0x28021d,'isEmpty':_0x3d6641,'changesets':_0x53656e};}break;case k['DrillDown']:{const _0x424d70=Bi(this[_0x3acb17(0x426)],_0x59234c);if(!_0x424d70)return;const {range:_0x99ff07,sourceSubUnitId:_0x416875,sourceUnitId:_0x5a6ba3,formatMap:_0x59b49f,indexes:_0x59f6ba}=_0x424d70;_0x46d1f2[_0x3acb17(0x343)]={'range':_0x99ff07,'sourceSubUnitId':_0x416875,'sourceUnitId':_0x5a6ba3,'formatMap':_0x59b49f,'indexes':_0x59f6ba};}break;}this['_commandService'][_0x3acb17(0x425)](lo['id'],{'version':_0x59234c[_0x3acb17(0x1fa)],'result':_0x46d1f2},{'onlyLocal':!0x0});}));}[_0x5cdc89(0x38f)](){const _0x572079=_0x5cdc89;this[_0x572079(0x2d3)](this[_0x572079(0x2c3)][_0x572079(0x1e6)](_0x125664=>{const _0x23d292=_0x572079;if(_0x125664['id']!==uo['id'])return;const _0x38c249=_0x125664[_0x23d292(0x3f7)];return this['_sheetsPivotDataSourceModel'][_0x23d292(0x2cd)](_0x38c249['textInfo']),!0x0;}));}['_subjectCollectionChange'](){this['_sheetsPivotDataSourceModel']['collectionChange$']['subscribe'](_0x50ffe9=>{const _0x801273=_0x52a0;switch(_0x50ffe9[_0x801273(0x1bf)]){case Be['add']:_0x50ffe9['dataRangeInfo']&&_0x50ffe9[_0x801273(0x28a)]&&this[_0x801273(0x250)](_0x50ffe9[_0x801273(0x2b5)],_0x50ffe9['dataRangeInfo'],_0x50ffe9[_0x801273(0x28a)]);break;case Be[_0x801273(0x41e)]:{const {unitId:_0x3ccae2,subUnitId:_0x5896fb,token:_0x5d51c4}=_0x50ffe9;_0x3ccae2&&_0x5896fb&&_0x5d51c4&&this[_0x801273(0x1c1)](_0x3ccae2,_0x5896fb,_0x5d51c4);}break;case Be[_0x801273(0x1d6)]:{const {token:_0x3870f1,oldSourceRangeInfo:_0x5db049,dataRangeInfo:_0x3d1078,targetCellInfo:_0x474ba1}=_0x50ffe9,{unitId:_0x11f106,subUnitId:_0x26f540}=_0x5db049||{};_0x11f106&&_0x26f540&&_0x3870f1&&this['removeSourceRangeChange'](_0x11f106,_0x26f540,_0x3870f1),_0x3d1078&&_0x474ba1&&this[_0x801273(0x250)](_0x3870f1,_0x3d1078,_0x474ba1);}break;}});}['_subjectFieldsCollectionChange'](){const _0x3de431=_0x5cdc89;this[_0x3de431(0x23f)][_0x3de431(0x33a)]['subscribe'](_0x200244=>{const _0x5e835e=_0x3de431;Object[_0x5e835e(0x329)](_0x200244)[_0x5e835e(0x40a)](_0x2a5091=>{const _0x240cb2=_0x5e835e,_0x3f87f3=this[_0x240cb2(0x23f)]['getTargetByPivotId'](_0x2a5091);if(_0x3f87f3){const _0x464a27=this['_sheetsPivotDataSourceModel'][_0x240cb2(0x346)](_0x3f87f3==null?void 0x0:_0x3f87f3['unitId'],_0x3f87f3==null?void 0x0:_0x3f87f3[_0x240cb2(0x395)],_0x2a5091);_0x464a27&&(this['handleSourceRangeChange'](_0x2a5091,_0x464a27['sourceRangeInfo'],_0x464a27[_0x240cb2(0x28a)]),this[_0x240cb2(0x25c)]([{'unitId':_0x3f87f3[_0x240cb2(0x1cb)],'subUnitId':_0x3f87f3[_0x240cb2(0x395)],'token':_0x2a5091}]));}});});}[_0x5cdc89(0x27d)](){const _0x4af098=_0x5cdc89;this[_0x4af098(0x23f)][_0x4af098(0x1ec)][_0x4af098(0x364)](_0x5b2b02=>{const _0x2fdc60=_0x4af098,{unitId:_0x4a8ce7,subUnitId:_0x328723,pivotTableId:_0xb5ce60}=_0x5b2b02;_0x4a8ce7&&_0x328723&&_0xb5ce60&&this[_0x2fdc60(0x25c)]([{'unitId':_0x4a8ce7,'subUnitId':_0x328723,'token':_0xb5ce60}]);});}['triggerDirtyFeature'](_0x12606){const _0x59ec3b=_0x5cdc89,_0x3d3785={};_0x12606[_0x59ec3b(0x40a)](_0x1808e0=>{var _0x7a6e30,_0x3d5354;const {unitId:_0x3c7f36,subUnitId:_0x4995a6,token:_0x48763d}=_0x1808e0;_0x3d3785[_0x3c7f36]=(_0x7a6e30=_0x3d3785[_0x3c7f36])!=null?_0x7a6e30:{},_0x3d3785[_0x3c7f36][_0x4995a6]=(_0x3d5354=_0x3d3785[_0x3c7f36][_0x4995a6])!=null?_0x3d5354:{},_0x3d3785[_0x3c7f36][_0x4995a6][_0x48763d]=!0x0;}),this[_0x59ec3b(0x2c3)][_0x59ec3b(0x425)](Nt['id'],_0x3d3785);}[_0x5cdc89(0x1c1)](_0x17114b,_0x7e2042,_0x2a80fa){const _0x44ce15=_0x5cdc89;this[_0x44ce15(0x28b)][_0x44ce15(0x286)](_0x17114b,_0x7e2042,[_0x2a80fa]);}[_0x5cdc89(0x250)](_0x4196e3,_0x1a6513,_0x5d9c76){const _0x36a3db=_0x5cdc89,{unitId:_0x4d996,subUnitId:_0x5cfedc}=_0x1a6513;this[_0x36a3db(0x28b)][_0x36a3db(0x3a3)](_0x5d9c76[_0x36a3db(0x1cb)],_0x5d9c76[_0x36a3db(0x395)],_0x4196e3)&&this[_0x36a3db(0x1c1)](_0x4d996,_0x5cfedc,_0x4196e3);const _0xa339bf={'sheetId':_0x5cfedc,..._0x1a6513};this[_0x36a3db(0x28b)][_0x36a3db(0x1f3)](_0x5d9c76['unitId'],_0x5d9c76[_0x36a3db(0x395)],_0x4196e3,{'unitId':_0x5d9c76['unitId'],'subUnitId':_0x5d9c76[_0x36a3db(0x395)],'dependencyRanges':[_0xa339bf],'getDirtyData':(_0x2b0419,_0x265bae)=>{const _0x4f1e87=_0x36a3db,_0x35f2c5=this[_0x4f1e87(0x23f)],_0x1dcd8e=_0x35f2c5[_0x4f1e87(0x2c2)](_0x4196e3);if(!_0x1dcd8e)return Vs();const {unitId:_0x374670,subUnitId:_0x100e94}=_0x1dcd8e,_0x358fba=Os(_0x2b0419,_0x265bae,_0x1a6513);if(_0x358fba['length']>0x0){const _0x45ed12=_0x35f2c5[_0x4f1e87(0x2c6)](_0x4d996,_0x4196e3),_0xf3278e=_0x45ed12[_0x4f1e87(0x2f3)](),_0x203a63=this['getMatrixFromRunTimeData'](_0x1a6513['unitId'],_0x1a6513[_0x4f1e87(0x395)],_0x265bae),_0x3d2b50={},_0x383eea=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x374670)[_0x4f1e87(0x40c)]()||_0x1bf0cf,_0x31678a=[];for(const _0x188e68 of _0x358fba){const _0x10531d=_0x188e68-(_0x1a6513[_0x4f1e87(0x30c)]['startColumn']||0x0),_0x585ae4=_0xf3278e[_0x10531d];_0x31678a[_0x4f1e87(0x323)](_0x585ae4),_0x3d2b50[_0x585ae4]=_0x45ed12[_0x4f1e87(0x3d8)](_0x585ae4)[_0x4f1e87(0x3f1)](),_0x35f2c5[_0x4f1e87(0x357)](_0x4d996)['refreshDataField'](_0x585ae4,_0x1a6513,_0x10531d,_0x203a63);}_0x45ed12[_0x4f1e87(0x32b)](_0x31678a)[_0x4f1e87(0x40a)](_0x2b17f6=>{const _0x27bfca=_0x4f1e87,[_0x807dff,_0xc8031d]=_0x2b17f6,_0x56d462=_0x45ed12[_0x27bfca(0x3d8)](_0x807dff),_0xb082c9=_0x45ed12[_0x27bfca(0x3d8)](_0xc8031d);_0x56d462&&_0xb082c9&&_0x56d462['refreshGroupField'](_0xb082c9);}),_0x45ed12['updateAllDisplayName']();const _0x4bda7f=_0x35f2c5[_0x4f1e87(0x27b)](_0x4196e3);if(_0x4bda7f){xs(_0x4bda7f,_0x3d2b50,_0x383eea),_0x4bda7f[_0x4f1e87(0x3cf)](!0x0);const _0x156b00=_0x4bda7f[_0x4f1e87(0x270)](),_0x3e10cb=_0x35f2c5[_0x4f1e87(0x346)](_0x374670,_0x100e94,_0x4196e3),_0x3343e0=_0x35f2c5[_0x4f1e87(0x357)](_0x4d996)['toJSON']();_0x35f2c5[_0x4f1e87(0x2ac)](_0x374670,_0x100e94,G[_0x4f1e87(0x38b)],_0x4196e3,_0x156b00,_0x3e10cb,_0x3343e0,!0x0);}}return this['getDirtyInfo'](_0x374670,_0x100e94,_0x4196e3);}});}[_0x5cdc89(0x2f8)](_0x1a2106,_0x4b272f,_0x9fe3fc){var _0x5a6f5e,_0xa92de6;const {arrayFormulaCellData:_0x178152,unitData:_0x966205}=_0x9fe3fc,_0x1358d3=(_0x5a6f5e=_0x178152==null?void 0x0:_0x178152[_0x1a2106])==null?void 0x0:_0x5a6f5e[_0x4b272f],_0xee9340=(_0xa92de6=_0x966205==null?void 0x0:_0x966205[_0x1a2106])==null?void 0x0:_0xa92de6[_0x4b272f];return{'arrayFormulaCellDataMatrix':_0x1358d3,'unitDataMatrix':_0xee9340};}['getDirtyInfo'](_0x375c74,_0x581deb,_0x3a11f3){const _0x57c753=_0x5cdc89,_0x132f0f=this[_0x57c753(0x23f)][_0x57c753(0x388)](_0x375c74,_0x581deb,_0x3a11f3),_0x4470a9=[],_0x222e85=new _0x499f9a();if(_0x132f0f){const {rangeCache:_0x302d14,matrix:_0x3383a9,oldRangeCache:_0x27fbce,oldMatrix:_0x39b630}=_0x132f0f,_0x270557=Gt(_0x27fbce),_0x5ae9e0=Gt(_0x302d14);_0x4470a9[_0x57c753(0x323)](..._0x5ae9e0,..._0x270557),_0x39b630&&_0x27fbce&&_0x270557[_0x57c753(0x40a)](_0x1047e0=>{const _0x462353=_0x57c753;for(let _0x226ec1=_0x1047e0['startRow'];_0x226ec1<=_0x1047e0[_0x462353(0x260)];_0x226ec1++)for(let _0x5c605e=_0x1047e0['startColumn'];_0x5c605e<=_0x1047e0['endColumn'];_0x5c605e++)_0x222e85[_0x462353(0x324)](_0x226ec1,_0x5c605e);}),_0x3383a9&&_0x5ae9e0&&_0x5ae9e0['forEach'](_0x59495d=>{const _0x4f093c=_0x57c753;for(let _0x2bacc9=_0x59495d[_0x4f093c(0x2e7)];_0x2bacc9<=_0x59495d[_0x4f093c(0x260)];_0x2bacc9++)for(let _0x428646=_0x59495d[_0x4f093c(0x258)];_0x428646<=_0x59495d['endColumn'];_0x428646++)_0x222e85['setValue'](_0x2bacc9,_0x428646,_0x3383a9[_0x4f093c(0x3cc)](_0x2bacc9,_0x428646));});}const _0x343c0c={};return _0x343c0c[_0x375c74]={[_0x581deb]:As(_0x4470a9)},{'runtimeCellData':{[_0x375c74]:{[_0x581deb]:_0x222e85}},'dirtyRanges':_0x343c0c};}['dispose'](){}};ct=Us([at(0x0,_0x582676($)),at(0x1,_0x582676(_0x5317ba)),at(0x2,_0x582676(_0x3ed3f2)),at(0x3,_0x582676(_0x55f8f9)),at(0x4,_0x582676(_0x126161))],ct);var ks=Object[_0x5cdc89(0x37f)],Ls=(_0x59e52a,_0x104eed,_0x4b091f,_0x586e4d)=>{const _0x36d1df=_0x5cdc89;for(var _0xa217e4=_0x586e4d>0x1?void 0x0:_0x586e4d?ks(_0x104eed,_0x4b091f):_0x104eed,_0x137450=_0x59e52a[_0x36d1df(0x36b)]-0x1,_0x4d8be1;_0x137450>=0x0;_0x137450--)(_0x4d8be1=_0x59e52a[_0x137450])&&(_0xa217e4=_0x4d8be1(_0xa217e4)||_0xa217e4);return _0xa217e4;},Rt=(_0x3680ba,_0x56edaa)=>(_0x454145,_0x1d0766)=>_0x56edaa(_0x454145,_0x1d0766,_0x3680ba);let dt=class extends _0x47e12b{constructor(_0x4c3df2,_0x2833d2,_0x1f5b34,_0x34c5ce){const _0x48e0d5=_0x5cdc89;super(),N(this,_0x48e0d5(0x40f),new _0x1bb2be()),(this[_0x48e0d5(0x36f)]=_0x4c3df2,this['_sheetInterceptorService']=_0x2833d2,this[_0x48e0d5(0x429)]=_0x1f5b34,this['_sheetsPivotTableConfigModel']=_0x34c5ce,this[_0x48e0d5(0x31c)]());}['_initClearSelectionCommandInterceptor'](){const _0x3502e2=_0x5cdc89;this[_0x3502e2(0x2d3)](this[_0x3502e2(0x32a)][_0x3502e2(0x34c)]({'getMutations':_0x262dba=>{const _0x5366a6=_0x3502e2;if(_0x262dba['id']===_0x550f1f['id']||_0x262dba['id']===_0x473a1e['id']){const _0x27eb3f=[],_0x18821e=[],_0x196900=this['_sheetsSelectionsService'][_0x5366a6(0x38a)]()[_0x5366a6(0x30d)](_0x146831=>_0x146831[_0x5366a6(0x30c)]),_0x40db5d=_0xa32eb7(this['_univerInstanceService']);if(!_0x40db5d)return{'redos':[],'undos':[]};const {unitId:_0x2df5c0,subUnitId:_0x24e251}=_0x40db5d,_0x4814d6={},_0x333ca2=this[_0x5366a6(0x333)][_0x5366a6(0x3c3)](_0x2df5c0,_0x24e251);if(_0x333ca2!=null&&_0x333ca2[_0x5366a6(0x35a)])for(const [_0x4c29ec,_0x3b44f2]of _0x333ca2){const {unitId:_0x433f6a,subUnitId:_0x334e1d,row:_0x1fcb64,col:_0x123af5}=_0x3b44f2[_0x5366a6(0x28a)];_0x433f6a===_0x40db5d['unitId']&&_0x334e1d===_0x40db5d[_0x5366a6(0x395)]&&(_0x4814d6[_0x1fcb64+'-'+_0x123af5]=_0x4c29ec);}return _0x196900&&_0x40db5d&&_0x196900['forEach'](_0x583b58=>{_0x352f34['foreach'](_0x583b58,(_0x4a209c,_0x1a8f52)=>{const _0xb8a473=_0x52a0,_0xf2d009=_0x4a209c+'-'+_0x1a8f52;if(_0x4814d6[_0xf2d009]){const _0x50b497=_0x4814d6[_0xf2d009];_0x27eb3f[_0xb8a473(0x323)]({'id':xt['id'],'params':{'unitId':_0x2df5c0,'subUnitId':_0x24e251,'pivotTableId':_0x50b497}});const _0x48e844=this[_0xb8a473(0x333)][_0xb8a473(0x2c6)](_0x2df5c0,_0x50b497),_0x419fda=this['_sheetsPivotTableConfigModel'][_0xb8a473(0x346)](_0x2df5c0,_0x24e251,_0x50b497);_0x18821e['push']({'id':Ct['id'],'params':{'unitId':_0x2df5c0,'subUnitId':_0x24e251,'pivotTableId':_0x50b497,'pivotTableConfig':_0x419fda,'collectionConfig':_0x48e844}});}});}),{'redos':_0x27eb3f,'undos':_0x18821e};}return{'redos':[],'undos':[]};}}));}};dt=Ls([Rt(0x0,_0x2db36d),Rt(0x1,_0x582676(_0x1b62ed)),Rt(0x2,_0x582676(_0x2654fb)),Rt(0x3,_0x582676(he))],dt);var Bs=Object[_0x5cdc89(0x37f)],Gs=(_0x293b9c,_0x36d895,_0x5d2287,_0x1f5f6c)=>{for(var _0x2834bc=_0x1f5f6c>0x1?void 0x0:_0x1f5f6c?Bs(_0x36d895,_0x5d2287):_0x36d895,_0x1dcc7b=_0x293b9c['length']-0x1,_0x8e1566;_0x1dcc7b>=0x0;_0x1dcc7b--)(_0x8e1566=_0x293b9c[_0x1dcc7b])&&(_0x2834bc=_0x8e1566(_0x2834bc)||_0x2834bc);return _0x2834bc;},rt=(_0x1cb497,_0x42cae8)=>(_0xafaaf9,_0x3f1805)=>_0x42cae8(_0xafaaf9,_0x3f1805,_0x1cb497);let ut=class extends _0x47e12b{constructor(_0x5ab3fd,_0x2aea21,_0x5ab3cb,_0x12b5a1,_0x33138a){const _0x34df5e=_0x5cdc89;super(),this[_0x34df5e(0x32a)]=_0x5ab3fd,this[_0x34df5e(0x426)]=_0x2aea21,this['_univerInstanceService']=_0x5ab3cb,this[_0x34df5e(0x333)]=_0x12b5a1,this[_0x34df5e(0x403)]=_0x33138a,this[_0x34df5e(0x301)]();}[_0x5cdc89(0x276)](_0x31d600,_0x40b186,_0x199c6a){const _0x1e82d0=_0x5cdc89,{pageView:_0x1a2c0f,cornerView:_0x40b4dd,rowView:_0x3ee8e7,colView:_0x1d4ec2,dataView:_0x56b519}=_0x40b186,_0x29c508=_0x31d600;let _0x1cc1e8;if(_0x199c6a)_0x1cc1e8=[...Gi(_0x29c508)];else{const _0x17ca31=ge(_0x29c508,_0x1a2c0f,!0x0),_0x107cb4=_0x1a2c0f[_0x1e82d0(0x3b0)]>=0x0?_0x1a2c0f[_0x1e82d0(0x3b0)]+0x1:0x0,_0x1c853d=_0x40b4dd[_0x1e82d0(0x235)],_0x598d8f=_0x40b4dd[_0x1e82d0(0x255)],_0x1f2bb3=_0x17ca31['length']>0x0?It:0x0,_0x5e7f26=ge({'row':_0x29c508[_0x1e82d0(0x3af)]+_0x107cb4+_0x1f2bb3,'col':_0x29c508[_0x1e82d0(0x1cf)]},_0x40b4dd,!0x1,!0x1),_0x3cde41=ge({'row':_0x29c508[_0x1e82d0(0x3af)]+_0x107cb4+_0x1f2bb3+_0x1c853d,'col':_0x29c508['col']},_0x3ee8e7,!0x1,!0x0),_0x4ceb55=ge({'row':_0x29c508['row']+_0x107cb4+_0x1f2bb3,'col':_0x29c508[_0x1e82d0(0x1cf)]+_0x598d8f},_0x1d4ec2,!0x1,!0x0),_0x1308e5=ge({'row':_0x29c508[_0x1e82d0(0x3af)]+_0x107cb4+_0x1f2bb3+_0x1c853d,'col':_0x29c508[_0x1e82d0(0x1cf)]+_0x598d8f},_0x56b519,!0x1,!0x0);_0x1cc1e8=[..._0x17ca31,..._0x5e7f26,..._0x3cde41,..._0x4ceb55,..._0x1308e5];}return _0x1cc1e8;}['_initCommandInterceptListener'](){const _0xf724b0=_0x5cdc89;this[_0xf724b0(0x2d3)](this[_0xf724b0(0x403)][_0xf724b0(0x2d6)]['intercept'](this[_0xf724b0(0x403)][_0xf724b0(0x2d6)][_0xf724b0(0x3cb)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x4ed8ef,_0x24fba8)=>{const _0xa551b7=_0xf724b0,{cellInfo:_0x9b5f7c,view:_0x123945,isEmpty:_0x1c560a}=_0x24fba8,_0x2c5b1b=_0x9b5f7c,{unitId:_0x126759,subUnitId:_0x2df4fc}=_0x2c5b1b,_0x2d24b5=this[_0xa551b7(0x276)](_0x9b5f7c,_0x123945,_0x1c560a),_0x20c2b1=this[_0xa551b7(0x32a)][_0xa551b7(0x3c9)]({'unitId':_0x126759,'subUnitId':_0x2df4fc,'ranges':_0x2d24b5}),_0x26bba8=Ko(this['_injector'],_0x126759,_0x2df4fc,_0x2d24b5);_0x26bba8[_0xa551b7(0x342)]&&(_0x20c2b1[_0xa551b7(0x23d)]['push'](_0x26bba8[_0xa551b7(0x2eb)]),_0x20c2b1[_0xa551b7(0x3b6)]['push'](_0x26bba8[_0xa551b7(0x389)]));const _0x50037d=this[_0xa551b7(0x2ed)](_0x123945,_0x9b5f7c);return _0x20c2b1[_0xa551b7(0x23d)][_0xa551b7(0x323)](..._0x50037d['redos']),_0x20c2b1[_0xa551b7(0x3b6)][_0xa551b7(0x323)](..._0x50037d[_0xa551b7(0x3b6)]),{'redos':_0x20c2b1[_0xa551b7(0x23d)],'undos':_0x20c2b1[_0xa551b7(0x3b6)]};}}));}['getAutoFitColumnsMutations'](_0xd273fc,_0x2371e0){const _0x14112f=_0x5cdc89,{col:_0x4b4259,unitId:_0x4287c4,subUnitId:_0x5c9643}=_0x2371e0,_0x23a5cb=[],_0x311215=[],_0x1c84df=_0xa32eb7(this[_0x14112f(0x36f)],{'unitId':_0x4287c4,'subUnitId':_0x5c9643});if(!_0x2371e0||!_0xd273fc||!_0x1c84df)return{'undos':_0x311215,'redos':_0x23a5cb};const _0x2cd0f3=this['_sheetsPivotTableConfigModel'][_0x14112f(0x2a7)](),{colView:_0x1c304a,dataView:_0x31734f,cornerView:_0x2e4c14,rowView:_0x30537b,formatMap:_0x4cfc0f}=_0xd273fc,_0x4135d6=yo(_0x1c304a,_0x2cd0f3,!0x0,_0x4cfc0f),_0x4c68cb=yo(_0x30537b,_0x2cd0f3,!0x1,_0x4cfc0f),_0x2a74f7=Wi(_0x31734f),_0x912459=ji(_0x2e4c14),{worksheet:_0x40b7fe}=_0x1c84df;if(typeof window<'u'&&window[_0x14112f(0x1ee)]){const _0x157f0a=_0x442ece({...fe[_0x14112f(0x2ef)]}),_0x48a05f=_0x173467[_0x14112f(0x208)](_0x4135d6,_0x157f0a)[_0x14112f(0x3ae)]+0x10,_0x36034c=_0x173467[_0x14112f(0x208)](_0x2a74f7,_0x157f0a)[_0x14112f(0x3ae)],_0x56a5d0=Math[_0x14112f(0x298)](Math['max'](_0x48a05f,_0x36034c))+0x10,_0x49c96b=Math[_0x14112f(0x298)](_0x173467[_0x14112f(0x208)](_0x4c68cb,_0x157f0a)['width']),_0x20f5e0=Math[_0x14112f(0x298)](_0x173467['getTextSize'](_0x912459,_0x157f0a)[_0x14112f(0x3ae)]),_0x4e616f=Math[_0x14112f(0x2e2)](_0x49c96b,_0x20f5e0,0x28)+0xc,_0x50f5a4=_0x1c304a['colCount']+_0x2e4c14[_0x14112f(0x255)],_0x3e681b={},_0x2732fb={};for(let _0x259d68=_0x4b4259;_0x259d68<_0x4b4259+_0x50f5a4;_0x259d68++){const _0x457cc3=_0x40b7fe['getColumnWidth'](_0x259d68);_0x3e681b[_0x259d68]=_0x457cc3,_0x259d68-_0x4b4259<_0x2e4c14[_0x14112f(0x255)]?_0x2732fb[_0x259d68-_0x4b4259]=_0x4e616f:_0x2732fb[_0x259d68-_0x4b4259]=_0x56a5d0;}_0x23a5cb[_0x14112f(0x323)]({'id':_0x981657['id'],'params':{'subUnitId':_0x5c9643,'unitId':_0x4287c4,'ranges':[{'startColumn':_0x4b4259,'endColumn':_0x4b4259+_0x50f5a4-0x1,'startRow':0x0,'endRow':_0x40b7fe[_0x14112f(0x3bc)]()-0x1}],'colWidth':_0x2732fb}}),_0x311215['push']({'id':_0x981657['id'],'params':{'subUnitId':_0x5c9643,'unitId':_0x4287c4,'ranges':[{'startColumn':_0x4b4259,'endColumn':_0x4b4259+_0x50f5a4-0x1,'startRow':0x0,'endRow':_0x40b7fe[_0x14112f(0x3bc)]()-0x1}],'colWidth':_0x3e681b}});}return{'undos':_0x311215,'redos':_0x23a5cb};}};function _0x52a0(_0x54279a,_0xa2272c){_0x54279a=_0x54279a-0x1ad;const _0x116417=_0x1164();let _0x52a012=_0x116417[_0x54279a];return _0x52a012;}ut=Gs([rt(0x0,_0x582676(_0x1b62ed)),rt(0x1,_0x582676(_0x126161)),rt(0x2,_0x582676(_0x2db36d)),rt(0x3,_0x582676(he)),rt(0x4,_0x582676(ie))],ut);var $s=Object['getOwnPropertyDescriptor'],Js=(_0x551555,_0x230fbe,_0x50ac29,_0xe394e2)=>{for(var _0x32ba26=_0xe394e2>0x1?void 0x0:_0xe394e2?$s(_0x230fbe,_0x50ac29):_0x230fbe,_0x5acf81=_0x551555['length']-0x1,_0x1e09e7;_0x5acf81>=0x0;_0x5acf81--)(_0x1e09e7=_0x551555[_0x5acf81])&&(_0x32ba26=_0x1e09e7(_0x32ba26)||_0x32ba26);return _0x32ba26;},ke=(_0x491ede,_0x3b0796)=>(_0x4ef999,_0x4718b3)=>_0x3b0796(_0x4ef999,_0x4718b3,_0x491ede);let ft=class extends _0x47e12b{constructor(_0x4ede37,_0x335d7c,_0x129d18,_0x8a448c,_0x393403,_0xb1101c,_0x2afec3){const _0x1ac7dc=_0x5cdc89;super(),N(this,_0x1ac7dc(0x40f),new _0x1bb2be()),(this[_0x1ac7dc(0x426)]=_0x4ede37,this['_refRangeService']=_0x335d7c,this[_0x1ac7dc(0x2c3)]=_0x129d18,this[_0x1ac7dc(0x36f)]=_0x8a448c,this[_0x1ac7dc(0x333)]=_0x393403,this[_0x1ac7dc(0x1fe)]=_0xb1101c,this[_0x1ac7dc(0x32a)]=_0x2afec3,this[_0x1ac7dc(0x372)]());}[_0x5cdc89(0x372)](){const _0x147fef=_0x5cdc89,_0x522a2e=(_0x2fb6a7,_0x5b092d)=>{const _0x2eacf0=_0x52a0,_0x1fd14a=this[_0x2eacf0(0x36f)][_0x2eacf0(0x3b3)](_0x3220f9[_0x2eacf0(0x20d)]);if(!_0x1fd14a||!(_0x1fd14a==null?void 0x0:_0x1fd14a[_0x2eacf0(0x2ff)](_0x5b092d)))return;this[_0x2eacf0(0x40f)][_0x2eacf0(0x1f2)]();const _0x32a73b=_0x2b8c30=>this[_0x2eacf0(0x420)](_0x2b8c30,_0x2fb6a7,_0x5b092d),_0x2de41f=this['_sheetsPivotTableConfigModel'][_0x2eacf0(0x3c3)](_0x2fb6a7,_0x5b092d);if(!(_0x2de41f!=null&&_0x2de41f[_0x2eacf0(0x35a)]))return;Array[_0x2eacf0(0x365)](_0x2de41f[_0x2eacf0(0x27a)]())[_0x2eacf0(0x30d)](_0x4b1f3f=>{const _0x336dbe=_0x2eacf0,{row:_0x555bb2,col:_0x3b237e}=_0x4b1f3f[_0x336dbe(0x28a)];return _0x36796a(_0x555bb2,_0x3b237e);})[_0x2eacf0(0x40a)](_0x3ef0af=>{const _0x30cf4c=_0x2eacf0;this[_0x30cf4c(0x40f)][_0x30cf4c(0x28f)](this[_0x30cf4c(0x206)][_0x30cf4c(0x21b)](_0x3ef0af,_0x32a73b,_0x2fb6a7,_0x5b092d));});},_0x237976=()=>{const _0x2078fe=_0x52a0,_0x2858d5=this[_0x2078fe(0x36f)][_0x2078fe(0x3b3)](_0x3220f9[_0x2078fe(0x20d)]);if(_0x2858d5){const _0x574205=_0x2858d5[_0x2078fe(0x1ff)]();if(!_0x574205)return;_0x522a2e(_0x2858d5[_0x2078fe(0x417)](),_0x574205[_0x2078fe(0x20b)]());}};this['disposeWithMe'](this[_0x147fef(0x2c3)][_0x147fef(0x1e6)](_0x582c8f=>{const _0x5d9027=_0x147fef;if(_0x582c8f['id']===_0x3efd5b['id']){const _0x3bc20c=_0x582c8f[_0x5d9027(0x3f7)],_0x528700=_0x3bc20c[_0x5d9027(0x395)],_0x5dfdbb=_0x3bc20c['unitId'];if(!_0x528700||!_0x5dfdbb)return;_0x522a2e(_0x5dfdbb,_0x528700);}})),this[_0x147fef(0x2d3)](this['_sheetsPivotTableConfigModel'][_0x147fef(0x339)][_0x147fef(0x364)](_0xe0c26c=>{_0xe0c26c&&_0x237976();})),this[_0x147fef(0x2d3)](this[_0x147fef(0x333)][_0x147fef(0x34a)][_0x147fef(0x364)](_0x45ad8a=>{const _0x31883a=_0x147fef,_0xd2fab1=_0xa32eb7(this[_0x31883a(0x36f)]);if(!_0xd2fab1)return;const {unitId:_0x46a367,subUnitId:_0x5d8377}=_0xd2fab1,{unitId:_0x1ed92e,subUnitId:_0x3fe650}=_0x45ad8a;_0x46a367!==_0x1ed92e||_0x5d8377!==_0x3fe650||_0x522a2e(_0x46a367,_0x5d8377);})),_0x237976();}[_0x5cdc89(0x420)](_0x2ebc0e,_0x14a886,_0x77eab4){const _0x3a72b0=_0x5cdc89;switch(_0x2ebc0e['id']){case _0x25c3dd['id']:return this[_0x3a72b0(0x358)](_0x2ebc0e[_0x3a72b0(0x3f7)],_0x14a886,_0x77eab4);}return{'redos':[],'undos':[]};}[_0x5cdc89(0x358)](_0x8dc4c6,_0x24dc79,_0x386b7b){const _0x1b403d=_0x5cdc89,{fromRange:_0x5671f4,toRange:_0x4c8698}=_0x8dc4c6,_0x771229=[],_0x3cdd35=[],_0x5b0c3f=_0xa32eb7(this[_0x1b403d(0x36f)]);if(!_0x5b0c3f)return{'undos':_0x3cdd35,'redos':_0x771229};if(_0x24dc79!==_0x5b0c3f['unitId']||_0x386b7b!==_0x5b0c3f['subUnitId'])return{'undos':_0x3cdd35,'redos':_0x771229};const _0x5e9611=this['_sheetsPivotTableConfigModel'][_0x1b403d(0x3c3)](_0x24dc79,_0x386b7b);if(_0x5e9611!=null&&_0x5e9611[_0x1b403d(0x35a)])for(const [_0x4ab39d,_0x53f3a4]of _0x5e9611){const {unitId:_0x4d758c,subUnitId:_0x11555f,row:_0xc15931,col:_0x3827aa}=_0x53f3a4['targetCellInfo'];if(_0x4d758c===_0x5b0c3f[_0x1b403d(0x1cb)]&&_0x11555f===_0x5b0c3f[_0x1b403d(0x395)]){const _0xad4a91=_0x36796a(_0xc15931,_0x3827aa);if(_0x5548d4[_0x1b403d(0x374)](_0xad4a91,_0x5671f4)){const _0x1893d5=_0xc15931-_0x5671f4[_0x1b403d(0x2e7)],_0x6b7524=_0x3827aa-_0x5671f4[_0x1b403d(0x258)],_0x39963a={'row':_0x4c8698[_0x1b403d(0x2e7)]+_0x1893d5,'col':_0x4c8698['startColumn']+_0x6b7524};_0x771229[_0x1b403d(0x323)]({'id':pt['id'],'params':{'unitId':_0x4d758c,'subUnitId':_0x11555f,'pivotTableId':_0x4ab39d,'targetCellPosition':_0x39963a}}),_0x3cdd35[_0x1b403d(0x323)]({'id':pt['id'],'params':{'unitId':_0x4d758c,'subUnitId':_0x11555f,'pivotTableId':_0x4ab39d,'targetCellPosition':{'row':_0xc15931,'col':_0x3827aa}}});const _0x4d48aa=_0x39963a[_0x1b403d(0x3af)]-_0xc15931,_0x3a7881=_0x39963a[_0x1b403d(0x1cf)]-_0x3827aa,_0x13dead=[],_0x1e18ee=this[_0x1b403d(0x1fe)][_0x1b403d(0x299)](_0x4d758c,_0x11555f,_0x4ab39d),_0xa7090d=_0x1e18ee==null?void 0x0:_0x1e18ee[_0x1b403d(0x41c)];if(_0xa7090d){Object[_0x1b403d(0x329)](_0xa7090d)[_0x1b403d(0x40a)](_0x3b6680=>{const _0x2e4fd3=_0x1b403d;_0xa7090d[_0x3b6680][_0x2e4fd3(0x40a)](_0x4c76e4=>{const _0x4f0ae3=_0x2e4fd3,_0x53bd0a={..._0x4c76e4};_0x53bd0a[_0x4f0ae3(0x2e7)]=_0x4c76e4['startRow']+_0x4d48aa,_0x53bd0a[_0x4f0ae3(0x260)]=_0x4c76e4['endRow']+_0x4d48aa,_0x53bd0a[_0x4f0ae3(0x258)]=_0x4c76e4[_0x4f0ae3(0x258)]+_0x3a7881,_0x53bd0a[_0x4f0ae3(0x35e)]=_0x4c76e4[_0x4f0ae3(0x35e)]+_0x3a7881,_0x13dead[_0x4f0ae3(0x323)](_0x53bd0a);});});const _0xbe579a=this[_0x1b403d(0x32a)][_0x1b403d(0x3c9)]({'unitId':_0x4d758c,'subUnitId':_0x11555f,'ranges':_0x13dead});_0x771229[_0x1b403d(0x323)](..._0xbe579a[_0x1b403d(0x23d)]),_0x3cdd35[_0x1b403d(0x323)](..._0xbe579a[_0x1b403d(0x3b6)]);const _0x57dc6b=Ko(this['_injector'],_0x4d758c,_0x11555f,_0x13dead);_0x57dc6b['shouldClear']&&(_0x771229[_0x1b403d(0x323)](_0x57dc6b[_0x1b403d(0x2eb)]),_0x3cdd35[_0x1b403d(0x323)](_0x57dc6b[_0x1b403d(0x389)]));}}}}return{'redos':_0x771229,'undos':_0x3cdd35};}};ft=Js([ke(0x0,_0x582676(_0x126161)),ke(0x1,_0x582676(_0x5ee8a2)),ke(0x2,_0x3ed3f2),ke(0x3,_0x2db36d),ke(0x4,_0x582676(he)),ke(0x5,_0x582676(Ee)),ke(0x6,_0x582676(_0x1b62ed))],ft);var Ws=Object[_0x5cdc89(0x37f)],js=(_0x5b9bf0,_0x280bef,_0x3be4e1,_0xba1571)=>{const _0x36656e=_0x5cdc89;for(var _0x2d0816=_0xba1571>0x1?void 0x0:_0xba1571?Ws(_0x280bef,_0x3be4e1):_0x280bef,_0x10aa77=_0x5b9bf0[_0x36656e(0x36b)]-0x1,_0x21a03;_0x10aa77>=0x0;_0x10aa77--)(_0x21a03=_0x5b9bf0[_0x10aa77])&&(_0x2d0816=_0x21a03(_0x2d0816)||_0x2d0816);return _0x2d0816;},Ro=(_0x2f8583,_0x411a44)=>(_0x391f6b,_0x5d2bdb)=>_0x411a44(_0x391f6b,_0x5d2bdb,_0x2f8583);let gt=class extends _0x47e12b{constructor(_0x3f6b34,_0x22c9b9){const _0x3f2965=_0x5cdc89;super(),this['_sheetInterceptorService']=_0x3f6b34,this[_0x3f2965(0x333)]=_0x22c9b9,this[_0x3f2965(0x2f5)]();}['_initRemoveSheetCommandInterceptor'](){const _0x41275f=_0x5cdc89;this[_0x41275f(0x2d3)](this[_0x41275f(0x32a)][_0x41275f(0x34c)]({'getMutations':_0x16dd80=>{const _0x384256=_0x41275f;if(_0x16dd80['id']===_0x49c874['id']){const _0x1de72e=[],_0x5d6f22=[],_0x43ac03=_0x16dd80[_0x384256(0x3f7)],{unitId:_0x41544c,subUnitId:_0x11661b}=_0x43ac03;if(!_0x41544c||!_0x11661b)return{'undos':_0x5d6f22,'redos':_0x1de72e};const _0x5ae1ad=this[_0x384256(0x333)]['getSubUnitPivotConfigs'](_0x41544c,_0x11661b);if(_0x5ae1ad!=null&&_0x5ae1ad[_0x384256(0x35a)])for(const [_0x52abfd,_0x2b3b7c]of _0x5ae1ad){_0x1de72e[_0x384256(0x323)]({'id':xt['id'],'params':{'unitId':_0x41544c,'subUnitId':_0x11661b,'pivotTableId':_0x52abfd}});const _0x18223b={...this[_0x384256(0x333)][_0x384256(0x2c6)](_0x41544c,_0x52abfd)};_0x5d6f22['push']({'id':Ct['id'],'params':{'unitId':_0x41544c,'subUnitId':_0x11661b,'pivotTableId':_0x52abfd,'pivotTableConfig':_0x2b3b7c,'collectionConfig':_0x18223b}});}return{'redos':_0x1de72e,'undos':_0x5d6f22};}return{'redos':[],'undos':[]};}}));}};gt=js([Ro(0x0,_0x582676(_0x1b62ed)),Ro(0x1,_0x582676(he))],gt);var Qs=Object[_0x5cdc89(0x37f)],Hs=(_0x3cd0cc,_0x2245d1,_0x3cd372,_0x21cf2a)=>{const _0x2b4019=_0x5cdc89;for(var _0x49d5ab=_0x21cf2a>0x1?void 0x0:_0x21cf2a?Qs(_0x2245d1,_0x3cd372):_0x2245d1,_0xcb1edf=_0x3cd0cc[_0x2b4019(0x36b)]-0x1,_0x157ed1;_0xcb1edf>=0x0;_0xcb1edf--)(_0x157ed1=_0x3cd0cc[_0xcb1edf])&&(_0x49d5ab=_0x157ed1(_0x49d5ab)||_0x49d5ab);return _0x49d5ab;},Qe=(_0xed6719,_0x191af6)=>(_0x556b93,_0x102cb4)=>_0x191af6(_0x556b93,_0x102cb4,_0xed6719);let vt=class extends _0x47e12b{constructor(_0x50786c,_0x31ef33,_0x87ec7d,_0x563322,_0x476bd6,_0x318eb7){const _0x3edd38=_0x5cdc89;super(),this['_commandService']=_0x50786c,this[_0x3edd38(0x382)]=_0x31ef33,this[_0x3edd38(0x1fe)]=_0x87ec7d,this[_0x3edd38(0x333)]=_0x563322,this[_0x3edd38(0x36f)]=_0x476bd6,this[_0x3edd38(0x237)]=_0x318eb7,this['_initDataSendListener'](),this[_0x3edd38(0x201)]();}[_0x5cdc89(0x28d)](){const _0x1fe5a5=_0x5cdc89;this['disposeWithMe'](this[_0x1fe5a5(0x2c3)]['onCommandExecuted'](_0x11abb4=>{const _0xb6112c=_0x1fe5a5;if(_0x11abb4['id']!==lo['id'])return;const _0x505284=_0x11abb4[_0xb6112c(0x3f7)];this[_0xb6112c(0x382)]['handleAsyncResponse'](_0x505284);})),this[_0x1fe5a5(0x2d3)](this[_0x1fe5a5(0x2c3)][_0x1fe5a5(0x1e6)](_0x2fbe5c=>{const _0x1f769b=_0x1fe5a5;if(_0x2fbe5c['id']===co['id']){const _0x22e822=_0x2fbe5c[_0x1f769b(0x3f7)];if(_0x22e822){const {unitId:_0x398b9e,subUnitId:_0x2b57a9,oldSubUnitId:_0x569fe3,pivotTableId:_0x416a35,pivotTableConfig:_0x8454a5,collectionConfig:_0x348ccf}=_0x22e822;this[_0x1f769b(0x333)]['updateConfigCache'](_0x398b9e,_0x569fe3,_0x22e822[_0x1f769b(0x2b8)],null),this['_sheetsPivotTableConfigModel'][_0x1f769b(0x32c)](_0x398b9e,_0x2b57a9,_0x416a35,_0x8454a5),this['_sheetsPivotTableConfigModel']['updateCollectionConfig'](_0x398b9e,_0x348ccf);}}})),this[_0x1fe5a5(0x2d3)](this['_commandService']['onCommandExecuted'](_0x4d34e5=>{const _0x1a394b=_0x1fe5a5;if(_0x4d34e5['id']!==Dt['id'])return;const _0x1c7b7a=_0xa32eb7(this['_univerInstanceService']);if(!_0x1c7b7a)return;const {unitId:_0x3c7ee6,subUnitId:_0x260f5a}=_0x1c7b7a,_0x54b72c=_0x4d34e5['params'];if(_0x54b72c[_0x1a394b(0x3fd)]&&Object[_0x1a394b(0x329)](_0x54b72c[_0x1a394b(0x3fd)])[_0x1a394b(0x40a)](_0x2b807d=>{const _0x49b06a=_0x1a394b;var _0x2a783f;(_0x2a783f=_0x54b72c[_0x49b06a(0x3fd)])!=null&&_0x2a783f[_0x2b807d]&&this[_0x49b06a(0x333)][_0x49b06a(0x350)](_0x2b807d,_0x54b72c[_0x49b06a(0x3fd)][_0x2b807d]);}),_0x54b72c[_0x1a394b(0x1c4)]){const _0x1f764d=_0x54b72c['single'],{unitId:_0x5d25e6,subUnitId:_0x26c8b5,view:_0x511e53,pivotTableId:_0x10d7cf,type:_0x1543f0,pivotConfig:_0x258a27}=_0x1f764d;if(_0x1543f0===G[_0x1a394b(0x2c8)])this[_0x1a394b(0x1fe)]['clearRenderCache']({'unitId':_0x5d25e6,'subUnitId':_0x26c8b5,'pivotTableId':_0x10d7cf,'type':_0x1543f0}),this[_0x1a394b(0x333)][_0x1a394b(0x32c)](_0x5d25e6,_0x26c8b5,_0x10d7cf,null);else{const _0x72ee6f=new _0x186364();_0x72ee6f['formJSON'](_0x511e53),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x5d25e6,_0x26c8b5,_0x10d7cf,_0x258a27),this['_sheetsPivotTableAdaptorModel'][_0x1a394b(0x413)]({'unitId':_0x5d25e6,'subUnitId':_0x26c8b5,'pivotTableId':_0x10d7cf,'type':_0x1543f0,'view':_0x72ee6f}),this[_0x1a394b(0x1fe)][_0x1a394b(0x1db)]({'unitId':_0x5d25e6,'subUnitId':_0x26c8b5,'view':_0x72ee6f,'pivotTableId':_0x10d7cf,'type':_0x1543f0});}}else _0x54b72c[_0x1a394b(0x3e2)]&&(_0x54b72c[_0x1a394b(0x3e2)][_0x1a394b(0x40a)](_0x242baf=>{const _0x2b9294=_0x1a394b,{unitId:_0x537ddc,subUnitId:_0x4a88ea,view:_0x5ac96b,pivotTableId:_0x48bf14,type:_0x4c4d06,pivotConfig:_0x116247}=_0x242baf,_0x4d6b30=new _0x186364();_0x4d6b30[_0x2b9294(0x27e)](_0x5ac96b),this['_sheetsPivotTableConfigModel'][_0x2b9294(0x32c)](_0x537ddc,_0x4a88ea,_0x48bf14,_0x116247),this[_0x2b9294(0x1fe)][_0x2b9294(0x1db)]({'unitId':_0x537ddc,'subUnitId':_0x4a88ea,'view':_0x4d6b30,'pivotTableId':_0x48bf14,'type':_0x4c4d06});}),this['_sheetsPivotTableConfigModel'][_0x1a394b(0x248)]());this[_0x1a394b(0x1fe)]['markDirty'](_0x3c7ee6,_0x260f5a);}));}[_0x5cdc89(0x201)](){const _0x7f720c=_0x5cdc89;this[_0x7f720c(0x237)]['register'](Nt['id'],{'commandId':Nt['id'],'getDirtyData'(_0x58c6bd){return{'dirtyUnitFeatureMap':_0x58c6bd['params']};}});}};vt=Hs([Qe(0x0,_0x582676(_0x3ed3f2)),Qe(0x1,_0x582676(z)),Qe(0x2,_0x582676(Ee)),Qe(0x3,_0x582676(he)),Qe(0x4,_0x582676(_0x2db36d)),Qe(0x5,_0x1feade)],vt);var Ks=Object[_0x5cdc89(0x21a)],qs=Object[_0x5cdc89(0x37f)],Xs=(_0x2e3731,_0x1ca919,_0x35dbe5)=>_0x1ca919 in _0x2e3731?Ks(_0x2e3731,_0x1ca919,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x35dbe5}):_0x2e3731[_0x1ca919]=_0x35dbe5,Ys=(_0x2e7567,_0x3e295a,_0x189499,_0x3bdb87)=>{const _0x163827=_0x5cdc89;for(var _0x48bee1=_0x3bdb87>0x1?void 0x0:_0x3bdb87?qs(_0x3e295a,_0x189499):_0x3e295a,_0x4f4dbc=_0x2e7567[_0x163827(0x36b)]-0x1,_0x2e6766;_0x4f4dbc>=0x0;_0x4f4dbc--)(_0x2e6766=_0x2e7567[_0x4f4dbc])&&(_0x48bee1=_0x2e6766(_0x48bee1)||_0x48bee1);return _0x48bee1;},_t=(_0x320bd1,_0x191d2c)=>(_0x56144f,_0x162f11)=>_0x191d2c(_0x56144f,_0x162f11,_0x320bd1),Zo=(_0x5bece6,_0x1eb341,_0x3f36e1)=>Xs(_0x5bece6,typeof _0x1eb341!=_0x5cdc89(0x33b)?_0x1eb341+'':_0x1eb341,_0x3f36e1);let Ut=class extends _0xc28a30{constructor(_0x5bbddf=Mo,_0x41ee89,_0x281a23,_0x16bffe,_0x2f4ac8){const _0x5695d1=_0x5cdc89;super(),this[_0x5695d1(0x2e3)]=_0x5bbddf,this[_0x5695d1(0x426)]=_0x41ee89,this[_0x5695d1(0x2c3)]=_0x281a23,this['_configService']=_0x16bffe,this['_dataSyncPrimaryController']=_0x2f4ac8;const {..._0x573e40}=_0x5268d3({},Mo,this[_0x5695d1(0x2e3)]);this[_0x5695d1(0x1c0)]['setConfig'](Xo,_0x573e40),this['_initRegisterCommand'](),this[_0x5695d1(0x1f5)]();}[_0x5cdc89(0x1f5)](){const _0x5314bd=_0x5cdc89;var _0x4ec012;const _0x3793d7=(_0x4ec012=this['_config'])==null?void 0x0:_0x4ec012['notExecuteFormula'];this[_0x5314bd(0x1c0)][_0x5314bd(0x30a)](X,_0x3793d7===!0x0);}[_0x5cdc89(0x233)](){const _0x59611a=_0x5cdc89;var _0xd190c6;let _0x1bca8c=[];const _0xdd7cdb=(_0xd190c6=this[_0x59611a(0x2e3)])==null?void 0x0:_0xd190c6['notExecuteFormula'];_0xdd7cdb===!0x0?_0x1bca8c=[[ie],[z],[vt],[Ee],[he],[gt],[dt],[ft],[ut]]:_0xdd7cdb===!0x1?_0x1bca8c=[[$],[ct]]:_0xdd7cdb===void 0x0&&(_0x1bca8c=[[$],[ct],[ie],[z],[vt],[Ee],[he],[gt],[dt],[ft],[ut]]),_0x1bca8c[_0x59611a(0x40a)](_0xa81c6f=>this[_0x59611a(0x426)][_0x59611a(0x28f)](_0xa81c6f)),[ct,vt,ie,dt,gt,ft,ut][_0x59611a(0x40a)](_0x3f69f8=>{const _0x40c305=_0x59611a;this[_0x40c305(0x426)][_0x40c305(0x3a3)](_0x3f69f8)&&this[_0x40c305(0x426)][_0x40c305(0x3ac)](_0x3f69f8);});}[_0x5cdc89(0x30e)](){const _0x17b73c=_0x5cdc89;[ps,ms,vs,Is,Ss,Es,_s,Ts,ws,Ms,Fs,Ds,Cs,bs,Ct,to,xt,$t,Yo,zo,Ht,Jt,Wt,jt,qt,Kt,pt,ro,lo,Dt,zt,eo,Xt,Qt,uo,oo,Zt,Nt,co,Rs,Yt,ys,Ps][_0x17b73c(0x40a)](_0x15e41b=>{const _0x17c11a=_0x17b73c;var _0x4ba170;(_0x4ba170=this[_0x17c11a(0x24a)])==null||_0x4ba170[_0x17c11a(0x34e)](_0x15e41b),this[_0x17c11a(0x2c3)][_0x17c11a(0x3dd)](_0x15e41b);});}};Zo(Ut,_0x5cdc89(0x3d0),ao),Zo(Ut,_0x5cdc89(0x1bf),_0x3220f9['UNIVER_SHEET']),Ut=Ys([_0x312489(_0x19b89b),_t(0x1,_0x582676(_0x126161)),_t(0x2,_0x582676(_0x3ed3f2)),_t(0x3,_0x2b55f2),_t(0x4,_0x5db1f1(_0x1a8751))],Ut);export{vs as AddPivotFieldCommand,$t as AddPivotFieldMutation,ms as AddPivotTableCommand,Ct as AddPivotTableMutation,ps as AddPivotTableWithConfigCommand,It as BLANK_ROW_COUNT,so as DEFAULT_PIVOT_NUMBER,Is as MovePivotFieldCommand,Cs as MovePivotTableCommand,k as PivotDisplayDataType,bs as PivotDrillDownCommand,G as PivotTableOperationEnum,Nt as PivotTableViewDirtyMarkOperation,Bo as PositionType,Ss as RemovePivotFieldCommand,Jt as RemovePivotFieldMutation,xt as RemovePivotTableMutation,Wt as RenamePivotFieldMutation,Ps as ResetPivotFieldsConfigCommand,Xo as SHEETS_PIVOT_PLUGIN_CONFIG_KEY,ao as SHEET_PIVOT_TABLE_PLUGIN,Ts as SetPivotCollapseCommand,jt as SetPivotCollapseMutation,Qt as SetPivotFieldFormatMutation,ys as SetPivotFieldsConfigCommand,Ms as SetPivotFilterCommand,Ht as SetPivotFilterMutation,Kt as SetPivotOptionMutation,pt as SetPivotPositionMutation,ws as SetPivotSortCommand,qt as SetPivotSortMutation,Xt as SetPivotSubtotalTypeMutation,Rs as SetPivotValueFilterCommand,Yt as SetPivotValueFilterMutation,$ as SheetsPivotDataSourceModel,z as SheetsPivotRPCService,Ee as SheetsPivotTableAdaptorModel,he as SheetsPivotTableConfigModel,ie as SheetsPivotTableService,Ut as UniverSheetsPivotTablePlugin,_s as UpdateDateGroupCommand,zt as UpdateFieldPositionMutation,Fs as UpdatePivotFieldSettingCommand,Zt as UpdatePivotFieldSourceInfoMutation,Ds as UpdatePivotTableSourceRangeCommand,oo as UpdatePivotTableSourceRangeMutation,Es as UpdatePivotValuePositionCommand,eo as UpdateValuePositionMutation,me as applyChangeSet,Ho as canUsePivot,fe as defaultThemeStyle,Ko as generateSetRangeValueMutations,ge as getAdjustRangesPosition,Gi as getEmptyPivotRanges,Et as getFieldListByArea,we as getInsertRowColMutations,ki as getPivotCellInfo,go as getPivotInfoByLicense,Li as getPivotTableInfo,ht as transFromCellValue,Gt as unionPivotViewRange};
1
+ const _0x1573ee=_0x5078;(function(_0x32653a,_0x442eb1){const _0x10025d=_0x5078,_0x7af5dc=_0x32653a();while(!![]){try{const _0x1eae8f=-parseInt(_0x10025d(0x203))/0x1+parseInt(_0x10025d(0x206))/0x2*(-parseInt(_0x10025d(0xf7))/0x3)+-parseInt(_0x10025d(0x32e))/0x4*(parseInt(_0x10025d(0x336))/0x5)+parseInt(_0x10025d(0xcd))/0x6*(parseInt(_0x10025d(0x25f))/0x7)+parseInt(_0x10025d(0x167))/0x8+parseInt(_0x10025d(0x23f))/0x9*(parseInt(_0x10025d(0x14a))/0xa)+parseInt(_0x10025d(0x161))/0xb;if(_0x1eae8f===_0x442eb1)break;else _0x7af5dc['push'](_0x7af5dc['shift']());}catch(_0xe52934){_0x7af5dc['push'](_0x7af5dc['shift']());}}}(_0x446e,0x6f9c9));var rn=Object[_0x1573ee(0x2ea)],ln=(_0x56e555,_0x2f9dc6,_0x4e214b)=>_0x2f9dc6 in _0x56e555?rn(_0x56e555,_0x2f9dc6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4e214b}):_0x56e555[_0x2f9dc6]=_0x4e214b,N=(_0xcee58c,_0x27ad96,_0x45034b)=>ln(_0xcee58c,typeof _0x27ad96!='symbol'?_0x27ad96+'':_0x27ad96,_0x45034b);import{PivotCellStyleTypeEnum as _0x30de63,PivotViewCellValueTypeEnum as _0x1090d1,isPrefixValue as _0x2ac8fe,isErrorValue as _0x1c787c,PivotErrorTypeEnum as _0x2791bb,PivotDateGroupFieldDateTypeEnum as _0x195c44,DataFieldManager as _0x4b890e,FieldsCollection as _0x4e5255,isDateValue as _0x38df7d,DataField as _0x541d74,generateHexNumber as _0x20c89d,isBaseGroupField as _0xb09525,PivotTable as _0x4678d2,PivotSubtotalTypeEnum as _0xaa3851,PivotTableFiledAreaEnum as _0x584946,excelDateToUnixMilliseconds as _0x18ee81,PivotDataFieldTypeEnum as _0x10836a,DateGroupField as _0x5bd763,createValueField as _0x2324f6,createLabelField as _0x4e2c20,PivotTableChangeTypeEnum as _0x29f294,PivotView as _0x38e21e,GlobalConfig as _0x26df93,isDateGroupFieldJSON as _0x2cb318,PivotCallbackEnum as _0x5b51d9,PivotFilterTypeEnum as _0x39da1a,getAutoDisplayName as _0xf76d57,PivotDataFieldDataTypeEnum as _0x2eec29,PivotTableValuePositionEnum as _0x3a45e4,isDateGroupField as _0x44a5d6}from'@univerjs-pro/engine-pivot';import{cellToRange as _0x133dd5,ObjectMatrix as _0x3ea36a,IUniverInstanceService as _0x144d54,UniverInstanceType as _0x14f031,CellValueType as _0x139818,numfmt as _0x507dc3,LocaleService as _0x46f29a,createAsyncInterceptorKey as _0x19632d,createInterceptorKey as _0x4422a8,CommandType as _0x4461d6,Inject as _0x24210e,ICommandService as _0x338140,Disposable as _0x163111,RANGE_TYPE as _0x271022,numberToABC as _0x1b283b,Injector as _0x220342,LifecycleService as _0x3b0c8c,IResourceManagerService as _0x4e28bc,Rectangle as _0xcfdf09,IConfigService as _0xca9673,Tools as _0x57921b,AsyncInterceptorManager as _0x59c27d,InterceptorManager as _0x3a7928,InterceptorEffectEnum as _0x38ab15,IUndoRedoService as _0x225145,sequenceExecute as _0x312a13,CustomCommandExecutionError as _0x31a626,mergeWorksheetSnapshotWithDefault as _0x86831c,generateRandomId as _0x12a627,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x34b310,DEFAULT_WORKSHEET_ROW_COUNT as _0x2b925c,DisposableCollection as _0x560768,Range as _0x11aff0,DependentOn as _0x77cb1c,Optional as _0x2e1383,Plugin as _0x2483d9,merge as _0x446eab}from'@univerjs/core';import{ErrorType as _0x387450,serializeRangeWithSpreadsheet as _0x39648e,IFeatureCalculationManagerService as _0x477cae,GlobalComputingStatusService as _0x47a7cb,IActiveDirtyManagerService as _0x4698c9}from'@univerjs/engine-formula';import{generateNullCell as _0x369198,SetRangeValuesUndoMutationFactory as _0x356a7e,SetRangeValuesMutation as _0x5e0b6f,getSheetCommandTarget as _0x5e19a7,InsertRowMutation as _0x3644f9,RemoveRowMutation as _0x21738b,InsertColMutation as _0x5be170,RemoveColMutation as _0x21d914,IExclusiveRangeService as _0x48cef8,SheetInterceptorService as _0x564c44,INTERCEPTOR_POINT as _0x536b79,InsertSheetCommand as _0x2aa68a,InsertSheetUndoMutationFactory as _0x11c56b,RemoveSheetMutation as _0x15d9b8,InsertSheetMutation as _0x15d2cd,MoveRangeMutation as _0x47af4f,SheetsSelectionsService as _0x1b4059,ClearSelectionContentCommand as _0x1e2214,ClearSelectionAllCommand as _0x12d795,SetWorksheetColWidthMutation as _0x31eb59,RefRangeService as _0x1b4a79,SetWorksheetActiveOperation as _0x239431,MoveRangeCommand as _0x4fa59b,RemoveSheetCommand as _0x38a889}from'@univerjs/sheets';import{Subject as _0x39acdb,BehaviorSubject as _0x3f2757}from'rxjs';import{LS_CONFIG_KEY as _0x1fbd6d,unshiftString as _0x29d35d,isFeatureAuthorizedWithinTime as _0xcf9c58,getSheetFeatureLimit as _0x10aa08,ReleaseType as _0x2931e2,UniverLicensePlugin as _0x48dd52}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x34d652,RemoveSheetsFilterMutation as _0x5c49f6}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x5dae40}from'@univerjs/rpc';import{getFontStyleString as _0x47fdc2,FontCache as _0x6c7fe8}from'@univerjs/engine-render';const Bo=Number[_0x1573ee(0x235)](0x6933d6ed),li=0x10,so=0x1,ao='SHEET_PIVOT_TABLE_PLUGIN',It=0x1,di='rgb(240,241,243)',ci=_0x1573ee(0x1dd),Rt=_0x1573ee(0x202),ui='#f4f4f5',fi='#f4f4f5',gi=_0x1573ee(0xd4),hi='#1d32e9',vi='#FFFFFF',pi='#e6ebfa',mi=_0x1573ee(0x16d),Ii=_0x1573ee(0xd7),Ci=_0x1573ee(0xe7),bi=0xe,Si=0x6;var Lo=(_0x5addf5=>(_0x5addf5[_0x1573ee(0x2d9)]=_0x1573ee(0x344),_0x5addf5['New']='new',_0x5addf5))(Lo||{});const $o={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Pi=0x1e,Ge={'b':{'s':0x1,'cl':{'rgb':Rt}},'l':{'s':0x1,'cl':{'rgb':Rt}},'r':{'s':0x1,'cl':{'rgb':Rt}},'t':{'s':0x1,'cl':{'rgb':Rt}}},oe={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},w={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':Ge,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':mi},'bd':null,'cl':{'rgb':Ii},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Ge,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':Ge,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Ge,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':Ge,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':hi},'cl':{'rgb':vi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Ge,'vt':0x2}};function Ti(_0x1d1d9f,_0x5d8f84,_0x704f47){const _0x17bf36=_0x1573ee,_0x3ba832=_0x1d1d9f[_0x17bf36(0xfa)](_0x46f29a),_0x802eb8=_0x704f47[_0x17bf36(0x285)]('_');switch(_0x5d8f84){case _0x195c44['Year']:return _0x3ba832['t'](_0x17bf36(0x257),..._0x802eb8);case _0x195c44[_0x17bf36(0x17f)]:return _0x3ba832['t'](_0x17bf36(0x2bc),..._0x802eb8);case _0x195c44[_0x17bf36(0x19a)]:return _0x3ba832['t'](_0x17bf36(0x1f1),..._0x802eb8);case _0x195c44['HourMinute']:return _0x3ba832['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x802eb8);case _0x195c44[_0x17bf36(0x27b)]:return _0x3ba832['t'](_0x17bf36(0x221),..._0x802eb8);case _0x195c44[_0x17bf36(0x28c)]:return _0x3ba832['t'](_0x17bf36(0xdf),..._0x802eb8);case _0x195c44[_0x17bf36(0x2be)]:return _0x3ba832['t'](_0x17bf36(0x11c),..._0x802eb8);case _0x195c44[_0x17bf36(0x316)]:return _0x3ba832['t'](_0x17bf36(0x2df),..._0x802eb8);case _0x195c44['YearMonthDate']:return _0x3ba832['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x802eb8);case _0x195c44[_0x17bf36(0x162)]:return _0x3ba832['t'](_0x17bf36(0x16e),..._0x802eb8);}return'';}const tt=(_0x5440df,_0x13be37,_0x1b9938,_0x5c33ef)=>{const _0xe5728f=_0x1573ee;let _0x11a0ab;const _0x3ef67a=_0x5440df['get'](_0x144d54)[_0xe5728f(0xf0)](_0x14f031[_0xe5728f(0xee)]);if(!_0x3ef67a)return null;const _0x33b5c0=_0x3ef67a[_0xe5728f(0xdc)]();let _0x4a31d1;if(_0x1b9938&&(_0x4a31d1=_0x33b5c0['setValue'](_0x1b9938)),_0x13be37!=null&&_0x13be37['v']||(_0x13be37==null?void 0x0:_0x13be37['v'])===0x0){_0x11a0ab||(_0x11a0ab={});const _0x485afb=Wo(_0x13be37['v']);typeof _0x485afb==_0xe5728f(0x2ab)?_0x11a0ab['t']=_0x139818[_0xe5728f(0x102)]:typeof _0x485afb==_0xe5728f(0x158)&&(_0x11a0ab['t']=_0x139818[_0xe5728f(0x284)]),_0x11a0ab['v']=_0x485afb;}if((_0x13be37!=null&&_0x13be37['i']||(_0x13be37==null?void 0x0:_0x13be37['i'])===0x0)&&(_0x11a0ab||(_0x11a0ab={}),_0x11a0ab['fi']=_0x13be37['i']),_0x13be37!=null&&_0x13be37['s']&&(_0x11a0ab||(_0x11a0ab={}),_0x11a0ab[_0xe5728f(0x335)]=_0x13be37['s']),_0x1b9938&&(_0x11a0ab||(_0x11a0ab={}),_0x11a0ab['s']=_0x4a31d1),_0x5c33ef&&_0x11a0ab!=null&&_0x11a0ab['v']&&_0x11a0ab[_0xe5728f(0x335)]!==_0x30de63[_0xe5728f(0xec)]&&_0x11a0ab['pbt']!==_0x30de63[_0xe5728f(0x231)]){const _0x330d43=String(_0x11a0ab['v']),{dateType:_0x4f7ba5}=_0x5c33ef;_0x11a0ab['v']=Ti(_0x5440df,_0x4f7ba5,_0x330d43),_0x11a0ab['t']=_0x139818[_0xe5728f(0x284)];}return _0x11a0ab;},yi=(_0x25c817,_0x348000,_0x1028f9,_0x256cba)=>{const _0x41820d=_0x1573ee;var _0x51d0f1,_0xa8d0ba,_0x295dcc,_0x3a7e04,_0x83f851,_0x555417,_0x3b900b,_0x1342a5,_0x3bb62d,_0x1e6cd8,_0x660e69,_0xf8a58,_0x31c07c,_0x2f7191;const _0x10ad3b=_0x1028f9[_0x41820d(0x2c7)],{cornerView:_0x48028d,rowView:_0x36940d,colView:_0x35f47f,dataView:_0x248df2,pageView:_0x470bcc,formatMap:_0x50c2d6,groupInfo:_0x2aba95}=_0x348000,{row:_0x1c3313,col:_0x2f396f}=_0x10ad3b,_0xf1bfcb=new _0x3ea36a(),_0x405f81={},_0x5b9c9c={},_0x4d8563={},_0x2ae73e={},_0x276442={};let _0x197f40=_0x1c3313,_0xf78ff6=_0x2f396f;Object['keys'](_0x470bcc[_0x41820d(0xe5)])['forEach'](_0x26dbdc=>{const _0xd7ff94=_0x41820d;Object[_0xd7ff94(0x20d)](_0x470bcc[_0xd7ff94(0xe5)][Number(_0x26dbdc)])[_0xd7ff94(0x25d)](_0x1d38d0=>{const _0x1e22bf=_0xd7ff94,_0x2e81c0={..._0x470bcc[_0x1e22bf(0xe5)][Number(_0x26dbdc)][Number(_0x1d38d0)]};_0xf1bfcb['setValue'](Number(_0x26dbdc)+_0x197f40,Number(_0x1d38d0)+_0xf78ff6,tt(_0x25c817,_0x2e81c0,fe[_0x1e22bf(0x14b)]));});});const _0x49e360=Object[_0x41820d(0x20d)](_0x470bcc[_0x41820d(0xe5)])[_0x41820d(0x1a9)];_0x197f40+=_0x49e360+(_0x49e360?It:0x0);const _0xe69534=_0x48028d[_0x41820d(0x356)](),_0x5c6034=_0x48028d[_0x41820d(0x341)]();for(let _0x19e993=0x0;_0x19e993<_0xe69534;_0x19e993++)for(let _0x23d79e=0x0;_0x23d79e<_0x5c6034;_0x23d79e++){const _0x10e756={...(_0xa8d0ba=(_0x51d0f1=_0x48028d['data'])==null?void 0x0:_0x51d0f1[_0x19e993])==null?void 0x0:_0xa8d0ba[_0x23d79e]};_0x10e756&&((_0x295dcc=_0x36940d[_0x41820d(0x2a4)][_0x23d79e])!=null&&_0x295dcc[_0x41820d(0x12b)])&&_0x23d79e===_0x5c6034-0x1&&_0x19e993===_0xe69534-0x1&&(_0x10e756['v']=''+_0x256cba[_0x41820d(0x157)]),_0xf1bfcb[_0x41820d(0x342)](_0x19e993+_0x197f40,_0x23d79e+_0xf78ff6,tt(_0x25c817,_0x10e756,fe[_0x41820d(0xce)]));}for(let _0x34c9e1=0x0;_0x34c9e1<_0x48028d[_0x41820d(0x135)]['length'];_0x34c9e1++)_0x48028d[_0x41820d(0x135)][_0x34c9e1]&&(_0x4d8563[''+(_0x34c9e1+_0xf78ff6)]=_0x48028d[_0x41820d(0x135)][_0x34c9e1]);_0xf78ff6+=_0x5c6034;const _0x3c057b=_0x35f47f[_0x41820d(0x2a4)],_0x19c160=_0x35f47f[_0x41820d(0x1fc)]()>=0x0?_0x35f47f[_0x41820d(0x1fc)]()+0x1:0x0,_0x187268=_0x35f47f['getLastCol']()>=0x0?_0x35f47f[_0x41820d(0x194)]()+0x1:0x0;for(let _0x3d7c2e=0x0;_0x3d7c2e<_0x187268;_0x3d7c2e++){for(let _0xf9dbc8=0x0;_0xf9dbc8<_0x19c160;_0xf9dbc8++){const _0x2ac917={...(_0x83f851=(_0x3a7e04=_0x35f47f[_0x41820d(0xe5)])==null?void 0x0:_0x3a7e04[_0xf9dbc8])==null?void 0x0:_0x83f851[_0x3d7c2e]},_0x31d594=(_0x555417=_0x3c057b[_0xf9dbc8])==null?void 0x0:_0x555417[_0x41820d(0x2e6)],_0x942399=_0x50c2d6[_0x31d594],_0x591d3a=_0x2aba95[_0x31d594];_0x2ac917&&(_0x2ac917['v']=vt(_0x2ac917,_0xf9dbc8===0x0&&((_0x3b900b=_0x35f47f[_0x41820d(0x1ec)](_0x3d7c2e+0x1))==null?void 0x0:_0x3b900b['isValue']),_0x942399,_0x256cba));let _0x3773e3;_0x942399?_0x3773e3={...fe[_0x41820d(0x2f1)],'n':{'pattern':_0x942399}}:_0x3773e3={...fe['colStyle']},_0xf1bfcb['setValue'](_0xf9dbc8+_0x197f40,_0x3d7c2e+_0xf78ff6,tt(_0x25c817,_0x2ac917,_0x3773e3,_0x591d3a));}_0x35f47f[_0x41820d(0x135)][_0x3d7c2e]&&(_0x5b9c9c[''+(_0x3d7c2e+_0xf78ff6)]=_0x35f47f[_0x41820d(0x135)][_0x3d7c2e]),_0x35f47f[_0x41820d(0x2a4)][_0x3d7c2e+0x1]&&(_0x276442[''+(_0x3d7c2e+_0x197f40+0x1)]=_0x35f47f[_0x41820d(0x2a4)][_0x3d7c2e+0x1]);}_0x197f40+=_0xe69534;const _0x1f5af6=_0x36940d[_0x41820d(0x2a4)],_0x4f642f=_0x36940d['getLastRow']()>=0x0?_0x36940d[_0x41820d(0x1fc)]()+0x1:0x0,_0x11fa2c=_0x36940d[_0x41820d(0x194)]()>=0x0?_0x36940d['getLastCol']()+0x1:0x0;for(let _0x5b6f35=0x0;_0x5b6f35<_0x4f642f;_0x5b6f35++){for(let _0x1b20b0=0x0;_0x1b20b0<_0x11fa2c;_0x1b20b0++){const _0x48ff55={...(_0x3bb62d=(_0x1342a5=_0x36940d[_0x41820d(0xe5)])==null?void 0x0:_0x1342a5[_0x5b6f35])==null?void 0x0:_0x3bb62d[_0x1b20b0]},_0x170865=(_0x1e6cd8=_0x1f5af6[_0x1b20b0])==null?void 0x0:_0x1e6cd8[_0x41820d(0x2e6)],_0x5c291c=_0x50c2d6[_0x170865],_0x5dcc2e=_0x2aba95[_0x170865];_0x48ff55&&(_0x48ff55['v']=vt(_0x48ff55,!0x1,_0x5c291c,_0x256cba));let _0x57d9bc;_0x36940d[_0x41820d(0x135)][_0x5b6f35][_0x41820d(0x1db)]===_0x36940d[_0x41820d(0x341)]()?_0x57d9bc=fe[_0x41820d(0x106)]:_0x36940d['info'][_0x5b6f35][_0x41820d(0x211)]?_0x57d9bc=_0x36940d['info'][_0x5b6f35][_0x41820d(0x1db)]===0x0?fe[_0x41820d(0x2b3)]:fe[_0x41820d(0x188)]:_0x57d9bc=fe['rowStyle'],_0x5c291c&&(_0x57d9bc={..._0x57d9bc,'n':{'pattern':_0x5c291c}}),_0xf1bfcb[_0x41820d(0x342)](_0x5b6f35+_0x197f40,_0x1b20b0+_0x2f396f,tt(_0x25c817,_0x48ff55,_0x57d9bc,_0x5dcc2e));}_0x36940d[_0x41820d(0x135)][_0x5b6f35]&&(_0x405f81[''+(_0x5b6f35+_0x197f40)]=_0x36940d[_0x41820d(0x135)][_0x5b6f35]),_0x36940d[_0x41820d(0x2a4)][_0x5b6f35]&&(_0x2ae73e[''+(_0x5b6f35+_0x2f396f)]=_0x36940d['headerMap'][_0x5b6f35]);}const _0x4675af=_0x248df2[_0x41820d(0x356)](),_0x358365=_0x248df2[_0x41820d(0x341)]();for(let _0x4f161d=0x0;_0x4f161d<_0x4675af;_0x4f161d++)for(let _0x38f96a=0x0;_0x38f96a<_0x358365;_0x38f96a++){const _0x15d97a={...(_0xf8a58=(_0x660e69=_0x248df2['data'])==null?void 0x0:_0x660e69[_0x4f161d])==null?void 0x0:_0xf8a58[_0x38f96a]};let _0xff5181;_0x36940d[_0x41820d(0x135)][_0x4f161d]['isBottomTotal']?_0xff5181=_0x36940d[_0x41820d(0x135)][_0x4f161d][_0x41820d(0x1db)]===0x0?fe[_0x41820d(0x2b3)]:fe[_0x41820d(0x188)]:_0xff5181=fe['dataStyle'];const _0x4173b8=_0x36940d[_0x41820d(0x135)][_0x4f161d][_0x41820d(0x23e)],_0x1db17b=_0x35f47f[_0x41820d(0x135)][_0x38f96a][_0x41820d(0x23e)],_0x3c5f40=Math[_0x41820d(0x320)](_0x4173b8,_0x1db17b),_0x232597=_0x1028f9['fieldsConfig'][_0x41820d(0x353)][_0x41820d(0x237)]();let _0xbe8e38='';_0x3c5f40<0x0?_0xbe8e38=(_0x31c07c=_0x232597[0x0])!=null?_0x31c07c:'':_0xbe8e38=(_0x2f7191=_0x232597[_0x3c5f40])!=null?_0x2f7191:'';const _0x140de0=_0x50c2d6[_0xbe8e38];_0x140de0&&(_0xff5181={..._0xff5181,'n':{'pattern':_0x140de0}}),_0xf1bfcb['setValue'](_0x4f161d+_0x197f40,_0x38f96a+_0xf78ff6,tt(_0x25c817,_0x15d97a,_0xff5181));}return{'valueMatrix':_0xf1bfcb,'rowInfo':_0x405f81,'colInfo':_0x5b9c9c,'cornerInfo':_0x4d8563,'rowHeaderMap':_0x2ae73e,'colHeaderMap':_0x276442};};function vt(_0x4cbd5c,_0x465e87,_0x3bd211,_0x5732a6){const _0x1d12ab=_0x1573ee;let _0x390115=_0x4cbd5c['v'];_0x465e87&&(_0x390115=''+_0x5732a6[_0x1d12ab(0x157)]);const _0x58b57e=_0x4cbd5c['t']&&(_0x4cbd5c['t']&_0x1090d1[_0x1d12ab(0x1ee)])>0x0;_0x58b57e&&(_0x390115=''+_0x5732a6[_0x1d12ab(0x1c8)]);const _0x3e7619=_0x4cbd5c['t']&&(_0x4cbd5c['t']&_0x1090d1[_0x1d12ab(0x28d)])>0x0;if(_0x3e7619&&(_0x390115=''+_0x5732a6[_0x1d12ab(0x2b9)]),_0x4cbd5c['s']===_0x30de63[_0x1d12ab(0x231)]){let _0x4876d4=_0x390115,_0x5da606='';_0x2ac8fe(_0x390115)&&(_0x4876d4=_0x390115[_0x1d12ab(0xef)],_0x5da606=_0x390115[_0x1d12ab(0x2fb)]);const _0x1d6148=_0x3bd211&&!_0x58b57e&&!_0x3e7619?_0x507dc3['format'](_0x3bd211,Number(_0x4876d4)):_0x4876d4;_0x5da606?_0x390115=_0x1d6148+'\x20'+_0x5da606:_0x390115=_0x1d6148+'\x20'+_0x5732a6[_0x1d12ab(0x2ac)];}else _0x4cbd5c['s']===_0x30de63[_0x1d12ab(0xec)]&&(_0x390115=_0x390115+'\x20'+_0x5732a6['sheets-pivot.grandTotal']);return _0x390115;}function Wo(_0x5f224e){const _0x1a8d9b=_0x1573ee;if(_0x1c787c(_0x5f224e)){const {errorType:_0x32db49}=_0x5f224e;switch(_0x32db49){case _0x2791bb[_0x1a8d9b(0x286)]:return _0x387450['DIV_BY_ZERO'];case _0x2791bb[_0x1a8d9b(0x114)]:return _0x387450['NUM'];case _0x2791bb[_0x1a8d9b(0x1a5)]:return _0x387450['NAME'];case _0x2791bb[_0x1a8d9b(0x1df)]:return _0x387450['NAME'];case _0x2791bb['BadReference']:return _0x387450[_0x1a8d9b(0x2ca)];}}return _0x5f224e;}function ge(_0x2d4566,_0x84f89c,_0x52fd5b=!0x1,_0x3bfb32=!0x1){const _0x3e5d9d=_0x1573ee,{data:_0x22ad9e}=_0x84f89c,_0x247bf3=_0x84f89c[_0x3e5d9d(0x356)](),_0x5ee60e=_0x84f89c[_0x3e5d9d(0x341)]();if(_0x247bf3<=0x0||_0x5ee60e<=0x0)return[];const _0xe01953=_0x84f89c['getLastCol'](),_0x36a79d=_0x84f89c['getLastRow'](),_0x40cce9=_0x3bfb32?_0x36a79d>=0x0?_0x36a79d+0x1:0x0:_0x247bf3,_0x4d8363=_0x3bfb32?_0xe01953>=0x0?_0xe01953+0x1:0x0:_0x5ee60e,{row:_0x4ee8a7,col:_0x8c5169}=_0x2d4566,_0x21d3c0=_0x4ee8a7,_0x50d52f=_0x8c5169;if(_0x52fd5b){const _0x1b19db=[];for(const [_0x275db4,_0x4247cd]of Object[_0x3e5d9d(0x17a)](_0x22ad9e))for(const [_0xf2f1d0,_0x311bed]of Object[_0x3e5d9d(0x17a)](_0x4247cd))_0x1b19db[_0x3e5d9d(0x1c1)](_0x133dd5(_0x21d3c0+Number(_0x275db4),_0x50d52f+Number(_0xf2f1d0)));return _0x1b19db;}else{const _0x5b13f1=_0x3bfb32?_0x40cce9>0x0?0x1:0x0:0x1,_0x4db689=_0x3bfb32?_0x4d8363>0x0?0x1:0x0:0x1,_0x3e5ba7=_0x4ee8a7+_0x40cce9-_0x5b13f1,_0x5dba6c=_0x8c5169+_0x4d8363-_0x4db689;return[{'startRow':_0x21d3c0,'startColumn':_0x50d52f,'endRow':_0x3e5ba7,'endColumn':_0x5dba6c}];}}const Q=_0x1573ee(0x238),Bt=_0x1573ee(0x12e);var k=(_0x587a06=>(_0x587a06[_0x1573ee(0x10c)]='filter',_0x587a06['Panel']=_0x1573ee(0x2fd),_0x587a06[_0x1573ee(0x182)]=_0x1573ee(0x13d),_0x587a06[_0x1573ee(0x132)]=_0x1573ee(0x132),_0x587a06[_0x1573ee(0x1ff)]=_0x1573ee(0x355),_0x587a06['MovePivotField']='movePivotField',_0x587a06[_0x1573ee(0x22e)]=_0x1573ee(0x30d),_0x587a06[_0x1573ee(0x26d)]=_0x1573ee(0x333),_0x587a06['SetPivotFilter']='setPivotFilter',_0x587a06[_0x1573ee(0x34b)]=_0x1573ee(0x268),_0x587a06[_0x1573ee(0x2a1)]='setPivotSetting',_0x587a06[_0x1573ee(0x220)]='updatePivotSource',_0x587a06[_0x1573ee(0x291)]=_0x1573ee(0x2d2),_0x587a06[_0x1573ee(0x300)]=_0x1573ee(0x1a2),_0x587a06[_0x1573ee(0x31d)]=_0x1573ee(0x32f),_0x587a06[_0x1573ee(0x15a)]=_0x1573ee(0x184),_0x587a06['ResetPivotTable']='resetPivotTable',_0x587a06))(k||{});const Mi={'sheets-pivot.blankValue':_0x1573ee(0x1d1),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x1573ee(0x1bf),'sheets-pivot.grandTotalText':_0x1573ee(0x2ef),'sheets-pivot.valueText':_0x1573ee(0x24d),'sheets-pivot.averageName':_0x1573ee(0x2e9),'sheets-pivot.countName':_0x1573ee(0x156),'sheets-pivot.countNumsName':_0x1573ee(0x156),'sheets-pivot.maxName':_0x1573ee(0x282),'sheets-pivot.minName':_0x1573ee(0x1dc),'sheets-pivot.productName':_0x1573ee(0xdb),'sheets-pivot.stdDevName':_0x1573ee(0x278),'sheets-pivot.stdDevpName':_0x1573ee(0x2c8),'sheets-pivot.sumName':_0x1573ee(0x2f5),'sheets-pivot.varName':_0x1573ee(0x226),'sheets-pivot.varpName':_0x1573ee(0xda),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x1573ee(0x2ef),'sheets-pivot.value':_0x1573ee(0x2fb),'sheets-pivot.blank':_0x1573ee(0x1ee),'sheets-pivot.other':_0x1573ee(0x28d),'sheets-pivot.emptyPivot.filter':_0x1573ee(0x10c),'sheets-pivot.emptyPivot.row':_0x1573ee(0x116),'sheets-pivot.emptyPivot.column':_0x1573ee(0xd6),'sheets-pivot.emptyPivot.values':_0x1573ee(0x112)},To={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},be=_0x19632d(_0x1573ee(0x25a)),jo=_0x4422a8('pivotMutationGenerate');var Le=(_0x5bd56e=>(_0x5bd56e[_0x1573ee(0x230)]=_0x1573ee(0x230),_0x5bd56e['delete']=_0x1573ee(0x124),_0x5bd56e['update']=_0x1573ee(0x2b5),_0x5bd56e))(Le||{}),$=(_0x4adaf6=>(_0x4adaf6[_0x1573ee(0x129)]=_0x1573ee(0x230),_0x4adaf6[_0x1573ee(0x29a)]=_0x1573ee(0xc9),_0x4adaf6[_0x1573ee(0x21b)]=_0x1573ee(0x124),_0x4adaf6))($||{});const ro={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x189),'handler':()=>!0x0},lo={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x23d),'handler':()=>!0x0},Dt={'type':_0x4461d6['MUTATION'],'id':_0x1573ee(0x119),'handler':()=>!0x0},co={'type':_0x4461d6['MUTATION'],'id':_0x1573ee(0x138),'handler':()=>!0x0},uo={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x2e1),'handler':()=>!0x0};var Ri=Object[_0x1573ee(0x1f2)],wi=(_0x167907,_0x5ab26c,_0x36816c,_0xbe8af)=>{const _0x4047d9=_0x1573ee;for(var _0x5d53d4=_0xbe8af>0x1?void 0x0:_0xbe8af?Ri(_0x5ab26c,_0x36816c):_0x5ab26c,_0x53671e=_0x167907[_0x4047d9(0x1a9)]-0x1,_0x820228;_0x53671e>=0x0;_0x53671e--)(_0x820228=_0x167907[_0x53671e])&&(_0x5d53d4=_0x820228(_0x5d53d4)||_0x5d53d4);return _0x5d53d4;},_i=(_0x4bd324,_0x32df0f)=>(_0x1f732d,_0x42b9a3)=>_0x32df0f(_0x1f732d,_0x42b9a3,_0x4bd324);let X=class extends _0x163111{constructor(_0x51c077){const _0x2ff96d=_0x1573ee;super(),N(this,_0x2ff96d(0x313),new Map()),this[_0x2ff96d(0x34c)]=_0x51c077;}[_0x1573ee(0x1f7)](_0x4c8b90){const _0x3a0d74=_0x1573ee,{version:_0x40f957}=_0x4c8b90,_0xb63791=this[_0x3a0d74(0x313)][_0x3a0d74(0xfa)](_0x40f957);_0xb63791&&(_0xb63791(_0x4c8b90),this[_0x3a0d74(0x313)][_0x3a0d74(0x124)](_0x40f957));}[_0x1573ee(0x1d4)](_0x103e79){return new Promise((_0x103c77,_0x522cf9)=>{const _0x4adf3f=_0x5078,_0x5d8f30=this[_0x4adf3f(0x176)]();this[_0x4adf3f(0x313)][_0x4adf3f(0xc9)](_0x5d8f30,_0x103c77),this['_commandService'][_0x4adf3f(0x317)](ro['id'],{'version':_0x5d8f30,..._0x103e79},{'onlyLocal':!0x0});});}[_0x1573ee(0x176)](){const _0xcc49ed=_0x1573ee;return Math[_0xcc49ed(0x122)]()[_0xcc49ed(0x303)](0x24)['substring'](0x2,0x10);}};X=wi([_i(0x0,_0x24210e(_0x338140))],X);const Jo={0x0:'G',0x1:'f',0x2:'u',0x3:'J',0x4:'p',0x5:'a',0x6:'9',0x7:'s',0x8:'b',0x9:'T','o':'0','v':'1','Y':'2','L':'3','M':'4','t':'5','s':'6','w':'7','E':'8','F':'c','a':'d','R':'e','h':'g','D':'h','p':'i','n':'j','l':'k','x':'l','B':'m','i':'n','d':'o','P':'q','f':'r','U':'t','y':'v','j':'w','V':'x','Q':'y','b':'z','S':'A','q':'B','g':'C','G':'D','C':'E','e':'F','A':'H','r':'I','H':'K','Z':'L','I':'M','T':'N','J':'O','k':'P','m':'Q','u':'R','N':'S','z':'U','W':'V','K':'W','X':'X','c':'Y','O':'Z'},Go=_0x1573ee(0x2a2),Fi=_0x40b1cd=>{const _0x3a2a20=_0x1573ee;var _0x36e72a;return((_0x36e72a=_0x40b1cd[_0x3a2a20(0x179)])==null?void 0x0:_0x36e72a['dataStream'][_0x3a2a20(0xc8)](/\r\n$/,''))||'';};class Di extends _0x4b890e{constructor(_0x3636dc,_0x5c4233){const _0x1baaee=_0x1573ee;super(),N(this,_0x1baaee(0x24a),{}),N(this,_0x1baaee(0x2c4)),N(this,_0x1baaee(0x346)),(this[_0x1baaee(0x2c4)]=_0x5c4233,this[_0x1baaee(0x346)]=_0x3636dc);}[_0x1573ee(0x2cc)](){const _0x310b7b=_0x1573ee;for(const _0x1e56c7 in this[_0x310b7b(0x351)]){const _0x21894c=this[_0x310b7b(0x351)][_0x1e56c7],_0x3dbacd=_0x21894c[_0x310b7b(0x2ee)]();this[_0x310b7b(0x24a)][_0x3dbacd]=_0x21894c[_0x310b7b(0x223)]();}}[_0x1573ee(0x1b9)](){const _0x35405d=_0x1573ee,_0x5879f4=this['_host'];return Ai[_0x35405d(0x16f)](_0x5879f4);}[_0x1573ee(0x33c)](_0x1943be){const _0x3bd4c3=_0x1573ee,_0x2ece31=this[_0x3bd4c3(0x351)][_0x1943be][_0x3bd4c3(0x1ef)];delete this[_0x3bd4c3(0x351)][_0x1943be],delete this['rangeKeyMap'][_0x2ece31];}[_0x1573ee(0x15b)](_0x2c4476){const _0x4cc549=_0x1573ee;this[_0x4cc549(0x351)][_0x2c4476[_0x4cc549(0x223)]()]=_0x2c4476;}[_0x1573ee(0x163)](_0x30a5d0){const _0x3b600a=_0x1573ee;var _0x668509,_0xb508de;const _0x3837c0=this[_0x3b600a(0x346)][_0x3b600a(0x296)](_0x30a5d0);if(_0x3837c0){const {unitId:_0x576989,subUnitId:_0x49fa8b}=_0x3837c0,_0x3aebf4=(_0x668509=this[_0x3b600a(0x346)][_0x3b600a(0x200)](_0x576989,_0x49fa8b,_0x30a5d0))==null?void 0x0:_0x668509[_0x3b600a(0x216)];this[_0x3b600a(0x346)]['broadcastCollectionChange']({'token':_0x30a5d0,'type':Le[_0x3b600a(0x124)],'dataRangeInfo':_0x3aebf4});}(_0xb508de=this[_0x3b600a(0x22d)](_0x30a5d0))==null||_0xb508de['dispose'](),delete this[_0x3b600a(0x217)][_0x30a5d0];}[_0x1573ee(0x2ee)](_0x5af0c3,_0xa318f8){const {sheetName:_0x57e27c,unitId:_0x5ced99,range:_0x72e862}=_0x5af0c3,{startRow:_0x67e122,endRow:_0x27f72e}=_0x72e862;return _0x39648e(_0x5ced99,_0x57e27c,{'startRow':_0x67e122,'endRow':_0x27f72e,'startColumn':_0xa318f8,'endColumn':_0xa318f8});}['getDataFieldByRangeKey'](_0x3d5fe3){const _0x21fa8f=_0x1573ee;return this[_0x21fa8f(0x351)][this['rangeKeyMap'][_0x3d5fe3]];}[_0x1573ee(0x2d5)](_0x284417,_0xb80d7c){this['rangeKeyMap'][_0x284417]=_0xb80d7c;}[_0x1573ee(0x208)](_0x36340d,_0x4a54c6){const _0x451e56=_0x1573ee;this[_0x451e56(0x24a)][_0x4a54c6]=this[_0x451e56(0x24a)][_0x36340d],delete this[_0x451e56(0x24a)][_0x36340d];}[_0x1573ee(0x32d)](_0x320ce3,_0x436590,_0x581462,_0x2217bc){const _0x13a49c=_0x1573ee,_0xa472f2=new _0x4e5255(this);_0xa472f2['fromJSON'](_0x436590);const _0x1d5c01=[];let _0x2a7906=0x0;for(const _0x3306dd of _0xa472f2[_0x13a49c(0x326)]){const _0x580706=this[_0x13a49c(0x2ee)](_0x581462,_0x2a7906),_0x44e78f=this[_0x13a49c(0x351)][_0x3306dd];_0x44e78f&&(_0x44e78f['rangeKey']=_0x580706,this[_0x13a49c(0x2d5)](_0x580706,_0x3306dd),_0x1d5c01[_0x13a49c(0x1c1)]({'index':_0x2a7906,'dataField':_0x44e78f})),_0x2a7906++;}return this[_0x13a49c(0x34d)](_0x320ce3,_0xa472f2,_0x581462,_0x2217bc),{'collection':_0xa472f2,'updateDataFieldList':_0x1d5c01};}[_0x1573ee(0x256)](_0x4bb524,_0x437385){const _0x3d1604=_0x1573ee;return _0x4bb524[_0x3d1604(0x222)]===_0x271022['COLUMN']?{'startRow':0x0,'startColumn':_0x4bb524[_0x3d1604(0x2d1)],'endRow':_0x437385[_0x3d1604(0x356)]()-0x1,'endColumn':_0x4bb524[_0x3d1604(0x1b0)]}:{'startRow':_0x4bb524[_0x3d1604(0x272)],'startColumn':_0x4bb524['startColumn'],'endRow':_0x4bb524[_0x3d1604(0x130)],'endColumn':_0x4bb524[_0x3d1604(0x1b0)]};}[_0x1573ee(0x294)](_0x1a7674){const _0x5aadb1=_0x1573ee,{sheetName:_0x4b4a32,range:_0x1ffb36}=_0x1a7674,_0xac0edc=this[_0x5aadb1(0x2c4)][_0x5aadb1(0xf0)](_0x14f031[_0x5aadb1(0xee)]),_0x1e468c=_0xac0edc[_0x5aadb1(0x18c)](_0x4b4a32),_0x1bd953=_0x1e468c[_0x5aadb1(0x2ae)](),{startColumn:_0x42053e,startRow:_0x34598b,endColumn:_0x2c21b6}=this['getRangeStartEndInfo'](_0x1ffb36,_0x1e468c),_0x9fb90f=_0xac0edc[_0x5aadb1(0xdc)](),_0x2a54d4=new _0x4e5255(this);_0x2a54d4[_0x5aadb1(0x332)](_0x1a7674);const _0x325939=[],_0x412236={};for(let _0xce5606=_0x42053e;_0xce5606<=_0x2c21b6;_0xce5606++){const _0x202653=_0x1bd953[_0x5aadb1(0x19e)](_0x34598b,_0xce5606),_0xdbcb48=this[_0x5aadb1(0x2ee)](_0x1a7674,_0xce5606),_0x1ce8c0=this[_0x5aadb1(0x14e)](_0xdbcb48);if(_0x1ce8c0)_0x2a54d4['addField'](_0x1ce8c0[_0x5aadb1(0x223)](),_0x1ce8c0[_0x5aadb1(0x1a4)]());else{const _0x5efa33=this[_0x5aadb1(0x1b7)]();let _0xf81fa7=this['adjustSheetCellData'](_0x202653,_0x9fb90f,_0x412236);_0x38df7d(_0xf81fa7)&&(_0xf81fa7=_0x507dc3[_0x5aadb1(0x147)](_0xf81fa7['f'],Number(_0xf81fa7['v'])));const _0xaecaa3=this['uniqueDataFieldName'](_0xf81fa7,_0xce5606),_0x459ea6=new _0x541d74(_0x5efa33,_0xaecaa3,_0x20c89d(0x3));_0x459ea6[_0x5aadb1(0x1ef)]=_0xdbcb48,this[_0x5aadb1(0x351)][_0x5efa33]=_0x459ea6,_0x2a54d4[_0x5aadb1(0x150)](_0x5efa33,_0xaecaa3),_0x325939[_0x5aadb1(0x1c1)]({'index':_0xce5606,'dataField':_0x459ea6});}}return{'updateDataFieldList':_0x325939,'collection':_0x2a54d4};}['_getAutoName'](_0x2c0a34){const _0x20007c=_0x1573ee;return this[_0x20007c(0x346)]['getTextInfo']()[_0x20007c(0x1cc)]+'\x20'+_0x1b283b(_0x2c0a34);}['uniqueDataFieldName'](_0x3c4e4b,_0x3441d3){const _0x47cdf6=_0x1573ee;return _0x3c4e4b==null||_0x3c4e4b===''?this[_0x47cdf6(0x30e)](_0x3441d3):String(_0x3c4e4b);}[_0x1573ee(0x22d)](_0x514690){return this['collections'][_0x514690];}['addCollection'](_0x43b5f8,_0x1c522e,_0x51987f,_0x5d5229){const _0x347d87=_0x1573ee;this['collections'][_0x43b5f8]=_0x1c522e,_0x1c522e['setRange'](_0x51987f),this[_0x347d87(0x346)]['broadcastCollectionChange']({'token':_0x43b5f8,'type':Le[_0x347d87(0x230)],'dataRangeInfo':_0x51987f,'targetCellInfo':_0x5d5229});}[_0x1573ee(0x11d)](_0x5482fa,_0x589437){const _0x1ed9fd=_0x1573ee,_0x359059=this[_0x1ed9fd(0x22d)](_0x5482fa),_0x12ec13=_0x359059[_0x1ed9fd(0x30b)]();let _0x4ba772=0x0;for(const _0x3c1ed6 of _0x12ec13){const _0x2e19b8=_0x359059[_0x1ed9fd(0x2d3)](_0x3c1ed6),_0x5eedd9=this[_0x1ed9fd(0x2ee)](_0x589437,_0x4ba772);this[_0x1ed9fd(0x208)](_0x2e19b8[_0x1ed9fd(0x1ef)],_0x5eedd9),_0x4ba772++;}}[_0x1573ee(0x126)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x41089d,_0x204df1){const _0x5550e4=_0x1573ee;if(this[_0x5550e4(0x22d)](_0x41089d)){const _0x35e042=this[_0x5550e4(0x288)](_0x204df1),_0x5c089f=[];for(const _0x329075 of _0x35e042)this[_0x5550e4(0x24a)][_0x329075]!==void 0x0&&_0x5c089f['push'](this[_0x5550e4(0x24a)][_0x329075]);const _0x101765=this[_0x5550e4(0xfd)](_0x41089d),_0xe1b4bd=[],_0x35df8f=new Set(_0x5c089f);for(const _0xd0e917 of _0x101765)_0x35df8f[_0x5550e4(0x281)](_0xd0e917)||_0xe1b4bd[_0x5550e4(0x1c1)](_0xd0e917);return _0xe1b4bd;}}[_0x1573ee(0x2f4)](_0x524fec,_0x2e69d5,_0x2b2155,_0x4a7ba8,_0x402596){const _0x56a8a5=_0x1573ee;return _0x2e69d5&&_0x2e69d5[_0x56a8a5(0x19e)](_0x4a7ba8,_0x402596)?_0x2e69d5[_0x56a8a5(0x19e)](_0x4a7ba8,_0x402596):_0x2b2155&&_0x2b2155[_0x56a8a5(0x19e)](_0x4a7ba8,_0x402596)?_0x2b2155[_0x56a8a5(0x19e)](_0x4a7ba8,_0x402596):_0x524fec[_0x56a8a5(0x19e)](_0x4a7ba8,_0x402596);}[_0x1573ee(0x1b1)](_0x3d8f4d,_0x2c048c,_0x4bae9,_0x3b523f){const _0x4ac99c=_0x1573ee,_0xe5337d=this[_0x4ac99c(0x351)][_0x3d8f4d];if(!_0xe5337d)return;const {subUnitId:_0xd015e9,range:_0x163424,unitId:_0x5de619}=_0x2c048c,_0x63b1d4=this['_univerInstanceService'][_0x4ac99c(0x236)](_0x5de619);if(!_0x63b1d4){console[_0x4ac99c(0xe3)](_0x4ac99c(0x325));return;}const _0x3125d3=_0x63b1d4[_0x4ac99c(0xfc)](_0xd015e9),_0x2e05f9=_0x3125d3[_0x4ac99c(0x2ae)](),{arrayFormulaCellDataMatrix:_0x404643,unitDataMatrix:_0x2ad1f3}=_0x3b523f||{},{startRow:_0x1eb4c9,startColumn:_0x27a2b2,endRow:_0xd8a6d7}=this[_0x4ac99c(0x256)](_0x163424,_0x3125d3);_0xe5337d[_0x4ac99c(0x30f)]();const _0x156c60=_0x63b1d4[_0x4ac99c(0xdc)](),_0x6f3020={},_0x24513c=this[_0x4ac99c(0x2f4)](_0x2e05f9,_0x404643,_0x2ad1f3,_0x1eb4c9,_0x27a2b2+_0x4bae9);let _0x2c7d5d=this['adjustSheetCellData'](_0x24513c,_0x156c60,_0x6f3020);_0x38df7d(_0x2c7d5d)&&(_0x2c7d5d=_0x507dc3[_0x4ac99c(0x147)](_0x2c7d5d['f'],Number(_0x2c7d5d['v'])));const _0x23ac9b=this[_0x4ac99c(0x104)](_0x2c7d5d,_0x27a2b2+_0x4bae9);_0xe5337d['setName'](_0x23ac9b);for(let _0x11fa25=_0x1eb4c9+0x1;_0x11fa25<=_0xd8a6d7;_0x11fa25++){const _0x5a5cf8=this[_0x4ac99c(0x2f4)](_0x2e05f9,_0x404643,_0x2ad1f3,_0x11fa25,_0x27a2b2+_0x4bae9);_0xe5337d[_0x4ac99c(0x271)](this[_0x4ac99c(0x2a6)](_0x5a5cf8,_0x156c60,_0x6f3020),_0x11fa25-0x1-_0x1eb4c9);}}[_0x1573ee(0x315)](_0x207a8b,_0x2cda2b,_0x413aa0){const _0x271605=_0x1573ee,{subUnitId:_0x3774ef,range:_0x7f7717,unitId:_0x256c57}=_0x413aa0,_0x380960=this[_0x271605(0x2c4)][_0x271605(0x236)](_0x256c57);if(!_0x380960){console[_0x271605(0xe3)](_0x271605(0x325));return;}const _0x2d7e0b=_0x380960[_0x271605(0xfc)](_0x3774ef),_0x4c28f4=_0x2d7e0b[_0x271605(0x2ae)](),{startRow:_0xaca23c,startColumn:_0x33321d,endRow:_0x160925}=this[_0x271605(0x256)](_0x7f7717,_0x2d7e0b),_0x4bde45=_0x380960[_0x271605(0xdc)](),_0x29f4e3={};for(const {dataField:_0x4bc1b8,index:_0x1e2c4d}of _0x2cda2b){_0x4bc1b8[_0x271605(0x30f)]();const _0x2f76ab=this[_0x271605(0x2f4)](_0x4c28f4,void 0x0,void 0x0,_0xaca23c,_0x33321d+_0x1e2c4d);let _0x3bf1f0=this[_0x271605(0x2a6)](_0x2f76ab,_0x4bde45,_0x29f4e3);_0x38df7d(_0x3bf1f0)&&(_0x3bf1f0=_0x507dc3[_0x271605(0x147)](_0x3bf1f0['f'],Number(_0x3bf1f0['v'])));const _0x4e038d=this[_0x271605(0x104)](_0x3bf1f0,_0x33321d+_0x1e2c4d);_0x4bc1b8[_0x271605(0x1bd)](_0x4e038d);}_0x207a8b['updateAllDisplayName']();for(let _0xb37ba=_0xaca23c+0x1;_0xb37ba<=_0x160925;_0xb37ba++)for(const {index:_0x5809d6,dataField:_0x1e5ff2}of _0x2cda2b){const _0xd1e379=_0x4c28f4['getValue'](_0xb37ba,_0x33321d+_0x5809d6);_0x1e5ff2['addRecord'](this['adjustSheetCellData'](_0xd1e379,_0x4bde45,_0x29f4e3),_0xb37ba-0x1-_0xaca23c);}_0x207a8b[_0x271605(0x292)](_0x160925-_0xaca23c);}[_0x1573ee(0x288)](_0x1b52cb){const _0x5a8a63=_0x1573ee,{range:_0x1831b9}=_0x1b52cb,{startColumn:_0x4e89f8,endColumn:_0x593929}=_0x1831b9,_0x203377=[];for(let _0x5bd0d5=_0x4e89f8;_0x5bd0d5<=_0x593929;_0x5bd0d5++)_0x203377['push'](this[_0x5a8a63(0x2ee)](_0x1b52cb,_0x5bd0d5));return _0x203377;}[_0x1573ee(0x2a6)](_0x109f05,_0x5109ba,_0x21ac7a){const _0x33aebc=_0x1573ee;if(_0x109f05){const {s:_0x1755e1,v:_0x25b707,t:_0xcf1b2a,p:_0x24d993}=_0x109f05;if(_0x24d993)return Fi(_0x24d993);const _0x7ca386=_0x5109ba[_0x33aebc(0xfa)](_0x1755e1);if(_0x7ca386&&_0xcf1b2a===_0x139818[_0x33aebc(0x102)]&&_0x7ca386['n']){const {pattern:_0x456d65}=_0x7ca386['n'];_0x21ac7a[_0x456d65]||(_0x21ac7a[_0x456d65]=_0x507dc3[_0x33aebc(0x26b)](_0x456d65));const _0x594992=_0x21ac7a[_0x456d65],_0x3e04bd=_0x594992[_0x33aebc(0x120)];if(_0x594992[_0x33aebc(0x21f)])return String(_0x25b707);if(_0x3e04bd)return{'v':_0x25b707,'f':_0x456d65};}if(_0xcf1b2a===_0x139818[_0x33aebc(0x102)])return Number(_0x25b707);if(_0xcf1b2a===_0x139818[_0x33aebc(0x284)]||_0xcf1b2a===_0x139818[_0x33aebc(0x140)])return String(_0x25b707);if(_0xcf1b2a===void 0x0){const _0x1ba3d3=Number(_0x25b707);if(!Number['isNaN'](_0x1ba3d3)&&String(_0x1ba3d3)===_0x25b707)return _0x1ba3d3;}return _0x25b707!=null?_0x25b707:null;}else return null;}['getRangeData'](_0x3d6587){const _0x474b88=_0x1573ee,{sheetName:_0x528e3e,range:_0x3e7ed3,unitId:_0x3f0726}=_0x3d6587,_0x4e3ac7=this[_0x474b88(0x2c4)][_0x474b88(0x236)](_0x3f0726);if(!_0x4e3ac7)return console[_0x474b88(0xe3)](_0x474b88(0x325)),{'header':[],'data':[]};const _0x1b5363=_0x4e3ac7[_0x474b88(0x18c)](_0x528e3e),_0x4cb49b=_0x1b5363[_0x474b88(0x2ae)](),{startRow:_0x4f4bca,startColumn:_0x51e2c9,endRow:_0x510fe4,endColumn:_0x2c258e}=this[_0x474b88(0x256)](_0x3e7ed3,_0x1b5363),_0x4f508a=_0x4e3ac7[_0x474b88(0xdc)](),_0x3d1136=[],_0x199a12=[],_0x3fce04={};for(let _0x5b2ef3=_0x4f4bca;_0x5b2ef3<=_0x510fe4;_0x5b2ef3++){const _0x10d7ce=[];for(let _0x1f0a7c=_0x51e2c9;_0x1f0a7c<=_0x2c258e;_0x1f0a7c++){const _0x4f7c9f=_0x4cb49b[_0x474b88(0x19e)](_0x5b2ef3,_0x1f0a7c);_0x5b2ef3===_0x4f4bca?_0x3d1136['push'](_0x4f7c9f==null?null:String(_0x4f7c9f['v'])):_0x10d7ce[_0x474b88(0x1c1)](this[_0x474b88(0x2a6)](_0x4f7c9f,_0x4f508a,_0x3fce04));}_0x199a12[_0x474b88(0x1c1)](_0x10d7ce);}return{'header':_0x3d1136,'data':_0x199a12};}[_0x1573ee(0x219)](){const _0x315783=_0x1573ee;return super[_0x315783(0x219)]();}[_0x1573ee(0x1ea)](_0x26e856){const _0x1bdc0d=_0x1573ee;super['fromJSON'](_0x26e856),this[_0x1bdc0d(0x2cc)]();}[_0x1573ee(0x28a)](){const _0x165244=_0x1573ee;super['dispose'](),this[_0x165244(0x24a)]={},this[_0x165244(0x346)]=null;}}const Ui=_0x4fedd0=>{const _0x53a5bd=_0x1573ee,{targetCellInfo:_0x24e346}=_0x4fedd0,{matrixCache:_0x119d15,rangesCache:_0x18dbb6}=Ko({'filter':_0x53a5bd(0x10c),'row':_0x53a5bd(0x116),'column':_0x53a5bd(0xd6),'values':_0x53a5bd(0x112)},_0x24e346),_0x41bae9=new _0x3ea36a();return _0x119d15[_0x53a5bd(0x305)]((_0x3b0a91,_0x2fcae5,_0x562b1b)=>{const _0x2c29cc=_0x53a5bd;_0x41bae9[_0x2c29cc(0x342)](_0x3b0a91,_0x2fcae5,_0x562b1b);}),{'matrix':_0x41bae9,'rangesCache':_0x18dbb6};},ot=_0x1c5eab=>{const _0x32c624=_0x1573ee;let _0x2dfd0f;if(_0x1c5eab!=null&&_0x1c5eab['v']||(_0x1c5eab==null?void 0x0:_0x1c5eab['v'])===0x0){_0x2dfd0f||(_0x2dfd0f={});const _0x1f65cc=Wo(_0x1c5eab['v']);typeof _0x1f65cc==_0x32c624(0x2ab)?_0x2dfd0f['t']=_0x139818[_0x32c624(0x102)]:typeof _0x1f65cc=='string'&&(_0x2dfd0f['t']=_0x139818[_0x32c624(0x284)]),_0x2dfd0f['v']=_0x1f65cc;}return _0x2dfd0f;},Ni=(_0x331e21,_0x2ed349,_0x3a516a)=>{const _0x4e113e=_0x1573ee;var _0x26d224,_0x27fa92,_0x2eb87a,_0x25a681,_0x2681b2,_0x290f49,_0x23bdbb,_0x269823,_0x269b0d,_0x40978f,_0x4b30c4,_0x367d5d;const {cornerView:_0x536328,rowView:_0x2596f7,colView:_0x56dc45,dataView:_0x5274c5,pageView:_0x2a8c1e,formatMap:_0x489589}=_0x331e21,{row:_0x405cb1,col:_0x18bd43}=_0x2ed349,_0x4883ce=new _0x3ea36a();let _0x57dc4a=_0x405cb1,_0x58495f=_0x18bd43;Object[_0x4e113e(0x20d)](_0x2a8c1e[_0x4e113e(0xe5)])['forEach'](_0x4f537d=>{const _0x4191c8=_0x4e113e;Object[_0x4191c8(0x20d)](_0x2a8c1e['data'][Number(_0x4f537d)])['forEach'](_0x331e68=>{const _0x3bb2a7=_0x4191c8,_0x34e767={..._0x2a8c1e[_0x3bb2a7(0xe5)][Number(_0x4f537d)][Number(_0x331e68)]};_0x4883ce[_0x3bb2a7(0x342)](Number(_0x4f537d)+_0x57dc4a,Number(_0x331e68)+_0x58495f,ot(_0x34e767));});});const _0x19537c=Object[_0x4e113e(0x20d)](_0x2a8c1e[_0x4e113e(0xe5)])[_0x4e113e(0x1a9)];_0x57dc4a+=_0x19537c+(_0x19537c?It:0x0);const _0x2fbc67=_0x536328['getRowCount'](),_0xf92cf5=_0x536328[_0x4e113e(0x341)]();for(let _0x1e6e1e=0x0;_0x1e6e1e<_0x2fbc67;_0x1e6e1e++)for(let _0x2752e7=0x0;_0x2752e7<_0xf92cf5;_0x2752e7++){const _0x4c6e34={...(_0x27fa92=(_0x26d224=_0x536328['data'])==null?void 0x0:_0x26d224[_0x1e6e1e])==null?void 0x0:_0x27fa92[_0x2752e7]};_0x4c6e34&&((_0x2eb87a=_0x2596f7['headerMap'][_0x2752e7])!=null&&_0x2eb87a[_0x4e113e(0x12b)])&&_0x2752e7===_0xf92cf5-0x1&&_0x1e6e1e===_0x2fbc67-0x1&&(_0x4c6e34['v']=''+_0x3a516a[_0x4e113e(0x157)]),_0x4883ce[_0x4e113e(0x342)](_0x1e6e1e+_0x57dc4a,_0x2752e7+_0x58495f,ot(_0x4c6e34));}_0x58495f+=_0xf92cf5;const _0x1188f4=_0x56dc45[_0x4e113e(0x2a4)],_0x3193af=_0x56dc45[_0x4e113e(0x1fc)]()>=0x0?_0x56dc45[_0x4e113e(0x1fc)]()+0x1:0x0,_0xc77856=_0x56dc45['getLastCol']()>=0x0?_0x56dc45[_0x4e113e(0x194)]()+0x1:0x0;for(let _0xd50780=0x0;_0xd50780<_0xc77856;_0xd50780++)for(let _0x306cf1=0x0;_0x306cf1<_0x3193af;_0x306cf1++){const _0x1e1b3e={...(_0x2681b2=(_0x25a681=_0x56dc45['data'])==null?void 0x0:_0x25a681[_0xd50780])==null?void 0x0:_0x2681b2[_0x306cf1]},_0x5ad2c6=(_0x290f49=_0x1188f4[_0xd50780])==null?void 0x0:_0x290f49[_0x4e113e(0x2e6)],_0x4412a5=_0x489589[_0x5ad2c6];_0x1e1b3e&&(_0x1e1b3e['v']=vt(_0x1e1b3e,_0xd50780===0x0&&((_0x23bdbb=_0x56dc45['getHeaderMapItem'](_0x306cf1+0x1))==null?void 0x0:_0x23bdbb[_0x4e113e(0x12b)]),_0x4412a5,_0x3a516a)),_0x4883ce[_0x4e113e(0x342)](_0xd50780+_0x57dc4a,_0x306cf1+_0x58495f,ot(_0x1e1b3e));}_0x57dc4a+=_0x2fbc67;const _0x246ab3=_0x2596f7[_0x4e113e(0x2a4)],_0x860fe2=_0x2596f7[_0x4e113e(0x1fc)]()>=0x0?_0x2596f7[_0x4e113e(0x1fc)]()+0x1:0x0,_0x190ecc=_0x2596f7['getLastCol']()>=0x0?_0x2596f7[_0x4e113e(0x194)]()+0x1:0x0;for(let _0x129517=0x0;_0x129517<_0x860fe2;_0x129517++)for(let _0x55384e=0x0;_0x55384e<_0x190ecc;_0x55384e++){const _0x493e95={...(_0x269b0d=(_0x269823=_0x2596f7[_0x4e113e(0xe5)])==null?void 0x0:_0x269823[_0x129517])==null?void 0x0:_0x269b0d[_0x55384e]},_0x352d5e=(_0x40978f=_0x246ab3[_0x55384e])==null?void 0x0:_0x40978f[_0x4e113e(0x2e6)],_0x510b73=_0x489589[_0x352d5e];_0x493e95&&(_0x493e95['v']=vt(_0x493e95,!0x1,_0x510b73,_0x3a516a)),_0x4883ce[_0x4e113e(0x342)](_0x129517+_0x57dc4a,_0x55384e+_0x18bd43,ot(_0x493e95));}const _0x2acb6f=_0x5274c5[_0x4e113e(0x356)](),_0x55bb5d=_0x5274c5[_0x4e113e(0x341)]();for(let _0x5ea9ca=0x0;_0x5ea9ca<_0x2acb6f;_0x5ea9ca++)for(let _0x495b10=0x0;_0x495b10<_0x55bb5d;_0x495b10++){const _0x1cd7ce={...(_0x367d5d=(_0x4b30c4=_0x5274c5['data'])==null?void 0x0:_0x4b30c4[_0x5ea9ca])==null?void 0x0:_0x367d5d[_0x495b10]};_0x4883ce[_0x4e113e(0x342)](_0x5ea9ca+_0x57dc4a,_0x495b10+_0x58495f,ot(_0x1cd7ce));}return _0x4883ce;},Vi=_0x1306d9=>{const _0x4cb22c=_0x1573ee,{view:_0xe849cd,targetCellInfo:_0x4afea9,isEmpty:_0xbaee84,textInfo:_0x3f0cd4}=_0x1306d9;if(_0xbaee84)return Ui(_0x1306d9);const {pageView:_0x4babf2,cornerView:_0x420c0c,rowView:_0x1c83be,colView:_0xcf2dc2,dataView:_0x563090}=_0xe849cd,_0x4fb02d=ge(_0x4afea9,_0x4babf2,!0x0),_0x4e5086=_0x4babf2[_0x4cb22c(0x247)]>=0x0?_0x4babf2[_0x4cb22c(0x247)]+0x1:0x0,_0x2bad8f=_0x420c0c[_0x4cb22c(0x356)](),_0x523cba=_0x420c0c['getColCount'](),_0x3b72ec=_0x4fb02d[_0x4cb22c(0x1a9)]>0x0?It:0x0,_0x23e04e=ge({'row':_0x4afea9[_0x4cb22c(0xd3)]+_0x4e5086+_0x3b72ec,'col':_0x4afea9[_0x4cb22c(0x267)]},_0x420c0c,!0x1,!0x1),_0x561d5a=ge({'row':_0x4afea9['row']+_0x4e5086+_0x3b72ec+_0x2bad8f,'col':_0x4afea9[_0x4cb22c(0x267)]},_0x1c83be,!0x1,!0x0),_0x56040d=ge({'row':_0x4afea9[_0x4cb22c(0xd3)]+_0x4e5086+_0x3b72ec,'col':_0x4afea9['col']+_0x523cba},_0xcf2dc2,!0x1,!0x0),_0x340b8c=ge({'row':_0x4afea9[_0x4cb22c(0xd3)]+_0x4e5086+_0x3b72ec+_0x2bad8f,'col':_0x4afea9[_0x4cb22c(0x267)]+_0x523cba},_0x563090,!0x1,!0x1),_0x5c7578={'rowRanges':_0x561d5a,'colRanges':_0x56040d,'cornerRanges':_0x23e04e,'dataRanges':_0x340b8c,'pageRanges':_0x4fb02d};return{'matrix':Ni(_0xe849cd,_0x4afea9,_0x3f0cd4),'rangesCache':_0x5c7578};};var xi=Object['getOwnPropertyDescriptor'],Ei=(_0x362133,_0x23b7bc,_0xe90b13,_0x24c8b2)=>{const _0x47a961=_0x1573ee;for(var _0x30c52c=_0x24c8b2>0x1?void 0x0:_0x24c8b2?xi(_0x23b7bc,_0xe90b13):_0x23b7bc,_0x5a1c18=_0x362133[_0x47a961(0x1a9)]-0x1,_0x1abc48;_0x5a1c18>=0x0;_0x5a1c18--)(_0x1abc48=_0x362133[_0x5a1c18])&&(_0x30c52c=_0x1abc48(_0x30c52c)||_0x30c52c);return _0x30c52c;},nt=(_0x2adfe8,_0x3a2003)=>(_0x51323c,_0x24b2b8)=>_0x3a2003(_0x51323c,_0x24b2b8,_0x2adfe8);let W=class extends _0x163111{constructor(_0x499497,_0x2969b9,_0x2f02ec,_0x4cff53,_0x116e75){const _0x927374=_0x1573ee;super(),N(this,'_model',new Map()),N(this,_0x927374(0x139),new Map()),N(this,_0x927374(0x17e),new Map()),N(this,'_textInfo'),N(this,_0x927374(0x1c2),new _0x39acdb()),N(this,_0x927374(0x265),this[_0x927374(0x1c2)][_0x927374(0xeb)]()),N(this,_0x927374(0x1af),new _0x39acdb()),N(this,_0x927374(0x2b2),this['_viewData$'][_0x927374(0xeb)]()),N(this,_0x927374(0x1c7),new _0x39acdb()),N(this,_0x927374(0x115),this[_0x927374(0x1c7)][_0x927374(0xeb)]()),N(this,_0x927374(0xed),new Map()),N(this,'needSameDeleteModel',[]),N(this,'_queryingMap',new Map()),(this[_0x927374(0x168)]=_0x499497,this[_0x927374(0x2c4)]=_0x2969b9,this[_0x927374(0x1e9)]=_0x2f02ec,this[_0x927374(0x34c)]=_0x4cff53,this['_resourceManagerService']=_0x116e75,this[_0x927374(0x192)]());}[_0x1573ee(0x309)](){const _0x3e2f3a=_0x1573ee;return this[_0x3e2f3a(0x13c)]?this[_0x3e2f3a(0x13c)]:Mi;}[_0x1573ee(0xf3)](_0x4ddbb4){const _0x230c57=_0x1573ee;this[_0x230c57(0x13c)]=_0x4ddbb4;}[_0x1573ee(0x11d)](_0x1456f1){const _0xf8ffc8=_0x1573ee;var _0x4d6925;const {from:_0x4e5827,to:_0x5a34d9,unitId:_0x3c417d,fromRange:_0x19edaf,toRange:_0x36876a}=_0x1456f1;if(_0x4e5827&&_0x5a34d9){const _0x4e2fac=this[_0xf8ffc8(0xff)](_0x3c417d),_0x1edff7=this['_model']['get'](_0x3c417d),_0x37088c=(_0x4d6925=this['_univerInstanceService']['getUnit'](_0x3c417d))==null?void 0x0:_0x4d6925[_0xf8ffc8(0xfc)](_0x5a34d9[_0xf8ffc8(0x2ff)]);if(!_0x1edff7||!_0x37088c)return;const _0x139a9d=_0x37088c==null?void 0x0:_0x37088c[_0xf8ffc8(0x1a4)]();for(const [_0x47219d,_0x461b17]of _0x1edff7['entries']())for(const [_0x2dc855,_0xfdea32]of _0x461b17[_0xf8ffc8(0x17a)]()){const {sourceRangeInfo:_0x2d6a9a}=_0xfdea32;if(_0x2d6a9a[_0xf8ffc8(0x307)]===_0x3c417d&&_0x2d6a9a[_0xf8ffc8(0x2ff)]===_0x4e5827[_0xf8ffc8(0x2ff)]&&_0xcfdf09[_0xf8ffc8(0x245)](_0x19edaf,_0x2d6a9a['range'])){const _0x5f523e={'row':_0x2d6a9a[_0xf8ffc8(0x29d)][_0xf8ffc8(0x272)]-_0x19edaf[_0xf8ffc8(0x272)],'col':_0x2d6a9a[_0xf8ffc8(0x29d)][_0xf8ffc8(0x2d1)]-_0x19edaf['startColumn']},_0x1f7c3a={'unitId':_0x3c417d,'subUnitId':_0x5a34d9[_0xf8ffc8(0x2ff)],'sheetName':_0x139a9d,'range':{'startRow':_0x36876a['startRow']+_0x5f523e[_0xf8ffc8(0xd3)],'endRow':_0x36876a[_0xf8ffc8(0x272)]+_0x5f523e[_0xf8ffc8(0xd3)]+_0x2d6a9a['range']['endRow']-_0x2d6a9a['range'][_0xf8ffc8(0x272)],'startColumn':_0x36876a['startColumn']+_0x5f523e[_0xf8ffc8(0x267)],'endColumn':_0x36876a['startColumn']+_0x5f523e[_0xf8ffc8(0x267)]+_0x2d6a9a[_0xf8ffc8(0x29d)][_0xf8ffc8(0x1b0)]-_0x2d6a9a[_0xf8ffc8(0x29d)][_0xf8ffc8(0x2d1)]}};_0x4e2fac['handleMoveRange'](_0x2dc855,_0x1f7c3a);const _0x4fec61={..._0xfdea32,'sourceRangeInfo':_0x1f7c3a};this[_0xf8ffc8(0xe0)](_0x3c417d,_0x5a34d9[_0xf8ffc8(0x2ff)],_0x2dc855,_0x4fec61),this[_0xf8ffc8(0x18b)]({'unitId':_0x3c417d,'token':_0x2dc855,'type':Le[_0xf8ffc8(0x2b5)],'oldSourceRangeInfo':_0x2d6a9a,'dataRangeInfo':_0x1f7c3a,'targetCellInfo':_0xfdea32[_0xf8ffc8(0x2c7)]}),this[_0xf8ffc8(0x1ba)]({'unitId':_0x3c417d,'subUnitId':_0x5a34d9[_0xf8ffc8(0x2ff)],'oldSubUnitId':_0x47219d,'pivotTableId':_0x2dc855,'pivotTableConfig':_0x4fec61,'collectionConfig':_0x4e2fac['toJSON']()});}}}}['broadcastCollectionChange'](_0x5a145f){const _0x4b0666=_0x1573ee;this[_0x4b0666(0x1c2)][_0x4b0666(0x1e1)](_0x5a145f);}['getDataFieldManager'](_0x201663){const _0x3d9b7e=_0x1573ee;let _0x56074d=this[_0x3d9b7e(0xed)][_0x3d9b7e(0xfa)](_0x201663);return _0x56074d||(_0x56074d=new Di(this,this['_univerInstanceService']),this[_0x3d9b7e(0xed)][_0x3d9b7e(0xc9)](_0x201663,_0x56074d)),_0x56074d;}['getCollection'](_0x2c6361,_0x1a110a){const _0x1e7b0f=_0x1573ee;return this[_0x1e7b0f(0xff)](_0x2c6361)['collections'][_0x1a110a];}[_0x1573ee(0x233)](_0x236d5a,_0x5317ea,_0x44a892){const _0x5601ba=_0x1573ee;return this[_0x5601ba(0xff)](_0x236d5a)[_0x5601ba(0x233)](_0x5317ea,_0x44a892);}['_ensurePivotMap'](_0x161f02,_0x1c2c9c){const _0x442df4=_0x1573ee;let _0x3e3660=this[_0x442df4(0x2ad)]['get'](_0x161f02);_0x3e3660||(_0x3e3660=new Map(),this[_0x442df4(0x2ad)][_0x442df4(0xc9)](_0x161f02,_0x3e3660));let _0x555b61=_0x3e3660[_0x442df4(0xfa)](_0x1c2c9c);return _0x555b61||(_0x555b61=new Map(),_0x3e3660[_0x442df4(0xc9)](_0x1c2c9c,_0x555b61)),_0x555b61;}[_0x1573ee(0xe0)](_0x163e07,_0x4214b5,_0x10be3e,_0xafed8a){const _0xb8dcf3=_0x1573ee;this[_0xb8dcf3(0x1ac)](_0x163e07,_0x4214b5)[_0xb8dcf3(0xc9)](_0x10be3e,_0xafed8a);}[_0x1573ee(0x1c4)](_0x328970,_0x1268d3,_0xa86599){const _0x4298b4=_0x1573ee;var _0x46ce40,_0x5368fb,_0x4ffbc9,_0x1431c3;((_0x5368fb=(_0x46ce40=this[_0x4298b4(0x2ad)][_0x4298b4(0xfa)](_0x328970))==null?void 0x0:_0x46ce40['get'](_0x1268d3))==null?void 0x0:_0x5368fb[_0x4298b4(0xfa)](_0xa86599))&&((_0x1431c3=(_0x4ffbc9=this[_0x4298b4(0x2ad)]['get'](_0x328970))==null?void 0x0:_0x4ffbc9[_0x4298b4(0xfa)](_0x1268d3))==null||_0x1431c3['delete'](_0xa86599));}[_0x1573ee(0x304)](_0x367316,_0x482437){const _0x7bf09d=_0x1573ee;this[_0x7bf09d(0x139)][_0x7bf09d(0xc9)](_0x367316,_0x482437);}[_0x1573ee(0xfe)](_0x560d02){const _0x493c8e=_0x1573ee;this['_pivotTableInstanceCache'][_0x493c8e(0x124)](_0x560d02);}[_0x1573ee(0x19f)](_0x5ce767,_0x3cb9f3){const _0x3b7a6b=_0x1573ee;let _0x5a4f50=this[_0x3b7a6b(0x17e)][_0x3b7a6b(0xfa)](_0x5ce767);_0x5a4f50||(_0x5a4f50=new Map(),this[_0x3b7a6b(0x17e)]['set'](_0x5ce767,_0x5a4f50));let _0xb34598=_0x5a4f50[_0x3b7a6b(0xfa)](_0x3cb9f3);return _0xb34598||(_0xb34598=new Map(),_0x5a4f50[_0x3b7a6b(0xc9)](_0x3cb9f3,_0xb34598)),_0xb34598;}[_0x1573ee(0x1ba)](_0x307cd9){const _0x1f1b08=_0x1573ee,{unitId:_0x413609,subUnitId:_0xb3ef75,pivotTableId:_0x3e303,pivotTableConfig:_0x4255e2,collectionConfig:_0x536b20}=_0x307cd9,_0x46e817={'unitId':_0x413609,'subUnitId':_0xb3ef75,'oldSubUnitId':_0xb3ef75,'pivotTableId':_0x3e303,'pivotTableConfig':_0x4255e2,'collectionConfig':_0x536b20};this[_0x1f1b08(0x34c)][_0x1f1b08(0x317)](co['id'],_0x46e817,{'onlyLocal':!0x0});}[_0x1573ee(0x258)](_0x4aa383,_0x4ca1e7,_0x388596,_0x57e40f,_0x4352a3,_0x23b397,_0x2da1ff,_0x25a55c=!0x1){const _0x5927fe=_0x1573ee;var _0x1ea786;this[_0x5927fe(0x34c)][_0x5927fe(0x317)](Dt['id'],{'single':{'unitId':_0x4aa383,'subUnitId':_0x4ca1e7,'type':_0x388596,'pivotTableId':_0x57e40f,'view':_0x4352a3,'pivotConfig':_0x23b397},'collectionConfig':{[_0x4aa383]:_0x2da1ff}},{'onlyLocal':!0x0});const _0x54077b=!!((_0x1ea786=this[_0x5927fe(0xca)](_0x57e40f))!=null&&_0x1ea786[_0x5927fe(0x2e4)]()),_0x2132cd=this['getPivotTableConfig'](_0x4aa383,_0x4ca1e7,_0x57e40f);_0x2132cd&&this['updateViewData']({'view':_0x4352a3,'pivotTableId':_0x57e40f,'textInfo':this[_0x5927fe(0x309)](),'isEmpty':_0x54077b,'targetCellInfo':_0x2132cd[_0x5927fe(0x2c7)]},_0x25a55c);}['updateViewData'](_0x5c3b57,_0x3c1892){const _0x22e6d0=_0x1573ee,{targetCellInfo:_0x16a248,pivotTableId:_0x310095}=_0x5c3b57,{unitId:_0x3f0ab1,subUnitId:_0x3baca0}=_0x16a248,_0xdc3ebb=this[_0x22e6d0(0x19f)](_0x3f0ab1,_0x3baca0),_0x28db74=_0xdc3ebb[_0x22e6d0(0xfa)](_0x310095);let _0x29955d,_0x370ba4;_0x28db74&&(_0x29955d=_0x28db74[_0x22e6d0(0x2c6)],_0x370ba4=_0x28db74[_0x22e6d0(0x34f)]);const {rangesCache:_0x406f5b,matrix:_0x2f8a6a}=Vi(_0x5c3b57);_0xdc3ebb[_0x22e6d0(0xc9)](_0x310095,{'rangeCache':_0x406f5b,'matrix':_0x2f8a6a,'oldMatrix':_0x370ba4,'oldRangeCache':_0x29955d}),_0x3c1892||this[_0x22e6d0(0x1af)][_0x22e6d0(0x1e1)]({'unitId':_0x3f0ab1,'subUnitId':_0x3baca0,'pivotTableId':_0x310095});}[_0x1573ee(0x355)](_0x2cae7a,_0x1032d5,_0x1c1c67,_0xfee801,_0x261aa9){const _0x44040e=_0x1573ee;this[_0x44040e(0xe0)](_0x2cae7a,_0x1032d5,_0x1c1c67,_0x261aa9),this['_updatePivotTableInstanceCache'](_0x1c1c67,_0xfee801);}[_0x1573ee(0x10f)](_0x2c4ff8,_0x290e44,_0xb72b78){const _0xd1986f=_0x1573ee,_0x306eef=this[_0xd1986f(0xff)](_0x2c4ff8);_0x306eef[_0xd1986f(0xfd)](_0xb72b78)[_0xd1986f(0x25d)](_0x251c7a=>{const _0x3ad88e=_0xd1986f;_0x306eef[_0x3ad88e(0x33c)](_0x251c7a);}),this[_0xd1986f(0x32a)](_0x2c4ff8,_0xb72b78),this[_0xd1986f(0x1c4)](_0x2c4ff8,_0x290e44,_0xb72b78),this['_deletePivotTableInstanceCache'](_0xb72b78);}[_0x1573ee(0x354)](_0x4fe160,_0x21c9f9,_0x3dc99a,_0x3d48d7){const _0x5e03f0=_0x1573ee;this[_0x5e03f0(0xe0)](_0x4fe160,_0x21c9f9,_0x3dc99a,_0x3d48d7);}[_0x1573ee(0x200)](_0x4ccfcc,_0x45ac53,_0x3c5826){const _0x3afa88=_0x1573ee;var _0x190f4f,_0x55ffd6;const _0x4de86d=(_0x55ffd6=(_0x190f4f=this['_model'][_0x3afa88(0xfa)](_0x4ccfcc))==null?void 0x0:_0x190f4f[_0x3afa88(0xfa)](_0x45ac53))==null?void 0x0:_0x55ffd6[_0x3afa88(0xfa)](_0x3c5826);if(_0x4de86d)return _0x4de86d;}[_0x1573ee(0x183)](_0x1dc8f4,_0x323e5a,_0x174f94){const _0x3c34f8=_0x1573ee;var _0x192851,_0x43ab69;const _0x313d23=(_0x43ab69=(_0x192851=this[_0x3c34f8(0x2ad)][_0x3c34f8(0xfa)](_0x1dc8f4))==null?void 0x0:_0x192851['get'](_0x323e5a))==null?void 0x0:_0x43ab69['get'](_0x174f94);if(_0x313d23)return _0x313d23[_0x3c34f8(0x29c)];}['getPivotTableInstance'](_0x567274){const _0x4aff83=_0x1573ee;return this[_0x4aff83(0x139)]['get'](_0x567274);}[_0x1573ee(0x2b0)](_0x3b2203){const _0x3f64b1=_0x1573ee;this['_model'][_0x3f64b1(0x124)](_0x3b2203);const _0x7bf03=this[_0x3f64b1(0xed)][_0x3f64b1(0xfa)](_0x3b2203);_0x7bf03&&(_0x7bf03[_0x3f64b1(0x28a)](),this['_dataFieldManagerCollection']['delete'](_0x3b2203)),this[_0x3f64b1(0x17e)][_0x3f64b1(0x124)](_0x3b2203),this['needSameDeleteModel']['forEach'](_0x1d6e1e=>{_0x1d6e1e['deleteUnitId'](_0x3b2203);});}['addCollectionByJSON'](_0x37b7aa,_0x575d88,_0x571d54,_0x99b29d){const _0x354530=_0x1573ee;return this[_0x354530(0xff)](_0x571d54[_0x354530(0x307)])[_0x354530(0x32d)](_0x37b7aa,_0x575d88,_0x571d54,_0x99b29d);}['createCollectionWithDataRange'](_0x4ab2e3){const _0x391bfd=_0x1573ee;return this[_0x391bfd(0xff)](_0x4ab2e3[_0x391bfd(0x307)])[_0x391bfd(0x294)](_0x4ab2e3);}['refreshData'](_0x396136,_0x3c9030,_0x158572){const _0x437013=_0x1573ee;this[_0x437013(0xff)](_0x158572['unitId'])[_0x437013(0x315)](_0x396136,_0x3c9030,_0x158572);}[_0x1573ee(0x21c)](_0x4ebd4d,_0x4b0e00){const _0x196f2b=_0x1573ee;this['getDataFieldManager'](_0x4ebd4d)[_0x196f2b(0x33c)](_0x4b0e00);}[_0x1573ee(0x32a)](_0x25a282,_0x33a344){const _0xf5f663=_0x1573ee;this[_0xf5f663(0xff)](_0x25a282)[_0xf5f663(0x163)](_0x33a344);}[_0x1573ee(0x1c5)](_0x397d2e,_0x4ca2c7){const _0x2d5880=_0x1573ee;var _0x5d92bf;return(_0x5d92bf=this['_model'][_0x2d5880(0xfa)](_0x397d2e))==null?void 0x0:_0x5d92bf[_0x2d5880(0xfa)](_0x4ca2c7);}[_0x1573ee(0x296)](_0x592efc){const _0x2eca0e=_0x1573ee;for(const [_0x3a1174,_0x394398]of this[_0x2eca0e(0x2ad)][_0x2eca0e(0x17a)]())for(const [_0x628fb,_0x107eb6]of _0x394398['entries']())if(_0x107eb6[_0x2eca0e(0x281)](_0x592efc))return{'unitId':_0x3a1174,'subUnitId':_0x628fb};return null;}[_0x1573ee(0x2dd)](_0x4fbf35,_0xf82934,_0x4a9a8b,_0x33d8fe){const _0x13145f=_0x1573ee,_0x3900a2=this[_0x13145f(0x19f)](_0x4fbf35,_0xf82934);_0x33d8fe?_0x3900a2[_0x13145f(0xc9)](_0x4a9a8b,_0x33d8fe):_0x3900a2[_0x13145f(0x124)](_0x4a9a8b),this['_viewData$'][_0x13145f(0x1e1)]({'unitId':_0x4fbf35,'subUnitId':_0xf82934,'pivotTableId':_0x4a9a8b});}[_0x1573ee(0x28a)](){const _0x4d0b57=_0x1573ee;super[_0x4d0b57(0x28a)]();}[_0x1573ee(0xfb)](_0x26c127,_0x145580,_0x1da0b1){const _0x508025=_0x1573ee;var _0x1c49f5,_0x1b4842;const _0x3ce13f=(_0x1b4842=(_0x1c49f5=this[_0x508025(0x17e)][_0x508025(0xfa)](_0x26c127))==null?void 0x0:_0x1c49f5[_0x508025(0xfa)](_0x145580))==null?void 0x0:_0x1b4842[_0x508025(0xfa)](_0x1da0b1);return _0x3ce13f||null;}[_0x1573ee(0x22b)](_0x28623a){const _0x426e7a=_0x1573ee;this[_0x426e7a(0x34a)](_0x28623a);}[_0x1573ee(0x34a)](_0x394b6f){const _0x450459=_0x1573ee,{token:_0x4d54e6,unitId:_0x2950a2,subUnitId:_0xcc320e}=_0x394b6f,_0x2e57cb=_0x2950a2+'-'+_0xcc320e+'-'+_0x4d54e6;this[_0x450459(0x2d4)][_0x450459(0xfa)](_0x2e57cb)&&clearTimeout(this[_0x450459(0x2d4)][_0x450459(0xfa)](_0x2e57cb));const _0x27fc69=setTimeout(()=>{const _0x333e2f=_0x450459;this[_0x333e2f(0x145)](_0x394b6f),this['_queryingMap'][_0x333e2f(0x124)](_0x2e57cb);},Pi);this[_0x450459(0x2d4)]['set'](_0x2e57cb,_0x27fc69);}[_0x1573ee(0x145)](_0x1b6ae7){const _0x24c440=_0x1573ee,{unitId:_0x82f1f2,subUnitId:_0x3a997e,token:_0x38cc01,type:_0x5cd44f,pivotConfig:_0x48a131}=_0x1b6ae7,_0x42c967=this[_0x24c440(0xca)](_0x38cc01),_0x287a49=_0x42c967==null?void 0x0:_0x42c967['query'](),_0x193389=_0x48a131!=null?_0x48a131:this['getPivotTableConfig'](_0x82f1f2,_0x3a997e,_0x38cc01);_0x193389&&(_0x193389[_0x24c440(0x2e4)]=!!(_0x42c967!=null&&_0x42c967[_0x24c440(0x2e4)]())),(_0x287a49||_0x5cd44f===$[_0x24c440(0x21b)])&&this[_0x24c440(0x258)](_0x82f1f2,_0x3a997e,_0x5cd44f,_0x38cc01,_0x287a49,_0x193389,this['getDataFieldManager'](_0x82f1f2)[_0x24c440(0x219)]());}[_0x1573ee(0x219)](_0x1f1fc7){const _0x2638e8=_0x1573ee,_0x54cda9={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2638e8(0xff)](_0x1f1fc7)&&(_0x54cda9[_0x2638e8(0xe4)][_0x1f1fc7]=this[_0x2638e8(0xff)](_0x1f1fc7)['toJSON']()),this[_0x2638e8(0x2ad)]['get'](_0x1f1fc7)){_0x54cda9[_0x2638e8(0x25c)][_0x1f1fc7]={};const _0x3f0066=this['_model'][_0x2638e8(0xfa)](_0x1f1fc7);_0x3f0066!=null&&_0x3f0066[_0x2638e8(0x2e2)]&&[..._0x3f0066[_0x2638e8(0x20d)]()]['forEach'](_0x4aba5e=>{const _0x32ae07=_0x2638e8,_0x1b5274=_0x3f0066['get'](_0x4aba5e);_0x1b5274!=null&&_0x1b5274[_0x32ae07(0x2e2)]&&(_0x54cda9[_0x32ae07(0x25c)][_0x1f1fc7][_0x4aba5e]={},[..._0x1b5274[_0x32ae07(0x20d)]()][_0x32ae07(0x25d)](_0x240b93=>{const _0xf9ed91=_0x32ae07,_0x48fc36=_0x1b5274[_0xf9ed91(0xfa)](_0x240b93);_0x48fc36&&(_0x54cda9[_0xf9ed91(0x25c)][_0x1f1fc7][_0x4aba5e][_0x240b93]=_0x48fc36);}));});}return _0x54cda9;}[_0x1573ee(0x1ea)](_0x3ccdf9){const _0x56e756=_0x1573ee;var _0x5590e2;const {dataFieldManagerConfig:_0x2e645a,pivotTableConfigs:_0x13f393}=_0x3ccdf9;_0x2e645a&&Object['keys'](_0x2e645a)['forEach'](_0x3cc5b7=>{const _0x583ce2=_0x5078;this[_0x583ce2(0xff)](_0x3cc5b7)[_0x583ce2(0x1ea)](_0x2e645a[_0x3cc5b7]);});const _0x20a350=[];if(_0x13f393){const _0x5b7442=(_0x5590e2=this[_0x56e756(0x168)][_0x56e756(0xfa)](_0xca9673)[_0x56e756(0x225)](_0x1fbd6d))!=null?_0x5590e2:{},{ls:_0x18aaa6,pbk:_0x51deaa}=_0x5b7442,_0x38fe46=go(so,_0x18aaa6,_0x51deaa)[_0x56e756(0x2a8)];Object['keys'](_0x13f393)['forEach'](_0x17181a=>{const _0x2684e0=_0x56e756;let _0x86767=0x0;const _0x272db3=_0x13f393[_0x17181a];Object[_0x2684e0(0x20d)](_0x272db3)[_0x2684e0(0x25d)](_0xb19f45=>{const _0x1e864e=_0x2684e0,_0x5d8c97=_0x272db3[_0xb19f45];Object[_0x1e864e(0x20d)](_0x5d8c97)[_0x1e864e(0x25d)](_0x426b62=>{const _0x296584=_0x1e864e,_0x23b501=_0x5d8c97[_0x426b62];if(_0x23b501){if(_0x86767>=_0x38fe46)return;_0x86767++;const _0x119393=this[_0x296584(0xff)](_0x17181a),_0x597ef4=_0x119393[_0x296584(0x217)][_0x426b62],_0x5e4e32=_0x597ef4[_0x296584(0x30b)]();let _0x42a820=0x0;const _0x3b35ee=[];for(const _0x92697e of _0x5e4e32){const _0x48ed82=_0x597ef4[_0x296584(0x2d3)](_0x92697e);if(_0xb09525(_0x48ed82)){const _0x3fc4fe=_0x48ed82[_0x296584(0x153)](),_0x13e071=_0x597ef4[_0x296584(0x2d3)](_0x3fc4fe);_0x13e071&&_0x3b35ee[_0x296584(0x1c1)]([_0x48ed82,_0x13e071]);continue;}_0x119393[_0x296584(0x1b1)](_0x92697e,_0x23b501[_0x296584(0x216)],_0x42a820),_0x42a820++;}_0x3b35ee[_0x296584(0x25d)](([_0x54b728,_0x29af85])=>{const _0x9a85e8=_0x296584;_0x54b728[_0x9a85e8(0x159)](_0x29af85);});const _0x58524c=new _0x4678d2(_0x597ef4);_0x58524c[_0x296584(0x1ea)](_0x23b501[_0x296584(0x29c)]),this[_0x296584(0x355)](_0x17181a,_0xb19f45,_0x426b62,_0x58524c,_0x23b501);const _0x402e91=_0x58524c['query']();_0x20a350[_0x296584(0x1c1)]({'unitId':_0x17181a,'subUnitId':_0xb19f45,'pivotTableId':_0x426b62,'view':_0x402e91['toJSON'](),'pivotConfig':_0x23b501,'type':$[_0x296584(0x129)]});const _0x19011a=!!_0x58524c['isEmpty'](),_0x43bdb5={'view':_0x402e91,'pivotTableId':_0x426b62,'textInfo':this[_0x296584(0x309)](),'isEmpty':_0x19011a,'targetCellInfo':_0x23b501['targetCellInfo']};this['updateViewData'](_0x43bdb5,!0x1);}});});});}_0x2e645a&&Object['keys'](_0x2e645a)[_0x56e756(0x25d)](_0x9192e0=>{const _0x8771d7=_0x56e756,_0x264888=this[_0x8771d7(0xff)](_0x9192e0);this[_0x8771d7(0x1c7)][_0x8771d7(0x1e1)](_0x264888[_0x8771d7(0x217)]);}),this['_commandService'][_0x56e756(0x317)](Dt['id'],{'batch':_0x20a350,'collectionConfig':_0x2e645a},{'onlyLocal':!0x0});}[_0x1573ee(0x192)](){const _0x443ed0=_0x1573ee;this[_0x443ed0(0x142)](this['_resourceManagerService'][_0x443ed0(0x17b)]({'toJson':_0x333f77=>JSON[_0x443ed0(0x2c0)](this['toJSON'](_0x333f77)),'parseJson':_0xe49cc8=>{const _0x4301b0=_0x443ed0;if(!_0xe49cc8)return{};try{return JSON[_0x4301b0(0x20b)](_0xe49cc8);}catch{return{};}},'businesses':[_0x14f031[_0x443ed0(0xee)]],'pluginName':ao,'onLoad':(_0x2d2f7c,_0x1b77be)=>{const _0x55f177=_0x443ed0;this[_0x55f177(0x1ea)](_0x1b77be);},'onUnLoad':_0xcd8a56=>{this['deleteUnitId'](_0xcd8a56);}}));}};W=Ei([nt(0x0,_0x24210e(_0x220342)),nt(0x1,_0x144d54),nt(0x2,_0x24210e(_0x3b0c8c)),nt(0x3,_0x338140),nt(0x4,_0x24210e(_0x4e28bc))],W);function _0x446e(){const _0x47b56f=['StdDev\x20of\x20','getAutoFitColumnsMutations','_sheetsPivotTableConfigModel','Date','sheet.command.update-date-group','sheets-pivot.emptyPivot.column','sheet.command.update-pivot-table-source-range','updatePivotSource','interceptCommand','has','Max\x20of\x20','forRow','STRING','split','Div0','valid','getRangeKeyList','_onRefRangeChange','dispose','token','Month','other','_updateRenderEmptyCache','_sheetsPivotRpcService','isArray','UpdateValuePosition','setDataRecordCount','generateNewSheetName','createCollectionWithDataRange','_pivotRenderValueMatrixCache','getTargetByPivotId','pushUndoRedo','rowRanges','getDataFieldByTableId','Set','_sheetInterceptorService','fieldsConfig','range','_initUnitDisposed','removeSourceRangeChange','dataFieldId','SetPivotSetting','12iFUpdi\x20aRFfQ4Updi(xpFRi7R,\x20428xpFHRQ)\x20{\x20\x20\x20\x20UfQ\x20{\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20xpFRi7Rri1dk5fUSff5Q\x20=\x20xpFRi7R.74xpU(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20dfphpiIR775hR\x20=\x203NJT.45f7R(5Ud8(xpFRi7Rri1dk5fUSff5Q[Y]));\x20\x20\x20\x20\x20\x20\x20\x20p1\x20(!dfphpiIR775hR.2a)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dfphpiIR775hR.2a\x20=\x20T2B8Rf(xpFRi7Rri1dk5fUSff5Q[M]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20p7KdflRf\x20=\x20UQ4Rd1\x20KdflRf0xd85xNFd4R\x20!==\x20\x272iaR1piRa\x27\x20&&\x207Rx1\x20pi7U5iFRd1\x20KdflRf0xd85xNFd4R;\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20p7qfdj7Rf\x20=\x20UQ4Rd1\x20jpiadj\x20!==\x20\x272iaR1piRa\x27\x20&&\x20UQ4Rd1\x20jpiadj.xdF5Updi\x20!==\x20\x272iaR1piRa\x27;\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20FdiURVU\x20=\x20p7KdflRf\x20?\x207Rx1\x20:\x20(p7qfdj7Rf\x20?\x20jpiadj\x20:\x20hxd85x9Dp7);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20BR775hRKdfa\x20=\x20FdiURVU.__q57RsM__.45f7R(xpFRi7Rri1dk5fUSff5Q[Y]);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20BR775hR\x20=\x20FdiURVU.__ARV__.7Ufpihp1Q(BR775hRKdfa);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x207phi5U2fRKdfa\x20=\x20FdiURVU.__q57RsM__.45f7R(xpFRi7Rri1dk5fUSff5Q[L]);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x207phi5U2fR\x20=\x20FdiURVU.__ARV__.7Ufpihp1Q(7phi5U2fRKdfa);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x207phiW5xpa\x20=\x20FdiURVU.__yRfp1Q__(7phi5U2fR,\x20BR775hR,\x20428xpFHRQ);\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20adB5pi\x20=\x20dfphpiIR775hR.aB;\x20\x20\x20\x20\x20\x20\x20\x2012iFUpdi\x20p7GdB5piI5UFDpih(dk5UURfi,\x20dAd7U)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x2045UURfi\x20=\x20dk5UURfi.fR4x5FR(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20Dd7U\x20=\x20dAd7U.fR4x5FR(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x2045UURfik5fU7\x20=\x2045UURfi.74xpU(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20Dd7Uk5fU7\x20=\x20Dd7U.74xpU(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p1\x20(!45UURfi.piFx2aR7(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fRU2fi\x2045UURfi\x20===\x20Dd7U;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p1\x20(45UURfik5fU7.xRihUD\x20<\x20Y\x20||\x2045UURfik5fU7[o]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fRU2fi\x2015x7R;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x2045UURfiN211pV\x20=\x2045UURfik5fU7.7xpFR(v).ndpi(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20Dd7UN211pV\x20=\x20Dd7Uk5fU7.7xpFR(-45UURfik5fU7.xRihUD\x20+\x20v).ndpi(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fRU2fi\x2045UURfiN211pV\x20===\x20Dd7UN211pV;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20xRU\x20adB5piW5xpa\x20=\x2015x7R;\x20\x20\x20\x20\x20\x20\x20\x20p1\x20(p7qfdj7Rf)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20adB5piW5xpa\x20=\x20(adB5pi\x20&&\x20adB5pi.xRihUD)\x20?\x20adB5pi.7dBR((aBrURB)\x20=>\x20p7GdB5piI5UFDpih(aBrURB,\x20xdF5Updi.Dd7Ui5BR))\x20:\x20Uf2R;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20p1\x20(xdF5Updi.Dd7Ui5BR\x20===\x20\x27xdF5xDd7U\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20adB5piW5xpa\x20=\x20Uf2R;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20}\x20Rx7R\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20adB5piW5xpa\x20=\x20Uf2R;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20Fdi7U\x20y5xpa\x20=\x207phiW5xpa\x20&&\x20adB5piW5xpa;\x20\x20\x20\x20\x20\x20\x20\x20fRU2fi\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20y5xpa,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20BR775hR:\x20dfphpiIR775hR,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20F5UFD\x20(Rffdf)\x20{\x20\x20\x20\x20\x20\x20\x20\x20fRU2fi\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20y5xpa:\x2015x7R,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20BR775hR:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','some','headerMap','type','adjustSheetCellData','_initLocale','count','getSubtotal','sheets-pivot.dateGroup.hour','number','sheets-pivot.subTotal','_model','getCellMatrix','sheets-pivot.dateGroup.year','deleteUnitId','getPivotTableCellData','viewData$','grandTotal','_getPivotAppliedRanges','update','getValueIndex','setPivotInitCompleted','updateConfigCache','sheets-pivot.other','asyncInterceptor','_viewUpdate$','sheets-pivot.cellDateGroupDisplay.minute','width','Quarter','rowFields','stringify','hasField','sheet.mutation.set-pivot-collapse','_refRangeService','_univerInstanceService','COMMAND','rangeCache','targetCellInfo','StdDevp\x20of\x20','sheets-pivot.varName','REF','_toJSON','initDataRanges','_initViewModelBySheetInterceptor','_initPivotDataGetListener','maxDate','call','startColumn','updateValuePosition','getFieldById','_queryingMap','setRangeKeyMap','intersects','_createExclusiveRange','message','Existing','object','getSubUnitPivotRenderCache','_collectionConfigModel','sideEffectUpdateWorkerCache','registerDirtyService','sheets-pivot.cellDateGroupDisplay.yearMonth','displayName','sheet.mutation.send-init-pivot-text-local','size','_globalSubject','isEmpty','updateAllDisplayName','tableFieldId','sheets.tabs.sheet','sheets-pivot.dateGroup.yearMonthDate','Average\x20of\x20','defineProperty','fields','sheet.mutation.remove-group-collection','ptn','getRangeKey','Grand\x20Total','generateMutationsByRanges','colStyle','_pivotTableRangeInfo','updateRenderCache','getMatrixValue','Sum\x20of\x20','sheet.command.remove-pivot-field','updateViewInfo','getValueFilterInfos','movePivotField','sheet.command.reset-pivot-fields-config','value','foreach','panel','setDateType','subUnitId','DrillDown','average','sheet.mutation.pivot-update-field-position','toString','_updatePivotTableInstanceCache','forValue','colRanges','unitId','originTargetInfo','getTextInfo','realDeleteValue','getFieldIds','filterInfo','removePivotField','_getAutoName','reset','sheet.command.set-pivot-collapse','HourMinute','sheet.mutation.set-pivot-option','_requestResolvers','prototype','refreshData','YearMonth','executeCommand','ResetPivotTable','deepClone','getTypeOfUnitDisposed$','rowCount','colInfo','SetValuePivotFilter','sheet.mutation.rename-pivot-field','iterateFieldByArea','max','sourceName','sheets-pivot.dateGroup.date','remove','getDataFieldBySourceName','workbook\x20is\x20not\x20found','fieldIds','column','query','markDirty$','removeCollections','Panel','getGroupFieldsInfoByIds','addCollectionByJSON','58172NUzDkN','setValuePivotFilter','handleSourceRangeChange','YearMonthDate','setRange','setPivotCollapse','includes','pbt','45nsrRRa','getCurrentSelections','setFieldFormat','product','getFilterFieldIdByIndex','Year','deleteDataField','getPivotTableMatrixInfo','getDataFieldId','sheet.mutation.set-pivot-sort-info','_sheetsPivotDataSourceModel','getColCount','setValue','configVersion$','existing','measure','_host','MIN_SAFE_INTEGER','_ensurePivotTableRangeInfo','_configVersion$','updateDirtyPivotTable','SetPivotSort','_commandService','addCollection','getCellRaw','matrix','clearExclusiveRangesByGroupId','dataFields','removeField','valueFields','setPivotTable','addPivotTable','getRowCount','replace','set','getPivotTableInstance','version','sheet.command.add-pivot-table','5238408QsdWti','cornerStyle','_dataSyncPrimaryController','_resourceManagerService','oldRangeInfo','getSheetId','row','#eceeff','_subjectCollectionChange','Column','#FFFFFF','_initGlobalComputed','subscribe','Varp\x20of\x20','Product\x20of\x20','getStyles','updateFieldSourceInfo','options','sheets-pivot.cellDateGroupDisplay.month','_updateModelCache','name','sheet.mutation.set-pivot-position','error','dataFieldManagerConfig','data','updatePivotTableMatrixInfo','#e6ebfb','deleteField','_globalComputedStartHelpFunc','getIntersects','asObservable','GrandTotal','_dataFieldManagerCollection','UNIVER_SHEET','prefix','getCurrentUnitForType','getDataFieldByDataFieldId','getRefRangeMutationsByMoveRange','setTextInfo','filterId','setSortInfo','pageRanges','1280586eeZMpy','PIVOT_MUTATION_GENERATE','iterateFieldDim','get','getViewData','getSheetBySheetId','getNoUsedDataFieldIds','_deletePivotTableInstanceCache','getDataFieldManager','setPivotFilter','_pivotRenderInfoCache','NUMBER','varp','uniqueDataFieldName','stdDevp','leafStyle','_initCommandInterceptListener','removeValueFilterInfo','sortInfo','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','updateFieldPosition','Filter','startCollectChangeset','charCodeAt','removePivotTable','shouldClear','sheets-pivot.emptyPivot.values','Values','reduce','NotNumber','fieldsCollectionChange$','Row','result','_configService','sheet.mutation.send-pivot-view-local','sheet.command.set-pivot-sort','fieldId','sheets-pivot.cellDateGroupDisplay.quarter','handleMoveRange','getFieldFormat','areaInfo','isDate','renameField','random','registerRefRange','delete','rowInfo','getPivotDirtyViewInfo','getInterceptPoints','collapseInfo','Add','getSubUnitPivotMatrix','isValue','Collapse','dimension','SHEET_PIVOT_EXCLUSIVE_ID','getTableFieldById','endRow','updateCollectionConfig','AddPivotTableWithConfig','subtotal','sheets-pivot.dateGroup.yearMonth','info','getIntersectsPivotTable','sheet.mutation.add-pivot-field','sheet.mutation.send-pivot-config-local','_pivotTableInstanceCache','slice','getFieldCountByArea','_textInfo','addPivotField','_globalComputedEndHelpFunc','_initDataSendListener','FORCE_STRING','disposableCollection','disposeWithMe','_initClearSelectionCommandInterceptor','_init','queryDirtyPivotTable','getPivotItemRenderInfoCache','format','columnFields','endCollectChangeset','3074140UFNzcd','pageStyle','sheet.command.add-pivot-field','paths','getDataFieldByRangeKey','setRangeValueUndoMutation','addField','symbol','onStarting','getOriginFieldId','sheet.mutation.update-pivot-table-source-range','cornerInfo','Count\x20of\x20','sheets-pivot.value','string','refreshGroupField','SetPivotTableConfig','addDataFieldWithoutUnitInfo','getSheets','getSourceName','_sheetsPivotTableAdaptorModel','leftOffset','AddField','1998337WDaklx','YearQuarter','removeCollectionImp','getIndexesByPathStr','sheets-pivot.dateGroup.month','getMatrix','3742288Wmlypc','_injector','undos','SetFieldFormat','BLANK_PLACEHOLDER','_markDirty$','#1d32e9','sheets-pivot.cellDateGroupDisplay.yearQuarter','bind','_globalComputingSrv','getDate','sheet.mutation.set-pivot-format','getSortInfo','MAX_SAFE_INTEGER','setValueFilterInfo','_generateUniqueVersion','setLabelFilterInfo','params','body','entries','registerPluginResource','_pivotInitCompleted$','pivotInitCompleted$','_viewData','Minute','sum','sheet.command.set-pivot-fields-config','AddPivotField','getPivotTableModelConfig','setPivotTableConfig','sheets-pivot.minName','getFilterInfo','limit\x20pivot','subTotalStyle','sheet.mutation.get-pivot-data-local','cellValue','broadcastCollectionChange','getSheetBySheetName','register','var','lastCol','hasOwnProperty','getPivotTableRangeInfo','_initSnapshot','getActiveSheet','getLastCol','filter','_subjectFieldsCollectionChange','values','_sheetsSelectionsService','_initRegisterCommand','Hour','valuePosition','getColumnWidth','getFieldDataType','getValue','_ensureViewDataMap','setConfig','setRangeValueRedoMutation','drillDown','sheets-pivot.dateGroup.minute','getName','NotFunction','cornerRanges','markDirty','getDataFieldItemInfo','length','_pivotTableMatrixInfo','_sheetsPivotTableService','_ensurePivotMap','setSourceName','originalFieldId','_viewData$','endColumn','refreshDataField','setSubtotalType','fontRenderExtension','getDisplayName','setOptions','isColMultiMeasure','createDataFieldId','fetchThroughInterceptors','getAutoDisplayNameFunction','updateConfig','sheet.command.add-pivot-table-with-config','removeValueFilterInfoByValueFieldId','setName','sheetName','Total','pivotTableId','push','_collectionChange$','_pivotConfigChange$','_deleteModelCache','getSubUnitPivotConfigs','pluginName','_fieldsCollectionChange$','sheets-pivot.blank','collectionConfig','viewUpdate$','_activeDirtyManagerService','sheets-pivot.columnName','SetSortInfo','_initRemoveSheetCommandInterceptor','getPivotTableIdByCell','MUTATION','(Blank)','addFieldWithSourceId','dateType','getPivotDisplayConfig','dataFieldsCollection','redos','versions','document','getUnitId','sheets-pivot.dateGroup.monthDate','level','Min\x20of\x20','rgb(255,255,255)','RemoveField','NotName','RenameField','next','sheets-pivot.varpName','SetFilterInfo','floor','sheets-pivot.averageName','sheets-pivot.emptyPivot.filter','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','getFieldPositionInfoById','_lifecycleService','fromJSON','resetPivotTable','getHeaderMapItem','onQueryStart','blank','rangeKey','map','sheets-pivot.cellDateGroupDisplay.hour','getOwnPropertyDescriptor','ManualFilter','_subjectViewChange','splice','Expand','handleAsyncResponse','\x20-\x20','setPivotSetting','SetPivotFilter','CELL_CONTENT','getLastRow','_featureCalculationManagerService','NO_COMMERCIAL','AddPivotTable','getPivotTableConfig','updateDataFieldsCollection','#b2b2b2','815025kJNeuK','_exclusiveRangeService','notExecuteFormula','2RQFUhp','registerCallbackWithEvent','updateRangeKeyMap','colHeaderMap','setCollapse','parse','single','keys','valueFilter','sheet.mutation.pivot-update-value-position','onCommandExecuted','isBottomTotal','registerSyncingMutations','pivotTableIndexConfig','find','_initConfig','sourceRangeInfo','collections','NORMAL','toJSON','batch','Delete','removeDataField','countNums','_refRangeHandle','isText','UpdatePivotSource','sheets-pivot.cellDateGroupDisplay.date','rangeType','getId','sheet.mutation.update-date-group','getConfig','Var\x20of\x20','colCount','sheets-pivot.config','date','SetOptions','addDirtyPivotTable','PivotMultipleValueId','getCollection','RemovePivotField','dataRangeInfo','add','Subtotal','New','getUpdateRangeDeleteIds','getFullYear','parseInt','getUnit','concat','SHEET_PIVOT_IN_MAIN_THREAD','interceptor','sheets-pivot.stdDevpName','sheets-pivot.stdDevName','SetCollapse','sheet.mutation.send-pivot-data-local','valueIndex','9kLRsGf','getColumnCount','resetArea','intercept','sheets-pivot.countName','rowHeaderMap','contains','triggerDirtyFeature','lastRow','updatePivotTableRangeInfo','addPivotTableWithConfig','rangeKeyMap','getTextSize','rangesInfo','Value','_config','_ensurePivotTableMatrixInfo','UpdateFieldPosition','SetValueFilter','sheet.mutation.set-pivot-field-subtotal-type','sheets-pivot.dateGroup.yearQuarter','unshift','clearRenderCache','getRangeStartEndInfo','sheets-pivot.cellDateGroupDisplay.year','updateView','sheets-pivot.productName','pivotPerformCheck','from','pivotTableConfigs','forEach','getValuePosition','7ztkXYa','min','return\x20','custom','_localeService','sheet.mutation.add-pivot-table','collectionChange$','_ensurePivotItemRenderValueMatrixCache','col','setPivotSort','stdDev','pivotConfigChange$','getFormatInfo','formJSON','SetPivotCollapse','sheet.command.pivot-drill-down','iterateField','getMonth','addRecord','startRow','getDirtyInfo','pushComputingStatusSubject','MovePivotField','fetchThroughAsyncInterceptors','_initPivotTextInfo'];_0x446e=function(){return _0x47b56f;};return _0x446e();}const Oi={0x0:{0x0:{'v':_0x1573ee(0x195),'s':oe}},0x2:{0x1:{'v':'','s':oe},0x2:{'v':'','s':oe},0x3:{'v':_0x1573ee(0x327),'s':oe},0x4:{'v':'','s':oe},0x5:{'v':'','s':oe}},0x3:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x4:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x5:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x6:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x7:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x8:{0x0:{'v':_0x1573ee(0xd3),'s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':_0x1573ee(0x197),'s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x9:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xa:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xb:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xc:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xd:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}}},Lt={'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':[]},Ko=(_0x220d5e,_0x325cbd)=>{const _0x172d4b=_0x1573ee,_0x595c29=new _0x3ea36a(),_0x9a5bee=new _0x3ea36a(Oi),{row:_0x200a10,col:_0x523a5e}=_0x325cbd;_0x9a5bee[_0x172d4b(0x305)]((_0x289d1c,_0x35bbf3,_0x1ef853)=>{const _0xd80ac4=_0x172d4b;let _0x465ddf='';_0x1ef853['v']===_0xd80ac4(0x195)?_0x465ddf=_0x220d5e[_0xd80ac4(0x195)]:_0x1ef853['v']===_0xd80ac4(0xd3)?_0x465ddf=_0x220d5e[_0xd80ac4(0xd3)]:_0x1ef853['v']===_0xd80ac4(0x327)?_0x465ddf=_0x220d5e['column']:_0x1ef853['v']==='values'&&(_0x465ddf=_0x220d5e[_0xd80ac4(0x197)]),_0x595c29[_0xd80ac4(0x342)](_0x289d1c+_0x200a10,_0x35bbf3+_0x523a5e,{..._0x1ef853,'v':_0x465ddf});});const _0x414a28=_0x57921b['deepClone'](Lt);return Object[_0x172d4b(0x20d)](Lt)[_0x172d4b(0x25d)](_0x2fd847=>{const _0x129ecf=_0x172d4b;_0x414a28[_0x2fd847]=Lt[_0x2fd847][_0x129ecf(0x1f0)](_0x6b0eb1=>({..._0x6b0eb1,'startRow':_0x6b0eb1[_0x129ecf(0x272)]+_0x200a10,'endRow':_0x6b0eb1[_0x129ecf(0x130)]+_0x200a10,'startColumn':_0x6b0eb1[_0x129ecf(0x2d1)]+_0x523a5e,'endColumn':_0x6b0eb1[_0x129ecf(0x1b0)]+_0x523a5e}));}),{'matrixCache':_0x595c29,'rangesCache':_0x414a28};};function Ai(_0x31ba53,_0x16342f){const _0x197d64=_0x1573ee;let _0x193262='';const _0x20c2dc=this['getTextInfo']();switch(_0x16342f){case _0xaa3851[_0x197d64(0x301)]:_0x193262=_0x20c2dc[_0x197d64(0x1e5)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x2a8)]:_0x193262=_0x20c2dc[_0x197d64(0x243)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x21d)]:_0x193262=_0x20c2dc['sheets-pivot.countNumsName']+_0x31ba53;break;case _0xaa3851[_0x197d64(0x320)]:_0x193262=_0x20c2dc['sheets-pivot.maxName']+_0x31ba53;break;case _0xaa3851['min']:_0x193262=_0x20c2dc[_0x197d64(0x185)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x339)]:_0x193262=_0x20c2dc[_0x197d64(0x259)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x269)]:_0x193262=_0x20c2dc[_0x197d64(0x23b)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x105)]:_0x193262=_0x20c2dc[_0x197d64(0x23a)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x180)]:_0x193262=_0x20c2dc['sheets-pivot.sumName']+_0x31ba53;break;case _0xaa3851[_0x197d64(0x18e)]:_0x193262=_0x20c2dc[_0x197d64(0x2c9)]+_0x31ba53;break;case _0xaa3851[_0x197d64(0x103)]:_0x193262=_0x20c2dc[_0x197d64(0x1e2)]+_0x31ba53;break;default:_0x193262=_0x31ba53;break;}return _0x193262;}function ki(_0x5199bd,_0x51aa4d,_0x43302f,_0x2289fb,_0x3eb945){const _0x138bfd=_0x1573ee;var _0x54480a,_0x307337,_0x271ea4,_0x59db12,_0x26c63c;const _0x303238=_0x133dd5(_0x5199bd,_0x51aa4d),{rangesInfo:_0x2a3c5f,areaInfo:_0x513261,headerMap:_0x5d961d}=_0x3eb945;if(!_0x2a3c5f||!_0x513261||!_0x5d961d)return;const _0x110c09=Object['keys'](_0x2a3c5f)['find'](_0x308e19=>_0x2a3c5f[_0x308e19][_0x138bfd(0x2a3)](_0x3d92cf=>_0xcfdf09[_0x138bfd(0x245)](_0x3d92cf,_0x303238))),_0x35dfc4=_0x513261;let _0x2926d6,_0x5227d1,_0x319c9f;if(_0x110c09===_0x138bfd(0x298))_0x2926d6=(_0x54480a=_0x35dfc4==null?void 0x0:_0x35dfc4[_0x138bfd(0x125)])==null?void 0x0:_0x54480a[_0x5199bd],_0x5227d1=(_0x307337=_0x5d961d==null?void 0x0:_0x5d961d[_0x138bfd(0x244)])==null?void 0x0:_0x307337[_0x51aa4d],_0x319c9f=_0x5227d1==null?void 0x0:_0x5227d1[_0x138bfd(0x2e6)];else{if(_0x110c09==='colRanges')_0x2926d6=(_0x271ea4=_0x35dfc4==null?void 0x0:_0x35dfc4[_0x138bfd(0x31c)])==null?void 0x0:_0x271ea4[_0x51aa4d],_0x5227d1=(_0x59db12=_0x5d961d[_0x138bfd(0x209)])==null?void 0x0:_0x59db12[_0x5199bd+0x1+_0x51aa4d-_0x2a3c5f['colRanges'][0x0][_0x138bfd(0x2d1)]],_0x319c9f=_0x5227d1==null?void 0x0:_0x5227d1[_0x138bfd(0x2e6)];else{if(_0x110c09===_0x138bfd(0x1a6))_0x2926d6=(_0x26c63c=_0x35dfc4==null?void 0x0:_0x35dfc4[_0x138bfd(0x155)])==null?void 0x0:_0x26c63c[_0x51aa4d],_0x319c9f=_0x2926d6==null?void 0x0:_0x2926d6[_0x138bfd(0x2e6)];else{if(_0x110c09===_0x138bfd(0xf6)){const _0x375630=_0x43302f==null?void 0x0:_0x43302f['fi'];_0x375630!==void 0x0&&(_0x319c9f=_0x2289fb[_0x138bfd(0x33a)](_0x375630));}}}}return{'filterId':_0x319c9f,'info':_0x2926d6,'data':_0x43302f,'headerInfo':_0x5227d1};}function Bi(_0x5557fe,_0x4188b9,_0xe92ba6){const _0x142eb9=_0x1573ee,_0x1bc7b4=_0x5557fe[_0x142eb9(0x1d5)],_0x48f205=_0x1bc7b4['getFieldIds'](),_0x153103=new Set();_0x5557fe['iterateField'](_0x45b8d2=>{const _0x427988=_0x142eb9;_0x153103['add'](_0x45b8d2[_0x427988(0x2a0)]);});const _0x519181=_0x48f205['map'](_0xd90e0=>{const _0x58dc97=_0x142eb9,_0x1c7932=_0x1bc7b4['getFieldById'](_0xd90e0);return{'checked':_0x153103['has'](_0xd90e0),'dataFieldId':_0x1c7932['id'],'id':_0x1c7932['id'],'name':_0x1bc7b4[_0x58dc97(0x1b4)](_0x1c7932['id']),'type':_0x1c7932['getFieldDataType'](),'pivotTableId':_0x4188b9};}),_0x4c43ae=[];_0x5557fe[_0x142eb9(0x31f)](_0x584946[_0x142eb9(0x116)],_0x564e14=>{const _0x26a4a5=_0x142eb9;_0x4c43ae[_0x26a4a5(0x1c1)]({'dataFieldId':_0x564e14[_0x26a4a5(0x2a0)],'tableFieldId':_0x564e14[_0x26a4a5(0x223)](),'displayName':_0x564e14[_0x26a4a5(0x1b4)]()});});const _0x6b67d7=[];_0x5557fe[_0x142eb9(0x31f)](_0x584946[_0x142eb9(0xd6)],_0x12d2d4=>{const _0x1d4ee6=_0x142eb9;_0x6b67d7[_0x1d4ee6(0x1c1)]({'dataFieldId':_0x12d2d4['dataFieldId'],'tableFieldId':_0x12d2d4['getId'](),'displayName':_0x12d2d4[_0x1d4ee6(0x1b4)]()});});const _0x3bf2ed=[];if(_0x5557fe['iterateFieldByArea'](_0x584946[_0x142eb9(0x24d)],_0x224847=>{const _0x449aa1=_0x142eb9;_0x3bf2ed[_0x449aa1(0x1c1)]({'dataFieldId':_0x224847[_0x449aa1(0x2a0)],'tableFieldId':_0x224847[_0x449aa1(0x223)](),'displayName':_0x224847['getDisplayName'](),'format':_0x224847['getFormat'](),'subTotalType':_0x224847['getSubtotal']()});}),_0x3bf2ed['length']>0x1){const _0x5679ea=_0x5557fe[_0x142eb9(0x2b6)]();(_0x5557fe[_0x142eb9(0x1b6)]()?_0x6b67d7:_0x4c43ae)[_0x142eb9(0x1f5)](_0x5679ea,0x0,{'dataFieldId':'','tableFieldId':_0x142eb9(0x22c),'displayName':'ΣValue'});}const _0x3dfba8=[];_0x5557fe[_0x142eb9(0x31f)](_0x584946[_0x142eb9(0x10c)],_0x3e382d=>{const _0x459b33=_0x142eb9;_0x3dfba8[_0x459b33(0x1c1)]({'dataFieldId':_0x3e382d[_0x459b33(0x2a0)],'tableFieldId':_0x3e382d[_0x459b33(0x223)](),'displayName':_0x3e382d[_0x459b33(0x1b4)]()});});const _0x5bfb99=_0xe92ba6['sourceRangeInfo'];return{'sourceList':_0x519181,'sourceRange':_0x5bfb99,'rowFields':_0x4c43ae,'columnFields':_0x6b67d7,'valueFields':_0x3bf2ed,'filterFields':_0x3dfba8,'positionInfo':_0xe92ba6[_0x142eb9(0x2c7)]};}function fo(_0x1beb88,_0x18e48c,_0x30dba2='',_0x228ad9={}){const _0x509a87=_0x1573ee,_0x8a398=_0x1beb88[_0x509a87(0xfa)](_0x46f29a);for(const _0x24ce7b in _0x18e48c)if(Object[_0x509a87(0x314)][_0x509a87(0x190)][_0x509a87(0x2d0)](_0x18e48c,_0x24ce7b)){const _0x5bfe70=_0x30dba2?_0x30dba2+'.'+_0x24ce7b:_0x24ce7b;typeof _0x18e48c[_0x24ce7b]==_0x509a87(0x2da)&&_0x18e48c[_0x24ce7b]!==null&&!Array[_0x509a87(0x290)](_0x18e48c[_0x24ce7b])?fo(_0x1beb88,_0x18e48c[_0x24ce7b],_0x5bfe70,_0x228ad9):_0x228ad9[_0x5bfe70]=_0x8a398['t'](_0x5bfe70);}return _0x228ad9;}const $t=_0x36c011=>{const _0x5b8dec=_0x1573ee;if(!_0x36c011)return[];const {rowRanges:_0x456d9a,colRanges:_0x2d9589,cornerRanges:_0xdd1dcc,dataRanges:_0x20a17f,pageRanges:_0x4e8538}=_0x36c011,_0x33b061=[..._0x2d9589,..._0x456d9a,..._0x20a17f,..._0xdd1dcc][_0x5b8dec(0x195)](_0x590a28=>_0x590a28[_0x5b8dec(0x272)]>=0x0&&_0x590a28['startColumn']>=0x0&&_0x590a28[_0x5b8dec(0x130)]>=0x0&&_0x590a28[_0x5b8dec(0x1b0)]>=0x0);let _0x5538fe=Number[_0x5b8dec(0x174)],_0x1248ce=Number['MIN_SAFE_INTEGER'],_0x267e58=Number[_0x5b8dec(0x174)],_0x4c209c=Number[_0x5b8dec(0x347)];for(let _0x60a951=0x0;_0x60a951<_0x33b061[_0x5b8dec(0x1a9)];_0x60a951++)_0x5538fe=Math[_0x5b8dec(0x260)](_0x5538fe,_0x33b061[_0x60a951][_0x5b8dec(0x272)]),_0x1248ce=Math['max'](_0x1248ce,_0x33b061[_0x60a951][_0x5b8dec(0x130)]),_0x267e58=Math['min'](_0x267e58,_0x33b061[_0x60a951][_0x5b8dec(0x2d1)]),_0x4c209c=Math[_0x5b8dec(0x320)](_0x4c209c,_0x33b061[_0x60a951][_0x5b8dec(0x1b0)]);return[..._0x4e8538,{'startRow':_0x5538fe,'endRow':_0x1248ce,'startColumn':_0x267e58,'endColumn':_0x4c209c}];};function Li(_0x429f54,_0xcf0d0c){const _0x3e2586=_0x1573ee,_0x3c7031=_0xcf0d0c[_0x3e2586(0x178)][_0x3e2586(0x1a2)],{pivotTableId:_0x3e2158,unitId:_0x37cb8a,subUnitId:_0xa7235f}=_0xcf0d0c;if(!_0x3c7031)return;const _0x492aeb=_0x429f54[_0x3e2586(0xfa)](W),_0x815638=_0x492aeb['getPivotTableInstance'](_0x3e2158),_0x533f03=_0x492aeb[_0x3e2586(0x200)](_0x37cb8a,_0xa7235f,_0x3e2158);if(!_0x815638||!_0x533f03)return;const _0x46f816=_0x815638[_0x3e2586(0x164)](_0x3c7031['tuple']);if(!(_0x46f816!=null&&_0x46f816['length']))return;const _0x3a30de=_0x533f03[_0x3e2586(0x216)],{unitId:_0x21e81b,subUnitId:_0x2d67b2,range:_0x5c5354}=_0x3a30de;let _0x495fe5=0x0;const _0x28ed3d=_0x815638[_0x3e2586(0x1d5)]['getFieldIds']()[_0x3e2586(0x113)]((_0x2ec59d,_0x5b8a4d)=>{var _0x2d42d9;const _0x356b89=(_0x2d42d9=_0x815638['getDataFieldByDataFieldId'](_0x5b8a4d))==null?void 0x0:_0x2d42d9['getformat']();return _0x356b89&&(_0x2ec59d[String(_0x495fe5)]=_0x356b89),_0x495fe5++,_0x2ec59d;},{});return{'indexes':_0x46f816,'range':_0x5c5354,'sourceUnitId':_0x21e81b,'sourceSubUnitId':_0x2d67b2,'formatMap':_0x28ed3d};}function Ho(_0x210405,_0x4c7c02){const _0x108fa2=_0x1573ee;if(!_0x210405||!_0x4c7c02)return!0x0;const _0x2e6569=_0x29d35d(Go,Jo),_0x45e1e8=new Function(_0x108fa2(0x261)+_0x2e6569)()(_0x210405,_0x4c7c02)[_0x108fa2(0x2d8)],_0x5a06a4=_0xcf9c58(_0x45e1e8,'sf',Bo);return!((_0x45e1e8==null?void 0x0:_0x45e1e8['rt'])===_0x2931e2[_0x108fa2(0x1fe)]&&!_0x5a06a4);}function go(_0x1412f4,_0x5b9c5c,_0xe3bc02){const _0xf27421=_0x1573ee,_0x34535c={'count':_0x1412f4,'timeValid':!0x1};if(!_0x5b9c5c||!_0xe3bc02)return _0x34535c;const _0x476de9=_0x29d35d(Go,Jo),_0x12da99=new Function(_0xf27421(0x261)+_0x476de9)()(_0x5b9c5c,_0xe3bc02);if(_0x12da99!=null&&_0x12da99[_0xf27421(0x287)]){const _0x1e5ac8=_0x12da99['message'],_0x5cb66f=_0xcf9c58(_0x1e5ac8,'sf',Bo);return{'count':_0x10aa08(_0x1e5ac8,_0x5cb66f,_0xf27421(0x2ed),_0x1412f4,_0x1412f4,0x0),'timeValid':_0x5cb66f};}return _0x34535c;}function qo(_0x58207f,_0x20a0da,_0x497be9,_0x38f1ab){const _0x1e35d4=_0x1573ee,_0x115ad6={'subUnitId':_0x497be9,'unitId':_0x20a0da,'cellValue':_0x369198(_0x38f1ab)},_0x4240fd=_0x356a7e(_0x58207f,_0x115ad6);let _0x5c7ec0=!0x1;return new _0x3ea36a(_0x4240fd[_0x1e35d4(0x18a)])[_0x1e35d4(0x305)]((_0x2b6097,_0x1ef72b,_0x45f922)=>{const _0x5484fb=_0x1e35d4;if(!_0x5c7ec0&&_0x45f922&&(_0x45f922[_0x5484fb(0x262)]||_0x45f922['f']||_0x45f922['p']||_0x45f922['s']||_0x45f922['si']||_0x45f922['t']||_0x45f922['v']))return _0x5c7ec0=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x5e0b6f['id'],'params':_0x4240fd},'setRangeValueRedoMutation':{'id':_0x5e0b6f['id'],'params':_0x115ad6},'shouldClear':_0x5c7ec0};}function $i(_0x47cb89){const {row:_0x43c11a,col:_0xa4f69b}=_0x47cb89,_0x45890c={'startRow':_0x43c11a,'endRow':_0x43c11a,'startColumn':_0xa4f69b,'endColumn':_0xa4f69b},_0x4bb7f8={'startRow':_0x43c11a+0x2,'endRow':_0x43c11a+0xe,'startColumn':_0xa4f69b,'endColumn':_0xa4f69b+0x6};return[_0x45890c,_0x4bb7f8];}function Wi(_0x15aa2d,_0x300a20,_0x5e6316){const _0x5b02f9=_0x1573ee,{cornerView:_0x2fda03,rowView:_0x51f0ae,colView:_0x19632b,pageView:_0x39bae9}=_0x15aa2d,{row:_0x585eef,col:_0x2c8012}=_0x300a20;if(_0x5e6316)return{'rowCount':bi+_0x585eef,'colCount':Si+_0x2c8012};const _0x3c7a4d=_0x39bae9[_0x5b02f9(0x247)]>-0x1?_0x39bae9[_0x5b02f9(0x247)]+0x1:0x0,_0x485b8e=_0x39bae9['lastCol']>-0x1?_0x39bae9[_0x5b02f9(0x18f)]:0x0,_0x1fc8a1=_0x585eef+_0x3c7a4d+(_0x3c7a4d?0x1:0x0)+_0x2fda03['rowCount']+_0x51f0ae['rowCount'],_0x576ab7=_0x2c8012+_0x485b8e,_0x4f7baa=_0x2c8012+_0x2fda03['colCount']+_0x19632b[_0x5b02f9(0x227)],_0x5eba6c=Math[_0x5b02f9(0x320)](_0x576ab7,_0x4f7baa);return{'rowCount':_0x1fc8a1,'colCount':_0x5eba6c};}function Re(_0x134d61,_0x525f69,_0xa042e7,_0x1ab0b1){const _0x133648=_0x1573ee,{row:_0x5ed33d,col:_0x4301c3,unitId:_0x325870,subUnitId:_0x134933}=_0xa042e7,_0x3e1b5b=Wi(_0x525f69,{'row':_0x5ed33d,'col':_0x4301c3},_0x1ab0b1),_0x37f1e8=_0x134d61[_0x133648(0xfa)](_0x144d54),_0x3884ce=_0x5e19a7(_0x37f1e8,{'unitId':_0x325870,'subUnitId':_0x134933}),_0x19182b=[],_0x1283a1=[];if(!_0x3884ce)return{'undos':_0x1283a1,'redos':_0x19182b};const {worksheet:_0x3d0c12}=_0x3884ce,_0x1e69ae=_0x3d0c12[_0x133648(0x356)](),_0xa2c172=_0x3d0c12[_0x133648(0x240)]();return _0x1e69ae<_0x3e1b5b[_0x133648(0x31b)]&&(_0x19182b[_0x133648(0x1c1)]({'id':_0x3644f9['id'],'params':{'unitId':_0x325870,'subUnitId':_0x134933,'range':{'startRow':_0x1e69ae,'endRow':_0x3e1b5b[_0x133648(0x31b)]-0x1,'startColumn':0x0,'endColumn':_0xa2c172-0x1}}}),_0x1283a1[_0x133648(0x1c1)]({'id':_0x21738b['id'],'params':{'unitId':_0x325870,'subUnitId':_0x134933,'range':{'startRow':_0x1e69ae,'endRow':_0x3e1b5b[_0x133648(0x31b)]-0x1,'startColumn':0x0,'endColumn':_0xa2c172-0x1}}})),_0xa2c172<_0x3e1b5b[_0x133648(0x227)]&&(_0x19182b[_0x133648(0x1c1)]({'id':_0x5be170['id'],'params':{'unitId':_0x325870,'subUnitId':_0x134933,'range':{'startRow':0x0,'endRow':_0x1e69ae-0x1,'startColumn':_0xa2c172,'endColumn':_0x3e1b5b[_0x133648(0x227)]-0x1}}}),_0x1283a1[_0x133648(0x1c1)]({'id':_0x21d914['id'],'params':{'unitId':_0x325870,'subUnitId':_0x134933,'range':{'startRow':0x0,'endRow':_0x1e69ae-0x1,'startColumn':_0xa2c172,'endColumn':_0x3e1b5b[_0x133648(0x227)]-0x1}}})),{'undos':_0x1283a1,'redos':_0x19182b};}function ji(_0x4a516f){const _0x4de005=_0x1573ee;let _0x3d72fe=0x0;for(let _0x1ca3b2=0x0;_0x1ca3b2<_0x4a516f['length'];_0x1ca3b2++){const _0x2b2498=_0x4a516f[_0x4de005(0x10e)](_0x1ca3b2);_0x2b2498>=0x4e00&&_0x2b2498<=0x9fff||_0x2b2498>=0x3000&&_0x2b2498<=0x303f||_0x2b2498>=0xff00&&_0x2b2498<=0xffef?_0x3d72fe+=0x2:_0x3d72fe+=0x1;}return _0x3d72fe;}function yo(_0x294cba,_0x514df4,_0x84364f,_0x1e5dcc){const _0x203a2b=_0x1573ee;var _0xcf1e5c,_0x429771,_0x5a9389,_0x34e754;const {rowCount:_0x10b1a4,colCount:_0x294a97,headerMap:_0x4c9f89}=_0x294cba,_0x566b10=0x64,_0x22223b=Math[_0x203a2b(0x260)](_0x10b1a4,_0x566b10),_0x36c4af=Math['min'](_0x294a97,_0x566b10);let _0x36f2b4='',_0x20db1a=0x0;for(let _0x3a0975=0x0;_0x3a0975<_0x22223b;_0x3a0975++)for(let _0xa57b50=0x0;_0xa57b50<_0x36c4af;_0xa57b50++){const _0xccef40={...(_0x429771=(_0xcf1e5c=_0x294cba[_0x203a2b(0xe5)])==null?void 0x0:_0xcf1e5c[_0x3a0975])==null?void 0x0:_0x429771[_0xa57b50]},_0x1b7d34=(_0x5a9389=_0x4c9f89[_0x3a0975])==null?void 0x0:_0x5a9389[_0x203a2b(0x2e6)],_0x1b2c2b=_0x1e5dcc[_0x1b7d34];let _0x563539=_0x294cba[_0x203a2b(0x19e)](_0x3a0975,_0xa57b50);if(_0xccef40){const _0x4b445c=_0x84364f?_0xa57b50===0x0&&((_0x34e754=_0x294cba['getHeaderMapItem'](_0xa57b50+0x1))==null?void 0x0:_0x34e754[_0x203a2b(0x12b)]):!0x1;_0x563539=vt(_0xccef40,_0x4b445c,_0x1b2c2b,_0x514df4);}if(_0x563539!==void 0x0){const _0x2e7be6=ji(String(_0x563539));_0x20db1a<_0x2e7be6&&(_0x36f2b4=String(_0x563539),_0x20db1a=_0x2e7be6);}}return _0x36f2b4;}function Ji(_0x146d34){const _0xacd847=_0x1573ee,{rowCount:_0x41e2aa,colCount:_0x11e330}=_0x146d34;let _0x22d212='',_0x1537dc=0x0;for(let _0x165118=_0x41e2aa-0x1;_0x165118>0x0&&_0x165118>_0x41e2aa-0x3;_0x165118--)for(let _0x5e4821=0x0;_0x5e4821<_0x11e330;_0x5e4821++){const _0x2a8aa5=_0x146d34['getValue'](_0x165118,_0x5e4821);if(_0x2a8aa5!==void 0x0){const _0x884551=String(_0x2a8aa5)[_0xacd847(0x1a9)];_0x1537dc<_0x884551&&(_0x22d212=String(_0x2a8aa5),_0x1537dc=_0x884551);}}return _0x22d212;}function Gi(_0x113b23){const _0x29aac5=_0x1573ee,{rowCount:_0x4020d1,colCount:_0x2e6bd1}=_0x113b23;let _0x567b7e='',_0x2e38d0=0x0;for(let _0x5a4fe7=0x0;_0x5a4fe7<_0x4020d1;_0x5a4fe7++)for(let _0x32ccdb=0x0;_0x32ccdb<_0x2e6bd1;_0x32ccdb++){const _0x3eab13=_0x113b23[_0x29aac5(0x19e)](_0x5a4fe7,_0x32ccdb);if(_0x3eab13!==void 0x0){const _0xc96f82=String(_0x3eab13)['length'];_0x2e38d0<_0xc96f82&&(_0x567b7e=String(_0x3eab13),_0x2e38d0=_0xc96f82);}}return _0x567b7e;}function Ki(_0x1042f4,_0x7c40fa){const _0x3946ab=_0x1573ee,{rowFields:_0x560012,columnFields:_0x52ba1e,valueFields:_0x577108,filterFields:_0x49d4b6,dimension:_0x3b0d36,measure:_0x34a289}=_0x7c40fa;for(const _0x6948a9 of _0x560012){const _0x44e9c4=_0x3b0d36[_0x6948a9];_0x44e9c4&&_0x1042f4[_0x3946ab(0xf1)](_0x44e9c4['dataFieldId'])&&(_0x1042f4[_0x3946ab(0x1d2)](_0x44e9c4[_0x3946ab(0x2a0)],_0x584946[_0x3946ab(0x116)],void 0x0,_0x6948a9),_0x44e9c4[_0x3946ab(0x2e0)]&&_0x1042f4[_0x3946ab(0x121)](_0x44e9c4['id'],_0x44e9c4[_0x3946ab(0x2e0)]),_0x44e9c4[_0x3946ab(0x109)]&&_0x1042f4[_0x3946ab(0xf5)](_0x44e9c4['id'],_0x44e9c4[_0x3946ab(0x109)]),_0x44e9c4['filterInfo']&&_0x1042f4[_0x3946ab(0x177)](_0x44e9c4['id'],_0x44e9c4[_0x3946ab(0x30c)]));}for(const _0x12f4fb of _0x52ba1e){const _0x7b233f=_0x3b0d36[_0x12f4fb];_0x7b233f&&_0x1042f4[_0x3946ab(0xf1)](_0x7b233f[_0x3946ab(0x2a0)])&&(_0x1042f4[_0x3946ab(0x1d2)](_0x7b233f[_0x3946ab(0x2a0)],_0x584946[_0x3946ab(0xd6)],void 0x0,_0x12f4fb),_0x7b233f[_0x3946ab(0x109)]&&_0x1042f4[_0x3946ab(0xf5)](_0x7b233f['id'],_0x7b233f[_0x3946ab(0x109)]),_0x7b233f[_0x3946ab(0x30c)]&&_0x1042f4[_0x3946ab(0x177)](_0x7b233f['id'],_0x7b233f['filterInfo']),_0x7b233f[_0x3946ab(0x2e0)]&&_0x1042f4['renameField'](_0x7b233f['id'],_0x7b233f[_0x3946ab(0x2e0)]));}for(const _0x1cceca of _0x49d4b6){const _0x2525af=_0x3b0d36[_0x1cceca];_0x2525af&&_0x1042f4[_0x3946ab(0xf1)](_0x2525af[_0x3946ab(0x2a0)])&&(_0x1042f4[_0x3946ab(0x1d2)](_0x2525af[_0x3946ab(0x2a0)],_0x584946[_0x3946ab(0x10c)],void 0x0,_0x1cceca),_0x2525af[_0x3946ab(0x109)]&&_0x1042f4['setSortInfo'](_0x2525af['id'],_0x2525af[_0x3946ab(0x109)]),_0x2525af[_0x3946ab(0x30c)]&&_0x1042f4[_0x3946ab(0x177)](_0x2525af['id'],_0x2525af[_0x3946ab(0x30c)]),_0x2525af[_0x3946ab(0x2e0)]&&_0x1042f4[_0x3946ab(0x121)](_0x2525af['id'],_0x2525af['displayName']));}for(const _0xa4857d of _0x577108){const _0x133e84=_0x34a289[_0xa4857d];_0x133e84&&_0x1042f4[_0x3946ab(0xf1)](_0x133e84[_0x3946ab(0x2a0)])&&(_0x1042f4['addFieldWithSourceId'](_0x133e84[_0x3946ab(0x2a0)],_0x584946[_0x3946ab(0x24d)],void 0x0,_0xa4857d),_0x133e84[_0x3946ab(0x133)]!==void 0x0&&_0x1042f4[_0x3946ab(0x1b2)](_0xa4857d,_0x133e84[_0x3946ab(0x133)]),_0x133e84['format']&&_0x1042f4['setFieldFormat'](_0xa4857d,_0x133e84[_0x3946ab(0x147)]),_0x133e84[_0x3946ab(0x2e0)]&&_0x1042f4[_0x3946ab(0x121)](_0x133e84['id'],_0x133e84[_0x3946ab(0x2e0)]));}const _0xc070c2=_0x7c40fa[_0x3946ab(0x20e)];for(const {fieldId:_0x1509f5,filterInfo:_0x1b5ea3}of _0xc070c2)_0x1042f4[_0x3946ab(0x175)](_0x1509f5,_0x1b5ea3);}function Hi(_0x5ae6d1,_0x5aaec7){const _0x405043=_0x1573ee,_0x6a8b7f=[];_0x5aaec7===_0x584946[_0x405043(0x116)]&&_0x5ae6d1[_0x405043(0x31f)](_0x584946[_0x405043(0x116)],_0x4d495a=>{const _0x5bfb6e=_0x405043;_0x6a8b7f[_0x5bfb6e(0x1c1)](_0x4d495a[_0x5bfb6e(0x223)]());}),_0x5aaec7===_0x584946[_0x405043(0xd6)]&&_0x5ae6d1[_0x405043(0x31f)](_0x584946[_0x405043(0xd6)],_0x23af9e=>{const _0x33e54f=_0x405043;_0x6a8b7f['push'](_0x23af9e[_0x33e54f(0x223)]());}),_0x5aaec7===_0x584946[_0x405043(0x10c)]&&_0x5ae6d1[_0x405043(0x31f)](_0x584946[_0x405043(0x10c)],_0x150a15=>{const _0x581043=_0x405043;_0x6a8b7f[_0x581043(0x1c1)](_0x150a15[_0x581043(0x223)]());}),_0x5aaec7===_0x584946[_0x405043(0x24d)]&&_0x5ae6d1[_0x405043(0x31f)](_0x584946[_0x405043(0x24d)],_0x448992=>{const _0x14c9dc=_0x405043;_0x6a8b7f[_0x14c9dc(0x1c1)](_0x448992['getId']());}),_0x5aaec7===void 0x0&&_0x5ae6d1[_0x405043(0x26f)](_0x243267=>{const _0x36027e=_0x405043;_0x6a8b7f['push'](_0x243267[_0x36027e(0x223)]());});const _0x5adbb8=_0x6a8b7f[_0x405043(0x1a9)];for(let _0x374ef1=_0x5adbb8-0x1;_0x374ef1>=0x0;_0x374ef1--)_0x5ae6d1['removeField'](_0x6a8b7f[_0x374ef1]);const _0x383d42=_0x5ae6d1[_0x405043(0x2f8)]();for(const _0x5eb448 in _0x383d42)_0x5ae6d1[_0x405043(0x108)](_0x5eb448);}function qi(_0x1b24c2,_0x1f68f0){const _0xcab58=_0x1573ee,_0x112abd=new Date(_0x18ee81(_0x1f68f0)),_0x28b768=new Date(_0x18ee81(_0x1b24c2)),_0x558019=_0x112abd[_0xcab58(0x234)](),_0x285c7d=_0x28b768['getFullYear'](),_0x2a7fbf=_0x112abd[_0xcab58(0x270)](),_0x4abaae=_0x28b768[_0xcab58(0x270)](),_0xf7c359=_0x112abd['getDate'](),_0x12aaae=_0x28b768[_0xcab58(0x171)](),_0x404fee=_0x558019===_0x285c7d,_0x29e9d5=_0x404fee&&_0x2a7fbf===_0x4abaae;return _0x404fee&&_0x29e9d5&&!(_0x29e9d5&&_0xf7c359===_0x12aaae)?_0x195c44['YearMonthDate']:_0x404fee&&!_0x29e9d5?_0x195c44[_0xcab58(0x316)]:_0x195c44[_0xcab58(0x33b)];}function Yo(_0x5c68a1,_0x44d28f){const _0x511152=_0x1573ee,_0x28a8d3=_0x5c68a1[_0x511152(0xfa)](W)[_0x511152(0x309)]();let _0x591e7b='';switch(_0x44d28f){case _0x195c44[_0x511152(0x331)]:_0x591e7b=_0x28a8d3[_0x511152(0x2e8)];break;case _0x195c44[_0x511152(0x316)]:_0x591e7b=_0x28a8d3[_0x511152(0x134)];break;case _0x195c44[_0x511152(0x33b)]:_0x591e7b=_0x28a8d3[_0x511152(0x2af)];break;case _0x195c44[_0x511152(0x28c)]:_0x591e7b=_0x28a8d3[_0x511152(0x165)];break;case _0x195c44[_0x511152(0x2be)]:_0x591e7b=_0x28a8d3['sheets-pivot.dateGroup.quarter'];break;case _0x195c44[_0x511152(0x27b)]:_0x591e7b=_0x28a8d3[_0x511152(0x322)];break;case _0x195c44[_0x511152(0x311)]:_0x591e7b=_0x28a8d3['sheets-pivot.dateGroup.hourMinute'];break;case _0x195c44['Hour']:_0x591e7b=_0x28a8d3[_0x511152(0x2aa)];break;case _0x195c44['Minute']:_0x591e7b=_0x28a8d3[_0x511152(0x1a3)];break;case _0x195c44['MonthDate']:_0x591e7b=_0x28a8d3[_0x511152(0x1da)];break;case _0x195c44[_0x511152(0x162)]:_0x591e7b=_0x28a8d3[_0x511152(0x253)];break;default:_0x591e7b='';break;}return _0x591e7b;}function _0x5078(_0x495d31,_0xa245d){_0x495d31=_0x495d31-0xc8;const _0x446edf=_0x446e();let _0x5078e5=_0x446edf[_0x495d31];return _0x5078e5;}const Qo=_0x1573ee(0x228),Mo={};var Yi=Object[_0x1573ee(0x1f2)],Qi=(_0x381468,_0x8deb65,_0x11a6a3,_0x3f5c8c)=>{const _0x5b8376=_0x1573ee;for(var _0x7457aa=_0x3f5c8c>0x1?void 0x0:_0x3f5c8c?Yi(_0x8deb65,_0x11a6a3):_0x8deb65,_0x1eaaab=_0x381468[_0x5b8376(0x1a9)]-0x1,_0x912590;_0x1eaaab>=0x0;_0x1eaaab--)(_0x912590=_0x381468[_0x1eaaab])&&(_0x7457aa=_0x912590(_0x7457aa)||_0x7457aa);return _0x7457aa;},it=(_0x9d3de6,_0x188142)=>(_0x5ebc90,_0x4021bd)=>_0x188142(_0x5ebc90,_0x4021bd,_0x9d3de6);let ve=class extends _0x163111{constructor(_0x57f5b9,_0x11cc1a,_0x5e2b12,_0x21cfdb,_0x245fa3){const _0xe530fd=_0x1573ee;super(),N(this,_0xe530fd(0x2ad),new Map()),N(this,'_collectionConfigModel',new Map()),N(this,_0xe530fd(0x2f2),new Map()),N(this,_0xe530fd(0x1aa),new Map()),N(this,_0xe530fd(0x349),new _0x39acdb()),N(this,_0xe530fd(0x17c),new _0x39acdb()),N(this,_0xe530fd(0x17d),this[_0xe530fd(0x17c)][_0xe530fd(0xeb)]()),N(this,_0xe530fd(0x1c3),new _0x39acdb()),N(this,_0xe530fd(0x26a),this['_pivotConfigChange$'][_0xe530fd(0xeb)]()),N(this,_0xe530fd(0x13c),{}),N(this,_0xe530fd(0x343),this[_0xe530fd(0x349)][_0xe530fd(0xeb)]()),(this[_0xe530fd(0x168)]=_0x57f5b9,this[_0xe530fd(0x34c)]=_0x11cc1a,this[_0xe530fd(0x2c4)]=_0x5e2b12,this[_0xe530fd(0xd0)]=_0x21cfdb,this[_0xe530fd(0x118)]=_0x245fa3,this[_0xe530fd(0x2a7)](),this[_0xe530fd(0x29e)]());const _0x4ea9e6=this[_0xe530fd(0x118)][_0xe530fd(0x225)](Qo);(_0x4ea9e6==null?void 0x0:_0x4ea9e6[_0xe530fd(0x205)])===!0x0&&this[_0xe530fd(0x192)]();}[_0x1573ee(0x29e)](){const _0x366060=_0x1573ee;this[_0x366060(0x142)](this[_0x366060(0x2c4)]['getTypeOfUnitDisposed$'](_0x14f031[_0x366060(0xee)])[_0x366060(0xd9)](_0x474e9f=>{const _0x4b9522=_0x366060;this[_0x4b9522(0x2b0)](_0x474e9f[_0x4b9522(0x1d9)]());}));}[_0x1573ee(0x2b7)](){const _0x18ff73=_0x1573ee;this[_0x18ff73(0x17c)]['next'](!0x0);}[_0x1573ee(0x2a7)](){const _0x3fe5be=_0x1573ee,_0x426822=fo(this[_0x3fe5be(0x168)],$o,'',{});this[_0x3fe5be(0x13c)]=_0x426822,this[_0x3fe5be(0x34c)][_0x3fe5be(0x317)](uo['id'],{'textInfo':_0x426822},{'onlyLocal':!0x0});}[_0x1573ee(0x309)](){return this['_textInfo'];}[_0x1573ee(0x2f7)](_0x62f68e,_0x1af303,_0x330010,_0x53f196,_0x30f3b0){const _0x244908=_0x1573ee;this[_0x244908(0xe6)](_0x62f68e,_0x1af303,_0x330010,_0x53f196),this[_0x244908(0x248)](_0x62f68e,_0x1af303,_0x330010,_0x30f3b0);}[_0x1573ee(0x200)](_0x11bf05,_0x28ef1e,_0x380973){const _0x1cbc84=_0x1573ee;var _0x4f094f;const _0x1f9828=(_0x4f094f=this[_0x1cbc84(0x2ad)][_0x1cbc84(0xfa)](_0x11bf05))==null?void 0x0:_0x4f094f[_0x1cbc84(0xfa)](_0x28ef1e);if(_0x1f9828)return _0x1f9828[_0x1cbc84(0xfa)](_0x380973);}['getTargetByPivotTableId'](_0x597dc8,_0x5a702c){const _0x16da81=_0x1573ee,_0x1092cf=this['_model'][_0x16da81(0xfa)](_0x597dc8);if(_0x1092cf){for(const [_0x5dffa4,_0x5577ac]of _0x1092cf['entries']())for(const [_0x3c5850,_0x5ee8c4]of _0x5577ac[_0x16da81(0x17a)]())if(_0x3c5850===_0x5a702c)return _0x5ee8c4['targetCellInfo'];}}[_0x1573ee(0x296)](_0x2e9012,_0x5ec251,_0x1b3ad7){const _0x4db122=_0x1573ee,_0x635160=this[_0x4db122(0x200)](_0x2e9012,_0x5ec251,_0x1b3ad7);return _0x635160==null?void 0x0:_0x635160[_0x4db122(0x2c7)];}['getSubUnitPivotConfigs'](_0x1d9242,_0x21f661){const _0x4de676=_0x1573ee;var _0x4872e6;return(_0x4872e6=this[_0x4de676(0x2ad)][_0x4de676(0xfa)](_0x1d9242))==null?void 0x0:_0x4872e6['get'](_0x21f661);}[_0x1573ee(0x2b8)](_0x1768e5,_0x4a4ae0,_0x4292e3,_0x1da96e){const _0x3e47aa=_0x1573ee,_0x297626=this[_0x3e47aa(0x1ac)](_0x1768e5,_0x4a4ae0);_0x1da96e?_0x297626[_0x3e47aa(0xc9)](_0x4292e3,_0x1da96e):_0x297626[_0x3e47aa(0x124)](_0x4292e3),this[_0x3e47aa(0x1c3)][_0x3e47aa(0x1e1)]({'unitId':_0x1768e5,'subUnitId':_0x4a4ae0,'pivotTableId':_0x4292e3,'pivotTableConfig':_0x1da96e});}[_0x1573ee(0x22d)](_0x24325f,_0xca8d74){const _0x4bd0e6=_0x1573ee;var _0x4d3a24;return(_0x4d3a24=this[_0x4bd0e6(0x2dc)][_0x4bd0e6(0xfa)](_0x24325f))==null?void 0x0:_0x4d3a24['collections'][_0xca8d74];}[_0x1573ee(0x131)](_0x12cc0c,_0x377a3d){const _0x5722e3=_0x1573ee;this[_0x5722e3(0x2dc)][_0x5722e3(0xc9)](_0x12cc0c,_0x377a3d),this[_0x5722e3(0x349)]['next'](Math['random']());}[_0x1573ee(0x1ac)](_0xce9be3,_0x558664){const _0x4e0bc4=_0x1573ee;let _0x459369=this['_model'][_0x4e0bc4(0xfa)](_0xce9be3);_0x459369||(_0x459369=new Map(),this[_0x4e0bc4(0x2ad)][_0x4e0bc4(0xc9)](_0xce9be3,_0x459369));let _0x34f765=_0x459369[_0x4e0bc4(0xfa)](_0x558664);return _0x34f765||(_0x34f765=new Map(),_0x459369['set'](_0x558664,_0x34f765)),_0x34f765;}[_0x1573ee(0x348)](_0x9f8e88,_0x59cba4){const _0x69ec4b=_0x1573ee;let _0x3db1d3=this[_0x69ec4b(0x2f2)][_0x69ec4b(0xfa)](_0x9f8e88);_0x3db1d3||(_0x3db1d3=new Map(),this[_0x69ec4b(0x2f2)][_0x69ec4b(0xc9)](_0x9f8e88,_0x3db1d3));let _0x165b79=_0x3db1d3['get'](_0x59cba4);return _0x165b79||(_0x165b79=new Map(),_0x3db1d3['set'](_0x59cba4,_0x165b79)),_0x165b79;}[_0x1573ee(0x24f)](_0x220486,_0x373da7){const _0x3cbead=_0x1573ee;let _0x34a9fc=this[_0x3cbead(0x1aa)][_0x3cbead(0xfa)](_0x220486);_0x34a9fc||(_0x34a9fc=new Map(),this[_0x3cbead(0x1aa)][_0x3cbead(0xc9)](_0x220486,_0x34a9fc));let _0x23aa5b=_0x34a9fc[_0x3cbead(0xfa)](_0x373da7);return _0x23aa5b||(_0x23aa5b=new Map(),_0x34a9fc['set'](_0x373da7,_0x23aa5b)),_0x23aa5b;}[_0x1573ee(0x248)](_0x5462ff,_0x2dbc13,_0x3865ac,_0x3b1387){const _0x57aea6=_0x1573ee;var _0x5f0a6a;const _0x2952ec=this[_0x57aea6(0x348)](_0x5462ff,_0x2dbc13),_0x16c73=(_0x5f0a6a=_0x2952ec[_0x57aea6(0xfa)](_0x3865ac))==null?void 0x0:_0x5f0a6a[_0x57aea6(0xd1)];_0x2952ec[_0x57aea6(0xc9)](_0x3865ac,{'oldRangeInfo':_0x16c73,'rangeInfo':_0x3b1387});}[_0x1573ee(0xe6)](_0xc3a8e4,_0x174d18,_0x1f017c,_0x4385ea){const _0x3b3a6c=_0x1573ee;var _0x3a5c71;const _0x345aa1=this['_ensurePivotTableMatrixInfo'](_0xc3a8e4,_0x174d18),_0x5624a6=(_0x3a5c71=_0x345aa1[_0x3b3a6c(0xfa)](_0x1f017c))==null?void 0x0:_0x3a5c71['oldMatrix'];_0x345aa1['set'](_0x1f017c,{'oldMatrix':_0x5624a6,'matrix':_0x4385ea});}[_0x1573ee(0x191)](_0x49ffb2,_0xec6851,_0x48df31){const _0x4b7d56=_0x1573ee;var _0x34ed26,_0x53694f;return(_0x53694f=(_0x34ed26=this['_pivotTableRangeInfo'][_0x4b7d56(0xfa)](_0x49ffb2))==null?void 0x0:_0x34ed26[_0x4b7d56(0xfa)](_0xec6851))==null?void 0x0:_0x53694f[_0x4b7d56(0xfa)](_0x48df31);}[_0x1573ee(0x33d)](_0x4a65d9,_0x284afc,_0xe646bf){const _0x103a64=_0x1573ee;var _0x3cb869,_0x2c80ab;return(_0x2c80ab=(_0x3cb869=this[_0x103a64(0x1aa)]['get'](_0x4a65d9))==null?void 0x0:_0x3cb869[_0x103a64(0xfa)](_0x284afc))==null?void 0x0:_0x2c80ab[_0x103a64(0xfa)](_0xe646bf);}[_0x1573ee(0x2b0)](_0x40391b){const _0x439b39=_0x1573ee;this[_0x439b39(0x2ad)][_0x439b39(0x124)](_0x40391b),this[_0x439b39(0x2dc)][_0x439b39(0x124)](_0x40391b);}[_0x1573ee(0x2cb)](_0x2675b5){const _0x2d1c10=_0x1573ee,_0x338024={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2d1c10(0x2dc)][_0x2d1c10(0xfa)](_0x2675b5)&&(_0x338024['dataFieldManagerConfig'][_0x2675b5]=this[_0x2d1c10(0x2dc)][_0x2d1c10(0xfa)](_0x2675b5)),this['_model'][_0x2d1c10(0xfa)](_0x2675b5)){_0x338024[_0x2d1c10(0x25c)][_0x2675b5]={};const _0xb61596=this['_model'][_0x2d1c10(0xfa)](_0x2675b5);_0xb61596!=null&&_0xb61596[_0x2d1c10(0x2e2)]&&[..._0xb61596[_0x2d1c10(0x20d)]()][_0x2d1c10(0x25d)](_0x1c5f04=>{const _0xc09af1=_0x2d1c10,_0x23546f=_0xb61596[_0xc09af1(0xfa)](_0x1c5f04);_0x23546f!=null&&_0x23546f['size']&&(_0x338024['pivotTableConfigs'][_0x2675b5][_0x1c5f04]={},[..._0x23546f[_0xc09af1(0x20d)]()]['forEach'](_0xe13350=>{const _0x353067=_0xc09af1,_0x1f878b=_0x23546f[_0x353067(0xfa)](_0xe13350);_0x1f878b&&(_0x338024['pivotTableConfigs'][_0x2675b5][_0x1c5f04][_0xe13350]=_0x1f878b);}));});}return _0x338024;}[_0x1573ee(0x192)](){const _0x5cdd40=_0x1573ee;this['disposeWithMe'](this['_resourceManagerService'][_0x5cdd40(0x17b)]({'toJson':_0x32e7ab=>JSON[_0x5cdd40(0x2c0)](this[_0x5cdd40(0x2cb)](_0x32e7ab)),'parseJson':_0x16a547=>({}),'businesses':[_0x14f031[_0x5cdd40(0xee)]],'pluginName':ao,'onLoad':(_0x3860eb,_0x5f89d9)=>{},'onUnLoad':_0x280b07=>{const _0x1a77ec=_0x5cdd40;this[_0x1a77ec(0x2b0)](_0x280b07);}}));}};ve=Qi([it(0x0,_0x24210e(_0x220342)),it(0x1,_0x24210e(_0x338140)),it(0x2,_0x24210e(_0x144d54)),it(0x3,_0x24210e(_0x4e28bc)),it(0x4,_0x24210e(_0xca9673))],ve);var zi=Object[_0x1573ee(0x1f2)],Xi=(_0xd70db5,_0x2a51a5,_0x5e856f,_0x36fba3)=>{for(var _0x1ebac9=_0x36fba3>0x1?void 0x0:_0x36fba3?zi(_0x2a51a5,_0x5e856f):_0x2a51a5,_0x9bf6b1=_0xd70db5['length']-0x1,_0x382ff7;_0x9bf6b1>=0x0;_0x9bf6b1--)(_0x382ff7=_0xd70db5[_0x9bf6b1])&&(_0x1ebac9=_0x382ff7(_0x1ebac9)||_0x1ebac9);return _0x1ebac9;},st=(_0x4053d9,_0x348dba)=>(_0x273e45,_0x363bdc)=>_0x348dba(_0x273e45,_0x363bdc,_0x4053d9);let Ue=class extends _0x163111{constructor(_0xd0a964,_0xe628c8,_0x6ef6ec,_0x11260a,_0x351ee2){const _0x2e1985=_0x1573ee;super(),N(this,_0x2e1985(0x101),new Map()),N(this,_0x2e1985(0x295),new Map()),N(this,_0x2e1985(0x16c),new _0x39acdb()),N(this,_0x2e1985(0x329),this[_0x2e1985(0x16c)][_0x2e1985(0xeb)]()),N(this,_0x2e1985(0x2bb),new _0x39acdb()),N(this,_0x2e1985(0x1ca),this['_viewUpdate$'][_0x2e1985(0xeb)]()),N(this,_0x2e1985(0x13c)),(this[_0x2e1985(0x263)]=_0xd0a964,this[_0x2e1985(0x168)]=_0xe628c8,this['_sheetsPivotTableConfigModel']=_0x6ef6ec,this[_0x2e1985(0x2c4)]=_0x11260a,this['_exclusiveRangeService']=_0x351ee2,this[_0x2e1985(0x2a7)](),this['_initUnitDisposed']());}[_0x1573ee(0x29e)](){const _0x115e63=_0x1573ee;this[_0x115e63(0x142)](this['_univerInstanceService'][_0x115e63(0x31a)](_0x14f031[_0x115e63(0xee)])[_0x115e63(0xd9)](_0x4bfbfe=>{const _0x15829c=_0x115e63;this[_0x15829c(0x2b0)](_0x4bfbfe['getUnitId']());}));}[_0x1573ee(0x2a7)](){const _0x30777b=_0x1573ee;this['_textInfo']=fo(this[_0x30777b(0x168)],$o,'',{});}[_0x1573ee(0x2f3)](_0x2e8fd7){const _0x44650c=_0x1573ee,{view:_0x47407e,unitId:_0x3e09a8,subUnitId:_0xb1538c,pivotTableId:_0x5d410,type:_0xa64f82}=_0x2e8fd7,_0x527ca3=this[_0x44650c(0x27a)][_0x44650c(0x200)](_0x3e09a8,_0xb1538c,_0x5d410);if(!_0x47407e||!_0x527ca3||_0xa64f82===$['Delete'])return;const {pageView:_0x487668,cornerView:_0x4ed027,rowView:_0x3de861,colView:_0x39828e,dataView:_0x75f112}=_0x47407e,_0x2cf8b1=_0x527ca3[_0x44650c(0x2c7)],_0x268417=_0x527ca3[_0x44650c(0x2e4)],_0x493478=this[_0x44650c(0x266)](_0x3e09a8,_0xb1538c),_0x5c422b=this['_ensurePivotItemRenderInfoCache'](_0x3e09a8,_0xb1538c,_0x5d410);if(_0x268417)return this[_0x44650c(0x28e)](_0x2e8fd7,_0x493478,_0x2cf8b1,_0x5c422b);{const _0x5a48c4=ge(_0x2cf8b1,_0x487668,!0x0),_0x474a5b=_0x487668[_0x44650c(0x247)]>=0x0?_0x487668[_0x44650c(0x247)]+0x1:0x0,_0x14259d=_0x4ed027['getRowCount'](),_0x5ef42c=_0x4ed027[_0x44650c(0x341)](),_0x4f0824=_0x5a48c4[_0x44650c(0x1a9)]>0x0?It:0x0,_0x61dba8=ge({'row':_0x2cf8b1[_0x44650c(0xd3)]+_0x474a5b+_0x4f0824,'col':_0x2cf8b1[_0x44650c(0x267)]},_0x4ed027,!0x1,!0x1),_0xca323b=ge({'row':_0x2cf8b1[_0x44650c(0xd3)]+_0x474a5b+_0x4f0824+_0x14259d,'col':_0x2cf8b1['col']},_0x3de861,!0x1,!0x0),_0xfbaf64=ge({'row':_0x2cf8b1[_0x44650c(0xd3)]+_0x474a5b+_0x4f0824,'col':_0x2cf8b1[_0x44650c(0x267)]+_0x5ef42c},_0x39828e,!0x1,!0x0),_0x3fcfe2=ge({'row':_0x2cf8b1[_0x44650c(0xd3)]+_0x474a5b+_0x4f0824+_0x14259d,'col':_0x2cf8b1[_0x44650c(0x267)]+_0x5ef42c},_0x75f112,!0x1,!0x1);_0x5c422b['rangesInfo']={'rowRanges':_0xca323b,'colRanges':_0xfbaf64,'cornerRanges':_0x61dba8,'dataRanges':_0x3fcfe2,'pageRanges':_0x5a48c4};const _0x5a96e4=yi(this['_injector'],_0x47407e,_0x527ca3,this[_0x44650c(0x13c)]),{valueMatrix:_0xb6a1d9,rowInfo:_0x1ca03a,colInfo:_0x114457,cornerInfo:_0x353727,rowHeaderMap:_0x5d538a,colHeaderMap:_0x205f89}=_0x5a96e4;return _0x5c422b[_0x44650c(0x11f)]={'rowInfo':_0x1ca03a,'colInfo':_0x114457,'cornerInfo':_0x353727},_0x5c422b[_0x44650c(0x2a4)]={'rowHeaderMap':_0x5d538a,'colHeaderMap':_0x205f89},_0xb6a1d9['forEach']((_0x12e64b,_0x272ca1)=>{const _0x448e77=_0x44650c;Object[_0x448e77(0x20d)](_0x272ca1)['forEach'](_0x3c226b=>{const _0x382ea6=_0x448e77,_0x3fa727=+_0x3c226b,_0x480d96=_0xb6a1d9[_0x382ea6(0x19e)](_0x12e64b,_0x3fa727);_0x493478[_0x382ea6(0x342)](_0x12e64b,_0x3fa727,_0x480d96);});}),this[_0x44650c(0x2bb)][_0x44650c(0x1e1)]({'unitId':_0x3e09a8,'subUnitId':_0xb1538c,'valueMatrix':_0x493478,'rangesCache':_0x5c422b[_0x44650c(0x24c)],'pivotTableId':_0x5d410,'type':_0x2e8fd7[_0x44650c(0x2a5)]}),this[_0x44650c(0x27a)][_0x44650c(0x2f7)](_0x3e09a8,_0xb1538c,_0x5d410,_0x493478,_0x5c422b['rangesInfo']),this['_exclusiveRangeService']['addExclusiveRange'](_0x3e09a8,_0xb1538c,Bt,this[_0x44650c(0x2d7)](_0x5c422b['rangesInfo'],_0x5d410)),{'rangeCache':_0x5c422b[_0x44650c(0x24c)],'matrix':_0x493478};}}[_0x1573ee(0x28e)](_0x226bdd,_0x2ceffe,_0x1821d3,_0x38f87e){const _0x2bc78b=_0x1573ee,_0x30e639=this[_0x2bc78b(0x263)]['t'],{unitId:_0x3afd9f,subUnitId:_0x5abe0e,pivotTableId:_0x505b58}=_0x226bdd,_0x10789d={'filter':_0x30e639(_0x2bc78b(0x1e6)),'row':_0x30e639('sheets-pivot.emptyPivot.row'),'column':_0x30e639(_0x2bc78b(0x27d)),'values':_0x30e639(_0x2bc78b(0x111))},{matrixCache:_0x497961,rangesCache:_0x622282}=Ko(_0x10789d,_0x1821d3);return _0x497961[_0x2bc78b(0x305)]((_0x25d604,_0x1fe871,_0x27f9c0)=>{const _0x256d24=_0x2bc78b;_0x2ceffe[_0x256d24(0x342)](_0x25d604,_0x1fe871,_0x27f9c0);}),_0x38f87e[_0x2bc78b(0x24c)]=_0x622282,this[_0x2bc78b(0x2bb)][_0x2bc78b(0x1e1)]({'unitId':_0x3afd9f,'subUnitId':_0x5abe0e,'valueMatrix':_0x2ceffe,'rangesCache':_0x622282,'pivotTableId':_0x505b58,'type':_0x226bdd[_0x2bc78b(0x2a5)],'isEmpty':!0x0}),this[_0x2bc78b(0x27a)][_0x2bc78b(0x2f7)](_0x3afd9f,_0x5abe0e,_0x505b58,_0x2ceffe,_0x622282),this[_0x2bc78b(0x204)]['addExclusiveRange'](_0x3afd9f,_0x5abe0e,Bt,this[_0x2bc78b(0x2d7)](_0x622282,_0x505b58)),{'rangeCache':_0x38f87e[_0x2bc78b(0x24c)],'matrix':_0x2ceffe};}[_0x1573ee(0x2d7)](_0x3fdf24,_0x2fe025){const _0x3af953=_0x1573ee,_0x15037e=[],_0x4162d7=$t(_0x3fdf24);for(const _0x567c3c of _0x4162d7)_0x15037e[_0x3af953(0x1c1)]({'groupId':_0x2fe025,'range':_0x567c3c});return _0x15037e;}[_0x1573ee(0x255)](_0x1397bd){const _0x6a8842=_0x1573ee;var _0x11d3ef,_0x11426f,_0x38b39a,_0x169a1f;const {pivotTableId:_0x5b3c13,unitId:_0x9aacec,subUnitId:_0x33c73e}=_0x1397bd;if(!_0x5b3c13||!_0x9aacec||!_0x33c73e)return;const _0x2ddba9=this[_0x6a8842(0x266)](_0x9aacec,_0x33c73e),_0x50f55a=(_0x11426f=(_0x11d3ef=this[_0x6a8842(0x101)]['get'](_0x9aacec))==null?void 0x0:_0x11d3ef[_0x6a8842(0xfa)](_0x33c73e))==null?void 0x0:_0x11426f[_0x6a8842(0xfa)](_0x5b3c13);if(_0x50f55a!=null&&_0x50f55a[_0x6a8842(0x24c)]){for(const _0x5c001d of Object['keys'](_0x50f55a[_0x6a8842(0x24c)]))_0x50f55a[_0x6a8842(0x24c)][_0x5c001d]['forEach'](_0x10addb=>{const _0x18932c=_0x6a8842;for(let _0x548da8=_0x10addb[_0x18932c(0x272)];_0x548da8<=_0x10addb[_0x18932c(0x130)];_0x548da8++)for(let _0x3f4bca=_0x10addb[_0x18932c(0x2d1)];_0x3f4bca<=_0x10addb[_0x18932c(0x1b0)];_0x3f4bca++)_0x2ddba9['realDeleteValue'](_0x548da8,_0x3f4bca);});}_0x50f55a&&((_0x169a1f=(_0x38b39a=this['_pivotRenderInfoCache']['get'](_0x9aacec))==null?void 0x0:_0x38b39a['get'](_0x33c73e))==null||_0x169a1f[_0x6a8842(0x124)](_0x5b3c13)),this['_viewUpdate$'][_0x6a8842(0x1e1)]({'unitId':_0x9aacec,'subUnitId':_0x33c73e,'valueMatrix':_0x2ddba9,'pivotTableId':_0x5b3c13,'rangesCache':void 0x0,'type':_0x1397bd[_0x6a8842(0x2a5)]}),this['_exclusiveRangeService'][_0x6a8842(0x350)](_0x9aacec,_0x33c73e,Bt,_0x5b3c13);}['_ensurePivotItemRenderInfoCache'](_0x37fd7c,_0x5ea897,_0x168d92){const _0x3bc669=_0x1573ee;var _0x2fd087,_0x2cb0b3,_0x26868c,_0x1de230,_0x167c63,_0xe628c1;return this[_0x3bc669(0x101)][_0x3bc669(0x281)](_0x37fd7c)||this[_0x3bc669(0x101)][_0x3bc669(0xc9)](_0x37fd7c,new Map()),(_0x2fd087=this[_0x3bc669(0x101)][_0x3bc669(0xfa)](_0x37fd7c))!=null&&_0x2fd087[_0x3bc669(0x281)](_0x5ea897)||(_0x2cb0b3=this[_0x3bc669(0x101)]['get'](_0x37fd7c))==null||_0x2cb0b3[_0x3bc669(0xc9)](_0x5ea897,new Map()),(_0x1de230=(_0x26868c=this[_0x3bc669(0x101)][_0x3bc669(0xfa)](_0x37fd7c))==null?void 0x0:_0x26868c[_0x3bc669(0xfa)](_0x5ea897))!=null&&_0x1de230[_0x3bc669(0x281)](_0x168d92)||(_0xe628c1=(_0x167c63=this[_0x3bc669(0x101)]['get'](_0x37fd7c))==null?void 0x0:_0x167c63[_0x3bc669(0xfa)](_0x5ea897))==null||_0xe628c1[_0x3bc669(0xc9)](_0x168d92,{}),this[_0x3bc669(0x101)]['get'](_0x37fd7c)[_0x3bc669(0xfa)](_0x5ea897)[_0x3bc669(0xfa)](_0x168d92);}[_0x1573ee(0x266)](_0x3712ad,_0x207760){const _0x23f3bd=_0x1573ee;var _0x305443,_0x377a36;return this['_pivotRenderValueMatrixCache'][_0x23f3bd(0x281)](_0x3712ad)||this[_0x23f3bd(0x295)][_0x23f3bd(0xc9)](_0x3712ad,new Map()),(_0x305443=this[_0x23f3bd(0x295)][_0x23f3bd(0xfa)](_0x3712ad))!=null&&_0x305443[_0x23f3bd(0x281)](_0x207760)||(_0x377a36=this[_0x23f3bd(0x295)][_0x23f3bd(0xfa)](_0x3712ad))==null||_0x377a36[_0x23f3bd(0xc9)](_0x207760,new _0x3ea36a()),this[_0x23f3bd(0x295)][_0x23f3bd(0xfa)](_0x3712ad)[_0x23f3bd(0xfa)](_0x207760);}['getPivotTableCellData'](_0x2ca5f7,_0x487d98,_0x109b39,_0x5341bb){const _0x1c0550=_0x1573ee;var _0x1f52df,_0x225c7a;const _0x279895=(_0x225c7a=(_0x1f52df=this[_0x1c0550(0x295)][_0x1c0550(0xfa)](_0x2ca5f7))==null?void 0x0:_0x1f52df['get'](_0x487d98))==null?void 0x0:_0x225c7a[_0x1c0550(0x19e)](_0x109b39,_0x5341bb);if(_0x279895!=null)return _0x279895;}[_0x1573ee(0x1cf)](_0xd621d5,_0x4252c9,_0xb3afcf,_0x2268c9){const _0x93e3c0=_0x1573ee;var _0x3307f7;const _0x1092b5=_0x133dd5(_0xb3afcf,_0x2268c9),_0x253d35=(_0x3307f7=this[_0x93e3c0(0x101)][_0x93e3c0(0xfa)](_0xd621d5))==null?void 0x0:_0x3307f7[_0x93e3c0(0xfa)](_0x4252c9);return _0x253d35?Array[_0x93e3c0(0x25b)](_0x253d35[_0x93e3c0(0x20d)]())[_0x93e3c0(0x214)](_0x17256a=>{const _0xd471e0=_0x93e3c0,_0x266db4=_0x253d35[_0xd471e0(0xfa)](_0x17256a),_0x36c89e=_0x266db4==null?void 0x0:_0x266db4['rangesInfo'];return _0x36c89e?Object['keys'](_0x36c89e)['some'](_0x2e9cb3=>_0x36c89e[_0x2e9cb3][_0xd471e0(0x2a3)](_0x1d42f8=>_0xcfdf09[_0xd471e0(0x245)](_0x1d42f8,_0x1092b5))):!0x1;}):void 0x0;}[_0x1573ee(0x136)](_0x7a3ed,_0x7f3ab9,_0x4ee535){const _0x4f20b7=_0x1573ee;var _0x71e5c9;const _0x13ea3a=(_0x71e5c9=this[_0x4f20b7(0x101)][_0x4f20b7(0xfa)](_0x7a3ed))==null?void 0x0:_0x71e5c9[_0x4f20b7(0xfa)](_0x7f3ab9),_0x22e719=[];return _0x13ea3a&&Array['from'](_0x13ea3a['keys']())[_0x4f20b7(0x25d)](_0x4427d7=>{const _0x1e4373=_0x4f20b7,_0x550a0c=_0x13ea3a[_0x1e4373(0xfa)](_0x4427d7),_0x82bf63=_0x550a0c==null?void 0x0:_0x550a0c[_0x1e4373(0x24c)];if(_0x82bf63)for(const _0x36ddf5 of Object[_0x1e4373(0x197)](_0x82bf63)){let _0x5753ed=!0x1;for(const _0x51a0ea of _0x36ddf5)if(_0xcfdf09[_0x1e4373(0x2d6)](_0x51a0ea,_0x4ee535)){_0x22e719['push'](_0x4427d7),_0x5753ed=!0x0;break;}if(_0x5753ed)break;}}),_0x22e719;}[_0x1573ee(0x12a)](_0x3bb923,_0x4f98b5){const _0x5c5898=_0x1573ee;var _0xb6c61b,_0x3b32ef;return(_0x3b32ef=(_0xb6c61b=this[_0x5c5898(0x295)][_0x5c5898(0xfa)](_0x3bb923))==null?void 0x0:_0xb6c61b['get'](_0x4f98b5))!=null?_0x3b32ef:new _0x3ea36a();}[_0x1573ee(0x2db)](_0x2afafd,_0x143d04){const _0xcf75a2=_0x1573ee;var _0x57593;return(_0x57593=this['_pivotRenderInfoCache'][_0xcf75a2(0xfa)](_0x2afafd))==null?void 0x0:_0x57593[_0xcf75a2(0xfa)](_0x143d04);}['getPivotItemRenderInfoCache'](_0x1a0da4,_0x5bd999,_0x1e8c6e){const _0xf83f41=_0x1573ee;var _0x39b91f,_0x10c787;return(_0x10c787=(_0x39b91f=this[_0xf83f41(0x101)]['get'](_0x1a0da4))==null?void 0x0:_0x39b91f[_0xf83f41(0xfa)](_0x5bd999))==null?void 0x0:_0x10c787[_0xf83f41(0xfa)](_0x1e8c6e);}[_0x1573ee(0x2b0)](_0x2c56ac){const _0x40918b=_0x1573ee;this[_0x40918b(0x101)][_0x40918b(0x124)](_0x2c56ac),this[_0x40918b(0x295)][_0x40918b(0x124)](_0x2c56ac);}[_0x1573ee(0x1a7)](_0x30dd88,_0x4ba8bf){const _0xbf5b7e=_0x1573ee;this[_0xbf5b7e(0x16c)]['next']({'unitId':_0x30dd88,'subUnitId':_0x4ba8bf});}};Ue=Xi([st(0x0,_0x24210e(_0x46f29a)),st(0x1,_0x24210e(_0x220342)),st(0x2,_0x24210e(ve)),st(0x3,_0x24210e(_0x144d54)),st(0x4,_0x24210e(_0x48cef8))],Ue);var Zi=Object[_0x1573ee(0x1f2)],es=(_0x594afa,_0x24d174,_0xe318ab,_0x2f7f30)=>{for(var _0x4e6b72=_0x2f7f30>0x1?void 0x0:_0x2f7f30?Zi(_0x24d174,_0xe318ab):_0x24d174,_0x1f0c2c=_0x594afa['length']-0x1,_0x401ff1;_0x1f0c2c>=0x0;_0x1f0c2c--)(_0x401ff1=_0x594afa[_0x1f0c2c])&&(_0x4e6b72=_0x401ff1(_0x4e6b72)||_0x4e6b72);return _0x4e6b72;},Ro=(_0x112ce6,_0x464d55)=>(_0x2657ee,_0x58d0ae)=>_0x464d55(_0x2657ee,_0x58d0ae,_0x112ce6);let ie=class extends _0x163111{constructor(_0x42e9d8,_0xf1eb86){const _0x1a71ca=_0x1573ee;super(),N(this,'asyncInterceptor',new _0x59c27d({'PIVOT_PERFORM_CHECK':be})),N(this,_0x1a71ca(0x239),new _0x3a7928({'PIVOT_MUTATION_GENERATE':jo})),(this[_0x1a71ca(0x29b)]=_0x42e9d8,this[_0x1a71ca(0x15e)]=_0xf1eb86,this[_0x1a71ca(0x144)]());}[_0x1573ee(0x144)](){const _0x3e2fed=_0x1573ee;this[_0x3e2fed(0x2cd)]();}['getPivotPerformCheck'](_0x4683c8){const _0x4fb710=_0x1573ee;return this['asyncInterceptor'][_0x4fb710(0x276)](be)(!0x1,_0x4683c8);}['_initViewModelBySheetInterceptor'](){const _0x480469=_0x1573ee;this['disposeWithMe'](this[_0x480469(0x29b)][_0x480469(0x242)](_0x536b79[_0x480469(0x1fb)],{'priority':0xc8,'effect':_0x38ab15[_0x480469(0x24d)]|_0x38ab15['Style'],'handler':(_0x12e7a7,_0x5e7218,_0x565034)=>{const _0x585523=_0x480469,{row:_0x31c2ad,col:_0x30d8ab,unitId:_0x2d027b,subUnitId:_0x3ab698,workbook:_0x209532}=_0x5e7218,_0xa5d43f=this['_sheetsPivotTableAdaptorModel'][_0x585523(0x2b1)](_0x2d027b,_0x3ab698,_0x31c2ad,_0x30d8ab);if(!_0xa5d43f)return _0x565034(_0x12e7a7);const _0x12e840={..._0x12e7a7};(_0xa5d43f['v']||_0xa5d43f['v']===0x0)&&(_0x12e840['v']=_0xa5d43f['v']),_0xa5d43f['t']&&(_0x12e840['t']=_0xa5d43f['t']);const _0x112803=(typeof(_0x12e7a7==null?void 0x0:_0x12e7a7['s'])==_0x585523(0x158)?_0x209532[_0x585523(0xdc)]()['get'](_0x12e7a7==null?void 0x0:_0x12e7a7['s']):_0x12e7a7==null?void 0x0:_0x12e7a7['s'])||{},_0x4ee482=_0x209532[_0x585523(0xdc)]()[_0x585523(0xfa)](_0xa5d43f['s']),_0x112025={..._0x4ee482,..._0x112803};_0x4ee482!=null&&_0x4ee482['n']&&(_0x112025['n']=_0x4ee482['n']);const _0x3b9034=_0x209532[_0x585523(0xdc)]()[_0x585523(0x342)](_0x112025);return _0x12e840['s']=_0x3b9034,(_0xa5d43f[_0x585523(0x335)]===_0x30de63[_0x585523(0x12c)]||_0xa5d43f['pbt']===_0x30de63[_0x585523(0x1f6)])&&(_0x12e840[_0x585523(0x1b3)]={},_0x12e840[_0x585523(0x1b3)][_0x585523(0x15f)]=li),_0x565034(_0x12e840);}}));}};ie=es([Ro(0x0,_0x24210e(_0x564c44)),Ro(0x1,_0x24210e(Ue))],ie);const zo={'id':'sheet.mutation.add-group-collection','type':_0x4461d6[_0x1573ee(0x1d0)],'handler':(_0x553603,_0x58fe3f)=>{const _0x444cde=_0x1573ee;if(!_0x58fe3f)return!0x1;if(!!_0x553603[_0x444cde(0xfa)](_0xca9673)[_0x444cde(0x225)](Q))return!0x0;const {pivotTableId:_0x4476db,fieldJSON:_0xc234e5,unitId:_0x10cf27,subUnitId:_0x2ef71b}=_0x58fe3f;let _0x2972cd;const {dataFieldType:_0x40b501,id:_0x59fa7a,name:_0x450ad7,hexCode:_0x15412a,originalFieldId:_0x4decea}=_0xc234e5;if(_0x40b501===_0x10836a['dateGroupField']&&(_0x2972cd=new _0x5bd763(_0x59fa7a,_0x450ad7,_0x15412a,_0x4decea)),!_0x2972cd)return!0x1;const _0x6596f6=_0x553603['get'](W),_0x5ed91d=_0x6596f6['getDataFieldManager'](_0x10cf27),_0x5095d8=_0x5ed91d['getCollection'](_0x4476db);_0x5ed91d[_0x444cde(0x15b)](_0x2972cd),_0x5095d8[_0x444cde(0x150)](_0x2972cd[_0x444cde(0x223)](),_0x2972cd['getName']());const _0xb98211=_0x5095d8[_0x444cde(0x2d3)](_0x2972cd['getOriginFieldId']());_0xb98211&&_0x2972cd[_0x444cde(0x159)](_0xb98211);const _0xe84fc6=_0x6596f6[_0x444cde(0x200)](_0x10cf27,_0x2ef71b,_0x4476db);return _0x6596f6[_0x444cde(0x22b)]({'unitId':_0x10cf27,'subUnitId':_0x2ef71b,'token':_0x4476db,'type':$[_0x444cde(0x29a)],'pivotConfig':_0xe84fc6}),!0x0;}},Xo={'id':_0x1573ee(0x2ec),'type':_0x4461d6[_0x1573ee(0x1d0)],'handler':(_0x2b19d4,_0x583249)=>{const _0x24e6e7=_0x1573ee;if(!_0x583249)return!0x1;if(!!_0x2b19d4[_0x24e6e7(0xfa)](_0xca9673)[_0x24e6e7(0x225)](Q))return!0x0;const {pivotTableId:_0xe67fba,dataFieldId:_0x44fb22,unitId:_0xa481ad,subUnitId:_0x453722}=_0x583249,_0x5e110c=_0x2b19d4['get'](W),_0x2c4341=_0x5e110c[_0x24e6e7(0xff)](_0xa481ad);_0x2c4341[_0x24e6e7(0x22d)](_0xe67fba)['deleteField'](_0x44fb22);let _0x29d039=!0x0;for(const _0x432597 in _0x2c4341[_0x24e6e7(0x217)])if(_0x2c4341['collections'][_0x432597]['getFieldIds']()['includes'](_0x44fb22)){_0x29d039=!0x1;break;}_0x29d039&&_0x2c4341[_0x24e6e7(0x33c)](_0x44fb22);const _0x55d8af=_0x5e110c['getPivotTableConfig'](_0xa481ad,_0x453722,_0xe67fba);return _0x5e110c[_0x24e6e7(0x22b)]({'unitId':_0xa481ad,'subUnitId':_0x453722,'token':_0xe67fba,'type':$[_0x24e6e7(0x29a)],'pivotConfig':_0x55d8af}),!0x0;}};function Ut(_0xf8f08a,_0x2c3a21){const _0x126835=_0x1573ee;switch(_0x2c3a21){case _0x584946[_0x126835(0x24d)]:return _0xf8f08a['valueFields'];case _0x584946[_0x126835(0x10c)]:return _0xf8f08a['filterFields'];case _0x584946['Row']:return _0xf8f08a[_0x126835(0x2bf)];case _0x584946[_0x126835(0xd6)]:return _0xf8f08a[_0x126835(0x148)];default:return[];}}function Je(_0x1b1de8,_0x4a1106){const _0xafbbfc=_0x1573ee;return _0x1b1de8[_0xafbbfc(0x345)][_0x4a1106]||_0x1b1de8[_0xafbbfc(0x12d)][_0x4a1106];}function ts(_0x3df650,_0x4afa8e){const _0x12d0da=_0x1573ee,{area:_0x2b72ef,fieldJson:_0x3035de,index:_0x1f6c63}=_0x4afa8e;_0x2b72ef===_0x584946[_0x12d0da(0x24d)]?_0x3df650[_0x12d0da(0x345)][_0x3035de['id']]=_0x3035de:_0x3df650[_0x12d0da(0x12d)][_0x3035de['id']]=_0x3035de,Ut(_0x3df650,_0x2b72ef)[_0x12d0da(0x1f5)](_0x1f6c63,0x0,_0x3035de['id']);}function os(_0x5e7817,_0x29ef33){const _0x5f24d3=_0x1573ee,{area:_0x42d10f,fieldId:_0x32bb01,index:_0x12bfba}=_0x29ef33;_0x42d10f===_0x584946[_0x5f24d3(0x24d)]?delete _0x5e7817[_0x5f24d3(0x345)][_0x32bb01]:delete _0x5e7817[_0x5f24d3(0x12d)][_0x32bb01],Ut(_0x5e7817,_0x42d10f)['splice'](_0x12bfba,0x1);}function ns(_0xbe5e21,_0x3e7969){const _0xf4b6eb=_0x1573ee,{fieldId:_0x30770c,name:_0x104480}=_0x3e7969,_0x4a5a8d=Je(_0xbe5e21,_0x30770c);_0x4a5a8d&&(_0x4a5a8d[_0xf4b6eb(0x2e0)]=_0x104480);}function is(_0x40eb47,_0x9f8d1){const _0x13b37b=_0x1573ee,{fieldId:_0x562608,collapse:_0x83c117,item:_0x311a58}=_0x9f8d1;_0x311a58!==void 0x0?(_0x40eb47[_0x13b37b(0x128)][_0x562608]=_0x40eb47[_0x13b37b(0x128)][_0x562608]||{},_0x40eb47[_0x13b37b(0x128)][_0x562608][_0x311a58]=_0x83c117):_0x40eb47[_0x13b37b(0x128)][_0x562608]=_0x83c117;}function ss(_0x52b942,_0x46b690){const _0x3c3a39=_0x1573ee,{fieldId:_0x4335fe,format:_0x396efe}=_0x46b690,_0x3ad0c1=Je(_0x52b942,_0x4335fe);_0x3ad0c1&&(_0x3ad0c1[_0x3c3a39(0x147)]=_0x396efe);}function as(_0x4b063c,_0x452c0a){const _0x416d43=_0x1573ee,{fieldId:_0x47f771,filterInfo:_0x9f7d16}=_0x452c0a,_0x520913=Je(_0x4b063c,_0x47f771);_0x520913&&(_0x520913[_0x416d43(0x30c)]=_0x9f7d16);}function rs(_0x4cfc33,_0x187ee2){const _0x1ba3ec=_0x1573ee,{fieldId:_0x4ed2ad,filterInfo:_0xfe43bf}=_0x187ee2,_0x2f8e84=_0x4cfc33[_0x1ba3ec(0x20e)]['filter'](_0x5cf9ec=>_0x5cf9ec[_0x1ba3ec(0x11b)]!==_0x4ed2ad);_0xfe43bf&&_0x2f8e84['push']({'fieldId':_0x4ed2ad,'filterInfo':_0xfe43bf}),_0x4cfc33[_0x1ba3ec(0x20e)]=_0x2f8e84;}function ls(_0x46ba60,_0xee4bf9){const _0x2a396e=_0x1573ee,{fieldId:_0x2d55f3,subtotalType:_0x5bbe95}=_0xee4bf9,_0x90acf0=Je(_0x46ba60,_0x2d55f3);_0x90acf0&&(_0x90acf0[_0x2a396e(0x133)]=_0x5bbe95);}function ds(_0x33a2eb,_0x437f68){const _0x2df7ad=_0x1573ee,{fieldId:_0x104060,oldArea:_0x32df6c,area:_0x178f6e,oldIndex:_0x535059,index:_0x3e1e3b}=_0x437f68,_0x5d4825=_0x32df6c!==_0x584946['Value']&&_0x178f6e===_0x584946[_0x2df7ad(0x24d)],_0x2faa41=_0x32df6c===_0x584946['Value']&&_0x178f6e!==_0x584946[_0x2df7ad(0x24d)];if(_0x5d4825||_0x2faa41){const _0x27ecac=Je(_0x33a2eb,_0x104060);_0x27ecac&&(_0x5d4825?(delete _0x33a2eb[_0x2df7ad(0x12d)][_0x104060],_0x33a2eb[_0x2df7ad(0x345)][_0x104060]=_0x27ecac):(delete _0x33a2eb['measure'][_0x104060],_0x33a2eb['dimension'][_0x104060]=_0x27ecac));}const _0x371cdd=Ut(_0x33a2eb,_0x32df6c),_0x7cce3e=Ut(_0x33a2eb,_0x178f6e);_0x371cdd['splice'](_0x535059,0x1),_0x7cce3e['splice'](_0x3e1e3b,0x0,_0x104060);}function cs(_0x215f47,_0x2fd3ed){const _0x5df42c=_0x1573ee,{valuePosition:_0x5ea080,index:_0x28498}=_0x2fd3ed;_0x215f47[_0x5df42c(0x19b)]=_0x5ea080,_0x215f47['valueIndex']=_0x28498;}function us(_0x34bc39,_0xdbb494){const _0x192e3e=_0x1573ee,{tableFieldId:_0x424b19,sourceName:_0x2f4333,dataFieldId:_0x5c7aa9}=_0xdbb494,_0x348eda=Je(_0x34bc39,_0x424b19);_0x348eda&&(_0x348eda[_0x192e3e(0x321)]=_0x2f4333,_0x348eda[_0x192e3e(0x2a0)]=_0x5c7aa9);}function fs(_0x1a7810,_0x133799){const _0x2e9d95=_0x1573ee,{fieldId:_0x3d2709,sortInfo:_0x3266f1}=_0x133799,_0x4b8e11=Je(_0x1a7810,_0x3d2709);_0x4b8e11&&(_0x4b8e11[_0x2e9d95(0x109)]=_0x3266f1);}function gs(_0x104132,_0x5597d9){const _0x3318c5=_0x1573ee,{options:_0x3c9ab8}=_0x5597d9;_0x104132[_0x3318c5(0xde)]={..._0x104132[_0x3318c5(0xde)],..._0x3c9ab8};}const Wt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x137),'handler'(_0x4b2c7,_0x9a81d6){const _0xac3243=_0x1573ee;if(!_0x9a81d6)return!0x1;if(!!_0x4b2c7[_0xac3243(0xfa)](_0xca9673)['getConfig'](Q))return!0x0;const _0x1264e0=_0x4b2c7['get'](W),{pivotTableId:_0x4c549e,fieldJson:_0x1fe323,area:_0x5f1839,index:_0x53bc44,unitId:_0x316eb9,subUnitId:_0x5a2bfa}=_0x9a81d6,_0x5df6d7=_0x1264e0[_0xac3243(0xca)](_0x4c549e);if(!_0x5df6d7)return!0x1;let _0xa7acc7;_0x5f1839===_0x584946[_0xac3243(0x24d)]?_0xa7acc7=_0x2324f6(_0x1fe323):_0xa7acc7=_0x4e2c20(_0x1fe323),_0x5df6d7[_0xac3243(0x150)](_0xa7acc7,_0x5f1839,_0x53bc44);const _0x16d6e6=_0x1264e0['getPivotTableModelConfig'](_0x316eb9,_0x5a2bfa,_0x4c549e);ts(_0x16d6e6,_0x9a81d6);const _0x210418=_0x1264e0[_0xac3243(0x200)](_0x316eb9,_0x5a2bfa,_0x4c549e);return _0x1264e0[_0xac3243(0x22b)]({'unitId':_0x316eb9,'subUnitId':_0x5a2bfa,'token':_0x4c549e,'type':$[_0xac3243(0x29a)],'pivotConfig':_0x210418}),!0x0;}},jt={'type':_0x4461d6['MUTATION'],'id':'sheet.mutation.remove-pivot-field','handler'(_0x1cafb7,_0xdf0cfc){const _0x4d4dbd=_0x1573ee;if(!_0xdf0cfc)return!0x1;if(!!_0x1cafb7[_0x4d4dbd(0xfa)](_0xca9673)[_0x4d4dbd(0x225)](Q))return!0x0;const _0x357393=_0x1cafb7[_0x4d4dbd(0xfa)](W),{pivotTableId:_0x2182f5,fieldId:_0x29a026,unitId:_0x146709,subUnitId:_0x2437da}=_0xdf0cfc,_0x4b195d=_0x357393[_0x4d4dbd(0xca)](_0x2182f5);if(!_0x4b195d)return!0x1;_0x4b195d['removeField'](_0x29a026);const _0x247c9d=_0x357393[_0x4d4dbd(0x183)](_0x146709,_0x2437da,_0x2182f5);os(_0x247c9d,_0xdf0cfc);const _0x41777f=_0x357393[_0x4d4dbd(0x200)](_0x146709,_0x2437da,_0x2182f5);return _0x357393[_0x4d4dbd(0x22b)]({'unitId':_0x146709,'subUnitId':_0x2437da,'token':_0x2182f5,'type':$['Set'],'pivotConfig':_0x41777f}),!0x0;}},Jt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x31e),'handler'(_0x1e468b,_0x260dc2){const _0x4b5734=_0x1573ee;if(!_0x260dc2)return!0x1;if(!!_0x1e468b[_0x4b5734(0xfa)](_0xca9673)['getConfig'](Q))return!0x0;const _0x1d5aad=_0x1e468b[_0x4b5734(0xfa)](W),{unitId:_0x4097f3,subUnitId:_0x20a470,pivotTableId:_0x572098,fieldId:_0x3afdfd,name:_0x5e0116}=_0x260dc2,_0xd70fcf=_0x1d5aad['getPivotTableInstance'](_0x572098);if(!_0xd70fcf)return!0x1;_0xd70fcf['renameField'](_0x3afdfd,_0x5e0116);const _0x5d32e5=_0x1d5aad[_0x4b5734(0x183)](_0x4097f3,_0x20a470,_0x572098);return ns(_0x5d32e5,_0x260dc2),_0x1d5aad['addDirtyPivotTable']({'unitId':_0x4097f3,'subUnitId':_0x20a470,'token':_0x572098,'type':$[_0x4b5734(0x29a)]}),!0x0;}},Gt={'type':_0x4461d6['MUTATION'],'id':_0x1573ee(0x2c2),'handler'(_0x139345,_0x694460){const _0x124776=_0x1573ee;if(!_0x694460)return!0x1;if(!!_0x139345[_0x124776(0xfa)](_0xca9673)[_0x124776(0x225)](Q))return!0x0;const _0x415e51=_0x139345['get'](W),{unitId:_0x1be66f,subUnitId:_0x4eb608,pivotTableId:_0x1dcd5c,fieldId:_0x2533a9,collapse:_0x2dd70d,item:_0x4bcc51}=_0x694460,_0x969721=_0x415e51[_0x124776(0xca)](_0x1dcd5c);if(!_0x969721)return!0x1;_0x969721['setCollapse'](_0x2533a9,_0x2dd70d,_0x4bcc51);const _0x3d874c=_0x415e51['getPivotTableModelConfig'](_0x1be66f,_0x4eb608,_0x1dcd5c);return is(_0x3d874c,_0x694460),_0x415e51['addDirtyPivotTable']({'unitId':_0x1be66f,'subUnitId':_0x4eb608,'token':_0x1dcd5c,'type':$[_0x124776(0x29a)]}),!0x0;}},Kt={'type':_0x4461d6['MUTATION'],'id':_0x1573ee(0x172),'handler'(_0xfa598b,_0x506ce5){const _0x28da6b=_0x1573ee;if(!_0x506ce5)return!0x1;if(!!_0xfa598b[_0x28da6b(0xfa)](_0xca9673)[_0x28da6b(0x225)](Q))return!0x0;const _0x4e4a6b=_0xfa598b[_0x28da6b(0xfa)](W),{unitId:_0x5567d3,subUnitId:_0x273982,pivotTableId:_0x286bad,fieldId:_0x2a9ff5,format:_0x281874}=_0x506ce5,_0x1f4a26=_0x4e4a6b[_0x28da6b(0xca)](_0x286bad);if(!_0x1f4a26)return!0x1;_0x1f4a26['setFieldFormat'](_0x2a9ff5,_0x281874);const _0x5ce133=_0x4e4a6b[_0x28da6b(0x183)](_0x5567d3,_0x273982,_0x286bad);return ss(_0x5ce133,_0x506ce5),_0x4e4a6b[_0x28da6b(0x22b)]({'unitId':_0x5567d3,'subUnitId':_0x273982,'token':_0x286bad,'type':$[_0x28da6b(0x29a)]}),!0x0;}},Ht={'type':_0x4461d6['MUTATION'],'id':'sheet.mutation.set-pivot-filter','handler'(_0x15b315,_0x375d13){const _0x40d23d=_0x1573ee;if(!_0x375d13)return!0x1;if(!!_0x15b315[_0x40d23d(0xfa)](_0xca9673)[_0x40d23d(0x225)](Q))return!0x0;const _0x1160ec=_0x15b315[_0x40d23d(0xfa)](W),{unitId:_0xc908d8,subUnitId:_0x3e029b,pivotTableId:_0x399a39,fieldId:_0x57f526,filterInfo:_0xd2fc83}=_0x375d13,_0x50586c=_0x1160ec[_0x40d23d(0xca)](_0x399a39);if(!_0x50586c)return!0x1;_0x50586c[_0x40d23d(0x177)](_0x57f526,_0xd2fc83);const _0x2761bc=_0x1160ec[_0x40d23d(0x183)](_0xc908d8,_0x3e029b,_0x399a39);return as(_0x2761bc,_0x375d13),_0x1160ec[_0x40d23d(0x22b)]({'unitId':_0xc908d8,'subUnitId':_0x3e029b,'token':_0x399a39,'type':$['Set']}),!0x0;}},qt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x312),'handler'(_0x3ac6d4,_0x4bbaf8){const _0x20c777=_0x1573ee;if(!_0x4bbaf8)return!0x1;if(!!_0x3ac6d4[_0x20c777(0xfa)](_0xca9673)[_0x20c777(0x225)](Q))return!0x0;const _0x249212=_0x3ac6d4[_0x20c777(0xfa)](W),{unitId:_0x19dd34,subUnitId:_0x5975f8,pivotTableId:_0x3f60d1,options:_0xc6c849}=_0x4bbaf8,_0x54f2a4=_0x249212[_0x20c777(0xca)](_0x3f60d1);if(!_0x54f2a4)return!0x1;_0x54f2a4[_0x20c777(0x1b5)](_0xc6c849);const _0x2e901d=_0x249212[_0x20c777(0x183)](_0x19dd34,_0x5975f8,_0x3f60d1);return gs(_0x2e901d,_0x4bbaf8),_0x249212['addDirtyPivotTable']({'unitId':_0x19dd34,'subUnitId':_0x5975f8,'token':_0x3f60d1,'type':$[_0x20c777(0x29a)]}),!0x0;}},Yt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x33f),'handler'(_0x92707d,_0x4ed291){const _0x51b1be=_0x1573ee;if(!_0x4ed291)return!0x1;if(!!_0x92707d[_0x51b1be(0xfa)](_0xca9673)[_0x51b1be(0x225)](Q))return!0x0;const _0x109f83=_0x92707d['get'](W),{unitId:_0xccfeb1,subUnitId:_0x45bb29,pivotTableId:_0x2e5b61,sortInfo:_0x560b1a,fieldId:_0x192696}=_0x4ed291,_0x3c56a4=_0x109f83[_0x51b1be(0xca)](_0x2e5b61);if(!_0x3c56a4)return!0x1;_0x3c56a4[_0x51b1be(0xf5)](_0x192696,_0x560b1a);const _0x44b674=_0x109f83['getPivotTableModelConfig'](_0xccfeb1,_0x45bb29,_0x2e5b61);return fs(_0x44b674,_0x4ed291),_0x109f83['addDirtyPivotTable']({'unitId':_0xccfeb1,'subUnitId':_0x45bb29,'token':_0x2e5b61,'type':$[_0x51b1be(0x29a)]}),!0x0;}},Qt={'type':_0x4461d6['MUTATION'],'id':_0x1573ee(0x252),'handler'(_0x855252,_0x13c91c){const _0x3a670b=_0x1573ee;if(!_0x13c91c)return!0x1;if(!!_0x855252[_0x3a670b(0xfa)](_0xca9673)[_0x3a670b(0x225)](Q))return!0x0;const _0x55ef07=_0x855252[_0x3a670b(0xfa)](W),{unitId:_0x7b51cb,subUnitId:_0x399906,pivotTableId:_0x327835,fieldId:_0x3c8f89,subtotalType:_0x38f138}=_0x13c91c,_0x2bec1a=_0x55ef07['getPivotTableInstance'](_0x327835);if(!_0x2bec1a)return!0x1;_0x2bec1a[_0x3a670b(0x1b2)](_0x3c8f89,_0x38f138);const _0x1a24d4=_0x55ef07[_0x3a670b(0x183)](_0x7b51cb,_0x399906,_0x327835);return ls(_0x1a24d4,_0x13c91c),_0x55ef07[_0x3a670b(0x22b)]({'unitId':_0x7b51cb,'subUnitId':_0x399906,'token':_0x327835,'type':$[_0x3a670b(0x29a)]}),!0x0;}},zt={'type':_0x4461d6['MUTATION'],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x58089e,_0x550143){const _0x1f68e7=_0x1573ee;if(!_0x550143)return!0x1;if(!!_0x58089e[_0x1f68e7(0xfa)](_0xca9673)[_0x1f68e7(0x225)](Q))return!0x0;const _0x5ef200=_0x58089e[_0x1f68e7(0xfa)](W),{unitId:_0x585220,subUnitId:_0x1022ad,pivotTableId:_0x4ff65c,fieldId:_0x329755,filterInfo:_0x5ce1fd}=_0x550143,_0x42ef9e=_0x5ef200[_0x1f68e7(0xca)](_0x4ff65c);if(!_0x42ef9e)return!0x1;_0x42ef9e[_0x1f68e7(0x175)](_0x329755,_0x5ce1fd);const _0x184696=_0x5ef200[_0x1f68e7(0x183)](_0x585220,_0x1022ad,_0x4ff65c);return rs(_0x184696,_0x550143),_0x5ef200[_0x1f68e7(0x22b)]({'unitId':_0x585220,'subUnitId':_0x1022ad,'token':_0x4ff65c,'type':$['Set']}),!0x0;}},Xt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x302),'handler'(_0x1f6263,_0x48c082){const _0x13f051=_0x1573ee;if(!_0x48c082)return!0x1;if(!!_0x1f6263[_0x13f051(0xfa)](_0xca9673)[_0x13f051(0x225)](Q))return!0x0;const _0x102088=_0x1f6263['get'](W),{unitId:_0x5e24e0,subUnitId:_0x5ad823,pivotTableId:_0x5ac350,area:_0x5305eb,index:_0x3ec46b,fieldId:_0x3f57f8}=_0x48c082,_0xbe3c67=_0x102088[_0x13f051(0xca)](_0x5ac350);if(!_0xbe3c67)return!0x1;_0xbe3c67[_0x13f051(0x10b)](_0x3f57f8,_0x5305eb,_0x3ec46b);const _0x1c6392=_0x102088['getPivotTableModelConfig'](_0x5e24e0,_0x5ad823,_0x5ac350);return ds(_0x1c6392,_0x48c082),_0x102088[_0x13f051(0x22b)]({'unitId':_0x5e24e0,'subUnitId':_0x5ad823,'token':_0x5ac350,'type':$[_0x13f051(0x29a)]}),!0x0;}},Zt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x40c94c,_0x244a2d){const _0x522559=_0x1573ee;if(!_0x244a2d)return!0x1;if(!!_0x40c94c[_0x522559(0xfa)](_0xca9673)[_0x522559(0x225)](Q))return!0x0;const _0x48420d=_0x40c94c[_0x522559(0xfa)](W),{unitId:_0x564902,subUnitId:_0x892c5b,pivotTableId:_0x413d2c,sourceName:_0x307838,dataFieldId:_0x1547fb,tableFieldId:_0x3584f0}=_0x244a2d,_0x359666=_0x48420d[_0x522559(0xca)](_0x413d2c);if(!_0x359666)return!0x1;_0x359666[_0x522559(0xdd)](_0x3584f0,_0x307838,_0x1547fb);const _0x57958a=_0x48420d[_0x522559(0x183)](_0x564902,_0x892c5b,_0x413d2c);return us(_0x57958a,_0x244a2d),_0x48420d['addDirtyPivotTable']({'unitId':_0x564902,'subUnitId':_0x892c5b,'token':_0x413d2c,'type':$['Set']}),!0x0;}},eo={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x20f),'handler'(_0x2e893b,_0x22addc){const _0x15cca6=_0x1573ee;if(!_0x22addc)return!0x1;if(!!_0x2e893b[_0x15cca6(0xfa)](_0xca9673)[_0x15cca6(0x225)](Q))return!0x0;const _0x45eb8a=_0x2e893b[_0x15cca6(0xfa)](W),{unitId:_0x2c8609,subUnitId:_0x2e3daa,pivotTableId:_0x25bb7f,valuePosition:_0x368320,index:_0x401996}=_0x22addc,_0x42646d=_0x45eb8a[_0x15cca6(0xca)](_0x25bb7f);if(!_0x42646d)return!0x1;_0x42646d[_0x15cca6(0x2d2)](_0x368320,_0x401996);const _0x347201=_0x45eb8a[_0x15cca6(0x183)](_0x2c8609,_0x2e3daa,_0x25bb7f);return cs(_0x347201,_0x22addc),_0x45eb8a[_0x15cca6(0x22b)]({'unitId':_0x2c8609,'subUnitId':_0x2e3daa,'token':_0x25bb7f,'type':$[_0x15cca6(0x29a)]}),!0x0;}};function me(_0x3c806b,_0x11f110,_0x59bfc7){const _0x46e1ba=_0x1573ee,{pivotTableId:_0x541cb0,unitId:_0x542c4a,subUnitId:_0x1dc781}=_0x11f110,_0x57fac9=[],_0x2ac851=[];for(const _0x3015f1 of _0x59bfc7)switch(_0x3015f1[_0x46e1ba(0x2a5)]){case _0x29f294[_0x46e1ba(0x160)]:{const {fieldJson:_0xef094c,area:_0x484eca,index:_0x22305d}=_0x3015f1,_0x54fd7b={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldJson':_0xef094c,'area':_0x484eca,'index':_0x22305d},_0xe2cf1f={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0xef094c['id'],'area':_0x484eca,'index':_0x22305d};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Wt['id'],'params':_0x54fd7b}),_0x2ac851[_0x46e1ba(0x254)]({'id':jt['id'],'params':_0xe2cf1f});}break;case _0x29f294['SetSubtotalType']:{const {fieldId:_0x30b15b,newSubtotalType:_0x23a45b,oldSubtotalType:_0x2d288c}=_0x3015f1,_0x4e381e={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x30b15b,'subtotalType':_0x23a45b};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Qt['id'],'params':_0x4e381e});const _0x26b746={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x30b15b,'subtotalType':_0x2d288c};_0x2ac851[_0x46e1ba(0x254)]({'id':Qt['id'],'params':_0x26b746});}break;case _0x29f294[_0x46e1ba(0x1de)]:{const {fieldId:_0x2a7c87,fieldJson:_0x7fe3f9,area:_0x5d1a23,index:_0x396a92}=_0x3015f1,_0x205426={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x2a7c87,'index':_0x396a92,'area':_0x5d1a23};_0x57fac9['push']({'id':jt['id'],'params':_0x205426});const _0x539923={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldJson':_0x7fe3f9,'area':_0x5d1a23,'index':_0x396a92};_0x2ac851[_0x46e1ba(0x254)]({'id':Wt['id'],'params':_0x539923});}break;case _0x29f294[_0x46e1ba(0x1e0)]:{const {fieldId:_0x407640,oldName:_0x1653e5,newName:_0x86f922}=_0x3015f1,_0x4e75e8={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x407640,'name':_0x86f922};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Jt['id'],'params':_0x4e75e8});const _0xc5294={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x407640,'name':_0x1653e5};_0x2ac851[_0x46e1ba(0x254)]({'id':Jt['id'],'params':_0xc5294});}break;case _0x29f294[_0x46e1ba(0x1e3)]:{const {fieldId:_0x2bbf26,oldFilterInfo:_0x4846f9,newFilterInfo:_0x37d3fe}=_0x3015f1,_0x55b5ae={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x2bbf26,'filterInfo':_0x37d3fe};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Ht['id'],'params':_0x55b5ae});const _0x65d9e3={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x2bbf26,'filterInfo':_0x4846f9};_0x2ac851[_0x46e1ba(0x254)]({'id':Ht['id'],'params':_0x65d9e3});}break;case _0x29f294[_0x46e1ba(0x1cd)]:{const {fieldId:_0x4decc0,oldSortInfo:_0x11e0a9,newSortInfo:_0x17f499}=_0x3015f1,_0x20e4d9={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x4decc0,'sortInfo':_0x17f499};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Yt['id'],'params':_0x20e4d9});const _0x3ec8dd={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x4decc0,'sortInfo':_0x11e0a9};_0x2ac851[_0x46e1ba(0x254)]({'id':Yt['id'],'params':_0x3ec8dd});}break;case _0x29f294[_0x46e1ba(0x22a)]:{const {oldOptions:_0x1dd0e8,newOptions:_0xeaf9aa}=_0x3015f1,_0x70e5a9={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'options':_0xeaf9aa};_0x57fac9[_0x46e1ba(0x1c1)]({'id':qt['id'],'params':_0x70e5a9});const _0x454b1e={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'options':_0x1dd0e8};_0x2ac851[_0x46e1ba(0x254)]({'id':qt['id'],'params':_0x454b1e});}break;case _0x29f294[_0x46e1ba(0x250)]:{const {oldArea:_0x59630f,newArea:_0x1a0abf,oldIndex:_0x3fe614,newIndex:_0x2f6c4d,fieldId:_0x2d13db}=_0x3015f1,_0x308d7d={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x2d13db,'area':_0x1a0abf,'index':_0x2f6c4d,'oldArea':_0x59630f,'oldIndex':_0x3fe614};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Xt['id'],'params':_0x308d7d});const _0x42bb83={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x2d13db,'area':_0x59630f,'index':_0x3fe614,'oldArea':_0x1a0abf,'oldIndex':_0x2f6c4d};_0x2ac851[_0x46e1ba(0x254)]({'id':Xt['id'],'params':_0x42bb83});}break;case _0x29f294[_0x46e1ba(0x291)]:{const {oldValuePosition:_0x3a8544,newValuePosition:_0x9f6842,oldIndex:_0x14d4fd,newIndex:_0x26ce3d}=_0x3015f1,_0x5305d1={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'valuePosition':_0x9f6842,'index':_0x26ce3d};_0x57fac9['push']({'id':eo['id'],'params':_0x5305d1});const _0x560b29={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'valuePosition':_0x3a8544,'index':_0x14d4fd};_0x2ac851[_0x46e1ba(0x254)]({'id':eo['id'],'params':_0x560b29});}break;case _0x29f294[_0x46e1ba(0x23c)]:{const {fieldId:_0xd46f20,collapse:_0x99fae7,item:_0xbb1a2c}=_0x3015f1,_0x3fcc2f={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0xd46f20,'collapse':_0x99fae7,'item':_0xbb1a2c};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Gt['id'],'params':_0x3fcc2f});const _0xa7f97d={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0xd46f20,'collapse':!_0x99fae7,'item':_0xbb1a2c};_0x2ac851[_0x46e1ba(0x254)]({'id':Gt['id'],'params':_0xa7f97d});}break;case _0x29f294[_0x46e1ba(0x16a)]:{const {newFormat:_0xdea928,oldFormat:_0x4a64f8,fieldId:_0x37b050}=_0x3015f1,_0x5b555c={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x37b050,'format':_0xdea928};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Kt['id'],'params':_0x5b555c});const _0xc209f0={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x37b050,'format':_0x4a64f8};_0x2ac851[_0x46e1ba(0x254)]({'id':Kt['id'],'params':_0xc209f0});}break;case _0x29f294['UpdateSource']:{const {tableFieldId:_0x559c73,oldSourceName:_0x56da52,newSourceName:_0x25f0c5,oldDataFieldId:_0x3aede1,newDataFieldId:_0x2dce33}=_0x3015f1,_0x237f31={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'tableFieldId':_0x559c73,'sourceName':_0x25f0c5,'dataFieldId':_0x2dce33};_0x57fac9[_0x46e1ba(0x1c1)]({'id':Zt['id'],'params':_0x237f31});const _0x1efbe6={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'tableFieldId':_0x559c73,'sourceName':_0x56da52,'dataFieldId':_0x3aede1};_0x2ac851[_0x46e1ba(0x254)]({'id':Zt['id'],'params':_0x1efbe6});}break;case _0x29f294[_0x46e1ba(0x251)]:{const {fieldId:_0x3fb969,filterInfo:_0x8b9c2a,oldFilterInfo:_0x532df9}=_0x3015f1,_0x4105ba={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x3fb969,'filterInfo':_0x8b9c2a};_0x57fac9[_0x46e1ba(0x1c1)]({'id':zt['id'],'params':_0x4105ba});const _0x52a19a={'unitId':_0x542c4a,'subUnitId':_0x1dc781,'pivotTableId':_0x541cb0,'fieldId':_0x3fb969,'filterInfo':_0x532df9};_0x2ac851[_0x46e1ba(0x254)]({'id':zt['id'],'params':_0x52a19a});}}return{'redos':_0x57fac9,'undos':_0x2ac851};}function we(_0x3ae6ac,_0x13b270){const _0x28a08f=_0x1573ee;var _0x49c050;const _0x3ec9db=_0x3ae6ac[_0x28a08f(0xfa)](ie),{cellInfo:_0x22fbd0,view:_0x16371e,isEmpty:_0x45671e}=_0x13b270;return(_0x49c050=_0x3ec9db[_0x28a08f(0x239)][_0x28a08f(0x1b8)](jo)(To,{'cellInfo':_0x22fbd0,'view':_0x16371e,'isEmpty':_0x45671e}))!=null?_0x49c050:To;}const hs={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':_0x1573ee(0x14c),async 'handler'(_0x4d4991,_0x37d37a){const _0x7dee9a=_0x1573ee;if(!_0x37d37a)return!0x1;const _0x48240c=_0x4d4991[_0x7dee9a(0xfa)](_0x338140),_0x5ce7c0=_0x4d4991[_0x7dee9a(0xfa)](X),_0x1f0441=_0x4d4991[_0x7dee9a(0xfa)](_0x225145),{pivotTableId:_0x362e51,dataFieldId:_0x43f2d3,fieldArea:_0x54fcf2,index:_0x3ea125,unitId:_0x50cbd6,subUnitId:_0x1bce5e}=_0x37d37a,_0x284c3d=(await _0x5ce7c0[_0x7dee9a(0x1d4)]({'unitId':_0x50cbd6,'subUnitId':_0x1bce5e,'pivotTableId':_0x362e51,'params':{'type':k[_0x7dee9a(0x182)],'addPivotField':{'dataFieldId':_0x43f2d3,'fieldArea':_0x54fcf2,'index':_0x3ea125}}}))['result'][_0x7dee9a(0x13d)];if(!_0x284c3d)return!0x1;const {view:_0x2dd697,changesets:_0x862af1,isEmpty:_0x3fca5d,pivotTableConfig:_0x5efffd,shouldBeAddedGroupJSON:_0x23cc5b}=_0x284c3d,_0x630a06=_0x5efffd['targetCellInfo'],_0x187703=new _0x38e21e();_0x187703['formJSON'](_0x2dd697);const _0x32e4c={'cellInfo':_0x630a06,'view':_0x187703,'isEmpty':_0x3fca5d};if(!await _0x4d4991[_0x7dee9a(0xfa)](ie)[_0x7dee9a(0x2ba)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x32e4c))return!0x1;const _0x13057b=Re(_0x4d4991,_0x187703,_0x630a06,_0x3fca5d),_0x4a0f77=we(_0x4d4991,_0x32e4c),{undos:_0x1a76c6,redos:_0x1ae7a0}=me(_0x48240c,{'pivotTableId':_0x362e51,'unitId':_0x50cbd6,'subUnitId':_0x1bce5e},_0x862af1);return _0x23cc5b&&(_0x1ae7a0[_0x7dee9a(0x254)]({'id':zo['id'],'params':{'pivotTableId':_0x362e51,'fieldJSON':_0x23cc5b,'unitId':_0x50cbd6,'subUnitId':_0x1bce5e}}),_0x1a76c6['push']({'id':Xo['id'],'params':{'pivotTableId':_0x362e51,'dataFieldId':_0x23cc5b['id'],'unitId':_0x50cbd6,'subUnitId':_0x1bce5e}})),_0x312a13([..._0x13057b[_0x7dee9a(0x1d6)],..._0x4a0f77[_0x7dee9a(0x1d6)],..._0x1ae7a0],_0x48240c),_0x1f0441[_0x7dee9a(0x297)]({'unitID':_0x50cbd6,'redoMutations':[..._0x13057b['redos'],..._0x4a0f77['redos'],..._0x1ae7a0],'undoMutations':[..._0x13057b[_0x7dee9a(0x169)],..._0x4a0f77[_0x7dee9a(0x169)],..._0x1a76c6]}),!0x0;}},vs=()=>typeof process<'u'&&process[_0x1573ee(0x1d7)]!=null&&process[_0x1573ee(0x1d7)]['node']!=null,Ct={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x264),'handler'(_0x4d6b04,_0x104cd3){const _0x571291=_0x1573ee;var _0x189b46;if(!_0x104cd3)return!0x1;const _0x57cf5f=_0x4d6b04[_0x571291(0xfa)](_0xca9673);if(!!_0x57cf5f['getConfig'](Q))return!0x0;const _0x12c521=_0x4d6b04['get'](_0x144d54),_0x3fa45a=_0x4d6b04[_0x571291(0xfa)](W),{pivotTableId:_0x349817,pivotTableConfig:_0x63a564,collectionConfig:_0x161215,unitId:_0x25ea5b,subUnitId:_0x2b2cce}=_0x104cd3,{sourceRangeInfo:_0x2cfc0b,fieldsConfig:_0x2cebd7,targetCellInfo:_0x19dd53}=_0x63a564,_0x1b9d7c=_0x12c521[_0x571291(0x236)](_0x25ea5b);if(!_0x1b9d7c||!_0x1b9d7c['getSheetBySheetId'](_0x2b2cce))return!0x1;if(!vs()){let _0x4b5665=0x0;_0x1b9d7c[_0x571291(0x15c)]()[_0x571291(0x25d)](_0x311122=>{const _0x46f848=_0x571291;var _0x4a9c7b,_0x1ff1ce;_0x4b5665+=(_0x1ff1ce=(_0x4a9c7b=_0x3fa45a[_0x46f848(0x1c5)](_0x25ea5b,_0x311122[_0x46f848(0xd2)]()))==null?void 0x0:_0x4a9c7b[_0x46f848(0x2e2)])!=null?_0x1ff1ce:0x0;});const _0x3a07af=(_0x189b46=_0x57cf5f[_0x571291(0x225)](_0x1fbd6d))!=null?_0x189b46:{},{ls:_0x5a7bb4,pbk:_0x98564a}=_0x3a07af;if(!Ho(_0x5a7bb4,_0x98564a))throw new _0x31a626(_0x571291(0x187));const _0x17ee1f=go(so,_0x5a7bb4,_0x98564a)['count'];if(_0x4b5665>=_0x17ee1f)throw new _0x31a626(_0x571291(0x187));}if(!_0x161215||!_0x2cebd7)return!0x1;const {collection:_0x7b3e93,updateDataFieldList:_0x1d5cea}=_0x3fa45a['addCollectionByJSON'](_0x349817,_0x161215,_0x2cfc0b,_0x19dd53);_0x3fa45a[_0x571291(0x315)](_0x7b3e93,_0x1d5cea,_0x2cfc0b);const _0x32ee7=new _0x4678d2(_0x7b3e93,void 0x0,_0x349817);_0x32ee7[_0x571291(0x1ea)](_0x2cebd7);const _0x41075b=JSON[_0x571291(0x20b)](JSON[_0x571291(0x2c0)](_0x63a564));return _0x3fa45a[_0x571291(0x355)](_0x25ea5b,_0x2b2cce,_0x349817,_0x32ee7,_0x41075b),_0x3fa45a[_0x571291(0x22b)]({'unitId':_0x25ea5b,'subUnitId':_0x2b2cce,'token':_0x349817,'type':$['Add'],'pivotConfig':_0x41075b}),!0x0;}},ps={'type':_0x4461d6['COMMAND'],'id':_0x1573ee(0x1bb),async 'handler'(_0xfac124,_0x2a9e83){const _0x1be9e6=_0x1573ee;if(!_0x2a9e83)return!0x1;const {sourceDataInfo:_0x56025a,pivotTableConfig:_0x4c658b}=_0x2a9e83;if(!_0x56025a||!_0x4c658b)return!0x1;const {unitId:_0x1815f5,subUnitId:_0x4e5088,range:_0x23d4d9}=_0x56025a,_0x5ee926=_0xfac124[_0x1be9e6(0xfa)](_0x144d54),_0x3d55e4=_0xfac124[_0x1be9e6(0xfa)](X),_0x2430d6=_0xfac124['get'](_0x46f29a),_0x5e97f8=_0xfac124['get'](_0x338140),_0x313205=_0x5ee926['getUnit'](_0x1815f5);if(!_0x313205)return!0x1;const _0x50aea6=_0x313205[_0x1be9e6(0xfc)](_0x4e5088);if(!_0x50aea6)return!0x1;const _0x144563=_0x20c89d(0x8),_0x44d715=_0x23d4d9||{'startRow':0x0,'startColumn':0x0,'endRow':_0x50aea6['getRowCount']()-0x1,'endColumn':_0x50aea6[_0x1be9e6(0x240)]()-0x1};_0x44d715[_0x1be9e6(0x222)]=_0x271022[_0x1be9e6(0x218)];const _0x22b7aa=(await _0x3d55e4[_0x1be9e6(0x1d4)]({'unitId':_0x1815f5,'subUnitId':_0x4e5088,'pivotTableId':_0x144563,'params':{'type':k[_0x1be9e6(0x132)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x1815f5,'sheetName':_0x50aea6[_0x1be9e6(0x1a4)](),'subUnitId':_0x4e5088,'range':_0x44d715},'pivotTableId':_0x144563,'pivotTableIndexConfig':_0x4c658b}}}))['result'][_0x1be9e6(0x249)];if(!_0x22b7aa)return!0x1;const {isEmpty:_0x3e27fe,fieldsConfig:_0x468ab1,collectionConfig:_0x3d88db,changesets:_0x4edbeb}=_0x22b7aa,_0x35eace=_0x313205[_0x1be9e6(0x15c)]()[_0x1be9e6(0x1a9)],_0x4d65fb=_0x86831c({'rowCount':_0x50aea6[_0x1be9e6(0x356)]()-0x1,'columnCount':_0x50aea6[_0x1be9e6(0x240)]()-0x1});_0x4d65fb['id']=_0x12a627(),_0x4d65fb[_0x1be9e6(0xe1)]=_0x313205[_0x1be9e6(0x293)](''+_0x2430d6['t'](_0x1be9e6(0x2e7)));const _0x145251={'index':_0x35eace,'sheet':_0x4d65fb,'unitId':_0x1815f5},{redos:_0x20a45d}=me(_0x5e97f8,{'pivotTableId':_0x144563,'unitId':_0x1815f5,'subUnitId':_0x4d65fb['id']},_0x4edbeb),_0x4ecbf6=[{'id':_0x2aa68a['id'],'params':_0x145251},{'id':Ct['id'],'params':{'unitId':_0x1815f5,'subUnitId':_0x4d65fb['id'],'pivotTableId':_0x144563,'pivotTableConfig':{'isEmpty':_0x3e27fe,'fieldsConfig':_0x468ab1,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x1815f5,'subUnitId':_0x4d65fb['id']},'sourceRangeInfo':{'subUnitId':_0x4e5088,'unitId':_0x1815f5,'range':_0x44d715,'sheetName':_0x50aea6[_0x1be9e6(0x1a4)]()}},'collectionConfig':_0x3d88db}},..._0x20a45d];return _0x312a13(_0x4ecbf6,_0x5e97f8),!0x0;}},Et={'type':_0x4461d6['MUTATION'],'id':'sheet.mutation.remove-pivot-table','handler'(_0x345a83,_0x1e0d02){const _0x27fe49=_0x1573ee;if(!_0x1e0d02)return!0x1;if(!!_0x345a83[_0x27fe49(0xfa)](_0xca9673)['getConfig'](Q))return!0x0;const {pivotTableId:_0x5ad73c,unitId:_0x261b34,subUnitId:_0x372b8f}=_0x1e0d02,_0x91611e=_0x345a83[_0x27fe49(0xfa)](W);return _0x91611e[_0x27fe49(0x200)](_0x261b34,_0x372b8f,_0x5ad73c)?(_0x91611e['addDirtyPivotTable']({'unitId':_0x261b34,'subUnitId':_0x372b8f,'token':_0x5ad73c,'type':$[_0x27fe49(0x21b)]}),_0x91611e[_0x27fe49(0x10f)](_0x261b34,_0x372b8f,_0x5ad73c),!0x0):!0x1;}},ms={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':_0x1573ee(0xcc),async 'handler'(_0x419df7,_0x153def){const _0x52c5a2=_0x1573ee;var _0x5471b1,_0x4ba6aa;const _0x67ead7=_0x419df7[_0x52c5a2(0xfa)](_0x338140),_0x4f99b9=_0x419df7[_0x52c5a2(0xfa)](_0x144d54),_0x2e7c4f=_0x419df7[_0x52c5a2(0xfa)](_0x46f29a),_0x2aa454=_0x419df7['get'](X),_0x33ea6c=_0x419df7['get'](_0x225145),_0x7fe439=_0x419df7[_0x52c5a2(0xfa)](ve),_0x4328cb=_0x419df7[_0x52c5a2(0xfa)](_0xca9673);if(!_0x153def)return!0x1;const {pivotTableConfig:_0x4bd24f,positionType:_0x228e2e}=_0x153def,{targetCellInfo:_0x1efcff,sourceRangeInfo:_0x5be16d}=_0x4bd24f,{unitId:_0x1f809b,subUnitId:_0x10f0a4}=_0x1efcff,_0x2e3c29=_0x4f99b9[_0x52c5a2(0x236)](_0x1f809b);if(!_0x2e3c29)return!0x1;let _0x3fe6a2=0x0;_0x2e3c29[_0x52c5a2(0x15c)]()[_0x52c5a2(0x25d)](_0x4162e0=>{const _0x40bc68=_0x52c5a2;var _0x3bb7d2,_0x31cee6;_0x3fe6a2+=(_0x31cee6=(_0x3bb7d2=_0x7fe439[_0x40bc68(0x1c5)](_0x1f809b,_0x4162e0[_0x40bc68(0xd2)]()))==null?void 0x0:_0x3bb7d2[_0x40bc68(0x2e2)])!=null?_0x31cee6:0x0;});const _0x59cdf9=(_0x5471b1=_0x4328cb['getConfig'](_0x1fbd6d))!=null?_0x5471b1:{},{ls:_0x2c5a6a,pbk:_0x195b40}=_0x59cdf9;if(!Ho(_0x2c5a6a,_0x195b40))return!0x1;const _0x24a494=go(so,_0x2c5a6a,_0x195b40)[_0x52c5a2(0x2a8)];if(_0x3fe6a2>=_0x24a494)return!0x1;const _0x1bd39a=_0x153def[_0x52c5a2(0x1c0)]||_0x20c89d(0x8),_0xb90b18=(await _0x2aa454[_0x52c5a2(0x1d4)]({'unitId':_0x1f809b,'subUnitId':_0x10f0a4,'pivotTableId':_0x1bd39a,'params':{'type':k['AddPivotTable'],'addPivotTable':{'sourceRangeInfo':_0x5be16d,'pivotTableId':_0x1bd39a}}}))[_0x52c5a2(0x117)][_0x52c5a2(0x355)];if(!_0xb90b18)return!0x1;const {view:_0x45ecf9,isEmpty:_0x4a4687,fieldsConfig:_0x3b165c,collectionConfig:_0x16ed7e}=_0xb90b18,_0x3713f5=[],_0xe1f07f=[];if(_0x228e2e===Lo[_0x52c5a2(0x232)]){const _0x4ac627=_0x2e3c29[_0x52c5a2(0x15c)]()['length'],_0x4150e2=_0x86831c({});_0x4150e2['id']=_0x4bd24f[_0x52c5a2(0x2c7)]['subUnitId'],_0x4150e2[_0x52c5a2(0xe1)]=(_0x4ba6aa=_0x4bd24f[_0x52c5a2(0x2c7)][_0x52c5a2(0x1be)])!=null?_0x4ba6aa:_0x2e3c29[_0x52c5a2(0x293)](''+_0x2e7c4f['t']('sheets.tabs.sheet'));const _0x212ad4={'index':_0x4ac627,'sheet':_0x4150e2,'unitId':_0x1f809b},_0x446f5f=_0x11c56b(_0x419df7,_0x212ad4);_0x3713f5[_0x52c5a2(0x1c1)]({'id':_0x15d9b8['id'],'params':_0x446f5f}),_0xe1f07f[_0x52c5a2(0x1c1)]({'id':_0x15d2cd['id'],'params':_0x212ad4});}else{if(!_0x2e3c29[_0x52c5a2(0xfc)](_0x10f0a4))return!0x1;const _0x3693e1=Re(_0x419df7,new _0x38e21e(),_0x1efcff,!0x0);_0xe1f07f[_0x52c5a2(0x1c1)](..._0x3693e1[_0x52c5a2(0x1d6)]),_0x3713f5[_0x52c5a2(0x1c1)](..._0x3693e1[_0x52c5a2(0x169)]);const _0x1fed07={'cellInfo':_0x1efcff,'view':_0x45ecf9,'isEmpty':_0x4a4687};if(!await _0x419df7[_0x52c5a2(0xfa)](ie)[_0x52c5a2(0x2ba)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x1fed07))return!0x1;const _0x417833=we(_0x419df7,_0x1fed07);_0xe1f07f[_0x52c5a2(0x1c1)](..._0x417833['redos']),_0x3713f5['push'](..._0x417833[_0x52c5a2(0x169)]);}return _0xe1f07f[_0x52c5a2(0x1c1)]({'id':Ct['id'],'params':{'unitId':_0x1efcff[_0x52c5a2(0x307)],'subUnitId':_0x1efcff[_0x52c5a2(0x2ff)],'pivotTableId':_0x1bd39a,'pivotTableConfig':{'targetCellInfo':_0x1efcff,'sourceRangeInfo':_0x5be16d,'fieldsConfig':_0x3b165c},'collectionConfig':_0x16ed7e}}),_0x3713f5[_0x52c5a2(0x254)]({'id':Et['id'],'params':{'unitId':_0x1f809b,'subUnitId':_0x10f0a4,'pivotTableId':_0x1bd39a}}),_0x312a13(_0xe1f07f,_0x67ead7)&&_0x33ea6c[_0x52c5a2(0x297)]({'unitID':_0x1f809b,'undoMutations':_0x3713f5,'redoMutations':_0xe1f07f}),!0x0;}},Is={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x378135,_0x7f442){const _0x4f0746=_0x1573ee;if(!_0x7f442)return!0x1;const _0xec5f98=_0x378135[_0x4f0746(0xfa)](_0x338140),_0x3b781d=_0x378135[_0x4f0746(0xfa)](X),_0x5dc4a0=_0x378135[_0x4f0746(0xfa)](_0x225145),{pivotTableId:_0x11d648,fieldId:_0x3abf9b,area:_0x5ef394,index:_0x34e71c,unitId:_0x505208,subUnitId:_0x2c8917}=_0x7f442,_0x39a4de=(await _0x3b781d[_0x4f0746(0x1d4)]({'unitId':_0x505208,'subUnitId':_0x2c8917,'pivotTableId':_0x11d648,'params':{'type':k[_0x4f0746(0x275)],'movePivotField':{'fieldId':_0x3abf9b,'area':_0x5ef394,'index':_0x34e71c}}}))[_0x4f0746(0x117)]['movePivotField'];if(!_0x39a4de)return!0x1;const {changesets:_0x18f107,view:_0x1842b0,isEmpty:_0x42bdee,pivotTableConfig:_0x39df49}=_0x39a4de,_0x295b1e=_0x39df49[_0x4f0746(0x2c7)],_0x2a2c45=new _0x38e21e();_0x2a2c45['formJSON'](_0x1842b0);const _0x39b38e={'cellInfo':_0x295b1e,'view':_0x2a2c45,'isEmpty':_0x42bdee};if(!await _0x378135['get'](ie)[_0x4f0746(0x2ba)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x39b38e))return!0x1;const _0x1df68d=Re(_0x378135,_0x2a2c45,_0x295b1e,_0x42bdee),_0x98f07f=we(_0x378135,_0x39b38e),{redos:_0x27cc57,undos:_0x32d86f}=me(_0xec5f98,{'pivotTableId':_0x11d648,'unitId':_0x505208,'subUnitId':_0x2c8917},_0x18f107);return _0x312a13([..._0x1df68d[_0x4f0746(0x1d6)],..._0x98f07f['redos'],..._0x27cc57],_0xec5f98),_0x5dc4a0[_0x4f0746(0x297)]({'unitID':_0x505208,'redoMutations':[..._0x1df68d['redos'],..._0x98f07f[_0x4f0746(0x1d6)],..._0x27cc57],'undoMutations':[..._0x1df68d[_0x4f0746(0x169)],..._0x98f07f['undos'],..._0x32d86f]}),!0x0;}},pt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0xe2),'handler'(_0x5bfab9,_0x5ce9ef){const _0x3135bd=_0x1573ee;if(!_0x5ce9ef)return!0x1;if(!!_0x5bfab9[_0x3135bd(0xfa)](_0xca9673)[_0x3135bd(0x225)](Q))return!0x0;const {pivotTableId:_0x23f8e1,targetCellPosition:_0x1eb7d3,unitId:_0x54faea,subUnitId:_0x101186}=_0x5ce9ef,_0x121ba4=_0x5bfab9['get'](W);if(!_0x121ba4[_0x3135bd(0xca)](_0x5ce9ef[_0x3135bd(0x1c0)]))return!0x1;const _0x3f00b0=_0x121ba4['getTargetByPivotId'](_0x23f8e1);if(!_0x3f00b0)return!0x1;const _0x58c945=_0x121ba4[_0x3135bd(0x22d)](_0x3f00b0['unitId'],_0x5ce9ef['pivotTableId']);if(!_0x58c945)return!0x1;const _0x5d6fd6=_0x121ba4['getPivotTableConfig'](_0x3f00b0['unitId'],_0x3f00b0[_0x3135bd(0x2ff)],_0x23f8e1);if(!_0x5d6fd6)return!0x1;const _0x39f725=_0x57921b[_0x3135bd(0x319)](_0x5d6fd6);_0x39f725['targetCellInfo']={'unitId':_0x54faea,'subUnitId':_0x101186,'row':_0x1eb7d3[_0x3135bd(0xd3)],'col':_0x1eb7d3[_0x3135bd(0x267)]};const _0x19b6c0=_0x58c945['toJSON']();if(_0x3f00b0[_0x3135bd(0x2ff)]===_0x101186&&_0x3f00b0[_0x3135bd(0x307)]===_0x54faea)_0x121ba4['setPivotTable'](_0x54faea,_0x101186,_0x23f8e1,_0x39f725),_0x121ba4['addDirtyPivotTable']({'unitId':_0x54faea,'subUnitId':_0x101186,'token':_0x23f8e1,'type':$[_0x3135bd(0x29a)]});else{_0x121ba4['addDirtyPivotTable']({'unitId':_0x3f00b0[_0x3135bd(0x307)],'subUnitId':_0x3f00b0['subUnitId'],'token':_0x23f8e1,'type':$[_0x3135bd(0x21b)]}),_0x121ba4[_0x3135bd(0x10f)](_0x3f00b0[_0x3135bd(0x307)],_0x3f00b0[_0x3135bd(0x2ff)],_0x23f8e1);const _0x1d1b5c=_0x121ba4[_0x3135bd(0x32d)](_0x23f8e1,_0x19b6c0,_0x5d6fd6['sourceRangeInfo'],_0x39f725['targetCellInfo']),_0x4fab89=new _0x4678d2(_0x1d1b5c['collection'],void 0x0,_0x23f8e1);_0x4fab89[_0x3135bd(0x1ea)](_0x39f725[_0x3135bd(0x29c)]),_0x121ba4['addPivotTable'](_0x54faea,_0x101186,_0x23f8e1,_0x4fab89,_0x39f725),_0x121ba4[_0x3135bd(0x22b)]({'unitId':_0x54faea,'subUnitId':_0x101186,'token':_0x23f8e1,'type':$[_0x3135bd(0x129)],'pivotConfig':_0x39f725});}return!0x0;}},Cs={'type':_0x4461d6['COMMAND'],'id':'sheet.command.move-pivot-table','handler':(_0x39eb97,_0x10f60a)=>{const _0x12ec8e=_0x1573ee,_0x555d4f=_0x39eb97['get'](_0x338140),_0x5717c9=_0x39eb97[_0x12ec8e(0xfa)](_0x225145),_0x4fb4c1=_0x39eb97[_0x12ec8e(0xfa)](ve),_0x419cca=_0x39eb97[_0x12ec8e(0xfa)](_0x144d54);if(!_0x10f60a)return!0x1;const _0x1b3902=_0x5e19a7(_0x419cca);if(!_0x1b3902)return!0x1;const {unitId:_0x39ecd4,subUnitId:_0x110f3e,workbook:_0x556f8a}=_0x1b3902,_0x29f34a=_0x4fb4c1['getPivotTableConfig'](_0x10f60a[_0x12ec8e(0x308)]['unitId'],_0x10f60a['originTargetInfo'][_0x12ec8e(0x2ff)],_0x10f60a[_0x12ec8e(0x1c0)]);if(!_0x29f34a)return!0x1;const _0x59fe72=_0x556f8a[_0x12ec8e(0xfc)](_0x10f60a['targetCellInfo']['subUnitId']);if(!_0x59fe72)throw new Error(_0x12ec8e(0x1e7));const _0x142045=_0x59fe72[_0x12ec8e(0x356)](),_0x28222c=_0x59fe72[_0x12ec8e(0x240)]();if(_0x10f60a[_0x12ec8e(0x2c7)][_0x12ec8e(0xd3)]>_0x142045||_0x10f60a[_0x12ec8e(0x2c7)][_0x12ec8e(0x267)]>_0x28222c)throw new Error(_0x12ec8e(0x10a));const _0x5198fc=[{'id':pt['id'],'params':{'unitId':_0x39ecd4,'subUnitId':_0x10f60a['targetCellInfo'][_0x12ec8e(0x2ff)],'pivotTableId':_0x10f60a[_0x12ec8e(0x1c0)],'targetCellPosition':{'row':_0x10f60a[_0x12ec8e(0x2c7)][_0x12ec8e(0xd3)],'col':_0x10f60a['targetCellInfo'][_0x12ec8e(0x267)]}}}],_0x4475a8=[{'id':pt['id'],'params':{'unitId':_0x39ecd4,'subUnitId':_0x110f3e,'pivotTableId':_0x10f60a['pivotTableId'],'targetCellPosition':{'row':_0x29f34a[_0x12ec8e(0x2c7)][_0x12ec8e(0xd3)],'col':_0x29f34a[_0x12ec8e(0x2c7)][_0x12ec8e(0x267)]}}}];return _0x312a13(_0x5198fc,_0x555d4f)&&_0x5717c9[_0x12ec8e(0x297)]({'unitID':_0x39ecd4,'undoMutations':_0x4475a8,'redoMutations':_0x5198fc}),!0x0;}},bs={'type':_0x4461d6['COMMAND'],'id':_0x1573ee(0x26e),async 'handler'(_0x5c21ba,_0xa9dbdb){const _0x2eaf4a=_0x1573ee;var _0x3e71d0;if(!_0xa9dbdb)return!0x1;const _0x525772=_0x5c21ba[_0x2eaf4a(0xfa)](_0x144d54),_0x27227e=_0x5e19a7(_0x525772);if(!_0x27227e)return!0x1;const {unitId:_0x5ea614,subUnitId:_0x378629,workbook:_0x414e9f}=_0x27227e,{row:_0x4373db,col:_0x18c54f}=_0xa9dbdb,_0x249473=_0x5c21ba[_0x2eaf4a(0xfa)](Ue),_0x5f1545=_0x249473['getPivotTableIdByCell'](_0x5ea614,_0x378629,_0x4373db,_0x18c54f);if(!_0x5f1545)return!0x1;const _0x8d38af=(_0x3e71d0=_0x249473[_0x2eaf4a(0x146)](_0x5ea614,_0x378629,_0x5f1545))==null?void 0x0:_0x3e71d0['areaInfo'];if(!_0x8d38af)return!0x1;const _0xd087c5=_0x5c21ba[_0x2eaf4a(0xfa)](ve)[_0x2eaf4a(0x200)](_0x5ea614,_0x378629,_0x5f1545);if(!_0xd087c5)return!0x1;const {rowInfo:_0x5bd4d2,colInfo:_0x1f6bec}=_0x8d38af,_0xe8584a=_0x5bd4d2[_0x4373db][_0x2eaf4a(0x14d)],_0x4ca210=_0x1f6bec[_0x18c54f][_0x2eaf4a(0x14d)],_0x56d1c9=_0x5bd4d2[_0x4373db][_0x2eaf4a(0x1db)],_0x37170e=_0x1f6bec[_0x18c54f]['level'],_0x38993d=_0xe8584a[_0x2eaf4a(0x237)](_0x4ca210),_0x2c180a=_0xd087c5[_0x2eaf4a(0x29c)][_0x2eaf4a(0x2bf)][_0x2eaf4a(0x13a)](0x0,_0x56d1c9),_0x4cd034=_0xd087c5['fieldsConfig']['columnFields'][_0x2eaf4a(0x13a)](0x0,_0x37170e),_0x38543d=_0x2c180a[_0x2eaf4a(0x237)](_0x4cd034),_0x2526a7=_0x38993d['map']((_0x50a8e9,_0x12a091)=>[_0x50a8e9,_0x38543d[_0x12a091]]),_0x2c33c5=(await _0x5c21ba[_0x2eaf4a(0xfa)](X)[_0x2eaf4a(0x1d4)]({'unitId':_0x5ea614,'subUnitId':_0x378629,'pivotTableId':_0x5f1545,'params':{'type':k[_0x2eaf4a(0x300)],'drillDown':{'tuple':_0x2526a7}}}))[_0x2eaf4a(0x117)][_0x2eaf4a(0x1a2)];if(!_0x2c33c5)return!0x1;const {indexes:_0x53c629,range:_0xb10666,sourceUnitId:_0x528ea5,sourceSubUnitId:_0x6150e8,formatMap:_0x4f1612}=_0x2c33c5,{startRow:_0x4f8400,endRow:_0x5f1ef6,startColumn:_0x299400,endColumn:_0x3d0cb9}=_0xb10666,_0x375a6a=new _0x3ea36a(),_0x3ba2b6=_0x5f1ef6-_0x4f8400,_0x3809a4=_0x3d0cb9-_0x299400,_0x118f38={},_0x1ffd59=_0x5e19a7(_0x525772,{'unitId':_0x528ea5,'subUnitId':_0x6150e8});if(!_0x1ffd59)return!0x1;const _0x4cf35b=fe[_0x2eaf4a(0x2f1)],_0x218be7=fe[_0x2eaf4a(0x188)],_0x5aa020=fe[_0x2eaf4a(0x188)],_0x1088e1=_0x414e9f[_0x2eaf4a(0xdc)]()[_0x2eaf4a(0x342)](_0x4cf35b),_0x302c6d=_0x414e9f['getStyles']()['setValue'](_0x218be7),_0x43e11e=_0x414e9f[_0x2eaf4a(0xdc)]()[_0x2eaf4a(0x342)](_0x5aa020),{worksheet:_0x176fd6}=_0x1ffd59;let _0x539ed6=0x0;const _0x30c07b=0x1;_0x53c629[_0x2eaf4a(0x25d)](_0xe9b447=>{const _0x1020f3=_0x2eaf4a;for(let _0x6db585=0x0;_0x6db585<=_0x3d0cb9-_0x299400;_0x6db585++)_0x375a6a['setValue'](_0x539ed6,_0x6db585,_0x176fd6[_0x1020f3(0x34e)](_0xe9b447+_0xb10666[_0x1020f3(0x272)]+_0x30c07b,_0x6db585));_0x539ed6++;});for(let _0xfb55d3=_0x299400;_0xfb55d3<=_0x3d0cb9;_0xfb55d3++){const _0x22b6ec=_0x176fd6['getCellRaw'](_0x4f8400,_0xfb55d3);_0x118f38[_0x4f8400]||(_0x118f38[_0x4f8400]={}),_0x118f38[_0x4f8400][_0xfb55d3]={..._0x22b6ec,'s':_0x1088e1};}let _0x36fa33=0x1;const _0xb789d={},_0x1c5cb7={};_0x375a6a[_0x2eaf4a(0x283)]((_0x7ef007,_0x1daef5)=>{const _0x54e395=_0x2eaf4a;_0x1daef5[_0x54e395(0x25d)](_0x253c39=>{const _0xa2263b=_0x54e395,_0x3aea1f=_0x375a6a['getValue'](_0x7ef007,_0x253c39);if(_0x118f38[_0x36fa33]||(_0x118f38[_0x36fa33]={}),_0x118f38[_0x36fa33][_0x253c39]={..._0x3aea1f,'s':_0x36fa33%0x2===0x0?_0x43e11e:_0x302c6d},_0x4f1612[_0x253c39]&&_0x7ef007>=0x0){const _0x3041f7=_0x36fa33%0x2===0x0;let _0x586bbb=_0x3041f7?_0x1c5cb7[_0x253c39]:_0xb789d[_0x253c39];_0x586bbb||(_0x586bbb=_0x414e9f[_0xa2263b(0xdc)]()[_0xa2263b(0x342)]({..._0x3041f7?_0x5aa020:_0x218be7,'n':{'pattern':_0x4f1612[_0x253c39]}}),_0x3041f7?_0x1c5cb7[_0x253c39]=_0x586bbb:_0xb789d[_0x253c39]=_0x586bbb),_0x118f38[_0x36fa33][_0x253c39]['s']=_0x586bbb;}}),_0x36fa33++;});const _0x5c844c=new _0x3ea36a(_0x118f38),_0x363170={};_0x5c844c[_0x2eaf4a(0x305)]((_0x5c8ac6,_0x5f11bf,_0x445b16)=>{_0x363170[_0x5c8ac6]||(_0x363170[_0x5c8ac6]={}),_0x363170[_0x5c8ac6][_0x5f11bf]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x54a1cb=[],_0x424a44=[],_0x68a9f3=_0x414e9f[_0x2eaf4a(0x15c)]()[_0x2eaf4a(0x1a9)],_0x3b0878=_0x86831c({'rowCount':Math['max'](_0x2b925c,_0x3ba2b6+0xa),'columnCount':Math[_0x2eaf4a(0x320)](_0x34b310,_0x3809a4+0x5)}),_0xd18f60=_0x5c21ba[_0x2eaf4a(0xfa)](_0x46f29a);_0x3b0878['id']=_0x12a627(),_0x3b0878[_0x2eaf4a(0xe1)]=_0x414e9f[_0x2eaf4a(0x293)](''+_0xd18f60['t'](_0x2eaf4a(0x2e7)));const _0x1a4e2f={'index':_0x68a9f3,'sheet':_0x3b0878,'unitId':_0x5ea614},_0x26a3d0=_0x11c56b(_0x5c21ba,_0x1a4e2f);_0x424a44[_0x2eaf4a(0x1c1)]({'id':_0x15d2cd['id'],'params':_0x1a4e2f}),_0x54a1cb[_0x2eaf4a(0x1c1)]({'id':_0x15d9b8['id'],'params':_0x26a3d0}),_0x424a44['push']({'id':_0x5e0b6f['id'],'params':{'unitId':_0x5ea614,'subUnitId':_0x3b0878['id'],'cellValue':_0x118f38}}),_0x54a1cb[_0x2eaf4a(0x254)]({'id':_0x5e0b6f['id'],'params':{'unitId':_0x5ea614,'subUnitId':_0x3b0878['id'],'cellValue':_0x363170}});const _0x33ec06={'startRow':0x0,'startColumn':0x0,'endRow':_0x36fa33-0x1,'endColumn':_0x3d0cb9};_0x424a44[_0x2eaf4a(0x1c1)]({'id':_0x34d652['id'],'params':{'unitId':_0x5ea614,'subUnitId':_0x3b0878['id'],'range':_0x33ec06}}),_0x54a1cb[_0x2eaf4a(0x254)]({'id':_0x5c49f6['id'],'params':{'unitId':_0x5ea614,'subUnitId':_0x3b0878['id']}});const _0x5dc341=_0x5c21ba[_0x2eaf4a(0xfa)](_0x338140);return _0x312a13(_0x424a44,_0x5dc341)&&_0x5c21ba['get'](_0x225145)[_0x2eaf4a(0x297)]({'unitID':_0x5ea614,'undoMutations':_0x54a1cb,'redoMutations':_0x424a44}),!0x0;}},Ss={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':_0x1573ee(0x2f6),async 'handler'(_0x585ff1,_0x1ea3c9){const _0x54a5db=_0x1573ee;if(!_0x1ea3c9)return!0x1;const _0x444e69=_0x585ff1[_0x54a5db(0xfa)](_0x338140),_0x294288=_0x585ff1['get'](X),_0xceb8d6=_0x585ff1[_0x54a5db(0xfa)](_0x225145),{pivotTableId:_0x2fe374,fieldIds:_0x1af766,unitId:_0x492038,subUnitId:_0x44be94}=_0x1ea3c9,_0x231de3=(await _0x294288['getPivotDisplayConfig']({'unitId':_0x492038,'subUnitId':_0x44be94,'pivotTableId':_0x2fe374,'params':{'type':k['RemovePivotField'],'removePivotField':{'fieldIds':_0x1af766}}}))[_0x54a5db(0x117)]['removePivotField'];if(!_0x231de3)return!0x1;const {view:_0x145589,changesets:_0x476b86,isEmpty:_0x3136ee,pivotTableConfig:_0x1c5203}=_0x231de3,_0x2d3e14=_0x1c5203[_0x54a5db(0x2c7)],_0x42893f=new _0x38e21e();_0x42893f[_0x54a5db(0x26c)](_0x145589);const _0x4163b1={'cellInfo':_0x2d3e14,'view':_0x42893f,'isEmpty':_0x3136ee};if(!await _0x585ff1[_0x54a5db(0xfa)](ie)[_0x54a5db(0x2ba)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x4163b1))return!0x1;const _0x320e7e=Re(_0x585ff1,_0x42893f,_0x2d3e14,_0x3136ee),_0x15c879=we(_0x585ff1,_0x4163b1),{redos:_0x36e2ba,undos:_0x149e03}=me(_0x444e69,{'pivotTableId':_0x2fe374,'unitId':_0x492038,'subUnitId':_0x44be94},_0x476b86);return _0x312a13([..._0x320e7e[_0x54a5db(0x1d6)],..._0x15c879[_0x54a5db(0x1d6)],..._0x36e2ba],_0x444e69),_0xceb8d6[_0x54a5db(0x297)]({'unitID':_0x492038,'redoMutations':[..._0x320e7e['redos'],..._0x15c879[_0x54a5db(0x1d6)],..._0x36e2ba],'undoMutations':[..._0x320e7e[_0x54a5db(0x169)],..._0x15c879['undos'],..._0x149e03]}),!0x0;}},Ps={'type':_0x4461d6['COMMAND'],'id':_0x1573ee(0x2fa),async 'handler'(_0x22faeb,_0x479cb7){const _0xd18b96=_0x1573ee;if(!_0x479cb7)return!0x1;const _0x2c825e=_0x22faeb[_0xd18b96(0xfa)](_0x338140),_0x30ee90=_0x22faeb[_0xd18b96(0xfa)](_0x225145),_0x6c4ee7=_0x22faeb['get'](X),{resetArea:_0x46b921,pivotTableId:_0x2a32fb,unitId:_0x251529,subUnitId:_0x202327}=_0x479cb7,_0xc293dd=(await _0x6c4ee7['getPivotDisplayConfig']({'unitId':_0x251529,'subUnitId':_0x202327,'pivotTableId':_0x2a32fb,'params':{'type':k[_0xd18b96(0x318)],'resetPivotTable':{'pivotTableId':_0x2a32fb,'resetArea':_0x46b921}}}))[_0xd18b96(0x117)][_0xd18b96(0x1eb)];if(!_0xc293dd)return!0x1;const {changesets:_0x511186}=_0xc293dd,{redos:_0x2caf1b,undos:_0x2edacd}=me(_0x2c825e,{'pivotTableId':_0x2a32fb,'unitId':_0x251529,'subUnitId':_0x202327},_0x511186);return _0x312a13(_0x2caf1b,_0x2c825e),_0x30ee90[_0xd18b96(0x297)]({'unitID':_0x251529,'redoMutations':_0x2caf1b,'undoMutations':_0x2edacd}),!0x0;}},Ts={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':_0x1573ee(0x310),async 'handler'(_0x98a18d,_0x49e6d1){const _0x2de8ca=_0x1573ee,_0x3cf602=_0x98a18d['get'](_0x338140),_0xa15b5a=_0x98a18d[_0x2de8ca(0xfa)](X),_0x2b9134=_0x98a18d['get'](Ue),_0x808810=_0x98a18d['get'](_0x144d54),_0x5042ac=_0x98a18d[_0x2de8ca(0xfa)](_0x46f29a),_0x186d29=_0x98a18d[_0x2de8ca(0xfa)](_0x225145);if(!_0x49e6d1)return!0x1;const {unitId:_0x2b756d,subUnitId:_0x44ede5,row:_0x39d0f2,col:_0x882f3,collapse:_0x1c6f83}=_0x49e6d1,_0x2a0466=_0x808810[_0x2de8ca(0x236)](_0x2b756d);if(!_0x2a0466||!_0x2a0466[_0x2de8ca(0xfc)](_0x44ede5))return!0x1;const _0x3d0622=_0x2b9134[_0x2de8ca(0x1cf)](_0x2b756d,_0x44ede5,_0x39d0f2,_0x882f3);if(!_0x3d0622)return!0x1;const _0xa77de2=_0x2b9134[_0x2de8ca(0x146)](_0x2b756d,_0x44ede5,_0x3d0622);if(!_0xa77de2)return!0x1;const _0x4a8ed5=_0x133dd5(_0x39d0f2,_0x882f3),{rangesInfo:_0x73f8b0,areaInfo:_0x2442a2,headerMap:_0x1eb90e}=_0xa77de2;if(!_0x73f8b0||!_0x2442a2||!_0x1eb90e)return!0x1;const _0x4a46b0=Object[_0x2de8ca(0x20d)](_0x73f8b0)[_0x2de8ca(0x214)](_0x551285=>_0x73f8b0[_0x551285][_0x2de8ca(0x2a3)](_0x20b05b=>_0xcfdf09[_0x2de8ca(0x245)](_0x20b05b,_0x4a8ed5)));let _0x2ce2f3;_0x4a46b0==='rowRanges'?_0x2ce2f3=_0x1eb90e[_0x2de8ca(0x244)][_0x882f3]:_0x4a46b0===_0x2de8ca(0x306)&&(_0x2ce2f3=_0x1eb90e[_0x2de8ca(0x209)][_0x39d0f2]);const _0x4d1fb5=_0x2ce2f3==null?void 0x0:_0x2ce2f3[_0x2de8ca(0x2e6)],_0x53096e=_0x2b9134[_0x2de8ca(0x2b1)](_0x2b756d,_0x44ede5,_0x39d0f2,_0x882f3);let _0x1b343f=_0x53096e==null?void 0x0:_0x53096e['v'];if(_0x1b343f===_0x5042ac['t'](_0x2de8ca(0x1c8))&&(_0x1b343f=_0x26df93[_0x2de8ca(0x16b)]),_0x1b343f==null||!_0x3d0622||!_0x4d1fb5)return!0x1;const _0xccc5a=await _0xa15b5a['getPivotDisplayConfig']({'unitId':_0x2b756d,'subUnitId':_0x44ede5,'pivotTableId':_0x3d0622,'params':{'type':k[_0x2de8ca(0x26d)],'setPivotCollapse':{'tableFieldId':_0x4d1fb5,'collapse':_0x1c6f83,'item':_0x1b343f}}}),_0x205d60=_0xccc5a==null?void 0x0:_0xccc5a[_0x2de8ca(0x117)][_0x2de8ca(0x333)];if(!_0x205d60)return!0x1;const {view:_0x3b98d0,pivotTableConfig:_0x5be190,isEmpty:_0x52842c,changesets:_0x3ca3ac}=_0x205d60,_0x25bd23=new _0x38e21e();_0x25bd23[_0x2de8ca(0x26c)](_0x3b98d0);const _0x5604ef=_0x5be190[_0x2de8ca(0x2c7)],_0x46c46c={'cellInfo':_0x5604ef,'view':_0x25bd23,'isEmpty':_0x52842c};if(!await _0x98a18d[_0x2de8ca(0xfa)](ie)[_0x2de8ca(0x2ba)][_0x2de8ca(0x276)](be)(!0x0,_0x46c46c))return!0x1;const _0x5e22e5=Re(_0x98a18d,_0x25bd23,_0x5604ef,_0x52842c),_0x5ac864=we(_0x98a18d,_0x46c46c),{redos:_0x3a4a73,undos:_0x778745}=me(_0x3cf602,{'pivotTableId':_0x3d0622,'unitId':_0x2b756d,'subUnitId':_0x44ede5},_0x3ca3ac);return _0x312a13([..._0x5e22e5['redos'],..._0x5ac864['redos'],..._0x3a4a73],_0x3cf602),_0x186d29[_0x2de8ca(0x297)]({'unitID':_0x2b756d,'redoMutations':[..._0x5e22e5['redos'],..._0x5ac864[_0x2de8ca(0x1d6)],..._0x3a4a73],'undoMutations':[..._0x5e22e5[_0x2de8ca(0x169)],..._0x5ac864[_0x2de8ca(0x169)],..._0x778745]}),!0x0;}},ys={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':_0x1573ee(0x181),async 'handler'(_0x1daefa,_0xf5fba1){const _0x2b8433=_0x1573ee;if(!_0xf5fba1)return!0x1;const _0x215d5f=_0x1daefa[_0x2b8433(0xfa)](_0x338140),_0x41ad66=_0x1daefa[_0x2b8433(0xfa)](_0x225145),_0x3abe7b=_0x1daefa[_0x2b8433(0xfa)](X),{pivotTableConfig:_0x166a9b,pivotTableId:_0x2ce166,unitId:_0x24dc31,subUnitId:_0x3ab34d}=_0xf5fba1,_0x47912d=(await _0x3abe7b['getPivotDisplayConfig']({'unitId':_0x24dc31,'subUnitId':_0x3ab34d,'pivotTableId':_0x2ce166,'params':{'type':k[_0x2b8433(0x15a)],'setPivotTableConfig':{'pivotTableId':_0x2ce166,'pivotTableConfig':_0x166a9b}}}))[_0x2b8433(0x117)][_0x2b8433(0x184)];if(!_0x47912d)return!0x1;const {changesets:_0x167d8c}=_0x47912d,{redos:_0x3aede7,undos:_0x2263bd}=me(_0x215d5f,{'pivotTableId':_0x2ce166,'unitId':_0x24dc31,'subUnitId':_0x3ab34d},_0x167d8c);return _0x312a13(_0x3aede7,_0x215d5f),_0x41ad66[_0x2b8433(0x297)]({'unitID':_0x24dc31,'redoMutations':_0x3aede7,'undoMutations':_0x2263bd}),!0x0;}},Ms={'type':_0x4461d6['COMMAND'],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x1dd102,_0xead4e2){const _0x2bb3a8=_0x1573ee;if(!_0xead4e2)return!0x1;const _0x5279a8=_0x1dd102['get'](_0x338140),{pivotTableId:_0x10f54,tableFieldId:_0x545f99,items:_0x10984d,unitId:_0x1cc565,subUnitId:_0x5871ac,isAll:_0x271fa4}=_0xead4e2,_0x43da23=_0x1dd102[_0x2bb3a8(0xfa)](X),_0x2b8880=_0x1dd102[_0x2bb3a8(0xfa)](_0x225145),_0x25837e=(await _0x43da23['getPivotDisplayConfig']({'unitId':_0x1cc565,'subUnitId':_0x5871ac,'pivotTableId':_0x10f54,'params':{'type':k[_0x2bb3a8(0x1fa)],'setPivotFilter':{'tableFieldId':_0x545f99,'items':_0x10984d,'isAll':_0x271fa4}}}))[_0x2bb3a8(0x117)]['setPivotFilter'];if(!_0x25837e)return!0x1;const {changesets:_0x215144,pivotTableConfig:_0x2f3f7e,isEmpty:_0xf32b43,view:_0x3b3f39}=_0x25837e,_0x4d6610=_0x2f3f7e[_0x2bb3a8(0x2c7)],_0x3a6313=new _0x38e21e();_0x3a6313['formJSON'](_0x3b3f39);const _0x2587db={'cellInfo':_0x4d6610,'view':_0x3a6313,'isEmpty':_0xf32b43};if(!await _0x1dd102[_0x2bb3a8(0xfa)](ie)[_0x2bb3a8(0x2ba)][_0x2bb3a8(0x276)](be)(!0x0,_0x2587db))return!0x1;const _0x4e37be=Re(_0x1dd102,_0x3a6313,_0x4d6610,_0xf32b43),_0x1a2827=we(_0x1dd102,_0x2587db),{undos:_0x392430,redos:_0x5e55c7}=me(_0x5279a8,{'pivotTableId':_0x10f54,'unitId':_0x1cc565,'subUnitId':_0x5871ac},_0x215144);return _0x312a13([..._0x4e37be['redos'],..._0x1a2827[_0x2bb3a8(0x1d6)],..._0x5e55c7],_0x5279a8),_0x2b8880[_0x2bb3a8(0x297)]({'unitID':_0x1cc565,'redoMutations':[..._0x4e37be[_0x2bb3a8(0x1d6)],..._0x1a2827[_0x2bb3a8(0x1d6)],..._0x5e55c7],'undoMutations':[..._0x4e37be[_0x2bb3a8(0x169)],..._0x1a2827[_0x2bb3a8(0x169)],..._0x392430]}),!0x0;}},Rs={'type':_0x4461d6['COMMAND'],'id':_0x1573ee(0x11a),async 'handler'(_0x361905,_0x4ed27c){const _0x198d81=_0x1573ee;if(!_0x4ed27c)return!0x1;const _0x5a0377=_0x361905[_0x198d81(0xfa)](_0x338140),_0x512e8a=_0x361905['get'](_0x225145),_0x5240b4=_0x361905[_0x198d81(0xfa)](X),{info:_0x50d16a,tableFieldId:_0x2e36d7,pivotTableId:_0x47aa76,unitId:_0x350396,subUnitId:_0x1df659}=_0x4ed27c,_0x5e6a4a=(await _0x5240b4['getPivotDisplayConfig']({'unitId':_0x350396,'subUnitId':_0x1df659,'pivotTableId':_0x47aa76,'params':{'type':k[_0x198d81(0x34b)],'setPivotSort':{'tableFieldId':_0x2e36d7,'info':_0x50d16a}}}))[_0x198d81(0x117)][_0x198d81(0x268)];if(!_0x5e6a4a)return!0x1;const {changesets:_0x1d73cb}=_0x5e6a4a,{redos:_0x58f9d3,undos:_0x2fbc66}=me(_0x5a0377,{'pivotTableId':_0x47aa76,'unitId':_0x350396,'subUnitId':_0x1df659},_0x1d73cb);return _0x312a13(_0x58f9d3,_0x5a0377),_0x512e8a[_0x198d81(0x297)]({'unitID':_0x350396,'redoMutations':_0x58f9d3,'undoMutations':_0x2fbc66}),!0x0;}},ws={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x731b02,_0x18bca0){const _0x3a8104=_0x1573ee;if(!_0x18bca0)return!0x1;const _0x4ad3d7=_0x731b02['get'](_0x338140),{pivotTableId:_0xf3b915,fieldId:_0x3c3d0e,valueFilterInfo:_0xb1a654,unitId:_0xf54895,subUnitId:_0x11d286}=_0x18bca0,_0x2b6297=_0x731b02[_0x3a8104(0xfa)](X),_0x43fe34=_0x731b02['get'](_0x225145),_0x5ea55b=(await _0x2b6297[_0x3a8104(0x1d4)]({'unitId':_0xf54895,'subUnitId':_0x11d286,'pivotTableId':_0xf3b915,'params':{'type':k[_0x3a8104(0x31d)],'setValuePivotFilter':{'tableFieldId':_0x3c3d0e,'filterInfo':_0xb1a654}}}))[_0x3a8104(0x117)]['setValuePivotFilter'];if(!_0x5ea55b)return!0x1;const {changesets:_0x4a88a4,pivotTableConfig:_0x5b6921,isEmpty:_0x11652f,view:_0x204d3b}=_0x5ea55b,_0x28cf8e=_0x5b6921[_0x3a8104(0x2c7)],_0x3a6c99=new _0x38e21e();_0x3a6c99['formJSON'](_0x204d3b);const _0x1023b4={'cellInfo':_0x28cf8e,'view':_0x3a6c99,'isEmpty':_0x11652f};if(!await _0x731b02[_0x3a8104(0xfa)](ie)[_0x3a8104(0x2ba)][_0x3a8104(0x276)](be)(!0x0,_0x1023b4))return!0x1;const _0x40513c=Re(_0x731b02,_0x3a6c99,_0x28cf8e,_0x11652f),_0x3592e5=we(_0x731b02,_0x1023b4),{undos:_0x150d89,redos:_0x92d49a}=me(_0x4ad3d7,{'pivotTableId':_0xf3b915,'unitId':_0xf54895,'subUnitId':_0x11d286},_0x4a88a4);return _0x312a13([..._0x40513c[_0x3a8104(0x1d6)],..._0x3592e5['redos'],..._0x92d49a],_0x4ad3d7),_0x43fe34[_0x3a8104(0x297)]({'unitID':_0xf54895,'redoMutations':[..._0x40513c['redos'],..._0x3592e5[_0x3a8104(0x1d6)],..._0x92d49a],'undoMutations':[..._0x40513c[_0x3a8104(0x169)],..._0x3592e5[_0x3a8104(0x169)],..._0x150d89]}),!0x0;}},to={'id':_0x1573ee(0x224),'type':_0x4461d6['MUTATION'],'handler':(_0x24478f,_0x161d13)=>{const _0x1b29ea=_0x1573ee;if(!_0x161d13)return!0x1;if(!!_0x24478f[_0x1b29ea(0xfa)](_0xca9673)[_0x1b29ea(0x225)](Q))return!0x0;const {unitId:_0x187772,subUnitId:_0x394394,pivotTableId:_0x38aafc,tableFieldId:_0x709fb2,dateType:_0x4f3f7d}=_0x161d13,_0x1759b3=_0x24478f[_0x1b29ea(0xfa)](W),_0x13c21e=_0x1759b3[_0x1b29ea(0xca)](_0x38aafc);if(!_0x13c21e)return!0x1;const _0x931b65=_0x13c21e[_0x1b29ea(0x299)](_0x709fb2);if(!_0x931b65)return!0x1;const _0x373d89=_0x931b65['getOriginFieldId'](),_0xeabbd9=_0x13c21e['getDataFieldByDataFieldId'](_0x373d89),_0x3644ef=(_0xeabbd9==null?void 0x0:_0xeabbd9[_0x1b29ea(0x1a4)]())+'\x20'+Yo(_0x24478f,_0x4f3f7d);_0x1759b3[_0x1b29ea(0x22d)](_0x187772,_0x38aafc)['setDisplayName'](_0x931b65['id'],_0x3644ef);const _0x339256=_0x13c21e['getTableFieldById'](_0x709fb2);if(!_0x339256)return!0x1;_0x13c21e[_0x1b29ea(0x121)](_0x339256[_0x1b29ea(0x223)](),_0x3644ef),_0x931b65[_0x1b29ea(0x2fe)](_0x4f3f7d);const _0x264207=_0x1759b3[_0x1b29ea(0x200)](_0x187772,_0x394394,_0x38aafc);return _0x1759b3[_0x1b29ea(0x22b)]({'unitId':_0x187772,'subUnitId':_0x394394,'token':_0x38aafc,'type':$[_0x1b29ea(0x29a)],'pivotConfig':_0x264207}),!0x0;}},_s={'id':_0x1573ee(0x27c),'type':_0x4461d6[_0x1573ee(0x2c5)],'handler':(_0x2c8f73,_0x3b70cd)=>{const _0x22b673=_0x1573ee;if(!_0x3b70cd)return!0x1;const _0x4a79ed=_0x2c8f73[_0x22b673(0xfa)](_0x225145),{unitId:_0x51fe1b,subUnitId:_0x2b6f5d,pivotTableId:_0x5c96cd,tableFieldId:_0x4f4834}=_0x3b70cd,_0x419c66=[],_0x1211e1=[],_0x11119d=_0x2c8f73[_0x22b673(0xfa)](ve),_0x4b0b66=_0x11119d[_0x22b673(0x22d)](_0x51fe1b,_0x5c96cd),_0x2028d9=_0x11119d['getPivotTableConfig'](_0x51fe1b,_0x2b6f5d,_0x5c96cd);if(!(_0x2028d9!=null&&_0x2028d9['fieldsConfig'][_0x22b673(0x12d)]))return!0x1;const _0x265994=Object['values'](_0x2028d9['fieldsConfig'][_0x22b673(0x12d)])[_0x22b673(0x214)](_0x4f1cec=>_0x4f1cec['id']===_0x4f4834);if(!_0x265994)return!0x1;const _0x457c33=_0x265994[_0x22b673(0x2a0)];if(!(_0x4b0b66!=null&&_0x4b0b66[_0x22b673(0x2eb)]))return!0x1;const _0x2fc4d7=Object['values'](_0x4b0b66==null?void 0x0:_0x4b0b66[_0x22b673(0x2eb)])['find'](_0x26a7cd=>_0x26a7cd['id']===_0x457c33);if(!_0x2fc4d7)return!0x1;_0x2cb318(_0x2fc4d7)&&_0x419c66[_0x22b673(0x1c1)]({'id':to['id'],'params':{..._0x3b70cd,'dateType':_0x2fc4d7[_0x22b673(0x1d3)]}}),_0x1211e1['push']({'id':to['id'],'params':{..._0x3b70cd}});const _0x49fc7a=_0x2c8f73[_0x22b673(0xfa)](_0x338140);return _0x312a13(_0x1211e1,_0x49fc7a)&&_0x4a79ed[_0x22b673(0x297)]({'unitID':_0x51fe1b,'undoMutations':_0x419c66,'redoMutations':_0x1211e1}),!0x0;}},Fs={'type':_0x4461d6['COMMAND'],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x188105,_0x144cfb){const _0x50f20c=_0x1573ee;if(!_0x144cfb)return!0x1;const _0x3021ee=_0x188105['get'](_0x338140),_0x697b30=_0x188105[_0x50f20c(0xfa)](_0x225145),_0x3be146=_0x188105['get'](X),{displayName:_0x260bc6,subtotalType:_0x51a63d,format:_0x5e8132,tableFieldId:_0x25fa56,pivotTableId:_0x563846,unitId:_0x19bc39,subUnitId:_0x18d489}=_0x144cfb,_0x472ece=(await _0x3be146[_0x50f20c(0x1d4)]({'unitId':_0x19bc39,'subUnitId':_0x18d489,'pivotTableId':_0x563846,'params':{'type':k[_0x50f20c(0x2a1)],'setPivotSetting':{'tableFieldId':_0x25fa56,'displayName':_0x260bc6,'subtotalType':_0x51a63d,'format':_0x5e8132}}}))[_0x50f20c(0x117)][_0x50f20c(0x1f9)];if(!_0x472ece)return!0x1;const {changesets:_0x1b21f3,view:_0x510150,pivotTableConfig:_0x229b6a,isEmpty:_0x2f2089}=_0x472ece,_0x4478e6=_0x229b6a[_0x50f20c(0x2c7)],_0x4d7339=new _0x38e21e();_0x4d7339['formJSON'](_0x510150);const _0x14cee8={'cellInfo':_0x4478e6,'view':_0x4d7339,'isEmpty':_0x2f2089};if(!await _0x188105['get'](ie)[_0x50f20c(0x2ba)][_0x50f20c(0x276)](be)(!0x0,_0x14cee8))return!0x1;const _0x51d93e=Re(_0x188105,_0x4d7339,_0x4478e6,_0x2f2089),_0x4a63e1=we(_0x188105,_0x14cee8),{undos:_0x4686c6,redos:_0x71b02}=me(_0x3021ee,{'pivotTableId':_0x563846,'unitId':_0x19bc39,'subUnitId':_0x18d489},_0x1b21f3);return _0x312a13([..._0x51d93e[_0x50f20c(0x1d6)],..._0x4a63e1[_0x50f20c(0x1d6)],..._0x71b02],_0x3021ee),_0x697b30[_0x50f20c(0x297)]({'unitID':_0x19bc39,'redoMutations':[..._0x51d93e[_0x50f20c(0x1d6)],..._0x4a63e1[_0x50f20c(0x1d6)],..._0x71b02],'undoMutations':[..._0x51d93e[_0x50f20c(0x169)],..._0x4a63e1[_0x50f20c(0x169)],..._0x4686c6]}),!0x0;}},oo={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':_0x1573ee(0x154),'handler'(_0x59b900,_0x26a5d5){const _0x118fe5=_0x1573ee;if(!_0x26a5d5)return!0x1;if(!!_0x59b900[_0x118fe5(0xfa)](_0xca9673)[_0x118fe5(0x225)](Q))return!0x0;const _0x142985=_0x59b900[_0x118fe5(0xfa)](W),{pivotTableId:_0x537ba2,deleteIds:_0x1a551e,collectionJSON:_0x4c9ac8,dataRangeInfo:_0x2b08dd,unitId:_0x52f3e4,subUnitId:_0x50b6ff}=_0x26a5d5,_0x2c9163=_0x142985[_0x118fe5(0xca)](_0x537ba2),_0x162feb=_0x142985[_0x118fe5(0x200)](_0x52f3e4,_0x50b6ff,_0x537ba2);if(!_0x2c9163||!_0x162feb)return!0x1;const {collection:_0x94c295,updateDataFieldList:_0x589aeb}=_0x142985[_0x118fe5(0x32d)](_0x537ba2,_0x4c9ac8,_0x2b08dd,_0x162feb[_0x118fe5(0x2c7)]);_0x142985[_0x118fe5(0x315)](_0x94c295,_0x589aeb,_0x2b08dd),_0x2c9163[_0x118fe5(0x201)](_0x94c295);for(const _0x45d174 of _0x1a551e)_0x142985[_0x118fe5(0x21c)](_0x2b08dd[_0x118fe5(0x307)],_0x45d174);const _0x357cdc=_0x142985[_0x118fe5(0x200)](_0x52f3e4,_0x50b6ff,_0x537ba2);return _0x357cdc[_0x118fe5(0x216)]=JSON['parse'](JSON[_0x118fe5(0x2c0)](_0x2b08dd)),_0x142985[_0x118fe5(0x22b)]({'unitId':_0x52f3e4,'subUnitId':_0x50b6ff,'token':_0x537ba2,'type':$[_0x118fe5(0x29a)]}),!0x0;}},Ds={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':_0x1573ee(0x27e),async 'handler'(_0xc827,_0x2e011c){const _0x5ad740=_0x1573ee,_0x16745a=_0xc827[_0x5ad740(0xfa)](_0x338140),_0x53b900=_0xc827['get'](X),_0x27ca73=_0xc827[_0x5ad740(0xfa)](_0x225145);if(!_0x2e011c)return!0x1;const {token:_0x327ad4,dataRangeInfo:_0x5a0f9e,unitId:_0x296601,subUnitId:_0x3b4639}=_0x2e011c,_0x1a46f2=[],_0x126270=[],_0x344d05=(await _0x53b900[_0x5ad740(0x1d4)]({'unitId':_0x296601,'subUnitId':_0x3b4639,'pivotTableId':_0x327ad4,'params':{'type':k[_0x5ad740(0x220)],'updatePivotSource':{'dataRangeInfo':_0x5a0f9e,'unitId':_0x296601,'subUnitId':_0x3b4639}}}))['result'][_0x5ad740(0x27f)];if(!_0x344d05)return!0x1;const {changesets:_0x652612,deleteIds:_0x53f104,collectionConfig:_0x2ab30c,oldCollectionConfig:_0x2700b4,view:_0x572a62,isEmpty:_0x2407f5,pivotTableConfig:_0xd7aa81}=_0x344d05;_0x126270[_0x5ad740(0x1c1)]({'id':oo['id'],'params':{'pivotTableId':_0x327ad4,'deleteIds':_0x53f104,'collectionJSON':_0x2ab30c,'dataRangeInfo':_0x5a0f9e,'unitId':_0x296601,'subUnitId':_0x3b4639}}),_0x1a46f2[_0x5ad740(0x254)]({'id':oo['id'],'params':{'pivotTableId':_0x327ad4,'deleteIds':[],'collectionJSON':_0x2700b4,'dataRangeInfo':_0xd7aa81[_0x5ad740(0x216)],'unitId':_0x296601,'subUnitId':_0x3b4639}});const _0x44382e=_0xd7aa81['targetCellInfo'],_0x10f900=new _0x38e21e();_0x10f900[_0x5ad740(0x26c)](_0x572a62);const _0x467f84={'cellInfo':_0x44382e,'view':_0x10f900,'isEmpty':_0x2407f5};if(!await _0xc827[_0x5ad740(0xfa)](ie)[_0x5ad740(0x2ba)][_0x5ad740(0x276)](be)(!0x0,_0x467f84))return!0x1;const _0x1d2e21=Re(_0xc827,_0x10f900,_0x44382e,_0x2407f5),_0x4518a2=we(_0xc827,_0x467f84),{undos:_0x2c8ac6,redos:_0x3df677}=me(_0x16745a,{'pivotTableId':_0x327ad4,'unitId':_0x296601,'subUnitId':_0x3b4639},_0x652612);return _0x312a13([..._0x1d2e21['redos'],..._0x4518a2[_0x5ad740(0x1d6)],..._0x126270,..._0x2c8ac6],_0x16745a),_0x27ca73['pushUndoRedo']({'unitID':_0x296601,'redoMutations':[..._0x1d2e21['redos'],..._0x4518a2[_0x5ad740(0x1d6)],..._0x126270,..._0x2c8ac6],'undoMutations':[..._0x1d2e21['undos'],..._0x4518a2[_0x5ad740(0x169)],..._0x1a46f2,..._0x3df677]}),!0x0;}},Us={'type':_0x4461d6[_0x1573ee(0x2c5)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x56d83d,_0x27a361){const _0x4d2640=_0x1573ee;if(!_0x27a361)return!0x1;const _0x1f1112=_0x56d83d[_0x4d2640(0xfa)](_0x338140),_0x64f4b0=_0x56d83d['get'](X),_0x4f947f=_0x56d83d[_0x4d2640(0xfa)](_0x144d54),_0x52c695=_0x56d83d[_0x4d2640(0xfa)](_0x225145),{pivotTableId:_0x3df0d2,position:_0x128895,index:_0x322d88}=_0x27a361,_0x135107=_0x5e19a7(_0x4f947f);if(!_0x135107)return!0x1;const {unitId:_0xd41715,subUnitId:_0x29be0d}=_0x135107,_0x5a7af4=(await _0x64f4b0['getPivotDisplayConfig']({'unitId':_0xd41715,'subUnitId':_0x29be0d,'pivotTableId':_0x3df0d2,'params':{'type':k[_0x4d2640(0x291)],'updateValuePosition':{'position':_0x128895,'index':_0x322d88}}}))[_0x4d2640(0x117)]['updateValuePosition'];if(!_0x5a7af4)return!0x1;const {changesets:_0x536a24,view:_0x4dc817,isEmpty:_0x858061,pivotTableConfig:_0x28ec67}=_0x5a7af4,_0x584b0a=_0x28ec67['targetCellInfo'],_0x5266da=new _0x38e21e();_0x5266da[_0x4d2640(0x26c)](_0x4dc817);const _0x22dd79=_0x56d83d[_0x4d2640(0xfa)](ie),_0x170274={'cellInfo':_0x584b0a,'view':_0x5266da,'isEmpty':_0x858061};if(!await _0x22dd79['asyncInterceptor']['fetchThroughAsyncInterceptors'](be)(!0x0,_0x170274))return!0x1;const _0x5cd130=Re(_0x56d83d,_0x5266da,_0x584b0a,_0x858061),_0x54dd02=we(_0x56d83d,_0x170274),{undos:_0x4c9ead,redos:_0x5b9f33}=me(_0x1f1112,{'pivotTableId':_0x3df0d2,'unitId':_0xd41715,'subUnitId':_0x29be0d},_0x536a24);return _0x312a13([..._0x5cd130[_0x4d2640(0x1d6)],..._0x54dd02[_0x4d2640(0x1d6)],..._0x5b9f33],_0x1f1112),_0x52c695[_0x4d2640(0x297)]({'unitID':_0xd41715,'redoMutations':[..._0x5cd130[_0x4d2640(0x1d6)],..._0x54dd02['redos'],..._0x5b9f33],'undoMutations':[..._0x5cd130[_0x4d2640(0x169)],..._0x54dd02[_0x4d2640(0x169)],..._0x4c9ead]}),!0x0;}},Nt={'type':_0x4461d6[_0x1573ee(0x1d0)],'id':'sheet.operation.pivot-table-view-formula-mark-dirty','handler'(){return!0x0;}};var Ns=Object[_0x1573ee(0x1f2)],Vs=(_0x2c2b0c,_0x12f03b,_0xbe297,_0xa38422)=>{const _0x142629=_0x1573ee;for(var _0x2aabe0=_0xa38422>0x1?void 0x0:_0xa38422?Ns(_0x12f03b,_0xbe297):_0x12f03b,_0xe84160=_0x2c2b0c[_0x142629(0x1a9)]-0x1,_0x3759c1;_0xe84160>=0x0;_0xe84160--)(_0x3759c1=_0x2c2b0c[_0xe84160])&&(_0x2aabe0=_0x3759c1(_0x2aabe0)||_0x2aabe0);return _0x2aabe0;},at=(_0x1efc40,_0x50c00e)=>(_0x88faf2,_0x31548d)=>_0x50c00e(_0x88faf2,_0x31548d,_0x1efc40);const xs=()=>({'runtimeCellData':{},'dirtyRanges':{}}),Es=(_0x131139,_0x34a8dd,_0x976c22)=>{const _0x209047=_0x1573ee,_0x418fcc=_0x131139[_0x209047(0x1d5)];_0x131139[_0x209047(0xf9)](_0x599d25=>{const _0x4c5c5f=_0x209047,_0x5a4431=_0x599d25[_0x4c5c5f(0x223)](),_0x4e3bd0=_0x599d25[_0x4c5c5f(0x33e)](),_0x277607=_0x599d25[_0x4c5c5f(0x15d)](),_0xb7cea9=_0x599d25[_0x4c5c5f(0x1b4)]();_0x34a8dd[_0x4e3bd0]&&_0x34a8dd[_0x4e3bd0]===_0xb7cea9&&_0x277607===_0xb7cea9&&(_0x131139[_0x4c5c5f(0x121)](_0x5a4431,_0x418fcc[_0x4c5c5f(0x1b4)](_0x4e3bd0)),_0x599d25['setSourceName'](_0x418fcc[_0x4c5c5f(0x1b4)](_0x4e3bd0)));}),_0x131139[_0x209047(0x31f)](_0x584946[_0x209047(0x24d)],_0x3a429d=>{const _0x6de46=_0x209047,_0x548eee=_0x3a429d[_0x6de46(0x223)](),_0x316a50=_0x3a429d[_0x6de46(0x33e)](),_0x571cd7=_0x3a429d[_0x6de46(0x15d)](),_0x3c2521=_0x3a429d['getDisplayName'](),_0x7fac42=_0x3a429d[_0x6de46(0x2a9)](),_0x225f8f=_0x976c22(_0x571cd7,_0x7fac42);_0x34a8dd[_0x316a50]&&_0x34a8dd[_0x316a50]===_0x571cd7&&_0x225f8f===_0x3c2521&&(_0x131139['renameField'](_0x548eee,_0x976c22(_0x418fcc[_0x6de46(0x1b4)](_0x316a50),_0x7fac42)),_0x3a429d[_0x6de46(0x1ad)](_0x418fcc['getDisplayName'](_0x316a50)));});},Os=(_0x463471,_0x16ded4,_0x1371a0)=>{const _0x8f819c=_0x1573ee;var _0x1ed61d,_0x15b1e0;const {arrayFormulaCellData:_0x53a9a8,unitData:_0x19fd82}=_0x16ded4,{unitId:_0x243aea,subUnitId:_0x5b4972}=_0x1371a0,_0x1c2ea0=_0x1371a0['range'],{startColumn:_0x3708da,endColumn:_0x3b351d}=_0x1c2ea0,_0x16744e=(_0x1ed61d=_0x53a9a8==null?void 0x0:_0x53a9a8[_0x243aea])==null?void 0x0:_0x1ed61d[_0x5b4972],_0x23b1e1=(_0x15b1e0=_0x19fd82==null?void 0x0:_0x19fd82[_0x243aea])==null?void 0x0:_0x15b1e0[_0x5b4972],_0x29fc1e=new Set(),_0x4074b7=_0x3b351d-_0x3708da+0x1,{dirtyRanges:_0x320dcf}=_0x463471;if(_0x320dcf)for(const {range:_0x226c49,sheetId:_0x4324c0,unitId:_0x2cb7ce}of _0x320dcf){if(_0x4324c0!==_0x5b4972||_0x243aea!==_0x2cb7ce)continue;const _0x1e3fa2=_0xcfdf09[_0x8f819c(0xea)](_0x226c49,_0x1c2ea0);if(_0x1e3fa2){const {startColumn:_0x1d39cd,endColumn:_0x20520a}=_0x1e3fa2;for(let _0x4c6c27=_0x1d39cd;_0x4c6c27<=_0x20520a;_0x4c6c27++)_0x29fc1e['add'](_0x4c6c27);}}if(_0x29fc1e['size']===_0x4074b7||_0x29fc1e['size']===_0x4074b7)return Array['from'](_0x29fc1e);if(_0x23b1e1){const _0x2ac05f=_0x23b1e1[_0x8f819c(0x166)](),_0x572f61=Object[_0x8f819c(0x20d)](_0x2ac05f);for(const _0x358d2f of _0x572f61){const _0x28f0b3=Number(_0x358d2f),_0x369de8=_0x2ac05f[_0x28f0b3];if(_0x29fc1e['size']===_0x4074b7)break;for(const _0x21914b in _0x369de8){const _0x4c5aae=Number(_0x21914b);_0x4c5aae<_0x3708da||_0x4c5aae>_0x3b351d||_0x29fc1e['add'](_0x4c5aae);}}}if(_0x16744e){const _0x13f689=_0x16744e[_0x8f819c(0x166)](),_0x33d8ee=Object[_0x8f819c(0x20d)](_0x13f689);for(const _0x4eeccc of _0x33d8ee){const _0x32c369=Number(_0x4eeccc),_0x111955=_0x13f689[_0x32c369];if(_0x29fc1e[_0x8f819c(0x2e2)]===_0x4074b7)break;for(const _0x346c73 in _0x111955){const _0x3aba02=Number(_0x346c73);_0x3aba02<_0x3708da||_0x3aba02>_0x3b351d||_0x29fc1e[_0x8f819c(0x230)](_0x3aba02);}}}return Array[_0x8f819c(0x25b)](_0x29fc1e);},As=_0x4a5cef=>{const _0x1231b4=_0x1573ee,_0xcf731f=new Set(),_0x2ba274=[];for(const _0x163f60 of _0x4a5cef){const _0x24131f=_0x163f60[_0x1231b4(0x272)]+','+_0x163f60[_0x1231b4(0x130)]+','+_0x163f60['startColumn']+','+_0x163f60['endColumn'];_0xcf731f[_0x1231b4(0x281)](_0x24131f)||(_0xcf731f[_0x1231b4(0x230)](_0x24131f),_0x2ba274['push'](_0x163f60));}return _0x2ba274;};let dt=class extends _0x163111{constructor(_0x2bc2cc,_0x3cea93,_0x1829ce,_0x416990,_0x370f2b){const _0x59b061=_0x1573ee;super(),N(this,_0x59b061(0x2e3),new _0x3f2757(!0x0)),N(this,_0x59b061(0xe9),_0x230dbd=>{const _0xf72f90=_0x59b061;this[_0xf72f90(0x2e3)]['next'](!0x1);}),N(this,_0x59b061(0x13e),_0x54cc28=>{const _0x4406c6=_0x59b061;this[_0x4406c6(0x2e3)][_0x4406c6(0x1e1)](!0x0);}),(this[_0x59b061(0x340)]=_0x2bc2cc,this['_featureCalculationManagerService']=_0x3cea93,this[_0x59b061(0x34c)]=_0x1829ce,this['_globalComputingSrv']=_0x416990,this[_0x59b061(0x168)]=_0x370f2b,this[_0x59b061(0x144)](),this[_0x59b061(0x2ce)]());}[_0x1573ee(0x144)](){const _0x52eb71=_0x1573ee;this['_subjectCollectionChange'](),this[_0x52eb71(0x1f4)](),this[_0x52eb71(0x277)](),this[_0x52eb71(0x196)]();}[_0x1573ee(0xd8)](){const _0x1f190b=_0x1573ee;this[_0x1f190b(0x170)][_0x1f190b(0x274)](this[_0x1f190b(0x2e3)]),_0x4678d2[_0x1f190b(0x207)](_0x5b51d9[_0x1f190b(0x1ed)],this[_0x1f190b(0xe9)]),_0x4678d2[_0x1f190b(0x207)](_0x5b51d9['onQueryEnd'],this[_0x1f190b(0x13e)]);}[_0x1573ee(0x2ce)](){const _0x2968c0=_0x1573ee;this['disposeWithMe'](this['_commandService'][_0x2968c0(0x210)](_0x58473f=>{const _0xcd42c2=_0x2968c0;_0x58473f['id']===_0x47af4f['id']&&this[_0xcd42c2(0x340)]['handleMoveRange'](_0x58473f[_0xcd42c2(0x178)]);})),this[_0x2968c0(0x142)](this[_0x2968c0(0x34c)][_0x2968c0(0x210)](_0x305b5e=>{const _0x33d014=_0x2968c0;if(_0x305b5e['id']!==ro['id'])return;const _0x13abbb=_0x305b5e[_0x33d014(0x178)],{unitId:_0x282212,subUnitId:_0x58af28,pivotTableId:_0x474a26}=_0x13abbb,_0x46f9e4=_0x13abbb[_0x33d014(0x178)][_0x33d014(0x2a5)],_0x4c60e7={};switch(_0x46f9e4){case k[_0x33d014(0x10c)]:{const _0x73eec5=_0x13abbb[_0x33d014(0x178)]['filter'];if(!_0x73eec5)return;const {row:_0x48f1a7,col:_0x1cd5f3,cellData:_0x2e9d2d,pivotItemRenderInfoCache:_0x55b48d,tableFieldId:_0x2efa79}=_0x73eec5,_0x5bc84b=this['_sheetsPivotDataSourceModel'][_0x33d014(0xca)](_0x13abbb[_0x33d014(0x1c0)]);if(!_0x5bc84b||!_0x55b48d)return;if(_0x2efa79){const _0x188b5b=_0x5bc84b[_0x33d014(0x299)](_0x2efa79);if(!_0x188b5b)return;_0x4c60e7[_0x33d014(0x195)]={..._0x5bc84b[_0x33d014(0x1a8)](_0x188b5b),'tableFieldId':_0x2efa79,'pivotTableId':_0x13abbb[_0x33d014(0x1c0)],'filterInfo':_0x5bc84b['getFilterInfo'](_0x2efa79),'sortInfo':_0x5bc84b[_0x33d014(0x173)](_0x2efa79),'format':_0x5bc84b[_0x33d014(0x11e)](_0x2efa79)};}else{const _0x6007bd=ki(_0x48f1a7,_0x1cd5f3,_0x2e9d2d,_0x5bc84b,_0x55b48d),_0x2343d6=_0x6007bd==null?void 0x0:_0x6007bd[_0x33d014(0xf4)];if(!_0x2343d6)return;const _0x119e91=_0x5bc84b[_0x33d014(0x299)](_0x2343d6);if(!_0x119e91)return;_0x4c60e7[_0x33d014(0x195)]={..._0x5bc84b[_0x33d014(0x1a8)](_0x119e91),'tableFieldId':_0x2343d6,'pivotTableId':_0x13abbb[_0x33d014(0x1c0)],'filterInfo':_0x5bc84b[_0x33d014(0x186)](_0x2343d6),'sortInfo':_0x5bc84b[_0x33d014(0x173)](_0x2343d6),'format':_0x5bc84b[_0x33d014(0x11e)](_0x2343d6)};}}break;case k[_0x33d014(0x32b)]:{const _0x7b5989=_0x13abbb[_0x33d014(0x178)][_0x33d014(0x2fd)];if(!_0x7b5989)return;const {pivotTableId:_0x57d893}=_0x7b5989,_0x347dfb=this['_sheetsPivotDataSourceModel'][_0x33d014(0xca)](_0x57d893);if(!_0x347dfb)return;const _0x1ed4be=this[_0x33d014(0x340)]['getPivotTableConfig'](_0x282212,_0x58af28,_0x57d893),_0x3e32d0=Bi(_0x347dfb,_0x57d893,_0x1ed4be);_0x4c60e7[_0x33d014(0x2fd)]=_0x3e32d0;}break;case k[_0x33d014(0x182)]:{const _0x27443a=this['_sheetsPivotDataSourceModel'][_0x33d014(0xca)](_0x474a26),_0x422d03=this[_0x33d014(0x340)][_0x33d014(0xff)](_0x282212),_0x5d02d5=_0x422d03['getCollection'](_0x474a26);let _0x627864=null;const _0x3d2f96=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26),_0x2ca4bf=_0x13abbb[_0x33d014(0x178)][_0x33d014(0x13d)];if(!_0x27443a||!_0x3d2f96||!_0x2ca4bf)return!0x1;const {dataFieldId:_0xee74ec,fieldArea:_0x3a846d,index:_0x53cbfd}=_0x2ca4bf;_0x27443a[_0x33d014(0x10d)]();const _0x1701a9=_0x27443a['addFieldWithSourceId'](_0xee74ec,_0x3a846d,_0x53cbfd);if(_0x1701a9&&_0x3a846d===_0x584946['Value']){const _0x53964f=_0x1701a9[_0x33d014(0x223)](),_0x395fe5=_0x27443a[_0x33d014(0x299)](_0x53964f);if(_0x395fe5){const _0x432962=_0x395fe5==null?void 0x0:_0x395fe5['getFieldDataType']();_0x27443a[_0x33d014(0x1b2)](_0x1701a9['getId'](),_0x432962===_0x2eec29[_0x33d014(0x2ab)]?_0xaa3851['sum']:_0xaa3851[_0x33d014(0x2a8)]);}const _0x4dd11=_0x27443a['getValueIndex'](),_0x4855bf=_0x27443a[_0x33d014(0x25e)](),_0x3e6efc=_0x27443a[_0x33d014(0x13b)](_0x584946['Value']);if(_0x4dd11===-0x1&&_0x3e6efc>0x1){const _0x585de3=_0x4855bf===_0x3a45e4['None']?_0x3a45e4[_0x33d014(0xd6)]:_0x4855bf,_0x4ee7b6=_0x585de3===_0x3a45e4[_0x33d014(0x116)]?_0x584946[_0x33d014(0x116)]:_0x584946['Column'];_0x27443a['updateValuePosition'](_0x585de3,_0x27443a[_0x33d014(0x13b)](_0x4ee7b6));}}else{if(_0x1701a9&&(_0x3a846d===_0x584946[_0x33d014(0x116)]||_0x3a846d===_0x584946[_0x33d014(0xd6)])){const _0x5142e4=_0x1701a9[_0x33d014(0x223)](),_0x13936a=_0x27443a[_0x33d014(0x299)](_0x5142e4);if(_0x13936a&&(_0x13936a==null?void 0x0:_0x13936a[_0x33d014(0x19d)]())===_0x2eec29[_0x33d014(0x229)]){const _0x15a45d=_0x13936a['getformat']();if(_0x15a45d&&_0x27443a['setFieldFormat'](_0x1701a9[_0x33d014(0x223)](),_0x15a45d),!_0x5d02d5[_0x33d014(0x30b)]()['some'](_0xe80c35=>{const _0x491de2=_0x33d014,_0x1aff74=_0x5d02d5[_0x491de2(0x2d3)](_0xe80c35);return _0x44a5d6(_0x1aff74)?_0x1aff74['getFieldInfo']()[_0x491de2(0x1ae)]===_0xee74ec:!0x1;})){const _0x4c3508=_0x422d03[_0x33d014(0x1b7)](),_0x1e3210=qi(_0x13936a[_0x33d014(0x2cf)],_0x13936a['minDate']),_0x412b56=_0x13936a[_0x33d014(0x1a4)]()+_0x33d014(0x1f8)+Yo(this['_injector'],_0x1e3210),_0x3e05f1=new _0x5bd763(_0x4c3508,_0x412b56,_0x20c89d(0x3),_0x13936a[_0x33d014(0x223)](),_0x1e3210);_0x422d03[_0x33d014(0x15b)](_0x3e05f1),_0x5d02d5[_0x33d014(0x150)](_0x4c3508,_0x412b56),_0x27443a[_0x33d014(0x1d2)](_0x4c3508,_0x3a846d,(_0x53cbfd!=null?_0x53cbfd:0x0)+0x1),_0x627864=_0x3e05f1;}}}}const _0x2208a9=_0x27443a[_0x33d014(0x2e4)](),_0x20ee1d=_0x27443a[_0x33d014(0x328)]()['toJSON']();let _0xc66070;if(_0x627864){_0xc66070=_0x627864['toJSON']();const _0x32c335=_0x627864['getId']();_0x5d02d5[_0x33d014(0xe8)](_0x32c335);let _0x3e8656=!0x0;for(const _0x4d648e in _0x422d03['collections'])if(_0x422d03[_0x33d014(0x217)][_0x4d648e][_0x33d014(0x30b)]()[_0x33d014(0x334)](_0x32c335)){_0x3e8656=!0x1;break;}_0x3e8656&&_0x422d03[_0x33d014(0x33c)](_0x32c335);}const _0x3847dd=_0x27443a[_0x33d014(0x149)]();_0x4c60e7['addPivotField']={'view':_0x20ee1d,'changesets':_0x3847dd,'isEmpty':_0x2208a9,'pivotTableConfig':_0x3d2f96,'shouldBeAddedGroupJSON':_0xc66070};}break;case k['AddPivotTable']:{const _0x50daf9=_0x13abbb[_0x33d014(0x178)]['addPivotTable'];if(!_0x50daf9)return;const _0x3d2309=_0x50daf9[_0x33d014(0x216)],_0x2a2b97=_0x50daf9['pivotTableId'],{collection:_0x4ceb59}=this['_sheetsPivotDataSourceModel'][_0x33d014(0x294)]({'unitId':_0x3d2309['unitId'],'sheetName':_0x3d2309[_0x33d014(0x1be)],'subUnitId':_0x3d2309[_0x33d014(0x2ff)],'range':_0x3d2309[_0x33d014(0x29d)]}),_0x37ff34=new _0x4678d2(_0x4ceb59,void 0x0,_0x2a2b97),_0xabd219=_0x37ff34[_0x33d014(0x328)](),_0x486bc5=_0x37ff34[_0x33d014(0x219)](),_0x2446a4=_0x4ceb59['toJSON']();_0x4c60e7[_0x33d014(0x355)]={'view':_0xabd219,'fieldsConfig':_0x486bc5,'collectionConfig':_0x2446a4,'isEmpty':_0x37ff34[_0x33d014(0x2e4)]()};}break;case k[_0x33d014(0x275)]:{const _0x3140ab=_0x13abbb['params'][_0x33d014(0x2f9)];if(!_0x3140ab)return;const {fieldId:_0x286028,area:_0xa50903,index:_0x4ed4c4}=_0x3140ab,_0x1215be=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x1215be)return;const _0x537174=this[_0x33d014(0x340)]['getPivotTableInstance'](_0x474a26);if(!_0x537174)return;_0x537174[_0x33d014(0x10d)]();const {area:_0x34a907,index:_0x5de97d}=_0x537174['getFieldPositionInfoById'](_0x286028);if(_0x537174['updateFieldPosition'](_0x286028,_0xa50903,_0x4ed4c4),_0xa50903===_0x584946[_0x33d014(0x24d)]&&_0x537174[_0x33d014(0x12f)](_0x286028)[_0x33d014(0x2a9)]()===void 0x0){const _0x54c658=_0x537174['getTableFieldById'](_0x286028);if(_0x54c658&&_0x54c658['getSubtotal']()===void 0x0){const _0x574530=_0x537174[_0x33d014(0x299)](_0x286028);if(_0x574530){const _0x1e9419=_0x574530==null?void 0x0:_0x574530[_0x33d014(0x19d)]();_0x537174['setSubtotalType'](_0x286028,_0x1e9419===_0x2eec29[_0x33d014(0x2ab)]?_0xaa3851['sum']:_0xaa3851[_0x33d014(0x2a8)]);}}}const _0x2ac5dd=_0x537174[_0x33d014(0x25e)](),_0x37f4ed=_0x537174[_0x33d014(0x2b6)](),_0x2f060d=_0x537174[_0x33d014(0x13b)](_0x584946[_0x33d014(0x24d)])>0x1;if(_0x2f060d&&_0x34a907===_0xa50903&&(_0xa50903===_0x584946[_0x33d014(0x116)]&&_0x2ac5dd===_0x3a45e4[_0x33d014(0x116)]||_0xa50903===_0x584946[_0x33d014(0xd6)]&&_0x2ac5dd===_0x3a45e4[_0x33d014(0xd6)])){let _0x18fff8=_0x37f4ed;_0x5de97d<=_0x37f4ed&&_0x18fff8--,_0x4ed4c4<=_0x37f4ed&&_0x18fff8++,_0x537174['updateValuePosition'](_0x2ac5dd,_0x18fff8);}else _0x2f060d&&(_0x34a907===_0x584946[_0x33d014(0x116)]&&_0x2ac5dd===_0x3a45e4[_0x33d014(0x116)]||_0x34a907===_0x584946[_0x33d014(0xd6)]&&_0x2ac5dd===_0x3a45e4[_0x33d014(0xd6)])&&_0x37f4ed>=_0x5de97d&&_0x537174['updateValuePosition'](_0x2ac5dd,_0x37f4ed-0x1),_0x2f060d&&(_0xa50903===_0x584946[_0x33d014(0x116)]&&_0x2ac5dd===_0x3a45e4['Row']||_0xa50903===_0x584946[_0x33d014(0xd6)]&&_0x2ac5dd===_0x3a45e4[_0x33d014(0xd6)])&&_0x37f4ed>=_0x4ed4c4&&_0x537174[_0x33d014(0x2d2)](_0x2ac5dd,_0x37f4ed+0x1);const _0x5af393=_0x537174['query'](),_0x1817ce=_0x537174[_0x33d014(0x2e4)](),_0x4c821b=_0x537174[_0x33d014(0x149)]();_0x4c60e7[_0x33d014(0x2f9)]={'view':_0x5af393[_0x33d014(0x219)](),'changesets':_0x4c821b,'isEmpty':_0x1817ce,'pivotTableConfig':_0x1215be};}break;case k['RemovePivotField']:{const _0x18b4a5=_0x13abbb[_0x33d014(0x178)][_0x33d014(0x30d)];if(!_0x18b4a5)return;const _0x3d9a22=_0x18b4a5[_0x33d014(0x326)],_0x2575eb=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x2575eb)return!0x1;const _0x499432=this[_0x33d014(0x340)][_0x33d014(0xca)](_0x474a26);if(!_0x499432)return!0x1;_0x499432[_0x33d014(0x10d)]();for(const _0x20b139 of _0x3d9a22){const {area:_0xc08aad}=_0x499432[_0x33d014(0x1e8)](_0x20b139);_0xc08aad===_0x584946[_0x33d014(0x24d)]&&_0x499432[_0x33d014(0x1bc)](_0x20b139),(_0xc08aad===_0x584946[_0x33d014(0x116)]||_0xc08aad===_0x584946[_0x33d014(0xd6)])&&_0x499432[_0x33d014(0x108)](_0x20b139),_0x499432[_0x33d014(0x352)](_0x20b139);}const _0x3898e5=_0x499432[_0x33d014(0x2e4)](),_0x401d21=_0x499432[_0x33d014(0x328)]()[_0x33d014(0x219)](),_0x16683d=_0x499432[_0x33d014(0x149)]();_0x4c60e7['removePivotField']={'changesets':_0x16683d,'pivotTableConfig':_0x2575eb,'isEmpty':_0x3898e5,'view':_0x401d21};}break;case k['SetPivotFilter']:{const _0x3f8357=_0x13abbb['params'][_0x33d014(0x100)];if(!_0x3f8357)return;const {tableFieldId:_0x17b51e,items:_0x248e82,isAll:_0x4f7ddd}=_0x3f8357,_0x16b859=this[_0x33d014(0x340)][_0x33d014(0xca)](_0x474a26),_0x1eade9=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x282212,_0x58af28,_0x474a26);if(!_0x16b859||!_0x1eade9)return;_0x16b859[_0x33d014(0x10d)](),_0x16b859[_0x33d014(0x177)](_0x17b51e,{'type':_0x39da1a[_0x33d014(0x1f3)],'list':_0x248e82,'isAll':_0x4f7ddd});const _0x5babe0=_0x16b859['isEmpty'](),_0x158d25=_0x16b859[_0x33d014(0x328)]()['toJSON'](),_0x5d9a43=_0x16b859[_0x33d014(0x149)]();_0x4c60e7['setPivotFilter']={'view':_0x158d25,'changesets':_0x5d9a43,'isEmpty':_0x5babe0,'pivotTableConfig':_0x1eade9};}break;case k[_0x33d014(0x31d)]:{const _0x2b3271=_0x13abbb[_0x33d014(0x178)][_0x33d014(0x32f)];if(!_0x2b3271)return;const {tableFieldId:_0x57675f,filterInfo:_0x17074e}=_0x2b3271,_0x566304=this[_0x33d014(0x340)]['getPivotTableInstance'](_0x474a26),_0x2c5c41=this[_0x33d014(0x340)]['getPivotTableConfig'](_0x282212,_0x58af28,_0x474a26);if(!_0x566304||!_0x2c5c41)return;_0x566304['startCollectChangeset'](),_0x566304[_0x33d014(0x175)](_0x57675f,_0x17074e);const _0x2c320c=_0x566304[_0x33d014(0x2e4)](),_0x59cc97=_0x566304[_0x33d014(0x328)]()['toJSON'](),_0x584ee0=_0x566304[_0x33d014(0x149)]();_0x4c60e7[_0x33d014(0x32f)]={'view':_0x59cc97,'changesets':_0x584ee0,'isEmpty':_0x2c320c,'pivotTableConfig':_0x2c5c41};}break;case k[_0x33d014(0x34b)]:{const _0x2e345d=_0x13abbb[_0x33d014(0x178)][_0x33d014(0x268)];if(!_0x2e345d)return;const {tableFieldId:_0x4a73c9,info:_0xd97128}=_0x2e345d,_0x4e5e89=this[_0x33d014(0x340)][_0x33d014(0xca)](_0x474a26),_0xf6850a=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x4e5e89||!_0xf6850a)return;_0x4e5e89[_0x33d014(0x10d)](),_0x4e5e89['setSortInfo'](_0x4a73c9,_0xd97128);const _0x533b2f=_0x4e5e89[_0x33d014(0x2e4)](),_0xc8ba42=_0x4e5e89[_0x33d014(0x328)]()['toJSON'](),_0x3d6cbd=_0x4e5e89['endCollectChangeset']();_0x4c60e7[_0x33d014(0x268)]={'view':_0xc8ba42,'changesets':_0x3d6cbd,'isEmpty':_0x533b2f,'pivotTableConfig':_0xf6850a};}break;case k[_0x33d014(0x2a1)]:{const _0x172e13=_0x13abbb['params'][_0x33d014(0x1f9)];if(!_0x172e13)return;const {tableFieldId:_0x3cdb7d,displayName:_0x44a84a,subtotalType:_0x4cdef7,format:_0x96b179}=_0x172e13,_0x6faa45=this[_0x33d014(0x340)][_0x33d014(0xca)](_0x474a26),_0xe6aec1=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x6faa45||!_0xe6aec1)return;_0x6faa45['startCollectChangeset'](),_0x44a84a!==void 0x0&&_0x6faa45[_0x33d014(0x121)](_0x3cdb7d,_0x44a84a),_0x4cdef7!==void 0x0&&_0x6faa45[_0x33d014(0x1b2)](_0x3cdb7d,_0x4cdef7),_0x96b179!==void 0x0&&_0x6faa45[_0x33d014(0x338)](_0x3cdb7d,_0x96b179);const _0x3e2826=_0x6faa45[_0x33d014(0x2e4)](),_0x44c8d5=_0x6faa45[_0x33d014(0x328)]()['toJSON'](),_0x1e383e=_0x6faa45[_0x33d014(0x149)]();_0x4c60e7[_0x33d014(0x1f9)]={'changesets':_0x1e383e,'pivotTableConfig':_0xe6aec1,'isEmpty':_0x3e2826,'view':_0x44c8d5};}break;case k[_0x33d014(0x220)]:{const _0x52eac1=_0x13abbb['params'][_0x33d014(0x27f)];if(!_0x52eac1)return;const {dataRangeInfo:_0xd95242,unitId:_0x916cb4,subUnitId:_0x54f6fe}=_0x52eac1,_0x3aa85d=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x916cb4,_0x54f6fe,_0x474a26),_0x3536e0=this[_0x33d014(0x340)]['getPivotTableInstance'](_0x474a26);if(!this['_sheetsPivotDataSourceModel'][_0x33d014(0x22d)](_0x916cb4,_0x474a26)||!_0x3536e0||!_0x3aa85d)return;const _0x1c9c10=this[_0x33d014(0x340)]['getUpdateRangeDeleteIds'](_0x916cb4,_0x474a26,_0xd95242),_0x3318ca=this[_0x33d014(0x340)][_0x33d014(0x22d)](_0x916cb4,_0x474a26)[_0x33d014(0x219)](),{collection:_0x4a417b}=this[_0x33d014(0x340)][_0x33d014(0x294)]({'unitId':_0xd95242[_0x33d014(0x307)],'sheetName':_0xd95242[_0x33d014(0x1be)],'subUnitId':_0xd95242[_0x33d014(0x2ff)],'range':_0xd95242['range']}),_0x174bc5=_0x4a417b[_0x33d014(0x219)]();_0x3536e0[_0x33d014(0x10d)]();const _0x367a50=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x916cb4)[_0x33d014(0x1b9)]()||_0xf76d57;_0x3536e0[_0x33d014(0x26f)](_0x48e422=>{const _0x352a74=_0x33d014,_0x50bf72=_0x48e422[_0x352a74(0x33e)]();if(!_0x4a417b[_0x352a74(0x2c1)](_0x50bf72)){const _0x4a2980=_0x4a417b[_0x352a74(0x324)](_0x48e422[_0x352a74(0x15d)]());if(_0x4a2980){_0x3536e0[_0x352a74(0xdd)](_0x48e422[_0x352a74(0x223)](),_0x4a2980[_0x352a74(0x1a4)](),_0x4a2980[_0x352a74(0x223)]());const {area:_0x38ad1e}=_0x3536e0[_0x352a74(0x1e8)](_0x48e422['getId']());let _0x4af36f=_0x48e422[_0x352a74(0x15d)]();const _0x34719b=_0x48e422[_0x352a74(0x1b4)]();if(_0x38ad1e===_0x584946[_0x352a74(0x24d)]){const _0x3529fe=_0x48e422[_0x352a74(0x2a9)]();_0x4af36f=_0x367a50(_0x4a2980[_0x352a74(0x1a4)](),_0x3529fe);}_0x34719b!==_0x4af36f&&_0x3536e0[_0x352a74(0x121)](_0x48e422[_0x352a74(0x223)](),_0x4af36f);}else _0x3536e0[_0x352a74(0x352)](_0x48e422[_0x352a74(0x223)]());}});const _0x34b551=_0x3536e0[_0x33d014(0x2e4)](),_0x51888a=_0x3536e0[_0x33d014(0x328)]()[_0x33d014(0x219)](),_0x172c9c=_0x3536e0[_0x33d014(0x149)]();_0x4c60e7[_0x33d014(0x27f)]={'view':_0x51888a,'changesets':_0x172c9c,'isEmpty':_0x34b551,'pivotTableConfig':_0x3aa85d,'collectionConfig':_0x174bc5,'oldCollectionConfig':_0x3318ca,'deleteIds':_0x1c9c10};}break;case k[_0x33d014(0x291)]:{const _0x43ccf5=_0x13abbb[_0x33d014(0x178)]['updateValuePosition'];if(!_0x43ccf5)return;const {position:_0x66cb06,index:_0xd53052}=_0x43ccf5,_0xf98762=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0xf98762)return!0x1;const _0x2ebf82=this[_0x33d014(0x340)][_0x33d014(0xca)](_0x474a26);if(!_0x2ebf82)return!0x1;_0x2ebf82[_0x33d014(0x10d)](),_0x2ebf82[_0x33d014(0x2d2)](_0x66cb06,_0xd53052);const _0x17f5f6=_0x2ebf82['isEmpty'](),_0x3efbf5=_0x2ebf82[_0x33d014(0x328)]()[_0x33d014(0x219)](),_0x4da5db=_0x2ebf82[_0x33d014(0x149)]();_0x4c60e7['updateValuePosition']={'changesets':_0x4da5db,'pivotTableConfig':_0xf98762,'isEmpty':_0x17f5f6,'view':_0x3efbf5};}break;case k[_0x33d014(0x26d)]:{const _0x120e4d=_0x13abbb['params'][_0x33d014(0x333)];if(!_0x120e4d)return;const {tableFieldId:_0x26cc72,collapse:_0x24f800,item:_0x355ac7}=_0x120e4d,_0x49e5d6=this['_sheetsPivotDataSourceModel'][_0x33d014(0xca)](_0x474a26),_0x30cfea=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x49e5d6||!_0x30cfea)return;_0x49e5d6[_0x33d014(0x10d)](),_0x49e5d6[_0x33d014(0x20a)](_0x26cc72,_0x24f800,_0x355ac7);const _0x19a344=_0x49e5d6[_0x33d014(0x2e4)](),_0x255e0=_0x49e5d6[_0x33d014(0x328)]()['toJSON'](),_0x7e29f7=_0x49e5d6[_0x33d014(0x149)]();_0x4c60e7['setPivotCollapse']={'view':_0x255e0,'isEmpty':_0x19a344,'pivotTableConfig':_0x30cfea,'changesets':_0x7e29f7};}break;case k[_0x33d014(0x15a)]:{const _0x3453d0=_0x13abbb[_0x33d014(0x178)]['setPivotTableConfig'];if(!_0x3453d0)return;const {pivotTableConfig:_0x1944d7}=_0x3453d0,_0x30bd44=this['_sheetsPivotDataSourceModel'][_0x33d014(0xca)](_0x474a26),_0x598344=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x30bd44||!_0x598344)return;_0x30bd44['startCollectChangeset'](),Ki(_0x30bd44,_0x1944d7);const _0x34fb3c=_0x30bd44[_0x33d014(0x2e4)](),_0x150d03=_0x30bd44[_0x33d014(0x328)]()[_0x33d014(0x219)](),_0x41c163=_0x30bd44['endCollectChangeset']();_0x4c60e7[_0x33d014(0x184)]={'view':_0x150d03,'isEmpty':_0x34fb3c,'pivotTableConfig':{..._0x598344,'fieldsConfig':_0x30bd44[_0x33d014(0x219)]()},'changesets':_0x41c163};}break;case k[_0x33d014(0x318)]:{const _0x2c28ff=_0x13abbb[_0x33d014(0x178)]['resetPivotTable'];if(!_0x2c28ff)return;const _0x9e524b=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x474a26),_0x31fa97=this[_0x33d014(0x340)][_0x33d014(0x200)](_0x282212,_0x58af28,_0x474a26);if(!_0x9e524b||!_0x31fa97)return;_0x9e524b['startCollectChangeset'](),Hi(_0x9e524b,_0x2c28ff[_0x33d014(0x241)]);const _0x50a389=_0x9e524b['query']()['toJSON'](),_0x42d86d=_0x9e524b[_0x33d014(0x149)]();_0x4c60e7[_0x33d014(0x1eb)]={'view':_0x50a389,'isEmpty':!0x0,'pivotTableConfig':{..._0x31fa97,'fieldsConfig':_0x9e524b[_0x33d014(0x219)]()},'changesets':_0x42d86d};}break;case k[_0x33d014(0x132)]:{const _0x513a4a=_0x13abbb[_0x33d014(0x178)]['addPivotTableWithConfig'];if(!_0x513a4a)return;const _0x3373af=_0x513a4a[_0x33d014(0x216)],_0x25452d=_0x513a4a[_0x33d014(0x1c0)],{collection:_0x1ea983}=this[_0x33d014(0x340)]['createCollectionWithDataRange']({'unitId':_0x3373af['unitId'],'sheetName':_0x3373af[_0x33d014(0x1be)],'subUnitId':_0x3373af[_0x33d014(0x2ff)],'range':_0x3373af[_0x33d014(0x29d)]}),_0xf9afd1=new _0x4678d2(_0x1ea983,void 0x0,_0x25452d),_0x7a1209=_0x1ea983['getFieldIds'](),{rows:_0x301073,columns:_0x4b9b5,filters:_0x490d93,values:_0x4417b2}=_0x513a4a[_0x33d014(0x213)];_0xf9afd1[_0x33d014(0x10d)]();for(const {field:_0xf4f07a,selectedItems:_0x8cb2b}of _0x301073||[]){const _0x4711be=_0x7a1209[_0xf4f07a];if(_0x4711be){const _0x5d8a88=_0xf9afd1[_0x33d014(0x1d2)](_0x4711be,_0x584946[_0x33d014(0x116)]);_0x8cb2b&&_0x5d8a88&&_0xf9afd1[_0x33d014(0x177)](_0x5d8a88['getId'](),{'type':_0x39da1a[_0x33d014(0x1f3)],'list':_0x8cb2b,'isAll':!0x1});}}for(const {field:_0x408daf,selectedItems:_0x3e1af9}of _0x4b9b5||[]){const _0x2382fa=_0x7a1209[_0x408daf];if(_0x2382fa){const _0x2d3e9d=_0xf9afd1['addFieldWithSourceId'](_0x2382fa,_0x584946[_0x33d014(0xd6)]);_0x3e1af9&&_0x2d3e9d&&_0xf9afd1[_0x33d014(0x177)](_0x2d3e9d[_0x33d014(0x223)](),{'type':_0x39da1a[_0x33d014(0x1f3)],'list':_0x3e1af9,'isAll':!0x1});}}for(const {field:_0x45d970,selectedItems:_0x14933e}of _0x490d93||[]){const _0x2bb62d=_0x7a1209[_0x45d970];if(_0x2bb62d){const _0x2221a4=_0xf9afd1[_0x33d014(0x1d2)](_0x2bb62d,_0x584946['Filter']);_0x14933e&&_0x2221a4&&_0xf9afd1[_0x33d014(0x177)](_0x2221a4['getId'](),{'type':_0x39da1a[_0x33d014(0x1f3)],'list':_0x14933e,'isAll':!0x1});}}for(const {field:_0xae066,subTotalType:_0x158c7d,formatString:_0x4d50ae}of _0x4417b2||[]){const _0x43183e=_0x1ea983[_0x33d014(0x2d3)](_0x7a1209[_0xae066]);if(!_0x43183e)continue;const _0x2e41e6=_0x7a1209[_0xae066];if(_0x2e41e6){const _0x34e5c2=_0xf9afd1[_0x33d014(0x1d2)](_0x2e41e6,_0x584946[_0x33d014(0x24d)]);if(_0x34e5c2){if(_0x158c7d!==void 0x0){_0xf9afd1['setSubtotalType'](_0x34e5c2[_0x33d014(0x223)](),_0x158c7d);const _0x4af07f=this[_0x33d014(0x340)][_0x33d014(0xff)](_0x3373af['unitId'])[_0x33d014(0x1b9)]()||_0xf76d57,_0x302865=_0x1ea983[_0x33d014(0x1b4)](_0x2e41e6),_0x13ca19=_0x4af07f(_0x302865,_0x158c7d);_0xf9afd1[_0x33d014(0x121)](_0x34e5c2['getId'](),_0x13ca19);}else{if(_0x43183e){const _0x242ed3=_0x43183e==null?void 0x0:_0x43183e[_0x33d014(0x19d)]();_0xf9afd1[_0x33d014(0x1b2)](_0x34e5c2[_0x33d014(0x223)](),_0x242ed3===_0x2eec29[_0x33d014(0x2ab)]?_0xaa3851[_0x33d014(0x180)]:_0xaa3851[_0x33d014(0x2a8)]);}}_0x4d50ae&&_0xf9afd1[_0x33d014(0x338)](_0x34e5c2[_0x33d014(0x223)](),_0x4d50ae);}}}const _0x30b091=_0xf9afd1[_0x33d014(0x328)](),_0x5c3294=_0xf9afd1['toJSON'](),_0xc25baa=_0xf9afd1[_0x33d014(0x2e4)](),_0x4d8735=_0xf9afd1['endCollectChangeset'](),_0x24c180=_0x1ea983[_0x33d014(0x219)]();_0x4c60e7[_0x33d014(0x249)]={'view':_0x30b091,'fieldsConfig':_0x5c3294,'collectionConfig':_0x24c180,'isEmpty':_0xc25baa,'changesets':_0x4d8735};}break;case k['DrillDown']:{const _0xc7f191=Li(this[_0x33d014(0x168)],_0x13abbb);if(!_0xc7f191)return;const {range:_0x4db982,sourceSubUnitId:_0x335cf2,sourceUnitId:_0x2ebd9f,formatMap:_0x293cd0,indexes:_0x4f8795}=_0xc7f191;_0x4c60e7[_0x33d014(0x1a2)]={'range':_0x4db982,'sourceSubUnitId':_0x335cf2,'sourceUnitId':_0x2ebd9f,'formatMap':_0x293cd0,'indexes':_0x4f8795};}break;}this['_commandService'][_0x33d014(0x317)](lo['id'],{'version':_0x13abbb[_0x33d014(0xcb)],'result':_0x4c60e7},{'onlyLocal':!0x0});}));}[_0x1573ee(0x277)](){const _0x3523e2=_0x1573ee;this[_0x3523e2(0x142)](this[_0x3523e2(0x34c)]['onCommandExecuted'](_0x392f3d=>{const _0x146e56=_0x3523e2;if(_0x392f3d['id']!==uo['id'])return;const _0x35f1a7=_0x392f3d[_0x146e56(0x178)];return this[_0x146e56(0x340)][_0x146e56(0xf3)](_0x35f1a7['textInfo']),!0x0;}));}[_0x1573ee(0xd5)](){const _0x2901f=_0x1573ee;this[_0x2901f(0x340)][_0x2901f(0x265)][_0x2901f(0xd9)](_0x2b7b51=>{const _0x438396=_0x2901f;switch(_0x2b7b51[_0x438396(0x2a5)]){case Le[_0x438396(0x230)]:_0x2b7b51[_0x438396(0x22f)]&&_0x2b7b51[_0x438396(0x2c7)]&&this[_0x438396(0x330)](_0x2b7b51[_0x438396(0x28b)],_0x2b7b51[_0x438396(0x22f)],_0x2b7b51[_0x438396(0x2c7)]);break;case Le[_0x438396(0x124)]:{const {unitId:_0xa89881,subUnitId:_0x42455d,token:_0x131bc6}=_0x2b7b51;_0xa89881&&_0x42455d&&_0x131bc6&&this[_0x438396(0x29f)](_0xa89881,_0x42455d,_0x131bc6);}break;case Le['update']:{const {token:_0x52f655,oldSourceRangeInfo:_0x36f520,dataRangeInfo:_0x1922ec,targetCellInfo:_0x4c5abc}=_0x2b7b51,{unitId:_0x49aabf,subUnitId:_0x57e494}=_0x36f520||{};_0x49aabf&&_0x57e494&&_0x52f655&&this[_0x438396(0x29f)](_0x49aabf,_0x57e494,_0x52f655),_0x1922ec&&_0x4c5abc&&this[_0x438396(0x330)](_0x52f655,_0x1922ec,_0x4c5abc);}break;}});}['_subjectFieldsCollectionChange'](){const _0x25691a=_0x1573ee;this[_0x25691a(0x340)][_0x25691a(0x115)][_0x25691a(0xd9)](_0x7c4afe=>{const _0x393b53=_0x25691a;Object[_0x393b53(0x20d)](_0x7c4afe)[_0x393b53(0x25d)](_0x42c60c=>{const _0x6c2745=_0x393b53,_0x58ed20=this[_0x6c2745(0x340)][_0x6c2745(0x296)](_0x42c60c);if(_0x58ed20){const _0x4860bb=this[_0x6c2745(0x340)][_0x6c2745(0x200)](_0x58ed20==null?void 0x0:_0x58ed20['unitId'],_0x58ed20==null?void 0x0:_0x58ed20['subUnitId'],_0x42c60c);_0x4860bb&&(this[_0x6c2745(0x330)](_0x42c60c,_0x4860bb[_0x6c2745(0x216)],_0x4860bb[_0x6c2745(0x2c7)]),this['triggerDirtyFeature']([{'unitId':_0x58ed20[_0x6c2745(0x307)],'subUnitId':_0x58ed20[_0x6c2745(0x2ff)],'token':_0x42c60c}]));}});});}['_subjectViewChange'](){const _0x2538a4=_0x1573ee;this[_0x2538a4(0x340)][_0x2538a4(0x2b2)][_0x2538a4(0xd9)](_0x15cacd=>{const _0x867f6a=_0x2538a4,{unitId:_0xf813e,subUnitId:_0x319d9a,pivotTableId:_0x3bb6df}=_0x15cacd;_0xf813e&&_0x319d9a&&_0x3bb6df&&this[_0x867f6a(0x246)]([{'unitId':_0xf813e,'subUnitId':_0x319d9a,'token':_0x3bb6df}]);});}[_0x1573ee(0x246)](_0x367b18){const _0x49fde4=_0x1573ee,_0x2beaa2={};_0x367b18[_0x49fde4(0x25d)](_0x46e059=>{var _0x412e3c,_0x17ba28;const {unitId:_0x3e9a22,subUnitId:_0xfaa5b4,token:_0x3f9945}=_0x46e059;_0x2beaa2[_0x3e9a22]=(_0x412e3c=_0x2beaa2[_0x3e9a22])!=null?_0x412e3c:{},_0x2beaa2[_0x3e9a22][_0xfaa5b4]=(_0x17ba28=_0x2beaa2[_0x3e9a22][_0xfaa5b4])!=null?_0x17ba28:{},_0x2beaa2[_0x3e9a22][_0xfaa5b4][_0x3f9945]=!0x0;}),this[_0x49fde4(0x34c)]['executeCommand'](Nt['id'],_0x2beaa2);}[_0x1573ee(0x29f)](_0x581e4f,_0x5985d1,_0x16ee66){const _0x57c662=_0x1573ee;this[_0x57c662(0x1fd)][_0x57c662(0x323)](_0x581e4f,_0x5985d1,[_0x16ee66]);}[_0x1573ee(0x330)](_0x2d12b8,_0x3a066e,_0x19d835){const _0x3ec452=_0x1573ee,{unitId:_0x2dc007,subUnitId:_0x28611c}=_0x3a066e;this[_0x3ec452(0x1fd)]['has'](_0x19d835[_0x3ec452(0x307)],_0x19d835[_0x3ec452(0x2ff)],_0x2d12b8)&&this[_0x3ec452(0x29f)](_0x2dc007,_0x28611c,_0x2d12b8);const _0x2b9b03={'sheetId':_0x28611c,..._0x3a066e};this[_0x3ec452(0x1fd)][_0x3ec452(0x18d)](_0x19d835[_0x3ec452(0x307)],_0x19d835['subUnitId'],_0x2d12b8,{'unitId':_0x19d835[_0x3ec452(0x307)],'subUnitId':_0x19d835[_0x3ec452(0x2ff)],'dependencyRanges':[_0x2b9b03],'getDirtyData':(_0x45ec83,_0x2aa776)=>{const _0xc47dd7=_0x3ec452,_0x3f655f=this[_0xc47dd7(0x340)],_0x3eaddd=_0x3f655f[_0xc47dd7(0x296)](_0x2d12b8);if(!_0x3eaddd)return xs();const {unitId:_0x5f562d,subUnitId:_0x200f16}=_0x3eaddd,_0x235880=Os(_0x45ec83,_0x2aa776,_0x3a066e);if(_0x235880[_0xc47dd7(0x1a9)]>0x0){const _0x26629b=_0x3f655f[_0xc47dd7(0x22d)](_0x2dc007,_0x2d12b8),_0x5dff04=_0x26629b[_0xc47dd7(0x30b)](),_0x1e5fca=this['getMatrixFromRunTimeData'](_0x3a066e[_0xc47dd7(0x307)],_0x3a066e[_0xc47dd7(0x2ff)],_0x2aa776),_0x5e6ec6={},_0x4bdc00=this['_sheetsPivotDataSourceModel'][_0xc47dd7(0xff)](_0x5f562d)[_0xc47dd7(0x1b9)]()||_0xf76d57,_0x1b1349=[];for(const _0x49b939 of _0x235880){const _0x320a00=_0x49b939-(_0x3a066e[_0xc47dd7(0x29d)][_0xc47dd7(0x2d1)]||0x0),_0x2c37db=_0x5dff04[_0x320a00];_0x1b1349[_0xc47dd7(0x1c1)](_0x2c37db),_0x5e6ec6[_0x2c37db]=_0x26629b['getFieldById'](_0x2c37db)['getName'](),_0x3f655f[_0xc47dd7(0xff)](_0x2dc007)[_0xc47dd7(0x1b1)](_0x2c37db,_0x3a066e,_0x320a00,_0x1e5fca);}_0x26629b[_0xc47dd7(0x32c)](_0x1b1349)[_0xc47dd7(0x25d)](_0x54379e=>{const _0x5e5a08=_0xc47dd7,[_0x4d29c6,_0x5e2e5e]=_0x54379e,_0x4679a6=_0x26629b['getFieldById'](_0x4d29c6),_0x177f8e=_0x26629b[_0x5e5a08(0x2d3)](_0x5e2e5e);_0x4679a6&&_0x177f8e&&_0x4679a6[_0x5e5a08(0x159)](_0x177f8e);}),_0x26629b[_0xc47dd7(0x2e5)]();const _0x23ba0d=_0x3f655f['getPivotTableInstance'](_0x2d12b8);if(_0x23ba0d){Es(_0x23ba0d,_0x5e6ec6,_0x4bdc00),_0x23ba0d['setDirty'](!0x0);const _0xb11ddc=_0x23ba0d['query'](),_0x2f65bc=_0x3f655f[_0xc47dd7(0x200)](_0x5f562d,_0x200f16,_0x2d12b8),_0x3cdb72=_0x3f655f[_0xc47dd7(0xff)](_0x2dc007)['toJSON']();_0x3f655f[_0xc47dd7(0x258)](_0x5f562d,_0x200f16,$[_0xc47dd7(0x29a)],_0x2d12b8,_0xb11ddc,_0x2f65bc,_0x3cdb72,!0x0);}}return this[_0xc47dd7(0x273)](_0x5f562d,_0x200f16,_0x2d12b8);}});}['getMatrixFromRunTimeData'](_0x49139b,_0x2f0f8f,_0xc258f3){var _0x8f8322,_0xd50e18;const {arrayFormulaCellData:_0x4b369b,unitData:_0x368661}=_0xc258f3,_0x535ad7=(_0x8f8322=_0x4b369b==null?void 0x0:_0x4b369b[_0x49139b])==null?void 0x0:_0x8f8322[_0x2f0f8f],_0x5bf042=(_0xd50e18=_0x368661==null?void 0x0:_0x368661[_0x49139b])==null?void 0x0:_0xd50e18[_0x2f0f8f];return{'arrayFormulaCellDataMatrix':_0x535ad7,'unitDataMatrix':_0x5bf042};}['getDirtyInfo'](_0x174cbf,_0x4c32fd,_0x3bb6fe){const _0x2f7a62=_0x1573ee,_0x3f593e=this[_0x2f7a62(0x340)][_0x2f7a62(0xfb)](_0x174cbf,_0x4c32fd,_0x3bb6fe),_0x24ab4a=[],_0x534be5=new _0x3ea36a();if(_0x3f593e){const {rangeCache:_0x4cdc16,matrix:_0x38c86b,oldRangeCache:_0x235cbe,oldMatrix:_0x1ef059}=_0x3f593e,_0x5848bc=$t(_0x235cbe),_0x59feec=$t(_0x4cdc16);_0x24ab4a[_0x2f7a62(0x1c1)](..._0x59feec,..._0x5848bc),_0x1ef059&&_0x235cbe&&_0x5848bc[_0x2f7a62(0x25d)](_0x2e2f24=>{const _0x222410=_0x2f7a62;for(let _0x1c96f3=_0x2e2f24[_0x222410(0x272)];_0x1c96f3<=_0x2e2f24[_0x222410(0x130)];_0x1c96f3++)for(let _0x5b94e9=_0x2e2f24['startColumn'];_0x5b94e9<=_0x2e2f24['endColumn'];_0x5b94e9++)_0x534be5[_0x222410(0x30a)](_0x1c96f3,_0x5b94e9);}),_0x38c86b&&_0x59feec&&_0x59feec[_0x2f7a62(0x25d)](_0x485da9=>{const _0x43195c=_0x2f7a62;for(let _0x570b62=_0x485da9['startRow'];_0x570b62<=_0x485da9['endRow'];_0x570b62++)for(let _0x1c9b90=_0x485da9['startColumn'];_0x1c9b90<=_0x485da9[_0x43195c(0x1b0)];_0x1c9b90++)_0x534be5[_0x43195c(0x342)](_0x570b62,_0x1c9b90,_0x38c86b[_0x43195c(0x19e)](_0x570b62,_0x1c9b90));});}const _0x4aac93={};return _0x4aac93[_0x174cbf]={[_0x4c32fd]:As(_0x24ab4a)},{'runtimeCellData':{[_0x174cbf]:{[_0x4c32fd]:_0x534be5}},'dirtyRanges':_0x4aac93};}[_0x1573ee(0x28a)](){}};dt=Vs([at(0x0,_0x24210e(W)),at(0x1,_0x24210e(_0x477cae)),at(0x2,_0x24210e(_0x338140)),at(0x3,_0x24210e(_0x47a7cb)),at(0x4,_0x24210e(_0x220342))],dt);var ks=Object['getOwnPropertyDescriptor'],Bs=(_0x2ff557,_0x54b0c7,_0x193768,_0x232008)=>{for(var _0x14537d=_0x232008>0x1?void 0x0:_0x232008?ks(_0x54b0c7,_0x193768):_0x54b0c7,_0x56ff1e=_0x2ff557['length']-0x1,_0x4b20a3;_0x56ff1e>=0x0;_0x56ff1e--)(_0x4b20a3=_0x2ff557[_0x56ff1e])&&(_0x14537d=_0x4b20a3(_0x14537d)||_0x14537d);return _0x14537d;},wt=(_0x257651,_0xf903e3)=>(_0x582b66,_0x4a9f06)=>_0xf903e3(_0x582b66,_0x4a9f06,_0x257651);let ct=class extends _0x163111{constructor(_0x504978,_0x3e3f12,_0x4699cf,_0x15493c){const _0x51689b=_0x1573ee;super(),N(this,_0x51689b(0x141),new _0x560768()),(this[_0x51689b(0x2c4)]=_0x504978,this[_0x51689b(0x29b)]=_0x3e3f12,this[_0x51689b(0x198)]=_0x4699cf,this[_0x51689b(0x27a)]=_0x15493c,this['_initClearSelectionCommandInterceptor']());}[_0x1573ee(0x143)](){const _0xb05e81=_0x1573ee;this[_0xb05e81(0x142)](this['_sheetInterceptorService'][_0xb05e81(0x280)]({'getMutations':_0x7e19a1=>{const _0x51f553=_0xb05e81;if(_0x7e19a1['id']===_0x1e2214['id']||_0x7e19a1['id']===_0x12d795['id']){const _0x3834f2=[],_0x4531ab=[],_0x12a6a0=this[_0x51f553(0x198)][_0x51f553(0x337)]()['map'](_0x2b4df3=>_0x2b4df3['range']),_0x420a27=_0x5e19a7(this[_0x51f553(0x2c4)]);if(!_0x420a27)return{'redos':[],'undos':[]};const {unitId:_0x3b5b2a,subUnitId:_0x2885bd}=_0x420a27,_0x4f4640={},_0x2f5c9a=this['_sheetsPivotTableConfigModel'][_0x51f553(0x1c5)](_0x3b5b2a,_0x2885bd);if(_0x2f5c9a!=null&&_0x2f5c9a['size'])for(const [_0x1984a1,_0x4afad3]of _0x2f5c9a){const {unitId:_0x425d04,subUnitId:_0x285338,row:_0x1bc4c0,col:_0x8a18f2}=_0x4afad3[_0x51f553(0x2c7)];_0x425d04===_0x420a27['unitId']&&_0x285338===_0x420a27[_0x51f553(0x2ff)]&&(_0x4f4640[_0x1bc4c0+'-'+_0x8a18f2]=_0x1984a1);}return _0x12a6a0&&_0x420a27&&_0x12a6a0[_0x51f553(0x25d)](_0x37b89f=>{const _0x39dbde=_0x51f553;_0x11aff0[_0x39dbde(0x2fc)](_0x37b89f,(_0x2b429f,_0x5a9d20)=>{const _0x1ff4c5=_0x39dbde,_0x29d655=_0x2b429f+'-'+_0x5a9d20;if(_0x4f4640[_0x29d655]){const _0x588d79=_0x4f4640[_0x29d655];_0x3834f2[_0x1ff4c5(0x1c1)]({'id':Et['id'],'params':{'unitId':_0x3b5b2a,'subUnitId':_0x2885bd,'pivotTableId':_0x588d79}});const _0xb0698=this[_0x1ff4c5(0x27a)]['getCollection'](_0x3b5b2a,_0x588d79),_0x56c30c=this[_0x1ff4c5(0x27a)][_0x1ff4c5(0x200)](_0x3b5b2a,_0x2885bd,_0x588d79);_0x4531ab['push']({'id':Ct['id'],'params':{'unitId':_0x3b5b2a,'subUnitId':_0x2885bd,'pivotTableId':_0x588d79,'pivotTableConfig':_0x56c30c,'collectionConfig':_0xb0698}});}});}),{'redos':_0x3834f2,'undos':_0x4531ab};}return{'redos':[],'undos':[]};}}));}};ct=Bs([wt(0x0,_0x144d54),wt(0x1,_0x24210e(_0x564c44)),wt(0x2,_0x24210e(_0x1b4059)),wt(0x3,_0x24210e(ve))],ct);var Ls=Object[_0x1573ee(0x1f2)],$s=(_0x4045c3,_0x2a1f53,_0x4db9b5,_0x41290e)=>{const _0x22f902=_0x1573ee;for(var _0x53abd7=_0x41290e>0x1?void 0x0:_0x41290e?Ls(_0x2a1f53,_0x4db9b5):_0x2a1f53,_0x4d1cf5=_0x4045c3[_0x22f902(0x1a9)]-0x1,_0x19380c;_0x4d1cf5>=0x0;_0x4d1cf5--)(_0x19380c=_0x4045c3[_0x4d1cf5])&&(_0x53abd7=_0x19380c(_0x53abd7)||_0x53abd7);return _0x53abd7;},rt=(_0x3b17a3,_0x1df2e2)=>(_0x339392,_0x58d616)=>_0x1df2e2(_0x339392,_0x58d616,_0x3b17a3);let ut=class extends _0x163111{constructor(_0x15f43f,_0x34e462,_0x35d5a5,_0x59d761,_0x582231){const _0x23a595=_0x1573ee;super(),this[_0x23a595(0x29b)]=_0x15f43f,this[_0x23a595(0x168)]=_0x34e462,this['_univerInstanceService']=_0x35d5a5,this[_0x23a595(0x27a)]=_0x59d761,this['_sheetsPivotTableService']=_0x582231,this[_0x23a595(0x107)]();}[_0x1573ee(0x2b4)](_0x194e8d,_0x4f122b,_0x5c45a3){const _0x439cd9=_0x1573ee,{pageView:_0x56fe27,cornerView:_0x1a0dd0,rowView:_0x17af26,colView:_0x45acd3,dataView:_0x49f2d2}=_0x4f122b,_0x57d066=_0x194e8d;let _0x51d019;if(_0x5c45a3)_0x51d019=[...$i(_0x57d066)];else{const _0x445ded=ge(_0x57d066,_0x56fe27,!0x0),_0x227590=_0x56fe27[_0x439cd9(0x247)]>=0x0?_0x56fe27[_0x439cd9(0x247)]+0x1:0x0,_0x322399=_0x1a0dd0[_0x439cd9(0x31b)],_0x227b2f=_0x1a0dd0['colCount'],_0x3d1f7c=_0x445ded[_0x439cd9(0x1a9)]>0x0?It:0x0,_0x299339=ge({'row':_0x57d066[_0x439cd9(0xd3)]+_0x227590+_0x3d1f7c,'col':_0x57d066['col']},_0x1a0dd0,!0x1,!0x1),_0x4d42af=ge({'row':_0x57d066[_0x439cd9(0xd3)]+_0x227590+_0x3d1f7c+_0x322399,'col':_0x57d066[_0x439cd9(0x267)]},_0x17af26,!0x1,!0x0),_0xf2985f=ge({'row':_0x57d066[_0x439cd9(0xd3)]+_0x227590+_0x3d1f7c,'col':_0x57d066['col']+_0x227b2f},_0x45acd3,!0x1,!0x0),_0x3cf0a1=ge({'row':_0x57d066[_0x439cd9(0xd3)]+_0x227590+_0x3d1f7c+_0x322399,'col':_0x57d066[_0x439cd9(0x267)]+_0x227b2f},_0x49f2d2,!0x1,!0x0);_0x51d019=[..._0x445ded,..._0x299339,..._0x4d42af,..._0xf2985f,..._0x3cf0a1];}return _0x51d019;}[_0x1573ee(0x107)](){const _0x1fb581=_0x1573ee;this[_0x1fb581(0x142)](this[_0x1fb581(0x1ab)][_0x1fb581(0x239)]['intercept'](this['_sheetsPivotTableService']['interceptor'][_0x1fb581(0x127)]()[_0x1fb581(0xf8)],{'handler':(_0x11ef0b,_0x7b932d)=>{const _0x556c7e=_0x1fb581,{cellInfo:_0x2dbf6e,view:_0x1e98ec,isEmpty:_0x20e5c3}=_0x7b932d,_0x5340a3=_0x2dbf6e,{unitId:_0x5c02f8,subUnitId:_0xde1059}=_0x5340a3,_0x50f051=this[_0x556c7e(0x2b4)](_0x2dbf6e,_0x1e98ec,_0x20e5c3),_0x47a433=this[_0x556c7e(0x29b)][_0x556c7e(0x2f0)]({'unitId':_0x5c02f8,'subUnitId':_0xde1059,'ranges':_0x50f051}),_0x81a43d=qo(this['_injector'],_0x5c02f8,_0xde1059,_0x50f051);_0x81a43d[_0x556c7e(0x110)]&&(_0x47a433[_0x556c7e(0x1d6)][_0x556c7e(0x1c1)](_0x81a43d[_0x556c7e(0x1a1)]),_0x47a433[_0x556c7e(0x169)][_0x556c7e(0x1c1)](_0x81a43d[_0x556c7e(0x14f)]));const _0x36d994=this[_0x556c7e(0x279)](_0x1e98ec,_0x2dbf6e);return _0x47a433[_0x556c7e(0x1d6)][_0x556c7e(0x1c1)](..._0x36d994['redos']),_0x47a433['undos']['push'](..._0x36d994[_0x556c7e(0x169)]),{'redos':_0x47a433[_0x556c7e(0x1d6)],'undos':_0x47a433['undos']};}}));}[_0x1573ee(0x279)](_0x5552ae,_0x334a73){const _0x1e2b12=_0x1573ee,{col:_0x14c4b9,unitId:_0x1359c2,subUnitId:_0x43dc3d}=_0x334a73,_0x554e4d=[],_0x38b4dc=[],_0x13a469=_0x5e19a7(this[_0x1e2b12(0x2c4)],{'unitId':_0x1359c2,'subUnitId':_0x43dc3d});if(!_0x334a73||!_0x5552ae||!_0x13a469)return{'undos':_0x38b4dc,'redos':_0x554e4d};const _0x4b5f23=this[_0x1e2b12(0x27a)][_0x1e2b12(0x309)](),{colView:_0x577775,dataView:_0x146113,cornerView:_0x2958d4,rowView:_0x1d0d00,formatMap:_0x544f50}=_0x5552ae,_0x5aa758=yo(_0x577775,_0x4b5f23,!0x0,_0x544f50),_0x2388fa=yo(_0x1d0d00,_0x4b5f23,!0x1,_0x544f50),_0x263b3a=Ji(_0x146113),_0x2aa179=Gi(_0x2958d4),{worksheet:_0x1e9a94}=_0x13a469;if(typeof window<'u'&&window[_0x1e2b12(0x1d8)]){const _0x39855b=_0x47fdc2({...fe[_0x1e2b12(0x2f1)]}),_0x365f91=_0x6c7fe8[_0x1e2b12(0x24b)](_0x5aa758,_0x39855b)[_0x1e2b12(0x2bd)]+0x10,_0x3446a6=_0x6c7fe8[_0x1e2b12(0x24b)](_0x263b3a,_0x39855b)[_0x1e2b12(0x2bd)],_0x14f400=Math[_0x1e2b12(0x1e4)](Math[_0x1e2b12(0x320)](_0x365f91,_0x3446a6))+0x10,_0x3d8d13=Math[_0x1e2b12(0x1e4)](_0x6c7fe8['getTextSize'](_0x2388fa,_0x39855b)[_0x1e2b12(0x2bd)]),_0x23e769=Math[_0x1e2b12(0x1e4)](_0x6c7fe8[_0x1e2b12(0x24b)](_0x2aa179,_0x39855b)['width']),_0x3b2406=Math[_0x1e2b12(0x320)](_0x3d8d13,_0x23e769,0x28)+0xc,_0x497e8b=_0x577775[_0x1e2b12(0x227)]+_0x2958d4['colCount'],_0xbb6e62={},_0x5671bc={};for(let _0x3f4e51=_0x14c4b9;_0x3f4e51<_0x14c4b9+_0x497e8b;_0x3f4e51++){const _0x1deb6d=_0x1e9a94[_0x1e2b12(0x19c)](_0x3f4e51);_0xbb6e62[_0x3f4e51]=_0x1deb6d,_0x3f4e51-_0x14c4b9<_0x2958d4[_0x1e2b12(0x227)]?_0x5671bc[_0x3f4e51-_0x14c4b9]=_0x3b2406:_0x5671bc[_0x3f4e51-_0x14c4b9]=_0x14f400;}_0x554e4d[_0x1e2b12(0x1c1)]({'id':_0x31eb59['id'],'params':{'subUnitId':_0x43dc3d,'unitId':_0x1359c2,'ranges':[{'startColumn':_0x14c4b9,'endColumn':_0x14c4b9+_0x497e8b-0x1,'startRow':0x0,'endRow':_0x1e9a94[_0x1e2b12(0x356)]()-0x1}],'colWidth':_0x5671bc}}),_0x38b4dc[_0x1e2b12(0x1c1)]({'id':_0x31eb59['id'],'params':{'subUnitId':_0x43dc3d,'unitId':_0x1359c2,'ranges':[{'startColumn':_0x14c4b9,'endColumn':_0x14c4b9+_0x497e8b-0x1,'startRow':0x0,'endRow':_0x1e9a94['getRowCount']()-0x1}],'colWidth':_0xbb6e62}});}return{'undos':_0x38b4dc,'redos':_0x554e4d};}};ut=$s([rt(0x0,_0x24210e(_0x564c44)),rt(0x1,_0x24210e(_0x220342)),rt(0x2,_0x24210e(_0x144d54)),rt(0x3,_0x24210e(ve)),rt(0x4,_0x24210e(ie))],ut);var Ws=Object[_0x1573ee(0x1f2)],js=(_0x4b1332,_0x58594c,_0x1bdfee,_0x12bc9d)=>{const _0x240ef1=_0x1573ee;for(var _0x3300a7=_0x12bc9d>0x1?void 0x0:_0x12bc9d?Ws(_0x58594c,_0x1bdfee):_0x58594c,_0x452838=_0x4b1332[_0x240ef1(0x1a9)]-0x1,_0x48ba6b;_0x452838>=0x0;_0x452838--)(_0x48ba6b=_0x4b1332[_0x452838])&&(_0x3300a7=_0x48ba6b(_0x3300a7)||_0x3300a7);return _0x3300a7;},ke=(_0x5c31c2,_0xf765a2)=>(_0x284c8e,_0x284c56)=>_0xf765a2(_0x284c8e,_0x284c56,_0x5c31c2);let ft=class extends _0x163111{constructor(_0x1cc8a4,_0xcb1ef7,_0xc60724,_0x26a0af,_0x3b89a8,_0x493fb4,_0x2c8e7a){const _0x467b34=_0x1573ee;super(),N(this,_0x467b34(0x141),new _0x560768()),(this[_0x467b34(0x168)]=_0x1cc8a4,this[_0x467b34(0x2c3)]=_0xcb1ef7,this[_0x467b34(0x34c)]=_0xc60724,this['_univerInstanceService']=_0x26a0af,this['_sheetsPivotTableConfigModel']=_0x3b89a8,this[_0x467b34(0x15e)]=_0x493fb4,this[_0x467b34(0x29b)]=_0x2c8e7a,this[_0x467b34(0x289)]());}['_onRefRangeChange'](){const _0x4a9642=_0x1573ee,_0x270dbe=(_0x6af3b2,_0x5978b1)=>{const _0x1fa09d=_0x5078,_0x352d54=this[_0x1fa09d(0x2c4)][_0x1fa09d(0xf0)](_0x14f031[_0x1fa09d(0xee)]);if(!_0x352d54||!(_0x352d54==null?void 0x0:_0x352d54[_0x1fa09d(0xfc)](_0x5978b1)))return;this[_0x1fa09d(0x141)][_0x1fa09d(0x28a)]();const _0x3c0a05=_0x5d4493=>this['_refRangeHandle'](_0x5d4493,_0x6af3b2,_0x5978b1),_0x34756a=this[_0x1fa09d(0x27a)][_0x1fa09d(0x1c5)](_0x6af3b2,_0x5978b1);if(!(_0x34756a!=null&&_0x34756a[_0x1fa09d(0x2e2)]))return;Array['from'](_0x34756a['values']())[_0x1fa09d(0x1f0)](_0x197c63=>{const _0x3aeb94=_0x1fa09d,{row:_0x5e8571,col:_0x102cc8}=_0x197c63[_0x3aeb94(0x2c7)];return _0x133dd5(_0x5e8571,_0x102cc8);})[_0x1fa09d(0x25d)](_0x145975=>{const _0x295398=_0x1fa09d;this['disposableCollection'][_0x295398(0x230)](this[_0x295398(0x2c3)][_0x295398(0x123)](_0x145975,_0x3c0a05,_0x6af3b2,_0x5978b1));});},_0x18b577=()=>{const _0x265ef8=_0x5078,_0x2e53e1=this[_0x265ef8(0x2c4)][_0x265ef8(0xf0)](_0x14f031[_0x265ef8(0xee)]);if(_0x2e53e1){const _0x343fe7=_0x2e53e1[_0x265ef8(0x193)]();if(!_0x343fe7)return;_0x270dbe(_0x2e53e1[_0x265ef8(0x1d9)](),_0x343fe7[_0x265ef8(0xd2)]());}};this['disposeWithMe'](this[_0x4a9642(0x34c)]['onCommandExecuted'](_0x443e3c=>{const _0x136874=_0x4a9642;if(_0x443e3c['id']===_0x239431['id']){const _0x51765b=_0x443e3c[_0x136874(0x178)],_0x24efa8=_0x51765b[_0x136874(0x2ff)],_0x1eaa64=_0x51765b[_0x136874(0x307)];if(!_0x24efa8||!_0x1eaa64)return;_0x270dbe(_0x1eaa64,_0x24efa8);}})),this['disposeWithMe'](this[_0x4a9642(0x27a)]['pivotInitCompleted$']['subscribe'](_0x38d04c=>{_0x38d04c&&_0x18b577();})),this[_0x4a9642(0x142)](this[_0x4a9642(0x27a)][_0x4a9642(0x26a)][_0x4a9642(0xd9)](_0x531a3b=>{const _0x2bf070=_0x5e19a7(this['_univerInstanceService']);if(!_0x2bf070)return;const {unitId:_0x400f6a,subUnitId:_0x5c7e6b}=_0x2bf070,{unitId:_0xe123dd,subUnitId:_0x411b4d}=_0x531a3b;_0x400f6a!==_0xe123dd||_0x5c7e6b!==_0x411b4d||_0x270dbe(_0x400f6a,_0x5c7e6b);})),_0x18b577();}[_0x1573ee(0x21e)](_0x128799,_0x224310,_0x529123){const _0x3b97c3=_0x1573ee;switch(_0x128799['id']){case _0x4fa59b['id']:return this[_0x3b97c3(0xf2)](_0x128799[_0x3b97c3(0x178)],_0x224310,_0x529123);}return{'redos':[],'undos':[]};}[_0x1573ee(0xf2)](_0x1e1be1,_0x525e30,_0xb0698f){const _0x5cd972=_0x1573ee,{fromRange:_0x1870a2,toRange:_0x2fc8f0}=_0x1e1be1,_0x2cdca6=[],_0x5eb91f=[],_0x2a3fd6=_0x5e19a7(this[_0x5cd972(0x2c4)]);if(!_0x2a3fd6)return{'undos':_0x5eb91f,'redos':_0x2cdca6};if(_0x525e30!==_0x2a3fd6[_0x5cd972(0x307)]||_0xb0698f!==_0x2a3fd6['subUnitId'])return{'undos':_0x5eb91f,'redos':_0x2cdca6};const _0x4e48e5=this['_sheetsPivotTableConfigModel'][_0x5cd972(0x1c5)](_0x525e30,_0xb0698f);if(_0x4e48e5!=null&&_0x4e48e5[_0x5cd972(0x2e2)])for(const [_0x14a7b7,_0x377355]of _0x4e48e5){const {unitId:_0x4bbcca,subUnitId:_0x1d803d,row:_0x1ef175,col:_0x545994}=_0x377355[_0x5cd972(0x2c7)];if(_0x4bbcca===_0x2a3fd6[_0x5cd972(0x307)]&&_0x1d803d===_0x2a3fd6['subUnitId']){const _0x1ecfd6=_0x133dd5(_0x1ef175,_0x545994);if(_0xcfdf09['intersects'](_0x1ecfd6,_0x1870a2)){const _0x2fc1ce=_0x1ef175-_0x1870a2['startRow'],_0x57cfcd=_0x545994-_0x1870a2[_0x5cd972(0x2d1)],_0x1cfb3f={'row':_0x2fc8f0['startRow']+_0x2fc1ce,'col':_0x2fc8f0['startColumn']+_0x57cfcd};_0x2cdca6['push']({'id':pt['id'],'params':{'unitId':_0x4bbcca,'subUnitId':_0x1d803d,'pivotTableId':_0x14a7b7,'targetCellPosition':_0x1cfb3f}}),_0x5eb91f[_0x5cd972(0x1c1)]({'id':pt['id'],'params':{'unitId':_0x4bbcca,'subUnitId':_0x1d803d,'pivotTableId':_0x14a7b7,'targetCellPosition':{'row':_0x1ef175,'col':_0x545994}}});const _0x292c5c=_0x1cfb3f[_0x5cd972(0xd3)]-_0x1ef175,_0x1c30a7=_0x1cfb3f['col']-_0x545994,_0x12639d=[],_0x33631b=this[_0x5cd972(0x15e)][_0x5cd972(0x146)](_0x4bbcca,_0x1d803d,_0x14a7b7),_0xdedce6=_0x33631b==null?void 0x0:_0x33631b[_0x5cd972(0x24c)];if(_0xdedce6){Object[_0x5cd972(0x20d)](_0xdedce6)[_0x5cd972(0x25d)](_0x48f1ec=>{const _0x294ced=_0x5cd972;_0xdedce6[_0x48f1ec][_0x294ced(0x25d)](_0x4d6685=>{const _0x81e0a0=_0x294ced,_0x203840={..._0x4d6685};_0x203840[_0x81e0a0(0x272)]=_0x4d6685[_0x81e0a0(0x272)]+_0x292c5c,_0x203840[_0x81e0a0(0x130)]=_0x4d6685[_0x81e0a0(0x130)]+_0x292c5c,_0x203840['startColumn']=_0x4d6685[_0x81e0a0(0x2d1)]+_0x1c30a7,_0x203840['endColumn']=_0x4d6685['endColumn']+_0x1c30a7,_0x12639d[_0x81e0a0(0x1c1)](_0x203840);});});const _0x41117a=this['_sheetInterceptorService'][_0x5cd972(0x2f0)]({'unitId':_0x4bbcca,'subUnitId':_0x1d803d,'ranges':_0x12639d});_0x2cdca6[_0x5cd972(0x1c1)](..._0x41117a['redos']),_0x5eb91f[_0x5cd972(0x1c1)](..._0x41117a['undos']);const _0xc98627=qo(this[_0x5cd972(0x168)],_0x4bbcca,_0x1d803d,_0x12639d);_0xc98627[_0x5cd972(0x110)]&&(_0x2cdca6[_0x5cd972(0x1c1)](_0xc98627['setRangeValueRedoMutation']),_0x5eb91f[_0x5cd972(0x1c1)](_0xc98627['setRangeValueUndoMutation']));}}}}return{'redos':_0x2cdca6,'undos':_0x5eb91f};}};ft=js([ke(0x0,_0x24210e(_0x220342)),ke(0x1,_0x24210e(_0x1b4a79)),ke(0x2,_0x338140),ke(0x3,_0x144d54),ke(0x4,_0x24210e(ve)),ke(0x5,_0x24210e(Ue)),ke(0x6,_0x24210e(_0x564c44))],ft);var Js=Object[_0x1573ee(0x1f2)],Gs=(_0x33caf0,_0x406d37,_0x4f0144,_0x5f54f5)=>{const _0x49b58c=_0x1573ee;for(var _0xe8d843=_0x5f54f5>0x1?void 0x0:_0x5f54f5?Js(_0x406d37,_0x4f0144):_0x406d37,_0x3c9f9a=_0x33caf0[_0x49b58c(0x1a9)]-0x1,_0x2ee516;_0x3c9f9a>=0x0;_0x3c9f9a--)(_0x2ee516=_0x33caf0[_0x3c9f9a])&&(_0xe8d843=_0x2ee516(_0xe8d843)||_0xe8d843);return _0xe8d843;},wo=(_0x29b6dc,_0x5f2be9)=>(_0x1e1474,_0x205d27)=>_0x5f2be9(_0x1e1474,_0x205d27,_0x29b6dc);let gt=class extends _0x163111{constructor(_0x33fd73,_0x416d30){const _0x3173aa=_0x1573ee;super(),this['_sheetInterceptorService']=_0x33fd73,this[_0x3173aa(0x27a)]=_0x416d30,this[_0x3173aa(0x1ce)]();}[_0x1573ee(0x1ce)](){const _0xc2573d=_0x1573ee;this['disposeWithMe'](this['_sheetInterceptorService'][_0xc2573d(0x280)]({'getMutations':_0x4cf2d6=>{const _0x8c64cd=_0xc2573d;if(_0x4cf2d6['id']===_0x38a889['id']){const _0x26b084=[],_0xa36e7d=[],_0x486d28=_0x4cf2d6[_0x8c64cd(0x178)],{unitId:_0x379f95,subUnitId:_0x259cba}=_0x486d28;if(!_0x379f95||!_0x259cba)return{'undos':_0xa36e7d,'redos':_0x26b084};const _0x5ac21a=this[_0x8c64cd(0x27a)]['getSubUnitPivotConfigs'](_0x379f95,_0x259cba);if(_0x5ac21a!=null&&_0x5ac21a[_0x8c64cd(0x2e2)])for(const [_0x2bfcb9,_0x5c292f]of _0x5ac21a){_0x26b084[_0x8c64cd(0x1c1)]({'id':Et['id'],'params':{'unitId':_0x379f95,'subUnitId':_0x259cba,'pivotTableId':_0x2bfcb9}});const _0x41e17a={...this[_0x8c64cd(0x27a)]['getCollection'](_0x379f95,_0x2bfcb9)};_0xa36e7d[_0x8c64cd(0x1c1)]({'id':Ct['id'],'params':{'unitId':_0x379f95,'subUnitId':_0x259cba,'pivotTableId':_0x2bfcb9,'pivotTableConfig':_0x5c292f,'collectionConfig':_0x41e17a}});}return{'redos':_0x26b084,'undos':_0xa36e7d};}return{'redos':[],'undos':[]};}}));}};gt=Gs([wo(0x0,_0x24210e(_0x564c44)),wo(0x1,_0x24210e(ve))],gt);var Ks=Object[_0x1573ee(0x1f2)],Hs=(_0xb27bde,_0x435014,_0x365092,_0x452875)=>{const _0x2cad46=_0x1573ee;for(var _0x5ebcac=_0x452875>0x1?void 0x0:_0x452875?Ks(_0x435014,_0x365092):_0x435014,_0x4e7248=_0xb27bde[_0x2cad46(0x1a9)]-0x1,_0x35c4e5;_0x4e7248>=0x0;_0x4e7248--)(_0x35c4e5=_0xb27bde[_0x4e7248])&&(_0x5ebcac=_0x35c4e5(_0x5ebcac)||_0x5ebcac);return _0x5ebcac;},Ke=(_0x185a5a,_0xfe7afc)=>(_0x145fbd,_0x2d7e38)=>_0xfe7afc(_0x145fbd,_0x2d7e38,_0x185a5a);let ht=class extends _0x163111{constructor(_0x40a8ae,_0x18cbe6,_0x27f54d,_0x1a0cdb,_0x5df572,_0x26a71c){const _0x230253=_0x1573ee;super(),this[_0x230253(0x34c)]=_0x40a8ae,this[_0x230253(0x28f)]=_0x18cbe6,this['_sheetsPivotTableAdaptorModel']=_0x27f54d,this[_0x230253(0x27a)]=_0x1a0cdb,this[_0x230253(0x2c4)]=_0x5df572,this[_0x230253(0x1cb)]=_0x26a71c,this['_initDataSendListener'](),this[_0x230253(0x2de)]();}[_0x1573ee(0x13f)](){const _0x8905ff=_0x1573ee;this[_0x8905ff(0x142)](this[_0x8905ff(0x34c)]['onCommandExecuted'](_0xf5f3d0=>{const _0x4dd97e=_0x8905ff;if(_0xf5f3d0['id']!==lo['id'])return;const _0x2c0ff8=_0xf5f3d0[_0x4dd97e(0x178)];this[_0x4dd97e(0x28f)][_0x4dd97e(0x1f7)](_0x2c0ff8);})),this[_0x8905ff(0x142)](this[_0x8905ff(0x34c)]['onCommandExecuted'](_0x2978df=>{const _0xb322d3=_0x8905ff;if(_0x2978df['id']===co['id']){const _0x477db3=_0x2978df[_0xb322d3(0x178)];if(_0x477db3){const {unitId:_0x5816f0,subUnitId:_0x45bd17,oldSubUnitId:_0x1c7d5c,pivotTableId:_0x329271,pivotTableConfig:_0x5b0cba,collectionConfig:_0x1cc17c}=_0x477db3;this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x5816f0,_0x1c7d5c,_0x477db3[_0xb322d3(0x1c0)],null),this[_0xb322d3(0x27a)]['updateConfigCache'](_0x5816f0,_0x45bd17,_0x329271,_0x5b0cba),this['_sheetsPivotTableConfigModel']['updateCollectionConfig'](_0x5816f0,_0x1cc17c);}}})),this[_0x8905ff(0x142)](this[_0x8905ff(0x34c)][_0x8905ff(0x210)](_0x1f7d9a=>{const _0x3785c3=_0x8905ff;if(_0x1f7d9a['id']!==Dt['id'])return;const _0x444f4e=_0x5e19a7(this['_univerInstanceService']);if(!_0x444f4e)return;const {unitId:_0x291e64,subUnitId:_0x57c96f}=_0x444f4e,_0x392874=_0x1f7d9a[_0x3785c3(0x178)];if(_0x392874['collectionConfig']&&Object[_0x3785c3(0x20d)](_0x392874[_0x3785c3(0x1c9)])[_0x3785c3(0x25d)](_0x29be5f=>{const _0x1c2613=_0x3785c3;var _0x23f90e;(_0x23f90e=_0x392874[_0x1c2613(0x1c9)])!=null&&_0x23f90e[_0x29be5f]&&this[_0x1c2613(0x27a)][_0x1c2613(0x131)](_0x29be5f,_0x392874[_0x1c2613(0x1c9)][_0x29be5f]);}),_0x392874[_0x3785c3(0x20c)]){const _0x5b609f=_0x392874[_0x3785c3(0x20c)],{unitId:_0x5c7a9b,subUnitId:_0x57e097,view:_0x2eca09,pivotTableId:_0x5dc5a7,type:_0x184be3,pivotConfig:_0x20f931}=_0x5b609f;if(_0x184be3===$[_0x3785c3(0x21b)])this[_0x3785c3(0x15e)][_0x3785c3(0x255)]({'unitId':_0x5c7a9b,'subUnitId':_0x57e097,'pivotTableId':_0x5dc5a7,'type':_0x184be3}),this['_sheetsPivotTableConfigModel'][_0x3785c3(0x2b8)](_0x5c7a9b,_0x57e097,_0x5dc5a7,null);else{const _0x28f9ea=new _0x38e21e();_0x28f9ea[_0x3785c3(0x26c)](_0x2eca09),this[_0x3785c3(0x27a)][_0x3785c3(0x2b8)](_0x5c7a9b,_0x57e097,_0x5dc5a7,_0x20f931),this[_0x3785c3(0x15e)]['clearRenderCache']({'unitId':_0x5c7a9b,'subUnitId':_0x57e097,'pivotTableId':_0x5dc5a7,'type':_0x184be3,'view':_0x28f9ea}),this[_0x3785c3(0x15e)]['updateRenderCache']({'unitId':_0x5c7a9b,'subUnitId':_0x57e097,'view':_0x28f9ea,'pivotTableId':_0x5dc5a7,'type':_0x184be3});}}else _0x392874['batch']&&(_0x392874[_0x3785c3(0x21a)][_0x3785c3(0x25d)](_0x5465f7=>{const _0x2abccf=_0x3785c3,{unitId:_0x4611b0,subUnitId:_0x539a40,view:_0xa4a9c3,pivotTableId:_0x30b4a7,type:_0x258df5,pivotConfig:_0x20ced0}=_0x5465f7,_0x380964=new _0x38e21e();_0x380964['formJSON'](_0xa4a9c3),this[_0x2abccf(0x27a)]['updateConfigCache'](_0x4611b0,_0x539a40,_0x30b4a7,_0x20ced0),this[_0x2abccf(0x15e)][_0x2abccf(0x2f3)]({'unitId':_0x4611b0,'subUnitId':_0x539a40,'view':_0x380964,'pivotTableId':_0x30b4a7,'type':_0x258df5});}),this[_0x3785c3(0x27a)]['setPivotInitCompleted']());this[_0x3785c3(0x15e)]['markDirty'](_0x291e64,_0x57c96f);}));}[_0x1573ee(0x2de)](){const _0x578be4=_0x1573ee;this[_0x578be4(0x1cb)][_0x578be4(0x18d)](Nt['id'],{'commandId':Nt['id'],'getDirtyData'(_0x199263){const _0x425333=_0x578be4;return{'dirtyUnitFeatureMap':_0x199263[_0x425333(0x178)]};}});}};ht=Hs([Ke(0x0,_0x24210e(_0x338140)),Ke(0x1,_0x24210e(X)),Ke(0x2,_0x24210e(Ue)),Ke(0x3,_0x24210e(ve)),Ke(0x4,_0x24210e(_0x144d54)),Ke(0x5,_0x4698c9)],ht);var qs=Object[_0x1573ee(0x2ea)],Ys=Object['getOwnPropertyDescriptor'],Qs=(_0x194a3e,_0x5016a4,_0x5c5132)=>_0x5016a4 in _0x194a3e?qs(_0x194a3e,_0x5016a4,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c5132}):_0x194a3e[_0x5016a4]=_0x5c5132,zs=(_0x2c8e1d,_0xbf1c00,_0x321083,_0x2816be)=>{const _0x31704d=_0x1573ee;for(var _0x232772=_0x2816be>0x1?void 0x0:_0x2816be?Ys(_0xbf1c00,_0x321083):_0xbf1c00,_0x2b45ba=_0x2c8e1d[_0x31704d(0x1a9)]-0x1,_0x2edc22;_0x2b45ba>=0x0;_0x2b45ba--)(_0x2edc22=_0x2c8e1d[_0x2b45ba])&&(_0x232772=_0x2edc22(_0x232772)||_0x232772);return _0x232772;},_t=(_0xe47ed4,_0x36f244)=>(_0x4e84e4,_0x3d3e4e)=>_0x36f244(_0x4e84e4,_0x3d3e4e,_0xe47ed4),Zo=(_0x4be364,_0x28b6fc,_0x1354bb)=>Qs(_0x4be364,typeof _0x28b6fc!=_0x1573ee(0x151)?_0x28b6fc+'':_0x28b6fc,_0x1354bb);let Vt=class extends _0x2483d9{constructor(_0x10b803=Mo,_0x13e711,_0x2e709d,_0x3d13c8,_0x427f16){const _0x43f039=_0x1573ee;super(),this[_0x43f039(0x24e)]=_0x10b803,this['_injector']=_0x13e711,this[_0x43f039(0x34c)]=_0x2e709d,this['_configService']=_0x3d13c8,this[_0x43f039(0xcf)]=_0x427f16;const {..._0x540219}=_0x446eab({},Mo,this[_0x43f039(0x24e)]);this[_0x43f039(0x118)][_0x43f039(0x1a0)](Qo,_0x540219),this[_0x43f039(0x199)](),this[_0x43f039(0x215)]();}[_0x1573ee(0x215)](){const _0x4927ee=_0x1573ee;var _0x23b4f1;const _0x37e26b=(_0x23b4f1=this['_config'])==null?void 0x0:_0x23b4f1[_0x4927ee(0x205)];this[_0x4927ee(0x118)][_0x4927ee(0x1a0)](Q,_0x37e26b===!0x0);}[_0x1573ee(0x152)](){const _0x44a2d6=_0x1573ee;var _0x23a88a;let _0x11f291=[];const _0x47d239=(_0x23a88a=this[_0x44a2d6(0x24e)])==null?void 0x0:_0x23a88a['notExecuteFormula'];_0x47d239===!0x0?_0x11f291=[[ie],[X],[ht],[Ue],[ve],[gt],[ct],[ft],[ut]]:_0x47d239===!0x1?_0x11f291=[[W],[dt]]:_0x47d239===void 0x0&&(_0x11f291=[[W],[dt],[ie],[X],[ht],[Ue],[ve],[gt],[ct],[ft],[ut]]),_0x11f291['forEach'](_0x369abf=>this[_0x44a2d6(0x168)][_0x44a2d6(0x230)](_0x369abf)),[dt,ht,ie,ct,gt,ft,ut][_0x44a2d6(0x25d)](_0x2d115d=>{const _0x40f360=_0x44a2d6;this[_0x40f360(0x168)]['has'](_0x2d115d)&&this[_0x40f360(0x168)][_0x40f360(0xfa)](_0x2d115d);});}[_0x1573ee(0x199)](){const _0x36e2a1=_0x1573ee;[ps,ms,hs,Is,Ss,Us,_s,Ts,Rs,Ms,Fs,Ds,Cs,bs,Ct,to,Et,Wt,zo,Xo,Ht,jt,Jt,Gt,Yt,qt,pt,ro,lo,Dt,Xt,eo,Qt,Kt,uo,oo,Zt,Nt,co,ws,zt,ys,Ps][_0x36e2a1(0x25d)](_0x2bf61f=>{const _0x1bfc9e=_0x36e2a1;var _0x43b8c2;(_0x43b8c2=this[_0x1bfc9e(0xcf)])==null||_0x43b8c2[_0x1bfc9e(0x212)](_0x2bf61f),this[_0x1bfc9e(0x34c)]['registerCommand'](_0x2bf61f);});}};Zo(Vt,_0x1573ee(0x1c6),ao),Zo(Vt,_0x1573ee(0x2a5),_0x14f031[_0x1573ee(0xee)]),Vt=zs([_0x77cb1c(_0x48dd52),_t(0x1,_0x24210e(_0x220342)),_t(0x2,_0x24210e(_0x338140)),_t(0x3,_0xca9673),_t(0x4,_0x2e1383(_0x5dae40))],Vt);export{hs as AddPivotFieldCommand,Wt as AddPivotFieldMutation,ms as AddPivotTableCommand,Ct as AddPivotTableMutation,ps as AddPivotTableWithConfigCommand,It as BLANK_ROW_COUNT,so as DEFAULT_PIVOT_NUMBER,Is as MovePivotFieldCommand,Cs as MovePivotTableCommand,k as PivotDisplayDataType,bs as PivotDrillDownCommand,$ as PivotTableOperationEnum,Nt as PivotTableViewDirtyMarkOperation,Lo as PositionType,Ss as RemovePivotFieldCommand,jt as RemovePivotFieldMutation,Et as RemovePivotTableMutation,Jt as RenamePivotFieldMutation,Ps as ResetPivotFieldsConfigCommand,Qo as SHEETS_PIVOT_PLUGIN_CONFIG_KEY,ao as SHEET_PIVOT_TABLE_PLUGIN,Ts as SetPivotCollapseCommand,Gt as SetPivotCollapseMutation,Kt as SetPivotFieldFormatMutation,ys as SetPivotFieldsConfigCommand,Ms as SetPivotFilterCommand,Ht as SetPivotFilterMutation,qt as SetPivotOptionMutation,pt as SetPivotPositionMutation,Rs as SetPivotSortCommand,Yt as SetPivotSortMutation,Qt as SetPivotSubtotalTypeMutation,ws as SetPivotValueFilterCommand,zt as SetPivotValueFilterMutation,W as SheetsPivotDataSourceModel,X as SheetsPivotRPCService,Ue as SheetsPivotTableAdaptorModel,ve as SheetsPivotTableConfigModel,ie as SheetsPivotTableService,Vt as UniverSheetsPivotTablePlugin,_s as UpdateDateGroupCommand,Xt as UpdateFieldPositionMutation,Fs as UpdatePivotFieldSettingCommand,Zt as UpdatePivotFieldSourceInfoMutation,Ds as UpdatePivotTableSourceRangeCommand,oo as UpdatePivotTableSourceRangeMutation,Us as UpdatePivotValuePositionCommand,eo as UpdateValuePositionMutation,me as applyChangeSet,Ho as canUsePivot,fe as defaultThemeStyle,qo as generateSetRangeValueMutations,ge as getAdjustRangesPosition,$i as getEmptyPivotRanges,Ut as getFieldListByArea,Re as getInsertRowColMutations,ki as getPivotCellInfo,go as getPivotInfoByLicense,Bi as getPivotTableInfo,vt as transFromCellValue,$t as unionPivotViewRange};