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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/common/const.d.ts +40 -40
  38. package/lib/types/controllers/const.d.ts +1 -1
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ko-KR.js +1 -1
  47. package/lib/umd/locale/ru-RU.js +1 -1
  48. package/lib/umd/locale/vi-VN.js +1 -1
  49. package/lib/umd/locale/zh-CN.js +1 -1
  50. package/lib/umd/locale/zh-TW.js +1 -1
  51. package/package.json +10 -10
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x2b7c(){const _0xafec6a=['createDataFieldId','getId','stdDev','find','pivotTableIndexConfig','collection','getDataFieldItemInfo','ManualFilter','setTextInfo','InsertRowMutation','getSubUnitPivotConfigs','SetPivotSubtotalTypeMutation','updateConfigCache','SHEET_PIVOT_TABLE_PLUGIN','sum','sheets-pivot.countNumsName','Hour','interceptCommand','getInsertRowColMutations','setFieldFormat','DEFAULT_PIVOT_NUMBER','setPivotTableConfig','AddField','unshift','varp','getSheetId','_updatePivotTableInstanceCache','sheet.command.move-pivot-field','#f4f4f5','getDataFieldByDataFieldId','PivotTableChangeTypeEnum','cornerInfo','sheets-pivot.cellDateGroupDisplay.minute','dataFieldManagerConfig','Varp\x20of\x20','blank','YearMonth','setPivotSort','PivotDateGroupFieldDateTypeEnum','getPivotTableMatrixInfo','_initUnitDisposed','PivotCellStyleTypeEnum','getOwnPropertyDescriptor','getTextInfo','setLabelFilterInfo','uniqueDataFieldName','FORCE_STRING','_init','average','registerCallbackWithEvent','subUnitId','UniverProLicense','sortInfo','undos','valueFilter','getFormat','unitId','Injector','addDirtyPivotTable','rowCount','rowFields','UpdateDateGroupCommand','3107240OMJUMJ','DataFieldManager','getColumnWidth','IUndoRedoService','message','valuePosition','refreshGroupField','getDataFieldBySourceName','RemoveColMutation','data','getRangeStartEndInfo','getIndexesByPathStr','contains','Product\x20of\x20','level','getDirtyInfo','Quarter','getSheetBySheetId','MAX_SAFE_INTEGER','setPivotSetting','includes','getPivotTableIdByCell','disposeWithMe','sheet.mutation.set-pivot-position','_initConfig','rowStyle','tableFieldId','sheet.command.reset-pivot-fields-config','_pivotRenderInfoCache','@univerjs/engine-render','movePivotField','sourceRangeInfo','subTotalStyle','stdDevp','RANGE_TYPE','Style','SetPivotSortCommand','UniverSheetsFilter','@univerjs-pro/license','sheet.mutation.send-init-pivot-text-local','getCellRaw','addPivotField','getFieldPositionInfoById','_viewUpdate$','getName','SetSubtotalType','getPivotTableInfo','rxjs','StdDev\x20of\x20','createCollectionWithDataRange','dataRangeInfo','setConfig','pivotMutationGenerate','SetPivotCollapseCommand','_generateUniqueVersion','info','_fieldsCollectionChange$','_ensurePivotItemRenderInfoCache','getFieldDataType','PivotFilterTypeEnum','Disposable','bind','DrillDown','getDataFieldByRangeKey','IResourceManagerService','limit\x20pivot','updateRangeKeyMap','error','@univerjs/engine-formula','pushComputingStatusSubject','UpdatePivotTableSourceRangeCommand','updateConfig','defaultThemeStyle','setSubtotalType','endColumn','CustomCommandExecutionError','DisposableCollection','deepClone','_exclusiveRangeService','getPivotItemRenderInfoCache','Inject','_pivotInitCompleted$','cornerStyle','fields','sheets-pivot.minName','_queryingMap','filterInfo','Average\x20of\x20','PivotView','Rectangle','interceptor','dataStyle','sheets-pivot.productName','pivotConfigChange$','row','sheets-pivot.other','SetCollapse','symbol','sheet.mutation.add-pivot-field','setOptions','subscribe','_requestResolvers','intersects','DataField','None','function','getEmptyPivotRanges','sheets-pivot.stdDevName','STRING','valueIndex','addRecord','_sheetsPivotTableService','min','node','SetPivotCollapse','updateDataFieldsCollection','SHEET_PIVOT_IN_MAIN_THREAD','dateGroupField','addPivotTableWithConfig','sheet.command.set-pivot-collapse','sheet.mutation.get-pivot-data-local','sheets-pivot.cellDateGroupDisplay.yearMonthDate','getSortInfo','_globalComputedEndHelpFunc','update','setRangeValueRedoMutation','updateAllDisplayName','Values','parseInt','_globalSubject','registerSyncingMutations','iterateFieldDim','targetCellInfo','lastRow','setRangeValueUndoMutation','viewData$','2589016EhSfbJ','sheets-pivot.averageName','getPivotInfoByLicense','_dataFieldManagerCollection','registerRefRange','_globalComputedStartHelpFunc','RefRangeService','NORMAL','excelDateToUnixMilliseconds','isEmpty','next','endRow','values','measure','Year','isArray','SetFilterInfo','updateView','Min\x20of\x20','token','updateViewData','registerDirtyService','setName','InterceptorManager','getPivotPerformCheck','drillDown','toJSON','getFieldFormat','fromJSON','some','setSourceName','custom','getIntersects','#eceeff','sheet.mutation.set-pivot-sort-info','InterceptorEffectEnum','COMMAND','generateNullCell','sheets-pivot.columnName','slice','MoveRangeCommand','sheets-pivot.blank','getPivotTableConfig','getIntersectsPivotTable','getValue','SetRangeValuesMutation','options','AsyncInterceptorManager','count','LS_CONFIG_KEY','_injector','isDateGroupFieldJSON','updatePivotTableMatrixInfo','getNoUsedDataFieldIds','#e6ebfb','updatePivotSource','name','split','RemoveSheetMutation','batch','getDataFieldByTableId','UpdateFieldPosition','generateMutationsByRanges','UpdatePivotFieldSourceInfoMutation','RemoveField','document','ICommandService','SheetsPivotTableService','string','setValueFilterInfo','onCommandExecuted','_subjectViewChange','RenamePivotFieldMutation','_host','MovePivotFieldCommand','generateHexNumber','getDataFieldManager','fieldsCollectionChange$','pivotInitCompleted$','NotFunction','_featureCalculationManagerService','SetOptions','sheet.command.set-pivot-value-filter','#FFFFFF','sheet.mutation.set-pivot-filter','dataFields','_initRemoveSheetCommandInterceptor','col','SetWorksheetActiveOperation','displayName','UniverProEnginePivot','sheet.mutation.send-pivot-data-local','intercept','ResetPivotTable','reduce','_deletePivotTableInstanceCache','_config','MovePivotField','getTableFieldById','SetPivotFilterCommand','object','sheetName','StdDevp\x20of\x20','_collectionConfigModel','#1d32e9','ΣValue','getAdjustRangesPosition','_resourceManagerService','getCurrentUnitForType','getDisplayName','_sheetsPivotRpcService','20562JDbgMS','date','sheets-pivot.cellDateGroupDisplay.yearQuarter','_activeDirtyManagerService','INTERCEPTOR_POINT','AddPivotField','UniverRpc','getAutoFitColumnsMutations','getLastRow','Tools','MUTATION','SetValuePivotFilter','BehaviorSubject','setValuePivotFilter','sheet.mutation.update-date-group','sheets-pivot.dateGroup.monthDate','dataStream','formJSON','updateDirtyPivotTable','minDate','handleMoveRange','sheet.command.update-date-group','originalFieldId','_commandService','parse','pivotTableId','getStyles','pluginName','fetchThroughInterceptors','fetchThroughAsyncInterceptors','collapseInfo','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','addField','sheet.mutation.pivot-update-field-source-info','existing','PivotTableValuePositionEnum','handleAsyncResponse','getValuePosition','UpdateValuePosition','setDataRecordCount','pbt','width','merge','colHeaderMap','query','subtotal','rangeKey','forRow','fieldId','foreach','_getPivotAppliedRanges','sheets-pivot.dateGroup.quarter','SetRangeValuesUndoMutationFactory','removeDataField','InsertSheetCommand','SetPivotFilterMutation','registerCommand','ClearSelectionContentCommand','sheet.mutation.pivot-update-field-position','SetValueFilter','markDirty$','YearQuarter','SetPivotFilter','defineProperty','_configVersion$','SetPivotValueFilterCommand','grandTotal','getTargetByPivotTableId','getAutoDisplayName','SetPivotTableConfig','numfmt','_refRangeHandle','RemoveSheetsFilterMutation','SetPivotSort','Column','fieldIds','SetPivotFieldFormatMutation','addPivotTable','removeSourceRangeChange','sheets-pivot.sumName','NAME','_sheetsPivotTableAdaptorModel','dimension','Total','fontRenderExtension','PivotTableFiledAreaEnum','sheets-pivot.dateGroup.hourMinute','clearRenderCache','DataSyncPrimaryController','registerPluginResource','COLUMN','getFieldById','getDate','single','numberToABC','sheets-pivot.dateGroup.year','originTargetInfo','getFilterInfo','_lifecycleService','PivotViewCellValueTypeEnum','get','transFromCellValue','has','sheets-pivot.cellDateGroupDisplay.date','RemovePivotFieldMutation','_ensurePivotMap','getPivotTableCellData','AddPivotTableMutation','getUnitId','sheet.mutation.remove-group-collection','GlobalComputingStatusService','startRow','disposableCollection','SetPivotSetting','_pivotTableRangeInfo','isDateGroupField','colStyle','IConfigService','_toJSON','AddPivotTableWithConfig','toString','updateValuePosition','sheets-pivot.value','getLastCol','InsertSheetUndoMutationFactory','addFieldWithSourceId','_initSnapshot','_initRegisterCommand','AddPivotTable','colCount','startCollectChangeset','REF','setPivotFilter','10KjOXxC','random','getTargetByPivotId','Plugin','deleteField','getFullYear','rangeType','forValue','forEach','_pivotRenderValueMatrixCache','valid','ptn','IFeatureCalculationManagerService','2537340OTupji','setPivotCollapse','PivotDataFieldDataTypeEnum','getMonth','updateCollectionConfig','updateFieldSourceInfo','_sheetsPivotTableConfigModel','sheet.mutation.remove-pivot-table','Row','YearMonthDate','MIN_SAFE_INTEGER','sheet.command.set-pivot-fields-config','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','maxDate','getColumnCount','ObjectMatrix','RemovePivotTableMutation','replace','set','_initViewModelBySheetInterceptor','_pivotTableMatrixInfo','sheets-pivot.cellDateGroupDisplay.hourMinute','generateSetRangeValueMutations','pushUndoRedo','#b2b2b2','@univerjs/core','PivotCallbackEnum','deleteUnitId','executeCommand','getMatrixValue','getHeaderMapItem','SheetsPivotTableConfigModel','rgb(255,255,255)','getSheetCommandTarget','onQueryEnd','_subjectFieldsCollectionChange','stringify','setRange','_createExclusiveRange','length','8484381niFbkd','New','lastCol','delete','removeValueFilterInfo','_collectionChange$','realDeleteValue','onQueryStart','Max\x20of\x20','addCollection','rowInfo','DIV_BY_ZERO','_initClearSelectionCommandInterceptor','Range','Subtotal','dispose','RemoveSheetCommand','NotName','getMatrix','DEFAULT_WORKSHEET_ROW_COUNT','broadcastCollectionChange','BadReference','_model','U0zTcIQz\x206OToJPcIQz(bITOzlO,\x20P0ubITVOJ)\x20{\x20\x20\x20\x20coJ\x20{\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20bITOzlOYzUQsHochooHJ\x20=\x20bITOzlO.lPbIc(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20QoIKIztOllHKO\x20=\x20yDFG.PHolO(HcQu(bITOzlOYzUQsHochooHJ[n]));\x20\x20\x20\x20\x20\x20\x20\x20IU\x20(!QoIKIztOllHKO.06)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QoIKIztOllHKO.06\x20=\x20G07uOo(bITOzlOYzUQsHochooHJ[N]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20Il2QoXOo\x20=\x20cJPOQU\x202QoXOoRbQuHbDTQPO\x20!==\x20\x270z6OUIzO6\x27\x20&&\x20lObU\x20IzlcHzTOQU\x202QoXOoRbQuHbDTQPO;\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20TQzcOpc\x20=\x20Il2QoXOo\x20?\x20lObU\x20:\x20iIz6Qi;\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x207OllHKO2Qo6\x20=\x20TQzcOpc.__5HlOjN__.PHolO(bITOzlOYzUQsHochooHJ[n]);\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x207OllHKO\x20=\x20TQzcOpc.__ZOp__.lcoIzKIUJ(7OllHKO2Qo6);\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20lIKzHc0oO2Qo6\x20=\x20TQzcOpc.__5HlOjN__.PHolO(bITOzlOYzUQsHochooHJ[g]);\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20lIKzHc0oO\x20=\x20TQzcOpc.__ZOp__.lcoIzKIUJ(lIKzHc0oO2Qo6);\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20lIKzMHbI6\x20=\x20TQzcOpc.__qOoIUJ__(lIKzHc0oO,\x207OllHKO,\x20P0ubITVOJ);\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x206Q7HIz\x20=\x20QoIKIztOllHKO.67;\x20\x20\x20\x20\x20\x20\x20\x20U0zTcIQz\x20Il9Q7HIztHcTWIzK(QsHccOoz,\x20QZQlc)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20PHccOoz\x20=\x20QsHccOoz.oOPbHTO(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20WQlc\x20=\x20QZQlc.oOPbHTO(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20PHccOozsHocl\x20=\x20PHccOoz.lPbIc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20WQlcsHocl\x20=\x20WQlc.lPbIc(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20IU\x20(!PHccOoz.IzTb06Ol(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20oOc0oz\x20PHccOoz\x20===\x20WQlc;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20IU\x20(PHccOozsHocl.bOzKcW\x20<\x20n\x20||\x20PHccOozsHocl[4]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20oOc0oz\x20UHblO;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20PHccOozD0UUIp\x20=\x20PHccOozsHocl.lbITO(E).aQIz(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20WQlcD0UUIp\x20=\x20WQlcsHocl.lbITO(-PHccOozsHocl.bOzKcW\x20+\x20E).aQIz(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20oOc0oz\x20PHccOozD0UUIp\x20===\x20WQlcD0UUIp;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20bOc\x206Q7HIzMHbI6\x20=\x20(6Q7HIz\x20&&\x206Q7HIz.bOzKcW)\x20?\x206Q7HIz.lQ7O((67YcO7)\x20=>\x20Il9Q7HIztHcTWIzK(67YcO7,\x20bQTHcIQz.WQlczH7O))\x20:\x20co0O;\x20\x20\x20\x20\x20\x20\x20\x20IU\x20(bQTHcIQz.WQlczH7O\x20===\x20\x27bQTHbWQlc\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206Q7HIzMHbI6\x20=\x20co0O;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20TQzlc\x20qHbI6\x20=\x20lIKzMHbI6\x20&&\x206Q7HIzMHbI6;\x20\x20\x20\x20\x20\x20\x20\x20oOc0oz\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qHbI6,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207OllHKO:\x20QoIKIztOllHKO,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20THcTW\x20(OooQo)\x20{\x20\x20\x20\x20\x20\x20\x20\x20oOc0oz\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qHbI6:\x20UHblO,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207OllHKO:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','remove','getUpdateRangeDeleteIds','textInfo','body','Count\x20of\x20','splice','map','_dataSyncPrimaryController','getAutoDisplayNameFunction','getFilterFieldIdByIndex','getRowCount','ResetPivotFieldsConfigCommand','Sum\x20of\x20','from','areaInfo','markDirty','range','getSubUnitPivotMatrix','SetPivotOptionMutation','cellValue','sheet.mutation.set-pivot-format','CellValueType','sheets-pivot.cellDateGroupDisplay.yearMonth','size','getViewData','MovePivotTableCommand','sheet.mutation.send-pivot-view-local','new','_pivotTableInstanceCache','collections','removeField','_pivotConfigChange$','sheets-pivot.dateGroup.yearQuarter','SheetInterceptorService','asObservable','createInterceptorKey','_updateRenderEmptyCache','register','_subjectCollectionChange','setValue','rangesInfo','Set','mergeWorksheetSnapshotWithDefault','iterateField','getCellMatrix','unshiftString','sheet.command.pivot-drill-down','PivotErrorTypeEnum','headerMap','539czZeTH','substring','SetPivotValueFilterMutation','version','hasOwnProperty','FieldsCollection','removeCollectionImp','sequenceExecute','setSortInfo','versions','concat','@univerjs/sheets-filter','removePivotTable','redos','isBottomTotal','reset','addCollectionByJSON','getUnit','getCollection','getPivotTableRangeInfo','dataFieldsCollection','isValue','hasField','removeCollections','initDataRanges','refreshData','oldMatrix','sheets-pivot.emptyPivot.row','value','getSheetFeatureLimit','UpdateValuePositionMutation','generateNewSheetName','fieldsConfig','_refRangeService','getSourceName','getPivotDirtyViewInfo','sheet.operation.pivot-table-view-formula-mark-dirty','pivotTableConfigs','LocaleService','FontCache','addExclusiveRange','sheets-pivot.stdDevpName','@univerjs/rpc','sheet.mutation.set-pivot-field-subtotal-type','pageRanges','paths','getPivotTableModelConfig','getFormatInfo','getFieldIds','type','_onRefRangeChange','pageStyle','sheet.mutation.update-pivot-table-source-range','getSubtotal','valueFields','Collapse','removeValueFilterInfoByValueFieldId','_viewData','leftOffset','UpdatePivotSource','setPivotInitCompleted','CommandType','unionPivotViewRange','BLANK_ROW_COUNT','workbook\x20is\x20not\x20found','getConfig','_deleteModelCache','PivotDrillDownCommand','needSameDeleteModel','other','sheets-pivot.emptyPivot.values','Grand\x20Total','_initPivotTextInfo','push','sheets-pivot.cellDateGroupDisplay.month','6124TXgGXC','collectionChange$','floor','Delete','matrix','_sheetsPivotDataSourceModel','clearExclusiveRangesByGroupId','countNums','sheets-pivot.dateGroup.minute','getformat','collectionConfig','SheetsPivotDataSourceModel','call','renameField','updateRenderCache','UniverProSheetsPivot','_localeService','UpdateFieldPositionMutation','getSubUnitPivotRenderCache','_sheetsSelectionsService','getDataFieldId','sheet.mutation.add-group-collection','getValueIndex','Filter','dataFieldId','columnFields','refreshDataField','681zGEJkM','getTypeOfUnitDisposed$','amd','getValueFilterInfos','PivotMultipleValueId','\x20-\x20','Value','createAsyncInterceptorKey','Panel','_viewData$','NUMBER','_initCommandInterceptListener','sheet.command.set-pivot-field-setting','endCollectChangeset','_ensurePivotItemRenderValueMatrixCache','PivotSubtotalTypeEnum','NUM','sheet.mutation.set-pivot-collapse','result','isDateValue','prototype','column','getTextSize','SheetsPivotTableAdaptorModel','rgb(240,241,243)','sheets-pivot.varpName','_ensurePivotTableMatrixInfo','SetWorksheetColWidthMutation','deleteDataField','sheet.mutation.remove-pivot-field','sheets-pivot.grandTotal','RemovePivotField','InsertSheetMutation','asyncInterceptor','addDataFieldWithoutUnitInfo','PivotTable','_initGlobalComputed','getFieldCountByArea','updateViewInfo','380534UulHQi','SheetsSelectionsService','sheet.command.remove-pivot-field','ErrorType','number','Minute','PIVOT_MUTATION_GENERATE','format','notExecuteFormula','sheet.mutation.add-pivot-table','_sheetInterceptorService','_configService','UniverSheetsPivotTablePlugin','getSheetBySheetName','getPivotTableInstance','sheets-pivot.cellDateGroupDisplay.hour','return\x20','entries','sheet.mutation.set-pivot-option','triggerDirtyFeature','colRanges','@univerjs/sheets','keys','cellToRange','_textInfo','isNaN','getOriginFieldId','Add','add','Module','sheet.command.set-pivot-sort','sheets-pivot.varName','SheetsPivotRPCService','Date','removePivotField','AddPivotFieldMutation','canUsePivot','PositionType','SetPivotFieldsConfigCommand','sheets-pivot.dateGroup.yearMonth','prefix','_getAutoName','PivotTableOperationEnum','sheet.mutation.set-pivot-value-filter','exports','updateFieldPosition','_univerInstanceService','PivotTableViewDirtyMarkOperation','_ensurePivotTableRangeInfo','UNIVER_SHEET','handleSourceRangeChange','_updateModelCache','HourMinute','panel','getRefRangeMutationsByMoveRange','getSheets','_initDataSendListener','resetPivotTable','_initPivotDataGetListener','_initLocale','Subject','tuple','getRangeKeyList','UniverEngineRender','sheets-pivot.dateGroup.date','UpdatePivotFieldSettingCommand','params','sheets.tabs.sheet','getRangeKey','max','getPivotDisplayConfig','filter','RemoveRowMutation','IUniverInstanceService','SetPivotPositionMutation','getGroupFieldsInfoByIds','getFieldInfo','getColCount','getMatrixFromRunTimeData','startColumn','getFieldListByArea','LifecycleService','UniverInstanceType','getCurrentSelections','updatePivotTableRangeInfo','setCollapse','DEFAULT_WORKSHEET_COLUMN_COUNT','UniverSheets','setRangeKeyMap','AddPivotFieldCommand','sheets-pivot.dateGroup.hour','shouldClear','RenameField','onStarting','leafStyle','sheet.mutation.pivot-update-value-position','_ensureViewDataMap','iterateFieldByArea','sheets-pivot.subTotal','rangeKeyMap','adjustSheetCellData'];_0x2b7c=function(){return _0xafec6a;};return _0x2b7c();}function _0x42d3(_0x69d5c6,_0x5c3286){const _0x2b7c0e=_0x2b7c();return _0x42d3=function(_0x42d3d7,_0xcd0282){_0x42d3d7=_0x42d3d7-0xbb;let _0x475ed6=_0x2b7c0e[_0x42d3d7];return _0x475ed6;},_0x42d3(_0x69d5c6,_0x5c3286);}(function(_0x29fcf9,_0x42cfe5){const _0x5df5b1=_0x42d3,_0x7effc2=_0x29fcf9();while(!![]){try{const _0x32ba63=parseInt(_0x5df5b1(0x1e6))/0x1+parseInt(_0x5df5b1(0x1a4))/0x2*(parseInt(_0x5df5b1(0x1bf))/0x3)+-parseInt(_0x5df5b1(0x289))/0x4+parseInt(_0x5df5b1(0xe8))/0x5+parseInt(_0x5df5b1(0x380))/0x6*(parseInt(_0x5df5b1(0x159))/0x7)+parseInt(_0x5df5b1(0x311))/0x8+parseInt(_0x5df5b1(0x110))/0x9*(-parseInt(_0x5df5b1(0xdb))/0xa);if(_0x32ba63===_0x42cfe5)break;else _0x7effc2['push'](_0x7effc2['shift']());}catch(_0x5a01a6){_0x7effc2['push'](_0x7effc2['shift']());}}}(_0x2b7c,0x6e1f7),function(_0x53906b,_0x521f6f){const _0x3a12d2=_0x42d3;typeof exports==_0x3a12d2(0x375)&&typeof module<'u'?_0x521f6f(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x3a12d2(0x2f2)&&define[_0x3a12d2(0x1c1)]?define([_0x3a12d2(0x212),'@univerjs-pro/engine-pivot',_0x3a12d2(0x101),_0x3a12d2(0x2cd),_0x3a12d2(0x1fb),'rxjs',_0x3a12d2(0x2af),_0x3a12d2(0x164),_0x3a12d2(0x183),_0x3a12d2(0x2a6)],_0x521f6f):(_0x53906b=typeof globalThis<'u'?globalThis:_0x53906b||self,_0x521f6f(_0x53906b[_0x3a12d2(0x1b3)]={},_0x53906b[_0x3a12d2(0x36b)],_0x53906b['UniverCore'],_0x53906b['UniverEngineFormula'],_0x53906b[_0x3a12d2(0x23d)],_0x53906b[_0x3a12d2(0x2b8)],_0x53906b[_0x3a12d2(0x27e)],_0x53906b[_0x3a12d2(0x2ae)],_0x53906b[_0x3a12d2(0x386)],_0x53906b[_0x3a12d2(0x225)]));}(this,function(_0x1ed859,_0x175d11,_0x177d6a,_0x195fb3,_0x22c23f,_0x2d0b5f,_0x53915,_0xc6ed78,_0x382c16,_0x483c29){'use strict';const _0x1c787c=_0x42d3;var _0x2e9049=Object['defineProperty'],_0x33408f=(_0x4bc824,_0x1dab4d,_0x5c6988)=>_0x1dab4d in _0x4bc824?_0x2e9049(_0x4bc824,_0x1dab4d,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5c6988}):_0x4bc824[_0x1dab4d]=_0x5c6988,_0x117630=(_0x26107e,_0x55f146,_0x52df2e)=>_0x33408f(_0x26107e,typeof _0x55f146!=_0x1c787c(0x2ea)?_0x55f146+'':_0x55f146,_0x52df2e);const _0x3de64a=Number[_0x1c787c(0x309)](0x68f330b5),_0x150198=0x10,_0x45eedb=0x1,_0x389941=_0x1c787c(0x258),_0x2afc20=0x1,_0x2054f0=_0x1c787c(0x1d7),_0x502207=_0x1c787c(0x108),_0x39b4d9=_0x1c787c(0x100),_0x2c62c9=_0x1c787c(0x267),_0x5f4532=_0x1c787c(0x267),_0x157d52=_0x1c787c(0x332),_0x185565=_0x1c787c(0x379),_0xe893d2=_0x1c787c(0x364),_0x2ff007='#e6ebfa',_0x23c1a8='#1d32e9',_0xa7d1bd=_0x1c787c(0x364),_0x282eaf=_0x1c787c(0x347),_0x3608e8=0xe,_0x35b2f9=0x6;var _0x83d4d=(_0x53b788=>(_0x53b788['Existing']=_0x1c787c(0x3a2),_0x53b788[_0x1c787c(0x111)]=_0x1c787c(0x143),_0x53b788))(_0x83d4d||{});const _0x1aa151={'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':''}}},_0x5ae7bb=0x1e,_0x2d2f10={'b':{'s':0x1,'cl':{'rgb':_0x39b4d9}},'l':{'s':0x1,'cl':{'rgb':_0x39b4d9}},'r':{'s':0x1,'cl':{'rgb':_0x39b4d9}},'t':{'s':0x1,'cl':{'rgb':_0x39b4d9}}},_0x1a6281={'bg':{'rgb':_0x2054f0},'ht':0x2,'vt':0x2,'tb':0x1},_0x112552={'bg':{'rgb':_0x502207},'ht':0x2,'vt':0x2,'tb':0x1},_0x137cd6={'rowStyle':{'bg':{'rgb':_0x282eaf},'bd':_0x2d2f10,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x23c1a8},'bd':null,'cl':{'rgb':_0xa7d1bd},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x2d2f10,'bg':{'rgb':_0x2ff007},'vt':0x2},'cornerStyle':{'bd':_0x2d2f10,'bg':{'rgb':_0x157d52},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x2d2f10,'bg':{'rgb':_0x2c62c9},'vt':0x2},'leafStyle':{'bd':_0x2d2f10,'bg':{'rgb':_0x5f4532},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x185565},'cl':{'rgb':_0xe893d2},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x2d2f10,'vt':0x2}};function _0x35a128(_0x2e7486,_0x345c60,_0x46c851){const _0x5bbe7c=_0x1c787c,_0x5f2fbc=_0x2e7486[_0x5bbe7c(0x3e4)](_0x177d6a['LocaleService']),_0x596b08=_0x46c851[_0x5bbe7c(0x34a)]('_');switch(_0x345c60){case _0x175d11['PivotDateGroupFieldDateTypeEnum'][_0x5bbe7c(0x31f)]:return _0x5f2fbc['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0x1eb)]:return _0x5f2fbc['t'](_0x5bbe7c(0x26b),..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0x25b)]:return _0x5f2fbc['t'](_0x5bbe7c(0x1f5),..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0x21a)]:return _0x5f2fbc['t'](_0x5bbe7c(0xfd),..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0x207)]:return _0x5f2fbc['t'](_0x5bbe7c(0xbd),..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)]['Month']:return _0x5f2fbc['t'](_0x5bbe7c(0x1a3),..._0x596b08);case _0x175d11['PivotDateGroupFieldDateTypeEnum'][_0x5bbe7c(0x299)]:return _0x5f2fbc['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0x26f)]:return _0x5f2fbc['t'](_0x5bbe7c(0x13e),..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0xf1)]:return _0x5f2fbc['t'](_0x5bbe7c(0x302),..._0x596b08);case _0x175d11[_0x5bbe7c(0x271)][_0x5bbe7c(0x3bd)]:return _0x5f2fbc['t'](_0x5bbe7c(0x382),..._0x596b08);}return'';}const _0x12a558=(_0x5499d8,_0x45d3ff,_0x42e845,_0x181e94)=>{const _0x46486e=_0x1c787c;let _0x359ca8;const _0x4f5d02=_0x5499d8[_0x46486e(0x3e4)](_0x177d6a[_0x46486e(0x22f)])[_0x46486e(0x37d)](_0x177d6a[_0x46486e(0x238)][_0x46486e(0x217)]);if(!_0x4f5d02)return null;const _0x36e86f=_0x4f5d02['getStyles']();let _0x1c723d;if(_0x42e845&&(_0x1c723d=_0x36e86f[_0x46486e(0x14f)](_0x42e845)),_0x45d3ff!=null&&_0x45d3ff['v']||(_0x45d3ff==null?void 0x0:_0x45d3ff['v'])===0x0){_0x359ca8||(_0x359ca8={});const _0xd35327=_0xcfe240(_0x45d3ff['v']);typeof _0xd35327==_0x46486e(0x1ea)?_0x359ca8['t']=_0x177d6a[_0x46486e(0x13d)][_0x46486e(0x1c9)]:typeof _0xd35327==_0x46486e(0x355)&&(_0x359ca8['t']=_0x177d6a['CellValueType'][_0x46486e(0x2f5)]),_0x359ca8['v']=_0xd35327;}if((_0x45d3ff!=null&&_0x45d3ff['i']||(_0x45d3ff==null?void 0x0:_0x45d3ff['i'])===0x0)&&(_0x359ca8||(_0x359ca8={}),_0x359ca8['fi']=_0x45d3ff['i']),_0x45d3ff!=null&&_0x45d3ff['s']&&(_0x359ca8||(_0x359ca8={}),_0x359ca8[_0x46486e(0x3a8)]=_0x45d3ff['s']),_0x42e845&&(_0x359ca8||(_0x359ca8={}),_0x359ca8['s']=_0x1c723d),_0x181e94&&_0x359ca8!=null&&_0x359ca8['v']&&_0x359ca8[_0x46486e(0x3a8)]!==_0x175d11['PivotCellStyleTypeEnum']['GrandTotal']&&_0x359ca8[_0x46486e(0x3a8)]!==_0x175d11[_0x46486e(0x274)][_0x46486e(0x11e)]){const _0x1a8161=String(_0x359ca8['v']),{dateType:_0x1f86bd}=_0x181e94;_0x359ca8['v']=_0x35a128(_0x5499d8,_0x1f86bd,_0x1a8161),_0x359ca8['t']=_0x177d6a[_0x46486e(0x13d)][_0x46486e(0x2f5)];}return _0x359ca8;},_0x2107bc=(_0x389fe5,_0xcbe99d,_0x405ed4,_0x4e6adb)=>{const _0x1d185a=_0x1c787c;var _0x2b92bc,_0x27dce4,_0x3484c1,_0x2b52b7,_0x52640f,_0x97fda6,_0x1989eb,_0x4526ff,_0x5b5baf,_0x15bb25,_0x91bd18,_0x232afd,_0x5cb26d,_0x580362;const _0x4fddb0=_0x405ed4[_0x1d185a(0x30d)],{cornerView:_0x22cc3d,rowView:_0x5556a3,colView:_0x3fcda5,dataView:_0x3b6d63,pageView:_0x2e4315,formatMap:_0x100524,groupInfo:_0x2b32da}=_0xcbe99d,{row:_0xc14163,col:_0x30651f}=_0x4fddb0,_0x22c9b8=new _0x177d6a[(_0x1d185a(0xf7))](),_0x47ea6b={},_0x4e10ad={},_0x30553c={},_0x48f484={},_0x41518d={};let _0x58d8c0=_0xc14163,_0x211620=_0x30651f;Object[_0x1d185a(0x1fc)](_0x2e4315[_0x1d185a(0x292)])[_0x1d185a(0xe3)](_0x1beb1c=>{const _0xa0ebfe=_0x1d185a;Object['keys'](_0x2e4315[_0xa0ebfe(0x292)][Number(_0x1beb1c)])[_0xa0ebfe(0xe3)](_0x59a14c=>{const _0x258bbc=_0xa0ebfe,_0x29e801={..._0x2e4315['data'][Number(_0x1beb1c)][Number(_0x59a14c)]};_0x22c9b8[_0x258bbc(0x14f)](Number(_0x1beb1c)+_0x58d8c0,Number(_0x59a14c)+_0x211620,_0x12a558(_0x389fe5,_0x29e801,_0x137cd6[_0x258bbc(0x18c)]));});});const _0x44eb30=Object['keys'](_0x2e4315[_0x1d185a(0x292)])[_0x1d185a(0x10f)];_0x58d8c0+=_0x44eb30+(_0x44eb30?_0x2afc20:0x0);const _0x5a289c=_0x22cc3d[_0x1d185a(0x132)](),_0x3d4fcf=_0x22cc3d[_0x1d185a(0x233)]();for(let _0x410492=0x0;_0x410492<_0x5a289c;_0x410492++)for(let _0x4dcabd=0x0;_0x4dcabd<_0x3d4fcf;_0x4dcabd++){const _0x18baf3={...(_0x27dce4=(_0x2b92bc=_0x22cc3d[_0x1d185a(0x292)])==null?void 0x0:_0x2b92bc[_0x410492])==null?void 0x0:_0x27dce4[_0x4dcabd]};_0x18baf3&&((_0x3484c1=_0x5556a3[_0x1d185a(0x158)][_0x4dcabd])!=null&&_0x3484c1[_0x1d185a(0x16e)])&&_0x4dcabd===_0x3d4fcf-0x1&&_0x410492===_0x5a289c-0x1&&(_0x18baf3['v']=''+_0x4e6adb[_0x1d185a(0xd0)]),_0x22c9b8[_0x1d185a(0x14f)](_0x410492+_0x58d8c0,_0x4dcabd+_0x211620,_0x12a558(_0x389fe5,_0x18baf3,_0x137cd6[_0x1d185a(0x2db)]));}for(let _0x5cee92=0x0;_0x5cee92<_0x22cc3d['info'][_0x1d185a(0x10f)];_0x5cee92++)_0x22cc3d[_0x1d185a(0x2c0)][_0x5cee92]&&(_0x30553c[''+(_0x5cee92+_0x211620)]=_0x22cc3d['info'][_0x5cee92]);_0x211620+=_0x3d4fcf;const _0x151d5a=_0x3fcda5[_0x1d185a(0x158)],_0x1a20f8=_0x3fcda5['getLastRow']()>=0x0?_0x3fcda5[_0x1d185a(0x388)]()+0x1:0x0,_0x4e5106=_0x3fcda5[_0x1d185a(0xd1)]()>=0x0?_0x3fcda5['getLastCol']()+0x1:0x0;for(let _0x11e1c3=0x0;_0x11e1c3<_0x4e5106;_0x11e1c3++){for(let _0x3ac8d1=0x0;_0x3ac8d1<_0x1a20f8;_0x3ac8d1++){const _0x43cb78={...(_0x52640f=(_0x2b52b7=_0x3fcda5[_0x1d185a(0x292)])==null?void 0x0:_0x2b52b7[_0x3ac8d1])==null?void 0x0:_0x52640f[_0x11e1c3]},_0xf1034a=(_0x97fda6=_0x151d5a[_0x3ac8d1])==null?void 0x0:_0x97fda6[_0x1d185a(0x2a3)],_0x1e8c85=_0x100524[_0xf1034a],_0x115036=_0x2b32da[_0xf1034a];_0x43cb78&&(_0x43cb78['v']=_0x58787d(_0x43cb78,_0x3ac8d1===0x0&&((_0x1989eb=_0x3fcda5[_0x1d185a(0x106)](_0x11e1c3+0x1))==null?void 0x0:_0x1989eb[_0x1d185a(0x16e)]),_0x1e8c85,_0x4e6adb));let _0x364b06;_0x1e8c85?_0x364b06={..._0x137cd6[_0x1d185a(0xca)],'n':{'pattern':_0x1e8c85}}:_0x364b06={..._0x137cd6[_0x1d185a(0xca)]},_0x22c9b8[_0x1d185a(0x14f)](_0x3ac8d1+_0x58d8c0,_0x11e1c3+_0x211620,_0x12a558(_0x389fe5,_0x43cb78,_0x364b06,_0x115036));}_0x3fcda5['info'][_0x11e1c3]&&(_0x4e10ad[''+(_0x11e1c3+_0x211620)]=_0x3fcda5[_0x1d185a(0x2c0)][_0x11e1c3]),_0x3fcda5[_0x1d185a(0x158)][_0x11e1c3+0x1]&&(_0x41518d[''+(_0x11e1c3+_0x58d8c0+0x1)]=_0x3fcda5[_0x1d185a(0x158)][_0x11e1c3+0x1]);}_0x58d8c0+=_0x5a289c;const _0x167987=_0x5556a3['headerMap'],_0x24c582=_0x5556a3[_0x1d185a(0x388)]()>=0x0?_0x5556a3['getLastRow']()+0x1:0x0,_0x5a8706=_0x5556a3[_0x1d185a(0xd1)]()>=0x0?_0x5556a3[_0x1d185a(0xd1)]()+0x1:0x0;for(let _0xccd6b9=0x0;_0xccd6b9<_0x24c582;_0xccd6b9++){for(let _0x1b9ca5=0x0;_0x1b9ca5<_0x5a8706;_0x1b9ca5++){const _0x4d63e7={...(_0x5b5baf=(_0x4526ff=_0x5556a3[_0x1d185a(0x292)])==null?void 0x0:_0x4526ff[_0xccd6b9])==null?void 0x0:_0x5b5baf[_0x1b9ca5]},_0x5d9533=(_0x15bb25=_0x167987[_0x1b9ca5])==null?void 0x0:_0x15bb25[_0x1d185a(0x2a3)],_0x35fbb9=_0x100524[_0x5d9533],_0x56c32e=_0x2b32da[_0x5d9533];_0x4d63e7&&(_0x4d63e7['v']=_0x58787d(_0x4d63e7,!0x1,_0x35fbb9,_0x4e6adb));let _0x551389;_0x5556a3[_0x1d185a(0x2c0)][_0xccd6b9][_0x1d185a(0x297)]===_0x5556a3[_0x1d185a(0x233)]()?_0x551389=_0x137cd6[_0x1d185a(0x244)]:_0x5556a3[_0x1d185a(0x2c0)][_0xccd6b9][_0x1d185a(0x167)]?_0x551389=_0x5556a3[_0x1d185a(0x2c0)][_0xccd6b9]['level']===0x0?_0x137cd6[_0x1d185a(0x3c2)]:_0x137cd6[_0x1d185a(0x2a9)]:_0x551389=_0x137cd6[_0x1d185a(0x2a2)],_0x35fbb9&&(_0x551389={..._0x551389,'n':{'pattern':_0x35fbb9}}),_0x22c9b8[_0x1d185a(0x14f)](_0xccd6b9+_0x58d8c0,_0x1b9ca5+_0x30651f,_0x12a558(_0x389fe5,_0x4d63e7,_0x551389,_0x56c32e));}_0x5556a3[_0x1d185a(0x2c0)][_0xccd6b9]&&(_0x47ea6b[''+(_0xccd6b9+_0x58d8c0)]=_0x5556a3['info'][_0xccd6b9]),_0x5556a3[_0x1d185a(0x158)][_0xccd6b9]&&(_0x48f484[''+(_0xccd6b9+_0x30651f)]=_0x5556a3[_0x1d185a(0x158)][_0xccd6b9]);}const _0x21bc31=_0x3b6d63[_0x1d185a(0x132)](),_0x33208e=_0x3b6d63['getColCount']();for(let _0x4ed348=0x0;_0x4ed348<_0x21bc31;_0x4ed348++)for(let _0x41a0a7=0x0;_0x41a0a7<_0x33208e;_0x41a0a7++){const _0x1b27c8={...(_0x232afd=(_0x91bd18=_0x3b6d63[_0x1d185a(0x292)])==null?void 0x0:_0x91bd18[_0x4ed348])==null?void 0x0:_0x232afd[_0x41a0a7]};let _0x753f44;_0x5556a3[_0x1d185a(0x2c0)][_0x4ed348]['isBottomTotal']?_0x753f44=_0x5556a3[_0x1d185a(0x2c0)][_0x4ed348][_0x1d185a(0x297)]===0x0?_0x137cd6[_0x1d185a(0x3c2)]:_0x137cd6['subTotalStyle']:_0x753f44=_0x137cd6[_0x1d185a(0x2e4)];const _0x32d07b=_0x5556a3['info'][_0x4ed348][_0x1d185a(0x2f6)],_0x1d6bac=_0x3fcda5['info'][_0x41a0a7][_0x1d185a(0x2f6)],_0x313983=Math[_0x1d185a(0x22b)](_0x32d07b,_0x1d6bac),_0x477b6c=_0x405ed4['fieldsConfig'][_0x1d185a(0x18f)][_0x1d185a(0x163)]();let _0xb82a9d='';_0x313983<0x0?_0xb82a9d=(_0x5cb26d=_0x477b6c[0x0])!=null?_0x5cb26d:'':_0xb82a9d=(_0x580362=_0x477b6c[_0x313983])!=null?_0x580362:'';const _0x34b593=_0x100524[_0xb82a9d];_0x34b593&&(_0x753f44={..._0x753f44,'n':{'pattern':_0x34b593}}),_0x22c9b8[_0x1d185a(0x14f)](_0x4ed348+_0x58d8c0,_0x41a0a7+_0x211620,_0x12a558(_0x389fe5,_0x1b27c8,_0x753f44));}return{'valueMatrix':_0x22c9b8,'rowInfo':_0x47ea6b,'colInfo':_0x4e10ad,'cornerInfo':_0x30553c,'rowHeaderMap':_0x48f484,'colHeaderMap':_0x41518d};};function _0x58787d(_0x3143aa,_0x409572,_0x427709,_0x49bf62){const _0x37e1a5=_0x1c787c;let _0x3bd2c3=_0x3143aa['v'];_0x409572&&(_0x3bd2c3=''+_0x49bf62[_0x37e1a5(0xd0)]);const _0x1bfe56=_0x3143aa['t']&&(_0x3143aa['t']&_0x175d11[_0x37e1a5(0x3e3)][_0x37e1a5(0x26e)])>0x0;_0x1bfe56&&(_0x3bd2c3=''+_0x49bf62[_0x37e1a5(0x33a)]);const _0x41c4cb=_0x3143aa['t']&&(_0x3143aa['t']&_0x175d11[_0x37e1a5(0x3e3)]['other'])>0x0;if(_0x41c4cb&&(_0x3bd2c3=''+_0x49bf62[_0x37e1a5(0x2e8)]),_0x3143aa['s']===_0x175d11[_0x37e1a5(0x274)][_0x37e1a5(0x11e)]){let _0xe219d1=_0x3bd2c3,_0x58d356='';_0x175d11['isPrefixValue'](_0x3bd2c3)&&(_0xe219d1=_0x3bd2c3[_0x37e1a5(0x20e)],_0x58d356=_0x3bd2c3[_0x37e1a5(0x175)]);const _0x573888=_0x427709&&!_0x1bfe56&&!_0x41c4cb?_0x177d6a[_0x37e1a5(0x3c6)][_0x37e1a5(0x1ed)](_0x427709,Number(_0xe219d1)):_0xe219d1;_0x58d356?_0x3bd2c3=_0x573888+'\x20'+_0x58d356:_0x3bd2c3=_0x573888+'\x20'+_0x49bf62[_0x37e1a5(0x248)];}else _0x3143aa['s']===_0x175d11['PivotCellStyleTypeEnum']['GrandTotal']&&(_0x3bd2c3=_0x3bd2c3+'\x20'+_0x49bf62[_0x37e1a5(0x1dd)]);return _0x3bd2c3;}function _0xcfe240(_0x5414a0){const _0x2d8594=_0x1c787c;if(_0x175d11['isErrorValue'](_0x5414a0)){const {errorType:_0x300bcb}=_0x5414a0;switch(_0x300bcb){case _0x175d11[_0x2d8594(0x157)]['Div0']:return _0x195fb3[_0x2d8594(0x1e9)][_0x2d8594(0x11b)];case _0x175d11[_0x2d8594(0x157)]['NotNumber']:return _0x195fb3[_0x2d8594(0x1e9)][_0x2d8594(0x1cf)];case _0x175d11[_0x2d8594(0x157)][_0x2d8594(0x360)]:return _0x195fb3[_0x2d8594(0x1e9)][_0x2d8594(0x3d0)];case _0x175d11[_0x2d8594(0x157)][_0x2d8594(0x121)]:return _0x195fb3[_0x2d8594(0x1e9)][_0x2d8594(0x3d0)];case _0x175d11['PivotErrorTypeEnum'][_0x2d8594(0x125)]:return _0x195fb3[_0x2d8594(0x1e9)][_0x2d8594(0xd9)];}}return _0x5414a0;}function _0x397824(_0x69ad26,_0xca7544,_0x30eaf8=!0x1,_0x18c7b4=!0x1){const _0x5a92ff=_0x1c787c,{data:_0x285a78}=_0xca7544,_0xf5f462=_0xca7544[_0x5a92ff(0x132)](),_0x1e60f8=_0xca7544[_0x5a92ff(0x233)]();if(_0xf5f462<=0x0||_0x1e60f8<=0x0)return[];const _0x4b3cdc=_0xca7544['getLastCol'](),_0x278881=_0xca7544[_0x5a92ff(0x388)](),_0x3c5f3a=_0x18c7b4?_0x278881>=0x0?_0x278881+0x1:0x0:_0xf5f462,_0x396865=_0x18c7b4?_0x4b3cdc>=0x0?_0x4b3cdc+0x1:0x0:_0x1e60f8,{row:_0x1ff026,col:_0x48be26}=_0x69ad26,_0x46c35e=_0x1ff026,_0x48e689=_0x48be26;if(_0x30eaf8){const _0x2c76ce=[];for(const [_0x1c5743,_0x41b11b]of Object[_0x5a92ff(0x1f7)](_0x285a78))for(const [_0x1c5ea4,_0xf84a7d]of Object['entries'](_0x41b11b))_0x2c76ce['push'](_0x177d6a['cellToRange'](_0x46c35e+Number(_0x1c5743),_0x48e689+Number(_0x1c5ea4)));return _0x2c76ce;}else{const _0xb10f5=_0x18c7b4?_0x3c5f3a>0x0?0x1:0x0:0x1,_0x17b3b5=_0x18c7b4?_0x396865>0x0?0x1:0x0:0x1,_0x17b999=_0x1ff026+_0x3c5f3a-_0xb10f5,_0x632a4=_0x48be26+_0x396865-_0x17b3b5;return[{'startRow':_0x46c35e,'startColumn':_0x48e689,'endRow':_0x17b999,'endColumn':_0x632a4}];}}const _0x318491=_0x1c787c(0x2fd),_0x4ac4b1='SHEET_PIVOT_EXCLUSIVE_ID';var _0x2b8e9a=(_0x3858eb=>(_0x3858eb[_0x1c787c(0x1bb)]='filter',_0x3858eb[_0x1c787c(0x1c7)]=_0x1c787c(0x21b),_0x3858eb[_0x1c787c(0x385)]='addPivotField',_0x3858eb[_0x1c787c(0xcd)]=_0x1c787c(0xcd),_0x3858eb['AddPivotTable']=_0x1c787c(0x3cd),_0x3858eb[_0x1c787c(0x372)]=_0x1c787c(0x2a7),_0x3858eb[_0x1c787c(0x1de)]='removePivotField',_0x3858eb['SetPivotCollapse']=_0x1c787c(0xe9),_0x3858eb[_0x1c787c(0x3be)]='setPivotFilter',_0x3858eb[_0x1c787c(0x3c9)]=_0x1c787c(0x270),_0x3858eb[_0x1c787c(0xc7)]=_0x1c787c(0x29c),_0x3858eb[_0x1c787c(0x194)]=_0x1c787c(0x348),_0x3858eb[_0x1c787c(0x3a6)]='updateValuePosition',_0x3858eb[_0x1c787c(0x2c7)]=_0x1c787c(0x32a),_0x3858eb[_0x1c787c(0x38b)]='setValuePivotFilter',_0x3858eb[_0x1c787c(0x3c5)]=_0x1c787c(0x260),_0x3858eb[_0x1c787c(0x36e)]=_0x1c787c(0x21f),_0x3858eb))(_0x2b8e9a||{});const _0x963fa1={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x1c787c(0x3d3),'sheets-pivot.grandTotalText':_0x1c787c(0x1a0),'sheets-pivot.valueText':_0x1c787c(0x1c5),'sheets-pivot.averageName':_0x1c787c(0x2e0),'sheets-pivot.countName':_0x1c787c(0x12c),'sheets-pivot.countNumsName':_0x1c787c(0x12c),'sheets-pivot.maxName':_0x1c787c(0x118),'sheets-pivot.minName':_0x1c787c(0x323),'sheets-pivot.productName':_0x1c787c(0x296),'sheets-pivot.stdDevName':_0x1c787c(0x2b9),'sheets-pivot.stdDevpName':_0x1c787c(0x377),'sheets-pivot.sumName':_0x1c787c(0x134),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x1c787c(0x26d),'sheets-pivot.subTotal':_0x1c787c(0x11e),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x1c787c(0x175),'sheets-pivot.blank':'blank','sheets-pivot.other':_0x1c787c(0x19e),'sheets-pivot.emptyPivot.filter':_0x1c787c(0x1bb),'sheets-pivot.emptyPivot.row':_0x1c787c(0xf0),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},_0x37e18f={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x3ba713=_0x177d6a[_0x1c787c(0x1c6)]('pivotPerformCheck'),_0x148d7f=_0x177d6a[_0x1c787c(0x14b)](_0x1c787c(0x2bd));var _0x23a0a5=(_0x144a5a=>(_0x144a5a['add']=_0x1c787c(0x202),_0x144a5a[_0x1c787c(0x113)]=_0x1c787c(0x113),_0x144a5a[_0x1c787c(0x305)]='update',_0x144a5a))(_0x23a0a5||{}),_0x5a4701=(_0x204d50=>(_0x204d50[_0x1c787c(0x201)]='add',_0x204d50['Set']=_0x1c787c(0xfa),_0x204d50[_0x1c787c(0x1a7)]=_0x1c787c(0x113),_0x204d50))(_0x5a4701||{});const _0x4c8972={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x301),'handler':()=>!0x0},_0x585cbb={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x36c),'handler':()=>!0x0},_0x16a7c0={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x142),'handler':()=>!0x0},_0x4535fd={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x224063={'type':_0x177d6a[_0x1c787c(0x196)]['MUTATION'],'id':_0x1c787c(0x2b0),'handler':()=>!0x0};var _0x4fffa3=Object[_0x1c787c(0x275)],_0x26410e=(_0x2b6003,_0x34a2c3,_0x44b51a,_0x36729c)=>{for(var _0x32d9c8=_0x36729c>0x1?void 0x0:_0x36729c?_0x4fffa3(_0x34a2c3,_0x44b51a):_0x34a2c3,_0x1db0c9=_0x2b6003['length']-0x1,_0x2c9dc7;_0x1db0c9>=0x0;_0x1db0c9--)(_0x2c9dc7=_0x2b6003[_0x1db0c9])&&(_0x32d9c8=_0x2c9dc7(_0x32d9c8)||_0x32d9c8);return _0x32d9c8;},_0x2d8ec0=(_0x3fcdac,_0x29952d)=>(_0x2291b3,_0x5976b6)=>_0x29952d(_0x2291b3,_0x5976b6,_0x3fcdac);_0x1ed859[_0x1c787c(0x206)]=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0x4b1ee8){const _0x5902ce=_0x1c787c;super(),_0x117630(this,_0x5902ce(0x2ee),new Map()),this[_0x5902ce(0x397)]=_0x4b1ee8;}['handleAsyncResponse'](_0x5873b0){const _0x1137e9=_0x1c787c,{version:_0xbc850}=_0x5873b0,_0x38eee8=this['_requestResolvers'][_0x1137e9(0x3e4)](_0xbc850);_0x38eee8&&(_0x38eee8(_0x5873b0),this[_0x1137e9(0x2ee)]['delete'](_0xbc850));}[_0x1c787c(0x22c)](_0xd649f8){return new Promise((_0x236204,_0x491150)=>{const _0x20682d=_0x42d3,_0x35ea92=this['_generateUniqueVersion']();this[_0x20682d(0x2ee)][_0x20682d(0xfa)](_0x35ea92,_0x236204),this[_0x20682d(0x397)]['executeCommand'](_0x4c8972['id'],{'version':_0x35ea92,..._0xd649f8},{'onlyLocal':!0x0});});}[_0x1c787c(0x2bf)](){const _0x404aa8=_0x1c787c;return Math[_0x404aa8(0xdc)]()[_0x404aa8(0xce)](0x24)[_0x404aa8(0x15a)](0x2,0x10);}},_0x1ed859[_0x1c787c(0x206)]=_0x26410e([_0x2d8ec0(0x0,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a['ICommandService']))],_0x1ed859[_0x1c787c(0x206)]);const _0x33f69e={0x0:'u',0x1:'E',0x2:'W',0x3:'Z',0x4:'0',0x5:'B',0x6:'d',0x7:'m',0x8:'F',0x9:'D','E':'1','n':'2','g':'3','N':'4','f':'5','j':'6','S':'7','x':'8','C':'9','H':'a','u':'b','T':'c','O':'e','U':'f','K':'g','W':'h','I':'i','a':'j','X':'k','b':'l','z':'n','Q':'o','P':'p','L':'q','o':'r','l':'s','c':'t','q':'v','i':'w','p':'x','J':'y','d':'z','h':'A','r':'C','R':'G','Z':'H','Y':'I','y':'J','V':'K','e':'L','t':'M','G':'N','F':'O','s':'P','B':'Q','A':'R','D':'S','w':'T','k':'U','M':'V','m':'X','v':'Y'},_0x284c38=_0x1c787c(0x127),_0x180b67=_0xf8c380=>{const _0x42a85f=_0x1c787c;var _0x585274;return((_0x585274=_0xf8c380[_0x42a85f(0x12b)])==null?void 0x0:_0x585274[_0x42a85f(0x390)][_0x42a85f(0xf9)](/\r\n$/,''))||'';};class _0x5812a2 extends _0x175d11[_0x1c787c(0x28a)]{constructor(_0x4f1318,_0x329d29){const _0x2f447c=_0x1c787c;super(),_0x117630(this,'rangeKeyMap',{}),_0x117630(this,_0x2f447c(0x214)),_0x117630(this,_0x2f447c(0x35a)),(this[_0x2f447c(0x214)]=_0x329d29,this[_0x2f447c(0x35a)]=_0x4f1318);}['initDataRanges'](){const _0x406040=_0x1c787c;for(const _0x1f2576 in this[_0x406040(0x366)]){const _0x420008=this['dataFields'][_0x1f2576],_0x532bcc=_0x420008[_0x406040(0x22a)]();this['rangeKeyMap'][_0x532bcc]=_0x420008[_0x406040(0x24c)]();}}[_0x1c787c(0x130)](){const _0x3772b2=_0x1c787c,_0x45787f=this[_0x3772b2(0x35a)];return _0x198d3c[_0x3772b2(0x2c6)](_0x45787f);}[_0x1c787c(0x1db)](_0x1d572a){const _0x4e5385=_0x1c787c,_0x900306=this[_0x4e5385(0x366)][_0x1d572a][_0x4e5385(0x3ae)];delete this[_0x4e5385(0x366)][_0x1d572a],delete this[_0x4e5385(0x249)][_0x900306];}['addDataFieldWithoutUnitInfo'](_0x41e81f){const _0x41d8ae=_0x1c787c;this[_0x41d8ae(0x366)][_0x41e81f[_0x41d8ae(0x24c)]()]=_0x41e81f;}[_0x1c787c(0x15f)](_0x2f6c43){const _0xf716f2=_0x1c787c;var _0x2549d5,_0x754a5e;const _0x428ebb=this[_0xf716f2(0x35a)][_0xf716f2(0xdd)](_0x2f6c43);if(_0x428ebb){const {unitId:_0x91143e,subUnitId:_0x49840e}=_0x428ebb,_0x5071ec=(_0x2549d5=this[_0xf716f2(0x35a)]['getPivotTableConfig'](_0x91143e,_0x49840e,_0x2f6c43))==null?void 0x0:_0x2549d5['sourceRangeInfo'];this[_0xf716f2(0x35a)][_0xf716f2(0x124)]({'token':_0x2f6c43,'type':_0x23a0a5['delete'],'dataRangeInfo':_0x5071ec});}(_0x754a5e=this[_0xf716f2(0x16b)](_0x2f6c43))==null||_0x754a5e['dispose'](),delete this['collections'][_0x2f6c43];}[_0x1c787c(0x22a)](_0x3c183c,_0x3ec39a){const {sheetName:_0x279c77,unitId:_0x380dd2,range:_0x5d3c86}=_0x3c183c,{startRow:_0x82755,endRow:_0x32f956}=_0x5d3c86;return _0x195fb3['serializeRangeWithSpreadsheet'](_0x380dd2,_0x279c77,{'startRow':_0x82755,'endRow':_0x32f956,'startColumn':_0x3ec39a,'endColumn':_0x3ec39a});}[_0x1c787c(0x2c8)](_0x185880){const _0x58c8b5=_0x1c787c;return this[_0x58c8b5(0x366)][this[_0x58c8b5(0x249)][_0x185880]];}[_0x1c787c(0x23e)](_0x4c8fbf,_0x4b1d36){this['rangeKeyMap'][_0x4c8fbf]=_0x4b1d36;}['updateRangeKeyMap'](_0xc0a866,_0x5daedf){const _0x208e09=_0x1c787c;this[_0x208e09(0x249)][_0x5daedf]=this[_0x208e09(0x249)][_0xc0a866],delete this[_0x208e09(0x249)][_0xc0a866];}[_0x1c787c(0x169)](_0x21764d,_0x2d705d,_0x35a3f1,_0x519620){const _0x3a6f13=_0x1c787c,_0xb8cc13=new _0x175d11[(_0x3a6f13(0x15e))](this);_0xb8cc13[_0x3a6f13(0x32d)](_0x2d705d);const _0x3ec6f2=[];let _0x1ff05f=0x0;for(const _0x57124d of _0xb8cc13[_0x3a6f13(0x3cb)]){const _0x17948a=this[_0x3a6f13(0x22a)](_0x35a3f1,_0x1ff05f),_0x75f879=this[_0x3a6f13(0x366)][_0x57124d];_0x75f879&&(_0x75f879['rangeKey']=_0x17948a,this[_0x3a6f13(0x23e)](_0x17948a,_0x57124d),_0x3ec6f2[_0x3a6f13(0x1a2)]({'index':_0x1ff05f,'dataField':_0x75f879})),_0x1ff05f++;}return this[_0x3a6f13(0x119)](_0x21764d,_0xb8cc13,_0x35a3f1,_0x519620),{'collection':_0xb8cc13,'updateDataFieldList':_0x3ec6f2};}[_0x1c787c(0x293)](_0x1476ff,_0x5743b3){const _0x3dafe1=_0x1c787c;return _0x1476ff[_0x3dafe1(0xe1)]===_0x177d6a[_0x3dafe1(0x2ab)][_0x3dafe1(0x3da)]?{'startRow':0x0,'startColumn':_0x1476ff[_0x3dafe1(0x235)],'endRow':_0x5743b3[_0x3dafe1(0x132)]()-0x1,'endColumn':_0x1476ff[_0x3dafe1(0x2d3)]}:{'startRow':_0x1476ff[_0x3dafe1(0xc5)],'startColumn':_0x1476ff[_0x3dafe1(0x235)],'endRow':_0x1476ff[_0x3dafe1(0x31c)],'endColumn':_0x1476ff[_0x3dafe1(0x2d3)]};}[_0x1c787c(0x2ba)](_0x156b44){const _0x477f66=_0x1c787c,{sheetName:_0x17e79c,range:_0x975c82}=_0x156b44,_0x217cb8=this[_0x477f66(0x214)][_0x477f66(0x37d)](_0x177d6a[_0x477f66(0x238)][_0x477f66(0x217)]),_0x431c09=_0x217cb8[_0x477f66(0x1f3)](_0x17e79c),_0x12bb1a=_0x431c09[_0x477f66(0x154)](),{startColumn:_0x413785,startRow:_0x4691bf,endColumn:_0x46e148}=this[_0x477f66(0x293)](_0x975c82,_0x431c09),_0x2028ed=_0x217cb8[_0x477f66(0x39a)](),_0x5f03b4=new _0x175d11[(_0x477f66(0x15e))](this);_0x5f03b4[_0x477f66(0x10d)](_0x156b44);const _0xa538f3=[],_0x48fb33={};for(let _0x56d73b=_0x413785;_0x56d73b<=_0x46e148;_0x56d73b++){const _0x554c16=_0x12bb1a[_0x477f66(0x33d)](_0x4691bf,_0x56d73b),_0x2949c7=this['getRangeKey'](_0x156b44,_0x56d73b),_0x235f5e=this[_0x477f66(0x2c8)](_0x2949c7);if(_0x235f5e)_0x5f03b4['addField'](_0x235f5e[_0x477f66(0x24c)](),_0x235f5e['getName']());else{const _0x569bb8=this[_0x477f66(0x24b)]();let _0x4279d3=this[_0x477f66(0x24a)](_0x554c16,_0x2028ed,_0x48fb33);_0x175d11['isDateValue'](_0x4279d3)&&(_0x4279d3=_0x177d6a[_0x477f66(0x3c6)]['format'](_0x4279d3['f'],Number(_0x4279d3['v'])));const _0xa44cc4=this[_0x477f66(0x278)](_0x4279d3,_0x56d73b),_0x4dfa38=new _0x175d11[(_0x477f66(0x2f0))](_0x569bb8,_0xa44cc4,_0x175d11[_0x477f66(0x35c)](0x3));_0x4dfa38[_0x477f66(0x3ae)]=_0x2949c7,this['dataFields'][_0x569bb8]=_0x4dfa38,_0x5f03b4['addField'](_0x569bb8,_0xa44cc4),_0xa538f3[_0x477f66(0x1a2)]({'index':_0x56d73b,'dataField':_0x4dfa38});}}return{'updateDataFieldList':_0xa538f3,'collection':_0x5f03b4};}[_0x1c787c(0x20f)](_0x209c1b){const _0x908b40=_0x1c787c;return this[_0x908b40(0x35a)][_0x908b40(0x276)]()[_0x908b40(0x337)]+'\x20'+_0x177d6a[_0x908b40(0x3de)](_0x209c1b);}['uniqueDataFieldName'](_0x8f5b08,_0x4e9ca7){const _0x38414f=_0x1c787c;return _0x8f5b08==null||_0x8f5b08===''?this[_0x38414f(0x20f)](_0x4e9ca7):String(_0x8f5b08);}[_0x1c787c(0x16b)](_0x13feed){const _0x5913d0=_0x1c787c;return this[_0x5913d0(0x145)][_0x13feed];}['addCollection'](_0x20d6a2,_0x5691be,_0x5270fc,_0x4eab15){const _0x2f85e5=_0x1c787c;this[_0x2f85e5(0x145)][_0x20d6a2]=_0x5691be,_0x5691be[_0x2f85e5(0x10d)](_0x5270fc),this[_0x2f85e5(0x35a)][_0x2f85e5(0x124)]({'token':_0x20d6a2,'type':_0x23a0a5[_0x2f85e5(0x202)],'dataRangeInfo':_0x5270fc,'targetCellInfo':_0x4eab15});}['handleMoveRange'](_0x31f468,_0x5604ef){const _0x26530b=_0x1c787c,_0xf7652f=this[_0x26530b(0x16b)](_0x31f468),_0x4e24ce=_0xf7652f[_0x26530b(0x189)]();let _0x121b09=0x0;for(const _0x229ed6 of _0x4e24ce){const _0x2432cf=_0xf7652f['getFieldById'](_0x229ed6),_0x571ab9=this['getRangeKey'](_0x5604ef,_0x121b09);this[_0x26530b(0x2cb)](_0x2432cf['rangeKey'],_0x571ab9),_0x121b09++;}}[_0x1c787c(0x17c)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x1c787c(0x129)](_0x5aad4e,_0xe3740a){const _0xcf0ccd=_0x1c787c;if(this['getCollection'](_0x5aad4e)){const _0x230e64=this[_0xcf0ccd(0x224)](_0xe3740a),_0x4d1467=[];for(const _0x33e057 of _0x230e64)this[_0xcf0ccd(0x249)][_0x33e057]!==void 0x0&&_0x4d1467['push'](this[_0xcf0ccd(0x249)][_0x33e057]);const _0x4c05e7=this[_0xcf0ccd(0x346)](_0x5aad4e),_0x4a19d8=[],_0x3bfa41=new Set(_0x4d1467);for(const _0x1a8628 of _0x4c05e7)_0x3bfa41['has'](_0x1a8628)||_0x4a19d8[_0xcf0ccd(0x1a2)](_0x1a8628);return _0x4a19d8;}}[_0x1c787c(0x105)](_0x44ecfa,_0x48e944,_0x3d07ba,_0x53e00f,_0x345cf3){const _0x3b8d6d=_0x1c787c;return _0x48e944&&_0x48e944[_0x3b8d6d(0x33d)](_0x53e00f,_0x345cf3)?_0x48e944['getValue'](_0x53e00f,_0x345cf3):_0x3d07ba&&_0x3d07ba[_0x3b8d6d(0x33d)](_0x53e00f,_0x345cf3)?_0x3d07ba['getValue'](_0x53e00f,_0x345cf3):_0x44ecfa[_0x3b8d6d(0x33d)](_0x53e00f,_0x345cf3);}[_0x1c787c(0x1be)](_0x21dcf6,_0x484262,_0x149335,_0x29a43a){const _0x568725=_0x1c787c,_0x1873fe=this[_0x568725(0x366)][_0x21dcf6];if(!_0x1873fe)return;const {subUnitId:_0x2e9315,range:_0xc831b,unitId:_0x56a78f}=_0x484262,_0x55e234=this[_0x568725(0x214)][_0x568725(0x16a)](_0x56a78f);if(!_0x55e234){console['error'](_0x568725(0x199));return;}const _0x1ad4c2=_0x55e234['getSheetBySheetId'](_0x2e9315),_0x304da9=_0x1ad4c2['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x4afe82,unitDataMatrix:_0x585de7}=_0x29a43a||{},{startRow:_0x20b104,startColumn:_0x3b75b9,endRow:_0x15dc3d}=this[_0x568725(0x293)](_0xc831b,_0x1ad4c2);_0x1873fe[_0x568725(0x168)]();const _0x3a2f22=_0x55e234['getStyles'](),_0x185c87={},_0x49cabe=this[_0x568725(0x105)](_0x304da9,_0x4afe82,_0x585de7,_0x20b104,_0x3b75b9+_0x149335);let _0x43d682=this[_0x568725(0x24a)](_0x49cabe,_0x3a2f22,_0x185c87);_0x175d11[_0x568725(0x1d2)](_0x43d682)&&(_0x43d682=_0x177d6a[_0x568725(0x3c6)][_0x568725(0x1ed)](_0x43d682['f'],Number(_0x43d682['v'])));const _0x28e75c=this[_0x568725(0x278)](_0x43d682,_0x3b75b9+_0x149335);_0x1873fe[_0x568725(0x327)](_0x28e75c);for(let _0x52fdd3=_0x20b104+0x1;_0x52fdd3<=_0x15dc3d;_0x52fdd3++){const _0x435f03=this[_0x568725(0x105)](_0x304da9,_0x4afe82,_0x585de7,_0x52fdd3,_0x3b75b9+_0x149335);_0x1873fe[_0x568725(0x2f7)](this['adjustSheetCellData'](_0x435f03,_0x3a2f22,_0x185c87),_0x52fdd3-0x1-_0x20b104);}}[_0x1c787c(0x172)](_0x95e014,_0x3843e,_0x9ac139){const _0x51ec84=_0x1c787c,{subUnitId:_0xdf5bd0,range:_0x55e3b8,unitId:_0x14e766}=_0x9ac139,_0x4b78ca=this[_0x51ec84(0x214)]['getUnit'](_0x14e766);if(!_0x4b78ca){console[_0x51ec84(0x2cc)](_0x51ec84(0x199));return;}const _0x2a9da3=_0x4b78ca[_0x51ec84(0x29a)](_0xdf5bd0),_0x20353a=_0x2a9da3[_0x51ec84(0x154)](),{startRow:_0x4b6223,startColumn:_0x4acb1f,endRow:_0x380b52}=this[_0x51ec84(0x293)](_0x55e3b8,_0x2a9da3),_0x1cdcf0=_0x4b78ca[_0x51ec84(0x39a)](),_0x52ae5d={};for(const {dataField:_0x317738,index:_0x5c0ab3}of _0x3843e){_0x317738['reset']();const _0x796c48=this[_0x51ec84(0x105)](_0x20353a,void 0x0,void 0x0,_0x4b6223,_0x4acb1f+_0x5c0ab3);let _0xa12993=this[_0x51ec84(0x24a)](_0x796c48,_0x1cdcf0,_0x52ae5d);_0x175d11['isDateValue'](_0xa12993)&&(_0xa12993=_0x177d6a['numfmt']['format'](_0xa12993['f'],Number(_0xa12993['v'])));const _0x3449b6=this[_0x51ec84(0x278)](_0xa12993,_0x4acb1f+_0x5c0ab3);_0x317738[_0x51ec84(0x327)](_0x3449b6);}_0x95e014[_0x51ec84(0x307)]();for(let _0x30f694=_0x4b6223+0x1;_0x30f694<=_0x380b52;_0x30f694++)for(const {index:_0x58940f,dataField:_0x10cd54}of _0x3843e){const _0x510693=_0x20353a[_0x51ec84(0x33d)](_0x30f694,_0x4acb1f+_0x58940f);_0x10cd54['addRecord'](this[_0x51ec84(0x24a)](_0x510693,_0x1cdcf0,_0x52ae5d),_0x30f694-0x1-_0x4b6223);}_0x95e014[_0x51ec84(0x3a7)](_0x380b52-_0x4b6223);}[_0x1c787c(0x224)](_0x257733){const _0x134859=_0x1c787c,{range:_0x37b90a}=_0x257733,{startColumn:_0x3a5dc5,endColumn:_0x312c80}=_0x37b90a,_0x506c81=[];for(let _0x20832c=_0x3a5dc5;_0x20832c<=_0x312c80;_0x20832c++)_0x506c81[_0x134859(0x1a2)](this['getRangeKey'](_0x257733,_0x20832c));return _0x506c81;}['adjustSheetCellData'](_0x43ff70,_0x283846,_0x39e0fd){const _0x15de17=_0x1c787c;if(_0x43ff70){const {s:_0xd2e7f6,v:_0x2417c0,t:_0x40329a,p:_0x3002b4}=_0x43ff70;if(_0x3002b4)return _0x180b67(_0x3002b4);const _0x33ff88=_0x283846[_0x15de17(0x3e4)](_0xd2e7f6);if(_0x33ff88&&_0x40329a===_0x177d6a[_0x15de17(0x13d)][_0x15de17(0x1c9)]&&_0x33ff88['n']){const {pattern:_0x207638}=_0x33ff88['n'];_0x39e0fd[_0x207638]||(_0x39e0fd[_0x207638]=_0x177d6a['numfmt'][_0x15de17(0x188)](_0x207638));const _0x3a4c08=_0x39e0fd[_0x207638],_0x258f3d=_0x3a4c08['isDate'];if(_0x3a4c08['isText'])return String(_0x2417c0);if(_0x258f3d)return{'v':_0x2417c0,'f':_0x207638};}if(_0x40329a===_0x177d6a[_0x15de17(0x13d)]['NUMBER'])return Number(_0x2417c0);if(_0x40329a===_0x177d6a[_0x15de17(0x13d)][_0x15de17(0x2f5)]||_0x40329a===_0x177d6a[_0x15de17(0x13d)][_0x15de17(0x279)])return String(_0x2417c0);if(_0x40329a===void 0x0){const _0x471fc5=Number(_0x2417c0);if(!Number[_0x15de17(0x1ff)](_0x471fc5)&&String(_0x471fc5)===_0x2417c0)return _0x471fc5;}return _0x2417c0!=null?_0x2417c0:null;}else return null;}['getRangeData'](_0x43f310){const _0x540eb4=_0x1c787c,{sheetName:_0x194a93,range:_0x58bfaf,unitId:_0x4680c6}=_0x43f310,_0x7ab962=this[_0x540eb4(0x214)]['getUnit'](_0x4680c6);if(!_0x7ab962)return console[_0x540eb4(0x2cc)](_0x540eb4(0x199)),{'header':[],'data':[]};const _0x62215e=_0x7ab962['getSheetBySheetName'](_0x194a93),_0x191400=_0x62215e[_0x540eb4(0x154)](),{startRow:_0x1a911c,startColumn:_0x5689f4,endRow:_0x1693a8,endColumn:_0x45787c}=this[_0x540eb4(0x293)](_0x58bfaf,_0x62215e),_0x4e5f5c=_0x7ab962['getStyles'](),_0x131c4d=[],_0x1c61cb=[],_0x269442={};for(let _0x3fd9bd=_0x1a911c;_0x3fd9bd<=_0x1693a8;_0x3fd9bd++){const _0x35782b=[];for(let _0x37532e=_0x5689f4;_0x37532e<=_0x45787c;_0x37532e++){const _0x39b861=_0x191400[_0x540eb4(0x33d)](_0x3fd9bd,_0x37532e);_0x3fd9bd===_0x1a911c?_0x131c4d['push'](_0x39b861==null?null:String(_0x39b861['v'])):_0x35782b['push'](this['adjustSheetCellData'](_0x39b861,_0x4e5f5c,_0x269442));}_0x1c61cb['push'](_0x35782b);}return{'header':_0x131c4d,'data':_0x1c61cb};}[_0x1c787c(0x32b)](){const _0x11b59a=_0x1c787c;return super[_0x11b59a(0x32b)]();}['fromJSON'](_0x117f3c){const _0x454479=_0x1c787c;super['fromJSON'](_0x117f3c),this[_0x454479(0x171)]();}[_0x1c787c(0x11f)](){const _0x5a2666=_0x1c787c;super[_0x5a2666(0x11f)](),this[_0x5a2666(0x249)]={},this[_0x5a2666(0x35a)]=null;}}const _0x4fcfcc=_0x3e7216=>{const _0x4a881b=_0x1c787c,{targetCellInfo:_0x2b4d02}=_0x3e7216,{matrixCache:_0x11ab31,rangesCache:_0x5a14ed}=_0x5ea28a({'filter':_0x4a881b(0x1bb),'row':'Row','column':_0x4a881b(0x3ca),'values':_0x4a881b(0x308)},_0x2b4d02),_0x36adcb=new _0x177d6a[(_0x4a881b(0xf7))]();return _0x11ab31[_0x4a881b(0xe2)]((_0xdf89e6,_0x587f23,_0x480d47)=>{const _0x4417a3=_0x4a881b;_0x36adcb[_0x4417a3(0x14f)](_0xdf89e6,_0x587f23,_0x480d47);}),{'matrix':_0x36adcb,'rangesCache':_0x5a14ed};},_0xb3f27f=_0x5ee3db=>{const _0x38a2a8=_0x1c787c;let _0x1b9a97;if(_0x5ee3db!=null&&_0x5ee3db['v']||(_0x5ee3db==null?void 0x0:_0x5ee3db['v'])===0x0){_0x1b9a97||(_0x1b9a97={});const _0x7382b=_0xcfe240(_0x5ee3db['v']);typeof _0x7382b==_0x38a2a8(0x1ea)?_0x1b9a97['t']=_0x177d6a[_0x38a2a8(0x13d)][_0x38a2a8(0x1c9)]:typeof _0x7382b==_0x38a2a8(0x355)&&(_0x1b9a97['t']=_0x177d6a[_0x38a2a8(0x13d)][_0x38a2a8(0x2f5)]),_0x1b9a97['v']=_0x7382b;}return _0x1b9a97;},_0x3ef7db=(_0x380b70,_0x3b26a8,_0x117347)=>{const _0x47e976=_0x1c787c;var _0x5ec573,_0xfb71ec,_0x11bc8b,_0x13bafb,_0x26391d,_0x5cf740,_0x13ed6b,_0x307364,_0x24a20c,_0x2fd687,_0x5e65be,_0x10c4b1;const {cornerView:_0x1a3398,rowView:_0x117c77,colView:_0x57a1ed,dataView:_0x11ed39,pageView:_0x14c1e2,formatMap:_0x3eb861}=_0x380b70,{row:_0x3ef37d,col:_0x2897bf}=_0x3b26a8,_0x27b935=new _0x177d6a[(_0x47e976(0xf7))]();let _0x193b7c=_0x3ef37d,_0x3a03e8=_0x2897bf;Object[_0x47e976(0x1fc)](_0x14c1e2[_0x47e976(0x292)])[_0x47e976(0xe3)](_0x3903d0=>{const _0xf88c7d=_0x47e976;Object[_0xf88c7d(0x1fc)](_0x14c1e2['data'][Number(_0x3903d0)])[_0xf88c7d(0xe3)](_0x485175=>{const _0x34d4a9=_0xf88c7d,_0x1c0329={..._0x14c1e2['data'][Number(_0x3903d0)][Number(_0x485175)]};_0x27b935[_0x34d4a9(0x14f)](Number(_0x3903d0)+_0x193b7c,Number(_0x485175)+_0x3a03e8,_0xb3f27f(_0x1c0329));});});const _0x5680a1=Object[_0x47e976(0x1fc)](_0x14c1e2[_0x47e976(0x292)])[_0x47e976(0x10f)];_0x193b7c+=_0x5680a1+(_0x5680a1?_0x2afc20:0x0);const _0x4d63c9=_0x1a3398[_0x47e976(0x132)](),_0x31ae20=_0x1a3398[_0x47e976(0x233)]();for(let _0x52bf80=0x0;_0x52bf80<_0x4d63c9;_0x52bf80++)for(let _0x463b2b=0x0;_0x463b2b<_0x31ae20;_0x463b2b++){const _0x48a0f0={...(_0xfb71ec=(_0x5ec573=_0x1a3398[_0x47e976(0x292)])==null?void 0x0:_0x5ec573[_0x52bf80])==null?void 0x0:_0xfb71ec[_0x463b2b]};_0x48a0f0&&((_0x11bc8b=_0x117c77[_0x47e976(0x158)][_0x463b2b])!=null&&_0x11bc8b[_0x47e976(0x16e)])&&_0x463b2b===_0x31ae20-0x1&&_0x52bf80===_0x4d63c9-0x1&&(_0x48a0f0['v']=''+_0x117347[_0x47e976(0xd0)]),_0x27b935[_0x47e976(0x14f)](_0x52bf80+_0x193b7c,_0x463b2b+_0x3a03e8,_0xb3f27f(_0x48a0f0));}_0x3a03e8+=_0x31ae20;const _0x197e94=_0x57a1ed['headerMap'],_0x35f536=_0x57a1ed['getLastRow']()>=0x0?_0x57a1ed['getLastRow']()+0x1:0x0,_0xa6dce=_0x57a1ed['getLastCol']()>=0x0?_0x57a1ed[_0x47e976(0xd1)]()+0x1:0x0;for(let _0x5233f4=0x0;_0x5233f4<_0xa6dce;_0x5233f4++)for(let _0x6a3276=0x0;_0x6a3276<_0x35f536;_0x6a3276++){const _0x475ad8={...(_0x26391d=(_0x13bafb=_0x57a1ed['data'])==null?void 0x0:_0x13bafb[_0x5233f4])==null?void 0x0:_0x26391d[_0x6a3276]},_0x148ff7=(_0x5cf740=_0x197e94[_0x5233f4])==null?void 0x0:_0x5cf740['tableFieldId'],_0x4e6756=_0x3eb861[_0x148ff7];_0x475ad8&&(_0x475ad8['v']=_0x58787d(_0x475ad8,_0x5233f4===0x0&&((_0x13ed6b=_0x57a1ed[_0x47e976(0x106)](_0x6a3276+0x1))==null?void 0x0:_0x13ed6b[_0x47e976(0x16e)]),_0x4e6756,_0x117347)),_0x27b935[_0x47e976(0x14f)](_0x5233f4+_0x193b7c,_0x6a3276+_0x3a03e8,_0xb3f27f(_0x475ad8));}_0x193b7c+=_0x4d63c9;const _0x35c4ab=_0x117c77[_0x47e976(0x158)],_0x4000da=_0x117c77[_0x47e976(0x388)]()>=0x0?_0x117c77[_0x47e976(0x388)]()+0x1:0x0,_0x1f3772=_0x117c77['getLastCol']()>=0x0?_0x117c77['getLastCol']()+0x1:0x0;for(let _0x6a84fc=0x0;_0x6a84fc<_0x4000da;_0x6a84fc++)for(let _0x2b7f0b=0x0;_0x2b7f0b<_0x1f3772;_0x2b7f0b++){const _0x3aea6a={...(_0x24a20c=(_0x307364=_0x117c77[_0x47e976(0x292)])==null?void 0x0:_0x307364[_0x6a84fc])==null?void 0x0:_0x24a20c[_0x2b7f0b]},_0x1d6a73=(_0x2fd687=_0x35c4ab[_0x2b7f0b])==null?void 0x0:_0x2fd687[_0x47e976(0x2a3)],_0x41e925=_0x3eb861[_0x1d6a73];_0x3aea6a&&(_0x3aea6a['v']=_0x58787d(_0x3aea6a,!0x1,_0x41e925,_0x117347)),_0x27b935['setValue'](_0x6a84fc+_0x193b7c,_0x2b7f0b+_0x2897bf,_0xb3f27f(_0x3aea6a));}const _0x3e4408=_0x11ed39['getRowCount'](),_0x411c8e=_0x11ed39[_0x47e976(0x233)]();for(let _0x261efb=0x0;_0x261efb<_0x3e4408;_0x261efb++)for(let _0x137ec7=0x0;_0x137ec7<_0x411c8e;_0x137ec7++){const _0x1b3876={...(_0x10c4b1=(_0x5e65be=_0x11ed39['data'])==null?void 0x0:_0x5e65be[_0x261efb])==null?void 0x0:_0x10c4b1[_0x137ec7]};_0x27b935[_0x47e976(0x14f)](_0x261efb+_0x193b7c,_0x137ec7+_0x3a03e8,_0xb3f27f(_0x1b3876));}return _0x27b935;},_0x2be3a7=_0x3d9a87=>{const _0x4e8de6=_0x1c787c,{view:_0x382165,targetCellInfo:_0x26e6e9,isEmpty:_0x6f5d82,textInfo:_0x8604e6}=_0x3d9a87;if(_0x6f5d82)return _0x4fcfcc(_0x3d9a87);const {pageView:_0x4b9e2e,cornerView:_0x371ccc,rowView:_0x375b8d,colView:_0x9d5165,dataView:_0x19fa19}=_0x382165,_0x51231d=_0x397824(_0x26e6e9,_0x4b9e2e,!0x0),_0x109e0e=_0x4b9e2e[_0x4e8de6(0x30e)]>=0x0?_0x4b9e2e[_0x4e8de6(0x30e)]+0x1:0x0,_0x2818dc=_0x371ccc[_0x4e8de6(0x132)](),_0x2281d9=_0x371ccc[_0x4e8de6(0x233)](),_0x229a67=_0x51231d[_0x4e8de6(0x10f)]>0x0?_0x2afc20:0x0,_0x170139=_0x397824({'row':_0x26e6e9[_0x4e8de6(0x2e7)]+_0x109e0e+_0x229a67,'col':_0x26e6e9[_0x4e8de6(0x368)]},_0x371ccc,!0x1,!0x1),_0x456fa3=_0x397824({'row':_0x26e6e9[_0x4e8de6(0x2e7)]+_0x109e0e+_0x229a67+_0x2818dc,'col':_0x26e6e9[_0x4e8de6(0x368)]},_0x375b8d,!0x1,!0x0),_0x48e844=_0x397824({'row':_0x26e6e9[_0x4e8de6(0x2e7)]+_0x109e0e+_0x229a67,'col':_0x26e6e9[_0x4e8de6(0x368)]+_0x2281d9},_0x9d5165,!0x1,!0x0),_0x577a55=_0x397824({'row':_0x26e6e9[_0x4e8de6(0x2e7)]+_0x109e0e+_0x229a67+_0x2818dc,'col':_0x26e6e9[_0x4e8de6(0x368)]+_0x2281d9},_0x19fa19,!0x1,!0x1),_0x3d5931={'rowRanges':_0x456fa3,'colRanges':_0x48e844,'cornerRanges':_0x170139,'dataRanges':_0x577a55,'pageRanges':_0x51231d};return{'matrix':_0x3ef7db(_0x382165,_0x26e6e9,_0x8604e6),'rangesCache':_0x3d5931};};var _0x550916=Object[_0x1c787c(0x275)],_0x31ca8d=(_0x3f381,_0x52efd9,_0x833395,_0x41574a)=>{const _0xe06eee=_0x1c787c;for(var _0x4d3b9b=_0x41574a>0x1?void 0x0:_0x41574a?_0x550916(_0x52efd9,_0x833395):_0x52efd9,_0x4907c1=_0x3f381[_0xe06eee(0x10f)]-0x1,_0x2333a4;_0x4907c1>=0x0;_0x4907c1--)(_0x2333a4=_0x3f381[_0x4907c1])&&(_0x4d3b9b=_0x2333a4(_0x4d3b9b)||_0x4d3b9b);return _0x4d3b9b;},_0x223f2f=(_0x585054,_0x241ea4)=>(_0x104dab,_0x57e6be)=>_0x241ea4(_0x104dab,_0x57e6be,_0x585054);_0x1ed859[_0x1c787c(0x1af)]=class extends _0x177d6a['Disposable']{constructor(_0xa5b117,_0x240cef,_0x396899,_0x4fe1ea,_0x3dc612){const _0x217273=_0x1c787c;super(),_0x117630(this,'_model',new Map()),_0x117630(this,_0x217273(0x144),new Map()),_0x117630(this,_0x217273(0x192),new Map()),_0x117630(this,_0x217273(0x1fe)),_0x117630(this,_0x217273(0x115),new _0x2d0b5f[(_0x217273(0x222))]()),_0x117630(this,_0x217273(0x1a5),this[_0x217273(0x115)]['asObservable']()),_0x117630(this,_0x217273(0x1c8),new _0x2d0b5f[(_0x217273(0x222))]()),_0x117630(this,'viewData$',this[_0x217273(0x1c8)][_0x217273(0x14a)]()),_0x117630(this,_0x217273(0x2c1),new _0x2d0b5f[(_0x217273(0x222))]()),_0x117630(this,_0x217273(0x35e),this['_fieldsCollectionChange$'][_0x217273(0x14a)]()),_0x117630(this,'_dataFieldManagerCollection',new Map()),_0x117630(this,'needSameDeleteModel',[]),_0x117630(this,'_queryingMap',new Map()),(this[_0x217273(0x343)]=_0xa5b117,this[_0x217273(0x214)]=_0x240cef,this[_0x217273(0x3e2)]=_0x396899,this[_0x217273(0x397)]=_0x4fe1ea,this['_resourceManagerService']=_0x3dc612,this[_0x217273(0xd4)]());}[_0x1c787c(0x276)](){const _0x4bdb6e=_0x1c787c;return this[_0x4bdb6e(0x1fe)]?this[_0x4bdb6e(0x1fe)]:_0x963fa1;}[_0x1c787c(0x253)](_0x431435){this['_textInfo']=_0x431435;}[_0x1c787c(0x394)](_0x9ad737){const _0x32adad=_0x1c787c;var _0x406574;const {from:_0x5c6032,to:_0x393707,unitId:_0x2884c1,fromRange:_0x5cf3f4,toRange:_0x2bbc0d}=_0x9ad737;if(_0x5c6032&&_0x393707){const _0x2d1cb6=this['getDataFieldManager'](_0x2884c1),_0x272f93=this[_0x32adad(0x126)][_0x32adad(0x3e4)](_0x2884c1),_0xe9f82c=(_0x406574=this[_0x32adad(0x214)][_0x32adad(0x16a)](_0x2884c1))==null?void 0x0:_0x406574[_0x32adad(0x29a)](_0x393707['subUnitId']);if(!_0x272f93||!_0xe9f82c)return;const _0x308e02=_0xe9f82c==null?void 0x0:_0xe9f82c[_0x32adad(0x2b5)]();for(const [_0x365649,_0x57ad38]of _0x272f93[_0x32adad(0x1f7)]())for(const [_0x870ab5,_0x1ce667]of _0x57ad38[_0x32adad(0x1f7)]()){const {sourceRangeInfo:_0x1709da}=_0x1ce667;if(_0x1709da[_0x32adad(0x283)]===_0x2884c1&&_0x1709da[_0x32adad(0x27d)]===_0x5c6032[_0x32adad(0x27d)]&&_0x177d6a[_0x32adad(0x2e2)][_0x32adad(0x295)](_0x5cf3f4,_0x1709da[_0x32adad(0x138)])){const _0x4d4b26={'row':_0x1709da[_0x32adad(0x138)][_0x32adad(0xc5)]-_0x5cf3f4['startRow'],'col':_0x1709da[_0x32adad(0x138)][_0x32adad(0x235)]-_0x5cf3f4[_0x32adad(0x235)]},_0x45b46e={'unitId':_0x2884c1,'subUnitId':_0x393707[_0x32adad(0x27d)],'sheetName':_0x308e02,'range':{'startRow':_0x2bbc0d[_0x32adad(0xc5)]+_0x4d4b26[_0x32adad(0x2e7)],'endRow':_0x2bbc0d[_0x32adad(0xc5)]+_0x4d4b26[_0x32adad(0x2e7)]+_0x1709da[_0x32adad(0x138)][_0x32adad(0x31c)]-_0x1709da[_0x32adad(0x138)][_0x32adad(0xc5)],'startColumn':_0x2bbc0d[_0x32adad(0x235)]+_0x4d4b26[_0x32adad(0x368)],'endColumn':_0x2bbc0d['startColumn']+_0x4d4b26[_0x32adad(0x368)]+_0x1709da[_0x32adad(0x138)][_0x32adad(0x2d3)]-_0x1709da[_0x32adad(0x138)][_0x32adad(0x235)]}};_0x2d1cb6[_0x32adad(0x394)](_0x870ab5,_0x45b46e);const _0x2bfdea={..._0x1ce667,'sourceRangeInfo':_0x45b46e};this[_0x32adad(0x219)](_0x2884c1,_0x393707[_0x32adad(0x27d)],_0x870ab5,_0x2bfdea),this[_0x32adad(0x124)]({'unitId':_0x2884c1,'token':_0x870ab5,'type':_0x23a0a5[_0x32adad(0x305)],'oldSourceRangeInfo':_0x1709da,'dataRangeInfo':_0x45b46e,'targetCellInfo':_0x1ce667[_0x32adad(0x30d)]}),this['updateConfig']({'unitId':_0x2884c1,'subUnitId':_0x393707[_0x32adad(0x27d)],'oldSubUnitId':_0x365649,'pivotTableId':_0x870ab5,'pivotTableConfig':_0x2bfdea,'collectionConfig':_0x2d1cb6[_0x32adad(0x32b)]()});}}}}[_0x1c787c(0x124)](_0x13893b){const _0x7ef5da=_0x1c787c;this['_collectionChange$'][_0x7ef5da(0x31b)](_0x13893b);}['getDataFieldManager'](_0x14ef8e){const _0xff0b73=_0x1c787c;let _0x1c4ee2=this[_0xff0b73(0x314)][_0xff0b73(0x3e4)](_0x14ef8e);return _0x1c4ee2||(_0x1c4ee2=new _0x5812a2(this,this[_0xff0b73(0x214)]),this[_0xff0b73(0x314)]['set'](_0x14ef8e,_0x1c4ee2)),_0x1c4ee2;}[_0x1c787c(0x16b)](_0x297f34,_0x3cadf6){const _0x51705b=_0x1c787c;return this[_0x51705b(0x35d)](_0x297f34)[_0x51705b(0x145)][_0x3cadf6];}[_0x1c787c(0x129)](_0x5e8d04,_0x17a998,_0x2be7c1){const _0x3ef00f=_0x1c787c;return this[_0x3ef00f(0x35d)](_0x5e8d04)[_0x3ef00f(0x129)](_0x17a998,_0x2be7c1);}['_ensurePivotMap'](_0x4898ce,_0x2cf404){const _0x1465da=_0x1c787c;let _0x3e7539=this[_0x1465da(0x126)]['get'](_0x4898ce);_0x3e7539||(_0x3e7539=new Map(),this[_0x1465da(0x126)][_0x1465da(0xfa)](_0x4898ce,_0x3e7539));let _0x57c3a1=_0x3e7539['get'](_0x2cf404);return _0x57c3a1||(_0x57c3a1=new Map(),_0x3e7539[_0x1465da(0xfa)](_0x2cf404,_0x57c3a1)),_0x57c3a1;}['_updateModelCache'](_0x22c3ff,_0x5975ab,_0x250bda,_0x454668){const _0x24121e=_0x1c787c;this[_0x24121e(0xbf)](_0x22c3ff,_0x5975ab)['set'](_0x250bda,_0x454668);}['_deleteModelCache'](_0x296d27,_0x451c68,_0xdb5889){const _0x1a05a2=_0x1c787c;var _0xa14c70,_0x348d9d,_0x41f42d,_0x132151;((_0x348d9d=(_0xa14c70=this[_0x1a05a2(0x126)][_0x1a05a2(0x3e4)](_0x296d27))==null?void 0x0:_0xa14c70[_0x1a05a2(0x3e4)](_0x451c68))==null?void 0x0:_0x348d9d[_0x1a05a2(0x3e4)](_0xdb5889))&&((_0x132151=(_0x41f42d=this[_0x1a05a2(0x126)][_0x1a05a2(0x3e4)](_0x296d27))==null?void 0x0:_0x41f42d[_0x1a05a2(0x3e4)](_0x451c68))==null||_0x132151['delete'](_0xdb5889));}[_0x1c787c(0x265)](_0x56c472,_0x4ef139){const _0x12cc15=_0x1c787c;this[_0x12cc15(0x144)]['set'](_0x56c472,_0x4ef139);}[_0x1c787c(0x370)](_0x57b795){const _0x20d082=_0x1c787c;this[_0x20d082(0x144)][_0x20d082(0x113)](_0x57b795);}[_0x1c787c(0x246)](_0x26d5af,_0x39910f){const _0x2ecd9f=_0x1c787c;let _0x193d3a=this[_0x2ecd9f(0x192)][_0x2ecd9f(0x3e4)](_0x26d5af);_0x193d3a||(_0x193d3a=new Map(),this['_viewData'][_0x2ecd9f(0xfa)](_0x26d5af,_0x193d3a));let _0x44cfa3=_0x193d3a[_0x2ecd9f(0x3e4)](_0x39910f);return _0x44cfa3||(_0x44cfa3=new Map(),_0x193d3a[_0x2ecd9f(0xfa)](_0x39910f,_0x44cfa3)),_0x44cfa3;}[_0x1c787c(0x2d0)](_0x30d5d9){const _0x1a7417=_0x1c787c,{unitId:_0x4bfcd7,subUnitId:_0x72ad8a,pivotTableId:_0x3f6764,pivotTableConfig:_0x26502e,collectionConfig:_0x3b66fb}=_0x30d5d9,_0xa553e={'unitId':_0x4bfcd7,'subUnitId':_0x72ad8a,'oldSubUnitId':_0x72ad8a,'pivotTableId':_0x3f6764,'pivotTableConfig':_0x26502e,'collectionConfig':_0x3b66fb};this[_0x1a7417(0x397)][_0x1a7417(0x104)](_0x4535fd['id'],_0xa553e,{'onlyLocal':!0x0});}['updateView'](_0x572bdb,_0x19e5f2,_0x1121a8,_0x4ff985,_0x327dd2,_0x363703,_0x28e3ae,_0x1940f3=!0x1){const _0x197dda=_0x1c787c;var _0x4fe676;this[_0x197dda(0x397)][_0x197dda(0x104)](_0x16a7c0['id'],{'single':{'unitId':_0x572bdb,'subUnitId':_0x19e5f2,'type':_0x1121a8,'pivotTableId':_0x4ff985,'view':_0x327dd2,'pivotConfig':_0x363703},'collectionConfig':{[_0x572bdb]:_0x28e3ae}},{'onlyLocal':!0x0});const _0x338caf=!!((_0x4fe676=this[_0x197dda(0x1f4)](_0x4ff985))!=null&&_0x4fe676[_0x197dda(0x31a)]()),_0x3a2206=this[_0x197dda(0x33b)](_0x572bdb,_0x19e5f2,_0x4ff985);_0x3a2206&&this['updateViewData']({'view':_0x327dd2,'pivotTableId':_0x4ff985,'textInfo':this['getTextInfo'](),'isEmpty':_0x338caf,'targetCellInfo':_0x3a2206[_0x197dda(0x30d)]},_0x1940f3);}[_0x1c787c(0x325)](_0x152e7d,_0x4dbc71){const _0x13adb6=_0x1c787c,{targetCellInfo:_0x4b57df,pivotTableId:_0x5561b3}=_0x152e7d,{unitId:_0x1ff48f,subUnitId:_0x451bc7}=_0x4b57df,_0x4cadf4=this[_0x13adb6(0x246)](_0x1ff48f,_0x451bc7),_0x5c3fef=_0x4cadf4[_0x13adb6(0x3e4)](_0x5561b3);let _0x54fa28,_0x203f16;_0x5c3fef&&(_0x54fa28=_0x5c3fef['rangeCache'],_0x203f16=_0x5c3fef[_0x13adb6(0x1a8)]);const {rangesCache:_0x382270,matrix:_0x49255c}=_0x2be3a7(_0x152e7d);_0x4cadf4[_0x13adb6(0xfa)](_0x5561b3,{'rangeCache':_0x382270,'matrix':_0x49255c,'oldMatrix':_0x203f16,'oldRangeCache':_0x54fa28}),_0x4dbc71||this[_0x13adb6(0x1c8)]['next']({'unitId':_0x1ff48f,'subUnitId':_0x451bc7,'pivotTableId':_0x5561b3});}[_0x1c787c(0x3cd)](_0x3875d9,_0x535ed8,_0x149a5f,_0x5aaccf,_0x534b6b){const _0xb8af05=_0x1c787c;this[_0xb8af05(0x219)](_0x3875d9,_0x535ed8,_0x149a5f,_0x534b6b),this[_0xb8af05(0x265)](_0x149a5f,_0x5aaccf);}['removePivotTable'](_0x4b3da3,_0x2e1897,_0x38de60){const _0x18e263=_0x1c787c,_0x43f9b1=this['getDataFieldManager'](_0x4b3da3);_0x43f9b1[_0x18e263(0x346)](_0x38de60)[_0x18e263(0xe3)](_0x30adbf=>{const _0x220698=_0x18e263;_0x43f9b1[_0x220698(0x1db)](_0x30adbf);}),this[_0x18e263(0x170)](_0x4b3da3,_0x38de60),this[_0x18e263(0x19b)](_0x4b3da3,_0x2e1897,_0x38de60),this[_0x18e263(0x370)](_0x38de60);}['setPivotTable'](_0x4ca445,_0x480982,_0x17fe89,_0x40c3c8){const _0x56180f=_0x1c787c;this[_0x56180f(0x219)](_0x4ca445,_0x480982,_0x17fe89,_0x40c3c8);}[_0x1c787c(0x33b)](_0x1f0b69,_0x36b4ea,_0x9e1da9){const _0x301ee5=_0x1c787c;var _0x195ad3,_0x15a831;const _0x23dc19=(_0x15a831=(_0x195ad3=this[_0x301ee5(0x126)][_0x301ee5(0x3e4)](_0x1f0b69))==null?void 0x0:_0x195ad3[_0x301ee5(0x3e4)](_0x36b4ea))==null?void 0x0:_0x15a831[_0x301ee5(0x3e4)](_0x9e1da9);if(_0x23dc19)return _0x23dc19;}[_0x1c787c(0x187)](_0x54d0cd,_0x408cf8,_0x4b589c){const _0x4b8f41=_0x1c787c;var _0xaa5023,_0x61c41;const _0x36aa33=(_0x61c41=(_0xaa5023=this[_0x4b8f41(0x126)][_0x4b8f41(0x3e4)](_0x54d0cd))==null?void 0x0:_0xaa5023[_0x4b8f41(0x3e4)](_0x408cf8))==null?void 0x0:_0x61c41[_0x4b8f41(0x3e4)](_0x4b589c);if(_0x36aa33)return _0x36aa33[_0x4b8f41(0x179)];}[_0x1c787c(0x1f4)](_0xadec8c){const _0x2c5227=_0x1c787c;return this['_pivotTableInstanceCache'][_0x2c5227(0x3e4)](_0xadec8c);}[_0x1c787c(0x103)](_0x20f5b5){const _0x2fe860=_0x1c787c;this['_model'][_0x2fe860(0x113)](_0x20f5b5);const _0x26265e=this[_0x2fe860(0x314)][_0x2fe860(0x3e4)](_0x20f5b5);_0x26265e&&(_0x26265e[_0x2fe860(0x11f)](),this[_0x2fe860(0x314)][_0x2fe860(0x113)](_0x20f5b5)),this[_0x2fe860(0x192)][_0x2fe860(0x113)](_0x20f5b5),this[_0x2fe860(0x19d)][_0x2fe860(0xe3)](_0x2e1515=>{_0x2e1515['deleteUnitId'](_0x20f5b5);});}[_0x1c787c(0x169)](_0x281c0a,_0xf71f95,_0x3920a7,_0x548a7f){const _0x7c516c=_0x1c787c;return this[_0x7c516c(0x35d)](_0x3920a7[_0x7c516c(0x283)])[_0x7c516c(0x169)](_0x281c0a,_0xf71f95,_0x3920a7,_0x548a7f);}['createCollectionWithDataRange'](_0x145324){const _0x514878=_0x1c787c;return this[_0x514878(0x35d)](_0x145324[_0x514878(0x283)])[_0x514878(0x2ba)](_0x145324);}[_0x1c787c(0x172)](_0xbb64b7,_0x2fd8e5,_0xf3751e){const _0x3b100e=_0x1c787c;this[_0x3b100e(0x35d)](_0xf3751e[_0x3b100e(0x283)])[_0x3b100e(0x172)](_0xbb64b7,_0x2fd8e5,_0xf3751e);}['removeDataField'](_0x49bc23,_0xaf5247){const _0x582f51=_0x1c787c;this[_0x582f51(0x35d)](_0x49bc23)[_0x582f51(0x1db)](_0xaf5247);}[_0x1c787c(0x170)](_0x4835d9,_0x3b2e31){const _0x453a42=_0x1c787c;this[_0x453a42(0x35d)](_0x4835d9)[_0x453a42(0x15f)](_0x3b2e31);}[_0x1c787c(0x255)](_0x31a490,_0x47c168){const _0x295f29=_0x1c787c;var _0x1622dc;return(_0x1622dc=this[_0x295f29(0x126)]['get'](_0x31a490))==null?void 0x0:_0x1622dc[_0x295f29(0x3e4)](_0x47c168);}['getTargetByPivotId'](_0x2d8a2b){const _0x4094a0=_0x1c787c;for(const [_0x481bf4,_0x514ed6]of this['_model'][_0x4094a0(0x1f7)]())for(const [_0x1c480f,_0x436111]of _0x514ed6['entries']())if(_0x436111[_0x4094a0(0xbc)](_0x2d8a2b))return{'unitId':_0x481bf4,'subUnitId':_0x1c480f};return null;}['sideEffectUpdateWorkerCache'](_0x49c6ce,_0x1dbbf0,_0x3f3a6b,_0x3654b2){const _0x5444eb=_0x1c787c,_0x47d170=this[_0x5444eb(0x246)](_0x49c6ce,_0x1dbbf0);_0x3654b2?_0x47d170[_0x5444eb(0xfa)](_0x3f3a6b,_0x3654b2):_0x47d170[_0x5444eb(0x113)](_0x3f3a6b),this[_0x5444eb(0x1c8)][_0x5444eb(0x31b)]({'unitId':_0x49c6ce,'subUnitId':_0x1dbbf0,'pivotTableId':_0x3f3a6b});}[_0x1c787c(0x11f)](){const _0x13bf60=_0x1c787c;super[_0x13bf60(0x11f)]();}[_0x1c787c(0x140)](_0x145204,_0x5d6c3c,_0x5d1336){const _0x2e833a=_0x1c787c;var _0x534eb6,_0x599aab;const _0x56c67c=(_0x599aab=(_0x534eb6=this[_0x2e833a(0x192)][_0x2e833a(0x3e4)](_0x145204))==null?void 0x0:_0x534eb6['get'](_0x5d6c3c))==null?void 0x0:_0x599aab[_0x2e833a(0x3e4)](_0x5d1336);return _0x56c67c||null;}[_0x1c787c(0x285)](_0x383ee2){const _0x10118=_0x1c787c;this[_0x10118(0x392)](_0x383ee2);}['updateDirtyPivotTable'](_0x256f6d){const _0x3f28e7=_0x1c787c,{token:_0x471173,unitId:_0x6bd62f,subUnitId:_0x69f85a}=_0x256f6d,_0x4c1fbd=_0x6bd62f+'-'+_0x69f85a+'-'+_0x471173;this[_0x3f28e7(0x2de)][_0x3f28e7(0x3e4)](_0x4c1fbd)&&clearTimeout(this[_0x3f28e7(0x2de)][_0x3f28e7(0x3e4)](_0x4c1fbd));const _0x52f18a=setTimeout(()=>{this['queryDirtyPivotTable'](_0x256f6d),this['_queryingMap']['delete'](_0x4c1fbd);},_0x5ae7bb);this[_0x3f28e7(0x2de)][_0x3f28e7(0xfa)](_0x4c1fbd,_0x52f18a);}['queryDirtyPivotTable'](_0x320136){const _0x4c698e=_0x1c787c,{unitId:_0x18ec66,subUnitId:_0x52c4a9,token:_0x4b98db,type:_0x1404ed,pivotConfig:_0x3bd92d}=_0x320136,_0x17c5a9=this[_0x4c698e(0x1f4)](_0x4b98db),_0x2bc67f=_0x17c5a9==null?void 0x0:_0x17c5a9[_0x4c698e(0x3ac)](),_0x2830e3=_0x3bd92d!=null?_0x3bd92d:this['getPivotTableConfig'](_0x18ec66,_0x52c4a9,_0x4b98db);_0x2830e3&&(_0x2830e3['isEmpty']=!!(_0x17c5a9!=null&&_0x17c5a9['isEmpty']())),(_0x2bc67f||_0x1404ed===_0x5a4701[_0x4c698e(0x1a7)])&&this[_0x4c698e(0x322)](_0x18ec66,_0x52c4a9,_0x1404ed,_0x4b98db,_0x2bc67f,_0x2830e3,this['getDataFieldManager'](_0x18ec66)[_0x4c698e(0x32b)]());}[_0x1c787c(0x32b)](_0xa274e){const _0x30e53d=_0x1c787c,_0x29f9b1={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x30e53d(0x35d)](_0xa274e)&&(_0x29f9b1[_0x30e53d(0x26c)][_0xa274e]=this[_0x30e53d(0x35d)](_0xa274e)[_0x30e53d(0x32b)]()),this[_0x30e53d(0x126)]['get'](_0xa274e)){_0x29f9b1[_0x30e53d(0x17e)][_0xa274e]={};const _0x538cee=this[_0x30e53d(0x126)][_0x30e53d(0x3e4)](_0xa274e);_0x538cee!=null&&_0x538cee[_0x30e53d(0x13f)]&&[..._0x538cee['keys']()][_0x30e53d(0xe3)](_0x10aee0=>{const _0x1c47c5=_0x30e53d,_0x567457=_0x538cee[_0x1c47c5(0x3e4)](_0x10aee0);_0x567457!=null&&_0x567457[_0x1c47c5(0x13f)]&&(_0x29f9b1['pivotTableConfigs'][_0xa274e][_0x10aee0]={},[..._0x567457['keys']()][_0x1c47c5(0xe3)](_0x3e9ff8=>{const _0x34bb9f=_0x1c47c5,_0x55b352=_0x567457[_0x34bb9f(0x3e4)](_0x3e9ff8);_0x55b352&&(_0x29f9b1[_0x34bb9f(0x17e)][_0xa274e][_0x10aee0][_0x3e9ff8]=_0x55b352);}));});}return _0x29f9b1;}[_0x1c787c(0x32d)](_0x4b240c){const _0x2527c0=_0x1c787c;var _0x1cf9ee;const {dataFieldManagerConfig:_0x1d582c,pivotTableConfigs:_0x68d983}=_0x4b240c;_0x1d582c&&Object[_0x2527c0(0x1fc)](_0x1d582c)[_0x2527c0(0xe3)](_0x29eaa5=>{const _0x3cd324=_0x2527c0;this[_0x3cd324(0x35d)](_0x29eaa5)[_0x3cd324(0x32d)](_0x1d582c[_0x29eaa5]);});const _0xe1971e=[];if(_0x68d983){const _0x47bc1f=(_0x1cf9ee=this['_injector'][_0x2527c0(0x3e4)](_0x177d6a[_0x2527c0(0xcb)])[_0x2527c0(0x19a)](_0x53915['LS_CONFIG_KEY']))!=null?_0x1cf9ee:{},{ls:_0x17cdb2,pbk:_0x562541}=_0x47bc1f,_0x58e6ca=_0x17409d(_0x45eedb,_0x17cdb2,_0x562541)[_0x2527c0(0x341)];Object[_0x2527c0(0x1fc)](_0x68d983)[_0x2527c0(0xe3)](_0x40a111=>{const _0x114fd8=_0x2527c0;let _0x1643ba=0x0;const _0xed1cbb=_0x68d983[_0x40a111];Object[_0x114fd8(0x1fc)](_0xed1cbb)[_0x114fd8(0xe3)](_0x4e7741=>{const _0x3649ac=_0x114fd8,_0x481130=_0xed1cbb[_0x4e7741];Object[_0x3649ac(0x1fc)](_0x481130)[_0x3649ac(0xe3)](_0x5a2f6b=>{const _0x5e640b=_0x3649ac,_0x2b1baf=_0x481130[_0x5a2f6b];if(_0x2b1baf){if(_0x1643ba>=_0x58e6ca)return;_0x1643ba++;const _0x585ae8=this['getDataFieldManager'](_0x40a111),_0x5c68ea=_0x585ae8[_0x5e640b(0x145)][_0x5a2f6b],_0x59ad37=_0x5c68ea[_0x5e640b(0x189)]();let _0x357894=0x0;const _0x496481=[];for(const _0x3fc6be of _0x59ad37){const _0x36974a=_0x5c68ea['getFieldById'](_0x3fc6be);if(_0x175d11['isBaseGroupField'](_0x36974a)){const _0x5b510c=_0x36974a[_0x5e640b(0x200)](),_0x5b0070=_0x5c68ea['getFieldById'](_0x5b510c);_0x5b0070&&_0x496481[_0x5e640b(0x1a2)]([_0x36974a,_0x5b0070]);continue;}_0x585ae8['refreshDataField'](_0x3fc6be,_0x2b1baf[_0x5e640b(0x2a8)],_0x357894),_0x357894++;}_0x496481[_0x5e640b(0xe3)](([_0x1d9e4e,_0x1bb31f])=>{_0x1d9e4e['refreshGroupField'](_0x1bb31f);});const _0xc6e27e=new _0x175d11['PivotTable'](_0x5c68ea);_0xc6e27e[_0x5e640b(0x32d)](_0x2b1baf['fieldsConfig']),this['addPivotTable'](_0x40a111,_0x4e7741,_0x5a2f6b,_0xc6e27e,_0x2b1baf);const _0x323c63=_0xc6e27e[_0x5e640b(0x3ac)]();_0xe1971e[_0x5e640b(0x1a2)]({'unitId':_0x40a111,'subUnitId':_0x4e7741,'pivotTableId':_0x5a2f6b,'view':_0x323c63[_0x5e640b(0x32b)](),'pivotConfig':_0x2b1baf,'type':_0x5a4701[_0x5e640b(0x201)]});const _0x3c34b1=!!_0xc6e27e[_0x5e640b(0x31a)](),_0x4a0d92={'view':_0x323c63,'pivotTableId':_0x5a2f6b,'textInfo':this[_0x5e640b(0x276)](),'isEmpty':_0x3c34b1,'targetCellInfo':_0x2b1baf['targetCellInfo']};this['updateViewData'](_0x4a0d92,!0x1);}});});});}_0x1d582c&&Object[_0x2527c0(0x1fc)](_0x1d582c)[_0x2527c0(0xe3)](_0x1780ee=>{const _0x1e7626=_0x2527c0,_0x3d745b=this[_0x1e7626(0x35d)](_0x1780ee);this[_0x1e7626(0x2c1)][_0x1e7626(0x31b)](_0x3d745b[_0x1e7626(0x145)]);}),this['_commandService'][_0x2527c0(0x104)](_0x16a7c0['id'],{'batch':_0xe1971e,'collectionConfig':_0x1d582c},{'onlyLocal':!0x0});}[_0x1c787c(0xd4)](){const _0x225f47=_0x1c787c;this['disposeWithMe'](this['_resourceManagerService'][_0x225f47(0x3d9)]({'toJson':_0x507fd1=>JSON[_0x225f47(0x10c)](this[_0x225f47(0x32b)](_0x507fd1)),'parseJson':_0x2611c6=>{const _0x4d505c=_0x225f47;if(!_0x2611c6)return{};try{return JSON[_0x4d505c(0x398)](_0x2611c6);}catch{return{};}},'businesses':[_0x177d6a[_0x225f47(0x238)][_0x225f47(0x217)]],'pluginName':_0x389941,'onLoad':(_0x28bc71,_0x1ff043)=>{const _0x3cc166=_0x225f47;this[_0x3cc166(0x32d)](_0x1ff043);},'onUnLoad':_0x1d03ca=>{this['deleteUnitId'](_0x1d03ca);}}));}},_0x1ed859[_0x1c787c(0x1af)]=_0x31ca8d([_0x223f2f(0x0,_0x177d6a['Inject'](_0x177d6a[_0x1c787c(0x284)])),_0x223f2f(0x1,_0x177d6a[_0x1c787c(0x22f)]),_0x223f2f(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x237)])),_0x223f2f(0x3,_0x177d6a['ICommandService']),_0x223f2f(0x4,_0x177d6a['Inject'](_0x177d6a[_0x1c787c(0x2c9)]))],_0x1ed859[_0x1c787c(0x1af)]);const _0x56837b={0x0:{0x0:{'v':_0x1c787c(0x22d),'s':_0x1a6281}},0x2:{0x1:{'v':'','s':_0x1a6281},0x2:{'v':'','s':_0x1a6281},0x3:{'v':'column','s':_0x1a6281},0x4:{'v':'','s':_0x1a6281},0x5:{'v':'','s':_0x1a6281}},0x3:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0x4:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0x5:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0x6:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0x7:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0x8:{0x0:{'v':_0x1c787c(0x2e7),'s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':_0x1c787c(0x31d),'s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0x9:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0xa:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0xb:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0xc:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}},0xd:{0x0:{'v':'','s':_0x1a6281},0x1:{'v':'','s':_0x112552},0x2:{'v':'','s':_0x112552},0x3:{'v':'','s':_0x112552},0x4:{'v':'','s':_0x112552},0x5:{'v':'','s':_0x112552}}},_0x5b7d4d={'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':[]},_0x5ea28a=(_0x4acf0e,_0x49e470)=>{const _0x6c6ba=_0x1c787c,_0x4c533c=new _0x177d6a[(_0x6c6ba(0xf7))](),_0x177a20=new _0x177d6a['ObjectMatrix'](_0x56837b),{row:_0x260abf,col:_0x5d5089}=_0x49e470;_0x177a20[_0x6c6ba(0xe2)]((_0x21c4a5,_0x357386,_0x4d81af)=>{const _0x44b7f1=_0x6c6ba;let _0x51ebfe='';_0x4d81af['v']===_0x44b7f1(0x22d)?_0x51ebfe=_0x4acf0e[_0x44b7f1(0x22d)]:_0x4d81af['v']==='row'?_0x51ebfe=_0x4acf0e[_0x44b7f1(0x2e7)]:_0x4d81af['v']===_0x44b7f1(0x1d4)?_0x51ebfe=_0x4acf0e[_0x44b7f1(0x1d4)]:_0x4d81af['v']===_0x44b7f1(0x31d)&&(_0x51ebfe=_0x4acf0e[_0x44b7f1(0x31d)]),_0x4c533c[_0x44b7f1(0x14f)](_0x21c4a5+_0x260abf,_0x357386+_0x5d5089,{..._0x4d81af,'v':_0x51ebfe});});const _0x14b2b8=_0x177d6a[_0x6c6ba(0x389)]['deepClone'](_0x5b7d4d);return Object[_0x6c6ba(0x1fc)](_0x5b7d4d)[_0x6c6ba(0xe3)](_0x3da5e9=>{const _0x59e045=_0x6c6ba;_0x14b2b8[_0x3da5e9]=_0x5b7d4d[_0x3da5e9][_0x59e045(0x12e)](_0x43e426=>({..._0x43e426,'startRow':_0x43e426[_0x59e045(0xc5)]+_0x260abf,'endRow':_0x43e426[_0x59e045(0x31c)]+_0x260abf,'startColumn':_0x43e426[_0x59e045(0x235)]+_0x5d5089,'endColumn':_0x43e426['endColumn']+_0x5d5089}));}),{'matrixCache':_0x4c533c,'rangesCache':_0x14b2b8};};function _0x198d3c(_0x37d4c6,_0x1e4e4c){const _0x1330cb=_0x1c787c;let _0x2a6838='';const _0x255897=this[_0x1330cb(0x276)]();switch(_0x1e4e4c){case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x27b)]:_0x2a6838=_0x255897[_0x1330cb(0x312)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)]['count']:_0x2a6838=_0x255897['sheets-pivot.countName']+_0x37d4c6;break;case _0x175d11['PivotSubtotalTypeEnum'][_0x1330cb(0x1ab)]:_0x2a6838=_0x255897[_0x1330cb(0x25a)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x22b)]:_0x2a6838=_0x255897['sheets-pivot.maxName']+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x2f9)]:_0x2a6838=_0x255897[_0x1330cb(0x2dd)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)]['product']:_0x2a6838=_0x255897[_0x1330cb(0x2e5)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x24d)]:_0x2a6838=_0x255897[_0x1330cb(0x2f4)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x2aa)]:_0x2a6838=_0x255897[_0x1330cb(0x182)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x259)]:_0x2a6838=_0x255897[_0x1330cb(0x3cf)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)]['var']:_0x2a6838=_0x255897[_0x1330cb(0x205)]+_0x37d4c6;break;case _0x175d11[_0x1330cb(0x1ce)][_0x1330cb(0x263)]:_0x2a6838=_0x255897[_0x1330cb(0x1d8)]+_0x37d4c6;break;default:_0x2a6838=_0x37d4c6;break;}return _0x2a6838;}function _0x2c9fc9(_0x2b0a2f,_0x574218,_0x11cdd6,_0x3c0b20,_0x5bc396){const _0x5ed7c1=_0x1c787c;var _0x4b411e,_0xaf1b8d,_0x2b9fb2,_0x30f0c1,_0x2de742;const _0x375646=_0x177d6a['cellToRange'](_0x2b0a2f,_0x574218),{rangesInfo:_0x3b42e7,areaInfo:_0x198484,headerMap:_0x4ab1bd}=_0x5bc396;if(!_0x3b42e7||!_0x198484||!_0x4ab1bd)return;const _0x4a602e=Object['keys'](_0x3b42e7)[_0x5ed7c1(0x24e)](_0x1b09d7=>_0x3b42e7[_0x1b09d7][_0x5ed7c1(0x32e)](_0x4eeede=>_0x177d6a[_0x5ed7c1(0x2e2)]['contains'](_0x4eeede,_0x375646))),_0x35a2d3=_0x198484;let _0x52c586,_0x34094d,_0x38eb34;if(_0x4a602e==='rowRanges')_0x52c586=(_0x4b411e=_0x35a2d3==null?void 0x0:_0x35a2d3[_0x5ed7c1(0x11a)])==null?void 0x0:_0x4b411e[_0x2b0a2f],_0x34094d=(_0xaf1b8d=_0x4ab1bd==null?void 0x0:_0x4ab1bd['rowHeaderMap'])==null?void 0x0:_0xaf1b8d[_0x574218],_0x38eb34=_0x34094d==null?void 0x0:_0x34094d['tableFieldId'];else{if(_0x4a602e===_0x5ed7c1(0x1fa))_0x52c586=(_0x2b9fb2=_0x35a2d3==null?void 0x0:_0x35a2d3['colInfo'])==null?void 0x0:_0x2b9fb2[_0x574218],_0x34094d=(_0x30f0c1=_0x4ab1bd[_0x5ed7c1(0x3ab)])==null?void 0x0:_0x30f0c1[_0x2b0a2f+0x1+_0x574218-_0x3b42e7[_0x5ed7c1(0x1fa)][0x0][_0x5ed7c1(0x235)]],_0x38eb34=_0x34094d==null?void 0x0:_0x34094d['tableFieldId'];else{if(_0x4a602e==='cornerRanges')_0x52c586=(_0x2de742=_0x35a2d3==null?void 0x0:_0x35a2d3[_0x5ed7c1(0x26a)])==null?void 0x0:_0x2de742[_0x574218],_0x38eb34=_0x52c586==null?void 0x0:_0x52c586['tableFieldId'];else{if(_0x4a602e===_0x5ed7c1(0x185)){const _0x5a90e0=_0x11cdd6==null?void 0x0:_0x11cdd6['fi'];_0x5a90e0!==void 0x0&&(_0x38eb34=_0x3c0b20[_0x5ed7c1(0x131)](_0x5a90e0));}}}}return{'filterId':_0x38eb34,'info':_0x52c586,'data':_0x11cdd6,'headerInfo':_0x34094d};}function _0xb5fa0a(_0x1ca5eb,_0x568c46,_0x4ac663){const _0x5ae973=_0x1c787c,_0x4136ed=_0x1ca5eb[_0x5ae973(0x16d)],_0x2ba9f6=_0x4136ed['getFieldIds'](),_0x19c3f8=new Set();_0x1ca5eb[_0x5ae973(0x153)](_0x4df5a9=>{const _0x17589f=_0x5ae973;_0x19c3f8[_0x17589f(0x202)](_0x4df5a9[_0x17589f(0x1bc)]);});const _0x12a1f1=_0x2ba9f6[_0x5ae973(0x12e)](_0x7e9c7c=>{const _0x1265af=_0x5ae973,_0x57d897=_0x4136ed[_0x1265af(0x3db)](_0x7e9c7c);return{'checked':_0x19c3f8[_0x1265af(0xbc)](_0x7e9c7c),'dataFieldId':_0x57d897['id'],'id':_0x57d897['id'],'name':_0x4136ed[_0x1265af(0x37e)](_0x57d897['id']),'type':_0x57d897[_0x1265af(0x2c3)](),'pivotTableId':_0x568c46};}),_0x5ddb9f=[];_0x1ca5eb['iterateFieldByArea'](_0x175d11[_0x5ae973(0x3d5)][_0x5ae973(0xf0)],_0xb4c050=>{const _0xc08c2e=_0x5ae973;_0x5ddb9f[_0xc08c2e(0x1a2)]({'dataFieldId':_0xb4c050[_0xc08c2e(0x1bc)],'tableFieldId':_0xb4c050[_0xc08c2e(0x24c)](),'displayName':_0xb4c050[_0xc08c2e(0x37e)]()});});const _0x3ef0ee=[];_0x1ca5eb[_0x5ae973(0x247)](_0x175d11[_0x5ae973(0x3d5)]['Column'],_0x2d1340=>{const _0x540fc0=_0x5ae973;_0x3ef0ee[_0x540fc0(0x1a2)]({'dataFieldId':_0x2d1340[_0x540fc0(0x1bc)],'tableFieldId':_0x2d1340[_0x540fc0(0x24c)](),'displayName':_0x2d1340[_0x540fc0(0x37e)]()});});const _0x3a8671=[];if(_0x1ca5eb['iterateFieldByArea'](_0x175d11[_0x5ae973(0x3d5)][_0x5ae973(0x1c5)],_0x2eda6c=>{const _0x2a72a9=_0x5ae973;_0x3a8671[_0x2a72a9(0x1a2)]({'dataFieldId':_0x2eda6c['dataFieldId'],'tableFieldId':_0x2eda6c[_0x2a72a9(0x24c)](),'displayName':_0x2eda6c[_0x2a72a9(0x37e)](),'format':_0x2eda6c[_0x2a72a9(0x282)](),'subTotalType':_0x2eda6c[_0x2a72a9(0x18e)]()});}),_0x3a8671[_0x5ae973(0x10f)]>0x1){const _0x2b2ebb=_0x1ca5eb[_0x5ae973(0x1ba)]();(_0x1ca5eb['isColMultiMeasure']()?_0x3ef0ee:_0x5ddb9f)[_0x5ae973(0x12d)](_0x2b2ebb,0x0,{'dataFieldId':'','tableFieldId':_0x5ae973(0x1c3),'displayName':_0x5ae973(0x37a)});}const _0x47c900=[];_0x1ca5eb[_0x5ae973(0x247)](_0x175d11['PivotTableFiledAreaEnum']['Filter'],_0x534cbe=>{const _0x24ddad=_0x5ae973;_0x47c900['push']({'dataFieldId':_0x534cbe['dataFieldId'],'tableFieldId':_0x534cbe['getId'](),'displayName':_0x534cbe[_0x24ddad(0x37e)]()});});const _0x5b4547=_0x4ac663[_0x5ae973(0x2a8)];return{'sourceList':_0x12a1f1,'sourceRange':_0x5b4547,'rowFields':_0x5ddb9f,'columnFields':_0x3ef0ee,'valueFields':_0x3a8671,'filterFields':_0x47c900,'positionInfo':_0x4ac663[_0x5ae973(0x30d)]};}function _0x16e30a(_0x1020b7,_0x3f8a78,_0x28c12b='',_0x2cb8a6={}){const _0x2f0b95=_0x1c787c,_0x2b8dac=_0x1020b7[_0x2f0b95(0x3e4)](_0x177d6a[_0x2f0b95(0x17f)]);for(const _0x2b04cb in _0x3f8a78)if(Object[_0x2f0b95(0x1d3)][_0x2f0b95(0x15d)][_0x2f0b95(0x1b0)](_0x3f8a78,_0x2b04cb)){const _0x40c8e4=_0x28c12b?_0x28c12b+'.'+_0x2b04cb:_0x2b04cb;typeof _0x3f8a78[_0x2b04cb]==_0x2f0b95(0x375)&&_0x3f8a78[_0x2b04cb]!==null&&!Array[_0x2f0b95(0x320)](_0x3f8a78[_0x2b04cb])?_0x16e30a(_0x1020b7,_0x3f8a78[_0x2b04cb],_0x40c8e4,_0x2cb8a6):_0x2cb8a6[_0x40c8e4]=_0x2b8dac['t'](_0x40c8e4);}return _0x2cb8a6;}const _0x3e69b9=_0x2ac878=>{const _0x1491b3=_0x1c787c;if(!_0x2ac878)return[];const {rowRanges:_0x16b003,colRanges:_0x18341a,cornerRanges:_0x47cc30,dataRanges:_0x25d58f,pageRanges:_0x4798b8}=_0x2ac878,_0x37f52c=[..._0x18341a,..._0x16b003,..._0x25d58f,..._0x47cc30]['filter'](_0x2d737e=>_0x2d737e[_0x1491b3(0xc5)]>=0x0&&_0x2d737e[_0x1491b3(0x235)]>=0x0&&_0x2d737e[_0x1491b3(0x31c)]>=0x0&&_0x2d737e[_0x1491b3(0x2d3)]>=0x0);let _0x150ddf=Number['MAX_SAFE_INTEGER'],_0x20138e=Number[_0x1491b3(0xf2)],_0x445a58=Number[_0x1491b3(0x29b)],_0x5d0395=Number['MIN_SAFE_INTEGER'];for(let _0xaf753f=0x0;_0xaf753f<_0x37f52c[_0x1491b3(0x10f)];_0xaf753f++)_0x150ddf=Math[_0x1491b3(0x2f9)](_0x150ddf,_0x37f52c[_0xaf753f]['startRow']),_0x20138e=Math[_0x1491b3(0x22b)](_0x20138e,_0x37f52c[_0xaf753f]['endRow']),_0x445a58=Math[_0x1491b3(0x2f9)](_0x445a58,_0x37f52c[_0xaf753f][_0x1491b3(0x235)]),_0x5d0395=Math['max'](_0x5d0395,_0x37f52c[_0xaf753f][_0x1491b3(0x2d3)]);return[..._0x4798b8,{'startRow':_0x150ddf,'endRow':_0x20138e,'startColumn':_0x445a58,'endColumn':_0x5d0395}];};function _0x2f5559(_0x732737,_0x283a93){const _0x5610f3=_0x1c787c,_0x2f81a3=_0x283a93[_0x5610f3(0x228)][_0x5610f3(0x32a)],{pivotTableId:_0x439a0b,unitId:_0x2a14f8,subUnitId:_0x31dded}=_0x283a93;if(!_0x2f81a3)return;const _0x52a984=_0x732737[_0x5610f3(0x3e4)](_0x1ed859[_0x5610f3(0x1af)]),_0x39f84a=_0x52a984['getPivotTableInstance'](_0x439a0b),_0x16b8d3=_0x52a984['getPivotTableConfig'](_0x2a14f8,_0x31dded,_0x439a0b);if(!_0x39f84a||!_0x16b8d3)return;const _0x52d930=_0x39f84a[_0x5610f3(0x294)](_0x2f81a3[_0x5610f3(0x223)]);if(!(_0x52d930!=null&&_0x52d930[_0x5610f3(0x10f)]))return;const _0x58589b=_0x16b8d3[_0x5610f3(0x2a8)],{unitId:_0x45c48c,subUnitId:_0x539c4d,range:_0x3899aa}=_0x58589b;let _0x202ef1=0x0;const _0x138097=_0x39f84a['dataFieldsCollection']['getFieldIds']()[_0x5610f3(0x36f)]((_0x55a2c2,_0x4ca8ec)=>{const _0x166704=_0x5610f3;var _0x2fa9ee;const _0x410a68=(_0x2fa9ee=_0x39f84a[_0x166704(0x268)](_0x4ca8ec))==null?void 0x0:_0x2fa9ee['getformat']();return _0x410a68&&(_0x55a2c2[String(_0x202ef1)]=_0x410a68),_0x202ef1++,_0x55a2c2;},{});return{'indexes':_0x52d930,'range':_0x3899aa,'sourceUnitId':_0x45c48c,'sourceSubUnitId':_0x539c4d,'formatMap':_0x138097};}function _0x41914d(_0x373706,_0x2456dc){const _0x124219=_0x1c787c;if(!_0x373706||!_0x2456dc)return!0x0;const _0x31cea8=_0x53915[_0x124219(0x155)](_0x284c38,_0x33f69e),_0x39bcaa=new Function(_0x124219(0x1f6)+_0x31cea8)()(_0x373706,_0x2456dc)['message'],_0x1fc752=_0x53915['isFeatureAuthorizedWithinTime'](_0x39bcaa,'sf',_0x3de64a);return!((_0x39bcaa==null?void 0x0:_0x39bcaa['rt'])===_0x53915['ReleaseType']['NO_COMMERCIAL']&&!_0x1fc752);}function _0x17409d(_0x36a5a6,_0x4b140b,_0x4155dc){const _0x880e07=_0x1c787c,_0x118625={'count':_0x36a5a6,'timeValid':!0x1};if(!_0x4b140b||!_0x4155dc)return _0x118625;const _0x31075f=_0x53915['unshiftString'](_0x284c38,_0x33f69e),_0x580247=new Function(_0x880e07(0x1f6)+_0x31075f)()(_0x4b140b,_0x4155dc);if(_0x580247!=null&&_0x580247[_0x880e07(0xe5)]){const _0x452373=_0x580247[_0x880e07(0x28d)],_0x48ec34=_0x53915['isFeatureAuthorizedWithinTime'](_0x452373,'sf',_0x3de64a);return{'count':_0x53915[_0x880e07(0x176)](_0x452373,_0x48ec34,_0x880e07(0xe6),_0x36a5a6,_0x36a5a6,0x0),'timeValid':_0x48ec34};}return _0x118625;}function _0x240a58(_0x1c28b9,_0x42e506,_0x3bcbbd,_0x54a3a4){const _0x113b80=_0x1c787c,_0x40f5b4={'subUnitId':_0x3bcbbd,'unitId':_0x42e506,'cellValue':_0x22c23f[_0x113b80(0x336)](_0x54a3a4)},_0x2e1f85=_0x22c23f[_0x113b80(0x3b4)](_0x1c28b9,_0x40f5b4);let _0x88d95b=!0x1;return new _0x177d6a[(_0x113b80(0xf7))](_0x2e1f85[_0x113b80(0x13b)])['forValue']((_0x32bf0a,_0x4f61ad,_0x20a773)=>{const _0x5a1651=_0x113b80;if(!_0x88d95b&&_0x20a773&&(_0x20a773[_0x5a1651(0x330)]||_0x20a773['f']||_0x20a773['p']||_0x20a773['s']||_0x20a773['si']||_0x20a773['t']||_0x20a773['v']))return _0x88d95b=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x22c23f[_0x113b80(0x33e)]['id'],'params':_0x2e1f85},'setRangeValueRedoMutation':{'id':_0x22c23f[_0x113b80(0x33e)]['id'],'params':_0x40f5b4},'shouldClear':_0x88d95b};}function _0x2c852f(_0x42eaa0){const {row:_0x50f54b,col:_0x564760}=_0x42eaa0,_0x1de8cb={'startRow':_0x50f54b,'endRow':_0x50f54b,'startColumn':_0x564760,'endColumn':_0x564760},_0x4f1c3a={'startRow':_0x50f54b+0x2,'endRow':_0x50f54b+0xe,'startColumn':_0x564760,'endColumn':_0x564760+0x6};return[_0x1de8cb,_0x4f1c3a];}function _0x2f9aba(_0x3c2549,_0x35ec1d,_0x570424){const _0x26882b=_0x1c787c,{cornerView:_0x35b78d,rowView:_0x3d41e0,colView:_0x4170ed,pageView:_0x2e6df5}=_0x3c2549,{row:_0xf7f77d,col:_0x4cb379}=_0x35ec1d;if(_0x570424)return{'rowCount':_0x3608e8+_0xf7f77d,'colCount':_0x35b2f9+_0x4cb379};const _0x29c929=_0x2e6df5[_0x26882b(0x30e)]>-0x1?_0x2e6df5[_0x26882b(0x30e)]+0x1:0x0,_0x132121=_0x2e6df5[_0x26882b(0x112)]>-0x1?_0x2e6df5['lastCol']:0x0,_0x2cf5e1=_0xf7f77d+_0x29c929+(_0x29c929?0x1:0x0)+_0x35b78d[_0x26882b(0x286)]+_0x3d41e0[_0x26882b(0x286)],_0x473f90=_0x4cb379+_0x132121,_0x39b11a=_0x4cb379+_0x35b78d['colCount']+_0x4170ed[_0x26882b(0xd7)],_0x5089ab=Math[_0x26882b(0x22b)](_0x473f90,_0x39b11a);return{'rowCount':_0x2cf5e1,'colCount':_0x5089ab};}function _0x44d3aa(_0x3f7653,_0x6d473b,_0x73f7ee,_0x2c90c5){const _0x1af79e=_0x1c787c,{row:_0x43803c,col:_0x1c40c9,unitId:_0x48cc27,subUnitId:_0x2e44bf}=_0x73f7ee,_0x3b1caf=_0x2f9aba(_0x6d473b,{'row':_0x43803c,'col':_0x1c40c9},_0x2c90c5),_0x4d16b7=_0x3f7653['get'](_0x177d6a['IUniverInstanceService']),_0x1518c5=_0x22c23f[_0x1af79e(0x109)](_0x4d16b7,{'unitId':_0x48cc27,'subUnitId':_0x2e44bf}),_0x22e8b4=[],_0x1aa208=[];if(!_0x1518c5)return{'undos':_0x1aa208,'redos':_0x22e8b4};const {worksheet:_0x18a60a}=_0x1518c5,_0x2878f4=_0x18a60a[_0x1af79e(0x132)](),_0x1076aa=_0x18a60a[_0x1af79e(0xf6)]();return _0x2878f4<_0x3b1caf[_0x1af79e(0x286)]&&(_0x22e8b4[_0x1af79e(0x1a2)]({'id':_0x22c23f[_0x1af79e(0x254)]['id'],'params':{'unitId':_0x48cc27,'subUnitId':_0x2e44bf,'range':{'startRow':_0x2878f4,'endRow':_0x3b1caf[_0x1af79e(0x286)]-0x1,'startColumn':0x0,'endColumn':_0x1076aa-0x1}}}),_0x1aa208[_0x1af79e(0x1a2)]({'id':_0x22c23f[_0x1af79e(0x22e)]['id'],'params':{'unitId':_0x48cc27,'subUnitId':_0x2e44bf,'range':{'startRow':_0x2878f4,'endRow':_0x3b1caf[_0x1af79e(0x286)]-0x1,'startColumn':0x0,'endColumn':_0x1076aa-0x1}}})),_0x1076aa<_0x3b1caf[_0x1af79e(0xd7)]&&(_0x22e8b4[_0x1af79e(0x1a2)]({'id':_0x22c23f['InsertColMutation']['id'],'params':{'unitId':_0x48cc27,'subUnitId':_0x2e44bf,'range':{'startRow':0x0,'endRow':_0x2878f4-0x1,'startColumn':_0x1076aa,'endColumn':_0x3b1caf[_0x1af79e(0xd7)]-0x1}}}),_0x1aa208['push']({'id':_0x22c23f[_0x1af79e(0x291)]['id'],'params':{'unitId':_0x48cc27,'subUnitId':_0x2e44bf,'range':{'startRow':0x0,'endRow':_0x2878f4-0x1,'startColumn':_0x1076aa,'endColumn':_0x3b1caf[_0x1af79e(0xd7)]-0x1}}})),{'undos':_0x1aa208,'redos':_0x22e8b4};}function _0x52d63e(_0x2a2482){const _0x2936a8=_0x1c787c;let _0x3bc037=0x0;for(let _0x2241b2=0x0;_0x2241b2<_0x2a2482[_0x2936a8(0x10f)];_0x2241b2++){const _0x3f6cf1=_0x2a2482['charCodeAt'](_0x2241b2);_0x3f6cf1>=0x4e00&&_0x3f6cf1<=0x9fff||_0x3f6cf1>=0x3000&&_0x3f6cf1<=0x303f||_0x3f6cf1>=0xff00&&_0x3f6cf1<=0xffef?_0x3bc037+=0x2:_0x3bc037+=0x1;}return _0x3bc037;}function _0x172613(_0x2c2e81,_0x42b29a,_0x2c25d0,_0x49b0cc){const _0x2c4acb=_0x1c787c;var _0x4b1cfb,_0x27da99,_0x55f403,_0xe415;const {rowCount:_0x43901c,colCount:_0x58293f,headerMap:_0x18529e}=_0x2c2e81,_0x294e02=0x64,_0x171be7=Math[_0x2c4acb(0x2f9)](_0x43901c,_0x294e02),_0x525d9a=Math[_0x2c4acb(0x2f9)](_0x58293f,_0x294e02);let _0x350cc8='',_0xbd8688=0x0;for(let _0x3f6f6f=0x0;_0x3f6f6f<_0x171be7;_0x3f6f6f++)for(let _0x11bd3e=0x0;_0x11bd3e<_0x525d9a;_0x11bd3e++){const _0x15bbc9={...(_0x27da99=(_0x4b1cfb=_0x2c2e81[_0x2c4acb(0x292)])==null?void 0x0:_0x4b1cfb[_0x3f6f6f])==null?void 0x0:_0x27da99[_0x11bd3e]},_0x3c3330=(_0x55f403=_0x18529e[_0x3f6f6f])==null?void 0x0:_0x55f403['tableFieldId'],_0x192aa3=_0x49b0cc[_0x3c3330];let _0x55aa77=_0x2c2e81[_0x2c4acb(0x33d)](_0x3f6f6f,_0x11bd3e);if(_0x15bbc9){const _0x12e8ee=_0x2c25d0?_0x11bd3e===0x0&&((_0xe415=_0x2c2e81[_0x2c4acb(0x106)](_0x11bd3e+0x1))==null?void 0x0:_0xe415[_0x2c4acb(0x16e)]):!0x1;_0x55aa77=_0x58787d(_0x15bbc9,_0x12e8ee,_0x192aa3,_0x42b29a);}if(_0x55aa77!==void 0x0){const _0x2a2df3=_0x52d63e(String(_0x55aa77));_0xbd8688<_0x2a2df3&&(_0x350cc8=String(_0x55aa77),_0xbd8688=_0x2a2df3);}}return _0x350cc8;}function _0x105b5d(_0x10578a){const _0x5a89ab=_0x1c787c,{rowCount:_0x30f7ea,colCount:_0x53ebd0}=_0x10578a;let _0x3ee38f='',_0x43f44b=0x0;for(let _0x4554fd=_0x30f7ea-0x1;_0x4554fd>0x0&&_0x4554fd>_0x30f7ea-0x3;_0x4554fd--)for(let _0x4ae1b6=0x0;_0x4ae1b6<_0x53ebd0;_0x4ae1b6++){const _0x325dfd=_0x10578a[_0x5a89ab(0x33d)](_0x4554fd,_0x4ae1b6);if(_0x325dfd!==void 0x0){const _0x8955c6=String(_0x325dfd)[_0x5a89ab(0x10f)];_0x43f44b<_0x8955c6&&(_0x3ee38f=String(_0x325dfd),_0x43f44b=_0x8955c6);}}return _0x3ee38f;}function _0x224106(_0x39eb30){const _0x5f563f=_0x1c787c,{rowCount:_0x2fac11,colCount:_0x1f0eac}=_0x39eb30;let _0xf73266='',_0x3d1177=0x0;for(let _0x83564b=0x0;_0x83564b<_0x2fac11;_0x83564b++)for(let _0x2b5b2e=0x0;_0x2b5b2e<_0x1f0eac;_0x2b5b2e++){const _0x344ea6=_0x39eb30[_0x5f563f(0x33d)](_0x83564b,_0x2b5b2e);if(_0x344ea6!==void 0x0){const _0x5a6534=String(_0x344ea6)[_0x5f563f(0x10f)];_0x3d1177<_0x5a6534&&(_0xf73266=String(_0x344ea6),_0x3d1177=_0x5a6534);}}return _0xf73266;}function _0x594aa5(_0x207ddf,_0x3a2880){const _0x3a8af2=_0x1c787c,{rowFields:_0x4f87cb,columnFields:_0x546893,valueFields:_0x4b5fbf,filterFields:_0x3ab159,dimension:_0x1c76d1,measure:_0x51e6d5}=_0x3a2880;for(const _0x5d9925 of _0x4f87cb){const _0x525a1c=_0x1c76d1[_0x5d9925];_0x525a1c&&_0x207ddf[_0x3a8af2(0x268)](_0x525a1c[_0x3a8af2(0x1bc)])&&(_0x207ddf[_0x3a8af2(0xd3)](_0x525a1c[_0x3a8af2(0x1bc)],_0x175d11['PivotTableFiledAreaEnum'][_0x3a8af2(0xf0)],void 0x0,_0x5d9925),_0x525a1c[_0x3a8af2(0x36a)]&&_0x207ddf[_0x3a8af2(0x1b1)](_0x525a1c['id'],_0x525a1c[_0x3a8af2(0x36a)]),_0x525a1c[_0x3a8af2(0x27f)]&&_0x207ddf['setSortInfo'](_0x525a1c['id'],_0x525a1c[_0x3a8af2(0x27f)]),_0x525a1c[_0x3a8af2(0x2df)]&&_0x207ddf[_0x3a8af2(0x277)](_0x525a1c['id'],_0x525a1c[_0x3a8af2(0x2df)]));}for(const _0x5cbb09 of _0x546893){const _0x39de84=_0x1c76d1[_0x5cbb09];_0x39de84&&_0x207ddf[_0x3a8af2(0x268)](_0x39de84['dataFieldId'])&&(_0x207ddf['addFieldWithSourceId'](_0x39de84[_0x3a8af2(0x1bc)],_0x175d11['PivotTableFiledAreaEnum'][_0x3a8af2(0x3ca)],void 0x0,_0x5cbb09),_0x39de84[_0x3a8af2(0x27f)]&&_0x207ddf['setSortInfo'](_0x39de84['id'],_0x39de84[_0x3a8af2(0x27f)]),_0x39de84['filterInfo']&&_0x207ddf[_0x3a8af2(0x277)](_0x39de84['id'],_0x39de84[_0x3a8af2(0x2df)]),_0x39de84['displayName']&&_0x207ddf['renameField'](_0x39de84['id'],_0x39de84[_0x3a8af2(0x36a)]));}for(const _0x16dd56 of _0x3ab159){const _0x403beb=_0x1c76d1[_0x16dd56];_0x403beb&&_0x207ddf[_0x3a8af2(0x268)](_0x403beb[_0x3a8af2(0x1bc)])&&(_0x207ddf[_0x3a8af2(0xd3)](_0x403beb[_0x3a8af2(0x1bc)],_0x175d11[_0x3a8af2(0x3d5)][_0x3a8af2(0x1bb)],void 0x0,_0x16dd56),_0x403beb[_0x3a8af2(0x27f)]&&_0x207ddf[_0x3a8af2(0x161)](_0x403beb['id'],_0x403beb[_0x3a8af2(0x27f)]),_0x403beb[_0x3a8af2(0x2df)]&&_0x207ddf[_0x3a8af2(0x277)](_0x403beb['id'],_0x403beb[_0x3a8af2(0x2df)]),_0x403beb[_0x3a8af2(0x36a)]&&_0x207ddf[_0x3a8af2(0x1b1)](_0x403beb['id'],_0x403beb[_0x3a8af2(0x36a)]));}for(const _0x404900 of _0x4b5fbf){const _0x5a6ef4=_0x51e6d5[_0x404900];_0x5a6ef4&&_0x207ddf[_0x3a8af2(0x268)](_0x5a6ef4[_0x3a8af2(0x1bc)])&&(_0x207ddf[_0x3a8af2(0xd3)](_0x5a6ef4['dataFieldId'],_0x175d11[_0x3a8af2(0x3d5)][_0x3a8af2(0x1c5)],void 0x0,_0x404900),_0x5a6ef4['subtotal']!==void 0x0&&_0x207ddf['setSubtotalType'](_0x404900,_0x5a6ef4['subtotal']),_0x5a6ef4[_0x3a8af2(0x1ed)]&&_0x207ddf['setFieldFormat'](_0x404900,_0x5a6ef4[_0x3a8af2(0x1ed)]),_0x5a6ef4[_0x3a8af2(0x36a)]&&_0x207ddf['renameField'](_0x5a6ef4['id'],_0x5a6ef4[_0x3a8af2(0x36a)]));}const _0x3f5a47=_0x3a2880[_0x3a8af2(0x281)];for(const {fieldId:_0x2be06a,filterInfo:_0xd8077a}of _0x3f5a47)_0x207ddf['setValueFilterInfo'](_0x2be06a,_0xd8077a);}function _0x572cc8(_0x5bd2ff,_0x5f55ef){const _0xf74097=_0x1c787c,_0xf52cba=[];_0x5f55ef===_0x175d11['PivotTableFiledAreaEnum']['Row']&&_0x5bd2ff[_0xf74097(0x247)](_0x175d11[_0xf74097(0x3d5)][_0xf74097(0xf0)],_0x29ec3c=>{const _0x47c79d=_0xf74097;_0xf52cba[_0x47c79d(0x1a2)](_0x29ec3c[_0x47c79d(0x24c)]());}),_0x5f55ef===_0x175d11[_0xf74097(0x3d5)][_0xf74097(0x3ca)]&&_0x5bd2ff['iterateFieldByArea'](_0x175d11['PivotTableFiledAreaEnum'][_0xf74097(0x3ca)],_0x4b1995=>{const _0x423bb2=_0xf74097;_0xf52cba[_0x423bb2(0x1a2)](_0x4b1995[_0x423bb2(0x24c)]());}),_0x5f55ef===_0x175d11[_0xf74097(0x3d5)][_0xf74097(0x1bb)]&&_0x5bd2ff['iterateFieldByArea'](_0x175d11[_0xf74097(0x3d5)][_0xf74097(0x1bb)],_0xa6e9ff=>{const _0x306d1c=_0xf74097;_0xf52cba[_0x306d1c(0x1a2)](_0xa6e9ff[_0x306d1c(0x24c)]());}),_0x5f55ef===_0x175d11['PivotTableFiledAreaEnum'][_0xf74097(0x1c5)]&&_0x5bd2ff[_0xf74097(0x247)](_0x175d11['PivotTableFiledAreaEnum'][_0xf74097(0x1c5)],_0x443bf8=>{const _0x41baff=_0xf74097;_0xf52cba[_0x41baff(0x1a2)](_0x443bf8[_0x41baff(0x24c)]());}),_0x5f55ef===void 0x0&&_0x5bd2ff[_0xf74097(0x153)](_0x4b56c4=>{const _0x331017=_0xf74097;_0xf52cba[_0x331017(0x1a2)](_0x4b56c4[_0x331017(0x24c)]());});const _0x5b264b=_0xf52cba['length'];for(let _0xa3d9f7=_0x5b264b-0x1;_0xa3d9f7>=0x0;_0xa3d9f7--)_0x5bd2ff['removeField'](_0xf52cba[_0xa3d9f7]);const _0x34de8f=_0x5bd2ff[_0xf74097(0x1c2)]();for(const _0x549403 in _0x34de8f)_0x5bd2ff[_0xf74097(0x114)](_0x549403);}function _0x340d4d(_0x4ea138,_0x2e8990){const _0x4397fc=_0x1c787c,_0x57c249=new Date(_0x175d11[_0x4397fc(0x319)](_0x2e8990)),_0x1f06d3=new Date(_0x175d11['excelDateToUnixMilliseconds'](_0x4ea138)),_0x2bd691=_0x57c249[_0x4397fc(0xe0)](),_0x3bbd91=_0x1f06d3[_0x4397fc(0xe0)](),_0x2f9486=_0x57c249[_0x4397fc(0xeb)](),_0x10315a=_0x1f06d3[_0x4397fc(0xeb)](),_0x30ac45=_0x57c249['getDate'](),_0x433c47=_0x1f06d3[_0x4397fc(0x3dc)](),_0x255e4d=_0x2bd691===_0x3bbd91,_0x1eb202=_0x255e4d&&_0x2f9486===_0x10315a;return _0x255e4d&&_0x1eb202&&!(_0x1eb202&&_0x30ac45===_0x433c47)?_0x175d11[_0x4397fc(0x271)][_0x4397fc(0xf1)]:_0x255e4d&&!_0x1eb202?_0x175d11['PivotDateGroupFieldDateTypeEnum'][_0x4397fc(0x26f)]:_0x175d11[_0x4397fc(0x271)][_0x4397fc(0x31f)];}function _0x4e9638(_0x4b0e91,_0x5790c8){const _0x2f8030=_0x1c787c,_0x44825d=_0x4b0e91[_0x2f8030(0x3e4)](_0x1ed859[_0x2f8030(0x1af)])[_0x2f8030(0x276)]();let _0x3008b7='';switch(_0x5790c8){case _0x175d11[_0x2f8030(0x271)][_0x2f8030(0xf1)]:_0x3008b7=_0x44825d['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x175d11['PivotDateGroupFieldDateTypeEnum']['YearMonth']:_0x3008b7=_0x44825d[_0x2f8030(0x20d)];break;case _0x175d11[_0x2f8030(0x271)][_0x2f8030(0x31f)]:_0x3008b7=_0x44825d[_0x2f8030(0x3df)];break;case _0x175d11[_0x2f8030(0x271)]['Month']:_0x3008b7=_0x44825d['sheets-pivot.dateGroup.month'];break;case _0x175d11[_0x2f8030(0x271)][_0x2f8030(0x299)]:_0x3008b7=_0x44825d[_0x2f8030(0x3b3)];break;case _0x175d11[_0x2f8030(0x271)]['Date']:_0x3008b7=_0x44825d[_0x2f8030(0x226)];break;case _0x175d11['PivotDateGroupFieldDateTypeEnum'][_0x2f8030(0x21a)]:_0x3008b7=_0x44825d[_0x2f8030(0x3d6)];break;case _0x175d11['PivotDateGroupFieldDateTypeEnum'][_0x2f8030(0x25b)]:_0x3008b7=_0x44825d[_0x2f8030(0x240)];break;case _0x175d11[_0x2f8030(0x271)][_0x2f8030(0x1eb)]:_0x3008b7=_0x44825d[_0x2f8030(0x1ac)];break;case _0x175d11[_0x2f8030(0x271)]['MonthDate']:_0x3008b7=_0x44825d[_0x2f8030(0x38f)];break;case _0x175d11[_0x2f8030(0x271)][_0x2f8030(0x3bd)]:_0x3008b7=_0x44825d[_0x2f8030(0x148)];break;default:_0x3008b7='';break;}return _0x3008b7;}const _0x2e0c4f='sheets-pivot.config',_0x5b9e4b={};var _0xc6eb2b=Object[_0x1c787c(0x275)],_0x12154b=(_0x42744b,_0x2b445d,_0x2fa285,_0x56a89d)=>{for(var _0x44cda4=_0x56a89d>0x1?void 0x0:_0x56a89d?_0xc6eb2b(_0x2b445d,_0x2fa285):_0x2b445d,_0x3a73ed=_0x42744b['length']-0x1,_0x2c8997;_0x3a73ed>=0x0;_0x3a73ed--)(_0x2c8997=_0x42744b[_0x3a73ed])&&(_0x44cda4=_0x2c8997(_0x44cda4)||_0x44cda4);return _0x44cda4;},_0x3b6452=(_0x23ac90,_0x38ecf0)=>(_0x340b8c,_0x41734e)=>_0x38ecf0(_0x340b8c,_0x41734e,_0x23ac90);_0x1ed859[_0x1c787c(0x107)]=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0x5a0f38,_0x44981a,_0x9153d1,_0xb5a62d,_0x44f960){const _0x5a5863=_0x1c787c;super(),_0x117630(this,_0x5a5863(0x126),new Map()),_0x117630(this,'_collectionConfigModel',new Map()),_0x117630(this,'_pivotTableRangeInfo',new Map()),_0x117630(this,_0x5a5863(0xfc),new Map()),_0x117630(this,_0x5a5863(0x3c0),new _0x2d0b5f[(_0x5a5863(0x222))]()),_0x117630(this,'_pivotInitCompleted$',new _0x2d0b5f[(_0x5a5863(0x222))]()),_0x117630(this,_0x5a5863(0x35f),this[_0x5a5863(0x2da)]['asObservable']()),_0x117630(this,_0x5a5863(0x147),new _0x2d0b5f[(_0x5a5863(0x222))]()),_0x117630(this,_0x5a5863(0x2e6),this[_0x5a5863(0x147)][_0x5a5863(0x14a)]()),_0x117630(this,_0x5a5863(0x1fe),{}),_0x117630(this,'configVersion$',this[_0x5a5863(0x3c0)]['asObservable']()),(this[_0x5a5863(0x343)]=_0x5a0f38,this['_commandService']=_0x44981a,this['_univerInstanceService']=_0x9153d1,this[_0x5a5863(0x37c)]=_0xb5a62d,this[_0x5a5863(0x1f1)]=_0x44f960,this[_0x5a5863(0x221)](),this[_0x5a5863(0x273)]());const _0x2ab3b7=this[_0x5a5863(0x1f1)][_0x5a5863(0x19a)](_0x2e0c4f);(_0x2ab3b7==null?void 0x0:_0x2ab3b7['notExecuteFormula'])===!0x0&&this['_initSnapshot']();}[_0x1c787c(0x273)](){const _0x39d145=_0x1c787c;this['disposeWithMe'](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x177d6a[_0x39d145(0x238)][_0x39d145(0x217)])[_0x39d145(0x2ed)](_0x535451=>{const _0x538594=_0x39d145;this[_0x538594(0x103)](_0x535451[_0x538594(0xc2)]());}));}[_0x1c787c(0x195)](){const _0x44c1ff=_0x1c787c;this[_0x44c1ff(0x2da)][_0x44c1ff(0x31b)](!0x0);}[_0x1c787c(0x221)](){const _0xbbf0ff=_0x1c787c,_0x5387a2=_0x16e30a(this[_0xbbf0ff(0x343)],_0x1aa151,'',{});this[_0xbbf0ff(0x1fe)]=_0x5387a2,this['_commandService'][_0xbbf0ff(0x104)](_0x224063['id'],{'textInfo':_0x5387a2},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x38d236=_0x1c787c;return this[_0x38d236(0x1fe)];}['updateViewInfo'](_0x130853,_0x5256ac,_0x22b276,_0x324837,_0x14f4ad){const _0x4ba8ab=_0x1c787c;this[_0x4ba8ab(0x345)](_0x130853,_0x5256ac,_0x22b276,_0x324837),this[_0x4ba8ab(0x23a)](_0x130853,_0x5256ac,_0x22b276,_0x14f4ad);}[_0x1c787c(0x33b)](_0x3e9eec,_0x4d1025,_0xd79c11){const _0x3f858a=_0x1c787c;var _0x3a90f6;const _0x20582b=(_0x3a90f6=this['_model'][_0x3f858a(0x3e4)](_0x3e9eec))==null?void 0x0:_0x3a90f6[_0x3f858a(0x3e4)](_0x4d1025);if(_0x20582b)return _0x20582b['get'](_0xd79c11);}[_0x1c787c(0x3c3)](_0x388068,_0xc9d037){const _0x166198=_0x1c787c,_0x535d2d=this['_model'][_0x166198(0x3e4)](_0x388068);if(_0x535d2d){for(const [_0x204e1f,_0x4248d4]of _0x535d2d[_0x166198(0x1f7)]())for(const [_0x1d9741,_0x3e4658]of _0x4248d4[_0x166198(0x1f7)]())if(_0x1d9741===_0xc9d037)return _0x3e4658['targetCellInfo'];}}[_0x1c787c(0xdd)](_0x486919,_0x3e3a52,_0x1bf1b0){const _0x174c52=_0x1c787c,_0x4e79bc=this[_0x174c52(0x33b)](_0x486919,_0x3e3a52,_0x1bf1b0);return _0x4e79bc==null?void 0x0:_0x4e79bc['targetCellInfo'];}[_0x1c787c(0x255)](_0x43100e,_0x20119d){const _0x691430=_0x1c787c;var _0x3b4162;return(_0x3b4162=this['_model'][_0x691430(0x3e4)](_0x43100e))==null?void 0x0:_0x3b4162[_0x691430(0x3e4)](_0x20119d);}[_0x1c787c(0x257)](_0x87eedb,_0x3d4e89,_0x28dec2,_0x39a6f5){const _0x1cbd9d=_0x1c787c,_0x4ce7e3=this[_0x1cbd9d(0xbf)](_0x87eedb,_0x3d4e89);_0x39a6f5?_0x4ce7e3[_0x1cbd9d(0xfa)](_0x28dec2,_0x39a6f5):_0x4ce7e3[_0x1cbd9d(0x113)](_0x28dec2),this[_0x1cbd9d(0x147)][_0x1cbd9d(0x31b)]({'unitId':_0x87eedb,'subUnitId':_0x3d4e89,'pivotTableId':_0x28dec2,'pivotTableConfig':_0x39a6f5});}[_0x1c787c(0x16b)](_0x4ba20f,_0x57f00d){const _0x538ec7=_0x1c787c;var _0x4c728e;return(_0x4c728e=this[_0x538ec7(0x378)]['get'](_0x4ba20f))==null?void 0x0:_0x4c728e[_0x538ec7(0x145)][_0x57f00d];}[_0x1c787c(0xec)](_0x45ae57,_0x734058){const _0x4faa3c=_0x1c787c;this[_0x4faa3c(0x378)]['set'](_0x45ae57,_0x734058),this[_0x4faa3c(0x3c0)][_0x4faa3c(0x31b)](Math[_0x4faa3c(0xdc)]());}[_0x1c787c(0xbf)](_0x991351,_0x486768){const _0xe74740=_0x1c787c;let _0x129e7c=this[_0xe74740(0x126)][_0xe74740(0x3e4)](_0x991351);_0x129e7c||(_0x129e7c=new Map(),this[_0xe74740(0x126)]['set'](_0x991351,_0x129e7c));let _0x2fc952=_0x129e7c[_0xe74740(0x3e4)](_0x486768);return _0x2fc952||(_0x2fc952=new Map(),_0x129e7c[_0xe74740(0xfa)](_0x486768,_0x2fc952)),_0x2fc952;}[_0x1c787c(0x216)](_0x1ab607,_0x2d411a){const _0x68704a=_0x1c787c;let _0x17148f=this[_0x68704a(0xc8)][_0x68704a(0x3e4)](_0x1ab607);_0x17148f||(_0x17148f=new Map(),this['_pivotTableRangeInfo'][_0x68704a(0xfa)](_0x1ab607,_0x17148f));let _0x4b7a6f=_0x17148f[_0x68704a(0x3e4)](_0x2d411a);return _0x4b7a6f||(_0x4b7a6f=new Map(),_0x17148f['set'](_0x2d411a,_0x4b7a6f)),_0x4b7a6f;}[_0x1c787c(0x1d9)](_0x507588,_0x15a856){const _0x16b393=_0x1c787c;let _0x4f5e5c=this[_0x16b393(0xfc)][_0x16b393(0x3e4)](_0x507588);_0x4f5e5c||(_0x4f5e5c=new Map(),this[_0x16b393(0xfc)][_0x16b393(0xfa)](_0x507588,_0x4f5e5c));let _0xd15447=_0x4f5e5c[_0x16b393(0x3e4)](_0x15a856);return _0xd15447||(_0xd15447=new Map(),_0x4f5e5c[_0x16b393(0xfa)](_0x15a856,_0xd15447)),_0xd15447;}['updatePivotTableRangeInfo'](_0x2e2b84,_0x2186cc,_0x59178d,_0x133767){const _0x4bd100=_0x1c787c;var _0x8f5ae8;const _0x443498=this['_ensurePivotTableRangeInfo'](_0x2e2b84,_0x2186cc),_0x1dd785=(_0x8f5ae8=_0x443498[_0x4bd100(0x3e4)](_0x59178d))==null?void 0x0:_0x8f5ae8['oldRangeInfo'];_0x443498[_0x4bd100(0xfa)](_0x59178d,{'oldRangeInfo':_0x1dd785,'rangeInfo':_0x133767});}['updatePivotTableMatrixInfo'](_0x3c0c45,_0x162611,_0x4aaf9a,_0x293319){const _0x270dca=_0x1c787c;var _0x25fa38;const _0x5d88c1=this['_ensurePivotTableMatrixInfo'](_0x3c0c45,_0x162611),_0x2d7dc6=(_0x25fa38=_0x5d88c1[_0x270dca(0x3e4)](_0x4aaf9a))==null?void 0x0:_0x25fa38[_0x270dca(0x173)];_0x5d88c1[_0x270dca(0xfa)](_0x4aaf9a,{'oldMatrix':_0x2d7dc6,'matrix':_0x293319});}[_0x1c787c(0x16c)](_0x1820b4,_0x44a14d,_0x4b2c71){const _0x504de3=_0x1c787c;var _0x4374bb,_0x4b3d1d;return(_0x4b3d1d=(_0x4374bb=this[_0x504de3(0xc8)][_0x504de3(0x3e4)](_0x1820b4))==null?void 0x0:_0x4374bb[_0x504de3(0x3e4)](_0x44a14d))==null?void 0x0:_0x4b3d1d['get'](_0x4b2c71);}[_0x1c787c(0x272)](_0x157e97,_0x2de064,_0xc4a569){const _0x5983f5=_0x1c787c;var _0x1a3d12,_0x2e6e65;return(_0x2e6e65=(_0x1a3d12=this[_0x5983f5(0xfc)][_0x5983f5(0x3e4)](_0x157e97))==null?void 0x0:_0x1a3d12[_0x5983f5(0x3e4)](_0x2de064))==null?void 0x0:_0x2e6e65[_0x5983f5(0x3e4)](_0xc4a569);}[_0x1c787c(0x103)](_0x2b47cb){const _0x2ab729=_0x1c787c;this[_0x2ab729(0x126)][_0x2ab729(0x113)](_0x2b47cb),this[_0x2ab729(0x378)][_0x2ab729(0x113)](_0x2b47cb);}['_toJSON'](_0x49de10){const _0x8067bb=_0x1c787c,_0x51989c={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x8067bb(0x378)][_0x8067bb(0x3e4)](_0x49de10)&&(_0x51989c[_0x8067bb(0x26c)][_0x49de10]=this['_collectionConfigModel'][_0x8067bb(0x3e4)](_0x49de10)),this[_0x8067bb(0x126)]['get'](_0x49de10)){_0x51989c[_0x8067bb(0x17e)][_0x49de10]={};const _0x16a509=this['_model'][_0x8067bb(0x3e4)](_0x49de10);_0x16a509!=null&&_0x16a509['size']&&[..._0x16a509[_0x8067bb(0x1fc)]()]['forEach'](_0x4404ca=>{const _0x5716ab=_0x8067bb,_0x1fa375=_0x16a509[_0x5716ab(0x3e4)](_0x4404ca);_0x1fa375!=null&&_0x1fa375[_0x5716ab(0x13f)]&&(_0x51989c[_0x5716ab(0x17e)][_0x49de10][_0x4404ca]={},[..._0x1fa375['keys']()][_0x5716ab(0xe3)](_0x3c50e7=>{const _0x3a47b5=_0x5716ab,_0x4d3a92=_0x1fa375[_0x3a47b5(0x3e4)](_0x3c50e7);_0x4d3a92&&(_0x51989c['pivotTableConfigs'][_0x49de10][_0x4404ca][_0x3c50e7]=_0x4d3a92);}));});}return _0x51989c;}[_0x1c787c(0xd4)](){const _0xb6fe2a=_0x1c787c;this[_0xb6fe2a(0x29f)](this[_0xb6fe2a(0x37c)][_0xb6fe2a(0x3d9)]({'toJson':_0xb2d2e9=>JSON[_0xb6fe2a(0x10c)](this[_0xb6fe2a(0xcc)](_0xb2d2e9)),'parseJson':_0x5d4d03=>({}),'businesses':[_0x177d6a[_0xb6fe2a(0x238)][_0xb6fe2a(0x217)]],'pluginName':_0x389941,'onLoad':(_0x302cd2,_0x73d42b)=>{},'onUnLoad':_0x518079=>{const _0x465ee2=_0xb6fe2a;this[_0x465ee2(0x103)](_0x518079);}}));}},_0x1ed859[_0x1c787c(0x107)]=_0x12154b([_0x3b6452(0x0,_0x177d6a['Inject'](_0x177d6a[_0x1c787c(0x284)])),_0x3b6452(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x353)])),_0x3b6452(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a['IUniverInstanceService'])),_0x3b6452(0x3,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a['IResourceManagerService'])),_0x3b6452(0x4,_0x177d6a['Inject'](_0x177d6a['IConfigService']))],_0x1ed859[_0x1c787c(0x107)]);var _0x2883fd=Object[_0x1c787c(0x275)],_0x4241fa=(_0x38b3e0,_0x477880,_0x2772e0,_0xb42549)=>{const _0x3df3a5=_0x1c787c;for(var _0x1ea991=_0xb42549>0x1?void 0x0:_0xb42549?_0x2883fd(_0x477880,_0x2772e0):_0x477880,_0x40f333=_0x38b3e0[_0x3df3a5(0x10f)]-0x1,_0x537c5f;_0x40f333>=0x0;_0x40f333--)(_0x537c5f=_0x38b3e0[_0x40f333])&&(_0x1ea991=_0x537c5f(_0x1ea991)||_0x1ea991);return _0x1ea991;},_0x393ecd=(_0x5a53b7,_0x4b9439)=>(_0x581c65,_0x3c5058)=>_0x4b9439(_0x581c65,_0x3c5058,_0x5a53b7);_0x1ed859[_0x1c787c(0x1d6)]=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0x5141d7,_0x343687,_0x3b197c,_0x10becc,_0x2248a2){const _0x4e3fd9=_0x1c787c;super(),_0x117630(this,_0x4e3fd9(0x2a5),new Map()),_0x117630(this,_0x4e3fd9(0xe4),new Map()),_0x117630(this,'_markDirty$',new _0x2d0b5f[(_0x4e3fd9(0x222))]()),_0x117630(this,_0x4e3fd9(0x3bc),this['_markDirty$']['asObservable']()),_0x117630(this,_0x4e3fd9(0x2b4),new _0x2d0b5f[(_0x4e3fd9(0x222))]()),_0x117630(this,'viewUpdate$',this['_viewUpdate$'][_0x4e3fd9(0x14a)]()),_0x117630(this,_0x4e3fd9(0x1fe)),(this[_0x4e3fd9(0x1b4)]=_0x5141d7,this['_injector']=_0x343687,this[_0x4e3fd9(0xee)]=_0x3b197c,this[_0x4e3fd9(0x214)]=_0x10becc,this[_0x4e3fd9(0x2d7)]=_0x2248a2,this['_initLocale'](),this[_0x4e3fd9(0x273)]());}[_0x1c787c(0x273)](){const _0xabf26d=_0x1c787c;this[_0xabf26d(0x29f)](this['_univerInstanceService'][_0xabf26d(0x1c0)](_0x177d6a[_0xabf26d(0x238)][_0xabf26d(0x217)])['subscribe'](_0x16f467=>{const _0x1faef8=_0xabf26d;this[_0x1faef8(0x103)](_0x16f467[_0x1faef8(0xc2)]());}));}[_0x1c787c(0x221)](){const _0x1e1683=_0x1c787c;this[_0x1e1683(0x1fe)]=_0x16e30a(this[_0x1e1683(0x343)],_0x1aa151,'',{});}['updateRenderCache'](_0xd04db7){const _0x3e0e8b=_0x1c787c,{view:_0x18699b,unitId:_0x4b476b,subUnitId:_0x471ab2,pivotTableId:_0x52cb65,type:_0x3f7852}=_0xd04db7,_0x536fa9=this[_0x3e0e8b(0xee)][_0x3e0e8b(0x33b)](_0x4b476b,_0x471ab2,_0x52cb65);if(!_0x18699b||!_0x536fa9||_0x3f7852===_0x5a4701[_0x3e0e8b(0x1a7)])return;const {pageView:_0x1d377c,cornerView:_0x40ebd7,rowView:_0x566a7c,colView:_0x4f2b2a,dataView:_0x13a460}=_0x18699b,_0x2e7406=_0x536fa9[_0x3e0e8b(0x30d)],_0xd7b232=_0x536fa9[_0x3e0e8b(0x31a)],_0xc2398c=this[_0x3e0e8b(0x1cd)](_0x4b476b,_0x471ab2),_0x321274=this['_ensurePivotItemRenderInfoCache'](_0x4b476b,_0x471ab2,_0x52cb65);if(_0xd7b232)return this[_0x3e0e8b(0x14c)](_0xd04db7,_0xc2398c,_0x2e7406,_0x321274);{const _0x1344d6=_0x397824(_0x2e7406,_0x1d377c,!0x0),_0x7b62a5=_0x1d377c[_0x3e0e8b(0x30e)]>=0x0?_0x1d377c[_0x3e0e8b(0x30e)]+0x1:0x0,_0x85b296=_0x40ebd7['getRowCount'](),_0x39f31c=_0x40ebd7[_0x3e0e8b(0x233)](),_0x3e19bc=_0x1344d6[_0x3e0e8b(0x10f)]>0x0?_0x2afc20:0x0,_0x11dc2a=_0x397824({'row':_0x2e7406['row']+_0x7b62a5+_0x3e19bc,'col':_0x2e7406[_0x3e0e8b(0x368)]},_0x40ebd7,!0x1,!0x1),_0xc8bc76=_0x397824({'row':_0x2e7406[_0x3e0e8b(0x2e7)]+_0x7b62a5+_0x3e19bc+_0x85b296,'col':_0x2e7406[_0x3e0e8b(0x368)]},_0x566a7c,!0x1,!0x0),_0x18a751=_0x397824({'row':_0x2e7406[_0x3e0e8b(0x2e7)]+_0x7b62a5+_0x3e19bc,'col':_0x2e7406[_0x3e0e8b(0x368)]+_0x39f31c},_0x4f2b2a,!0x1,!0x0),_0x5020da=_0x397824({'row':_0x2e7406['row']+_0x7b62a5+_0x3e19bc+_0x85b296,'col':_0x2e7406[_0x3e0e8b(0x368)]+_0x39f31c},_0x13a460,!0x1,!0x1);_0x321274[_0x3e0e8b(0x150)]={'rowRanges':_0xc8bc76,'colRanges':_0x18a751,'cornerRanges':_0x11dc2a,'dataRanges':_0x5020da,'pageRanges':_0x1344d6};const _0x1c24bc=_0x2107bc(this[_0x3e0e8b(0x343)],_0x18699b,_0x536fa9,this[_0x3e0e8b(0x1fe)]),{valueMatrix:_0x20419b,rowInfo:_0x558ad9,colInfo:_0x29873c,cornerInfo:_0x1f4615,rowHeaderMap:_0x18430c,colHeaderMap:_0x577c72}=_0x1c24bc;return _0x321274[_0x3e0e8b(0x136)]={'rowInfo':_0x558ad9,'colInfo':_0x29873c,'cornerInfo':_0x1f4615},_0x321274[_0x3e0e8b(0x158)]={'rowHeaderMap':_0x18430c,'colHeaderMap':_0x577c72},_0x20419b[_0x3e0e8b(0xe3)]((_0x30e6b7,_0x477e40)=>{const _0x5e3e9a=_0x3e0e8b;Object[_0x5e3e9a(0x1fc)](_0x477e40)[_0x5e3e9a(0xe3)](_0x532bc1=>{const _0x42000d=_0x5e3e9a,_0x39ac3f=+_0x532bc1,_0xcf3608=_0x20419b[_0x42000d(0x33d)](_0x30e6b7,_0x39ac3f);_0xc2398c[_0x42000d(0x14f)](_0x30e6b7,_0x39ac3f,_0xcf3608);});}),this[_0x3e0e8b(0x2b4)][_0x3e0e8b(0x31b)]({'unitId':_0x4b476b,'subUnitId':_0x471ab2,'valueMatrix':_0xc2398c,'rangesCache':_0x321274['rangesInfo'],'pivotTableId':_0x52cb65,'type':_0xd04db7[_0x3e0e8b(0x18a)]}),this[_0x3e0e8b(0xee)][_0x3e0e8b(0x1e5)](_0x4b476b,_0x471ab2,_0x52cb65,_0xc2398c,_0x321274[_0x3e0e8b(0x150)]),this[_0x3e0e8b(0x2d7)][_0x3e0e8b(0x181)](_0x4b476b,_0x471ab2,_0x4ac4b1,this['_createExclusiveRange'](_0x321274[_0x3e0e8b(0x150)],_0x52cb65)),{'rangeCache':_0x321274['rangesInfo'],'matrix':_0xc2398c};}}[_0x1c787c(0x14c)](_0x1f7f9c,_0x12a19f,_0x33af81,_0x4f44ef){const _0x12a3da=_0x1c787c,_0x28f593=this[_0x12a3da(0x1b4)]['t'],{unitId:_0x22e483,subUnitId:_0x4417ea,pivotTableId:_0x1bdd4e}=_0x1f7f9c,_0x279589={'filter':_0x28f593('sheets-pivot.emptyPivot.filter'),'row':_0x28f593(_0x12a3da(0x174)),'column':_0x28f593('sheets-pivot.emptyPivot.column'),'values':_0x28f593(_0x12a3da(0x19f))},{matrixCache:_0x57fc3f,rangesCache:_0x1d3fe9}=_0x5ea28a(_0x279589,_0x33af81);return _0x57fc3f[_0x12a3da(0xe2)]((_0x5e5c64,_0x16a2f5,_0x5deff7)=>{const _0x1669fe=_0x12a3da;_0x12a19f[_0x1669fe(0x14f)](_0x5e5c64,_0x16a2f5,_0x5deff7);}),_0x4f44ef[_0x12a3da(0x150)]=_0x1d3fe9,this[_0x12a3da(0x2b4)][_0x12a3da(0x31b)]({'unitId':_0x22e483,'subUnitId':_0x4417ea,'valueMatrix':_0x12a19f,'rangesCache':_0x1d3fe9,'pivotTableId':_0x1bdd4e,'type':_0x1f7f9c[_0x12a3da(0x18a)],'isEmpty':!0x0}),this[_0x12a3da(0xee)][_0x12a3da(0x1e5)](_0x22e483,_0x4417ea,_0x1bdd4e,_0x12a19f,_0x1d3fe9),this[_0x12a3da(0x2d7)][_0x12a3da(0x181)](_0x22e483,_0x4417ea,_0x4ac4b1,this[_0x12a3da(0x10e)](_0x1d3fe9,_0x1bdd4e)),{'rangeCache':_0x4f44ef['rangesInfo'],'matrix':_0x12a19f};}[_0x1c787c(0x10e)](_0xd4721b,_0x2bebd1){const _0x359f54=[],_0x4026fc=_0x3e69b9(_0xd4721b);for(const _0x30dd71 of _0x4026fc)_0x359f54['push']({'groupId':_0x2bebd1,'range':_0x30dd71});return _0x359f54;}[_0x1c787c(0x3d7)](_0x1f460b){const _0x48800a=_0x1c787c;var _0x56828f,_0x258979,_0x293ea9,_0x15151c;const {pivotTableId:_0x19520b,unitId:_0x1bc02e,subUnitId:_0x1b6f99}=_0x1f460b;if(!_0x19520b||!_0x1bc02e||!_0x1b6f99)return;const _0x351ae2=this['_ensurePivotItemRenderValueMatrixCache'](_0x1bc02e,_0x1b6f99),_0x530d5c=(_0x258979=(_0x56828f=this[_0x48800a(0x2a5)][_0x48800a(0x3e4)](_0x1bc02e))==null?void 0x0:_0x56828f[_0x48800a(0x3e4)](_0x1b6f99))==null?void 0x0:_0x258979[_0x48800a(0x3e4)](_0x19520b);if(_0x530d5c!=null&&_0x530d5c[_0x48800a(0x150)]){for(const _0x208e04 of Object[_0x48800a(0x1fc)](_0x530d5c['rangesInfo']))_0x530d5c['rangesInfo'][_0x208e04][_0x48800a(0xe3)](_0x152a3a=>{const _0x66e37d=_0x48800a;for(let _0x16557b=_0x152a3a['startRow'];_0x16557b<=_0x152a3a['endRow'];_0x16557b++)for(let _0x536824=_0x152a3a[_0x66e37d(0x235)];_0x536824<=_0x152a3a[_0x66e37d(0x2d3)];_0x536824++)_0x351ae2['realDeleteValue'](_0x16557b,_0x536824);});}_0x530d5c&&((_0x15151c=(_0x293ea9=this['_pivotRenderInfoCache']['get'](_0x1bc02e))==null?void 0x0:_0x293ea9[_0x48800a(0x3e4)](_0x1b6f99))==null||_0x15151c[_0x48800a(0x113)](_0x19520b)),this[_0x48800a(0x2b4)][_0x48800a(0x31b)]({'unitId':_0x1bc02e,'subUnitId':_0x1b6f99,'valueMatrix':_0x351ae2,'pivotTableId':_0x19520b,'rangesCache':void 0x0,'type':_0x1f460b['type']}),this[_0x48800a(0x2d7)][_0x48800a(0x1aa)](_0x1bc02e,_0x1b6f99,_0x4ac4b1,_0x19520b);}[_0x1c787c(0x2c2)](_0x456b37,_0x141018,_0xd5da31){const _0x2de2ab=_0x1c787c;var _0x47e86f,_0x11333a,_0x4cfc4d,_0x5d7175,_0x1fb2bc,_0x107687;return this[_0x2de2ab(0x2a5)][_0x2de2ab(0xbc)](_0x456b37)||this[_0x2de2ab(0x2a5)][_0x2de2ab(0xfa)](_0x456b37,new Map()),(_0x47e86f=this['_pivotRenderInfoCache']['get'](_0x456b37))!=null&&_0x47e86f[_0x2de2ab(0xbc)](_0x141018)||(_0x11333a=this[_0x2de2ab(0x2a5)][_0x2de2ab(0x3e4)](_0x456b37))==null||_0x11333a['set'](_0x141018,new Map()),(_0x5d7175=(_0x4cfc4d=this[_0x2de2ab(0x2a5)][_0x2de2ab(0x3e4)](_0x456b37))==null?void 0x0:_0x4cfc4d[_0x2de2ab(0x3e4)](_0x141018))!=null&&_0x5d7175[_0x2de2ab(0xbc)](_0xd5da31)||(_0x107687=(_0x1fb2bc=this[_0x2de2ab(0x2a5)][_0x2de2ab(0x3e4)](_0x456b37))==null?void 0x0:_0x1fb2bc[_0x2de2ab(0x3e4)](_0x141018))==null||_0x107687[_0x2de2ab(0xfa)](_0xd5da31,{}),this[_0x2de2ab(0x2a5)][_0x2de2ab(0x3e4)](_0x456b37)[_0x2de2ab(0x3e4)](_0x141018)['get'](_0xd5da31);}[_0x1c787c(0x1cd)](_0x2f1e1f,_0x560b47){const _0x785967=_0x1c787c;var _0x38fb7c,_0x4ca6cd;return this[_0x785967(0xe4)][_0x785967(0xbc)](_0x2f1e1f)||this[_0x785967(0xe4)][_0x785967(0xfa)](_0x2f1e1f,new Map()),(_0x38fb7c=this[_0x785967(0xe4)]['get'](_0x2f1e1f))!=null&&_0x38fb7c[_0x785967(0xbc)](_0x560b47)||(_0x4ca6cd=this[_0x785967(0xe4)][_0x785967(0x3e4)](_0x2f1e1f))==null||_0x4ca6cd[_0x785967(0xfa)](_0x560b47,new _0x177d6a[(_0x785967(0xf7))]()),this[_0x785967(0xe4)][_0x785967(0x3e4)](_0x2f1e1f)[_0x785967(0x3e4)](_0x560b47);}[_0x1c787c(0xc0)](_0x479659,_0x94fb2b,_0x162ec2,_0x2465d9){const _0x191f1c=_0x1c787c;var _0x14ce7e,_0x27fc13;const _0x4579f3=(_0x27fc13=(_0x14ce7e=this[_0x191f1c(0xe4)][_0x191f1c(0x3e4)](_0x479659))==null?void 0x0:_0x14ce7e['get'](_0x94fb2b))==null?void 0x0:_0x27fc13[_0x191f1c(0x33d)](_0x162ec2,_0x2465d9);if(_0x4579f3!=null)return _0x4579f3;}['getPivotTableIdByCell'](_0x44a499,_0x32e724,_0x2d0c1e,_0x13e115){const _0x5ea561=_0x1c787c;var _0x45a7ec;const _0x1d7586=_0x177d6a[_0x5ea561(0x1fd)](_0x2d0c1e,_0x13e115),_0x3bca56=(_0x45a7ec=this[_0x5ea561(0x2a5)][_0x5ea561(0x3e4)](_0x44a499))==null?void 0x0:_0x45a7ec['get'](_0x32e724);return _0x3bca56?Array[_0x5ea561(0x135)](_0x3bca56[_0x5ea561(0x1fc)]())[_0x5ea561(0x24e)](_0xfda12=>{const _0x1fed62=_0x5ea561,_0x4173bf=_0x3bca56[_0x1fed62(0x3e4)](_0xfda12),_0x4fa87a=_0x4173bf==null?void 0x0:_0x4173bf[_0x1fed62(0x150)];return _0x4fa87a?Object[_0x1fed62(0x1fc)](_0x4fa87a)[_0x1fed62(0x32e)](_0x5f92d1=>_0x4fa87a[_0x5f92d1]['some'](_0x373f69=>_0x177d6a[_0x1fed62(0x2e2)][_0x1fed62(0x295)](_0x373f69,_0x1d7586))):!0x1;}):void 0x0;}[_0x1c787c(0x33c)](_0x1534a1,_0x68fb3,_0x9b95bc){const _0x3ca4c6=_0x1c787c;var _0x4f6550;const _0x27ccba=(_0x4f6550=this[_0x3ca4c6(0x2a5)]['get'](_0x1534a1))==null?void 0x0:_0x4f6550[_0x3ca4c6(0x3e4)](_0x68fb3),_0x2e6808=[];return _0x27ccba&&Array[_0x3ca4c6(0x135)](_0x27ccba[_0x3ca4c6(0x1fc)]())[_0x3ca4c6(0xe3)](_0xd76ff2=>{const _0x478ecd=_0x3ca4c6,_0x43aff6=_0x27ccba[_0x478ecd(0x3e4)](_0xd76ff2),_0x451e98=_0x43aff6==null?void 0x0:_0x43aff6[_0x478ecd(0x150)];if(_0x451e98)for(const _0x5dc923 of Object[_0x478ecd(0x31d)](_0x451e98)){let _0x3a807f=!0x1;for(const _0x37d464 of _0x5dc923)if(_0x177d6a[_0x478ecd(0x2e2)]['intersects'](_0x37d464,_0x9b95bc)){_0x2e6808[_0x478ecd(0x1a2)](_0xd76ff2),_0x3a807f=!0x0;break;}if(_0x3a807f)break;}}),_0x2e6808;}[_0x1c787c(0x139)](_0x53cc29,_0x6122f4){const _0x2d0bfa=_0x1c787c;var _0xc290ce,_0x5159e5;return(_0x5159e5=(_0xc290ce=this['_pivotRenderValueMatrixCache'][_0x2d0bfa(0x3e4)](_0x53cc29))==null?void 0x0:_0xc290ce['get'](_0x6122f4))!=null?_0x5159e5:new _0x177d6a['ObjectMatrix']();}[_0x1c787c(0x1b6)](_0x1efaf8,_0x33cfa5){const _0x2e27ea=_0x1c787c;var _0x3db566;return(_0x3db566=this[_0x2e27ea(0x2a5)]['get'](_0x1efaf8))==null?void 0x0:_0x3db566[_0x2e27ea(0x3e4)](_0x33cfa5);}[_0x1c787c(0x2d8)](_0x136ce6,_0x1dce8c,_0x3a7166){const _0x1af40d=_0x1c787c;var _0x375451,_0x1cf406;return(_0x1cf406=(_0x375451=this['_pivotRenderInfoCache'][_0x1af40d(0x3e4)](_0x136ce6))==null?void 0x0:_0x375451[_0x1af40d(0x3e4)](_0x1dce8c))==null?void 0x0:_0x1cf406[_0x1af40d(0x3e4)](_0x3a7166);}[_0x1c787c(0x103)](_0x3ac10c){const _0x5a232f=_0x1c787c;this[_0x5a232f(0x2a5)][_0x5a232f(0x113)](_0x3ac10c),this[_0x5a232f(0xe4)][_0x5a232f(0x113)](_0x3ac10c);}[_0x1c787c(0x137)](_0x344bc8,_0x4827de){const _0x1d221e=_0x1c787c;this['_markDirty$'][_0x1d221e(0x31b)]({'unitId':_0x344bc8,'subUnitId':_0x4827de});}},_0x1ed859['SheetsPivotTableAdaptorModel']=_0x4241fa([_0x393ecd(0x0,_0x177d6a['Inject'](_0x177d6a[_0x1c787c(0x17f)])),_0x393ecd(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x284)])),_0x393ecd(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x1ed859[_0x1c787c(0x107)])),_0x393ecd(0x3,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a['IUniverInstanceService'])),_0x393ecd(0x4,_0x177d6a[_0x1c787c(0x2d9)](_0x22c23f['IExclusiveRangeService']))],_0x1ed859[_0x1c787c(0x1d6)]);var _0x2cada3=Object[_0x1c787c(0x275)],_0x14c0e7=(_0xec93db,_0x3bc920,_0x3f788c,_0x2e8099)=>{const _0x3dde24=_0x1c787c;for(var _0x319149=_0x2e8099>0x1?void 0x0:_0x2e8099?_0x2cada3(_0x3bc920,_0x3f788c):_0x3bc920,_0x4b2de4=_0xec93db[_0x3dde24(0x10f)]-0x1,_0xe3ef91;_0x4b2de4>=0x0;_0x4b2de4--)(_0xe3ef91=_0xec93db[_0x4b2de4])&&(_0x319149=_0xe3ef91(_0x319149)||_0x319149);return _0x319149;},_0x44b87e=(_0x47aaec,_0x5384b0)=>(_0x14a4d3,_0x4cce76)=>_0x5384b0(_0x14a4d3,_0x4cce76,_0x47aaec);_0x1ed859[_0x1c787c(0x354)]=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0x5d47ea,_0x58c3ff){const _0x2c16d8=_0x1c787c;super(),_0x117630(this,_0x2c16d8(0x1e0),new _0x177d6a[(_0x2c16d8(0x340))]({'PIVOT_PERFORM_CHECK':_0x3ba713})),_0x117630(this,_0x2c16d8(0x2e3),new _0x177d6a[(_0x2c16d8(0x328))]({'PIVOT_MUTATION_GENERATE':_0x148d7f})),(this[_0x2c16d8(0x1f0)]=_0x5d47ea,this[_0x2c16d8(0x3d1)]=_0x58c3ff,this[_0x2c16d8(0x27a)]());}[_0x1c787c(0x27a)](){const _0x10ceb6=_0x1c787c;this[_0x10ceb6(0xfb)]();}[_0x1c787c(0x329)](_0x17c34d){const _0x2e39db=_0x1c787c;return this[_0x2e39db(0x1e0)][_0x2e39db(0x39d)](_0x3ba713)(!0x1,_0x17c34d);}[_0x1c787c(0xfb)](){const _0x349e35=_0x1c787c;this[_0x349e35(0x29f)](this[_0x349e35(0x1f0)][_0x349e35(0x36d)](_0x22c23f[_0x349e35(0x384)]['CELL_CONTENT'],{'priority':0xc8,'effect':_0x177d6a['InterceptorEffectEnum'][_0x349e35(0x1c5)]|_0x177d6a[_0x349e35(0x334)][_0x349e35(0x2ac)],'handler':(_0x320985,_0x15301e,_0x1a94f8)=>{const _0x79904e=_0x349e35,{row:_0x58c782,col:_0x4f1ec5,unitId:_0x1dd907,subUnitId:_0x5b19a8,workbook:_0x54fe32}=_0x15301e,_0x28462e=this[_0x79904e(0x3d1)][_0x79904e(0xc0)](_0x1dd907,_0x5b19a8,_0x58c782,_0x4f1ec5);if(!_0x28462e)return _0x1a94f8(_0x320985);const _0x3820d2={..._0x320985};(_0x28462e['v']||_0x28462e['v']===0x0)&&(_0x3820d2['v']=_0x28462e['v']),_0x28462e['t']&&(_0x3820d2['t']=_0x28462e['t']);const _0x32e61b=(typeof(_0x320985==null?void 0x0:_0x320985['s'])==_0x79904e(0x355)?_0x54fe32['getStyles']()[_0x79904e(0x3e4)](_0x320985==null?void 0x0:_0x320985['s']):_0x320985==null?void 0x0:_0x320985['s'])||{},_0x39e865=_0x54fe32['getStyles']()['get'](_0x28462e['s']),_0x5f1c45={..._0x39e865,..._0x32e61b};_0x39e865!=null&&_0x39e865['n']&&(_0x5f1c45['n']=_0x39e865['n']);const _0x3da95c=_0x54fe32['getStyles']()[_0x79904e(0x14f)](_0x5f1c45);return _0x3820d2['s']=_0x3da95c,(_0x28462e[_0x79904e(0x3a8)]===_0x175d11[_0x79904e(0x274)][_0x79904e(0x190)]||_0x28462e['pbt']===_0x175d11['PivotCellStyleTypeEnum']['Expand'])&&(_0x3820d2[_0x79904e(0x3d4)]={},_0x3820d2[_0x79904e(0x3d4)][_0x79904e(0x193)]=_0x150198),_0x1a94f8(_0x3820d2);}}));}},_0x1ed859[_0x1c787c(0x354)]=_0x14c0e7([_0x44b87e(0x0,_0x177d6a['Inject'](_0x22c23f['SheetInterceptorService'])),_0x44b87e(0x1,_0x177d6a['Inject'](_0x1ed859[_0x1c787c(0x1d6)]))],_0x1ed859['SheetsPivotTableService']);const _0x14bf9e={'id':_0x1c787c(0x1b9),'type':_0x177d6a[_0x1c787c(0x196)]['MUTATION'],'handler':(_0x55247f,_0x1888c9)=>{const _0x319f64=_0x1c787c;if(!_0x1888c9)return!0x1;if(!!_0x55247f[_0x319f64(0x3e4)](_0x177d6a[_0x319f64(0xcb)])[_0x319f64(0x19a)](_0x318491))return!0x0;const {pivotTableId:_0x406415,fieldJSON:_0x4f9e71,unitId:_0x43b63e,subUnitId:_0x346858}=_0x1888c9;let _0x374eab;const {dataFieldType:_0x8b6e63,id:_0x18af88,name:_0x4ee5ef,hexCode:_0x5b218b,originalFieldId:_0x4c56b6}=_0x4f9e71;if(_0x8b6e63===_0x175d11['PivotDataFieldTypeEnum'][_0x319f64(0x2fe)]&&(_0x374eab=new _0x175d11['DateGroupField'](_0x18af88,_0x4ee5ef,_0x5b218b,_0x4c56b6)),!_0x374eab)return!0x1;const _0x1add80=_0x55247f[_0x319f64(0x3e4)](_0x1ed859[_0x319f64(0x1af)]),_0x2de25a=_0x1add80[_0x319f64(0x35d)](_0x43b63e),_0x10883c=_0x2de25a['getCollection'](_0x406415);_0x2de25a[_0x319f64(0x1e1)](_0x374eab),_0x10883c['addField'](_0x374eab[_0x319f64(0x24c)](),_0x374eab[_0x319f64(0x2b5)]());const _0x821873=_0x10883c[_0x319f64(0x3db)](_0x374eab[_0x319f64(0x200)]());_0x821873&&_0x374eab[_0x319f64(0x28f)](_0x821873);const _0x313d11=_0x1add80['getPivotTableConfig'](_0x43b63e,_0x346858,_0x406415);return _0x1add80[_0x319f64(0x285)]({'unitId':_0x43b63e,'subUnitId':_0x346858,'token':_0x406415,'type':_0x5a4701['Set'],'pivotConfig':_0x313d11}),!0x0;}},_0x187b5c={'id':_0x1c787c(0xc3),'type':_0x177d6a['CommandType'][_0x1c787c(0x38a)],'handler':(_0x2b863d,_0x247b88)=>{const _0x3da749=_0x1c787c;if(!_0x247b88)return!0x1;if(!!_0x2b863d['get'](_0x177d6a['IConfigService'])['getConfig'](_0x318491))return!0x0;const {pivotTableId:_0x224acb,dataFieldId:_0x4ae985,unitId:_0x15648c,subUnitId:_0x44e8be}=_0x247b88,_0xc810f3=_0x2b863d[_0x3da749(0x3e4)](_0x1ed859[_0x3da749(0x1af)]),_0x5209df=_0xc810f3['getDataFieldManager'](_0x15648c);_0x5209df['getCollection'](_0x224acb)[_0x3da749(0xdf)](_0x4ae985);let _0x5606cc=!0x0;for(const _0x5100f8 in _0x5209df[_0x3da749(0x145)])if(_0x5209df[_0x3da749(0x145)][_0x5100f8][_0x3da749(0x189)]()[_0x3da749(0x29d)](_0x4ae985)){_0x5606cc=!0x1;break;}_0x5606cc&&_0x5209df[_0x3da749(0x1db)](_0x4ae985);const _0x5ecb40=_0xc810f3[_0x3da749(0x33b)](_0x15648c,_0x44e8be,_0x224acb);return _0xc810f3[_0x3da749(0x285)]({'unitId':_0x15648c,'subUnitId':_0x44e8be,'token':_0x224acb,'type':_0x5a4701['Set'],'pivotConfig':_0x5ecb40}),!0x0;}};function _0x468420(_0x34b77c,_0x52defa){const _0x521dd6=_0x1c787c;switch(_0x52defa){case _0x175d11[_0x521dd6(0x3d5)]['Value']:return _0x34b77c[_0x521dd6(0x18f)];case _0x175d11[_0x521dd6(0x3d5)][_0x521dd6(0x1bb)]:return _0x34b77c['filterFields'];case _0x175d11[_0x521dd6(0x3d5)][_0x521dd6(0xf0)]:return _0x34b77c[_0x521dd6(0x287)];case _0x175d11[_0x521dd6(0x3d5)][_0x521dd6(0x3ca)]:return _0x34b77c[_0x521dd6(0x1bd)];default:return[];}}function _0x4dd6ef(_0x2eae19,_0x52fece){const _0x2a5952=_0x1c787c;return _0x2eae19[_0x2a5952(0x31e)][_0x52fece]||_0x2eae19[_0x2a5952(0x3d2)][_0x52fece];}function _0x52f878(_0x450985,_0x6c64e3){const _0x151476=_0x1c787c,{area:_0xd29d81,fieldJson:_0x4e3c52,index:_0x373fa4}=_0x6c64e3;_0xd29d81===_0x175d11['PivotTableFiledAreaEnum']['Value']?_0x450985[_0x151476(0x31e)][_0x4e3c52['id']]=_0x4e3c52:_0x450985[_0x151476(0x3d2)][_0x4e3c52['id']]=_0x4e3c52,_0x468420(_0x450985,_0xd29d81)['splice'](_0x373fa4,0x0,_0x4e3c52['id']);}function _0x539702(_0x5e1008,_0x3602a6){const _0xe8150d=_0x1c787c,{area:_0x1bf93b,fieldId:_0x3f38e9,index:_0x74d18}=_0x3602a6;_0x1bf93b===_0x175d11[_0xe8150d(0x3d5)][_0xe8150d(0x1c5)]?delete _0x5e1008[_0xe8150d(0x31e)][_0x3f38e9]:delete _0x5e1008[_0xe8150d(0x3d2)][_0x3f38e9],_0x468420(_0x5e1008,_0x1bf93b)[_0xe8150d(0x12d)](_0x74d18,0x1);}function _0x403d26(_0x20be71,_0x989158){const _0x509a2e=_0x1c787c,{fieldId:_0x3f2e2c,name:_0x126f10}=_0x989158,_0x223df1=_0x4dd6ef(_0x20be71,_0x3f2e2c);_0x223df1&&(_0x223df1[_0x509a2e(0x36a)]=_0x126f10);}function _0x178858(_0x526d43,_0xd36f64){const _0x47fb09=_0x1c787c,{fieldId:_0x38a554,collapse:_0x393974,item:_0x52ff1d}=_0xd36f64;_0x52ff1d!==void 0x0?(_0x526d43[_0x47fb09(0x39e)][_0x38a554]=_0x526d43[_0x47fb09(0x39e)][_0x38a554]||{},_0x526d43[_0x47fb09(0x39e)][_0x38a554][_0x52ff1d]=_0x393974):_0x526d43['collapseInfo'][_0x38a554]=_0x393974;}function _0x2f7b6c(_0x21ccd7,_0x33676f){const _0x5527ab=_0x1c787c,{fieldId:_0x470a19,format:_0x4584c8}=_0x33676f,_0x21b330=_0x4dd6ef(_0x21ccd7,_0x470a19);_0x21b330&&(_0x21b330[_0x5527ab(0x1ed)]=_0x4584c8);}function _0x11d9b0(_0x487334,_0x421936){const _0x4b5cfc=_0x1c787c,{fieldId:_0x5af333,filterInfo:_0x1c8b02}=_0x421936,_0x2d87f6=_0x4dd6ef(_0x487334,_0x5af333);_0x2d87f6&&(_0x2d87f6[_0x4b5cfc(0x2df)]=_0x1c8b02);}function _0x34a2d4(_0x36ff6f,_0x108b46){const _0x36186e=_0x1c787c,{fieldId:_0x14a949,filterInfo:_0xbbad48}=_0x108b46,_0xb1ecb8=_0x36ff6f[_0x36186e(0x281)][_0x36186e(0x22d)](_0x5913da=>_0x5913da[_0x36186e(0x3b0)]!==_0x14a949);_0xbbad48&&_0xb1ecb8['push']({'fieldId':_0x14a949,'filterInfo':_0xbbad48}),_0x36ff6f[_0x36186e(0x281)]=_0xb1ecb8;}function _0x432a30(_0x41114b,_0x5c9957){const _0x300125=_0x1c787c,{fieldId:_0x26c2b9,subtotalType:_0x12b350}=_0x5c9957,_0x28cbea=_0x4dd6ef(_0x41114b,_0x26c2b9);_0x28cbea&&(_0x28cbea[_0x300125(0x3ad)]=_0x12b350);}function _0x2771cb(_0x3dcd81,_0x3c41ed){const _0x19ff43=_0x1c787c,{fieldId:_0x1d98c8,oldArea:_0x3e8f91,area:_0x12336f,oldIndex:_0x33e468,index:_0x428e23}=_0x3c41ed,_0x3f6fc7=_0x3e8f91!==_0x175d11[_0x19ff43(0x3d5)][_0x19ff43(0x1c5)]&&_0x12336f===_0x175d11[_0x19ff43(0x3d5)][_0x19ff43(0x1c5)],_0x23ea92=_0x3e8f91===_0x175d11[_0x19ff43(0x3d5)]['Value']&&_0x12336f!==_0x175d11[_0x19ff43(0x3d5)]['Value'];if(_0x3f6fc7||_0x23ea92){const _0x37531f=_0x4dd6ef(_0x3dcd81,_0x1d98c8);_0x37531f&&(_0x3f6fc7?(delete _0x3dcd81[_0x19ff43(0x3d2)][_0x1d98c8],_0x3dcd81[_0x19ff43(0x31e)][_0x1d98c8]=_0x37531f):(delete _0x3dcd81[_0x19ff43(0x31e)][_0x1d98c8],_0x3dcd81[_0x19ff43(0x3d2)][_0x1d98c8]=_0x37531f));}const _0x561dbf=_0x468420(_0x3dcd81,_0x3e8f91),_0x5903cc=_0x468420(_0x3dcd81,_0x12336f);_0x561dbf['splice'](_0x33e468,0x1),_0x5903cc[_0x19ff43(0x12d)](_0x428e23,0x0,_0x1d98c8);}function _0x4af9c3(_0xf6e4de,_0x34c809){const _0x72cb41=_0x1c787c,{valuePosition:_0x584d2f,index:_0x316f9e}=_0x34c809;_0xf6e4de[_0x72cb41(0x28e)]=_0x584d2f,_0xf6e4de[_0x72cb41(0x2f6)]=_0x316f9e;}function _0x1c3445(_0x6cc06e,_0x2e043a){const _0x4a84c4=_0x1c787c,{tableFieldId:_0x4caef7,sourceName:_0x1b0a58,dataFieldId:_0x4f40e4}=_0x2e043a,_0x435acc=_0x4dd6ef(_0x6cc06e,_0x4caef7);_0x435acc&&(_0x435acc['sourceName']=_0x1b0a58,_0x435acc[_0x4a84c4(0x1bc)]=_0x4f40e4);}function _0x23f439(_0x5888f6,_0x2676c1){const _0x54e50f=_0x1c787c,{fieldId:_0x57ded2,sortInfo:_0x5a818f}=_0x2676c1,_0x52820d=_0x4dd6ef(_0x5888f6,_0x57ded2);_0x52820d&&(_0x52820d[_0x54e50f(0x27f)]=_0x5a818f);}function _0x4afa4c(_0x53a351,_0x358a5b){const _0x2ece40=_0x1c787c,{options:_0x340b01}=_0x358a5b;_0x53a351[_0x2ece40(0x33f)]={..._0x53a351[_0x2ece40(0x33f)],..._0x340b01};}const _0xb1d23c={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x2eb),'handler'(_0x4bc740,_0x38e3bd){const _0x32ee2c=_0x1c787c;if(!_0x38e3bd)return!0x1;if(!!_0x4bc740[_0x32ee2c(0x3e4)](_0x177d6a[_0x32ee2c(0xcb)])[_0x32ee2c(0x19a)](_0x318491))return!0x0;const _0x56cca5=_0x4bc740[_0x32ee2c(0x3e4)](_0x1ed859[_0x32ee2c(0x1af)]),{pivotTableId:_0x4fbe3b,fieldJson:_0x2005b8,area:_0x2c4316,index:_0x42cc86,unitId:_0x42bd23,subUnitId:_0x25fa9d}=_0x38e3bd,_0x49c475=_0x56cca5[_0x32ee2c(0x1f4)](_0x4fbe3b);if(!_0x49c475)return!0x1;let _0x1bf731;_0x2c4316===_0x175d11['PivotTableFiledAreaEnum'][_0x32ee2c(0x1c5)]?_0x1bf731=_0x175d11['createValueField'](_0x2005b8):_0x1bf731=_0x175d11['createLabelField'](_0x2005b8),_0x49c475[_0x32ee2c(0x3a0)](_0x1bf731,_0x2c4316,_0x42cc86);const _0x670af7=_0x56cca5[_0x32ee2c(0x187)](_0x42bd23,_0x25fa9d,_0x4fbe3b);_0x52f878(_0x670af7,_0x38e3bd);const _0x166f6c=_0x56cca5[_0x32ee2c(0x33b)](_0x42bd23,_0x25fa9d,_0x4fbe3b);return _0x56cca5[_0x32ee2c(0x285)]({'unitId':_0x42bd23,'subUnitId':_0x25fa9d,'token':_0x4fbe3b,'type':_0x5a4701[_0x32ee2c(0x151)],'pivotConfig':_0x166f6c}),!0x0;}},_0x493ba1={'type':_0x177d6a['CommandType']['MUTATION'],'id':_0x1c787c(0x1dc),'handler'(_0x5a5aa5,_0x127da0){const _0x74e14d=_0x1c787c;if(!_0x127da0)return!0x1;if(!!_0x5a5aa5[_0x74e14d(0x3e4)](_0x177d6a[_0x74e14d(0xcb)])[_0x74e14d(0x19a)](_0x318491))return!0x0;const _0x31f89c=_0x5a5aa5[_0x74e14d(0x3e4)](_0x1ed859[_0x74e14d(0x1af)]),{pivotTableId:_0x8f53d1,fieldId:_0x10c266,unitId:_0x5dd543,subUnitId:_0x506506}=_0x127da0,_0x316668=_0x31f89c[_0x74e14d(0x1f4)](_0x8f53d1);if(!_0x316668)return!0x1;_0x316668[_0x74e14d(0x146)](_0x10c266);const _0x4f17b6=_0x31f89c['getPivotTableModelConfig'](_0x5dd543,_0x506506,_0x8f53d1);_0x539702(_0x4f17b6,_0x127da0);const _0x17ae0c=_0x31f89c[_0x74e14d(0x33b)](_0x5dd543,_0x506506,_0x8f53d1);return _0x31f89c[_0x74e14d(0x285)]({'unitId':_0x5dd543,'subUnitId':_0x506506,'token':_0x8f53d1,'type':_0x5a4701['Set'],'pivotConfig':_0x17ae0c}),!0x0;}},_0x106cc9={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x202ec5,_0x11c769){const _0x373863=_0x1c787c;if(!_0x11c769)return!0x1;if(!!_0x202ec5[_0x373863(0x3e4)](_0x177d6a[_0x373863(0xcb)])[_0x373863(0x19a)](_0x318491))return!0x0;const _0x3f6491=_0x202ec5[_0x373863(0x3e4)](_0x1ed859[_0x373863(0x1af)]),{unitId:_0x17c4e6,subUnitId:_0x2b6850,pivotTableId:_0x4c79d0,fieldId:_0x4539b3,name:_0x4be2ee}=_0x11c769,_0x2d81b7=_0x3f6491[_0x373863(0x1f4)](_0x4c79d0);if(!_0x2d81b7)return!0x1;_0x2d81b7[_0x373863(0x1b1)](_0x4539b3,_0x4be2ee);const _0x837c4c=_0x3f6491[_0x373863(0x187)](_0x17c4e6,_0x2b6850,_0x4c79d0);return _0x403d26(_0x837c4c,_0x11c769),_0x3f6491[_0x373863(0x285)]({'unitId':_0x17c4e6,'subUnitId':_0x2b6850,'token':_0x4c79d0,'type':_0x5a4701[_0x373863(0x151)]}),!0x0;}},_0xe162cd={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x1d0),'handler'(_0xa83a57,_0x363512){const _0x3d10d9=_0x1c787c;if(!_0x363512)return!0x1;if(!!_0xa83a57[_0x3d10d9(0x3e4)](_0x177d6a['IConfigService'])[_0x3d10d9(0x19a)](_0x318491))return!0x0;const _0x4e9022=_0xa83a57[_0x3d10d9(0x3e4)](_0x1ed859[_0x3d10d9(0x1af)]),{unitId:_0x5341d7,subUnitId:_0x1763de,pivotTableId:_0x5a48f6,fieldId:_0xfd179c,collapse:_0x192bba,item:_0x1be73f}=_0x363512,_0x1ffc8a=_0x4e9022[_0x3d10d9(0x1f4)](_0x5a48f6);if(!_0x1ffc8a)return!0x1;_0x1ffc8a[_0x3d10d9(0x23b)](_0xfd179c,_0x192bba,_0x1be73f);const _0xb6d717=_0x4e9022[_0x3d10d9(0x187)](_0x5341d7,_0x1763de,_0x5a48f6);return _0x178858(_0xb6d717,_0x363512),_0x4e9022[_0x3d10d9(0x285)]({'unitId':_0x5341d7,'subUnitId':_0x1763de,'token':_0x5a48f6,'type':_0x5a4701[_0x3d10d9(0x151)]}),!0x0;}},_0x852825={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x13c),'handler'(_0x3a9319,_0x4acf1b){const _0x5961bf=_0x1c787c;if(!_0x4acf1b)return!0x1;if(!!_0x3a9319[_0x5961bf(0x3e4)](_0x177d6a[_0x5961bf(0xcb)])['getConfig'](_0x318491))return!0x0;const _0x42512b=_0x3a9319[_0x5961bf(0x3e4)](_0x1ed859['SheetsPivotDataSourceModel']),{unitId:_0xd3d794,subUnitId:_0x586f59,pivotTableId:_0xf77a12,fieldId:_0x408f75,format:_0x2cef09}=_0x4acf1b,_0x3b0000=_0x42512b[_0x5961bf(0x1f4)](_0xf77a12);if(!_0x3b0000)return!0x1;_0x3b0000[_0x5961bf(0x25e)](_0x408f75,_0x2cef09);const _0x4b98fa=_0x42512b[_0x5961bf(0x187)](_0xd3d794,_0x586f59,_0xf77a12);return _0x2f7b6c(_0x4b98fa,_0x4acf1b),_0x42512b['addDirtyPivotTable']({'unitId':_0xd3d794,'subUnitId':_0x586f59,'token':_0xf77a12,'type':_0x5a4701[_0x5961bf(0x151)]}),!0x0;}},_0x5a4dbb={'type':_0x177d6a['CommandType'][_0x1c787c(0x38a)],'id':_0x1c787c(0x365),'handler'(_0x556765,_0x214b61){const _0x4ef694=_0x1c787c;if(!_0x214b61)return!0x1;if(!!_0x556765[_0x4ef694(0x3e4)](_0x177d6a[_0x4ef694(0xcb)])[_0x4ef694(0x19a)](_0x318491))return!0x0;const _0x2b876c=_0x556765['get'](_0x1ed859['SheetsPivotDataSourceModel']),{unitId:_0x577c3b,subUnitId:_0x2a2484,pivotTableId:_0x567f16,fieldId:_0x5532a6,filterInfo:_0x54c8b4}=_0x214b61,_0x43d330=_0x2b876c['getPivotTableInstance'](_0x567f16);if(!_0x43d330)return!0x1;_0x43d330['setLabelFilterInfo'](_0x5532a6,_0x54c8b4);const _0xdff3e6=_0x2b876c[_0x4ef694(0x187)](_0x577c3b,_0x2a2484,_0x567f16);return _0x11d9b0(_0xdff3e6,_0x214b61),_0x2b876c['addDirtyPivotTable']({'unitId':_0x577c3b,'subUnitId':_0x2a2484,'token':_0x567f16,'type':_0x5a4701[_0x4ef694(0x151)]}),!0x0;}},_0x55d729={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x1f8),'handler'(_0x2e3af3,_0xed3a20){const _0x175aa1=_0x1c787c;if(!_0xed3a20)return!0x1;if(!!_0x2e3af3[_0x175aa1(0x3e4)](_0x177d6a['IConfigService'])['getConfig'](_0x318491))return!0x0;const _0x597bd9=_0x2e3af3[_0x175aa1(0x3e4)](_0x1ed859[_0x175aa1(0x1af)]),{unitId:_0xfba2de,subUnitId:_0x1e93e7,pivotTableId:_0xcec17,options:_0x25f61c}=_0xed3a20,_0x58d65d=_0x597bd9[_0x175aa1(0x1f4)](_0xcec17);if(!_0x58d65d)return!0x1;_0x58d65d[_0x175aa1(0x2ec)](_0x25f61c);const _0x4d00e4=_0x597bd9[_0x175aa1(0x187)](_0xfba2de,_0x1e93e7,_0xcec17);return _0x4afa4c(_0x4d00e4,_0xed3a20),_0x597bd9['addDirtyPivotTable']({'unitId':_0xfba2de,'subUnitId':_0x1e93e7,'token':_0xcec17,'type':_0x5a4701[_0x175aa1(0x151)]}),!0x0;}},_0xe70d5={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x333),'handler'(_0x3571bf,_0x1ca019){const _0x33c48b=_0x1c787c;if(!_0x1ca019)return!0x1;if(!!_0x3571bf[_0x33c48b(0x3e4)](_0x177d6a['IConfigService'])['getConfig'](_0x318491))return!0x0;const _0x1f6660=_0x3571bf[_0x33c48b(0x3e4)](_0x1ed859[_0x33c48b(0x1af)]),{unitId:_0x1a2835,subUnitId:_0xe1abf8,pivotTableId:_0x191e1f,sortInfo:_0x445551,fieldId:_0x16207a}=_0x1ca019,_0x1d2924=_0x1f6660[_0x33c48b(0x1f4)](_0x191e1f);if(!_0x1d2924)return!0x1;_0x1d2924[_0x33c48b(0x161)](_0x16207a,_0x445551);const _0x166102=_0x1f6660[_0x33c48b(0x187)](_0x1a2835,_0xe1abf8,_0x191e1f);return _0x23f439(_0x166102,_0x1ca019),_0x1f6660['addDirtyPivotTable']({'unitId':_0x1a2835,'subUnitId':_0xe1abf8,'token':_0x191e1f,'type':_0x5a4701[_0x33c48b(0x151)]}),!0x0;}},_0x4066a8={'type':_0x177d6a['CommandType']['MUTATION'],'id':_0x1c787c(0x184),'handler'(_0x5c6e2b,_0x789e9){const _0x5665a6=_0x1c787c;if(!_0x789e9)return!0x1;if(!!_0x5c6e2b[_0x5665a6(0x3e4)](_0x177d6a[_0x5665a6(0xcb)])[_0x5665a6(0x19a)](_0x318491))return!0x0;const _0x57aaaf=_0x5c6e2b[_0x5665a6(0x3e4)](_0x1ed859[_0x5665a6(0x1af)]),{unitId:_0x5c6db3,subUnitId:_0x2fcc52,pivotTableId:_0x2c919f,fieldId:_0x3ef050,subtotalType:_0x5dbf57}=_0x789e9,_0x4599f4=_0x57aaaf[_0x5665a6(0x1f4)](_0x2c919f);if(!_0x4599f4)return!0x1;_0x4599f4['setSubtotalType'](_0x3ef050,_0x5dbf57);const _0x3f3005=_0x57aaaf[_0x5665a6(0x187)](_0x5c6db3,_0x2fcc52,_0x2c919f);return _0x432a30(_0x3f3005,_0x789e9),_0x57aaaf[_0x5665a6(0x285)]({'unitId':_0x5c6db3,'subUnitId':_0x2fcc52,'token':_0x2c919f,'type':_0x5a4701[_0x5665a6(0x151)]}),!0x0;}},_0x3c9cd8={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x211),'handler'(_0x3c9145,_0x1304c7){const _0x12fd46=_0x1c787c;if(!_0x1304c7)return!0x1;if(!!_0x3c9145[_0x12fd46(0x3e4)](_0x177d6a[_0x12fd46(0xcb)])[_0x12fd46(0x19a)](_0x318491))return!0x0;const _0x3a11da=_0x3c9145[_0x12fd46(0x3e4)](_0x1ed859[_0x12fd46(0x1af)]),{unitId:_0x5c3997,subUnitId:_0x559e4e,pivotTableId:_0x359576,fieldId:_0x322801,filterInfo:_0x21f4d1}=_0x1304c7,_0x4db247=_0x3a11da[_0x12fd46(0x1f4)](_0x359576);if(!_0x4db247)return!0x1;_0x4db247['setValueFilterInfo'](_0x322801,_0x21f4d1);const _0x292b93=_0x3a11da[_0x12fd46(0x187)](_0x5c3997,_0x559e4e,_0x359576);return _0x34a2d4(_0x292b93,_0x1304c7),_0x3a11da[_0x12fd46(0x285)]({'unitId':_0x5c3997,'subUnitId':_0x559e4e,'token':_0x359576,'type':_0x5a4701[_0x12fd46(0x151)]}),!0x0;}},_0x332f55={'type':_0x177d6a['CommandType'][_0x1c787c(0x38a)],'id':_0x1c787c(0x3ba),'handler'(_0x3ad10c,_0x267fcd){const _0x8f777b=_0x1c787c;if(!_0x267fcd)return!0x1;if(!!_0x3ad10c[_0x8f777b(0x3e4)](_0x177d6a[_0x8f777b(0xcb)])[_0x8f777b(0x19a)](_0x318491))return!0x0;const _0x512419=_0x3ad10c[_0x8f777b(0x3e4)](_0x1ed859['SheetsPivotDataSourceModel']),{unitId:_0x1cbd12,subUnitId:_0x3dfdaa,pivotTableId:_0x5a82d3,area:_0x59a522,index:_0x1e46e1,fieldId:_0x555615}=_0x267fcd,_0x39637f=_0x512419['getPivotTableInstance'](_0x5a82d3);if(!_0x39637f)return!0x1;_0x39637f[_0x8f777b(0x213)](_0x555615,_0x59a522,_0x1e46e1);const _0x1af4ae=_0x512419[_0x8f777b(0x187)](_0x1cbd12,_0x3dfdaa,_0x5a82d3);return _0x2771cb(_0x1af4ae,_0x267fcd),_0x512419[_0x8f777b(0x285)]({'unitId':_0x1cbd12,'subUnitId':_0x3dfdaa,'token':_0x5a82d3,'type':_0x5a4701['Set']}),!0x0;}},_0x586f96={'type':_0x177d6a[_0x1c787c(0x196)]['MUTATION'],'id':_0x1c787c(0x3a1),'handler'(_0x4368a0,_0x404c4f){const _0x2ae51c=_0x1c787c;if(!_0x404c4f)return!0x1;if(!!_0x4368a0[_0x2ae51c(0x3e4)](_0x177d6a['IConfigService'])[_0x2ae51c(0x19a)](_0x318491))return!0x0;const _0x18e549=_0x4368a0[_0x2ae51c(0x3e4)](_0x1ed859[_0x2ae51c(0x1af)]),{unitId:_0x3eeb50,subUnitId:_0xb07ca1,pivotTableId:_0x375504,sourceName:_0x257fb8,dataFieldId:_0x56e438,tableFieldId:_0x3c76d7}=_0x404c4f,_0x1c4753=_0x18e549[_0x2ae51c(0x1f4)](_0x375504);if(!_0x1c4753)return!0x1;_0x1c4753[_0x2ae51c(0xed)](_0x3c76d7,_0x257fb8,_0x56e438);const _0x14e7bc=_0x18e549['getPivotTableModelConfig'](_0x3eeb50,_0xb07ca1,_0x375504);return _0x1c3445(_0x14e7bc,_0x404c4f),_0x18e549[_0x2ae51c(0x285)]({'unitId':_0x3eeb50,'subUnitId':_0xb07ca1,'token':_0x375504,'type':_0x5a4701['Set']}),!0x0;}},_0xe6f7a6={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x245),'handler'(_0x491f3f,_0x44ab8e){const _0x5c52a4=_0x1c787c;if(!_0x44ab8e)return!0x1;if(!!_0x491f3f[_0x5c52a4(0x3e4)](_0x177d6a[_0x5c52a4(0xcb)])[_0x5c52a4(0x19a)](_0x318491))return!0x0;const _0x3566fc=_0x491f3f['get'](_0x1ed859[_0x5c52a4(0x1af)]),{unitId:_0x5e4553,subUnitId:_0x1b80bc,pivotTableId:_0x4031ca,valuePosition:_0x38ce68,index:_0x45d923}=_0x44ab8e,_0x53249=_0x3566fc[_0x5c52a4(0x1f4)](_0x4031ca);if(!_0x53249)return!0x1;_0x53249[_0x5c52a4(0xcf)](_0x38ce68,_0x45d923);const _0x3a5703=_0x3566fc[_0x5c52a4(0x187)](_0x5e4553,_0x1b80bc,_0x4031ca);return _0x4af9c3(_0x3a5703,_0x44ab8e),_0x3566fc['addDirtyPivotTable']({'unitId':_0x5e4553,'subUnitId':_0x1b80bc,'token':_0x4031ca,'type':_0x5a4701[_0x5c52a4(0x151)]}),!0x0;}};function _0x215de6(_0x375793,_0x4bc311,_0x46df05){const _0x3ee7d8=_0x1c787c,{pivotTableId:_0x2f8f62,unitId:_0x393c9f,subUnitId:_0x319d86}=_0x4bc311,_0x4036c8=[],_0x546b80=[];for(const _0x21fc85 of _0x46df05)switch(_0x21fc85['type']){case _0x175d11['PivotTableChangeTypeEnum'][_0x3ee7d8(0x261)]:{const {fieldJson:_0x1a008d,area:_0x2f2813,index:_0x51a55c}=_0x21fc85,_0x353170={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldJson':_0x1a008d,'area':_0x2f2813,'index':_0x51a55c},_0x16bfe9={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x1a008d['id'],'area':_0x2f2813,'index':_0x51a55c};_0x4036c8['push']({'id':_0xb1d23c['id'],'params':_0x353170}),_0x546b80[_0x3ee7d8(0x262)]({'id':_0x493ba1['id'],'params':_0x16bfe9});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x2b6)]:{const {fieldId:_0x122d7a,newSubtotalType:_0x4f38f6,oldSubtotalType:_0x349d2a}=_0x21fc85,_0x4b114b={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x122d7a,'subtotalType':_0x4f38f6};_0x4036c8['push']({'id':_0x4066a8['id'],'params':_0x4b114b});const _0x3f4002={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x122d7a,'subtotalType':_0x349d2a};_0x546b80['unshift']({'id':_0x4066a8['id'],'params':_0x3f4002});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x351)]:{const {fieldId:_0x15e57c,fieldJson:_0x2a8dbd,area:_0xe890c1,index:_0xf91df0}=_0x21fc85,_0x3ec47b={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x15e57c,'index':_0xf91df0,'area':_0xe890c1};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0x493ba1['id'],'params':_0x3ec47b});const _0x24df15={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldJson':_0x2a8dbd,'area':_0xe890c1,'index':_0xf91df0};_0x546b80['unshift']({'id':_0xb1d23c['id'],'params':_0x24df15});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x242)]:{const {fieldId:_0x207fbf,oldName:_0x3cd41e,newName:_0x181230}=_0x21fc85,_0x524f20={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x207fbf,'name':_0x181230};_0x4036c8['push']({'id':_0x106cc9['id'],'params':_0x524f20});const _0x9956af={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x207fbf,'name':_0x3cd41e};_0x546b80['unshift']({'id':_0x106cc9['id'],'params':_0x9956af});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x321)]:{const {fieldId:_0x6f6126,oldFilterInfo:_0x43ebaf,newFilterInfo:_0x3b907d}=_0x21fc85,_0x39538c={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x6f6126,'filterInfo':_0x3b907d};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0x5a4dbb['id'],'params':_0x39538c});const _0x53f68a={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x6f6126,'filterInfo':_0x43ebaf};_0x546b80[_0x3ee7d8(0x262)]({'id':_0x5a4dbb['id'],'params':_0x53f68a});}break;case _0x175d11[_0x3ee7d8(0x269)]['SetSortInfo']:{const {fieldId:_0x38ea6f,oldSortInfo:_0x424804,newSortInfo:_0xf32c2}=_0x21fc85,_0x3108db={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x38ea6f,'sortInfo':_0xf32c2};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0xe70d5['id'],'params':_0x3108db});const _0x51e02e={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x38ea6f,'sortInfo':_0x424804};_0x546b80[_0x3ee7d8(0x262)]({'id':_0xe70d5['id'],'params':_0x51e02e});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x362)]:{const {oldOptions:_0x3f91d4,newOptions:_0x531533}=_0x21fc85,_0x40f46e={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'options':_0x531533};_0x4036c8['push']({'id':_0x55d729['id'],'params':_0x40f46e});const _0x2faf4b={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'options':_0x3f91d4};_0x546b80[_0x3ee7d8(0x262)]({'id':_0x55d729['id'],'params':_0x2faf4b});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x34e)]:{const {oldArea:_0x365dce,newArea:_0x52ce4a,oldIndex:_0x589db5,newIndex:_0x141b38,fieldId:_0x3747f4}=_0x21fc85,_0x46cb11={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x3747f4,'area':_0x52ce4a,'index':_0x141b38,'oldArea':_0x365dce,'oldIndex':_0x589db5};_0x4036c8['push']({'id':_0x332f55['id'],'params':_0x46cb11});const _0x373c9a={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x3747f4,'area':_0x365dce,'index':_0x589db5,'oldArea':_0x52ce4a,'oldIndex':_0x141b38};_0x546b80[_0x3ee7d8(0x262)]({'id':_0x332f55['id'],'params':_0x373c9a});}break;case _0x175d11['PivotTableChangeTypeEnum'][_0x3ee7d8(0x3a6)]:{const {oldValuePosition:_0x136b42,newValuePosition:_0x216c38,oldIndex:_0x59923d,newIndex:_0x362cb5}=_0x21fc85,_0xfe6234={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'valuePosition':_0x216c38,'index':_0x362cb5};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0xe6f7a6['id'],'params':_0xfe6234});const _0x4ff157={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'valuePosition':_0x136b42,'index':_0x59923d};_0x546b80[_0x3ee7d8(0x262)]({'id':_0xe6f7a6['id'],'params':_0x4ff157});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x2e9)]:{const {fieldId:_0x293f20,collapse:_0x14dee1,item:_0x313daa}=_0x21fc85,_0x12cbba={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x293f20,'collapse':_0x14dee1,'item':_0x313daa};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0xe162cd['id'],'params':_0x12cbba});const _0x29a927={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x293f20,'collapse':!_0x14dee1,'item':_0x313daa};_0x546b80[_0x3ee7d8(0x262)]({'id':_0xe162cd['id'],'params':_0x29a927});}break;case _0x175d11[_0x3ee7d8(0x269)]['SetFieldFormat']:{const {newFormat:_0xf4e296,oldFormat:_0xdd70c,fieldId:_0x2abe46}=_0x21fc85,_0xf5a9db={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x2abe46,'format':_0xf4e296};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0x852825['id'],'params':_0xf5a9db});const _0x461c9e={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x2abe46,'format':_0xdd70c};_0x546b80[_0x3ee7d8(0x262)]({'id':_0x852825['id'],'params':_0x461c9e});}break;case _0x175d11[_0x3ee7d8(0x269)]['UpdateSource']:{const {tableFieldId:_0x4d350d,oldSourceName:_0x3b2a2d,newSourceName:_0x4178d2,oldDataFieldId:_0x1b24c0,newDataFieldId:_0x3d49d4}=_0x21fc85,_0x37cd69={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'tableFieldId':_0x4d350d,'sourceName':_0x4178d2,'dataFieldId':_0x3d49d4};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0x586f96['id'],'params':_0x37cd69});const _0x475fda={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'tableFieldId':_0x4d350d,'sourceName':_0x3b2a2d,'dataFieldId':_0x1b24c0};_0x546b80[_0x3ee7d8(0x262)]({'id':_0x586f96['id'],'params':_0x475fda});}break;case _0x175d11[_0x3ee7d8(0x269)][_0x3ee7d8(0x3bb)]:{const {fieldId:_0x3c2175,filterInfo:_0x398e34,oldFilterInfo:_0x3b5b05}=_0x21fc85,_0x591aa0={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x3c2175,'filterInfo':_0x398e34};_0x4036c8[_0x3ee7d8(0x1a2)]({'id':_0x3c9cd8['id'],'params':_0x591aa0});const _0x206119={'unitId':_0x393c9f,'subUnitId':_0x319d86,'pivotTableId':_0x2f8f62,'fieldId':_0x3c2175,'filterInfo':_0x3b5b05};_0x546b80[_0x3ee7d8(0x262)]({'id':_0x3c9cd8['id'],'params':_0x206119});}}return{'redos':_0x4036c8,'undos':_0x546b80};}function _0x458275(_0x4068cb,_0x5708e4){const _0x513023=_0x1c787c;var _0x5ece85;const _0x418b95=_0x4068cb[_0x513023(0x3e4)](_0x1ed859[_0x513023(0x354)]),{cellInfo:_0x3c7e66,view:_0x4ffd82,isEmpty:_0x31bcb6}=_0x5708e4;return(_0x5ece85=_0x418b95[_0x513023(0x2e3)][_0x513023(0x39c)](_0x148d7f)(_0x37e18f,{'cellInfo':_0x3c7e66,'view':_0x4ffd82,'isEmpty':_0x31bcb6}))!=null?_0x5ece85:_0x37e18f;}const _0x5baed9={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':'sheet.command.add-pivot-field',async 'handler'(_0xf7536d,_0x6f6129){const _0xa32b74=_0x1c787c;if(!_0x6f6129)return!0x1;const _0x5f2af3=_0xf7536d[_0xa32b74(0x3e4)](_0x177d6a[_0xa32b74(0x353)]),_0x20b6a5=_0xf7536d[_0xa32b74(0x3e4)](_0x1ed859[_0xa32b74(0x206)]),_0x379dfa=_0xf7536d['get'](_0x177d6a[_0xa32b74(0x28c)]),{pivotTableId:_0x4c14ad,dataFieldId:_0x526ca2,fieldArea:_0x35b349,index:_0x3de5b6,unitId:_0x582b5b,subUnitId:_0x5c66f4}=_0x6f6129,_0x1d2101=(await _0x20b6a5[_0xa32b74(0x22c)]({'unitId':_0x582b5b,'subUnitId':_0x5c66f4,'pivotTableId':_0x4c14ad,'params':{'type':_0x2b8e9a[_0xa32b74(0x385)],'addPivotField':{'dataFieldId':_0x526ca2,'fieldArea':_0x35b349,'index':_0x3de5b6}}}))['result'][_0xa32b74(0x2b2)];if(!_0x1d2101)return!0x1;const {view:_0x49d1f8,changesets:_0x35108d,isEmpty:_0x4ef77e,pivotTableConfig:_0x141ac3,shouldBeAddedGroupJSON:_0x26d52c}=_0x1d2101,_0x26b604=_0x141ac3[_0xa32b74(0x30d)],_0x3c5303=new _0x175d11[(_0xa32b74(0x2e1))]();_0x3c5303['formJSON'](_0x49d1f8);const _0x427f36={'cellInfo':_0x26b604,'view':_0x3c5303,'isEmpty':_0x4ef77e};if(!await _0xf7536d['get'](_0x1ed859[_0xa32b74(0x354)])[_0xa32b74(0x1e0)][_0xa32b74(0x39d)](_0x3ba713)(!0x0,_0x427f36))return!0x1;const _0x7b8704=_0x44d3aa(_0xf7536d,_0x3c5303,_0x26b604,_0x4ef77e),_0x5bf433=_0x458275(_0xf7536d,_0x427f36),{undos:_0x5b926c,redos:_0x3e5a2a}=_0x215de6(_0x5f2af3,{'pivotTableId':_0x4c14ad,'unitId':_0x582b5b,'subUnitId':_0x5c66f4},_0x35108d);return _0x26d52c&&(_0x3e5a2a['unshift']({'id':_0x14bf9e['id'],'params':{'pivotTableId':_0x4c14ad,'fieldJSON':_0x26d52c,'unitId':_0x582b5b,'subUnitId':_0x5c66f4}}),_0x5b926c[_0xa32b74(0x1a2)]({'id':_0x187b5c['id'],'params':{'pivotTableId':_0x4c14ad,'dataFieldId':_0x26d52c['id'],'unitId':_0x582b5b,'subUnitId':_0x5c66f4}})),_0x177d6a[_0xa32b74(0x160)]([..._0x7b8704[_0xa32b74(0x166)],..._0x5bf433[_0xa32b74(0x166)],..._0x3e5a2a],_0x5f2af3),_0x379dfa['pushUndoRedo']({'unitID':_0x582b5b,'redoMutations':[..._0x7b8704[_0xa32b74(0x166)],..._0x5bf433[_0xa32b74(0x166)],..._0x3e5a2a],'undoMutations':[..._0x7b8704[_0xa32b74(0x280)],..._0x5bf433['undos'],..._0x5b926c]}),!0x0;}},_0x250cbc=()=>typeof process<'u'&&process['versions']!=null&&process[_0x1c787c(0x162)][_0x1c787c(0x2fa)]!=null,_0x1f645b={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x1ef),'handler'(_0x1abe38,_0x2e73a9){const _0x45cf5c=_0x1c787c;var _0x4472d9;if(!_0x2e73a9)return!0x1;const _0xfa8ce8=_0x1abe38['get'](_0x177d6a[_0x45cf5c(0xcb)]);if(!!_0xfa8ce8['getConfig'](_0x318491))return!0x0;const _0x4e59f3=_0x1abe38['get'](_0x177d6a['IUniverInstanceService']),_0x4244e6=_0x1abe38[_0x45cf5c(0x3e4)](_0x1ed859[_0x45cf5c(0x1af)]),{pivotTableId:_0x7a727c,pivotTableConfig:_0x5dbc51,collectionConfig:_0x277340,unitId:_0x34cfd3,subUnitId:_0x300c20}=_0x2e73a9,{sourceRangeInfo:_0x46e3cc,fieldsConfig:_0x5aeeb4,targetCellInfo:_0x589968}=_0x5dbc51,_0x4074cc=_0x4e59f3[_0x45cf5c(0x16a)](_0x34cfd3);if(!_0x4074cc||!_0x4074cc[_0x45cf5c(0x29a)](_0x300c20))return!0x1;if(!_0x250cbc()){let _0xdd2bed=0x0;_0x4074cc[_0x45cf5c(0x21d)]()['forEach'](_0x36a045=>{const _0x5912f8=_0x45cf5c;var _0x3cc021,_0x2128a8;_0xdd2bed+=(_0x2128a8=(_0x3cc021=_0x4244e6[_0x5912f8(0x255)](_0x34cfd3,_0x36a045['getSheetId']()))==null?void 0x0:_0x3cc021[_0x5912f8(0x13f)])!=null?_0x2128a8:0x0;});const _0x17ed76=(_0x4472d9=_0xfa8ce8[_0x45cf5c(0x19a)](_0x53915[_0x45cf5c(0x342)]))!=null?_0x4472d9:{},{ls:_0x1e579e,pbk:_0x59cf27}=_0x17ed76;if(!_0x41914d(_0x1e579e,_0x59cf27))throw new _0x177d6a[(_0x45cf5c(0x2d4))]('limit\x20pivot');const _0x3dd039=_0x17409d(_0x45eedb,_0x1e579e,_0x59cf27)['count'];if(_0xdd2bed>=_0x3dd039)throw new _0x177d6a[(_0x45cf5c(0x2d4))](_0x45cf5c(0x2ca));}if(!_0x277340||!_0x5aeeb4)return!0x1;const {collection:_0x462f23,updateDataFieldList:_0x36e715}=_0x4244e6[_0x45cf5c(0x169)](_0x7a727c,_0x277340,_0x46e3cc,_0x589968);_0x4244e6[_0x45cf5c(0x172)](_0x462f23,_0x36e715,_0x46e3cc);const _0x256308=new _0x175d11[(_0x45cf5c(0x1e2))](_0x462f23,void 0x0,_0x7a727c);_0x256308[_0x45cf5c(0x32d)](_0x5aeeb4);const _0x1d5773=JSON[_0x45cf5c(0x398)](JSON[_0x45cf5c(0x10c)](_0x5dbc51));return _0x4244e6['addPivotTable'](_0x34cfd3,_0x300c20,_0x7a727c,_0x256308,_0x1d5773),_0x4244e6['addDirtyPivotTable']({'unitId':_0x34cfd3,'subUnitId':_0x300c20,'token':_0x7a727c,'type':_0x5a4701[_0x45cf5c(0x201)],'pivotConfig':_0x1d5773}),!0x0;}},_0xde6230={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x20ffc4,_0x15ae74){const _0x2867fc=_0x1c787c;if(!_0x15ae74)return!0x1;const {sourceDataInfo:_0x5b7d1,pivotTableConfig:_0x20141a}=_0x15ae74;if(!_0x5b7d1||!_0x20141a)return!0x1;const {unitId:_0x3b44bf,subUnitId:_0xbf411,range:_0x567398}=_0x5b7d1,_0x259d24=_0x20ffc4[_0x2867fc(0x3e4)](_0x177d6a['IUniverInstanceService']),_0x5deab8=_0x20ffc4['get'](_0x1ed859[_0x2867fc(0x206)]),_0x3a8bed=_0x20ffc4['get'](_0x177d6a[_0x2867fc(0x17f)]),_0x739b49=_0x20ffc4[_0x2867fc(0x3e4)](_0x177d6a['ICommandService']),_0x5de41d=_0x259d24[_0x2867fc(0x16a)](_0x3b44bf);if(!_0x5de41d)return!0x1;const _0x4504be=_0x5de41d[_0x2867fc(0x29a)](_0xbf411);if(!_0x4504be)return!0x1;const _0x173811=_0x175d11[_0x2867fc(0x35c)](0x8),_0x5f3b08=_0x567398||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4504be[_0x2867fc(0x132)]()-0x1,'endColumn':_0x4504be[_0x2867fc(0xf6)]()-0x1};_0x5f3b08[_0x2867fc(0xe1)]=_0x177d6a['RANGE_TYPE'][_0x2867fc(0x318)];const _0x408bde=(await _0x5deab8['getPivotDisplayConfig']({'unitId':_0x3b44bf,'subUnitId':_0xbf411,'pivotTableId':_0x173811,'params':{'type':_0x2b8e9a[_0x2867fc(0xcd)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3b44bf,'sheetName':_0x4504be[_0x2867fc(0x2b5)](),'subUnitId':_0xbf411,'range':_0x5f3b08},'pivotTableId':_0x173811,'pivotTableIndexConfig':_0x20141a}}}))['result'][_0x2867fc(0x2ff)];if(!_0x408bde)return!0x1;const {isEmpty:_0x286b0c,fieldsConfig:_0x1b251a,collectionConfig:_0x57aa76,changesets:_0x53892b}=_0x408bde,_0xf5aa61=_0x5de41d[_0x2867fc(0x21d)]()[_0x2867fc(0x10f)],_0x4ebfed=_0x177d6a['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x4504be[_0x2867fc(0x132)]()-0x1,'columnCount':_0x4504be[_0x2867fc(0xf6)]()-0x1});_0x4ebfed['id']=_0x177d6a['generateRandomId'](),_0x4ebfed[_0x2867fc(0x349)]=_0x5de41d[_0x2867fc(0x178)](''+_0x3a8bed['t'](_0x2867fc(0x229)));const _0x3a25c2={'index':_0xf5aa61,'sheet':_0x4ebfed,'unitId':_0x3b44bf},{redos:_0x2ee5e4}=_0x215de6(_0x739b49,{'pivotTableId':_0x173811,'unitId':_0x3b44bf,'subUnitId':_0x4ebfed['id']},_0x53892b),_0x5bd109=[{'id':_0x22c23f[_0x2867fc(0x3b6)]['id'],'params':_0x3a25c2},{'id':_0x1f645b['id'],'params':{'unitId':_0x3b44bf,'subUnitId':_0x4ebfed['id'],'pivotTableId':_0x173811,'pivotTableConfig':{'isEmpty':_0x286b0c,'fieldsConfig':_0x1b251a,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3b44bf,'subUnitId':_0x4ebfed['id']},'sourceRangeInfo':{'subUnitId':_0xbf411,'unitId':_0x3b44bf,'range':_0x5f3b08,'sheetName':_0x4504be[_0x2867fc(0x2b5)]()}},'collectionConfig':_0x57aa76}},..._0x2ee5e4];return _0x177d6a['sequenceExecute'](_0x5bd109,_0x739b49),!0x0;}},_0x2d8900={'type':_0x177d6a['CommandType']['MUTATION'],'id':_0x1c787c(0xef),'handler'(_0x321877,_0x5e86d9){const _0x51a38f=_0x1c787c;if(!_0x5e86d9)return!0x1;if(!!_0x321877['get'](_0x177d6a[_0x51a38f(0xcb)])[_0x51a38f(0x19a)](_0x318491))return!0x0;const {pivotTableId:_0x3b916c,unitId:_0x45ac05,subUnitId:_0x348737}=_0x5e86d9,_0x38f7c8=_0x321877[_0x51a38f(0x3e4)](_0x1ed859[_0x51a38f(0x1af)]);return _0x38f7c8['getPivotTableConfig'](_0x45ac05,_0x348737,_0x3b916c)?(_0x38f7c8[_0x51a38f(0x285)]({'unitId':_0x45ac05,'subUnitId':_0x348737,'token':_0x3b916c,'type':_0x5a4701[_0x51a38f(0x1a7)]}),_0x38f7c8[_0x51a38f(0x165)](_0x45ac05,_0x348737,_0x3b916c),!0x0):!0x1;}},_0x5492df={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x1aeffc,_0xe4f306){const _0x1eab19=_0x1c787c;var _0x482c2a,_0x56d201;const _0x3bfebc=_0x1aeffc[_0x1eab19(0x3e4)](_0x177d6a[_0x1eab19(0x353)]),_0x259188=_0x1aeffc['get'](_0x177d6a[_0x1eab19(0x22f)]),_0x535a89=_0x1aeffc[_0x1eab19(0x3e4)](_0x177d6a[_0x1eab19(0x17f)]),_0x4f8504=_0x1aeffc[_0x1eab19(0x3e4)](_0x1ed859['SheetsPivotRPCService']),_0x34419f=_0x1aeffc[_0x1eab19(0x3e4)](_0x177d6a[_0x1eab19(0x28c)]),_0x330357=_0x1aeffc[_0x1eab19(0x3e4)](_0x1ed859[_0x1eab19(0x107)]),_0x177664=_0x1aeffc['get'](_0x177d6a[_0x1eab19(0xcb)]);if(!_0xe4f306)return!0x1;const {pivotTableConfig:_0x2fb2c2,positionType:_0x128662}=_0xe4f306,{targetCellInfo:_0x4a2ee8,sourceRangeInfo:_0x1af190}=_0x2fb2c2,{unitId:_0x12d4b3,subUnitId:_0x392623}=_0x4a2ee8,_0x387cb8=_0x259188[_0x1eab19(0x16a)](_0x12d4b3);if(!_0x387cb8)return!0x1;let _0x166773=0x0;_0x387cb8[_0x1eab19(0x21d)]()[_0x1eab19(0xe3)](_0x4ca649=>{const _0x4bd83f=_0x1eab19;var _0x337728,_0x1b1f2d;_0x166773+=(_0x1b1f2d=(_0x337728=_0x330357[_0x4bd83f(0x255)](_0x12d4b3,_0x4ca649[_0x4bd83f(0x264)]()))==null?void 0x0:_0x337728[_0x4bd83f(0x13f)])!=null?_0x1b1f2d:0x0;});const _0x3ef874=(_0x482c2a=_0x177664[_0x1eab19(0x19a)](_0x53915[_0x1eab19(0x342)]))!=null?_0x482c2a:{},{ls:_0x551690,pbk:_0x11b49a}=_0x3ef874;if(!_0x41914d(_0x551690,_0x11b49a))return!0x1;const _0x44fd6e=_0x17409d(_0x45eedb,_0x551690,_0x11b49a)['count'];if(_0x166773>=_0x44fd6e)return!0x1;const _0x50136f=_0xe4f306[_0x1eab19(0x399)]||_0x175d11[_0x1eab19(0x35c)](0x8),_0x2d3f95=(await _0x4f8504[_0x1eab19(0x22c)]({'unitId':_0x12d4b3,'subUnitId':_0x392623,'pivotTableId':_0x50136f,'params':{'type':_0x2b8e9a[_0x1eab19(0xd6)],'addPivotTable':{'sourceRangeInfo':_0x1af190,'pivotTableId':_0x50136f}}}))['result'][_0x1eab19(0x3cd)];if(!_0x2d3f95)return!0x1;const {view:_0x12bacb,isEmpty:_0x37ae81,fieldsConfig:_0x463e38,collectionConfig:_0x1e060c}=_0x2d3f95,_0x1f6c0e=[],_0x3ae8c0=[];if(_0x128662===_0x83d4d['New']){const _0x3b1e17=_0x387cb8[_0x1eab19(0x21d)]()[_0x1eab19(0x10f)],_0x5aeb5a=_0x177d6a[_0x1eab19(0x152)]({});_0x5aeb5a['id']=_0x2fb2c2[_0x1eab19(0x30d)]['subUnitId'],_0x5aeb5a[_0x1eab19(0x349)]=(_0x56d201=_0x2fb2c2['targetCellInfo'][_0x1eab19(0x376)])!=null?_0x56d201:_0x387cb8[_0x1eab19(0x178)](''+_0x535a89['t'](_0x1eab19(0x229)));const _0x298d5e={'index':_0x3b1e17,'sheet':_0x5aeb5a,'unitId':_0x12d4b3},_0x420378=_0x22c23f['InsertSheetUndoMutationFactory'](_0x1aeffc,_0x298d5e);_0x1f6c0e[_0x1eab19(0x1a2)]({'id':_0x22c23f['RemoveSheetMutation']['id'],'params':_0x420378}),_0x3ae8c0[_0x1eab19(0x1a2)]({'id':_0x22c23f[_0x1eab19(0x1df)]['id'],'params':_0x298d5e});}else{if(!_0x387cb8[_0x1eab19(0x29a)](_0x392623))return!0x1;const _0x5b328c=_0x44d3aa(_0x1aeffc,new _0x175d11[(_0x1eab19(0x2e1))](),_0x4a2ee8,!0x0);_0x3ae8c0[_0x1eab19(0x1a2)](..._0x5b328c['redos']),_0x1f6c0e[_0x1eab19(0x1a2)](..._0x5b328c['undos']);const _0xe87981={'cellInfo':_0x4a2ee8,'view':_0x12bacb,'isEmpty':_0x37ae81};if(!await _0x1aeffc[_0x1eab19(0x3e4)](_0x1ed859['SheetsPivotTableService'])[_0x1eab19(0x1e0)][_0x1eab19(0x39d)](_0x3ba713)(!0x0,_0xe87981))return!0x1;const _0x37225c=_0x458275(_0x1aeffc,_0xe87981);_0x3ae8c0[_0x1eab19(0x1a2)](..._0x37225c[_0x1eab19(0x166)]),_0x1f6c0e[_0x1eab19(0x1a2)](..._0x37225c[_0x1eab19(0x280)]);}return _0x3ae8c0[_0x1eab19(0x1a2)]({'id':_0x1f645b['id'],'params':{'unitId':_0x4a2ee8['unitId'],'subUnitId':_0x4a2ee8[_0x1eab19(0x27d)],'pivotTableId':_0x50136f,'pivotTableConfig':{'targetCellInfo':_0x4a2ee8,'sourceRangeInfo':_0x1af190,'fieldsConfig':_0x463e38},'collectionConfig':_0x1e060c}}),_0x1f6c0e[_0x1eab19(0x262)]({'id':_0x2d8900['id'],'params':{'unitId':_0x12d4b3,'subUnitId':_0x392623,'pivotTableId':_0x50136f}}),_0x177d6a['sequenceExecute'](_0x3ae8c0,_0x3bfebc)&&_0x34419f[_0x1eab19(0xff)]({'unitID':_0x12d4b3,'undoMutations':_0x1f6c0e,'redoMutations':_0x3ae8c0}),!0x0;}},_0x3630f9={'type':_0x177d6a[_0x1c787c(0x196)]['COMMAND'],'id':_0x1c787c(0x266),async 'handler'(_0x2c2bc7,_0xc76f42){const _0x5ca670=_0x1c787c;if(!_0xc76f42)return!0x1;const _0x4c57c1=_0x2c2bc7['get'](_0x177d6a['ICommandService']),_0x1607a7=_0x2c2bc7[_0x5ca670(0x3e4)](_0x1ed859[_0x5ca670(0x206)]),_0x4ed187=_0x2c2bc7[_0x5ca670(0x3e4)](_0x177d6a[_0x5ca670(0x28c)]),{pivotTableId:_0x457817,fieldId:_0x5ca6c4,area:_0x2fbb86,index:_0x24b4d1,unitId:_0x5db0e7,subUnitId:_0x945b1c}=_0xc76f42,_0x2bd4a9=(await _0x1607a7[_0x5ca670(0x22c)]({'unitId':_0x5db0e7,'subUnitId':_0x945b1c,'pivotTableId':_0x457817,'params':{'type':_0x2b8e9a[_0x5ca670(0x372)],'movePivotField':{'fieldId':_0x5ca6c4,'area':_0x2fbb86,'index':_0x24b4d1}}}))[_0x5ca670(0x1d1)][_0x5ca670(0x2a7)];if(!_0x2bd4a9)return!0x1;const {changesets:_0x585360,view:_0xf7399,isEmpty:_0x1bade2,pivotTableConfig:_0x451835}=_0x2bd4a9,_0x4c2d24=_0x451835[_0x5ca670(0x30d)],_0x303fbe=new _0x175d11[(_0x5ca670(0x2e1))]();_0x303fbe[_0x5ca670(0x391)](_0xf7399);const _0x500f7d={'cellInfo':_0x4c2d24,'view':_0x303fbe,'isEmpty':_0x1bade2};if(!await _0x2c2bc7[_0x5ca670(0x3e4)](_0x1ed859['SheetsPivotTableService'])[_0x5ca670(0x1e0)]['fetchThroughAsyncInterceptors'](_0x3ba713)(!0x0,_0x500f7d))return!0x1;const _0x12fde4=_0x44d3aa(_0x2c2bc7,_0x303fbe,_0x4c2d24,_0x1bade2),_0x5237e0=_0x458275(_0x2c2bc7,_0x500f7d),{redos:_0x484e0a,undos:_0x12749a}=_0x215de6(_0x4c57c1,{'pivotTableId':_0x457817,'unitId':_0x5db0e7,'subUnitId':_0x945b1c},_0x585360);return _0x177d6a[_0x5ca670(0x160)]([..._0x12fde4[_0x5ca670(0x166)],..._0x5237e0[_0x5ca670(0x166)],..._0x484e0a],_0x4c57c1),_0x4ed187[_0x5ca670(0xff)]({'unitID':_0x5db0e7,'redoMutations':[..._0x12fde4[_0x5ca670(0x166)],..._0x5237e0[_0x5ca670(0x166)],..._0x484e0a],'undoMutations':[..._0x12fde4[_0x5ca670(0x280)],..._0x5237e0[_0x5ca670(0x280)],..._0x12749a]}),!0x0;}},_0x5d353a={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x2a0),'handler'(_0x17e0aa,_0xea8d55){const _0x2bffe8=_0x1c787c;if(!_0xea8d55)return!0x1;if(!!_0x17e0aa[_0x2bffe8(0x3e4)](_0x177d6a['IConfigService'])[_0x2bffe8(0x19a)](_0x318491))return!0x0;const {pivotTableId:_0xd6b880,targetCellPosition:_0xae6545,unitId:_0x165d2a,subUnitId:_0x17103e}=_0xea8d55,_0x7369ed=_0x17e0aa['get'](_0x1ed859[_0x2bffe8(0x1af)]);if(!_0x7369ed['getPivotTableInstance'](_0xea8d55[_0x2bffe8(0x399)]))return!0x1;const _0x2499df=_0x7369ed[_0x2bffe8(0xdd)](_0xd6b880);if(!_0x2499df)return!0x1;const _0x476dc4=_0x7369ed[_0x2bffe8(0x16b)](_0x2499df[_0x2bffe8(0x283)],_0xea8d55[_0x2bffe8(0x399)]);if(!_0x476dc4)return!0x1;const _0x4c5fc7=_0x7369ed[_0x2bffe8(0x33b)](_0x2499df['unitId'],_0x2499df[_0x2bffe8(0x27d)],_0xd6b880);if(!_0x4c5fc7)return!0x1;const _0x10e366=_0x177d6a[_0x2bffe8(0x389)][_0x2bffe8(0x2d6)](_0x4c5fc7);_0x10e366['targetCellInfo']={'unitId':_0x165d2a,'subUnitId':_0x17103e,'row':_0xae6545[_0x2bffe8(0x2e7)],'col':_0xae6545[_0x2bffe8(0x368)]};const _0x8bf772=_0x476dc4['toJSON']();if(_0x2499df[_0x2bffe8(0x27d)]===_0x17103e&&_0x2499df['unitId']===_0x165d2a)_0x7369ed['setPivotTable'](_0x165d2a,_0x17103e,_0xd6b880,_0x10e366),_0x7369ed[_0x2bffe8(0x285)]({'unitId':_0x165d2a,'subUnitId':_0x17103e,'token':_0xd6b880,'type':_0x5a4701['Set']});else{_0x7369ed[_0x2bffe8(0x285)]({'unitId':_0x2499df['unitId'],'subUnitId':_0x2499df[_0x2bffe8(0x27d)],'token':_0xd6b880,'type':_0x5a4701['Delete']}),_0x7369ed[_0x2bffe8(0x165)](_0x2499df['unitId'],_0x2499df[_0x2bffe8(0x27d)],_0xd6b880);const _0x35b2e4=_0x7369ed[_0x2bffe8(0x169)](_0xd6b880,_0x8bf772,_0x4c5fc7[_0x2bffe8(0x2a8)],_0x10e366[_0x2bffe8(0x30d)]),_0x1639ba=new _0x175d11[(_0x2bffe8(0x1e2))](_0x35b2e4[_0x2bffe8(0x250)],void 0x0,_0xd6b880);_0x1639ba[_0x2bffe8(0x32d)](_0x10e366[_0x2bffe8(0x179)]),_0x7369ed[_0x2bffe8(0x3cd)](_0x165d2a,_0x17103e,_0xd6b880,_0x1639ba,_0x10e366),_0x7369ed[_0x2bffe8(0x285)]({'unitId':_0x165d2a,'subUnitId':_0x17103e,'token':_0xd6b880,'type':_0x5a4701['Add'],'pivotConfig':_0x10e366});}return!0x0;}},_0x4de8eb={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'id':'sheet.command.move-pivot-table','handler':(_0x4edcaf,_0x35e679)=>{const _0x556270=_0x1c787c,_0x44dc58=_0x4edcaf[_0x556270(0x3e4)](_0x177d6a[_0x556270(0x353)]),_0x5a3aa8=_0x4edcaf[_0x556270(0x3e4)](_0x177d6a[_0x556270(0x28c)]),_0x4d3c1f=_0x4edcaf['get'](_0x1ed859[_0x556270(0x107)]),_0x49885e=_0x4edcaf[_0x556270(0x3e4)](_0x177d6a['IUniverInstanceService']);if(!_0x35e679)return!0x1;const _0x4c8a6c=_0x22c23f[_0x556270(0x109)](_0x49885e);if(!_0x4c8a6c)return!0x1;const {unitId:_0x398cf8,subUnitId:_0x575aca,workbook:_0x31b611}=_0x4c8a6c,_0x529b86=_0x4d3c1f[_0x556270(0x33b)](_0x35e679[_0x556270(0x3e0)]['unitId'],_0x35e679['originTargetInfo'][_0x556270(0x27d)],_0x35e679['pivotTableId']);if(!_0x529b86)return!0x1;const _0x56a012=_0x31b611['getSheetBySheetId'](_0x35e679[_0x556270(0x30d)]['subUnitId']);if(!_0x56a012)throw new Error(_0x556270(0x39f));const _0x5e0dd2=_0x56a012[_0x556270(0x132)](),_0x2d240a=_0x56a012[_0x556270(0xf6)]();if(_0x35e679[_0x556270(0x30d)][_0x556270(0x2e7)]>_0x5e0dd2||_0x35e679[_0x556270(0x30d)][_0x556270(0x368)]>_0x2d240a)throw new Error(_0x556270(0xf4));const _0x15bc03=[{'id':_0x5d353a['id'],'params':{'unitId':_0x398cf8,'subUnitId':_0x35e679[_0x556270(0x30d)]['subUnitId'],'pivotTableId':_0x35e679['pivotTableId'],'targetCellPosition':{'row':_0x35e679[_0x556270(0x30d)][_0x556270(0x2e7)],'col':_0x35e679[_0x556270(0x30d)][_0x556270(0x368)]}}}],_0x59af05=[{'id':_0x5d353a['id'],'params':{'unitId':_0x398cf8,'subUnitId':_0x575aca,'pivotTableId':_0x35e679[_0x556270(0x399)],'targetCellPosition':{'row':_0x529b86[_0x556270(0x30d)][_0x556270(0x2e7)],'col':_0x529b86[_0x556270(0x30d)][_0x556270(0x368)]}}}];return _0x177d6a['sequenceExecute'](_0x15bc03,_0x44dc58)&&_0x5a3aa8[_0x556270(0xff)]({'unitID':_0x398cf8,'undoMutations':_0x59af05,'redoMutations':_0x15bc03}),!0x0;}},_0x280ea1={'type':_0x177d6a['CommandType']['COMMAND'],'id':_0x1c787c(0x156),async 'handler'(_0x284ec4,_0xf3e699){const _0x5bc482=_0x1c787c;var _0x5d1b57;if(!_0xf3e699)return!0x1;const _0x44f391=_0x284ec4[_0x5bc482(0x3e4)](_0x177d6a[_0x5bc482(0x22f)]),_0x57b414=_0x22c23f[_0x5bc482(0x109)](_0x44f391);if(!_0x57b414)return!0x1;const {unitId:_0x23e006,subUnitId:_0x7b0568,workbook:_0x553213}=_0x57b414,{row:_0x2e4349,col:_0x30cdea}=_0xf3e699,_0xd8edfe=_0x284ec4['get'](_0x1ed859[_0x5bc482(0x1d6)]),_0x49032f=_0xd8edfe[_0x5bc482(0x29e)](_0x23e006,_0x7b0568,_0x2e4349,_0x30cdea);if(!_0x49032f)return!0x1;const _0x23a08e=(_0x5d1b57=_0xd8edfe[_0x5bc482(0x2d8)](_0x23e006,_0x7b0568,_0x49032f))==null?void 0x0:_0x5d1b57['areaInfo'];if(!_0x23a08e)return!0x1;const _0x100f01=_0x284ec4[_0x5bc482(0x3e4)](_0x1ed859[_0x5bc482(0x107)])[_0x5bc482(0x33b)](_0x23e006,_0x7b0568,_0x49032f);if(!_0x100f01)return!0x1;const {rowInfo:_0xd08162,colInfo:_0xe21214}=_0x23a08e,_0x37f5a5=_0xd08162[_0x2e4349][_0x5bc482(0x186)],_0x32121c=_0xe21214[_0x30cdea][_0x5bc482(0x186)],_0x202272=_0xd08162[_0x2e4349][_0x5bc482(0x297)],_0x4d60cf=_0xe21214[_0x30cdea][_0x5bc482(0x297)],_0x232db0=_0x37f5a5[_0x5bc482(0x163)](_0x32121c),_0x13056b=_0x100f01[_0x5bc482(0x179)][_0x5bc482(0x287)][_0x5bc482(0x338)](0x0,_0x202272),_0x438c72=_0x100f01['fieldsConfig']['columnFields'][_0x5bc482(0x338)](0x0,_0x4d60cf),_0x32b5c6=_0x13056b[_0x5bc482(0x163)](_0x438c72),_0x36a683=_0x232db0[_0x5bc482(0x12e)]((_0xc4f2a3,_0x5160ec)=>[_0xc4f2a3,_0x32b5c6[_0x5160ec]]),_0x539eab=(await _0x284ec4[_0x5bc482(0x3e4)](_0x1ed859['SheetsPivotRPCService'])[_0x5bc482(0x22c)]({'unitId':_0x23e006,'subUnitId':_0x7b0568,'pivotTableId':_0x49032f,'params':{'type':_0x2b8e9a[_0x5bc482(0x2c7)],'drillDown':{'tuple':_0x36a683}}}))[_0x5bc482(0x1d1)][_0x5bc482(0x32a)];if(!_0x539eab)return!0x1;const {indexes:_0x5274d3,range:_0xfd0349,sourceUnitId:_0xc0276,sourceSubUnitId:_0x4aace1,formatMap:_0x46efe5}=_0x539eab,{startRow:_0x3b6653,endRow:_0xc1314b,startColumn:_0x3b2e86,endColumn:_0x3471c9}=_0xfd0349,_0x484ebf=new _0x177d6a[(_0x5bc482(0xf7))](),_0x22b3fc=_0xc1314b-_0x3b6653,_0x48010c=_0x3471c9-_0x3b2e86,_0x2c270f={},_0x287f87=_0x22c23f[_0x5bc482(0x109)](_0x44f391,{'unitId':_0xc0276,'subUnitId':_0x4aace1});if(!_0x287f87)return!0x1;const _0x34f9f3=_0x137cd6[_0x5bc482(0xca)],_0x576321=_0x137cd6[_0x5bc482(0x2a9)],_0x417971=_0x137cd6['subTotalStyle'],_0x5921af=_0x553213[_0x5bc482(0x39a)]()[_0x5bc482(0x14f)](_0x34f9f3),_0x384ca0=_0x553213[_0x5bc482(0x39a)]()[_0x5bc482(0x14f)](_0x576321),_0x53d1c2=_0x553213[_0x5bc482(0x39a)]()[_0x5bc482(0x14f)](_0x417971),{worksheet:_0x15d305}=_0x287f87;let _0x438a81=0x0;const _0x43eb12=0x1;_0x5274d3[_0x5bc482(0xe3)](_0xf9a35e=>{const _0x1b7a02=_0x5bc482;for(let _0x1ab7b2=0x0;_0x1ab7b2<=_0x3471c9-_0x3b2e86;_0x1ab7b2++)_0x484ebf[_0x1b7a02(0x14f)](_0x438a81,_0x1ab7b2,_0x15d305[_0x1b7a02(0x2b1)](_0xf9a35e+_0xfd0349['startRow']+_0x43eb12,_0x1ab7b2));_0x438a81++;});for(let _0x29f91e=_0x3b2e86;_0x29f91e<=_0x3471c9;_0x29f91e++){const _0x2e9bf0=_0x15d305[_0x5bc482(0x2b1)](_0x3b6653,_0x29f91e);_0x2c270f[_0x3b6653]||(_0x2c270f[_0x3b6653]={}),_0x2c270f[_0x3b6653][_0x29f91e]={..._0x2e9bf0,'s':_0x5921af};}let _0x35c0ac=0x1;const _0x5c3bf9={},_0x142d5f={};_0x484ebf[_0x5bc482(0x3af)]((_0x548402,_0x396e1e)=>{const _0x5c6ffc=_0x5bc482;_0x396e1e[_0x5c6ffc(0xe3)](_0x1341c0=>{const _0x4a50bc=_0x5c6ffc,_0x1ebcab=_0x484ebf[_0x4a50bc(0x33d)](_0x548402,_0x1341c0);if(_0x2c270f[_0x35c0ac]||(_0x2c270f[_0x35c0ac]={}),_0x2c270f[_0x35c0ac][_0x1341c0]={..._0x1ebcab,'s':_0x35c0ac%0x2===0x0?_0x53d1c2:_0x384ca0},_0x46efe5[_0x1341c0]&&_0x548402>=0x0){const _0xad896b=_0x35c0ac%0x2===0x0;let _0x225697=_0xad896b?_0x142d5f[_0x1341c0]:_0x5c3bf9[_0x1341c0];_0x225697||(_0x225697=_0x553213[_0x4a50bc(0x39a)]()[_0x4a50bc(0x14f)]({..._0xad896b?_0x417971:_0x576321,'n':{'pattern':_0x46efe5[_0x1341c0]}}),_0xad896b?_0x142d5f[_0x1341c0]=_0x225697:_0x5c3bf9[_0x1341c0]=_0x225697),_0x2c270f[_0x35c0ac][_0x1341c0]['s']=_0x225697;}}),_0x35c0ac++;});const _0x322ebc=new _0x177d6a[(_0x5bc482(0xf7))](_0x2c270f),_0x22ebbd={};_0x322ebc[_0x5bc482(0xe2)]((_0x266f54,_0x377fed,_0xcbba4e)=>{_0x22ebbd[_0x266f54]||(_0x22ebbd[_0x266f54]={}),_0x22ebbd[_0x266f54][_0x377fed]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x4bb5f5=[],_0x4dd409=[],_0xa10995=_0x553213['getSheets']()['length'],_0x2886f3=_0x177d6a['mergeWorksheetSnapshotWithDefault']({'rowCount':Math[_0x5bc482(0x22b)](_0x177d6a[_0x5bc482(0x123)],_0x22b3fc+0xa),'columnCount':Math[_0x5bc482(0x22b)](_0x177d6a[_0x5bc482(0x23c)],_0x48010c+0x5)}),_0x3f87b3=_0x284ec4[_0x5bc482(0x3e4)](_0x177d6a[_0x5bc482(0x17f)]);_0x2886f3['id']=_0x177d6a['generateRandomId'](),_0x2886f3[_0x5bc482(0x349)]=_0x553213['generateNewSheetName'](''+_0x3f87b3['t'](_0x5bc482(0x229)));const _0x278878={'index':_0xa10995,'sheet':_0x2886f3,'unitId':_0x23e006},_0x3f542c=_0x22c23f[_0x5bc482(0xd2)](_0x284ec4,_0x278878);_0x4dd409[_0x5bc482(0x1a2)]({'id':_0x22c23f['InsertSheetMutation']['id'],'params':_0x278878}),_0x4bb5f5[_0x5bc482(0x1a2)]({'id':_0x22c23f[_0x5bc482(0x34b)]['id'],'params':_0x3f542c}),_0x4dd409[_0x5bc482(0x1a2)]({'id':_0x22c23f[_0x5bc482(0x33e)]['id'],'params':{'unitId':_0x23e006,'subUnitId':_0x2886f3['id'],'cellValue':_0x2c270f}}),_0x4bb5f5[_0x5bc482(0x262)]({'id':_0x22c23f[_0x5bc482(0x33e)]['id'],'params':{'unitId':_0x23e006,'subUnitId':_0x2886f3['id'],'cellValue':_0x22ebbd}});const _0x2a4838={'startRow':0x0,'startColumn':0x0,'endRow':_0x35c0ac-0x1,'endColumn':_0x3471c9};_0x4dd409['push']({'id':_0xc6ed78['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x23e006,'subUnitId':_0x2886f3['id'],'range':_0x2a4838}}),_0x4bb5f5[_0x5bc482(0x262)]({'id':_0xc6ed78[_0x5bc482(0x3c8)]['id'],'params':{'unitId':_0x23e006,'subUnitId':_0x2886f3['id']}});const _0x4bf0a6=_0x284ec4[_0x5bc482(0x3e4)](_0x177d6a['ICommandService']);return _0x177d6a[_0x5bc482(0x160)](_0x4dd409,_0x4bf0a6)&&_0x284ec4[_0x5bc482(0x3e4)](_0x177d6a[_0x5bc482(0x28c)])[_0x5bc482(0xff)]({'unitID':_0x23e006,'undoMutations':_0x4bb5f5,'redoMutations':_0x4dd409}),!0x0;}},_0x376df3={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':_0x1c787c(0x1e8),async 'handler'(_0x2b5cda,_0x1e9803){const _0x26df54=_0x1c787c;if(!_0x1e9803)return!0x1;const _0x4b3e71=_0x2b5cda[_0x26df54(0x3e4)](_0x177d6a[_0x26df54(0x353)]),_0x48e85e=_0x2b5cda['get'](_0x1ed859[_0x26df54(0x206)]),_0x14623f=_0x2b5cda[_0x26df54(0x3e4)](_0x177d6a[_0x26df54(0x28c)]),{pivotTableId:_0x46f8df,fieldIds:_0x35b8c4,unitId:_0x225179,subUnitId:_0x51af25}=_0x1e9803,_0x2fb9d4=(await _0x48e85e[_0x26df54(0x22c)]({'unitId':_0x225179,'subUnitId':_0x51af25,'pivotTableId':_0x46f8df,'params':{'type':_0x2b8e9a[_0x26df54(0x1de)],'removePivotField':{'fieldIds':_0x35b8c4}}}))[_0x26df54(0x1d1)][_0x26df54(0x208)];if(!_0x2fb9d4)return!0x1;const {view:_0x137339,changesets:_0x42525d,isEmpty:_0xb0b9cb,pivotTableConfig:_0x4f5922}=_0x2fb9d4,_0x3eba3f=_0x4f5922['targetCellInfo'],_0x35ffc9=new _0x175d11['PivotView']();_0x35ffc9[_0x26df54(0x391)](_0x137339);const _0x577fdf={'cellInfo':_0x3eba3f,'view':_0x35ffc9,'isEmpty':_0xb0b9cb};if(!await _0x2b5cda['get'](_0x1ed859[_0x26df54(0x354)])['asyncInterceptor'][_0x26df54(0x39d)](_0x3ba713)(!0x0,_0x577fdf))return!0x1;const _0xf69221=_0x44d3aa(_0x2b5cda,_0x35ffc9,_0x3eba3f,_0xb0b9cb),_0x3ae55d=_0x458275(_0x2b5cda,_0x577fdf),{redos:_0x46a13b,undos:_0x4c972d}=_0x215de6(_0x4b3e71,{'pivotTableId':_0x46f8df,'unitId':_0x225179,'subUnitId':_0x51af25},_0x42525d);return _0x177d6a[_0x26df54(0x160)]([..._0xf69221[_0x26df54(0x166)],..._0x3ae55d['redos'],..._0x46a13b],_0x4b3e71),_0x14623f['pushUndoRedo']({'unitID':_0x225179,'redoMutations':[..._0xf69221['redos'],..._0x3ae55d[_0x26df54(0x166)],..._0x46a13b],'undoMutations':[..._0xf69221[_0x26df54(0x280)],..._0x3ae55d[_0x26df54(0x280)],..._0x4c972d]}),!0x0;}},_0x596a3c={'type':_0x177d6a[_0x1c787c(0x196)]['COMMAND'],'id':_0x1c787c(0x2a4),async 'handler'(_0xa43f85,_0x23ac2d){const _0x4530ff=_0x1c787c;if(!_0x23ac2d)return!0x1;const _0x39a35f=_0xa43f85[_0x4530ff(0x3e4)](_0x177d6a[_0x4530ff(0x353)]),_0xdabaea=_0xa43f85['get'](_0x177d6a[_0x4530ff(0x28c)]),_0x22321=_0xa43f85[_0x4530ff(0x3e4)](_0x1ed859[_0x4530ff(0x206)]),{resetArea:_0x3933b1,pivotTableId:_0x4891bc,unitId:_0x2d7446,subUnitId:_0x328943}=_0x23ac2d,_0x3203b2=(await _0x22321[_0x4530ff(0x22c)]({'unitId':_0x2d7446,'subUnitId':_0x328943,'pivotTableId':_0x4891bc,'params':{'type':_0x2b8e9a[_0x4530ff(0x36e)],'resetPivotTable':{'pivotTableId':_0x4891bc,'resetArea':_0x3933b1}}}))['result'][_0x4530ff(0x21f)];if(!_0x3203b2)return!0x1;const {changesets:_0xb1b897}=_0x3203b2,{redos:_0x48d42b,undos:_0x514b37}=_0x215de6(_0x39a35f,{'pivotTableId':_0x4891bc,'unitId':_0x2d7446,'subUnitId':_0x328943},_0xb1b897);return _0x177d6a[_0x4530ff(0x160)](_0x48d42b,_0x39a35f),_0xdabaea[_0x4530ff(0xff)]({'unitID':_0x2d7446,'redoMutations':_0x48d42b,'undoMutations':_0x514b37}),!0x0;}},_0x100116={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':_0x1c787c(0x300),async 'handler'(_0x4473cd,_0x4de3ec){const _0x411e9e=_0x1c787c,_0x401bd8=_0x4473cd[_0x411e9e(0x3e4)](_0x177d6a[_0x411e9e(0x353)]),_0x2692bc=_0x4473cd['get'](_0x1ed859[_0x411e9e(0x206)]),_0x32975a=_0x4473cd[_0x411e9e(0x3e4)](_0x1ed859[_0x411e9e(0x1d6)]),_0x4623ca=_0x4473cd[_0x411e9e(0x3e4)](_0x177d6a['IUniverInstanceService']),_0x2efad3=_0x4473cd[_0x411e9e(0x3e4)](_0x177d6a[_0x411e9e(0x17f)]),_0x2e2250=_0x4473cd[_0x411e9e(0x3e4)](_0x177d6a[_0x411e9e(0x28c)]);if(!_0x4de3ec)return!0x1;const {unitId:_0x19b8ec,subUnitId:_0x29c797,row:_0x54900d,col:_0x25c0af,collapse:_0x5e7331}=_0x4de3ec,_0x48200f=_0x4623ca['getUnit'](_0x19b8ec);if(!_0x48200f||!_0x48200f[_0x411e9e(0x29a)](_0x29c797))return!0x1;const _0x25f1bc=_0x32975a['getPivotTableIdByCell'](_0x19b8ec,_0x29c797,_0x54900d,_0x25c0af);if(!_0x25f1bc)return!0x1;const _0x1b6a3d=_0x32975a[_0x411e9e(0x2d8)](_0x19b8ec,_0x29c797,_0x25f1bc);if(!_0x1b6a3d)return!0x1;const _0x48d1ea=_0x177d6a[_0x411e9e(0x1fd)](_0x54900d,_0x25c0af),{rangesInfo:_0x41a524,areaInfo:_0x211cea,headerMap:_0x18b0a0}=_0x1b6a3d;if(!_0x41a524||!_0x211cea||!_0x18b0a0)return!0x1;const _0x503439=Object[_0x411e9e(0x1fc)](_0x41a524)[_0x411e9e(0x24e)](_0x21d4e5=>_0x41a524[_0x21d4e5]['some'](_0x3ffca2=>_0x177d6a[_0x411e9e(0x2e2)][_0x411e9e(0x295)](_0x3ffca2,_0x48d1ea)));let _0x4f90c5;_0x503439==='rowRanges'?_0x4f90c5=_0x18b0a0['rowHeaderMap'][_0x25c0af]:_0x503439===_0x411e9e(0x1fa)&&(_0x4f90c5=_0x18b0a0['colHeaderMap'][_0x54900d]);const _0x22a2cc=_0x4f90c5==null?void 0x0:_0x4f90c5[_0x411e9e(0x2a3)],_0x10b893=_0x32975a[_0x411e9e(0xc0)](_0x19b8ec,_0x29c797,_0x54900d,_0x25c0af);let _0x40e30c=_0x10b893==null?void 0x0:_0x10b893['v'];if(_0x40e30c===_0x2efad3['t']('sheets-pivot.blank')&&(_0x40e30c=_0x175d11['GlobalConfig']['BLANK_PLACEHOLDER']),_0x40e30c==null||!_0x25f1bc||!_0x22a2cc)return!0x1;const _0x447ac6=await _0x2692bc['getPivotDisplayConfig']({'unitId':_0x19b8ec,'subUnitId':_0x29c797,'pivotTableId':_0x25f1bc,'params':{'type':_0x2b8e9a[_0x411e9e(0x2fb)],'setPivotCollapse':{'tableFieldId':_0x22a2cc,'collapse':_0x5e7331,'item':_0x40e30c}}}),_0x1646d3=_0x447ac6==null?void 0x0:_0x447ac6['result']['setPivotCollapse'];if(!_0x1646d3)return!0x1;const {view:_0x4023bd,pivotTableConfig:_0x23a9ce,isEmpty:_0x197116,changesets:_0x552298}=_0x1646d3,_0xd85d9d=new _0x175d11[(_0x411e9e(0x2e1))]();_0xd85d9d[_0x411e9e(0x391)](_0x4023bd);const _0x20d493=_0x23a9ce[_0x411e9e(0x30d)],_0x305081={'cellInfo':_0x20d493,'view':_0xd85d9d,'isEmpty':_0x197116};if(!await _0x4473cd[_0x411e9e(0x3e4)](_0x1ed859[_0x411e9e(0x354)])[_0x411e9e(0x1e0)][_0x411e9e(0x39d)](_0x3ba713)(!0x0,_0x305081))return!0x1;const _0x3ffc31=_0x44d3aa(_0x4473cd,_0xd85d9d,_0x20d493,_0x197116),_0xa6047=_0x458275(_0x4473cd,_0x305081),{redos:_0x4ae92d,undos:_0x16d32a}=_0x215de6(_0x401bd8,{'pivotTableId':_0x25f1bc,'unitId':_0x19b8ec,'subUnitId':_0x29c797},_0x552298);return _0x177d6a['sequenceExecute']([..._0x3ffc31[_0x411e9e(0x166)],..._0xa6047[_0x411e9e(0x166)],..._0x4ae92d],_0x401bd8),_0x2e2250['pushUndoRedo']({'unitID':_0x19b8ec,'redoMutations':[..._0x3ffc31[_0x411e9e(0x166)],..._0xa6047[_0x411e9e(0x166)],..._0x4ae92d],'undoMutations':[..._0x3ffc31[_0x411e9e(0x280)],..._0xa6047['undos'],..._0x16d32a]}),!0x0;}},_0x27cb54={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'id':_0x1c787c(0xf3),async 'handler'(_0x27f342,_0x28dbb8){const _0x407a40=_0x1c787c;if(!_0x28dbb8)return!0x1;const _0xec33cb=_0x27f342[_0x407a40(0x3e4)](_0x177d6a[_0x407a40(0x353)]),_0x52ab51=_0x27f342[_0x407a40(0x3e4)](_0x177d6a[_0x407a40(0x28c)]),_0x3d511f=_0x27f342[_0x407a40(0x3e4)](_0x1ed859['SheetsPivotRPCService']),{pivotTableConfig:_0x275df0,pivotTableId:_0x1b561b,unitId:_0x5a86f5,subUnitId:_0x40754e}=_0x28dbb8,_0x298fa7=(await _0x3d511f[_0x407a40(0x22c)]({'unitId':_0x5a86f5,'subUnitId':_0x40754e,'pivotTableId':_0x1b561b,'params':{'type':_0x2b8e9a['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x1b561b,'pivotTableConfig':_0x275df0}}}))[_0x407a40(0x1d1)][_0x407a40(0x260)];if(!_0x298fa7)return!0x1;const {changesets:_0x249e0a}=_0x298fa7,{redos:_0x43d6a9,undos:_0x4fb34e}=_0x215de6(_0xec33cb,{'pivotTableId':_0x1b561b,'unitId':_0x5a86f5,'subUnitId':_0x40754e},_0x249e0a);return _0x177d6a[_0x407a40(0x160)](_0x43d6a9,_0xec33cb),_0x52ab51[_0x407a40(0xff)]({'unitID':_0x5a86f5,'redoMutations':_0x43d6a9,'undoMutations':_0x4fb34e}),!0x0;}},_0x2d8370={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0xad9bb0,_0x1bb1f4){const _0x5e750c=_0x1c787c;if(!_0x1bb1f4)return!0x1;const _0x2d5b04=_0xad9bb0[_0x5e750c(0x3e4)](_0x177d6a[_0x5e750c(0x353)]),{pivotTableId:_0x4e4c31,tableFieldId:_0x28b4c0,items:_0x1a6c72,unitId:_0x2ab47a,subUnitId:_0xfc8396,isAll:_0x455aee}=_0x1bb1f4,_0x366310=_0xad9bb0[_0x5e750c(0x3e4)](_0x1ed859[_0x5e750c(0x206)]),_0x593df5=_0xad9bb0[_0x5e750c(0x3e4)](_0x177d6a[_0x5e750c(0x28c)]),_0x5aec47=(await _0x366310[_0x5e750c(0x22c)]({'unitId':_0x2ab47a,'subUnitId':_0xfc8396,'pivotTableId':_0x4e4c31,'params':{'type':_0x2b8e9a['SetPivotFilter'],'setPivotFilter':{'tableFieldId':_0x28b4c0,'items':_0x1a6c72,'isAll':_0x455aee}}}))[_0x5e750c(0x1d1)][_0x5e750c(0xda)];if(!_0x5aec47)return!0x1;const {changesets:_0x2aa99d,pivotTableConfig:_0x35eaa0,isEmpty:_0x2bf4dd,view:_0xe0bc1e}=_0x5aec47,_0x38bfd0=_0x35eaa0['targetCellInfo'],_0x5aac1b=new _0x175d11[(_0x5e750c(0x2e1))]();_0x5aac1b[_0x5e750c(0x391)](_0xe0bc1e);const _0x1e58a3={'cellInfo':_0x38bfd0,'view':_0x5aac1b,'isEmpty':_0x2bf4dd};if(!await _0xad9bb0['get'](_0x1ed859['SheetsPivotTableService'])[_0x5e750c(0x1e0)]['fetchThroughAsyncInterceptors'](_0x3ba713)(!0x0,_0x1e58a3))return!0x1;const _0x2e9a90=_0x44d3aa(_0xad9bb0,_0x5aac1b,_0x38bfd0,_0x2bf4dd),_0x3933d5=_0x458275(_0xad9bb0,_0x1e58a3),{undos:_0x49dcaa,redos:_0x4271e3}=_0x215de6(_0x2d5b04,{'pivotTableId':_0x4e4c31,'unitId':_0x2ab47a,'subUnitId':_0xfc8396},_0x2aa99d);return _0x177d6a[_0x5e750c(0x160)]([..._0x2e9a90[_0x5e750c(0x166)],..._0x3933d5[_0x5e750c(0x166)],..._0x4271e3],_0x2d5b04),_0x593df5[_0x5e750c(0xff)]({'unitID':_0x2ab47a,'redoMutations':[..._0x2e9a90[_0x5e750c(0x166)],..._0x3933d5[_0x5e750c(0x166)],..._0x4271e3],'undoMutations':[..._0x2e9a90['undos'],..._0x3933d5[_0x5e750c(0x280)],..._0x49dcaa]}),!0x0;}},_0x4d2904={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'id':_0x1c787c(0x204),async 'handler'(_0x2cb1bd,_0x2c2796){const _0x167cc1=_0x1c787c;if(!_0x2c2796)return!0x1;const _0x38cca4=_0x2cb1bd[_0x167cc1(0x3e4)](_0x177d6a['ICommandService']),_0x8ef463=_0x2cb1bd[_0x167cc1(0x3e4)](_0x177d6a[_0x167cc1(0x28c)]),_0x261a1f=_0x2cb1bd['get'](_0x1ed859[_0x167cc1(0x206)]),{info:_0x5877fa,tableFieldId:_0x48578b,pivotTableId:_0x5dab71,unitId:_0xa51086,subUnitId:_0x1c47b7}=_0x2c2796,_0x5368e6=(await _0x261a1f[_0x167cc1(0x22c)]({'unitId':_0xa51086,'subUnitId':_0x1c47b7,'pivotTableId':_0x5dab71,'params':{'type':_0x2b8e9a[_0x167cc1(0x3c9)],'setPivotSort':{'tableFieldId':_0x48578b,'info':_0x5877fa}}}))[_0x167cc1(0x1d1)][_0x167cc1(0x270)];if(!_0x5368e6)return!0x1;const {changesets:_0x26ed25}=_0x5368e6,{redos:_0x3de60d,undos:_0x3b6f64}=_0x215de6(_0x38cca4,{'pivotTableId':_0x5dab71,'unitId':_0xa51086,'subUnitId':_0x1c47b7},_0x26ed25);return _0x177d6a['sequenceExecute'](_0x3de60d,_0x38cca4),_0x8ef463[_0x167cc1(0xff)]({'unitID':_0xa51086,'redoMutations':_0x3de60d,'undoMutations':_0x3b6f64}),!0x0;}},_0x14a83f={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':_0x1c787c(0x363),async 'handler'(_0x22265e,_0x3cdf7e){const _0x511f1d=_0x1c787c;if(!_0x3cdf7e)return!0x1;const _0x272c82=_0x22265e[_0x511f1d(0x3e4)](_0x177d6a[_0x511f1d(0x353)]),{pivotTableId:_0x1b9046,fieldId:_0xc5809,valueFilterInfo:_0x25a514,unitId:_0x3a64dc,subUnitId:_0x3fc1d8}=_0x3cdf7e,_0x152cb=_0x22265e[_0x511f1d(0x3e4)](_0x1ed859[_0x511f1d(0x206)]),_0x5d7ced=_0x22265e[_0x511f1d(0x3e4)](_0x177d6a[_0x511f1d(0x28c)]),_0x3fd8c0=(await _0x152cb['getPivotDisplayConfig']({'unitId':_0x3a64dc,'subUnitId':_0x3fc1d8,'pivotTableId':_0x1b9046,'params':{'type':_0x2b8e9a[_0x511f1d(0x38b)],'setValuePivotFilter':{'tableFieldId':_0xc5809,'filterInfo':_0x25a514}}}))['result']['setValuePivotFilter'];if(!_0x3fd8c0)return!0x1;const {changesets:_0x347d96,pivotTableConfig:_0x3a9756,isEmpty:_0x38378b,view:_0x16f88a}=_0x3fd8c0,_0x4da5d3=_0x3a9756[_0x511f1d(0x30d)],_0xefa0d8=new _0x175d11['PivotView']();_0xefa0d8[_0x511f1d(0x391)](_0x16f88a);const _0x1a5d2b={'cellInfo':_0x4da5d3,'view':_0xefa0d8,'isEmpty':_0x38378b};if(!await _0x22265e[_0x511f1d(0x3e4)](_0x1ed859['SheetsPivotTableService'])[_0x511f1d(0x1e0)][_0x511f1d(0x39d)](_0x3ba713)(!0x0,_0x1a5d2b))return!0x1;const _0x5299e8=_0x44d3aa(_0x22265e,_0xefa0d8,_0x4da5d3,_0x38378b),_0x21e610=_0x458275(_0x22265e,_0x1a5d2b),{undos:_0x4250d3,redos:_0x5b0165}=_0x215de6(_0x272c82,{'pivotTableId':_0x1b9046,'unitId':_0x3a64dc,'subUnitId':_0x3fc1d8},_0x347d96);return _0x177d6a[_0x511f1d(0x160)]([..._0x5299e8[_0x511f1d(0x166)],..._0x21e610['redos'],..._0x5b0165],_0x272c82),_0x5d7ced[_0x511f1d(0xff)]({'unitID':_0x3a64dc,'redoMutations':[..._0x5299e8[_0x511f1d(0x166)],..._0x21e610[_0x511f1d(0x166)],..._0x5b0165],'undoMutations':[..._0x5299e8['undos'],..._0x21e610[_0x511f1d(0x280)],..._0x4250d3]}),!0x0;}},_0x18c1ce={'id':_0x1c787c(0x38e),'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'handler':(_0x49c0c3,_0x2ae710)=>{const _0x2139a5=_0x1c787c;if(!_0x2ae710)return!0x1;if(!!_0x49c0c3['get'](_0x177d6a[_0x2139a5(0xcb)])['getConfig'](_0x318491))return!0x0;const {unitId:_0x43d457,subUnitId:_0x27ddb9,pivotTableId:_0x945baa,tableFieldId:_0x437e2f,dateType:_0x14a5f2}=_0x2ae710,_0x53a223=_0x49c0c3[_0x2139a5(0x3e4)](_0x1ed859['SheetsPivotDataSourceModel']),_0x268f3a=_0x53a223[_0x2139a5(0x1f4)](_0x945baa);if(!_0x268f3a)return!0x1;const _0x292eea=_0x268f3a['getDataFieldByTableId'](_0x437e2f);if(!_0x292eea)return!0x1;const _0x1c9b34=_0x292eea[_0x2139a5(0x200)](),_0xe9db07=_0x268f3a[_0x2139a5(0x268)](_0x1c9b34),_0x43385d=(_0xe9db07==null?void 0x0:_0xe9db07['getName']())+'\x20'+_0x4e9638(_0x49c0c3,_0x14a5f2);_0x53a223[_0x2139a5(0x16b)](_0x43d457,_0x945baa)['setDisplayName'](_0x292eea['id'],_0x43385d);const _0x5eb2e4=_0x268f3a[_0x2139a5(0x373)](_0x437e2f);if(!_0x5eb2e4)return!0x1;_0x268f3a[_0x2139a5(0x1b1)](_0x5eb2e4['getId'](),_0x43385d),_0x292eea['setDateType'](_0x14a5f2);const _0x481671=_0x53a223[_0x2139a5(0x33b)](_0x43d457,_0x27ddb9,_0x945baa);return _0x53a223[_0x2139a5(0x285)]({'unitId':_0x43d457,'subUnitId':_0x27ddb9,'token':_0x945baa,'type':_0x5a4701[_0x2139a5(0x151)],'pivotConfig':_0x481671}),!0x0;}},_0x3f8d67={'id':_0x1c787c(0x395),'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x335)],'handler':(_0xe1bcff,_0x2f5dcd)=>{const _0x5d7d97=_0x1c787c;if(!_0x2f5dcd)return!0x1;const _0x50c549=_0xe1bcff[_0x5d7d97(0x3e4)](_0x177d6a[_0x5d7d97(0x28c)]),{unitId:_0x5bf811,subUnitId:_0x4a32ae,pivotTableId:_0x4b2921,tableFieldId:_0x4c1655}=_0x2f5dcd,_0xa08e9e=[],_0x116d55=[],_0x2360db=_0xe1bcff['get'](_0x1ed859[_0x5d7d97(0x107)]),_0x4c54e8=_0x2360db[_0x5d7d97(0x16b)](_0x5bf811,_0x4b2921),_0x49e77a=_0x2360db[_0x5d7d97(0x33b)](_0x5bf811,_0x4a32ae,_0x4b2921);if(!(_0x49e77a!=null&&_0x49e77a[_0x5d7d97(0x179)][_0x5d7d97(0x3d2)]))return!0x1;const _0x27e7ed=Object[_0x5d7d97(0x31d)](_0x49e77a[_0x5d7d97(0x179)][_0x5d7d97(0x3d2)])['find'](_0x4e5a9b=>_0x4e5a9b['id']===_0x4c1655);if(!_0x27e7ed)return!0x1;const _0xaa6e01=_0x27e7ed['dataFieldId'];if(!(_0x4c54e8!=null&&_0x4c54e8[_0x5d7d97(0x2dc)]))return!0x1;const _0x2bb420=Object['values'](_0x4c54e8==null?void 0x0:_0x4c54e8[_0x5d7d97(0x2dc)])[_0x5d7d97(0x24e)](_0x33331e=>_0x33331e['id']===_0xaa6e01);if(!_0x2bb420)return!0x1;_0x175d11[_0x5d7d97(0x344)](_0x2bb420)&&_0xa08e9e[_0x5d7d97(0x1a2)]({'id':_0x18c1ce['id'],'params':{..._0x2f5dcd,'dateType':_0x2bb420['dateType']}}),_0x116d55[_0x5d7d97(0x1a2)]({'id':_0x18c1ce['id'],'params':{..._0x2f5dcd}});const _0x4bc3a5=_0xe1bcff['get'](_0x177d6a[_0x5d7d97(0x353)]);return _0x177d6a['sequenceExecute'](_0x116d55,_0x4bc3a5)&&_0x50c549['pushUndoRedo']({'unitID':_0x5bf811,'undoMutations':_0xa08e9e,'redoMutations':_0x116d55}),!0x0;}},_0x303d16={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':_0x1c787c(0x1cb),async 'handler'(_0x9b0185,_0x31a94a){const _0x4c7c69=_0x1c787c;if(!_0x31a94a)return!0x1;const _0x4a8505=_0x9b0185[_0x4c7c69(0x3e4)](_0x177d6a['ICommandService']),_0x17ba80=_0x9b0185['get'](_0x177d6a[_0x4c7c69(0x28c)]),_0x582b31=_0x9b0185[_0x4c7c69(0x3e4)](_0x1ed859['SheetsPivotRPCService']),{displayName:_0x556792,subtotalType:_0x3e7987,format:_0x5254a3,tableFieldId:_0x5f30b4,pivotTableId:_0x31fda2,unitId:_0x51eb83,subUnitId:_0x27dc5b}=_0x31a94a,_0x35f23a=(await _0x582b31[_0x4c7c69(0x22c)]({'unitId':_0x51eb83,'subUnitId':_0x27dc5b,'pivotTableId':_0x31fda2,'params':{'type':_0x2b8e9a['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x5f30b4,'displayName':_0x556792,'subtotalType':_0x3e7987,'format':_0x5254a3}}}))[_0x4c7c69(0x1d1)][_0x4c7c69(0x29c)];if(!_0x35f23a)return!0x1;const {changesets:_0x459e8c,view:_0xae5dde,pivotTableConfig:_0x33ecbe,isEmpty:_0x3b042f}=_0x35f23a,_0x38df00=_0x33ecbe['targetCellInfo'],_0x1ae969=new _0x175d11[(_0x4c7c69(0x2e1))]();_0x1ae969['formJSON'](_0xae5dde);const _0x10f87f={'cellInfo':_0x38df00,'view':_0x1ae969,'isEmpty':_0x3b042f};if(!await _0x9b0185[_0x4c7c69(0x3e4)](_0x1ed859[_0x4c7c69(0x354)])[_0x4c7c69(0x1e0)][_0x4c7c69(0x39d)](_0x3ba713)(!0x0,_0x10f87f))return!0x1;const _0x4cdb1c=_0x44d3aa(_0x9b0185,_0x1ae969,_0x38df00,_0x3b042f),_0x78cfa6=_0x458275(_0x9b0185,_0x10f87f),{undos:_0x5bb789,redos:_0x1bd8d2}=_0x215de6(_0x4a8505,{'pivotTableId':_0x31fda2,'unitId':_0x51eb83,'subUnitId':_0x27dc5b},_0x459e8c);return _0x177d6a[_0x4c7c69(0x160)]([..._0x4cdb1c['redos'],..._0x78cfa6[_0x4c7c69(0x166)],..._0x1bd8d2],_0x4a8505),_0x17ba80['pushUndoRedo']({'unitID':_0x51eb83,'redoMutations':[..._0x4cdb1c[_0x4c7c69(0x166)],..._0x78cfa6[_0x4c7c69(0x166)],..._0x1bd8d2],'undoMutations':[..._0x4cdb1c['undos'],..._0x78cfa6[_0x4c7c69(0x280)],..._0x5bb789]}),!0x0;}},_0x31e2bd={'type':_0x177d6a[_0x1c787c(0x196)][_0x1c787c(0x38a)],'id':_0x1c787c(0x18d),'handler'(_0x5d25a5,_0x59ce3e){const _0x182b59=_0x1c787c;if(!_0x59ce3e)return!0x1;if(!!_0x5d25a5[_0x182b59(0x3e4)](_0x177d6a['IConfigService'])[_0x182b59(0x19a)](_0x318491))return!0x0;const _0x3aa791=_0x5d25a5[_0x182b59(0x3e4)](_0x1ed859[_0x182b59(0x1af)]),{pivotTableId:_0x16df4b,deleteIds:_0x18c1da,collectionJSON:_0x3032b7,dataRangeInfo:_0x39f2d1,unitId:_0x3eb7dd,subUnitId:_0x21d6de}=_0x59ce3e,_0x34e8b0=_0x3aa791[_0x182b59(0x1f4)](_0x16df4b),_0x391758=_0x3aa791[_0x182b59(0x33b)](_0x3eb7dd,_0x21d6de,_0x16df4b);if(!_0x34e8b0||!_0x391758)return!0x1;const {collection:_0x3b32e5,updateDataFieldList:_0x372d5f}=_0x3aa791[_0x182b59(0x169)](_0x16df4b,_0x3032b7,_0x39f2d1,_0x391758[_0x182b59(0x30d)]);_0x3aa791[_0x182b59(0x172)](_0x3b32e5,_0x372d5f,_0x39f2d1),_0x34e8b0[_0x182b59(0x2fc)](_0x3b32e5);for(const _0x291771 of _0x18c1da)_0x3aa791[_0x182b59(0x3b5)](_0x39f2d1[_0x182b59(0x283)],_0x291771);const _0x23e350=_0x3aa791[_0x182b59(0x33b)](_0x3eb7dd,_0x21d6de,_0x16df4b);return _0x23e350[_0x182b59(0x2a8)]=JSON[_0x182b59(0x398)](JSON['stringify'](_0x39f2d1)),_0x3aa791[_0x182b59(0x285)]({'unitId':_0x3eb7dd,'subUnitId':_0x21d6de,'token':_0x16df4b,'type':_0x5a4701[_0x182b59(0x151)]}),!0x0;}},_0x3009e9={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':'sheet.command.update-pivot-table-source-range',async 'handler'(_0x4ae5f1,_0x37415b){const _0x1b7ab8=_0x1c787c,_0x2084fa=_0x4ae5f1[_0x1b7ab8(0x3e4)](_0x177d6a['ICommandService']),_0x16cccd=_0x4ae5f1['get'](_0x1ed859[_0x1b7ab8(0x206)]),_0x1d16c9=_0x4ae5f1[_0x1b7ab8(0x3e4)](_0x177d6a['IUndoRedoService']);if(!_0x37415b)return!0x1;const {token:_0x28031d,dataRangeInfo:_0xc0b3a,unitId:_0x16c021,subUnitId:_0x1074eb}=_0x37415b,_0x14c0f4=[],_0x347683=[],_0x430131=(await _0x16cccd[_0x1b7ab8(0x22c)]({'unitId':_0x16c021,'subUnitId':_0x1074eb,'pivotTableId':_0x28031d,'params':{'type':_0x2b8e9a['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0xc0b3a,'unitId':_0x16c021,'subUnitId':_0x1074eb}}}))[_0x1b7ab8(0x1d1)][_0x1b7ab8(0x348)];if(!_0x430131)return!0x1;const {changesets:_0x3a3102,deleteIds:_0x47b479,collectionConfig:_0x303000,oldCollectionConfig:_0x56f1d1,view:_0x2bf917,isEmpty:_0x168736,pivotTableConfig:_0x344ca3}=_0x430131;_0x347683[_0x1b7ab8(0x1a2)]({'id':_0x31e2bd['id'],'params':{'pivotTableId':_0x28031d,'deleteIds':_0x47b479,'collectionJSON':_0x303000,'dataRangeInfo':_0xc0b3a,'unitId':_0x16c021,'subUnitId':_0x1074eb}}),_0x14c0f4[_0x1b7ab8(0x262)]({'id':_0x31e2bd['id'],'params':{'pivotTableId':_0x28031d,'deleteIds':[],'collectionJSON':_0x56f1d1,'dataRangeInfo':_0x344ca3[_0x1b7ab8(0x2a8)],'unitId':_0x16c021,'subUnitId':_0x1074eb}});const _0x5b96dc=_0x344ca3[_0x1b7ab8(0x30d)],_0x478557=new _0x175d11[(_0x1b7ab8(0x2e1))]();_0x478557[_0x1b7ab8(0x391)](_0x2bf917);const _0x406b39={'cellInfo':_0x5b96dc,'view':_0x478557,'isEmpty':_0x168736};if(!await _0x4ae5f1['get'](_0x1ed859[_0x1b7ab8(0x354)])[_0x1b7ab8(0x1e0)][_0x1b7ab8(0x39d)](_0x3ba713)(!0x0,_0x406b39))return!0x1;const _0x250b59=_0x44d3aa(_0x4ae5f1,_0x478557,_0x5b96dc,_0x168736),_0x581f02=_0x458275(_0x4ae5f1,_0x406b39),{undos:_0x4d7be0,redos:_0x19ee08}=_0x215de6(_0x2084fa,{'pivotTableId':_0x28031d,'unitId':_0x16c021,'subUnitId':_0x1074eb},_0x3a3102);return _0x177d6a[_0x1b7ab8(0x160)]([..._0x250b59[_0x1b7ab8(0x166)],..._0x581f02[_0x1b7ab8(0x166)],..._0x347683,..._0x4d7be0],_0x2084fa),_0x1d16c9[_0x1b7ab8(0xff)]({'unitID':_0x16c021,'redoMutations':[..._0x250b59[_0x1b7ab8(0x166)],..._0x581f02['redos'],..._0x347683,..._0x4d7be0],'undoMutations':[..._0x250b59[_0x1b7ab8(0x280)],..._0x581f02[_0x1b7ab8(0x280)],..._0x14c0f4,..._0x19ee08]}),!0x0;}},_0x5b29a9={'type':_0x177d6a['CommandType'][_0x1c787c(0x335)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x44ec77,_0x274193){const _0x266b78=_0x1c787c;if(!_0x274193)return!0x1;const _0x4fdfe6=_0x44ec77['get'](_0x177d6a[_0x266b78(0x353)]),_0x12f298=_0x44ec77[_0x266b78(0x3e4)](_0x1ed859['SheetsPivotRPCService']),_0x433b83=_0x44ec77['get'](_0x177d6a[_0x266b78(0x22f)]),_0x51aa60=_0x44ec77[_0x266b78(0x3e4)](_0x177d6a[_0x266b78(0x28c)]),{pivotTableId:_0x593138,position:_0x2f14e1,index:_0x14e432}=_0x274193,_0x2d50c7=_0x22c23f[_0x266b78(0x109)](_0x433b83);if(!_0x2d50c7)return!0x1;const {unitId:_0xd419ad,subUnitId:_0x57e3e4}=_0x2d50c7,_0x3a5650=(await _0x12f298[_0x266b78(0x22c)]({'unitId':_0xd419ad,'subUnitId':_0x57e3e4,'pivotTableId':_0x593138,'params':{'type':_0x2b8e9a[_0x266b78(0x3a6)],'updateValuePosition':{'position':_0x2f14e1,'index':_0x14e432}}}))[_0x266b78(0x1d1)][_0x266b78(0xcf)];if(!_0x3a5650)return!0x1;const {changesets:_0x22d682,view:_0x3300e1,isEmpty:_0x22eaac,pivotTableConfig:_0x366420}=_0x3a5650,_0x211559=_0x366420[_0x266b78(0x30d)],_0x52bbf8=new _0x175d11[(_0x266b78(0x2e1))]();_0x52bbf8['formJSON'](_0x3300e1);const _0x107138=_0x44ec77['get'](_0x1ed859[_0x266b78(0x354)]),_0x392bb0={'cellInfo':_0x211559,'view':_0x52bbf8,'isEmpty':_0x22eaac};if(!await _0x107138[_0x266b78(0x1e0)][_0x266b78(0x39d)](_0x3ba713)(!0x0,_0x392bb0))return!0x1;const _0xd720c0=_0x44d3aa(_0x44ec77,_0x52bbf8,_0x211559,_0x22eaac),_0x6c1648=_0x458275(_0x44ec77,_0x392bb0),{undos:_0x121237,redos:_0x4fca62}=_0x215de6(_0x4fdfe6,{'pivotTableId':_0x593138,'unitId':_0xd419ad,'subUnitId':_0x57e3e4},_0x22d682);return _0x177d6a[_0x266b78(0x160)]([..._0xd720c0[_0x266b78(0x166)],..._0x6c1648[_0x266b78(0x166)],..._0x4fca62],_0x4fdfe6),_0x51aa60[_0x266b78(0xff)]({'unitID':_0xd419ad,'redoMutations':[..._0xd720c0[_0x266b78(0x166)],..._0x6c1648[_0x266b78(0x166)],..._0x4fca62],'undoMutations':[..._0xd720c0[_0x266b78(0x280)],..._0x6c1648[_0x266b78(0x280)],..._0x121237]}),!0x0;}},_0x2dd118={'type':_0x177d6a['CommandType'][_0x1c787c(0x38a)],'id':_0x1c787c(0x17d),'handler'(){return!0x0;}};var _0x21cb22=Object['getOwnPropertyDescriptor'],_0x2d7de0=(_0x599908,_0x2718d7,_0x5970ca,_0x3fced6)=>{for(var _0x3e86b8=_0x3fced6>0x1?void 0x0:_0x3fced6?_0x21cb22(_0x2718d7,_0x5970ca):_0x2718d7,_0x3f8cf6=_0x599908['length']-0x1,_0x36645c;_0x3f8cf6>=0x0;_0x3f8cf6--)(_0x36645c=_0x599908[_0x3f8cf6])&&(_0x3e86b8=_0x36645c(_0x3e86b8)||_0x3e86b8);return _0x3e86b8;},_0x417bd2=(_0x4c8c14,_0x9f7d18)=>(_0x4ee733,_0x559c0d)=>_0x9f7d18(_0x4ee733,_0x559c0d,_0x4c8c14);const _0x3f2da4=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x22b9d9=(_0x5d3bfb,_0x219a2b,_0x1e1b09)=>{const _0x28392c=_0x1c787c,_0x32b3f7=_0x5d3bfb[_0x28392c(0x16d)];_0x5d3bfb[_0x28392c(0x30c)](_0x2cf65a=>{const _0x30a691=_0x28392c,_0xa9df44=_0x2cf65a[_0x30a691(0x24c)](),_0x31eea5=_0x2cf65a[_0x30a691(0x1b8)](),_0x4afdc5=_0x2cf65a[_0x30a691(0x17b)](),_0x473056=_0x2cf65a['getDisplayName']();_0x219a2b[_0x31eea5]&&_0x219a2b[_0x31eea5]===_0x473056&&_0x4afdc5===_0x473056&&(_0x5d3bfb[_0x30a691(0x1b1)](_0xa9df44,_0x32b3f7['getDisplayName'](_0x31eea5)),_0x2cf65a[_0x30a691(0x32f)](_0x32b3f7['getDisplayName'](_0x31eea5)));}),_0x5d3bfb['iterateFieldByArea'](_0x175d11[_0x28392c(0x3d5)][_0x28392c(0x1c5)],_0x22d4b2=>{const _0x49477e=_0x28392c,_0x1704ec=_0x22d4b2['getId'](),_0x349ca8=_0x22d4b2[_0x49477e(0x1b8)](),_0x199209=_0x22d4b2[_0x49477e(0x17b)](),_0x21efac=_0x22d4b2['getDisplayName'](),_0x36860e=_0x22d4b2[_0x49477e(0x18e)](),_0x54a88a=_0x1e1b09(_0x199209,_0x36860e);_0x219a2b[_0x349ca8]&&_0x219a2b[_0x349ca8]===_0x199209&&_0x54a88a===_0x21efac&&(_0x5d3bfb['renameField'](_0x1704ec,_0x1e1b09(_0x32b3f7[_0x49477e(0x37e)](_0x349ca8),_0x36860e)),_0x22d4b2[_0x49477e(0x32f)](_0x32b3f7[_0x49477e(0x37e)](_0x349ca8)));});},_0x244cc6=(_0x450b6d,_0x42a0bf,_0x1318a0)=>{const _0x293e10=_0x1c787c;var _0x1c915d,_0x27609d;const {arrayFormulaCellData:_0x54417d,unitData:_0xb93f6}=_0x42a0bf,{unitId:_0x1040b2,subUnitId:_0x20303e}=_0x1318a0,_0x4f244f=_0x1318a0[_0x293e10(0x138)],{startColumn:_0x4fbcfb,endColumn:_0x7bab82}=_0x4f244f,_0x36a1b3=(_0x1c915d=_0x54417d==null?void 0x0:_0x54417d[_0x1040b2])==null?void 0x0:_0x1c915d[_0x20303e],_0xc616d4=(_0x27609d=_0xb93f6==null?void 0x0:_0xb93f6[_0x1040b2])==null?void 0x0:_0x27609d[_0x20303e],_0x3d1c54=new Set(),_0x1e777c=_0x7bab82-_0x4fbcfb+0x1,{dirtyRanges:_0x485f88}=_0x450b6d;if(_0x485f88)for(const {range:_0x2f9cc3,sheetId:_0x54ad30,unitId:_0x2b4b9b}of _0x485f88){if(_0x54ad30!==_0x20303e||_0x1040b2!==_0x2b4b9b)continue;const _0xdad8e2=_0x177d6a[_0x293e10(0x2e2)][_0x293e10(0x331)](_0x2f9cc3,_0x4f244f);if(_0xdad8e2){const {startColumn:_0x101c7a,endColumn:_0x3cc5c0}=_0xdad8e2;for(let _0x4c42c9=_0x101c7a;_0x4c42c9<=_0x3cc5c0;_0x4c42c9++)_0x3d1c54[_0x293e10(0x202)](_0x4c42c9);}}if(_0x3d1c54[_0x293e10(0x13f)]===_0x1e777c||_0x3d1c54[_0x293e10(0x13f)]===_0x1e777c)return Array[_0x293e10(0x135)](_0x3d1c54);if(_0xc616d4){const _0x49fd23=_0xc616d4[_0x293e10(0x122)](),_0x57185e=Object[_0x293e10(0x1fc)](_0x49fd23);for(const _0x56c1b2 of _0x57185e){const _0x4d8b39=Number(_0x56c1b2),_0x3bf026=_0x49fd23[_0x4d8b39];if(_0x3d1c54['size']===_0x1e777c)break;for(const _0x1e7bd2 in _0x3bf026){const _0x283167=Number(_0x1e7bd2);_0x283167<_0x4fbcfb||_0x283167>_0x7bab82||_0x3d1c54[_0x293e10(0x202)](_0x283167);}}}if(_0x36a1b3){const _0x214d2d=_0x36a1b3[_0x293e10(0x122)](),_0x462506=Object[_0x293e10(0x1fc)](_0x214d2d);for(const _0x1cffa9 of _0x462506){const _0x375326=Number(_0x1cffa9),_0x44b488=_0x214d2d[_0x375326];if(_0x3d1c54[_0x293e10(0x13f)]===_0x1e777c)break;for(const _0x37f3b9 in _0x44b488){const _0x2c07a1=Number(_0x37f3b9);_0x2c07a1<_0x4fbcfb||_0x2c07a1>_0x7bab82||_0x3d1c54[_0x293e10(0x202)](_0x2c07a1);}}}return Array[_0x293e10(0x135)](_0x3d1c54);},_0x373283=_0xe738a2=>{const _0x53d879=_0x1c787c,_0x27e5a5=new Set(),_0x2411ba=[];for(const _0x28fdde of _0xe738a2){const _0x20b0b6=_0x28fdde['startRow']+','+_0x28fdde[_0x53d879(0x31c)]+','+_0x28fdde[_0x53d879(0x235)]+','+_0x28fdde[_0x53d879(0x2d3)];_0x27e5a5['has'](_0x20b0b6)||(_0x27e5a5[_0x53d879(0x202)](_0x20b0b6),_0x2411ba[_0x53d879(0x1a2)](_0x28fdde));}return _0x2411ba;};let _0x4c9bd7=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0x58e9d6,_0x55af55,_0x442a4b,_0x18637a,_0x59460a){const _0x1648a2=_0x1c787c;super(),_0x117630(this,'_globalSubject',new _0x2d0b5f[(_0x1648a2(0x38c))](!0x0)),_0x117630(this,_0x1648a2(0x316),_0x551223=>{const _0x4d7958=_0x1648a2;this[_0x4d7958(0x30a)]['next'](!0x1);}),_0x117630(this,'_globalComputedEndHelpFunc',_0x4926ff=>{const _0x351d19=_0x1648a2;this[_0x351d19(0x30a)][_0x351d19(0x31b)](!0x0);}),(this[_0x1648a2(0x1a9)]=_0x58e9d6,this[_0x1648a2(0x361)]=_0x55af55,this[_0x1648a2(0x397)]=_0x442a4b,this['_globalComputingSrv']=_0x18637a,this['_injector']=_0x59460a,this[_0x1648a2(0x27a)](),this[_0x1648a2(0x220)]());}[_0x1c787c(0x27a)](){const _0x4e38a6=_0x1c787c;this[_0x4e38a6(0x14e)](),this[_0x4e38a6(0x358)](),this[_0x4e38a6(0x1a1)](),this[_0x4e38a6(0x10b)]();}[_0x1c787c(0x1e3)](){const _0x160285=_0x1c787c;this['_globalComputingSrv'][_0x160285(0x2ce)](this[_0x160285(0x30a)]),_0x175d11[_0x160285(0x1e2)][_0x160285(0x27c)](_0x175d11[_0x160285(0x102)][_0x160285(0x117)],this[_0x160285(0x316)]),_0x175d11['PivotTable'][_0x160285(0x27c)](_0x175d11[_0x160285(0x102)][_0x160285(0x10a)],this[_0x160285(0x304)]);}[_0x1c787c(0x220)](){const _0x8c6dee=_0x1c787c;this[_0x8c6dee(0x29f)](this['_commandService']['onCommandExecuted'](_0x49aafa=>{const _0x1acf6a=_0x8c6dee;_0x49aafa['id']===_0x22c23f['MoveRangeMutation']['id']&&this[_0x1acf6a(0x1a9)][_0x1acf6a(0x394)](_0x49aafa[_0x1acf6a(0x228)]);})),this[_0x8c6dee(0x29f)](this[_0x8c6dee(0x397)][_0x8c6dee(0x357)](_0x110caf=>{const _0x4642f1=_0x8c6dee;if(_0x110caf['id']!==_0x4c8972['id'])return;const _0x504a63=_0x110caf[_0x4642f1(0x228)],{unitId:_0x59849b,subUnitId:_0x102c6e,pivotTableId:_0x4f111e}=_0x504a63,_0x1e30d5=_0x504a63['params']['type'],_0x2544c3={};switch(_0x1e30d5){case _0x2b8e9a[_0x4642f1(0x1bb)]:{const _0x159ca5=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x22d)];if(!_0x159ca5)return;const {row:_0x2965e7,col:_0xb4d362,cellData:_0x125d58,pivotItemRenderInfoCache:_0x38df21,tableFieldId:_0x139ea7}=_0x159ca5,_0x315eb7=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x504a63[_0x4642f1(0x399)]);if(!_0x315eb7||!_0x38df21)return;if(_0x139ea7){const _0x5abce1=_0x315eb7['getDataFieldByTableId'](_0x139ea7);if(!_0x5abce1)return;_0x2544c3[_0x4642f1(0x22d)]={..._0x315eb7['getDataFieldItemInfo'](_0x5abce1),'tableFieldId':_0x139ea7,'pivotTableId':_0x504a63[_0x4642f1(0x399)],'filterInfo':_0x315eb7[_0x4642f1(0x3e1)](_0x139ea7),'sortInfo':_0x315eb7[_0x4642f1(0x303)](_0x139ea7),'format':_0x315eb7[_0x4642f1(0x32c)](_0x139ea7)};}else{const _0x209605=_0x2c9fc9(_0x2965e7,_0xb4d362,_0x125d58,_0x315eb7,_0x38df21),_0x34e44f=_0x209605==null?void 0x0:_0x209605['filterId'];if(!_0x34e44f)return;const _0x19b2b2=_0x315eb7[_0x4642f1(0x34d)](_0x34e44f);if(!_0x19b2b2)return;_0x2544c3[_0x4642f1(0x22d)]={..._0x315eb7[_0x4642f1(0x251)](_0x19b2b2),'tableFieldId':_0x34e44f,'pivotTableId':_0x504a63[_0x4642f1(0x399)],'filterInfo':_0x315eb7[_0x4642f1(0x3e1)](_0x34e44f),'sortInfo':_0x315eb7[_0x4642f1(0x303)](_0x34e44f),'format':_0x315eb7[_0x4642f1(0x32c)](_0x34e44f)};}}break;case _0x2b8e9a['Panel']:{const _0x262c5d=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x21b)];if(!_0x262c5d)return;const {pivotTableId:_0x2f314c}=_0x262c5d,_0x1e22a8=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x2f314c);if(!_0x1e22a8)return;const _0x284fff=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x2f314c),_0x1a8d3b=_0xb5fa0a(_0x1e22a8,_0x2f314c,_0x284fff);_0x2544c3['panel']=_0x1a8d3b;}break;case _0x2b8e9a['AddPivotField']:{const _0xea2126=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e),_0xbbd46e=this[_0x4642f1(0x1a9)][_0x4642f1(0x35d)](_0x59849b),_0x41b8ec=_0xbbd46e[_0x4642f1(0x16b)](_0x4f111e);let _0x33e314=null;const _0x386e44=this[_0x4642f1(0x1a9)][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e),_0x4d9bd9=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x2b2)];if(!_0xea2126||!_0x386e44||!_0x4d9bd9)return!0x1;const {dataFieldId:_0x5178d8,fieldArea:_0x396a20,index:_0x4091f0}=_0x4d9bd9;_0xea2126['startCollectChangeset']();const _0x389cb9=_0xea2126[_0x4642f1(0xd3)](_0x5178d8,_0x396a20,_0x4091f0);if(_0x389cb9&&_0x396a20===_0x175d11['PivotTableFiledAreaEnum'][_0x4642f1(0x1c5)]){const _0x14be34=_0x389cb9[_0x4642f1(0x24c)](),_0x2e97db=_0xea2126[_0x4642f1(0x34d)](_0x14be34);if(_0x2e97db){const _0x472c84=_0x2e97db==null?void 0x0:_0x2e97db[_0x4642f1(0x2c3)]();_0xea2126[_0x4642f1(0x2d2)](_0x389cb9[_0x4642f1(0x24c)](),_0x472c84===_0x175d11[_0x4642f1(0xea)][_0x4642f1(0x1ea)]?_0x175d11[_0x4642f1(0x1ce)][_0x4642f1(0x259)]:_0x175d11[_0x4642f1(0x1ce)][_0x4642f1(0x341)]);}const _0x13af73=_0xea2126[_0x4642f1(0x1ba)](),_0x2baf19=_0xea2126['getValuePosition'](),_0x38642b=_0xea2126[_0x4642f1(0x1e4)](_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x1c5)]);if(_0x13af73===-0x1&&_0x38642b>0x1){const _0x135455=_0x2baf19===_0x175d11[_0x4642f1(0x3a3)][_0x4642f1(0x2f1)]?_0x175d11['PivotTableValuePositionEnum']['Column']:_0x2baf19,_0x4552a5=_0x135455===_0x175d11['PivotTableValuePositionEnum'][_0x4642f1(0xf0)]?_0x175d11['PivotTableFiledAreaEnum'][_0x4642f1(0xf0)]:_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x3ca)];_0xea2126['updateValuePosition'](_0x135455,_0xea2126[_0x4642f1(0x1e4)](_0x4552a5));}}else{if(_0x389cb9&&(_0x396a20===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0xf0)]||_0x396a20===_0x175d11['PivotTableFiledAreaEnum'][_0x4642f1(0x3ca)])){const _0x257665=_0x389cb9['getId'](),_0x44e207=_0xea2126[_0x4642f1(0x34d)](_0x257665);if(_0x44e207&&(_0x44e207==null?void 0x0:_0x44e207[_0x4642f1(0x2c3)]())===_0x175d11[_0x4642f1(0xea)][_0x4642f1(0x381)]){const _0x25ed5a=_0x44e207[_0x4642f1(0x1ad)]();if(_0x25ed5a&&_0xea2126['setFieldFormat'](_0x389cb9[_0x4642f1(0x24c)](),_0x25ed5a),!_0x41b8ec[_0x4642f1(0x189)]()[_0x4642f1(0x32e)](_0x5b93c6=>{const _0x514361=_0x4642f1,_0x5af009=_0x41b8ec[_0x514361(0x3db)](_0x5b93c6);return _0x175d11[_0x514361(0xc9)](_0x5af009)?_0x5af009[_0x514361(0x232)]()[_0x514361(0x396)]===_0x5178d8:!0x1;})){const _0x38f4a5=_0xbbd46e[_0x4642f1(0x24b)](),_0xca8c9e=_0x340d4d(_0x44e207[_0x4642f1(0xf5)],_0x44e207[_0x4642f1(0x393)]),_0x4668ff=_0x44e207[_0x4642f1(0x2b5)]()+_0x4642f1(0x1c4)+_0x4e9638(this[_0x4642f1(0x343)],_0xca8c9e),_0x3f1b3d=new _0x175d11['DateGroupField'](_0x38f4a5,_0x4668ff,_0x175d11[_0x4642f1(0x35c)](0x3),_0x44e207[_0x4642f1(0x24c)](),_0xca8c9e);_0xbbd46e['addDataFieldWithoutUnitInfo'](_0x3f1b3d),_0x41b8ec[_0x4642f1(0x3a0)](_0x38f4a5,_0x4668ff),_0xea2126[_0x4642f1(0xd3)](_0x38f4a5,_0x396a20,(_0x4091f0!=null?_0x4091f0:0x0)+0x1),_0x33e314=_0x3f1b3d;}}}}const _0x137930=_0xea2126[_0x4642f1(0x31a)](),_0x6ba9e=_0xea2126['query']()[_0x4642f1(0x32b)]();let _0x5ac5ab;if(_0x33e314){_0x5ac5ab=_0x33e314[_0x4642f1(0x32b)]();const _0x1366fa=_0x33e314[_0x4642f1(0x24c)]();_0x41b8ec[_0x4642f1(0xdf)](_0x1366fa);let _0x140ebb=!0x0;for(const _0x31a706 in _0xbbd46e[_0x4642f1(0x145)])if(_0xbbd46e[_0x4642f1(0x145)][_0x31a706][_0x4642f1(0x189)]()[_0x4642f1(0x29d)](_0x1366fa)){_0x140ebb=!0x1;break;}_0x140ebb&&_0xbbd46e[_0x4642f1(0x1db)](_0x1366fa);}const _0x235e60=_0xea2126['endCollectChangeset']();_0x2544c3[_0x4642f1(0x2b2)]={'view':_0x6ba9e,'changesets':_0x235e60,'isEmpty':_0x137930,'pivotTableConfig':_0x386e44,'shouldBeAddedGroupJSON':_0x5ac5ab};}break;case _0x2b8e9a[_0x4642f1(0xd6)]:{const _0x5dd9db=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x3cd)];if(!_0x5dd9db)return;const _0x217a83=_0x5dd9db[_0x4642f1(0x2a8)],_0x5e8e36=_0x5dd9db[_0x4642f1(0x399)],{collection:_0x9ef8a7}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x217a83[_0x4642f1(0x283)],'sheetName':_0x217a83[_0x4642f1(0x376)],'subUnitId':_0x217a83[_0x4642f1(0x27d)],'range':_0x217a83[_0x4642f1(0x138)]}),_0x1ba749=new _0x175d11[(_0x4642f1(0x1e2))](_0x9ef8a7,void 0x0,_0x5e8e36),_0x108ae1=_0x1ba749['query'](),_0x4e9718=_0x1ba749['toJSON'](),_0x5ba058=_0x9ef8a7[_0x4642f1(0x32b)]();_0x2544c3[_0x4642f1(0x3cd)]={'view':_0x108ae1,'fieldsConfig':_0x4e9718,'collectionConfig':_0x5ba058,'isEmpty':_0x1ba749[_0x4642f1(0x31a)]()};}break;case _0x2b8e9a['MovePivotField']:{const _0x5d78cd=_0x504a63[_0x4642f1(0x228)]['movePivotField'];if(!_0x5d78cd)return;const {fieldId:_0x34a8f1,area:_0x413f5f,index:_0x4488c1}=_0x5d78cd,_0xa8f203=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0xa8f203)return;const _0x44eff3=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e);if(!_0x44eff3)return;_0x44eff3[_0x4642f1(0xd8)]();const {area:_0x41b9d5,index:_0x22016f}=_0x44eff3[_0x4642f1(0x2b3)](_0x34a8f1);if(_0x44eff3[_0x4642f1(0x213)](_0x34a8f1,_0x413f5f,_0x4488c1),_0x413f5f===_0x175d11[_0x4642f1(0x3d5)]['Value']&&_0x44eff3['getTableFieldById'](_0x34a8f1)[_0x4642f1(0x18e)]()===void 0x0){const _0x2ccae6=_0x44eff3[_0x4642f1(0x373)](_0x34a8f1);if(_0x2ccae6&&_0x2ccae6[_0x4642f1(0x18e)]()===void 0x0){const _0x42ee8d=_0x44eff3[_0x4642f1(0x34d)](_0x34a8f1);if(_0x42ee8d){const _0x3651e3=_0x42ee8d==null?void 0x0:_0x42ee8d[_0x4642f1(0x2c3)]();_0x44eff3['setSubtotalType'](_0x34a8f1,_0x3651e3===_0x175d11['PivotDataFieldDataTypeEnum'][_0x4642f1(0x1ea)]?_0x175d11[_0x4642f1(0x1ce)][_0x4642f1(0x259)]:_0x175d11[_0x4642f1(0x1ce)][_0x4642f1(0x341)]);}}}const _0x126505=_0x44eff3[_0x4642f1(0x3a5)](),_0x1a4961=_0x44eff3[_0x4642f1(0x1ba)](),_0x26ef1c=_0x44eff3['getFieldCountByArea'](_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x1c5)])>0x1;if(_0x26ef1c&&_0x41b9d5===_0x413f5f&&(_0x413f5f===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0xf0)]&&_0x126505===_0x175d11[_0x4642f1(0x3a3)]['Row']||_0x413f5f===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x3ca)]&&_0x126505===_0x175d11[_0x4642f1(0x3a3)][_0x4642f1(0x3ca)])){let _0xd71fcc=_0x1a4961;_0x22016f<=_0x1a4961&&_0xd71fcc--,_0x4488c1<=_0x1a4961&&_0xd71fcc++,_0x44eff3[_0x4642f1(0xcf)](_0x126505,_0xd71fcc);}else _0x26ef1c&&(_0x41b9d5===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0xf0)]&&_0x126505===_0x175d11[_0x4642f1(0x3a3)]['Row']||_0x41b9d5===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x3ca)]&&_0x126505===_0x175d11[_0x4642f1(0x3a3)]['Column'])&&_0x1a4961>=_0x22016f&&_0x44eff3[_0x4642f1(0xcf)](_0x126505,_0x1a4961-0x1),_0x26ef1c&&(_0x413f5f===_0x175d11['PivotTableFiledAreaEnum'][_0x4642f1(0xf0)]&&_0x126505===_0x175d11[_0x4642f1(0x3a3)][_0x4642f1(0xf0)]||_0x413f5f===_0x175d11[_0x4642f1(0x3d5)]['Column']&&_0x126505===_0x175d11[_0x4642f1(0x3a3)]['Column'])&&_0x1a4961>=_0x4488c1&&_0x44eff3['updateValuePosition'](_0x126505,_0x1a4961+0x1);const _0x3eb7c1=_0x44eff3[_0x4642f1(0x3ac)](),_0x3f71ef=_0x44eff3[_0x4642f1(0x31a)](),_0x27b61b=_0x44eff3[_0x4642f1(0x1cc)]();_0x2544c3[_0x4642f1(0x2a7)]={'view':_0x3eb7c1[_0x4642f1(0x32b)](),'changesets':_0x27b61b,'isEmpty':_0x3f71ef,'pivotTableConfig':_0xa8f203};}break;case _0x2b8e9a[_0x4642f1(0x1de)]:{const _0x570817=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x208)];if(!_0x570817)return;const _0x1660db=_0x570817[_0x4642f1(0x3cb)],_0x5c7a0a=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x5c7a0a)return!0x1;const _0x41a3e7=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x1f4)](_0x4f111e);if(!_0x41a3e7)return!0x1;_0x41a3e7[_0x4642f1(0xd8)]();for(const _0xd2abbe of _0x1660db){const {area:_0x4554c0}=_0x41a3e7[_0x4642f1(0x2b3)](_0xd2abbe);_0x4554c0===_0x175d11[_0x4642f1(0x3d5)]['Value']&&_0x41a3e7[_0x4642f1(0x191)](_0xd2abbe),(_0x4554c0===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0xf0)]||_0x4554c0===_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x3ca)])&&_0x41a3e7[_0x4642f1(0x114)](_0xd2abbe),_0x41a3e7[_0x4642f1(0x146)](_0xd2abbe);}const _0x15f691=_0x41a3e7[_0x4642f1(0x31a)](),_0x38936a=_0x41a3e7[_0x4642f1(0x3ac)]()[_0x4642f1(0x32b)](),_0x418432=_0x41a3e7[_0x4642f1(0x1cc)]();_0x2544c3['removePivotField']={'changesets':_0x418432,'pivotTableConfig':_0x5c7a0a,'isEmpty':_0x15f691,'view':_0x38936a};}break;case _0x2b8e9a['SetPivotFilter']:{const _0x1fe02f=_0x504a63[_0x4642f1(0x228)]['setPivotFilter'];if(!_0x1fe02f)return;const {tableFieldId:_0x3d6e57,items:_0x286948,isAll:_0x1416ef}=_0x1fe02f,_0x1b0391=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e),_0x2b17c8=this[_0x4642f1(0x1a9)][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x1b0391||!_0x2b17c8)return;_0x1b0391[_0x4642f1(0xd8)](),_0x1b0391[_0x4642f1(0x277)](_0x3d6e57,{'type':_0x175d11['PivotFilterTypeEnum']['ManualFilter'],'list':_0x286948,'isAll':_0x1416ef});const _0x99d62e=_0x1b0391[_0x4642f1(0x31a)](),_0x24e533=_0x1b0391[_0x4642f1(0x3ac)]()[_0x4642f1(0x32b)](),_0x583892=_0x1b0391[_0x4642f1(0x1cc)]();_0x2544c3[_0x4642f1(0xda)]={'view':_0x24e533,'changesets':_0x583892,'isEmpty':_0x99d62e,'pivotTableConfig':_0x2b17c8};}break;case _0x2b8e9a[_0x4642f1(0x38b)]:{const _0x5efeea=_0x504a63['params'][_0x4642f1(0x38d)];if(!_0x5efeea)return;const {tableFieldId:_0x5a8e82,filterInfo:_0x432049}=_0x5efeea,_0x496563=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e),_0x4d59b8=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x496563||!_0x4d59b8)return;_0x496563[_0x4642f1(0xd8)](),_0x496563[_0x4642f1(0x356)](_0x5a8e82,_0x432049);const _0x4a5925=_0x496563[_0x4642f1(0x31a)](),_0x359910=_0x496563[_0x4642f1(0x3ac)]()[_0x4642f1(0x32b)](),_0x595832=_0x496563[_0x4642f1(0x1cc)]();_0x2544c3[_0x4642f1(0x38d)]={'view':_0x359910,'changesets':_0x595832,'isEmpty':_0x4a5925,'pivotTableConfig':_0x4d59b8};}break;case _0x2b8e9a[_0x4642f1(0x3c9)]:{const _0x48f090=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x270)];if(!_0x48f090)return;const {tableFieldId:_0x2fb56,info:_0x2ffe63}=_0x48f090,_0x198445=this[_0x4642f1(0x1a9)]['getPivotTableInstance'](_0x4f111e),_0x278f86=this[_0x4642f1(0x1a9)][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x198445||!_0x278f86)return;_0x198445[_0x4642f1(0xd8)](),_0x198445[_0x4642f1(0x161)](_0x2fb56,_0x2ffe63);const _0x14372c=_0x198445[_0x4642f1(0x31a)](),_0x590a64=_0x198445[_0x4642f1(0x3ac)]()['toJSON'](),_0x3ee468=_0x198445[_0x4642f1(0x1cc)]();_0x2544c3[_0x4642f1(0x270)]={'view':_0x590a64,'changesets':_0x3ee468,'isEmpty':_0x14372c,'pivotTableConfig':_0x278f86};}break;case _0x2b8e9a['SetPivotSetting']:{const _0x3b399b=_0x504a63['params']['setPivotSetting'];if(!_0x3b399b)return;const {tableFieldId:_0xe447fe,displayName:_0x56bb09,subtotalType:_0x34a927,format:_0x34720c}=_0x3b399b,_0x498111=this[_0x4642f1(0x1a9)]['getPivotTableInstance'](_0x4f111e),_0x517ff6=this[_0x4642f1(0x1a9)][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x498111||!_0x517ff6)return;_0x498111[_0x4642f1(0xd8)](),_0x56bb09!==void 0x0&&_0x498111['renameField'](_0xe447fe,_0x56bb09),_0x34a927!==void 0x0&&_0x498111['setSubtotalType'](_0xe447fe,_0x34a927),_0x34720c!==void 0x0&&_0x498111[_0x4642f1(0x25e)](_0xe447fe,_0x34720c);const _0x191662=_0x498111['isEmpty'](),_0x43e035=_0x498111[_0x4642f1(0x3ac)]()['toJSON'](),_0x213f29=_0x498111[_0x4642f1(0x1cc)]();_0x2544c3['setPivotSetting']={'changesets':_0x213f29,'pivotTableConfig':_0x517ff6,'isEmpty':_0x191662,'view':_0x43e035};}break;case _0x2b8e9a[_0x4642f1(0x194)]:{const _0x2845c6=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x348)];if(!_0x2845c6)return;const {dataRangeInfo:_0x5f4434,unitId:_0x469ab0,subUnitId:_0x50d9d5}=_0x2845c6,_0x23c975=this[_0x4642f1(0x1a9)][_0x4642f1(0x33b)](_0x469ab0,_0x50d9d5,_0x4f111e),_0x1e6cd8=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e);if(!this[_0x4642f1(0x1a9)][_0x4642f1(0x16b)](_0x469ab0,_0x4f111e)||!_0x1e6cd8||!_0x23c975)return;const _0xe3519f=this[_0x4642f1(0x1a9)][_0x4642f1(0x129)](_0x469ab0,_0x4f111e,_0x5f4434),_0x19ebb4=this[_0x4642f1(0x1a9)][_0x4642f1(0x16b)](_0x469ab0,_0x4f111e)[_0x4642f1(0x32b)](),{collection:_0x26ff39}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x5f4434['unitId'],'sheetName':_0x5f4434['sheetName'],'subUnitId':_0x5f4434['subUnitId'],'range':_0x5f4434[_0x4642f1(0x138)]}),_0x26144f=_0x26ff39[_0x4642f1(0x32b)]();_0x1e6cd8['startCollectChangeset']();const _0x12a4ba=this[_0x4642f1(0x1a9)][_0x4642f1(0x35d)](_0x469ab0)[_0x4642f1(0x130)]()||_0x175d11[_0x4642f1(0x3c4)];_0x1e6cd8[_0x4642f1(0x153)](_0x11cbcf=>{const _0x312940=_0x4642f1,_0x1e465f=_0x11cbcf[_0x312940(0x1b8)]();if(!_0x26ff39[_0x312940(0x16f)](_0x1e465f)){const _0x1df63c=_0x26ff39[_0x312940(0x290)](_0x11cbcf[_0x312940(0x17b)]());if(_0x1df63c){_0x1e6cd8[_0x312940(0xed)](_0x11cbcf[_0x312940(0x24c)](),_0x1df63c[_0x312940(0x2b5)](),_0x1df63c[_0x312940(0x24c)]());const {area:_0x31b6b9}=_0x1e6cd8[_0x312940(0x2b3)](_0x11cbcf[_0x312940(0x24c)]());let _0x76c177=_0x11cbcf[_0x312940(0x17b)]();const _0x47a6c9=_0x11cbcf[_0x312940(0x37e)]();if(_0x31b6b9===_0x175d11[_0x312940(0x3d5)]['Value']){const _0x42badb=_0x11cbcf[_0x312940(0x18e)]();_0x76c177=_0x12a4ba(_0x1df63c[_0x312940(0x2b5)](),_0x42badb);}_0x47a6c9!==_0x76c177&&_0x1e6cd8['renameField'](_0x11cbcf[_0x312940(0x24c)](),_0x76c177);}else _0x1e6cd8[_0x312940(0x146)](_0x11cbcf[_0x312940(0x24c)]());}});const _0x2ef61c=_0x1e6cd8[_0x4642f1(0x31a)](),_0x4dbe5c=_0x1e6cd8[_0x4642f1(0x3ac)]()[_0x4642f1(0x32b)](),_0x58afd0=_0x1e6cd8[_0x4642f1(0x1cc)]();_0x2544c3['updatePivotSource']={'view':_0x4dbe5c,'changesets':_0x58afd0,'isEmpty':_0x2ef61c,'pivotTableConfig':_0x23c975,'collectionConfig':_0x26144f,'oldCollectionConfig':_0x19ebb4,'deleteIds':_0xe3519f};}break;case _0x2b8e9a['UpdateValuePosition']:{const _0x335b49=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0xcf)];if(!_0x335b49)return;const {position:_0x658123,index:_0x486b23}=_0x335b49,_0xce17f4=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0xce17f4)return!0x1;const _0x46dcdc=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e);if(!_0x46dcdc)return!0x1;_0x46dcdc['startCollectChangeset'](),_0x46dcdc[_0x4642f1(0xcf)](_0x658123,_0x486b23);const _0x460bd5=_0x46dcdc[_0x4642f1(0x31a)](),_0x47022d=_0x46dcdc['query']()[_0x4642f1(0x32b)](),_0x3cea6f=_0x46dcdc['endCollectChangeset']();_0x2544c3[_0x4642f1(0xcf)]={'changesets':_0x3cea6f,'pivotTableConfig':_0xce17f4,'isEmpty':_0x460bd5,'view':_0x47022d};}break;case _0x2b8e9a[_0x4642f1(0x2fb)]:{const _0xc577a1=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0xe9)];if(!_0xc577a1)return;const {tableFieldId:_0x127c37,collapse:_0x5864a7,item:_0x169577}=_0xc577a1,_0x2ced01=this[_0x4642f1(0x1a9)][_0x4642f1(0x1f4)](_0x4f111e),_0xa786ae=this[_0x4642f1(0x1a9)]['getPivotTableConfig'](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x2ced01||!_0xa786ae)return;_0x2ced01[_0x4642f1(0xd8)](),_0x2ced01[_0x4642f1(0x23b)](_0x127c37,_0x5864a7,_0x169577);const _0x9e40e7=_0x2ced01[_0x4642f1(0x31a)](),_0x358881=_0x2ced01[_0x4642f1(0x3ac)]()[_0x4642f1(0x32b)](),_0x54c6f7=_0x2ced01[_0x4642f1(0x1cc)]();_0x2544c3[_0x4642f1(0xe9)]={'view':_0x358881,'isEmpty':_0x9e40e7,'pivotTableConfig':_0xa786ae,'changesets':_0x54c6f7};}break;case _0x2b8e9a[_0x4642f1(0x3c5)]:{const _0x419fe1=_0x504a63['params'][_0x4642f1(0x260)];if(!_0x419fe1)return;const {pivotTableConfig:_0x121cef}=_0x419fe1,_0x4551a1=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x1f4)](_0x4f111e),_0x20002b=this[_0x4642f1(0x1a9)][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x4551a1||!_0x20002b)return;_0x4551a1[_0x4642f1(0xd8)](),_0x594aa5(_0x4551a1,_0x121cef);const _0x54113c=_0x4551a1[_0x4642f1(0x31a)](),_0x3275a7=_0x4551a1[_0x4642f1(0x3ac)]()[_0x4642f1(0x32b)](),_0x3b315e=_0x4551a1['endCollectChangeset']();_0x2544c3[_0x4642f1(0x260)]={'view':_0x3275a7,'isEmpty':_0x54113c,'pivotTableConfig':{..._0x20002b,'fieldsConfig':_0x4551a1[_0x4642f1(0x32b)]()},'changesets':_0x3b315e};}break;case _0x2b8e9a[_0x4642f1(0x36e)]:{const _0x2cd348=_0x504a63[_0x4642f1(0x228)]['resetPivotTable'];if(!_0x2cd348)return;const _0x10aee5=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x1f4)](_0x4f111e),_0x14d40b=this['_sheetsPivotDataSourceModel'][_0x4642f1(0x33b)](_0x59849b,_0x102c6e,_0x4f111e);if(!_0x10aee5||!_0x14d40b)return;_0x10aee5[_0x4642f1(0xd8)](),_0x572cc8(_0x10aee5,_0x2cd348['resetArea']);const _0x1208be=_0x10aee5['query']()['toJSON'](),_0x3fc3e7=_0x10aee5['endCollectChangeset']();_0x2544c3['resetPivotTable']={'view':_0x1208be,'isEmpty':!0x0,'pivotTableConfig':{..._0x14d40b,'fieldsConfig':_0x10aee5[_0x4642f1(0x32b)]()},'changesets':_0x3fc3e7};}break;case _0x2b8e9a[_0x4642f1(0xcd)]:{const _0x5c1619=_0x504a63[_0x4642f1(0x228)][_0x4642f1(0x2ff)];if(!_0x5c1619)return;const _0x5aaa66=_0x5c1619[_0x4642f1(0x2a8)],_0x43fcff=_0x5c1619[_0x4642f1(0x399)],{collection:_0x228d6a}=this[_0x4642f1(0x1a9)]['createCollectionWithDataRange']({'unitId':_0x5aaa66[_0x4642f1(0x283)],'sheetName':_0x5aaa66['sheetName'],'subUnitId':_0x5aaa66[_0x4642f1(0x27d)],'range':_0x5aaa66[_0x4642f1(0x138)]}),_0x104761=new _0x175d11[(_0x4642f1(0x1e2))](_0x228d6a,void 0x0,_0x43fcff),_0x430fba=_0x228d6a[_0x4642f1(0x189)](),{rows:_0x31ca82,columns:_0x163665,filters:_0x250d91,values:_0x5a4b5a}=_0x5c1619[_0x4642f1(0x24f)];_0x104761[_0x4642f1(0xd8)]();for(const {field:_0x474e32,selectedItems:_0x4134d8}of _0x31ca82||[]){const _0x10cd96=_0x430fba[_0x474e32];if(_0x10cd96){const _0x220095=_0x104761[_0x4642f1(0xd3)](_0x10cd96,_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0xf0)]);_0x4134d8&&_0x220095&&_0x104761['setLabelFilterInfo'](_0x220095[_0x4642f1(0x24c)](),{'type':_0x175d11[_0x4642f1(0x2c4)][_0x4642f1(0x252)],'list':_0x4134d8,'isAll':!0x1});}}for(const {field:_0x1f823f,selectedItems:_0x5052c5}of _0x163665||[]){const _0xd468bd=_0x430fba[_0x1f823f];if(_0xd468bd){const _0x5e67a5=_0x104761['addFieldWithSourceId'](_0xd468bd,_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x3ca)]);_0x5052c5&&_0x5e67a5&&_0x104761['setLabelFilterInfo'](_0x5e67a5[_0x4642f1(0x24c)](),{'type':_0x175d11['PivotFilterTypeEnum'][_0x4642f1(0x252)],'list':_0x5052c5,'isAll':!0x1});}}for(const {field:_0x578fc4,selectedItems:_0x2b6c56}of _0x250d91||[]){const _0x5b04a2=_0x430fba[_0x578fc4];if(_0x5b04a2){const _0x1363d9=_0x104761[_0x4642f1(0xd3)](_0x5b04a2,_0x175d11[_0x4642f1(0x3d5)][_0x4642f1(0x1bb)]);_0x2b6c56&&_0x1363d9&&_0x104761['setLabelFilterInfo'](_0x1363d9[_0x4642f1(0x24c)](),{'type':_0x175d11[_0x4642f1(0x2c4)][_0x4642f1(0x252)],'list':_0x2b6c56,'isAll':!0x1});}}for(const {field:_0x2b62c2,subTotalType:_0x15961b,formatString:_0x26821d}of _0x5a4b5a||[]){const _0x2bccec=_0x228d6a['getFieldById'](_0x430fba[_0x2b62c2]);if(!_0x2bccec)continue;const _0x4ce7ff=_0x430fba[_0x2b62c2];if(_0x4ce7ff){const _0x149752=_0x104761['addFieldWithSourceId'](_0x4ce7ff,_0x175d11['PivotTableFiledAreaEnum'][_0x4642f1(0x1c5)]);if(_0x149752){if(_0x15961b!==void 0x0){_0x104761['setSubtotalType'](_0x149752[_0x4642f1(0x24c)](),_0x15961b);const _0x4ae413=this[_0x4642f1(0x1a9)][_0x4642f1(0x35d)](_0x5aaa66[_0x4642f1(0x283)])['getAutoDisplayNameFunction']()||_0x175d11['getAutoDisplayName'],_0x406dc6=_0x228d6a[_0x4642f1(0x37e)](_0x4ce7ff),_0x2be917=_0x4ae413(_0x406dc6,_0x15961b);_0x104761['renameField'](_0x149752['getId'](),_0x2be917);}else{if(_0x2bccec){const _0x11c7d1=_0x2bccec==null?void 0x0:_0x2bccec[_0x4642f1(0x2c3)]();_0x104761['setSubtotalType'](_0x149752[_0x4642f1(0x24c)](),_0x11c7d1===_0x175d11['PivotDataFieldDataTypeEnum'][_0x4642f1(0x1ea)]?_0x175d11['PivotSubtotalTypeEnum']['sum']:_0x175d11['PivotSubtotalTypeEnum'][_0x4642f1(0x341)]);}}_0x26821d&&_0x104761[_0x4642f1(0x25e)](_0x149752['getId'](),_0x26821d);}}}const _0x24e35d=_0x104761[_0x4642f1(0x3ac)](),_0x5a4530=_0x104761[_0x4642f1(0x32b)](),_0x37fdc3=_0x104761[_0x4642f1(0x31a)](),_0x5ec54b=_0x104761[_0x4642f1(0x1cc)](),_0x47c049=_0x228d6a[_0x4642f1(0x32b)]();_0x2544c3[_0x4642f1(0x2ff)]={'view':_0x24e35d,'fieldsConfig':_0x5a4530,'collectionConfig':_0x47c049,'isEmpty':_0x37fdc3,'changesets':_0x5ec54b};}break;case _0x2b8e9a[_0x4642f1(0x2c7)]:{const _0xf3ed1f=_0x2f5559(this['_injector'],_0x504a63);if(!_0xf3ed1f)return;const {range:_0x505bd8,sourceSubUnitId:_0x395222,sourceUnitId:_0x55e0fd,formatMap:_0x32c039,indexes:_0x261a80}=_0xf3ed1f;_0x2544c3[_0x4642f1(0x32a)]={'range':_0x505bd8,'sourceSubUnitId':_0x395222,'sourceUnitId':_0x55e0fd,'formatMap':_0x32c039,'indexes':_0x261a80};}break;}this['_commandService']['executeCommand'](_0x585cbb['id'],{'version':_0x504a63[_0x4642f1(0x15c)],'result':_0x2544c3},{'onlyLocal':!0x0});}));}[_0x1c787c(0x1a1)](){const _0x309a06=_0x1c787c;this['disposeWithMe'](this[_0x309a06(0x397)][_0x309a06(0x357)](_0x39e6ef=>{const _0x1169bb=_0x309a06;if(_0x39e6ef['id']!==_0x224063['id'])return;const _0x39cecf=_0x39e6ef[_0x1169bb(0x228)];return this[_0x1169bb(0x1a9)][_0x1169bb(0x253)](_0x39cecf[_0x1169bb(0x12a)]),!0x0;}));}['_subjectCollectionChange'](){const _0x45e302=_0x1c787c;this[_0x45e302(0x1a9)][_0x45e302(0x1a5)]['subscribe'](_0x4320b1=>{const _0x3faf26=_0x45e302;switch(_0x4320b1[_0x3faf26(0x18a)]){case _0x23a0a5[_0x3faf26(0x202)]:_0x4320b1[_0x3faf26(0x2bb)]&&_0x4320b1['targetCellInfo']&&this[_0x3faf26(0x218)](_0x4320b1[_0x3faf26(0x324)],_0x4320b1[_0x3faf26(0x2bb)],_0x4320b1[_0x3faf26(0x30d)]);break;case _0x23a0a5[_0x3faf26(0x113)]:{const {unitId:_0xab227a,subUnitId:_0x5cf2ab,token:_0xcf2eb4}=_0x4320b1;_0xab227a&&_0x5cf2ab&&_0xcf2eb4&&this['removeSourceRangeChange'](_0xab227a,_0x5cf2ab,_0xcf2eb4);}break;case _0x23a0a5[_0x3faf26(0x305)]:{const {token:_0x424c41,oldSourceRangeInfo:_0x511d1c,dataRangeInfo:_0x4f96b3,targetCellInfo:_0x3cc761}=_0x4320b1,{unitId:_0x2995b0,subUnitId:_0x1f2069}=_0x511d1c||{};_0x2995b0&&_0x1f2069&&_0x424c41&&this[_0x3faf26(0x3ce)](_0x2995b0,_0x1f2069,_0x424c41),_0x4f96b3&&_0x3cc761&&this[_0x3faf26(0x218)](_0x424c41,_0x4f96b3,_0x3cc761);}break;}});}[_0x1c787c(0x10b)](){const _0xa7bcbc=_0x1c787c;this[_0xa7bcbc(0x1a9)][_0xa7bcbc(0x35e)]['subscribe'](_0x577b48=>{const _0x21a119=_0xa7bcbc;Object[_0x21a119(0x1fc)](_0x577b48)['forEach'](_0x1d7a0e=>{const _0x2997a9=_0x21a119,_0x2e396c=this[_0x2997a9(0x1a9)][_0x2997a9(0xdd)](_0x1d7a0e);if(_0x2e396c){const _0x3eb6b9=this['_sheetsPivotDataSourceModel'][_0x2997a9(0x33b)](_0x2e396c==null?void 0x0:_0x2e396c[_0x2997a9(0x283)],_0x2e396c==null?void 0x0:_0x2e396c[_0x2997a9(0x27d)],_0x1d7a0e);_0x3eb6b9&&(this['handleSourceRangeChange'](_0x1d7a0e,_0x3eb6b9['sourceRangeInfo'],_0x3eb6b9[_0x2997a9(0x30d)]),this[_0x2997a9(0x1f9)]([{'unitId':_0x2e396c[_0x2997a9(0x283)],'subUnitId':_0x2e396c[_0x2997a9(0x27d)],'token':_0x1d7a0e}]));}});});}['_subjectViewChange'](){const _0xfdf790=_0x1c787c;this[_0xfdf790(0x1a9)][_0xfdf790(0x310)][_0xfdf790(0x2ed)](_0x19c9f7=>{const _0x5ab725=_0xfdf790,{unitId:_0x39e5ad,subUnitId:_0x98ad02,pivotTableId:_0x1ce0a1}=_0x19c9f7;_0x39e5ad&&_0x98ad02&&_0x1ce0a1&&this[_0x5ab725(0x1f9)]([{'unitId':_0x39e5ad,'subUnitId':_0x98ad02,'token':_0x1ce0a1}]);});}[_0x1c787c(0x1f9)](_0x1e6309){const _0x4c28ef=_0x1c787c,_0x2d95d5={};_0x1e6309[_0x4c28ef(0xe3)](_0x3f30cf=>{var _0x3d6f03,_0x1ad862;const {unitId:_0x5370e0,subUnitId:_0x2752e9,token:_0x5add3e}=_0x3f30cf;_0x2d95d5[_0x5370e0]=(_0x3d6f03=_0x2d95d5[_0x5370e0])!=null?_0x3d6f03:{},_0x2d95d5[_0x5370e0][_0x2752e9]=(_0x1ad862=_0x2d95d5[_0x5370e0][_0x2752e9])!=null?_0x1ad862:{},_0x2d95d5[_0x5370e0][_0x2752e9][_0x5add3e]=!0x0;}),this[_0x4c28ef(0x397)][_0x4c28ef(0x104)](_0x2dd118['id'],_0x2d95d5);}[_0x1c787c(0x3ce)](_0x342d73,_0x1f573c,_0x58aabe){const _0x4f2f30=_0x1c787c;this[_0x4f2f30(0x361)][_0x4f2f30(0x128)](_0x342d73,_0x1f573c,[_0x58aabe]);}[_0x1c787c(0x218)](_0x245e7d,_0xdcd62e,_0x166e05){const _0x2b4d3a=_0x1c787c,{unitId:_0x463642,subUnitId:_0x51c6b2}=_0xdcd62e;this[_0x2b4d3a(0x361)]['has'](_0x166e05[_0x2b4d3a(0x283)],_0x166e05[_0x2b4d3a(0x27d)],_0x245e7d)&&this['removeSourceRangeChange'](_0x463642,_0x51c6b2,_0x245e7d);const _0x509423={'sheetId':_0x51c6b2,..._0xdcd62e};this[_0x2b4d3a(0x361)][_0x2b4d3a(0x14d)](_0x166e05[_0x2b4d3a(0x283)],_0x166e05[_0x2b4d3a(0x27d)],_0x245e7d,{'unitId':_0x166e05[_0x2b4d3a(0x283)],'subUnitId':_0x166e05[_0x2b4d3a(0x27d)],'dependencyRanges':[_0x509423],'getDirtyData':(_0x425c7e,_0x381080)=>{const _0x2a18bf=_0x2b4d3a,_0x44eccf=this['_sheetsPivotDataSourceModel'],_0x2b00e2=_0x44eccf[_0x2a18bf(0xdd)](_0x245e7d);if(!_0x2b00e2)return _0x3f2da4();const {unitId:_0x3c5662,subUnitId:_0x371462}=_0x2b00e2,_0x3f3633=_0x244cc6(_0x425c7e,_0x381080,_0xdcd62e);if(_0x3f3633[_0x2a18bf(0x10f)]>0x0){const _0x49bfd4=_0x44eccf[_0x2a18bf(0x16b)](_0x463642,_0x245e7d),_0x305aa3=_0x49bfd4[_0x2a18bf(0x189)](),_0x22c784=this[_0x2a18bf(0x234)](_0xdcd62e['unitId'],_0xdcd62e[_0x2a18bf(0x27d)],_0x381080),_0x1ec3a5={},_0xd93cec=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x3c5662)[_0x2a18bf(0x130)]()||_0x175d11[_0x2a18bf(0x3c4)],_0xd0982c=[];for(const _0x827b32 of _0x3f3633){const _0x2820c2=_0x827b32-(_0xdcd62e[_0x2a18bf(0x138)][_0x2a18bf(0x235)]||0x0),_0x336f41=_0x305aa3[_0x2820c2];_0xd0982c[_0x2a18bf(0x1a2)](_0x336f41),_0x1ec3a5[_0x336f41]=_0x49bfd4[_0x2a18bf(0x3db)](_0x336f41)[_0x2a18bf(0x2b5)](),_0x44eccf[_0x2a18bf(0x35d)](_0x463642)[_0x2a18bf(0x1be)](_0x336f41,_0xdcd62e,_0x2820c2,_0x22c784);}_0x49bfd4[_0x2a18bf(0x231)](_0xd0982c)[_0x2a18bf(0xe3)](_0x5c5273=>{const _0x177bbe=_0x2a18bf,[_0x48124c,_0x4ad1ff]=_0x5c5273,_0x16d624=_0x49bfd4[_0x177bbe(0x3db)](_0x48124c),_0x36f0ba=_0x49bfd4[_0x177bbe(0x3db)](_0x4ad1ff);_0x16d624&&_0x36f0ba&&_0x16d624[_0x177bbe(0x28f)](_0x36f0ba);}),_0x49bfd4['updateAllDisplayName']();const _0x52195c=_0x44eccf[_0x2a18bf(0x1f4)](_0x245e7d);if(_0x52195c){_0x22b9d9(_0x52195c,_0x1ec3a5,_0xd93cec),_0x52195c['setDirty'](!0x0);const _0x25450d=_0x52195c['query'](),_0x464d7b=_0x44eccf[_0x2a18bf(0x33b)](_0x3c5662,_0x371462,_0x245e7d),_0x1d0c79=_0x44eccf[_0x2a18bf(0x35d)](_0x463642)['toJSON']();_0x44eccf['updateView'](_0x3c5662,_0x371462,_0x5a4701[_0x2a18bf(0x151)],_0x245e7d,_0x25450d,_0x464d7b,_0x1d0c79,!0x0);}}return this[_0x2a18bf(0x298)](_0x3c5662,_0x371462,_0x245e7d);}});}[_0x1c787c(0x234)](_0x185dc5,_0x45c87b,_0xdbe992){var _0x3b390c,_0x49a46e;const {arrayFormulaCellData:_0x1cd4e2,unitData:_0x469a08}=_0xdbe992,_0x557a4c=(_0x3b390c=_0x1cd4e2==null?void 0x0:_0x1cd4e2[_0x185dc5])==null?void 0x0:_0x3b390c[_0x45c87b],_0x2a6fad=(_0x49a46e=_0x469a08==null?void 0x0:_0x469a08[_0x185dc5])==null?void 0x0:_0x49a46e[_0x45c87b];return{'arrayFormulaCellDataMatrix':_0x557a4c,'unitDataMatrix':_0x2a6fad};}[_0x1c787c(0x298)](_0x18a9d4,_0x1ce7aa,_0x2bf895){const _0x56bce7=_0x1c787c,_0x2c997c=this[_0x56bce7(0x1a9)][_0x56bce7(0x140)](_0x18a9d4,_0x1ce7aa,_0x2bf895),_0x326296=[],_0x3ee8de=new _0x177d6a[(_0x56bce7(0xf7))]();if(_0x2c997c){const {rangeCache:_0x3d3788,matrix:_0x2878e4,oldRangeCache:_0x577696,oldMatrix:_0x393fb6}=_0x2c997c,_0x3efd74=_0x3e69b9(_0x577696),_0x5eaf99=_0x3e69b9(_0x3d3788);_0x326296[_0x56bce7(0x1a2)](..._0x5eaf99,..._0x3efd74),_0x393fb6&&_0x577696&&_0x3efd74['forEach'](_0x473b2b=>{const _0x3fb70e=_0x56bce7;for(let _0x3d1565=_0x473b2b[_0x3fb70e(0xc5)];_0x3d1565<=_0x473b2b[_0x3fb70e(0x31c)];_0x3d1565++)for(let _0x1c8c3=_0x473b2b[_0x3fb70e(0x235)];_0x1c8c3<=_0x473b2b[_0x3fb70e(0x2d3)];_0x1c8c3++)_0x3ee8de[_0x3fb70e(0x116)](_0x3d1565,_0x1c8c3);}),_0x2878e4&&_0x5eaf99&&_0x5eaf99[_0x56bce7(0xe3)](_0x287e7a=>{const _0x23fe6f=_0x56bce7;for(let _0x16496e=_0x287e7a['startRow'];_0x16496e<=_0x287e7a[_0x23fe6f(0x31c)];_0x16496e++)for(let _0x5931d1=_0x287e7a[_0x23fe6f(0x235)];_0x5931d1<=_0x287e7a['endColumn'];_0x5931d1++)_0x3ee8de[_0x23fe6f(0x14f)](_0x16496e,_0x5931d1,_0x2878e4[_0x23fe6f(0x33d)](_0x16496e,_0x5931d1));});}const _0x34af18={};return _0x34af18[_0x18a9d4]={[_0x1ce7aa]:_0x373283(_0x326296)},{'runtimeCellData':{[_0x18a9d4]:{[_0x1ce7aa]:_0x3ee8de}},'dirtyRanges':_0x34af18};}['dispose'](){}};_0x4c9bd7=_0x2d7de0([_0x417bd2(0x0,_0x177d6a[_0x1c787c(0x2d9)](_0x1ed859[_0x1c787c(0x1af)])),_0x417bd2(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x195fb3[_0x1c787c(0xe7)])),_0x417bd2(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x353)])),_0x417bd2(0x3,_0x177d6a['Inject'](_0x195fb3[_0x1c787c(0xc4)])),_0x417bd2(0x4,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x284)]))],_0x4c9bd7);var _0x4998e6=Object[_0x1c787c(0x275)],_0x4eea09=(_0x362899,_0x598ba4,_0x3387a2,_0x145ddc)=>{const _0x41270f=_0x1c787c;for(var _0x35ff6e=_0x145ddc>0x1?void 0x0:_0x145ddc?_0x4998e6(_0x598ba4,_0x3387a2):_0x598ba4,_0x4fe5ea=_0x362899[_0x41270f(0x10f)]-0x1,_0x195c89;_0x4fe5ea>=0x0;_0x4fe5ea--)(_0x195c89=_0x362899[_0x4fe5ea])&&(_0x35ff6e=_0x195c89(_0x35ff6e)||_0x35ff6e);return _0x35ff6e;},_0x5e2844=(_0x542e72,_0x4fe917)=>(_0x713b44,_0x12ae07)=>_0x4fe917(_0x713b44,_0x12ae07,_0x542e72);let _0x462905=class extends _0x177d6a['Disposable']{constructor(_0x137165,_0x2647ef,_0xa496c4,_0x5bda87){const _0x5efa80=_0x1c787c;super(),_0x117630(this,_0x5efa80(0xc6),new _0x177d6a[(_0x5efa80(0x2d5))]()),(this['_univerInstanceService']=_0x137165,this['_sheetInterceptorService']=_0x2647ef,this['_sheetsSelectionsService']=_0xa496c4,this[_0x5efa80(0xee)]=_0x5bda87,this[_0x5efa80(0x11c)]());}[_0x1c787c(0x11c)](){const _0x1db153=_0x1c787c;this[_0x1db153(0x29f)](this[_0x1db153(0x1f0)][_0x1db153(0x25c)]({'getMutations':_0x5a9d77=>{const _0x21fb06=_0x1db153;if(_0x5a9d77['id']===_0x22c23f[_0x21fb06(0x3b9)]['id']||_0x5a9d77['id']===_0x22c23f['ClearSelectionAllCommand']['id']){const _0x40b957=[],_0x1b9662=[],_0x26d368=this[_0x21fb06(0x1b7)][_0x21fb06(0x239)]()['map'](_0xfbd004=>_0xfbd004['range']),_0x29fa51=_0x22c23f[_0x21fb06(0x109)](this[_0x21fb06(0x214)]);if(!_0x29fa51)return{'redos':[],'undos':[]};const {unitId:_0x588b57,subUnitId:_0xc882c0}=_0x29fa51,_0x30cf93={},_0x1b2457=this[_0x21fb06(0xee)]['getSubUnitPivotConfigs'](_0x588b57,_0xc882c0);if(_0x1b2457!=null&&_0x1b2457[_0x21fb06(0x13f)])for(const [_0x5c466e,_0x32c477]of _0x1b2457){const {unitId:_0x1f63ee,subUnitId:_0x4e2a9b,row:_0x250115,col:_0x3e1bd3}=_0x32c477['targetCellInfo'];_0x1f63ee===_0x29fa51[_0x21fb06(0x283)]&&_0x4e2a9b===_0x29fa51[_0x21fb06(0x27d)]&&(_0x30cf93[_0x250115+'-'+_0x3e1bd3]=_0x5c466e);}return _0x26d368&&_0x29fa51&&_0x26d368['forEach'](_0x1a0528=>{const _0x5ed792=_0x21fb06;_0x177d6a[_0x5ed792(0x11d)][_0x5ed792(0x3b1)](_0x1a0528,(_0x21f094,_0x2b91df)=>{const _0x31796c=_0x5ed792,_0xe0eeb4=_0x21f094+'-'+_0x2b91df;if(_0x30cf93[_0xe0eeb4]){const _0x1df894=_0x30cf93[_0xe0eeb4];_0x40b957[_0x31796c(0x1a2)]({'id':_0x2d8900['id'],'params':{'unitId':_0x588b57,'subUnitId':_0xc882c0,'pivotTableId':_0x1df894}});const _0x3f3a21=this[_0x31796c(0xee)][_0x31796c(0x16b)](_0x588b57,_0x1df894),_0x2aeabb=this['_sheetsPivotTableConfigModel'][_0x31796c(0x33b)](_0x588b57,_0xc882c0,_0x1df894);_0x1b9662[_0x31796c(0x1a2)]({'id':_0x1f645b['id'],'params':{'unitId':_0x588b57,'subUnitId':_0xc882c0,'pivotTableId':_0x1df894,'pivotTableConfig':_0x2aeabb,'collectionConfig':_0x3f3a21}});}});}),{'redos':_0x40b957,'undos':_0x1b9662};}return{'redos':[],'undos':[]};}}));}};_0x462905=_0x4eea09([_0x5e2844(0x0,_0x177d6a['IUniverInstanceService']),_0x5e2844(0x1,_0x177d6a['Inject'](_0x22c23f['SheetInterceptorService'])),_0x5e2844(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x22c23f[_0x1c787c(0x1e7)])),_0x5e2844(0x3,_0x177d6a['Inject'](_0x1ed859['SheetsPivotTableConfigModel']))],_0x462905);var _0x2bc7d6=Object['getOwnPropertyDescriptor'],_0x19dc84=(_0x3f0d2a,_0xb439fc,_0x189665,_0x42270c)=>{for(var _0x490cce=_0x42270c>0x1?void 0x0:_0x42270c?_0x2bc7d6(_0xb439fc,_0x189665):_0xb439fc,_0x4e1b39=_0x3f0d2a['length']-0x1,_0x1949e2;_0x4e1b39>=0x0;_0x4e1b39--)(_0x1949e2=_0x3f0d2a[_0x4e1b39])&&(_0x490cce=_0x1949e2(_0x490cce)||_0x490cce);return _0x490cce;},_0x134bdc=(_0x4a1ca0,_0x5c3c70)=>(_0x24637d,_0x360d5f)=>_0x5c3c70(_0x24637d,_0x360d5f,_0x4a1ca0);let _0x4e3204=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0x4e459f,_0x1dd055,_0x4361c4,_0x24c464,_0x11d375){const _0x2c992a=_0x1c787c;super(),this[_0x2c992a(0x1f0)]=_0x4e459f,this[_0x2c992a(0x343)]=_0x1dd055,this['_univerInstanceService']=_0x4361c4,this[_0x2c992a(0xee)]=_0x24c464,this[_0x2c992a(0x2f8)]=_0x11d375,this[_0x2c992a(0x1ca)]();}[_0x1c787c(0x3b2)](_0x5a58b3,_0x365267,_0x394abf){const _0x14dcec=_0x1c787c,{pageView:_0x344b97,cornerView:_0x214b33,rowView:_0x5c8a06,colView:_0x93281,dataView:_0x2c0fab}=_0x365267,_0x721a37=_0x5a58b3;let _0x8cf603;if(_0x394abf)_0x8cf603=[..._0x2c852f(_0x721a37)];else{const _0x22d693=_0x397824(_0x721a37,_0x344b97,!0x0),_0x405633=_0x344b97[_0x14dcec(0x30e)]>=0x0?_0x344b97[_0x14dcec(0x30e)]+0x1:0x0,_0x3e93a2=_0x214b33[_0x14dcec(0x286)],_0x5b45e0=_0x214b33[_0x14dcec(0xd7)],_0x3257e3=_0x22d693[_0x14dcec(0x10f)]>0x0?_0x2afc20:0x0,_0x97d4e=_0x397824({'row':_0x721a37[_0x14dcec(0x2e7)]+_0x405633+_0x3257e3,'col':_0x721a37[_0x14dcec(0x368)]},_0x214b33,!0x1,!0x1),_0x14963c=_0x397824({'row':_0x721a37['row']+_0x405633+_0x3257e3+_0x3e93a2,'col':_0x721a37[_0x14dcec(0x368)]},_0x5c8a06,!0x1,!0x0),_0x265267=_0x397824({'row':_0x721a37[_0x14dcec(0x2e7)]+_0x405633+_0x3257e3,'col':_0x721a37[_0x14dcec(0x368)]+_0x5b45e0},_0x93281,!0x1,!0x0),_0x28c390=_0x397824({'row':_0x721a37['row']+_0x405633+_0x3257e3+_0x3e93a2,'col':_0x721a37[_0x14dcec(0x368)]+_0x5b45e0},_0x2c0fab,!0x1,!0x0);_0x8cf603=[..._0x22d693,..._0x97d4e,..._0x14963c,..._0x265267,..._0x28c390];}return _0x8cf603;}[_0x1c787c(0x1ca)](){const _0x67f8fd=_0x1c787c;this[_0x67f8fd(0x29f)](this['_sheetsPivotTableService']['interceptor']['intercept'](this[_0x67f8fd(0x2f8)]['interceptor']['getInterceptPoints']()[_0x67f8fd(0x1ec)],{'handler':(_0x3fae49,_0x35fd0f)=>{const _0x49befd=_0x67f8fd,{cellInfo:_0x2adaa3,view:_0x4dcf6d,isEmpty:_0xe126a4}=_0x35fd0f,_0x24813e=_0x2adaa3,{unitId:_0x4d65cc,subUnitId:_0x50ca6a}=_0x24813e,_0x25b93c=this[_0x49befd(0x3b2)](_0x2adaa3,_0x4dcf6d,_0xe126a4),_0x1edb69=this[_0x49befd(0x1f0)][_0x49befd(0x34f)]({'unitId':_0x4d65cc,'subUnitId':_0x50ca6a,'ranges':_0x25b93c}),_0x58d86f=_0x240a58(this[_0x49befd(0x343)],_0x4d65cc,_0x50ca6a,_0x25b93c);_0x58d86f[_0x49befd(0x241)]&&(_0x1edb69[_0x49befd(0x166)][_0x49befd(0x1a2)](_0x58d86f[_0x49befd(0x306)]),_0x1edb69[_0x49befd(0x280)]['push'](_0x58d86f[_0x49befd(0x30f)]));const _0x45a5f6=this[_0x49befd(0x387)](_0x4dcf6d,_0x2adaa3);return _0x1edb69[_0x49befd(0x166)][_0x49befd(0x1a2)](..._0x45a5f6[_0x49befd(0x166)]),_0x1edb69[_0x49befd(0x280)][_0x49befd(0x1a2)](..._0x45a5f6[_0x49befd(0x280)]),{'redos':_0x1edb69['redos'],'undos':_0x1edb69[_0x49befd(0x280)]};}}));}[_0x1c787c(0x387)](_0x42845f,_0x3c5416){const _0x2feb0d=_0x1c787c,{col:_0x4bd0ae,unitId:_0x404ea9,subUnitId:_0x5922f2}=_0x3c5416,_0x3c9add=[],_0x16bf32=[],_0x5692bc=_0x22c23f['getSheetCommandTarget'](this[_0x2feb0d(0x214)],{'unitId':_0x404ea9,'subUnitId':_0x5922f2});if(!_0x3c5416||!_0x42845f||!_0x5692bc)return{'undos':_0x16bf32,'redos':_0x3c9add};const _0x325e57=this[_0x2feb0d(0xee)][_0x2feb0d(0x276)](),{colView:_0x17be1d,dataView:_0x2ffe5d,cornerView:_0x40d364,rowView:_0x4efd01,formatMap:_0x37cdbd}=_0x42845f,_0x327d7b=_0x172613(_0x17be1d,_0x325e57,!0x0,_0x37cdbd),_0x555f5d=_0x172613(_0x4efd01,_0x325e57,!0x1,_0x37cdbd),_0x46481a=_0x105b5d(_0x2ffe5d),_0x56645b=_0x224106(_0x40d364),{worksheet:_0xc978ff}=_0x5692bc;if(typeof window<'u'&&window[_0x2feb0d(0x352)]){const _0x3a4594=_0x483c29['getFontStyleString']({..._0x137cd6[_0x2feb0d(0xca)]}),_0x116907=_0x483c29['FontCache']['getTextSize'](_0x327d7b,_0x3a4594)[_0x2feb0d(0x3a9)]+0x10,_0x1ec4d7=_0x483c29[_0x2feb0d(0x180)][_0x2feb0d(0x1d5)](_0x46481a,_0x3a4594)['width'],_0x4c19da=Math[_0x2feb0d(0x1a6)](Math[_0x2feb0d(0x22b)](_0x116907,_0x1ec4d7))+0x10,_0x1554f5=Math[_0x2feb0d(0x1a6)](_0x483c29[_0x2feb0d(0x180)][_0x2feb0d(0x1d5)](_0x555f5d,_0x3a4594)[_0x2feb0d(0x3a9)]),_0xdb6b0e=Math[_0x2feb0d(0x1a6)](_0x483c29[_0x2feb0d(0x180)][_0x2feb0d(0x1d5)](_0x56645b,_0x3a4594)[_0x2feb0d(0x3a9)]),_0x4aa08a=Math[_0x2feb0d(0x22b)](_0x1554f5,_0xdb6b0e,0x28)+0xc,_0x32cf79=_0x17be1d[_0x2feb0d(0xd7)]+_0x40d364['colCount'],_0x554d9f={},_0x3543f5={};for(let _0x50ac75=_0x4bd0ae;_0x50ac75<_0x4bd0ae+_0x32cf79;_0x50ac75++){const _0x2c3e7d=_0xc978ff[_0x2feb0d(0x28b)](_0x50ac75);_0x554d9f[_0x50ac75]=_0x2c3e7d,_0x50ac75-_0x4bd0ae<_0x40d364[_0x2feb0d(0xd7)]?_0x3543f5[_0x50ac75-_0x4bd0ae]=_0x4aa08a:_0x3543f5[_0x50ac75-_0x4bd0ae]=_0x4c19da;}_0x3c9add[_0x2feb0d(0x1a2)]({'id':_0x22c23f['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x5922f2,'unitId':_0x404ea9,'ranges':[{'startColumn':_0x4bd0ae,'endColumn':_0x4bd0ae+_0x32cf79-0x1,'startRow':0x0,'endRow':_0xc978ff[_0x2feb0d(0x132)]()-0x1}],'colWidth':_0x3543f5}}),_0x16bf32[_0x2feb0d(0x1a2)]({'id':_0x22c23f[_0x2feb0d(0x1da)]['id'],'params':{'subUnitId':_0x5922f2,'unitId':_0x404ea9,'ranges':[{'startColumn':_0x4bd0ae,'endColumn':_0x4bd0ae+_0x32cf79-0x1,'startRow':0x0,'endRow':_0xc978ff['getRowCount']()-0x1}],'colWidth':_0x554d9f}});}return{'undos':_0x16bf32,'redos':_0x3c9add};}};_0x4e3204=_0x19dc84([_0x134bdc(0x0,_0x177d6a[_0x1c787c(0x2d9)](_0x22c23f['SheetInterceptorService'])),_0x134bdc(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x284)])),_0x134bdc(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a['IUniverInstanceService'])),_0x134bdc(0x3,_0x177d6a[_0x1c787c(0x2d9)](_0x1ed859[_0x1c787c(0x107)])),_0x134bdc(0x4,_0x177d6a['Inject'](_0x1ed859[_0x1c787c(0x354)]))],_0x4e3204);var _0x55a90f=Object['getOwnPropertyDescriptor'],_0x48fa2a=(_0x3b3542,_0x46b1e4,_0x1f05d6,_0x492c23)=>{const _0x449d3e=_0x1c787c;for(var _0x453f14=_0x492c23>0x1?void 0x0:_0x492c23?_0x55a90f(_0x46b1e4,_0x1f05d6):_0x46b1e4,_0x30f5fa=_0x3b3542[_0x449d3e(0x10f)]-0x1,_0x9346f5;_0x30f5fa>=0x0;_0x30f5fa--)(_0x9346f5=_0x3b3542[_0x30f5fa])&&(_0x453f14=_0x9346f5(_0x453f14)||_0x453f14);return _0x453f14;},_0x1fb4f9=(_0x58b9ef,_0x324e17)=>(_0x1ff9d9,_0xfb92b9)=>_0x324e17(_0x1ff9d9,_0xfb92b9,_0x58b9ef);let _0x4a72bc=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0xf2a431,_0x342657,_0x4a64ce,_0x52f532,_0x27c385,_0x37f367,_0x48ba00){const _0x50e50f=_0x1c787c;super(),_0x117630(this,_0x50e50f(0xc6),new _0x177d6a['DisposableCollection']()),(this[_0x50e50f(0x343)]=_0xf2a431,this['_refRangeService']=_0x342657,this[_0x50e50f(0x397)]=_0x4a64ce,this['_univerInstanceService']=_0x52f532,this[_0x50e50f(0xee)]=_0x27c385,this[_0x50e50f(0x3d1)]=_0x37f367,this[_0x50e50f(0x1f0)]=_0x48ba00,this[_0x50e50f(0x18b)]());}['_onRefRangeChange'](){const _0x2774e2=_0x1c787c,_0x170b29=(_0x90f6b7,_0x112b2c)=>{const _0x292ace=_0x42d3,_0x484339=this[_0x292ace(0x214)][_0x292ace(0x37d)](_0x177d6a[_0x292ace(0x238)]['UNIVER_SHEET']);if(!_0x484339||!(_0x484339==null?void 0x0:_0x484339[_0x292ace(0x29a)](_0x112b2c)))return;this['disposableCollection'][_0x292ace(0x11f)]();const _0x50eeb5=_0x2c33b3=>this[_0x292ace(0x3c7)](_0x2c33b3,_0x90f6b7,_0x112b2c),_0x2192b=this['_sheetsPivotTableConfigModel'][_0x292ace(0x255)](_0x90f6b7,_0x112b2c);if(!(_0x2192b!=null&&_0x2192b[_0x292ace(0x13f)]))return;Array[_0x292ace(0x135)](_0x2192b[_0x292ace(0x31d)]())[_0x292ace(0x12e)](_0x4fdc32=>{const _0x4c4908=_0x292ace,{row:_0x52e7a0,col:_0x4079ae}=_0x4fdc32[_0x4c4908(0x30d)];return _0x177d6a[_0x4c4908(0x1fd)](_0x52e7a0,_0x4079ae);})[_0x292ace(0xe3)](_0x4e1d16=>{const _0x4ba1dc=_0x292ace;this[_0x4ba1dc(0xc6)][_0x4ba1dc(0x202)](this[_0x4ba1dc(0x17a)][_0x4ba1dc(0x315)](_0x4e1d16,_0x50eeb5,_0x90f6b7,_0x112b2c));});},_0x598740=()=>{const _0x2fa192=_0x42d3,_0x3720d0=this[_0x2fa192(0x214)]['getCurrentUnitForType'](_0x177d6a[_0x2fa192(0x238)][_0x2fa192(0x217)]);if(_0x3720d0){const _0x4f7ac6=_0x3720d0['getActiveSheet']();if(!_0x4f7ac6)return;_0x170b29(_0x3720d0['getUnitId'](),_0x4f7ac6['getSheetId']());}};this[_0x2774e2(0x29f)](this['_commandService'][_0x2774e2(0x357)](_0x46946d=>{const _0x16af65=_0x2774e2;if(_0x46946d['id']===_0x22c23f[_0x16af65(0x369)]['id']){const _0x32f62e=_0x46946d[_0x16af65(0x228)],_0xa747fe=_0x32f62e[_0x16af65(0x27d)],_0x3b24ea=_0x32f62e[_0x16af65(0x283)];if(!_0xa747fe||!_0x3b24ea)return;_0x170b29(_0x3b24ea,_0xa747fe);}})),this[_0x2774e2(0x29f)](this[_0x2774e2(0xee)][_0x2774e2(0x35f)][_0x2774e2(0x2ed)](_0x21a6ff=>{_0x21a6ff&&_0x598740();})),this[_0x2774e2(0x29f)](this[_0x2774e2(0xee)][_0x2774e2(0x2e6)][_0x2774e2(0x2ed)](_0x11bb27=>{const _0x44e9f9=_0x2774e2,_0x8bf0f4=_0x22c23f[_0x44e9f9(0x109)](this['_univerInstanceService']);if(!_0x8bf0f4)return;const {unitId:_0x3bf3b5,subUnitId:_0x433fc8}=_0x8bf0f4,{unitId:_0x1b97a8,subUnitId:_0x21e31d}=_0x11bb27;_0x3bf3b5!==_0x1b97a8||_0x433fc8!==_0x21e31d||_0x170b29(_0x3bf3b5,_0x433fc8);})),_0x598740();}[_0x1c787c(0x3c7)](_0x4f6df9,_0x164ef0,_0x3152d8){const _0xd8aa2c=_0x1c787c;switch(_0x4f6df9['id']){case _0x22c23f[_0xd8aa2c(0x339)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x4f6df9[_0xd8aa2c(0x228)],_0x164ef0,_0x3152d8);}return{'redos':[],'undos':[]};}[_0x1c787c(0x21c)](_0x446a11,_0xda3093,_0x295626){const _0x3cbfd3=_0x1c787c,{fromRange:_0x26254d,toRange:_0x50deca}=_0x446a11,_0x2d85fe=[],_0x2746dc=[],_0x5874e7=_0x22c23f[_0x3cbfd3(0x109)](this[_0x3cbfd3(0x214)]);if(!_0x5874e7)return{'undos':_0x2746dc,'redos':_0x2d85fe};if(_0xda3093!==_0x5874e7[_0x3cbfd3(0x283)]||_0x295626!==_0x5874e7[_0x3cbfd3(0x27d)])return{'undos':_0x2746dc,'redos':_0x2d85fe};const _0x239fd1=this[_0x3cbfd3(0xee)][_0x3cbfd3(0x255)](_0xda3093,_0x295626);if(_0x239fd1!=null&&_0x239fd1[_0x3cbfd3(0x13f)])for(const [_0x2c125c,_0x2dc148]of _0x239fd1){const {unitId:_0x4142fe,subUnitId:_0x2a9928,row:_0x4277c6,col:_0xe0480e}=_0x2dc148[_0x3cbfd3(0x30d)];if(_0x4142fe===_0x5874e7[_0x3cbfd3(0x283)]&&_0x2a9928===_0x5874e7[_0x3cbfd3(0x27d)]){const _0x38ba89=_0x177d6a[_0x3cbfd3(0x1fd)](_0x4277c6,_0xe0480e);if(_0x177d6a[_0x3cbfd3(0x2e2)][_0x3cbfd3(0x2ef)](_0x38ba89,_0x26254d)){const _0x1c537d=_0x4277c6-_0x26254d[_0x3cbfd3(0xc5)],_0xb807ea=_0xe0480e-_0x26254d[_0x3cbfd3(0x235)],_0x332ac8={'row':_0x50deca[_0x3cbfd3(0xc5)]+_0x1c537d,'col':_0x50deca[_0x3cbfd3(0x235)]+_0xb807ea};_0x2d85fe[_0x3cbfd3(0x1a2)]({'id':_0x5d353a['id'],'params':{'unitId':_0x4142fe,'subUnitId':_0x2a9928,'pivotTableId':_0x2c125c,'targetCellPosition':_0x332ac8}}),_0x2746dc[_0x3cbfd3(0x1a2)]({'id':_0x5d353a['id'],'params':{'unitId':_0x4142fe,'subUnitId':_0x2a9928,'pivotTableId':_0x2c125c,'targetCellPosition':{'row':_0x4277c6,'col':_0xe0480e}}});const _0x525e10=_0x332ac8[_0x3cbfd3(0x2e7)]-_0x4277c6,_0x1fae83=_0x332ac8['col']-_0xe0480e,_0x48cb39=[],_0x19cbca=this[_0x3cbfd3(0x3d1)][_0x3cbfd3(0x2d8)](_0x4142fe,_0x2a9928,_0x2c125c),_0xa691bc=_0x19cbca==null?void 0x0:_0x19cbca['rangesInfo'];if(_0xa691bc){Object[_0x3cbfd3(0x1fc)](_0xa691bc)[_0x3cbfd3(0xe3)](_0x4e59f=>{const _0x4547fa=_0x3cbfd3;_0xa691bc[_0x4e59f][_0x4547fa(0xe3)](_0x1beceb=>{const _0x521078=_0x4547fa,_0x1f7431={..._0x1beceb};_0x1f7431[_0x521078(0xc5)]=_0x1beceb[_0x521078(0xc5)]+_0x525e10,_0x1f7431[_0x521078(0x31c)]=_0x1beceb[_0x521078(0x31c)]+_0x525e10,_0x1f7431[_0x521078(0x235)]=_0x1beceb[_0x521078(0x235)]+_0x1fae83,_0x1f7431[_0x521078(0x2d3)]=_0x1beceb[_0x521078(0x2d3)]+_0x1fae83,_0x48cb39[_0x521078(0x1a2)](_0x1f7431);});});const _0xd9774a=this['_sheetInterceptorService'][_0x3cbfd3(0x34f)]({'unitId':_0x4142fe,'subUnitId':_0x2a9928,'ranges':_0x48cb39});_0x2d85fe[_0x3cbfd3(0x1a2)](..._0xd9774a[_0x3cbfd3(0x166)]),_0x2746dc[_0x3cbfd3(0x1a2)](..._0xd9774a['undos']);const _0x230fb9=_0x240a58(this['_injector'],_0x4142fe,_0x2a9928,_0x48cb39);_0x230fb9[_0x3cbfd3(0x241)]&&(_0x2d85fe['push'](_0x230fb9['setRangeValueRedoMutation']),_0x2746dc[_0x3cbfd3(0x1a2)](_0x230fb9[_0x3cbfd3(0x30f)]));}}}}return{'redos':_0x2d85fe,'undos':_0x2746dc};}};_0x4a72bc=_0x48fa2a([_0x1fb4f9(0x0,_0x177d6a['Inject'](_0x177d6a['Injector'])),_0x1fb4f9(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x22c23f[_0x1c787c(0x317)])),_0x1fb4f9(0x2,_0x177d6a[_0x1c787c(0x353)]),_0x1fb4f9(0x3,_0x177d6a[_0x1c787c(0x22f)]),_0x1fb4f9(0x4,_0x177d6a['Inject'](_0x1ed859[_0x1c787c(0x107)])),_0x1fb4f9(0x5,_0x177d6a[_0x1c787c(0x2d9)](_0x1ed859[_0x1c787c(0x1d6)])),_0x1fb4f9(0x6,_0x177d6a[_0x1c787c(0x2d9)](_0x22c23f[_0x1c787c(0x149)]))],_0x4a72bc);var _0xc9f39b=Object[_0x1c787c(0x275)],_0xede1ec=(_0x5dfaa5,_0x31ce8b,_0x1a9640,_0x5b9963)=>{const _0x2e444e=_0x1c787c;for(var _0x232db6=_0x5b9963>0x1?void 0x0:_0x5b9963?_0xc9f39b(_0x31ce8b,_0x1a9640):_0x31ce8b,_0x23eeed=_0x5dfaa5[_0x2e444e(0x10f)]-0x1,_0x53e75b;_0x23eeed>=0x0;_0x23eeed--)(_0x53e75b=_0x5dfaa5[_0x23eeed])&&(_0x232db6=_0x53e75b(_0x232db6)||_0x232db6);return _0x232db6;},_0x23f0d4=(_0x1ec20d,_0x475e09)=>(_0x398bc0,_0x4d29d5)=>_0x475e09(_0x398bc0,_0x4d29d5,_0x1ec20d);let _0x83e352=class extends _0x177d6a['Disposable']{constructor(_0x3d0b99,_0x1f2c49){const _0x3f8031=_0x1c787c;super(),this[_0x3f8031(0x1f0)]=_0x3d0b99,this[_0x3f8031(0xee)]=_0x1f2c49,this[_0x3f8031(0x367)]();}[_0x1c787c(0x367)](){const _0x145886=_0x1c787c;this[_0x145886(0x29f)](this[_0x145886(0x1f0)][_0x145886(0x25c)]({'getMutations':_0x5d9bfb=>{const _0x970ac1=_0x145886;if(_0x5d9bfb['id']===_0x22c23f[_0x970ac1(0x120)]['id']){const _0x211bfb=[],_0x15e1f0=[],_0x50d825=_0x5d9bfb[_0x970ac1(0x228)],{unitId:_0x26f855,subUnitId:_0x41a532}=_0x50d825;if(!_0x26f855||!_0x41a532)return{'undos':_0x15e1f0,'redos':_0x211bfb};const _0x3802d9=this[_0x970ac1(0xee)][_0x970ac1(0x255)](_0x26f855,_0x41a532);if(_0x3802d9!=null&&_0x3802d9[_0x970ac1(0x13f)])for(const [_0x5b722a,_0x579371]of _0x3802d9){_0x211bfb['push']({'id':_0x2d8900['id'],'params':{'unitId':_0x26f855,'subUnitId':_0x41a532,'pivotTableId':_0x5b722a}});const _0x5696ec={...this[_0x970ac1(0xee)][_0x970ac1(0x16b)](_0x26f855,_0x5b722a)};_0x15e1f0[_0x970ac1(0x1a2)]({'id':_0x1f645b['id'],'params':{'unitId':_0x26f855,'subUnitId':_0x41a532,'pivotTableId':_0x5b722a,'pivotTableConfig':_0x579371,'collectionConfig':_0x5696ec}});}return{'redos':_0x211bfb,'undos':_0x15e1f0};}return{'redos':[],'undos':[]};}}));}};_0x83e352=_0xede1ec([_0x23f0d4(0x0,_0x177d6a[_0x1c787c(0x2d9)](_0x22c23f[_0x1c787c(0x149)])),_0x23f0d4(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x1ed859[_0x1c787c(0x107)]))],_0x83e352);var _0x2ffa22=Object[_0x1c787c(0x275)],_0x277f28=(_0x478083,_0x3857e0,_0x293fa3,_0xee00f1)=>{const _0x39e7b1=_0x1c787c;for(var _0x4b5293=_0xee00f1>0x1?void 0x0:_0xee00f1?_0x2ffa22(_0x3857e0,_0x293fa3):_0x3857e0,_0x3da1bf=_0x478083[_0x39e7b1(0x10f)]-0x1,_0x123514;_0x3da1bf>=0x0;_0x3da1bf--)(_0x123514=_0x478083[_0x3da1bf])&&(_0x4b5293=_0x123514(_0x4b5293)||_0x4b5293);return _0x4b5293;},_0x391569=(_0x412a52,_0x5c4c8d)=>(_0x2e2837,_0x1d5ece)=>_0x5c4c8d(_0x2e2837,_0x1d5ece,_0x412a52);let _0x5f3b1c=class extends _0x177d6a[_0x1c787c(0x2c5)]{constructor(_0xb47a82,_0x333ac6,_0x4fa646,_0x434b3b,_0x11fea2,_0x414247){const _0x2cad14=_0x1c787c;super(),this[_0x2cad14(0x397)]=_0xb47a82,this['_sheetsPivotRpcService']=_0x333ac6,this[_0x2cad14(0x3d1)]=_0x4fa646,this[_0x2cad14(0xee)]=_0x434b3b,this['_univerInstanceService']=_0x11fea2,this['_activeDirtyManagerService']=_0x414247,this['_initDataSendListener'](),this['registerDirtyService']();}[_0x1c787c(0x21e)](){const _0x53ce95=_0x1c787c;this['disposeWithMe'](this[_0x53ce95(0x397)][_0x53ce95(0x357)](_0x38265f=>{const _0x499454=_0x53ce95;if(_0x38265f['id']!==_0x585cbb['id'])return;const _0x302427=_0x38265f[_0x499454(0x228)];this[_0x499454(0x37f)][_0x499454(0x3a4)](_0x302427);})),this[_0x53ce95(0x29f)](this[_0x53ce95(0x397)][_0x53ce95(0x357)](_0x47caae=>{const _0x1e9afd=_0x53ce95;if(_0x47caae['id']===_0x4535fd['id']){const _0x12fea0=_0x47caae[_0x1e9afd(0x228)];if(_0x12fea0){const {unitId:_0x2e561c,subUnitId:_0x3f4ac8,oldSubUnitId:_0x4914b0,pivotTableId:_0x193dee,pivotTableConfig:_0x255ce7,collectionConfig:_0x189019}=_0x12fea0;this[_0x1e9afd(0xee)][_0x1e9afd(0x257)](_0x2e561c,_0x4914b0,_0x12fea0['pivotTableId'],null),this['_sheetsPivotTableConfigModel'][_0x1e9afd(0x257)](_0x2e561c,_0x3f4ac8,_0x193dee,_0x255ce7),this['_sheetsPivotTableConfigModel']['updateCollectionConfig'](_0x2e561c,_0x189019);}}})),this[_0x53ce95(0x29f)](this[_0x53ce95(0x397)][_0x53ce95(0x357)](_0x4fe614=>{const _0x402ee0=_0x53ce95;if(_0x4fe614['id']!==_0x16a7c0['id'])return;const _0x1fd934=_0x22c23f[_0x402ee0(0x109)](this[_0x402ee0(0x214)]);if(!_0x1fd934)return;const {unitId:_0x401126,subUnitId:_0x4db0a6}=_0x1fd934,_0x4b0a12=_0x4fe614['params'];if(_0x4b0a12[_0x402ee0(0x1ae)]&&Object[_0x402ee0(0x1fc)](_0x4b0a12['collectionConfig'])[_0x402ee0(0xe3)](_0x35896b=>{const _0x17dd1e=_0x402ee0;var _0x2bd32f;(_0x2bd32f=_0x4b0a12[_0x17dd1e(0x1ae)])!=null&&_0x2bd32f[_0x35896b]&&this[_0x17dd1e(0xee)][_0x17dd1e(0xec)](_0x35896b,_0x4b0a12[_0x17dd1e(0x1ae)][_0x35896b]);}),_0x4b0a12['single']){const _0x5ec4ec=_0x4b0a12[_0x402ee0(0x3dd)],{unitId:_0x47494e,subUnitId:_0x3df870,view:_0x3ddc1e,pivotTableId:_0x112250,type:_0x2388f4,pivotConfig:_0xff66c1}=_0x5ec4ec;if(_0x2388f4===_0x5a4701['Delete'])this[_0x402ee0(0x3d1)]['clearRenderCache']({'unitId':_0x47494e,'subUnitId':_0x3df870,'pivotTableId':_0x112250,'type':_0x2388f4}),this[_0x402ee0(0xee)][_0x402ee0(0x257)](_0x47494e,_0x3df870,_0x112250,null);else{const _0xd90eaf=new _0x175d11[(_0x402ee0(0x2e1))]();_0xd90eaf['formJSON'](_0x3ddc1e),this[_0x402ee0(0xee)][_0x402ee0(0x257)](_0x47494e,_0x3df870,_0x112250,_0xff66c1),this[_0x402ee0(0x3d1)][_0x402ee0(0x3d7)]({'unitId':_0x47494e,'subUnitId':_0x3df870,'pivotTableId':_0x112250,'type':_0x2388f4,'view':_0xd90eaf}),this[_0x402ee0(0x3d1)][_0x402ee0(0x1b2)]({'unitId':_0x47494e,'subUnitId':_0x3df870,'view':_0xd90eaf,'pivotTableId':_0x112250,'type':_0x2388f4});}}else _0x4b0a12[_0x402ee0(0x34c)]&&(_0x4b0a12[_0x402ee0(0x34c)][_0x402ee0(0xe3)](_0x8ed373=>{const _0x3fdf66=_0x402ee0,{unitId:_0x47315b,subUnitId:_0x47d7e2,view:_0x4401d1,pivotTableId:_0x278f2a,type:_0x111619,pivotConfig:_0x5e6e3c}=_0x8ed373,_0x2754d4=new _0x175d11[(_0x3fdf66(0x2e1))]();_0x2754d4[_0x3fdf66(0x391)](_0x4401d1),this[_0x3fdf66(0xee)][_0x3fdf66(0x257)](_0x47315b,_0x47d7e2,_0x278f2a,_0x5e6e3c),this[_0x3fdf66(0x3d1)]['updateRenderCache']({'unitId':_0x47315b,'subUnitId':_0x47d7e2,'view':_0x2754d4,'pivotTableId':_0x278f2a,'type':_0x111619});}),this['_sheetsPivotTableConfigModel'][_0x402ee0(0x195)]());this[_0x402ee0(0x3d1)]['markDirty'](_0x401126,_0x4db0a6);}));}[_0x1c787c(0x326)](){const _0xf43ebd=_0x1c787c;this[_0xf43ebd(0x383)][_0xf43ebd(0x14d)](_0x2dd118['id'],{'commandId':_0x2dd118['id'],'getDirtyData'(_0x237e3f){const _0x410d31=_0xf43ebd;return{'dirtyUnitFeatureMap':_0x237e3f[_0x410d31(0x228)]};}});}};_0x5f3b1c=_0x277f28([_0x391569(0x0,_0x177d6a['Inject'](_0x177d6a[_0x1c787c(0x353)])),_0x391569(0x1,_0x177d6a['Inject'](_0x1ed859[_0x1c787c(0x206)])),_0x391569(0x2,_0x177d6a['Inject'](_0x1ed859[_0x1c787c(0x1d6)])),_0x391569(0x3,_0x177d6a[_0x1c787c(0x2d9)](_0x1ed859[_0x1c787c(0x107)])),_0x391569(0x4,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x22f)])),_0x391569(0x5,_0x195fb3['IActiveDirtyManagerService'])],_0x5f3b1c);var _0x2d0406=Object[_0x1c787c(0x3bf)],_0x3f668b=Object['getOwnPropertyDescriptor'],_0x2f3ad2=(_0x57af86,_0x2b8d07,_0x148b1f)=>_0x2b8d07 in _0x57af86?_0x2d0406(_0x57af86,_0x2b8d07,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x148b1f}):_0x57af86[_0x2b8d07]=_0x148b1f,_0xd82137=(_0x164900,_0x333d0f,_0x189fb5,_0x3fc166)=>{const _0x32763b=_0x1c787c;for(var _0x40e18e=_0x3fc166>0x1?void 0x0:_0x3fc166?_0x3f668b(_0x333d0f,_0x189fb5):_0x333d0f,_0xbea169=_0x164900[_0x32763b(0x10f)]-0x1,_0x450ac2;_0xbea169>=0x0;_0xbea169--)(_0x450ac2=_0x164900[_0xbea169])&&(_0x40e18e=_0x450ac2(_0x40e18e)||_0x40e18e);return _0x40e18e;},_0x2ef937=(_0x4f5e1b,_0x3f66de)=>(_0x266fa1,_0x22f8f5)=>_0x3f66de(_0x266fa1,_0x22f8f5,_0x4f5e1b),_0x3a72f8=(_0x380314,_0x322cd4,_0x14bb53)=>_0x2f3ad2(_0x380314,typeof _0x322cd4!=_0x1c787c(0x2ea)?_0x322cd4+'':_0x322cd4,_0x14bb53);_0x1ed859[_0x1c787c(0x1f2)]=class extends _0x177d6a[_0x1c787c(0xde)]{constructor(_0x4bdb4b=_0x5b9e4b,_0x39d00c,_0x35b848,_0xe99ca1,_0x13da22){const _0x28d312=_0x1c787c;super(),this[_0x28d312(0x371)]=_0x4bdb4b,this[_0x28d312(0x343)]=_0x39d00c,this[_0x28d312(0x397)]=_0x35b848,this[_0x28d312(0x1f1)]=_0xe99ca1,this['_dataSyncPrimaryController']=_0x13da22;const {..._0x1d376e}=_0x177d6a[_0x28d312(0x3aa)]({},_0x5b9e4b,this['_config']);this[_0x28d312(0x1f1)][_0x28d312(0x2bc)](_0x2e0c4f,_0x1d376e),this[_0x28d312(0xd5)](),this[_0x28d312(0x2a1)]();}['_initConfig'](){const _0x5549e3=_0x1c787c;var _0x1269f9;const _0x46043e=(_0x1269f9=this[_0x5549e3(0x371)])==null?void 0x0:_0x1269f9[_0x5549e3(0x1ee)];this[_0x5549e3(0x1f1)][_0x5549e3(0x2bc)](_0x318491,_0x46043e===!0x0);}[_0x1c787c(0x243)](){const _0x17a0b8=_0x1c787c;var _0x199fb6;let _0x3236d6=[];const _0x11f450=(_0x199fb6=this['_config'])==null?void 0x0:_0x199fb6['notExecuteFormula'];_0x11f450===!0x0?_0x3236d6=[[_0x1ed859[_0x17a0b8(0x354)]],[_0x1ed859['SheetsPivotRPCService']],[_0x5f3b1c],[_0x1ed859[_0x17a0b8(0x1d6)]],[_0x1ed859['SheetsPivotTableConfigModel']],[_0x83e352],[_0x462905],[_0x4a72bc],[_0x4e3204]]:_0x11f450===!0x1?_0x3236d6=[[_0x1ed859['SheetsPivotDataSourceModel']],[_0x4c9bd7]]:_0x11f450===void 0x0&&(_0x3236d6=[[_0x1ed859[_0x17a0b8(0x1af)]],[_0x4c9bd7],[_0x1ed859['SheetsPivotTableService']],[_0x1ed859['SheetsPivotRPCService']],[_0x5f3b1c],[_0x1ed859['SheetsPivotTableAdaptorModel']],[_0x1ed859[_0x17a0b8(0x107)]],[_0x83e352],[_0x462905],[_0x4a72bc],[_0x4e3204]]),_0x3236d6[_0x17a0b8(0xe3)](_0x5b5c9d=>this[_0x17a0b8(0x343)][_0x17a0b8(0x202)](_0x5b5c9d)),[_0x4c9bd7,_0x5f3b1c,_0x1ed859[_0x17a0b8(0x354)],_0x462905,_0x83e352,_0x4a72bc,_0x4e3204][_0x17a0b8(0xe3)](_0x5e1d88=>{const _0x439c97=_0x17a0b8;this['_injector'][_0x439c97(0xbc)](_0x5e1d88)&&this[_0x439c97(0x343)][_0x439c97(0x3e4)](_0x5e1d88);});}[_0x1c787c(0xd5)](){[_0xde6230,_0x5492df,_0x5baed9,_0x3630f9,_0x376df3,_0x5b29a9,_0x3f8d67,_0x100116,_0x4d2904,_0x2d8370,_0x303d16,_0x3009e9,_0x4de8eb,_0x280ea1,_0x1f645b,_0x18c1ce,_0x2d8900,_0xb1d23c,_0x14bf9e,_0x187b5c,_0x5a4dbb,_0x493ba1,_0x106cc9,_0xe162cd,_0xe70d5,_0x55d729,_0x5d353a,_0x4c8972,_0x585cbb,_0x16a7c0,_0x332f55,_0xe6f7a6,_0x4066a8,_0x852825,_0x224063,_0x31e2bd,_0x586f96,_0x2dd118,_0x4535fd,_0x14a83f,_0x3c9cd8,_0x27cb54,_0x596a3c]['forEach'](_0x23c35c=>{const _0x25ef15=_0x42d3;var _0x5661b6;(_0x5661b6=this[_0x25ef15(0x12f)])==null||_0x5661b6[_0x25ef15(0x30b)](_0x23c35c),this[_0x25ef15(0x397)][_0x25ef15(0x3b8)](_0x23c35c);});}},_0x3a72f8(_0x1ed859['UniverSheetsPivotTablePlugin'],_0x1c787c(0x39b),_0x389941),_0x3a72f8(_0x1ed859[_0x1c787c(0x1f2)],_0x1c787c(0x18a),_0x177d6a[_0x1c787c(0x238)]['UNIVER_SHEET']),_0x1ed859[_0x1c787c(0x1f2)]=_0xd82137([_0x177d6a['DependentOn'](_0x53915['UniverLicensePlugin']),_0x2ef937(0x1,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x284)])),_0x2ef937(0x2,_0x177d6a[_0x1c787c(0x2d9)](_0x177d6a[_0x1c787c(0x353)])),_0x2ef937(0x3,_0x177d6a[_0x1c787c(0xcb)]),_0x2ef937(0x4,_0x177d6a['Optional'](_0x382c16[_0x1c787c(0x3d8)]))],_0x1ed859[_0x1c787c(0x1f2)]),_0x1ed859[_0x1c787c(0x23f)]=_0x5baed9,_0x1ed859[_0x1c787c(0x209)]=_0xb1d23c,_0x1ed859['AddPivotTableCommand']=_0x5492df,_0x1ed859[_0x1c787c(0xc1)]=_0x1f645b,_0x1ed859['AddPivotTableWithConfigCommand']=_0xde6230,_0x1ed859[_0x1c787c(0x198)]=_0x2afc20,_0x1ed859[_0x1c787c(0x25f)]=_0x45eedb,_0x1ed859[_0x1c787c(0x35b)]=_0x3630f9,_0x1ed859[_0x1c787c(0x141)]=_0x4de8eb,_0x1ed859['PivotDisplayDataType']=_0x2b8e9a,_0x1ed859[_0x1c787c(0x19c)]=_0x280ea1,_0x1ed859[_0x1c787c(0x210)]=_0x5a4701,_0x1ed859[_0x1c787c(0x215)]=_0x2dd118,_0x1ed859[_0x1c787c(0x20b)]=_0x83d4d,_0x1ed859['RemovePivotFieldCommand']=_0x376df3,_0x1ed859[_0x1c787c(0xbe)]=_0x493ba1,_0x1ed859[_0x1c787c(0xf8)]=_0x2d8900,_0x1ed859[_0x1c787c(0x359)]=_0x106cc9,_0x1ed859[_0x1c787c(0x133)]=_0x596a3c,_0x1ed859['SHEETS_PIVOT_PLUGIN_CONFIG_KEY']=_0x2e0c4f,_0x1ed859[_0x1c787c(0x258)]=_0x389941,_0x1ed859[_0x1c787c(0x2be)]=_0x100116,_0x1ed859['SetPivotCollapseMutation']=_0xe162cd,_0x1ed859[_0x1c787c(0x3cc)]=_0x852825,_0x1ed859[_0x1c787c(0x20c)]=_0x27cb54,_0x1ed859[_0x1c787c(0x374)]=_0x2d8370,_0x1ed859[_0x1c787c(0x3b7)]=_0x5a4dbb,_0x1ed859[_0x1c787c(0x13a)]=_0x55d729,_0x1ed859[_0x1c787c(0x230)]=_0x5d353a,_0x1ed859[_0x1c787c(0x2ad)]=_0x4d2904,_0x1ed859['SetPivotSortMutation']=_0xe70d5,_0x1ed859[_0x1c787c(0x256)]=_0x4066a8,_0x1ed859[_0x1c787c(0x3c1)]=_0x14a83f,_0x1ed859[_0x1c787c(0x15b)]=_0x3c9cd8,_0x1ed859[_0x1c787c(0x288)]=_0x3f8d67,_0x1ed859[_0x1c787c(0x1b5)]=_0x332f55,_0x1ed859[_0x1c787c(0x227)]=_0x303d16,_0x1ed859[_0x1c787c(0x350)]=_0x586f96,_0x1ed859[_0x1c787c(0x2cf)]=_0x3009e9,_0x1ed859['UpdatePivotTableSourceRangeMutation']=_0x31e2bd,_0x1ed859['UpdatePivotValuePositionCommand']=_0x5b29a9,_0x1ed859[_0x1c787c(0x177)]=_0xe6f7a6,_0x1ed859['applyChangeSet']=_0x215de6,_0x1ed859[_0x1c787c(0x20a)]=_0x41914d,_0x1ed859[_0x1c787c(0x2d1)]=_0x137cd6,_0x1ed859[_0x1c787c(0xfe)]=_0x240a58,_0x1ed859[_0x1c787c(0x37b)]=_0x397824,_0x1ed859[_0x1c787c(0x2f3)]=_0x2c852f,_0x1ed859[_0x1c787c(0x236)]=_0x468420,_0x1ed859[_0x1c787c(0x25d)]=_0x44d3aa,_0x1ed859['getPivotCellInfo']=_0x2c9fc9,_0x1ed859[_0x1c787c(0x313)]=_0x17409d,_0x1ed859[_0x1c787c(0x2b7)]=_0xb5fa0a,_0x1ed859[_0x1c787c(0xbb)]=_0x58787d,_0x1ed859[_0x1c787c(0x197)]=_0x3e69b9,Object[_0x1c787c(0x3bf)](_0x1ed859,Symbol['toStringTag'],{'value':_0x1c787c(0x203)});}));
1
+ function _0x1019(_0x5861e2,_0x2f58e3){const _0x2db2de=_0x2db2();return _0x1019=function(_0x1019e2,_0x33491c){_0x1019e2=_0x1019e2-0x177;let _0x36a6d0=_0x2db2de[_0x1019e2];return _0x36a6d0;},_0x1019(_0x5861e2,_0x2f58e3);}(function(_0x2a31f0,_0x3dba98){const _0x52314a=_0x1019,_0x3f8e97=_0x2a31f0();while(!![]){try{const _0x46713a=-parseInt(_0x52314a(0x316))/0x1+-parseInt(_0x52314a(0x408))/0x2+-parseInt(_0x52314a(0x337))/0x3+-parseInt(_0x52314a(0x3c6))/0x4+parseInt(_0x52314a(0x464))/0x5+-parseInt(_0x52314a(0x396))/0x6*(parseInt(_0x52314a(0x40b))/0x7)+parseInt(_0x52314a(0x17b))/0x8*(parseInt(_0x52314a(0x28b))/0x9);if(_0x46713a===_0x3dba98)break;else _0x3f8e97['push'](_0x3f8e97['shift']());}catch(_0x1d7fed){_0x3f8e97['push'](_0x3f8e97['shift']());}}}(_0x2db2,0xbc313),function(_0x4e9430,_0x1348e1){const _0x1183b6=_0x1019;typeof exports==_0x1183b6(0x1d9)&&typeof module<'u'?_0x1348e1(exports,require('@univerjs-pro/engine-pivot'),require('@univerjs/core'),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require('@univerjs-pro/license'),require('@univerjs/sheets-filter'),require('@univerjs/rpc'),require('@univerjs/engine-render')):typeof define==_0x1183b6(0x384)&&define[_0x1183b6(0x1f9)]?define([_0x1183b6(0x2ca),_0x1183b6(0x220),_0x1183b6(0x2c0),_0x1183b6(0x180),'@univerjs/sheets',_0x1183b6(0x3af),_0x1183b6(0x342),_0x1183b6(0x213),_0x1183b6(0x32e),_0x1183b6(0x27f)],_0x1348e1):(_0x4e9430=typeof globalThis<'u'?globalThis:_0x4e9430||self,_0x1348e1(_0x4e9430['UniverProSheetsPivot']={},_0x4e9430[_0x1183b6(0x356)],_0x4e9430[_0x1183b6(0x2fa)],_0x4e9430[_0x1183b6(0x450)],_0x4e9430[_0x1183b6(0x1b3)],_0x4e9430[_0x1183b6(0x3af)],_0x4e9430['UniverProLicense'],_0x4e9430[_0x1183b6(0x347)],_0x4e9430['UniverRpc'],_0x4e9430[_0x1183b6(0x196)]));}(this,function(_0x1cc2c4,_0x2eef51,_0x374f23,_0x925485,_0x24a2a7,_0x1cd777,_0x2169aa,_0x158537,_0x37f267,_0x132b06){'use strict';const _0x5d1072=_0x1019;var _0x40dc40=Object[_0x5d1072(0x46f)],_0x2cd8b8=(_0x15410f,_0x41c825,_0x57ee84)=>_0x41c825 in _0x15410f?_0x40dc40(_0x15410f,_0x41c825,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x57ee84}):_0x15410f[_0x41c825]=_0x57ee84,_0x1e0b19=(_0x55789c,_0x234149,_0xc13073)=>_0x2cd8b8(_0x55789c,typeof _0x234149!=_0x5d1072(0x430)?_0x234149+'':_0x234149,_0xc13073);const _0x82b07b=Number['parseInt'](0x68fcb286),_0x1b6ed3=0x10,_0x5639c4=0x1,_0xcaa86f=_0x5d1072(0x304),_0x9545db=0x1,_0x229a28='rgb(240,241,243)',_0x32bba2='rgb(255,255,255)',_0x3af942=_0x5d1072(0x45f),_0x4028c2=_0x5d1072(0x3a6),_0x2157e1='#f4f4f5',_0x482a77=_0x5d1072(0x438),_0x368d31=_0x5d1072(0x21d),_0x4e5cc1=_0x5d1072(0x382),_0x3676d7=_0x5d1072(0x214),_0x3df884=_0x5d1072(0x21d),_0x3cced3=_0x5d1072(0x382),_0x536795='#e6ebfb',_0x2ccd6c=0xe,_0x69f1d9=0x6;var _0x55d455=(_0x474aa0=>(_0x474aa0[_0x5d1072(0x35e)]='existing',_0x474aa0[_0x5d1072(0x44a)]=_0x5d1072(0x1ee),_0x474aa0))(_0x55d455||{});const _0xe2c987={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x350f93=0x1e,_0x39696={'b':{'s':0x1,'cl':{'rgb':_0x3af942}},'l':{'s':0x1,'cl':{'rgb':_0x3af942}},'r':{'s':0x1,'cl':{'rgb':_0x3af942}},'t':{'s':0x1,'cl':{'rgb':_0x3af942}}},_0x554db5={'bg':{'rgb':_0x229a28},'ht':0x2,'vt':0x2,'tb':0x1},_0x5c764c={'bg':{'rgb':_0x32bba2},'ht':0x2,'vt':0x2,'tb':0x1},_0x1ed179={'rowStyle':{'bg':{'rgb':_0x536795},'bd':_0x39696,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x3df884},'bd':null,'cl':{'rgb':_0x3cced3},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x39696,'bg':{'rgb':_0x3676d7},'vt':0x2},'cornerStyle':{'bd':_0x39696,'bg':{'rgb':_0x482a77},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x39696,'bg':{'rgb':_0x4028c2},'vt':0x2},'leafStyle':{'bd':_0x39696,'bg':{'rgb':_0x2157e1},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x368d31},'cl':{'rgb':_0x4e5cc1},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x39696,'vt':0x2}};function _0x485a6d(_0x5e505a,_0x49abd3,_0x153316){const _0x461cf6=_0x5d1072,_0x500fb2=_0x5e505a['get'](_0x374f23[_0x461cf6(0x3cd)]),_0x3ddc6e=_0x153316['split']('_');switch(_0x49abd3){case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x17e)]:return _0x500fb2['t'](_0x461cf6(0x2fd),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x1dd)]:return _0x500fb2['t'](_0x461cf6(0x3ef),..._0x3ddc6e);case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x461cf6(0x1c7)]:return _0x500fb2['t'](_0x461cf6(0x322),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x33e)]:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x2e7)]:return _0x500fb2['t'](_0x461cf6(0x344),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x319)]:return _0x500fb2['t'](_0x461cf6(0x40d),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)]['Quarter']:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.quarter',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)]['YearMonth']:return _0x500fb2['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x23f)]:return _0x500fb2['t'](_0x461cf6(0x297),..._0x3ddc6e);case _0x2eef51[_0x461cf6(0x1cf)][_0x461cf6(0x17a)]:return _0x500fb2['t'](_0x461cf6(0x39f),..._0x3ddc6e);}return'';}const _0x111915=(_0x1bc558,_0x1bbd5c,_0x149a53,_0x25148d)=>{const _0x5bd684=_0x5d1072;let _0x17286a;const _0x42ce64=_0x1bc558[_0x5bd684(0x411)](_0x374f23[_0x5bd684(0x1d8)])[_0x5bd684(0x2fb)](_0x374f23[_0x5bd684(0x1e8)]['UNIVER_SHEET']);if(!_0x42ce64)return null;const _0x48a7c4=_0x42ce64['getStyles']();let _0x5c06e1;if(_0x149a53&&(_0x5c06e1=_0x48a7c4['setValue'](_0x149a53)),_0x1bbd5c!=null&&_0x1bbd5c['v']||(_0x1bbd5c==null?void 0x0:_0x1bbd5c['v'])===0x0){_0x17286a||(_0x17286a={});const _0x266e9e=_0x9bc11a(_0x1bbd5c['v']);typeof _0x266e9e==_0x5bd684(0x41e)?_0x17286a['t']=_0x374f23[_0x5bd684(0x278)]['NUMBER']:typeof _0x266e9e==_0x5bd684(0x436)&&(_0x17286a['t']=_0x374f23[_0x5bd684(0x278)][_0x5bd684(0x471)]),_0x17286a['v']=_0x266e9e;}if((_0x1bbd5c!=null&&_0x1bbd5c['i']||(_0x1bbd5c==null?void 0x0:_0x1bbd5c['i'])===0x0)&&(_0x17286a||(_0x17286a={}),_0x17286a['fi']=_0x1bbd5c['i']),_0x1bbd5c!=null&&_0x1bbd5c['s']&&(_0x17286a||(_0x17286a={}),_0x17286a[_0x5bd684(0x2d4)]=_0x1bbd5c['s']),_0x149a53&&(_0x17286a||(_0x17286a={}),_0x17286a['s']=_0x5c06e1),_0x25148d&&_0x17286a!=null&&_0x17286a['v']&&_0x17286a[_0x5bd684(0x2d4)]!==_0x2eef51[_0x5bd684(0x421)]['GrandTotal']&&_0x17286a['pbt']!==_0x2eef51['PivotCellStyleTypeEnum'][_0x5bd684(0x24e)]){const _0x3099a8=String(_0x17286a['v']),{dateType:_0x32773d}=_0x25148d;_0x17286a['v']=_0x485a6d(_0x1bc558,_0x32773d,_0x3099a8),_0x17286a['t']=_0x374f23[_0x5bd684(0x278)]['STRING'];}return _0x17286a;},_0x240ff5=(_0x1afdc0,_0x33cae4,_0x241096,_0x1b5228)=>{const _0x38bc83=_0x5d1072;var _0x837fef,_0x2efaa3,_0x581b16,_0x5677d8,_0x13fc63,_0x39369d,_0x2fe97a,_0x4cfb8b,_0x34bc6b,_0xf2d7b8,_0x3cf1ae,_0x23e90b,_0x83d8c2,_0x3bbc7b;const _0x2ca8eb=_0x241096[_0x38bc83(0x357)],{cornerView:_0x45a5d3,rowView:_0x72bb5d,colView:_0x518d5a,dataView:_0x3e4026,pageView:_0x3f0b96,formatMap:_0x4820a1,groupInfo:_0x4efa6e}=_0x33cae4,{row:_0x5c023a,col:_0xd9f5ef}=_0x2ca8eb,_0x9f36e2=new _0x374f23[(_0x38bc83(0x33b))](),_0x5b070b={},_0x2af582={},_0x1e50ac={},_0x2f51bd={},_0x1b6dd7={};let _0x44daf2=_0x5c023a,_0x494746=_0xd9f5ef;Object['keys'](_0x3f0b96['data'])[_0x38bc83(0x274)](_0x511739=>{const _0x2dfc38=_0x38bc83;Object[_0x2dfc38(0x3d8)](_0x3f0b96[_0x2dfc38(0x3b3)][Number(_0x511739)])[_0x2dfc38(0x274)](_0x19d82=>{const _0x46b374=_0x2dfc38,_0x48a232={..._0x3f0b96[_0x46b374(0x3b3)][Number(_0x511739)][Number(_0x19d82)]};_0x9f36e2[_0x46b374(0x388)](Number(_0x511739)+_0x44daf2,Number(_0x19d82)+_0x494746,_0x111915(_0x1afdc0,_0x48a232,_0x1ed179[_0x46b374(0x2e3)]));});});const _0x563f88=Object[_0x38bc83(0x3d8)](_0x3f0b96['data'])[_0x38bc83(0x468)];_0x44daf2+=_0x563f88+(_0x563f88?_0x9545db:0x0);const _0x4947d5=_0x45a5d3[_0x38bc83(0x46e)](),_0x2b36c9=_0x45a5d3[_0x38bc83(0x37f)]();for(let _0x5c7ffd=0x0;_0x5c7ffd<_0x4947d5;_0x5c7ffd++)for(let _0x533ed2=0x0;_0x533ed2<_0x2b36c9;_0x533ed2++){const _0x310a85={...(_0x2efaa3=(_0x837fef=_0x45a5d3[_0x38bc83(0x3b3)])==null?void 0x0:_0x837fef[_0x5c7ffd])==null?void 0x0:_0x2efaa3[_0x533ed2]};_0x310a85&&((_0x581b16=_0x72bb5d[_0x38bc83(0x271)][_0x533ed2])!=null&&_0x581b16[_0x38bc83(0x40e)])&&_0x533ed2===_0x2b36c9-0x1&&_0x5c7ffd===_0x4947d5-0x1&&(_0x310a85['v']=''+_0x1b5228[_0x38bc83(0x37a)]),_0x9f36e2['setValue'](_0x5c7ffd+_0x44daf2,_0x533ed2+_0x494746,_0x111915(_0x1afdc0,_0x310a85,_0x1ed179[_0x38bc83(0x1cc)]));}for(let _0x573ebc=0x0;_0x573ebc<_0x45a5d3[_0x38bc83(0x34c)][_0x38bc83(0x468)];_0x573ebc++)_0x45a5d3[_0x38bc83(0x34c)][_0x573ebc]&&(_0x1e50ac[''+(_0x573ebc+_0x494746)]=_0x45a5d3[_0x38bc83(0x34c)][_0x573ebc]);_0x494746+=_0x2b36c9;const _0x49cf5f=_0x518d5a[_0x38bc83(0x271)],_0x44167c=_0x518d5a[_0x38bc83(0x315)]()>=0x0?_0x518d5a[_0x38bc83(0x315)]()+0x1:0x0,_0x344680=_0x518d5a[_0x38bc83(0x20f)]()>=0x0?_0x518d5a[_0x38bc83(0x20f)]()+0x1:0x0;for(let _0x2d6395=0x0;_0x2d6395<_0x344680;_0x2d6395++){for(let _0x479d00=0x0;_0x479d00<_0x44167c;_0x479d00++){const _0x543efb={...(_0x13fc63=(_0x5677d8=_0x518d5a[_0x38bc83(0x3b3)])==null?void 0x0:_0x5677d8[_0x479d00])==null?void 0x0:_0x13fc63[_0x2d6395]},_0x14aa2a=(_0x39369d=_0x49cf5f[_0x479d00])==null?void 0x0:_0x39369d[_0x38bc83(0x44b)],_0x3e9e6c=_0x4820a1[_0x14aa2a],_0x1d5b11=_0x4efa6e[_0x14aa2a];_0x543efb&&(_0x543efb['v']=_0x99791(_0x543efb,_0x479d00===0x0&&((_0x2fe97a=_0x518d5a['getHeaderMapItem'](_0x2d6395+0x1))==null?void 0x0:_0x2fe97a[_0x38bc83(0x40e)]),_0x3e9e6c,_0x1b5228));let _0x248fe9;_0x3e9e6c?_0x248fe9={..._0x1ed179[_0x38bc83(0x268)],'n':{'pattern':_0x3e9e6c}}:_0x248fe9={..._0x1ed179[_0x38bc83(0x268)]},_0x9f36e2[_0x38bc83(0x388)](_0x479d00+_0x44daf2,_0x2d6395+_0x494746,_0x111915(_0x1afdc0,_0x543efb,_0x248fe9,_0x1d5b11));}_0x518d5a[_0x38bc83(0x34c)][_0x2d6395]&&(_0x2af582[''+(_0x2d6395+_0x494746)]=_0x518d5a[_0x38bc83(0x34c)][_0x2d6395]),_0x518d5a[_0x38bc83(0x271)][_0x2d6395+0x1]&&(_0x1b6dd7[''+(_0x2d6395+_0x44daf2+0x1)]=_0x518d5a['headerMap'][_0x2d6395+0x1]);}_0x44daf2+=_0x4947d5;const _0x1eacae=_0x72bb5d[_0x38bc83(0x271)],_0x154ea3=_0x72bb5d[_0x38bc83(0x315)]()>=0x0?_0x72bb5d[_0x38bc83(0x315)]()+0x1:0x0,_0x5c55da=_0x72bb5d[_0x38bc83(0x20f)]()>=0x0?_0x72bb5d[_0x38bc83(0x20f)]()+0x1:0x0;for(let _0x40b7c7=0x0;_0x40b7c7<_0x154ea3;_0x40b7c7++){for(let _0x4cdbb8=0x0;_0x4cdbb8<_0x5c55da;_0x4cdbb8++){const _0x16fb51={...(_0x34bc6b=(_0x4cfb8b=_0x72bb5d[_0x38bc83(0x3b3)])==null?void 0x0:_0x4cfb8b[_0x40b7c7])==null?void 0x0:_0x34bc6b[_0x4cdbb8]},_0x4feae0=(_0xf2d7b8=_0x1eacae[_0x4cdbb8])==null?void 0x0:_0xf2d7b8['tableFieldId'],_0x278b58=_0x4820a1[_0x4feae0],_0x94a07d=_0x4efa6e[_0x4feae0];_0x16fb51&&(_0x16fb51['v']=_0x99791(_0x16fb51,!0x1,_0x278b58,_0x1b5228));let _0x7edad7;_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7]['level']===_0x72bb5d[_0x38bc83(0x37f)]()?_0x7edad7=_0x1ed179[_0x38bc83(0x374)]:_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7][_0x38bc83(0x37d)]?_0x7edad7=_0x72bb5d[_0x38bc83(0x34c)][_0x40b7c7][_0x38bc83(0x2c4)]===0x0?_0x1ed179['grandTotal']:_0x1ed179['subTotalStyle']:_0x7edad7=_0x1ed179[_0x38bc83(0x47e)],_0x278b58&&(_0x7edad7={..._0x7edad7,'n':{'pattern':_0x278b58}}),_0x9f36e2[_0x38bc83(0x388)](_0x40b7c7+_0x44daf2,_0x4cdbb8+_0xd9f5ef,_0x111915(_0x1afdc0,_0x16fb51,_0x7edad7,_0x94a07d));}_0x72bb5d['info'][_0x40b7c7]&&(_0x5b070b[''+(_0x40b7c7+_0x44daf2)]=_0x72bb5d['info'][_0x40b7c7]),_0x72bb5d['headerMap'][_0x40b7c7]&&(_0x2f51bd[''+(_0x40b7c7+_0xd9f5ef)]=_0x72bb5d['headerMap'][_0x40b7c7]);}const _0x106505=_0x3e4026[_0x38bc83(0x46e)](),_0xfb2ae1=_0x3e4026[_0x38bc83(0x37f)]();for(let _0x475f1e=0x0;_0x475f1e<_0x106505;_0x475f1e++)for(let _0x165cef=0x0;_0x165cef<_0xfb2ae1;_0x165cef++){const _0x39f80e={...(_0x23e90b=(_0x3cf1ae=_0x3e4026[_0x38bc83(0x3b3)])==null?void 0x0:_0x3cf1ae[_0x475f1e])==null?void 0x0:_0x23e90b[_0x165cef]};let _0x28d022;_0x72bb5d['info'][_0x475f1e][_0x38bc83(0x37d)]?_0x28d022=_0x72bb5d[_0x38bc83(0x34c)][_0x475f1e][_0x38bc83(0x2c4)]===0x0?_0x1ed179[_0x38bc83(0x243)]:_0x1ed179[_0x38bc83(0x483)]:_0x28d022=_0x1ed179[_0x38bc83(0x197)];const _0x6ba2fb=_0x72bb5d[_0x38bc83(0x34c)][_0x475f1e][_0x38bc83(0x29c)],_0x5da589=_0x518d5a[_0x38bc83(0x34c)][_0x165cef]['valueIndex'],_0x1748b1=Math[_0x38bc83(0x275)](_0x6ba2fb,_0x5da589),_0x5e5657=_0x241096[_0x38bc83(0x3b6)][_0x38bc83(0x2a8)]['concat']();let _0x172e0b='';_0x1748b1<0x0?_0x172e0b=(_0x83d8c2=_0x5e5657[0x0])!=null?_0x83d8c2:'':_0x172e0b=(_0x3bbc7b=_0x5e5657[_0x1748b1])!=null?_0x3bbc7b:'';const _0x18159d=_0x4820a1[_0x172e0b];_0x18159d&&(_0x28d022={..._0x28d022,'n':{'pattern':_0x18159d}}),_0x9f36e2[_0x38bc83(0x388)](_0x475f1e+_0x44daf2,_0x165cef+_0x494746,_0x111915(_0x1afdc0,_0x39f80e,_0x28d022));}return{'valueMatrix':_0x9f36e2,'rowInfo':_0x5b070b,'colInfo':_0x2af582,'cornerInfo':_0x1e50ac,'rowHeaderMap':_0x2f51bd,'colHeaderMap':_0x1b6dd7};};function _0x99791(_0x346ed0,_0x28b49f,_0x54abbe,_0x1e96aa){const _0x3f1959=_0x5d1072;let _0x3f54fa=_0x346ed0['v'];_0x28b49f&&(_0x3f54fa=''+_0x1e96aa[_0x3f1959(0x37a)]);const _0x3055a8=_0x346ed0['t']&&(_0x346ed0['t']&_0x2eef51['PivotViewCellValueTypeEnum']['blank'])>0x0;_0x3055a8&&(_0x3f54fa=''+_0x1e96aa['sheets-pivot.blank']);const _0x5bd67f=_0x346ed0['t']&&(_0x346ed0['t']&_0x2eef51[_0x3f1959(0x3e3)]['other'])>0x0;if(_0x5bd67f&&(_0x3f54fa=''+_0x1e96aa[_0x3f1959(0x258)]),_0x346ed0['s']===_0x2eef51['PivotCellStyleTypeEnum'][_0x3f1959(0x24e)]){let _0x622b8e=_0x3f54fa,_0x1b1df0='';_0x2eef51['isPrefixValue'](_0x3f54fa)&&(_0x622b8e=_0x3f54fa[_0x3f1959(0x2ee)],_0x1b1df0=_0x3f54fa['value']);const _0x40ba30=_0x54abbe&&!_0x3055a8&&!_0x5bd67f?_0x374f23['numfmt']['format'](_0x54abbe,Number(_0x622b8e)):_0x622b8e;_0x1b1df0?_0x3f54fa=_0x40ba30+'\x20'+_0x1b1df0:_0x3f54fa=_0x40ba30+'\x20'+_0x1e96aa[_0x3f1959(0x17d)];}else _0x346ed0['s']===_0x2eef51[_0x3f1959(0x421)]['GrandTotal']&&(_0x3f54fa=_0x3f54fa+'\x20'+_0x1e96aa[_0x3f1959(0x21a)]);return _0x3f54fa;}function _0x9bc11a(_0xbd02ea){const _0x541276=_0x5d1072;if(_0x2eef51['isErrorValue'](_0xbd02ea)){const {errorType:_0x2cb0b1}=_0xbd02ea;switch(_0x2cb0b1){case _0x2eef51[_0x541276(0x1df)][_0x541276(0x398)]:return _0x925485[_0x541276(0x466)][_0x541276(0x414)];case _0x2eef51[_0x541276(0x1df)]['NotNumber']:return _0x925485[_0x541276(0x466)][_0x541276(0x2a1)];case _0x2eef51[_0x541276(0x1df)][_0x541276(0x25e)]:return _0x925485[_0x541276(0x466)][_0x541276(0x198)];case _0x2eef51['PivotErrorTypeEnum'][_0x541276(0x487)]:return _0x925485['ErrorType']['NAME'];case _0x2eef51[_0x541276(0x1df)][_0x541276(0x40a)]:return _0x925485[_0x541276(0x466)]['REF'];}}return _0xbd02ea;}function _0x227f31(_0x4fe17b,_0x590f18,_0x1b85c4=!0x1,_0x4ce5f8=!0x1){const _0x5a4dc8=_0x5d1072,{data:_0x1aaac5}=_0x590f18,_0x609f23=_0x590f18['getRowCount'](),_0x1b5e5a=_0x590f18[_0x5a4dc8(0x37f)]();if(_0x609f23<=0x0||_0x1b5e5a<=0x0)return[];const _0x2cc976=_0x590f18['getLastCol'](),_0x1a6f21=_0x590f18[_0x5a4dc8(0x315)](),_0x5605cd=_0x4ce5f8?_0x1a6f21>=0x0?_0x1a6f21+0x1:0x0:_0x609f23,_0x50f335=_0x4ce5f8?_0x2cc976>=0x0?_0x2cc976+0x1:0x0:_0x1b5e5a,{row:_0x424a0d,col:_0x3e3d0b}=_0x4fe17b,_0x190354=_0x424a0d,_0x302a2d=_0x3e3d0b;if(_0x1b85c4){const _0x731514=[];for(const [_0x19c163,_0x5a5f52]of Object[_0x5a4dc8(0x38d)](_0x1aaac5))for(const [_0x4eee32,_0x1e3fc5]of Object['entries'](_0x5a5f52))_0x731514[_0x5a4dc8(0x27b)](_0x374f23[_0x5a4dc8(0x3d6)](_0x190354+Number(_0x19c163),_0x302a2d+Number(_0x4eee32)));return _0x731514;}else{const _0xe2f5e1=_0x4ce5f8?_0x5605cd>0x0?0x1:0x0:0x1,_0x4cb8a2=_0x4ce5f8?_0x50f335>0x0?0x1:0x0:0x1,_0x40d920=_0x424a0d+_0x5605cd-_0xe2f5e1,_0x548765=_0x3e3d0b+_0x50f335-_0x4cb8a2;return[{'startRow':_0x190354,'startColumn':_0x302a2d,'endRow':_0x40d920,'endColumn':_0x548765}];}}const _0x1e657c=_0x5d1072(0x2f9),_0x2e78bd=_0x5d1072(0x3c3);var _0x5370e2=(_0xc8966a=>(_0xc8966a[_0x5d1072(0x2f1)]='filter',_0xc8966a[_0x5d1072(0x232)]='panel',_0xc8966a[_0x5d1072(0x35c)]=_0x5d1072(0x3e7),_0xc8966a[_0x5d1072(0x231)]='AddPivotTableWithConfig',_0xc8966a[_0x5d1072(0x358)]='addPivotTable',_0xc8966a[_0x5d1072(0x3a0)]='movePivotField',_0xc8966a[_0x5d1072(0x32f)]=_0x5d1072(0x3ac),_0xc8966a[_0x5d1072(0x2f6)]='setPivotCollapse',_0xc8966a['SetPivotFilter']='setPivotFilter',_0xc8966a[_0x5d1072(0x334)]='setPivotSort',_0xc8966a[_0x5d1072(0x46b)]=_0x5d1072(0x289),_0xc8966a['UpdatePivotSource']=_0x5d1072(0x26e),_0xc8966a[_0x5d1072(0x228)]=_0x5d1072(0x3ed),_0xc8966a[_0x5d1072(0x42f)]='drillDown',_0xc8966a[_0x5d1072(0x47d)]=_0x5d1072(0x426),_0xc8966a[_0x5d1072(0x267)]=_0x5d1072(0x47b),_0xc8966a[_0x5d1072(0x305)]='resetPivotTable',_0xc8966a))(_0x5370e2||{});const _0x283503={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x5d1072(0x2c2),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x5d1072(0x32c),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x5d1072(0x463),'sheets-pivot.countName':_0x5d1072(0x2aa),'sheets-pivot.countNumsName':_0x5d1072(0x2aa),'sheets-pivot.maxName':_0x5d1072(0x27d),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x5d1072(0x1ce),'sheets-pivot.stdDevpName':_0x5d1072(0x251),'sheets-pivot.sumName':_0x5d1072(0x2e1),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x5d1072(0x375),'sheets-pivot.subTotal':_0x5d1072(0x24e),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x5d1072(0x306),'sheets-pivot.blank':_0x5d1072(0x1b7),'sheets-pivot.other':_0x5d1072(0x44d),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':'Values'},_0x3f9a5f={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x460ff6=_0x374f23[_0x5d1072(0x34a)](_0x5d1072(0x480)),_0x1b27ae=_0x374f23[_0x5d1072(0x1f8)](_0x5d1072(0x27e));var _0x5493f6=(_0x5769d9=>(_0x5769d9[_0x5d1072(0x346)]='add',_0x5769d9[_0x5d1072(0x2af)]='delete',_0x5769d9[_0x5d1072(0x33f)]=_0x5d1072(0x33f),_0x5769d9))(_0x5493f6||{}),_0x5ae422=(_0x228cb0=>(_0x228cb0[_0x5d1072(0x395)]='add',_0x228cb0[_0x5d1072(0x332)]=_0x5d1072(0x3b5),_0x228cb0[_0x5d1072(0x36a)]=_0x5d1072(0x2af),_0x228cb0))(_0x5ae422||{});const _0x23d358={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x38eba3={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x3bd),'handler':()=>!0x0},_0x4d7335={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x306833={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':_0x5d1072(0x240),'handler':()=>!0x0},_0x4a9d2d={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0};var _0x50e247=Object[_0x5d1072(0x2c5)],_0x354d08=(_0x525efa,_0x3e1a77,_0x330797,_0x1f80ae)=>{const _0x37ffe6=_0x5d1072;for(var _0x54e5b6=_0x1f80ae>0x1?void 0x0:_0x1f80ae?_0x50e247(_0x3e1a77,_0x330797):_0x3e1a77,_0x3135c3=_0x525efa[_0x37ffe6(0x468)]-0x1,_0x6bea67;_0x3135c3>=0x0;_0x3135c3--)(_0x6bea67=_0x525efa[_0x3135c3])&&(_0x54e5b6=_0x6bea67(_0x54e5b6)||_0x54e5b6);return _0x54e5b6;},_0x472406=(_0x359a8b,_0x38367b)=>(_0x1dc5a6,_0x51bd5a)=>_0x38367b(_0x1dc5a6,_0x51bd5a,_0x359a8b);_0x1cc2c4[_0x5d1072(0x333)]=class extends _0x374f23['Disposable']{constructor(_0x33584b){const _0xc6aac1=_0x5d1072;super(),_0x1e0b19(this,_0xc6aac1(0x323),new Map()),this[_0xc6aac1(0x454)]=_0x33584b;}['handleAsyncResponse'](_0x1c3a4c){const _0x4c48ce=_0x5d1072,{version:_0xff65cb}=_0x1c3a4c,_0x5b8983=this[_0x4c48ce(0x323)]['get'](_0xff65cb);_0x5b8983&&(_0x5b8983(_0x1c3a4c),this[_0x4c48ce(0x323)]['delete'](_0xff65cb));}[_0x5d1072(0x291)](_0x405f52){return new Promise((_0x37a999,_0x1b3f73)=>{const _0x30a6db=_0x1019,_0xb7e512=this['_generateUniqueVersion']();this[_0x30a6db(0x323)]['set'](_0xb7e512,_0x37a999),this[_0x30a6db(0x454)][_0x30a6db(0x17c)](_0x23d358['id'],{'version':_0xb7e512,..._0x405f52},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x35b69e=_0x5d1072;return Math['random']()[_0x35b69e(0x17f)](0x24)[_0x35b69e(0x3c7)](0x2,0x10);}},_0x1cc2c4['SheetsPivotRPCService']=_0x354d08([_0x472406(0x0,_0x374f23['Inject'](_0x374f23['ICommandService']))],_0x1cc2c4[_0x5d1072(0x333)]);const _0x6b9aa1={0x0:'w',0x1:'s',0x2:'F',0x3:'i',0x4:'9',0x5:'a',0x6:'h',0x7:'1',0x8:'D',0x9:'S','C':'0','u':'2','l':'3','X':'4','v':'5','T':'6','Q':'7','n':'8','b':'b','c':'c','Z':'d','U':'e','x':'f','K':'g','h':'j','P':'k','t':'l','g':'m','M':'n','z':'o','e':'p','G':'q','q':'r','o':'t','R':'u','w':'v','s':'x','I':'y','J':'z','Y':'A','W':'B','F':'C','i':'E','a':'G','D':'H','f':'I','N':'J','m':'K','H':'L','V':'M','y':'N','A':'O','p':'P','B':'Q','O':'R','L':'T','S':'U','k':'V','E':'W','d':'X','j':'Y','r':'Z'},_0x137d34=_0x5d1072(0x264),_0x38d7ab=_0x4b4e65=>{const _0x5931d7=_0x5d1072;var _0x1f6ad2;return((_0x1f6ad2=_0x4b4e65[_0x5931d7(0x394)])==null?void 0x0:_0x1f6ad2['dataStream']['replace'](/\r\n$/,''))||'';};class _0x1d59b3 extends _0x2eef51[_0x5d1072(0x245)]{constructor(_0x2885d5,_0x2be258){const _0x7ba286=_0x5d1072;super(),_0x1e0b19(this,_0x7ba286(0x3df),{}),_0x1e0b19(this,'_univerInstanceService'),_0x1e0b19(this,_0x7ba286(0x182)),(this[_0x7ba286(0x443)]=_0x2be258,this[_0x7ba286(0x182)]=_0x2885d5);}[_0x5d1072(0x3e9)](){const _0x4e8702=_0x5d1072;for(const _0x4e2b8b in this[_0x4e8702(0x3d1)]){const _0x56f62f=this[_0x4e8702(0x3d1)][_0x4e2b8b],_0x2f1060=_0x56f62f[_0x4e8702(0x23b)]();this[_0x4e8702(0x3df)][_0x2f1060]=_0x56f62f[_0x4e8702(0x470)]();}}[_0x5d1072(0x477)](){const _0x462cf=_0x5d1072,_0x11fbd2=this[_0x462cf(0x182)];return _0x1f8c04[_0x462cf(0x449)](_0x11fbd2);}[_0x5d1072(0x34d)](_0x9e746e){const _0x456dca=_0x5d1072,_0xb5977c=this[_0x456dca(0x3d1)][_0x9e746e][_0x456dca(0x262)];delete this[_0x456dca(0x3d1)][_0x9e746e],delete this['rangeKeyMap'][_0xb5977c];}['addDataFieldWithoutUnitInfo'](_0x2eaea1){const _0x1dfd4c=_0x5d1072;this[_0x1dfd4c(0x3d1)][_0x2eaea1[_0x1dfd4c(0x470)]()]=_0x2eaea1;}[_0x5d1072(0x38a)](_0x12900b){const _0x26e3e7=_0x5d1072;var _0x59d83d,_0xf2ad99;const _0x257214=this[_0x26e3e7(0x182)][_0x26e3e7(0x1c8)](_0x12900b);if(_0x257214){const {unitId:_0x115020,subUnitId:_0x135694}=_0x257214,_0x48fb24=(_0x59d83d=this[_0x26e3e7(0x182)][_0x26e3e7(0x458)](_0x115020,_0x135694,_0x12900b))==null?void 0x0:_0x59d83d[_0x26e3e7(0x1d7)];this['_host'][_0x26e3e7(0x400)]({'token':_0x12900b,'type':_0x5493f6['delete'],'dataRangeInfo':_0x48fb24});}(_0xf2ad99=this['getCollection'](_0x12900b))==null||_0xf2ad99[_0x26e3e7(0x259)](),delete this['collections'][_0x12900b];}[_0x5d1072(0x23b)](_0x5a46d7,_0x1c98d8){const _0x477bc3=_0x5d1072,{sheetName:_0x5d9303,unitId:_0x2df302,range:_0x5c6f3a}=_0x5a46d7,{startRow:_0x44eb02,endRow:_0xbf6d33}=_0x5c6f3a;return _0x925485[_0x477bc3(0x484)](_0x2df302,_0x5d9303,{'startRow':_0x44eb02,'endRow':_0xbf6d33,'startColumn':_0x1c98d8,'endColumn':_0x1c98d8});}[_0x5d1072(0x373)](_0x56f587){const _0x3a7bc7=_0x5d1072;return this[_0x3a7bc7(0x3d1)][this[_0x3a7bc7(0x3df)][_0x56f587]];}[_0x5d1072(0x22b)](_0x27f105,_0x16fac0){this['rangeKeyMap'][_0x27f105]=_0x16fac0;}[_0x5d1072(0x22f)](_0x1825ff,_0x291e4b){const _0x59be6b=_0x5d1072;this['rangeKeyMap'][_0x291e4b]=this[_0x59be6b(0x3df)][_0x1825ff],delete this[_0x59be6b(0x3df)][_0x1825ff];}['addCollectionByJSON'](_0x572d2f,_0x5f01db,_0x1168ea,_0x55faad){const _0x525a58=_0x5d1072,_0x4d8fe9=new _0x2eef51[(_0x525a58(0x34f))](this);_0x4d8fe9[_0x525a58(0x328)](_0x5f01db);const _0x337593=[];let _0x4b02a2=0x0;for(const _0x16d0a9 of _0x4d8fe9[_0x525a58(0x1f7)]){const _0x2134a6=this['getRangeKey'](_0x1168ea,_0x4b02a2),_0xf121cd=this[_0x525a58(0x3d1)][_0x16d0a9];_0xf121cd&&(_0xf121cd['rangeKey']=_0x2134a6,this[_0x525a58(0x22b)](_0x2134a6,_0x16d0a9),_0x337593[_0x525a58(0x27b)]({'index':_0x4b02a2,'dataField':_0xf121cd})),_0x4b02a2++;}return this['addCollection'](_0x572d2f,_0x4d8fe9,_0x1168ea,_0x55faad),{'collection':_0x4d8fe9,'updateDataFieldList':_0x337593};}[_0x5d1072(0x2cd)](_0x2b0584,_0x897d){const _0x289439=_0x5d1072;return _0x2b0584['rangeType']===_0x374f23[_0x289439(0x1e6)][_0x289439(0x20a)]?{'startRow':0x0,'startColumn':_0x2b0584[_0x289439(0x3b9)],'endRow':_0x897d[_0x289439(0x46e)]()-0x1,'endColumn':_0x2b0584[_0x289439(0x217)]}:{'startRow':_0x2b0584[_0x289439(0x378)],'startColumn':_0x2b0584[_0x289439(0x3b9)],'endRow':_0x2b0584[_0x289439(0x3a2)],'endColumn':_0x2b0584[_0x289439(0x217)]};}[_0x5d1072(0x27c)](_0xc97c98){const _0x2dd791=_0x5d1072,{sheetName:_0x846260,range:_0xa9a8e2}=_0xc97c98,_0x3ca84e=this[_0x2dd791(0x443)][_0x2dd791(0x2fb)](_0x374f23[_0x2dd791(0x1e8)]['UNIVER_SHEET']),_0x35c98f=_0x3ca84e[_0x2dd791(0x404)](_0x846260),_0xf071c9=_0x35c98f[_0x2dd791(0x1b2)](),{startColumn:_0x3a3e18,startRow:_0x1c11de,endColumn:_0x18650a}=this[_0x2dd791(0x2cd)](_0xa9a8e2,_0x35c98f),_0x4de529=_0x3ca84e[_0x2dd791(0x26a)](),_0x4ad1cb=new _0x2eef51[(_0x2dd791(0x34f))](this);_0x4ad1cb[_0x2dd791(0x406)](_0xc97c98);const _0xb9624a=[],_0x5f0db4={};for(let _0x173641=_0x3a3e18;_0x173641<=_0x18650a;_0x173641++){const _0x2d2586=_0xf071c9[_0x2dd791(0x216)](_0x1c11de,_0x173641),_0xe5130c=this[_0x2dd791(0x23b)](_0xc97c98,_0x173641),_0x26dcd2=this['getDataFieldByRangeKey'](_0xe5130c);if(_0x26dcd2)_0x4ad1cb[_0x2dd791(0x34b)](_0x26dcd2[_0x2dd791(0x470)](),_0x26dcd2['getName']());else{const _0x353d91=this[_0x2dd791(0x1a6)]();let _0x1b1311=this[_0x2dd791(0x25b)](_0x2d2586,_0x4de529,_0x5f0db4);_0x2eef51['isDateValue'](_0x1b1311)&&(_0x1b1311=_0x374f23['numfmt'][_0x2dd791(0x429)](_0x1b1311['f'],Number(_0x1b1311['v'])));const _0xc972f0=this[_0x2dd791(0x273)](_0x1b1311,_0x173641),_0x480c21=new _0x2eef51[(_0x2dd791(0x1a9))](_0x353d91,_0xc972f0,_0x2eef51['generateHexNumber'](0x3));_0x480c21[_0x2dd791(0x262)]=_0xe5130c,this[_0x2dd791(0x3d1)][_0x353d91]=_0x480c21,_0x4ad1cb[_0x2dd791(0x34b)](_0x353d91,_0xc972f0),_0xb9624a[_0x2dd791(0x27b)]({'index':_0x173641,'dataField':_0x480c21});}}return{'updateDataFieldList':_0xb9624a,'collection':_0x4ad1cb};}[_0x5d1072(0x242)](_0xc624fe){const _0x2b1c1b=_0x5d1072;return this['_host'][_0x2b1c1b(0x277)]()[_0x2b1c1b(0x1ca)]+'\x20'+_0x374f23[_0x2b1c1b(0x2d5)](_0xc624fe);}[_0x5d1072(0x273)](_0x122496,_0x3f626b){const _0xaa011a=_0x5d1072;return _0x122496==null||_0x122496===''?this[_0xaa011a(0x242)](_0x3f626b):String(_0x122496);}[_0x5d1072(0x43d)](_0x3d305b){return this['collections'][_0x3d305b];}[_0x5d1072(0x1d6)](_0xb311f0,_0x27415f,_0x59c10a,_0x495f34){const _0x291643=_0x5d1072;this['collections'][_0xb311f0]=_0x27415f,_0x27415f[_0x291643(0x406)](_0x59c10a),this[_0x291643(0x182)][_0x291643(0x400)]({'token':_0xb311f0,'type':_0x5493f6['add'],'dataRangeInfo':_0x59c10a,'targetCellInfo':_0x495f34});}['handleMoveRange'](_0x27722f,_0x1abb6a){const _0x497bde=_0x5d1072,_0x1e1cfe=this[_0x497bde(0x43d)](_0x27722f),_0x229c0b=_0x1e1cfe[_0x497bde(0x324)]();let _0x3b82f2=0x0;for(const _0x217d28 of _0x229c0b){const _0x347619=_0x1e1cfe['getFieldById'](_0x217d28),_0x51603a=this[_0x497bde(0x23b)](_0x1abb6a,_0x3b82f2);this['updateRangeKeyMap'](_0x347619['rangeKey'],_0x51603a),_0x3b82f2++;}}[_0x5d1072(0x338)](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x2f4e18,_0x1ac73e){const _0x3fd5aa=_0x5d1072;if(this[_0x3fd5aa(0x43d)](_0x2f4e18)){const _0x4c34ca=this[_0x3fd5aa(0x412)](_0x1ac73e),_0x281f9b=[];for(const _0xe9bddc of _0x4c34ca)this[_0x3fd5aa(0x3df)][_0xe9bddc]!==void 0x0&&_0x281f9b['push'](this[_0x3fd5aa(0x3df)][_0xe9bddc]);const _0x56fc08=this[_0x3fd5aa(0x32a)](_0x2f4e18),_0x2c2890=[],_0x5d1185=new Set(_0x281f9b);for(const _0x3f8da1 of _0x56fc08)_0x5d1185[_0x3fd5aa(0x1b5)](_0x3f8da1)||_0x2c2890['push'](_0x3f8da1);return _0x2c2890;}}['getMatrixValue'](_0x23caf1,_0x19536c,_0x38a4c0,_0x5c81fb,_0x26b77e){const _0x1da6eb=_0x5d1072;return _0x19536c&&_0x19536c[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e)?_0x19536c[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e):_0x38a4c0&&_0x38a4c0[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e)?_0x38a4c0[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e):_0x23caf1[_0x1da6eb(0x216)](_0x5c81fb,_0x26b77e);}[_0x5d1072(0x246)](_0x8ded0d,_0x216e82,_0x522bbe,_0x221c34){const _0x51e26b=_0x5d1072,_0x151fba=this['dataFields'][_0x8ded0d];if(!_0x151fba)return;const {subUnitId:_0x5203ad,range:_0x305433,unitId:_0x3e6465}=_0x216e82,_0x3e3dc1=this[_0x51e26b(0x443)][_0x51e26b(0x2f2)](_0x3e6465);if(!_0x3e3dc1){console[_0x51e26b(0x3a7)](_0x51e26b(0x177));return;}const _0x8422f=_0x3e3dc1['getSheetBySheetId'](_0x5203ad),_0x40dfa6=_0x8422f[_0x51e26b(0x1b2)](),{arrayFormulaCellDataMatrix:_0x1d5e44,unitDataMatrix:_0x4a4069}=_0x221c34||{},{startRow:_0x5190cf,startColumn:_0x507810,endRow:_0x4b8db7}=this[_0x51e26b(0x2cd)](_0x305433,_0x8422f);_0x151fba[_0x51e26b(0x409)]();const _0x506404=_0x3e3dc1[_0x51e26b(0x26a)](),_0x469ff8={},_0xc164c9=this[_0x51e26b(0x292)](_0x40dfa6,_0x1d5e44,_0x4a4069,_0x5190cf,_0x507810+_0x522bbe);let _0x2e968c=this[_0x51e26b(0x25b)](_0xc164c9,_0x506404,_0x469ff8);_0x2eef51['isDateValue'](_0x2e968c)&&(_0x2e968c=_0x374f23['numfmt'][_0x51e26b(0x429)](_0x2e968c['f'],Number(_0x2e968c['v'])));const _0x2d89ff=this[_0x51e26b(0x273)](_0x2e968c,_0x507810+_0x522bbe);_0x151fba[_0x51e26b(0x1c0)](_0x2d89ff);for(let _0x2ffc26=_0x5190cf+0x1;_0x2ffc26<=_0x4b8db7;_0x2ffc26++){const _0x18768e=this[_0x51e26b(0x292)](_0x40dfa6,_0x1d5e44,_0x4a4069,_0x2ffc26,_0x507810+_0x522bbe);_0x151fba[_0x51e26b(0x43e)](this[_0x51e26b(0x25b)](_0x18768e,_0x506404,_0x469ff8),_0x2ffc26-0x1-_0x5190cf);}}[_0x5d1072(0x33a)](_0x53da28,_0x24d097,_0x3c35c8){const _0x1617d1=_0x5d1072,{subUnitId:_0x16f945,range:_0x25a593,unitId:_0x3734c8}=_0x3c35c8,_0x735312=this['_univerInstanceService'][_0x1617d1(0x2f2)](_0x3734c8);if(!_0x735312){console[_0x1617d1(0x3a7)](_0x1617d1(0x177));return;}const _0x29a2cc=_0x735312[_0x1617d1(0x317)](_0x16f945),_0x1fd4ac=_0x29a2cc[_0x1617d1(0x1b2)](),{startRow:_0x972605,startColumn:_0x4c5d97,endRow:_0x777b7a}=this[_0x1617d1(0x2cd)](_0x25a593,_0x29a2cc),_0x5a465b=_0x735312[_0x1617d1(0x26a)](),_0x5d2acf={};for(const {dataField:_0x12cadc,index:_0x477250}of _0x24d097){_0x12cadc[_0x1617d1(0x409)]();const _0x30e34=this[_0x1617d1(0x292)](_0x1fd4ac,void 0x0,void 0x0,_0x972605,_0x4c5d97+_0x477250);let _0x284915=this[_0x1617d1(0x25b)](_0x30e34,_0x5a465b,_0x5d2acf);_0x2eef51[_0x1617d1(0x28e)](_0x284915)&&(_0x284915=_0x374f23[_0x1617d1(0x1c9)][_0x1617d1(0x429)](_0x284915['f'],Number(_0x284915['v'])));const _0x2b93f5=this[_0x1617d1(0x273)](_0x284915,_0x4c5d97+_0x477250);_0x12cadc[_0x1617d1(0x1c0)](_0x2b93f5);}_0x53da28['updateAllDisplayName']();for(let _0x471c44=_0x972605+0x1;_0x471c44<=_0x777b7a;_0x471c44++)for(const {index:_0x145eed,dataField:_0x2f1f59}of _0x24d097){const _0x344e23=_0x1fd4ac['getValue'](_0x471c44,_0x4c5d97+_0x145eed);_0x2f1f59[_0x1617d1(0x43e)](this['adjustSheetCellData'](_0x344e23,_0x5a465b,_0x5d2acf),_0x471c44-0x1-_0x972605);}_0x53da28['setDataRecordCount'](_0x777b7a-_0x972605);}['getRangeKeyList'](_0x484313){const _0x314f9a=_0x5d1072,{range:_0x5e82c9}=_0x484313,{startColumn:_0x589215,endColumn:_0x54e77c}=_0x5e82c9,_0x418a73=[];for(let _0xad4e73=_0x589215;_0xad4e73<=_0x54e77c;_0xad4e73++)_0x418a73[_0x314f9a(0x27b)](this['getRangeKey'](_0x484313,_0xad4e73));return _0x418a73;}['adjustSheetCellData'](_0x1b17cc,_0x5a0c46,_0x3a4a9b){const _0x195024=_0x5d1072;if(_0x1b17cc){const {s:_0x2483a1,v:_0x3ebaff,t:_0x4a0f93,p:_0x1772e1}=_0x1b17cc;if(_0x1772e1)return _0x38d7ab(_0x1772e1);const _0x1b3625=_0x5a0c46[_0x195024(0x411)](_0x2483a1);if(_0x1b3625&&_0x4a0f93===_0x374f23[_0x195024(0x278)]['NUMBER']&&_0x1b3625['n']){const {pattern:_0x4960bb}=_0x1b3625['n'];_0x3a4a9b[_0x4960bb]||(_0x3a4a9b[_0x4960bb]=_0x374f23['numfmt']['getFormatInfo'](_0x4960bb));const _0x25f90d=_0x3a4a9b[_0x4960bb],_0x3d50ba=_0x25f90d[_0x195024(0x380)];if(_0x25f90d[_0x195024(0x488)])return String(_0x3ebaff);if(_0x3d50ba)return{'v':_0x3ebaff,'f':_0x4960bb};}if(_0x4a0f93===_0x374f23['CellValueType'][_0x195024(0x1f4)])return Number(_0x3ebaff);if(_0x4a0f93===_0x374f23[_0x195024(0x278)]['STRING']||_0x4a0f93===_0x374f23[_0x195024(0x278)][_0x195024(0x1d0)])return String(_0x3ebaff);if(_0x4a0f93===void 0x0){const _0x440df7=Number(_0x3ebaff);if(!Number[_0x195024(0x2cb)](_0x440df7)&&String(_0x440df7)===_0x3ebaff)return _0x440df7;}return _0x3ebaff!=null?_0x3ebaff:null;}else return null;}[_0x5d1072(0x2f0)](_0xc83cb9){const _0x771f6a=_0x5d1072,{sheetName:_0xfca6f8,range:_0x390ad5,unitId:_0x38e964}=_0xc83cb9,_0x36bb3f=this[_0x771f6a(0x443)][_0x771f6a(0x2f2)](_0x38e964);if(!_0x36bb3f)return console['error'](_0x771f6a(0x177)),{'header':[],'data':[]};const _0x1a6a85=_0x36bb3f[_0x771f6a(0x404)](_0xfca6f8),_0x40b0d2=_0x1a6a85[_0x771f6a(0x1b2)](),{startRow:_0x59aea5,startColumn:_0x550440,endRow:_0x51845d,endColumn:_0x38de39}=this[_0x771f6a(0x2cd)](_0x390ad5,_0x1a6a85),_0x37ab76=_0x36bb3f[_0x771f6a(0x26a)](),_0xea2b00=[],_0x286a83=[],_0x31ac17={};for(let _0x3ce9a0=_0x59aea5;_0x3ce9a0<=_0x51845d;_0x3ce9a0++){const _0x4cf2fe=[];for(let _0x4f9bad=_0x550440;_0x4f9bad<=_0x38de39;_0x4f9bad++){const _0x1f789c=_0x40b0d2[_0x771f6a(0x216)](_0x3ce9a0,_0x4f9bad);_0x3ce9a0===_0x59aea5?_0xea2b00[_0x771f6a(0x27b)](_0x1f789c==null?null:String(_0x1f789c['v'])):_0x4cf2fe[_0x771f6a(0x27b)](this[_0x771f6a(0x25b)](_0x1f789c,_0x37ab76,_0x31ac17));}_0x286a83[_0x771f6a(0x27b)](_0x4cf2fe);}return{'header':_0xea2b00,'data':_0x286a83};}['toJSON'](){const _0x6986d2=_0x5d1072;return super[_0x6986d2(0x3ff)]();}[_0x5d1072(0x328)](_0x1e37fa){const _0x4e037f=_0x5d1072;super[_0x4e037f(0x328)](_0x1e37fa),this[_0x4e037f(0x3e9)]();}[_0x5d1072(0x259)](){super['dispose'](),this['rangeKeyMap']={},this['_host']=null;}}const _0x1afa42=_0x3220a6=>{const _0x41446c=_0x5d1072,{targetCellInfo:_0x1bb6fe}=_0x3220a6,{matrixCache:_0x5842ac,rangesCache:_0x5e1845}=_0x36fb91({'filter':_0x41446c(0x2f1),'row':_0x41446c(0x415),'column':_0x41446c(0x403),'values':'Values'},_0x1bb6fe),_0x499a10=new _0x374f23[(_0x41446c(0x33b))]();return _0x5842ac[_0x41446c(0x1d1)]((_0x1268fb,_0x2c43e9,_0x372670)=>{const _0x16c9ee=_0x41446c;_0x499a10[_0x16c9ee(0x388)](_0x1268fb,_0x2c43e9,_0x372670);}),{'matrix':_0x499a10,'rangesCache':_0x5e1845};},_0x1806da=_0x52b6f4=>{const _0x83f007=_0x5d1072;let _0x375fb4;if(_0x52b6f4!=null&&_0x52b6f4['v']||(_0x52b6f4==null?void 0x0:_0x52b6f4['v'])===0x0){_0x375fb4||(_0x375fb4={});const _0x5afc54=_0x9bc11a(_0x52b6f4['v']);typeof _0x5afc54=='number'?_0x375fb4['t']=_0x374f23['CellValueType'][_0x83f007(0x1f4)]:typeof _0x5afc54==_0x83f007(0x436)&&(_0x375fb4['t']=_0x374f23[_0x83f007(0x278)]['STRING']),_0x375fb4['v']=_0x5afc54;}return _0x375fb4;},_0x59e2c1=(_0x2bb4b4,_0x4d6af7,_0x2831ef)=>{const _0x40eb8=_0x5d1072;var _0x3a84d5,_0x1be4f9,_0x16f879,_0x4b3b1b,_0x2d4dbf,_0x35e7ca,_0x99d1a3,_0x58c6b6,_0x227458,_0x46afae,_0x2f77cd,_0x4ce363;const {cornerView:_0x23723c,rowView:_0x22a422,colView:_0x506934,dataView:_0x4873f1,pageView:_0x187036,formatMap:_0x4e8af3}=_0x2bb4b4,{row:_0x216415,col:_0x5a0642}=_0x4d6af7,_0x46e2fe=new _0x374f23[(_0x40eb8(0x33b))]();let _0x3a62b6=_0x216415,_0x5195ce=_0x5a0642;Object[_0x40eb8(0x3d8)](_0x187036[_0x40eb8(0x3b3)])['forEach'](_0x334735=>{const _0x395eed=_0x40eb8;Object[_0x395eed(0x3d8)](_0x187036[_0x395eed(0x3b3)][Number(_0x334735)])[_0x395eed(0x274)](_0x5575a4=>{const _0x1ced46=_0x395eed,_0x20d571={..._0x187036[_0x1ced46(0x3b3)][Number(_0x334735)][Number(_0x5575a4)]};_0x46e2fe[_0x1ced46(0x388)](Number(_0x334735)+_0x3a62b6,Number(_0x5575a4)+_0x5195ce,_0x1806da(_0x20d571));});});const _0x348f6d=Object[_0x40eb8(0x3d8)](_0x187036[_0x40eb8(0x3b3)])[_0x40eb8(0x468)];_0x3a62b6+=_0x348f6d+(_0x348f6d?_0x9545db:0x0);const _0x33db8c=_0x23723c[_0x40eb8(0x46e)](),_0xb3d1c3=_0x23723c[_0x40eb8(0x37f)]();for(let _0x4759a9=0x0;_0x4759a9<_0x33db8c;_0x4759a9++)for(let _0x158ba2=0x0;_0x158ba2<_0xb3d1c3;_0x158ba2++){const _0x363254={...(_0x1be4f9=(_0x3a84d5=_0x23723c[_0x40eb8(0x3b3)])==null?void 0x0:_0x3a84d5[_0x4759a9])==null?void 0x0:_0x1be4f9[_0x158ba2]};_0x363254&&((_0x16f879=_0x22a422[_0x40eb8(0x271)][_0x158ba2])!=null&&_0x16f879[_0x40eb8(0x40e)])&&_0x158ba2===_0xb3d1c3-0x1&&_0x4759a9===_0x33db8c-0x1&&(_0x363254['v']=''+_0x2831ef[_0x40eb8(0x37a)]),_0x46e2fe['setValue'](_0x4759a9+_0x3a62b6,_0x158ba2+_0x5195ce,_0x1806da(_0x363254));}_0x5195ce+=_0xb3d1c3;const _0x440803=_0x506934[_0x40eb8(0x271)],_0x2cea94=_0x506934[_0x40eb8(0x315)]()>=0x0?_0x506934['getLastRow']()+0x1:0x0,_0x3b8293=_0x506934[_0x40eb8(0x20f)]()>=0x0?_0x506934[_0x40eb8(0x20f)]()+0x1:0x0;for(let _0x26033f=0x0;_0x26033f<_0x3b8293;_0x26033f++)for(let _0x13842d=0x0;_0x13842d<_0x2cea94;_0x13842d++){const _0x407a20={...(_0x2d4dbf=(_0x4b3b1b=_0x506934[_0x40eb8(0x3b3)])==null?void 0x0:_0x4b3b1b[_0x26033f])==null?void 0x0:_0x2d4dbf[_0x13842d]},_0x5aaf2e=(_0x35e7ca=_0x440803[_0x26033f])==null?void 0x0:_0x35e7ca[_0x40eb8(0x44b)],_0x376b85=_0x4e8af3[_0x5aaf2e];_0x407a20&&(_0x407a20['v']=_0x99791(_0x407a20,_0x26033f===0x0&&((_0x99d1a3=_0x506934[_0x40eb8(0x351)](_0x13842d+0x1))==null?void 0x0:_0x99d1a3[_0x40eb8(0x40e)]),_0x376b85,_0x2831ef)),_0x46e2fe['setValue'](_0x26033f+_0x3a62b6,_0x13842d+_0x5195ce,_0x1806da(_0x407a20));}_0x3a62b6+=_0x33db8c;const _0x31b665=_0x22a422[_0x40eb8(0x271)],_0x2a3fa7=_0x22a422[_0x40eb8(0x315)]()>=0x0?_0x22a422[_0x40eb8(0x315)]()+0x1:0x0,_0x35db7f=_0x22a422['getLastCol']()>=0x0?_0x22a422[_0x40eb8(0x20f)]()+0x1:0x0;for(let _0x3a6962=0x0;_0x3a6962<_0x2a3fa7;_0x3a6962++)for(let _0x134a86=0x0;_0x134a86<_0x35db7f;_0x134a86++){const _0xf96274={...(_0x227458=(_0x58c6b6=_0x22a422[_0x40eb8(0x3b3)])==null?void 0x0:_0x58c6b6[_0x3a6962])==null?void 0x0:_0x227458[_0x134a86]},_0xd9e537=(_0x46afae=_0x31b665[_0x134a86])==null?void 0x0:_0x46afae[_0x40eb8(0x44b)],_0x3d5d88=_0x4e8af3[_0xd9e537];_0xf96274&&(_0xf96274['v']=_0x99791(_0xf96274,!0x1,_0x3d5d88,_0x2831ef)),_0x46e2fe[_0x40eb8(0x388)](_0x3a6962+_0x3a62b6,_0x134a86+_0x5a0642,_0x1806da(_0xf96274));}const _0x249a18=_0x4873f1[_0x40eb8(0x46e)](),_0x22958b=_0x4873f1[_0x40eb8(0x37f)]();for(let _0x2348d4=0x0;_0x2348d4<_0x249a18;_0x2348d4++)for(let _0x4a9e13=0x0;_0x4a9e13<_0x22958b;_0x4a9e13++){const _0x42077a={...(_0x4ce363=(_0x2f77cd=_0x4873f1[_0x40eb8(0x3b3)])==null?void 0x0:_0x2f77cd[_0x2348d4])==null?void 0x0:_0x4ce363[_0x4a9e13]};_0x46e2fe[_0x40eb8(0x388)](_0x2348d4+_0x3a62b6,_0x4a9e13+_0x5195ce,_0x1806da(_0x42077a));}return _0x46e2fe;},_0x50fc8d=_0x7ca175=>{const _0x3028bf=_0x5d1072,{view:_0x598ec3,targetCellInfo:_0x2b4fb7,isEmpty:_0x284e74,textInfo:_0x57378f}=_0x7ca175;if(_0x284e74)return _0x1afa42(_0x7ca175);const {pageView:_0x5bb206,cornerView:_0x80d49d,rowView:_0x37124d,colView:_0x44321c,dataView:_0x5b7f3a}=_0x598ec3,_0x17a52d=_0x227f31(_0x2b4fb7,_0x5bb206,!0x0),_0x2f55bb=_0x5bb206[_0x3028bf(0x18f)]>=0x0?_0x5bb206['lastRow']+0x1:0x0,_0x5a328c=_0x80d49d['getRowCount'](),_0x6e8171=_0x80d49d['getColCount'](),_0x4e49f3=_0x17a52d[_0x3028bf(0x468)]>0x0?_0x9545db:0x0,_0x4ee248=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3,'col':_0x2b4fb7[_0x3028bf(0x434)]},_0x80d49d,!0x1,!0x1),_0x5c9cfa=_0x227f31({'row':_0x2b4fb7['row']+_0x2f55bb+_0x4e49f3+_0x5a328c,'col':_0x2b4fb7[_0x3028bf(0x434)]},_0x37124d,!0x1,!0x0),_0x562103=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3,'col':_0x2b4fb7[_0x3028bf(0x434)]+_0x6e8171},_0x44321c,!0x1,!0x0),_0x205ceb=_0x227f31({'row':_0x2b4fb7[_0x3028bf(0x23e)]+_0x2f55bb+_0x4e49f3+_0x5a328c,'col':_0x2b4fb7[_0x3028bf(0x434)]+_0x6e8171},_0x5b7f3a,!0x1,!0x1),_0x5f22fc={'rowRanges':_0x5c9cfa,'colRanges':_0x562103,'cornerRanges':_0x4ee248,'dataRanges':_0x205ceb,'pageRanges':_0x17a52d};return{'matrix':_0x59e2c1(_0x598ec3,_0x2b4fb7,_0x57378f),'rangesCache':_0x5f22fc};};var _0x3be594=Object[_0x5d1072(0x2c5)],_0x3ef864=(_0x306b1b,_0x28c0d6,_0x5c9b74,_0x5c6580)=>{const _0x1f837a=_0x5d1072;for(var _0xbd44a0=_0x5c6580>0x1?void 0x0:_0x5c6580?_0x3be594(_0x28c0d6,_0x5c9b74):_0x28c0d6,_0x19763c=_0x306b1b[_0x1f837a(0x468)]-0x1,_0x482f59;_0x19763c>=0x0;_0x19763c--)(_0x482f59=_0x306b1b[_0x19763c])&&(_0xbd44a0=_0x482f59(_0xbd44a0)||_0xbd44a0);return _0xbd44a0;},_0x3762a4=(_0x335708,_0x1e558e)=>(_0x5c7a6d,_0x394c57)=>_0x1e558e(_0x5c7a6d,_0x394c57,_0x335708);_0x1cc2c4['SheetsPivotDataSourceModel']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x3035fc,_0x43c887,_0x3bd33b,_0x4d3047,_0x350ad){const _0x7ed3d9=_0x5d1072;super(),_0x1e0b19(this,_0x7ed3d9(0x193),new Map()),_0x1e0b19(this,_0x7ed3d9(0x476),new Map()),_0x1e0b19(this,_0x7ed3d9(0x201),new Map()),_0x1e0b19(this,'_textInfo'),_0x1e0b19(this,'_collectionChange$',new _0x1cd777[(_0x7ed3d9(0x2ac))]()),_0x1e0b19(this,_0x7ed3d9(0x28a),this[_0x7ed3d9(0x266)][_0x7ed3d9(0x3f4)]()),_0x1e0b19(this,_0x7ed3d9(0x26d),new _0x1cd777['Subject']()),_0x1e0b19(this,_0x7ed3d9(0x279),this[_0x7ed3d9(0x26d)][_0x7ed3d9(0x3f4)]()),_0x1e0b19(this,'_fieldsCollectionChange$',new _0x1cd777[(_0x7ed3d9(0x2ac))]()),_0x1e0b19(this,_0x7ed3d9(0x34e),this[_0x7ed3d9(0x253)]['asObservable']()),_0x1e0b19(this,_0x7ed3d9(0x178),new Map()),_0x1e0b19(this,_0x7ed3d9(0x38c),[]),_0x1e0b19(this,_0x7ed3d9(0x20c),new Map()),(this[_0x7ed3d9(0x42a)]=_0x3035fc,this['_univerInstanceService']=_0x43c887,this[_0x7ed3d9(0x25f)]=_0x3bd33b,this[_0x7ed3d9(0x454)]=_0x4d3047,this[_0x7ed3d9(0x2d1)]=_0x350ad,this[_0x7ed3d9(0x348)]());}[_0x5d1072(0x277)](){const _0x4327d2=_0x5d1072;return this[_0x4327d2(0x187)]?this['_textInfo']:_0x283503;}[_0x5d1072(0x340)](_0x426eed){const _0x315317=_0x5d1072;this[_0x315317(0x187)]=_0x426eed;}[_0x5d1072(0x2f8)](_0x508692){const _0x1356af=_0x5d1072;var _0xc9f310;const {from:_0x34352e,to:_0x1ee4e1,unitId:_0x2e0686,fromRange:_0x15a353,toRange:_0x1826b0}=_0x508692;if(_0x34352e&&_0x1ee4e1){const _0x33693d=this['getDataFieldManager'](_0x2e0686),_0x4c196e=this[_0x1356af(0x193)]['get'](_0x2e0686),_0x3755b7=(_0xc9f310=this['_univerInstanceService']['getUnit'](_0x2e0686))==null?void 0x0:_0xc9f310[_0x1356af(0x317)](_0x1ee4e1[_0x1356af(0x294)]);if(!_0x4c196e||!_0x3755b7)return;const _0x4a7ec7=_0x3755b7==null?void 0x0:_0x3755b7[_0x1356af(0x353)]();for(const [_0x3dae26,_0x28f7d1]of _0x4c196e['entries']())for(const [_0x3eb11b,_0x10b7dd]of _0x28f7d1[_0x1356af(0x38d)]()){const {sourceRangeInfo:_0x5ab24c}=_0x10b7dd;if(_0x5ab24c['unitId']===_0x2e0686&&_0x5ab24c[_0x1356af(0x294)]===_0x34352e[_0x1356af(0x294)]&&_0x374f23[_0x1356af(0x236)][_0x1356af(0x447)](_0x15a353,_0x5ab24c[_0x1356af(0x3ee)])){const _0x2be409={'row':_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x378)]-_0x15a353['startRow'],'col':_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3b9)]-_0x15a353[_0x1356af(0x3b9)]},_0x411083={'unitId':_0x2e0686,'subUnitId':_0x1ee4e1['subUnitId'],'sheetName':_0x4a7ec7,'range':{'startRow':_0x1826b0[_0x1356af(0x378)]+_0x2be409[_0x1356af(0x23e)],'endRow':_0x1826b0['startRow']+_0x2be409['row']+_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3a2)]-_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x378)],'startColumn':_0x1826b0['startColumn']+_0x2be409['col'],'endColumn':_0x1826b0[_0x1356af(0x3b9)]+_0x2be409[_0x1356af(0x434)]+_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x217)]-_0x5ab24c[_0x1356af(0x3ee)][_0x1356af(0x3b9)]}};_0x33693d[_0x1356af(0x2f8)](_0x3eb11b,_0x411083);const _0x2e7765={..._0x10b7dd,'sourceRangeInfo':_0x411083};this[_0x1356af(0x1bf)](_0x2e0686,_0x1ee4e1['subUnitId'],_0x3eb11b,_0x2e7765),this[_0x1356af(0x400)]({'unitId':_0x2e0686,'token':_0x3eb11b,'type':_0x5493f6['update'],'oldSourceRangeInfo':_0x5ab24c,'dataRangeInfo':_0x411083,'targetCellInfo':_0x10b7dd[_0x1356af(0x357)]}),this[_0x1356af(0x1b4)]({'unitId':_0x2e0686,'subUnitId':_0x1ee4e1[_0x1356af(0x294)],'oldSubUnitId':_0x3dae26,'pivotTableId':_0x3eb11b,'pivotTableConfig':_0x2e7765,'collectionConfig':_0x33693d[_0x1356af(0x3ff)]()});}}}}[_0x5d1072(0x400)](_0x4bbc2e){const _0x47cb9f=_0x5d1072;this[_0x47cb9f(0x266)][_0x47cb9f(0x3f8)](_0x4bbc2e);}[_0x5d1072(0x367)](_0x50df3d){const _0x3f33a9=_0x5d1072;let _0x16c2c8=this[_0x3f33a9(0x178)][_0x3f33a9(0x411)](_0x50df3d);return _0x16c2c8||(_0x16c2c8=new _0x1d59b3(this,this['_univerInstanceService']),this['_dataFieldManagerCollection']['set'](_0x50df3d,_0x16c2c8)),_0x16c2c8;}['getCollection'](_0x19d085,_0x4a9c75){const _0x9edba0=_0x5d1072;return this[_0x9edba0(0x367)](_0x19d085)[_0x9edba0(0x459)][_0x4a9c75];}['getUpdateRangeDeleteIds'](_0x2b8d00,_0x4ff45e,_0x25fb57){const _0x4059fb=_0x5d1072;return this[_0x4059fb(0x367)](_0x2b8d00)[_0x4059fb(0x368)](_0x4ff45e,_0x25fb57);}[_0x5d1072(0x3d7)](_0x246a9f,_0x5921af){const _0x3fddf1=_0x5d1072;let _0x303ce2=this[_0x3fddf1(0x193)][_0x3fddf1(0x411)](_0x246a9f);_0x303ce2||(_0x303ce2=new Map(),this['_model'][_0x3fddf1(0x3b5)](_0x246a9f,_0x303ce2));let _0x50c480=_0x303ce2[_0x3fddf1(0x411)](_0x5921af);return _0x50c480||(_0x50c480=new Map(),_0x303ce2['set'](_0x5921af,_0x50c480)),_0x50c480;}['_updateModelCache'](_0x5726c3,_0x1377fa,_0x31d1e8,_0x560e83){const _0x4a08c4=_0x5d1072;this['_ensurePivotMap'](_0x5726c3,_0x1377fa)[_0x4a08c4(0x3b5)](_0x31d1e8,_0x560e83);}[_0x5d1072(0x2d6)](_0x4bbfad,_0x2d30eb,_0x1176f8){const _0x5365c6=_0x5d1072;var _0x534e11,_0x25dd51,_0x1654cf,_0x1efbe5;((_0x25dd51=(_0x534e11=this['_model'][_0x5365c6(0x411)](_0x4bbfad))==null?void 0x0:_0x534e11[_0x5365c6(0x411)](_0x2d30eb))==null?void 0x0:_0x25dd51[_0x5365c6(0x411)](_0x1176f8))&&((_0x1efbe5=(_0x1654cf=this['_model'][_0x5365c6(0x411)](_0x4bbfad))==null?void 0x0:_0x1654cf[_0x5365c6(0x411)](_0x2d30eb))==null||_0x1efbe5[_0x5365c6(0x2af)](_0x1176f8));}[_0x5d1072(0x1e9)](_0xfaaa5d,_0x467e99){const _0x3ccf71=_0x5d1072;this[_0x3ccf71(0x476)][_0x3ccf71(0x3b5)](_0xfaaa5d,_0x467e99);}[_0x5d1072(0x19a)](_0x44771b){const _0x4cb752=_0x5d1072;this[_0x4cb752(0x476)]['delete'](_0x44771b);}[_0x5d1072(0x2a6)](_0x1f90bb,_0x26009c){const _0x4b758d=_0x5d1072;let _0x46a688=this[_0x4b758d(0x201)]['get'](_0x1f90bb);_0x46a688||(_0x46a688=new Map(),this[_0x4b758d(0x201)][_0x4b758d(0x3b5)](_0x1f90bb,_0x46a688));let _0x55eb6e=_0x46a688[_0x4b758d(0x411)](_0x26009c);return _0x55eb6e||(_0x55eb6e=new Map(),_0x46a688[_0x4b758d(0x3b5)](_0x26009c,_0x55eb6e)),_0x55eb6e;}[_0x5d1072(0x1b4)](_0x4e1073){const _0x4bec35=_0x5d1072,{unitId:_0x5f76ec,subUnitId:_0x14a79a,pivotTableId:_0x1de5be,pivotTableConfig:_0x368e29,collectionConfig:_0x1d484b}=_0x4e1073,_0x44a381={'unitId':_0x5f76ec,'subUnitId':_0x14a79a,'oldSubUnitId':_0x14a79a,'pivotTableId':_0x1de5be,'pivotTableConfig':_0x368e29,'collectionConfig':_0x1d484b};this[_0x4bec35(0x454)]['executeCommand'](_0x306833['id'],_0x44a381,{'onlyLocal':!0x0});}['updateView'](_0x5f52ce,_0x21a1c6,_0x2023d6,_0xc37d98,_0x2af6c7,_0x2bca4f,_0x160b3e,_0x45a07d=!0x1){const _0x21bce8=_0x5d1072;var _0x2df02d;this['_commandService'][_0x21bce8(0x17c)](_0x4d7335['id'],{'single':{'unitId':_0x5f52ce,'subUnitId':_0x21a1c6,'type':_0x2023d6,'pivotTableId':_0xc37d98,'view':_0x2af6c7,'pivotConfig':_0x2bca4f},'collectionConfig':{[_0x5f52ce]:_0x160b3e}},{'onlyLocal':!0x0});const _0xa8bb09=!!((_0x2df02d=this[_0x21bce8(0x202)](_0xc37d98))!=null&&_0x2df02d[_0x21bce8(0x475)]()),_0x5d0069=this[_0x21bce8(0x458)](_0x5f52ce,_0x21a1c6,_0xc37d98);_0x5d0069&&this[_0x21bce8(0x3a8)]({'view':_0x2af6c7,'pivotTableId':_0xc37d98,'textInfo':this[_0x21bce8(0x277)](),'isEmpty':_0xa8bb09,'targetCellInfo':_0x5d0069[_0x21bce8(0x357)]},_0x45a07d);}[_0x5d1072(0x3a8)](_0x6d3983,_0x235854){const _0x52050d=_0x5d1072,{targetCellInfo:_0x19cbf0,pivotTableId:_0x4348da}=_0x6d3983,{unitId:_0x22d079,subUnitId:_0x446bee}=_0x19cbf0,_0x15fed7=this[_0x52050d(0x2a6)](_0x22d079,_0x446bee),_0x50ab00=_0x15fed7[_0x52050d(0x411)](_0x4348da);let _0x4b05e0,_0x2dc188;_0x50ab00&&(_0x4b05e0=_0x50ab00[_0x52050d(0x1ac)],_0x2dc188=_0x50ab00['matrix']);const {rangesCache:_0x118305,matrix:_0x366138}=_0x50fc8d(_0x6d3983);_0x15fed7['set'](_0x4348da,{'rangeCache':_0x118305,'matrix':_0x366138,'oldMatrix':_0x2dc188,'oldRangeCache':_0x4b05e0}),_0x235854||this['_viewData$'][_0x52050d(0x3f8)]({'unitId':_0x22d079,'subUnitId':_0x446bee,'pivotTableId':_0x4348da});}[_0x5d1072(0x42c)](_0x4d681e,_0x315600,_0x4de485,_0x57b68a,_0x310067){this['_updateModelCache'](_0x4d681e,_0x315600,_0x4de485,_0x310067),this['_updatePivotTableInstanceCache'](_0x4de485,_0x57b68a);}[_0x5d1072(0x46d)](_0x478461,_0x3b3f73,_0x275bce){const _0x4a2375=_0x5d1072,_0x4a658e=this[_0x4a2375(0x367)](_0x478461);_0x4a658e[_0x4a2375(0x32a)](_0x275bce)['forEach'](_0x295d31=>{_0x4a658e['deleteDataField'](_0x295d31);}),this[_0x4a2375(0x456)](_0x478461,_0x275bce),this[_0x4a2375(0x2d6)](_0x478461,_0x3b3f73,_0x275bce),this[_0x4a2375(0x19a)](_0x275bce);}[_0x5d1072(0x2e5)](_0x13f99a,_0x25fdd2,_0x396494,_0x49f1d3){const _0xd0cb3a=_0x5d1072;this[_0xd0cb3a(0x1bf)](_0x13f99a,_0x25fdd2,_0x396494,_0x49f1d3);}[_0x5d1072(0x458)](_0xdc08d4,_0x4888a7,_0x162903){const _0x57856d=_0x5d1072;var _0x563d67,_0x6c86fe;const _0x17b7bb=(_0x6c86fe=(_0x563d67=this[_0x57856d(0x193)]['get'](_0xdc08d4))==null?void 0x0:_0x563d67[_0x57856d(0x411)](_0x4888a7))==null?void 0x0:_0x6c86fe[_0x57856d(0x411)](_0x162903);if(_0x17b7bb)return _0x17b7bb;}[_0x5d1072(0x1fb)](_0x4eac5d,_0x17c2ba,_0x8358e5){const _0x2b85e5=_0x5d1072;var _0x411c9f,_0x2cdf77;const _0xace4a9=(_0x2cdf77=(_0x411c9f=this[_0x2b85e5(0x193)][_0x2b85e5(0x411)](_0x4eac5d))==null?void 0x0:_0x411c9f[_0x2b85e5(0x411)](_0x17c2ba))==null?void 0x0:_0x2cdf77['get'](_0x8358e5);if(_0xace4a9)return _0xace4a9['fieldsConfig'];}['getPivotTableInstance'](_0x24b49d){const _0x305731=_0x5d1072;return this[_0x305731(0x476)][_0x305731(0x411)](_0x24b49d);}[_0x5d1072(0x282)](_0xca391f){const _0x4b2f92=_0x5d1072;this[_0x4b2f92(0x193)]['delete'](_0xca391f);const _0x31f708=this['_dataFieldManagerCollection']['get'](_0xca391f);_0x31f708&&(_0x31f708[_0x4b2f92(0x259)](),this[_0x4b2f92(0x178)][_0x4b2f92(0x2af)](_0xca391f)),this[_0x4b2f92(0x201)][_0x4b2f92(0x2af)](_0xca391f),this['needSameDeleteModel'][_0x4b2f92(0x274)](_0x4f8242=>{const _0x2151c8=_0x4b2f92;_0x4f8242[_0x2151c8(0x282)](_0xca391f);});}[_0x5d1072(0x2b4)](_0x20e4df,_0x1933f7,_0x4b4aa3,_0x31342e){const _0x2c4c35=_0x5d1072;return this[_0x2c4c35(0x367)](_0x4b4aa3[_0x2c4c35(0x29a)])[_0x2c4c35(0x2b4)](_0x20e4df,_0x1933f7,_0x4b4aa3,_0x31342e);}[_0x5d1072(0x27c)](_0x5679da){const _0xcc0010=_0x5d1072;return this[_0xcc0010(0x367)](_0x5679da[_0xcc0010(0x29a)])['createCollectionWithDataRange'](_0x5679da);}[_0x5d1072(0x33a)](_0x3fb580,_0x3c3745,_0x47330e){const _0x5a7a20=_0x5d1072;this[_0x5a7a20(0x367)](_0x47330e['unitId'])[_0x5a7a20(0x33a)](_0x3fb580,_0x3c3745,_0x47330e);}[_0x5d1072(0x435)](_0x28e792,_0x25885d){const _0x339dce=_0x5d1072;this[_0x339dce(0x367)](_0x28e792)[_0x339dce(0x34d)](_0x25885d);}[_0x5d1072(0x456)](_0x1c78e1,_0x36bf66){const _0x58ba30=_0x5d1072;this[_0x58ba30(0x367)](_0x1c78e1)[_0x58ba30(0x38a)](_0x36bf66);}[_0x5d1072(0x239)](_0x399d48,_0x5b5f2f){const _0x1fb2b4=_0x5d1072;var _0x193b56;return(_0x193b56=this[_0x1fb2b4(0x193)]['get'](_0x399d48))==null?void 0x0:_0x193b56[_0x1fb2b4(0x411)](_0x5b5f2f);}['getTargetByPivotId'](_0x15757e){const _0x1e09e4=_0x5d1072;for(const [_0x36c284,_0x1b7595]of this[_0x1e09e4(0x193)][_0x1e09e4(0x38d)]())for(const [_0x46529d,_0x3f36ae]of _0x1b7595[_0x1e09e4(0x38d)]())if(_0x3f36ae['has'](_0x15757e))return{'unitId':_0x36c284,'subUnitId':_0x46529d};return null;}[_0x5d1072(0x2b5)](_0x583c8f,_0x406ba8,_0x1120f1,_0x349446){const _0x1aa018=_0x5d1072,_0x1841b8=this[_0x1aa018(0x2a6)](_0x583c8f,_0x406ba8);_0x349446?_0x1841b8[_0x1aa018(0x3b5)](_0x1120f1,_0x349446):_0x1841b8[_0x1aa018(0x2af)](_0x1120f1),this[_0x1aa018(0x26d)][_0x1aa018(0x3f8)]({'unitId':_0x583c8f,'subUnitId':_0x406ba8,'pivotTableId':_0x1120f1});}[_0x5d1072(0x259)](){const _0x58c608=_0x5d1072;super[_0x58c608(0x259)]();}['getViewData'](_0x462fdd,_0x7173a2,_0x53fa29){const _0x57bc53=_0x5d1072;var _0x81adb1,_0x5f4c92;const _0xde3147=(_0x5f4c92=(_0x81adb1=this[_0x57bc53(0x201)]['get'](_0x462fdd))==null?void 0x0:_0x81adb1[_0x57bc53(0x411)](_0x7173a2))==null?void 0x0:_0x5f4c92['get'](_0x53fa29);return _0xde3147||null;}['addDirtyPivotTable'](_0x2a5e3f){const _0x4710da=_0x5d1072;this[_0x4710da(0x183)](_0x2a5e3f);}['updateDirtyPivotTable'](_0x34e19c){const _0x2a4ae3=_0x5d1072,{token:_0xf46560,unitId:_0x1dd262,subUnitId:_0x99007b}=_0x34e19c,_0x3c344e=_0x1dd262+'-'+_0x99007b+'-'+_0xf46560;this[_0x2a4ae3(0x20c)][_0x2a4ae3(0x411)](_0x3c344e)&&clearTimeout(this['_queryingMap'][_0x2a4ae3(0x411)](_0x3c344e));const _0x280b11=setTimeout(()=>{const _0x435ceb=_0x2a4ae3;this['queryDirtyPivotTable'](_0x34e19c),this[_0x435ceb(0x20c)]['delete'](_0x3c344e);},_0x350f93);this[_0x2a4ae3(0x20c)]['set'](_0x3c344e,_0x280b11);}[_0x5d1072(0x1d5)](_0x55d91e){const _0x29fb84=_0x5d1072,{unitId:_0x51d182,subUnitId:_0x14810f,token:_0x5d1dca,type:_0x274dd3,pivotConfig:_0x4e76e5}=_0x55d91e,_0xba5f2c=this['getPivotTableInstance'](_0x5d1dca),_0x41250b=_0xba5f2c==null?void 0x0:_0xba5f2c[_0x29fb84(0x293)](),_0x354488=_0x4e76e5!=null?_0x4e76e5:this[_0x29fb84(0x458)](_0x51d182,_0x14810f,_0x5d1dca);_0x354488&&(_0x354488[_0x29fb84(0x475)]=!!(_0xba5f2c!=null&&_0xba5f2c['isEmpty']())),(_0x41250b||_0x274dd3===_0x5ae422[_0x29fb84(0x36a)])&&this[_0x29fb84(0x427)](_0x51d182,_0x14810f,_0x274dd3,_0x5d1dca,_0x41250b,_0x354488,this[_0x29fb84(0x367)](_0x51d182)[_0x29fb84(0x3ff)]());}[_0x5d1072(0x3ff)](_0x12ed3d){const _0x12414b=_0x5d1072,_0x16f7ae={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x12414b(0x367)](_0x12ed3d)&&(_0x16f7ae[_0x12414b(0x2e2)][_0x12ed3d]=this[_0x12414b(0x367)](_0x12ed3d)[_0x12414b(0x3ff)]()),this[_0x12414b(0x193)][_0x12414b(0x411)](_0x12ed3d)){_0x16f7ae[_0x12414b(0x1c3)][_0x12ed3d]={};const _0x2649be=this[_0x12414b(0x193)][_0x12414b(0x411)](_0x12ed3d);_0x2649be!=null&&_0x2649be[_0x12414b(0x249)]&&[..._0x2649be[_0x12414b(0x3d8)]()]['forEach'](_0x4c3a9c=>{const _0x1e47c8=_0x12414b,_0xa26797=_0x2649be['get'](_0x4c3a9c);_0xa26797!=null&&_0xa26797['size']&&(_0x16f7ae[_0x1e47c8(0x1c3)][_0x12ed3d][_0x4c3a9c]={},[..._0xa26797[_0x1e47c8(0x3d8)]()][_0x1e47c8(0x274)](_0x413c7c=>{const _0xf0b9a0=_0x1e47c8,_0x3f2870=_0xa26797[_0xf0b9a0(0x411)](_0x413c7c);_0x3f2870&&(_0x16f7ae[_0xf0b9a0(0x1c3)][_0x12ed3d][_0x4c3a9c][_0x413c7c]=_0x3f2870);}));});}return _0x16f7ae;}[_0x5d1072(0x328)](_0x21bda9){const _0x17f700=_0x5d1072;var _0x4fa7b0;const {dataFieldManagerConfig:_0x1dc7bb,pivotTableConfigs:_0xf90372}=_0x21bda9;_0x1dc7bb&&Object[_0x17f700(0x3d8)](_0x1dc7bb)[_0x17f700(0x274)](_0x149f1b=>{const _0x4dbeca=_0x17f700;this[_0x4dbeca(0x367)](_0x149f1b)['fromJSON'](_0x1dc7bb[_0x149f1b]);});const _0x24f066=[];if(_0xf90372){const _0x165a8a=(_0x4fa7b0=this['_injector'][_0x17f700(0x411)](_0x374f23[_0x17f700(0x224)])[_0x17f700(0x19c)](_0x2169aa[_0x17f700(0x442)]))!=null?_0x4fa7b0:{},{ls:_0xf88178,pbk:_0x4c996d}=_0x165a8a,_0x290544=_0x43fd63(_0x5639c4,_0xf88178,_0x4c996d)[_0x17f700(0x1a5)];Object[_0x17f700(0x3d8)](_0xf90372)['forEach'](_0x5ab89a=>{const _0x72ceff=_0x17f700;let _0x2e556a=0x0;const _0x1f57aa=_0xf90372[_0x5ab89a];Object[_0x72ceff(0x3d8)](_0x1f57aa)[_0x72ceff(0x274)](_0x5f1e10=>{const _0x43dab1=_0x72ceff,_0x27828e=_0x1f57aa[_0x5f1e10];Object[_0x43dab1(0x3d8)](_0x27828e)[_0x43dab1(0x274)](_0x387ae4=>{const _0x47c873=_0x43dab1,_0x31233f=_0x27828e[_0x387ae4];if(_0x31233f){if(_0x2e556a>=_0x290544)return;_0x2e556a++;const _0x284a49=this[_0x47c873(0x367)](_0x5ab89a),_0x5a76f1=_0x284a49['collections'][_0x387ae4],_0x554542=_0x5a76f1['getFieldIds']();let _0x5b8af0=0x0;const _0x22ebb2=[];for(const _0x113b1e of _0x554542){const _0x38c6d2=_0x5a76f1['getFieldById'](_0x113b1e);if(_0x2eef51[_0x47c873(0x44e)](_0x38c6d2)){const _0x1e6fb9=_0x38c6d2['getOriginFieldId'](),_0x5d0d91=_0x5a76f1[_0x47c873(0x35d)](_0x1e6fb9);_0x5d0d91&&_0x22ebb2[_0x47c873(0x27b)]([_0x38c6d2,_0x5d0d91]);continue;}_0x284a49[_0x47c873(0x246)](_0x113b1e,_0x31233f[_0x47c873(0x1d7)],_0x5b8af0),_0x5b8af0++;}_0x22ebb2[_0x47c873(0x274)](([_0x237917,_0x193570])=>{const _0x3ebea3=_0x47c873;_0x237917[_0x3ebea3(0x302)](_0x193570);});const _0x6bd165=new _0x2eef51[(_0x47c873(0x1dc))](_0x5a76f1);_0x6bd165[_0x47c873(0x328)](_0x31233f[_0x47c873(0x3b6)]),this[_0x47c873(0x42c)](_0x5ab89a,_0x5f1e10,_0x387ae4,_0x6bd165,_0x31233f);const _0x101eab=_0x6bd165['query']();_0x24f066['push']({'unitId':_0x5ab89a,'subUnitId':_0x5f1e10,'pivotTableId':_0x387ae4,'view':_0x101eab['toJSON'](),'pivotConfig':_0x31233f,'type':_0x5ae422[_0x47c873(0x395)]});const _0x2b0e33=!!_0x6bd165[_0x47c873(0x475)](),_0xc255f8={'view':_0x101eab,'pivotTableId':_0x387ae4,'textInfo':this['getTextInfo'](),'isEmpty':_0x2b0e33,'targetCellInfo':_0x31233f[_0x47c873(0x357)]};this[_0x47c873(0x3a8)](_0xc255f8,!0x1);}});});});}_0x1dc7bb&&Object[_0x17f700(0x3d8)](_0x1dc7bb)['forEach'](_0x4cb5e2=>{const _0x37d05e=_0x17f700,_0x4517b5=this[_0x37d05e(0x367)](_0x4cb5e2);this[_0x37d05e(0x253)][_0x37d05e(0x3f8)](_0x4517b5[_0x37d05e(0x459)]);}),this[_0x17f700(0x454)]['executeCommand'](_0x4d7335['id'],{'batch':_0x24f066,'collectionConfig':_0x1dc7bb},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x4d328e=_0x5d1072;this[_0x4d328e(0x372)](this[_0x4d328e(0x2d1)][_0x4d328e(0x486)]({'toJson':_0x1bcc15=>JSON[_0x4d328e(0x22c)](this[_0x4d328e(0x3ff)](_0x1bcc15)),'parseJson':_0x4289e6=>{const _0x161702=_0x4d328e;if(!_0x4289e6)return{};try{return JSON[_0x161702(0x2ab)](_0x4289e6);}catch{return{};}},'businesses':[_0x374f23[_0x4d328e(0x1e8)][_0x4d328e(0x2eb)]],'pluginName':_0xcaa86f,'onLoad':(_0x3e03c9,_0x40e8e3)=>{const _0x3f2f21=_0x4d328e;this[_0x3f2f21(0x328)](_0x40e8e3);},'onUnLoad':_0x3d6669=>{this['deleteUnitId'](_0x3d6669);}}));}},_0x1cc2c4[_0x5d1072(0x38e)]=_0x3ef864([_0x3762a4(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cf)])),_0x3762a4(0x1,_0x374f23[_0x5d1072(0x1d8)]),_0x3762a4(0x2,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x359)])),_0x3762a4(0x3,_0x374f23[_0x5d1072(0x386)]),_0x3762a4(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x30b)]))],_0x1cc2c4[_0x5d1072(0x38e)]);const _0xec4ff0={0x0:{0x0:{'v':'filter','s':_0x554db5}},0x2:{0x1:{'v':'','s':_0x554db5},0x2:{'v':'','s':_0x554db5},0x3:{'v':_0x5d1072(0x352),'s':_0x554db5},0x4:{'v':'','s':_0x554db5},0x5:{'v':'','s':_0x554db5}},0x3:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x4:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x5:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x6:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x7:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x8:{0x0:{'v':_0x5d1072(0x23e),'s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'values','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0x9:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xa:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xb:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xc:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}},0xd:{0x0:{'v':'','s':_0x554db5},0x1:{'v':'','s':_0x5c764c},0x2:{'v':'','s':_0x5c764c},0x3:{'v':'','s':_0x5c764c},0x4:{'v':'','s':_0x5c764c},0x5:{'v':'','s':_0x5c764c}}},_0x714d6e={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},_0x36fb91=(_0x371e81,_0x1a799b)=>{const _0x57801a=_0x5d1072,_0x367958=new _0x374f23['ObjectMatrix'](),_0xa4cf99=new _0x374f23[(_0x57801a(0x33b))](_0xec4ff0),{row:_0x42c1a4,col:_0x5aa6f0}=_0x1a799b;_0xa4cf99[_0x57801a(0x1d1)]((_0x568a93,_0x11d8e1,_0x37826b)=>{const _0x12e7ef=_0x57801a;let _0x18ef70='';_0x37826b['v']===_0x12e7ef(0x341)?_0x18ef70=_0x371e81['filter']:_0x37826b['v']===_0x12e7ef(0x23e)?_0x18ef70=_0x371e81['row']:_0x37826b['v']==='column'?_0x18ef70=_0x371e81[_0x12e7ef(0x352)]:_0x37826b['v']===_0x12e7ef(0x39c)&&(_0x18ef70=_0x371e81[_0x12e7ef(0x39c)]),_0x367958[_0x12e7ef(0x388)](_0x568a93+_0x42c1a4,_0x11d8e1+_0x5aa6f0,{..._0x37826b,'v':_0x18ef70});});const _0x53bcea=_0x374f23[_0x57801a(0x3c1)]['deepClone'](_0x714d6e);return Object['keys'](_0x714d6e)['forEach'](_0x39046c=>{const _0x2a7e97=_0x57801a;_0x53bcea[_0x39046c]=_0x714d6e[_0x39046c]['map'](_0x48598d=>({..._0x48598d,'startRow':_0x48598d['startRow']+_0x42c1a4,'endRow':_0x48598d[_0x2a7e97(0x3a2)]+_0x42c1a4,'startColumn':_0x48598d[_0x2a7e97(0x3b9)]+_0x5aa6f0,'endColumn':_0x48598d[_0x2a7e97(0x217)]+_0x5aa6f0}));}),{'matrixCache':_0x367958,'rangesCache':_0x53bcea};};function _0x1f8c04(_0xea747e,_0x20b5fb){const _0x5d35e9=_0x5d1072;let _0x5be600='';const _0x1f440b=this[_0x5d35e9(0x277)]();switch(_0x20b5fb){case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x254)]:_0x5be600=_0x1f440b['sheets-pivot.averageName']+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x1a5)]:_0x5be600=_0x1f440b[_0x5d35e9(0x3f6)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x350)]:_0x5be600=_0x1f440b[_0x5d35e9(0x2d3)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x275)]:_0x5be600=_0x1f440b[_0x5d35e9(0x247)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)]['min']:_0x5be600=_0x1f440b['sheets-pivot.minName']+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x230)]:_0x5be600=_0x1f440b[_0x5d35e9(0x2de)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum']['stdDev']:_0x5be600=_0x1f440b[_0x5d35e9(0x369)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum']['stdDevp']:_0x5be600=_0x1f440b[_0x5d35e9(0x32b)]+_0xea747e;break;case _0x2eef51[_0x5d35e9(0x227)][_0x5d35e9(0x25d)]:_0x5be600=_0x1f440b[_0x5d35e9(0x418)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x1a7)]:_0x5be600=_0x1f440b[_0x5d35e9(0x1cd)]+_0xea747e;break;case _0x2eef51['PivotSubtotalTypeEnum'][_0x5d35e9(0x31f)]:_0x5be600=_0x1f440b[_0x5d35e9(0x28c)]+_0xea747e;break;default:_0x5be600=_0xea747e;break;}return _0x5be600;}function _0x21a2ff(_0x39ae11,_0x493142,_0x397fe8,_0x2fc7a4,_0x409e1f){const _0xbad48f=_0x5d1072;var _0x565864,_0x2ce97,_0x4c2666,_0x1da8ed,_0x9b36fd;const _0x2872ec=_0x374f23['cellToRange'](_0x39ae11,_0x493142),{rangesInfo:_0x57ca9a,areaInfo:_0x3e0df9,headerMap:_0x7c64a1}=_0x409e1f;if(!_0x57ca9a||!_0x3e0df9||!_0x7c64a1)return;const _0x3aaf23=Object[_0xbad48f(0x3d8)](_0x57ca9a)['find'](_0x2c3921=>_0x57ca9a[_0x2c3921][_0xbad48f(0x3c4)](_0x3f560f=>_0x374f23[_0xbad48f(0x236)][_0xbad48f(0x447)](_0x3f560f,_0x2872ec))),_0x20c374=_0x3e0df9;let _0x259ed1,_0x1e8bfb,_0xaa3720;if(_0x3aaf23===_0xbad48f(0x3d2))_0x259ed1=(_0x565864=_0x20c374==null?void 0x0:_0x20c374[_0xbad48f(0x30e)])==null?void 0x0:_0x565864[_0x39ae11],_0x1e8bfb=(_0x2ce97=_0x7c64a1==null?void 0x0:_0x7c64a1[_0xbad48f(0x452)])==null?void 0x0:_0x2ce97[_0x493142],_0xaa3720=_0x1e8bfb==null?void 0x0:_0x1e8bfb['tableFieldId'];else{if(_0x3aaf23===_0xbad48f(0x2ad))_0x259ed1=(_0x4c2666=_0x20c374==null?void 0x0:_0x20c374[_0xbad48f(0x276)])==null?void 0x0:_0x4c2666[_0x493142],_0x1e8bfb=(_0x1da8ed=_0x7c64a1['colHeaderMap'])==null?void 0x0:_0x1da8ed[_0x39ae11+0x1+_0x493142-_0x57ca9a[_0xbad48f(0x2ad)][0x0][_0xbad48f(0x3b9)]],_0xaa3720=_0x1e8bfb==null?void 0x0:_0x1e8bfb['tableFieldId'];else{if(_0x3aaf23===_0xbad48f(0x2bb))_0x259ed1=(_0x9b36fd=_0x20c374==null?void 0x0:_0x20c374['cornerInfo'])==null?void 0x0:_0x9b36fd[_0x493142],_0xaa3720=_0x259ed1==null?void 0x0:_0x259ed1['tableFieldId'];else{if(_0x3aaf23==='pageRanges'){const _0x2cd9f7=_0x397fe8==null?void 0x0:_0x397fe8['fi'];_0x2cd9f7!==void 0x0&&(_0xaa3720=_0x2fc7a4[_0xbad48f(0x1b1)](_0x2cd9f7));}}}}return{'filterId':_0xaa3720,'info':_0x259ed1,'data':_0x397fe8,'headerInfo':_0x1e8bfb};}function _0xb9c753(_0x3d1218,_0x1ab058,_0xe05df3){const _0x47b190=_0x5d1072,_0x1c5be2=_0x3d1218[_0x47b190(0x29d)],_0x1d9175=_0x1c5be2['getFieldIds'](),_0x2c9908=new Set();_0x3d1218[_0x47b190(0x1c4)](_0xc1df9f=>{const _0x3998e2=_0x47b190;_0x2c9908[_0x3998e2(0x346)](_0xc1df9f[_0x3998e2(0x423)]);});const _0x5ec47d=_0x1d9175['map'](_0x527d22=>{const _0x3f8408=_0x47b190,_0x3ee401=_0x1c5be2[_0x3f8408(0x35d)](_0x527d22);return{'checked':_0x2c9908[_0x3f8408(0x1b5)](_0x527d22),'dataFieldId':_0x3ee401['id'],'id':_0x3ee401['id'],'name':_0x1c5be2[_0x3f8408(0x263)](_0x3ee401['id']),'type':_0x3ee401[_0x3f8408(0x20b)](),'pivotTableId':_0x1ab058};}),_0x172ef5=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x415)],_0x13ca89=>{const _0x5a967f=_0x47b190;_0x172ef5[_0x5a967f(0x27b)]({'dataFieldId':_0x13ca89['dataFieldId'],'tableFieldId':_0x13ca89[_0x5a967f(0x470)](),'displayName':_0x13ca89[_0x5a967f(0x263)]()});});const _0x4d5f41=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)]['Column'],_0x20e468=>{const _0x2b331e=_0x47b190;_0x4d5f41[_0x2b331e(0x27b)]({'dataFieldId':_0x20e468['dataFieldId'],'tableFieldId':_0x20e468[_0x2b331e(0x470)](),'displayName':_0x20e468[_0x2b331e(0x263)]()});});const _0x19625c=[];if(_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x444)],_0x3fd4e8=>{const _0x408f85=_0x47b190;_0x19625c[_0x408f85(0x27b)]({'dataFieldId':_0x3fd4e8[_0x408f85(0x423)],'tableFieldId':_0x3fd4e8['getId'](),'displayName':_0x3fd4e8[_0x408f85(0x263)](),'format':_0x3fd4e8[_0x408f85(0x441)](),'subTotalType':_0x3fd4e8['getSubtotal']()});}),_0x19625c[_0x47b190(0x468)]>0x1){const _0x4272cb=_0x3d1218[_0x47b190(0x428)]();(_0x3d1218[_0x47b190(0x256)]()?_0x4d5f41:_0x172ef5)[_0x47b190(0x2bd)](_0x4272cb,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':'ΣValue'});}const _0x6bdb25=[];_0x3d1218[_0x47b190(0x29b)](_0x2eef51[_0x47b190(0x329)][_0x47b190(0x2f1)],_0x5e0a93=>{const _0x3aea6c=_0x47b190;_0x6bdb25['push']({'dataFieldId':_0x5e0a93['dataFieldId'],'tableFieldId':_0x5e0a93[_0x3aea6c(0x470)](),'displayName':_0x5e0a93['getDisplayName']()});});const _0x4f1f58=_0xe05df3[_0x47b190(0x1d7)];return{'sourceList':_0x5ec47d,'sourceRange':_0x4f1f58,'rowFields':_0x172ef5,'columnFields':_0x4d5f41,'valueFields':_0x19625c,'filterFields':_0x6bdb25,'positionInfo':_0xe05df3[_0x47b190(0x357)]};}function _0x3db0d7(_0x161441,_0x4b59fa,_0x43cffe='',_0x6acea={}){const _0x25fe60=_0x5d1072,_0x65bbbd=_0x161441[_0x25fe60(0x411)](_0x374f23[_0x25fe60(0x3cd)]);for(const _0x5bca90 in _0x4b59fa)if(Object['prototype']['hasOwnProperty'][_0x25fe60(0x41d)](_0x4b59fa,_0x5bca90)){const _0xa2d003=_0x43cffe?_0x43cffe+'.'+_0x5bca90:_0x5bca90;typeof _0x4b59fa[_0x5bca90]==_0x25fe60(0x1d9)&&_0x4b59fa[_0x5bca90]!==null&&!Array[_0x25fe60(0x3d9)](_0x4b59fa[_0x5bca90])?_0x3db0d7(_0x161441,_0x4b59fa[_0x5bca90],_0xa2d003,_0x6acea):_0x6acea[_0xa2d003]=_0x65bbbd['t'](_0xa2d003);}return _0x6acea;}const _0x17e537=_0x59b2eb=>{const _0x2e1fb8=_0x5d1072;if(!_0x59b2eb)return[];const {rowRanges:_0xbb6752,colRanges:_0x572ef3,cornerRanges:_0x10e29b,dataRanges:_0x336c3c,pageRanges:_0x4fbe92}=_0x59b2eb,_0x600f6=[..._0x572ef3,..._0xbb6752,..._0x336c3c,..._0x10e29b][_0x2e1fb8(0x341)](_0x460b24=>_0x460b24[_0x2e1fb8(0x378)]>=0x0&&_0x460b24[_0x2e1fb8(0x3b9)]>=0x0&&_0x460b24[_0x2e1fb8(0x3a2)]>=0x0&&_0x460b24[_0x2e1fb8(0x217)]>=0x0);let _0x4d7dff=Number['MAX_SAFE_INTEGER'],_0x46398a=Number[_0x2e1fb8(0x3e8)],_0xfbd6b8=Number[_0x2e1fb8(0x1a3)],_0xba1fe=Number[_0x2e1fb8(0x3e8)];for(let _0x477e34=0x0;_0x477e34<_0x600f6[_0x2e1fb8(0x468)];_0x477e34++)_0x4d7dff=Math[_0x2e1fb8(0x3b1)](_0x4d7dff,_0x600f6[_0x477e34]['startRow']),_0x46398a=Math[_0x2e1fb8(0x275)](_0x46398a,_0x600f6[_0x477e34][_0x2e1fb8(0x3a2)]),_0xfbd6b8=Math[_0x2e1fb8(0x3b1)](_0xfbd6b8,_0x600f6[_0x477e34]['startColumn']),_0xba1fe=Math[_0x2e1fb8(0x275)](_0xba1fe,_0x600f6[_0x477e34][_0x2e1fb8(0x217)]);return[..._0x4fbe92,{'startRow':_0x4d7dff,'endRow':_0x46398a,'startColumn':_0xfbd6b8,'endColumn':_0xba1fe}];};function _0xaa3adf(_0x4be0d0,_0x4f1405){const _0x383ec0=_0x5d1072,_0x2cf954=_0x4f1405[_0x383ec0(0x3aa)][_0x383ec0(0x2d8)],{pivotTableId:_0x5bb815,unitId:_0x1c071a,subUnitId:_0x4dc721}=_0x4f1405;if(!_0x2cf954)return;const _0x1bf85f=_0x4be0d0[_0x383ec0(0x411)](_0x1cc2c4[_0x383ec0(0x38e)]),_0x2380e8=_0x1bf85f[_0x383ec0(0x202)](_0x5bb815),_0x4879b7=_0x1bf85f[_0x383ec0(0x458)](_0x1c071a,_0x4dc721,_0x5bb815);if(!_0x2380e8||!_0x4879b7)return;const _0x5b8f15=_0x2380e8[_0x383ec0(0x260)](_0x2cf954['tuple']);if(!(_0x5b8f15!=null&&_0x5b8f15[_0x383ec0(0x468)]))return;const _0x11e348=_0x4879b7[_0x383ec0(0x1d7)],{unitId:_0x4c3399,subUnitId:_0x5dcb77,range:_0x28dbeb}=_0x11e348;let _0x1a7488=0x0;const _0x1d08f5=_0x2380e8[_0x383ec0(0x29d)][_0x383ec0(0x324)]()['reduce']((_0x29a624,_0x23d04f)=>{const _0x160695=_0x383ec0;var _0x22d722;const _0x340ba4=(_0x22d722=_0x2380e8[_0x160695(0x257)](_0x23d04f))==null?void 0x0:_0x22d722[_0x160695(0x3c0)]();return _0x340ba4&&(_0x29a624[String(_0x1a7488)]=_0x340ba4),_0x1a7488++,_0x29a624;},{});return{'indexes':_0x5b8f15,'range':_0x28dbeb,'sourceUnitId':_0x4c3399,'sourceSubUnitId':_0x5dcb77,'formatMap':_0x1d08f5};}function _0x122880(_0x1450d0,_0x11a964){const _0x555055=_0x5d1072;if(!_0x1450d0||!_0x11a964)return!0x0;const _0x20e7fa=_0x2169aa[_0x555055(0x43b)](_0x137d34,_0x6b9aa1),_0x523a14=new Function(_0x555055(0x222)+_0x20e7fa)()(_0x1450d0,_0x11a964)[_0x555055(0x1ef)],_0x2d1754=_0x2169aa[_0x555055(0x43c)](_0x523a14,'sf',_0x82b07b);return!((_0x523a14==null?void 0x0:_0x523a14['rt'])===_0x2169aa[_0x555055(0x19e)]['NO_COMMERCIAL']&&!_0x2d1754);}function _0x43fd63(_0x18d6e1,_0x56bbb5,_0x182abb){const _0x44f245=_0x5d1072,_0x4ca25b={'count':_0x18d6e1,'timeValid':!0x1};if(!_0x56bbb5||!_0x182abb)return _0x4ca25b;const _0x469a7e=_0x2169aa[_0x44f245(0x43b)](_0x137d34,_0x6b9aa1),_0x46cbc9=new Function(_0x44f245(0x222)+_0x469a7e)()(_0x56bbb5,_0x182abb);if(_0x46cbc9!=null&&_0x46cbc9[_0x44f245(0x363)]){const _0x4ddd62=_0x46cbc9[_0x44f245(0x1ef)],_0xf49ef7=_0x2169aa['isFeatureAuthorizedWithinTime'](_0x4ddd62,'sf',_0x82b07b);return{'count':_0x2169aa[_0x44f245(0x20e)](_0x4ddd62,_0xf49ef7,_0x44f245(0x2ba),_0x18d6e1,_0x18d6e1,0x0),'timeValid':_0xf49ef7};}return _0x4ca25b;}function _0x347fea(_0xed4aff,_0x2c72d7,_0x32738f,_0x31a305){const _0x2b33e5=_0x5d1072,_0x1f5f7b={'subUnitId':_0x32738f,'unitId':_0x2c72d7,'cellValue':_0x24a2a7[_0x2b33e5(0x1e2)](_0x31a305)},_0x25a5e0=_0x24a2a7[_0x2b33e5(0x345)](_0xed4aff,_0x1f5f7b);let _0x55d77b=!0x1;return new _0x374f23[(_0x2b33e5(0x33b))](_0x25a5e0['cellValue'])[_0x2b33e5(0x1d1)]((_0x104486,_0x4ef94e,_0x26deab)=>{const _0x4ace37=_0x2b33e5;if(!_0x55d77b&&_0x26deab&&(_0x26deab[_0x4ace37(0x381)]||_0x26deab['f']||_0x26deab['p']||_0x26deab['s']||_0x26deab['si']||_0x26deab['t']||_0x26deab['v']))return _0x55d77b=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x24a2a7[_0x2b33e5(0x1d3)]['id'],'params':_0x25a5e0},'setRangeValueRedoMutation':{'id':_0x24a2a7[_0x2b33e5(0x1d3)]['id'],'params':_0x1f5f7b},'shouldClear':_0x55d77b};}function _0x4dfe41(_0x5c2e7f){const {row:_0x19b23a,col:_0x5d6f10}=_0x5c2e7f,_0x3e6a22={'startRow':_0x19b23a,'endRow':_0x19b23a,'startColumn':_0x5d6f10,'endColumn':_0x5d6f10},_0x21767c={'startRow':_0x19b23a+0x2,'endRow':_0x19b23a+0xe,'startColumn':_0x5d6f10,'endColumn':_0x5d6f10+0x6};return[_0x3e6a22,_0x21767c];}function _0x4cf74d(_0xd7959b,_0x4f86ef,_0x419738){const _0x18902a=_0x5d1072,{cornerView:_0x2b23d7,rowView:_0x24fe3d,colView:_0x570257,pageView:_0x42e2b}=_0xd7959b,{row:_0x11b794,col:_0x2ceffa}=_0x4f86ef;if(_0x419738)return{'rowCount':_0x2ccd6c+_0x11b794,'colCount':_0x69f1d9+_0x2ceffa};const _0x1bd4c3=_0x42e2b[_0x18902a(0x18f)]>-0x1?_0x42e2b[_0x18902a(0x18f)]+0x1:0x0,_0x4f4f0e=_0x42e2b[_0x18902a(0x473)]>-0x1?_0x42e2b[_0x18902a(0x473)]:0x0,_0xb11db0=_0x11b794+_0x1bd4c3+(_0x1bd4c3?0x1:0x0)+_0x2b23d7[_0x18902a(0x215)]+_0x24fe3d[_0x18902a(0x215)],_0x214532=_0x2ceffa+_0x4f4f0e,_0x429a25=_0x2ceffa+_0x2b23d7['colCount']+_0x570257['colCount'],_0x53f0d7=Math[_0x18902a(0x275)](_0x214532,_0x429a25);return{'rowCount':_0xb11db0,'colCount':_0x53f0d7};}function _0x20a5db(_0x29c87b,_0x4f9c79,_0x47356b,_0x5ca257){const _0x6a43ad=_0x5d1072,{row:_0x54b6a2,col:_0x2799ca,unitId:_0x51cdba,subUnitId:_0x3703aa}=_0x47356b,_0x25452a=_0x4cf74d(_0x4f9c79,{'row':_0x54b6a2,'col':_0x2799ca},_0x5ca257),_0x5cbf61=_0x29c87b['get'](_0x374f23[_0x6a43ad(0x1d8)]),_0x4de150=_0x24a2a7['getSheetCommandTarget'](_0x5cbf61,{'unitId':_0x51cdba,'subUnitId':_0x3703aa}),_0x14f05c=[],_0xeff126=[];if(!_0x4de150)return{'undos':_0xeff126,'redos':_0x14f05c};const {worksheet:_0x2c09b}=_0x4de150,_0x1aad70=_0x2c09b['getRowCount'](),_0x362b74=_0x2c09b[_0x6a43ad(0x281)]();return _0x1aad70<_0x25452a[_0x6a43ad(0x215)]&&(_0x14f05c[_0x6a43ad(0x27b)]({'id':_0x24a2a7['InsertRowMutation']['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':_0x1aad70,'endRow':_0x25452a[_0x6a43ad(0x215)]-0x1,'startColumn':0x0,'endColumn':_0x362b74-0x1}}}),_0xeff126[_0x6a43ad(0x27b)]({'id':_0x24a2a7[_0x6a43ad(0x290)]['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':_0x1aad70,'endRow':_0x25452a['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x362b74-0x1}}})),_0x362b74<_0x25452a[_0x6a43ad(0x392)]&&(_0x14f05c[_0x6a43ad(0x27b)]({'id':_0x24a2a7['InsertColMutation']['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':0x0,'endRow':_0x1aad70-0x1,'startColumn':_0x362b74,'endColumn':_0x25452a[_0x6a43ad(0x392)]-0x1}}}),_0xeff126['push']({'id':_0x24a2a7[_0x6a43ad(0x1c5)]['id'],'params':{'unitId':_0x51cdba,'subUnitId':_0x3703aa,'range':{'startRow':0x0,'endRow':_0x1aad70-0x1,'startColumn':_0x362b74,'endColumn':_0x25452a['colCount']-0x1}}})),{'undos':_0xeff126,'redos':_0x14f05c};}function _0x1ce604(_0x5c981f){const _0x4e9682=_0x5d1072;let _0x3def59=0x0;for(let _0x431027=0x0;_0x431027<_0x5c981f['length'];_0x431027++){const _0x376f46=_0x5c981f[_0x4e9682(0x28d)](_0x431027);_0x376f46>=0x4e00&&_0x376f46<=0x9fff||_0x376f46>=0x3000&&_0x376f46<=0x303f||_0x376f46>=0xff00&&_0x376f46<=0xffef?_0x3def59+=0x2:_0x3def59+=0x1;}return _0x3def59;}function _0x21df27(_0x3a7953,_0x5077ac,_0x4eeb01,_0x40937c){const _0x5b4ee5=_0x5d1072;var _0x191be0,_0x189e5a,_0xc5a5f8,_0xcd1b00;const {rowCount:_0x2ee371,colCount:_0x1e05bb,headerMap:_0x568e05}=_0x3a7953,_0x3b5cf3=0x64,_0xc33220=Math[_0x5b4ee5(0x3b1)](_0x2ee371,_0x3b5cf3),_0x4e94ff=Math[_0x5b4ee5(0x3b1)](_0x1e05bb,_0x3b5cf3);let _0x281023='',_0x222b0f=0x0;for(let _0x1dd7d4=0x0;_0x1dd7d4<_0xc33220;_0x1dd7d4++)for(let _0x145a30=0x0;_0x145a30<_0x4e94ff;_0x145a30++){const _0x1c87bc={...(_0x189e5a=(_0x191be0=_0x3a7953[_0x5b4ee5(0x3b3)])==null?void 0x0:_0x191be0[_0x1dd7d4])==null?void 0x0:_0x189e5a[_0x145a30]},_0x4c4b87=(_0xc5a5f8=_0x568e05[_0x1dd7d4])==null?void 0x0:_0xc5a5f8['tableFieldId'],_0x9d360b=_0x40937c[_0x4c4b87];let _0x49db81=_0x3a7953[_0x5b4ee5(0x216)](_0x1dd7d4,_0x145a30);if(_0x1c87bc){const _0xf1f2ff=_0x4eeb01?_0x145a30===0x0&&((_0xcd1b00=_0x3a7953[_0x5b4ee5(0x351)](_0x145a30+0x1))==null?void 0x0:_0xcd1b00[_0x5b4ee5(0x40e)]):!0x1;_0x49db81=_0x99791(_0x1c87bc,_0xf1f2ff,_0x9d360b,_0x5077ac);}if(_0x49db81!==void 0x0){const _0x5e03e2=_0x1ce604(String(_0x49db81));_0x222b0f<_0x5e03e2&&(_0x281023=String(_0x49db81),_0x222b0f=_0x5e03e2);}}return _0x281023;}function _0x59b274(_0x5f69b9){const _0x3c6afa=_0x5d1072,{rowCount:_0x3de406,colCount:_0x56814b}=_0x5f69b9;let _0x5b00a0='',_0x1df639=0x0;for(let _0x551d63=_0x3de406-0x1;_0x551d63>0x0&&_0x551d63>_0x3de406-0x3;_0x551d63--)for(let _0x5d49fa=0x0;_0x5d49fa<_0x56814b;_0x5d49fa++){const _0x3e4a52=_0x5f69b9[_0x3c6afa(0x216)](_0x551d63,_0x5d49fa);if(_0x3e4a52!==void 0x0){const _0xb1b0e6=String(_0x3e4a52)[_0x3c6afa(0x468)];_0x1df639<_0xb1b0e6&&(_0x5b00a0=String(_0x3e4a52),_0x1df639=_0xb1b0e6);}}return _0x5b00a0;}function _0x10a3cc(_0x590625){const _0xa28160=_0x5d1072,{rowCount:_0x4a536e,colCount:_0x23d87c}=_0x590625;let _0x44ca3e='',_0x1c0959=0x0;for(let _0x1dd733=0x0;_0x1dd733<_0x4a536e;_0x1dd733++)for(let _0x49b4b3=0x0;_0x49b4b3<_0x23d87c;_0x49b4b3++){const _0x4bc8a3=_0x590625[_0xa28160(0x216)](_0x1dd733,_0x49b4b3);if(_0x4bc8a3!==void 0x0){const _0x5c0497=String(_0x4bc8a3)['length'];_0x1c0959<_0x5c0497&&(_0x44ca3e=String(_0x4bc8a3),_0x1c0959=_0x5c0497);}}return _0x44ca3e;}function _0x5bb8f1(_0x3ceebd,_0x112c1a){const _0x28bc14=_0x5d1072,{rowFields:_0x3c3d33,columnFields:_0x2fcbae,valueFields:_0x407fac,filterFields:_0x16fac9,dimension:_0x12a17f,measure:_0x1f3fd8}=_0x112c1a;for(const _0x5a1e32 of _0x3c3d33){const _0xfefe95=_0x12a17f[_0x5a1e32];_0xfefe95&&_0x3ceebd[_0x28bc14(0x257)](_0xfefe95[_0x28bc14(0x423)])&&(_0x3ceebd[_0x28bc14(0x327)](_0xfefe95[_0x28bc14(0x423)],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x415)],void 0x0,_0x5a1e32),_0xfefe95['displayName']&&_0x3ceebd[_0x28bc14(0x18a)](_0xfefe95['id'],_0xfefe95[_0x28bc14(0x39a)]),_0xfefe95[_0x28bc14(0x3c9)]&&_0x3ceebd[_0x28bc14(0x200)](_0xfefe95['id'],_0xfefe95['sortInfo']),_0xfefe95[_0x28bc14(0x3f3)]&&_0x3ceebd[_0x28bc14(0x3e2)](_0xfefe95['id'],_0xfefe95[_0x28bc14(0x3f3)]));}for(const _0x37aae2 of _0x2fcbae){const _0x11dcae=_0x12a17f[_0x37aae2];_0x11dcae&&_0x3ceebd[_0x28bc14(0x257)](_0x11dcae[_0x28bc14(0x423)])&&(_0x3ceebd['addFieldWithSourceId'](_0x11dcae[_0x28bc14(0x423)],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x403)],void 0x0,_0x37aae2),_0x11dcae['sortInfo']&&_0x3ceebd[_0x28bc14(0x200)](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x3c9)]),_0x11dcae[_0x28bc14(0x3f3)]&&_0x3ceebd[_0x28bc14(0x3e2)](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x3f3)]),_0x11dcae['displayName']&&_0x3ceebd['renameField'](_0x11dcae['id'],_0x11dcae[_0x28bc14(0x39a)]));}for(const _0x1bec63 of _0x16fac9){const _0x41da90=_0x12a17f[_0x1bec63];_0x41da90&&_0x3ceebd[_0x28bc14(0x257)](_0x41da90['dataFieldId'])&&(_0x3ceebd[_0x28bc14(0x327)](_0x41da90[_0x28bc14(0x423)],_0x2eef51['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x1bec63),_0x41da90[_0x28bc14(0x3c9)]&&_0x3ceebd[_0x28bc14(0x200)](_0x41da90['id'],_0x41da90['sortInfo']),_0x41da90[_0x28bc14(0x3f3)]&&_0x3ceebd['setLabelFilterInfo'](_0x41da90['id'],_0x41da90[_0x28bc14(0x3f3)]),_0x41da90['displayName']&&_0x3ceebd[_0x28bc14(0x18a)](_0x41da90['id'],_0x41da90[_0x28bc14(0x39a)]));}for(const _0x22978a of _0x407fac){const _0x3f7fec=_0x1f3fd8[_0x22978a];_0x3f7fec&&_0x3ceebd[_0x28bc14(0x257)](_0x3f7fec[_0x28bc14(0x423)])&&(_0x3ceebd[_0x28bc14(0x327)](_0x3f7fec['dataFieldId'],_0x2eef51[_0x28bc14(0x329)][_0x28bc14(0x444)],void 0x0,_0x22978a),_0x3f7fec[_0x28bc14(0x3f7)]!==void 0x0&&_0x3ceebd['setSubtotalType'](_0x22978a,_0x3f7fec[_0x28bc14(0x3f7)]),_0x3f7fec[_0x28bc14(0x429)]&&_0x3ceebd['setFieldFormat'](_0x22978a,_0x3f7fec[_0x28bc14(0x429)]),_0x3f7fec[_0x28bc14(0x39a)]&&_0x3ceebd['renameField'](_0x3f7fec['id'],_0x3f7fec[_0x28bc14(0x39a)]));}const _0xe0e50b=_0x112c1a[_0x28bc14(0x1f2)];for(const {fieldId:_0x23bbfc,filterInfo:_0x6f328b}of _0xe0e50b)_0x3ceebd['setValueFilterInfo'](_0x23bbfc,_0x6f328b);}function _0x1f01f2(_0x18bb70,_0x1a745f){const _0x3e8e1f=_0x5d1072,_0x58a744=[];_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)]['Row']&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x415)],_0x30d5ff=>{const _0x192947=_0x3e8e1f;_0x58a744[_0x192947(0x27b)](_0x30d5ff[_0x192947(0x470)]());}),_0x1a745f===_0x2eef51['PivotTableFiledAreaEnum'][_0x3e8e1f(0x403)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)]['Column'],_0x37af3a=>{const _0x2ee6ae=_0x3e8e1f;_0x58a744[_0x2ee6ae(0x27b)](_0x37af3a['getId']());}),_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x2f1)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x2f1)],_0x275451=>{const _0x3aaa4a=_0x3e8e1f;_0x58a744[_0x3aaa4a(0x27b)](_0x275451[_0x3aaa4a(0x470)]());}),_0x1a745f===_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x444)]&&_0x18bb70[_0x3e8e1f(0x29b)](_0x2eef51[_0x3e8e1f(0x329)][_0x3e8e1f(0x444)],_0x3e72b0=>{const _0xf85612=_0x3e8e1f;_0x58a744[_0xf85612(0x27b)](_0x3e72b0[_0xf85612(0x470)]());}),_0x1a745f===void 0x0&&_0x18bb70[_0x3e8e1f(0x1c4)](_0x15d131=>{_0x58a744['push'](_0x15d131['getId']());});const _0x294c3d=_0x58a744[_0x3e8e1f(0x468)];for(let _0x1e2eb8=_0x294c3d-0x1;_0x1e2eb8>=0x0;_0x1e2eb8--)_0x18bb70[_0x3e8e1f(0x37e)](_0x58a744[_0x1e2eb8]);const _0x45855c=_0x18bb70['getValueFilterInfos']();for(const _0x5797e9 in _0x45855c)_0x18bb70[_0x3e8e1f(0x255)](_0x5797e9);}function _0x1446a4(_0x4a17c3,_0x310eb1){const _0x5ede37=_0x5d1072,_0xe87e6c=new Date(_0x2eef51[_0x5ede37(0x36f)](_0x310eb1)),_0xb8df66=new Date(_0x2eef51[_0x5ede37(0x36f)](_0x4a17c3)),_0x1a9265=_0xe87e6c[_0x5ede37(0x1cb)](),_0x50e952=_0xb8df66[_0x5ede37(0x1cb)](),_0x854358=_0xe87e6c[_0x5ede37(0x1af)](),_0x1cf183=_0xb8df66['getMonth'](),_0x516ef0=_0xe87e6c[_0x5ede37(0x3d5)](),_0x541876=_0xb8df66['getDate'](),_0x6966b4=_0x1a9265===_0x50e952,_0x5ee002=_0x6966b4&&_0x854358===_0x1cf183;return _0x6966b4&&_0x5ee002&&!(_0x5ee002&&_0x516ef0===_0x541876)?_0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x5ede37(0x23f)]:_0x6966b4&&!_0x5ee002?_0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x5ede37(0x39e)]:_0x2eef51[_0x5ede37(0x1cf)][_0x5ede37(0x17e)];}function _0x379197(_0x5ca8f2,_0x14422c){const _0x290b7e=_0x5d1072,_0x2ef3d2=_0x5ca8f2[_0x290b7e(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel'])['getTextInfo']();let _0x5b3c54='';switch(_0x14422c){case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x23f)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x298)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x39e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x33c)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x17e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x2cf)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x319)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.month'];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2ae)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x390)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2e7)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.date'];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x33e)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x295)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x1c7)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.hour'];break;case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x1dd)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x22a)];break;case _0x2eef51[_0x290b7e(0x1cf)][_0x290b7e(0x2a0)]:_0x5b3c54=_0x2ef3d2['sheets-pivot.dateGroup.monthDate'];break;case _0x2eef51['PivotDateGroupFieldDateTypeEnum'][_0x290b7e(0x17a)]:_0x5b3c54=_0x2ef3d2[_0x290b7e(0x453)];break;default:_0x5b3c54='';break;}return _0x5b3c54;}const _0x339ccc=_0x5d1072(0x45b),_0x28efdf={};var _0x4a0588=Object[_0x5d1072(0x2c5)],_0x548fef=(_0x3942d5,_0x22fb59,_0x19aa10,_0x4e68be)=>{for(var _0x5a4ec2=_0x4e68be>0x1?void 0x0:_0x4e68be?_0x4a0588(_0x22fb59,_0x19aa10):_0x22fb59,_0x3c2166=_0x3942d5['length']-0x1,_0x407dc0;_0x3c2166>=0x0;_0x3c2166--)(_0x407dc0=_0x3942d5[_0x3c2166])&&(_0x5a4ec2=_0x407dc0(_0x5a4ec2)||_0x5a4ec2);return _0x5a4ec2;},_0x3ae92c=(_0x5a2701,_0x54b62c)=>(_0x820e86,_0x561e87)=>_0x54b62c(_0x820e86,_0x561e87,_0x5a2701);_0x1cc2c4['SheetsPivotTableConfigModel']=class extends _0x374f23['Disposable']{constructor(_0x5bafda,_0x4c5b14,_0x4f6b47,_0x5e613e,_0x5e044b){const _0x221b45=_0x5d1072;super(),_0x1e0b19(this,'_model',new Map()),_0x1e0b19(this,_0x221b45(0x419),new Map()),_0x1e0b19(this,_0x221b45(0x336),new Map()),_0x1e0b19(this,_0x221b45(0x308),new Map()),_0x1e0b19(this,_0x221b45(0x3e6),new _0x1cd777[(_0x221b45(0x2ac))]()),_0x1e0b19(this,_0x221b45(0x1ba),new _0x1cd777['Subject']()),_0x1e0b19(this,'pivotInitCompleted$',this[_0x221b45(0x1ba)][_0x221b45(0x3f4)]()),_0x1e0b19(this,_0x221b45(0x2bc),new _0x1cd777['Subject']()),_0x1e0b19(this,_0x221b45(0x2b7),this[_0x221b45(0x2bc)][_0x221b45(0x3f4)]()),_0x1e0b19(this,_0x221b45(0x187),{}),_0x1e0b19(this,'configVersion$',this[_0x221b45(0x3e6)][_0x221b45(0x3f4)]()),(this['_injector']=_0x5bafda,this[_0x221b45(0x454)]=_0x4c5b14,this[_0x221b45(0x443)]=_0x4f6b47,this['_resourceManagerService']=_0x5e613e,this[_0x221b45(0x40f)]=_0x5e044b,this[_0x221b45(0x18b)](),this[_0x221b45(0x212)]());const _0xf02b4b=this['_configService']['getConfig'](_0x339ccc);(_0xf02b4b==null?void 0x0:_0xf02b4b['notExecuteFormula'])===!0x0&&this[_0x221b45(0x348)]();}['_initUnitDisposed'](){const _0x41a8bc=_0x5d1072;this[_0x41a8bc(0x372)](this['_univerInstanceService'][_0x41a8bc(0x46a)](_0x374f23[_0x41a8bc(0x1e8)][_0x41a8bc(0x2eb)])['subscribe'](_0x257f83=>{const _0x2daadc=_0x41a8bc;this[_0x2daadc(0x282)](_0x257f83['getUnitId']());}));}[_0x5d1072(0x3d3)](){const _0x42ae56=_0x5d1072;this[_0x42ae56(0x1ba)][_0x42ae56(0x3f8)](!0x0);}['_initLocale'](){const _0x29fc1f=_0x5d1072,_0x5341a9=_0x3db0d7(this[_0x29fc1f(0x42a)],_0xe2c987,'',{});this[_0x29fc1f(0x187)]=_0x5341a9,this[_0x29fc1f(0x454)][_0x29fc1f(0x17c)](_0x4a9d2d['id'],{'textInfo':_0x5341a9},{'onlyLocal':!0x0});}[_0x5d1072(0x277)](){const _0x5dfd5e=_0x5d1072;return this[_0x5dfd5e(0x187)];}[_0x5d1072(0x481)](_0x2bd59a,_0x48532a,_0x1942af,_0x2ad7fd,_0x164636){const _0x3bef1d=_0x5d1072;this[_0x3bef1d(0x1e4)](_0x2bd59a,_0x48532a,_0x1942af,_0x2ad7fd),this['updatePivotTableRangeInfo'](_0x2bd59a,_0x48532a,_0x1942af,_0x164636);}['getPivotTableConfig'](_0x4b1899,_0x42efb1,_0x4831c){const _0x445892=_0x5d1072;var _0x5560de;const _0x4b0c34=(_0x5560de=this[_0x445892(0x193)][_0x445892(0x411)](_0x4b1899))==null?void 0x0:_0x5560de[_0x445892(0x411)](_0x42efb1);if(_0x4b0c34)return _0x4b0c34[_0x445892(0x411)](_0x4831c);}[_0x5d1072(0x335)](_0x21832c,_0x34f438){const _0x4ca3be=_0x5d1072,_0x131c8d=this[_0x4ca3be(0x193)][_0x4ca3be(0x411)](_0x21832c);if(_0x131c8d){for(const [_0x16fb1a,_0x5e3e71]of _0x131c8d[_0x4ca3be(0x38d)]())for(const [_0x485a08,_0xf4d1b7]of _0x5e3e71[_0x4ca3be(0x38d)]())if(_0x485a08===_0x34f438)return _0xf4d1b7[_0x4ca3be(0x357)];}}[_0x5d1072(0x1c8)](_0x3438d9,_0x4e7d80,_0x26862f){const _0xbf1424=_0x5d1072,_0x4a6d17=this[_0xbf1424(0x458)](_0x3438d9,_0x4e7d80,_0x26862f);return _0x4a6d17==null?void 0x0:_0x4a6d17[_0xbf1424(0x357)];}[_0x5d1072(0x239)](_0x20708a,_0x4c8817){const _0x461852=_0x5d1072;var _0x3a2dc7;return(_0x3a2dc7=this[_0x461852(0x193)]['get'](_0x20708a))==null?void 0x0:_0x3a2dc7[_0x461852(0x411)](_0x4c8817);}[_0x5d1072(0x37c)](_0x5d20a8,_0x43661e,_0x1afc7e,_0x473ad4){const _0x187615=_0x5d1072,_0x5c9867=this[_0x187615(0x3d7)](_0x5d20a8,_0x43661e);_0x473ad4?_0x5c9867[_0x187615(0x3b5)](_0x1afc7e,_0x473ad4):_0x5c9867[_0x187615(0x2af)](_0x1afc7e),this['_pivotConfigChange$']['next']({'unitId':_0x5d20a8,'subUnitId':_0x43661e,'pivotTableId':_0x1afc7e,'pivotTableConfig':_0x473ad4});}[_0x5d1072(0x43d)](_0x2eb9d0,_0x5e6859){const _0x58bc56=_0x5d1072;var _0x5231f8;return(_0x5231f8=this[_0x58bc56(0x419)][_0x58bc56(0x411)](_0x2eb9d0))==null?void 0x0:_0x5231f8['collections'][_0x5e6859];}[_0x5d1072(0x3e5)](_0x1f7d07,_0x4278b0){const _0x5b56b7=_0x5d1072;this[_0x5b56b7(0x419)][_0x5b56b7(0x3b5)](_0x1f7d07,_0x4278b0),this[_0x5b56b7(0x3e6)][_0x5b56b7(0x3f8)](Math['random']());}['_ensurePivotMap'](_0x5cf9d3,_0x10123c){const _0x27832c=_0x5d1072;let _0x60e67f=this['_model'][_0x27832c(0x411)](_0x5cf9d3);_0x60e67f||(_0x60e67f=new Map(),this[_0x27832c(0x193)][_0x27832c(0x3b5)](_0x5cf9d3,_0x60e67f));let _0x40627d=_0x60e67f[_0x27832c(0x411)](_0x10123c);return _0x40627d||(_0x40627d=new Map(),_0x60e67f[_0x27832c(0x3b5)](_0x10123c,_0x40627d)),_0x40627d;}[_0x5d1072(0x318)](_0x59e2cd,_0x2589ce){const _0x40742e=_0x5d1072;let _0x5301e0=this['_pivotTableRangeInfo'][_0x40742e(0x411)](_0x59e2cd);_0x5301e0||(_0x5301e0=new Map(),this[_0x40742e(0x336)]['set'](_0x59e2cd,_0x5301e0));let _0xe7aafc=_0x5301e0['get'](_0x2589ce);return _0xe7aafc||(_0xe7aafc=new Map(),_0x5301e0[_0x40742e(0x3b5)](_0x2589ce,_0xe7aafc)),_0xe7aafc;}[_0x5d1072(0x223)](_0x2b9796,_0x3fe29d){const _0x55a19b=_0x5d1072;let _0x30b51b=this[_0x55a19b(0x308)]['get'](_0x2b9796);_0x30b51b||(_0x30b51b=new Map(),this['_pivotTableMatrixInfo']['set'](_0x2b9796,_0x30b51b));let _0x191759=_0x30b51b['get'](_0x3fe29d);return _0x191759||(_0x191759=new Map(),_0x30b51b[_0x55a19b(0x3b5)](_0x3fe29d,_0x191759)),_0x191759;}[_0x5d1072(0x2c8)](_0x5eddc1,_0x288457,_0x4c20e4,_0x1a9d3b){const _0x3f4f2c=_0x5d1072;var _0x4f923b;const _0x40b0e6=this[_0x3f4f2c(0x318)](_0x5eddc1,_0x288457),_0x426611=(_0x4f923b=_0x40b0e6[_0x3f4f2c(0x411)](_0x4c20e4))==null?void 0x0:_0x4f923b[_0x3f4f2c(0x1bd)];_0x40b0e6['set'](_0x4c20e4,{'oldRangeInfo':_0x426611,'rangeInfo':_0x1a9d3b});}[_0x5d1072(0x1e4)](_0x3d0747,_0x33dba0,_0x3fc8d9,_0x1048e7){const _0x1e6839=_0x5d1072;var _0x4ace7d;const _0x1f7ff9=this[_0x1e6839(0x223)](_0x3d0747,_0x33dba0),_0x210e3b=(_0x4ace7d=_0x1f7ff9['get'](_0x3fc8d9))==null?void 0x0:_0x4ace7d[_0x1e6839(0x20d)];_0x1f7ff9[_0x1e6839(0x3b5)](_0x3fc8d9,{'oldMatrix':_0x210e3b,'matrix':_0x1048e7});}[_0x5d1072(0x250)](_0x527dd8,_0x372da7,_0x3655cc){const _0x3a0d4c=_0x5d1072;var _0x162ac3,_0x509e7f;return(_0x509e7f=(_0x162ac3=this[_0x3a0d4c(0x336)][_0x3a0d4c(0x411)](_0x527dd8))==null?void 0x0:_0x162ac3[_0x3a0d4c(0x411)](_0x372da7))==null?void 0x0:_0x509e7f[_0x3a0d4c(0x411)](_0x3655cc);}[_0x5d1072(0x1a2)](_0xccc04,_0x3f4aec,_0x31c6f0){const _0x570de3=_0x5d1072;var _0x38f3dd,_0x39f51a;return(_0x39f51a=(_0x38f3dd=this[_0x570de3(0x308)][_0x570de3(0x411)](_0xccc04))==null?void 0x0:_0x38f3dd[_0x570de3(0x411)](_0x3f4aec))==null?void 0x0:_0x39f51a[_0x570de3(0x411)](_0x31c6f0);}[_0x5d1072(0x282)](_0x379415){const _0x4d6039=_0x5d1072;this['_model'][_0x4d6039(0x2af)](_0x379415),this[_0x4d6039(0x419)][_0x4d6039(0x2af)](_0x379415);}[_0x5d1072(0x3a9)](_0x3e9aca){const _0x2e982b=_0x5d1072,_0x5eef05={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['_collectionConfigModel']['get'](_0x3e9aca)&&(_0x5eef05['dataFieldManagerConfig'][_0x3e9aca]=this[_0x2e982b(0x419)]['get'](_0x3e9aca)),this['_model'][_0x2e982b(0x411)](_0x3e9aca)){_0x5eef05['pivotTableConfigs'][_0x3e9aca]={};const _0x3903c2=this[_0x2e982b(0x193)][_0x2e982b(0x411)](_0x3e9aca);_0x3903c2!=null&&_0x3903c2['size']&&[..._0x3903c2[_0x2e982b(0x3d8)]()][_0x2e982b(0x274)](_0x5db851=>{const _0x1408c6=_0x2e982b,_0x2f3e15=_0x3903c2['get'](_0x5db851);_0x2f3e15!=null&&_0x2f3e15[_0x1408c6(0x249)]&&(_0x5eef05[_0x1408c6(0x1c3)][_0x3e9aca][_0x5db851]={},[..._0x2f3e15[_0x1408c6(0x3d8)]()]['forEach'](_0x44129b=>{const _0xf89be=_0x1408c6,_0x576830=_0x2f3e15[_0xf89be(0x411)](_0x44129b);_0x576830&&(_0x5eef05['pivotTableConfigs'][_0x3e9aca][_0x5db851][_0x44129b]=_0x576830);}));});}return _0x5eef05;}[_0x5d1072(0x348)](){const _0x5a8415=_0x5d1072;this[_0x5a8415(0x372)](this[_0x5a8415(0x2d1)]['registerPluginResource']({'toJson':_0x394d59=>JSON[_0x5a8415(0x22c)](this[_0x5a8415(0x3a9)](_0x394d59)),'parseJson':_0x6afeb6=>({}),'businesses':[_0x374f23[_0x5a8415(0x1e8)][_0x5a8415(0x2eb)]],'pluginName':_0xcaa86f,'onLoad':(_0x33568a,_0x501911)=>{},'onUnLoad':_0x3c66d1=>{const _0x24c218=_0x5a8415;this[_0x24c218(0x282)](_0x3c66d1);}}));}},_0x1cc2c4[_0x5d1072(0x1ea)]=_0x548fef([_0x3ae92c(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x3ae92c(0x1,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x386)])),_0x3ae92c(0x2,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x1d8)])),_0x3ae92c(0x3,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x30b)])),_0x3ae92c(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x224)]))],_0x1cc2c4[_0x5d1072(0x1ea)]);var _0x5cfa3f=Object[_0x5d1072(0x2c5)],_0x365d82=(_0x5b073c,_0x3fc117,_0x1d10f3,_0x3549c0)=>{for(var _0x1e37b0=_0x3549c0>0x1?void 0x0:_0x3549c0?_0x5cfa3f(_0x3fc117,_0x1d10f3):_0x3fc117,_0x52e12d=_0x5b073c['length']-0x1,_0x10ebdf;_0x52e12d>=0x0;_0x52e12d--)(_0x10ebdf=_0x5b073c[_0x52e12d])&&(_0x1e37b0=_0x10ebdf(_0x1e37b0)||_0x1e37b0);return _0x1e37b0;},_0x1ca81d=(_0x564f9f,_0x2c4401)=>(_0x46f0dc,_0x38672d)=>_0x2c4401(_0x46f0dc,_0x38672d,_0x564f9f);_0x1cc2c4['SheetsPivotTableAdaptorModel']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x5367ce,_0x476c2b,_0x2bb2ff,_0x40886c,_0x301555){const _0x3ca936=_0x5d1072;super(),_0x1e0b19(this,_0x3ca936(0x424),new Map()),_0x1e0b19(this,'_pivotRenderValueMatrixCache',new Map()),_0x1e0b19(this,'_markDirty$',new _0x1cd777['Subject']()),_0x1e0b19(this,_0x3ca936(0x1d2),this['_markDirty$'][_0x3ca936(0x3f4)]()),_0x1e0b19(this,_0x3ca936(0x2e9),new _0x1cd777[(_0x3ca936(0x2ac))]()),_0x1e0b19(this,_0x3ca936(0x461),this[_0x3ca936(0x2e9)][_0x3ca936(0x3f4)]()),_0x1e0b19(this,_0x3ca936(0x187)),(this[_0x3ca936(0x2dc)]=_0x5367ce,this[_0x3ca936(0x42a)]=_0x476c2b,this['_sheetsPivotTableConfigModel']=_0x2bb2ff,this[_0x3ca936(0x443)]=_0x40886c,this['_exclusiveRangeService']=_0x301555,this[_0x3ca936(0x18b)](),this['_initUnitDisposed']());}[_0x5d1072(0x212)](){const _0x325219=_0x5d1072;this[_0x325219(0x372)](this[_0x325219(0x443)][_0x325219(0x46a)](_0x374f23['UniverInstanceType'][_0x325219(0x2eb)])['subscribe'](_0x3dcdd6=>{const _0x2e33b8=_0x325219;this[_0x2e33b8(0x282)](_0x3dcdd6['getUnitId']());}));}[_0x5d1072(0x18b)](){const _0x42f5dc=_0x5d1072;this[_0x42f5dc(0x187)]=_0x3db0d7(this['_injector'],_0xe2c987,'',{});}[_0x5d1072(0x389)](_0x826cc8){const _0x5c78a9=_0x5d1072,{view:_0x55a561,unitId:_0x27e399,subUnitId:_0x4bdf76,pivotTableId:_0xeab1b,type:_0x424fdb}=_0x826cc8,_0x104c98=this['_sheetsPivotTableConfigModel'][_0x5c78a9(0x458)](_0x27e399,_0x4bdf76,_0xeab1b);if(!_0x55a561||!_0x104c98||_0x424fdb===_0x5ae422['Delete'])return;const {pageView:_0x16a468,cornerView:_0x26b8c0,rowView:_0x393890,colView:_0x4ef658,dataView:_0x11c276}=_0x55a561,_0x5d035f=_0x104c98[_0x5c78a9(0x357)],_0xa8ff6b=_0x104c98[_0x5c78a9(0x475)],_0x16a33b=this[_0x5c78a9(0x42b)](_0x27e399,_0x4bdf76),_0x3e1924=this[_0x5c78a9(0x189)](_0x27e399,_0x4bdf76,_0xeab1b);if(_0xa8ff6b)return this[_0x5c78a9(0x179)](_0x826cc8,_0x16a33b,_0x5d035f,_0x3e1924);{const _0x4c2b82=_0x227f31(_0x5d035f,_0x16a468,!0x0),_0x386c2b=_0x16a468[_0x5c78a9(0x18f)]>=0x0?_0x16a468[_0x5c78a9(0x18f)]+0x1:0x0,_0x5e5b23=_0x26b8c0[_0x5c78a9(0x46e)](),_0x437901=_0x26b8c0[_0x5c78a9(0x37f)](),_0x5be0e8=_0x4c2b82[_0x5c78a9(0x468)]>0x0?_0x9545db:0x0,_0x1815e1=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8,'col':_0x5d035f['col']},_0x26b8c0,!0x1,!0x1),_0x332ce8=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8+_0x5e5b23,'col':_0x5d035f[_0x5c78a9(0x434)]},_0x393890,!0x1,!0x0),_0x1af589=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8,'col':_0x5d035f[_0x5c78a9(0x434)]+_0x437901},_0x4ef658,!0x1,!0x0),_0x13bacc=_0x227f31({'row':_0x5d035f[_0x5c78a9(0x23e)]+_0x386c2b+_0x5be0e8+_0x5e5b23,'col':_0x5d035f['col']+_0x437901},_0x11c276,!0x1,!0x1);_0x3e1924[_0x5c78a9(0x1bc)]={'rowRanges':_0x332ce8,'colRanges':_0x1af589,'cornerRanges':_0x1815e1,'dataRanges':_0x13bacc,'pageRanges':_0x4c2b82};const _0x530f51=_0x240ff5(this[_0x5c78a9(0x42a)],_0x55a561,_0x104c98,this[_0x5c78a9(0x187)]),{valueMatrix:_0xa0ff5a,rowInfo:_0xc8c9ce,colInfo:_0x9c142f,cornerInfo:_0x280570,rowHeaderMap:_0x43b268,colHeaderMap:_0x14eb49}=_0x530f51;return _0x3e1924['areaInfo']={'rowInfo':_0xc8c9ce,'colInfo':_0x9c142f,'cornerInfo':_0x280570},_0x3e1924[_0x5c78a9(0x271)]={'rowHeaderMap':_0x43b268,'colHeaderMap':_0x14eb49},_0xa0ff5a[_0x5c78a9(0x274)]((_0x165232,_0x2546f2)=>{const _0x42049a=_0x5c78a9;Object[_0x42049a(0x3d8)](_0x2546f2)['forEach'](_0x146677=>{const _0x16cf08=_0x42049a,_0x59651e=+_0x146677,_0x2ae797=_0xa0ff5a[_0x16cf08(0x216)](_0x165232,_0x59651e);_0x16a33b['setValue'](_0x165232,_0x59651e,_0x2ae797);});}),this[_0x5c78a9(0x2e9)][_0x5c78a9(0x3f8)]({'unitId':_0x27e399,'subUnitId':_0x4bdf76,'valueMatrix':_0x16a33b,'rangesCache':_0x3e1924[_0x5c78a9(0x1bc)],'pivotTableId':_0xeab1b,'type':_0x826cc8[_0x5c78a9(0x1fd)]}),this[_0x5c78a9(0x1be)][_0x5c78a9(0x481)](_0x27e399,_0x4bdf76,_0xeab1b,_0x16a33b,_0x3e1924[_0x5c78a9(0x1bc)]),this[_0x5c78a9(0x3e1)][_0x5c78a9(0x1fc)](_0x27e399,_0x4bdf76,_0x2e78bd,this['_createExclusiveRange'](_0x3e1924[_0x5c78a9(0x1bc)],_0xeab1b)),{'rangeCache':_0x3e1924['rangesInfo'],'matrix':_0x16a33b};}}[_0x5d1072(0x179)](_0xd1cb5f,_0x32c543,_0xc9048c,_0x5f5c70){const _0x3ca1ca=_0x5d1072,_0x2c6187=this[_0x3ca1ca(0x2dc)]['t'],{unitId:_0x41d97f,subUnitId:_0x503b3e,pivotTableId:_0x3f08fa}=_0xd1cb5f,_0x5505d8={'filter':_0x2c6187(_0x3ca1ca(0x362)),'row':_0x2c6187('sheets-pivot.emptyPivot.row'),'column':_0x2c6187(_0x3ca1ca(0x2ef)),'values':_0x2c6187(_0x3ca1ca(0x286))},{matrixCache:_0x20a682,rangesCache:_0x4b0b4b}=_0x36fb91(_0x5505d8,_0xc9048c);return _0x20a682[_0x3ca1ca(0x1d1)]((_0x532a2e,_0x2082a1,_0x131787)=>{const _0x222e22=_0x3ca1ca;_0x32c543[_0x222e22(0x388)](_0x532a2e,_0x2082a1,_0x131787);}),_0x5f5c70[_0x3ca1ca(0x1bc)]=_0x4b0b4b,this['_viewUpdate$'][_0x3ca1ca(0x3f8)]({'unitId':_0x41d97f,'subUnitId':_0x503b3e,'valueMatrix':_0x32c543,'rangesCache':_0x4b0b4b,'pivotTableId':_0x3f08fa,'type':_0xd1cb5f[_0x3ca1ca(0x1fd)],'isEmpty':!0x0}),this[_0x3ca1ca(0x1be)]['updateViewInfo'](_0x41d97f,_0x503b3e,_0x3f08fa,_0x32c543,_0x4b0b4b),this[_0x3ca1ca(0x3e1)][_0x3ca1ca(0x1fc)](_0x41d97f,_0x503b3e,_0x2e78bd,this['_createExclusiveRange'](_0x4b0b4b,_0x3f08fa)),{'rangeCache':_0x5f5c70[_0x3ca1ca(0x1bc)],'matrix':_0x32c543};}[_0x5d1072(0x31d)](_0x2e3130,_0x464d08){const _0x6f2601=[],_0x24cd9a=_0x17e537(_0x2e3130);for(const _0x20e80b of _0x24cd9a)_0x6f2601['push']({'groupId':_0x464d08,'range':_0x20e80b});return _0x6f2601;}['clearRenderCache'](_0x4c1266){const _0x2d1097=_0x5d1072;var _0x3f19f3,_0xccb9d1,_0x4deb42,_0x2020a0;const {pivotTableId:_0x5b167e,unitId:_0x386b64,subUnitId:_0x5c006c}=_0x4c1266;if(!_0x5b167e||!_0x386b64||!_0x5c006c)return;const _0x36f0ff=this[_0x2d1097(0x42b)](_0x386b64,_0x5c006c),_0x39152a=(_0xccb9d1=(_0x3f19f3=this[_0x2d1097(0x424)][_0x2d1097(0x411)](_0x386b64))==null?void 0x0:_0x3f19f3[_0x2d1097(0x411)](_0x5c006c))==null?void 0x0:_0xccb9d1[_0x2d1097(0x411)](_0x5b167e);if(_0x39152a!=null&&_0x39152a[_0x2d1097(0x1bc)]){for(const _0x54fe9d of Object['keys'](_0x39152a[_0x2d1097(0x1bc)]))_0x39152a[_0x2d1097(0x1bc)][_0x54fe9d][_0x2d1097(0x274)](_0x47337e=>{const _0x112aaa=_0x2d1097;for(let _0x4a39eb=_0x47337e['startRow'];_0x4a39eb<=_0x47337e['endRow'];_0x4a39eb++)for(let _0xf92eb1=_0x47337e['startColumn'];_0xf92eb1<=_0x47337e[_0x112aaa(0x217)];_0xf92eb1++)_0x36f0ff[_0x112aaa(0x370)](_0x4a39eb,_0xf92eb1);});}_0x39152a&&((_0x2020a0=(_0x4deb42=this['_pivotRenderInfoCache']['get'](_0x386b64))==null?void 0x0:_0x4deb42['get'](_0x5c006c))==null||_0x2020a0[_0x2d1097(0x2af)](_0x5b167e)),this[_0x2d1097(0x2e9)][_0x2d1097(0x3f8)]({'unitId':_0x386b64,'subUnitId':_0x5c006c,'valueMatrix':_0x36f0ff,'pivotTableId':_0x5b167e,'rangesCache':void 0x0,'type':_0x4c1266[_0x2d1097(0x1fd)]}),this[_0x2d1097(0x3e1)]['clearExclusiveRangesByGroupId'](_0x386b64,_0x5c006c,_0x2e78bd,_0x5b167e);}[_0x5d1072(0x189)](_0x422249,_0x57ce5a,_0x11292f){const _0x3373e0=_0x5d1072;var _0x228fa6,_0x5980bb,_0x1f5dfd,_0x285d5f,_0x51f236,_0x31a34c;return this[_0x3373e0(0x424)]['has'](_0x422249)||this[_0x3373e0(0x424)]['set'](_0x422249,new Map()),(_0x228fa6=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))!=null&&_0x228fa6[_0x3373e0(0x1b5)](_0x57ce5a)||(_0x5980bb=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null||_0x5980bb[_0x3373e0(0x3b5)](_0x57ce5a,new Map()),(_0x285d5f=(_0x1f5dfd=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null?void 0x0:_0x1f5dfd['get'](_0x57ce5a))!=null&&_0x285d5f[_0x3373e0(0x1b5)](_0x11292f)||(_0x31a34c=(_0x51f236=this[_0x3373e0(0x424)][_0x3373e0(0x411)](_0x422249))==null?void 0x0:_0x51f236[_0x3373e0(0x411)](_0x57ce5a))==null||_0x31a34c[_0x3373e0(0x3b5)](_0x11292f,{}),this['_pivotRenderInfoCache'][_0x3373e0(0x411)](_0x422249)[_0x3373e0(0x411)](_0x57ce5a)[_0x3373e0(0x411)](_0x11292f);}[_0x5d1072(0x42b)](_0x33bb3b,_0x4b5cea){const _0x4b76b4=_0x5d1072;var _0x3e899e,_0x5bbf78;return this[_0x4b76b4(0x385)]['has'](_0x33bb3b)||this[_0x4b76b4(0x385)][_0x4b76b4(0x3b5)](_0x33bb3b,new Map()),(_0x3e899e=this['_pivotRenderValueMatrixCache']['get'](_0x33bb3b))!=null&&_0x3e899e['has'](_0x4b5cea)||(_0x5bbf78=this[_0x4b76b4(0x385)][_0x4b76b4(0x411)](_0x33bb3b))==null||_0x5bbf78[_0x4b76b4(0x3b5)](_0x4b5cea,new _0x374f23[(_0x4b76b4(0x33b))]()),this['_pivotRenderValueMatrixCache'][_0x4b76b4(0x411)](_0x33bb3b)[_0x4b76b4(0x411)](_0x4b5cea);}['getPivotTableCellData'](_0x439aa4,_0x23f0b7,_0xaa27a6,_0x75612e){const _0x15ed42=_0x5d1072;var _0x258e6f,_0x58b894;const _0x4bf385=(_0x58b894=(_0x258e6f=this[_0x15ed42(0x385)][_0x15ed42(0x411)](_0x439aa4))==null?void 0x0:_0x258e6f[_0x15ed42(0x411)](_0x23f0b7))==null?void 0x0:_0x58b894[_0x15ed42(0x216)](_0xaa27a6,_0x75612e);if(_0x4bf385!=null)return _0x4bf385;}[_0x5d1072(0x445)](_0x2f9a40,_0x5f42a8,_0x15417e,_0x49cc45){const _0x337ec9=_0x5d1072;var _0x1f5d12;const _0x21d555=_0x374f23['cellToRange'](_0x15417e,_0x49cc45),_0x546e13=(_0x1f5d12=this['_pivotRenderInfoCache'][_0x337ec9(0x411)](_0x2f9a40))==null?void 0x0:_0x1f5d12[_0x337ec9(0x411)](_0x5f42a8);return _0x546e13?Array[_0x337ec9(0x2d9)](_0x546e13[_0x337ec9(0x3d8)]())['find'](_0x28f0c0=>{const _0x4684eb=_0x337ec9,_0x4de43f=_0x546e13[_0x4684eb(0x411)](_0x28f0c0),_0x340cd9=_0x4de43f==null?void 0x0:_0x4de43f['rangesInfo'];return _0x340cd9?Object['keys'](_0x340cd9)['some'](_0x530be9=>_0x340cd9[_0x530be9][_0x4684eb(0x3c4)](_0x3efc8a=>_0x374f23[_0x4684eb(0x236)][_0x4684eb(0x447)](_0x3efc8a,_0x21d555))):!0x1;}):void 0x0;}[_0x5d1072(0x31b)](_0x330ec7,_0x46c72e,_0x1c9d08){const _0x1507dd=_0x5d1072;var _0x4771e0;const _0x176ac6=(_0x4771e0=this[_0x1507dd(0x424)]['get'](_0x330ec7))==null?void 0x0:_0x4771e0[_0x1507dd(0x411)](_0x46c72e),_0x3d612e=[];return _0x176ac6&&Array[_0x1507dd(0x2d9)](_0x176ac6[_0x1507dd(0x3d8)]())['forEach'](_0x972602=>{const _0x38a370=_0x1507dd,_0x44523a=_0x176ac6['get'](_0x972602),_0x3d9086=_0x44523a==null?void 0x0:_0x44523a[_0x38a370(0x1bc)];if(_0x3d9086)for(const _0xa49a59 of Object[_0x38a370(0x39c)](_0x3d9086)){let _0x3691e7=!0x1;for(const _0x581f08 of _0xa49a59)if(_0x374f23['Rectangle'][_0x38a370(0x1c1)](_0x581f08,_0x1c9d08)){_0x3d612e[_0x38a370(0x27b)](_0x972602),_0x3691e7=!0x0;break;}if(_0x3691e7)break;}}),_0x3d612e;}[_0x5d1072(0x194)](_0x1c8e9c,_0x2fdc5d){const _0x566aed=_0x5d1072;var _0x1f0a51,_0x36be52;return(_0x36be52=(_0x1f0a51=this[_0x566aed(0x385)]['get'](_0x1c8e9c))==null?void 0x0:_0x1f0a51[_0x566aed(0x411)](_0x2fdc5d))!=null?_0x36be52:new _0x374f23[(_0x566aed(0x33b))]();}[_0x5d1072(0x18c)](_0x1ff08e,_0x35cca3){const _0x30ae50=_0x5d1072;var _0x30de17;return(_0x30de17=this['_pivotRenderInfoCache']['get'](_0x1ff08e))==null?void 0x0:_0x30de17[_0x30ae50(0x411)](_0x35cca3);}[_0x5d1072(0x1b9)](_0x50d786,_0x6e3301,_0x24948d){const _0x4a8f46=_0x5d1072;var _0x2191e5,_0x205288;return(_0x205288=(_0x2191e5=this['_pivotRenderInfoCache'][_0x4a8f46(0x411)](_0x50d786))==null?void 0x0:_0x2191e5['get'](_0x6e3301))==null?void 0x0:_0x205288[_0x4a8f46(0x411)](_0x24948d);}['deleteUnitId'](_0x523c09){const _0x552ba0=_0x5d1072;this[_0x552ba0(0x424)]['delete'](_0x523c09),this[_0x552ba0(0x385)]['delete'](_0x523c09);}[_0x5d1072(0x43a)](_0x5e450f,_0x47f5b9){const _0x575de2=_0x5d1072;this['_markDirty$'][_0x575de2(0x3f8)]({'unitId':_0x5e450f,'subUnitId':_0x47f5b9});}},_0x1cc2c4['SheetsPivotTableAdaptorModel']=_0x365d82([_0x1ca81d(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cd)])),_0x1ca81d(0x1,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x1ca81d(0x2,_0x374f23['Inject'](_0x1cc2c4['SheetsPivotTableConfigModel'])),_0x1ca81d(0x3,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x1d8)])),_0x1ca81d(0x4,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x3bf)]))],_0x1cc2c4[_0x5d1072(0x3ba)]);var _0x29e034=Object[_0x5d1072(0x2c5)],_0x4eba98=(_0x56efab,_0xf3b5b0,_0xe91987,_0x115922)=>{for(var _0x3887d3=_0x115922>0x1?void 0x0:_0x115922?_0x29e034(_0xf3b5b0,_0xe91987):_0xf3b5b0,_0x3ca54b=_0x56efab['length']-0x1,_0x4db0f9;_0x3ca54b>=0x0;_0x3ca54b--)(_0x4db0f9=_0x56efab[_0x3ca54b])&&(_0x3887d3=_0x4db0f9(_0x3887d3)||_0x3887d3);return _0x3887d3;},_0x38b3f0=(_0x403838,_0x408f6a)=>(_0x5e78df,_0x302f50)=>_0x408f6a(_0x5e78df,_0x302f50,_0x403838);_0x1cc2c4['SheetsPivotTableService']=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x25a4bf,_0x32b602){const _0x33e44e=_0x5d1072;super(),_0x1e0b19(this,_0x33e44e(0x24d),new _0x374f23['AsyncInterceptorManager']({'PIVOT_PERFORM_CHECK':_0x460ff6})),_0x1e0b19(this,_0x33e44e(0x199),new _0x374f23[(_0x33e44e(0x2e4))]({'PIVOT_MUTATION_GENERATE':_0x1b27ae})),(this[_0x33e44e(0x420)]=_0x25a4bf,this[_0x33e44e(0x2d0)]=_0x32b602,this['_init']());}['_init'](){const _0x58395c=_0x5d1072;this[_0x58395c(0x482)]();}['getPivotPerformCheck'](_0x1130c4){const _0x195344=_0x5d1072;return this[_0x195344(0x24d)][_0x195344(0x3a5)](_0x460ff6)(!0x1,_0x1130c4);}[_0x5d1072(0x482)](){const _0x388acd=_0x5d1072;this[_0x388acd(0x372)](this['_sheetInterceptorService'][_0x388acd(0x2bf)](_0x24a2a7[_0x388acd(0x2a7)][_0x388acd(0x325)],{'priority':0xc8,'effect':_0x374f23[_0x388acd(0x270)][_0x388acd(0x444)]|_0x374f23['InterceptorEffectEnum'][_0x388acd(0x3fe)],'handler':(_0x3f98a8,_0x3b136c,_0x57050f)=>{const _0xf94295=_0x388acd,{row:_0x3f2065,col:_0x27f71c,unitId:_0x42fd47,subUnitId:_0x3ae4f1,workbook:_0x1c99fc}=_0x3b136c,_0x38badc=this[_0xf94295(0x2d0)][_0xf94295(0x360)](_0x42fd47,_0x3ae4f1,_0x3f2065,_0x27f71c);if(!_0x38badc)return _0x57050f(_0x3f98a8);const _0x44e7a8={..._0x3f98a8};(_0x38badc['v']||_0x38badc['v']===0x0)&&(_0x44e7a8['v']=_0x38badc['v']),_0x38badc['t']&&(_0x44e7a8['t']=_0x38badc['t']);const _0x59ed4b=(typeof(_0x3f98a8==null?void 0x0:_0x3f98a8['s'])==_0xf94295(0x436)?_0x1c99fc['getStyles']()[_0xf94295(0x411)](_0x3f98a8==null?void 0x0:_0x3f98a8['s']):_0x3f98a8==null?void 0x0:_0x3f98a8['s'])||{},_0x3157f1=_0x1c99fc[_0xf94295(0x26a)]()[_0xf94295(0x411)](_0x38badc['s']),_0x18d2de={..._0x3157f1,..._0x59ed4b};_0x3157f1!=null&&_0x3157f1['n']&&(_0x18d2de['n']=_0x3157f1['n']);const _0x53edb5=_0x1c99fc[_0xf94295(0x26a)]()[_0xf94295(0x388)](_0x18d2de);return _0x44e7a8['s']=_0x53edb5,(_0x38badc['pbt']===_0x2eef51[_0xf94295(0x421)]['Collapse']||_0x38badc[_0xf94295(0x2d4)]===_0x2eef51[_0xf94295(0x421)][_0xf94295(0x241)])&&(_0x44e7a8[_0xf94295(0x2b8)]={},_0x44e7a8['fontRenderExtension'][_0xf94295(0x3fc)]=_0x1b6ed3),_0x57050f(_0x44e7a8);}}));}},_0x1cc2c4[_0x5d1072(0x3f9)]=_0x4eba98([_0x38b3f0(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7['SheetInterceptorService'])),_0x38b3f0(0x1,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x3ba)]))],_0x1cc2c4[_0x5d1072(0x3f9)]);const _0x2dc301={'id':_0x5d1072(0x1b8),'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'handler':(_0x361559,_0x32ede6)=>{const _0x278663=_0x5d1072;if(!_0x32ede6)return!0x1;if(!!_0x361559[_0x278663(0x411)](_0x374f23[_0x278663(0x224)])['getConfig'](_0x1e657c))return!0x0;const {pivotTableId:_0x3d44c7,fieldJSON:_0x1ea8f6,unitId:_0x1b94b2,subUnitId:_0x1dd48c}=_0x32ede6;let _0x28ac97;const {dataFieldType:_0x12ec31,id:_0x3aa022,name:_0x10dec9,hexCode:_0xed12cb,originalFieldId:_0x33244b}=_0x1ea8f6;if(_0x12ec31===_0x2eef51['PivotDataFieldTypeEnum'][_0x278663(0x1e5)]&&(_0x28ac97=new _0x2eef51[(_0x278663(0x3fd))](_0x3aa022,_0x10dec9,_0xed12cb,_0x33244b)),!_0x28ac97)return!0x1;const _0x32bce2=_0x361559[_0x278663(0x411)](_0x1cc2c4[_0x278663(0x38e)]),_0xc6fc80=_0x32bce2[_0x278663(0x367)](_0x1b94b2),_0xf10201=_0xc6fc80['getCollection'](_0x3d44c7);_0xc6fc80[_0x278663(0x387)](_0x28ac97),_0xf10201['addField'](_0x28ac97[_0x278663(0x470)](),_0x28ac97['getName']());const _0x29d32d=_0xf10201[_0x278663(0x35d)](_0x28ac97['getOriginFieldId']());_0x29d32d&&_0x28ac97['refreshGroupField'](_0x29d32d);const _0x33a01f=_0x32bce2[_0x278663(0x458)](_0x1b94b2,_0x1dd48c,_0x3d44c7);return _0x32bce2[_0x278663(0x1fe)]({'unitId':_0x1b94b2,'subUnitId':_0x1dd48c,'token':_0x3d44c7,'type':_0x5ae422[_0x278663(0x332)],'pivotConfig':_0x33a01f}),!0x0;}},_0x1b4e8f={'id':_0x5d1072(0x184),'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'handler':(_0x123d75,_0x4bd0b3)=>{const _0x3a64f6=_0x5d1072;if(!_0x4bd0b3)return!0x1;if(!!_0x123d75[_0x3a64f6(0x411)](_0x374f23[_0x3a64f6(0x224)])[_0x3a64f6(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x434432,dataFieldId:_0x2cd4c8,unitId:_0x2c53e8,subUnitId:_0x489f6a}=_0x4bd0b3,_0x1d27b0=_0x123d75['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),_0x48cce6=_0x1d27b0['getDataFieldManager'](_0x2c53e8);_0x48cce6[_0x3a64f6(0x43d)](_0x434432)[_0x3a64f6(0x248)](_0x2cd4c8);let _0x357329=!0x0;for(const _0x5abc09 in _0x48cce6[_0x3a64f6(0x459)])if(_0x48cce6[_0x3a64f6(0x459)][_0x5abc09][_0x3a64f6(0x324)]()[_0x3a64f6(0x42d)](_0x2cd4c8)){_0x357329=!0x1;break;}_0x357329&&_0x48cce6[_0x3a64f6(0x34d)](_0x2cd4c8);const _0x3f0631=_0x1d27b0['getPivotTableConfig'](_0x2c53e8,_0x489f6a,_0x434432);return _0x1d27b0[_0x3a64f6(0x1fe)]({'unitId':_0x2c53e8,'subUnitId':_0x489f6a,'token':_0x434432,'type':_0x5ae422['Set'],'pivotConfig':_0x3f0631}),!0x0;}};function _0x424751(_0xd32111,_0x57885a){const _0xef04f4=_0x5d1072;switch(_0x57885a){case _0x2eef51[_0xef04f4(0x329)]['Value']:return _0xd32111[_0xef04f4(0x2a8)];case _0x2eef51['PivotTableFiledAreaEnum'][_0xef04f4(0x2f1)]:return _0xd32111['filterFields'];case _0x2eef51[_0xef04f4(0x329)]['Row']:return _0xd32111[_0xef04f4(0x206)];case _0x2eef51[_0xef04f4(0x329)][_0xef04f4(0x403)]:return _0xd32111[_0xef04f4(0x3a1)];default:return[];}}function _0x43a8ac(_0x521079,_0x229230){const _0x271bb4=_0x5d1072;return _0x521079[_0x271bb4(0x377)][_0x229230]||_0x521079[_0x271bb4(0x455)][_0x229230];}function _0x29a9c1(_0x783b10,_0xfbefd8){const _0x45d07e=_0x5d1072,{area:_0x435a3b,fieldJson:_0x82ca57,index:_0x1baff9}=_0xfbefd8;_0x435a3b===_0x2eef51['PivotTableFiledAreaEnum']['Value']?_0x783b10['measure'][_0x82ca57['id']]=_0x82ca57:_0x783b10[_0x45d07e(0x455)][_0x82ca57['id']]=_0x82ca57,_0x424751(_0x783b10,_0x435a3b)[_0x45d07e(0x2bd)](_0x1baff9,0x0,_0x82ca57['id']);}function _0x5f259e(_0x402031,_0x456ff8){const _0x2233b4=_0x5d1072,{area:_0x1f47c0,fieldId:_0x303d8d,index:_0x39a898}=_0x456ff8;_0x1f47c0===_0x2eef51[_0x2233b4(0x329)]['Value']?delete _0x402031[_0x2233b4(0x377)][_0x303d8d]:delete _0x402031['dimension'][_0x303d8d],_0x424751(_0x402031,_0x1f47c0)[_0x2233b4(0x2bd)](_0x39a898,0x1);}function _0xeb707c(_0x2e54fa,_0x378036){const _0x49d574=_0x5d1072,{fieldId:_0x110200,name:_0x2ae1de}=_0x378036,_0x518051=_0x43a8ac(_0x2e54fa,_0x110200);_0x518051&&(_0x518051[_0x49d574(0x39a)]=_0x2ae1de);}function _0x378aff(_0x2d43fb,_0x4578ac){const _0x2c67e3=_0x5d1072,{fieldId:_0x2d73fa,collapse:_0x1158dd,item:_0x23cc7c}=_0x4578ac;_0x23cc7c!==void 0x0?(_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa]=_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa]||{},_0x2d43fb[_0x2c67e3(0x23d)][_0x2d73fa][_0x23cc7c]=_0x1158dd):_0x2d43fb['collapseInfo'][_0x2d73fa]=_0x1158dd;}function _0x275df5(_0x5bcc6b,_0x33c027){const _0x217150=_0x5d1072,{fieldId:_0x40b93f,format:_0x4a0623}=_0x33c027,_0x535dca=_0x43a8ac(_0x5bcc6b,_0x40b93f);_0x535dca&&(_0x535dca[_0x217150(0x429)]=_0x4a0623);}function _0xfcbb47(_0x4b92f3,_0x520b1d){const _0x52d914=_0x5d1072,{fieldId:_0x6b8edb,filterInfo:_0x11d6db}=_0x520b1d,_0x25f3b4=_0x43a8ac(_0x4b92f3,_0x6b8edb);_0x25f3b4&&(_0x25f3b4[_0x52d914(0x3f3)]=_0x11d6db);}function _0x3a8287(_0x19d011,_0x46d331){const _0x3fe6c0=_0x5d1072,{fieldId:_0x1c9816,filterInfo:_0x3ca716}=_0x46d331,_0x51b276=_0x19d011['valueFilter']['filter'](_0x5c6a7a=>_0x5c6a7a[_0x3fe6c0(0x235)]!==_0x1c9816);_0x3ca716&&_0x51b276['push']({'fieldId':_0x1c9816,'filterInfo':_0x3ca716}),_0x19d011[_0x3fe6c0(0x1f2)]=_0x51b276;}function _0x5cb599(_0x468951,_0x2fb5f1){const {fieldId:_0x265ac2,subtotalType:_0x1db436}=_0x2fb5f1,_0x47c9f7=_0x43a8ac(_0x468951,_0x265ac2);_0x47c9f7&&(_0x47c9f7['subtotal']=_0x1db436);}function _0x424b6b(_0x1a8df6,_0x38d45f){const _0x1ce17e=_0x5d1072,{fieldId:_0x2280f7,oldArea:_0x54dcd4,area:_0x437e31,oldIndex:_0x19e775,index:_0x325de5}=_0x38d45f,_0x57c466=_0x54dcd4!==_0x2eef51['PivotTableFiledAreaEnum']['Value']&&_0x437e31===_0x2eef51['PivotTableFiledAreaEnum'][_0x1ce17e(0x444)],_0x5881a9=_0x54dcd4===_0x2eef51['PivotTableFiledAreaEnum'][_0x1ce17e(0x444)]&&_0x437e31!==_0x2eef51[_0x1ce17e(0x329)][_0x1ce17e(0x444)];if(_0x57c466||_0x5881a9){const _0x4c259f=_0x43a8ac(_0x1a8df6,_0x2280f7);_0x4c259f&&(_0x57c466?(delete _0x1a8df6['dimension'][_0x2280f7],_0x1a8df6['measure'][_0x2280f7]=_0x4c259f):(delete _0x1a8df6[_0x1ce17e(0x377)][_0x2280f7],_0x1a8df6['dimension'][_0x2280f7]=_0x4c259f));}const _0x5323e1=_0x424751(_0x1a8df6,_0x54dcd4),_0x2cc951=_0x424751(_0x1a8df6,_0x437e31);_0x5323e1[_0x1ce17e(0x2bd)](_0x19e775,0x1),_0x2cc951[_0x1ce17e(0x2bd)](_0x325de5,0x0,_0x2280f7);}function _0x1e8f15(_0x20af1e,_0x13cd40){const _0x411ad8=_0x5d1072,{valuePosition:_0xefee77,index:_0x41be5f}=_0x13cd40;_0x20af1e[_0x411ad8(0x24a)]=_0xefee77,_0x20af1e[_0x411ad8(0x29c)]=_0x41be5f;}function _0x5aff30(_0x558ffe,_0x5e41be){const _0xb33677=_0x5d1072,{tableFieldId:_0x109377,sourceName:_0x78867c,dataFieldId:_0x2bb863}=_0x5e41be,_0x4ce035=_0x43a8ac(_0x558ffe,_0x109377);_0x4ce035&&(_0x4ce035[_0xb33677(0x343)]=_0x78867c,_0x4ce035[_0xb33677(0x423)]=_0x2bb863);}function _0x2f7257(_0x748a1a,_0x4084ab){const _0xf46908=_0x5d1072,{fieldId:_0x53865d,sortInfo:_0x518046}=_0x4084ab,_0x55f876=_0x43a8ac(_0x748a1a,_0x53865d);_0x55f876&&(_0x55f876[_0xf46908(0x3c9)]=_0x518046);}function _0x4ba2f1(_0x303476,_0x4a67bb){const _0x2619ed=_0x5d1072,{options:_0xffb1a5}=_0x4a67bb;_0x303476[_0x2619ed(0x35a)]={..._0x303476['options'],..._0xffb1a5};}const _0x33b47c={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x1a1),'handler'(_0x38b267,_0x4be208){const _0x444acb=_0x5d1072;if(!_0x4be208)return!0x1;if(!!_0x38b267[_0x444acb(0x411)](_0x374f23[_0x444acb(0x224)])[_0x444acb(0x19c)](_0x1e657c))return!0x0;const _0x4673e1=_0x38b267[_0x444acb(0x411)](_0x1cc2c4[_0x444acb(0x38e)]),{pivotTableId:_0x7beb50,fieldJson:_0x577236,area:_0x1f9858,index:_0x19ba0d,unitId:_0x1f1ef0,subUnitId:_0x18483a}=_0x4be208,_0x2c0694=_0x4673e1[_0x444acb(0x202)](_0x7beb50);if(!_0x2c0694)return!0x1;let _0x32a6f5;_0x1f9858===_0x2eef51['PivotTableFiledAreaEnum'][_0x444acb(0x444)]?_0x32a6f5=_0x2eef51['createValueField'](_0x577236):_0x32a6f5=_0x2eef51[_0x444acb(0x1f0)](_0x577236),_0x2c0694[_0x444acb(0x34b)](_0x32a6f5,_0x1f9858,_0x19ba0d);const _0x3d2287=_0x4673e1['getPivotTableModelConfig'](_0x1f1ef0,_0x18483a,_0x7beb50);_0x29a9c1(_0x3d2287,_0x4be208);const _0x5840e8=_0x4673e1[_0x444acb(0x458)](_0x1f1ef0,_0x18483a,_0x7beb50);return _0x4673e1['addDirtyPivotTable']({'unitId':_0x1f1ef0,'subUnitId':_0x18483a,'token':_0x7beb50,'type':_0x5ae422[_0x444acb(0x332)],'pivotConfig':_0x5840e8}),!0x0;}},_0x1c531a={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x364),'handler'(_0x57eab2,_0x295b67){const _0x28b088=_0x5d1072;if(!_0x295b67)return!0x1;if(!!_0x57eab2[_0x28b088(0x411)](_0x374f23['IConfigService'])[_0x28b088(0x19c)](_0x1e657c))return!0x0;const _0x85f4da=_0x57eab2[_0x28b088(0x411)](_0x1cc2c4[_0x28b088(0x38e)]),{pivotTableId:_0x5c1526,fieldId:_0x436bb2,unitId:_0x34b09f,subUnitId:_0x102162}=_0x295b67,_0x1b1361=_0x85f4da['getPivotTableInstance'](_0x5c1526);if(!_0x1b1361)return!0x1;_0x1b1361[_0x28b088(0x37e)](_0x436bb2);const _0x377348=_0x85f4da[_0x28b088(0x1fb)](_0x34b09f,_0x102162,_0x5c1526);_0x5f259e(_0x377348,_0x295b67);const _0x22abbb=_0x85f4da['getPivotTableConfig'](_0x34b09f,_0x102162,_0x5c1526);return _0x85f4da[_0x28b088(0x1fe)]({'unitId':_0x34b09f,'subUnitId':_0x102162,'token':_0x5c1526,'type':_0x5ae422[_0x28b088(0x332)],'pivotConfig':_0x22abbb}),!0x0;}},_0x3a7b5e={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x2e8),'handler'(_0xd4ebea,_0x3d3239){const _0x502a82=_0x5d1072;if(!_0x3d3239)return!0x1;if(!!_0xd4ebea[_0x502a82(0x411)](_0x374f23[_0x502a82(0x224)])['getConfig'](_0x1e657c))return!0x0;const _0x518f85=_0xd4ebea[_0x502a82(0x411)](_0x1cc2c4[_0x502a82(0x38e)]),{unitId:_0x4c06a7,subUnitId:_0x480905,pivotTableId:_0x806de2,fieldId:_0x507220,name:_0x5290e5}=_0x3d3239,_0x39f309=_0x518f85[_0x502a82(0x202)](_0x806de2);if(!_0x39f309)return!0x1;_0x39f309[_0x502a82(0x18a)](_0x507220,_0x5290e5);const _0x561476=_0x518f85['getPivotTableModelConfig'](_0x4c06a7,_0x480905,_0x806de2);return _0xeb707c(_0x561476,_0x3d3239),_0x518f85[_0x502a82(0x1fe)]({'unitId':_0x4c06a7,'subUnitId':_0x480905,'token':_0x806de2,'type':_0x5ae422[_0x502a82(0x332)]}),!0x0;}},_0x4b3e58={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x47a12c,_0x3bdd7d){const _0x2b2a4b=_0x5d1072;if(!_0x3bdd7d)return!0x1;if(!!_0x47a12c['get'](_0x374f23['IConfigService'])[_0x2b2a4b(0x19c)](_0x1e657c))return!0x0;const _0x28aeca=_0x47a12c[_0x2b2a4b(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x5a3eb3,subUnitId:_0x5bc294,pivotTableId:_0x4c2367,fieldId:_0x444978,collapse:_0x13360b,item:_0x2d984c}=_0x3bdd7d,_0x57ec1a=_0x28aeca[_0x2b2a4b(0x202)](_0x4c2367);if(!_0x57ec1a)return!0x1;_0x57ec1a[_0x2b2a4b(0x472)](_0x444978,_0x13360b,_0x2d984c);const _0xe057b=_0x28aeca[_0x2b2a4b(0x1fb)](_0x5a3eb3,_0x5bc294,_0x4c2367);return _0x378aff(_0xe057b,_0x3bdd7d),_0x28aeca['addDirtyPivotTable']({'unitId':_0x5a3eb3,'subUnitId':_0x5bc294,'token':_0x4c2367,'type':_0x5ae422[_0x2b2a4b(0x332)]}),!0x0;}},_0x9f6240={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-format','handler'(_0x25fa8d,_0x89d8aa){const _0x1bb66f=_0x5d1072;if(!_0x89d8aa)return!0x1;if(!!_0x25fa8d['get'](_0x374f23[_0x1bb66f(0x224)])[_0x1bb66f(0x19c)](_0x1e657c))return!0x0;const _0x1abcb5=_0x25fa8d[_0x1bb66f(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x11b2f9,subUnitId:_0xa5a824,pivotTableId:_0x32d733,fieldId:_0x493298,format:_0x5541bc}=_0x89d8aa,_0x19f84b=_0x1abcb5['getPivotTableInstance'](_0x32d733);if(!_0x19f84b)return!0x1;_0x19f84b['setFieldFormat'](_0x493298,_0x5541bc);const _0xbf0b8a=_0x1abcb5['getPivotTableModelConfig'](_0x11b2f9,_0xa5a824,_0x32d733);return _0x275df5(_0xbf0b8a,_0x89d8aa),_0x1abcb5[_0x1bb66f(0x1fe)]({'unitId':_0x11b2f9,'subUnitId':_0xa5a824,'token':_0x32d733,'type':_0x5ae422['Set']}),!0x0;}},_0xd9e8fb={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-filter','handler'(_0x178eb6,_0x33737f){const _0x3b4b96=_0x5d1072;if(!_0x33737f)return!0x1;if(!!_0x178eb6[_0x3b4b96(0x411)](_0x374f23['IConfigService'])['getConfig'](_0x1e657c))return!0x0;const _0x555831=_0x178eb6[_0x3b4b96(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x342b86,subUnitId:_0x50f596,pivotTableId:_0x22e02f,fieldId:_0x482584,filterInfo:_0x18e6e1}=_0x33737f,_0x1c8200=_0x555831[_0x3b4b96(0x202)](_0x22e02f);if(!_0x1c8200)return!0x1;_0x1c8200[_0x3b4b96(0x3e2)](_0x482584,_0x18e6e1);const _0x58e1fe=_0x555831[_0x3b4b96(0x1fb)](_0x342b86,_0x50f596,_0x22e02f);return _0xfcbb47(_0x58e1fe,_0x33737f),_0x555831[_0x3b4b96(0x1fe)]({'unitId':_0x342b86,'subUnitId':_0x50f596,'token':_0x22e02f,'type':_0x5ae422[_0x3b4b96(0x332)]}),!0x0;}},_0x6566df={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x366),'handler'(_0x191cec,_0x426bb8){const _0x13d434=_0x5d1072;if(!_0x426bb8)return!0x1;if(!!_0x191cec['get'](_0x374f23[_0x13d434(0x224)])[_0x13d434(0x19c)](_0x1e657c))return!0x0;const _0x2e3b4d=_0x191cec[_0x13d434(0x411)](_0x1cc2c4[_0x13d434(0x38e)]),{unitId:_0x4cea6d,subUnitId:_0x50c712,pivotTableId:_0x32f95d,options:_0x327f64}=_0x426bb8,_0x166b55=_0x2e3b4d[_0x13d434(0x202)](_0x32f95d);if(!_0x166b55)return!0x1;_0x166b55[_0x13d434(0x3bb)](_0x327f64);const _0x5a063f=_0x2e3b4d[_0x13d434(0x1fb)](_0x4cea6d,_0x50c712,_0x32f95d);return _0x4ba2f1(_0x5a063f,_0x426bb8),_0x2e3b4d['addDirtyPivotTable']({'unitId':_0x4cea6d,'subUnitId':_0x50c712,'token':_0x32f95d,'type':_0x5ae422[_0x13d434(0x332)]}),!0x0;}},_0x138786={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x2a3),'handler'(_0x67d966,_0x46a185){const _0x5843d2=_0x5d1072;if(!_0x46a185)return!0x1;if(!!_0x67d966[_0x5843d2(0x411)](_0x374f23['IConfigService'])[_0x5843d2(0x19c)](_0x1e657c))return!0x0;const _0x3bdb08=_0x67d966[_0x5843d2(0x411)](_0x1cc2c4[_0x5843d2(0x38e)]),{unitId:_0xb63d87,subUnitId:_0x820aa6,pivotTableId:_0x29c1f1,sortInfo:_0x4fa838,fieldId:_0x4be4a1}=_0x46a185,_0x42a154=_0x3bdb08[_0x5843d2(0x202)](_0x29c1f1);if(!_0x42a154)return!0x1;_0x42a154[_0x5843d2(0x200)](_0x4be4a1,_0x4fa838);const _0xbb6b3a=_0x3bdb08[_0x5843d2(0x1fb)](_0xb63d87,_0x820aa6,_0x29c1f1);return _0x2f7257(_0xbb6b3a,_0x46a185),_0x3bdb08[_0x5843d2(0x1fe)]({'unitId':_0xb63d87,'subUnitId':_0x820aa6,'token':_0x29c1f1,'type':_0x5ae422['Set']}),!0x0;}},_0x55c967={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x24b5c7,_0x2f795e){const _0x47b695=_0x5d1072;if(!_0x2f795e)return!0x1;if(!!_0x24b5c7[_0x47b695(0x411)](_0x374f23[_0x47b695(0x224)])[_0x47b695(0x19c)](_0x1e657c))return!0x0;const _0x5a0485=_0x24b5c7['get'](_0x1cc2c4[_0x47b695(0x38e)]),{unitId:_0x229ad1,subUnitId:_0x19d3cf,pivotTableId:_0x3eaf2d,fieldId:_0x16cf03,subtotalType:_0x11470c}=_0x2f795e,_0x2f0162=_0x5a0485[_0x47b695(0x202)](_0x3eaf2d);if(!_0x2f0162)return!0x1;_0x2f0162[_0x47b695(0x3ad)](_0x16cf03,_0x11470c);const _0x22bcfa=_0x5a0485[_0x47b695(0x1fb)](_0x229ad1,_0x19d3cf,_0x3eaf2d);return _0x5cb599(_0x22bcfa,_0x2f795e),_0x5a0485[_0x47b695(0x1fe)]({'unitId':_0x229ad1,'subUnitId':_0x19d3cf,'token':_0x3eaf2d,'type':_0x5ae422['Set']}),!0x0;}},_0x58f9b7={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':_0x5d1072(0x402),'handler'(_0x1cc7d8,_0x1a26ca){const _0x37d78f=_0x5d1072;if(!_0x1a26ca)return!0x1;if(!!_0x1cc7d8[_0x37d78f(0x411)](_0x374f23['IConfigService'])[_0x37d78f(0x19c)](_0x1e657c))return!0x0;const _0x8fa12d=_0x1cc7d8['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x2826d6,subUnitId:_0x96109d,pivotTableId:_0x148fcd,fieldId:_0x5a853d,filterInfo:_0x246e4a}=_0x1a26ca,_0x4da709=_0x8fa12d[_0x37d78f(0x202)](_0x148fcd);if(!_0x4da709)return!0x1;_0x4da709[_0x37d78f(0x1e7)](_0x5a853d,_0x246e4a);const _0x339866=_0x8fa12d['getPivotTableModelConfig'](_0x2826d6,_0x96109d,_0x148fcd);return _0x3a8287(_0x339866,_0x1a26ca),_0x8fa12d[_0x37d78f(0x1fe)]({'unitId':_0x2826d6,'subUnitId':_0x96109d,'token':_0x148fcd,'type':_0x5ae422[_0x37d78f(0x332)]}),!0x0;}},_0x5703ce={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x188),'handler'(_0x1e46d4,_0x3bc52e){const _0x18f979=_0x5d1072;if(!_0x3bc52e)return!0x1;if(!!_0x1e46d4[_0x18f979(0x411)](_0x374f23['IConfigService'])[_0x18f979(0x19c)](_0x1e657c))return!0x0;const _0x3b783d=_0x1e46d4[_0x18f979(0x411)](_0x1cc2c4[_0x18f979(0x38e)]),{unitId:_0x54b7f1,subUnitId:_0x73f521,pivotTableId:_0x49d472,area:_0x2266b0,index:_0x347e3b,fieldId:_0x3529dd}=_0x3bc52e,_0x45c1d9=_0x3b783d[_0x18f979(0x202)](_0x49d472);if(!_0x45c1d9)return!0x1;_0x45c1d9[_0x18f979(0x233)](_0x3529dd,_0x2266b0,_0x347e3b);const _0x4689fb=_0x3b783d[_0x18f979(0x1fb)](_0x54b7f1,_0x73f521,_0x49d472);return _0x424b6b(_0x4689fb,_0x3bc52e),_0x3b783d['addDirtyPivotTable']({'unitId':_0x54b7f1,'subUnitId':_0x73f521,'token':_0x49d472,'type':_0x5ae422[_0x18f979(0x332)]}),!0x0;}},_0x23bfb9={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x1745a5,_0x5b8e0f){const _0x89f627=_0x5d1072;if(!_0x5b8e0f)return!0x1;if(!!_0x1745a5[_0x89f627(0x411)](_0x374f23[_0x89f627(0x224)])[_0x89f627(0x19c)](_0x1e657c))return!0x0;const _0x4e6a92=_0x1745a5['get'](_0x1cc2c4['SheetsPivotDataSourceModel']),{unitId:_0x182c94,subUnitId:_0x2a4840,pivotTableId:_0x5156a4,sourceName:_0x27bc67,dataFieldId:_0x4049d9,tableFieldId:_0x41cab9}=_0x5b8e0f,_0x3466ff=_0x4e6a92[_0x89f627(0x202)](_0x5156a4);if(!_0x3466ff)return!0x1;_0x3466ff['updateFieldSourceInfo'](_0x41cab9,_0x27bc67,_0x4049d9);const _0x3a7e33=_0x4e6a92[_0x89f627(0x1fb)](_0x182c94,_0x2a4840,_0x5156a4);return _0x5aff30(_0x3a7e33,_0x5b8e0f),_0x4e6a92[_0x89f627(0x1fe)]({'unitId':_0x182c94,'subUnitId':_0x2a4840,'token':_0x5156a4,'type':_0x5ae422[_0x89f627(0x332)]}),!0x0;}},_0x96a821={'type':_0x374f23[_0x5d1072(0x31e)]['MUTATION'],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x240b13,_0xe36e8d){const _0x32baa1=_0x5d1072;if(!_0xe36e8d)return!0x1;if(!!_0x240b13[_0x32baa1(0x411)](_0x374f23[_0x32baa1(0x224)])[_0x32baa1(0x19c)](_0x1e657c))return!0x0;const _0x3a2362=_0x240b13['get'](_0x1cc2c4[_0x32baa1(0x38e)]),{unitId:_0x525863,subUnitId:_0x5625ab,pivotTableId:_0xac4a13,valuePosition:_0x12517e,index:_0x31a6b1}=_0xe36e8d,_0x2ed8d3=_0x3a2362['getPivotTableInstance'](_0xac4a13);if(!_0x2ed8d3)return!0x1;_0x2ed8d3[_0x32baa1(0x3ed)](_0x12517e,_0x31a6b1);const _0x4e07ef=_0x3a2362['getPivotTableModelConfig'](_0x525863,_0x5625ab,_0xac4a13);return _0x1e8f15(_0x4e07ef,_0xe36e8d),_0x3a2362['addDirtyPivotTable']({'unitId':_0x525863,'subUnitId':_0x5625ab,'token':_0xac4a13,'type':_0x5ae422[_0x32baa1(0x332)]}),!0x0;}};function _0x93d0f(_0x138937,_0x47b9f6,_0x23262d){const _0xc3ab06=_0x5d1072,{pivotTableId:_0x59161a,unitId:_0x10e919,subUnitId:_0x296ec1}=_0x47b9f6,_0x5f447b=[],_0x4c381f=[];for(const _0x148ccb of _0x23262d)switch(_0x148ccb['type']){case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2e0)]:{const {fieldJson:_0x3c7f13,area:_0x6adf64,index:_0x46db62}=_0x148ccb,_0x167cf8={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldJson':_0x3c7f13,'area':_0x6adf64,'index':_0x46db62},_0x9bb242={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3c7f13['id'],'area':_0x6adf64,'index':_0x46db62};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x33b47c['id'],'params':_0x167cf8}),_0x4c381f['unshift']({'id':_0x1c531a['id'],'params':_0x9bb242});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2c1)]:{const {fieldId:_0x34fd61,newSubtotalType:_0x2d8aa7,oldSubtotalType:_0x5103c0}=_0x148ccb,_0x4f5213={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x34fd61,'subtotalType':_0x2d8aa7};_0x5f447b['push']({'id':_0x55c967['id'],'params':_0x4f5213});const _0x215b4d={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x34fd61,'subtotalType':_0x5103c0};_0x4c381f['unshift']({'id':_0x55c967['id'],'params':_0x215b4d});}break;case _0x2eef51[_0xc3ab06(0x462)]['RemoveField']:{const {fieldId:_0x2bd877,fieldJson:_0x42f38b,area:_0x3c134b,index:_0x55c286}=_0x148ccb,_0x47534e={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x2bd877,'index':_0x55c286,'area':_0x3c134b};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x1c531a['id'],'params':_0x47534e});const _0x248599={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldJson':_0x42f38b,'area':_0x3c134b,'index':_0x55c286};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x33b47c['id'],'params':_0x248599});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x29e)]:{const {fieldId:_0x17a447,oldName:_0x41dfdb,newName:_0xf94167}=_0x148ccb,_0x3aa685={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x17a447,'name':_0xf94167};_0x5f447b['push']({'id':_0x3a7b5e['id'],'params':_0x3aa685});const _0x5114b8={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x17a447,'name':_0x41dfdb};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x3a7b5e['id'],'params':_0x5114b8});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x321)]:{const {fieldId:_0x4cd1df,oldFilterInfo:_0x502f83,newFilterInfo:_0x4bffec}=_0x148ccb,_0x3233fa={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x4cd1df,'filterInfo':_0x4bffec};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0xd9e8fb['id'],'params':_0x3233fa});const _0x275073={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x4cd1df,'filterInfo':_0x502f83};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0xd9e8fb['id'],'params':_0x275073});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x45a)]:{const {fieldId:_0x38a84f,oldSortInfo:_0x4a2c8b,newSortInfo:_0x218f9f}=_0x148ccb,_0x5d574c={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x38a84f,'sortInfo':_0x218f9f};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x138786['id'],'params':_0x5d574c});const _0x20d666={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x38a84f,'sortInfo':_0x4a2c8b};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x138786['id'],'params':_0x20d666});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x339)]:{const {oldOptions:_0x3eaed3,newOptions:_0x578b09}=_0x148ccb,_0x3b2489={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'options':_0x578b09};_0x5f447b['push']({'id':_0x6566df['id'],'params':_0x3b2489});const _0x589c97={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'options':_0x3eaed3};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x6566df['id'],'params':_0x589c97});}break;case _0x2eef51[_0xc3ab06(0x462)]['UpdateFieldPosition']:{const {oldArea:_0x49a613,newArea:_0x3b0948,oldIndex:_0x25d701,newIndex:_0x2acd2a,fieldId:_0x3bcb4e}=_0x148ccb,_0x2e2e5c={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3bcb4e,'area':_0x3b0948,'index':_0x2acd2a,'oldArea':_0x49a613,'oldIndex':_0x25d701};_0x5f447b['push']({'id':_0x5703ce['id'],'params':_0x2e2e5c});const _0x348f9b={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x3bcb4e,'area':_0x49a613,'index':_0x25d701,'oldArea':_0x3b0948,'oldIndex':_0x2acd2a};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x5703ce['id'],'params':_0x348f9b});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x228)]:{const {oldValuePosition:_0x166861,newValuePosition:_0x1d64aa,oldIndex:_0x473e62,newIndex:_0x2db0ce}=_0x148ccb,_0x41115f={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'valuePosition':_0x1d64aa,'index':_0x2db0ce};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x96a821['id'],'params':_0x41115f});const _0x3b10b1={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'valuePosition':_0x166861,'index':_0x473e62};_0x4c381f['unshift']({'id':_0x96a821['id'],'params':_0x3b10b1});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x2b0)]:{const {fieldId:_0x5f1fe6,collapse:_0x4333a2,item:_0x2bfc59}=_0x148ccb,_0x59bc99={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5f1fe6,'collapse':_0x4333a2,'item':_0x2bfc59};_0x5f447b['push']({'id':_0x4b3e58['id'],'params':_0x59bc99});const _0x2ad142={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5f1fe6,'collapse':!_0x4333a2,'item':_0x2bfc59};_0x4c381f['unshift']({'id':_0x4b3e58['id'],'params':_0x2ad142});}break;case _0x2eef51['PivotTableChangeTypeEnum'][_0xc3ab06(0x413)]:{const {newFormat:_0x49894d,oldFormat:_0x35342b,fieldId:_0x5d8500}=_0x148ccb,_0xbbd924={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5d8500,'format':_0x49894d};_0x5f447b['push']({'id':_0x9f6240['id'],'params':_0xbbd924});const _0x4604f7={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x5d8500,'format':_0x35342b};_0x4c381f['unshift']({'id':_0x9f6240['id'],'params':_0x4604f7});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x21e)]:{const {tableFieldId:_0x454b54,oldSourceName:_0x1b24d1,newSourceName:_0x2a5b67,oldDataFieldId:_0x1456d6,newDataFieldId:_0x2ce558}=_0x148ccb,_0x46ae45={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'tableFieldId':_0x454b54,'sourceName':_0x2a5b67,'dataFieldId':_0x2ce558};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x23bfb9['id'],'params':_0x46ae45});const _0x232ae5={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'tableFieldId':_0x454b54,'sourceName':_0x1b24d1,'dataFieldId':_0x1456d6};_0x4c381f['unshift']({'id':_0x23bfb9['id'],'params':_0x232ae5});}break;case _0x2eef51[_0xc3ab06(0x462)][_0xc3ab06(0x42e)]:{const {fieldId:_0x599094,filterInfo:_0xba38db,oldFilterInfo:_0x17d298}=_0x148ccb,_0x5705a1={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x599094,'filterInfo':_0xba38db};_0x5f447b[_0xc3ab06(0x27b)]({'id':_0x58f9b7['id'],'params':_0x5705a1});const _0x5a8f80={'unitId':_0x10e919,'subUnitId':_0x296ec1,'pivotTableId':_0x59161a,'fieldId':_0x599094,'filterInfo':_0x17d298};_0x4c381f[_0xc3ab06(0x31c)]({'id':_0x58f9b7['id'],'params':_0x5a8f80});}}return{'redos':_0x5f447b,'undos':_0x4c381f};}function _0x1bde9c(_0x284fdb,_0x26bba8){const _0x1ea733=_0x5d1072;var _0xaeb5be;const _0x130942=_0x284fdb[_0x1ea733(0x411)](_0x1cc2c4[_0x1ea733(0x3f9)]),{cellInfo:_0x9bb308,view:_0x237270,isEmpty:_0x7f3ae0}=_0x26bba8;return(_0xaeb5be=_0x130942[_0x1ea733(0x199)][_0x1ea733(0x3ea)](_0x1b27ae)(_0x3f9a5f,{'cellInfo':_0x9bb308,'view':_0x237270,'isEmpty':_0x7f3ae0}))!=null?_0xaeb5be:_0x3f9a5f;}const _0x4bfc01={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.add-pivot-field',async 'handler'(_0x4374e7,_0x57501e){const _0x525c5=_0x5d1072;if(!_0x57501e)return!0x1;const _0x4a2ca9=_0x4374e7[_0x525c5(0x411)](_0x374f23['ICommandService']),_0x403625=_0x4374e7[_0x525c5(0x411)](_0x1cc2c4['SheetsPivotRPCService']),_0x6afd41=_0x4374e7[_0x525c5(0x411)](_0x374f23['IUndoRedoService']),{pivotTableId:_0x3e2979,dataFieldId:_0x35b2d3,fieldArea:_0x2d5e08,index:_0x12cbbc,unitId:_0x36b763,subUnitId:_0x470188}=_0x57501e,_0x46c16f=(await _0x403625[_0x525c5(0x291)]({'unitId':_0x36b763,'subUnitId':_0x470188,'pivotTableId':_0x3e2979,'params':{'type':_0x5370e2['AddPivotField'],'addPivotField':{'dataFieldId':_0x35b2d3,'fieldArea':_0x2d5e08,'index':_0x12cbbc}}}))[_0x525c5(0x3de)][_0x525c5(0x3e7)];if(!_0x46c16f)return!0x1;const {view:_0x3d3ecb,changesets:_0x335577,isEmpty:_0x4da9ea,pivotTableConfig:_0xc0dd26,shouldBeAddedGroupJSON:_0x2f5170}=_0x46c16f,_0x49123b=_0xc0dd26[_0x525c5(0x357)],_0x11417f=new _0x2eef51['PivotView']();_0x11417f[_0x525c5(0x1a8)](_0x3d3ecb);const _0x2a9dfa={'cellInfo':_0x49123b,'view':_0x11417f,'isEmpty':_0x4da9ea};if(!await _0x4374e7[_0x525c5(0x411)](_0x1cc2c4['SheetsPivotTableService'])[_0x525c5(0x24d)][_0x525c5(0x3a5)](_0x460ff6)(!0x0,_0x2a9dfa))return!0x1;const _0x483e90=_0x20a5db(_0x4374e7,_0x11417f,_0x49123b,_0x4da9ea),_0x3d792b=_0x1bde9c(_0x4374e7,_0x2a9dfa),{undos:_0x33ab59,redos:_0xd64a9d}=_0x93d0f(_0x4a2ca9,{'pivotTableId':_0x3e2979,'unitId':_0x36b763,'subUnitId':_0x470188},_0x335577);return _0x2f5170&&(_0xd64a9d[_0x525c5(0x31c)]({'id':_0x2dc301['id'],'params':{'pivotTableId':_0x3e2979,'fieldJSON':_0x2f5170,'unitId':_0x36b763,'subUnitId':_0x470188}}),_0x33ab59[_0x525c5(0x27b)]({'id':_0x1b4e8f['id'],'params':{'pivotTableId':_0x3e2979,'dataFieldId':_0x2f5170['id'],'unitId':_0x36b763,'subUnitId':_0x470188}})),_0x374f23[_0x525c5(0x203)]([..._0x483e90[_0x525c5(0x451)],..._0x3d792b[_0x525c5(0x451)],..._0xd64a9d],_0x4a2ca9),_0x6afd41[_0x525c5(0x2c7)]({'unitID':_0x36b763,'redoMutations':[..._0x483e90[_0x525c5(0x451)],..._0x3d792b[_0x525c5(0x451)],..._0xd64a9d],'undoMutations':[..._0x483e90[_0x525c5(0x252)],..._0x3d792b[_0x525c5(0x252)],..._0x33ab59]}),!0x0;}},_0x5e3456=()=>typeof process<'u'&&process[_0x5d1072(0x3da)]!=null&&process[_0x5d1072(0x3da)][_0x5d1072(0x474)]!=null,_0x1a650d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x43f),'handler'(_0x1d05bb,_0x14d16c){const _0x3f64bb=_0x5d1072;var _0x451365;if(!_0x14d16c)return!0x1;const _0x3ca5ad=_0x1d05bb[_0x3f64bb(0x411)](_0x374f23['IConfigService']);if(!!_0x3ca5ad[_0x3f64bb(0x19c)](_0x1e657c))return!0x0;const _0x56301e=_0x1d05bb['get'](_0x374f23[_0x3f64bb(0x1d8)]),_0x565c3e=_0x1d05bb[_0x3f64bb(0x411)](_0x1cc2c4[_0x3f64bb(0x38e)]),{pivotTableId:_0x24cd13,pivotTableConfig:_0x57f398,collectionConfig:_0xbc8ae5,unitId:_0x25c027,subUnitId:_0x30aaf6}=_0x14d16c,{sourceRangeInfo:_0x3f4663,fieldsConfig:_0x39486c,targetCellInfo:_0x131fa6}=_0x57f398,_0x42f0f2=_0x56301e['getUnit'](_0x25c027);if(!_0x42f0f2||!_0x42f0f2['getSheetBySheetId'](_0x30aaf6))return!0x1;if(!_0x5e3456()){let _0x238137=0x0;_0x42f0f2[_0x3f64bb(0x401)]()[_0x3f64bb(0x274)](_0x193267=>{const _0xc03fb8=_0x3f64bb;var _0x4a1d83,_0x39443f;_0x238137+=(_0x39443f=(_0x4a1d83=_0x565c3e[_0xc03fb8(0x239)](_0x25c027,_0x193267[_0xc03fb8(0x300)]()))==null?void 0x0:_0x4a1d83[_0xc03fb8(0x249)])!=null?_0x39443f:0x0;});const _0x547d65=(_0x451365=_0x3ca5ad['getConfig'](_0x2169aa['LS_CONFIG_KEY']))!=null?_0x451365:{},{ls:_0x34108b,pbk:_0x343caf}=_0x547d65;if(!_0x122880(_0x34108b,_0x343caf))throw new _0x374f23['CustomCommandExecutionError'](_0x3f64bb(0x2ce));const _0x3c32b9=_0x43fd63(_0x5639c4,_0x34108b,_0x343caf)[_0x3f64bb(0x1a5)];if(_0x238137>=_0x3c32b9)throw new _0x374f23[(_0x3f64bb(0x431))]('limit\x20pivot');}if(!_0xbc8ae5||!_0x39486c)return!0x1;const {collection:_0x4501ce,updateDataFieldList:_0x2dfcf9}=_0x565c3e[_0x3f64bb(0x2b4)](_0x24cd13,_0xbc8ae5,_0x3f4663,_0x131fa6);_0x565c3e['refreshData'](_0x4501ce,_0x2dfcf9,_0x3f4663);const _0x3f8294=new _0x2eef51['PivotTable'](_0x4501ce,void 0x0,_0x24cd13);_0x3f8294[_0x3f64bb(0x328)](_0x39486c);const _0x364646=JSON[_0x3f64bb(0x2ab)](JSON[_0x3f64bb(0x22c)](_0x57f398));return _0x565c3e[_0x3f64bb(0x42c)](_0x25c027,_0x30aaf6,_0x24cd13,_0x3f8294,_0x364646),_0x565c3e['addDirtyPivotTable']({'unitId':_0x25c027,'subUnitId':_0x30aaf6,'token':_0x24cd13,'type':_0x5ae422[_0x3f64bb(0x395)],'pivotConfig':_0x364646}),!0x0;}},_0x1cee8d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x2df),async 'handler'(_0x1ae319,_0x3edd1c){const _0x4543d7=_0x5d1072;if(!_0x3edd1c)return!0x1;const {sourceDataInfo:_0x31e631,pivotTableConfig:_0x477ad7}=_0x3edd1c;if(!_0x31e631||!_0x477ad7)return!0x1;const {unitId:_0x152373,subUnitId:_0x3a2301,range:_0x39e5c7}=_0x31e631,_0x3b5d94=_0x1ae319['get'](_0x374f23[_0x4543d7(0x1d8)]),_0x35a999=_0x1ae319[_0x4543d7(0x411)](_0x1cc2c4[_0x4543d7(0x333)]),_0x23ae2b=_0x1ae319[_0x4543d7(0x411)](_0x374f23[_0x4543d7(0x3cd)]),_0x498d3c=_0x1ae319['get'](_0x374f23[_0x4543d7(0x386)]),_0x32cd83=_0x3b5d94[_0x4543d7(0x2f2)](_0x152373);if(!_0x32cd83)return!0x1;const _0x4c69f=_0x32cd83[_0x4543d7(0x317)](_0x3a2301);if(!_0x4c69f)return!0x1;const _0x43e83e=_0x2eef51[_0x4543d7(0x39d)](0x8),_0x5bc509=_0x39e5c7||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4c69f[_0x4543d7(0x46e)]()-0x1,'endColumn':_0x4c69f[_0x4543d7(0x281)]()-0x1};_0x5bc509['rangeType']=_0x374f23['RANGE_TYPE'][_0x4543d7(0x37b)];const _0x17137d=(await _0x35a999['getPivotDisplayConfig']({'unitId':_0x152373,'subUnitId':_0x3a2301,'pivotTableId':_0x43e83e,'params':{'type':_0x5370e2['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x152373,'sheetName':_0x4c69f['getName'](),'subUnitId':_0x3a2301,'range':_0x5bc509},'pivotTableId':_0x43e83e,'pivotTableIndexConfig':_0x477ad7}}}))[_0x4543d7(0x3de)]['addPivotTableWithConfig'];if(!_0x17137d)return!0x1;const {isEmpty:_0x5a5171,fieldsConfig:_0x3239b8,collectionConfig:_0x1b75b2,changesets:_0x22a0d7}=_0x17137d,_0x3c7088=_0x32cd83[_0x4543d7(0x401)]()['length'],_0x5bb12a=_0x374f23['mergeWorksheetSnapshotWithDefault']({'rowCount':_0x4c69f[_0x4543d7(0x46e)]()-0x1,'columnCount':_0x4c69f[_0x4543d7(0x281)]()-0x1});_0x5bb12a['id']=_0x374f23[_0x4543d7(0x407)](),_0x5bb12a['name']=_0x32cd83[_0x4543d7(0x44c)](''+_0x23ae2b['t'](_0x4543d7(0x365)));const _0x40b44d={'index':_0x3c7088,'sheet':_0x5bb12a,'unitId':_0x152373},{redos:_0x607ad1}=_0x93d0f(_0x498d3c,{'pivotTableId':_0x43e83e,'unitId':_0x152373,'subUnitId':_0x5bb12a['id']},_0x22a0d7),_0x520c38=[{'id':_0x24a2a7[_0x4543d7(0x379)]['id'],'params':_0x40b44d},{'id':_0x1a650d['id'],'params':{'unitId':_0x152373,'subUnitId':_0x5bb12a['id'],'pivotTableId':_0x43e83e,'pivotTableConfig':{'isEmpty':_0x5a5171,'fieldsConfig':_0x3239b8,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x152373,'subUnitId':_0x5bb12a['id']},'sourceRangeInfo':{'subUnitId':_0x3a2301,'unitId':_0x152373,'range':_0x5bc509,'sheetName':_0x4c69f[_0x4543d7(0x353)]()}},'collectionConfig':_0x1b75b2}},..._0x607ad1];return _0x374f23['sequenceExecute'](_0x520c38,_0x498d3c),!0x0;}},_0x2f23f0={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x208),'handler'(_0x1dace8,_0x667b81){const _0x4eb055=_0x5d1072;if(!_0x667b81)return!0x1;if(!!_0x1dace8[_0x4eb055(0x411)](_0x374f23['IConfigService'])[_0x4eb055(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x4930b6,unitId:_0x41f1c6,subUnitId:_0x384e1e}=_0x667b81,_0x1cfa12=_0x1dace8[_0x4eb055(0x411)](_0x1cc2c4[_0x4eb055(0x38e)]);return _0x1cfa12[_0x4eb055(0x458)](_0x41f1c6,_0x384e1e,_0x4930b6)?(_0x1cfa12['addDirtyPivotTable']({'unitId':_0x41f1c6,'subUnitId':_0x384e1e,'token':_0x4930b6,'type':_0x5ae422[_0x4eb055(0x36a)]}),_0x1cfa12[_0x4eb055(0x46d)](_0x41f1c6,_0x384e1e,_0x4930b6),!0x0):!0x1;}},_0x54fb2d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x331),async 'handler'(_0x2706fc,_0x14cb32){const _0x4b0f42=_0x5d1072;var _0x19d3fb,_0x2d9b6a;const _0x2e713f=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x386)]),_0x5da7c6=_0x2706fc[_0x4b0f42(0x411)](_0x374f23['IUniverInstanceService']),_0x3163dc=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x3cd)]),_0xbc7d7e=_0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x333)]),_0xfa15dc=_0x2706fc['get'](_0x374f23[_0x4b0f42(0x284)]),_0x3cfb0a=_0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x1ea)]),_0xe1ac02=_0x2706fc[_0x4b0f42(0x411)](_0x374f23[_0x4b0f42(0x224)]);if(!_0x14cb32)return!0x1;const {pivotTableConfig:_0x5af6d2,positionType:_0x445f04}=_0x14cb32,{targetCellInfo:_0x140b5e,sourceRangeInfo:_0x418f4f}=_0x5af6d2,{unitId:_0x168378,subUnitId:_0x3f034c}=_0x140b5e,_0x154a77=_0x5da7c6[_0x4b0f42(0x2f2)](_0x168378);if(!_0x154a77)return!0x1;let _0x4a4855=0x0;_0x154a77[_0x4b0f42(0x401)]()[_0x4b0f42(0x274)](_0x3a82f6=>{const _0x28c490=_0x4b0f42;var _0x58cd56,_0x47f476;_0x4a4855+=(_0x47f476=(_0x58cd56=_0x3cfb0a[_0x28c490(0x239)](_0x168378,_0x3a82f6['getSheetId']()))==null?void 0x0:_0x58cd56[_0x28c490(0x249)])!=null?_0x47f476:0x0;});const _0x419342=(_0x19d3fb=_0xe1ac02[_0x4b0f42(0x19c)](_0x2169aa[_0x4b0f42(0x442)]))!=null?_0x19d3fb:{},{ls:_0x43b0e5,pbk:_0x1e5539}=_0x419342;if(!_0x122880(_0x43b0e5,_0x1e5539))return!0x1;const _0x544891=_0x43fd63(_0x5639c4,_0x43b0e5,_0x1e5539)[_0x4b0f42(0x1a5)];if(_0x4a4855>=_0x544891)return!0x1;const _0x32f8f8=_0x14cb32['pivotTableId']||_0x2eef51[_0x4b0f42(0x39d)](0x8),_0x204cd2=(await _0xbc7d7e['getPivotDisplayConfig']({'unitId':_0x168378,'subUnitId':_0x3f034c,'pivotTableId':_0x32f8f8,'params':{'type':_0x5370e2[_0x4b0f42(0x358)],'addPivotTable':{'sourceRangeInfo':_0x418f4f,'pivotTableId':_0x32f8f8}}}))[_0x4b0f42(0x3de)]['addPivotTable'];if(!_0x204cd2)return!0x1;const {view:_0x12644d,isEmpty:_0x39428f,fieldsConfig:_0x2669c4,collectionConfig:_0x131d0f}=_0x204cd2,_0x379b74=[],_0x18177a=[];if(_0x445f04===_0x55d455['New']){const _0x1dd2d4=_0x154a77[_0x4b0f42(0x401)]()[_0x4b0f42(0x468)],_0x5e330e=_0x374f23[_0x4b0f42(0x1f3)]({});_0x5e330e['id']=_0x5af6d2['targetCellInfo'][_0x4b0f42(0x294)],_0x5e330e[_0x4b0f42(0x432)]=(_0x2d9b6a=_0x5af6d2['targetCellInfo'][_0x4b0f42(0x376)])!=null?_0x2d9b6a:_0x154a77[_0x4b0f42(0x44c)](''+_0x3163dc['t'](_0x4b0f42(0x365)));const _0x4eac09={'index':_0x1dd2d4,'sheet':_0x5e330e,'unitId':_0x168378},_0x418cfd=_0x24a2a7[_0x4b0f42(0x32d)](_0x2706fc,_0x4eac09);_0x379b74[_0x4b0f42(0x27b)]({'id':_0x24a2a7[_0x4b0f42(0x2d2)]['id'],'params':_0x418cfd}),_0x18177a['push']({'id':_0x24a2a7['InsertSheetMutation']['id'],'params':_0x4eac09});}else{if(!_0x154a77['getSheetBySheetId'](_0x3f034c))return!0x1;const _0x486915=_0x20a5db(_0x2706fc,new _0x2eef51[(_0x4b0f42(0x28f))](),_0x140b5e,!0x0);_0x18177a[_0x4b0f42(0x27b)](..._0x486915['redos']),_0x379b74[_0x4b0f42(0x27b)](..._0x486915[_0x4b0f42(0x252)]);const _0x438764={'cellInfo':_0x140b5e,'view':_0x12644d,'isEmpty':_0x39428f};if(!await _0x2706fc[_0x4b0f42(0x411)](_0x1cc2c4[_0x4b0f42(0x3f9)])[_0x4b0f42(0x24d)][_0x4b0f42(0x3a5)](_0x460ff6)(!0x0,_0x438764))return!0x1;const _0x45fe5b=_0x1bde9c(_0x2706fc,_0x438764);_0x18177a[_0x4b0f42(0x27b)](..._0x45fe5b['redos']),_0x379b74[_0x4b0f42(0x27b)](..._0x45fe5b[_0x4b0f42(0x252)]);}return _0x18177a[_0x4b0f42(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x140b5e['unitId'],'subUnitId':_0x140b5e[_0x4b0f42(0x294)],'pivotTableId':_0x32f8f8,'pivotTableConfig':{'targetCellInfo':_0x140b5e,'sourceRangeInfo':_0x418f4f,'fieldsConfig':_0x2669c4},'collectionConfig':_0x131d0f}}),_0x379b74[_0x4b0f42(0x31c)]({'id':_0x2f23f0['id'],'params':{'unitId':_0x168378,'subUnitId':_0x3f034c,'pivotTableId':_0x32f8f8}}),_0x374f23[_0x4b0f42(0x203)](_0x18177a,_0x2e713f)&&_0xfa15dc['pushUndoRedo']({'unitID':_0x168378,'undoMutations':_0x379b74,'redoMutations':_0x18177a}),!0x0;}},_0x225bd3={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':'sheet.command.move-pivot-field',async 'handler'(_0x500223,_0xd170ee){const _0x1d4133=_0x5d1072;if(!_0xd170ee)return!0x1;const _0x2da340=_0x500223['get'](_0x374f23[_0x1d4133(0x386)]),_0x5401ff=_0x500223['get'](_0x1cc2c4[_0x1d4133(0x333)]),_0x1511ec=_0x500223[_0x1d4133(0x411)](_0x374f23['IUndoRedoService']),{pivotTableId:_0x2b88e4,fieldId:_0x246cf9,area:_0x2da65c,index:_0x109c1f,unitId:_0x4cfe36,subUnitId:_0x43a69a}=_0xd170ee,_0x31dc41=(await _0x5401ff[_0x1d4133(0x291)]({'unitId':_0x4cfe36,'subUnitId':_0x43a69a,'pivotTableId':_0x2b88e4,'params':{'type':_0x5370e2[_0x1d4133(0x3a0)],'movePivotField':{'fieldId':_0x246cf9,'area':_0x2da65c,'index':_0x109c1f}}}))['result']['movePivotField'];if(!_0x31dc41)return!0x1;const {changesets:_0x929037,view:_0x3af54b,isEmpty:_0x1c3839,pivotTableConfig:_0x1f245c}=_0x31dc41,_0x2d3bd4=_0x1f245c['targetCellInfo'],_0x21c44c=new _0x2eef51['PivotView']();_0x21c44c[_0x1d4133(0x1a8)](_0x3af54b);const _0x443ecf={'cellInfo':_0x2d3bd4,'view':_0x21c44c,'isEmpty':_0x1c3839};if(!await _0x500223[_0x1d4133(0x411)](_0x1cc2c4[_0x1d4133(0x3f9)])[_0x1d4133(0x24d)][_0x1d4133(0x3a5)](_0x460ff6)(!0x0,_0x443ecf))return!0x1;const _0x4fb4f7=_0x20a5db(_0x500223,_0x21c44c,_0x2d3bd4,_0x1c3839),_0x2719c7=_0x1bde9c(_0x500223,_0x443ecf),{redos:_0x4e33e2,undos:_0x948966}=_0x93d0f(_0x2da340,{'pivotTableId':_0x2b88e4,'unitId':_0x4cfe36,'subUnitId':_0x43a69a},_0x929037);return _0x374f23[_0x1d4133(0x203)]([..._0x4fb4f7[_0x1d4133(0x451)],..._0x2719c7[_0x1d4133(0x451)],..._0x4e33e2],_0x2da340),_0x1511ec[_0x1d4133(0x2c7)]({'unitID':_0x4cfe36,'redoMutations':[..._0x4fb4f7[_0x1d4133(0x451)],..._0x2719c7[_0x1d4133(0x451)],..._0x4e33e2],'undoMutations':[..._0x4fb4f7[_0x1d4133(0x252)],..._0x2719c7[_0x1d4133(0x252)],..._0x948966]}),!0x0;}},_0x24c983={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'id':_0x5d1072(0x36d),'handler'(_0x43691f,_0x5e07e6){const _0x4d5add=_0x5d1072;if(!_0x5e07e6)return!0x1;if(!!_0x43691f[_0x4d5add(0x411)](_0x374f23['IConfigService'])[_0x4d5add(0x19c)](_0x1e657c))return!0x0;const {pivotTableId:_0x2a781a,targetCellPosition:_0x23262a,unitId:_0x1c3370,subUnitId:_0x50c7ab}=_0x5e07e6,_0x4238b5=_0x43691f[_0x4d5add(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']);if(!_0x4238b5[_0x4d5add(0x202)](_0x5e07e6[_0x4d5add(0x280)]))return!0x1;const _0x59426c=_0x4238b5[_0x4d5add(0x1c8)](_0x2a781a);if(!_0x59426c)return!0x1;const _0x1b9d7a=_0x4238b5[_0x4d5add(0x43d)](_0x59426c['unitId'],_0x5e07e6[_0x4d5add(0x280)]);if(!_0x1b9d7a)return!0x1;const _0x2cdc2a=_0x4238b5[_0x4d5add(0x458)](_0x59426c[_0x4d5add(0x29a)],_0x59426c[_0x4d5add(0x294)],_0x2a781a);if(!_0x2cdc2a)return!0x1;const _0x338efd=_0x374f23[_0x4d5add(0x3c1)][_0x4d5add(0x191)](_0x2cdc2a);_0x338efd[_0x4d5add(0x357)]={'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'row':_0x23262a[_0x4d5add(0x23e)],'col':_0x23262a[_0x4d5add(0x434)]};const _0x3e863f=_0x1b9d7a[_0x4d5add(0x3ff)]();if(_0x59426c[_0x4d5add(0x294)]===_0x50c7ab&&_0x59426c[_0x4d5add(0x29a)]===_0x1c3370)_0x4238b5[_0x4d5add(0x2e5)](_0x1c3370,_0x50c7ab,_0x2a781a,_0x338efd),_0x4238b5[_0x4d5add(0x1fe)]({'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'token':_0x2a781a,'type':_0x5ae422['Set']});else{_0x4238b5[_0x4d5add(0x1fe)]({'unitId':_0x59426c[_0x4d5add(0x29a)],'subUnitId':_0x59426c[_0x4d5add(0x294)],'token':_0x2a781a,'type':_0x5ae422[_0x4d5add(0x36a)]}),_0x4238b5[_0x4d5add(0x46d)](_0x59426c[_0x4d5add(0x29a)],_0x59426c['subUnitId'],_0x2a781a);const _0x298ae5=_0x4238b5[_0x4d5add(0x2b4)](_0x2a781a,_0x3e863f,_0x2cdc2a['sourceRangeInfo'],_0x338efd[_0x4d5add(0x357)]),_0xfe3252=new _0x2eef51['PivotTable'](_0x298ae5[_0x4d5add(0x1ff)],void 0x0,_0x2a781a);_0xfe3252[_0x4d5add(0x328)](_0x338efd[_0x4d5add(0x3b6)]),_0x4238b5['addPivotTable'](_0x1c3370,_0x50c7ab,_0x2a781a,_0xfe3252,_0x338efd),_0x4238b5['addDirtyPivotTable']({'unitId':_0x1c3370,'subUnitId':_0x50c7ab,'token':_0x2a781a,'type':_0x5ae422[_0x4d5add(0x395)],'pivotConfig':_0x338efd});}return!0x0;}},_0x4007f1={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.move-pivot-table','handler':(_0x22aebe,_0x5e5f43)=>{const _0x240136=_0x5d1072,_0x428534=_0x22aebe['get'](_0x374f23[_0x240136(0x386)]),_0x480d3b=_0x22aebe[_0x240136(0x411)](_0x374f23['IUndoRedoService']),_0x2fb943=_0x22aebe[_0x240136(0x411)](_0x1cc2c4['SheetsPivotTableConfigModel']),_0x98032=_0x22aebe['get'](_0x374f23['IUniverInstanceService']);if(!_0x5e5f43)return!0x1;const _0x1eedbe=_0x24a2a7[_0x240136(0x1db)](_0x98032);if(!_0x1eedbe)return!0x1;const {unitId:_0x280c48,subUnitId:_0x3de5a9,workbook:_0x420f2e}=_0x1eedbe,_0x4e139f=_0x2fb943['getPivotTableConfig'](_0x5e5f43[_0x240136(0x1e0)]['unitId'],_0x5e5f43['originTargetInfo'][_0x240136(0x294)],_0x5e5f43[_0x240136(0x280)]);if(!_0x4e139f)return!0x1;const _0xa0a30f=_0x420f2e[_0x240136(0x317)](_0x5e5f43[_0x240136(0x357)][_0x240136(0x294)]);if(!_0xa0a30f)throw new Error(_0x240136(0x391));const _0x2eaf3a=_0xa0a30f[_0x240136(0x46e)](),_0x5c1cfd=_0xa0a30f[_0x240136(0x281)]();if(_0x5e5f43['targetCellInfo'][_0x240136(0x23e)]>_0x2eaf3a||_0x5e5f43['targetCellInfo'][_0x240136(0x434)]>_0x5c1cfd)throw new Error(_0x240136(0x204));const _0x3c126c=[{'id':_0x24c983['id'],'params':{'unitId':_0x280c48,'subUnitId':_0x5e5f43[_0x240136(0x357)][_0x240136(0x294)],'pivotTableId':_0x5e5f43[_0x240136(0x280)],'targetCellPosition':{'row':_0x5e5f43[_0x240136(0x357)][_0x240136(0x23e)],'col':_0x5e5f43[_0x240136(0x357)]['col']}}}],_0x3e0d55=[{'id':_0x24c983['id'],'params':{'unitId':_0x280c48,'subUnitId':_0x3de5a9,'pivotTableId':_0x5e5f43['pivotTableId'],'targetCellPosition':{'row':_0x4e139f[_0x240136(0x357)][_0x240136(0x23e)],'col':_0x4e139f[_0x240136(0x357)][_0x240136(0x434)]}}}];return _0x374f23[_0x240136(0x203)](_0x3c126c,_0x428534)&&_0x480d3b[_0x240136(0x2c7)]({'unitID':_0x280c48,'undoMutations':_0x3e0d55,'redoMutations':_0x3c126c}),!0x0;}},_0x1b9cf3={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':_0x5d1072(0x312),async 'handler'(_0x1e6441,_0x32acb7){const _0x3ec393=_0x5d1072;var _0x1052b9;if(!_0x32acb7)return!0x1;const _0x12117e=_0x1e6441['get'](_0x374f23['IUniverInstanceService']),_0x2cfc90=_0x24a2a7['getSheetCommandTarget'](_0x12117e);if(!_0x2cfc90)return!0x1;const {unitId:_0x13e420,subUnitId:_0x4fde33,workbook:_0x17ee73}=_0x2cfc90,{row:_0x27338a,col:_0x49c8f7}=_0x32acb7,_0x55dbd9=_0x1e6441['get'](_0x1cc2c4[_0x3ec393(0x3ba)]),_0x37daa7=_0x55dbd9[_0x3ec393(0x445)](_0x13e420,_0x4fde33,_0x27338a,_0x49c8f7);if(!_0x37daa7)return!0x1;const _0x57e00e=(_0x1052b9=_0x55dbd9['getPivotItemRenderInfoCache'](_0x13e420,_0x4fde33,_0x37daa7))==null?void 0x0:_0x1052b9[_0x3ec393(0x3db)];if(!_0x57e00e)return!0x1;const _0x3498e3=_0x1e6441['get'](_0x1cc2c4[_0x3ec393(0x1ea)])[_0x3ec393(0x458)](_0x13e420,_0x4fde33,_0x37daa7);if(!_0x3498e3)return!0x1;const {rowInfo:_0xa17c75,colInfo:_0x21f809}=_0x57e00e,_0x4a2c13=_0xa17c75[_0x27338a][_0x3ec393(0x3ae)],_0x43dc8a=_0x21f809[_0x49c8f7]['paths'],_0x1df90c=_0xa17c75[_0x27338a][_0x3ec393(0x2c4)],_0x2fe281=_0x21f809[_0x49c8f7][_0x3ec393(0x2c4)],_0x2b6697=_0x4a2c13[_0x3ec393(0x361)](_0x43dc8a),_0x39ac99=_0x3498e3[_0x3ec393(0x3b6)]['rowFields']['slice'](0x0,_0x1df90c),_0x1f541c=_0x3498e3[_0x3ec393(0x3b6)][_0x3ec393(0x3a1)][_0x3ec393(0x23a)](0x0,_0x2fe281),_0x190d16=_0x39ac99[_0x3ec393(0x361)](_0x1f541c),_0x4ef5d5=_0x2b6697['map']((_0x5dfcc0,_0x15f5f5)=>[_0x5dfcc0,_0x190d16[_0x15f5f5]]),_0x1525da=(await _0x1e6441[_0x3ec393(0x411)](_0x1cc2c4[_0x3ec393(0x333)])['getPivotDisplayConfig']({'unitId':_0x13e420,'subUnitId':_0x4fde33,'pivotTableId':_0x37daa7,'params':{'type':_0x5370e2[_0x3ec393(0x42f)],'drillDown':{'tuple':_0x4ef5d5}}}))[_0x3ec393(0x3de)][_0x3ec393(0x2d8)];if(!_0x1525da)return!0x1;const {indexes:_0x99aa67,range:_0x37c112,sourceUnitId:_0x12473f,sourceSubUnitId:_0x1135e9,formatMap:_0x340540}=_0x1525da,{startRow:_0x443b9f,endRow:_0x2a80ec,startColumn:_0x359464,endColumn:_0x4db50c}=_0x37c112,_0x5e28fb=new _0x374f23[(_0x3ec393(0x33b))](),_0x400d78=_0x2a80ec-_0x443b9f,_0x152211=_0x4db50c-_0x359464,_0xf83160={},_0x23bd0a=_0x24a2a7[_0x3ec393(0x1db)](_0x12117e,{'unitId':_0x12473f,'subUnitId':_0x1135e9});if(!_0x23bd0a)return!0x1;const _0x33650f=_0x1ed179['colStyle'],_0xaff928=_0x1ed179[_0x3ec393(0x483)],_0x4abf5d=_0x1ed179[_0x3ec393(0x483)],_0x49350d=_0x17ee73[_0x3ec393(0x26a)]()[_0x3ec393(0x388)](_0x33650f),_0x2e4842=_0x17ee73[_0x3ec393(0x26a)]()[_0x3ec393(0x388)](_0xaff928),_0x43911a=_0x17ee73['getStyles']()[_0x3ec393(0x388)](_0x4abf5d),{worksheet:_0x3d51d5}=_0x23bd0a;let _0x1ba05b=0x0;const _0x5d78b3=0x1;_0x99aa67[_0x3ec393(0x274)](_0x4b81a0=>{const _0x37b475=_0x3ec393;for(let _0x5355ef=0x0;_0x5355ef<=_0x4db50c-_0x359464;_0x5355ef++)_0x5e28fb[_0x37b475(0x388)](_0x1ba05b,_0x5355ef,_0x3d51d5[_0x37b475(0x181)](_0x4b81a0+_0x37c112['startRow']+_0x5d78b3,_0x5355ef));_0x1ba05b++;});for(let _0x4b717b=_0x359464;_0x4b717b<=_0x4db50c;_0x4b717b++){const _0x1a1907=_0x3d51d5[_0x3ec393(0x181)](_0x443b9f,_0x4b717b);_0xf83160[_0x443b9f]||(_0xf83160[_0x443b9f]={}),_0xf83160[_0x443b9f][_0x4b717b]={..._0x1a1907,'s':_0x49350d};}let _0x51c8cc=0x1;const _0x1fe67c={},_0x135634={};_0x5e28fb[_0x3ec393(0x19f)]((_0x28d196,_0xfe13f)=>{const _0xe0f1a7=_0x3ec393;_0xfe13f[_0xe0f1a7(0x274)](_0x53a861=>{const _0x5104f5=_0xe0f1a7,_0x3c39c0=_0x5e28fb[_0x5104f5(0x216)](_0x28d196,_0x53a861);if(_0xf83160[_0x51c8cc]||(_0xf83160[_0x51c8cc]={}),_0xf83160[_0x51c8cc][_0x53a861]={..._0x3c39c0,'s':_0x51c8cc%0x2===0x0?_0x43911a:_0x2e4842},_0x340540[_0x53a861]&&_0x28d196>=0x0){const _0x10666e=_0x51c8cc%0x2===0x0;let _0x2ad2c2=_0x10666e?_0x135634[_0x53a861]:_0x1fe67c[_0x53a861];_0x2ad2c2||(_0x2ad2c2=_0x17ee73['getStyles']()[_0x5104f5(0x388)]({..._0x10666e?_0x4abf5d:_0xaff928,'n':{'pattern':_0x340540[_0x53a861]}}),_0x10666e?_0x135634[_0x53a861]=_0x2ad2c2:_0x1fe67c[_0x53a861]=_0x2ad2c2),_0xf83160[_0x51c8cc][_0x53a861]['s']=_0x2ad2c2;}}),_0x51c8cc++;});const _0x5651ab=new _0x374f23[(_0x3ec393(0x33b))](_0xf83160),_0x8228ce={};_0x5651ab[_0x3ec393(0x1d1)]((_0x5960b3,_0x2d7c94,_0x362ce9)=>{_0x8228ce[_0x5960b3]||(_0x8228ce[_0x5960b3]={}),_0x8228ce[_0x5960b3][_0x2d7c94]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x2745b5=[],_0x4dd6de=[],_0x1a46f5=_0x17ee73['getSheets']()[_0x3ec393(0x468)],_0x3d1b19=_0x374f23[_0x3ec393(0x1f3)]({'rowCount':Math[_0x3ec393(0x275)](_0x374f23['DEFAULT_WORKSHEET_ROW_COUNT'],_0x400d78+0xa),'columnCount':Math[_0x3ec393(0x275)](_0x374f23[_0x3ec393(0x3cc)],_0x152211+0x5)}),_0x17b38a=_0x1e6441[_0x3ec393(0x411)](_0x374f23[_0x3ec393(0x3cd)]);_0x3d1b19['id']=_0x374f23[_0x3ec393(0x407)](),_0x3d1b19[_0x3ec393(0x432)]=_0x17ee73['generateNewSheetName'](''+_0x17b38a['t'](_0x3ec393(0x365)));const _0x4dc6bf={'index':_0x1a46f5,'sheet':_0x3d1b19,'unitId':_0x13e420},_0x595322=_0x24a2a7[_0x3ec393(0x32d)](_0x1e6441,_0x4dc6bf);_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x24a2a7['InsertSheetMutation']['id'],'params':_0x4dc6bf}),_0x2745b5[_0x3ec393(0x27b)]({'id':_0x24a2a7[_0x3ec393(0x2d2)]['id'],'params':_0x595322}),_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x24a2a7['SetRangeValuesMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'cellValue':_0xf83160}}),_0x2745b5[_0x3ec393(0x31c)]({'id':_0x24a2a7['SetRangeValuesMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'cellValue':_0x8228ce}});const _0xc8983f={'startRow':0x0,'startColumn':0x0,'endRow':_0x51c8cc-0x1,'endColumn':_0x4db50c};_0x4dd6de[_0x3ec393(0x27b)]({'id':_0x158537[_0x3ec393(0x21c)]['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id'],'range':_0xc8983f}}),_0x2745b5['unshift']({'id':_0x158537['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x13e420,'subUnitId':_0x3d1b19['id']}});const _0x24310a=_0x1e6441[_0x3ec393(0x411)](_0x374f23['ICommandService']);return _0x374f23['sequenceExecute'](_0x4dd6de,_0x24310a)&&_0x1e6441[_0x3ec393(0x411)](_0x374f23['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x13e420,'undoMutations':_0x2745b5,'redoMutations':_0x4dd6de}),!0x0;}},_0x490c7c={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x1c2),async 'handler'(_0x4451da,_0x1bd938){const _0x1982f3=_0x5d1072;if(!_0x1bd938)return!0x1;const _0x5d09f8=_0x4451da['get'](_0x374f23[_0x1982f3(0x386)]),_0x478125=_0x4451da[_0x1982f3(0x411)](_0x1cc2c4[_0x1982f3(0x333)]),_0x551d27=_0x4451da[_0x1982f3(0x411)](_0x374f23[_0x1982f3(0x284)]),{pivotTableId:_0x46cd1a,fieldIds:_0x45f6e6,unitId:_0x1f502d,subUnitId:_0x54536d}=_0x1bd938,_0x24f5b8=(await _0x478125[_0x1982f3(0x291)]({'unitId':_0x1f502d,'subUnitId':_0x54536d,'pivotTableId':_0x46cd1a,'params':{'type':_0x5370e2[_0x1982f3(0x32f)],'removePivotField':{'fieldIds':_0x45f6e6}}}))[_0x1982f3(0x3de)]['removePivotField'];if(!_0x24f5b8)return!0x1;const {view:_0x1cb5c7,changesets:_0x2eb0fa,isEmpty:_0x5a0d77,pivotTableConfig:_0x54308e}=_0x24f5b8,_0x3b99a4=_0x54308e[_0x1982f3(0x357)],_0x125b17=new _0x2eef51[(_0x1982f3(0x28f))]();_0x125b17['formJSON'](_0x1cb5c7);const _0x36752a={'cellInfo':_0x3b99a4,'view':_0x125b17,'isEmpty':_0x5a0d77};if(!await _0x4451da[_0x1982f3(0x411)](_0x1cc2c4[_0x1982f3(0x3f9)])['asyncInterceptor'][_0x1982f3(0x3a5)](_0x460ff6)(!0x0,_0x36752a))return!0x1;const _0x2eba99=_0x20a5db(_0x4451da,_0x125b17,_0x3b99a4,_0x5a0d77),_0x24fd98=_0x1bde9c(_0x4451da,_0x36752a),{redos:_0x326944,undos:_0x2c0dc4}=_0x93d0f(_0x5d09f8,{'pivotTableId':_0x46cd1a,'unitId':_0x1f502d,'subUnitId':_0x54536d},_0x2eb0fa);return _0x374f23['sequenceExecute']([..._0x2eba99['redos'],..._0x24fd98[_0x1982f3(0x451)],..._0x326944],_0x5d09f8),_0x551d27[_0x1982f3(0x2c7)]({'unitID':_0x1f502d,'redoMutations':[..._0x2eba99[_0x1982f3(0x451)],..._0x24fd98['redos'],..._0x326944],'undoMutations':[..._0x2eba99[_0x1982f3(0x252)],..._0x24fd98[_0x1982f3(0x252)],..._0x2c0dc4]}),!0x0;}},_0x1e91f0={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x2b6108,_0x4f02e6){const _0x43e148=_0x5d1072;if(!_0x4f02e6)return!0x1;const _0x48a093=_0x2b6108['get'](_0x374f23[_0x43e148(0x386)]),_0x2bacc7=_0x2b6108[_0x43e148(0x411)](_0x374f23[_0x43e148(0x284)]),_0x37894c=_0x2b6108[_0x43e148(0x411)](_0x1cc2c4['SheetsPivotRPCService']),{resetArea:_0x2851f7,pivotTableId:_0x6ae283,unitId:_0x36b029,subUnitId:_0x529a59}=_0x4f02e6,_0x301772=(await _0x37894c['getPivotDisplayConfig']({'unitId':_0x36b029,'subUnitId':_0x529a59,'pivotTableId':_0x6ae283,'params':{'type':_0x5370e2[_0x43e148(0x305)],'resetPivotTable':{'pivotTableId':_0x6ae283,'resetArea':_0x2851f7}}}))[_0x43e148(0x3de)][_0x43e148(0x29f)];if(!_0x301772)return!0x1;const {changesets:_0x2176bc}=_0x301772,{redos:_0xaf4654,undos:_0x54fc2c}=_0x93d0f(_0x48a093,{'pivotTableId':_0x6ae283,'unitId':_0x36b029,'subUnitId':_0x529a59},_0x2176bc);return _0x374f23['sequenceExecute'](_0xaf4654,_0x48a093),_0x2bacc7[_0x43e148(0x2c7)]({'unitID':_0x36b029,'redoMutations':_0xaf4654,'undoMutations':_0x54fc2c}),!0x0;}},_0xc6bcab={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x45e),async 'handler'(_0xd52c30,_0x1b3ef2){const _0x137369=_0x5d1072,_0x2e931e=_0xd52c30['get'](_0x374f23[_0x137369(0x386)]),_0x14a0b0=_0xd52c30['get'](_0x1cc2c4['SheetsPivotRPCService']),_0x9077d0=_0xd52c30[_0x137369(0x411)](_0x1cc2c4[_0x137369(0x3ba)]),_0x5a2dff=_0xd52c30[_0x137369(0x411)](_0x374f23[_0x137369(0x1d8)]),_0x4e50e7=_0xd52c30[_0x137369(0x411)](_0x374f23[_0x137369(0x3cd)]),_0x42b38f=_0xd52c30[_0x137369(0x411)](_0x374f23['IUndoRedoService']);if(!_0x1b3ef2)return!0x1;const {unitId:_0xfd7493,subUnitId:_0x6d9ee8,row:_0x41ecf5,col:_0x2b02df,collapse:_0x3542fb}=_0x1b3ef2,_0x252e1d=_0x5a2dff[_0x137369(0x2f2)](_0xfd7493);if(!_0x252e1d||!_0x252e1d[_0x137369(0x317)](_0x6d9ee8))return!0x1;const _0x26de16=_0x9077d0[_0x137369(0x445)](_0xfd7493,_0x6d9ee8,_0x41ecf5,_0x2b02df);if(!_0x26de16)return!0x1;const _0x17fd9d=_0x9077d0[_0x137369(0x1b9)](_0xfd7493,_0x6d9ee8,_0x26de16);if(!_0x17fd9d)return!0x1;const _0x1a2c0a=_0x374f23[_0x137369(0x3d6)](_0x41ecf5,_0x2b02df),{rangesInfo:_0x24913f,areaInfo:_0x496262,headerMap:_0x3cb4e1}=_0x17fd9d;if(!_0x24913f||!_0x496262||!_0x3cb4e1)return!0x1;const _0x53b58a=Object[_0x137369(0x3d8)](_0x24913f)[_0x137369(0x307)](_0x27ac4e=>_0x24913f[_0x27ac4e][_0x137369(0x3c4)](_0x32d89d=>_0x374f23[_0x137369(0x236)][_0x137369(0x447)](_0x32d89d,_0x1a2c0a)));let _0x449b6c;_0x53b58a===_0x137369(0x3d2)?_0x449b6c=_0x3cb4e1['rowHeaderMap'][_0x2b02df]:_0x53b58a===_0x137369(0x2ad)&&(_0x449b6c=_0x3cb4e1[_0x137369(0x405)][_0x41ecf5]);const _0x3a694a=_0x449b6c==null?void 0x0:_0x449b6c[_0x137369(0x44b)],_0x42d642=_0x9077d0[_0x137369(0x360)](_0xfd7493,_0x6d9ee8,_0x41ecf5,_0x2b02df);let _0x3ae23f=_0x42d642==null?void 0x0:_0x42d642['v'];if(_0x3ae23f===_0x4e50e7['t'](_0x137369(0x30d))&&(_0x3ae23f=_0x2eef51['GlobalConfig']['BLANK_PLACEHOLDER']),_0x3ae23f==null||!_0x26de16||!_0x3a694a)return!0x1;const _0x1582da=await _0x14a0b0['getPivotDisplayConfig']({'unitId':_0xfd7493,'subUnitId':_0x6d9ee8,'pivotTableId':_0x26de16,'params':{'type':_0x5370e2['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x3a694a,'collapse':_0x3542fb,'item':_0x3ae23f}}}),_0x1313ce=_0x1582da==null?void 0x0:_0x1582da[_0x137369(0x3de)][_0x137369(0x2b9)];if(!_0x1313ce)return!0x1;const {view:_0x310135,pivotTableConfig:_0x4bedb4,isEmpty:_0xeb2e56,changesets:_0x44a299}=_0x1313ce,_0x309b10=new _0x2eef51[(_0x137369(0x28f))]();_0x309b10['formJSON'](_0x310135);const _0x130d42=_0x4bedb4[_0x137369(0x357)],_0x2e15cd={'cellInfo':_0x130d42,'view':_0x309b10,'isEmpty':_0xeb2e56};if(!await _0xd52c30[_0x137369(0x411)](_0x1cc2c4[_0x137369(0x3f9)])['asyncInterceptor'][_0x137369(0x3a5)](_0x460ff6)(!0x0,_0x2e15cd))return!0x1;const _0x4889a2=_0x20a5db(_0xd52c30,_0x309b10,_0x130d42,_0xeb2e56),_0x362432=_0x1bde9c(_0xd52c30,_0x2e15cd),{redos:_0x4a488a,undos:_0x491ef4}=_0x93d0f(_0x2e931e,{'pivotTableId':_0x26de16,'unitId':_0xfd7493,'subUnitId':_0x6d9ee8},_0x44a299);return _0x374f23['sequenceExecute']([..._0x4889a2[_0x137369(0x451)],..._0x362432[_0x137369(0x451)],..._0x4a488a],_0x2e931e),_0x42b38f[_0x137369(0x2c7)]({'unitID':_0xfd7493,'redoMutations':[..._0x4889a2[_0x137369(0x451)],..._0x362432['redos'],..._0x4a488a],'undoMutations':[..._0x4889a2[_0x137369(0x252)],..._0x362432[_0x137369(0x252)],..._0x491ef4]}),!0x0;}},_0x1a16fb={'type':_0x374f23['CommandType']['COMMAND'],'id':'sheet.command.set-pivot-fields-config',async 'handler'(_0x4d1873,_0x762d23){const _0x5f14e2=_0x5d1072;if(!_0x762d23)return!0x1;const _0x193c37=_0x4d1873[_0x5f14e2(0x411)](_0x374f23['ICommandService']),_0x310659=_0x4d1873['get'](_0x374f23[_0x5f14e2(0x284)]),_0x4184e1=_0x4d1873[_0x5f14e2(0x411)](_0x1cc2c4[_0x5f14e2(0x333)]),{pivotTableConfig:_0x41c2be,pivotTableId:_0x62ddc0,unitId:_0x1da069,subUnitId:_0x2fb0be}=_0x762d23,_0x2225ad=(await _0x4184e1['getPivotDisplayConfig']({'unitId':_0x1da069,'subUnitId':_0x2fb0be,'pivotTableId':_0x62ddc0,'params':{'type':_0x5370e2['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x62ddc0,'pivotTableConfig':_0x41c2be}}}))[_0x5f14e2(0x3de)][_0x5f14e2(0x47b)];if(!_0x2225ad)return!0x1;const {changesets:_0x21e450}=_0x2225ad,{redos:_0x1e11d8,undos:_0xe05d06}=_0x93d0f(_0x193c37,{'pivotTableId':_0x62ddc0,'unitId':_0x1da069,'subUnitId':_0x2fb0be},_0x21e450);return _0x374f23['sequenceExecute'](_0x1e11d8,_0x193c37),_0x310659[_0x5f14e2(0x2c7)]({'unitID':_0x1da069,'redoMutations':_0x1e11d8,'undoMutations':_0xe05d06}),!0x0;}},_0x3d55a3={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x1c217a,_0x52928b){const _0x6b610c=_0x5d1072;if(!_0x52928b)return!0x1;const _0x59c0fb=_0x1c217a['get'](_0x374f23[_0x6b610c(0x386)]),{pivotTableId:_0x181c96,tableFieldId:_0x25f974,items:_0x137df7,unitId:_0x1eef84,subUnitId:_0x19d310,isAll:_0x3c7fab}=_0x52928b,_0x3f7404=_0x1c217a['get'](_0x1cc2c4[_0x6b610c(0x333)]),_0x3c7755=_0x1c217a[_0x6b610c(0x411)](_0x374f23['IUndoRedoService']),_0x4f80fc=(await _0x3f7404[_0x6b610c(0x291)]({'unitId':_0x1eef84,'subUnitId':_0x19d310,'pivotTableId':_0x181c96,'params':{'type':_0x5370e2[_0x6b610c(0x1f5)],'setPivotFilter':{'tableFieldId':_0x25f974,'items':_0x137df7,'isAll':_0x3c7fab}}}))['result'][_0x6b610c(0x2f3)];if(!_0x4f80fc)return!0x1;const {changesets:_0x2983fa,pivotTableConfig:_0x1bfa4f,isEmpty:_0x5099cc,view:_0x5eaef3}=_0x4f80fc,_0x5d5da4=_0x1bfa4f[_0x6b610c(0x357)],_0x3ba728=new _0x2eef51[(_0x6b610c(0x28f))]();_0x3ba728[_0x6b610c(0x1a8)](_0x5eaef3);const _0xe58616={'cellInfo':_0x5d5da4,'view':_0x3ba728,'isEmpty':_0x5099cc};if(!await _0x1c217a[_0x6b610c(0x411)](_0x1cc2c4['SheetsPivotTableService'])[_0x6b610c(0x24d)]['fetchThroughAsyncInterceptors'](_0x460ff6)(!0x0,_0xe58616))return!0x1;const _0xbfd948=_0x20a5db(_0x1c217a,_0x3ba728,_0x5d5da4,_0x5099cc),_0x8fa86d=_0x1bde9c(_0x1c217a,_0xe58616),{undos:_0x4ff8a0,redos:_0x197b1a}=_0x93d0f(_0x59c0fb,{'pivotTableId':_0x181c96,'unitId':_0x1eef84,'subUnitId':_0x19d310},_0x2983fa);return _0x374f23[_0x6b610c(0x203)]([..._0xbfd948[_0x6b610c(0x451)],..._0x8fa86d[_0x6b610c(0x451)],..._0x197b1a],_0x59c0fb),_0x3c7755['pushUndoRedo']({'unitID':_0x1eef84,'redoMutations':[..._0xbfd948['redos'],..._0x8fa86d['redos'],..._0x197b1a],'undoMutations':[..._0xbfd948[_0x6b610c(0x252)],..._0x8fa86d['undos'],..._0x4ff8a0]}),!0x0;}},_0x39e618={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x440),async 'handler'(_0xd77891,_0x3c8800){const _0x14dc8b=_0x5d1072;if(!_0x3c8800)return!0x1;const _0x4d2eea=_0xd77891[_0x14dc8b(0x411)](_0x374f23[_0x14dc8b(0x386)]),_0x563d8d=_0xd77891[_0x14dc8b(0x411)](_0x374f23[_0x14dc8b(0x284)]),_0xc51fe6=_0xd77891['get'](_0x1cc2c4['SheetsPivotRPCService']),{info:_0x332b03,tableFieldId:_0x4f6ec1,pivotTableId:_0x12425d,unitId:_0x26e0b3,subUnitId:_0x371ecd}=_0x3c8800,_0x32c85c=(await _0xc51fe6['getPivotDisplayConfig']({'unitId':_0x26e0b3,'subUnitId':_0x371ecd,'pivotTableId':_0x12425d,'params':{'type':_0x5370e2[_0x14dc8b(0x334)],'setPivotSort':{'tableFieldId':_0x4f6ec1,'info':_0x332b03}}}))['result']['setPivotSort'];if(!_0x32c85c)return!0x1;const {changesets:_0x197a27}=_0x32c85c,{redos:_0x2c55be,undos:_0x182e51}=_0x93d0f(_0x4d2eea,{'pivotTableId':_0x12425d,'unitId':_0x26e0b3,'subUnitId':_0x371ecd},_0x197a27);return _0x374f23[_0x14dc8b(0x203)](_0x2c55be,_0x4d2eea),_0x563d8d[_0x14dc8b(0x2c7)]({'unitID':_0x26e0b3,'redoMutations':_0x2c55be,'undoMutations':_0x182e51}),!0x0;}},_0x58248d={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x439),async 'handler'(_0x841599,_0x1aafac){const _0x3e27f7=_0x5d1072;if(!_0x1aafac)return!0x1;const _0x481d44=_0x841599['get'](_0x374f23['ICommandService']),{pivotTableId:_0x3a51dc,fieldId:_0x4cc2ec,valueFilterInfo:_0x539b4e,unitId:_0xefb422,subUnitId:_0x546d1a}=_0x1aafac,_0x487d2c=_0x841599[_0x3e27f7(0x411)](_0x1cc2c4[_0x3e27f7(0x333)]),_0x2b2f73=_0x841599['get'](_0x374f23['IUndoRedoService']),_0x1fe620=(await _0x487d2c['getPivotDisplayConfig']({'unitId':_0xefb422,'subUnitId':_0x546d1a,'pivotTableId':_0x3a51dc,'params':{'type':_0x5370e2[_0x3e27f7(0x47d)],'setValuePivotFilter':{'tableFieldId':_0x4cc2ec,'filterInfo':_0x539b4e}}}))['result']['setValuePivotFilter'];if(!_0x1fe620)return!0x1;const {changesets:_0x60245b,pivotTableConfig:_0x3f1f05,isEmpty:_0x215222,view:_0x559f94}=_0x1fe620,_0x408395=_0x3f1f05[_0x3e27f7(0x357)],_0x41d93c=new _0x2eef51[(_0x3e27f7(0x28f))]();_0x41d93c[_0x3e27f7(0x1a8)](_0x559f94);const _0x44f149={'cellInfo':_0x408395,'view':_0x41d93c,'isEmpty':_0x215222};if(!await _0x841599[_0x3e27f7(0x411)](_0x1cc2c4[_0x3e27f7(0x3f9)])[_0x3e27f7(0x24d)][_0x3e27f7(0x3a5)](_0x460ff6)(!0x0,_0x44f149))return!0x1;const _0x2f3960=_0x20a5db(_0x841599,_0x41d93c,_0x408395,_0x215222),_0x380340=_0x1bde9c(_0x841599,_0x44f149),{undos:_0x1f22c6,redos:_0x4494d4}=_0x93d0f(_0x481d44,{'pivotTableId':_0x3a51dc,'unitId':_0xefb422,'subUnitId':_0x546d1a},_0x60245b);return _0x374f23['sequenceExecute']([..._0x2f3960['redos'],..._0x380340[_0x3e27f7(0x451)],..._0x4494d4],_0x481d44),_0x2b2f73[_0x3e27f7(0x2c7)]({'unitID':_0xefb422,'redoMutations':[..._0x2f3960[_0x3e27f7(0x451)],..._0x380340['redos'],..._0x4494d4],'undoMutations':[..._0x2f3960[_0x3e27f7(0x252)],..._0x380340['undos'],..._0x1f22c6]}),!0x0;}},_0x48a40f={'id':_0x5d1072(0x261),'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x26c)],'handler':(_0x5ca6c2,_0x42bf4b)=>{const _0x51e153=_0x5d1072;if(!_0x42bf4b)return!0x1;if(!!_0x5ca6c2['get'](_0x374f23[_0x51e153(0x224)])['getConfig'](_0x1e657c))return!0x0;const {unitId:_0x58cacb,subUnitId:_0x4039f2,pivotTableId:_0x19175b,tableFieldId:_0x13711b,dateType:_0x269919}=_0x42bf4b,_0x4eb97d=_0x5ca6c2[_0x51e153(0x411)](_0x1cc2c4['SheetsPivotDataSourceModel']),_0x162bd9=_0x4eb97d[_0x51e153(0x202)](_0x19175b);if(!_0x162bd9)return!0x1;const _0xb094f9=_0x162bd9[_0x51e153(0x1ed)](_0x13711b);if(!_0xb094f9)return!0x1;const _0x1100de=_0xb094f9['getOriginFieldId'](),_0x41a715=_0x162bd9['getDataFieldByDataFieldId'](_0x1100de),_0xe19aa7=(_0x41a715==null?void 0x0:_0x41a715['getName']())+'\x20'+_0x379197(_0x5ca6c2,_0x269919);_0x4eb97d[_0x51e153(0x43d)](_0x58cacb,_0x19175b)[_0x51e153(0x3b0)](_0xb094f9['id'],_0xe19aa7);const _0xafcda5=_0x162bd9['getTableFieldById'](_0x13711b);if(!_0xafcda5)return!0x1;_0x162bd9[_0x51e153(0x18a)](_0xafcda5['getId'](),_0xe19aa7),_0xb094f9['setDateType'](_0x269919);const _0x5d9ee9=_0x4eb97d[_0x51e153(0x458)](_0x58cacb,_0x4039f2,_0x19175b);return _0x4eb97d[_0x51e153(0x1fe)]({'unitId':_0x58cacb,'subUnitId':_0x4039f2,'token':_0x19175b,'type':_0x5ae422[_0x51e153(0x332)],'pivotConfig':_0x5d9ee9}),!0x0;}},_0x1206a2={'id':_0x5d1072(0x244),'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'handler':(_0x5a5c5b,_0x1b3f50)=>{const _0x2adf7a=_0x5d1072;if(!_0x1b3f50)return!0x1;const _0x54c8a2=_0x5a5c5b['get'](_0x374f23['IUndoRedoService']),{unitId:_0x20dfaa,subUnitId:_0x143e23,pivotTableId:_0x28db46,tableFieldId:_0x2d42b8}=_0x1b3f50,_0x37f21c=[],_0x17bd72=[],_0x471a4f=_0x5a5c5b[_0x2adf7a(0x411)](_0x1cc2c4['SheetsPivotTableConfigModel']),_0xbceb35=_0x471a4f['getCollection'](_0x20dfaa,_0x28db46),_0x5128e8=_0x471a4f[_0x2adf7a(0x458)](_0x20dfaa,_0x143e23,_0x28db46);if(!(_0x5128e8!=null&&_0x5128e8[_0x2adf7a(0x3b6)]['dimension']))return!0x1;const _0x5967f6=Object['values'](_0x5128e8[_0x2adf7a(0x3b6)][_0x2adf7a(0x455)])[_0x2adf7a(0x307)](_0x1409e4=>_0x1409e4['id']===_0x2d42b8);if(!_0x5967f6)return!0x1;const _0x1cc0b1=_0x5967f6['dataFieldId'];if(!(_0xbceb35!=null&&_0xbceb35[_0x2adf7a(0x45c)]))return!0x1;const _0xf07e50=Object[_0x2adf7a(0x39c)](_0xbceb35==null?void 0x0:_0xbceb35['fields'])[_0x2adf7a(0x307)](_0x4f3acc=>_0x4f3acc['id']===_0x1cc0b1);if(!_0xf07e50)return!0x1;_0x2eef51[_0x2adf7a(0x210)](_0xf07e50)&&_0x37f21c['push']({'id':_0x48a40f['id'],'params':{..._0x1b3f50,'dateType':_0xf07e50[_0x2adf7a(0x310)]}}),_0x17bd72['push']({'id':_0x48a40f['id'],'params':{..._0x1b3f50}});const _0x257f6a=_0x5a5c5b['get'](_0x374f23[_0x2adf7a(0x386)]);return _0x374f23[_0x2adf7a(0x203)](_0x17bd72,_0x257f6a)&&_0x54c8a2[_0x2adf7a(0x2c7)]({'unitID':_0x20dfaa,'undoMutations':_0x37f21c,'redoMutations':_0x17bd72}),!0x0;}},_0x1ebb0c={'type':_0x374f23[_0x5d1072(0x31e)][_0x5d1072(0x2fe)],'id':_0x5d1072(0x3dc),async 'handler'(_0x393570,_0x2338ab){const _0x17e56b=_0x5d1072;if(!_0x2338ab)return!0x1;const _0x56bad1=_0x393570[_0x17e56b(0x411)](_0x374f23[_0x17e56b(0x386)]),_0x4b0ad1=_0x393570[_0x17e56b(0x411)](_0x374f23[_0x17e56b(0x284)]),_0x4299e5=_0x393570['get'](_0x1cc2c4[_0x17e56b(0x333)]),{displayName:_0x5859d5,subtotalType:_0x4dd29c,format:_0x17fc9f,tableFieldId:_0x1788f4,pivotTableId:_0xd703fc,unitId:_0x17be08,subUnitId:_0x7ad3e5}=_0x2338ab,_0x8bcc78=(await _0x4299e5['getPivotDisplayConfig']({'unitId':_0x17be08,'subUnitId':_0x7ad3e5,'pivotTableId':_0xd703fc,'params':{'type':_0x5370e2['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x1788f4,'displayName':_0x5859d5,'subtotalType':_0x4dd29c,'format':_0x17fc9f}}}))[_0x17e56b(0x3de)][_0x17e56b(0x289)];if(!_0x8bcc78)return!0x1;const {changesets:_0x4793cd,view:_0x39079f,pivotTableConfig:_0x2a3f8b,isEmpty:_0x433ef5}=_0x8bcc78,_0x4380a0=_0x2a3f8b[_0x17e56b(0x357)],_0x10eb83=new _0x2eef51[(_0x17e56b(0x28f))]();_0x10eb83[_0x17e56b(0x1a8)](_0x39079f);const _0x49a095={'cellInfo':_0x4380a0,'view':_0x10eb83,'isEmpty':_0x433ef5};if(!await _0x393570['get'](_0x1cc2c4[_0x17e56b(0x3f9)])[_0x17e56b(0x24d)][_0x17e56b(0x3a5)](_0x460ff6)(!0x0,_0x49a095))return!0x1;const _0x54b87e=_0x20a5db(_0x393570,_0x10eb83,_0x4380a0,_0x433ef5),_0x2b16c8=_0x1bde9c(_0x393570,_0x49a095),{undos:_0x58928a,redos:_0x5247bb}=_0x93d0f(_0x56bad1,{'pivotTableId':_0xd703fc,'unitId':_0x17be08,'subUnitId':_0x7ad3e5},_0x4793cd);return _0x374f23[_0x17e56b(0x203)]([..._0x54b87e['redos'],..._0x2b16c8[_0x17e56b(0x451)],..._0x5247bb],_0x56bad1),_0x4b0ad1[_0x17e56b(0x2c7)]({'unitID':_0x17be08,'redoMutations':[..._0x54b87e[_0x17e56b(0x451)],..._0x2b16c8[_0x17e56b(0x451)],..._0x5247bb],'undoMutations':[..._0x54b87e['undos'],..._0x2b16c8[_0x17e56b(0x252)],..._0x58928a]}),!0x0;}},_0x1708ad={'type':_0x374f23['CommandType'][_0x5d1072(0x26c)],'id':_0x5d1072(0x1eb),'handler'(_0x46c793,_0x34f9c6){const _0x5e4164=_0x5d1072;if(!_0x34f9c6)return!0x1;if(!!_0x46c793[_0x5e4164(0x411)](_0x374f23[_0x5e4164(0x224)])[_0x5e4164(0x19c)](_0x1e657c))return!0x0;const _0x47eb0c=_0x46c793[_0x5e4164(0x411)](_0x1cc2c4[_0x5e4164(0x38e)]),{pivotTableId:_0x24b385,deleteIds:_0x17ea23,collectionJSON:_0x4cdcb1,dataRangeInfo:_0x13c28c,unitId:_0x37d39e,subUnitId:_0x39358c}=_0x34f9c6,_0xf15322=_0x47eb0c[_0x5e4164(0x202)](_0x24b385),_0x2e1082=_0x47eb0c[_0x5e4164(0x458)](_0x37d39e,_0x39358c,_0x24b385);if(!_0xf15322||!_0x2e1082)return!0x1;const {collection:_0x410ea2,updateDataFieldList:_0x2bbd1a}=_0x47eb0c[_0x5e4164(0x2b4)](_0x24b385,_0x4cdcb1,_0x13c28c,_0x2e1082[_0x5e4164(0x357)]);_0x47eb0c[_0x5e4164(0x33a)](_0x410ea2,_0x2bbd1a,_0x13c28c),_0xf15322['updateDataFieldsCollection'](_0x410ea2);for(const _0x57a158 of _0x17ea23)_0x47eb0c[_0x5e4164(0x435)](_0x13c28c[_0x5e4164(0x29a)],_0x57a158);const _0x3c1fa2=_0x47eb0c[_0x5e4164(0x458)](_0x37d39e,_0x39358c,_0x24b385);return _0x3c1fa2[_0x5e4164(0x1d7)]=JSON[_0x5e4164(0x2ab)](JSON[_0x5e4164(0x22c)](_0x13c28c)),_0x47eb0c[_0x5e4164(0x1fe)]({'unitId':_0x37d39e,'subUnitId':_0x39358c,'token':_0x24b385,'type':_0x5ae422['Set']}),!0x0;}},_0x5784b7={'type':_0x374f23['CommandType'][_0x5d1072(0x2fe)],'id':_0x5d1072(0x422),async 'handler'(_0x27a18a,_0xeaa27d){const _0x768e83=_0x5d1072,_0x49befa=_0x27a18a['get'](_0x374f23[_0x768e83(0x386)]),_0xf4725a=_0x27a18a[_0x768e83(0x411)](_0x1cc2c4['SheetsPivotRPCService']),_0x967485=_0x27a18a[_0x768e83(0x411)](_0x374f23[_0x768e83(0x284)]);if(!_0xeaa27d)return!0x1;const {token:_0x15f6e7,dataRangeInfo:_0x1ac748,unitId:_0x1307b6,subUnitId:_0x3d7570}=_0xeaa27d,_0x40f3f2=[],_0x23b005=[],_0x5530f5=(await _0xf4725a['getPivotDisplayConfig']({'unitId':_0x1307b6,'subUnitId':_0x3d7570,'pivotTableId':_0x15f6e7,'params':{'type':_0x5370e2[_0x768e83(0x18d)],'updatePivotSource':{'dataRangeInfo':_0x1ac748,'unitId':_0x1307b6,'subUnitId':_0x3d7570}}}))[_0x768e83(0x3de)]['updatePivotSource'];if(!_0x5530f5)return!0x1;const {changesets:_0x49b6be,deleteIds:_0x21cabe,collectionConfig:_0x459509,oldCollectionConfig:_0x362a64,view:_0x341a09,isEmpty:_0x9133a3,pivotTableConfig:_0x3e8299}=_0x5530f5;_0x23b005['push']({'id':_0x1708ad['id'],'params':{'pivotTableId':_0x15f6e7,'deleteIds':_0x21cabe,'collectionJSON':_0x459509,'dataRangeInfo':_0x1ac748,'unitId':_0x1307b6,'subUnitId':_0x3d7570}}),_0x40f3f2[_0x768e83(0x31c)]({'id':_0x1708ad['id'],'params':{'pivotTableId':_0x15f6e7,'deleteIds':[],'collectionJSON':_0x362a64,'dataRangeInfo':_0x3e8299[_0x768e83(0x1d7)],'unitId':_0x1307b6,'subUnitId':_0x3d7570}});const _0x2fb44f=_0x3e8299[_0x768e83(0x357)],_0x55690b=new _0x2eef51[(_0x768e83(0x28f))]();_0x55690b[_0x768e83(0x1a8)](_0x341a09);const _0xe0b10a={'cellInfo':_0x2fb44f,'view':_0x55690b,'isEmpty':_0x9133a3};if(!await _0x27a18a[_0x768e83(0x411)](_0x1cc2c4[_0x768e83(0x3f9)])[_0x768e83(0x24d)][_0x768e83(0x3a5)](_0x460ff6)(!0x0,_0xe0b10a))return!0x1;const _0x46aed6=_0x20a5db(_0x27a18a,_0x55690b,_0x2fb44f,_0x9133a3),_0x42fda0=_0x1bde9c(_0x27a18a,_0xe0b10a),{undos:_0x54e5c7,redos:_0x5d99ae}=_0x93d0f(_0x49befa,{'pivotTableId':_0x15f6e7,'unitId':_0x1307b6,'subUnitId':_0x3d7570},_0x49b6be);return _0x374f23[_0x768e83(0x203)]([..._0x46aed6['redos'],..._0x42fda0[_0x768e83(0x451)],..._0x23b005,..._0x54e5c7],_0x49befa),_0x967485[_0x768e83(0x2c7)]({'unitID':_0x1307b6,'redoMutations':[..._0x46aed6[_0x768e83(0x451)],..._0x42fda0[_0x768e83(0x451)],..._0x23b005,..._0x54e5c7],'undoMutations':[..._0x46aed6[_0x768e83(0x252)],..._0x42fda0[_0x768e83(0x252)],..._0x40f3f2,..._0x5d99ae]}),!0x0;}},_0x2c9eb9={'type':_0x374f23[_0x5d1072(0x31e)]['COMMAND'],'id':_0x5d1072(0x221),async 'handler'(_0x3bf97f,_0x136472){const _0x19e4a0=_0x5d1072;if(!_0x136472)return!0x1;const _0x3679d8=_0x3bf97f['get'](_0x374f23['ICommandService']),_0x1bc71a=_0x3bf97f['get'](_0x1cc2c4['SheetsPivotRPCService']),_0x575275=_0x3bf97f[_0x19e4a0(0x411)](_0x374f23[_0x19e4a0(0x1d8)]),_0x2aa94d=_0x3bf97f['get'](_0x374f23[_0x19e4a0(0x284)]),{pivotTableId:_0x14343d,position:_0x50a96f,index:_0x307b38}=_0x136472,_0x3b48d4=_0x24a2a7[_0x19e4a0(0x1db)](_0x575275);if(!_0x3b48d4)return!0x1;const {unitId:_0x574968,subUnitId:_0x2eb3dd}=_0x3b48d4,_0x2ddf7b=(await _0x1bc71a[_0x19e4a0(0x291)]({'unitId':_0x574968,'subUnitId':_0x2eb3dd,'pivotTableId':_0x14343d,'params':{'type':_0x5370e2[_0x19e4a0(0x228)],'updateValuePosition':{'position':_0x50a96f,'index':_0x307b38}}}))[_0x19e4a0(0x3de)][_0x19e4a0(0x3ed)];if(!_0x2ddf7b)return!0x1;const {changesets:_0x172750,view:_0x3d8b51,isEmpty:_0x77e12f,pivotTableConfig:_0x1d9347}=_0x2ddf7b,_0x5f8b8f=_0x1d9347[_0x19e4a0(0x357)],_0x153e2d=new _0x2eef51[(_0x19e4a0(0x28f))]();_0x153e2d[_0x19e4a0(0x1a8)](_0x3d8b51);const _0x1b88de=_0x3bf97f[_0x19e4a0(0x411)](_0x1cc2c4[_0x19e4a0(0x3f9)]),_0x4945da={'cellInfo':_0x5f8b8f,'view':_0x153e2d,'isEmpty':_0x77e12f};if(!await _0x1b88de[_0x19e4a0(0x24d)]['fetchThroughAsyncInterceptors'](_0x460ff6)(!0x0,_0x4945da))return!0x1;const _0x5c7b06=_0x20a5db(_0x3bf97f,_0x153e2d,_0x5f8b8f,_0x77e12f),_0x362a37=_0x1bde9c(_0x3bf97f,_0x4945da),{undos:_0x132f09,redos:_0x979285}=_0x93d0f(_0x3679d8,{'pivotTableId':_0x14343d,'unitId':_0x574968,'subUnitId':_0x2eb3dd},_0x172750);return _0x374f23[_0x19e4a0(0x203)]([..._0x5c7b06[_0x19e4a0(0x451)],..._0x362a37[_0x19e4a0(0x451)],..._0x979285],_0x3679d8),_0x2aa94d[_0x19e4a0(0x2c7)]({'unitID':_0x574968,'redoMutations':[..._0x5c7b06[_0x19e4a0(0x451)],..._0x362a37[_0x19e4a0(0x451)],..._0x979285],'undoMutations':[..._0x5c7b06['undos'],..._0x362a37[_0x19e4a0(0x252)],..._0x132f09]}),!0x0;}},_0x2daf6b={'type':_0x374f23['CommandType']['MUTATION'],'id':_0x5d1072(0x393),'handler'(){return!0x0;}};var _0x1a21a3=Object[_0x5d1072(0x2c5)],_0xd1ae08=(_0x4d5463,_0x36903c,_0x3b1fea,_0x5e4c51)=>{const _0x5e82ff=_0x5d1072;for(var _0x19f3a0=_0x5e4c51>0x1?void 0x0:_0x5e4c51?_0x1a21a3(_0x36903c,_0x3b1fea):_0x36903c,_0x17461d=_0x4d5463[_0x5e82ff(0x468)]-0x1,_0x414180;_0x17461d>=0x0;_0x17461d--)(_0x414180=_0x4d5463[_0x17461d])&&(_0x19f3a0=_0x414180(_0x19f3a0)||_0x19f3a0);return _0x19f3a0;},_0x3e00f9=(_0x210562,_0x55cc3b)=>(_0x3da42a,_0x1eaa22)=>_0x55cc3b(_0x3da42a,_0x1eaa22,_0x210562);const _0x3b8943=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0xc94a9b=(_0x1881de,_0x23ea6d,_0x134683)=>{const _0x1fa56c=_0x5d1072,_0x3a45fc=_0x1881de[_0x1fa56c(0x29d)];_0x1881de[_0x1fa56c(0x296)](_0x2480f1=>{const _0x38939f=_0x1fa56c,_0x8c6209=_0x2480f1['getId'](),_0x555204=_0x2480f1[_0x38939f(0x2ea)](),_0x398216=_0x2480f1[_0x38939f(0x269)](),_0xc429ea=_0x2480f1['getDisplayName']();_0x23ea6d[_0x555204]&&_0x23ea6d[_0x555204]===_0xc429ea&&_0x398216===_0xc429ea&&(_0x1881de[_0x38939f(0x18a)](_0x8c6209,_0x3a45fc[_0x38939f(0x263)](_0x555204)),_0x2480f1[_0x38939f(0x207)](_0x3a45fc[_0x38939f(0x263)](_0x555204)));}),_0x1881de[_0x1fa56c(0x29b)](_0x2eef51[_0x1fa56c(0x329)][_0x1fa56c(0x444)],_0x13d9da=>{const _0x2e55ca=_0x1fa56c,_0x2ef255=_0x13d9da['getId'](),_0x482210=_0x13d9da[_0x2e55ca(0x2ea)](),_0x139a1c=_0x13d9da[_0x2e55ca(0x269)](),_0x5c4cea=_0x13d9da[_0x2e55ca(0x263)](),_0x29c168=_0x13d9da[_0x2e55ca(0x3c2)](),_0x37545e=_0x134683(_0x139a1c,_0x29c168);_0x23ea6d[_0x482210]&&_0x23ea6d[_0x482210]===_0x139a1c&&_0x37545e===_0x5c4cea&&(_0x1881de[_0x2e55ca(0x18a)](_0x2ef255,_0x134683(_0x3a45fc[_0x2e55ca(0x263)](_0x482210),_0x29c168)),_0x13d9da['setSourceName'](_0x3a45fc[_0x2e55ca(0x263)](_0x482210)));});},_0x3455a3=(_0x1dd409,_0x127a4b,_0x1073a2)=>{const _0xd5b210=_0x5d1072;var _0x455262,_0x44cb98;const {arrayFormulaCellData:_0x338329,unitData:_0x3d69ee}=_0x127a4b,{unitId:_0x1750d1,subUnitId:_0x4158ab}=_0x1073a2,_0x50b059=_0x1073a2[_0xd5b210(0x3ee)],{startColumn:_0x168873,endColumn:_0x3fad3d}=_0x50b059,_0x47c372=(_0x455262=_0x338329==null?void 0x0:_0x338329[_0x1750d1])==null?void 0x0:_0x455262[_0x4158ab],_0x10f0bf=(_0x44cb98=_0x3d69ee==null?void 0x0:_0x3d69ee[_0x1750d1])==null?void 0x0:_0x44cb98[_0x4158ab],_0x686009=new Set(),_0x463c0c=_0x3fad3d-_0x168873+0x1,{dirtyRanges:_0x5a06c8}=_0x1dd409;if(_0x5a06c8)for(const {range:_0x16c506,sheetId:_0x5984de,unitId:_0x2ff79d}of _0x5a06c8){if(_0x5984de!==_0x4158ab||_0x1750d1!==_0x2ff79d)continue;const _0x65c6f5=_0x374f23['Rectangle'][_0xd5b210(0x19d)](_0x16c506,_0x50b059);if(_0x65c6f5){const {startColumn:_0x28a8bb,endColumn:_0x2ebf63}=_0x65c6f5;for(let _0x49dcf7=_0x28a8bb;_0x49dcf7<=_0x2ebf63;_0x49dcf7++)_0x686009[_0xd5b210(0x346)](_0x49dcf7);}}if(_0x686009[_0xd5b210(0x249)]===_0x463c0c||_0x686009[_0xd5b210(0x249)]===_0x463c0c)return Array[_0xd5b210(0x2d9)](_0x686009);if(_0x10f0bf){const _0x55f88f=_0x10f0bf[_0xd5b210(0x469)](),_0x539fe7=Object[_0xd5b210(0x3d8)](_0x55f88f);for(const _0x3a8cc7 of _0x539fe7){const _0x1a487e=Number(_0x3a8cc7),_0x5a214c=_0x55f88f[_0x1a487e];if(_0x686009[_0xd5b210(0x249)]===_0x463c0c)break;for(const _0x3015d0 in _0x5a214c){const _0x32bcd6=Number(_0x3015d0);_0x32bcd6<_0x168873||_0x32bcd6>_0x3fad3d||_0x686009[_0xd5b210(0x346)](_0x32bcd6);}}}if(_0x47c372){const _0x4f4b8b=_0x47c372[_0xd5b210(0x469)](),_0x2e82b2=Object[_0xd5b210(0x3d8)](_0x4f4b8b);for(const _0x3a36fd of _0x2e82b2){const _0xf3af96=Number(_0x3a36fd),_0x4f66b1=_0x4f4b8b[_0xf3af96];if(_0x686009[_0xd5b210(0x249)]===_0x463c0c)break;for(const _0x13b4ef in _0x4f66b1){const _0x1ae9aa=Number(_0x13b4ef);_0x1ae9aa<_0x168873||_0x1ae9aa>_0x3fad3d||_0x686009['add'](_0x1ae9aa);}}}return Array[_0xd5b210(0x2d9)](_0x686009);},_0xc5da59=_0x130736=>{const _0x4e0335=_0x5d1072,_0x3fdf62=new Set(),_0x4a03b0=[];for(const _0x4d2f6e of _0x130736){const _0x567699=_0x4d2f6e[_0x4e0335(0x378)]+','+_0x4d2f6e[_0x4e0335(0x3a2)]+','+_0x4d2f6e[_0x4e0335(0x3b9)]+','+_0x4d2f6e[_0x4e0335(0x217)];_0x3fdf62[_0x4e0335(0x1b5)](_0x567699)||(_0x3fdf62[_0x4e0335(0x346)](_0x567699),_0x4a03b0[_0x4e0335(0x27b)](_0x4d2f6e));}return _0x4a03b0;};let _0x5d6160=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x2c673e,_0x53daf1,_0x501c26,_0x14375a,_0x56cbfb){const _0xfdb553=_0x5d1072;super(),_0x1e0b19(this,_0xfdb553(0x3d0),new _0x1cd777['BehaviorSubject'](!0x0)),_0x1e0b19(this,_0xfdb553(0x3b8),_0x587074=>{const _0x3a096f=_0xfdb553;this[_0x3a096f(0x3d0)][_0x3a096f(0x3f8)](!0x1);}),_0x1e0b19(this,_0xfdb553(0x25a),_0x26dfdc=>{const _0x12775f=_0xfdb553;this[_0x12775f(0x3d0)]['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x2c673e,this[_0xfdb553(0x479)]=_0x53daf1,this[_0xfdb553(0x454)]=_0x501c26,this['_globalComputingSrv']=_0x14375a,this[_0xfdb553(0x42a)]=_0x56cbfb,this[_0xfdb553(0x3b2)](),this['_initPivotDataGetListener']());}[_0x5d1072(0x3b2)](){const _0x15da66=_0x5d1072;this[_0x15da66(0x1b6)](),this[_0x15da66(0x314)](),this['_initPivotTextInfo'](),this[_0x15da66(0x3e0)]();}[_0x5d1072(0x47c)](){const _0x4ae171=_0x5d1072;this['_globalComputingSrv'][_0x4ae171(0x36e)](this['_globalSubject']),_0x2eef51[_0x4ae171(0x1dc)][_0x4ae171(0x330)](_0x2eef51[_0x4ae171(0x287)]['onQueryStart'],this[_0x4ae171(0x3b8)]),_0x2eef51['PivotTable'][_0x4ae171(0x330)](_0x2eef51[_0x4ae171(0x287)][_0x4ae171(0x27a)],this[_0x4ae171(0x25a)]);}['_initPivotDataGetListener'](){const _0x10f7e3=_0x5d1072;this[_0x10f7e3(0x372)](this[_0x10f7e3(0x454)][_0x10f7e3(0x44f)](_0x10b497=>{const _0x35b365=_0x10f7e3;_0x10b497['id']===_0x24a2a7[_0x35b365(0x2c3)]['id']&&this[_0x35b365(0x1a4)][_0x35b365(0x2f8)](_0x10b497['params']);})),this[_0x10f7e3(0x372)](this[_0x10f7e3(0x454)][_0x10f7e3(0x44f)](_0x410d97=>{const _0x3f3abf=_0x10f7e3;if(_0x410d97['id']!==_0x23d358['id'])return;const _0x471fac=_0x410d97[_0x3f3abf(0x3aa)],{unitId:_0x11bd3a,subUnitId:_0x1c7c69,pivotTableId:_0x42b7b1}=_0x471fac,_0x128aeb=_0x471fac['params'][_0x3f3abf(0x1fd)],_0xcdaef4={};switch(_0x128aeb){case _0x5370e2[_0x3f3abf(0x2f1)]:{const _0xfff066=_0x471fac[_0x3f3abf(0x3aa)]['filter'];if(!_0xfff066)return;const {row:_0x156004,col:_0x3e425e,cellData:_0x4516d9,pivotItemRenderInfoCache:_0x2a5bb7,tableFieldId:_0x22ad56}=_0xfff066,_0x52cab2=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x471fac['pivotTableId']);if(!_0x52cab2||!_0x2a5bb7)return;if(_0x22ad56){const _0xa74f7d=_0x52cab2['getDataFieldByTableId'](_0x22ad56);if(!_0xa74f7d)return;_0xcdaef4[_0x3f3abf(0x341)]={..._0x52cab2[_0x3f3abf(0x3be)](_0xa74f7d),'tableFieldId':_0x22ad56,'pivotTableId':_0x471fac[_0x3f3abf(0x280)],'filterInfo':_0x52cab2[_0x3f3abf(0x24f)](_0x22ad56),'sortInfo':_0x52cab2[_0x3f3abf(0x219)](_0x22ad56),'format':_0x52cab2['getFieldFormat'](_0x22ad56)};}else{const _0x54a989=_0x21a2ff(_0x156004,_0x3e425e,_0x4516d9,_0x52cab2,_0x2a5bb7),_0x391fb4=_0x54a989==null?void 0x0:_0x54a989[_0x3f3abf(0x237)];if(!_0x391fb4)return;const _0x1aa3be=_0x52cab2[_0x3f3abf(0x1ed)](_0x391fb4);if(!_0x1aa3be)return;_0xcdaef4[_0x3f3abf(0x341)]={..._0x52cab2[_0x3f3abf(0x3be)](_0x1aa3be),'tableFieldId':_0x391fb4,'pivotTableId':_0x471fac['pivotTableId'],'filterInfo':_0x52cab2[_0x3f3abf(0x24f)](_0x391fb4),'sortInfo':_0x52cab2[_0x3f3abf(0x219)](_0x391fb4),'format':_0x52cab2[_0x3f3abf(0x1f6)](_0x391fb4)};}}break;case _0x5370e2[_0x3f3abf(0x232)]:{const _0xd73abb=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x313)];if(!_0xd73abb)return;const {pivotTableId:_0x50fcd8}=_0xd73abb,_0x50286d=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x50fcd8);if(!_0x50286d)return;const _0x25851f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x50fcd8),_0x1ad6ed=_0xb9c753(_0x50286d,_0x50fcd8,_0x25851f);_0xcdaef4[_0x3f3abf(0x313)]=_0x1ad6ed;}break;case _0x5370e2[_0x3f3abf(0x35c)]:{const _0x483592=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x42b7b1),_0x3d6ea1=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x367)](_0x11bd3a),_0x43929f=_0x3d6ea1[_0x3f3abf(0x43d)](_0x42b7b1);let _0x17c262=null;const _0x531376=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1),_0x393590=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3e7)];if(!_0x483592||!_0x531376||!_0x393590)return!0x1;const {dataFieldId:_0x4fb4ce,fieldArea:_0x44f906,index:_0x2d36d9}=_0x393590;_0x483592[_0x3f3abf(0x1c6)]();const _0x3722e0=_0x483592[_0x3f3abf(0x327)](_0x4fb4ce,_0x44f906,_0x2d36d9);if(_0x3722e0&&_0x44f906===_0x2eef51['PivotTableFiledAreaEnum']['Value']){const _0x524636=_0x3722e0['getId'](),_0x196287=_0x483592[_0x3f3abf(0x1ed)](_0x524636);if(_0x196287){const _0x2a434e=_0x196287==null?void 0x0:_0x196287['getFieldDataType']();_0x483592['setSubtotalType'](_0x3722e0[_0x3f3abf(0x470)](),_0x2a434e===_0x2eef51['PivotDataFieldDataTypeEnum'][_0x3f3abf(0x41e)]?_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x25d)]:_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x1a5)]);}const _0x3c85e3=_0x483592[_0x3f3abf(0x428)](),_0x37d341=_0x483592[_0x3f3abf(0x185)](),_0x2ad9b9=_0x483592[_0x3f3abf(0x30c)](_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x444)]);if(_0x3c85e3===-0x1&&_0x2ad9b9>0x1){const _0xce67f5=_0x37d341===_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x3f1)]?_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x403)]:_0x37d341,_0x3aa0b6=_0xce67f5===_0x2eef51['PivotTableValuePositionEnum']['Row']?_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]:_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x403)];_0x483592['updateValuePosition'](_0xce67f5,_0x483592['getFieldCountByArea'](_0x3aa0b6));}}else{if(_0x3722e0&&(_0x44f906===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]||_0x44f906===_0x2eef51[_0x3f3abf(0x329)]['Column'])){const _0x189f82=_0x3722e0['getId'](),_0x18827c=_0x483592[_0x3f3abf(0x1ed)](_0x189f82);if(_0x18827c&&(_0x18827c==null?void 0x0:_0x18827c[_0x3f3abf(0x20b)]())===_0x2eef51[_0x3f3abf(0x3fb)]['date']){const _0x457b7e=_0x18827c[_0x3f3abf(0x3c0)]();if(_0x457b7e&&_0x483592[_0x3f3abf(0x3a3)](_0x3722e0[_0x3f3abf(0x470)](),_0x457b7e),!_0x43929f[_0x3f3abf(0x324)]()[_0x3f3abf(0x3c4)](_0x156ad5=>{const _0x484ddd=_0x3f3abf,_0x59a84d=_0x43929f[_0x484ddd(0x35d)](_0x156ad5);return _0x2eef51[_0x484ddd(0x467)](_0x59a84d)?_0x59a84d[_0x484ddd(0x288)]()[_0x484ddd(0x3b7)]===_0x4fb4ce:!0x1;})){const _0x45bdfb=_0x3d6ea1[_0x3f3abf(0x1a6)](),_0x1cabea=_0x1446a4(_0x18827c[_0x3f3abf(0x190)],_0x18827c[_0x3f3abf(0x2a2)]),_0x102593=_0x18827c[_0x3f3abf(0x353)]()+_0x3f3abf(0x3fa)+_0x379197(this['_injector'],_0x1cabea),_0x17bd46=new _0x2eef51['DateGroupField'](_0x45bdfb,_0x102593,_0x2eef51[_0x3f3abf(0x39d)](0x3),_0x18827c[_0x3f3abf(0x470)](),_0x1cabea);_0x3d6ea1[_0x3f3abf(0x387)](_0x17bd46),_0x43929f[_0x3f3abf(0x34b)](_0x45bdfb,_0x102593),_0x483592['addFieldWithSourceId'](_0x45bdfb,_0x44f906,(_0x2d36d9!=null?_0x2d36d9:0x0)+0x1),_0x17c262=_0x17bd46;}}}}const _0xe14189=_0x483592[_0x3f3abf(0x475)](),_0x4e5cd5=_0x483592[_0x3f3abf(0x293)]()['toJSON']();let _0x344beb;if(_0x17c262){_0x344beb=_0x17c262[_0x3f3abf(0x3ff)]();const _0xba3a38=_0x17c262['getId']();_0x43929f[_0x3f3abf(0x248)](_0xba3a38);let _0x4d7fb9=!0x0;for(const _0x3b2f2d in _0x3d6ea1['collections'])if(_0x3d6ea1[_0x3f3abf(0x459)][_0x3b2f2d][_0x3f3abf(0x324)]()[_0x3f3abf(0x42d)](_0xba3a38)){_0x4d7fb9=!0x1;break;}_0x4d7fb9&&_0x3d6ea1['deleteDataField'](_0xba3a38);}const _0x2cb61b=_0x483592[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x3e7)]={'view':_0x4e5cd5,'changesets':_0x2cb61b,'isEmpty':_0xe14189,'pivotTableConfig':_0x531376,'shouldBeAddedGroupJSON':_0x344beb};}break;case _0x5370e2['AddPivotTable']:{const _0x50f9=_0x471fac[_0x3f3abf(0x3aa)]['addPivotTable'];if(!_0x50f9)return;const _0x8ff475=_0x50f9[_0x3f3abf(0x1d7)],_0x5a894a=_0x50f9[_0x3f3abf(0x280)],{collection:_0x1f60db}=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x27c)]({'unitId':_0x8ff475['unitId'],'sheetName':_0x8ff475[_0x3f3abf(0x376)],'subUnitId':_0x8ff475[_0x3f3abf(0x294)],'range':_0x8ff475[_0x3f3abf(0x3ee)]}),_0x30fee2=new _0x2eef51[(_0x3f3abf(0x1dc))](_0x1f60db,void 0x0,_0x5a894a),_0xb58137=_0x30fee2[_0x3f3abf(0x293)](),_0x2cdd79=_0x30fee2[_0x3f3abf(0x3ff)](),_0x18517a=_0x1f60db[_0x3f3abf(0x3ff)]();_0xcdaef4[_0x3f3abf(0x42c)]={'view':_0xb58137,'fieldsConfig':_0x2cdd79,'collectionConfig':_0x18517a,'isEmpty':_0x30fee2[_0x3f3abf(0x475)]()};}break;case _0x5370e2[_0x3f3abf(0x3a0)]:{const _0x20bc3f=_0x471fac['params'][_0x3f3abf(0x3ab)];if(!_0x20bc3f)return;const {fieldId:_0x19a40c,area:_0x4f56c0,index:_0x5583fa}=_0x20bc3f,_0x419d71=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x419d71)return;const _0x3fef3f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x3fef3f)return;_0x3fef3f[_0x3f3abf(0x1c6)]();const {area:_0x77423b,index:_0x4867bc}=_0x3fef3f[_0x3f3abf(0x23c)](_0x19a40c);if(_0x3fef3f['updateFieldPosition'](_0x19a40c,_0x4f56c0,_0x5583fa),_0x4f56c0===_0x2eef51['PivotTableFiledAreaEnum']['Value']&&_0x3fef3f[_0x3f3abf(0x3c5)](_0x19a40c)[_0x3f3abf(0x3c2)]()===void 0x0){const _0x7f5c8b=_0x3fef3f[_0x3f3abf(0x3c5)](_0x19a40c);if(_0x7f5c8b&&_0x7f5c8b[_0x3f3abf(0x3c2)]()===void 0x0){const _0x375942=_0x3fef3f[_0x3f3abf(0x1ed)](_0x19a40c);if(_0x375942){const _0x323311=_0x375942==null?void 0x0:_0x375942[_0x3f3abf(0x20b)]();_0x3fef3f['setSubtotalType'](_0x19a40c,_0x323311===_0x2eef51[_0x3f3abf(0x3fb)][_0x3f3abf(0x41e)]?_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x25d)]:_0x2eef51['PivotSubtotalTypeEnum'][_0x3f3abf(0x1a5)]);}}}const _0x28bb45=_0x3fef3f[_0x3f3abf(0x185)](),_0x55e2ac=_0x3fef3f[_0x3f3abf(0x428)](),_0x4237ca=_0x3fef3f[_0x3f3abf(0x30c)](_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x444)])>0x1;if(_0x4237ca&&_0x77423b===_0x4f56c0&&(_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)]['Row']&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum']['Row']||_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)]['Column']&&_0x28bb45===_0x2eef51[_0x3f3abf(0x2b1)]['Column'])){let _0x2064c9=_0x55e2ac;_0x4867bc<=_0x55e2ac&&_0x2064c9--,_0x5583fa<=_0x55e2ac&&_0x2064c9++,_0x3fef3f[_0x3f3abf(0x3ed)](_0x28bb45,_0x2064c9);}else _0x4237ca&&(_0x77423b===_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x415)]&&_0x28bb45===_0x2eef51[_0x3f3abf(0x2b1)][_0x3f3abf(0x415)]||_0x77423b===_0x2eef51[_0x3f3abf(0x329)]['Column']&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x403)])&&_0x55e2ac>=_0x4867bc&&_0x3fef3f[_0x3f3abf(0x3ed)](_0x28bb45,_0x55e2ac-0x1),_0x4237ca&&(_0x4f56c0===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x415)]||_0x4f56c0===_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x403)]&&_0x28bb45===_0x2eef51['PivotTableValuePositionEnum'][_0x3f3abf(0x403)])&&_0x55e2ac>=_0x5583fa&&_0x3fef3f['updateValuePosition'](_0x28bb45,_0x55e2ac+0x1);const _0x2d1bdb=_0x3fef3f[_0x3f3abf(0x293)](),_0x1854ad=_0x3fef3f['isEmpty'](),_0x1a3d64=_0x3fef3f['endCollectChangeset']();_0xcdaef4['movePivotField']={'view':_0x2d1bdb[_0x3f3abf(0x3ff)](),'changesets':_0x1a3d64,'isEmpty':_0x1854ad,'pivotTableConfig':_0x419d71};}break;case _0x5370e2[_0x3f3abf(0x32f)]:{const _0x3b97e4=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3ac)];if(!_0x3b97e4)return;const _0x572483=_0x3b97e4[_0x3f3abf(0x1f7)],_0x2f62fd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x2f62fd)return!0x1;const _0x1ff947=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x1ff947)return!0x1;_0x1ff947['startCollectChangeset']();for(const _0x3e3b8c of _0x572483){const {area:_0x4e09f2}=_0x1ff947[_0x3f3abf(0x23c)](_0x3e3b8c);_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x444)]&&_0x1ff947[_0x3f3abf(0x1ec)](_0x3e3b8c),(_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]||_0x4e09f2===_0x2eef51[_0x3f3abf(0x329)]['Column'])&&_0x1ff947['removeValueFilterInfo'](_0x3e3b8c),_0x1ff947['removeField'](_0x3e3b8c);}const _0x45990c=_0x1ff947[_0x3f3abf(0x475)](),_0x331db9=_0x1ff947[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x33e77b=_0x1ff947[_0x3f3abf(0x3b4)]();_0xcdaef4['removePivotField']={'changesets':_0x33e77b,'pivotTableConfig':_0x2f62fd,'isEmpty':_0x45990c,'view':_0x331db9};}break;case _0x5370e2['SetPivotFilter']:{const _0x533543=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x2f3)];if(!_0x533543)return;const {tableFieldId:_0xe4318f,items:_0x5d113c,isAll:_0x18d44c}=_0x533543,_0x881e21=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x411c55=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x881e21||!_0x411c55)return;_0x881e21[_0x3f3abf(0x1c6)](),_0x881e21[_0x3f3abf(0x3e2)](_0xe4318f,{'type':_0x2eef51[_0x3f3abf(0x349)]['ManualFilter'],'list':_0x5d113c,'isAll':_0x18d44c});const _0x403324=_0x881e21[_0x3f3abf(0x475)](),_0x96d4aa=_0x881e21['query']()[_0x3f3abf(0x3ff)](),_0x33e638=_0x881e21['endCollectChangeset']();_0xcdaef4[_0x3f3abf(0x2f3)]={'view':_0x96d4aa,'changesets':_0x33e638,'isEmpty':_0x403324,'pivotTableConfig':_0x411c55};}break;case _0x5370e2[_0x3f3abf(0x47d)]:{const _0x39dfb4=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x426)];if(!_0x39dfb4)return;const {tableFieldId:_0x18265c,filterInfo:_0x31ce87}=_0x39dfb4,_0x3e1997=this[_0x3f3abf(0x1a4)]['getPivotTableInstance'](_0x42b7b1),_0x335340=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x3e1997||!_0x335340)return;_0x3e1997[_0x3f3abf(0x1c6)](),_0x3e1997[_0x3f3abf(0x1e7)](_0x18265c,_0x31ce87);const _0x47b5a9=_0x3e1997[_0x3f3abf(0x475)](),_0x6e0f91=_0x3e1997[_0x3f3abf(0x293)]()['toJSON'](),_0x3f0bd7=_0x3e1997[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x426)]={'view':_0x6e0f91,'changesets':_0x3f0bd7,'isEmpty':_0x47b5a9,'pivotTableConfig':_0x335340};}break;case _0x5370e2[_0x3f3abf(0x334)]:{const _0x38f07f=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x3ec)];if(!_0x38f07f)return;const {tableFieldId:_0x13ab64,info:_0xae3118}=_0x38f07f,_0x5687e0=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x1795cd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x5687e0||!_0x1795cd)return;_0x5687e0[_0x3f3abf(0x1c6)](),_0x5687e0['setSortInfo'](_0x13ab64,_0xae3118);const _0x261cc3=_0x5687e0[_0x3f3abf(0x475)](),_0x358a8c=_0x5687e0['query']()[_0x3f3abf(0x3ff)](),_0x1135a1=_0x5687e0[_0x3f3abf(0x3b4)]();_0xcdaef4['setPivotSort']={'view':_0x358a8c,'changesets':_0x1135a1,'isEmpty':_0x261cc3,'pivotTableConfig':_0x1795cd};}break;case _0x5370e2[_0x3f3abf(0x46b)]:{const _0x2da2e0=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x289)];if(!_0x2da2e0)return;const {tableFieldId:_0x33b0ae,displayName:_0x30b381,subtotalType:_0x30d0bf,format:_0x7f97b5}=_0x2da2e0,_0x7f0d9e=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x468086=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x7f0d9e||!_0x468086)return;_0x7f0d9e[_0x3f3abf(0x1c6)](),_0x30b381!==void 0x0&&_0x7f0d9e[_0x3f3abf(0x18a)](_0x33b0ae,_0x30b381),_0x30d0bf!==void 0x0&&_0x7f0d9e[_0x3f3abf(0x3ad)](_0x33b0ae,_0x30d0bf),_0x7f97b5!==void 0x0&&_0x7f0d9e['setFieldFormat'](_0x33b0ae,_0x7f97b5);const _0x1205e0=_0x7f0d9e[_0x3f3abf(0x475)](),_0x2c0585=_0x7f0d9e['query']()[_0x3f3abf(0x3ff)](),_0x17e7e9=_0x7f0d9e[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x289)]={'changesets':_0x17e7e9,'pivotTableConfig':_0x468086,'isEmpty':_0x1205e0,'view':_0x2c0585};}break;case _0x5370e2[_0x3f3abf(0x18d)]:{const _0xf2332b=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x26e)];if(!_0xf2332b)return;const {dataRangeInfo:_0x7b66c6,unitId:_0xdd2c59,subUnitId:_0x30e77a}=_0xf2332b,_0x208c01=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0xdd2c59,_0x30e77a,_0x42b7b1),_0x21136f=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x202)](_0x42b7b1);if(!this['_sheetsPivotDataSourceModel']['getCollection'](_0xdd2c59,_0x42b7b1)||!_0x21136f||!_0x208c01)return;const _0x377803=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x368)](_0xdd2c59,_0x42b7b1,_0x7b66c6),_0x21cc7c=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x43d)](_0xdd2c59,_0x42b7b1)[_0x3f3abf(0x3ff)](),{collection:_0x542c04}=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x27c)]({'unitId':_0x7b66c6[_0x3f3abf(0x29a)],'sheetName':_0x7b66c6[_0x3f3abf(0x376)],'subUnitId':_0x7b66c6['subUnitId'],'range':_0x7b66c6[_0x3f3abf(0x3ee)]}),_0x495e36=_0x542c04[_0x3f3abf(0x3ff)]();_0x21136f['startCollectChangeset']();const _0xa7d24e=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x367)](_0xdd2c59)['getAutoDisplayNameFunction']()||_0x2eef51[_0x3f3abf(0x41b)];_0x21136f[_0x3f3abf(0x1c4)](_0x2d7ce6=>{const _0x202d50=_0x3f3abf,_0x561aee=_0x2d7ce6['getDataFieldId']();if(!_0x542c04[_0x202d50(0x46c)](_0x561aee)){const _0x4a68aa=_0x542c04[_0x202d50(0x2ed)](_0x2d7ce6[_0x202d50(0x269)]());if(_0x4a68aa){_0x21136f['updateFieldSourceInfo'](_0x2d7ce6['getId'](),_0x4a68aa[_0x202d50(0x353)](),_0x4a68aa[_0x202d50(0x470)]());const {area:_0x4f7d4b}=_0x21136f['getFieldPositionInfoById'](_0x2d7ce6[_0x202d50(0x470)]());let _0x119838=_0x2d7ce6[_0x202d50(0x269)]();const _0x5a4cc3=_0x2d7ce6[_0x202d50(0x263)]();if(_0x4f7d4b===_0x2eef51[_0x202d50(0x329)]['Value']){const _0x3e0c30=_0x2d7ce6[_0x202d50(0x3c2)]();_0x119838=_0xa7d24e(_0x4a68aa[_0x202d50(0x353)](),_0x3e0c30);}_0x5a4cc3!==_0x119838&&_0x21136f['renameField'](_0x2d7ce6[_0x202d50(0x470)](),_0x119838);}else _0x21136f[_0x202d50(0x37e)](_0x2d7ce6['getId']());}});const _0x5d3577=_0x21136f[_0x3f3abf(0x475)](),_0x9f7a60=_0x21136f[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x1d4477=_0x21136f[_0x3f3abf(0x3b4)]();_0xcdaef4['updatePivotSource']={'view':_0x9f7a60,'changesets':_0x1d4477,'isEmpty':_0x5d3577,'pivotTableConfig':_0x208c01,'collectionConfig':_0x495e36,'oldCollectionConfig':_0x21cc7c,'deleteIds':_0x377803};}break;case _0x5370e2[_0x3f3abf(0x228)]:{const _0x3d7aa3=_0x471fac[_0x3f3abf(0x3aa)]['updateValuePosition'];if(!_0x3d7aa3)return;const {position:_0x1fb60f,index:_0xb6be}=_0x3d7aa3,_0x2498fd=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x2498fd)return!0x1;const _0x41c83f=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1);if(!_0x41c83f)return!0x1;_0x41c83f['startCollectChangeset'](),_0x41c83f[_0x3f3abf(0x3ed)](_0x1fb60f,_0xb6be);const _0x4f3bfe=_0x41c83f[_0x3f3abf(0x475)](),_0x2d2e48=_0x41c83f[_0x3f3abf(0x293)]()['toJSON'](),_0x1a6778=_0x41c83f[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x3ed)]={'changesets':_0x1a6778,'pivotTableConfig':_0x2498fd,'isEmpty':_0x4f3bfe,'view':_0x2d2e48};}break;case _0x5370e2[_0x3f3abf(0x2f6)]:{const _0xaf6e88=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x2b9)];if(!_0xaf6e88)return;const {tableFieldId:_0x2f008d,collapse:_0x40122a,item:_0x47d2dd}=_0xaf6e88,_0x5d5bf0=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x202)](_0x42b7b1),_0x5ad48c=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x5d5bf0||!_0x5ad48c)return;_0x5d5bf0[_0x3f3abf(0x1c6)](),_0x5d5bf0[_0x3f3abf(0x472)](_0x2f008d,_0x40122a,_0x47d2dd);const _0x355d1d=_0x5d5bf0['isEmpty'](),_0x4191e3=_0x5d5bf0[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x21e274=_0x5d5bf0[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x2b9)]={'view':_0x4191e3,'isEmpty':_0x355d1d,'pivotTableConfig':_0x5ad48c,'changesets':_0x21e274};}break;case _0x5370e2[_0x3f3abf(0x267)]:{const _0x26d60b=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x47b)];if(!_0x26d60b)return;const {pivotTableConfig:_0x27c728}=_0x26d60b,_0x1b291f=this[_0x3f3abf(0x1a4)]['getPivotTableInstance'](_0x42b7b1),_0x4971d1=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x1b291f||!_0x4971d1)return;_0x1b291f['startCollectChangeset'](),_0x5bb8f1(_0x1b291f,_0x27c728);const _0x199049=_0x1b291f[_0x3f3abf(0x475)](),_0x466dbf=_0x1b291f[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x276004=_0x1b291f[_0x3f3abf(0x3b4)]();_0xcdaef4[_0x3f3abf(0x47b)]={'view':_0x466dbf,'isEmpty':_0x199049,'pivotTableConfig':{..._0x4971d1,'fieldsConfig':_0x1b291f[_0x3f3abf(0x3ff)]()},'changesets':_0x276004};}break;case _0x5370e2[_0x3f3abf(0x305)]:{const _0x3791a3=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x29f)];if(!_0x3791a3)return;const _0x4f4d01=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x42b7b1),_0x236f8b=this[_0x3f3abf(0x1a4)][_0x3f3abf(0x458)](_0x11bd3a,_0x1c7c69,_0x42b7b1);if(!_0x4f4d01||!_0x236f8b)return;_0x4f4d01[_0x3f3abf(0x1c6)](),_0x1f01f2(_0x4f4d01,_0x3791a3[_0x3f3abf(0x1b0)]);const _0x38ca43=_0x4f4d01[_0x3f3abf(0x293)]()[_0x3f3abf(0x3ff)](),_0x5b76da=_0x4f4d01[_0x3f3abf(0x3b4)]();_0xcdaef4['resetPivotTable']={'view':_0x38ca43,'isEmpty':!0x0,'pivotTableConfig':{..._0x236f8b,'fieldsConfig':_0x4f4d01[_0x3f3abf(0x3ff)]()},'changesets':_0x5b76da};}break;case _0x5370e2[_0x3f3abf(0x231)]:{const _0x1ce8c5=_0x471fac[_0x3f3abf(0x3aa)][_0x3f3abf(0x24c)];if(!_0x1ce8c5)return;const _0x6aa0ac=_0x1ce8c5[_0x3f3abf(0x1d7)],_0x136bfa=_0x1ce8c5[_0x3f3abf(0x280)],{collection:_0xa54a4a}=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x27c)]({'unitId':_0x6aa0ac[_0x3f3abf(0x29a)],'sheetName':_0x6aa0ac[_0x3f3abf(0x376)],'subUnitId':_0x6aa0ac[_0x3f3abf(0x294)],'range':_0x6aa0ac[_0x3f3abf(0x3ee)]}),_0x206b51=new _0x2eef51['PivotTable'](_0xa54a4a,void 0x0,_0x136bfa),_0x31207d=_0xa54a4a[_0x3f3abf(0x324)](),{rows:_0x16a07d,columns:_0x302af7,filters:_0x2f3016,values:_0x4a7f2d}=_0x1ce8c5[_0x3f3abf(0x478)];_0x206b51[_0x3f3abf(0x1c6)]();for(const {field:_0xd5d87a,selectedItems:_0x1a51f9}of _0x16a07d||[]){const _0x5837aa=_0x31207d[_0xd5d87a];if(_0x5837aa){const _0x349239=_0x206b51[_0x3f3abf(0x327)](_0x5837aa,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x415)]);_0x1a51f9&&_0x349239&&_0x206b51[_0x3f3abf(0x3e2)](_0x349239[_0x3f3abf(0x470)](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0x1a51f9,'isAll':!0x1});}}for(const {field:_0x357ab8,selectedItems:_0x279d2f}of _0x302af7||[]){const _0x4e65a7=_0x31207d[_0x357ab8];if(_0x4e65a7){const _0x284e12=_0x206b51[_0x3f3abf(0x327)](_0x4e65a7,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x403)]);_0x279d2f&&_0x284e12&&_0x206b51[_0x3f3abf(0x3e2)](_0x284e12['getId'](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0x279d2f,'isAll':!0x1});}}for(const {field:_0x1f574f,selectedItems:_0xec0f06}of _0x2f3016||[]){const _0x69f32f=_0x31207d[_0x1f574f];if(_0x69f32f){const _0x5abf35=_0x206b51[_0x3f3abf(0x327)](_0x69f32f,_0x2eef51[_0x3f3abf(0x329)][_0x3f3abf(0x2f1)]);_0xec0f06&&_0x5abf35&&_0x206b51[_0x3f3abf(0x3e2)](_0x5abf35[_0x3f3abf(0x470)](),{'type':_0x2eef51[_0x3f3abf(0x349)][_0x3f3abf(0x285)],'list':_0xec0f06,'isAll':!0x1});}}for(const {field:_0x1a9563,subTotalType:_0x3b3e78,formatString:_0x1e536f}of _0x4a7f2d||[]){const _0x462c96=_0xa54a4a['getFieldById'](_0x31207d[_0x1a9563]);if(!_0x462c96)continue;const _0x3c49eb=_0x31207d[_0x1a9563];if(_0x3c49eb){const _0x5ec012=_0x206b51['addFieldWithSourceId'](_0x3c49eb,_0x2eef51['PivotTableFiledAreaEnum'][_0x3f3abf(0x444)]);if(_0x5ec012){if(_0x3b3e78!==void 0x0){_0x206b51[_0x3f3abf(0x3ad)](_0x5ec012[_0x3f3abf(0x470)](),_0x3b3e78);const _0xd51d3b=this['_sheetsPivotDataSourceModel'][_0x3f3abf(0x367)](_0x6aa0ac[_0x3f3abf(0x29a)])[_0x3f3abf(0x477)]()||_0x2eef51[_0x3f3abf(0x41b)],_0xc275fc=_0xa54a4a[_0x3f3abf(0x263)](_0x3c49eb),_0x394948=_0xd51d3b(_0xc275fc,_0x3b3e78);_0x206b51[_0x3f3abf(0x18a)](_0x5ec012[_0x3f3abf(0x470)](),_0x394948);}else{if(_0x462c96){const _0x2575e6=_0x462c96==null?void 0x0:_0x462c96[_0x3f3abf(0x20b)]();_0x206b51[_0x3f3abf(0x3ad)](_0x5ec012['getId'](),_0x2575e6===_0x2eef51[_0x3f3abf(0x3fb)][_0x3f3abf(0x41e)]?_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x25d)]:_0x2eef51[_0x3f3abf(0x227)][_0x3f3abf(0x1a5)]);}}_0x1e536f&&_0x206b51[_0x3f3abf(0x3a3)](_0x5ec012['getId'](),_0x1e536f);}}}const _0x1de4d9=_0x206b51['query'](),_0x58b0ca=_0x206b51[_0x3f3abf(0x3ff)](),_0x402a79=_0x206b51[_0x3f3abf(0x475)](),_0x1e366d=_0x206b51[_0x3f3abf(0x3b4)](),_0x175715=_0xa54a4a['toJSON']();_0xcdaef4[_0x3f3abf(0x24c)]={'view':_0x1de4d9,'fieldsConfig':_0x58b0ca,'collectionConfig':_0x175715,'isEmpty':_0x402a79,'changesets':_0x1e366d};}break;case _0x5370e2[_0x3f3abf(0x42f)]:{const _0x1f4772=_0xaa3adf(this[_0x3f3abf(0x42a)],_0x471fac);if(!_0x1f4772)return;const {range:_0x40c72e,sourceSubUnitId:_0x4b65bd,sourceUnitId:_0x2ceb78,formatMap:_0x3cc7cc,indexes:_0x345d14}=_0x1f4772;_0xcdaef4[_0x3f3abf(0x2d8)]={'range':_0x40c72e,'sourceSubUnitId':_0x4b65bd,'sourceUnitId':_0x2ceb78,'formatMap':_0x3cc7cc,'indexes':_0x345d14};}break;}this[_0x3f3abf(0x454)][_0x3f3abf(0x17c)](_0x38eba3['id'],{'version':_0x471fac[_0x3f3abf(0x383)],'result':_0xcdaef4},{'onlyLocal':!0x0});}));}[_0x5d1072(0x355)](){const _0x4accc3=_0x5d1072;this[_0x4accc3(0x372)](this['_commandService']['onCommandExecuted'](_0x5d8bd4=>{const _0x49f7b8=_0x4accc3;if(_0x5d8bd4['id']!==_0x4a9d2d['id'])return;const _0x586fef=_0x5d8bd4['params'];return this[_0x49f7b8(0x1a4)][_0x49f7b8(0x340)](_0x586fef[_0x49f7b8(0x2da)]),!0x0;}));}[_0x5d1072(0x1b6)](){const _0x466139=_0x5d1072;this[_0x466139(0x1a4)]['collectionChange$'][_0x466139(0x47a)](_0x3d3bb3=>{const _0x7cd285=_0x466139;switch(_0x3d3bb3[_0x7cd285(0x1fd)]){case _0x5493f6[_0x7cd285(0x346)]:_0x3d3bb3[_0x7cd285(0x311)]&&_0x3d3bb3[_0x7cd285(0x357)]&&this[_0x7cd285(0x2b2)](_0x3d3bb3[_0x7cd285(0x33d)],_0x3d3bb3[_0x7cd285(0x311)],_0x3d3bb3[_0x7cd285(0x357)]);break;case _0x5493f6[_0x7cd285(0x2af)]:{const {unitId:_0x5233f7,subUnitId:_0x2a52fa,token:_0x2c5fa9}=_0x3d3bb3;_0x5233f7&&_0x2a52fa&&_0x2c5fa9&&this['removeSourceRangeChange'](_0x5233f7,_0x2a52fa,_0x2c5fa9);}break;case _0x5493f6[_0x7cd285(0x33f)]:{const {token:_0xeda355,oldSourceRangeInfo:_0x404ac0,dataRangeInfo:_0x235352,targetCellInfo:_0x49cbfb}=_0x3d3bb3,{unitId:_0x309c01,subUnitId:_0x5eec4b}=_0x404ac0||{};_0x309c01&&_0x5eec4b&&_0xeda355&&this[_0x7cd285(0x3f2)](_0x309c01,_0x5eec4b,_0xeda355),_0x235352&&_0x49cbfb&&this[_0x7cd285(0x2b2)](_0xeda355,_0x235352,_0x49cbfb);}break;}});}[_0x5d1072(0x3e0)](){const _0xb6f021=_0x5d1072;this[_0xb6f021(0x1a4)][_0xb6f021(0x34e)][_0xb6f021(0x47a)](_0x48dca7=>{const _0x530428=_0xb6f021;Object['keys'](_0x48dca7)[_0x530428(0x274)](_0x428c22=>{const _0x5a99b2=_0x530428,_0x39ea09=this[_0x5a99b2(0x1a4)][_0x5a99b2(0x1c8)](_0x428c22);if(_0x39ea09){const _0x8ebd36=this[_0x5a99b2(0x1a4)][_0x5a99b2(0x458)](_0x39ea09==null?void 0x0:_0x39ea09[_0x5a99b2(0x29a)],_0x39ea09==null?void 0x0:_0x39ea09['subUnitId'],_0x428c22);_0x8ebd36&&(this[_0x5a99b2(0x2b2)](_0x428c22,_0x8ebd36['sourceRangeInfo'],_0x8ebd36[_0x5a99b2(0x357)]),this[_0x5a99b2(0x38f)]([{'unitId':_0x39ea09[_0x5a99b2(0x29a)],'subUnitId':_0x39ea09[_0x5a99b2(0x294)],'token':_0x428c22}]));}});});}[_0x5d1072(0x314)](){const _0x96a950=_0x5d1072;this[_0x96a950(0x1a4)][_0x96a950(0x279)]['subscribe'](_0x4a81aa=>{const {unitId:_0x5b3314,subUnitId:_0x40408b,pivotTableId:_0x5c5380}=_0x4a81aa;_0x5b3314&&_0x40408b&&_0x5c5380&&this['triggerDirtyFeature']([{'unitId':_0x5b3314,'subUnitId':_0x40408b,'token':_0x5c5380}]);});}[_0x5d1072(0x38f)](_0x3fd9ab){const _0x510639=_0x5d1072,_0x23db0a={};_0x3fd9ab[_0x510639(0x274)](_0x4d92a1=>{var _0x4ec8be,_0xeeb316;const {unitId:_0x5025eb,subUnitId:_0x34b39a,token:_0x98f8fe}=_0x4d92a1;_0x23db0a[_0x5025eb]=(_0x4ec8be=_0x23db0a[_0x5025eb])!=null?_0x4ec8be:{},_0x23db0a[_0x5025eb][_0x34b39a]=(_0xeeb316=_0x23db0a[_0x5025eb][_0x34b39a])!=null?_0xeeb316:{},_0x23db0a[_0x5025eb][_0x34b39a][_0x98f8fe]=!0x0;}),this[_0x510639(0x454)][_0x510639(0x17c)](_0x2daf6b['id'],_0x23db0a);}[_0x5d1072(0x3f2)](_0x550cd3,_0x163e09,_0x4e899e){const _0x393afa=_0x5d1072;this[_0x393afa(0x479)][_0x393afa(0x26f)](_0x550cd3,_0x163e09,[_0x4e899e]);}[_0x5d1072(0x2b2)](_0xe90557,_0x74ebb,_0x1de8c9){const _0x25c154=_0x5d1072,{unitId:_0x38468a,subUnitId:_0x59027f}=_0x74ebb;this[_0x25c154(0x479)][_0x25c154(0x1b5)](_0x1de8c9['unitId'],_0x1de8c9['subUnitId'],_0xe90557)&&this[_0x25c154(0x3f2)](_0x38468a,_0x59027f,_0xe90557);const _0x1f4e80={'sheetId':_0x59027f,..._0x74ebb};this['_featureCalculationManagerService'][_0x25c154(0x3f0)](_0x1de8c9[_0x25c154(0x29a)],_0x1de8c9[_0x25c154(0x294)],_0xe90557,{'unitId':_0x1de8c9['unitId'],'subUnitId':_0x1de8c9['subUnitId'],'dependencyRanges':[_0x1f4e80],'getDirtyData':(_0x3e42b4,_0x9de1e4)=>{const _0x4ad218=_0x25c154,_0x479ce7=this[_0x4ad218(0x1a4)],_0x2368bc=_0x479ce7[_0x4ad218(0x1c8)](_0xe90557);if(!_0x2368bc)return _0x3b8943();const {unitId:_0x42c6ff,subUnitId:_0x5a65df}=_0x2368bc,_0x176c77=_0x3455a3(_0x3e42b4,_0x9de1e4,_0x74ebb);if(_0x176c77[_0x4ad218(0x468)]>0x0){const _0x364e7b=_0x479ce7[_0x4ad218(0x43d)](_0x38468a,_0xe90557),_0x51b761=_0x364e7b[_0x4ad218(0x324)](),_0x57ad3d=this['getMatrixFromRunTimeData'](_0x74ebb[_0x4ad218(0x29a)],_0x74ebb[_0x4ad218(0x294)],_0x9de1e4),_0x31ca94={},_0x13b9b0=this[_0x4ad218(0x1a4)]['getDataFieldManager'](_0x42c6ff)[_0x4ad218(0x477)]()||_0x2eef51[_0x4ad218(0x41b)],_0x20bbb0=[];for(const _0x32f711 of _0x176c77){const _0x3c407a=_0x32f711-(_0x74ebb[_0x4ad218(0x3ee)][_0x4ad218(0x3b9)]||0x0),_0x232986=_0x51b761[_0x3c407a];_0x20bbb0[_0x4ad218(0x27b)](_0x232986),_0x31ca94[_0x232986]=_0x364e7b[_0x4ad218(0x35d)](_0x232986)[_0x4ad218(0x353)](),_0x479ce7[_0x4ad218(0x367)](_0x38468a)['refreshDataField'](_0x232986,_0x74ebb,_0x3c407a,_0x57ad3d);}_0x364e7b['getGroupFieldsInfoByIds'](_0x20bbb0)[_0x4ad218(0x274)](_0xef4b53=>{const _0x5d934e=_0x4ad218,[_0x1f9895,_0x550c99]=_0xef4b53,_0x23685c=_0x364e7b[_0x5d934e(0x35d)](_0x1f9895),_0x2968f1=_0x364e7b['getFieldById'](_0x550c99);_0x23685c&&_0x2968f1&&_0x23685c[_0x5d934e(0x302)](_0x2968f1);}),_0x364e7b[_0x4ad218(0x18e)]();const _0x1c7030=_0x479ce7['getPivotTableInstance'](_0xe90557);if(_0x1c7030){_0xc94a9b(_0x1c7030,_0x31ca94,_0x13b9b0),_0x1c7030[_0x4ad218(0x211)](!0x0);const _0x2eb490=_0x1c7030[_0x4ad218(0x293)](),_0x5cf861=_0x479ce7[_0x4ad218(0x458)](_0x42c6ff,_0x5a65df,_0xe90557),_0x390c7a=_0x479ce7[_0x4ad218(0x367)](_0x38468a)[_0x4ad218(0x3ff)]();_0x479ce7[_0x4ad218(0x427)](_0x42c6ff,_0x5a65df,_0x5ae422[_0x4ad218(0x332)],_0xe90557,_0x2eb490,_0x5cf861,_0x390c7a,!0x0);}}return this[_0x4ad218(0x433)](_0x42c6ff,_0x5a65df,_0xe90557);}});}[_0x5d1072(0x19b)](_0x17ca2f,_0x33735d,_0xb505ef){var _0x17a5fe,_0x30b251;const {arrayFormulaCellData:_0x5000f7,unitData:_0x4f02f9}=_0xb505ef,_0x2317e9=(_0x17a5fe=_0x5000f7==null?void 0x0:_0x5000f7[_0x17ca2f])==null?void 0x0:_0x17a5fe[_0x33735d],_0x4e6116=(_0x30b251=_0x4f02f9==null?void 0x0:_0x4f02f9[_0x17ca2f])==null?void 0x0:_0x30b251[_0x33735d];return{'arrayFormulaCellDataMatrix':_0x2317e9,'unitDataMatrix':_0x4e6116};}['getDirtyInfo'](_0x273654,_0x3c710a,_0x98a30e){const _0x10a451=_0x5d1072,_0x6ba43c=this['_sheetsPivotDataSourceModel']['getViewData'](_0x273654,_0x3c710a,_0x98a30e),_0x5256e8=[],_0x44ee7c=new _0x374f23[(_0x10a451(0x33b))]();if(_0x6ba43c){const {rangeCache:_0x40b320,matrix:_0x5e3255,oldRangeCache:_0x3e863c,oldMatrix:_0x35ad08}=_0x6ba43c,_0x2de45b=_0x17e537(_0x3e863c),_0x4977f3=_0x17e537(_0x40b320);_0x5256e8[_0x10a451(0x27b)](..._0x4977f3,..._0x2de45b),_0x35ad08&&_0x3e863c&&_0x2de45b[_0x10a451(0x274)](_0x1f1556=>{const _0x9286ab=_0x10a451;for(let _0x439768=_0x1f1556[_0x9286ab(0x378)];_0x439768<=_0x1f1556[_0x9286ab(0x3a2)];_0x439768++)for(let _0x3c150c=_0x1f1556[_0x9286ab(0x3b9)];_0x3c150c<=_0x1f1556[_0x9286ab(0x217)];_0x3c150c++)_0x44ee7c['realDeleteValue'](_0x439768,_0x3c150c);}),_0x5e3255&&_0x4977f3&&_0x4977f3[_0x10a451(0x274)](_0x3ddfa5=>{const _0x143e6d=_0x10a451;for(let _0x25877e=_0x3ddfa5['startRow'];_0x25877e<=_0x3ddfa5[_0x143e6d(0x3a2)];_0x25877e++)for(let _0x4dd792=_0x3ddfa5[_0x143e6d(0x3b9)];_0x4dd792<=_0x3ddfa5[_0x143e6d(0x217)];_0x4dd792++)_0x44ee7c[_0x143e6d(0x388)](_0x25877e,_0x4dd792,_0x5e3255[_0x143e6d(0x216)](_0x25877e,_0x4dd792));});}const _0x486433={};return _0x486433[_0x273654]={[_0x3c710a]:_0xc5da59(_0x5256e8)},{'runtimeCellData':{[_0x273654]:{[_0x3c710a]:_0x44ee7c}},'dirtyRanges':_0x486433};}[_0x5d1072(0x259)](){}};_0x5d6160=_0xd1ae08([_0x3e00f9(0x0,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotDataSourceModel'])),_0x3e00f9(0x1,_0x374f23[_0x5d1072(0x465)](_0x925485[_0x5d1072(0x1e3)])),_0x3e00f9(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x3e00f9(0x3,_0x374f23[_0x5d1072(0x465)](_0x925485[_0x5d1072(0x30f)])),_0x3e00f9(0x4,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector']))],_0x5d6160);var _0x47c224=Object[_0x5d1072(0x2c5)],_0x3ac94b=(_0x3fb98d,_0x4f1cd8,_0x56881e,_0x26f651)=>{const _0x18b31f=_0x5d1072;for(var _0x246fe7=_0x26f651>0x1?void 0x0:_0x26f651?_0x47c224(_0x4f1cd8,_0x56881e):_0x4f1cd8,_0x7f9da8=_0x3fb98d[_0x18b31f(0x468)]-0x1,_0x5ccf29;_0x7f9da8>=0x0;_0x7f9da8--)(_0x5ccf29=_0x3fb98d[_0x7f9da8])&&(_0x246fe7=_0x5ccf29(_0x246fe7)||_0x246fe7);return _0x246fe7;},_0x1cbdf9=(_0x1de89c,_0x16a56a)=>(_0xea5fb4,_0x56d9d6)=>_0x16a56a(_0xea5fb4,_0x56d9d6,_0x1de89c);let _0x31eb78=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x4748e4,_0x265b31,_0x119777,_0xb15bb9){const _0x430074=_0x5d1072;super(),_0x1e0b19(this,'disposableCollection',new _0x374f23[(_0x430074(0x218))]()),(this[_0x430074(0x443)]=_0x4748e4,this[_0x430074(0x420)]=_0x265b31,this[_0x430074(0x1de)]=_0x119777,this[_0x430074(0x1be)]=_0xb15bb9,this[_0x430074(0x31a)]());}['_initClearSelectionCommandInterceptor'](){const _0xb6c7f8=_0x5d1072;this[_0xb6c7f8(0x372)](this[_0xb6c7f8(0x420)][_0xb6c7f8(0x238)]({'getMutations':_0x10760b=>{const _0x1a574f=_0xb6c7f8;if(_0x10760b['id']===_0x24a2a7[_0x1a574f(0x209)]['id']||_0x10760b['id']===_0x24a2a7['ClearSelectionAllCommand']['id']){const _0x107793=[],_0x57fa5e=[],_0x3401d0=this[_0x1a574f(0x1de)]['getCurrentSelections']()['map'](_0x5aae3b=>_0x5aae3b[_0x1a574f(0x3ee)]),_0x59c2e0=_0x24a2a7[_0x1a574f(0x1db)](this['_univerInstanceService']);if(!_0x59c2e0)return{'redos':[],'undos':[]};const {unitId:_0x70202e,subUnitId:_0x3f55b2}=_0x59c2e0,_0x1f46d8={},_0x27a4cc=this['_sheetsPivotTableConfigModel'][_0x1a574f(0x239)](_0x70202e,_0x3f55b2);if(_0x27a4cc!=null&&_0x27a4cc[_0x1a574f(0x249)])for(const [_0x1947f1,_0x42e66f]of _0x27a4cc){const {unitId:_0x52db7f,subUnitId:_0x38d0c9,row:_0x52f86f,col:_0x37d20b}=_0x42e66f[_0x1a574f(0x357)];_0x52db7f===_0x59c2e0[_0x1a574f(0x29a)]&&_0x38d0c9===_0x59c2e0['subUnitId']&&(_0x1f46d8[_0x52f86f+'-'+_0x37d20b]=_0x1947f1);}return _0x3401d0&&_0x59c2e0&&_0x3401d0['forEach'](_0xdba913=>{_0x374f23['Range']['foreach'](_0xdba913,(_0x5cb4d4,_0x37b55d)=>{const _0x59d4b9=_0x1019,_0x4fe930=_0x5cb4d4+'-'+_0x37b55d;if(_0x1f46d8[_0x4fe930]){const _0x110a43=_0x1f46d8[_0x4fe930];_0x107793['push']({'id':_0x2f23f0['id'],'params':{'unitId':_0x70202e,'subUnitId':_0x3f55b2,'pivotTableId':_0x110a43}});const _0x2f5dc6=this[_0x59d4b9(0x1be)][_0x59d4b9(0x43d)](_0x70202e,_0x110a43),_0x1ae7b9=this[_0x59d4b9(0x1be)][_0x59d4b9(0x458)](_0x70202e,_0x3f55b2,_0x110a43);_0x57fa5e[_0x59d4b9(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x70202e,'subUnitId':_0x3f55b2,'pivotTableId':_0x110a43,'pivotTableConfig':_0x1ae7b9,'collectionConfig':_0x2f5dc6}});}});}),{'redos':_0x107793,'undos':_0x57fa5e};}return{'redos':[],'undos':[]};}}));}};_0x31eb78=_0x3ac94b([_0x1cbdf9(0x0,_0x374f23[_0x5d1072(0x1d8)]),_0x1cbdf9(0x1,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x446)])),_0x1cbdf9(0x2,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x2d7)])),_0x1cbdf9(0x3,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x1ea)]))],_0x31eb78);var _0x6a2bcc=Object[_0x5d1072(0x2c5)],_0x1498fc=(_0x33c15b,_0x3d345e,_0x39dca9,_0xfb0949)=>{const _0x3b165e=_0x5d1072;for(var _0x54d7d2=_0xfb0949>0x1?void 0x0:_0xfb0949?_0x6a2bcc(_0x3d345e,_0x39dca9):_0x3d345e,_0x167e4c=_0x33c15b[_0x3b165e(0x468)]-0x1,_0x53be06;_0x167e4c>=0x0;_0x167e4c--)(_0x53be06=_0x33c15b[_0x167e4c])&&(_0x54d7d2=_0x53be06(_0x54d7d2)||_0x54d7d2);return _0x54d7d2;},_0x3a831a=(_0x3f0092,_0x19cb94)=>(_0xe0ab8d,_0x1c31b4)=>_0x19cb94(_0xe0ab8d,_0x1c31b4,_0x3f0092);let _0x4d352a=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x279b25,_0x147c8a,_0x57ade5,_0x450ceb,_0x487084){const _0x7741ef=_0x5d1072;super(),this[_0x7741ef(0x420)]=_0x279b25,this['_injector']=_0x147c8a,this[_0x7741ef(0x443)]=_0x57ade5,this['_sheetsPivotTableConfigModel']=_0x450ceb,this[_0x7741ef(0x2b6)]=_0x487084,this[_0x7741ef(0x397)]();}[_0x5d1072(0x1ae)](_0x42eb94,_0x5b7872,_0x2031f2){const _0x56a31d=_0x5d1072,{pageView:_0x22e819,cornerView:_0xcaed85,rowView:_0x1c71ca,colView:_0x4ee27a,dataView:_0x361a96}=_0x5b7872,_0x445810=_0x42eb94;let _0x487f36;if(_0x2031f2)_0x487f36=[..._0x4dfe41(_0x445810)];else{const _0x3d4087=_0x227f31(_0x445810,_0x22e819,!0x0),_0x4444cf=_0x22e819[_0x56a31d(0x18f)]>=0x0?_0x22e819[_0x56a31d(0x18f)]+0x1:0x0,_0x4cbfd1=_0xcaed85[_0x56a31d(0x215)],_0x1e3d20=_0xcaed85[_0x56a31d(0x392)],_0x5437fe=_0x3d4087['length']>0x0?_0x9545db:0x0,_0x58e4d0=_0x227f31({'row':_0x445810[_0x56a31d(0x23e)]+_0x4444cf+_0x5437fe,'col':_0x445810['col']},_0xcaed85,!0x1,!0x1),_0x35926a=_0x227f31({'row':_0x445810[_0x56a31d(0x23e)]+_0x4444cf+_0x5437fe+_0x4cbfd1,'col':_0x445810[_0x56a31d(0x434)]},_0x1c71ca,!0x1,!0x0),_0x24ddf8=_0x227f31({'row':_0x445810['row']+_0x4444cf+_0x5437fe,'col':_0x445810[_0x56a31d(0x434)]+_0x1e3d20},_0x4ee27a,!0x1,!0x0),_0x3b8f8c=_0x227f31({'row':_0x445810['row']+_0x4444cf+_0x5437fe+_0x4cbfd1,'col':_0x445810[_0x56a31d(0x434)]+_0x1e3d20},_0x361a96,!0x1,!0x0);_0x487f36=[..._0x3d4087,..._0x58e4d0,..._0x35926a,..._0x24ddf8,..._0x3b8f8c];}return _0x487f36;}[_0x5d1072(0x397)](){const _0x19b3da=_0x5d1072;this[_0x19b3da(0x372)](this['_sheetsPivotTableService'][_0x19b3da(0x199)][_0x19b3da(0x2bf)](this[_0x19b3da(0x2b6)][_0x19b3da(0x199)][_0x19b3da(0x1da)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x2f3e72,_0x54e228)=>{const _0x1aec42=_0x19b3da,{cellInfo:_0x149557,view:_0xd3ebac,isEmpty:_0x5b2e04}=_0x54e228,_0x38205f=_0x149557,{unitId:_0x4596c6,subUnitId:_0x18b286}=_0x38205f,_0x46cead=this['_getPivotAppliedRanges'](_0x149557,_0xd3ebac,_0x5b2e04),_0x31ca75=this[_0x1aec42(0x420)][_0x1aec42(0x2f5)]({'unitId':_0x4596c6,'subUnitId':_0x18b286,'ranges':_0x46cead}),_0x368adb=_0x347fea(this[_0x1aec42(0x42a)],_0x4596c6,_0x18b286,_0x46cead);_0x368adb['shouldClear']&&(_0x31ca75[_0x1aec42(0x451)][_0x1aec42(0x27b)](_0x368adb[_0x1aec42(0x3cb)]),_0x31ca75[_0x1aec42(0x252)][_0x1aec42(0x27b)](_0x368adb[_0x1aec42(0x354)]));const _0x385113=this[_0x1aec42(0x45d)](_0xd3ebac,_0x149557);return _0x31ca75[_0x1aec42(0x451)]['push'](..._0x385113[_0x1aec42(0x451)]),_0x31ca75[_0x1aec42(0x252)][_0x1aec42(0x27b)](..._0x385113[_0x1aec42(0x252)]),{'redos':_0x31ca75[_0x1aec42(0x451)],'undos':_0x31ca75[_0x1aec42(0x252)]};}}));}[_0x5d1072(0x45d)](_0x35e5e3,_0x45d94f){const _0x535976=_0x5d1072,{col:_0x5df1a2,unitId:_0x6a867b,subUnitId:_0x936c0}=_0x45d94f,_0x354385=[],_0x435a64=[],_0x4794d3=_0x24a2a7['getSheetCommandTarget'](this['_univerInstanceService'],{'unitId':_0x6a867b,'subUnitId':_0x936c0});if(!_0x45d94f||!_0x35e5e3||!_0x4794d3)return{'undos':_0x435a64,'redos':_0x354385};const _0x24946c=this[_0x535976(0x1be)][_0x535976(0x277)](),{colView:_0x597e33,dataView:_0x434b3e,cornerView:_0x510ded,rowView:_0x574b0f,formatMap:_0x236566}=_0x35e5e3,_0x4dd915=_0x21df27(_0x597e33,_0x24946c,!0x0,_0x236566),_0x3896be=_0x21df27(_0x574b0f,_0x24946c,!0x1,_0x236566),_0x93f89e=_0x59b274(_0x434b3e),_0x44a39f=_0x10a3cc(_0x510ded),{worksheet:_0xedcff6}=_0x4794d3;if(typeof window<'u'&&window[_0x535976(0x485)]){const _0x34320e=_0x132b06['getFontStyleString']({..._0x1ed179['colStyle']}),_0x4944f3=_0x132b06[_0x535976(0x35b)][_0x535976(0x301)](_0x4dd915,_0x34320e)['width']+0x10,_0x50297b=_0x132b06['FontCache'][_0x535976(0x301)](_0x93f89e,_0x34320e)[_0x535976(0x229)],_0x18b500=Math[_0x535976(0x3dd)](Math[_0x535976(0x275)](_0x4944f3,_0x50297b))+0x10,_0xce583=Math[_0x535976(0x3dd)](_0x132b06[_0x535976(0x35b)][_0x535976(0x301)](_0x3896be,_0x34320e)[_0x535976(0x229)]),_0x4cfe3c=Math[_0x535976(0x3dd)](_0x132b06[_0x535976(0x35b)]['getTextSize'](_0x44a39f,_0x34320e)[_0x535976(0x229)]),_0x1d4b71=Math[_0x535976(0x275)](_0xce583,_0x4cfe3c,0x28)+0xc,_0x19d416=_0x597e33[_0x535976(0x392)]+_0x510ded['colCount'],_0x3104c4={},_0x28123e={};for(let _0x41e58f=_0x5df1a2;_0x41e58f<_0x5df1a2+_0x19d416;_0x41e58f++){const _0x22622d=_0xedcff6[_0x535976(0x2c9)](_0x41e58f);_0x3104c4[_0x41e58f]=_0x22622d,_0x41e58f-_0x5df1a2<_0x510ded[_0x535976(0x392)]?_0x28123e[_0x41e58f-_0x5df1a2]=_0x1d4b71:_0x28123e[_0x41e58f-_0x5df1a2]=_0x18b500;}_0x354385['push']({'id':_0x24a2a7[_0x535976(0x460)]['id'],'params':{'subUnitId':_0x936c0,'unitId':_0x6a867b,'ranges':[{'startColumn':_0x5df1a2,'endColumn':_0x5df1a2+_0x19d416-0x1,'startRow':0x0,'endRow':_0xedcff6[_0x535976(0x46e)]()-0x1}],'colWidth':_0x28123e}}),_0x435a64[_0x535976(0x27b)]({'id':_0x24a2a7[_0x535976(0x460)]['id'],'params':{'subUnitId':_0x936c0,'unitId':_0x6a867b,'ranges':[{'startColumn':_0x5df1a2,'endColumn':_0x5df1a2+_0x19d416-0x1,'startRow':0x0,'endRow':_0xedcff6[_0x535976(0x46e)]()-0x1}],'colWidth':_0x3104c4}});}return{'undos':_0x435a64,'redos':_0x354385};}};_0x4d352a=_0x1498fc([_0x3a831a(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x446)])),_0x3a831a(0x1,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x3cf)])),_0x3a831a(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x1d8)])),_0x3a831a(0x3,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableConfigModel'])),_0x3a831a(0x4,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableService']))],_0x4d352a);var _0x14f5cd=Object['getOwnPropertyDescriptor'],_0x8ec257=(_0x4e334a,_0x334a6a,_0x1c5e4d,_0x5683b5)=>{const _0x4f4f5e=_0x5d1072;for(var _0x29a345=_0x5683b5>0x1?void 0x0:_0x5683b5?_0x14f5cd(_0x334a6a,_0x1c5e4d):_0x334a6a,_0x163db9=_0x4e334a[_0x4f4f5e(0x468)]-0x1,_0x4ff64d;_0x163db9>=0x0;_0x163db9--)(_0x4ff64d=_0x4e334a[_0x163db9])&&(_0x29a345=_0x4ff64d(_0x29a345)||_0x29a345);return _0x29a345;},_0x4f04aa=(_0x104f4d,_0x20fb2a)=>(_0x5cc1c5,_0xe84ecb)=>_0x20fb2a(_0x5cc1c5,_0xe84ecb,_0x104f4d);let _0x7206cc=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x5e1334,_0x1524f9,_0x218b1c,_0x54a4f8,_0x34c1fd,_0x18afce,_0x31013c){const _0x2f7b54=_0x5d1072;super(),_0x1e0b19(this,_0x2f7b54(0x410),new _0x374f23[(_0x2f7b54(0x218))]()),(this[_0x2f7b54(0x42a)]=_0x5e1334,this[_0x2f7b54(0x2e6)]=_0x1524f9,this[_0x2f7b54(0x454)]=_0x218b1c,this[_0x2f7b54(0x443)]=_0x54a4f8,this[_0x2f7b54(0x1be)]=_0x34c1fd,this[_0x2f7b54(0x2d0)]=_0x18afce,this['_sheetInterceptorService']=_0x31013c,this[_0x2f7b54(0x2cc)]());}[_0x5d1072(0x2cc)](){const _0x27e63d=_0x5d1072,_0xb896dd=(_0x50f992,_0x32ff07)=>{const _0x446d32=_0x1019,_0x39b316=this[_0x446d32(0x443)][_0x446d32(0x2fb)](_0x374f23[_0x446d32(0x1e8)][_0x446d32(0x2eb)]);if(!_0x39b316||!(_0x39b316==null?void 0x0:_0x39b316[_0x446d32(0x317)](_0x32ff07)))return;this['disposableCollection'][_0x446d32(0x259)]();const _0x5c6b73=_0x3c208e=>this['_refRangeHandle'](_0x3c208e,_0x50f992,_0x32ff07),_0x49d6a2=this[_0x446d32(0x1be)]['getSubUnitPivotConfigs'](_0x50f992,_0x32ff07);if(!(_0x49d6a2!=null&&_0x49d6a2[_0x446d32(0x249)]))return;Array[_0x446d32(0x2d9)](_0x49d6a2[_0x446d32(0x39c)]())[_0x446d32(0x36c)](_0x55af4f=>{const _0x5f53ee=_0x446d32,{row:_0x1715d6,col:_0x1681e7}=_0x55af4f[_0x5f53ee(0x357)];return _0x374f23[_0x5f53ee(0x3d6)](_0x1715d6,_0x1681e7);})[_0x446d32(0x274)](_0x57c39f=>{const _0x1a7cf3=_0x446d32;this[_0x1a7cf3(0x410)][_0x1a7cf3(0x346)](this['_refRangeService'][_0x1a7cf3(0x26b)](_0x57c39f,_0x5c6b73,_0x50f992,_0x32ff07));});},_0x596a6b=()=>{const _0x8c8843=_0x1019,_0x231a86=this[_0x8c8843(0x443)][_0x8c8843(0x2fb)](_0x374f23[_0x8c8843(0x1e8)][_0x8c8843(0x2eb)]);if(_0x231a86){const _0xf448ba=_0x231a86['getActiveSheet']();if(!_0xf448ba)return;_0xb896dd(_0x231a86[_0x8c8843(0x1e1)](),_0xf448ba[_0x8c8843(0x300)]());}};this['disposeWithMe'](this[_0x27e63d(0x454)][_0x27e63d(0x44f)](_0x560ae2=>{const _0x228a46=_0x27e63d;if(_0x560ae2['id']===_0x24a2a7['SetWorksheetActiveOperation']['id']){const _0x3c0a37=_0x560ae2['params'],_0x3f23de=_0x3c0a37[_0x228a46(0x294)],_0x4cf54f=_0x3c0a37[_0x228a46(0x29a)];if(!_0x3f23de||!_0x4cf54f)return;_0xb896dd(_0x4cf54f,_0x3f23de);}})),this['disposeWithMe'](this[_0x27e63d(0x1be)][_0x27e63d(0x25c)][_0x27e63d(0x47a)](_0xd8470a=>{_0xd8470a&&_0x596a6b();})),this[_0x27e63d(0x372)](this['_sheetsPivotTableConfigModel'][_0x27e63d(0x2b7)][_0x27e63d(0x47a)](_0x1f1d77=>{const _0x1b5357=_0x27e63d,_0x2b531d=_0x24a2a7[_0x1b5357(0x1db)](this[_0x1b5357(0x443)]);if(!_0x2b531d)return;const {unitId:_0x5cdc34,subUnitId:_0x312ecd}=_0x2b531d,{unitId:_0x577bb7,subUnitId:_0x50eab8}=_0x1f1d77;_0x5cdc34!==_0x577bb7||_0x312ecd!==_0x50eab8||_0xb896dd(_0x5cdc34,_0x312ecd);})),_0x596a6b();}[_0x5d1072(0x41c)](_0x106d35,_0xc9800e,_0x27303f){const _0x4d59f4=_0x5d1072;switch(_0x106d35['id']){case _0x24a2a7[_0x4d59f4(0x489)]['id']:return this[_0x4d59f4(0x2be)](_0x106d35[_0x4d59f4(0x3aa)],_0xc9800e,_0x27303f);}return{'redos':[],'undos':[]};}[_0x5d1072(0x2be)](_0x5ca152,_0x355aa2,_0x2689c4){const _0x4c2138=_0x5d1072,{fromRange:_0x4e69d1,toRange:_0x6f7025}=_0x5ca152,_0x35c509=[],_0xabe977=[],_0x228145=_0x24a2a7[_0x4c2138(0x1db)](this[_0x4c2138(0x443)]);if(!_0x228145)return{'undos':_0xabe977,'redos':_0x35c509};if(_0x355aa2!==_0x228145[_0x4c2138(0x29a)]||_0x2689c4!==_0x228145[_0x4c2138(0x294)])return{'undos':_0xabe977,'redos':_0x35c509};const _0xc3306f=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x355aa2,_0x2689c4);if(_0xc3306f!=null&&_0xc3306f[_0x4c2138(0x249)])for(const [_0x171e5d,_0x4fd839]of _0xc3306f){const {unitId:_0x4c4815,subUnitId:_0x5080f9,row:_0x3bf9d2,col:_0x481d41}=_0x4fd839[_0x4c2138(0x357)];if(_0x4c4815===_0x228145[_0x4c2138(0x29a)]&&_0x5080f9===_0x228145[_0x4c2138(0x294)]){const _0x2e4d4d=_0x374f23[_0x4c2138(0x3d6)](_0x3bf9d2,_0x481d41);if(_0x374f23[_0x4c2138(0x236)][_0x4c2138(0x1c1)](_0x2e4d4d,_0x4e69d1)){const _0x4f35b9=_0x3bf9d2-_0x4e69d1[_0x4c2138(0x378)],_0x32e4c1=_0x481d41-_0x4e69d1[_0x4c2138(0x3b9)],_0x792197={'row':_0x6f7025[_0x4c2138(0x378)]+_0x4f35b9,'col':_0x6f7025[_0x4c2138(0x3b9)]+_0x32e4c1};_0x35c509[_0x4c2138(0x27b)]({'id':_0x24c983['id'],'params':{'unitId':_0x4c4815,'subUnitId':_0x5080f9,'pivotTableId':_0x171e5d,'targetCellPosition':_0x792197}}),_0xabe977[_0x4c2138(0x27b)]({'id':_0x24c983['id'],'params':{'unitId':_0x4c4815,'subUnitId':_0x5080f9,'pivotTableId':_0x171e5d,'targetCellPosition':{'row':_0x3bf9d2,'col':_0x481d41}}});const _0x47cc42=_0x792197[_0x4c2138(0x23e)]-_0x3bf9d2,_0x199e1f=_0x792197[_0x4c2138(0x434)]-_0x481d41,_0x134439=[],_0x37599a=this[_0x4c2138(0x2d0)][_0x4c2138(0x1b9)](_0x4c4815,_0x5080f9,_0x171e5d),_0x5efa16=_0x37599a==null?void 0x0:_0x37599a[_0x4c2138(0x1bc)];if(_0x5efa16){Object[_0x4c2138(0x3d8)](_0x5efa16)[_0x4c2138(0x274)](_0x591ec7=>{_0x5efa16[_0x591ec7]['forEach'](_0x1e268d=>{const _0x4736c5=_0x1019,_0x3412b9={..._0x1e268d};_0x3412b9[_0x4736c5(0x378)]=_0x1e268d[_0x4736c5(0x378)]+_0x47cc42,_0x3412b9[_0x4736c5(0x3a2)]=_0x1e268d[_0x4736c5(0x3a2)]+_0x47cc42,_0x3412b9[_0x4736c5(0x3b9)]=_0x1e268d[_0x4736c5(0x3b9)]+_0x199e1f,_0x3412b9['endColumn']=_0x1e268d[_0x4736c5(0x217)]+_0x199e1f,_0x134439['push'](_0x3412b9);});});const _0x325720=this[_0x4c2138(0x420)][_0x4c2138(0x2f5)]({'unitId':_0x4c4815,'subUnitId':_0x5080f9,'ranges':_0x134439});_0x35c509[_0x4c2138(0x27b)](..._0x325720[_0x4c2138(0x451)]),_0xabe977[_0x4c2138(0x27b)](..._0x325720[_0x4c2138(0x252)]);const _0x31742e=_0x347fea(this[_0x4c2138(0x42a)],_0x4c4815,_0x5080f9,_0x134439);_0x31742e[_0x4c2138(0x1ad)]&&(_0x35c509[_0x4c2138(0x27b)](_0x31742e[_0x4c2138(0x3cb)]),_0xabe977['push'](_0x31742e[_0x4c2138(0x354)]));}}}}return{'redos':_0x35c509,'undos':_0xabe977};}};_0x7206cc=_0x8ec257([_0x4f04aa(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23['Injector'])),_0x4f04aa(0x1,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x448)])),_0x4f04aa(0x2,_0x374f23[_0x5d1072(0x386)]),_0x4f04aa(0x3,_0x374f23[_0x5d1072(0x1d8)]),_0x4f04aa(0x4,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x1ea)])),_0x4f04aa(0x5,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x3ba)])),_0x4f04aa(0x6,_0x374f23['Inject'](_0x24a2a7[_0x5d1072(0x446)]))],_0x7206cc);var _0x4e6dfe=Object[_0x5d1072(0x2c5)],_0x4fb090=(_0x3137aa,_0x5add03,_0x197447,_0x42e6d8)=>{const _0x21be0d=_0x5d1072;for(var _0x761133=_0x42e6d8>0x1?void 0x0:_0x42e6d8?_0x4e6dfe(_0x5add03,_0x197447):_0x5add03,_0x33fbd4=_0x3137aa[_0x21be0d(0x468)]-0x1,_0x4eb8d3;_0x33fbd4>=0x0;_0x33fbd4--)(_0x4eb8d3=_0x3137aa[_0x33fbd4])&&(_0x761133=_0x4eb8d3(_0x761133)||_0x761133);return _0x761133;},_0x503092=(_0x247676,_0x527590)=>(_0x5c4406,_0x6a1a4b)=>_0x527590(_0x5c4406,_0x6a1a4b,_0x247676);let _0x5be276=class extends _0x374f23['Disposable']{constructor(_0x5931e8,_0x13f4da){const _0x292e6a=_0x5d1072;super(),this['_sheetInterceptorService']=_0x5931e8,this['_sheetsPivotTableConfigModel']=_0x13f4da,this[_0x292e6a(0x2ec)]();}[_0x5d1072(0x2ec)](){const _0x1394a5=_0x5d1072;this[_0x1394a5(0x372)](this[_0x1394a5(0x420)][_0x1394a5(0x238)]({'getMutations':_0x235abc=>{const _0x9cece2=_0x1394a5;if(_0x235abc['id']===_0x24a2a7['RemoveSheetCommand']['id']){const _0x48ecb0=[],_0x4d8572=[],_0x3f3cfc=_0x235abc['params'],{unitId:_0x4646fa,subUnitId:_0x535c1d}=_0x3f3cfc;if(!_0x4646fa||!_0x535c1d)return{'undos':_0x4d8572,'redos':_0x48ecb0};const _0x3489ab=this['_sheetsPivotTableConfigModel'][_0x9cece2(0x239)](_0x4646fa,_0x535c1d);if(_0x3489ab!=null&&_0x3489ab['size'])for(const [_0x2bfd2c,_0xba6a42]of _0x3489ab){_0x48ecb0[_0x9cece2(0x27b)]({'id':_0x2f23f0['id'],'params':{'unitId':_0x4646fa,'subUnitId':_0x535c1d,'pivotTableId':_0x2bfd2c}});const _0x507304={...this[_0x9cece2(0x1be)]['getCollection'](_0x4646fa,_0x2bfd2c)};_0x4d8572[_0x9cece2(0x27b)]({'id':_0x1a650d['id'],'params':{'unitId':_0x4646fa,'subUnitId':_0x535c1d,'pivotTableId':_0x2bfd2c,'pivotTableConfig':_0xba6a42,'collectionConfig':_0x507304}});}return{'redos':_0x48ecb0,'undos':_0x4d8572};}return{'redos':[],'undos':[]};}}));}};_0x5be276=_0x4fb090([_0x503092(0x0,_0x374f23[_0x5d1072(0x465)](_0x24a2a7[_0x5d1072(0x446)])),_0x503092(0x1,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4['SheetsPivotTableConfigModel']))],_0x5be276);var _0x4a8062=Object[_0x5d1072(0x2c5)],_0x277434=(_0x545ce5,_0x382b79,_0x4e4a8e,_0xcc175f)=>{const _0x570d24=_0x5d1072;for(var _0x317111=_0xcc175f>0x1?void 0x0:_0xcc175f?_0x4a8062(_0x382b79,_0x4e4a8e):_0x382b79,_0x41fd81=_0x545ce5[_0x570d24(0x468)]-0x1,_0x179adc;_0x41fd81>=0x0;_0x41fd81--)(_0x179adc=_0x545ce5[_0x41fd81])&&(_0x317111=_0x179adc(_0x317111)||_0x317111);return _0x317111;},_0x3d601a=(_0x36a147,_0x8cd1e0)=>(_0x51834e,_0x581afd)=>_0x8cd1e0(_0x51834e,_0x581afd,_0x36a147);let _0x21e85a=class extends _0x374f23[_0x5d1072(0x2b3)]{constructor(_0x489bc7,_0x294362,_0x3b9852,_0x4c85a8,_0x43a1fa,_0x588183){const _0x489466=_0x5d1072;super(),this[_0x489466(0x454)]=_0x489bc7,this[_0x489466(0x24b)]=_0x294362,this[_0x489466(0x2d0)]=_0x3b9852,this[_0x489466(0x1be)]=_0x4c85a8,this[_0x489466(0x443)]=_0x43a1fa,this[_0x489466(0x1aa)]=_0x588183,this['_initDataSendListener'](),this[_0x489466(0x22d)]();}[_0x5d1072(0x3ca)](){const _0x5369bd=_0x5d1072;this[_0x5369bd(0x372)](this[_0x5369bd(0x454)]['onCommandExecuted'](_0x411052=>{const _0x47d39f=_0x5369bd;if(_0x411052['id']!==_0x38eba3['id'])return;const _0x379f00=_0x411052['params'];this[_0x47d39f(0x24b)]['handleAsyncResponse'](_0x379f00);})),this[_0x5369bd(0x372)](this['_commandService'][_0x5369bd(0x44f)](_0x4b2084=>{const _0x567464=_0x5369bd;if(_0x4b2084['id']===_0x306833['id']){const _0x537eef=_0x4b2084['params'];if(_0x537eef){const {unitId:_0x4f4bf6,subUnitId:_0x4e62ed,oldSubUnitId:_0x56846b,pivotTableId:_0x179fd3,pivotTableConfig:_0x4cc9ae,collectionConfig:_0x1a7029}=_0x537eef;this[_0x567464(0x1be)][_0x567464(0x37c)](_0x4f4bf6,_0x56846b,_0x537eef[_0x567464(0x280)],null),this[_0x567464(0x1be)]['updateConfigCache'](_0x4f4bf6,_0x4e62ed,_0x179fd3,_0x4cc9ae),this[_0x567464(0x1be)][_0x567464(0x3e5)](_0x4f4bf6,_0x1a7029);}}})),this[_0x5369bd(0x372)](this[_0x5369bd(0x454)]['onCommandExecuted'](_0x8d1067=>{const _0x76534c=_0x5369bd;if(_0x8d1067['id']!==_0x4d7335['id'])return;const _0x5f82ae=_0x24a2a7[_0x76534c(0x1db)](this['_univerInstanceService']);if(!_0x5f82ae)return;const {unitId:_0xb321d6,subUnitId:_0x23d10d}=_0x5f82ae,_0x41cf7d=_0x8d1067[_0x76534c(0x3aa)];if(_0x41cf7d[_0x76534c(0x3e4)]&&Object[_0x76534c(0x3d8)](_0x41cf7d[_0x76534c(0x3e4)])[_0x76534c(0x274)](_0x28d91f=>{const _0x4fd5b9=_0x76534c;var _0x43bebb;(_0x43bebb=_0x41cf7d[_0x4fd5b9(0x3e4)])!=null&&_0x43bebb[_0x28d91f]&&this[_0x4fd5b9(0x1be)][_0x4fd5b9(0x3e5)](_0x28d91f,_0x41cf7d[_0x4fd5b9(0x3e4)][_0x28d91f]);}),_0x41cf7d[_0x76534c(0x2c6)]){const _0x46232e=_0x41cf7d[_0x76534c(0x2c6)],{unitId:_0x2b45ed,subUnitId:_0x4ed2ed,view:_0x498ee1,pivotTableId:_0x3cb383,type:_0x2c7609,pivotConfig:_0x3b308f}=_0x46232e;if(_0x2c7609===_0x5ae422['Delete'])this[_0x76534c(0x2d0)][_0x76534c(0x425)]({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'pivotTableId':_0x3cb383,'type':_0x2c7609}),this['_sheetsPivotTableConfigModel'][_0x76534c(0x37c)](_0x2b45ed,_0x4ed2ed,_0x3cb383,null);else{const _0x1fe673=new _0x2eef51['PivotView']();_0x1fe673['formJSON'](_0x498ee1),this[_0x76534c(0x1be)][_0x76534c(0x37c)](_0x2b45ed,_0x4ed2ed,_0x3cb383,_0x3b308f),this[_0x76534c(0x2d0)]['clearRenderCache']({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'pivotTableId':_0x3cb383,'type':_0x2c7609,'view':_0x1fe673}),this[_0x76534c(0x2d0)][_0x76534c(0x389)]({'unitId':_0x2b45ed,'subUnitId':_0x4ed2ed,'view':_0x1fe673,'pivotTableId':_0x3cb383,'type':_0x2c7609});}}else _0x41cf7d[_0x76534c(0x39b)]&&(_0x41cf7d[_0x76534c(0x39b)][_0x76534c(0x274)](_0x4af471=>{const _0x1aef14=_0x76534c,{unitId:_0x8d73be,subUnitId:_0xd9ffd9,view:_0x4468e7,pivotTableId:_0x42c642,type:_0x11736f,pivotConfig:_0x3a9a19}=_0x4af471,_0x487e39=new _0x2eef51[(_0x1aef14(0x28f))]();_0x487e39['formJSON'](_0x4468e7),this['_sheetsPivotTableConfigModel'][_0x1aef14(0x37c)](_0x8d73be,_0xd9ffd9,_0x42c642,_0x3a9a19),this[_0x1aef14(0x2d0)]['updateRenderCache']({'unitId':_0x8d73be,'subUnitId':_0xd9ffd9,'view':_0x487e39,'pivotTableId':_0x42c642,'type':_0x11736f});}),this['_sheetsPivotTableConfigModel'][_0x76534c(0x3d3)]());this['_sheetsPivotTableAdaptorModel'][_0x76534c(0x43a)](_0xb321d6,_0x23d10d);}));}[_0x5d1072(0x22d)](){const _0x3b5e53=_0x5d1072;this[_0x3b5e53(0x1aa)]['register'](_0x2daf6b['id'],{'commandId':_0x2daf6b['id'],'getDirtyData'(_0x319e33){const _0x41085b=_0x3b5e53;return{'dirtyUnitFeatureMap':_0x319e33[_0x41085b(0x3aa)]};}});}};_0x21e85a=_0x277434([_0x3d601a(0x0,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x3d601a(0x1,_0x374f23['Inject'](_0x1cc2c4['SheetsPivotRPCService'])),_0x3d601a(0x2,_0x374f23['Inject'](_0x1cc2c4[_0x5d1072(0x3ba)])),_0x3d601a(0x3,_0x374f23[_0x5d1072(0x465)](_0x1cc2c4[_0x5d1072(0x1ea)])),_0x3d601a(0x4,_0x374f23['Inject'](_0x374f23['IUniverInstanceService'])),_0x3d601a(0x5,_0x925485[_0x5d1072(0x192)])],_0x21e85a);var _0x3d181a=Object[_0x5d1072(0x46f)],_0x3af6cb=Object[_0x5d1072(0x2c5)],_0x4af3e5=(_0x28d3b4,_0x4b449c,_0x2e0252)=>_0x4b449c in _0x28d3b4?_0x3d181a(_0x28d3b4,_0x4b449c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2e0252}):_0x28d3b4[_0x4b449c]=_0x2e0252,_0x497c72=(_0x1141ad,_0x1375bf,_0x3360bb,_0x12d98c)=>{const _0x1f875f=_0x5d1072;for(var _0x50e287=_0x12d98c>0x1?void 0x0:_0x12d98c?_0x3af6cb(_0x1375bf,_0x3360bb):_0x1375bf,_0x4ce5b7=_0x1141ad[_0x1f875f(0x468)]-0x1,_0x970e21;_0x4ce5b7>=0x0;_0x4ce5b7--)(_0x970e21=_0x1141ad[_0x4ce5b7])&&(_0x50e287=_0x970e21(_0x50e287)||_0x50e287);return _0x50e287;},_0x1aac74=(_0x1c43be,_0xd010be)=>(_0x3ef25a,_0x4eb8ee)=>_0xd010be(_0x3ef25a,_0x4eb8ee,_0x1c43be),_0x49dc87=(_0x4586e9,_0x5dd6eb,_0x16ceec)=>_0x4af3e5(_0x4586e9,typeof _0x5dd6eb!=_0x5d1072(0x430)?_0x5dd6eb+'':_0x5dd6eb,_0x16ceec);_0x1cc2c4[_0x5d1072(0x40c)]=class extends _0x374f23['Plugin']{constructor(_0x14cd1d=_0x28efdf,_0x2ef5a0,_0x596dab,_0x125116,_0x340fbf){const _0x360806=_0x5d1072;super(),this[_0x360806(0x38b)]=_0x14cd1d,this[_0x360806(0x42a)]=_0x2ef5a0,this[_0x360806(0x454)]=_0x596dab,this[_0x360806(0x40f)]=_0x125116,this[_0x360806(0x41a)]=_0x340fbf;const {..._0x5e0a08}=_0x374f23[_0x360806(0x22e)]({},_0x28efdf,this[_0x360806(0x38b)]);this['_configService'][_0x360806(0x21b)](_0x339ccc,_0x5e0a08),this['_initRegisterCommand'](),this[_0x360806(0x1ab)]();}['_initConfig'](){const _0x1f10cd=_0x5d1072;var _0x3052e9;const _0x1464f=(_0x3052e9=this[_0x1f10cd(0x38b)])==null?void 0x0:_0x3052e9[_0x1f10cd(0x186)];this[_0x1f10cd(0x40f)]['setConfig'](_0x1e657c,_0x1464f===!0x0);}['onStarting'](){const _0x1b5aba=_0x5d1072;var _0x23044b;let _0x4a7282=[];const _0x305496=(_0x23044b=this[_0x1b5aba(0x38b)])==null?void 0x0:_0x23044b[_0x1b5aba(0x186)];_0x305496===!0x0?_0x4a7282=[[_0x1cc2c4['SheetsPivotTableService']],[_0x1cc2c4['SheetsPivotRPCService']],[_0x21e85a],[_0x1cc2c4[_0x1b5aba(0x3ba)]],[_0x1cc2c4[_0x1b5aba(0x1ea)]],[_0x5be276],[_0x31eb78],[_0x7206cc],[_0x4d352a]]:_0x305496===!0x1?_0x4a7282=[[_0x1cc2c4[_0x1b5aba(0x38e)]],[_0x5d6160]]:_0x305496===void 0x0&&(_0x4a7282=[[_0x1cc2c4[_0x1b5aba(0x38e)]],[_0x5d6160],[_0x1cc2c4[_0x1b5aba(0x3f9)]],[_0x1cc2c4[_0x1b5aba(0x333)]],[_0x21e85a],[_0x1cc2c4[_0x1b5aba(0x3ba)]],[_0x1cc2c4[_0x1b5aba(0x1ea)]],[_0x5be276],[_0x31eb78],[_0x7206cc],[_0x4d352a]]),_0x4a7282[_0x1b5aba(0x274)](_0x12fbe6=>this['_injector'][_0x1b5aba(0x346)](_0x12fbe6)),[_0x5d6160,_0x21e85a,_0x1cc2c4[_0x1b5aba(0x3f9)],_0x31eb78,_0x5be276,_0x7206cc,_0x4d352a][_0x1b5aba(0x274)](_0x365657=>{const _0xb1fe1=_0x1b5aba;this['_injector'][_0xb1fe1(0x1b5)](_0x365657)&&this[_0xb1fe1(0x42a)][_0xb1fe1(0x411)](_0x365657);});}[_0x5d1072(0x303)](){const _0xbc26ea=_0x5d1072;[_0x1cee8d,_0x54fb2d,_0x4bfc01,_0x225bd3,_0x490c7c,_0x2c9eb9,_0x1206a2,_0xc6bcab,_0x39e618,_0x3d55a3,_0x1ebb0c,_0x5784b7,_0x4007f1,_0x1b9cf3,_0x1a650d,_0x48a40f,_0x2f23f0,_0x33b47c,_0x2dc301,_0x1b4e8f,_0xd9e8fb,_0x1c531a,_0x3a7b5e,_0x4b3e58,_0x138786,_0x6566df,_0x24c983,_0x23d358,_0x38eba3,_0x4d7335,_0x5703ce,_0x96a821,_0x55c967,_0x9f6240,_0x4a9d2d,_0x1708ad,_0x23bfb9,_0x2daf6b,_0x306833,_0x58248d,_0x58f9b7,_0x1a16fb,_0x1e91f0][_0xbc26ea(0x274)](_0x187466=>{const _0xe77477=_0xbc26ea;var _0x57413b;(_0x57413b=this[_0xe77477(0x41a)])==null||_0x57413b[_0xe77477(0x35f)](_0x187466),this[_0xe77477(0x454)][_0xe77477(0x265)](_0x187466);});}},_0x49dc87(_0x1cc2c4['UniverSheetsPivotTablePlugin'],_0x5d1072(0x205),_0xcaa86f),_0x49dc87(_0x1cc2c4[_0x5d1072(0x40c)],'type',_0x374f23['UniverInstanceType'][_0x5d1072(0x2eb)]),_0x1cc2c4[_0x5d1072(0x40c)]=_0x497c72([_0x374f23[_0x5d1072(0x457)](_0x2169aa[_0x5d1072(0x234)]),_0x1aac74(0x1,_0x374f23['Inject'](_0x374f23[_0x5d1072(0x3cf)])),_0x1aac74(0x2,_0x374f23[_0x5d1072(0x465)](_0x374f23[_0x5d1072(0x386)])),_0x1aac74(0x3,_0x374f23[_0x5d1072(0x224)]),_0x1aac74(0x4,_0x374f23['Optional'](_0x37f267[_0x5d1072(0x417)]))],_0x1cc2c4[_0x5d1072(0x40c)]),_0x1cc2c4[_0x5d1072(0x399)]=_0x4bfc01,_0x1cc2c4[_0x5d1072(0x2ff)]=_0x33b47c,_0x1cc2c4[_0x5d1072(0x2dd)]=_0x54fb2d,_0x1cc2c4[_0x5d1072(0x3d4)]=_0x1a650d,_0x1cc2c4[_0x5d1072(0x2f7)]=_0x1cee8d,_0x1cc2c4['BLANK_ROW_COUNT']=_0x9545db,_0x1cc2c4['DEFAULT_PIVOT_NUMBER']=_0x5639c4,_0x1cc2c4[_0x5d1072(0x30a)]=_0x225bd3,_0x1cc2c4['MovePivotTableCommand']=_0x4007f1,_0x1cc2c4[_0x5d1072(0x1d4)]=_0x5370e2,_0x1cc2c4[_0x5d1072(0x36b)]=_0x1b9cf3,_0x1cc2c4['PivotTableOperationEnum']=_0x5ae422,_0x1cc2c4['PivotTableViewDirtyMarkOperation']=_0x2daf6b,_0x1cc2c4[_0x5d1072(0x326)]=_0x55d455,_0x1cc2c4[_0x5d1072(0x2a9)]=_0x490c7c,_0x1cc2c4[_0x5d1072(0x2db)]=_0x1c531a,_0x1cc2c4['RemovePivotTableMutation']=_0x2f23f0,_0x1cc2c4[_0x5d1072(0x3eb)]=_0x3a7b5e,_0x1cc2c4[_0x5d1072(0x299)]=_0x1e91f0,_0x1cc2c4[_0x5d1072(0x47f)]=_0x339ccc,_0x1cc2c4[_0x5d1072(0x304)]=_0xcaa86f,_0x1cc2c4['SetPivotCollapseCommand']=_0xc6bcab,_0x1cc2c4[_0x5d1072(0x1fa)]=_0x4b3e58,_0x1cc2c4[_0x5d1072(0x2a5)]=_0x9f6240,_0x1cc2c4[_0x5d1072(0x272)]=_0x1a16fb,_0x1cc2c4[_0x5d1072(0x283)]=_0x3d55a3,_0x1cc2c4['SetPivotFilterMutation']=_0xd9e8fb,_0x1cc2c4['SetPivotOptionMutation']=_0x6566df,_0x1cc2c4['SetPivotPositionMutation']=_0x24c983,_0x1cc2c4[_0x5d1072(0x2f4)]=_0x39e618,_0x1cc2c4['SetPivotSortMutation']=_0x138786,_0x1cc2c4[_0x5d1072(0x3c8)]=_0x55c967,_0x1cc2c4[_0x5d1072(0x320)]=_0x58248d,_0x1cc2c4[_0x5d1072(0x195)]=_0x58f9b7,_0x1cc2c4[_0x5d1072(0x1f1)]=_0x1206a2,_0x1cc2c4[_0x5d1072(0x3ce)]=_0x5703ce,_0x1cc2c4[_0x5d1072(0x371)]=_0x1ebb0c,_0x1cc2c4[_0x5d1072(0x3bc)]=_0x23bfb9,_0x1cc2c4[_0x5d1072(0x1a0)]=_0x5784b7,_0x1cc2c4['UpdatePivotTableSourceRangeMutation']=_0x1708ad,_0x1cc2c4[_0x5d1072(0x2a4)]=_0x2c9eb9,_0x1cc2c4[_0x5d1072(0x1bb)]=_0x96a821,_0x1cc2c4[_0x5d1072(0x226)]=_0x93d0f,_0x1cc2c4[_0x5d1072(0x416)]=_0x122880,_0x1cc2c4[_0x5d1072(0x3f5)]=_0x1ed179,_0x1cc2c4['generateSetRangeValueMutations']=_0x347fea,_0x1cc2c4[_0x5d1072(0x225)]=_0x227f31,_0x1cc2c4[_0x5d1072(0x437)]=_0x4dfe41,_0x1cc2c4['getFieldListByArea']=_0x424751,_0x1cc2c4['getInsertRowColMutations']=_0x20a5db,_0x1cc2c4['getPivotCellInfo']=_0x21a2ff,_0x1cc2c4[_0x5d1072(0x309)]=_0x43fd63,_0x1cc2c4['getPivotTableInfo']=_0xb9c753,_0x1cc2c4[_0x5d1072(0x3a4)]=_0x99791,_0x1cc2c4[_0x5d1072(0x41f)]=_0x17e537,Object[_0x5d1072(0x46f)](_0x1cc2c4,Symbol[_0x5d1072(0x2fc)],{'value':_0x5d1072(0x21f)});}));function _0x2db2(){const _0x549b6a=['sheet.mutation.set-pivot-sort-info','UpdatePivotValuePositionCommand','SetPivotFieldFormatMutation','_ensureViewDataMap','INTERCEPTOR_POINT','valueFields','RemovePivotFieldCommand','Count\x20of\x20','parse','Subject','colRanges','Quarter','delete','SetCollapse','PivotTableValuePositionEnum','handleSourceRangeChange','Disposable','addCollectionByJSON','sideEffectUpdateWorkerCache','_sheetsPivotTableService','pivotConfigChange$','fontRenderExtension','setPivotCollapse','ptn','cornerRanges','_pivotConfigChange$','splice','getRefRangeMutationsByMoveRange','intercept','@univerjs/core','SetSubtotalType','Column\x20','MoveRangeMutation','level','getOwnPropertyDescriptor','single','pushUndoRedo','updatePivotTableRangeInfo','getColumnWidth','exports','isNaN','_onRefRangeChange','getRangeStartEndInfo','limit\x20pivot','sheets-pivot.dateGroup.year','_sheetsPivotTableAdaptorModel','_resourceManagerService','RemoveSheetMutation','sheets-pivot.countNumsName','pbt','numberToABC','_deleteModelCache','SheetsSelectionsService','drillDown','from','textInfo','RemovePivotFieldMutation','_localeService','AddPivotTableCommand','sheets-pivot.productName','sheet.command.add-pivot-table-with-config','AddField','Sum\x20of\x20','dataFieldManagerConfig','pageStyle','InterceptorManager','setPivotTable','_refRangeService','Date','sheet.mutation.rename-pivot-field','_viewUpdate$','getDataFieldId','UNIVER_SHEET','_initRemoveSheetCommandInterceptor','getDataFieldBySourceName','prefix','sheets-pivot.emptyPivot.column','getRangeData','Filter','getUnit','setPivotFilter','SetPivotSortCommand','generateMutationsByRanges','SetPivotCollapse','AddPivotTableWithConfigCommand','handleMoveRange','SHEET_PIVOT_IN_MAIN_THREAD','UniverCore','getCurrentUnitForType','toStringTag','sheets-pivot.cellDateGroupDisplay.year','COMMAND','AddPivotFieldMutation','getSheetId','getTextSize','refreshGroupField','_initRegisterCommand','SHEET_PIVOT_TABLE_PLUGIN','ResetPivotTable','value','find','_pivotTableMatrixInfo','getPivotInfoByLicense','MovePivotFieldCommand','IResourceManagerService','getFieldCountByArea','sheets-pivot.blank','rowInfo','GlobalComputingStatusService','dateType','dataRangeInfo','sheet.command.pivot-drill-down','panel','_subjectViewChange','getLastRow','777800rGIgKS','getSheetBySheetId','_ensurePivotTableRangeInfo','Month','_initClearSelectionCommandInterceptor','getIntersectsPivotTable','unshift','_createExclusiveRange','CommandType','varp','SetPivotValueFilterCommand','SetFilterInfo','sheets-pivot.cellDateGroupDisplay.hour','_requestResolvers','getFieldIds','CELL_CONTENT','PositionType','addFieldWithSourceId','fromJSON','PivotTableFiledAreaEnum','getNoUsedDataFieldIds','sheets-pivot.stdDevpName','Grand\x20Total','InsertSheetUndoMutationFactory','@univerjs/rpc','RemovePivotField','registerCallbackWithEvent','sheet.command.add-pivot-table','Set','SheetsPivotRPCService','SetPivotSort','getTargetByPivotTableId','_pivotTableRangeInfo','90033iwkZPh','getPivotDirtyViewInfo','SetOptions','refreshData','ObjectMatrix','sheets-pivot.dateGroup.yearMonth','token','HourMinute','update','setTextInfo','filter','@univerjs-pro/license','sourceName','sheets-pivot.cellDateGroupDisplay.date','SetRangeValuesUndoMutationFactory','add','UniverSheetsFilter','_initSnapshot','PivotFilterTypeEnum','createAsyncInterceptorKey','addField','info','deleteDataField','fieldsCollectionChange$','FieldsCollection','countNums','getHeaderMapItem','column','getName','setRangeValueUndoMutation','_initPivotTextInfo','UniverProEnginePivot','targetCellInfo','AddPivotTable','LifecycleService','options','FontCache','AddPivotField','getFieldById','Existing','registerSyncingMutations','getPivotTableCellData','concat','sheets-pivot.emptyPivot.filter','valid','sheet.mutation.remove-pivot-field','sheets.tabs.sheet','sheet.mutation.set-pivot-option','getDataFieldManager','getUpdateRangeDeleteIds','sheets-pivot.stdDevName','Delete','PivotDrillDownCommand','map','sheet.mutation.set-pivot-position','pushComputingStatusSubject','excelDateToUnixMilliseconds','realDeleteValue','UpdatePivotFieldSettingCommand','disposeWithMe','getDataFieldByRangeKey','leafStyle','Varp\x20of\x20','sheetName','measure','startRow','InsertSheetCommand','sheets-pivot.value','NORMAL','updateConfigCache','isBottomTotal','removeField','getColCount','isDate','custom','#FFFFFF','version','function','_pivotRenderValueMatrixCache','ICommandService','addDataFieldWithoutUnitInfo','setValue','updateRenderCache','removeCollectionImp','_config','needSameDeleteModel','entries','SheetsPivotDataSourceModel','triggerDirtyFeature','sheets-pivot.dateGroup.quarter','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','colCount','sheet.operation.pivot-table-view-formula-mark-dirty','body','Add','36UngsXJ','_initCommandInterceptListener','Div0','AddPivotFieldCommand','displayName','batch','values','generateHexNumber','YearMonth','sheets-pivot.cellDateGroupDisplay.yearQuarter','MovePivotField','columnFields','endRow','setFieldFormat','transFromCellValue','fetchThroughAsyncInterceptors','#f4f4f5','error','updateViewData','_toJSON','params','movePivotField','removePivotField','setSubtotalType','paths','rxjs','setDisplayName','min','_init','data','endCollectChangeset','set','fieldsConfig','originalFieldId','_globalComputedStartHelpFunc','startColumn','SheetsPivotTableAdaptorModel','setOptions','UpdatePivotFieldSourceInfoMutation','sheet.mutation.send-pivot-data-local','getDataFieldItemInfo','IExclusiveRangeService','getformat','Tools','getSubtotal','SHEET_PIVOT_EXCLUSIVE_ID','some','getTableFieldById','53724aajuOy','substring','SetPivotSubtotalTypeMutation','sortInfo','_initDataSendListener','setRangeValueRedoMutation','DEFAULT_WORKSHEET_COLUMN_COUNT','LocaleService','UpdateFieldPositionMutation','Injector','_globalSubject','dataFields','rowRanges','setPivotInitCompleted','AddPivotTableMutation','getDate','cellToRange','_ensurePivotMap','keys','isArray','versions','areaInfo','sheet.command.set-pivot-field-setting','floor','result','rangeKeyMap','_subjectFieldsCollectionChange','_exclusiveRangeService','setLabelFilterInfo','PivotViewCellValueTypeEnum','collectionConfig','updateCollectionConfig','_configVersion$','addPivotField','MIN_SAFE_INTEGER','initDataRanges','fetchThroughInterceptors','RenamePivotFieldMutation','setPivotSort','updateValuePosition','range','sheets-pivot.cellDateGroupDisplay.minute','register','None','removeSourceRangeChange','filterInfo','asObservable','defaultThemeStyle','sheets-pivot.countName','subtotal','next','SheetsPivotTableService','\x20-\x20','PivotDataFieldDataTypeEnum','leftOffset','DateGroupField','Style','toJSON','broadcastCollectionChange','getSheets','sheet.mutation.set-pivot-value-filter','Column','getSheetBySheetName','colHeaderMap','setRange','generateRandomId','1614084XrAyeV','reset','BadReference','186557CoxJXO','UniverSheetsPivotTablePlugin','sheets-pivot.cellDateGroupDisplay.month','isValue','_configService','disposableCollection','get','getRangeKeyList','SetFieldFormat','DIV_BY_ZERO','Row','canUsePivot','DataSyncPrimaryController','sheets-pivot.sumName','_collectionConfigModel','_dataSyncPrimaryController','getAutoDisplayName','_refRangeHandle','call','number','unionPivotViewRange','_sheetInterceptorService','PivotCellStyleTypeEnum','sheet.command.update-pivot-table-source-range','dataFieldId','_pivotRenderInfoCache','clearRenderCache','setValuePivotFilter','updateView','getValueIndex','format','_injector','_ensurePivotItemRenderValueMatrixCache','addPivotTable','includes','SetValueFilter','DrillDown','symbol','CustomCommandExecutionError','name','getDirtyInfo','col','removeDataField','string','getEmptyPivotRanges','#eceeff','sheet.command.set-pivot-value-filter','markDirty','unshiftString','isFeatureAuthorizedWithinTime','getCollection','addRecord','sheet.mutation.add-pivot-table','sheet.command.set-pivot-sort','getFormat','LS_CONFIG_KEY','_univerInstanceService','Value','getPivotTableIdByCell','SheetInterceptorService','contains','RefRangeService','bind','New','tableFieldId','generateNewSheetName','other','isBaseGroupField','onCommandExecuted','UniverEngineFormula','redos','rowHeaderMap','sheets-pivot.dateGroup.yearQuarter','_commandService','dimension','removeCollections','DependentOn','getPivotTableConfig','collections','SetSortInfo','sheets-pivot.config','fields','getAutoFitColumnsMutations','sheet.command.set-pivot-collapse','#b2b2b2','SetWorksheetColWidthMutation','viewUpdate$','PivotTableChangeTypeEnum','Average\x20of\x20','3666890zsomHw','Inject','ErrorType','isDateGroupField','length','getMatrix','getTypeOfUnitDisposed$','SetPivotSetting','hasField','removePivotTable','getRowCount','defineProperty','getId','STRING','setCollapse','lastCol','node','isEmpty','_pivotTableInstanceCache','getAutoDisplayNameFunction','pivotTableIndexConfig','_featureCalculationManagerService','subscribe','setPivotTableConfig','_initGlobalComputed','SetValuePivotFilter','rowStyle','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','pivotPerformCheck','updateViewInfo','_initViewModelBySheetInterceptor','subTotalStyle','serializeRangeWithSpreadsheet','document','registerPluginResource','NotName','isText','MoveRangeCommand','workbook\x20is\x20not\x20found','_dataFieldManagerCollection','_updateRenderEmptyCache','YearQuarter','8FKgtZG','executeCommand','sheets-pivot.subTotal','Year','toString','@univerjs/engine-formula','getCellRaw','_host','updateDirtyPivotTable','sheet.mutation.remove-group-collection','getValuePosition','notExecuteFormula','_textInfo','sheet.mutation.pivot-update-field-position','_ensurePivotItemRenderInfoCache','renameField','_initLocale','getSubUnitPivotRenderCache','UpdatePivotSource','updateAllDisplayName','lastRow','maxDate','deepClone','IActiveDirtyManagerService','_model','getSubUnitPivotMatrix','SetPivotValueFilterMutation','UniverEngineRender','dataStyle','NAME','interceptor','_deletePivotTableInstanceCache','getMatrixFromRunTimeData','getConfig','getIntersects','ReleaseType','forRow','UpdatePivotTableSourceRangeCommand','sheet.mutation.add-pivot-field','getPivotTableMatrixInfo','MAX_SAFE_INTEGER','_sheetsPivotDataSourceModel','count','createDataFieldId','var','formJSON','DataField','_activeDirtyManagerService','_initConfig','rangeCache','shouldClear','_getPivotAppliedRanges','getMonth','resetArea','getFilterFieldIdByIndex','getCellMatrix','UniverSheets','updateConfig','has','_subjectCollectionChange','blank','sheet.mutation.add-group-collection','getPivotItemRenderInfoCache','_pivotInitCompleted$','UpdateValuePositionMutation','rangesInfo','oldRangeInfo','_sheetsPivotTableConfigModel','_updateModelCache','setName','intersects','sheet.command.remove-pivot-field','pivotTableConfigs','iterateField','RemoveColMutation','startCollectChangeset','Hour','getTargetByPivotId','numfmt','sheets-pivot.columnName','getFullYear','cornerStyle','sheets-pivot.varName','StdDev\x20of\x20','PivotDateGroupFieldDateTypeEnum','FORCE_STRING','forValue','markDirty$','SetRangeValuesMutation','PivotDisplayDataType','queryDirtyPivotTable','addCollection','sourceRangeInfo','IUniverInstanceService','object','getInterceptPoints','getSheetCommandTarget','PivotTable','Minute','_sheetsSelectionsService','PivotErrorTypeEnum','originTargetInfo','getUnitId','generateNullCell','IFeatureCalculationManagerService','updatePivotTableMatrixInfo','dateGroupField','RANGE_TYPE','setValueFilterInfo','UniverInstanceType','_updatePivotTableInstanceCache','SheetsPivotTableConfigModel','sheet.mutation.update-pivot-table-source-range','removeValueFilterInfoByValueFieldId','getDataFieldByTableId','new','message','createLabelField','UpdateDateGroupCommand','valueFilter','mergeWorksheetSnapshotWithDefault','NUMBER','SetPivotFilter','getFieldFormat','fieldIds','createInterceptorKey','amd','SetPivotCollapseMutation','getPivotTableModelConfig','addExclusiveRange','type','addDirtyPivotTable','collection','setSortInfo','_viewData','getPivotTableInstance','sequenceExecute','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','pluginName','rowFields','setSourceName','sheet.mutation.remove-pivot-table','ClearSelectionContentCommand','COLUMN','getFieldDataType','_queryingMap','oldMatrix','getSheetFeatureLimit','getLastCol','isDateGroupFieldJSON','setDirty','_initUnitDisposed','@univerjs/sheets-filter','#e6ebfa','rowCount','getValue','endColumn','DisposableCollection','getSortInfo','sheets-pivot.grandTotal','setConfig','SetSheetsFilterRangeMutation','#1d32e9','UpdateSource','Module','@univerjs-pro/engine-pivot','sheet.command.update-pivot-value-position','return\x20','_ensurePivotTableMatrixInfo','IConfigService','getAdjustRangesPosition','applyChangeSet','PivotSubtotalTypeEnum','UpdateValuePosition','width','sheets-pivot.dateGroup.minute','setRangeKeyMap','stringify','registerDirtyService','merge','updateRangeKeyMap','product','AddPivotTableWithConfig','Panel','updateFieldPosition','UniverLicensePlugin','fieldId','Rectangle','filterId','interceptCommand','getSubUnitPivotConfigs','slice','getRangeKey','getFieldPositionInfoById','collapseInfo','row','YearMonthDate','sheet.mutation.send-pivot-config-local','Expand','_getAutoName','grandTotal','sheet.command.update-date-group','DataFieldManager','refreshDataField','sheets-pivot.maxName','deleteField','size','valuePosition','_sheetsPivotRpcService','addPivotTableWithConfig','asyncInterceptor','Subtotal','getFilterInfo','getPivotTableRangeInfo','StdDevp\x20of\x20','undos','_fieldsCollectionChange$','average','removeValueFilterInfo','isColMultiMeasure','getDataFieldByDataFieldId','sheets-pivot.other','dispose','_globalComputedEndHelpFunc','adjustSheetCellData','pivotInitCompleted$','sum','NotFunction','_lifecycleService','getIndexesByPathStr','sheet.mutation.update-date-group','rangeKey','getDisplayName','xRMco3zM\x20ZUcqIeo3zM(t3cUM1U,\x20eRbt3cmUI)\x20{\x20\x20\x20\x20oqI\x20{\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20t3cUM1UfMxzp5qoYqq5I\x20=\x20t3cUM1U.1et3o(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20zq3K3MVU115KU\x20=\x20N9Ay.e5q1U(5ozb(t3cUM1UfMxzp5qoYqq5I[u]));\x20\x20\x20\x20\x20\x20\x20\x203x\x20(!zq3K3MVU115KU.RZ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20zq3K3MVU115KU.RZ\x20=\x20yRgbUq(t3cUM1UfMxzp5qoYqq5I[X]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2031EzqPUq\x20=\x20oIeUzx\x20EzqPUqatzb5t9czeU\x20!==\x20\x27RMZUx3MUZ\x27\x20&&\x201Utx\x203M1o5McUzx\x20EzqPUqatzb5t9czeU;\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20czMoUso\x20=\x2031EzqPUq\x20?\x201Utx\x20:\x2003MZz0;\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20gU115KUEzqZ\x20=\x20czMoUso.__W51UTX__.e5q1U(t3cUM1UfMxzp5qoYqq5I[u]);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20gU115KU\x20=\x20czMoUso.__DUs__.1oq3MK3xI(gU115KUEzqZ);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KM5oRqUEzqZ\x20=\x20czMoUso.__W51UTX__.e5q1U(t3cUM1UfMxzp5qoYqq5I[l]);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KM5oRqU\x20=\x20czMoUso.__DUs__.1oq3MK3xI(13KM5oRqUEzqZ);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x2013KMk5t3Z\x20=\x20czMoUso.__wUq3xI__(13KM5oRqU,\x20gU115KU,\x20eRbt3cmUI);\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20Zzg53M\x20=\x20zq3K3MVU115KU.Zg;\x20\x20\x20\x20\x20\x20\x20\x20xRMco3zM\x20318zg53MV5oc63MK(zp5ooUqM,\x20zDz1o)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqM\x20=\x20zp5ooUqM.qUet5cU(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1o\x20=\x20zDz1o.qUet5cU(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqMp5qo1\x20=\x20e5ooUqM.1et3o(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1op5qo1\x20=\x206z1o.1et3o(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x203x\x20(!e5ooUqM.3MctRZU1(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20e5ooUqM\x20===\x206z1o;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x203x\x20(e5ooUqMp5qo1.tUMKo6\x20<\x20u\x20||\x20e5ooUqMp5qo1[C]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20x5t1U;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20e5ooUqM9Rxx3s\x20=\x20e5ooUqMp5qo1.1t3cU(7).hz3M(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x206z1o9Rxx3s\x20=\x206z1op5qo1.1t3cU(-e5ooUqMp5qo1.tUMKo6\x20+\x207).hz3M(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20e5ooUqM9Rxx3s\x20===\x206z1o9Rxx3s;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20tUo\x20Zzg53Mk5t3Z\x20=\x20(Zzg53M\x20&&\x20Zzg53M.tUMKo6)\x20?\x20Zzg53M.1zgU((ZgfoUg)\x20=>\x20318zg53MV5oc63MK(ZgfoUg,\x20tzc5o3zM.6z1oM5gU))\x20:\x20oqRU;\x20\x20\x20\x20\x20\x20\x20\x203x\x20(tzc5o3zM.6z1oM5gU\x20===\x20\x27tzc5t6z1o\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Zzg53Mk5t3Z\x20=\x20oqRU;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20czM1o\x20w5t3Z\x20=\x2013KMk5t3Z\x20&&\x20Zzg53Mk5t3Z;\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20w5t3Z,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gU115KU:\x20zq3K3MVU115KU,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20c5oc6\x20(Uqqzq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20qUoRqM\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20w5t3Z:\x20x5t1U,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gU115KU:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','registerCommand','_collectionChange$','SetPivotTableConfig','colStyle','getSourceName','getStyles','registerRefRange','MUTATION','_viewData$','updatePivotSource','remove','InterceptorEffectEnum','headerMap','SetPivotFieldsConfigCommand','uniqueDataFieldName','forEach','max','colInfo','getTextInfo','CellValueType','viewData$','onQueryEnd','push','createCollectionWithDataRange','Max\x20of\x20','pivotMutationGenerate','@univerjs/engine-render','pivotTableId','getColumnCount','deleteUnitId','SetPivotFilterCommand','IUndoRedoService','ManualFilter','sheets-pivot.emptyPivot.values','PivotCallbackEnum','getFieldInfo','setPivotSetting','collectionChange$','16430823JgRChf','sheets-pivot.varpName','charCodeAt','isDateValue','PivotView','RemoveRowMutation','getPivotDisplayConfig','getMatrixValue','query','subUnitId','sheets-pivot.dateGroup.hourMinute','iterateFieldDim','sheets-pivot.cellDateGroupDisplay.yearMonthDate','sheets-pivot.dateGroup.yearMonthDate','ResetPivotFieldsConfigCommand','unitId','iterateFieldByArea','valueIndex','dataFieldsCollection','RenameField','resetPivotTable','MonthDate','NUM','minDate'];_0x2db2=function(){return _0x549b6a;};return _0x2db2();}