@univerjs-pro/sheets-pivot 0.6.10-nightly.202504111607 → 0.6.10-nightly.202504131606

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.
package/lib/umd/index.js CHANGED
@@ -1 +1 @@
1
- function _0x6997(_0x3324fa,_0x4a27b7){const _0x446aa0=_0x446a();return _0x6997=function(_0x69979a,_0x5f2c68){_0x69979a=_0x69979a-0x71;let _0x468912=_0x446aa0[_0x69979a];return _0x468912;},_0x6997(_0x3324fa,_0x4a27b7);}function _0x446a(){const _0x29d4b9=['getPivotCellInfo','sheet.mutation.set-pivot-filter','IConfigService','sheets-pivot.dateGroup.hourMinute','startColumn','targetCellInfo','dimension','isBaseGroupField','PivotCellStyleTypeEnum','sheets-pivot.cellDateGroupDisplay.hour','Add','#1d32e9','setRange','_sheetsPivotTableConfigModel','Minute','getCollection','SetPivotSortMutation','Existing','sheet.mutation.add-pivot-field','getPivotTableConfig','Div0','_ensurePivotItemRenderValueMatrixCache','excelDateToUnixMilliseconds','stdDevp','getRangeStartEndInfo','sheet.mutation.pivot-update-value-position','interceptor','foreach','PivotTableValuePositionEnum','getMonth','removeValueFilterInfo','setPivotFilter','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','colStyle','result','sheet.command.reset-pivot-fields-config','valueIndex','PivotTableViewDirtyMarkOperation','getPivotItemRenderInfoCache','sheet.mutation.remove-pivot-field','rowRanges','ΣValue','setName','updateConfigCache','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','_sheetsPivotTableAdaptorModel','setTextInfo','rowCount','AddPivotTableWithConfig','subTotalStyle','valid','uniqueDataFieldName','removeField','dispose','CommandType','shouldClear','reset','type','batch','SetFilterInfo','addCollection','getSheets','fieldId','Row','_pivotTableRangeInfo','removeCollections','@univerjs/sheets','areaInfo','SetWorksheetActiveOperation','getDataFieldManager','SheetsPivotRPCService','setDisplayName','PivotTableChangeTypeEnum','_commandService','sheets-pivot.dateGroup.yearMonth','ClearSelectionContentCommand','intercept','_resourceManagerService','_sheetsPivotRpcService','_refRangeHandle','sheets-pivot.grandTotal','params','sheets-pivot.emptyPivot.filter','unitId','setPivotTable','Count\x20of\x20','@univerjs-pro/engine-pivot','DEFAULT_WORKSHEET_ROW_COUNT','iterateField','Tools','SetPivotCollapse','adjustSheetCellData','setSourceName','addField','name','markDirty$','getTextSize','_sheetsSelectionsService','SetRangeValuesMutation','paths','textInfo','measure','_pivotInitCompleted$','versions','createAsyncInterceptorKey','floor','iterateFieldDim','sheet.command.update-date-group','Expand','unshift','forValue','pivotMutationGenerate','STRING','isDateValue','sheet.mutation.send-pivot-view-local','format','_updateRenderEmptyCache','defineProperty','updateDirtyPivotTable','getOwnPropertyDescriptor','rowInfo','CellValueType','COLUMN','getStyles','getFieldInfo','MAX_SAFE_INTEGER','deleteUnitId','_initGlobalComputed','getUnit','getFieldFormat','SHEET_PIVOT_TABLE_PLUGIN','Values','RemovePivotField','addPivotTable','rangeKey','object','merge','sheet.mutation.send-pivot-data-local','collections','lastRow','getColumnCount','setCollapse','_config','addRecord','addPivotField','_sheetInterceptorService','colHeaderMap','44JyEkmJ','DisposableCollection','getRowCount','sheets-pivot.productName','getCellMatrix','reduce','SetPivotFieldsConfigCommand','subtotal','_deleteModelCache','dateType','disposableCollection','sheet.mutation.add-group-collection','createDataFieldId','workbook\x20is\x20not\x20found','390pWfIbs','FORCE_STRING','col','new','_initSnapshot','random','rgb(255,255,255)','_onRefRangeChange','UniverInstanceType','refreshGroupField','sheets-pivot.dateGroup.quarter','level','_initConfig','_initPivotDataGetListener','count','getDataFieldItemInfo','isDateGroupFieldJSON','removePivotTable','CELL_CONTENT','pageStyle','refreshData','redos','isDateGroupField','generateMutationsByRanges','getCurrentSelections','Rectangle','updateDataFieldsCollection','RemovePivotTableMutation','591641ybbRdC','_collectionChange$','dataStyle','leafStyle','getSheetId','setRangeValueUndoMutation','getConfig','resetPivotTable','_requestResolvers','numfmt','deepClone','getColCount','getSortInfo','exports','InterceptorEffectEnum','_getAutoName','MoveRangeCommand','slice','sideEffectUpdateWorkerCache','AddPivotFieldMutation','PivotSubtotalTypeEnum','getActiveSheet','updatePivotSource','splice','map','_createExclusiveRange','pageRanges','function','IUndoRedoService','asyncInterceptor','sum','dataFieldManagerConfig','UniverSheetsPivotTablePlugin','executeCommand','dataStream','_univerInstanceService','_deletePivotTableInstanceCache','#eceeff','sheet.command.update-pivot-table-source-range','RemovePivotFieldMutation','@univerjs/engine-formula','getSubtotal','fontRenderExtension','triggerDirtyFeature','updateConfig','getFontStyleString','dataFieldId','PivotDataFieldDataTypeEnum','forEach','PIVOT_MUTATION_GENERATE','setSubtotalType','_collectionConfigModel','SetPivotCollapseCommand','AddPivotField','addDirtyPivotTable','LS_CONFIG_KEY','UpdateValuePositionMutation','Date','42327FNDEuQ','COMMAND','rxjs','getSubUnitPivotRenderCache','toStringTag','LifecycleService','tableFieldId','getSubUnitPivotConfigs','pivotConfigChange$','_toJSON','UniverEngineFormula','addExclusiveRange','fetchThroughInterceptors','SetPivotSetting','UniverLicensePlugin','#FFFFFF','getSourceName','Var\x20of\x20','_globalComputedEndHelpFunc','IFeatureCalculationManagerService','#b2b2b2','fieldsConfig','Min\x20of\x20','getDataFieldByTableId','740224WdNBFR','getPivotInfoByLicense','sheets-pivot.cellDateGroupDisplay.yearQuarter','SetOptions','originTargetInfo','setRangeValueRedoMutation','rowHeaderMap','colCount','DrillDown','getCellRaw','RemoveField','fieldIds','_globalComputedStartHelpFunc','pivotTableId','AddPivotTableWithConfigCommand','sheet.command.move-pivot-field','rangeCache','isText','AddPivotFieldCommand','Hour','endRow','entries','canUsePivot','_pivotRenderValueMatrixCache','oldMatrix','maxDate','@univerjs/sheets-filter','transFromCellValue','getMatrixValue','sheet.command.set-pivot-value-filter','sheet.operation.pivot-table-view-formula-mark-dirty','return\x20','existing','register','createInterceptorKey','onStarting','sheets-pivot.dateGroup.yearMonthDate','_pivotTableInstanceCache','message','sheets-pivot.averageName','ErrorType','update','registerCallbackWithEvent','sheet.command.set-pivot-filter','SetPivotValueFilterCommand','UniverProEnginePivot','minDate','_featureCalculationManagerService','SetPivotCollapseMutation','collectionChange$','getRangeKey','_sheetsPivotDataSourceModel','getInterceptPoints','\x20-\x20','find','onQueryEnd','_pivotRenderInfoCache','pbt','length','getFieldPositionInfoById','UniverProLicense','removeDataField','hasOwnProperty','NAME','Disposable','sheets-pivot.dateGroup.minute','Year','isPrefixValue','InsertSheetUndoMutationFactory','_viewUpdate$','handleMoveRange','removePivotField','DependentOn','SetValuePivotFilter','AsyncInterceptorManager','refreshDataField','IActiveDirtyManagerService','grandTotal','getSheetFeatureLimit','removeSourceRangeChange','filterFields','getCurrentUnitForType','_updatePivotTableInstanceCache','getSheetBySheetId','custom','IResourceManagerService','#e6ebfb','rgb(240,241,243)','sheets-pivot.cellDateGroupDisplay.hourMinute','onCommandExecuted','PivotTable','setPivotSetting','asObservable','SetFieldFormat','generateNullCell','IUniverInstanceService','_initUnitDisposed','defaultThemeStyle','sheet.mutation.update-date-group','split','pivotPerformCheck','string','countNums','Grand\x20Total','stdDev','setSortInfo','contains','SetPivotFilter','MonthDate','SheetsPivotTableService','varp','sheets-pivot.cellDateGroupDisplay.year','add','AddPivotTableCommand','MovePivotFieldCommand','set','symbol','setPivotTableConfig','Subtotal','UniverSheets','sheets-pivot.varName','setValuePivotFilter','NUM','startRow','remove','Injector','getPivotTableModelConfig','BLANK_ROW_COUNT','RemoveSheetMutation','GrandTotal','rangeKeyMap','pluginName','getTextInfo','_queryingMap','_textInfo','getPivotDisplayConfig','_viewData$','getRefRangeMutationsByMoveRange','deleteField','UpdateValuePosition','sheet.mutation.update-pivot-table-source-range','pivotTableConfigs','movePivotField','keys','BadReference','dataRangeInfo','Value','formJSON','generateHexNumber','sheets-pivot.varpName','ICommandService','StdDevp\x20of\x20','iterateFieldByArea','Panel','initDataRanges','toString','FontCache','UpdatePivotValuePositionCommand','SheetsPivotTableAdaptorModel','NotFunction','Product\x20of\x20','max','sheet.mutation.send-pivot-config-local','RenamePivotFieldMutation','column','getTypeOfUnitDisposed$','updateViewInfo','PivotTableFiledAreaEnum','viewData$','getMatrixFromRunTimeData','_exclusiveRangeService','queryDirtyPivotTable','data','toJSON','isEmpty','configVersion$','RANGE_TYPE','sheet.command.set-pivot-fields-config','getOriginFieldId','LocaleService','ResetPivotFieldsConfigCommand','InsertSheetCommand','fromJSON','YearQuarter','@univerjs/engine-render','getLastRow','cornerStyle','Filter','hasField','Quarter','_initRemoveSheetCommandInterceptor','UpdateSource','ResetPivotTable','RemoveSheetsFilterMutation','filter','getName','generateNewSheetName','sheets-pivot.dateGroup.month','renameField','sortInfo','getId','getDataFieldId','valueFields','_ensurePivotTableMatrixInfo','12954141AZBuCQ','PivotView','single','getFilterInfo','sheetName','SheetsPivotDataSourceModel','rangeType','rangesInfo','getPivotTableRangeInfo','sheets-pivot.emptyPivot.column','needSameDeleteModel','colInfo','error','_model','AddPivotTableMutation','updateRenderCache','74574naTlxT','UNIVER_SHEET','_dataFieldManagerCollection','UpdatePivotSource','updateCollectionConfig','Sum\x20of\x20','RemoveSheetCommand','getValuePosition','mergeWorksheetSnapshotWithDefault','concat','sheets-pivot.cellDateGroupDisplay.month','setValue','_getPivotAppliedRanges','_initClearSelectionCommandInterceptor','pivotTableIndexConfig','sheets-pivot.cellDateGroupDisplay.yearMonthDate','values','matrix','cellToRange','sheet.mutation.set-pivot-sort-info','handleSourceRangeChange','1184750YpOLeJ','SHEET_PIVOT_IN_MAIN_THREAD','sheets-pivot.dateGroup.monthDate','sheet.mutation.pivot-update-field-position','getDirtyInfo','_init','SetValueFilter','setValueFilterInfo','min','getValueIndex','Column','version','isValue','HourMinute','getRangeKeyList','getAdjustRangesPosition','interceptCommand','setLabelFilterInfo','ObjectMatrix','get','row','MUTATION','Month','options','subscribe','SetPivotOptionMutation','getPivotTableMatrixInfo','updatePivotTableMatrixInfo','pushComputingStatusSubject','getFieldById','_host','@univerjs-pro/license','GlobalComputingStatusService','addFieldWithSourceId','CustomCommandExecutionError','undos','sheets.tabs.sheet','getAutoDisplayNameFunction','isNaN','getAutoDisplayName','size','getPivotTableIdByCell','_fieldsCollectionChange$','(Blank)','getInsertRowColMutations','ManualFilter','getIntersectsPivotTable','PivotCallbackEnum','addPivotTableWithConfig','sequenceExecute','sheet.command.remove-pivot-field','setFieldFormat','getFullYear','_initCommandInterceptListener','_subjectFieldsCollectionChange','next','_ensurePivotItemRenderInfoCache','_initLocale','originalFieldId','subUnitId','Range','RefRangeService','LrnkhyCn\x20mVkDHRhyCn(PykVn5V,\x20RrjPykvVH)\x20{\x20\x20\x20\x20hDH\x20{\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20PykVn5VonLC32DhYDD2H\x20=\x20PykVn5V.5RPyh(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20CDyNyncV552NV\x20=\x20TziA.R2D5V(2hCj(PykVn5VonLC32DhYDD2H[l]));\x20\x20\x20\x20\x20\x20\x20\x20yL\x20(!CDyNyncV552NV.rm)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20CDyNyncV552NV.rm\x20=\x20ArJjVD(PykVn5VonLC32DhYDD2H[w]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20y5qCD4VD\x20=\x20hHRVCL\x20qCD4VD0PCj2PzkCRV\x20!==\x20\x27rnmVLynVm\x27\x20&&\x205VPL\x20yn5h2nkVCL\x20qCD4VD0PCj2PzkCRV;\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20kCnhV7h\x20=\x20y5qCD4VD\x20?\x205VPL\x20:\x20GynmCG;\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20JV552NVqCDm\x20=\x20kCnhV7h.__x25Vew__.R2D5V(PykVn5VonLC32DhYDD2H[l]);\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20JV552NV\x20=\x20kCnhV7h.__8V7__.5hDynNyLH(JV552NVqCDm);\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x205yNn2hrDVqCDm\x20=\x20kCnhV7h.__x25Vew__.R2D5V(PykVn5VonLC32DhYDD2H[t]);\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x205yNn2hrDV\x20=\x20kCnhV7h.__8V7__.5hDynNyLH(5yNn2hrDVqCDm);\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x205yNn62Pym\x20=\x20kCnhV7h.__MVDyLH__(5yNn2hrDV,\x20JV552NV,\x20RrjPykvVH);\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20mCJ2yn\x20=\x20CDyNyncV552NV.mJ;\x20\x20\x20\x20\x20\x20\x20\x20LrnkhyCn\x20y5fCJ2ync2hkBynN(C32hhVDn,\x20C8C5h)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20R2hhVDn\x20=\x20C32hhVDn.DVRP2kV(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20BC5h\x20=\x20C8C5h.DVRP2kV(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20R2hhVDn32Dh5\x20=\x20R2hhVDn.5RPyh(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20BC5h32Dh5\x20=\x20BC5h.5RPyh(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yL\x20(!R2hhVDn.ynkPrmV5(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DVhrDn\x20R2hhVDn\x20===\x20BC5h;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yL\x20(R2hhVDn32Dh5.PVnNhB\x20<\x20l\x20||\x20R2hhVDn32Dh5[W]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DVhrDn\x20L2P5V;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20R2hhVDnzrLLy7\x20=\x20R2hhVDn32Dh5.5PykV(U).gCyn(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20BC5hzrLLy7\x20=\x20BC5h32Dh5.5PykV(-R2hhVDn32Dh5.PVnNhB\x20+\x20U).gCyn(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20DVhrDn\x20R2hhVDnzrLLy7\x20===\x20BC5hzrLLy7;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20PVh\x20mCJ2yn62Pym\x20=\x20(mCJ2yn\x20&&\x20mCJ2yn.PVnNhB)\x20?\x20mCJ2yn.5CJV((mJohVJ)\x20=>\x20y5fCJ2ync2hkBynN(mJohVJ,\x20PCk2hyCn.BC5hn2JV))\x20:\x20hDrV;\x20\x20\x20\x20\x20\x20\x20\x20yL\x20(PCk2hyCn.BC5hn2JV\x20===\x20\x27PCk2PBC5h\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20mCJ2yn62Pym\x20=\x20hDrV;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20kCn5h\x20M2Pym\x20=\x205yNn62Pym\x20&&\x20mCJ2yn62Pym;\x20\x20\x20\x20\x20\x20\x20\x20DVhrDn\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20M2Pym,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JV552NV:\x20CDyNyncV552NV,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20k2hkB\x20(VDDCD)\x20{\x20\x20\x20\x20\x20\x20\x20\x20DVhrDn\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20M2Pym:\x20L2P5V,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JV552NV:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','getValueFilterInfos','getformat','setConfig','createCollectionWithDataRange','_subjectCollectionChange','getUnitId','updateValuePosition','sheets-pivot.countName','updateViewData','sheets-pivot.stdDevpName','sheet.mutation.get-pivot-data-local','sheet.command.set-pivot-collapse','YearMonth','sheet.mutation.send-init-pivot-text-local','getTargetByPivotId','SetPivotFilterMutation','setDirty','sheets-pivot.columnName','stringify','unshiftString','number','SetPivotSubtotalTypeMutation','panel','parseInt','@univerjs/core','getSheetCommandTarget','colRanges','_sheetsPivotTableService','Optional','getFormat','node','filterId','collapseInfo','getPivotTableInstance','amd','realDeleteValue','updatePivotTableRangeInfo','displayName','info','generateRandomId','NO_COMMERCIAL','push','29285RbVxMp','getNoUsedDataFieldIds','registerCommand','getDataFieldBySourceName','registerPluginResource','notExecuteFormula','_configService','_initViewModelBySheetInterceptor','BaseGroupField','sheets-pivot.subTotal','numberToABC','_initRegisterCommand','SetPivotTableConfig','date','getDate','pivotInitCompleted$','from','deleteDataField','Module','#e6ebfa','fields','Subject','setPivotInitCompleted','getAutoFitColumnsMutations','getDataFieldByDataFieldId','dataFieldsCollection','clearRenderCache','DEFAULT_WORKSHEET_COLUMN_COUNT','RenameField','_pivotConfigChange$','handleAsyncResponse','rowFields','parse','sheets-pivot.cellDateGroupDisplay.quarter','RemoveColMutation','prototype','getRangeData','call','query','_ensurePivotTableRangeInfo','isFeatureAuthorizedWithinTime','pushUndoRedo','_ensurePivotMap','getColumnWidth','getTargetByPivotTableId','_initDataSendListener','sourceRangeInfo','average','prefix','getTableFieldById','RemovePivotFieldCommand','UpdatePivotTableSourceRangeCommand','sheet.mutation.set-pivot-format','valueFilter','sheet.command.set-pivot-sort','filterInfo','body','getValue','getIntersects','has','includes','Column\x20','disposeWithMe','_globalSubject','some','ReleaseType','isBottomTotal','_initPivotTextInfo','_dataSyncPrimaryController','setPivotCollapse','SetPivotSort','_injector','SHEET_PIVOT_EXCLUSIVE_ID','SheetsPivotTableConfigModel','updateAllDisplayName','sheet.mutation.add-pivot-table','sheet.command.add-pivot-table','_pivotTableMatrixInfo','updateFieldPosition','headerMap','_ensureViewDataMap','New','sheets-pivot.sumName','getDisplayName','SetCollapse','dataFields','PositionType','replace','getFieldIds','INTERCEPTOR_POINT','MovePivotField','endCollectChangeset','sheet.command.update-pivot-value-position','setDateType','_viewData','SheetInterceptorService','leftOffset','sheet.mutation.rename-pivot-field','@univerjs/rpc','blank','Delete','getEmptyPivotRanges','collectionConfig','getFieldListByArea','getViewData','delete','tuple','limit\x20pivot','getDataFieldByRangeKey','_markDirty$','fetchThroughAsyncInterceptors','_configVersion$','width','addCollectionByJSON','NotName','updateRangeKeyMap','NotNumber','UpdatePivotTableSourceRangeMutation','Average\x20of\x20','registerDirtyService','PivotFilterTypeEnum','FieldsCollection','setPivotSort','PivotErrorTypeEnum','endColumn','SetSubtotalType','getFieldDataType','_activeDirtyManagerService','getUpdateRangeDeleteIds','_updateModelCache','sheet.command.add-pivot-table-with-config','NUMBER','getHeaderMapItem','rowStyle','Inject','getLastCol','SetRangeValuesUndoMutationFactory','onQueryStart','DateGroupField','markDirty','DataFieldManager','#f4f4f5','UniverSheetsFilter','drillDown','clearExclusiveRangesByGroupId','addDataFieldWithoutUnitInfo','getFieldCountByArea','startCollectChangeset','Set','AddPivotTable','isArray','getPivotTableCellData','var','YearMonthDate','unionPivotViewRange','_refRangeService','broadcastCollectionChange','ClearSelectionAllCommand','getInfo','_subjectViewChange','_localeService','range','createValueField','getMatrix','cellValue','sheets-pivot.config','SetWorksheetColWidthMutation','updateView','sheets-pivot.dateGroup.date','setOptions','substring','columnFields','sheet.mutation.pivot-update-field-source-info','PivotDateGroupFieldDateTypeEnum','InterceptorManager','sheet.command.add-pivot-field'];_0x446a=function(){return _0x29d4b9;};return _0x446a();}(function(_0x561eb7,_0x3a4644){const _0x293807=_0x6997,_0x186551=_0x561eb7();while(!![]){try{const _0x52477b=-parseInt(_0x293807(0x33a))/0x1+parseInt(_0x293807(0x14f))/0x2+parseInt(_0x293807(0x374))/0x3*(parseInt(_0x293807(0x310))/0x4)+-parseInt(_0x293807(0x1cd))/0x5*(parseInt(_0x293807(0x31e))/0x6)+-parseInt(_0x293807(0x164))/0x7+-parseInt(_0x293807(0x73))/0x8+parseInt(_0x293807(0x13f))/0x9;if(_0x52477b===_0x3a4644)break;else _0x186551['push'](_0x186551['shift']());}catch(_0x563afb){_0x186551['push'](_0x186551['shift']());}}}(_0x446a,0x6118f),function(_0x216d76,_0x393811){const _0x5b8339=_0x6997;typeof exports==_0x5b8339(0x304)&&typeof module<'u'?_0x393811(exports,require(_0x5b8339(0x2d3)),require(_0x5b8339(0x1bb)),require(_0x5b8339(0x362)),require(_0x5b8339(0x2bf)),require(_0x5b8339(0x376)),require(_0x5b8339(0x183)),require(_0x5b8339(0x8d)),require(_0x5b8339(0x22f)),require(_0x5b8339(0x12b))):typeof define==_0x5b8339(0x355)&&define[_0x5b8339(0x1c5)]?define([_0x5b8339(0x347),_0x5b8339(0x2d3),_0x5b8339(0x1bb),_0x5b8339(0x362),_0x5b8339(0x2bf),_0x5b8339(0x376),_0x5b8339(0x183),_0x5b8339(0x8d),_0x5b8339(0x22f),_0x5b8339(0x12b)],_0x393811):(_0x216d76=typeof globalThis<'u'?globalThis:_0x216d76||self,_0x393811(_0x216d76['UniverProSheetsPivot']={},_0x216d76[_0x5b8339(0xa0)],_0x216d76['UniverCore'],_0x216d76[_0x5b8339(0x37e)],_0x216d76[_0x5b8339(0xea)],_0x216d76[_0x5b8339(0x376)],_0x216d76[_0x5b8339(0xaf)],_0x216d76[_0x5b8339(0x25b)],_0x216d76['UniverRpc'],_0x216d76['UniverEngineRender']));}(this,function(_0x3acc27,_0x949178,_0x2be92f,_0x5172e4,_0xac1e83,_0x639aa,_0x327f17,_0x2518cd,_0x1a1d34,_0x55d66f){'use strict';const _0x5b4c6d=_0x6997;var _0x47c67d=Object[_0x5b4c6d(0x2f2)],_0x2d74d5=(_0x4cc49d,_0x2d316a,_0x4c3ee0)=>_0x2d316a in _0x4cc49d?_0x47c67d(_0x4cc49d,_0x2d316a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x4c3ee0}):_0x4cc49d[_0x2d316a]=_0x4c3ee0,_0x102d83=(_0xc33abd,_0x6d6cf7,_0x376ff6)=>_0x2d74d5(_0xc33abd,typeof _0x6d6cf7!=_0x5b4c6d(0xe7)?_0x6d6cf7+'':_0x6d6cf7,_0x376ff6);const _0x2a091a=Number[_0x5b4c6d(0x1ba)](0x67f93eb3),_0x45db70=0x10,_0x3008ad=0x1,_0x54e52d='SHEET_PIVOT_TABLE_PLUGIN',_0x549def=0x1,_0x1e0498=_0x5b4c6d(0xca),_0x4d69e8=_0x5b4c6d(0x324),_0x365ed1=_0x5b4c6d(0x388),_0x5b4741=_0x5b4c6d(0x25a),_0x45bcd1=_0x5b4c6d(0x25a),_0xb47cf5=_0x5b4c6d(0x35f),_0x4d9d36=_0x5b4c6d(0x288),_0xd4be27=_0x5b4c6d(0x383),_0xff8e87=_0x5b4c6d(0x1e0),_0x237744=_0x5b4c6d(0x288),_0x49c87c=_0x5b4c6d(0x383),_0x2f6957=_0x5b4c6d(0xc9),_0xd42983=0xe,_0x4f24ee=0x6;var _0x5242d0=(_0x2f7777=>(_0x2f7777[_0x5b4c6d(0x28e)]=_0x5b4c6d(0x93),_0x2f7777[_0x5b4c6d(0x21e)]=_0x5b4c6d(0x321),_0x2f7777))(_0x5242d0||{});const _0x5d52b8={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0xffb05=0x1e,_0x11d583={'b':{'s':0x1,'cl':{'rgb':_0x365ed1}},'l':{'s':0x1,'cl':{'rgb':_0x365ed1}},'r':{'s':0x1,'cl':{'rgb':_0x365ed1}},'t':{'s':0x1,'cl':{'rgb':_0x365ed1}}},_0x41c7a5={'bg':{'rgb':_0x1e0498},'ht':0x2,'vt':0x2,'tb':0x1},_0x196547={'bg':{'rgb':_0x4d69e8},'ht':0x2,'vt':0x2,'tb':0x1},_0x5f2a0b={'rowStyle':{'bg':{'rgb':_0x2f6957},'bd':_0x11d583,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x237744},'bd':null,'cl':{'rgb':_0x49c87c},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x11d583,'bg':{'rgb':_0xff8e87},'vt':0x2},'cornerStyle':{'bd':_0x11d583,'bg':{'rgb':_0xb47cf5},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x11d583,'bg':{'rgb':_0x5b4741},'vt':0x2},'leafStyle':{'bd':_0x11d583,'bg':{'rgb':_0x45bcd1},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x4d9d36},'cl':{'rgb':_0xd4be27},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x11d583,'vt':0x2}};function _0x178e92(_0x2245df,_0x51be87,_0x4560a9){const _0x9a8525=_0x5b4c6d,_0x4d742b=_0x2245df[_0x9a8525(0x177)](_0x2be92f[_0x9a8525(0x126)]),_0x171ecb=_0x4560a9[_0x9a8525(0xd6)]('_');switch(_0x51be87){case _0x949178[_0x9a8525(0x27a)]['Year']:return _0x4d742b['t'](_0x9a8525(0xe2),..._0x171ecb);case _0x949178[_0x9a8525(0x27a)][_0x9a8525(0x28b)]:return _0x4d742b['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x171ecb);case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0x9a8525(0x86)]:return _0x4d742b['t'](_0x9a8525(0x286),..._0x171ecb);case _0x949178[_0x9a8525(0x27a)][_0x9a8525(0x171)]:return _0x4d742b['t'](_0x9a8525(0xcb),..._0x171ecb);case _0x949178[_0x9a8525(0x27a)][_0x9a8525(0x373)]:return _0x4d742b['t']('sheets-pivot.cellDateGroupDisplay.date',..._0x171ecb);case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0x9a8525(0x17a)]:return _0x4d742b['t'](_0x9a8525(0x159),..._0x171ecb);case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0x9a8525(0x130)]:return _0x4d742b['t'](_0x9a8525(0x1ee),..._0x171ecb);case _0x949178[_0x9a8525(0x27a)][_0x9a8525(0x1af)]:return _0x4d742b['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x171ecb);case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0x9a8525(0x266)]:return _0x4d742b['t'](_0x9a8525(0x15e),..._0x171ecb);case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0x9a8525(0x12a)]:return _0x4d742b['t'](_0x9a8525(0x75),..._0x171ecb);}return'';}const _0x1780b9=(_0x5cc52d,_0x21d4c0,_0x246719,_0x1ea778)=>{const _0x4e33e8=_0x5b4c6d;let _0x1aaec9;const _0x47cf13=_0x5cc52d['get'](_0x2be92f['IUniverInstanceService'])['getCurrentUnitForType'](_0x2be92f[_0x4e33e8(0x326)]['UNIVER_SHEET']);if(!_0x47cf13)return null;const _0xa207b8=_0x47cf13[_0x4e33e8(0x2f8)]();let _0x56cd27;if(_0x246719&&(_0x56cd27=_0xa207b8['setValue'](_0x246719)),_0x21d4c0!=null&&_0x21d4c0['v']||(_0x21d4c0==null?void 0x0:_0x21d4c0['v'])===0x0){_0x1aaec9||(_0x1aaec9={});const _0x4ddfb4=_0x3afadf(_0x21d4c0['v']);typeof _0x4ddfb4==_0x4e33e8(0x1b7)?_0x1aaec9['t']=_0x2be92f[_0x4e33e8(0x2f6)]['NUMBER']:typeof _0x4ddfb4==_0x4e33e8(0xd8)&&(_0x1aaec9['t']=_0x2be92f[_0x4e33e8(0x2f6)]['STRING']),_0x1aaec9['v']=_0x4ddfb4;}if((_0x21d4c0!=null&&_0x21d4c0['i']||(_0x21d4c0==null?void 0x0:_0x21d4c0['i'])===0x0)&&(_0x1aaec9||(_0x1aaec9={}),_0x1aaec9['fi']=_0x21d4c0['i']),_0x21d4c0!=null&&_0x21d4c0['s']&&(_0x1aaec9||(_0x1aaec9={}),_0x1aaec9[_0x4e33e8(0xac)]=_0x21d4c0['s']),_0x246719&&(_0x1aaec9||(_0x1aaec9={}),_0x1aaec9['s']=_0x56cd27),_0x1ea778&&_0x1aaec9!=null&&_0x1aaec9['v']&&_0x1aaec9[_0x4e33e8(0xac)]!==_0x949178[_0x4e33e8(0x285)][_0x4e33e8(0xf4)]&&_0x1aaec9[_0x4e33e8(0xac)]!==_0x949178[_0x4e33e8(0x285)]['Subtotal']){const _0x2cc6b7=String(_0x1aaec9['v']),{dateType:_0x2c69b6}=_0x1ea778;_0x1aaec9['v']=_0x178e92(_0x5cc52d,_0x2c69b6,_0x2cc6b7),_0x1aaec9['t']=_0x2be92f['CellValueType'][_0x4e33e8(0x2ed)];}return _0x1aaec9;},_0x3f0e6f=(_0x5064ae,_0x1301cf,_0x57ce10,_0x4f6825)=>{const _0x577a76=_0x5b4c6d;var _0x3bdc0d,_0x24e64a,_0x1d6a21,_0x25b4e7,_0x3da15a,_0x29c02a,_0xa885ae,_0x589573,_0x28565e,_0x5b64a9,_0x37def4,_0x213fe3,_0x22c018,_0x702929;const _0x28965f=_0x57ce10['targetCellInfo'],{cornerView:_0x3925a1,rowView:_0xbbdf3,colView:_0x1c2f9f,dataView:_0x4f26a4,pageView:_0x381ead,formatMap:_0xb51f2e,groupInfo:_0x22cf4b}=_0x1301cf,{row:_0x15d21b,col:_0x46472d}=_0x28965f,_0x40c8e7=new _0x2be92f[(_0x577a76(0x176))](),_0xfb47c4={},_0x88c86b={},_0xe4ab29={},_0x188946={},_0x321bbd={};let _0x1b89ec=_0x15d21b,_0x54a918=_0x46472d;Object[_0x577a76(0x102)](_0x381ead['data'])[_0x577a76(0x36a)](_0x43f196=>{const _0x216786=_0x577a76;Object[_0x216786(0x102)](_0x381ead[_0x216786(0x11f)][Number(_0x43f196)])[_0x216786(0x36a)](_0x4562b4=>{const _0x56f737=_0x216786,_0x6576a7={..._0x381ead[_0x56f737(0x11f)][Number(_0x43f196)][Number(_0x4562b4)]};_0x40c8e7['setValue'](Number(_0x43f196)+_0x1b89ec,Number(_0x4562b4)+_0x54a918,_0x1780b9(_0x5064ae,_0x6576a7,_0x5f2a0b[_0x56f737(0x331)]));});});const _0xb41d6b=Object['keys'](_0x381ead['data'])[_0x577a76(0xad)];_0x1b89ec+=_0xb41d6b+(_0xb41d6b?_0x549def:0x0);const _0x129e62=_0x3925a1[_0x577a76(0x312)](),_0x218c5d=_0x3925a1[_0x577a76(0x345)]();for(let _0x48c4b7=0x0;_0x48c4b7<_0x129e62;_0x48c4b7++)for(let _0x6fc192=0x0;_0x6fc192<_0x218c5d;_0x6fc192++){const _0xb566df={...(_0x24e64a=(_0x3bdc0d=_0x3925a1[_0x577a76(0x11f)])==null?void 0x0:_0x3bdc0d[_0x48c4b7])==null?void 0x0:_0x24e64a[_0x6fc192]};_0xb566df&&((_0x1d6a21=_0xbbdf3[_0x577a76(0x21c)][_0x6fc192])!=null&&_0x1d6a21[_0x577a76(0x170)])&&_0x6fc192===_0x218c5d-0x1&&_0x48c4b7===_0x129e62-0x1&&(_0xb566df['v']=''+_0x4f6825['sheets-pivot.value']),_0x40c8e7['setValue'](_0x48c4b7+_0x1b89ec,_0x6fc192+_0x54a918,_0x1780b9(_0x5064ae,_0xb566df,_0x5f2a0b[_0x577a76(0x12d)]));}for(let _0x244af2=0x0;_0x244af2<_0x3925a1[_0x577a76(0x1c9)][_0x577a76(0xad)];_0x244af2++)_0x3925a1[_0x577a76(0x1c9)][_0x244af2]&&(_0xe4ab29[''+(_0x244af2+_0x54a918)]=_0x3925a1[_0x577a76(0x1c9)][_0x244af2]);_0x54a918+=_0x218c5d;const _0x2789a3=_0x1c2f9f[_0x577a76(0x21c)],_0x2c0b04=_0x1c2f9f[_0x577a76(0x12c)]()>=0x0?_0x1c2f9f['getLastRow']()+0x1:0x0,_0x261028=_0x1c2f9f[_0x577a76(0x254)]()>=0x0?_0x1c2f9f[_0x577a76(0x254)]()+0x1:0x0;for(let _0x45a634=0x0;_0x45a634<_0x261028;_0x45a634++){for(let _0xe139b0=0x0;_0xe139b0<_0x2c0b04;_0xe139b0++){const _0xeb21ed={...(_0x3da15a=(_0x25b4e7=_0x1c2f9f[_0x577a76(0x11f)])==null?void 0x0:_0x25b4e7[_0xe139b0])==null?void 0x0:_0x3da15a[_0x45a634]},_0x2d21f8=(_0x29c02a=_0x2789a3[_0xe139b0])==null?void 0x0:_0x29c02a[_0x577a76(0x37a)],_0x7880a4=_0xb51f2e[_0x2d21f8],_0x50742f=_0x22cf4b[_0x2d21f8];_0xeb21ed&&(_0xeb21ed['v']=_0x306dd9(_0xeb21ed,_0xe139b0===0x0&&((_0xa885ae=_0x1c2f9f['getHeaderMapItem'](_0x45a634+0x1))==null?void 0x0:_0xa885ae[_0x577a76(0x170)]),_0x7880a4,_0x4f6825));let _0x53fee6;_0x7880a4?_0x53fee6={..._0x5f2a0b[_0x577a76(0x29e)],'n':{'pattern':_0x7880a4}}:_0x53fee6={..._0x5f2a0b['colStyle']},_0x40c8e7['setValue'](_0xe139b0+_0x1b89ec,_0x45a634+_0x54a918,_0x1780b9(_0x5064ae,_0xeb21ed,_0x53fee6,_0x50742f));}_0x1c2f9f[_0x577a76(0x1c9)][_0x45a634]&&(_0x88c86b[''+(_0x45a634+_0x54a918)]=_0x1c2f9f[_0x577a76(0x1c9)][_0x45a634]),_0x1c2f9f[_0x577a76(0x21c)][_0x45a634+0x1]&&(_0x321bbd[''+(_0x45a634+_0x1b89ec+0x1)]=_0x1c2f9f['headerMap'][_0x45a634+0x1]);}_0x1b89ec+=_0x129e62;const _0x27a70d=_0xbbdf3[_0x577a76(0x21c)],_0x1fc7a5=_0xbbdf3[_0x577a76(0x12c)]()>=0x0?_0xbbdf3['getLastRow']()+0x1:0x0,_0x31219d=_0xbbdf3[_0x577a76(0x254)]()>=0x0?_0xbbdf3[_0x577a76(0x254)]()+0x1:0x0;for(let _0x51a86f=0x0;_0x51a86f<_0x1fc7a5;_0x51a86f++){for(let _0x252a33=0x0;_0x252a33<_0x31219d;_0x252a33++){const _0x242bd1={...(_0x28565e=(_0x589573=_0xbbdf3[_0x577a76(0x11f)])==null?void 0x0:_0x589573[_0x51a86f])==null?void 0x0:_0x28565e[_0x252a33]},_0x3bb610=(_0x5b64a9=_0x27a70d[_0x252a33])==null?void 0x0:_0x5b64a9['tableFieldId'],_0x23fda5=_0xb51f2e[_0x3bb610],_0x4842de=_0x22cf4b[_0x3bb610];_0x242bd1&&(_0x242bd1['v']=_0x306dd9(_0x242bd1,!0x1,_0x23fda5,_0x4f6825));let _0x371189;_0xbbdf3['info'][_0x51a86f]['level']===_0xbbdf3[_0x577a76(0x345)]()?_0x371189=_0x5f2a0b[_0x577a76(0x33d)]:_0xbbdf3[_0x577a76(0x1c9)][_0x51a86f][_0x577a76(0x20f)]?_0x371189=_0xbbdf3[_0x577a76(0x1c9)][_0x51a86f][_0x577a76(0x329)]===0x0?_0x5f2a0b[_0x577a76(0xc0)]:_0x5f2a0b[_0x577a76(0x2ae)]:_0x371189=_0x5f2a0b[_0x577a76(0x252)],_0x23fda5&&(_0x371189={..._0x371189,'n':{'pattern':_0x23fda5}}),_0x40c8e7[_0x577a76(0x15a)](_0x51a86f+_0x1b89ec,_0x252a33+_0x46472d,_0x1780b9(_0x5064ae,_0x242bd1,_0x371189,_0x4842de));}_0xbbdf3['info'][_0x51a86f]&&(_0xfb47c4[''+(_0x51a86f+_0x1b89ec)]=_0xbbdf3[_0x577a76(0x1c9)][_0x51a86f]),_0xbbdf3[_0x577a76(0x21c)][_0x51a86f]&&(_0x188946[''+(_0x51a86f+_0x46472d)]=_0xbbdf3[_0x577a76(0x21c)][_0x51a86f]);}const _0x4bfb64=_0x4f26a4[_0x577a76(0x312)](),_0x4f2404=_0x4f26a4[_0x577a76(0x345)]();for(let _0xb640e0=0x0;_0xb640e0<_0x4bfb64;_0xb640e0++)for(let _0x4f000a=0x0;_0x4f000a<_0x4f2404;_0x4f000a++){const _0x4c1646={...(_0x213fe3=(_0x37def4=_0x4f26a4[_0x577a76(0x11f)])==null?void 0x0:_0x37def4[_0xb640e0])==null?void 0x0:_0x213fe3[_0x4f000a]};let _0x9ccd7;_0xbbdf3[_0x577a76(0x1c9)][_0xb640e0]['isBottomTotal']?_0x9ccd7=_0xbbdf3[_0x577a76(0x1c9)][_0xb640e0]['level']===0x0?_0x5f2a0b[_0x577a76(0xc0)]:_0x5f2a0b[_0x577a76(0x2ae)]:_0x9ccd7=_0x5f2a0b[_0x577a76(0x33c)];const _0x164625=_0xbbdf3[_0x577a76(0x1c9)][_0xb640e0][_0x577a76(0x2a1)],_0x33432f=_0x1c2f9f[_0x577a76(0x1c9)][_0x4f000a][_0x577a76(0x2a1)],_0x1462be=Math[_0x577a76(0x114)](_0x164625,_0x33432f),_0x35ddca=_0x57ce10['fieldsConfig'][_0x577a76(0x13d)][_0x577a76(0x158)]();let _0x261f58='';_0x1462be<0x0?_0x261f58=(_0x22c018=_0x35ddca[0x0])!=null?_0x22c018:'':_0x261f58=(_0x702929=_0x35ddca[_0x1462be])!=null?_0x702929:'';const _0x410531=_0xb51f2e[_0x261f58];_0x410531&&(_0x9ccd7={..._0x9ccd7,'n':{'pattern':_0x410531}}),_0x40c8e7['setValue'](_0xb640e0+_0x1b89ec,_0x4f000a+_0x54a918,_0x1780b9(_0x5064ae,_0x4c1646,_0x9ccd7));}return{'valueMatrix':_0x40c8e7,'rowInfo':_0xfb47c4,'colInfo':_0x88c86b,'cornerInfo':_0xe4ab29,'rowHeaderMap':_0x188946,'colHeaderMap':_0x321bbd};};function _0x306dd9(_0x1a1a09,_0x5a072c,_0x5a8288,_0x1734d6){const _0x1ff057=_0x5b4c6d;let _0xccc117=_0x1a1a09['v'];_0x5a072c&&(_0xccc117=''+_0x1734d6['sheets-pivot.value']);const _0xc5a347=_0x1a1a09['t']&&(_0x1a1a09['t']&_0x949178['PivotViewCellValueTypeEnum'][_0x1ff057(0x230)])>0x0;if(_0xc5a347&&(_0xccc117=''+_0x1734d6['sheets-pivot.blank']),_0x1a1a09['s']===_0x949178['PivotCellStyleTypeEnum']['Subtotal']){let _0x163747=_0xccc117,_0x35b19e='';_0x949178[_0x1ff057(0xb6)](_0xccc117)&&(_0x163747=_0xccc117[_0x1ff057(0x1fd)],_0x35b19e=_0xccc117['value']);const _0x22341c=_0x5a8288&&!_0xc5a347?_0x2be92f[_0x1ff057(0x343)][_0x1ff057(0x2f0)](_0x5a8288,Number(_0x163747)):_0x163747;_0x35b19e?_0xccc117=_0x22341c+'\x20'+_0x35b19e:_0xccc117=_0x22341c+'\x20'+_0x1734d6[_0x1ff057(0x1d6)];}else _0x1a1a09['s']===_0x949178[_0x1ff057(0x285)][_0x1ff057(0xf4)]&&(_0xccc117=_0xccc117+'\x20'+_0x1734d6[_0x1ff057(0x2cd)]);return _0xccc117;}function _0x3afadf(_0x2fff4d){const _0x5aa46d=_0x5b4c6d;if(_0x949178['isErrorValue'](_0x2fff4d)){const {errorType:_0x350d6e}=_0x2fff4d;switch(_0x350d6e){case _0x949178[_0x5aa46d(0x248)][_0x5aa46d(0x291)]:return _0x5172e4[_0x5aa46d(0x9b)]['DIV_BY_ZERO'];case _0x949178['PivotErrorTypeEnum'][_0x5aa46d(0x241)]:return _0x5172e4[_0x5aa46d(0x9b)][_0x5aa46d(0xed)];case _0x949178[_0x5aa46d(0x248)][_0x5aa46d(0x112)]:return _0x5172e4[_0x5aa46d(0x9b)][_0x5aa46d(0xb2)];case _0x949178['PivotErrorTypeEnum'][_0x5aa46d(0x23f)]:return _0x5172e4[_0x5aa46d(0x9b)][_0x5aa46d(0xb2)];case _0x949178[_0x5aa46d(0x248)][_0x5aa46d(0x103)]:return _0x5172e4[_0x5aa46d(0x9b)]['REF'];}}return _0x2fff4d;}function _0xca17aa(_0x16b02c,_0x102479,_0xd822f8=!0x1,_0x51f0c9=!0x1){const _0x320ede=_0x5b4c6d,{data:_0xc078e8}=_0x102479,_0x1b53b9=_0x102479['getRowCount'](),_0x115f19=_0x102479[_0x320ede(0x345)]();if(_0x1b53b9<=0x0||_0x115f19<=0x0)return[];const _0x15f278=_0x102479['getLastCol'](),_0x44db8f=_0x102479[_0x320ede(0x12c)](),_0x14f096=_0x51f0c9?_0x44db8f>=0x0?_0x44db8f+0x1:0x0:_0x1b53b9,_0x5a4ecf=_0x51f0c9?_0x15f278>=0x0?_0x15f278+0x1:0x0:_0x115f19,{row:_0x550512,col:_0x44f412}=_0x16b02c,_0x3478c9=_0x550512,_0x5889b4=_0x44f412;if(_0xd822f8){const _0x4463dc=[];for(const [_0x52d1f0,_0x1c6dd0]of Object[_0x320ede(0x88)](_0xc078e8))for(const [_0x2d07db,_0x167ae8]of Object['entries'](_0x1c6dd0))_0x4463dc[_0x320ede(0x1cc)](_0x2be92f['cellToRange'](_0x3478c9+Number(_0x52d1f0),_0x5889b4+Number(_0x2d07db)));return _0x4463dc;}else{const _0x2b48a4=_0x51f0c9?_0x14f096>0x0?0x1:0x0:0x1,_0x43eb66=_0x51f0c9?_0x5a4ecf>0x0?0x1:0x0:0x1,_0x365536=_0x550512+_0x14f096-_0x2b48a4,_0x35b3ff=_0x44f412+_0x5a4ecf-_0x43eb66;return[{'startRow':_0x3478c9,'startColumn':_0x5889b4,'endRow':_0x365536,'endColumn':_0x35b3ff}];}}const _0x47449f=_0x5b4c6d(0x165),_0x2a5bb6=_0x5b4c6d(0x215);var _0x357f41=(_0xc630e3=>(_0xc630e3[_0x5b4c6d(0x12e)]=_0x5b4c6d(0x135),_0xc630e3[_0x5b4c6d(0x10c)]=_0x5b4c6d(0x1b9),_0xc630e3[_0x5b4c6d(0x36f)]=_0x5b4c6d(0x30d),_0xc630e3[_0x5b4c6d(0x2ad)]=_0x5b4c6d(0x2ad),_0xc630e3['AddPivotTable']='addPivotTable',_0xc630e3[_0x5b4c6d(0x227)]=_0x5b4c6d(0x101),_0xc630e3['RemovePivotField']='removePivotField',_0xc630e3[_0x5b4c6d(0x2d7)]=_0x5b4c6d(0x212),_0xc630e3[_0x5b4c6d(0xde)]=_0x5b4c6d(0x29c),_0xc630e3[_0x5b4c6d(0x213)]='setPivotSort',_0xc630e3[_0x5b4c6d(0x381)]=_0x5b4c6d(0xce),_0xc630e3['UpdatePivotSource']='updatePivotSource',_0xc630e3['UpdateValuePosition']='updateValuePosition',_0xc630e3['DrillDown']=_0x5b4c6d(0x25c),_0xc630e3[_0x5b4c6d(0xbc)]='setValuePivotFilter',_0xc630e3[_0x5b4c6d(0x1d9)]=_0x5b4c6d(0xe8),_0xc630e3['ResetPivotTable']='resetPivotTable',_0xc630e3))(_0x357f41||{});const _0x22c154={'sheets-pivot.blankValue':_0x5b4c6d(0x18f),'sheets-pivot.columnName':_0x5b4c6d(0x20a),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':_0x5b4c6d(0xda),'sheets-pivot.valueText':_0x5b4c6d(0x105),'sheets-pivot.averageName':_0x5b4c6d(0x243),'sheets-pivot.countName':_0x5b4c6d(0x2d2),'sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x5b4c6d(0x71),'sheets-pivot.productName':_0x5b4c6d(0x113),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':_0x5b4c6d(0x10a),'sheets-pivot.sumName':_0x5b4c6d(0x154),'sheets-pivot.varName':_0x5b4c6d(0x385),'sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':_0x5b4c6d(0xe9),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':'value','sheets-pivot.blank':_0x5b4c6d(0x230),'sheets-pivot.emptyPivot.filter':_0x5b4c6d(0x12e),'sheets-pivot.emptyPivot.row':_0x5b4c6d(0x2bc),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':_0x5b4c6d(0x300)},_0x2a4ef2={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x26e2dc=_0x2be92f[_0x5b4c6d(0x2e5)](_0x5b4c6d(0xd7)),_0xdfc14c=_0x2be92f[_0x5b4c6d(0x95)](_0x5b4c6d(0x2ec));var _0x1f8109=(_0xc5c266=>(_0xc5c266[_0x5b4c6d(0xe3)]='add',_0xc5c266[_0x5b4c6d(0x236)]='delete',_0xc5c266[_0x5b4c6d(0x9c)]=_0x5b4c6d(0x9c),_0xc5c266))(_0x1f8109||{}),_0x1bbb8c=(_0x5d52cb=>(_0x5d52cb[_0x5b4c6d(0x287)]=_0x5b4c6d(0xe3),_0x5d52cb['Set']=_0x5b4c6d(0xe6),_0x5d52cb['Delete']=_0x5b4c6d(0x236),_0x5d52cb))(_0x1bbb8c||{});const _0x11c203={0x0:'G',0x1:'E',0x2:'a',0x3:'P',0x4:'k',0x5:'s',0x6:'V',0x7:'x',0x8:'H',0x9:'Z','W':'0','U':'1','l':'2','t':'3','w':'4','a':'5','e':'6','K':'7','I':'8','O':'9','j':'b','k':'c','m':'d','V':'e','L':'f','N':'g','B':'h','y':'i','g':'j','P':'l','J':'m','n':'n','C':'o','R':'p','s':'q','D':'r','h':'t','r':'u','M':'v','G':'w','H':'y','Q':'z','Y':'A','x':'B','S':'C','f':'D','X':'F','o':'I','T':'J','v':'K','u':'L','c':'M','A':'N','i':'O','Z':'Q','E':'R','z':'S','b':'T','F':'U','q':'W','p':'X','d':'Y'},_0xba6fa9=_0x5b4c6d(0x1a2),_0x2ef776={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x1ad),'handler':()=>!0x0},_0x5b3f8e={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x306),'handler':()=>!0x0},_0x24b222={'type':_0x2be92f[_0x5b4c6d(0x2b3)]['MUTATION'],'id':_0x5b4c6d(0x2ef),'handler':()=>!0x0},_0x4c61bc={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x115),'handler':()=>!0x0},_0x5273d0={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x1b0),'handler':()=>!0x0},_0x3565bf=_0x13b9f4=>{const _0x3d7ccc=_0x5b4c6d;var _0x2b7fd2;return((_0x2b7fd2=_0x13b9f4[_0x3d7ccc(0x205)])==null?void 0x0:_0x2b7fd2[_0x3d7ccc(0x35c)][_0x3d7ccc(0x224)](/\r\n$/,''))||'';};class _0x561254 extends _0x949178[_0x5b4c6d(0x259)]{constructor(_0x188c12,_0x551272){const _0x2a7e44=_0x5b4c6d;super(),_0x102d83(this,'rangeKeyMap',{}),_0x102d83(this,_0x2a7e44(0x35d)),_0x102d83(this,'_host'),(this[_0x2a7e44(0x35d)]=_0x551272,this[_0x2a7e44(0x182)]=_0x188c12);}[_0x5b4c6d(0x10d)](){const _0x225f05=_0x5b4c6d;for(const _0x7d4140 in this[_0x225f05(0x222)]){const _0x4da6c9=this[_0x225f05(0x222)][_0x7d4140],_0x3cd774=_0x4da6c9[_0x225f05(0xa5)]();this[_0x225f05(0xf5)][_0x3cd774]=_0x4da6c9['getId']();}}['getAutoDisplayNameFunction'](){const _0x1e2299=this['_host'];return _0x1c2326['bind'](_0x1e2299);}[_0x5b4c6d(0x1de)](_0x2b2ffe){const _0x1bbd45=_0x5b4c6d,_0x512a0d=this[_0x1bbd45(0x222)][_0x2b2ffe]['rangeKey'];delete this[_0x1bbd45(0x222)][_0x2b2ffe],delete this[_0x1bbd45(0xf5)][_0x512a0d];}[_0x5b4c6d(0x25e)](_0x50ffbe){const _0x4e7aed=_0x5b4c6d;this['dataFields'][_0x50ffbe[_0x4e7aed(0x13b)]()]=_0x50ffbe;}['removeCollectionImp'](_0x1e2022){const _0x3fe4e2=_0x5b4c6d;var _0x73ee52,_0x358fd7;const _0x4241a3=this[_0x3fe4e2(0x182)][_0x3fe4e2(0x1b1)](_0x1e2022);if(_0x4241a3){const {unitId:_0x46b149,subUnitId:_0x2e0e56}=_0x4241a3,_0x593edc=(_0x73ee52=this[_0x3fe4e2(0x182)][_0x3fe4e2(0x290)](_0x46b149,_0x2e0e56,_0x1e2022))==null?void 0x0:_0x73ee52[_0x3fe4e2(0x1fb)];this['_host'][_0x3fe4e2(0x269)]({'token':_0x1e2022,'type':_0x1f8109['delete'],'dataRangeInfo':_0x593edc});}(_0x358fd7=this[_0x3fe4e2(0x28c)](_0x1e2022))==null||_0x358fd7['dispose'](),delete this[_0x3fe4e2(0x307)][_0x1e2022];}[_0x5b4c6d(0xa5)](_0x2148c7,_0x312bda){const {sheetName:_0x2d9d4f,unitId:_0x4863d5,range:_0x4669f7}=_0x2148c7,{startRow:_0x3492f9,endRow:_0x4f7a92}=_0x4669f7;return _0x5172e4['serializeRangeWithSpreadsheet'](_0x4863d5,_0x2d9d4f,{'startRow':_0x3492f9,'endRow':_0x4f7a92,'startColumn':_0x312bda,'endColumn':_0x312bda});}[_0x5b4c6d(0x239)](_0x5afd37){return this['dataFields'][this['rangeKeyMap'][_0x5afd37]];}['setRangeKeyMap'](_0x2cfda4,_0x34b6f9){this['rangeKeyMap'][_0x2cfda4]=_0x34b6f9;}['updateRangeKeyMap'](_0xfbaa92,_0x29d6ef){const _0x1c3936=_0x5b4c6d;this[_0x1c3936(0xf5)][_0x29d6ef]=this[_0x1c3936(0xf5)][_0xfbaa92],delete this[_0x1c3936(0xf5)][_0xfbaa92];}[_0x5b4c6d(0x23e)](_0x23ab8c,_0x134e4f,_0x315a89,_0x5f7da5){const _0x200fc5=_0x5b4c6d,_0x176724=new _0x949178[(_0x200fc5(0x246))](this);_0x176724[_0x200fc5(0x129)](_0x134e4f);const _0x44a32c=[];let _0x36024a=0x0;for(const _0x1317eb of _0x176724[_0x200fc5(0x7e)]){const _0x2f1626=this['getRangeKey'](_0x315a89,_0x36024a),_0x4915e4=this['dataFields'][_0x1317eb];_0x4915e4&&(_0x4915e4[_0x200fc5(0x303)]=_0x2f1626,this['setRangeKeyMap'](_0x2f1626,_0x1317eb),_0x44a32c[_0x200fc5(0x1cc)]({'index':_0x36024a,'dataField':_0x4915e4})),_0x36024a++;}return this['addCollection'](_0x23ab8c,_0x176724,_0x315a89,_0x5f7da5),{'collection':_0x176724,'updateDataFieldList':_0x44a32c};}[_0x5b4c6d(0x295)](_0x5f1f2c,_0x5aa059){const _0x39b805=_0x5b4c6d;return _0x5f1f2c[_0x39b805(0x145)]===_0x2be92f[_0x39b805(0x123)][_0x39b805(0x2f7)]?{'startRow':0x0,'startColumn':_0x5f1f2c[_0x39b805(0x281)],'endRow':_0x5aa059['getRowCount']()-0x1,'endColumn':_0x5f1f2c['endColumn']}:{'startRow':_0x5f1f2c[_0x39b805(0xee)],'startColumn':_0x5f1f2c[_0x39b805(0x281)],'endRow':_0x5f1f2c[_0x39b805(0x87)],'endColumn':_0x5f1f2c[_0x39b805(0x249)]};}[_0x5b4c6d(0x1a6)](_0x52e906){const _0x5d8682=_0x5b4c6d,{sheetName:_0x4eefc4,range:_0x548e54}=_0x52e906,_0x5b5cb4=this[_0x5d8682(0x35d)][_0x5d8682(0xc4)](_0x2be92f[_0x5d8682(0x326)][_0x5d8682(0x150)]),_0x3f8a58=_0x5b5cb4['getSheetBySheetName'](_0x4eefc4),_0x5b5b82=_0x3f8a58['getCellMatrix'](),{startColumn:_0xb32f16,startRow:_0x336a00,endColumn:_0x5dcbfe}=this[_0x5d8682(0x295)](_0x548e54,_0x3f8a58),_0x1b07a8=_0x5b5cb4[_0x5d8682(0x2f8)](),_0xa4312=new _0x949178[(_0x5d8682(0x246))](this);_0xa4312[_0x5d8682(0x289)](_0x52e906);const _0x32aa17=[],_0x451357={};for(let _0x3a6292=_0xb32f16;_0x3a6292<=_0x5dcbfe;_0x3a6292++){const _0x32d34f=_0x5b5b82[_0x5d8682(0x206)](_0x336a00,_0x3a6292),_0x7daf0f=this[_0x5d8682(0xa5)](_0x52e906,_0x3a6292),_0x534b9f=this['getDataFieldByRangeKey'](_0x7daf0f);if(_0x534b9f)_0xa4312[_0x5d8682(0x2da)](_0x534b9f[_0x5d8682(0x13b)](),_0x534b9f[_0x5d8682(0x136)]());else{const _0x1a5009=this[_0x5d8682(0x31c)]();let _0x57d4ce=this[_0x5d8682(0x2d8)](_0x32d34f,_0x1b07a8,_0x451357);_0x949178[_0x5d8682(0x2ee)](_0x57d4ce)&&(_0x57d4ce=_0x2be92f[_0x5d8682(0x343)][_0x5d8682(0x2f0)](_0x57d4ce['f'],Number(_0x57d4ce['v'])));const _0x978e82=this['uniqueDataFieldName'](_0x57d4ce,_0x3a6292),_0x6ba888=new _0x949178['DataField'](_0x1a5009,_0x978e82,_0x949178[_0x5d8682(0x107)](0x3));_0x6ba888[_0x5d8682(0x303)]=_0x7daf0f,this['dataFields'][_0x1a5009]=_0x6ba888,_0xa4312[_0x5d8682(0x2da)](_0x1a5009,_0x978e82),_0x32aa17[_0x5d8682(0x1cc)]({'index':_0x3a6292,'dataField':_0x6ba888});}}return{'updateDataFieldList':_0x32aa17,'collection':_0xa4312};}['_getAutoName'](_0x453579){const _0x41e0c2=_0x5b4c6d;return this[_0x41e0c2(0x182)]['getTextInfo']()[_0x41e0c2(0x1b4)]+'\x20'+_0x2be92f[_0x41e0c2(0x1d7)](_0x453579);}[_0x5b4c6d(0x2b0)](_0x5e8926,_0x31267f){const _0x2efce0=_0x5b4c6d;return _0x5e8926==null||_0x5e8926===''?this[_0x2efce0(0x349)](_0x31267f):String(_0x5e8926);}[_0x5b4c6d(0x28c)](_0x5b8b00){return this['collections'][_0x5b8b00];}[_0x5b4c6d(0x2b9)](_0x480bc8,_0x59366a,_0x2eb4df,_0xa86e00){const _0x24104e=_0x5b4c6d;this[_0x24104e(0x307)][_0x480bc8]=_0x59366a,_0x59366a[_0x24104e(0x289)](_0x2eb4df),this[_0x24104e(0x182)]['broadcastCollectionChange']({'token':_0x480bc8,'type':_0x1f8109[_0x24104e(0xe3)],'dataRangeInfo':_0x2eb4df,'targetCellInfo':_0xa86e00});}[_0x5b4c6d(0xb9)](_0x2c664d,_0x4eb1e9){const _0x48ac3d=_0x5b4c6d,_0x5a7aa3=this[_0x48ac3d(0x28c)](_0x2c664d),_0x4b08af=_0x5a7aa3[_0x48ac3d(0x225)]();let _0x410a97=0x0;for(const _0x1512a6 of _0x4b08af){const _0x1d63f1=_0x5a7aa3[_0x48ac3d(0x181)](_0x1512a6),_0x120d21=this['getRangeKey'](_0x4eb1e9,_0x410a97);this[_0x48ac3d(0x240)](_0x1d63f1[_0x48ac3d(0x303)],_0x120d21),_0x410a97++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x5b4c6d(0x24d)](_0x44d6dc,_0xf7906c){const _0x3e1976=_0x5b4c6d;if(this[_0x3e1976(0x28c)](_0x44d6dc)){const _0x3859f5=this[_0x3e1976(0x172)](_0xf7906c),_0x2ff545=[];for(const _0x4f73aa of _0x3859f5)this[_0x3e1976(0xf5)][_0x4f73aa]!==void 0x0&&_0x2ff545['push'](this['rangeKeyMap'][_0x4f73aa]);const _0x3bd4ff=this[_0x3e1976(0x1ce)](_0x44d6dc),_0x21cada=[],_0x5b0202=new Set(_0x2ff545);for(const _0x327002 of _0x3bd4ff)_0x5b0202['has'](_0x327002)||_0x21cada[_0x3e1976(0x1cc)](_0x327002);return _0x21cada;}}['getMatrixValue'](_0xab45e7,_0x1fbc19,_0x6cea99,_0x2dd41d,_0x1cd167){const _0x268ab8=_0x5b4c6d;return _0x1fbc19&&_0x1fbc19[_0x268ab8(0x206)](_0x2dd41d,_0x1cd167)?_0x1fbc19[_0x268ab8(0x206)](_0x2dd41d,_0x1cd167):_0x6cea99&&_0x6cea99[_0x268ab8(0x206)](_0x2dd41d,_0x1cd167)?_0x6cea99[_0x268ab8(0x206)](_0x2dd41d,_0x1cd167):_0xab45e7[_0x268ab8(0x206)](_0x2dd41d,_0x1cd167);}[_0x5b4c6d(0xbe)](_0x45a07b,_0x1e9e8f,_0x33410d,_0x59bf44){const _0xedd7cc=_0x5b4c6d,_0x20f54c=this[_0xedd7cc(0x222)][_0x45a07b];if(!_0x20f54c)return;const {subUnitId:_0x3de361,range:_0x50ee03,unitId:_0x16c00f}=_0x1e9e8f,_0x58b49c=this[_0xedd7cc(0x35d)][_0xedd7cc(0x2fd)](_0x16c00f);if(!_0x58b49c){console[_0xedd7cc(0x14b)](_0xedd7cc(0x31d));return;}const _0x5e7af6=_0x58b49c[_0xedd7cc(0xc6)](_0x3de361),_0x32a49e=_0x5e7af6[_0xedd7cc(0x314)](),{arrayFormulaCellDataMatrix:_0x543f41,unitDataMatrix:_0x1f4e1b}=_0x59bf44||{},{startRow:_0x4f36ff,startColumn:_0x3312e3,endRow:_0x2024d6}=this[_0xedd7cc(0x295)](_0x50ee03,_0x5e7af6);_0x20f54c[_0xedd7cc(0x2b5)]();const _0x422d4c=_0x58b49c['getStyles'](),_0x430f11={},_0x393e43=this[_0xedd7cc(0x8f)](_0x32a49e,_0x543f41,_0x1f4e1b,_0x4f36ff,_0x3312e3+_0x33410d);let _0x13ec96=this[_0xedd7cc(0x2d8)](_0x393e43,_0x422d4c,_0x430f11);_0x949178['isDateValue'](_0x13ec96)&&(_0x13ec96=_0x2be92f[_0xedd7cc(0x343)]['format'](_0x13ec96['f'],Number(_0x13ec96['v'])));const _0xdfafab=this[_0xedd7cc(0x2b0)](_0x13ec96,_0x3312e3+_0x33410d);_0x20f54c[_0xedd7cc(0x2a7)](_0xdfafab);for(let _0x37d377=_0x4f36ff+0x1;_0x37d377<=_0x2024d6;_0x37d377++){const _0x3e099b=this[_0xedd7cc(0x8f)](_0x32a49e,_0x543f41,_0x1f4e1b,_0x37d377,_0x3312e3+_0x33410d);_0x20f54c[_0xedd7cc(0x30c)](this[_0xedd7cc(0x2d8)](_0x3e099b,_0x422d4c,_0x430f11),_0x37d377-0x1-_0x4f36ff);}}[_0x5b4c6d(0x332)](_0x54ebd5,_0x5cac39,_0x5b273b){const _0x54945c=_0x5b4c6d,{subUnitId:_0x2a4767,range:_0x189e1f,unitId:_0x130f21}=_0x5b273b,_0x162faa=this['_univerInstanceService']['getUnit'](_0x130f21);if(!_0x162faa){console[_0x54945c(0x14b)](_0x54945c(0x31d));return;}const _0x3c037b=_0x162faa[_0x54945c(0xc6)](_0x2a4767),_0x34db1a=_0x3c037b[_0x54945c(0x314)](),{startRow:_0x58cea0,startColumn:_0x1b1f90,endRow:_0x2fcf33}=this[_0x54945c(0x295)](_0x189e1f,_0x3c037b),_0x4ce0bc=_0x162faa[_0x54945c(0x2f8)](),_0x359984={};for(const {dataField:_0x2be9ca,index:_0x25a012}of _0x5cac39){_0x2be9ca[_0x54945c(0x2b5)]();const _0x325a71=this[_0x54945c(0x8f)](_0x34db1a,void 0x0,void 0x0,_0x58cea0,_0x1b1f90+_0x25a012);let _0x5ad4e8=this['adjustSheetCellData'](_0x325a71,_0x4ce0bc,_0x359984);_0x949178[_0x54945c(0x2ee)](_0x5ad4e8)&&(_0x5ad4e8=_0x2be92f[_0x54945c(0x343)][_0x54945c(0x2f0)](_0x5ad4e8['f'],Number(_0x5ad4e8['v'])));const _0x39fac2=this[_0x54945c(0x2b0)](_0x5ad4e8,_0x1b1f90+_0x25a012);_0x2be9ca[_0x54945c(0x2a7)](_0x39fac2);}_0x54ebd5['updateAllDisplayName']();for(let _0x226880=_0x58cea0+0x1;_0x226880<=_0x2fcf33;_0x226880++)for(const {index:_0x371f44,dataField:_0x5bfa0e}of _0x5cac39){const _0x28fcfc=_0x34db1a[_0x54945c(0x206)](_0x226880,_0x1b1f90+_0x371f44);_0x5bfa0e[_0x54945c(0x30c)](this[_0x54945c(0x2d8)](_0x28fcfc,_0x4ce0bc,_0x359984),_0x226880-0x1-_0x58cea0);}_0x54ebd5['setDataRecordCount'](_0x2fcf33-_0x58cea0);}['getRangeKeyList'](_0x3eec46){const _0x10e0f2=_0x5b4c6d,{range:_0x3d7b14}=_0x3eec46,{startColumn:_0x5d11e3,endColumn:_0x5df705}=_0x3d7b14,_0x268933=[];for(let _0x8282c9=_0x5d11e3;_0x8282c9<=_0x5df705;_0x8282c9++)_0x268933['push'](this[_0x10e0f2(0xa5)](_0x3eec46,_0x8282c9));return _0x268933;}[_0x5b4c6d(0x2d8)](_0x52c3b6,_0xc116de,_0x1324b5){const _0x5b1ba5=_0x5b4c6d;if(_0x52c3b6){const {s:_0x20298c,v:_0x104bbb,t:_0x5e871f,p:_0x2f9396}=_0x52c3b6;if(_0x2f9396)return _0x3565bf(_0x2f9396);const _0x2a5d32=_0xc116de['get'](_0x20298c);if(_0x2a5d32&&_0x5e871f===_0x2be92f[_0x5b1ba5(0x2f6)][_0x5b1ba5(0x250)]&&_0x2a5d32['n']){const {pattern:_0x568420}=_0x2a5d32['n'];_0x1324b5[_0x568420]||(_0x1324b5[_0x568420]=_0x2be92f['numfmt'][_0x5b1ba5(0x26b)](_0x568420));const _0x1f7980=_0x1324b5[_0x568420],_0xaab0ac=_0x1f7980['isDate'];if(_0x1f7980[_0x5b1ba5(0x84)])return String(_0x104bbb);if(_0xaab0ac)return{'v':_0x104bbb,'f':_0x568420};}if(_0x5e871f===_0x2be92f[_0x5b1ba5(0x2f6)][_0x5b1ba5(0x250)])return Number(_0x104bbb);if(_0x5e871f===_0x2be92f[_0x5b1ba5(0x2f6)][_0x5b1ba5(0x2ed)]||_0x5e871f===_0x2be92f['CellValueType'][_0x5b1ba5(0x31f)])return String(_0x104bbb);if(_0x5e871f===void 0x0){const _0x191002=Number(_0x104bbb);if(!Number[_0x5b1ba5(0x18a)](_0x191002)&&String(_0x191002)===_0x104bbb)return _0x191002;}return _0x104bbb!=null?_0x104bbb:null;}else return null;}[_0x5b4c6d(0x1f1)](_0x1bf3cf){const _0xccb426=_0x5b4c6d,{sheetName:_0x4b4f38,range:_0x2be9c4,unitId:_0x157ada}=_0x1bf3cf,_0x125819=this[_0xccb426(0x35d)]['getUnit'](_0x157ada);if(!_0x125819)return console['error']('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0x203683=_0x125819['getSheetBySheetName'](_0x4b4f38),_0x3c1805=_0x203683[_0xccb426(0x314)](),{startRow:_0x34e00e,startColumn:_0x2015e6,endRow:_0x150969,endColumn:_0x372106}=this[_0xccb426(0x295)](_0x2be9c4,_0x203683),_0xdeecaa=_0x125819[_0xccb426(0x2f8)](),_0x5dc15b=[],_0x2fc87b=[],_0x200044={};for(let _0x493f87=_0x34e00e;_0x493f87<=_0x150969;_0x493f87++){const _0x5990d0=[];for(let _0x166bbc=_0x2015e6;_0x166bbc<=_0x372106;_0x166bbc++){const _0x5dd7b5=_0x3c1805[_0xccb426(0x206)](_0x493f87,_0x166bbc);_0x493f87===_0x34e00e?_0x5dc15b[_0xccb426(0x1cc)](_0x5dd7b5==null?null:String(_0x5dd7b5['v'])):_0x5990d0['push'](this[_0xccb426(0x2d8)](_0x5dd7b5,_0xdeecaa,_0x200044));}_0x2fc87b[_0xccb426(0x1cc)](_0x5990d0);}return{'header':_0x5dc15b,'data':_0x2fc87b};}['toJSON'](){const _0x2682d9=_0x5b4c6d;return super[_0x2682d9(0x120)]();}['fromJSON'](_0x56f95c){const _0x3a1724=_0x5b4c6d;super[_0x3a1724(0x129)](_0x56f95c),this['initDataRanges']();}['dispose'](){const _0x1b69d5=_0x5b4c6d;super['dispose'](),this[_0x1b69d5(0xf5)]={},this[_0x1b69d5(0x182)]=null;}}const _0x2cce0b=_0xa4536c=>{const _0x4011bd=_0x5b4c6d,{targetCellInfo:_0x9f288a}=_0xa4536c,{matrixCache:_0x5352ca,rangesCache:_0x5a2528}=_0x28cda4({'filter':_0x4011bd(0x12e),'row':_0x4011bd(0x2bc),'column':_0x4011bd(0x16e),'values':_0x4011bd(0x300)},_0x9f288a),_0x2b47ef=new _0x2be92f[(_0x4011bd(0x176))]();return _0x5352ca[_0x4011bd(0x2eb)]((_0x46204c,_0xd3ef2c,_0x4b0487)=>{_0x2b47ef['setValue'](_0x46204c,_0xd3ef2c,_0x4b0487);}),{'matrix':_0x2b47ef,'rangesCache':_0x5a2528};},_0x2f5866=_0x33c1f7=>{const _0x228f59=_0x5b4c6d;let _0x51d368;if(_0x33c1f7!=null&&_0x33c1f7['v']||(_0x33c1f7==null?void 0x0:_0x33c1f7['v'])===0x0){_0x51d368||(_0x51d368={});const _0x39b83a=_0x3afadf(_0x33c1f7['v']);typeof _0x39b83a==_0x228f59(0x1b7)?_0x51d368['t']=_0x2be92f[_0x228f59(0x2f6)][_0x228f59(0x250)]:typeof _0x39b83a==_0x228f59(0xd8)&&(_0x51d368['t']=_0x2be92f[_0x228f59(0x2f6)][_0x228f59(0x2ed)]),_0x51d368['v']=_0x39b83a;}return _0x51d368;},_0x1c2b95=(_0x47085d,_0x50d200,_0xaa3a58)=>{const _0xcacc3f=_0x5b4c6d;var _0x24622b,_0x4581ec,_0x1c8e8c,_0x1038a3,_0x2c5021,_0x7103bd,_0x436ed3,_0x51d878,_0x56e026,_0x1c43f0,_0x2df7bb,_0x58f8a7;const {cornerView:_0x518a53,rowView:_0xd7cd5e,colView:_0x24f15d,dataView:_0x380f92,pageView:_0x1516bf,formatMap:_0x5ce6b4}=_0x47085d,{row:_0x1a2ac3,col:_0x41d00a}=_0x50d200,_0x8107c6=new _0x2be92f[(_0xcacc3f(0x176))]();let _0x2d591f=_0x1a2ac3,_0x27d09b=_0x41d00a;Object['keys'](_0x1516bf[_0xcacc3f(0x11f)])[_0xcacc3f(0x36a)](_0x1ab962=>{const _0x4cb1ed=_0xcacc3f;Object[_0x4cb1ed(0x102)](_0x1516bf[_0x4cb1ed(0x11f)][Number(_0x1ab962)])[_0x4cb1ed(0x36a)](_0x3f8d37=>{const _0x2867a9=_0x4cb1ed,_0x34b267={..._0x1516bf[_0x2867a9(0x11f)][Number(_0x1ab962)][Number(_0x3f8d37)]};_0x8107c6[_0x2867a9(0x15a)](Number(_0x1ab962)+_0x2d591f,Number(_0x3f8d37)+_0x27d09b,_0x2f5866(_0x34b267));});});const _0xb2ac7b=Object[_0xcacc3f(0x102)](_0x1516bf[_0xcacc3f(0x11f)])[_0xcacc3f(0xad)];_0x2d591f+=_0xb2ac7b+(_0xb2ac7b?_0x549def:0x0);const _0x4a8f66=_0x518a53[_0xcacc3f(0x312)](),_0xbd8bca=_0x518a53[_0xcacc3f(0x345)]();for(let _0x2a6537=0x0;_0x2a6537<_0x4a8f66;_0x2a6537++)for(let _0x23a9c3=0x0;_0x23a9c3<_0xbd8bca;_0x23a9c3++){const _0x56b69f={...(_0x4581ec=(_0x24622b=_0x518a53[_0xcacc3f(0x11f)])==null?void 0x0:_0x24622b[_0x2a6537])==null?void 0x0:_0x4581ec[_0x23a9c3]};_0x56b69f&&((_0x1c8e8c=_0xd7cd5e[_0xcacc3f(0x21c)][_0x23a9c3])!=null&&_0x1c8e8c[_0xcacc3f(0x170)])&&_0x23a9c3===_0xbd8bca-0x1&&_0x2a6537===_0x4a8f66-0x1&&(_0x56b69f['v']=''+_0xaa3a58['sheets-pivot.value']),_0x8107c6[_0xcacc3f(0x15a)](_0x2a6537+_0x2d591f,_0x23a9c3+_0x27d09b,_0x2f5866(_0x56b69f));}_0x27d09b+=_0xbd8bca;const _0x35a93d=_0x24f15d[_0xcacc3f(0x21c)],_0x5254b5=_0x24f15d[_0xcacc3f(0x12c)]()>=0x0?_0x24f15d['getLastRow']()+0x1:0x0,_0x9c73c1=_0x24f15d[_0xcacc3f(0x254)]()>=0x0?_0x24f15d[_0xcacc3f(0x254)]()+0x1:0x0;for(let _0x178f8d=0x0;_0x178f8d<_0x9c73c1;_0x178f8d++)for(let _0x4a82df=0x0;_0x4a82df<_0x5254b5;_0x4a82df++){const _0x59df4b={...(_0x2c5021=(_0x1038a3=_0x24f15d[_0xcacc3f(0x11f)])==null?void 0x0:_0x1038a3[_0x178f8d])==null?void 0x0:_0x2c5021[_0x4a82df]},_0x73c22f=(_0x7103bd=_0x35a93d[_0x178f8d])==null?void 0x0:_0x7103bd[_0xcacc3f(0x37a)],_0x29fea5=_0x5ce6b4[_0x73c22f];_0x59df4b&&(_0x59df4b['v']=_0x306dd9(_0x59df4b,_0x178f8d===0x0&&((_0x436ed3=_0x24f15d[_0xcacc3f(0x251)](_0x4a82df+0x1))==null?void 0x0:_0x436ed3['isValue']),_0x29fea5,_0xaa3a58)),_0x8107c6[_0xcacc3f(0x15a)](_0x178f8d+_0x2d591f,_0x4a82df+_0x27d09b,_0x2f5866(_0x59df4b));}_0x2d591f+=_0x4a8f66;const _0x437834=_0xd7cd5e[_0xcacc3f(0x21c)],_0x26aaf6=_0xd7cd5e[_0xcacc3f(0x12c)]()>=0x0?_0xd7cd5e[_0xcacc3f(0x12c)]()+0x1:0x0,_0x508013=_0xd7cd5e[_0xcacc3f(0x254)]()>=0x0?_0xd7cd5e['getLastCol']()+0x1:0x0;for(let _0xf09f3e=0x0;_0xf09f3e<_0x26aaf6;_0xf09f3e++)for(let _0x345373=0x0;_0x345373<_0x508013;_0x345373++){const _0x83c382={...(_0x56e026=(_0x51d878=_0xd7cd5e[_0xcacc3f(0x11f)])==null?void 0x0:_0x51d878[_0xf09f3e])==null?void 0x0:_0x56e026[_0x345373]},_0x57d37d=(_0x1c43f0=_0x437834[_0x345373])==null?void 0x0:_0x1c43f0[_0xcacc3f(0x37a)],_0x52e3b8=_0x5ce6b4[_0x57d37d];_0x83c382&&(_0x83c382['v']=_0x306dd9(_0x83c382,!0x1,_0x52e3b8,_0xaa3a58)),_0x8107c6[_0xcacc3f(0x15a)](_0xf09f3e+_0x2d591f,_0x345373+_0x41d00a,_0x2f5866(_0x83c382));}const _0x4a75a3=_0x380f92[_0xcacc3f(0x312)](),_0x4b8178=_0x380f92[_0xcacc3f(0x345)]();for(let _0x50d949=0x0;_0x50d949<_0x4a75a3;_0x50d949++)for(let _0x427ce5=0x0;_0x427ce5<_0x4b8178;_0x427ce5++){const _0x139dd2={...(_0x58f8a7=(_0x2df7bb=_0x380f92[_0xcacc3f(0x11f)])==null?void 0x0:_0x2df7bb[_0x50d949])==null?void 0x0:_0x58f8a7[_0x427ce5]};_0x8107c6[_0xcacc3f(0x15a)](_0x50d949+_0x2d591f,_0x427ce5+_0x27d09b,_0x2f5866(_0x139dd2));}return _0x8107c6;},_0x52d9c0=_0x3b412d=>{const _0x340bf8=_0x5b4c6d,{view:_0x2ce44b,targetCellInfo:_0x4fa3d9,isEmpty:_0x4f9bda,textInfo:_0x2c66ef}=_0x3b412d;if(_0x4f9bda)return _0x2cce0b(_0x3b412d);const {pageView:_0x448837,cornerView:_0x3534ed,rowView:_0x989978,colView:_0x24382d,dataView:_0x305591}=_0x2ce44b,_0x4b7e4a=_0xca17aa(_0x4fa3d9,_0x448837,!0x0),_0x35d6ff=_0x448837['lastRow']>=0x0?_0x448837[_0x340bf8(0x308)]+0x1:0x0,_0x19eb4a=_0x3534ed[_0x340bf8(0x312)](),_0x32804a=_0x3534ed['getColCount'](),_0x36130f=_0x4b7e4a['length']>0x0?_0x549def:0x0,_0x5801ae=_0xca17aa({'row':_0x4fa3d9[_0x340bf8(0x178)]+_0x35d6ff+_0x36130f,'col':_0x4fa3d9[_0x340bf8(0x320)]},_0x3534ed,!0x1,!0x1),_0x1f52cb=_0xca17aa({'row':_0x4fa3d9[_0x340bf8(0x178)]+_0x35d6ff+_0x36130f+_0x19eb4a,'col':_0x4fa3d9[_0x340bf8(0x320)]},_0x989978,!0x1,!0x0),_0x228bbf=_0xca17aa({'row':_0x4fa3d9['row']+_0x35d6ff+_0x36130f,'col':_0x4fa3d9[_0x340bf8(0x320)]+_0x32804a},_0x24382d,!0x1,!0x0),_0x513ad8=_0xca17aa({'row':_0x4fa3d9[_0x340bf8(0x178)]+_0x35d6ff+_0x36130f+_0x19eb4a,'col':_0x4fa3d9[_0x340bf8(0x320)]+_0x32804a},_0x305591,!0x1,!0x1),_0x5787a4={'rowRanges':_0x1f52cb,'colRanges':_0x228bbf,'cornerRanges':_0x5801ae,'dataRanges':_0x513ad8,'pageRanges':_0x4b7e4a};return{'matrix':_0x1c2b95(_0x2ce44b,_0x4fa3d9,_0x2c66ef),'rangesCache':_0x5787a4};};var _0x36efc1=Object[_0x5b4c6d(0x2f4)],_0x1af19a=(_0xa96a77,_0x10ad42,_0x4a3542,_0x580e78)=>{const _0x3f4bf7=_0x5b4c6d;for(var _0x2a6aaf=_0x580e78>0x1?void 0x0:_0x580e78?_0x36efc1(_0x10ad42,_0x4a3542):_0x10ad42,_0x229156=_0xa96a77[_0x3f4bf7(0xad)]-0x1,_0x3a6d74;_0x229156>=0x0;_0x229156--)(_0x3a6d74=_0xa96a77[_0x229156])&&(_0x2a6aaf=_0x3a6d74(_0x2a6aaf)||_0x2a6aaf);return _0x2a6aaf;},_0xafd9a=(_0x270bc7,_0x22dc02)=>(_0x5c70ec,_0x217260)=>_0x22dc02(_0x5c70ec,_0x217260,_0x270bc7);_0x3acc27['SheetsPivotDataSourceModel']=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x264b9c,_0x8df36f,_0x597286,_0x5780e5,_0x445e97,_0x551025){const _0x1e3fa7=_0x5b4c6d;super(),_0x102d83(this,_0x1e3fa7(0x14c),new Map()),_0x102d83(this,_0x1e3fa7(0x98),new Map()),_0x102d83(this,_0x1e3fa7(0x22b),new Map()),_0x102d83(this,'_textInfo'),_0x102d83(this,_0x1e3fa7(0x33b),new _0x639aa[(_0x1e3fa7(0x1e2))]()),_0x102d83(this,_0x1e3fa7(0xa4),this['_collectionChange$']['asObservable']()),_0x102d83(this,_0x1e3fa7(0xfb),new _0x639aa[(_0x1e3fa7(0x1e2))]()),_0x102d83(this,'viewData$',this[_0x1e3fa7(0xfb)][_0x1e3fa7(0xcf)]()),_0x102d83(this,_0x1e3fa7(0x18e),new _0x639aa[(_0x1e3fa7(0x1e2))]()),_0x102d83(this,'fieldsCollectionChange$',this['_fieldsCollectionChange$'][_0x1e3fa7(0xcf)]()),_0x102d83(this,'_dataFieldManagerCollection',new Map()),_0x102d83(this,'needSameDeleteModel',[]),_0x102d83(this,'_queryingMap',new Map()),(this[_0x1e3fa7(0x214)]=_0x264b9c,this[_0x1e3fa7(0x35d)]=_0x8df36f,this['_lifecycleService']=_0x597286,this[_0x1e3fa7(0x1d3)]=_0x5780e5,this[_0x1e3fa7(0x2c6)]=_0x445e97,this[_0x1e3fa7(0x2ca)]=_0x551025,this[_0x1e3fa7(0x322)]());}[_0x5b4c6d(0xf7)](){const _0x4cf2dc=_0x5b4c6d;return this[_0x4cf2dc(0xf9)]?this[_0x4cf2dc(0xf9)]:_0x22c154;}['setTextInfo'](_0x46b3b2){const _0x9d1e01=_0x5b4c6d;this[_0x9d1e01(0xf9)]=_0x46b3b2;}[_0x5b4c6d(0xb9)](_0x24be4e){const _0x54d171=_0x5b4c6d;var _0xbffa07;const {from:_0x312e2e,to:_0x25a74b,unitId:_0xa9aec7,fromRange:_0xd7db41,toRange:_0xf15804}=_0x24be4e;if(_0x312e2e&&_0x25a74b){const _0x17298b=this[_0x54d171(0x2c2)](_0xa9aec7),_0x32d3bf=this[_0x54d171(0x14c)][_0x54d171(0x177)](_0xa9aec7),_0x42638f=(_0xbffa07=this[_0x54d171(0x35d)][_0x54d171(0x2fd)](_0xa9aec7))==null?void 0x0:_0xbffa07[_0x54d171(0xc6)](_0x25a74b[_0x54d171(0x19f)]);if(!_0x32d3bf||!_0x42638f)return;const _0x208315=_0x42638f==null?void 0x0:_0x42638f['getName']();for(const [_0x143645,_0xd5e0d0]of _0x32d3bf[_0x54d171(0x88)]())for(const [_0x3f1053,_0x594558]of _0xd5e0d0[_0x54d171(0x88)]()){const {sourceRangeInfo:_0x3161f6}=_0x594558;if(_0x3161f6[_0x54d171(0x2d0)]===_0xa9aec7&&_0x3161f6[_0x54d171(0x19f)]===_0x312e2e[_0x54d171(0x19f)]&&_0x2be92f[_0x54d171(0x337)][_0x54d171(0xdd)](_0xd7db41,_0x3161f6['range'])){const _0x3e4497={'row':_0x3161f6[_0x54d171(0x26e)][_0x54d171(0xee)]-_0xd7db41[_0x54d171(0xee)],'col':_0x3161f6['range'][_0x54d171(0x281)]-_0xd7db41[_0x54d171(0x281)]},_0xc81f00={'unitId':_0xa9aec7,'subUnitId':_0x25a74b[_0x54d171(0x19f)],'sheetName':_0x208315,'range':{'startRow':_0xf15804[_0x54d171(0xee)]+_0x3e4497['row'],'endRow':_0xf15804[_0x54d171(0xee)]+_0x3e4497[_0x54d171(0x178)]+_0x3161f6[_0x54d171(0x26e)][_0x54d171(0x87)]-_0x3161f6[_0x54d171(0x26e)]['startRow'],'startColumn':_0xf15804[_0x54d171(0x281)]+_0x3e4497['col'],'endColumn':_0xf15804['startColumn']+_0x3e4497[_0x54d171(0x320)]+_0x3161f6[_0x54d171(0x26e)][_0x54d171(0x249)]-_0x3161f6[_0x54d171(0x26e)][_0x54d171(0x281)]}};_0x17298b['handleMoveRange'](_0x3f1053,_0xc81f00);const _0x21875e={..._0x594558,'sourceRangeInfo':_0xc81f00};this['_updateModelCache'](_0xa9aec7,_0x25a74b[_0x54d171(0x19f)],_0x3f1053,_0x21875e),this[_0x54d171(0x269)]({'unitId':_0xa9aec7,'token':_0x3f1053,'type':_0x1f8109[_0x54d171(0x9c)],'oldSourceRangeInfo':_0x3161f6,'dataRangeInfo':_0xc81f00,'targetCellInfo':_0x594558[_0x54d171(0x282)]}),this['updateConfig']({'unitId':_0xa9aec7,'subUnitId':_0x25a74b[_0x54d171(0x19f)],'oldSubUnitId':_0x143645,'pivotTableId':_0x3f1053,'pivotTableConfig':_0x21875e,'collectionConfig':_0x17298b[_0x54d171(0x120)]()});}}}}[_0x5b4c6d(0x269)](_0x4cecea){const _0x3c9514=_0x5b4c6d;this[_0x3c9514(0x33b)]['next'](_0x4cecea);}[_0x5b4c6d(0x2c2)](_0x1e3b35){const _0x1afcaa=_0x5b4c6d;let _0x59a68e=this['_dataFieldManagerCollection'][_0x1afcaa(0x177)](_0x1e3b35);return _0x59a68e||(_0x59a68e=new _0x561254(this,this[_0x1afcaa(0x35d)]),this[_0x1afcaa(0x151)][_0x1afcaa(0xe6)](_0x1e3b35,_0x59a68e)),_0x59a68e;}[_0x5b4c6d(0x28c)](_0x1d2945,_0x4b815d){const _0x5e9077=_0x5b4c6d;return this[_0x5e9077(0x2c2)](_0x1d2945)['collections'][_0x4b815d];}[_0x5b4c6d(0x24d)](_0x5bea2a,_0x4302dd,_0x213a4d){const _0x490236=_0x5b4c6d;return this[_0x490236(0x2c2)](_0x5bea2a)[_0x490236(0x24d)](_0x4302dd,_0x213a4d);}[_0x5b4c6d(0x1f7)](_0x216b77,_0x342c27){const _0x243b2a=_0x5b4c6d;let _0x34ffbe=this[_0x243b2a(0x14c)]['get'](_0x216b77);_0x34ffbe||(_0x34ffbe=new Map(),this[_0x243b2a(0x14c)][_0x243b2a(0xe6)](_0x216b77,_0x34ffbe));let _0x1712b1=_0x34ffbe[_0x243b2a(0x177)](_0x342c27);return _0x1712b1||(_0x1712b1=new Map(),_0x34ffbe['set'](_0x342c27,_0x1712b1)),_0x1712b1;}['_updateModelCache'](_0x4d945a,_0x11370c,_0xab4ea1,_0x2dc987){const _0x370541=_0x5b4c6d;this['_ensurePivotMap'](_0x4d945a,_0x11370c)[_0x370541(0xe6)](_0xab4ea1,_0x2dc987);}[_0x5b4c6d(0x318)](_0x347e49,_0x43ef24,_0x561ac7){const _0x573c0a=_0x5b4c6d;var _0x499b39,_0x3dafe2,_0x5e8fa6,_0x84d0ac;((_0x3dafe2=(_0x499b39=this[_0x573c0a(0x14c)][_0x573c0a(0x177)](_0x347e49))==null?void 0x0:_0x499b39['get'](_0x43ef24))==null?void 0x0:_0x3dafe2[_0x573c0a(0x177)](_0x561ac7))&&((_0x84d0ac=(_0x5e8fa6=this[_0x573c0a(0x14c)]['get'](_0x347e49))==null?void 0x0:_0x5e8fa6['get'](_0x43ef24))==null||_0x84d0ac[_0x573c0a(0x236)](_0x561ac7));}[_0x5b4c6d(0xc5)](_0xe3a432,_0x52ce12){const _0x132467=_0x5b4c6d;this['_pivotTableInstanceCache'][_0x132467(0xe6)](_0xe3a432,_0x52ce12);}[_0x5b4c6d(0x35e)](_0x14b411){const _0x3f1200=_0x5b4c6d;this[_0x3f1200(0x98)]['delete'](_0x14b411);}['_ensureViewDataMap'](_0x25fcf1,_0x146dc5){const _0x5421f3=_0x5b4c6d;let _0x154772=this['_viewData']['get'](_0x25fcf1);_0x154772||(_0x154772=new Map(),this[_0x5421f3(0x22b)][_0x5421f3(0xe6)](_0x25fcf1,_0x154772));let _0x514336=_0x154772['get'](_0x146dc5);return _0x514336||(_0x514336=new Map(),_0x154772['set'](_0x146dc5,_0x514336)),_0x514336;}[_0x5b4c6d(0x366)](_0xbc4005){const _0x2d9308=_0x5b4c6d,{unitId:_0x19fb0b,subUnitId:_0x4a2b95,pivotTableId:_0x2dd756,pivotTableConfig:_0x13f893,collectionConfig:_0x932dc5}=_0xbc4005,_0x435946={'unitId':_0x19fb0b,'subUnitId':_0x4a2b95,'oldSubUnitId':_0x4a2b95,'pivotTableId':_0x2dd756,'pivotTableConfig':_0x13f893,'collectionConfig':_0x932dc5};this[_0x2d9308(0x2c6)][_0x2d9308(0x35b)](_0x4c61bc['id'],_0x435946,{'onlyLocal':!0x0});}[_0x5b4c6d(0x274)](_0x3011c1,_0x550bbc,_0x24b1a7,_0x3db509,_0x26f17d,_0x5551a3,_0x27ec70,_0x400b30=!0x1){const _0x578ea8=_0x5b4c6d;var _0x84bbe3;this['_commandService'][_0x578ea8(0x35b)](_0x24b222['id'],{'single':{'unitId':_0x3011c1,'subUnitId':_0x550bbc,'type':_0x24b1a7,'pivotTableId':_0x3db509,'view':_0x26f17d,'pivotConfig':_0x5551a3},'collectionConfig':{[_0x3011c1]:_0x27ec70}},{'onlyLocal':!0x0});const _0x3b27aa=!!((_0x84bbe3=this[_0x578ea8(0x1c4)](_0x3db509))!=null&&_0x84bbe3[_0x578ea8(0x121)]()),_0x21206c=this[_0x578ea8(0x290)](_0x3011c1,_0x550bbc,_0x3db509);_0x21206c&&this[_0x578ea8(0x1ab)]({'view':_0x26f17d,'pivotTableId':_0x3db509,'textInfo':this['getTextInfo'](),'isEmpty':_0x3b27aa,'targetCellInfo':_0x21206c[_0x578ea8(0x282)]},_0x400b30);}[_0x5b4c6d(0x1ab)](_0x36e83d,_0x5df546){const _0x1497ad=_0x5b4c6d,{targetCellInfo:_0x573a84,pivotTableId:_0x24b28e}=_0x36e83d,{unitId:_0xaf8e66,subUnitId:_0x34c833}=_0x573a84,_0x55f807=this[_0x1497ad(0x21d)](_0xaf8e66,_0x34c833),_0x25d036=_0x55f807['get'](_0x24b28e);let _0x2e8690,_0x5dbbcf;_0x25d036&&(_0x2e8690=_0x25d036[_0x1497ad(0x83)],_0x5dbbcf=_0x25d036[_0x1497ad(0x160)]);const {rangesCache:_0x4f131e,matrix:_0x10a89d}=_0x52d9c0(_0x36e83d);_0x55f807[_0x1497ad(0xe6)](_0x24b28e,{'rangeCache':_0x4f131e,'matrix':_0x10a89d,'oldMatrix':_0x5dbbcf,'oldRangeCache':_0x2e8690}),_0x5df546||this[_0x1497ad(0xfb)][_0x1497ad(0x19b)]({'unitId':_0xaf8e66,'subUnitId':_0x34c833,'pivotTableId':_0x24b28e});}[_0x5b4c6d(0x302)](_0x3ff816,_0x2da83d,_0x1f8da1,_0x18bdc4,_0x20b25a){const _0x34c00f=_0x5b4c6d;this[_0x34c00f(0x24e)](_0x3ff816,_0x2da83d,_0x1f8da1,_0x20b25a),this[_0x34c00f(0xc5)](_0x1f8da1,_0x18bdc4);}[_0x5b4c6d(0x32f)](_0xccabdf,_0xa6fbb8,_0x595d66){const _0x1064bc=_0x5b4c6d,_0x329169=this[_0x1064bc(0x2c2)](_0xccabdf);_0x329169[_0x1064bc(0x1ce)](_0x595d66)[_0x1064bc(0x36a)](_0x24421d=>{const _0xb64f9e=_0x1064bc;_0x329169[_0xb64f9e(0x1de)](_0x24421d);}),this[_0x1064bc(0x2be)](_0xccabdf,_0x595d66),this[_0x1064bc(0x318)](_0xccabdf,_0xa6fbb8,_0x595d66),this[_0x1064bc(0x35e)](_0x595d66);}[_0x5b4c6d(0x2d1)](_0x52e99f,_0x48aa72,_0x12cceb,_0x55504a){this['_updateModelCache'](_0x52e99f,_0x48aa72,_0x12cceb,_0x55504a);}[_0x5b4c6d(0x290)](_0x23b4ba,_0x45d816,_0x540f64){const _0x893a9e=_0x5b4c6d;var _0x4faeb7,_0x22d05a;const _0x5bf954=(_0x22d05a=(_0x4faeb7=this[_0x893a9e(0x14c)][_0x893a9e(0x177)](_0x23b4ba))==null?void 0x0:_0x4faeb7[_0x893a9e(0x177)](_0x45d816))==null?void 0x0:_0x22d05a[_0x893a9e(0x177)](_0x540f64);if(_0x5bf954)return _0x5bf954;}[_0x5b4c6d(0xf1)](_0x341c6d,_0x105aff,_0x1d4704){const _0x54490a=_0x5b4c6d;var _0x17da64,_0x3b57be;const _0x552905=(_0x3b57be=(_0x17da64=this[_0x54490a(0x14c)][_0x54490a(0x177)](_0x341c6d))==null?void 0x0:_0x17da64[_0x54490a(0x177)](_0x105aff))==null?void 0x0:_0x3b57be[_0x54490a(0x177)](_0x1d4704);if(_0x552905)return _0x552905[_0x54490a(0x389)];}[_0x5b4c6d(0x1c4)](_0x5df0a1){const _0x6d7aac=_0x5b4c6d;return this['_pivotTableInstanceCache'][_0x6d7aac(0x177)](_0x5df0a1);}[_0x5b4c6d(0x2fb)](_0x57547e){const _0x421588=_0x5b4c6d;this[_0x421588(0x14c)][_0x421588(0x236)](_0x57547e);const _0x3cfe50=this[_0x421588(0x151)][_0x421588(0x177)](_0x57547e);_0x3cfe50&&(_0x3cfe50['dispose'](),this[_0x421588(0x151)]['delete'](_0x57547e)),this[_0x421588(0x22b)][_0x421588(0x236)](_0x57547e),this[_0x421588(0x149)]['forEach'](_0x4fe3e9=>{_0x4fe3e9['deleteUnitId'](_0x57547e);});}[_0x5b4c6d(0x23e)](_0x3d2361,_0x3bfe56,_0x3e3d46,_0x4408a0){const _0x310ca3=_0x5b4c6d;return this[_0x310ca3(0x2c2)](_0x3e3d46[_0x310ca3(0x2d0)])[_0x310ca3(0x23e)](_0x3d2361,_0x3bfe56,_0x3e3d46,_0x4408a0);}[_0x5b4c6d(0x1a6)](_0x5aabc7){const _0x192555=_0x5b4c6d;return this[_0x192555(0x2c2)](_0x5aabc7[_0x192555(0x2d0)])['createCollectionWithDataRange'](_0x5aabc7);}[_0x5b4c6d(0x332)](_0x21ff53,_0x1fa63b,_0x32016d){const _0x1c683a=_0x5b4c6d;this[_0x1c683a(0x2c2)](_0x32016d[_0x1c683a(0x2d0)])[_0x1c683a(0x332)](_0x21ff53,_0x1fa63b,_0x32016d);}[_0x5b4c6d(0xb0)](_0x4a809e,_0x43a2da){const _0xe8e4f1=_0x5b4c6d;this['getDataFieldManager'](_0x4a809e)[_0xe8e4f1(0x1de)](_0x43a2da);}['removeCollections'](_0x5a3725,_0xbcfffe){const _0x59a66d=_0x5b4c6d;this[_0x59a66d(0x2c2)](_0x5a3725)['removeCollectionImp'](_0xbcfffe);}[_0x5b4c6d(0x37b)](_0x3e017f,_0x24bf98){const _0x2bc42e=_0x5b4c6d;var _0x413f64;return(_0x413f64=this[_0x2bc42e(0x14c)][_0x2bc42e(0x177)](_0x3e017f))==null?void 0x0:_0x413f64['get'](_0x24bf98);}['getTargetByPivotId'](_0x446286){const _0x54725d=_0x5b4c6d;for(const [_0x4ceee4,_0xe5c056]of this[_0x54725d(0x14c)]['entries']())for(const [_0x441371,_0x40f1e1]of _0xe5c056[_0x54725d(0x88)]())if(_0x40f1e1[_0x54725d(0x208)](_0x446286))return{'unitId':_0x4ceee4,'subUnitId':_0x441371};return null;}[_0x5b4c6d(0x34c)](_0x5b3399,_0x3d5468,_0x1d1952,_0x3b3c81){const _0x54b299=_0x5b4c6d,_0x356d6b=this[_0x54b299(0x21d)](_0x5b3399,_0x3d5468);_0x3b3c81?_0x356d6b['set'](_0x1d1952,_0x3b3c81):_0x356d6b[_0x54b299(0x236)](_0x1d1952),this[_0x54b299(0xfb)][_0x54b299(0x19b)]({'unitId':_0x5b3399,'subUnitId':_0x3d5468,'pivotTableId':_0x1d1952});}[_0x5b4c6d(0x2b2)](){const _0x4dedaa=_0x5b4c6d;super[_0x4dedaa(0x2b2)]();}[_0x5b4c6d(0x235)](_0x26a72d,_0x22d78f,_0x3de8c0){const _0x9f6404=_0x5b4c6d;var _0x59d155,_0x54499b;const _0xa28043=(_0x54499b=(_0x59d155=this['_viewData']['get'](_0x26a72d))==null?void 0x0:_0x59d155['get'](_0x22d78f))==null?void 0x0:_0x54499b[_0x9f6404(0x177)](_0x3de8c0);return _0xa28043||null;}[_0x5b4c6d(0x370)](_0x4829b2){this['updateDirtyPivotTable'](_0x4829b2);}[_0x5b4c6d(0x2f3)](_0x1ed0f1){const _0x3b3441=_0x5b4c6d,{token:_0x10566e,unitId:_0x526a06,subUnitId:_0x1f891f}=_0x1ed0f1,_0x1f6a13=_0x526a06+'-'+_0x1f891f+'-'+_0x10566e;this[_0x3b3441(0xf8)][_0x3b3441(0x177)](_0x1f6a13)&&clearTimeout(this['_queryingMap'][_0x3b3441(0x177)](_0x1f6a13));const _0x22d5fe=setTimeout(()=>{const _0x4d5a4f=_0x3b3441;this[_0x4d5a4f(0x11e)](_0x1ed0f1),this['_queryingMap']['delete'](_0x1f6a13);},_0xffb05);this[_0x3b3441(0xf8)][_0x3b3441(0xe6)](_0x1f6a13,_0x22d5fe);}[_0x5b4c6d(0x11e)](_0x410303){const _0x57da19=_0x5b4c6d,{unitId:_0x50e64e,subUnitId:_0x40fd8d,token:_0x467f30,type:_0x3cb6b4,pivotConfig:_0x4e0d8e}=_0x410303,_0x3d7881=this[_0x57da19(0x1c4)](_0x467f30),_0x15ded3=_0x3d7881==null?void 0x0:_0x3d7881['query'](),_0x5b3f42=_0x4e0d8e!=null?_0x4e0d8e:this[_0x57da19(0x290)](_0x50e64e,_0x40fd8d,_0x467f30);_0x5b3f42&&(_0x5b3f42[_0x57da19(0x121)]=!!(_0x3d7881!=null&&_0x3d7881[_0x57da19(0x121)]())),(_0x15ded3||_0x3cb6b4===_0x1bbb8c[_0x57da19(0x231)])&&this['updateView'](_0x50e64e,_0x40fd8d,_0x3cb6b4,_0x467f30,_0x15ded3,_0x5b3f42,this[_0x57da19(0x2c2)](_0x50e64e)[_0x57da19(0x120)]());}[_0x5b4c6d(0x120)](_0x529154){const _0x2c2d75=_0x5b4c6d,_0x209cf9={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2c2d75(0x2c2)](_0x529154)&&(_0x209cf9[_0x2c2d75(0x359)][_0x529154]=this[_0x2c2d75(0x2c2)](_0x529154)[_0x2c2d75(0x120)]()),this[_0x2c2d75(0x14c)]['get'](_0x529154)){_0x209cf9[_0x2c2d75(0x100)][_0x529154]={};const _0x3a347f=this[_0x2c2d75(0x14c)][_0x2c2d75(0x177)](_0x529154);_0x3a347f!=null&&_0x3a347f['size']&&[..._0x3a347f['keys']()]['forEach'](_0x48236d=>{const _0x15e9b2=_0x2c2d75,_0x39e83d=_0x3a347f['get'](_0x48236d);_0x39e83d!=null&&_0x39e83d[_0x15e9b2(0x18c)]&&(_0x209cf9[_0x15e9b2(0x100)][_0x529154][_0x48236d]={},[..._0x39e83d[_0x15e9b2(0x102)]()][_0x15e9b2(0x36a)](_0x52eaba=>{const _0x564f9b=_0x15e9b2,_0x563ad3=_0x39e83d[_0x564f9b(0x177)](_0x52eaba);_0x563ad3&&(_0x209cf9[_0x564f9b(0x100)][_0x529154][_0x48236d][_0x52eaba]=_0x563ad3);}));});}return _0x209cf9;}[_0x5b4c6d(0x129)](_0x53d620){const _0x314b04=_0x5b4c6d;var _0x30b681;const {dataFieldManagerConfig:_0x450baa,pivotTableConfigs:_0x8e11ef}=_0x53d620;_0x450baa&&Object[_0x314b04(0x102)](_0x450baa)[_0x314b04(0x36a)](_0x27ab11=>{const _0x32e77c=_0x314b04;this[_0x32e77c(0x2c2)](_0x27ab11)['fromJSON'](_0x450baa[_0x27ab11]);});const _0x1e07ab=[];if(_0x8e11ef){const _0x135ec7=(_0x30b681=this[_0x314b04(0x214)][_0x314b04(0x177)](_0x2be92f[_0x314b04(0x27f)])[_0x314b04(0x340)](_0x327f17['LS_CONFIG_KEY']))!=null?_0x30b681:{},{ls:_0x3d252c,pbk:_0x3e0da8}=_0x135ec7,_0x47072c=_0xea67dc(_0x3008ad,_0x3d252c,_0x3e0da8)['count'];Object['keys'](_0x8e11ef)['forEach'](_0x170eaf=>{const _0x169881=_0x314b04;let _0x1596f1=0x0;const _0x524622=_0x8e11ef[_0x170eaf];Object[_0x169881(0x102)](_0x524622)[_0x169881(0x36a)](_0x34d33f=>{const _0x34a007=_0x169881,_0x19fd20=_0x524622[_0x34d33f];Object[_0x34a007(0x102)](_0x19fd20)[_0x34a007(0x36a)](_0x195305=>{const _0x4cae1f=_0x34a007,_0x254db4=_0x19fd20[_0x195305];if(_0x254db4){if(_0x1596f1>=_0x47072c)return;_0x1596f1++;const _0x223225=this[_0x4cae1f(0x2c2)](_0x170eaf),_0x597573=_0x223225[_0x4cae1f(0x307)][_0x195305],_0x4f81e7=_0x597573[_0x4cae1f(0x225)]();let _0xc69074=0x0;const _0x5a5e27=[];for(const _0xdaa474 of _0x4f81e7){const _0x417a81=_0x597573[_0x4cae1f(0x181)](_0xdaa474);if(_0x949178[_0x4cae1f(0x284)](_0x417a81)){const _0x2cfe05=_0x417a81[_0x4cae1f(0x125)](),_0x5c2754=_0x597573[_0x4cae1f(0x181)](_0x2cfe05);_0x5c2754&&_0x5a5e27[_0x4cae1f(0x1cc)]([_0x417a81,_0x5c2754]);continue;}_0x223225[_0x4cae1f(0xbe)](_0xdaa474,_0x254db4[_0x4cae1f(0x1fb)],_0xc69074),_0xc69074++;}_0x5a5e27[_0x4cae1f(0x36a)](([_0x1c9b09,_0x22d102])=>{const _0x305fde=_0x4cae1f;_0x1c9b09[_0x305fde(0x327)](_0x22d102);});const _0x451cd8=new _0x949178[(_0x4cae1f(0xcd))](_0x597573);_0x451cd8[_0x4cae1f(0x129)](_0x254db4['fieldsConfig']),this[_0x4cae1f(0x302)](_0x170eaf,_0x34d33f,_0x195305,_0x451cd8,_0x254db4);const _0x51b4d4=_0x451cd8[_0x4cae1f(0x1f3)]();_0x1e07ab[_0x4cae1f(0x1cc)]({'unitId':_0x170eaf,'subUnitId':_0x34d33f,'pivotTableId':_0x195305,'view':_0x51b4d4['toJSON'](),'pivotConfig':_0x254db4,'type':_0x1bbb8c[_0x4cae1f(0x287)]});const _0x96bf18=!!_0x451cd8[_0x4cae1f(0x121)](),_0x45ad35={'view':_0x51b4d4,'pivotTableId':_0x195305,'textInfo':this['getTextInfo'](),'isEmpty':_0x96bf18,'targetCellInfo':_0x254db4[_0x4cae1f(0x282)]};this[_0x4cae1f(0x1ab)](_0x45ad35,!0x1);}});});});}_0x450baa&&Object[_0x314b04(0x102)](_0x450baa)[_0x314b04(0x36a)](_0x37549d=>{const _0x395b26=_0x314b04,_0x3bdd1d=this['getDataFieldManager'](_0x37549d);this['_fieldsCollectionChange$'][_0x395b26(0x19b)](_0x3bdd1d[_0x395b26(0x307)]);}),this[_0x314b04(0x2c6)][_0x314b04(0x35b)](_0x24b222['id'],{'batch':_0x1e07ab,'collectionConfig':_0x450baa},{'onlyLocal':!0x0});}[_0x5b4c6d(0x322)](){const _0x2c41c5=_0x5b4c6d;this['disposeWithMe'](this[_0x2c41c5(0x2ca)]['registerPluginResource']({'toJson':_0x33f176=>JSON[_0x2c41c5(0x1b5)](this[_0x2c41c5(0x120)](_0x33f176)),'parseJson':_0x200021=>{const _0x231144=_0x2c41c5;if(!_0x200021)return{};try{return JSON[_0x231144(0x1ed)](_0x200021);}catch{return{};}},'businesses':[_0x2be92f[_0x2c41c5(0x326)]['UNIVER_SHEET']],'pluginName':_0x54e52d,'onLoad':(_0x5bd7e7,_0x3c7328)=>{this['fromJSON'](_0x3c7328);},'onUnLoad':_0x510744=>{this['deleteUnitId'](_0x510744);}}));}},_0x3acc27[_0x5b4c6d(0x144)]=_0x1af19a([_0xafd9a(0x0,_0x2be92f['Inject'](_0x2be92f['Injector'])),_0xafd9a(0x1,_0x2be92f[_0x5b4c6d(0xd2)]),_0xafd9a(0x2,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x379)])),_0xafd9a(0x3,_0x2be92f[_0x5b4c6d(0x27f)]),_0xafd9a(0x4,_0x2be92f[_0x5b4c6d(0x109)]),_0xafd9a(0x5,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xc8)]))],_0x3acc27[_0x5b4c6d(0x144)]);const _0x3f37a7={0x0:{0x0:{'v':_0x5b4c6d(0x135),'s':_0x41c7a5}},0x2:{0x1:{'v':'','s':_0x41c7a5},0x2:{'v':'','s':_0x41c7a5},0x3:{'v':'column','s':_0x41c7a5},0x4:{'v':'','s':_0x41c7a5},0x5:{'v':'','s':_0x41c7a5}},0x3:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0x4:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0x5:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0x6:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0x7:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0x8:{0x0:{'v':'row','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'values','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0x9:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0xa:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0xb:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0xc:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}},0xd:{0x0:{'v':'','s':_0x41c7a5},0x1:{'v':'','s':_0x196547},0x2:{'v':'','s':_0x196547},0x3:{'v':'','s':_0x196547},0x4:{'v':'','s':_0x196547},0x5:{'v':'','s':_0x196547}}},_0x5ecfca={'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':[]},_0x28cda4=(_0x2ba5c8,_0x2c691d)=>{const _0xd852c1=_0x5b4c6d,_0x497852=new _0x2be92f[(_0xd852c1(0x176))](),_0x2d46bd=new _0x2be92f[(_0xd852c1(0x176))](_0x3f37a7),{row:_0x590ece,col:_0xe122e3}=_0x2c691d;_0x2d46bd[_0xd852c1(0x2eb)]((_0x189883,_0x58cd02,_0x33a3e3)=>{const _0x524e49=_0xd852c1;let _0xb63b36='';_0x33a3e3['v']===_0x524e49(0x135)?_0xb63b36=_0x2ba5c8['filter']:_0x33a3e3['v']===_0x524e49(0x178)?_0xb63b36=_0x2ba5c8[_0x524e49(0x178)]:_0x33a3e3['v']===_0x524e49(0x117)?_0xb63b36=_0x2ba5c8['column']:_0x33a3e3['v']===_0x524e49(0x15f)&&(_0xb63b36=_0x2ba5c8[_0x524e49(0x15f)]),_0x497852[_0x524e49(0x15a)](_0x189883+_0x590ece,_0x58cd02+_0xe122e3,{..._0x33a3e3,'v':_0xb63b36});});const _0x17b242=_0x2be92f[_0xd852c1(0x2d6)][_0xd852c1(0x344)](_0x5ecfca);return Object[_0xd852c1(0x102)](_0x5ecfca)['forEach'](_0x46da74=>{const _0x22348c=_0xd852c1;_0x17b242[_0x46da74]=_0x5ecfca[_0x46da74]['map'](_0x3102a1=>({..._0x3102a1,'startRow':_0x3102a1[_0x22348c(0xee)]+_0x590ece,'endRow':_0x3102a1[_0x22348c(0x87)]+_0x590ece,'startColumn':_0x3102a1[_0x22348c(0x281)]+_0xe122e3,'endColumn':_0x3102a1[_0x22348c(0x249)]+_0xe122e3}));}),{'matrixCache':_0x497852,'rangesCache':_0x17b242};};function _0x1c2326(_0x5ea37d,_0x546388){const _0x3e2729=_0x5b4c6d;let _0x39e815='';const _0x521727=this['getTextInfo']();switch(_0x546388){case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0x1fc)]:_0x39e815=_0x521727[_0x3e2729(0x9a)]+_0x5ea37d;break;case _0x949178['PivotSubtotalTypeEnum'][_0x3e2729(0x32c)]:_0x39e815=_0x521727[_0x3e2729(0x1aa)]+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0xd9)]:_0x39e815=_0x521727['sheets-pivot.countNumsName']+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0x114)]:_0x39e815=_0x521727['sheets-pivot.maxName']+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0x16c)]:_0x39e815=_0x521727['sheets-pivot.minName']+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)]['product']:_0x39e815=_0x521727[_0x3e2729(0x313)]+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0xdb)]:_0x39e815=_0x521727['sheets-pivot.stdDevName']+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0x294)]:_0x39e815=_0x521727[_0x3e2729(0x1ac)]+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0x358)]:_0x39e815=_0x521727[_0x3e2729(0x21f)]+_0x5ea37d;break;case _0x949178['PivotSubtotalTypeEnum'][_0x3e2729(0x265)]:_0x39e815=_0x521727[_0x3e2729(0xeb)]+_0x5ea37d;break;case _0x949178[_0x3e2729(0x34e)][_0x3e2729(0xe1)]:_0x39e815=_0x521727[_0x3e2729(0x108)]+_0x5ea37d;break;default:_0x39e815=_0x5ea37d;break;}return _0x39e815;}function _0x2b3cd3(_0x246a63,_0x2c0230,_0x47755b,_0x44f740,_0xa67b78){const _0x2aedcb=_0x5b4c6d;var _0x490f07,_0x586195,_0x4fdbbe,_0x51592b,_0x45a4d0;const _0x56e3ac=_0x2be92f[_0x2aedcb(0x161)](_0x246a63,_0x2c0230),{rangesInfo:_0x308a44,areaInfo:_0x34cdc5,headerMap:_0x3dbc74}=_0xa67b78;if(!_0x308a44||!_0x34cdc5||!_0x3dbc74)return;const _0x1efb63=Object['keys'](_0x308a44)[_0x2aedcb(0xa9)](_0x378478=>_0x308a44[_0x378478][_0x2aedcb(0x20d)](_0x43a77e=>_0x2be92f[_0x2aedcb(0x337)]['contains'](_0x43a77e,_0x56e3ac))),_0x553248=_0x34cdc5;let _0x3f0b50,_0x596883,_0x49ff51;if(_0x1efb63==='rowRanges')_0x3f0b50=(_0x490f07=_0x553248==null?void 0x0:_0x553248[_0x2aedcb(0x2f5)])==null?void 0x0:_0x490f07[_0x246a63],_0x596883=(_0x586195=_0x3dbc74==null?void 0x0:_0x3dbc74[_0x2aedcb(0x79)])==null?void 0x0:_0x586195[_0x2c0230],_0x49ff51=_0x596883==null?void 0x0:_0x596883['tableFieldId'];else{if(_0x1efb63===_0x2aedcb(0x1bd))_0x3f0b50=(_0x4fdbbe=_0x553248==null?void 0x0:_0x553248[_0x2aedcb(0x14a)])==null?void 0x0:_0x4fdbbe[_0x2c0230],_0x596883=(_0x51592b=_0x3dbc74[_0x2aedcb(0x30f)])==null?void 0x0:_0x51592b[_0x246a63+0x1+_0x2c0230-_0x308a44[_0x2aedcb(0x1bd)][0x0][_0x2aedcb(0x281)]],_0x49ff51=_0x596883==null?void 0x0:_0x596883[_0x2aedcb(0x37a)];else{if(_0x1efb63==='cornerRanges')_0x3f0b50=(_0x45a4d0=_0x553248==null?void 0x0:_0x553248['cornerInfo'])==null?void 0x0:_0x45a4d0[_0x2c0230],_0x49ff51=_0x3f0b50==null?void 0x0:_0x3f0b50['tableFieldId'];else{if(_0x1efb63===_0x2aedcb(0x354)){const _0x5b5313=_0x47755b==null?void 0x0:_0x47755b['fi'];_0x5b5313!==void 0x0&&(_0x49ff51=_0x44f740['getFilterFieldIdByIndex'](_0x5b5313));}}}}return{'filterId':_0x49ff51,'info':_0x3f0b50,'data':_0x47755b,'headerInfo':_0x596883};}function _0xc6cc36(_0x3c2e15,_0x5b7d06,_0x376dea){const _0x368778=_0x5b4c6d,_0x10975a=_0x3c2e15[_0x368778(0x1e6)],_0x528c00=_0x10975a[_0x368778(0x225)](),_0x8f9d0d=new Set();_0x3c2e15[_0x368778(0x2d5)](_0x4d5294=>{const _0x7c913d=_0x368778;_0x8f9d0d[_0x7c913d(0xe3)](_0x4d5294[_0x7c913d(0x368)]);});const _0x55998d=_0x528c00[_0x368778(0x352)](_0x21e7c8=>{const _0x5b7ef1=_0x368778,_0x5a53a6=_0x10975a['getFieldById'](_0x21e7c8);return{'checked':_0x8f9d0d[_0x5b7ef1(0x208)](_0x21e7c8),'dataFieldId':_0x5a53a6['id'],'id':_0x5a53a6['id'],'name':_0x10975a['getDisplayName'](_0x5a53a6['id']),'type':_0x5a53a6[_0x5b7ef1(0x24b)](),'pivotTableId':_0x5b7d06};}),_0x36e9d9=[];_0x3c2e15[_0x368778(0x10b)](_0x949178[_0x368778(0x11a)][_0x368778(0x2bc)],_0xc642eb=>{const _0x4d088a=_0x368778;_0x36e9d9['push']({'dataFieldId':_0xc642eb[_0x4d088a(0x368)],'tableFieldId':_0xc642eb['getId'](),'displayName':_0xc642eb[_0x4d088a(0x220)]()});});const _0x5340a=[];_0x3c2e15[_0x368778(0x10b)](_0x949178[_0x368778(0x11a)][_0x368778(0x16e)],_0x1a2c70=>{const _0x8bb29c=_0x368778;_0x5340a[_0x8bb29c(0x1cc)]({'dataFieldId':_0x1a2c70[_0x8bb29c(0x368)],'tableFieldId':_0x1a2c70[_0x8bb29c(0x13b)](),'displayName':_0x1a2c70[_0x8bb29c(0x220)]()});});const _0x548ebb=[];if(_0x3c2e15[_0x368778(0x10b)](_0x949178['PivotTableFiledAreaEnum'][_0x368778(0x105)],_0x2a7929=>{const _0x3bbeaa=_0x368778;_0x548ebb[_0x3bbeaa(0x1cc)]({'dataFieldId':_0x2a7929[_0x3bbeaa(0x368)],'tableFieldId':_0x2a7929[_0x3bbeaa(0x13b)](),'displayName':_0x2a7929[_0x3bbeaa(0x220)](),'format':_0x2a7929[_0x3bbeaa(0x1c0)](),'subTotalType':_0x2a7929[_0x3bbeaa(0x363)]()});}),_0x548ebb[_0x368778(0xad)]>0x1){const _0xc99cc9=_0x3c2e15[_0x368778(0x16d)]();(_0x3c2e15['isColMultiMeasure']()?_0x5340a:_0x36e9d9)[_0x368778(0x351)](_0xc99cc9,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':_0x368778(0x2a6)});}const _0x1cd532=[];_0x3c2e15['iterateFieldByArea'](_0x949178['PivotTableFiledAreaEnum']['Filter'],_0x331028=>{const _0x4b5b38=_0x368778;_0x1cd532['push']({'dataFieldId':_0x331028['dataFieldId'],'tableFieldId':_0x331028[_0x4b5b38(0x13b)](),'displayName':_0x331028['getDisplayName']()});});const _0x296fbc=_0x376dea['sourceRangeInfo'];return{'sourceList':_0x55998d,'sourceRange':_0x296fbc,'rowFields':_0x36e9d9,'columnFields':_0x5340a,'valueFields':_0x548ebb,'filterFields':_0x1cd532,'positionInfo':_0x376dea[_0x368778(0x282)]};}function _0x5657cd(_0x3806a6,_0x1686cb,_0x2acb02='',_0x325c43={}){const _0x53032a=_0x5b4c6d,_0x21bd20=_0x3806a6['get'](_0x2be92f[_0x53032a(0x126)]);for(const _0x11a0ff in _0x1686cb)if(Object[_0x53032a(0x1f0)][_0x53032a(0xb1)][_0x53032a(0x1f2)](_0x1686cb,_0x11a0ff)){const _0x345b51=_0x2acb02?_0x2acb02+'.'+_0x11a0ff:_0x11a0ff;typeof _0x1686cb[_0x11a0ff]==_0x53032a(0x304)&&_0x1686cb[_0x11a0ff]!==null&&!Array[_0x53032a(0x263)](_0x1686cb[_0x11a0ff])?_0x5657cd(_0x3806a6,_0x1686cb[_0x11a0ff],_0x345b51,_0x325c43):_0x325c43[_0x345b51]=_0x21bd20['t'](_0x345b51);}return _0x325c43;}const _0x4c470f=_0x29f4df=>{const _0x45fe31=_0x5b4c6d;if(!_0x29f4df)return[];const {rowRanges:_0x2e7f27,colRanges:_0x29f147,cornerRanges:_0x1d632b,dataRanges:_0xa633ce,pageRanges:_0x10f9b7}=_0x29f4df,_0x17ed69=[..._0x29f147,..._0x2e7f27,..._0xa633ce,..._0x1d632b]['filter'](_0x2d47ac=>_0x2d47ac[_0x45fe31(0xee)]>=0x0&&_0x2d47ac['startColumn']>=0x0&&_0x2d47ac[_0x45fe31(0x87)]>=0x0&&_0x2d47ac[_0x45fe31(0x249)]>=0x0);let _0x1390ab=Number[_0x45fe31(0x2fa)],_0x2a8a38=Number['MIN_SAFE_INTEGER'],_0x5ccd33=Number[_0x45fe31(0x2fa)],_0x3d930a=Number['MIN_SAFE_INTEGER'];for(let _0x39ff1c=0x0;_0x39ff1c<_0x17ed69[_0x45fe31(0xad)];_0x39ff1c++)_0x1390ab=Math['min'](_0x1390ab,_0x17ed69[_0x39ff1c]['startRow']),_0x2a8a38=Math[_0x45fe31(0x114)](_0x2a8a38,_0x17ed69[_0x39ff1c][_0x45fe31(0x87)]),_0x5ccd33=Math[_0x45fe31(0x16c)](_0x5ccd33,_0x17ed69[_0x39ff1c][_0x45fe31(0x281)]),_0x3d930a=Math[_0x45fe31(0x114)](_0x3d930a,_0x17ed69[_0x39ff1c]['endColumn']);return[..._0x10f9b7,{'startRow':_0x1390ab,'endRow':_0x2a8a38,'startColumn':_0x5ccd33,'endColumn':_0x3d930a}];};function _0x3ea438(_0x2b495a,_0x50564e){const _0x52f0dc=_0x5b4c6d,_0x218f12=_0x50564e['params'][_0x52f0dc(0x25c)],{pivotTableId:_0x103277,unitId:_0x3b527f,subUnitId:_0x591de0}=_0x50564e;if(!_0x218f12)return;const _0x35ff1a=_0x2b495a[_0x52f0dc(0x177)](_0x3acc27[_0x52f0dc(0x144)]),_0x3bca1d=_0x35ff1a[_0x52f0dc(0x1c4)](_0x103277),_0x188a00=_0x35ff1a[_0x52f0dc(0x290)](_0x3b527f,_0x591de0,_0x103277);if(!_0x3bca1d||!_0x188a00)return;const _0x5553da=_0x3bca1d['getIndexesByPathStr'](_0x218f12[_0x52f0dc(0x237)]);if(!(_0x5553da!=null&&_0x5553da[_0x52f0dc(0xad)]))return;const _0x4dc5de=_0x188a00[_0x52f0dc(0x1fb)],{unitId:_0x7bb8fa,subUnitId:_0x78ab8,range:_0x47c4f7}=_0x4dc5de;let _0x2ba262=0x0;const _0xaab82c=_0x3bca1d[_0x52f0dc(0x1e6)][_0x52f0dc(0x225)]()[_0x52f0dc(0x315)]((_0x2e06ba,_0x2280e5)=>{var _0x558f49;const _0x3840c7=(_0x558f49=_0x3bca1d['getDataFieldByDataFieldId'](_0x2280e5))==null?void 0x0:_0x558f49['getformat']();return _0x3840c7&&(_0x2e06ba[String(_0x2ba262)]=_0x3840c7),_0x2ba262++,_0x2e06ba;},{});return{'indexes':_0x5553da,'range':_0x47c4f7,'sourceUnitId':_0x7bb8fa,'sourceSubUnitId':_0x78ab8,'formatMap':_0xaab82c};}function _0x259459(_0x1d1e12,_0xabf58f){const _0x1f77c7=_0x5b4c6d;if(!_0x1d1e12||!_0xabf58f)return!0x0;const _0x344989=_0x327f17[_0x1f77c7(0x1b6)](_0xba6fa9,_0x11c203),_0x287151=new Function(_0x1f77c7(0x92)+_0x344989)()(_0x1d1e12,_0xabf58f)[_0x1f77c7(0x99)],_0x166b54=_0x327f17[_0x1f77c7(0x1f5)](_0x287151,'sf',_0x2a091a);return!((_0x287151==null?void 0x0:_0x287151['rt'])===_0x327f17[_0x1f77c7(0x20e)][_0x1f77c7(0x1cb)]&&!_0x166b54);}function _0xea67dc(_0x17613d,_0x3b88b7,_0x23559f){const _0x2e5461=_0x5b4c6d,_0x2dae6e={'count':_0x17613d,'timeValid':!0x1};if(!_0x3b88b7||!_0x23559f)return _0x2dae6e;const _0x1079aa=_0x327f17['unshiftString'](_0xba6fa9,_0x11c203),_0x168256=new Function(_0x2e5461(0x92)+_0x1079aa)()(_0x3b88b7,_0x23559f);if(_0x168256!=null&&_0x168256[_0x2e5461(0x2af)]){const _0x327610=_0x168256[_0x2e5461(0x99)],_0x2a4998=_0x327f17['isFeatureAuthorizedWithinTime'](_0x327610,'sf',_0x2a091a);return{'count':_0x327f17[_0x2e5461(0xc1)](_0x327610,_0x2a4998,'ptn',_0x17613d,_0x17613d,0x0),'timeValid':_0x2a4998};}return _0x2dae6e;}function _0x5bc07b(_0x76085c,_0x569055,_0x213b35,_0x197e9f){const _0x1a31be=_0x5b4c6d,_0x5bdd72={'subUnitId':_0x213b35,'unitId':_0x569055,'cellValue':_0xac1e83[_0x1a31be(0xd1)](_0x197e9f)},_0x40f983=_0xac1e83[_0x1a31be(0x255)](_0x76085c,_0x5bdd72);let _0x1c0de1=!0x1;return new _0x2be92f['ObjectMatrix'](_0x40f983[_0x1a31be(0x271)])[_0x1a31be(0x2eb)]((_0xaead88,_0x5a3f4b,_0x207181)=>{const _0x2352b9=_0x1a31be;if(!_0x1c0de1&&_0x207181&&(_0x207181[_0x2352b9(0xc7)]||_0x207181['f']||_0x207181['p']||_0x207181['s']||_0x207181['si']||_0x207181['t']||_0x207181['v']))return _0x1c0de1=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0xac1e83[_0x1a31be(0x2df)]['id'],'params':_0x40f983},'setRangeValueRedoMutation':{'id':_0xac1e83['SetRangeValuesMutation']['id'],'params':_0x5bdd72},'shouldClear':_0x1c0de1};}function _0xec16bb(_0x18d679){const {row:_0x4bb2e6,col:_0xf205c3}=_0x18d679,_0x3ea12d={'startRow':_0x4bb2e6,'endRow':_0x4bb2e6,'startColumn':_0xf205c3,'endColumn':_0xf205c3},_0x587231={'startRow':_0x4bb2e6+0x2,'endRow':_0x4bb2e6+0xe,'startColumn':_0xf205c3,'endColumn':_0xf205c3+0x6};return[_0x3ea12d,_0x587231];}function _0x1cc1bd(_0x3e741e,_0x55ef5c,_0x25c8df){const _0x71159=_0x5b4c6d,{cornerView:_0x461b82,rowView:_0x49705d,colView:_0x444d1d,pageView:_0xc1c423}=_0x3e741e,{row:_0x4138be,col:_0x3707d4}=_0x55ef5c;if(_0x25c8df)return{'rowCount':_0xd42983+_0x4138be,'colCount':_0x4f24ee+_0x3707d4};const _0xa4533b=_0xc1c423[_0x71159(0x308)]>-0x1?_0xc1c423[_0x71159(0x308)]+0x1:0x0,_0x1f1070=_0xc1c423['lastCol']>-0x1?_0xc1c423['lastCol']:0x0,_0x382cef=_0x4138be+_0xa4533b+(_0xa4533b?0x1:0x0)+_0x461b82[_0x71159(0x2ac)]+_0x49705d['rowCount'],_0x3ecde8=_0x3707d4+_0x1f1070,_0x24ee13=_0x3707d4+_0x461b82[_0x71159(0x7a)]+_0x444d1d[_0x71159(0x7a)],_0x536e45=Math[_0x71159(0x114)](_0x3ecde8,_0x24ee13);return{'rowCount':_0x382cef,'colCount':_0x536e45};}function _0x29e760(_0x1977ea,_0x211777,_0x4c3718,_0x4838a3){const _0x5cfa04=_0x5b4c6d,{row:_0x1b0ab7,col:_0x500275,unitId:_0x1d076b,subUnitId:_0x2e5347}=_0x4c3718,_0x5551de=_0x1cc1bd(_0x211777,{'row':_0x1b0ab7,'col':_0x500275},_0x4838a3),_0x79ca52=_0x1977ea[_0x5cfa04(0x177)](_0x2be92f[_0x5cfa04(0xd2)]),_0x3d47c1=_0xac1e83[_0x5cfa04(0x1bc)](_0x79ca52,{'unitId':_0x1d076b,'subUnitId':_0x2e5347}),_0x40523e=[],_0x1c0b6b=[];if(!_0x3d47c1)return{'undos':_0x1c0b6b,'redos':_0x40523e};const {worksheet:_0x825d9d}=_0x3d47c1,_0x1ba08c=_0x825d9d['getRowCount'](),_0x26b07b=_0x825d9d['getColumnCount']();return _0x1ba08c<_0x5551de[_0x5cfa04(0x2ac)]&&(_0x40523e['push']({'id':_0xac1e83['InsertRowMutation']['id'],'params':{'unitId':_0x1d076b,'subUnitId':_0x2e5347,'range':{'startRow':_0x1ba08c,'endRow':_0x5551de[_0x5cfa04(0x2ac)]-0x1,'startColumn':0x0,'endColumn':_0x26b07b-0x1}}}),_0x1c0b6b['push']({'id':_0xac1e83['RemoveRowMutation']['id'],'params':{'unitId':_0x1d076b,'subUnitId':_0x2e5347,'range':{'startRow':_0x1ba08c,'endRow':_0x5551de['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x26b07b-0x1}}})),_0x26b07b<_0x5551de[_0x5cfa04(0x7a)]&&(_0x40523e[_0x5cfa04(0x1cc)]({'id':_0xac1e83['InsertColMutation']['id'],'params':{'unitId':_0x1d076b,'subUnitId':_0x2e5347,'range':{'startRow':0x0,'endRow':_0x1ba08c-0x1,'startColumn':_0x26b07b,'endColumn':_0x5551de[_0x5cfa04(0x7a)]-0x1}}}),_0x1c0b6b['push']({'id':_0xac1e83[_0x5cfa04(0x1ef)]['id'],'params':{'unitId':_0x1d076b,'subUnitId':_0x2e5347,'range':{'startRow':0x0,'endRow':_0x1ba08c-0x1,'startColumn':_0x26b07b,'endColumn':_0x5551de[_0x5cfa04(0x7a)]-0x1}}})),{'undos':_0x1c0b6b,'redos':_0x40523e};}function _0x29a912(_0x4104c8){const _0xb6c930=_0x5b4c6d;let _0x3baf2e=0x0;for(let _0x1202c1=0x0;_0x1202c1<_0x4104c8[_0xb6c930(0xad)];_0x1202c1++){const _0x296d38=_0x4104c8['charCodeAt'](_0x1202c1);_0x296d38>=0x4e00&&_0x296d38<=0x9fff||_0x296d38>=0x3000&&_0x296d38<=0x303f||_0x296d38>=0xff00&&_0x296d38<=0xffef?_0x3baf2e+=0x2:_0x3baf2e+=0x1;}return _0x3baf2e;}function _0x41ec75(_0x30f50b,_0x46fcc4,_0x2fedf4,_0x59eb21){const _0x2e9e42=_0x5b4c6d;var _0x37973c,_0x1cbab4,_0x4f828e,_0xee86bc;const {rowCount:_0x462153,colCount:_0x4c7166,headerMap:_0x24c4d3}=_0x30f50b,_0x2277b8=0x64,_0x135c42=Math[_0x2e9e42(0x16c)](_0x462153,_0x2277b8),_0x46bd17=Math[_0x2e9e42(0x16c)](_0x4c7166,_0x2277b8);let _0xd24243='',_0x26e32c=0x0;for(let _0x456f14=0x0;_0x456f14<_0x135c42;_0x456f14++)for(let _0x3bd9df=0x0;_0x3bd9df<_0x46bd17;_0x3bd9df++){const _0x3076a0={...(_0x1cbab4=(_0x37973c=_0x30f50b[_0x2e9e42(0x11f)])==null?void 0x0:_0x37973c[_0x456f14])==null?void 0x0:_0x1cbab4[_0x3bd9df]},_0x4972f0=(_0x4f828e=_0x24c4d3[_0x456f14])==null?void 0x0:_0x4f828e[_0x2e9e42(0x37a)],_0x2f92b6=_0x59eb21[_0x4972f0];let _0x3b2c93=_0x30f50b[_0x2e9e42(0x206)](_0x456f14,_0x3bd9df);if(_0x3076a0){const _0x45e06f=_0x2fedf4?_0x3bd9df===0x0&&((_0xee86bc=_0x30f50b['getHeaderMapItem'](_0x3bd9df+0x1))==null?void 0x0:_0xee86bc['isValue']):!0x1;_0x3b2c93=_0x306dd9(_0x3076a0,_0x45e06f,_0x2f92b6,_0x46fcc4);}if(_0x3b2c93!==void 0x0){const _0x2629a3=_0x29a912(String(_0x3b2c93));_0x26e32c<_0x2629a3&&(_0xd24243=String(_0x3b2c93),_0x26e32c=_0x2629a3);}}return _0xd24243;}function _0x28c1e4(_0x568f62){const _0x2fdeaa=_0x5b4c6d,{rowCount:_0x4c6390,colCount:_0x3f6cc5}=_0x568f62;let _0x58ca90='',_0x3aa18f=0x0;for(let _0x5db609=_0x4c6390-0x1;_0x5db609>0x0&&_0x5db609>_0x4c6390-0x3;_0x5db609--)for(let _0x12eac9=0x0;_0x12eac9<_0x3f6cc5;_0x12eac9++){const _0x3ea976=_0x568f62[_0x2fdeaa(0x206)](_0x5db609,_0x12eac9);if(_0x3ea976!==void 0x0){const _0x17ff05=String(_0x3ea976)['length'];_0x3aa18f<_0x17ff05&&(_0x58ca90=String(_0x3ea976),_0x3aa18f=_0x17ff05);}}return _0x58ca90;}function _0x287305(_0x4f81ff){const _0x173f81=_0x5b4c6d,{rowCount:_0x35bb46,colCount:_0x34edc6}=_0x4f81ff;let _0x9e247e='',_0x193eec=0x0;for(let _0x365f10=0x0;_0x365f10<_0x35bb46;_0x365f10++)for(let _0x1b637c=0x0;_0x1b637c<_0x34edc6;_0x1b637c++){const _0x15919d=_0x4f81ff[_0x173f81(0x206)](_0x365f10,_0x1b637c);if(_0x15919d!==void 0x0){const _0x3d6a20=String(_0x15919d)[_0x173f81(0xad)];_0x193eec<_0x3d6a20&&(_0x9e247e=String(_0x15919d),_0x193eec=_0x3d6a20);}}return _0x9e247e;}function _0x4bbd9a(_0x207ece,_0x50fbb1){const _0x8321e=_0x5b4c6d,{rowFields:_0x51f185,columnFields:_0xe431e,valueFields:_0x182d8d,filterFields:_0x189fea,dimension:_0x496708,measure:_0x44ecd3}=_0x50fbb1;for(const _0xc76138 of _0x51f185){const _0x233e3f=_0x496708[_0xc76138];_0x233e3f&&_0x207ece[_0x8321e(0x1e5)](_0x233e3f[_0x8321e(0x368)])&&(_0x207ece[_0x8321e(0x185)](_0x233e3f[_0x8321e(0x368)],_0x949178['PivotTableFiledAreaEnum'][_0x8321e(0x2bc)],void 0x0,_0xc76138),_0x233e3f['displayName']&&_0x207ece[_0x8321e(0x139)](_0x233e3f['id'],_0x233e3f['displayName']),_0x233e3f[_0x8321e(0x13a)]&&_0x207ece['setSortInfo'](_0x233e3f['id'],_0x233e3f['sortInfo']),_0x233e3f[_0x8321e(0x204)]&&_0x207ece[_0x8321e(0x175)](_0x233e3f['id'],_0x233e3f['filterInfo']));}for(const _0x589de0 of _0xe431e){const _0x2fea5a=_0x496708[_0x589de0];_0x2fea5a&&_0x207ece[_0x8321e(0x1e5)](_0x2fea5a['dataFieldId'])&&(_0x207ece[_0x8321e(0x185)](_0x2fea5a['dataFieldId'],_0x949178[_0x8321e(0x11a)]['Column'],void 0x0,_0x589de0),_0x2fea5a[_0x8321e(0x13a)]&&_0x207ece[_0x8321e(0xdc)](_0x2fea5a['id'],_0x2fea5a['sortInfo']),_0x2fea5a[_0x8321e(0x204)]&&_0x207ece[_0x8321e(0x175)](_0x2fea5a['id'],_0x2fea5a[_0x8321e(0x204)]),_0x2fea5a[_0x8321e(0x1c8)]&&_0x207ece['renameField'](_0x2fea5a['id'],_0x2fea5a[_0x8321e(0x1c8)]));}for(const _0x254271 of _0x189fea){const _0x4fcbe7=_0x496708[_0x254271];_0x4fcbe7&&_0x207ece[_0x8321e(0x1e5)](_0x4fcbe7['dataFieldId'])&&(_0x207ece[_0x8321e(0x185)](_0x4fcbe7[_0x8321e(0x368)],_0x949178['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x254271),_0x4fcbe7[_0x8321e(0x13a)]&&_0x207ece[_0x8321e(0xdc)](_0x4fcbe7['id'],_0x4fcbe7[_0x8321e(0x13a)]),_0x4fcbe7[_0x8321e(0x204)]&&_0x207ece[_0x8321e(0x175)](_0x4fcbe7['id'],_0x4fcbe7[_0x8321e(0x204)]),_0x4fcbe7[_0x8321e(0x1c8)]&&_0x207ece[_0x8321e(0x139)](_0x4fcbe7['id'],_0x4fcbe7['displayName']));}for(const _0x2bbcba of _0x182d8d){const _0x6e262e=_0x44ecd3[_0x2bbcba];_0x6e262e&&_0x207ece['getDataFieldByDataFieldId'](_0x6e262e[_0x8321e(0x368)])&&(_0x207ece['addFieldWithSourceId'](_0x6e262e[_0x8321e(0x368)],_0x949178[_0x8321e(0x11a)][_0x8321e(0x105)],void 0x0,_0x2bbcba),_0x6e262e[_0x8321e(0x317)]!==void 0x0&&_0x207ece[_0x8321e(0x36c)](_0x2bbcba,_0x6e262e[_0x8321e(0x317)]),_0x6e262e[_0x8321e(0x2f0)]&&_0x207ece[_0x8321e(0x197)](_0x2bbcba,_0x6e262e[_0x8321e(0x2f0)]),_0x6e262e[_0x8321e(0x1c8)]&&_0x207ece[_0x8321e(0x139)](_0x6e262e['id'],_0x6e262e[_0x8321e(0x1c8)]));}const _0x4081b3=_0x50fbb1[_0x8321e(0x202)];for(const {fieldId:_0x341486,filterInfo:_0x11e2f2}of _0x4081b3)_0x207ece[_0x8321e(0x16b)](_0x341486,_0x11e2f2);}function _0x30779a(_0x4069a6,_0x5eedf2){const _0x57877a=_0x5b4c6d,_0x1e2314=[];_0x5eedf2===_0x949178[_0x57877a(0x11a)]['Row']&&_0x4069a6[_0x57877a(0x10b)](_0x949178['PivotTableFiledAreaEnum'][_0x57877a(0x2bc)],_0x350f0a=>{const _0x2767e9=_0x57877a;_0x1e2314[_0x2767e9(0x1cc)](_0x350f0a[_0x2767e9(0x13b)]());}),_0x5eedf2===_0x949178[_0x57877a(0x11a)][_0x57877a(0x16e)]&&_0x4069a6[_0x57877a(0x10b)](_0x949178[_0x57877a(0x11a)][_0x57877a(0x16e)],_0x4a692d=>{const _0x26c789=_0x57877a;_0x1e2314[_0x26c789(0x1cc)](_0x4a692d[_0x26c789(0x13b)]());}),_0x5eedf2===_0x949178[_0x57877a(0x11a)][_0x57877a(0x12e)]&&_0x4069a6[_0x57877a(0x10b)](_0x949178[_0x57877a(0x11a)][_0x57877a(0x12e)],_0x2679e8=>{const _0x7b505e=_0x57877a;_0x1e2314[_0x7b505e(0x1cc)](_0x2679e8['getId']());}),_0x5eedf2===_0x949178[_0x57877a(0x11a)][_0x57877a(0x105)]&&_0x4069a6[_0x57877a(0x10b)](_0x949178[_0x57877a(0x11a)][_0x57877a(0x105)],_0x588be3=>{const _0x4f9ef4=_0x57877a;_0x1e2314[_0x4f9ef4(0x1cc)](_0x588be3['getId']());}),_0x5eedf2===void 0x0&&_0x4069a6[_0x57877a(0x2d5)](_0x3c0626=>{const _0x54b471=_0x57877a;_0x1e2314[_0x54b471(0x1cc)](_0x3c0626[_0x54b471(0x13b)]());});const _0x387865=_0x1e2314[_0x57877a(0xad)];for(let _0x22f16b=_0x387865-0x1;_0x22f16b>=0x0;_0x22f16b--)_0x4069a6[_0x57877a(0x2b1)](_0x1e2314[_0x22f16b]);const _0x33abea=_0x4069a6[_0x57877a(0x1a3)]();for(const _0x4acdfb in _0x33abea)_0x4069a6[_0x57877a(0x29b)](_0x4acdfb);}function _0x4f34b6(_0x57e74c,_0x413b1b){const _0x120046=_0x5b4c6d,_0x2eb5f7=new Date(_0x949178['excelDateToUnixMilliseconds'](_0x413b1b)),_0x50fd45=new Date(_0x949178[_0x120046(0x293)](_0x57e74c)),_0x5132a2=_0x2eb5f7[_0x120046(0x198)](),_0x4af45b=_0x50fd45[_0x120046(0x198)](),_0xd7740d=_0x2eb5f7[_0x120046(0x29a)](),_0x4c4e96=_0x50fd45[_0x120046(0x29a)](),_0x2ac67c=_0x2eb5f7[_0x120046(0x1db)](),_0x4d49db=_0x50fd45[_0x120046(0x1db)](),_0xf083aa=_0x5132a2===_0x4af45b,_0x1e8d14=_0xf083aa&&_0xd7740d===_0x4c4e96;return _0xf083aa&&_0x1e8d14&&!(_0x1e8d14&&_0x2ac67c===_0x4d49db)?_0x949178[_0x120046(0x27a)][_0x120046(0x266)]:_0xf083aa&&!_0x1e8d14?_0x949178[_0x120046(0x27a)]['YearMonth']:_0x949178[_0x120046(0x27a)]['Year'];}function _0x561cfe(_0x1cec8d,_0x4c8a06){const _0xf42420=_0x5b4c6d,_0x247ee5=_0x1cec8d[_0xf42420(0x177)](_0x3acc27[_0xf42420(0x144)])['getTextInfo']();let _0x21db0a='';switch(_0x4c8a06){case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0xf42420(0x266)]:_0x21db0a=_0x247ee5[_0xf42420(0x97)];break;case _0x949178[_0xf42420(0x27a)]['YearMonth']:_0x21db0a=_0x247ee5[_0xf42420(0x2c7)];break;case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0xf42420(0xb5)]:_0x21db0a=_0x247ee5['sheets-pivot.dateGroup.year'];break;case _0x949178[_0xf42420(0x27a)][_0xf42420(0x17a)]:_0x21db0a=_0x247ee5[_0xf42420(0x138)];break;case _0x949178[_0xf42420(0x27a)]['Quarter']:_0x21db0a=_0x247ee5[_0xf42420(0x328)];break;case _0x949178[_0xf42420(0x27a)]['Date']:_0x21db0a=_0x247ee5[_0xf42420(0x275)];break;case _0x949178[_0xf42420(0x27a)][_0xf42420(0x171)]:_0x21db0a=_0x247ee5[_0xf42420(0x280)];break;case _0x949178[_0xf42420(0x27a)]['Hour']:_0x21db0a=_0x247ee5['sheets-pivot.dateGroup.hour'];break;case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0xf42420(0x28b)]:_0x21db0a=_0x247ee5[_0xf42420(0xb4)];break;case _0x949178[_0xf42420(0x27a)][_0xf42420(0xdf)]:_0x21db0a=_0x247ee5[_0xf42420(0x166)];break;case _0x949178['PivotDateGroupFieldDateTypeEnum'][_0xf42420(0x12a)]:_0x21db0a=_0x247ee5['sheets-pivot.dateGroup.yearQuarter'];break;default:_0x21db0a='';break;}return _0x21db0a;}const _0x1db600=_0x5b4c6d(0x272),_0x32b1dd={};var _0x3aaebd=Object[_0x5b4c6d(0x2f4)],_0x4c7034=(_0x53e793,_0x4fa6b8,_0x198a6e,_0x466953)=>{const _0x1a7747=_0x5b4c6d;for(var _0x32e2bf=_0x466953>0x1?void 0x0:_0x466953?_0x3aaebd(_0x4fa6b8,_0x198a6e):_0x4fa6b8,_0x151d45=_0x53e793[_0x1a7747(0xad)]-0x1,_0x2c53f7;_0x151d45>=0x0;_0x151d45--)(_0x2c53f7=_0x53e793[_0x151d45])&&(_0x32e2bf=_0x2c53f7(_0x32e2bf)||_0x32e2bf);return _0x32e2bf;},_0x3ca588=(_0x3db3fd,_0x163d36)=>(_0xe57c6b,_0x5784aa)=>_0x163d36(_0xe57c6b,_0x5784aa,_0x3db3fd);_0x3acc27[_0x5b4c6d(0x216)]=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x49515f,_0x4f4bb6,_0x2ef377,_0xa82a61,_0x4ec68b){const _0x3103bb=_0x5b4c6d;super(),_0x102d83(this,'_model',new Map()),_0x102d83(this,_0x3103bb(0x36d),new Map()),_0x102d83(this,_0x3103bb(0x2bd),new Map()),_0x102d83(this,_0x3103bb(0x21a),new Map()),_0x102d83(this,'_configVersion$',new _0x639aa[(_0x3103bb(0x1e2))]()),_0x102d83(this,_0x3103bb(0x2e3),new _0x639aa['Subject']()),_0x102d83(this,_0x3103bb(0x1dc),this[_0x3103bb(0x2e3)][_0x3103bb(0xcf)]()),_0x102d83(this,_0x3103bb(0x1ea),new _0x639aa['Subject']()),_0x102d83(this,_0x3103bb(0x37c),this['_pivotConfigChange$'][_0x3103bb(0xcf)]()),_0x102d83(this,_0x3103bb(0xf9),{}),_0x102d83(this,_0x3103bb(0x122),this[_0x3103bb(0x23c)][_0x3103bb(0xcf)]()),(this[_0x3103bb(0x214)]=_0x49515f,this[_0x3103bb(0x2c6)]=_0x4f4bb6,this[_0x3103bb(0x35d)]=_0x2ef377,this[_0x3103bb(0x2ca)]=_0xa82a61,this['_configService']=_0x4ec68b,this[_0x3103bb(0x19d)](),this[_0x3103bb(0xd3)]());const _0x2cde3c=this['_configService'][_0x3103bb(0x340)](_0x1db600);(_0x2cde3c==null?void 0x0:_0x2cde3c[_0x3103bb(0x1d2)])===!0x0&&this[_0x3103bb(0x322)]();}['_initUnitDisposed'](){const _0x27dc63=_0x5b4c6d;this['disposeWithMe'](this[_0x27dc63(0x35d)]['getTypeOfUnitDisposed$'](_0x2be92f[_0x27dc63(0x326)][_0x27dc63(0x150)])[_0x27dc63(0x17c)](_0x1bff9a=>{const _0x53fe5c=_0x27dc63;this[_0x53fe5c(0x2fb)](_0x1bff9a[_0x53fe5c(0x1a8)]());}));}[_0x5b4c6d(0x1e3)](){const _0x5e7b0b=_0x5b4c6d;this[_0x5e7b0b(0x2e3)][_0x5e7b0b(0x19b)](!0x0);}[_0x5b4c6d(0x19d)](){const _0x34e076=_0x5b4c6d,_0x427451=_0x5657cd(this[_0x34e076(0x214)],_0x5d52b8,'',{});this[_0x34e076(0xf9)]=_0x427451,this[_0x34e076(0x2c6)]['executeCommand'](_0x5273d0['id'],{'textInfo':_0x427451},{'onlyLocal':!0x0});}[_0x5b4c6d(0xf7)](){const _0x542fe7=_0x5b4c6d;return this[_0x542fe7(0xf9)];}['updateViewInfo'](_0x556aab,_0xbbe3d6,_0x15446b,_0xcc6391,_0x4bee3b){const _0x2a860d=_0x5b4c6d;this[_0x2a860d(0x17f)](_0x556aab,_0xbbe3d6,_0x15446b,_0xcc6391),this[_0x2a860d(0x1c7)](_0x556aab,_0xbbe3d6,_0x15446b,_0x4bee3b);}[_0x5b4c6d(0x290)](_0x492286,_0x4ea4e1,_0x16daa8){const _0x59b8c0=_0x5b4c6d;var _0x3d4cc7;const _0x14cf5b=(_0x3d4cc7=this[_0x59b8c0(0x14c)][_0x59b8c0(0x177)](_0x492286))==null?void 0x0:_0x3d4cc7[_0x59b8c0(0x177)](_0x4ea4e1);if(_0x14cf5b)return _0x14cf5b['get'](_0x16daa8);}[_0x5b4c6d(0x1f9)](_0x3e40eb,_0x564d2a){const _0x28ffa9=_0x5b4c6d,_0x3bf763=this[_0x28ffa9(0x14c)][_0x28ffa9(0x177)](_0x3e40eb);if(_0x3bf763){for(const [_0x1015cf,_0x5d84f3]of _0x3bf763[_0x28ffa9(0x88)]())for(const [_0x6fb5f0,_0x7e33f4]of _0x5d84f3[_0x28ffa9(0x88)]())if(_0x6fb5f0===_0x564d2a)return _0x7e33f4['targetCellInfo'];}}[_0x5b4c6d(0x1b1)](_0xa9da50,_0x47e3f5,_0x1de2f8){const _0x2f7f48=_0x5b4c6d,_0x3d46ef=this['getPivotTableConfig'](_0xa9da50,_0x47e3f5,_0x1de2f8);return _0x3d46ef==null?void 0x0:_0x3d46ef[_0x2f7f48(0x282)];}['getSubUnitPivotConfigs'](_0x2802dd,_0x9e438f){const _0x46851f=_0x5b4c6d;var _0x40dd27;return(_0x40dd27=this[_0x46851f(0x14c)][_0x46851f(0x177)](_0x2802dd))==null?void 0x0:_0x40dd27[_0x46851f(0x177)](_0x9e438f);}['updateConfigCache'](_0x5b418b,_0xc2c4b1,_0x3e3994,_0x351365){const _0x2b74b4=_0x5b4c6d,_0x2a0be8=this['_ensurePivotMap'](_0x5b418b,_0xc2c4b1);_0x351365?_0x2a0be8[_0x2b74b4(0xe6)](_0x3e3994,_0x351365):_0x2a0be8['delete'](_0x3e3994),this['_pivotConfigChange$'][_0x2b74b4(0x19b)]({'unitId':_0x5b418b,'subUnitId':_0xc2c4b1,'pivotTableId':_0x3e3994,'pivotTableConfig':_0x351365});}[_0x5b4c6d(0x28c)](_0x43a557,_0x83cfc3){const _0x58a2bf=_0x5b4c6d;var _0x55572f;return(_0x55572f=this[_0x58a2bf(0x36d)][_0x58a2bf(0x177)](_0x43a557))==null?void 0x0:_0x55572f[_0x58a2bf(0x307)][_0x83cfc3];}[_0x5b4c6d(0x153)](_0x3c7471,_0x3f93f3){const _0x5f1804=_0x5b4c6d;this[_0x5f1804(0x36d)][_0x5f1804(0xe6)](_0x3c7471,_0x3f93f3),this[_0x5f1804(0x23c)][_0x5f1804(0x19b)](Math[_0x5f1804(0x323)]());}[_0x5b4c6d(0x1f7)](_0x5c458e,_0x16edff){const _0x2e9fcb=_0x5b4c6d;let _0x58439c=this[_0x2e9fcb(0x14c)]['get'](_0x5c458e);_0x58439c||(_0x58439c=new Map(),this[_0x2e9fcb(0x14c)]['set'](_0x5c458e,_0x58439c));let _0x3ae73b=_0x58439c['get'](_0x16edff);return _0x3ae73b||(_0x3ae73b=new Map(),_0x58439c[_0x2e9fcb(0xe6)](_0x16edff,_0x3ae73b)),_0x3ae73b;}[_0x5b4c6d(0x1f4)](_0x12f811,_0x52aaaf){const _0x591e15=_0x5b4c6d;let _0x17804d=this[_0x591e15(0x2bd)][_0x591e15(0x177)](_0x12f811);_0x17804d||(_0x17804d=new Map(),this[_0x591e15(0x2bd)][_0x591e15(0xe6)](_0x12f811,_0x17804d));let _0x59b17c=_0x17804d[_0x591e15(0x177)](_0x52aaaf);return _0x59b17c||(_0x59b17c=new Map(),_0x17804d['set'](_0x52aaaf,_0x59b17c)),_0x59b17c;}[_0x5b4c6d(0x13e)](_0x1e90bd,_0x1fe34d){const _0x2bd24d=_0x5b4c6d;let _0x308375=this[_0x2bd24d(0x21a)][_0x2bd24d(0x177)](_0x1e90bd);_0x308375||(_0x308375=new Map(),this[_0x2bd24d(0x21a)][_0x2bd24d(0xe6)](_0x1e90bd,_0x308375));let _0x55cb8e=_0x308375[_0x2bd24d(0x177)](_0x1fe34d);return _0x55cb8e||(_0x55cb8e=new Map(),_0x308375[_0x2bd24d(0xe6)](_0x1fe34d,_0x55cb8e)),_0x55cb8e;}[_0x5b4c6d(0x1c7)](_0x4a059e,_0x575ea0,_0x141f1e,_0x15239e){const _0x20eff1=_0x5b4c6d;var _0x1af9f3;const _0xcc59d5=this[_0x20eff1(0x1f4)](_0x4a059e,_0x575ea0),_0x458303=(_0x1af9f3=_0xcc59d5[_0x20eff1(0x177)](_0x141f1e))==null?void 0x0:_0x1af9f3['oldRangeInfo'];_0xcc59d5['set'](_0x141f1e,{'oldRangeInfo':_0x458303,'rangeInfo':_0x15239e});}[_0x5b4c6d(0x17f)](_0x1d9420,_0x13807a,_0x4a5198,_0x57953c){const _0x83b500=_0x5b4c6d;var _0x309801;const _0x3eb75e=this['_ensurePivotTableMatrixInfo'](_0x1d9420,_0x13807a),_0x467513=(_0x309801=_0x3eb75e['get'](_0x4a5198))==null?void 0x0:_0x309801[_0x83b500(0x8b)];_0x3eb75e[_0x83b500(0xe6)](_0x4a5198,{'oldMatrix':_0x467513,'matrix':_0x57953c});}[_0x5b4c6d(0x147)](_0x3e777c,_0xb7abd2,_0x3fd0b1){const _0x2ced5c=_0x5b4c6d;var _0x3a37ba,_0x4a35c0;return(_0x4a35c0=(_0x3a37ba=this[_0x2ced5c(0x2bd)][_0x2ced5c(0x177)](_0x3e777c))==null?void 0x0:_0x3a37ba['get'](_0xb7abd2))==null?void 0x0:_0x4a35c0[_0x2ced5c(0x177)](_0x3fd0b1);}[_0x5b4c6d(0x17e)](_0x4ff07b,_0x276e49,_0x442f73){const _0x16c075=_0x5b4c6d;var _0x26a9f2,_0x1f6052;return(_0x1f6052=(_0x26a9f2=this[_0x16c075(0x21a)][_0x16c075(0x177)](_0x4ff07b))==null?void 0x0:_0x26a9f2[_0x16c075(0x177)](_0x276e49))==null?void 0x0:_0x1f6052[_0x16c075(0x177)](_0x442f73);}[_0x5b4c6d(0x2fb)](_0xd9379e){const _0x1e6204=_0x5b4c6d;this[_0x1e6204(0x14c)][_0x1e6204(0x236)](_0xd9379e),this[_0x1e6204(0x36d)][_0x1e6204(0x236)](_0xd9379e);}[_0x5b4c6d(0x37d)](_0x500eaa){const _0x39552b=_0x5b4c6d,_0x229b6f={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x39552b(0x36d)]['get'](_0x500eaa)&&(_0x229b6f[_0x39552b(0x359)][_0x500eaa]=this[_0x39552b(0x36d)][_0x39552b(0x177)](_0x500eaa)),this[_0x39552b(0x14c)][_0x39552b(0x177)](_0x500eaa)){_0x229b6f[_0x39552b(0x100)][_0x500eaa]={};const _0x3237ff=this[_0x39552b(0x14c)][_0x39552b(0x177)](_0x500eaa);_0x3237ff!=null&&_0x3237ff[_0x39552b(0x18c)]&&[..._0x3237ff[_0x39552b(0x102)]()][_0x39552b(0x36a)](_0xe33658=>{const _0x268ced=_0x39552b,_0x2862a2=_0x3237ff[_0x268ced(0x177)](_0xe33658);_0x2862a2!=null&&_0x2862a2[_0x268ced(0x18c)]&&(_0x229b6f[_0x268ced(0x100)][_0x500eaa][_0xe33658]={},[..._0x2862a2[_0x268ced(0x102)]()][_0x268ced(0x36a)](_0x23a1ca=>{const _0x22599f=_0x268ced,_0xed1993=_0x2862a2[_0x22599f(0x177)](_0x23a1ca);_0xed1993&&(_0x229b6f[_0x22599f(0x100)][_0x500eaa][_0xe33658][_0x23a1ca]=_0xed1993);}));});}return _0x229b6f;}[_0x5b4c6d(0x322)](){const _0x171203=_0x5b4c6d;this[_0x171203(0x20b)](this[_0x171203(0x2ca)][_0x171203(0x1d1)]({'toJson':_0x41820b=>JSON['stringify'](this[_0x171203(0x37d)](_0x41820b)),'parseJson':_0x183c21=>({}),'businesses':[_0x2be92f['UniverInstanceType'][_0x171203(0x150)]],'pluginName':_0x54e52d,'onLoad':(_0x31b7c2,_0x5e608b)=>{},'onUnLoad':_0x34b088=>{const _0x388715=_0x171203;this[_0x388715(0x2fb)](_0x34b088);}}));}},_0x3acc27[_0x5b4c6d(0x216)]=_0x4c7034([_0x3ca588(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xf0)])),_0x3ca588(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x109)])),_0x3ca588(0x2,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f['IUniverInstanceService'])),_0x3ca588(0x3,_0x2be92f['Inject'](_0x2be92f['IResourceManagerService'])),_0x3ca588(0x4,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x27f)]))],_0x3acc27['SheetsPivotTableConfigModel']);var _0x651db9=Object[_0x5b4c6d(0x2f4)],_0x498192=(_0x477253,_0x33f665,_0xe8904f,_0x4ad0ee)=>{const _0x355692=_0x5b4c6d;for(var _0x2f2b41=_0x4ad0ee>0x1?void 0x0:_0x4ad0ee?_0x651db9(_0x33f665,_0xe8904f):_0x33f665,_0x364e63=_0x477253[_0x355692(0xad)]-0x1,_0x556afa;_0x364e63>=0x0;_0x364e63--)(_0x556afa=_0x477253[_0x364e63])&&(_0x2f2b41=_0x556afa(_0x2f2b41)||_0x2f2b41);return _0x2f2b41;},_0xe5b048=(_0x1769a8,_0x40cd64)=>(_0x2e393a,_0x59650c)=>_0x40cd64(_0x2e393a,_0x59650c,_0x1769a8);_0x3acc27[_0x5b4c6d(0x111)]=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x18e02d,_0x46fd02,_0x3fa0c0,_0x54c869,_0x5a97bb){const _0x363820=_0x5b4c6d;super(),_0x102d83(this,_0x363820(0xab),new Map()),_0x102d83(this,_0x363820(0x8a),new Map()),_0x102d83(this,'_markDirty$',new _0x639aa[(_0x363820(0x1e2))]()),_0x102d83(this,_0x363820(0x2dc),this[_0x363820(0x23a)][_0x363820(0xcf)]()),_0x102d83(this,'_viewUpdate$',new _0x639aa[(_0x363820(0x1e2))]()),_0x102d83(this,'viewUpdate$',this['_viewUpdate$']['asObservable']()),_0x102d83(this,_0x363820(0xf9)),(this[_0x363820(0x26d)]=_0x18e02d,this['_injector']=_0x46fd02,this['_sheetsPivotTableConfigModel']=_0x3fa0c0,this[_0x363820(0x35d)]=_0x54c869,this[_0x363820(0x11d)]=_0x5a97bb,this[_0x363820(0x19d)](),this['_initUnitDisposed']());}[_0x5b4c6d(0xd3)](){const _0x2fc786=_0x5b4c6d;this[_0x2fc786(0x20b)](this[_0x2fc786(0x35d)][_0x2fc786(0x118)](_0x2be92f[_0x2fc786(0x326)][_0x2fc786(0x150)])[_0x2fc786(0x17c)](_0x5d6aa6=>{const _0x4dce4b=_0x2fc786;this[_0x4dce4b(0x2fb)](_0x5d6aa6[_0x4dce4b(0x1a8)]());}));}[_0x5b4c6d(0x19d)](){const _0x486864=_0x5b4c6d;this[_0x486864(0xf9)]=_0x5657cd(this['_injector'],_0x5d52b8,'',{});}['updateRenderCache'](_0x38fd0e){const _0x5c2e50=_0x5b4c6d,{view:_0x2ddebc,unitId:_0x111774,subUnitId:_0x3038d6,pivotTableId:_0x38b174,type:_0x42d12b}=_0x38fd0e,_0x4111e4=this[_0x5c2e50(0x28a)][_0x5c2e50(0x290)](_0x111774,_0x3038d6,_0x38b174);if(!_0x2ddebc||!_0x4111e4||_0x42d12b===_0x1bbb8c[_0x5c2e50(0x231)])return;const {pageView:_0x282455,cornerView:_0xf9c67f,rowView:_0x1a0f5c,colView:_0x5b0187,dataView:_0x58d357}=_0x2ddebc,_0x4e8919=_0x4111e4[_0x5c2e50(0x282)],_0x145121=_0x4111e4[_0x5c2e50(0x121)],_0x414f30=this[_0x5c2e50(0x292)](_0x111774,_0x3038d6),_0x50ec9c=this['_ensurePivotItemRenderInfoCache'](_0x111774,_0x3038d6,_0x38b174);if(_0x145121)return this[_0x5c2e50(0x2f1)](_0x38fd0e,_0x414f30,_0x4e8919,_0x50ec9c);{const _0x35c6c9=_0xca17aa(_0x4e8919,_0x282455,!0x0),_0x2891c2=_0x282455[_0x5c2e50(0x308)]>=0x0?_0x282455[_0x5c2e50(0x308)]+0x1:0x0,_0xfaaeda=_0xf9c67f[_0x5c2e50(0x312)](),_0x3491cc=_0xf9c67f[_0x5c2e50(0x345)](),_0x1036d6=_0x35c6c9[_0x5c2e50(0xad)]>0x0?_0x549def:0x0,_0x5dff53=_0xca17aa({'row':_0x4e8919[_0x5c2e50(0x178)]+_0x2891c2+_0x1036d6,'col':_0x4e8919['col']},_0xf9c67f,!0x1,!0x1),_0x3e047f=_0xca17aa({'row':_0x4e8919[_0x5c2e50(0x178)]+_0x2891c2+_0x1036d6+_0xfaaeda,'col':_0x4e8919[_0x5c2e50(0x320)]},_0x1a0f5c,!0x1,!0x0),_0xa1b99e=_0xca17aa({'row':_0x4e8919['row']+_0x2891c2+_0x1036d6,'col':_0x4e8919[_0x5c2e50(0x320)]+_0x3491cc},_0x5b0187,!0x1,!0x0),_0x4a7661=_0xca17aa({'row':_0x4e8919['row']+_0x2891c2+_0x1036d6+_0xfaaeda,'col':_0x4e8919[_0x5c2e50(0x320)]+_0x3491cc},_0x58d357,!0x1,!0x1);_0x50ec9c['rangesInfo']={'rowRanges':_0x3e047f,'colRanges':_0xa1b99e,'cornerRanges':_0x5dff53,'dataRanges':_0x4a7661,'pageRanges':_0x35c6c9};const _0x3080c7=_0x3f0e6f(this['_injector'],_0x2ddebc,_0x4111e4,this['_textInfo']),{valueMatrix:_0xa58674,rowInfo:_0x505bf6,colInfo:_0x30522b,cornerInfo:_0x25347e,rowHeaderMap:_0x38d8a7,colHeaderMap:_0x4ce51d}=_0x3080c7;return _0x50ec9c[_0x5c2e50(0x2c0)]={'rowInfo':_0x505bf6,'colInfo':_0x30522b,'cornerInfo':_0x25347e},_0x50ec9c[_0x5c2e50(0x21c)]={'rowHeaderMap':_0x38d8a7,'colHeaderMap':_0x4ce51d},_0xa58674[_0x5c2e50(0x36a)]((_0x442881,_0x362e0f)=>{const _0x5c985c=_0x5c2e50;Object[_0x5c985c(0x102)](_0x362e0f)[_0x5c985c(0x36a)](_0x1e99bd=>{const _0x2d69eb=_0x5c985c,_0x5c237c=+_0x1e99bd,_0xf664e=_0xa58674['getValue'](_0x442881,_0x5c237c);_0x414f30[_0x2d69eb(0x15a)](_0x442881,_0x5c237c,_0xf664e);});}),this[_0x5c2e50(0xb8)][_0x5c2e50(0x19b)]({'unitId':_0x111774,'subUnitId':_0x3038d6,'valueMatrix':_0x414f30,'rangesCache':_0x50ec9c[_0x5c2e50(0x146)],'pivotTableId':_0x38b174,'type':_0x38fd0e[_0x5c2e50(0x2b6)]}),this[_0x5c2e50(0x28a)][_0x5c2e50(0x119)](_0x111774,_0x3038d6,_0x38b174,_0x414f30,_0x50ec9c[_0x5c2e50(0x146)]),this[_0x5c2e50(0x11d)][_0x5c2e50(0x37f)](_0x111774,_0x3038d6,_0x2a5bb6,this[_0x5c2e50(0x353)](_0x50ec9c[_0x5c2e50(0x146)],_0x38b174)),{'rangeCache':_0x50ec9c[_0x5c2e50(0x146)],'matrix':_0x414f30};}}[_0x5b4c6d(0x2f1)](_0x19017c,_0x28c6dd,_0x4e70c3,_0x3d95a3){const _0x10d428=_0x5b4c6d,_0x4f2d92=this[_0x10d428(0x26d)]['t'],{unitId:_0x3131f2,subUnitId:_0x3333a7,pivotTableId:_0x49a8e3}=_0x19017c,_0x4a6ca5={'filter':_0x4f2d92(_0x10d428(0x2cf)),'row':_0x4f2d92('sheets-pivot.emptyPivot.row'),'column':_0x4f2d92(_0x10d428(0x148)),'values':_0x4f2d92('sheets-pivot.emptyPivot.values')},{matrixCache:_0x3a99bc,rangesCache:_0x4548c5}=_0x28cda4(_0x4a6ca5,_0x4e70c3);return _0x3a99bc['forValue']((_0x24174e,_0x5d47b7,_0x27e722)=>{_0x28c6dd['setValue'](_0x24174e,_0x5d47b7,_0x27e722);}),_0x3d95a3[_0x10d428(0x146)]=_0x4548c5,this[_0x10d428(0xb8)][_0x10d428(0x19b)]({'unitId':_0x3131f2,'subUnitId':_0x3333a7,'valueMatrix':_0x28c6dd,'rangesCache':_0x4548c5,'pivotTableId':_0x49a8e3,'type':_0x19017c[_0x10d428(0x2b6)],'isEmpty':!0x0}),this[_0x10d428(0x28a)][_0x10d428(0x119)](_0x3131f2,_0x3333a7,_0x49a8e3,_0x28c6dd,_0x4548c5),this[_0x10d428(0x11d)][_0x10d428(0x37f)](_0x3131f2,_0x3333a7,_0x2a5bb6,this[_0x10d428(0x353)](_0x4548c5,_0x49a8e3)),{'rangeCache':_0x3d95a3['rangesInfo'],'matrix':_0x28c6dd};}['_createExclusiveRange'](_0x1dc5cd,_0x3a28c2){const _0x5e516a=_0x5b4c6d,_0x34f367=[],_0x625114=_0x4c470f(_0x1dc5cd);for(const _0xc1e77 of _0x625114)_0x34f367[_0x5e516a(0x1cc)]({'groupId':_0x3a28c2,'range':_0xc1e77});return _0x34f367;}[_0x5b4c6d(0x1e7)](_0x4afda9){const _0x3e1263=_0x5b4c6d;var _0x4d62bb,_0x4b01dd,_0x3ffd10,_0xb18762;const {pivotTableId:_0x4bd4e7,unitId:_0x4a9b5e,subUnitId:_0x13affb}=_0x4afda9;if(!_0x4bd4e7||!_0x4a9b5e||!_0x13affb)return;const _0x2b3bbf=this[_0x3e1263(0x292)](_0x4a9b5e,_0x13affb),_0x1a2ab4=(_0x4b01dd=(_0x4d62bb=this[_0x3e1263(0xab)][_0x3e1263(0x177)](_0x4a9b5e))==null?void 0x0:_0x4d62bb['get'](_0x13affb))==null?void 0x0:_0x4b01dd['get'](_0x4bd4e7);if(_0x1a2ab4!=null&&_0x1a2ab4[_0x3e1263(0x146)]){for(const _0x41f9e0 of Object[_0x3e1263(0x102)](_0x1a2ab4[_0x3e1263(0x146)]))_0x1a2ab4[_0x3e1263(0x146)][_0x41f9e0][_0x3e1263(0x36a)](_0x214337=>{const _0x5267cd=_0x3e1263;for(let _0x3d90bb=_0x214337[_0x5267cd(0xee)];_0x3d90bb<=_0x214337[_0x5267cd(0x87)];_0x3d90bb++)for(let _0x53114f=_0x214337[_0x5267cd(0x281)];_0x53114f<=_0x214337[_0x5267cd(0x249)];_0x53114f++)_0x2b3bbf[_0x5267cd(0x1c6)](_0x3d90bb,_0x53114f);});}_0x1a2ab4&&((_0xb18762=(_0x3ffd10=this[_0x3e1263(0xab)][_0x3e1263(0x177)](_0x4a9b5e))==null?void 0x0:_0x3ffd10[_0x3e1263(0x177)](_0x13affb))==null||_0xb18762['delete'](_0x4bd4e7)),this[_0x3e1263(0xb8)][_0x3e1263(0x19b)]({'unitId':_0x4a9b5e,'subUnitId':_0x13affb,'valueMatrix':_0x2b3bbf,'pivotTableId':_0x4bd4e7,'rangesCache':void 0x0,'type':_0x4afda9[_0x3e1263(0x2b6)]}),this[_0x3e1263(0x11d)][_0x3e1263(0x25d)](_0x4a9b5e,_0x13affb,_0x2a5bb6,_0x4bd4e7);}[_0x5b4c6d(0x19c)](_0x4d1257,_0x24b4fb,_0x2d624b){const _0x38c813=_0x5b4c6d;var _0x1c15fa,_0x1ee7e9,_0x5e89d5,_0x3d4dbb,_0x3090d8,_0x31206f;return this[_0x38c813(0xab)][_0x38c813(0x208)](_0x4d1257)||this[_0x38c813(0xab)]['set'](_0x4d1257,new Map()),(_0x1c15fa=this[_0x38c813(0xab)][_0x38c813(0x177)](_0x4d1257))!=null&&_0x1c15fa[_0x38c813(0x208)](_0x24b4fb)||(_0x1ee7e9=this[_0x38c813(0xab)][_0x38c813(0x177)](_0x4d1257))==null||_0x1ee7e9[_0x38c813(0xe6)](_0x24b4fb,new Map()),(_0x3d4dbb=(_0x5e89d5=this[_0x38c813(0xab)]['get'](_0x4d1257))==null?void 0x0:_0x5e89d5['get'](_0x24b4fb))!=null&&_0x3d4dbb[_0x38c813(0x208)](_0x2d624b)||(_0x31206f=(_0x3090d8=this[_0x38c813(0xab)][_0x38c813(0x177)](_0x4d1257))==null?void 0x0:_0x3090d8['get'](_0x24b4fb))==null||_0x31206f[_0x38c813(0xe6)](_0x2d624b,{}),this[_0x38c813(0xab)][_0x38c813(0x177)](_0x4d1257)[_0x38c813(0x177)](_0x24b4fb)[_0x38c813(0x177)](_0x2d624b);}[_0x5b4c6d(0x292)](_0x90f0aa,_0x4a6c8e){const _0x204058=_0x5b4c6d;var _0x118726,_0xcab5a7;return this[_0x204058(0x8a)][_0x204058(0x208)](_0x90f0aa)||this[_0x204058(0x8a)][_0x204058(0xe6)](_0x90f0aa,new Map()),(_0x118726=this[_0x204058(0x8a)]['get'](_0x90f0aa))!=null&&_0x118726[_0x204058(0x208)](_0x4a6c8e)||(_0xcab5a7=this[_0x204058(0x8a)]['get'](_0x90f0aa))==null||_0xcab5a7[_0x204058(0xe6)](_0x4a6c8e,new _0x2be92f['ObjectMatrix']()),this[_0x204058(0x8a)][_0x204058(0x177)](_0x90f0aa)[_0x204058(0x177)](_0x4a6c8e);}[_0x5b4c6d(0x264)](_0x4eafb6,_0x5f0a89,_0x4f7436,_0x42b109){const _0x5e0924=_0x5b4c6d;var _0x374fdc,_0x26bc55;const _0x5040bf=(_0x26bc55=(_0x374fdc=this['_pivotRenderValueMatrixCache']['get'](_0x4eafb6))==null?void 0x0:_0x374fdc[_0x5e0924(0x177)](_0x5f0a89))==null?void 0x0:_0x26bc55[_0x5e0924(0x206)](_0x4f7436,_0x42b109);if(_0x5040bf!=null)return _0x5040bf;}[_0x5b4c6d(0x18d)](_0x103132,_0x5c993d,_0x3d5f7e,_0x426d47){const _0x1eb7a1=_0x5b4c6d;var _0x2b25d6;const _0x2438b7=_0x2be92f[_0x1eb7a1(0x161)](_0x3d5f7e,_0x426d47),_0x6ed929=(_0x2b25d6=this['_pivotRenderInfoCache'][_0x1eb7a1(0x177)](_0x103132))==null?void 0x0:_0x2b25d6[_0x1eb7a1(0x177)](_0x5c993d);return _0x6ed929?Array['from'](_0x6ed929[_0x1eb7a1(0x102)]())['find'](_0x10f068=>{const _0x437bc3=_0x1eb7a1,_0x1bcdae=_0x6ed929['get'](_0x10f068),_0x4e09ba=_0x1bcdae==null?void 0x0:_0x1bcdae[_0x437bc3(0x146)];return _0x4e09ba?Object[_0x437bc3(0x102)](_0x4e09ba)[_0x437bc3(0x20d)](_0x20458f=>_0x4e09ba[_0x20458f][_0x437bc3(0x20d)](_0x3087cb=>_0x2be92f[_0x437bc3(0x337)][_0x437bc3(0xdd)](_0x3087cb,_0x2438b7))):!0x1;}):void 0x0;}[_0x5b4c6d(0x192)](_0x24e3eb,_0x339f9f,_0xc43206){const _0x56cfaf=_0x5b4c6d;var _0x37fbeb;const _0x2034a2=(_0x37fbeb=this[_0x56cfaf(0xab)]['get'](_0x24e3eb))==null?void 0x0:_0x37fbeb['get'](_0x339f9f),_0x2d7866=[];return _0x2034a2&&Array[_0x56cfaf(0x1dd)](_0x2034a2[_0x56cfaf(0x102)]())[_0x56cfaf(0x36a)](_0x8023e5=>{const _0x41afeb=_0x56cfaf,_0xbde2f8=_0x2034a2[_0x41afeb(0x177)](_0x8023e5),_0x33fab1=_0xbde2f8==null?void 0x0:_0xbde2f8[_0x41afeb(0x146)];if(_0x33fab1)for(const _0x30875a of Object['values'](_0x33fab1)){let _0x229061=!0x1;for(const _0x29461e of _0x30875a)if(_0x2be92f[_0x41afeb(0x337)]['intersects'](_0x29461e,_0xc43206)){_0x2d7866[_0x41afeb(0x1cc)](_0x8023e5),_0x229061=!0x0;break;}if(_0x229061)break;}}),_0x2d7866;}['getSubUnitPivotMatrix'](_0x11ddfb,_0x22f554){const _0x4513e3=_0x5b4c6d;var _0x14aabf,_0x5c5791;return(_0x5c5791=(_0x14aabf=this[_0x4513e3(0x8a)][_0x4513e3(0x177)](_0x11ddfb))==null?void 0x0:_0x14aabf['get'](_0x22f554))!=null?_0x5c5791:new _0x2be92f[(_0x4513e3(0x176))]();}[_0x5b4c6d(0x377)](_0x292ce0,_0x2546f5){const _0x516b6d=_0x5b4c6d;var _0x2ef5e4;return(_0x2ef5e4=this[_0x516b6d(0xab)][_0x516b6d(0x177)](_0x292ce0))==null?void 0x0:_0x2ef5e4[_0x516b6d(0x177)](_0x2546f5);}['getPivotItemRenderInfoCache'](_0x2b26fe,_0x273307,_0x57f97d){const _0x46c972=_0x5b4c6d;var _0x516886,_0x49ec89;return(_0x49ec89=(_0x516886=this[_0x46c972(0xab)][_0x46c972(0x177)](_0x2b26fe))==null?void 0x0:_0x516886[_0x46c972(0x177)](_0x273307))==null?void 0x0:_0x49ec89[_0x46c972(0x177)](_0x57f97d);}[_0x5b4c6d(0x2fb)](_0x3702ed){const _0x94ab54=_0x5b4c6d;this[_0x94ab54(0xab)][_0x94ab54(0x236)](_0x3702ed),this[_0x94ab54(0x8a)][_0x94ab54(0x236)](_0x3702ed);}['markDirty'](_0x496db2,_0x4791f9){const _0x11461d=_0x5b4c6d;this[_0x11461d(0x23a)][_0x11461d(0x19b)]({'unitId':_0x496db2,'subUnitId':_0x4791f9});}},_0x3acc27[_0x5b4c6d(0x111)]=_0x498192([_0xe5b048(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f['LocaleService'])),_0xe5b048(0x1,_0x2be92f['Inject'](_0x2be92f[_0x5b4c6d(0xf0)])),_0xe5b048(0x2,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x216)])),_0xe5b048(0x3,_0x2be92f['Inject'](_0x2be92f[_0x5b4c6d(0xd2)])),_0xe5b048(0x4,_0x2be92f[_0x5b4c6d(0x253)](_0xac1e83['IExclusiveRangeService']))],_0x3acc27[_0x5b4c6d(0x111)]);var _0x2408d8=Object[_0x5b4c6d(0x2f4)],_0x46d2f7=(_0x5412fd,_0x1d132b,_0x15d8bd,_0x39e176)=>{const _0x59a7b1=_0x5b4c6d;for(var _0x4955b4=_0x39e176>0x1?void 0x0:_0x39e176?_0x2408d8(_0x1d132b,_0x15d8bd):_0x1d132b,_0x50f1c9=_0x5412fd[_0x59a7b1(0xad)]-0x1,_0x481db8;_0x50f1c9>=0x0;_0x50f1c9--)(_0x481db8=_0x5412fd[_0x50f1c9])&&(_0x4955b4=_0x481db8(_0x4955b4)||_0x4955b4);return _0x4955b4;},_0x2b90aa=(_0x174d10,_0xd6534b)=>(_0x2dfd67,_0x7d4185)=>_0xd6534b(_0x2dfd67,_0x7d4185,_0x174d10);_0x3acc27['SheetsPivotTableService']=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x3f2383,_0x2e13f0){const _0x23a6c4=_0x5b4c6d;super(),_0x102d83(this,'asyncInterceptor',new _0x2be92f[(_0x23a6c4(0xbd))]({'PIVOT_PERFORM_CHECK':_0x26e2dc})),_0x102d83(this,_0x23a6c4(0x297),new _0x2be92f[(_0x23a6c4(0x27b))]({'PIVOT_MUTATION_GENERATE':_0xdfc14c})),(this['_sheetInterceptorService']=_0x3f2383,this[_0x23a6c4(0x2aa)]=_0x2e13f0,this[_0x23a6c4(0x169)]());}['_init'](){const _0x1418ab=_0x5b4c6d;this[_0x1418ab(0x1d4)]();}['getPivotPerformCheck'](_0x15ca8b){const _0x48d33b=_0x5b4c6d;return this['asyncInterceptor'][_0x48d33b(0x23b)](_0x26e2dc)(!0x1,_0x15ca8b);}[_0x5b4c6d(0x1d4)](){const _0x95ba86=_0x5b4c6d;this['disposeWithMe'](this[_0x95ba86(0x30e)][_0x95ba86(0x2c9)](_0xac1e83[_0x95ba86(0x226)][_0x95ba86(0x330)],{'priority':0xc8,'effect':_0x2be92f[_0x95ba86(0x348)][_0x95ba86(0x105)]|_0x2be92f['InterceptorEffectEnum']['Style'],'handler':(_0xfc2671,_0x4b1423,_0x1e6994)=>{const _0x422371=_0x95ba86,{row:_0x1e5e40,col:_0x557aae,unitId:_0x5efb9f,subUnitId:_0x1fdb32,workbook:_0x4f6523}=_0x4b1423,_0x122a6d=this[_0x422371(0x2aa)][_0x422371(0x264)](_0x5efb9f,_0x1fdb32,_0x1e5e40,_0x557aae);if(!_0x122a6d)return _0x1e6994(_0xfc2671);const _0xdc8d52={..._0xfc2671};(_0x122a6d['v']||_0x122a6d['v']===0x0)&&(_0xdc8d52['v']=_0x122a6d['v']),_0x122a6d['t']&&(_0xdc8d52['t']=_0x122a6d['t']);const _0xff0a2c=(typeof(_0xfc2671==null?void 0x0:_0xfc2671['s'])=='string'?_0x4f6523[_0x422371(0x2f8)]()[_0x422371(0x177)](_0xfc2671==null?void 0x0:_0xfc2671['s']):_0xfc2671==null?void 0x0:_0xfc2671['s'])||{},_0x5238e0=_0x4f6523[_0x422371(0x2f8)]()[_0x422371(0x177)](_0x122a6d['s']),_0x29c4f1={..._0x5238e0,..._0xff0a2c};_0x5238e0!=null&&_0x5238e0['n']&&(_0x29c4f1['n']=_0x5238e0['n']);const _0x16a9c6=_0x4f6523[_0x422371(0x2f8)]()[_0x422371(0x15a)](_0x29c4f1);return _0xdc8d52['s']=_0x16a9c6,(_0x122a6d[_0x422371(0xac)]===_0x949178[_0x422371(0x285)]['Collapse']||_0x122a6d[_0x422371(0xac)]===_0x949178[_0x422371(0x285)][_0x422371(0x2e9)])&&(_0xdc8d52[_0x422371(0x364)]={},_0xdc8d52[_0x422371(0x364)][_0x422371(0x22d)]=_0x45db70),_0x1e6994(_0xdc8d52);}}));}},_0x3acc27[_0x5b4c6d(0xe0)]=_0x46d2f7([_0x2b90aa(0x0,_0x2be92f['Inject'](_0xac1e83[_0x5b4c6d(0x22c)])),_0x2b90aa(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x111)]))],_0x3acc27[_0x5b4c6d(0xe0)]);function _0x1ddf05(_0x1acbeb,_0xc3d73d){const _0x165184=_0x5b4c6d;switch(_0xc3d73d){case _0x949178[_0x165184(0x11a)]['Value']:return _0x1acbeb['valueFields'];case _0x949178[_0x165184(0x11a)][_0x165184(0x12e)]:return _0x1acbeb[_0x165184(0xc3)];case _0x949178['PivotTableFiledAreaEnum'][_0x165184(0x2bc)]:return _0x1acbeb[_0x165184(0x1ec)];case _0x949178['PivotTableFiledAreaEnum'][_0x165184(0x16e)]:return _0x1acbeb[_0x165184(0x278)];default:return[];}}function _0x1b4989(_0x2ac076,_0xae1edc){const _0x2d2b70=_0x5b4c6d;return _0x2ac076[_0x2d2b70(0x2e2)][_0xae1edc]||_0x2ac076[_0x2d2b70(0x283)][_0xae1edc];}function _0x3a62e6(_0x4b7362,_0x1557fc){const _0x555989=_0x5b4c6d,{area:_0x6d87ce,fieldJson:_0x518813,index:_0x2d3a41}=_0x1557fc;_0x6d87ce===_0x949178[_0x555989(0x11a)][_0x555989(0x105)]?_0x4b7362[_0x555989(0x2e2)][_0x518813['id']]=_0x518813:_0x4b7362['dimension'][_0x518813['id']]=_0x518813,_0x1ddf05(_0x4b7362,_0x6d87ce)['splice'](_0x2d3a41,0x0,_0x518813['id']);}function _0x411cf3(_0x208eb8,_0x52c7e4){const _0x1bc3a5=_0x5b4c6d,{area:_0x69f062,fieldId:_0x4ae9df,index:_0x3c72eb}=_0x52c7e4;_0x69f062===_0x949178[_0x1bc3a5(0x11a)][_0x1bc3a5(0x105)]?delete _0x208eb8[_0x1bc3a5(0x2e2)][_0x4ae9df]:delete _0x208eb8['dimension'][_0x4ae9df],_0x1ddf05(_0x208eb8,_0x69f062)['splice'](_0x3c72eb,0x1);}function _0x19c6e2(_0x35deba,_0x2ff7b2){const {fieldId:_0x392ede,name:_0xd52909}=_0x2ff7b2,_0x2892aa=_0x1b4989(_0x35deba,_0x392ede);_0x2892aa&&(_0x2892aa['displayName']=_0xd52909);}function _0x5c5986(_0x43a996,_0x15feac){const _0x27857f=_0x5b4c6d,{fieldId:_0x75df72,collapse:_0xef723e,item:_0x58c8e0}=_0x15feac;_0x58c8e0!==void 0x0?(_0x43a996[_0x27857f(0x1c3)][_0x75df72]=_0x43a996[_0x27857f(0x1c3)][_0x75df72]||{},_0x43a996[_0x27857f(0x1c3)][_0x75df72][_0x58c8e0]=_0xef723e):_0x43a996['collapseInfo'][_0x75df72]=_0xef723e;}function _0x5069b3(_0x5bc55c,_0x36c1d5){const _0x430cc4=_0x5b4c6d,{fieldId:_0x70783e,format:_0x49b0a7}=_0x36c1d5,_0x2d60aa=_0x1b4989(_0x5bc55c,_0x70783e);_0x2d60aa&&(_0x2d60aa[_0x430cc4(0x2f0)]=_0x49b0a7);}function _0x2c8c81(_0x27d967,_0x585317){const _0x2a0130=_0x5b4c6d,{fieldId:_0x356ab3,filterInfo:_0x3d48b7}=_0x585317,_0x27a17b=_0x1b4989(_0x27d967,_0x356ab3);_0x27a17b&&(_0x27a17b[_0x2a0130(0x204)]=_0x3d48b7);}function _0xe2e87c(_0x4ccd5d,_0x4611a9){const _0x2b5d49=_0x5b4c6d,{fieldId:_0x2d8600,filterInfo:_0x93081e}=_0x4611a9,_0x8884d4=_0x4ccd5d[_0x2b5d49(0x202)][_0x2b5d49(0x135)](_0xfaf50e=>_0xfaf50e[_0x2b5d49(0x2bb)]!==_0x2d8600);_0x93081e&&_0x8884d4[_0x2b5d49(0x1cc)]({'fieldId':_0x2d8600,'filterInfo':_0x93081e}),_0x4ccd5d['valueFilter']=_0x8884d4;}function _0x1e0eef(_0xefccba,_0x39c15b){const _0x19cb7c=_0x5b4c6d,{fieldId:_0x56b0a9,subtotalType:_0x34c071}=_0x39c15b,_0x2c08d0=_0x1b4989(_0xefccba,_0x56b0a9);_0x2c08d0&&(_0x2c08d0[_0x19cb7c(0x317)]=_0x34c071);}function _0x1740ac(_0x4e2501,_0x17ed3c){const _0x3ae463=_0x5b4c6d,{fieldId:_0x10f353,oldArea:_0x382f99,area:_0x4d4044,oldIndex:_0x59bbfa,index:_0x3173d5}=_0x17ed3c,_0x131720=_0x382f99!==_0x949178['PivotTableFiledAreaEnum'][_0x3ae463(0x105)]&&_0x4d4044===_0x949178[_0x3ae463(0x11a)][_0x3ae463(0x105)],_0x2ca03b=_0x382f99===_0x949178[_0x3ae463(0x11a)][_0x3ae463(0x105)]&&_0x4d4044!==_0x949178[_0x3ae463(0x11a)]['Value'];if(_0x131720||_0x2ca03b){const _0x579b20=_0x1b4989(_0x4e2501,_0x10f353);_0x579b20&&(_0x131720?(delete _0x4e2501[_0x3ae463(0x283)][_0x10f353],_0x4e2501[_0x3ae463(0x2e2)][_0x10f353]=_0x579b20):(delete _0x4e2501[_0x3ae463(0x2e2)][_0x10f353],_0x4e2501[_0x3ae463(0x283)][_0x10f353]=_0x579b20));}const _0x341154=_0x1ddf05(_0x4e2501,_0x382f99),_0x699c0c=_0x1ddf05(_0x4e2501,_0x4d4044);_0x341154[_0x3ae463(0x351)](_0x59bbfa,0x1),_0x699c0c['splice'](_0x3173d5,0x0,_0x10f353);}function _0x300aa0(_0x345774,_0xde0eb){const {valuePosition:_0x5d1478,index:_0x9d94fd}=_0xde0eb;_0x345774['valuePosition']=_0x5d1478,_0x345774['valueIndex']=_0x9d94fd;}function _0xe7f2a1(_0x333ef3,_0x13658f){const {tableFieldId:_0x5b3721,sourceName:_0x2bb5a7,dataFieldId:_0x8c615e}=_0x13658f,_0x2a1d4c=_0x1b4989(_0x333ef3,_0x5b3721);_0x2a1d4c&&(_0x2a1d4c['sourceName']=_0x2bb5a7,_0x2a1d4c['dataFieldId']=_0x8c615e);}function _0x330239(_0x4c69df,_0x13baa0){const _0x27e6e6=_0x5b4c6d,{fieldId:_0x282646,sortInfo:_0x4e8b87}=_0x13baa0,_0x3cb063=_0x1b4989(_0x4c69df,_0x282646);_0x3cb063&&(_0x3cb063[_0x27e6e6(0x13a)]=_0x4e8b87);}function _0x1d2d94(_0x18bb19,_0x12fc12){const _0x14c704=_0x5b4c6d,{options:_0x45fce3}=_0x12fc12;_0x18bb19[_0x14c704(0x17b)]={..._0x18bb19[_0x14c704(0x17b)],..._0x45fce3};}const _0x24d4d2={'type':_0x2be92f['CommandType']['MUTATION'],'id':_0x5b4c6d(0x28f),'handler'(_0x50172d,_0x2fd97f){const _0x462637=_0x5b4c6d;if(!_0x2fd97f)return!0x1;if(!!_0x50172d[_0x462637(0x177)](_0x2be92f[_0x462637(0x27f)])[_0x462637(0x340)](_0x47449f))return!0x0;const _0x57adeb=_0x50172d[_0x462637(0x177)](_0x3acc27[_0x462637(0x144)]),{pivotTableId:_0x444452,fieldJson:_0x22f436,area:_0x128ca6,index:_0xb37919,unitId:_0x19b76c,subUnitId:_0x90caea}=_0x2fd97f,_0x325357=_0x57adeb[_0x462637(0x1c4)](_0x444452);if(!_0x325357)return!0x1;let _0x2f1c28;_0x128ca6===_0x949178['PivotTableFiledAreaEnum']['Value']?_0x2f1c28=_0x949178[_0x462637(0x26f)](_0x22f436):_0x2f1c28=_0x949178['createLabelField'](_0x22f436),_0x325357[_0x462637(0x2da)](_0x2f1c28,_0x128ca6,_0xb37919);const _0x3157c4=_0x57adeb[_0x462637(0xf1)](_0x19b76c,_0x90caea,_0x444452);_0x3a62e6(_0x3157c4,_0x2fd97f);const _0x3755a8=_0x57adeb[_0x462637(0x290)](_0x19b76c,_0x90caea,_0x444452);return _0x57adeb[_0x462637(0x370)]({'unitId':_0x19b76c,'subUnitId':_0x90caea,'token':_0x444452,'type':_0x1bbb8c[_0x462637(0x261)],'pivotConfig':_0x3755a8}),!0x0;}},_0x4df1a2={'type':_0x2be92f[_0x5b4c6d(0x2b3)]['MUTATION'],'id':_0x5b4c6d(0x2a4),'handler'(_0x4337ff,_0x2e3fc8){const _0x56e5a6=_0x5b4c6d;if(!_0x2e3fc8)return!0x1;if(!!_0x4337ff['get'](_0x2be92f['IConfigService'])[_0x56e5a6(0x340)](_0x47449f))return!0x0;const _0x2a5430=_0x4337ff[_0x56e5a6(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),{pivotTableId:_0xee286d,fieldId:_0x5b024c,unitId:_0x5ddc8c,subUnitId:_0x4a1d17}=_0x2e3fc8,_0x4743b8=_0x2a5430[_0x56e5a6(0x1c4)](_0xee286d);if(!_0x4743b8)return!0x1;_0x4743b8[_0x56e5a6(0x2b1)](_0x5b024c);const _0x26cc5c=_0x2a5430['getPivotTableModelConfig'](_0x5ddc8c,_0x4a1d17,_0xee286d);_0x411cf3(_0x26cc5c,_0x2e3fc8);const _0xfe4e1d=_0x2a5430[_0x56e5a6(0x290)](_0x5ddc8c,_0x4a1d17,_0xee286d);return _0x2a5430['addDirtyPivotTable']({'unitId':_0x5ddc8c,'subUnitId':_0x4a1d17,'token':_0xee286d,'type':_0x1bbb8c['Set'],'pivotConfig':_0xfe4e1d}),!0x0;}},_0x51f654={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x22e),'handler'(_0x3c42ed,_0x1ad64a){const _0x5ea8e8=_0x5b4c6d;if(!_0x1ad64a)return!0x1;if(!!_0x3c42ed[_0x5ea8e8(0x177)](_0x2be92f[_0x5ea8e8(0x27f)])[_0x5ea8e8(0x340)](_0x47449f))return!0x0;const _0x28fe4a=_0x3c42ed['get'](_0x3acc27[_0x5ea8e8(0x144)]),{unitId:_0x5bc803,subUnitId:_0x906846,pivotTableId:_0x54e861,fieldId:_0x5e8ec3,name:_0x475634}=_0x1ad64a,_0x240f5b=_0x28fe4a[_0x5ea8e8(0x1c4)](_0x54e861);if(!_0x240f5b)return!0x1;_0x240f5b[_0x5ea8e8(0x139)](_0x5e8ec3,_0x475634);const _0x231aa0=_0x28fe4a['getPivotTableModelConfig'](_0x5bc803,_0x906846,_0x54e861);return _0x19c6e2(_0x231aa0,_0x1ad64a),_0x28fe4a[_0x5ea8e8(0x370)]({'unitId':_0x5bc803,'subUnitId':_0x906846,'token':_0x54e861,'type':_0x1bbb8c[_0x5ea8e8(0x261)]}),!0x0;}},_0x1d6ae3={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':'sheet.mutation.set-pivot-collapse','handler'(_0x6b41e0,_0x5c4d6d){const _0x5b4064=_0x5b4c6d;if(!_0x5c4d6d)return!0x1;if(!!_0x6b41e0[_0x5b4064(0x177)](_0x2be92f['IConfigService'])[_0x5b4064(0x340)](_0x47449f))return!0x0;const _0x102e16=_0x6b41e0[_0x5b4064(0x177)](_0x3acc27[_0x5b4064(0x144)]),{unitId:_0x3d9c48,subUnitId:_0x3570c9,pivotTableId:_0x15edfd,fieldId:_0x57dfac,collapse:_0x16b32f,item:_0x9e77e4}=_0x5c4d6d,_0x34f971=_0x102e16[_0x5b4064(0x1c4)](_0x15edfd);if(!_0x34f971)return!0x1;_0x34f971['setCollapse'](_0x57dfac,_0x16b32f,_0x9e77e4);const _0x50811a=_0x102e16[_0x5b4064(0xf1)](_0x3d9c48,_0x3570c9,_0x15edfd);return _0x5c5986(_0x50811a,_0x5c4d6d),_0x102e16[_0x5b4064(0x370)]({'unitId':_0x3d9c48,'subUnitId':_0x3570c9,'token':_0x15edfd,'type':_0x1bbb8c[_0x5b4064(0x261)]}),!0x0;}},_0x7df36={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x201),'handler'(_0x522d12,_0x29610e){const _0x490335=_0x5b4c6d;if(!_0x29610e)return!0x1;if(!!_0x522d12[_0x490335(0x177)](_0x2be92f[_0x490335(0x27f)])[_0x490335(0x340)](_0x47449f))return!0x0;const _0x9e574f=_0x522d12[_0x490335(0x177)](_0x3acc27[_0x490335(0x144)]),{unitId:_0x1a78ca,subUnitId:_0x56b206,pivotTableId:_0x2e86e9,fieldId:_0xc6014c,format:_0xa27089}=_0x29610e,_0x9c4ce4=_0x9e574f['getPivotTableInstance'](_0x2e86e9);if(!_0x9c4ce4)return!0x1;_0x9c4ce4[_0x490335(0x197)](_0xc6014c,_0xa27089);const _0x553cdf=_0x9e574f[_0x490335(0xf1)](_0x1a78ca,_0x56b206,_0x2e86e9);return _0x5069b3(_0x553cdf,_0x29610e),_0x9e574f['addDirtyPivotTable']({'unitId':_0x1a78ca,'subUnitId':_0x56b206,'token':_0x2e86e9,'type':_0x1bbb8c[_0x490335(0x261)]}),!0x0;}},_0x807385={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x27e),'handler'(_0x43491b,_0x4fb075){const _0x1e32b=_0x5b4c6d;if(!_0x4fb075)return!0x1;if(!!_0x43491b['get'](_0x2be92f['IConfigService'])[_0x1e32b(0x340)](_0x47449f))return!0x0;const _0xfd5f6=_0x43491b[_0x1e32b(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),{unitId:_0x100a58,subUnitId:_0x1b8f85,pivotTableId:_0x54eb85,fieldId:_0x25d48f,filterInfo:_0x4b216e}=_0x4fb075,_0x30625a=_0xfd5f6['getPivotTableInstance'](_0x54eb85);if(!_0x30625a)return!0x1;_0x30625a[_0x1e32b(0x175)](_0x25d48f,_0x4b216e);const _0x2a0b48=_0xfd5f6[_0x1e32b(0xf1)](_0x100a58,_0x1b8f85,_0x54eb85);return _0x2c8c81(_0x2a0b48,_0x4fb075),_0xfd5f6[_0x1e32b(0x370)]({'unitId':_0x100a58,'subUnitId':_0x1b8f85,'token':_0x54eb85,'type':_0x1bbb8c['Set']}),!0x0;}},_0x5a542d={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':'sheet.mutation.set-pivot-option','handler'(_0xe259e1,_0x36bdd0){const _0x3ed5d9=_0x5b4c6d;if(!_0x36bdd0)return!0x1;if(!!_0xe259e1[_0x3ed5d9(0x177)](_0x2be92f['IConfigService'])[_0x3ed5d9(0x340)](_0x47449f))return!0x0;const _0x30883c=_0xe259e1[_0x3ed5d9(0x177)](_0x3acc27[_0x3ed5d9(0x144)]),{unitId:_0xc566c5,subUnitId:_0x78bc9f,pivotTableId:_0x1a0a04,options:_0x2cbbac}=_0x36bdd0,_0x40ebd4=_0x30883c['getPivotTableInstance'](_0x1a0a04);if(!_0x40ebd4)return!0x1;_0x40ebd4[_0x3ed5d9(0x276)](_0x2cbbac);const _0x3ad889=_0x30883c[_0x3ed5d9(0xf1)](_0xc566c5,_0x78bc9f,_0x1a0a04);return _0x1d2d94(_0x3ad889,_0x36bdd0),_0x30883c[_0x3ed5d9(0x370)]({'unitId':_0xc566c5,'subUnitId':_0x78bc9f,'token':_0x1a0a04,'type':_0x1bbb8c[_0x3ed5d9(0x261)]}),!0x0;}},_0x19ed47={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x162),'handler'(_0x4e546a,_0x3bf3f7){const _0x81c18a=_0x5b4c6d;if(!_0x3bf3f7)return!0x1;if(!!_0x4e546a[_0x81c18a(0x177)](_0x2be92f['IConfigService'])[_0x81c18a(0x340)](_0x47449f))return!0x0;const _0x4c59fe=_0x4e546a['get'](_0x3acc27[_0x81c18a(0x144)]),{unitId:_0x32144d,subUnitId:_0x1942ec,pivotTableId:_0x5506fd,sortInfo:_0x10bf34,fieldId:_0x3d2026}=_0x3bf3f7,_0xda9cc8=_0x4c59fe[_0x81c18a(0x1c4)](_0x5506fd);if(!_0xda9cc8)return!0x1;_0xda9cc8['setSortInfo'](_0x3d2026,_0x10bf34);const _0xa6dd5f=_0x4c59fe[_0x81c18a(0xf1)](_0x32144d,_0x1942ec,_0x5506fd);return _0x330239(_0xa6dd5f,_0x3bf3f7),_0x4c59fe[_0x81c18a(0x370)]({'unitId':_0x32144d,'subUnitId':_0x1942ec,'token':_0x5506fd,'type':_0x1bbb8c['Set']}),!0x0;}},_0x34c3c5={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0xa3a935,_0x167367){const _0x5f2994=_0x5b4c6d;if(!_0x167367)return!0x1;if(!!_0xa3a935[_0x5f2994(0x177)](_0x2be92f[_0x5f2994(0x27f)])[_0x5f2994(0x340)](_0x47449f))return!0x0;const _0x5d0898=_0xa3a935[_0x5f2994(0x177)](_0x3acc27[_0x5f2994(0x144)]),{unitId:_0x1e9de6,subUnitId:_0x4fc79c,pivotTableId:_0x24e346,fieldId:_0x48892a,subtotalType:_0x1a06ae}=_0x167367,_0x1127c6=_0x5d0898[_0x5f2994(0x1c4)](_0x24e346);if(!_0x1127c6)return!0x1;_0x1127c6[_0x5f2994(0x36c)](_0x48892a,_0x1a06ae);const _0x208df2=_0x5d0898['getPivotTableModelConfig'](_0x1e9de6,_0x4fc79c,_0x24e346);return _0x1e0eef(_0x208df2,_0x167367),_0x5d0898['addDirtyPivotTable']({'unitId':_0x1e9de6,'subUnitId':_0x4fc79c,'token':_0x24e346,'type':_0x1bbb8c[_0x5f2994(0x261)]}),!0x0;}},_0x82677d={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x24b4d3,_0x37df54){const _0x2b4e6c=_0x5b4c6d;if(!_0x37df54)return!0x1;if(!!_0x24b4d3[_0x2b4e6c(0x177)](_0x2be92f[_0x2b4e6c(0x27f)])[_0x2b4e6c(0x340)](_0x47449f))return!0x0;const _0x3996b4=_0x24b4d3[_0x2b4e6c(0x177)](_0x3acc27[_0x2b4e6c(0x144)]),{unitId:_0x5d7ddb,subUnitId:_0x242ce7,pivotTableId:_0x51e7b0,fieldId:_0x4d1326,filterInfo:_0x1beae1}=_0x37df54,_0x39265f=_0x3996b4['getPivotTableInstance'](_0x51e7b0);if(!_0x39265f)return!0x1;_0x39265f['setValueFilterInfo'](_0x4d1326,_0x1beae1);const _0x23654b=_0x3996b4[_0x2b4e6c(0xf1)](_0x5d7ddb,_0x242ce7,_0x51e7b0);return _0xe2e87c(_0x23654b,_0x37df54),_0x3996b4[_0x2b4e6c(0x370)]({'unitId':_0x5d7ddb,'subUnitId':_0x242ce7,'token':_0x51e7b0,'type':_0x1bbb8c['Set']}),!0x0;}},_0x152067={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x167),'handler'(_0x3b4938,_0x2c8c5a){const _0x8d7309=_0x5b4c6d;if(!_0x2c8c5a)return!0x1;if(!!_0x3b4938['get'](_0x2be92f[_0x8d7309(0x27f)])[_0x8d7309(0x340)](_0x47449f))return!0x0;const _0x50962f=_0x3b4938[_0x8d7309(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),{unitId:_0x47903a,subUnitId:_0xd06658,pivotTableId:_0x423a92,area:_0xd6a42,index:_0x6fb83c,fieldId:_0x437572}=_0x2c8c5a,_0x26732c=_0x50962f[_0x8d7309(0x1c4)](_0x423a92);if(!_0x26732c)return!0x1;_0x26732c[_0x8d7309(0x21b)](_0x437572,_0xd6a42,_0x6fb83c);const _0x5a23b8=_0x50962f[_0x8d7309(0xf1)](_0x47903a,_0xd06658,_0x423a92);return _0x1740ac(_0x5a23b8,_0x2c8c5a),_0x50962f[_0x8d7309(0x370)]({'unitId':_0x47903a,'subUnitId':_0xd06658,'token':_0x423a92,'type':_0x1bbb8c[_0x8d7309(0x261)]}),!0x0;}},_0x105cc8={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x279),'handler'(_0x4ad00e,_0x28111c){const _0x3d974e=_0x5b4c6d;if(!_0x28111c)return!0x1;if(!!_0x4ad00e[_0x3d974e(0x177)](_0x2be92f[_0x3d974e(0x27f)])['getConfig'](_0x47449f))return!0x0;const _0x4f5d44=_0x4ad00e[_0x3d974e(0x177)](_0x3acc27[_0x3d974e(0x144)]),{unitId:_0x2ff9e2,subUnitId:_0x57948f,pivotTableId:_0x4d9b95,sourceName:_0x2c0edf,dataFieldId:_0x22d93a,tableFieldId:_0x49361a}=_0x28111c,_0x4a4870=_0x4f5d44[_0x3d974e(0x1c4)](_0x4d9b95);if(!_0x4a4870)return!0x1;_0x4a4870['updateFieldSourceInfo'](_0x49361a,_0x2c0edf,_0x22d93a);const _0x1e5934=_0x4f5d44['getPivotTableModelConfig'](_0x2ff9e2,_0x57948f,_0x4d9b95);return _0xe7f2a1(_0x1e5934,_0x28111c),_0x4f5d44[_0x3d974e(0x370)]({'unitId':_0x2ff9e2,'subUnitId':_0x57948f,'token':_0x4d9b95,'type':_0x1bbb8c[_0x3d974e(0x261)]}),!0x0;}},_0x24f1f7={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x296),'handler'(_0x2c0567,_0x2f0cc6){const _0x48e988=_0x5b4c6d;if(!_0x2f0cc6)return!0x1;if(!!_0x2c0567[_0x48e988(0x177)](_0x2be92f[_0x48e988(0x27f)])[_0x48e988(0x340)](_0x47449f))return!0x0;const _0x465b30=_0x2c0567[_0x48e988(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),{unitId:_0x4effa9,subUnitId:_0x311706,pivotTableId:_0x139526,valuePosition:_0x293c55,index:_0x248231}=_0x2f0cc6,_0x474482=_0x465b30[_0x48e988(0x1c4)](_0x139526);if(!_0x474482)return!0x1;_0x474482['updateValuePosition'](_0x293c55,_0x248231);const _0x56bfe3=_0x465b30['getPivotTableModelConfig'](_0x4effa9,_0x311706,_0x139526);return _0x300aa0(_0x56bfe3,_0x2f0cc6),_0x465b30[_0x48e988(0x370)]({'unitId':_0x4effa9,'subUnitId':_0x311706,'token':_0x139526,'type':_0x1bbb8c[_0x48e988(0x261)]}),!0x0;}};function _0x54af12(_0x989b01,_0x708750,_0x4c5091){const _0x23a33d=_0x5b4c6d,{pivotTableId:_0x54d947,unitId:_0x2808e6,subUnitId:_0x5d4dfe}=_0x708750,_0x503050=[],_0x42d707=[];for(const _0x1b9b42 of _0x4c5091)switch(_0x1b9b42[_0x23a33d(0x2b6)]){case _0x949178[_0x23a33d(0x2c5)]['AddField']:{const {fieldJson:_0x78deac,area:_0x7d0caa,index:_0x4022c4}=_0x1b9b42,_0xf1d36d={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldJson':_0x78deac,'area':_0x7d0caa,'index':_0x4022c4},_0x4b5143={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x78deac['id'],'area':_0x7d0caa,'index':_0x4022c4};_0x503050[_0x23a33d(0x1cc)]({'id':_0x24d4d2['id'],'params':_0xf1d36d}),_0x42d707[_0x23a33d(0x2ea)]({'id':_0x4df1a2['id'],'params':_0x4b5143});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x24a)]:{const {fieldId:_0x3bc4e6,newSubtotalType:_0x57ada2,oldSubtotalType:_0x367f02}=_0x1b9b42,_0x255e94={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x3bc4e6,'subtotalType':_0x57ada2};_0x503050[_0x23a33d(0x1cc)]({'id':_0x34c3c5['id'],'params':_0x255e94});const _0x76a021={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x3bc4e6,'subtotalType':_0x367f02};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x34c3c5['id'],'params':_0x76a021});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x7d)]:{const {fieldId:_0x464856,fieldJson:_0x5d4b22,area:_0x521bee,index:_0x4f39b8}=_0x1b9b42,_0x3a33eb={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x464856,'index':_0x4f39b8,'area':_0x521bee};_0x503050['push']({'id':_0x4df1a2['id'],'params':_0x3a33eb});const _0x30d61f={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldJson':_0x5d4b22,'area':_0x521bee,'index':_0x4f39b8};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x24d4d2['id'],'params':_0x30d61f});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x1e9)]:{const {fieldId:_0x2b666f,oldName:_0x23d290,newName:_0x3b6bcb}=_0x1b9b42,_0x14d592={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2b666f,'name':_0x3b6bcb};_0x503050['push']({'id':_0x51f654['id'],'params':_0x14d592});const _0x584651={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2b666f,'name':_0x23d290};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x51f654['id'],'params':_0x584651});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x2b8)]:{const {fieldId:_0xd3ae80,oldFilterInfo:_0x17b2e8,newFilterInfo:_0x187640}=_0x1b9b42,_0xb7f4f7={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0xd3ae80,'filterInfo':_0x187640};_0x503050[_0x23a33d(0x1cc)]({'id':_0x807385['id'],'params':_0xb7f4f7});const _0x325dd8={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0xd3ae80,'filterInfo':_0x17b2e8};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x807385['id'],'params':_0x325dd8});}break;case _0x949178[_0x23a33d(0x2c5)]['SetSortInfo']:{const {fieldId:_0x346821,oldSortInfo:_0x844ac4,newSortInfo:_0x13a375}=_0x1b9b42,_0x4e9d17={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x346821,'sortInfo':_0x13a375};_0x503050[_0x23a33d(0x1cc)]({'id':_0x19ed47['id'],'params':_0x4e9d17});const _0x3686e4={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x346821,'sortInfo':_0x844ac4};_0x42d707['unshift']({'id':_0x19ed47['id'],'params':_0x3686e4});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x76)]:{const {oldOptions:_0x18e103,newOptions:_0x9066cb}=_0x1b9b42,_0xc8bfda={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'options':_0x9066cb};_0x503050[_0x23a33d(0x1cc)]({'id':_0x5a542d['id'],'params':_0xc8bfda});const _0x24b438={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'options':_0x18e103};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x5a542d['id'],'params':_0x24b438});}break;case _0x949178[_0x23a33d(0x2c5)]['UpdateFieldPosition']:{const {oldArea:_0x5462d9,newArea:_0x5da8ee,oldIndex:_0x184ba3,newIndex:_0x331901,fieldId:_0x2a52a8}=_0x1b9b42,_0x344e7e={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2a52a8,'area':_0x5da8ee,'index':_0x331901,'oldArea':_0x5462d9,'oldIndex':_0x184ba3};_0x503050[_0x23a33d(0x1cc)]({'id':_0x152067['id'],'params':_0x344e7e});const _0x2b6121={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2a52a8,'area':_0x5462d9,'index':_0x184ba3,'oldArea':_0x5da8ee,'oldIndex':_0x331901};_0x42d707['unshift']({'id':_0x152067['id'],'params':_0x2b6121});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0xfe)]:{const {oldValuePosition:_0x5aaaa5,newValuePosition:_0xe77c25,oldIndex:_0x1c52d0,newIndex:_0x49a5ec}=_0x1b9b42,_0x144811={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'valuePosition':_0xe77c25,'index':_0x49a5ec};_0x503050[_0x23a33d(0x1cc)]({'id':_0x24f1f7['id'],'params':_0x144811});const _0x392303={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'valuePosition':_0x5aaaa5,'index':_0x1c52d0};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x24f1f7['id'],'params':_0x392303});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x221)]:{const {fieldId:_0x2ea819,collapse:_0x2bb255,item:_0x3d59e4}=_0x1b9b42,_0x238d39={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2ea819,'collapse':_0x2bb255,'item':_0x3d59e4};_0x503050[_0x23a33d(0x1cc)]({'id':_0x1d6ae3['id'],'params':_0x238d39});const _0x43d90e={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2ea819,'collapse':!_0x2bb255,'item':_0x3d59e4};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x1d6ae3['id'],'params':_0x43d90e});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0xd0)]:{const {newFormat:_0x211ce2,oldFormat:_0x41f265,fieldId:_0x2dfdc3}=_0x1b9b42,_0x266c24={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2dfdc3,'format':_0x211ce2};_0x503050[_0x23a33d(0x1cc)]({'id':_0x7df36['id'],'params':_0x266c24});const _0x5c6133={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x2dfdc3,'format':_0x41f265};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x7df36['id'],'params':_0x5c6133});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x132)]:{const {tableFieldId:_0x57c921,oldSourceName:_0x4b702f,newSourceName:_0x2b25d2,oldDataFieldId:_0x5908a3,newDataFieldId:_0x5768f2}=_0x1b9b42,_0xe3af41={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'tableFieldId':_0x57c921,'sourceName':_0x2b25d2,'dataFieldId':_0x5768f2};_0x503050[_0x23a33d(0x1cc)]({'id':_0x105cc8['id'],'params':_0xe3af41});const _0x97da7a={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'tableFieldId':_0x57c921,'sourceName':_0x4b702f,'dataFieldId':_0x5908a3};_0x42d707[_0x23a33d(0x2ea)]({'id':_0x105cc8['id'],'params':_0x97da7a});}break;case _0x949178[_0x23a33d(0x2c5)][_0x23a33d(0x16a)]:{const {fieldId:_0x659632,filterInfo:_0x30b111,oldFilterInfo:_0x2462e2}=_0x1b9b42,_0x5de6b7={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x659632,'filterInfo':_0x30b111};_0x503050[_0x23a33d(0x1cc)]({'id':_0x82677d['id'],'params':_0x5de6b7});const _0x31497e={'unitId':_0x2808e6,'subUnitId':_0x5d4dfe,'pivotTableId':_0x54d947,'fieldId':_0x659632,'filterInfo':_0x2462e2};_0x42d707['unshift']({'id':_0x82677d['id'],'params':_0x31497e});}}return{'redos':_0x503050,'undos':_0x42d707};}function _0x169f26(_0x7acc16,_0x4d3f39){const _0x292552=_0x5b4c6d;var _0x28b7de;const _0x5d8dfc=_0x7acc16[_0x292552(0x177)](_0x3acc27[_0x292552(0xe0)]),{cellInfo:_0x4f7db3,view:_0x47a859,isEmpty:_0x2a3c4b}=_0x4d3f39;return(_0x28b7de=_0x5d8dfc[_0x292552(0x297)][_0x292552(0x380)](_0xdfc14c)(_0x2a4ef2,{'cellInfo':_0x4f7db3,'view':_0x47a859,'isEmpty':_0x2a3c4b}))!=null?_0x28b7de:_0x2a4ef2;}const _0x46a36f=()=>typeof process<'u'&&process[_0x5b4c6d(0x2e4)]!=null&&process[_0x5b4c6d(0x2e4)][_0x5b4c6d(0x1c1)]!=null,_0x5bd603={'type':_0x2be92f[_0x5b4c6d(0x2b3)]['MUTATION'],'id':_0x5b4c6d(0x218),'handler'(_0x5b120b,_0x51e536){const _0x44edca=_0x5b4c6d;var _0x3d7815;if(!_0x51e536)return!0x1;const _0x55940c=_0x5b120b[_0x44edca(0x177)](_0x2be92f[_0x44edca(0x27f)]);if(!!_0x55940c['getConfig'](_0x47449f))return!0x0;const _0x25816d=_0x5b120b[_0x44edca(0x177)](_0x2be92f['IUniverInstanceService']),_0xe8cda2=_0x5b120b['get'](_0x3acc27[_0x44edca(0x144)]),{pivotTableId:_0x2e4e7e,pivotTableConfig:_0x5c8fb1,collectionConfig:_0x18882a,unitId:_0x500c14,subUnitId:_0x35df45}=_0x51e536,{sourceRangeInfo:_0x355bb9,fieldsConfig:_0x29d94f,targetCellInfo:_0x3fe7a7}=_0x5c8fb1,_0x320ed8=_0x25816d[_0x44edca(0x2fd)](_0x500c14);if(!_0x320ed8||!_0x320ed8[_0x44edca(0xc6)](_0x35df45))return!0x1;if(!_0x46a36f()){let _0x3d868a=0x0;_0x320ed8['getSheets']()[_0x44edca(0x36a)](_0xe1b43a=>{const _0x1bca1e=_0x44edca;var _0x249fdb,_0x14c820;_0x3d868a+=(_0x14c820=(_0x249fdb=_0xe8cda2['getSubUnitPivotConfigs'](_0x500c14,_0xe1b43a[_0x1bca1e(0x33e)]()))==null?void 0x0:_0x249fdb[_0x1bca1e(0x18c)])!=null?_0x14c820:0x0;});const _0x26575e=(_0x3d7815=_0x55940c[_0x44edca(0x340)](_0x327f17[_0x44edca(0x371)]))!=null?_0x3d7815:{},{ls:_0x1f6b91,pbk:_0xdf63ac}=_0x26575e;if(!_0x259459(_0x1f6b91,_0xdf63ac))throw new _0x2be92f[(_0x44edca(0x186))](_0x44edca(0x238));const _0x19f96a=_0xea67dc(_0x3008ad,_0x1f6b91,_0xdf63ac)[_0x44edca(0x32c)];if(_0x3d868a>=_0x19f96a)throw new _0x2be92f['CustomCommandExecutionError'](_0x44edca(0x238));}if(!_0x18882a||!_0x29d94f)return!0x1;const {collection:_0xe7bd9,updateDataFieldList:_0x4b905f}=_0xe8cda2[_0x44edca(0x23e)](_0x2e4e7e,_0x18882a,_0x355bb9,_0x3fe7a7);_0xe8cda2['refreshData'](_0xe7bd9,_0x4b905f,_0x355bb9);const _0x4312cf=new _0x949178[(_0x44edca(0xcd))](_0xe7bd9,void 0x0,_0x2e4e7e);_0x4312cf[_0x44edca(0x129)](_0x29d94f);const _0x41c6c4=JSON[_0x44edca(0x1ed)](JSON[_0x44edca(0x1b5)](_0x5c8fb1));return _0xe8cda2['addPivotTable'](_0x500c14,_0x35df45,_0x2e4e7e,_0x4312cf,_0x41c6c4),_0xe8cda2[_0x44edca(0x370)]({'unitId':_0x500c14,'subUnitId':_0x35df45,'token':_0x2e4e7e,'type':_0x1bbb8c[_0x44edca(0x287)],'pivotConfig':_0x41c6c4}),!0x0;}},_0x1d746e={'type':_0x2be92f['CommandType']['MUTATION'],'id':'sheet.mutation.remove-pivot-table','handler'(_0x22f9f8,_0x45afca){const _0x295c90=_0x5b4c6d;if(!_0x45afca)return!0x1;if(!!_0x22f9f8[_0x295c90(0x177)](_0x2be92f['IConfigService'])[_0x295c90(0x340)](_0x47449f))return!0x0;const {pivotTableId:_0x3001c0,unitId:_0x104267,subUnitId:_0x5df429}=_0x45afca,_0x58d4db=_0x22f9f8[_0x295c90(0x177)](_0x3acc27[_0x295c90(0x144)]);return _0x58d4db[_0x295c90(0x290)](_0x104267,_0x5df429,_0x3001c0)?(_0x58d4db[_0x295c90(0x370)]({'unitId':_0x104267,'subUnitId':_0x5df429,'token':_0x3001c0,'type':_0x1bbb8c[_0x295c90(0x231)]}),_0x58d4db[_0x295c90(0x32f)](_0x104267,_0x5df429,_0x3001c0),!0x0):!0x1;}},_0x2730bb={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':'sheet.mutation.set-pivot-position','handler'(_0x2ce526,_0x34c2cf){const _0x37498b=_0x5b4c6d;if(!_0x34c2cf)return!0x1;if(!!_0x2ce526[_0x37498b(0x177)](_0x2be92f['IConfigService'])['getConfig'](_0x47449f))return!0x0;const {pivotTableId:_0x5d5060,targetCellPosition:_0x2ade96,unitId:_0x5ae206,subUnitId:_0x395638}=_0x34c2cf,_0x9abafd=_0x2ce526[_0x37498b(0x177)](_0x3acc27[_0x37498b(0x144)]);if(!_0x9abafd[_0x37498b(0x1c4)](_0x34c2cf[_0x37498b(0x80)]))return!0x1;const _0x21aed1=_0x9abafd[_0x37498b(0x1b1)](_0x5d5060);if(!_0x21aed1)return!0x1;const _0x1b9bcb=_0x9abafd['getCollection'](_0x21aed1['unitId'],_0x34c2cf['pivotTableId']);if(!_0x1b9bcb)return!0x1;const _0x3d7165=_0x9abafd[_0x37498b(0x290)](_0x21aed1['unitId'],_0x21aed1[_0x37498b(0x19f)],_0x5d5060);if(!_0x3d7165)return!0x1;const _0xb2eb6=_0x2be92f[_0x37498b(0x2d6)]['deepClone'](_0x3d7165);_0xb2eb6['targetCellInfo']={'unitId':_0x5ae206,'subUnitId':_0x395638,'row':_0x2ade96[_0x37498b(0x178)],'col':_0x2ade96[_0x37498b(0x320)]};const _0x3679db=_0x1b9bcb['toJSON']();if(_0x21aed1['subUnitId']===_0x395638&&_0x21aed1[_0x37498b(0x2d0)]===_0x5ae206)_0x9abafd[_0x37498b(0x2d1)](_0x5ae206,_0x395638,_0x5d5060,_0xb2eb6),_0x9abafd[_0x37498b(0x370)]({'unitId':_0x5ae206,'subUnitId':_0x395638,'token':_0x5d5060,'type':_0x1bbb8c[_0x37498b(0x261)]});else{_0x9abafd[_0x37498b(0x370)]({'unitId':_0x21aed1[_0x37498b(0x2d0)],'subUnitId':_0x21aed1[_0x37498b(0x19f)],'token':_0x5d5060,'type':_0x1bbb8c[_0x37498b(0x231)]}),_0x9abafd[_0x37498b(0x32f)](_0x21aed1[_0x37498b(0x2d0)],_0x21aed1['subUnitId'],_0x5d5060);const _0x4618c6=_0x9abafd[_0x37498b(0x23e)](_0x5d5060,_0x3679db,_0x3d7165[_0x37498b(0x1fb)],_0xb2eb6['targetCellInfo']),_0x2cfb0f=new _0x949178['PivotTable'](_0x4618c6['collection'],void 0x0,_0x5d5060);_0x2cfb0f[_0x37498b(0x129)](_0xb2eb6[_0x37498b(0x389)]),_0x9abafd[_0x37498b(0x302)](_0x5ae206,_0x395638,_0x5d5060,_0x2cfb0f,_0xb2eb6),_0x9abafd['addDirtyPivotTable']({'unitId':_0x5ae206,'subUnitId':_0x395638,'token':_0x5d5060,'type':_0x1bbb8c[_0x37498b(0x287)],'pivotConfig':_0xb2eb6});}return!0x0;}},_0x2988cb={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0xff),'handler'(_0x2f3e87,_0x59a207){const _0x22d401=_0x5b4c6d;if(!_0x59a207)return!0x1;if(!!_0x2f3e87[_0x22d401(0x177)](_0x2be92f[_0x22d401(0x27f)])['getConfig'](_0x47449f))return!0x0;const _0x5237e5=_0x2f3e87[_0x22d401(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),{pivotTableId:_0x5c17a6,deleteIds:_0x17bb37,collectionJSON:_0x33c5be,dataRangeInfo:_0x21c1e5,unitId:_0xe52099,subUnitId:_0x725044}=_0x59a207,_0x4aa8aa=_0x5237e5[_0x22d401(0x1c4)](_0x5c17a6),_0x1692d7=_0x5237e5[_0x22d401(0x290)](_0xe52099,_0x725044,_0x5c17a6);if(!_0x4aa8aa||!_0x1692d7)return!0x1;const {collection:_0x1ea1de,updateDataFieldList:_0x29e23c}=_0x5237e5[_0x22d401(0x23e)](_0x5c17a6,_0x33c5be,_0x21c1e5,_0x1692d7[_0x22d401(0x282)]);_0x5237e5[_0x22d401(0x332)](_0x1ea1de,_0x29e23c,_0x21c1e5),_0x4aa8aa[_0x22d401(0x338)](_0x1ea1de);for(const _0x48e511 of _0x17bb37)_0x5237e5[_0x22d401(0xb0)](_0x21c1e5[_0x22d401(0x2d0)],_0x48e511);const _0x20b5bf=_0x5237e5[_0x22d401(0x290)](_0xe52099,_0x725044,_0x5c17a6);return _0x20b5bf['sourceRangeInfo']=JSON[_0x22d401(0x1ed)](JSON['stringify'](_0x21c1e5)),_0x5237e5['addDirtyPivotTable']({'unitId':_0xe52099,'subUnitId':_0x725044,'token':_0x5c17a6,'type':_0x1bbb8c['Set']}),!0x0;}},_0x500ef9={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'id':_0x5b4c6d(0x91),'handler'(){return!0x0;}};var _0x395319=Object['getOwnPropertyDescriptor'],_0x6f1b2b=(_0x17236b,_0x5c3d0b,_0x2f10cc,_0x2ce407)=>{for(var _0x2eb6c2=_0x2ce407>0x1?void 0x0:_0x2ce407?_0x395319(_0x5c3d0b,_0x2f10cc):_0x5c3d0b,_0x341fbd=_0x17236b['length']-0x1,_0x448c36;_0x341fbd>=0x0;_0x341fbd--)(_0x448c36=_0x17236b[_0x341fbd])&&(_0x2eb6c2=_0x448c36(_0x2eb6c2)||_0x2eb6c2);return _0x2eb6c2;},_0x2f52bb=(_0x4ee162,_0x2c6acf)=>(_0x2f83c7,_0x1dbce1)=>_0x2c6acf(_0x2f83c7,_0x1dbce1,_0x4ee162);_0x3acc27[_0x5b4c6d(0x2c3)]=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x31d6e3,_0x370a72){const _0x3cdd52=_0x5b4c6d;super(),_0x102d83(this,_0x3cdd52(0x342),new Map()),(this[_0x3cdd52(0x214)]=_0x31d6e3,this[_0x3cdd52(0x2c6)]=_0x370a72);}[_0x5b4c6d(0x1eb)](_0x317f6b){const _0x4d0b84=_0x5b4c6d,{version:_0x489a58}=_0x317f6b,_0x2afa0e=this[_0x4d0b84(0x342)][_0x4d0b84(0x177)](_0x489a58);_0x2afa0e&&(_0x2afa0e(_0x317f6b),this['_requestResolvers'][_0x4d0b84(0x236)](_0x489a58));}[_0x5b4c6d(0xfa)](_0x2ba005){return new Promise((_0x4cd12e,_0x161eed)=>{const _0x3c457c=_0x6997,_0x459fa1=this['_generateUniqueVersion']();this['_requestResolvers']['set'](_0x459fa1,_0x4cd12e),this[_0x3c457c(0x2c6)]['executeCommand'](_0x2ef776['id'],{'version':_0x459fa1,..._0x2ba005},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x59deec=_0x5b4c6d;return Math[_0x59deec(0x323)]()[_0x59deec(0x10e)](0x24)[_0x59deec(0x277)](0x2,0x10);}},_0x3acc27[_0x5b4c6d(0x2c3)]=_0x6f1b2b([_0x2f52bb(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f['Injector'])),_0x2f52bb(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x109)]))],_0x3acc27['SheetsPivotRPCService']);const _0x4263={'id':_0x5b4c6d(0x31b),'type':_0x2be92f['CommandType'][_0x5b4c6d(0x179)],'handler':(_0x377f74,_0x11ccb4)=>{const _0x4bee50=_0x5b4c6d;if(!_0x11ccb4)return!0x1;if(!!_0x377f74[_0x4bee50(0x177)](_0x2be92f[_0x4bee50(0x27f)])['getConfig'](_0x47449f))return!0x0;const {pivotTableId:_0xfdbff4,fieldJSON:_0x254bac,unitId:_0x36b756,subUnitId:_0x425414}=_0x11ccb4,_0x5e8390=_0x949178[_0x4bee50(0x1d5)][_0x4bee50(0x129)](_0x254bac);if(!_0x5e8390)return!0x1;const _0x454702=_0x377f74[_0x4bee50(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),_0x54d3d6=_0x454702[_0x4bee50(0x2c2)](_0x36b756),_0x5b2799=_0x54d3d6[_0x4bee50(0x28c)](_0xfdbff4);_0x54d3d6[_0x4bee50(0x25e)](_0x5e8390),_0x5b2799[_0x4bee50(0x2da)](_0x5e8390['getId'](),_0x5e8390[_0x4bee50(0x136)]());const _0x4ad72f=_0x5b2799['getFieldById'](_0x5e8390[_0x4bee50(0x125)]());_0x4ad72f&&_0x5e8390['refreshGroupField'](_0x4ad72f);const _0xc9f850=_0x454702[_0x4bee50(0x290)](_0x36b756,_0x425414,_0xfdbff4);return _0x454702[_0x4bee50(0x370)]({'unitId':_0x36b756,'subUnitId':_0x425414,'token':_0xfdbff4,'type':_0x1bbb8c[_0x4bee50(0x261)],'pivotConfig':_0xc9f850}),!0x0;}},_0x1253d3={'id':'sheet.mutation.remove-group-collection','type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'handler':(_0x4d9911,_0x15fc05)=>{const _0x1823ce=_0x5b4c6d;if(!_0x15fc05)return!0x1;if(!!_0x4d9911[_0x1823ce(0x177)](_0x2be92f[_0x1823ce(0x27f)])['getConfig'](_0x47449f))return!0x0;const {pivotTableId:_0x4ff9f5,dataFieldId:_0x52c4c0,unitId:_0x1953a5,subUnitId:_0x49be13}=_0x15fc05,_0x29ee25=_0x4d9911[_0x1823ce(0x177)](_0x3acc27['SheetsPivotDataSourceModel']),_0x32ab01=_0x29ee25['getDataFieldManager'](_0x1953a5);_0x32ab01[_0x1823ce(0x28c)](_0x4ff9f5)[_0x1823ce(0xfd)](_0x52c4c0);let _0x54eb92=!0x0;for(const _0x4664b9 in _0x32ab01['collections'])if(_0x32ab01[_0x1823ce(0x307)][_0x4664b9][_0x1823ce(0x225)]()['includes'](_0x52c4c0)){_0x54eb92=!0x1;break;}_0x54eb92&&_0x32ab01[_0x1823ce(0x1de)](_0x52c4c0);const _0x1963e5=_0x29ee25[_0x1823ce(0x290)](_0x1953a5,_0x49be13,_0x4ff9f5);return _0x29ee25[_0x1823ce(0x370)]({'unitId':_0x1953a5,'subUnitId':_0x49be13,'token':_0x4ff9f5,'type':_0x1bbb8c[_0x1823ce(0x261)],'pivotConfig':_0x1963e5}),!0x0;}},_0x1febc0={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x27c),async 'handler'(_0x51bca2,_0x334e9e){const _0x3a3778=_0x5b4c6d;if(!_0x334e9e)return!0x1;const _0xffb1cf=_0x51bca2[_0x3a3778(0x177)](_0x2be92f[_0x3a3778(0x109)]),_0x38e33b=_0x51bca2[_0x3a3778(0x177)](_0x3acc27[_0x3a3778(0x2c3)]),_0x323192=_0x51bca2['get'](_0x2be92f['IUndoRedoService']),{pivotTableId:_0x2333d4,dataFieldId:_0x58da1b,fieldArea:_0x5a24a2,index:_0x4f4f96,unitId:_0x462c90,subUnitId:_0x39a111}=_0x334e9e,_0x47179a=(await _0x38e33b['getPivotDisplayConfig']({'unitId':_0x462c90,'subUnitId':_0x39a111,'pivotTableId':_0x2333d4,'params':{'type':_0x357f41['AddPivotField'],'addPivotField':{'dataFieldId':_0x58da1b,'fieldArea':_0x5a24a2,'index':_0x4f4f96}}}))[_0x3a3778(0x29f)]['addPivotField'];if(!_0x47179a)return!0x1;const {view:_0x2234b5,changesets:_0x3ec5c6,isEmpty:_0x3dfebe,pivotTableConfig:_0x227804,shouldBeAddedGroupJSON:_0x37d9cd}=_0x47179a,_0x97f1f1=_0x227804['targetCellInfo'],_0x572553=new _0x949178[(_0x3a3778(0x140))]();_0x572553[_0x3a3778(0x106)](_0x2234b5);const _0x16ad02={'cellInfo':_0x97f1f1,'view':_0x572553,'isEmpty':_0x3dfebe};if(!await _0x51bca2[_0x3a3778(0x177)](_0x3acc27[_0x3a3778(0xe0)])[_0x3a3778(0x357)]['fetchThroughAsyncInterceptors'](_0x26e2dc)(!0x0,_0x16ad02))return!0x1;const _0x6c9442=_0x29e760(_0x51bca2,_0x572553,_0x97f1f1,_0x3dfebe),_0x5221d6=_0x169f26(_0x51bca2,_0x16ad02),{undos:_0x24b140,redos:_0x4f6e51}=_0x54af12(_0xffb1cf,{'pivotTableId':_0x2333d4,'unitId':_0x462c90,'subUnitId':_0x39a111},_0x3ec5c6);return _0x37d9cd&&(_0x4f6e51[_0x3a3778(0x2ea)]({'id':_0x4263['id'],'params':{'pivotTableId':_0x2333d4,'fieldJSON':_0x37d9cd,'unitId':_0x462c90,'subUnitId':_0x39a111}}),_0x24b140[_0x3a3778(0x1cc)]({'id':_0x1253d3['id'],'params':{'pivotTableId':_0x2333d4,'dataFieldId':_0x37d9cd['id'],'unitId':_0x462c90,'subUnitId':_0x39a111}})),_0x2be92f[_0x3a3778(0x195)]([..._0x6c9442[_0x3a3778(0x333)],..._0x5221d6['redos'],..._0x4f6e51],_0xffb1cf),_0x323192[_0x3a3778(0x1f6)]({'unitID':_0x462c90,'redoMutations':[..._0x6c9442['redos'],..._0x5221d6[_0x3a3778(0x333)],..._0x4f6e51],'undoMutations':[..._0x6c9442['undos'],..._0x5221d6['undos'],..._0x24b140]}),!0x0;}},_0x16e723={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x24f),async 'handler'(_0x5c9c95,_0x1465c4){const _0x31512a=_0x5b4c6d;if(!_0x1465c4)return!0x1;const {sourceDataInfo:_0x8a376,pivotTableConfig:_0x4e5836}=_0x1465c4;if(!_0x8a376||!_0x4e5836)return!0x1;const {unitId:_0x3d0a80,subUnitId:_0x440a07,range:_0x3ebc1c}=_0x8a376,_0x416ee2=_0x5c9c95[_0x31512a(0x177)](_0x2be92f[_0x31512a(0xd2)]),_0x579d03=_0x5c9c95['get'](_0x3acc27[_0x31512a(0x2c3)]),_0x20668e=_0x5c9c95['get'](_0x2be92f['LocaleService']),_0x332f26=_0x5c9c95[_0x31512a(0x177)](_0x2be92f[_0x31512a(0x109)]),_0x561d9b=_0x416ee2[_0x31512a(0x2fd)](_0x3d0a80);if(!_0x561d9b)return!0x1;const _0x51a366=_0x561d9b[_0x31512a(0xc6)](_0x440a07);if(!_0x51a366)return!0x1;const _0x329d19=_0x949178[_0x31512a(0x107)](0x8),_0x17e46a=_0x3ebc1c||{'startRow':0x0,'startColumn':0x0,'endRow':_0x51a366[_0x31512a(0x312)]()-0x1,'endColumn':_0x51a366[_0x31512a(0x309)]()-0x1};_0x17e46a['rangeType']=_0x2be92f[_0x31512a(0x123)]['NORMAL'];const _0x203116=(await _0x579d03['getPivotDisplayConfig']({'unitId':_0x3d0a80,'subUnitId':_0x440a07,'pivotTableId':_0x329d19,'params':{'type':_0x357f41[_0x31512a(0x2ad)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x3d0a80,'sheetName':_0x51a366[_0x31512a(0x136)](),'subUnitId':_0x440a07,'range':_0x17e46a},'pivotTableId':_0x329d19,'pivotTableIndexConfig':_0x4e5836}}}))[_0x31512a(0x29f)][_0x31512a(0x194)];if(!_0x203116)return!0x1;const {isEmpty:_0x547364,fieldsConfig:_0x5b786d,collectionConfig:_0x230c78,changesets:_0x44d781}=_0x203116,_0x5b34c9=_0x561d9b[_0x31512a(0x2ba)]()[_0x31512a(0xad)],_0x224020=_0x2be92f[_0x31512a(0x157)]({'rowCount':_0x51a366[_0x31512a(0x312)]()-0x1,'columnCount':_0x51a366[_0x31512a(0x309)]()-0x1});_0x224020['id']=_0x2be92f[_0x31512a(0x1ca)](),_0x224020[_0x31512a(0x2db)]=_0x561d9b[_0x31512a(0x137)](''+_0x20668e['t']('sheets.tabs.sheet'));const _0x244a74={'index':_0x5b34c9,'sheet':_0x224020,'unitId':_0x3d0a80},{redos:_0x5acfcc}=_0x54af12(_0x332f26,{'pivotTableId':_0x329d19,'unitId':_0x3d0a80,'subUnitId':_0x224020['id']},_0x44d781),_0x526f3f=[{'id':_0xac1e83[_0x31512a(0x128)]['id'],'params':_0x244a74},{'id':_0x5bd603['id'],'params':{'unitId':_0x3d0a80,'subUnitId':_0x224020['id'],'pivotTableId':_0x329d19,'pivotTableConfig':{'isEmpty':_0x547364,'fieldsConfig':_0x5b786d,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x3d0a80,'subUnitId':_0x224020['id']},'sourceRangeInfo':{'subUnitId':_0x440a07,'unitId':_0x3d0a80,'range':_0x17e46a,'sheetName':_0x51a366[_0x31512a(0x136)]()}},'collectionConfig':_0x230c78}},..._0x5acfcc];return _0x2be92f[_0x31512a(0x195)](_0x526f3f,_0x332f26),!0x0;}},_0x1b3268={'type':_0x2be92f[_0x5b4c6d(0x2b3)]['COMMAND'],'id':_0x5b4c6d(0x219),async 'handler'(_0x2f494c,_0x11987d){const _0x209981=_0x5b4c6d;var _0x17b898,_0x14785c;const _0x327d7c=_0x2f494c['get'](_0x2be92f[_0x209981(0x109)]),_0x3666bc=_0x2f494c[_0x209981(0x177)](_0x2be92f['IUniverInstanceService']),_0x150bce=_0x2f494c[_0x209981(0x177)](_0x2be92f[_0x209981(0x126)]),_0x57c1b8=_0x2f494c[_0x209981(0x177)](_0x3acc27[_0x209981(0x2c3)]),_0x770320=_0x2f494c['get'](_0x2be92f[_0x209981(0x356)]),_0x1c0b59=_0x2f494c['get'](_0x3acc27[_0x209981(0x216)]),_0x711078=_0x2f494c[_0x209981(0x177)](_0x2be92f['IConfigService']);if(!_0x11987d)return!0x1;const {pivotTableConfig:_0x39004d,positionType:_0x452774}=_0x11987d,{targetCellInfo:_0x4a9f0f,sourceRangeInfo:_0x1061a7}=_0x39004d,{unitId:_0x2a645c,subUnitId:_0x25e386}=_0x4a9f0f,_0x4cf760=_0x3666bc[_0x209981(0x2fd)](_0x2a645c);if(!_0x4cf760)return!0x1;let _0x7b27d1=0x0;_0x4cf760[_0x209981(0x2ba)]()[_0x209981(0x36a)](_0x2fd940=>{const _0x3d8b4d=_0x209981;var _0x19c1c3,_0x411116;_0x7b27d1+=(_0x411116=(_0x19c1c3=_0x1c0b59[_0x3d8b4d(0x37b)](_0x2a645c,_0x2fd940['getSheetId']()))==null?void 0x0:_0x19c1c3['size'])!=null?_0x411116:0x0;});const _0x420ff5=(_0x17b898=_0x711078[_0x209981(0x340)](_0x327f17['LS_CONFIG_KEY']))!=null?_0x17b898:{},{ls:_0x4125c7,pbk:_0x30805c}=_0x420ff5;if(!_0x259459(_0x4125c7,_0x30805c))return!0x1;const _0x3bbb90=_0xea67dc(_0x3008ad,_0x4125c7,_0x30805c)['count'];if(_0x7b27d1>=_0x3bbb90)return!0x1;const _0x29f747=_0x11987d['pivotTableId']||_0x949178[_0x209981(0x107)](0x8),_0x4f7691=(await _0x57c1b8['getPivotDisplayConfig']({'unitId':_0x2a645c,'subUnitId':_0x25e386,'pivotTableId':_0x29f747,'params':{'type':_0x357f41['AddPivotTable'],'addPivotTable':{'sourceRangeInfo':_0x1061a7,'pivotTableId':_0x29f747}}}))['result'][_0x209981(0x302)];if(!_0x4f7691)return!0x1;const {view:_0x21b3de,isEmpty:_0x482bb8,fieldsConfig:_0x1abb19,collectionConfig:_0x3b73c6}=_0x4f7691,_0x1e0532=[],_0x349026=[];if(_0x452774===_0x5242d0[_0x209981(0x21e)]){const _0x122311=_0x4cf760[_0x209981(0x2ba)]()[_0x209981(0xad)],_0x32dd2c=_0x2be92f['mergeWorksheetSnapshotWithDefault']({});_0x32dd2c['id']=_0x39004d[_0x209981(0x282)][_0x209981(0x19f)],_0x32dd2c[_0x209981(0x2db)]=(_0x14785c=_0x39004d['targetCellInfo'][_0x209981(0x143)])!=null?_0x14785c:_0x4cf760['generateNewSheetName'](''+_0x150bce['t'](_0x209981(0x188)));const _0x519a58={'index':_0x122311,'sheet':_0x32dd2c,'unitId':_0x2a645c},_0x408984=_0xac1e83[_0x209981(0xb7)](_0x2f494c,_0x519a58);_0x1e0532[_0x209981(0x1cc)]({'id':_0xac1e83['RemoveSheetMutation']['id'],'params':_0x408984}),_0x349026['push']({'id':_0xac1e83['InsertSheetMutation']['id'],'params':_0x519a58});}else{if(!_0x4cf760[_0x209981(0xc6)](_0x25e386))return!0x1;const _0x4456bf=_0x29e760(_0x2f494c,new _0x949178[(_0x209981(0x140))](),_0x4a9f0f,!0x0);_0x349026['push'](..._0x4456bf['redos']),_0x1e0532[_0x209981(0x1cc)](..._0x4456bf[_0x209981(0x187)]);const _0x30ae6d={'cellInfo':_0x4a9f0f,'view':_0x21b3de,'isEmpty':_0x482bb8};if(!await _0x2f494c[_0x209981(0x177)](_0x3acc27['SheetsPivotTableService'])[_0x209981(0x357)][_0x209981(0x23b)](_0x26e2dc)(!0x0,_0x30ae6d))return!0x1;const _0x2db80b=_0x169f26(_0x2f494c,_0x30ae6d);_0x349026[_0x209981(0x1cc)](..._0x2db80b['redos']),_0x1e0532[_0x209981(0x1cc)](..._0x2db80b['undos']);}return _0x349026['push']({'id':_0x5bd603['id'],'params':{'unitId':_0x4a9f0f[_0x209981(0x2d0)],'subUnitId':_0x4a9f0f['subUnitId'],'pivotTableId':_0x29f747,'pivotTableConfig':{'targetCellInfo':_0x4a9f0f,'sourceRangeInfo':_0x1061a7,'fieldsConfig':_0x1abb19},'collectionConfig':_0x3b73c6}}),_0x1e0532[_0x209981(0x2ea)]({'id':_0x1d746e['id'],'params':{'unitId':_0x2a645c,'subUnitId':_0x25e386,'pivotTableId':_0x29f747}}),_0x2be92f[_0x209981(0x195)](_0x349026,_0x327d7c)&&_0x770320[_0x209981(0x1f6)]({'unitID':_0x2a645c,'undoMutations':_0x1e0532,'redoMutations':_0x349026}),!0x0;}},_0x31a0e8={'type':_0x2be92f[_0x5b4c6d(0x2b3)]['COMMAND'],'id':_0x5b4c6d(0x82),async 'handler'(_0x4369c4,_0x224dac){const _0x4b355a=_0x5b4c6d;if(!_0x224dac)return!0x1;const _0x262597=_0x4369c4[_0x4b355a(0x177)](_0x2be92f[_0x4b355a(0x109)]),_0x59c6fe=_0x4369c4[_0x4b355a(0x177)](_0x3acc27['SheetsPivotRPCService']),_0x4eecc9=_0x4369c4[_0x4b355a(0x177)](_0x2be92f[_0x4b355a(0x356)]),{pivotTableId:_0x1d16a6,fieldId:_0x4c2d9c,area:_0x20e0db,index:_0x2dd7e5,unitId:_0x21d92a,subUnitId:_0x13d017}=_0x224dac,_0x1ee838=(await _0x59c6fe[_0x4b355a(0xfa)]({'unitId':_0x21d92a,'subUnitId':_0x13d017,'pivotTableId':_0x1d16a6,'params':{'type':_0x357f41[_0x4b355a(0x227)],'movePivotField':{'fieldId':_0x4c2d9c,'area':_0x20e0db,'index':_0x2dd7e5}}}))[_0x4b355a(0x29f)][_0x4b355a(0x101)];if(!_0x1ee838)return!0x1;const {changesets:_0xa0c48d,view:_0x2e0d50,isEmpty:_0x113104,pivotTableConfig:_0x28f1d9}=_0x1ee838,_0x7da52e=_0x28f1d9[_0x4b355a(0x282)],_0x2f4391=new _0x949178[(_0x4b355a(0x140))]();_0x2f4391[_0x4b355a(0x106)](_0x2e0d50);const _0x1397a0={'cellInfo':_0x7da52e,'view':_0x2f4391,'isEmpty':_0x113104};if(!await _0x4369c4[_0x4b355a(0x177)](_0x3acc27[_0x4b355a(0xe0)])[_0x4b355a(0x357)][_0x4b355a(0x23b)](_0x26e2dc)(!0x0,_0x1397a0))return!0x1;const _0x436401=_0x29e760(_0x4369c4,_0x2f4391,_0x7da52e,_0x113104),_0x4e6004=_0x169f26(_0x4369c4,_0x1397a0),{redos:_0x5ac9bb,undos:_0x20a411}=_0x54af12(_0x262597,{'pivotTableId':_0x1d16a6,'unitId':_0x21d92a,'subUnitId':_0x13d017},_0xa0c48d);return _0x2be92f[_0x4b355a(0x195)]([..._0x436401[_0x4b355a(0x333)],..._0x4e6004[_0x4b355a(0x333)],..._0x5ac9bb],_0x262597),_0x4eecc9['pushUndoRedo']({'unitID':_0x21d92a,'redoMutations':[..._0x436401[_0x4b355a(0x333)],..._0x4e6004[_0x4b355a(0x333)],..._0x5ac9bb],'undoMutations':[..._0x436401[_0x4b355a(0x187)],..._0x4e6004[_0x4b355a(0x187)],..._0x20a411]}),!0x0;}},_0x5ee8dc={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x4c7560,_0x293279){const _0x51c885=_0x5b4c6d;var _0x12b46f;if(!_0x293279)return!0x1;const _0x3123aa=_0x4c7560[_0x51c885(0x177)](_0x2be92f[_0x51c885(0xd2)]),_0x2625ad=_0xac1e83[_0x51c885(0x1bc)](_0x3123aa);if(!_0x2625ad)return!0x1;const {unitId:_0x4426ef,subUnitId:_0x361053,workbook:_0x15df4f}=_0x2625ad,{row:_0x18e002,col:_0x26324b}=_0x293279,_0x2b0ca2=_0x4c7560[_0x51c885(0x177)](_0x3acc27['SheetsPivotTableAdaptorModel']),_0x8dc7d5=_0x2b0ca2[_0x51c885(0x18d)](_0x4426ef,_0x361053,_0x18e002,_0x26324b);if(!_0x8dc7d5)return!0x1;const _0x3e2c02=(_0x12b46f=_0x2b0ca2[_0x51c885(0x2a3)](_0x4426ef,_0x361053,_0x8dc7d5))==null?void 0x0:_0x12b46f[_0x51c885(0x2c0)];if(!_0x3e2c02)return!0x1;const _0x268ca6=_0x4c7560[_0x51c885(0x177)](_0x3acc27[_0x51c885(0x216)])[_0x51c885(0x290)](_0x4426ef,_0x361053,_0x8dc7d5);if(!_0x268ca6)return!0x1;const {rowInfo:_0x44d6a1,colInfo:_0x2dd23b}=_0x3e2c02,_0x266803=_0x44d6a1[_0x18e002][_0x51c885(0x2e0)],_0x198e15=_0x2dd23b[_0x26324b][_0x51c885(0x2e0)],_0x88f03d=_0x44d6a1[_0x18e002]['level'],_0x5ab31e=_0x2dd23b[_0x26324b][_0x51c885(0x329)],_0x18d051=_0x266803[_0x51c885(0x158)](_0x198e15),_0x91daa8=_0x268ca6[_0x51c885(0x389)]['rowFields'][_0x51c885(0x34b)](0x0,_0x88f03d),_0x3de778=_0x268ca6[_0x51c885(0x389)]['columnFields']['slice'](0x0,_0x5ab31e),_0x4ab211=_0x91daa8[_0x51c885(0x158)](_0x3de778),_0x511e2c=_0x18d051[_0x51c885(0x352)]((_0x15c55a,_0x1d8f50)=>[_0x15c55a,_0x4ab211[_0x1d8f50]]),_0x515973=(await _0x4c7560[_0x51c885(0x177)](_0x3acc27[_0x51c885(0x2c3)])[_0x51c885(0xfa)]({'unitId':_0x4426ef,'subUnitId':_0x361053,'pivotTableId':_0x8dc7d5,'params':{'type':_0x357f41[_0x51c885(0x7b)],'drillDown':{'tuple':_0x511e2c}}}))[_0x51c885(0x29f)][_0x51c885(0x25c)];if(!_0x515973)return!0x1;const {indexes:_0x48baf8,range:_0x3477eb,sourceUnitId:_0x685e21,sourceSubUnitId:_0xa08072,formatMap:_0x4a3af9}=_0x515973,{startRow:_0x605760,endRow:_0x10fe05,startColumn:_0x4407f4,endColumn:_0x4f0499}=_0x3477eb,_0x5c2075=new _0x2be92f[(_0x51c885(0x176))](),_0x55e55e=_0x10fe05-_0x605760,_0xd58a5e=_0x4f0499-_0x4407f4,_0x1bcc6a={},_0x2b8e51=_0xac1e83['getSheetCommandTarget'](_0x3123aa,{'unitId':_0x685e21,'subUnitId':_0xa08072});if(!_0x2b8e51)return!0x1;const _0x37259c=_0x5f2a0b[_0x51c885(0x29e)],_0x14da7d=_0x5f2a0b[_0x51c885(0x2ae)],_0x5d0262=_0x5f2a0b['subTotalStyle'],_0x6da9fd=_0x15df4f[_0x51c885(0x2f8)]()[_0x51c885(0x15a)](_0x37259c),_0x2c1229=_0x15df4f['getStyles']()[_0x51c885(0x15a)](_0x14da7d),_0x3d69af=_0x15df4f[_0x51c885(0x2f8)]()['setValue'](_0x5d0262),{worksheet:_0x58bd94}=_0x2b8e51;let _0x1b1282=0x0;const _0x10e625=0x1;_0x48baf8['forEach'](_0x55ef41=>{const _0x6c0fbd=_0x51c885;for(let _0x3f92a3=0x0;_0x3f92a3<=_0x4f0499-_0x4407f4;_0x3f92a3++)_0x5c2075[_0x6c0fbd(0x15a)](_0x1b1282,_0x3f92a3,_0x58bd94[_0x6c0fbd(0x7c)](_0x55ef41+_0x3477eb[_0x6c0fbd(0xee)]+_0x10e625,_0x3f92a3));_0x1b1282++;});for(let _0x66a8f=_0x4407f4;_0x66a8f<=_0x4f0499;_0x66a8f++){const _0x3e2b55=_0x58bd94[_0x51c885(0x7c)](_0x605760,_0x66a8f);_0x1bcc6a[_0x605760]||(_0x1bcc6a[_0x605760]={}),_0x1bcc6a[_0x605760][_0x66a8f]={..._0x3e2b55,'s':_0x6da9fd};}let _0x320371=0x1;const _0x60493f={},_0x338abf={};_0x5c2075['forRow']((_0x2aecac,_0x41cd12)=>{const _0x2dd6d0=_0x51c885;_0x41cd12[_0x2dd6d0(0x36a)](_0x2dd4d5=>{const _0x2f3354=_0x2dd6d0,_0x50cd5b=_0x5c2075['getValue'](_0x2aecac,_0x2dd4d5);if(_0x1bcc6a[_0x320371]||(_0x1bcc6a[_0x320371]={}),_0x1bcc6a[_0x320371][_0x2dd4d5]={..._0x50cd5b,'s':_0x320371%0x2===0x0?_0x3d69af:_0x2c1229},_0x4a3af9[_0x2dd4d5]&&_0x2aecac>=0x0){const _0x5e4398=_0x320371%0x2===0x0;let _0x1be061=_0x5e4398?_0x338abf[_0x2dd4d5]:_0x60493f[_0x2dd4d5];_0x1be061||(_0x1be061=_0x15df4f['getStyles']()[_0x2f3354(0x15a)]({..._0x5e4398?_0x5d0262:_0x14da7d,'n':{'pattern':_0x4a3af9[_0x2dd4d5]}}),_0x5e4398?_0x338abf[_0x2dd4d5]=_0x1be061:_0x60493f[_0x2dd4d5]=_0x1be061),_0x1bcc6a[_0x320371][_0x2dd4d5]['s']=_0x1be061;}}),_0x320371++;});const _0x4a606b=new _0x2be92f['ObjectMatrix'](_0x1bcc6a),_0x2ca2ae={};_0x4a606b[_0x51c885(0x2eb)]((_0x3fc923,_0x2f425a,_0x398215)=>{_0x2ca2ae[_0x3fc923]||(_0x2ca2ae[_0x3fc923]={}),_0x2ca2ae[_0x3fc923][_0x2f425a]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x1c01f6=[],_0x175348=[],_0x15fe32=_0x15df4f[_0x51c885(0x2ba)]()[_0x51c885(0xad)],_0x3b6b1e=_0x2be92f[_0x51c885(0x157)]({'rowCount':Math[_0x51c885(0x114)](_0x2be92f[_0x51c885(0x2d4)],_0x55e55e+0xa),'columnCount':Math['max'](_0x2be92f[_0x51c885(0x1e8)],_0xd58a5e+0x5)}),_0x34644f=_0x4c7560[_0x51c885(0x177)](_0x2be92f[_0x51c885(0x126)]);_0x3b6b1e['id']=_0x2be92f[_0x51c885(0x1ca)](),_0x3b6b1e[_0x51c885(0x2db)]=_0x15df4f[_0x51c885(0x137)](''+_0x34644f['t'](_0x51c885(0x188)));const _0x359652={'index':_0x15fe32,'sheet':_0x3b6b1e,'unitId':_0x4426ef},_0x16b0bc=_0xac1e83[_0x51c885(0xb7)](_0x4c7560,_0x359652);_0x175348['push']({'id':_0xac1e83['InsertSheetMutation']['id'],'params':_0x359652}),_0x1c01f6[_0x51c885(0x1cc)]({'id':_0xac1e83[_0x51c885(0xf3)]['id'],'params':_0x16b0bc}),_0x175348[_0x51c885(0x1cc)]({'id':_0xac1e83['SetRangeValuesMutation']['id'],'params':{'unitId':_0x4426ef,'subUnitId':_0x3b6b1e['id'],'cellValue':_0x1bcc6a}}),_0x1c01f6['unshift']({'id':_0xac1e83[_0x51c885(0x2df)]['id'],'params':{'unitId':_0x4426ef,'subUnitId':_0x3b6b1e['id'],'cellValue':_0x2ca2ae}});const _0x16dc37={'startRow':0x0,'startColumn':0x0,'endRow':_0x320371-0x1,'endColumn':_0x4f0499};_0x175348[_0x51c885(0x1cc)]({'id':_0x2518cd['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x4426ef,'subUnitId':_0x3b6b1e['id'],'range':_0x16dc37}}),_0x1c01f6[_0x51c885(0x2ea)]({'id':_0x2518cd[_0x51c885(0x134)]['id'],'params':{'unitId':_0x4426ef,'subUnitId':_0x3b6b1e['id']}});const _0x512f1f=_0x4c7560['get'](_0x2be92f['ICommandService']);return _0x2be92f[_0x51c885(0x195)](_0x175348,_0x512f1f)&&_0x4c7560[_0x51c885(0x177)](_0x2be92f[_0x51c885(0x356)])[_0x51c885(0x1f6)]({'unitID':_0x4426ef,'undoMutations':_0x1c01f6,'redoMutations':_0x175348}),!0x0;}},_0x3ffcde={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x196),async 'handler'(_0x4eaab7,_0x548a68){const _0x393332=_0x5b4c6d;if(!_0x548a68)return!0x1;const _0x541da3=_0x4eaab7['get'](_0x2be92f[_0x393332(0x109)]),_0x5a6c19=_0x4eaab7[_0x393332(0x177)](_0x3acc27[_0x393332(0x2c3)]),_0x5e8339=_0x4eaab7[_0x393332(0x177)](_0x2be92f[_0x393332(0x356)]),{pivotTableId:_0x26e705,fieldIds:_0x50a4e8,unitId:_0x31ea,subUnitId:_0x22ce48}=_0x548a68,_0x4de7f2=(await _0x5a6c19[_0x393332(0xfa)]({'unitId':_0x31ea,'subUnitId':_0x22ce48,'pivotTableId':_0x26e705,'params':{'type':_0x357f41[_0x393332(0x301)],'removePivotField':{'fieldIds':_0x50a4e8}}}))[_0x393332(0x29f)][_0x393332(0xba)];if(!_0x4de7f2)return!0x1;const {view:_0x22ba80,changesets:_0x518ac3,isEmpty:_0x5a70b1,pivotTableConfig:_0x4cf483}=_0x4de7f2,_0x367dd8=_0x4cf483[_0x393332(0x282)],_0x5c802e=new _0x949178['PivotView']();_0x5c802e[_0x393332(0x106)](_0x22ba80);const _0xf9a3e4={'cellInfo':_0x367dd8,'view':_0x5c802e,'isEmpty':_0x5a70b1};if(!await _0x4eaab7[_0x393332(0x177)](_0x3acc27[_0x393332(0xe0)])[_0x393332(0x357)][_0x393332(0x23b)](_0x26e2dc)(!0x0,_0xf9a3e4))return!0x1;const _0x432998=_0x29e760(_0x4eaab7,_0x5c802e,_0x367dd8,_0x5a70b1),_0xbd28fc=_0x169f26(_0x4eaab7,_0xf9a3e4),{redos:_0x4a9055,undos:_0x383b0f}=_0x54af12(_0x541da3,{'pivotTableId':_0x26e705,'unitId':_0x31ea,'subUnitId':_0x22ce48},_0x518ac3);return _0x2be92f[_0x393332(0x195)]([..._0x432998[_0x393332(0x333)],..._0xbd28fc['redos'],..._0x4a9055],_0x541da3),_0x5e8339[_0x393332(0x1f6)]({'unitID':_0x31ea,'redoMutations':[..._0x432998[_0x393332(0x333)],..._0xbd28fc['redos'],..._0x4a9055],'undoMutations':[..._0x432998['undos'],..._0xbd28fc[_0x393332(0x187)],..._0x383b0f]}),!0x0;}},_0x3a1b26={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x1ae),async 'handler'(_0x489a62,_0x1cb030){const _0x47460e=_0x5b4c6d;var _0x3b703d;const _0x50322a=_0x489a62['get'](_0x2be92f[_0x47460e(0x109)]),_0x1053ea=_0x489a62[_0x47460e(0x177)](_0x3acc27[_0x47460e(0x2c3)]),_0x399f29=_0x489a62[_0x47460e(0x177)](_0x3acc27[_0x47460e(0x111)]),_0x159343=_0x489a62[_0x47460e(0x177)](_0x2be92f['IUniverInstanceService']),_0x3f61d4=_0x489a62[_0x47460e(0x177)](_0x2be92f[_0x47460e(0x356)]);if(!_0x1cb030)return!0x1;const {unitId:_0x398c4e,subUnitId:_0x5d7f80,row:_0x3c5a3e,col:_0x5a5efe,collapse:_0x28380a}=_0x1cb030,_0x1b075e=_0x159343[_0x47460e(0x2fd)](_0x398c4e);if(!_0x1b075e||!_0x1b075e['getSheetBySheetId'](_0x5d7f80))return!0x1;const _0x3e965e=_0x399f29[_0x47460e(0x18d)](_0x398c4e,_0x5d7f80,_0x3c5a3e,_0x5a5efe);if(!_0x3e965e)return!0x1;const _0x517cbf=_0x399f29['getPivotItemRenderInfoCache'](_0x398c4e,_0x5d7f80,_0x3e965e);if(!_0x517cbf)return!0x1;const _0x4e3331=_0x2be92f[_0x47460e(0x161)](_0x3c5a3e,_0x5a5efe),{rangesInfo:_0x41f688,areaInfo:_0x2b089e,headerMap:_0x2c80b1}=_0x517cbf;if(!_0x41f688||!_0x2b089e||!_0x2c80b1)return!0x1;const _0x383bde=Object[_0x47460e(0x102)](_0x41f688)[_0x47460e(0xa9)](_0x565fee=>_0x41f688[_0x565fee][_0x47460e(0x20d)](_0x27b0ae=>_0x2be92f['Rectangle']['contains'](_0x27b0ae,_0x4e3331)));let _0xe8ace;_0x383bde===_0x47460e(0x2a5)?_0xe8ace=_0x2c80b1['rowHeaderMap'][_0x5a5efe]:_0x383bde===_0x47460e(0x1bd)&&(_0xe8ace=_0x2c80b1[_0x47460e(0x30f)][_0x3c5a3e]);const _0x5820c1=_0xe8ace==null?void 0x0:_0xe8ace['tableFieldId'],_0x4e2d72=(_0x3b703d=_0x399f29[_0x47460e(0x264)](_0x398c4e,_0x5d7f80,_0x3c5a3e,_0x5a5efe))==null?void 0x0:_0x3b703d['v'];if(_0x4e2d72==null||!_0x3e965e||!_0x5820c1)return!0x1;const _0xac2eb2=await _0x1053ea['getPivotDisplayConfig']({'unitId':_0x398c4e,'subUnitId':_0x5d7f80,'pivotTableId':_0x3e965e,'params':{'type':_0x357f41['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x5820c1,'collapse':_0x28380a,'item':_0x4e2d72}}}),_0x577112=_0xac2eb2==null?void 0x0:_0xac2eb2[_0x47460e(0x29f)]['setPivotCollapse'];if(!_0x577112)return!0x1;const {view:_0x5dd012,pivotTableConfig:_0x41e765,isEmpty:_0x2d579f,changesets:_0x90b321}=_0x577112,_0x526c87=new _0x949178[(_0x47460e(0x140))]();_0x526c87[_0x47460e(0x106)](_0x5dd012);const _0x45ae59=_0x41e765[_0x47460e(0x282)],_0x57fa00={'cellInfo':_0x45ae59,'view':_0x526c87,'isEmpty':_0x2d579f};if(!await _0x489a62[_0x47460e(0x177)](_0x3acc27[_0x47460e(0xe0)])[_0x47460e(0x357)]['fetchThroughAsyncInterceptors'](_0x26e2dc)(!0x0,_0x57fa00))return!0x1;const _0x244fe7=_0x29e760(_0x489a62,_0x526c87,_0x45ae59,_0x2d579f),_0x15d0e4=_0x169f26(_0x489a62,_0x57fa00),{redos:_0x39ffe5,undos:_0x222d17}=_0x54af12(_0x50322a,{'pivotTableId':_0x3e965e,'unitId':_0x398c4e,'subUnitId':_0x5d7f80},_0x90b321);return _0x2be92f[_0x47460e(0x195)]([..._0x244fe7['redos'],..._0x15d0e4[_0x47460e(0x333)],..._0x39ffe5],_0x50322a),_0x3f61d4[_0x47460e(0x1f6)]({'unitID':_0x398c4e,'redoMutations':[..._0x244fe7[_0x47460e(0x333)],..._0x15d0e4['redos'],..._0x39ffe5],'undoMutations':[..._0x244fe7['undos'],..._0x15d0e4['undos'],..._0x222d17]}),!0x0;}},_0x58d703={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x9e),async 'handler'(_0x5d8cc9,_0x4995f1){const _0xf24373=_0x5b4c6d;if(!_0x4995f1)return!0x1;const _0x1f3656=_0x5d8cc9[_0xf24373(0x177)](_0x2be92f[_0xf24373(0x109)]),{pivotTableId:_0x55678c,tableFieldId:_0x185ce7,items:_0x4c36f8,unitId:_0x4d31b0,subUnitId:_0xd5a3d2,isAll:_0x3ebe55}=_0x4995f1,_0x2817a6=_0x5d8cc9[_0xf24373(0x177)](_0x3acc27[_0xf24373(0x2c3)]),_0x2b0277=_0x5d8cc9['get'](_0x2be92f[_0xf24373(0x356)]),_0x379452=(await _0x2817a6['getPivotDisplayConfig']({'unitId':_0x4d31b0,'subUnitId':_0xd5a3d2,'pivotTableId':_0x55678c,'params':{'type':_0x357f41[_0xf24373(0xde)],'setPivotFilter':{'tableFieldId':_0x185ce7,'items':_0x4c36f8,'isAll':_0x3ebe55}}}))['result'][_0xf24373(0x29c)];if(!_0x379452)return!0x1;const {changesets:_0x548046,pivotTableConfig:_0x10b1ee,isEmpty:_0x5afaaa,view:_0x231fe9}=_0x379452,_0x35b036=_0x10b1ee[_0xf24373(0x282)],_0x4e31f4=new _0x949178[(_0xf24373(0x140))]();_0x4e31f4[_0xf24373(0x106)](_0x231fe9);const _0x36b3e8={'cellInfo':_0x35b036,'view':_0x4e31f4,'isEmpty':_0x5afaaa};if(!await _0x5d8cc9[_0xf24373(0x177)](_0x3acc27['SheetsPivotTableService'])['asyncInterceptor'][_0xf24373(0x23b)](_0x26e2dc)(!0x0,_0x36b3e8))return!0x1;const _0xddcfd1=_0x29e760(_0x5d8cc9,_0x4e31f4,_0x35b036,_0x5afaaa),_0x3eb217=_0x169f26(_0x5d8cc9,_0x36b3e8),{undos:_0x393614,redos:_0x111d33}=_0x54af12(_0x1f3656,{'pivotTableId':_0x55678c,'unitId':_0x4d31b0,'subUnitId':_0xd5a3d2},_0x548046);return _0x2be92f[_0xf24373(0x195)]([..._0xddcfd1[_0xf24373(0x333)],..._0x3eb217['redos'],..._0x111d33],_0x1f3656),_0x2b0277[_0xf24373(0x1f6)]({'unitID':_0x4d31b0,'redoMutations':[..._0xddcfd1[_0xf24373(0x333)],..._0x3eb217[_0xf24373(0x333)],..._0x111d33],'undoMutations':[..._0xddcfd1['undos'],..._0x3eb217['undos'],..._0x393614]}),!0x0;}},_0x21788d={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x203),async 'handler'(_0x15cd51,_0x402e26){const _0x1edd83=_0x5b4c6d;if(!_0x402e26)return!0x1;const _0x1cd645=_0x15cd51[_0x1edd83(0x177)](_0x2be92f[_0x1edd83(0x109)]),_0x11f234=_0x15cd51['get'](_0x2be92f[_0x1edd83(0x356)]),_0x564842=_0x15cd51['get'](_0x3acc27[_0x1edd83(0x2c3)]),{info:_0x4a106d,tableFieldId:_0x15af30,pivotTableId:_0x3d0be7,unitId:_0x48f66e,subUnitId:_0x5e4e87}=_0x402e26,_0x22bbe1=(await _0x564842[_0x1edd83(0xfa)]({'unitId':_0x48f66e,'subUnitId':_0x5e4e87,'pivotTableId':_0x3d0be7,'params':{'type':_0x357f41['SetPivotSort'],'setPivotSort':{'tableFieldId':_0x15af30,'info':_0x4a106d}}}))[_0x1edd83(0x29f)][_0x1edd83(0x247)];if(!_0x22bbe1)return!0x1;const {changesets:_0x1ba3f6}=_0x22bbe1,{redos:_0x100a6b,undos:_0x2846f8}=_0x54af12(_0x1cd645,{'pivotTableId':_0x3d0be7,'unitId':_0x48f66e,'subUnitId':_0x5e4e87},_0x1ba3f6);return _0x2be92f[_0x1edd83(0x195)](_0x100a6b,_0x1cd645),_0x11f234[_0x1edd83(0x1f6)]({'unitID':_0x48f66e,'redoMutations':_0x100a6b,'undoMutations':_0x2846f8}),!0x0;}},_0x2497d3={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x2572f9,_0xb96f48){const _0x2940c2=_0x5b4c6d;if(!_0xb96f48)return!0x1;const _0x11c3e3=_0x2572f9[_0x2940c2(0x177)](_0x2be92f[_0x2940c2(0x109)]),_0x14b7aa=_0x2572f9[_0x2940c2(0x177)](_0x2be92f[_0x2940c2(0x356)]),_0x4299c4=_0x2572f9[_0x2940c2(0x177)](_0x3acc27[_0x2940c2(0x2c3)]),{displayName:_0x1d7d1c,subtotalType:_0x3132f0,format:_0x3a2d0c,tableFieldId:_0x17f2e4,pivotTableId:_0x3ecd12,unitId:_0x2e9ef0,subUnitId:_0xc9276d}=_0xb96f48,_0x5c36df=(await _0x4299c4[_0x2940c2(0xfa)]({'unitId':_0x2e9ef0,'subUnitId':_0xc9276d,'pivotTableId':_0x3ecd12,'params':{'type':_0x357f41[_0x2940c2(0x381)],'setPivotSetting':{'tableFieldId':_0x17f2e4,'displayName':_0x1d7d1c,'subtotalType':_0x3132f0,'format':_0x3a2d0c}}}))[_0x2940c2(0x29f)][_0x2940c2(0xce)];if(!_0x5c36df)return!0x1;const {changesets:_0x58b868,view:_0x326bcf,pivotTableConfig:_0x1db64b,isEmpty:_0x454f64}=_0x5c36df,_0x2ec559=_0x1db64b[_0x2940c2(0x282)],_0x4eec3a=new _0x949178[(_0x2940c2(0x140))]();_0x4eec3a[_0x2940c2(0x106)](_0x326bcf);const _0x5e3aa={'cellInfo':_0x2ec559,'view':_0x4eec3a,'isEmpty':_0x454f64};if(!await _0x2572f9[_0x2940c2(0x177)](_0x3acc27[_0x2940c2(0xe0)])['asyncInterceptor'][_0x2940c2(0x23b)](_0x26e2dc)(!0x0,_0x5e3aa))return!0x1;const _0x5ac17f=_0x29e760(_0x2572f9,_0x4eec3a,_0x2ec559,_0x454f64),_0x5b9fe3=_0x169f26(_0x2572f9,_0x5e3aa),{undos:_0x42c4e0,redos:_0xa73419}=_0x54af12(_0x11c3e3,{'pivotTableId':_0x3ecd12,'unitId':_0x2e9ef0,'subUnitId':_0xc9276d},_0x58b868);return _0x2be92f[_0x2940c2(0x195)]([..._0x5ac17f[_0x2940c2(0x333)],..._0x5b9fe3[_0x2940c2(0x333)],..._0xa73419],_0x11c3e3),_0x14b7aa[_0x2940c2(0x1f6)]({'unitID':_0x2e9ef0,'redoMutations':[..._0x5ac17f[_0x2940c2(0x333)],..._0x5b9fe3[_0x2940c2(0x333)],..._0xa73419],'undoMutations':[..._0x5ac17f[_0x2940c2(0x187)],..._0x5b9fe3['undos'],..._0x42c4e0]}),!0x0;}},_0x256053={'type':_0x2be92f[_0x5b4c6d(0x2b3)]['COMMAND'],'id':_0x5b4c6d(0x360),async 'handler'(_0x38d008,_0x2f4f81){const _0x374501=_0x5b4c6d,_0x1f7427=_0x38d008['get'](_0x2be92f['ICommandService']),_0x263f54=_0x38d008[_0x374501(0x177)](_0x3acc27['SheetsPivotRPCService']),_0x9ba4c7=_0x38d008['get'](_0x2be92f[_0x374501(0x356)]);if(!_0x2f4f81)return!0x1;const {token:_0x46d505,dataRangeInfo:_0xd554fe,unitId:_0x16812a,subUnitId:_0x2f4cc9}=_0x2f4f81,_0x63d1bb=[],_0x6bd523=[],_0x5b32f8=(await _0x263f54[_0x374501(0xfa)]({'unitId':_0x16812a,'subUnitId':_0x2f4cc9,'pivotTableId':_0x46d505,'params':{'type':_0x357f41[_0x374501(0x152)],'updatePivotSource':{'dataRangeInfo':_0xd554fe,'unitId':_0x16812a,'subUnitId':_0x2f4cc9}}}))[_0x374501(0x29f)]['updatePivotSource'];if(!_0x5b32f8)return!0x1;const {changesets:_0x1d9bef,deleteIds:_0x15694a,collectionConfig:_0x5a9450,oldCollectionConfig:_0x1d3ab1,view:_0x514455,isEmpty:_0x2c7a04,pivotTableConfig:_0x5afa47}=_0x5b32f8;_0x6bd523['push']({'id':_0x2988cb['id'],'params':{'pivotTableId':_0x46d505,'deleteIds':_0x15694a,'collectionJSON':_0x5a9450,'dataRangeInfo':_0xd554fe,'unitId':_0x16812a,'subUnitId':_0x2f4cc9}}),_0x63d1bb[_0x374501(0x2ea)]({'id':_0x2988cb['id'],'params':{'pivotTableId':_0x46d505,'deleteIds':[],'collectionJSON':_0x1d3ab1,'dataRangeInfo':_0x5afa47['sourceRangeInfo'],'unitId':_0x16812a,'subUnitId':_0x2f4cc9}});const _0x2fbb03=_0x5afa47[_0x374501(0x282)],_0x4f24fe=new _0x949178[(_0x374501(0x140))]();_0x4f24fe[_0x374501(0x106)](_0x514455);const _0x3a9c89={'cellInfo':_0x2fbb03,'view':_0x4f24fe,'isEmpty':_0x2c7a04};if(!await _0x38d008['get'](_0x3acc27['SheetsPivotTableService'])[_0x374501(0x357)][_0x374501(0x23b)](_0x26e2dc)(!0x0,_0x3a9c89))return!0x1;const _0x429750=_0x29e760(_0x38d008,_0x4f24fe,_0x2fbb03,_0x2c7a04),_0x2cd113=_0x169f26(_0x38d008,_0x3a9c89),{undos:_0x5b9fe5,redos:_0x1889e4}=_0x54af12(_0x1f7427,{'pivotTableId':_0x46d505,'unitId':_0x16812a,'subUnitId':_0x2f4cc9},_0x1d9bef);return _0x2be92f[_0x374501(0x195)]([..._0x429750[_0x374501(0x333)],..._0x2cd113[_0x374501(0x333)],..._0x6bd523,..._0x5b9fe5],_0x1f7427),_0x9ba4c7[_0x374501(0x1f6)]({'unitID':_0x16812a,'redoMutations':[..._0x429750[_0x374501(0x333)],..._0x2cd113[_0x374501(0x333)],..._0x6bd523,..._0x5b9fe5],'undoMutations':[..._0x429750['undos'],..._0x2cd113[_0x374501(0x187)],..._0x63d1bb,..._0x1889e4]}),!0x0;}},_0x14775b={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x229),async 'handler'(_0x16367c,_0x316e2f){const _0x5561cf=_0x5b4c6d;if(!_0x316e2f)return!0x1;const _0x3da85c=_0x16367c['get'](_0x2be92f['ICommandService']),_0x5e51b9=_0x16367c[_0x5561cf(0x177)](_0x3acc27['SheetsPivotRPCService']),_0x28cc5a=_0x16367c[_0x5561cf(0x177)](_0x2be92f[_0x5561cf(0xd2)]),_0x525e02=_0x16367c[_0x5561cf(0x177)](_0x2be92f[_0x5561cf(0x356)]),{pivotTableId:_0x476f5a,position:_0x44dfa2,index:_0x381c73}=_0x316e2f,_0x4cce83=_0xac1e83[_0x5561cf(0x1bc)](_0x28cc5a);if(!_0x4cce83)return!0x1;const {unitId:_0x52514a,subUnitId:_0x9e5f1d}=_0x4cce83,_0x3e0d9a=(await _0x5e51b9['getPivotDisplayConfig']({'unitId':_0x52514a,'subUnitId':_0x9e5f1d,'pivotTableId':_0x476f5a,'params':{'type':_0x357f41[_0x5561cf(0xfe)],'updateValuePosition':{'position':_0x44dfa2,'index':_0x381c73}}}))[_0x5561cf(0x29f)][_0x5561cf(0x1a9)];if(!_0x3e0d9a)return!0x1;const {changesets:_0x1b867d,view:_0x56698d,isEmpty:_0x24462c,pivotTableConfig:_0x2b2212}=_0x3e0d9a,_0x1b630a=_0x2b2212[_0x5561cf(0x282)],_0x217dc5=new _0x949178[(_0x5561cf(0x140))]();_0x217dc5['formJSON'](_0x56698d);const _0x50800a=_0x16367c[_0x5561cf(0x177)](_0x3acc27[_0x5561cf(0xe0)]),_0x2246ef={'cellInfo':_0x1b630a,'view':_0x217dc5,'isEmpty':_0x24462c};if(!await _0x50800a[_0x5561cf(0x357)][_0x5561cf(0x23b)](_0x26e2dc)(!0x0,_0x2246ef))return!0x1;const _0x1be899=_0x29e760(_0x16367c,_0x217dc5,_0x1b630a,_0x24462c),_0x4e658a=_0x169f26(_0x16367c,_0x2246ef),{undos:_0x1032ef,redos:_0x38dd5}=_0x54af12(_0x3da85c,{'pivotTableId':_0x476f5a,'unitId':_0x52514a,'subUnitId':_0x9e5f1d},_0x1b867d);return _0x2be92f[_0x5561cf(0x195)]([..._0x1be899[_0x5561cf(0x333)],..._0x4e658a[_0x5561cf(0x333)],..._0x38dd5],_0x3da85c),_0x525e02['pushUndoRedo']({'unitID':_0x52514a,'redoMutations':[..._0x1be899[_0x5561cf(0x333)],..._0x4e658a[_0x5561cf(0x333)],..._0x38dd5],'undoMutations':[..._0x1be899['undos'],..._0x4e658a[_0x5561cf(0x187)],..._0x1032ef]}),!0x0;}},_0x4215d3={'type':_0x2be92f['CommandType'][_0x5b4c6d(0x375)],'id':'sheet.command.move-pivot-table','handler':(_0x538a99,_0x3a545a)=>{const _0x20250f=_0x5b4c6d,_0x12f7c4=_0x538a99[_0x20250f(0x177)](_0x2be92f[_0x20250f(0x109)]),_0x411563=_0x538a99[_0x20250f(0x177)](_0x2be92f[_0x20250f(0x356)]),_0x14676c=_0x538a99[_0x20250f(0x177)](_0x3acc27[_0x20250f(0x216)]),_0x563b9c=_0x538a99[_0x20250f(0x177)](_0x2be92f[_0x20250f(0xd2)]);if(!_0x3a545a)return!0x1;const _0x3f3985=_0xac1e83[_0x20250f(0x1bc)](_0x563b9c);if(!_0x3f3985)return!0x1;const {unitId:_0x2eedf,subUnitId:_0x431457,workbook:_0x3551d3}=_0x3f3985,_0xac7991=_0x14676c[_0x20250f(0x290)](_0x3a545a['originTargetInfo']['unitId'],_0x3a545a[_0x20250f(0x77)]['subUnitId'],_0x3a545a[_0x20250f(0x80)]);if(!_0xac7991)return!0x1;const _0x59fbfa=_0x3551d3[_0x20250f(0xc6)](_0x3a545a['targetCellInfo'][_0x20250f(0x19f)]);if(!_0x59fbfa)throw new Error('[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid');const _0x5a6c50=_0x59fbfa['getRowCount'](),_0x1a39e4=_0x59fbfa[_0x20250f(0x309)]();if(_0x3a545a[_0x20250f(0x282)][_0x20250f(0x178)]>_0x5a6c50||_0x3a545a[_0x20250f(0x282)][_0x20250f(0x320)]>_0x1a39e4)throw new Error(_0x20250f(0x29d));const _0xbe6f82=[{'id':_0x2730bb['id'],'params':{'unitId':_0x2eedf,'subUnitId':_0x3a545a['targetCellInfo'][_0x20250f(0x19f)],'pivotTableId':_0x3a545a[_0x20250f(0x80)],'targetCellPosition':{'row':_0x3a545a[_0x20250f(0x282)][_0x20250f(0x178)],'col':_0x3a545a[_0x20250f(0x282)][_0x20250f(0x320)]}}}],_0x18b73a=[{'id':_0x2730bb['id'],'params':{'unitId':_0x2eedf,'subUnitId':_0x431457,'pivotTableId':_0x3a545a[_0x20250f(0x80)],'targetCellPosition':{'row':_0xac7991['targetCellInfo'][_0x20250f(0x178)],'col':_0xac7991[_0x20250f(0x282)]['col']}}}];return _0x2be92f[_0x20250f(0x195)](_0xbe6f82,_0x12f7c4)&&_0x411563[_0x20250f(0x1f6)]({'unitID':_0x2eedf,'undoMutations':_0x18b73a,'redoMutations':_0xbe6f82}),!0x0;}},_0x3c9190={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x90),async 'handler'(_0x42dd38,_0x26e313){const _0x2606e5=_0x5b4c6d;if(!_0x26e313)return!0x1;const _0x378543=_0x42dd38[_0x2606e5(0x177)](_0x2be92f[_0x2606e5(0x109)]),{pivotTableId:_0x387dbf,fieldId:_0xb2d57f,valueFilterInfo:_0xd13ab9,unitId:_0x5b0201,subUnitId:_0x1a776e}=_0x26e313,_0x4b7600=_0x42dd38[_0x2606e5(0x177)](_0x3acc27['SheetsPivotRPCService']),_0x2d6d94=_0x42dd38[_0x2606e5(0x177)](_0x2be92f[_0x2606e5(0x356)]),_0x3895ae=(await _0x4b7600[_0x2606e5(0xfa)]({'unitId':_0x5b0201,'subUnitId':_0x1a776e,'pivotTableId':_0x387dbf,'params':{'type':_0x357f41[_0x2606e5(0xbc)],'setValuePivotFilter':{'tableFieldId':_0xb2d57f,'filterInfo':_0xd13ab9}}}))[_0x2606e5(0x29f)]['setValuePivotFilter'];if(!_0x3895ae)return!0x1;const {changesets:_0x33c30d,pivotTableConfig:_0x375955,isEmpty:_0x55b836,view:_0x5547be}=_0x3895ae,_0x352126=_0x375955[_0x2606e5(0x282)],_0x340aa9=new _0x949178['PivotView']();_0x340aa9[_0x2606e5(0x106)](_0x5547be);const _0x391262={'cellInfo':_0x352126,'view':_0x340aa9,'isEmpty':_0x55b836};if(!await _0x42dd38[_0x2606e5(0x177)](_0x3acc27[_0x2606e5(0xe0)])['asyncInterceptor'][_0x2606e5(0x23b)](_0x26e2dc)(!0x0,_0x391262))return!0x1;const _0x4c5bee=_0x29e760(_0x42dd38,_0x340aa9,_0x352126,_0x55b836),_0x2c94a7=_0x169f26(_0x42dd38,_0x391262),{undos:_0x5e9fcf,redos:_0xe8e736}=_0x54af12(_0x378543,{'pivotTableId':_0x387dbf,'unitId':_0x5b0201,'subUnitId':_0x1a776e},_0x33c30d);return _0x2be92f[_0x2606e5(0x195)]([..._0x4c5bee[_0x2606e5(0x333)],..._0x2c94a7['redos'],..._0xe8e736],_0x378543),_0x2d6d94[_0x2606e5(0x1f6)]({'unitID':_0x5b0201,'redoMutations':[..._0x4c5bee['redos'],..._0x2c94a7[_0x2606e5(0x333)],..._0xe8e736],'undoMutations':[..._0x4c5bee[_0x2606e5(0x187)],..._0x2c94a7[_0x2606e5(0x187)],..._0x5e9fcf]}),!0x0;}},_0x2121c9={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x124),async 'handler'(_0x396595,_0x11051e){const _0x471a56=_0x5b4c6d;if(!_0x11051e)return!0x1;const _0x561a49=_0x396595[_0x471a56(0x177)](_0x2be92f[_0x471a56(0x109)]),_0x4a72b5=_0x396595[_0x471a56(0x177)](_0x2be92f[_0x471a56(0x356)]),_0x165183=_0x396595[_0x471a56(0x177)](_0x3acc27[_0x471a56(0x2c3)]),{pivotTableConfig:_0x2849af,pivotTableId:_0xabb285,unitId:_0xd63bd6,subUnitId:_0x43d7c0}=_0x11051e,_0x3ddc70=(await _0x165183[_0x471a56(0xfa)]({'unitId':_0xd63bd6,'subUnitId':_0x43d7c0,'pivotTableId':_0xabb285,'params':{'type':_0x357f41[_0x471a56(0x1d9)],'setPivotTableConfig':{'pivotTableId':_0xabb285,'pivotTableConfig':_0x2849af}}}))[_0x471a56(0x29f)][_0x471a56(0xe8)];if(!_0x3ddc70)return!0x1;const {changesets:_0x1648dd}=_0x3ddc70,{redos:_0x1f4984,undos:_0x5233ca}=_0x54af12(_0x561a49,{'pivotTableId':_0xabb285,'unitId':_0xd63bd6,'subUnitId':_0x43d7c0},_0x1648dd);return _0x2be92f['sequenceExecute'](_0x1f4984,_0x561a49),_0x4a72b5[_0x471a56(0x1f6)]({'unitID':_0xd63bd6,'redoMutations':_0x1f4984,'undoMutations':_0x5233ca}),!0x0;}},_0x102e7b={'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x375)],'id':_0x5b4c6d(0x2a0),async 'handler'(_0x1e1a5f,_0x59a88d){const _0x352884=_0x5b4c6d;if(!_0x59a88d)return!0x1;const _0x229260=_0x1e1a5f[_0x352884(0x177)](_0x2be92f[_0x352884(0x109)]),_0x37acc3=_0x1e1a5f['get'](_0x2be92f[_0x352884(0x356)]),_0x512ecd=_0x1e1a5f[_0x352884(0x177)](_0x3acc27[_0x352884(0x2c3)]),{resetArea:_0x172ba6,pivotTableId:_0x10cd8e,unitId:_0x199e5b,subUnitId:_0x216a24}=_0x59a88d,_0x376e2e=(await _0x512ecd[_0x352884(0xfa)]({'unitId':_0x199e5b,'subUnitId':_0x216a24,'pivotTableId':_0x10cd8e,'params':{'type':_0x357f41['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x10cd8e,'resetArea':_0x172ba6}}}))[_0x352884(0x29f)]['resetPivotTable'];if(!_0x376e2e)return!0x1;const {changesets:_0x6d6e07}=_0x376e2e,{redos:_0x3467c5,undos:_0x2a659c}=_0x54af12(_0x229260,{'pivotTableId':_0x10cd8e,'unitId':_0x199e5b,'subUnitId':_0x216a24},_0x6d6e07);return _0x2be92f[_0x352884(0x195)](_0x3467c5,_0x229260),_0x37acc3['pushUndoRedo']({'unitID':_0x199e5b,'redoMutations':_0x3467c5,'undoMutations':_0x2a659c}),!0x0;}},_0x51e908={'id':_0x5b4c6d(0xd5),'type':_0x2be92f[_0x5b4c6d(0x2b3)][_0x5b4c6d(0x179)],'handler':(_0x5c7e89,_0x8af8ee)=>{const _0x11866d=_0x5b4c6d;if(!_0x8af8ee)return!0x1;if(!!_0x5c7e89['get'](_0x2be92f[_0x11866d(0x27f)])[_0x11866d(0x340)](_0x47449f))return!0x0;const {unitId:_0x5142d7,subUnitId:_0x3aa368,pivotTableId:_0x453bea,tableFieldId:_0x6c0a56,dateType:_0x302d8b}=_0x8af8ee,_0x37221c=_0x5c7e89[_0x11866d(0x177)](_0x3acc27[_0x11866d(0x144)]),_0x3f38bd=_0x37221c[_0x11866d(0x1c4)](_0x453bea);if(!_0x3f38bd)return!0x1;const _0x3ab350=_0x3f38bd[_0x11866d(0x72)](_0x6c0a56);if(!_0x3ab350)return!0x1;const _0x1218b0=_0x3ab350[_0x11866d(0x125)](),_0xa3995e=_0x3f38bd[_0x11866d(0x1e5)](_0x1218b0),_0x45086d=(_0xa3995e==null?void 0x0:_0xa3995e[_0x11866d(0x136)]())+'\x20'+_0x561cfe(_0x5c7e89,_0x302d8b);_0x37221c[_0x11866d(0x28c)](_0x5142d7,_0x453bea)[_0x11866d(0x2c4)](_0x3ab350['id'],_0x45086d);const _0x48c7c1=_0x3f38bd[_0x11866d(0x1fe)](_0x6c0a56);if(!_0x48c7c1)return!0x1;_0x3f38bd[_0x11866d(0x139)](_0x48c7c1['getId'](),_0x45086d),_0x3ab350[_0x11866d(0x22a)](_0x302d8b);const _0x3dafde=_0x37221c[_0x11866d(0x290)](_0x5142d7,_0x3aa368,_0x453bea);return _0x37221c[_0x11866d(0x370)]({'unitId':_0x5142d7,'subUnitId':_0x3aa368,'token':_0x453bea,'type':_0x1bbb8c[_0x11866d(0x261)],'pivotConfig':_0x3dafde}),!0x0;}},_0x4455f2={'id':_0x5b4c6d(0x2e8),'type':_0x2be92f[_0x5b4c6d(0x2b3)]['COMMAND'],'handler':(_0x2388f6,_0x584b11)=>{const _0x5c8f18=_0x5b4c6d;if(!_0x584b11)return!0x1;const _0x3aa5e9=_0x2388f6['get'](_0x2be92f[_0x5c8f18(0x356)]),{unitId:_0x233f2f,subUnitId:_0x489f1a,pivotTableId:_0x39d3a8,tableFieldId:_0x1a21db}=_0x584b11,_0x2ab528=[],_0x1e4a64=[],_0x10db7f=_0x2388f6[_0x5c8f18(0x177)](_0x3acc27[_0x5c8f18(0x216)]),_0xffd003=_0x10db7f[_0x5c8f18(0x28c)](_0x233f2f,_0x39d3a8),_0x483a1d=_0x10db7f['getPivotTableConfig'](_0x233f2f,_0x489f1a,_0x39d3a8);if(!(_0x483a1d!=null&&_0x483a1d['fieldsConfig'][_0x5c8f18(0x283)]))return!0x1;const _0x12a91f=Object[_0x5c8f18(0x15f)](_0x483a1d[_0x5c8f18(0x389)][_0x5c8f18(0x283)])[_0x5c8f18(0xa9)](_0x155bbf=>_0x155bbf['id']===_0x1a21db);if(!_0x12a91f)return!0x1;const _0xc0b003=_0x12a91f['dataFieldId'];if(!(_0xffd003!=null&&_0xffd003[_0x5c8f18(0x1e1)]))return!0x1;const _0x10c74e=Object[_0x5c8f18(0x15f)](_0xffd003==null?void 0x0:_0xffd003['fields'])[_0x5c8f18(0xa9)](_0x49a4e6=>_0x49a4e6['id']===_0xc0b003);if(!_0x10c74e)return!0x1;_0x949178[_0x5c8f18(0x32e)](_0x10c74e)&&_0x2ab528[_0x5c8f18(0x1cc)]({'id':_0x51e908['id'],'params':{..._0x584b11,'dateType':_0x10c74e[_0x5c8f18(0x319)]}}),_0x1e4a64[_0x5c8f18(0x1cc)]({'id':_0x51e908['id'],'params':{..._0x584b11}});const _0x507bd9=_0x2388f6[_0x5c8f18(0x177)](_0x2be92f[_0x5c8f18(0x109)]);return _0x2be92f[_0x5c8f18(0x195)](_0x1e4a64,_0x507bd9)&&_0x3aa5e9[_0x5c8f18(0x1f6)]({'unitID':_0x233f2f,'undoMutations':_0x2ab528,'redoMutations':_0x1e4a64}),!0x0;}};var _0x5718de=Object[_0x5b4c6d(0x2f4)],_0x1d0353=(_0xa6792e,_0x338f51,_0x837842,_0x2a2a6e)=>{const _0x50336f=_0x5b4c6d;for(var _0x15f51=_0x2a2a6e>0x1?void 0x0:_0x2a2a6e?_0x5718de(_0x338f51,_0x837842):_0x338f51,_0x40a24d=_0xa6792e[_0x50336f(0xad)]-0x1,_0x22a08d;_0x40a24d>=0x0;_0x40a24d--)(_0x22a08d=_0xa6792e[_0x40a24d])&&(_0x15f51=_0x22a08d(_0x15f51)||_0x15f51);return _0x15f51;},_0x4ea4bc=(_0x3ae0fb,_0x1e5735)=>(_0x268332,_0x5af0d8)=>_0x1e5735(_0x268332,_0x5af0d8,_0x3ae0fb);const _0x330b95=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x9024f1=(_0x2bd0cb,_0x58449a,_0xae4641)=>{const _0x24ba4e=_0x5b4c6d,_0x5203d0=_0x2bd0cb[_0x24ba4e(0x1e6)];_0x2bd0cb[_0x24ba4e(0x2e7)](_0x2b1bd8=>{const _0x295a32=_0x24ba4e,_0x277cbe=_0x2b1bd8[_0x295a32(0x13b)](),_0x2305bf=_0x2b1bd8['getDataFieldId'](),_0x1c8bc5=_0x2b1bd8[_0x295a32(0x384)](),_0x28c712=_0x2b1bd8[_0x295a32(0x220)]();_0x58449a[_0x2305bf]&&_0x58449a[_0x2305bf]===_0x28c712&&_0x1c8bc5===_0x28c712&&(_0x2bd0cb[_0x295a32(0x139)](_0x277cbe,_0x5203d0['getDisplayName'](_0x2305bf)),_0x2b1bd8[_0x295a32(0x2d9)](_0x5203d0[_0x295a32(0x220)](_0x2305bf)));}),_0x2bd0cb[_0x24ba4e(0x10b)](_0x949178[_0x24ba4e(0x11a)][_0x24ba4e(0x105)],_0x21e669=>{const _0x343876=_0x24ba4e,_0x524114=_0x21e669[_0x343876(0x13b)](),_0x16c790=_0x21e669[_0x343876(0x13c)](),_0x5ac087=_0x21e669['getSourceName'](),_0x262f8a=_0x21e669['getDisplayName'](),_0x72df52=_0x21e669[_0x343876(0x363)](),_0x168254=_0xae4641(_0x5ac087,_0x72df52);_0x58449a[_0x16c790]&&_0x58449a[_0x16c790]===_0x5ac087&&_0x168254===_0x262f8a&&(_0x2bd0cb['renameField'](_0x524114,_0xae4641(_0x5203d0[_0x343876(0x220)](_0x16c790),_0x72df52)),_0x21e669[_0x343876(0x2d9)](_0x5203d0['getDisplayName'](_0x16c790)));});},_0x53fc9b=(_0x4444e0,_0x254854,_0x37c31d)=>{const _0x236e24=_0x5b4c6d;var _0x4ae3d3,_0x56ac40;const {arrayFormulaCellData:_0x22de36,unitData:_0x4d4ec1}=_0x254854,{unitId:_0x46b052,subUnitId:_0x179224}=_0x37c31d,_0x1cea94=_0x37c31d[_0x236e24(0x26e)],{startColumn:_0x3eb498,endColumn:_0x559176}=_0x1cea94,_0x3f8646=(_0x4ae3d3=_0x22de36==null?void 0x0:_0x22de36[_0x46b052])==null?void 0x0:_0x4ae3d3[_0x179224],_0x4960b6=(_0x56ac40=_0x4d4ec1==null?void 0x0:_0x4d4ec1[_0x46b052])==null?void 0x0:_0x56ac40[_0x179224],_0x330645=new Set(),_0x3ab745=_0x559176-_0x3eb498+0x1,{dirtyRanges:_0x3539ec}=_0x4444e0;if(_0x3539ec)for(const {range:_0x74dda8,sheetId:_0x240b6f,unitId:_0x5cf827}of _0x3539ec){if(_0x240b6f!==_0x179224||_0x46b052!==_0x5cf827)continue;const _0x2abf00=_0x2be92f['Rectangle'][_0x236e24(0x207)](_0x74dda8,_0x1cea94);if(_0x2abf00){const {startColumn:_0x36980a,endColumn:_0x4edf5f}=_0x2abf00;for(let _0x33aa4e=_0x36980a;_0x33aa4e<=_0x4edf5f;_0x33aa4e++)_0x330645['add'](_0x33aa4e);}}if(_0x330645['size']===_0x3ab745||_0x330645[_0x236e24(0x18c)]===_0x3ab745)return Array[_0x236e24(0x1dd)](_0x330645);if(_0x4960b6){const _0x586d88=_0x4960b6[_0x236e24(0x270)](),_0x686c79=Object[_0x236e24(0x102)](_0x586d88);for(const _0x5ce663 of _0x686c79){const _0x503b3c=Number(_0x5ce663),_0x28ae35=_0x586d88[_0x503b3c];if(_0x330645[_0x236e24(0x18c)]===_0x3ab745)break;for(const _0x400671 in _0x28ae35){const _0x50de19=Number(_0x400671);_0x50de19<_0x3eb498||_0x50de19>_0x559176||_0x330645[_0x236e24(0xe3)](_0x50de19);}}}if(_0x3f8646){const _0x367260=_0x3f8646[_0x236e24(0x270)](),_0x497697=Object['keys'](_0x367260);for(const _0x59d125 of _0x497697){const _0x2d1501=Number(_0x59d125),_0x12ccee=_0x367260[_0x2d1501];if(_0x330645['size']===_0x3ab745)break;for(const _0x561c39 in _0x12ccee){const _0x2238c9=Number(_0x561c39);_0x2238c9<_0x3eb498||_0x2238c9>_0x559176||_0x330645['add'](_0x2238c9);}}}return Array['from'](_0x330645);},_0xdc4e05=_0x5d0219=>{const _0x24fe25=_0x5b4c6d,_0x3dc2cb=new Set(),_0x303793=[];for(const _0x432bb3 of _0x5d0219){const _0x4883d4=_0x432bb3[_0x24fe25(0xee)]+','+_0x432bb3[_0x24fe25(0x87)]+','+_0x432bb3['startColumn']+','+_0x432bb3[_0x24fe25(0x249)];_0x3dc2cb[_0x24fe25(0x208)](_0x4883d4)||(_0x3dc2cb[_0x24fe25(0xe3)](_0x4883d4),_0x303793['push'](_0x432bb3));}return _0x303793;};let _0x218320=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x2df6e7,_0x52b7cc,_0x71eae0,_0x2b7034,_0x1451e1,_0x582592){const _0x3b898b=_0x5b4c6d;super(),_0x102d83(this,'_globalSubject',new _0x639aa['BehaviorSubject'](!0x0)),_0x102d83(this,_0x3b898b(0x7f),_0x356fb6=>{const _0x2324ef=_0x3b898b;this[_0x2324ef(0x20c)][_0x2324ef(0x19b)](!0x1);}),_0x102d83(this,_0x3b898b(0x386),_0x2ae42c=>{const _0x6b22aa=_0x3b898b;this[_0x6b22aa(0x20c)][_0x6b22aa(0x19b)](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x2df6e7,this[_0x3b898b(0x1d3)]=_0x52b7cc,this[_0x3b898b(0xa2)]=_0x71eae0,this[_0x3b898b(0x2c6)]=_0x2b7034,this['_globalComputingSrv']=_0x1451e1,this[_0x3b898b(0x214)]=_0x582592,this['_init'](),this[_0x3b898b(0x32b)]());}['_init'](){const _0x1debc4=_0x5b4c6d;this[_0x1debc4(0x1a7)](),this[_0x1debc4(0x26c)](),this[_0x1debc4(0x210)](),this[_0x1debc4(0x19a)]();}[_0x5b4c6d(0x2fc)](){const _0x26e28b=_0x5b4c6d;this['_globalComputingSrv'][_0x26e28b(0x180)](this[_0x26e28b(0x20c)]),_0x949178[_0x26e28b(0xcd)][_0x26e28b(0x9d)](_0x949178[_0x26e28b(0x193)][_0x26e28b(0x256)],this[_0x26e28b(0x7f)]),_0x949178[_0x26e28b(0xcd)]['registerCallbackWithEvent'](_0x949178[_0x26e28b(0x193)][_0x26e28b(0xaa)],this['_globalComputedEndHelpFunc']);}[_0x5b4c6d(0x32b)](){const _0x1ad565=_0x5b4c6d;this[_0x1ad565(0x20b)](this[_0x1ad565(0x2c6)][_0x1ad565(0xcc)](_0x484d5c=>{const _0x55c433=_0x1ad565;_0x484d5c['id']===_0xac1e83['MoveRangeMutation']['id']&&this['_sheetsPivotDataSourceModel'][_0x55c433(0xb9)](_0x484d5c[_0x55c433(0x2ce)]);})),this['disposeWithMe'](this[_0x1ad565(0x2c6)][_0x1ad565(0xcc)](_0x387801=>{const _0x48eb9e=_0x1ad565;if(_0x387801['id']!==_0x2ef776['id'])return;const _0x2193fb=_0x387801[_0x48eb9e(0x2ce)],{unitId:_0x258a39,subUnitId:_0xe7a154,pivotTableId:_0x104884}=_0x2193fb,_0x409784=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x2b6)],_0xbbad19={};switch(_0x409784){case _0x357f41[_0x48eb9e(0x12e)]:{const _0x4b9cfb=_0x2193fb['params'][_0x48eb9e(0x135)];if(!_0x4b9cfb)return;const {row:_0x449aaf,col:_0x12d4e6,cellData:_0x3626e5,pivotItemRenderInfoCache:_0x26b010,tableFieldId:_0x102600}=_0x4b9cfb,_0x162a40=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x2193fb[_0x48eb9e(0x80)]);if(!_0x162a40||!_0x26b010)return;if(_0x102600){const _0x5d309d=_0x162a40['getDataFieldByTableId'](_0x102600);if(!_0x5d309d)return;_0xbbad19['filter']={..._0x162a40[_0x48eb9e(0x32d)](_0x5d309d),'tableFieldId':_0x102600,'pivotTableId':_0x2193fb[_0x48eb9e(0x80)],'filterInfo':_0x162a40[_0x48eb9e(0x142)](_0x102600),'sortInfo':_0x162a40[_0x48eb9e(0x346)](_0x102600),'format':_0x162a40[_0x48eb9e(0x2fe)](_0x102600)};}else{const _0x15f1f5=_0x2b3cd3(_0x449aaf,_0x12d4e6,_0x3626e5,_0x162a40,_0x26b010),_0x479fd3=_0x15f1f5==null?void 0x0:_0x15f1f5[_0x48eb9e(0x1c2)];if(!_0x479fd3)return;const _0x20537c=_0x162a40[_0x48eb9e(0x72)](_0x479fd3);if(!_0x20537c)return;_0xbbad19[_0x48eb9e(0x135)]={..._0x162a40[_0x48eb9e(0x32d)](_0x20537c),'tableFieldId':_0x479fd3,'pivotTableId':_0x2193fb[_0x48eb9e(0x80)],'filterInfo':_0x162a40['getFilterInfo'](_0x479fd3),'sortInfo':_0x162a40[_0x48eb9e(0x346)](_0x479fd3),'format':_0x162a40['getFieldFormat'](_0x479fd3)};}}break;case _0x357f41[_0x48eb9e(0x10c)]:{const _0x485734=_0x2193fb[_0x48eb9e(0x2ce)]['panel'];if(!_0x485734)return;const {pivotTableId:_0x15a945}=_0x485734,_0xd10c52=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x15a945);if(!_0xd10c52)return;const _0x1bfe10=this[_0x48eb9e(0xa6)]['getPivotTableConfig'](_0x258a39,_0xe7a154,_0x15a945),_0x39f916=_0xc6cc36(_0xd10c52,_0x15a945,_0x1bfe10);_0xbbad19['panel']=_0x39f916;}break;case _0x357f41[_0x48eb9e(0x36f)]:{const _0x22fa75=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884),_0x48a8ed=this[_0x48eb9e(0xa6)][_0x48eb9e(0x2c2)](_0x258a39),_0x53f634=_0x48a8ed[_0x48eb9e(0x28c)](_0x104884);let _0x123d71=null;const _0x5744f1=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884),_0x3f1024=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x30d)];if(!_0x22fa75||!_0x5744f1||!_0x3f1024)return!0x1;const {dataFieldId:_0x34ab30,fieldArea:_0x17c840,index:_0x2640c5}=_0x3f1024;_0x22fa75[_0x48eb9e(0x260)]();const _0x3f678a=_0x22fa75[_0x48eb9e(0x185)](_0x34ab30,_0x17c840,_0x2640c5);if(_0x3f678a&&_0x17c840===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x105)]){const _0x25c044=_0x3f678a[_0x48eb9e(0x13b)](),_0x3cd99d=_0x22fa75['getDataFieldByTableId'](_0x25c044);if(_0x3cd99d){const _0x3140ac=_0x3cd99d==null?void 0x0:_0x3cd99d[_0x48eb9e(0x24b)]();_0x22fa75['setSubtotalType'](_0x3f678a[_0x48eb9e(0x13b)](),_0x3140ac===_0x949178[_0x48eb9e(0x369)][_0x48eb9e(0x1b7)]?_0x949178[_0x48eb9e(0x34e)][_0x48eb9e(0x358)]:_0x949178[_0x48eb9e(0x34e)]['count']);}const _0x223551=_0x22fa75[_0x48eb9e(0x16d)](),_0x328627=_0x22fa75[_0x48eb9e(0x156)](),_0xff262e=_0x22fa75['getFieldCountByArea'](_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x105)]);if(_0x223551===-0x1&&_0xff262e>0x1){const _0xce33c5=_0x328627===_0x949178['PivotTableValuePositionEnum']['None']?_0x949178[_0x48eb9e(0x299)]['Column']:_0x328627,_0x4e148a=_0xce33c5===_0x949178[_0x48eb9e(0x299)][_0x48eb9e(0x2bc)]?_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x2bc)]:_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x16e)];_0x22fa75[_0x48eb9e(0x1a9)](_0xce33c5,_0x22fa75[_0x48eb9e(0x25f)](_0x4e148a));}}else{if(_0x3f678a&&(_0x17c840===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x2bc)]||_0x17c840===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x16e)])){const _0x3f6f19=_0x3f678a['getId'](),_0x3a05d6=_0x22fa75[_0x48eb9e(0x72)](_0x3f6f19);if(_0x3a05d6&&(_0x3a05d6==null?void 0x0:_0x3a05d6[_0x48eb9e(0x24b)]())===_0x949178[_0x48eb9e(0x369)][_0x48eb9e(0x1da)]){const _0x1db8bb=_0x3a05d6[_0x48eb9e(0x1a4)]();if(_0x1db8bb&&_0x22fa75[_0x48eb9e(0x197)](_0x3f678a['getId'](),_0x1db8bb),!_0x53f634[_0x48eb9e(0x225)]()[_0x48eb9e(0x20d)](_0x731c1a=>{const _0x1cd9fd=_0x48eb9e,_0x4dd751=_0x53f634[_0x1cd9fd(0x181)](_0x731c1a);return _0x949178[_0x1cd9fd(0x334)](_0x4dd751)?_0x4dd751[_0x1cd9fd(0x2f9)]()[_0x1cd9fd(0x19e)]===_0x34ab30:!0x1;})){const _0x508ee7=_0x48a8ed[_0x48eb9e(0x31c)](),_0x253b96=_0x4f34b6(_0x3a05d6[_0x48eb9e(0x8c)],_0x3a05d6[_0x48eb9e(0xa1)]),_0x86d4ff=_0x3a05d6[_0x48eb9e(0x136)]()+_0x48eb9e(0xa8)+_0x561cfe(this[_0x48eb9e(0x214)],_0x253b96),_0x3cc5ea=new _0x949178[(_0x48eb9e(0x257))](_0x508ee7,_0x86d4ff,_0x949178['generateHexNumber'](0x3),_0x3a05d6[_0x48eb9e(0x13b)](),_0x253b96);_0x48a8ed['addDataFieldWithoutUnitInfo'](_0x3cc5ea),_0x53f634[_0x48eb9e(0x2da)](_0x508ee7,_0x86d4ff),_0x22fa75[_0x48eb9e(0x185)](_0x508ee7,_0x17c840,(_0x2640c5!=null?_0x2640c5:0x0)+0x1),_0x123d71=_0x3cc5ea;}}}}const _0xbe5539=_0x22fa75['isEmpty'](),_0xd818d0=_0x22fa75[_0x48eb9e(0x1f3)]()[_0x48eb9e(0x120)]();let _0x2065db;if(_0x123d71){_0x2065db=_0x123d71[_0x48eb9e(0x120)]();const _0x32ab84=_0x123d71[_0x48eb9e(0x13b)]();_0x53f634['deleteField'](_0x32ab84);let _0xb399f4=!0x0;for(const _0x870a1d in _0x48a8ed['collections'])if(_0x48a8ed[_0x48eb9e(0x307)][_0x870a1d][_0x48eb9e(0x225)]()[_0x48eb9e(0x209)](_0x32ab84)){_0xb399f4=!0x1;break;}_0xb399f4&&_0x48a8ed[_0x48eb9e(0x1de)](_0x32ab84);}const _0x5e31e7=_0x22fa75['endCollectChangeset']();_0xbbad19['addPivotField']={'view':_0xd818d0,'changesets':_0x5e31e7,'isEmpty':_0xbe5539,'pivotTableConfig':_0x5744f1,'shouldBeAddedGroupJSON':_0x2065db};}break;case _0x357f41[_0x48eb9e(0x262)]:{const _0x4b1a3a=_0x2193fb['params'][_0x48eb9e(0x302)];if(!_0x4b1a3a)return;const _0x2392ee=_0x4b1a3a[_0x48eb9e(0x1fb)],_0xe85eb3=_0x4b1a3a[_0x48eb9e(0x80)],{collection:_0x4fa882}=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1a6)]({'unitId':_0x2392ee['unitId'],'sheetName':_0x2392ee[_0x48eb9e(0x143)],'subUnitId':_0x2392ee['subUnitId'],'range':_0x2392ee[_0x48eb9e(0x26e)]}),_0x276483=new _0x949178[(_0x48eb9e(0xcd))](_0x4fa882,void 0x0,_0xe85eb3),_0x234383=_0x276483[_0x48eb9e(0x1f3)](),_0x2fea45=_0x276483[_0x48eb9e(0x120)](),_0x45441d=_0x4fa882[_0x48eb9e(0x120)]();_0xbbad19[_0x48eb9e(0x302)]={'view':_0x234383,'fieldsConfig':_0x2fea45,'collectionConfig':_0x45441d,'isEmpty':_0x276483[_0x48eb9e(0x121)]()};}break;case _0x357f41[_0x48eb9e(0x227)]:{const _0xb7506=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x101)];if(!_0xb7506)return;const {fieldId:_0x274a3a,area:_0x107923,index:_0x4a98e6}=_0xb7506,_0xc8a9c4=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0xc8a9c4)return;const _0x292828=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x104884);if(!_0x292828)return;_0x292828[_0x48eb9e(0x260)]();const {area:_0xd17cec,index:_0x12b8cc}=_0x292828[_0x48eb9e(0xae)](_0x274a3a);if(_0x292828[_0x48eb9e(0x21b)](_0x274a3a,_0x107923,_0x4a98e6),_0x107923===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x105)]&&_0x292828[_0x48eb9e(0x1fe)](_0x274a3a)['getSubtotal']()===void 0x0){const _0xd3f125=_0x292828[_0x48eb9e(0x1fe)](_0x274a3a);if(_0xd3f125&&_0xd3f125[_0x48eb9e(0x363)]()===void 0x0){const _0x5a2ede=_0x292828[_0x48eb9e(0x72)](_0x274a3a);if(_0x5a2ede){const _0xee36ca=_0x5a2ede==null?void 0x0:_0x5a2ede[_0x48eb9e(0x24b)]();_0x292828[_0x48eb9e(0x36c)](_0x274a3a,_0xee36ca===_0x949178[_0x48eb9e(0x369)][_0x48eb9e(0x1b7)]?_0x949178[_0x48eb9e(0x34e)]['sum']:_0x949178[_0x48eb9e(0x34e)][_0x48eb9e(0x32c)]);}}}const _0x8b5a3=_0x292828[_0x48eb9e(0x156)](),_0x3f8555=_0x292828[_0x48eb9e(0x16d)](),_0x44eaa2=_0x292828[_0x48eb9e(0x25f)](_0x949178[_0x48eb9e(0x11a)]['Value'])>0x1;if(_0x44eaa2&&_0xd17cec===_0x107923&&(_0x107923===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x2bc)]&&_0x8b5a3===_0x949178[_0x48eb9e(0x299)][_0x48eb9e(0x2bc)]||_0x107923===_0x949178['PivotTableFiledAreaEnum'][_0x48eb9e(0x16e)]&&_0x8b5a3===_0x949178['PivotTableValuePositionEnum'][_0x48eb9e(0x16e)])){let _0x276174=_0x3f8555;_0x12b8cc<=_0x3f8555&&_0x276174--,_0x4a98e6<=_0x3f8555&&_0x276174++,_0x292828[_0x48eb9e(0x1a9)](_0x8b5a3,_0x276174);}else _0x44eaa2&&(_0xd17cec===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x2bc)]&&_0x8b5a3===_0x949178[_0x48eb9e(0x299)][_0x48eb9e(0x2bc)]||_0xd17cec===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x16e)]&&_0x8b5a3===_0x949178['PivotTableValuePositionEnum']['Column'])&&_0x3f8555>=_0x12b8cc&&_0x292828[_0x48eb9e(0x1a9)](_0x8b5a3,_0x3f8555-0x1),_0x44eaa2&&(_0x107923===_0x949178['PivotTableFiledAreaEnum'][_0x48eb9e(0x2bc)]&&_0x8b5a3===_0x949178[_0x48eb9e(0x299)]['Row']||_0x107923===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x16e)]&&_0x8b5a3===_0x949178[_0x48eb9e(0x299)][_0x48eb9e(0x16e)])&&_0x3f8555>=_0x4a98e6&&_0x292828[_0x48eb9e(0x1a9)](_0x8b5a3,_0x3f8555+0x1);const _0x53c6b0=_0x292828['query'](),_0x22d6b1=_0x292828[_0x48eb9e(0x121)](),_0x2b43a8=_0x292828[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0x101)]={'view':_0x53c6b0[_0x48eb9e(0x120)](),'changesets':_0x2b43a8,'isEmpty':_0x22d6b1,'pivotTableConfig':_0xc8a9c4};}break;case _0x357f41[_0x48eb9e(0x301)]:{const _0x8470b2=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0xba)];if(!_0x8470b2)return;const _0x495c26=_0x8470b2[_0x48eb9e(0x7e)],_0x13ec54=this[_0x48eb9e(0xa6)][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x13ec54)return!0x1;const _0x5e7ebe=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884);if(!_0x5e7ebe)return!0x1;_0x5e7ebe[_0x48eb9e(0x260)]();for(const _0xdd0a27 of _0x495c26){const {area:_0x17dfad}=_0x5e7ebe['getFieldPositionInfoById'](_0xdd0a27);_0x17dfad===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x105)]&&_0x5e7ebe['removeValueFilterInfoByValueFieldId'](_0xdd0a27),(_0x17dfad===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x2bc)]||_0x17dfad===_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x16e)])&&_0x5e7ebe[_0x48eb9e(0x29b)](_0xdd0a27),_0x5e7ebe[_0x48eb9e(0x2b1)](_0xdd0a27);}const _0x903bb5=_0x5e7ebe['isEmpty'](),_0x1b5ec7=_0x5e7ebe[_0x48eb9e(0x1f3)]()[_0x48eb9e(0x120)](),_0x412d81=_0x5e7ebe[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0xba)]={'changesets':_0x412d81,'pivotTableConfig':_0x13ec54,'isEmpty':_0x903bb5,'view':_0x1b5ec7};}break;case _0x357f41[_0x48eb9e(0xde)]:{const _0x2facc4=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x29c)];if(!_0x2facc4)return;const {tableFieldId:_0x494fb3,items:_0x4b237b,isAll:_0x31cbf6}=_0x2facc4,_0x448b06=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x1c4)](_0x104884),_0x583d12=this[_0x48eb9e(0xa6)][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x448b06||!_0x583d12)return;_0x448b06[_0x48eb9e(0x260)](),_0x448b06[_0x48eb9e(0x175)](_0x494fb3,{'type':_0x949178[_0x48eb9e(0x245)][_0x48eb9e(0x191)],'list':_0x4b237b,'isAll':_0x31cbf6});const _0x259faa=_0x448b06[_0x48eb9e(0x121)](),_0x2edaff=_0x448b06[_0x48eb9e(0x1f3)]()[_0x48eb9e(0x120)](),_0xcd2044=_0x448b06[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0x29c)]={'view':_0x2edaff,'changesets':_0xcd2044,'isEmpty':_0x259faa,'pivotTableConfig':_0x583d12};}break;case _0x357f41[_0x48eb9e(0xbc)]:{const _0x2f2744=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0xec)];if(!_0x2f2744)return;const {tableFieldId:_0xb4a476,filterInfo:_0x58d1d9}=_0x2f2744,_0x5098b2=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884),_0xff03b1=this[_0x48eb9e(0xa6)][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x5098b2||!_0xff03b1)return;_0x5098b2[_0x48eb9e(0x260)](),_0x5098b2['setValueFilterInfo'](_0xb4a476,_0x58d1d9);const _0x4003d2=_0x5098b2[_0x48eb9e(0x121)](),_0x8db04c=_0x5098b2['query']()[_0x48eb9e(0x120)](),_0x4270a0=_0x5098b2[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0xec)]={'view':_0x8db04c,'changesets':_0x4270a0,'isEmpty':_0x4003d2,'pivotTableConfig':_0xff03b1};}break;case _0x357f41[_0x48eb9e(0x213)]:{const _0xe36874=_0x2193fb[_0x48eb9e(0x2ce)]['setPivotSort'];if(!_0xe36874)return;const {tableFieldId:_0x1c281b,info:_0x5a4c6d}=_0xe36874,_0x51c40f=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884),_0x1fa52c=this[_0x48eb9e(0xa6)]['getPivotTableConfig'](_0x258a39,_0xe7a154,_0x104884);if(!_0x51c40f||!_0x1fa52c)return;_0x51c40f['startCollectChangeset'](),_0x51c40f[_0x48eb9e(0xdc)](_0x1c281b,_0x5a4c6d);const _0x31c2d8=_0x51c40f[_0x48eb9e(0x121)](),_0x111394=_0x51c40f['query']()['toJSON'](),_0x3e1e4c=_0x51c40f['endCollectChangeset']();_0xbbad19[_0x48eb9e(0x247)]={'view':_0x111394,'changesets':_0x3e1e4c,'isEmpty':_0x31c2d8,'pivotTableConfig':_0x1fa52c};}break;case _0x357f41[_0x48eb9e(0x381)]:{const _0x12d6dc=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0xce)];if(!_0x12d6dc)return;const {tableFieldId:_0x35b6ea,displayName:_0x2a34a4,subtotalType:_0x5133a4,format:_0x8f11e2}=_0x12d6dc,_0x233477=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x104884),_0x3f2882=this[_0x48eb9e(0xa6)][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x233477||!_0x3f2882)return;_0x233477[_0x48eb9e(0x260)](),_0x2a34a4!==void 0x0&&_0x233477[_0x48eb9e(0x139)](_0x35b6ea,_0x2a34a4),_0x5133a4!==void 0x0&&_0x233477[_0x48eb9e(0x36c)](_0x35b6ea,_0x5133a4),_0x8f11e2!==void 0x0&&_0x233477[_0x48eb9e(0x197)](_0x35b6ea,_0x8f11e2);const _0xe312e4=_0x233477[_0x48eb9e(0x121)](),_0x3a5b6f=_0x233477[_0x48eb9e(0x1f3)]()[_0x48eb9e(0x120)](),_0x1f01eb=_0x233477['endCollectChangeset']();_0xbbad19[_0x48eb9e(0xce)]={'changesets':_0x1f01eb,'pivotTableConfig':_0x3f2882,'isEmpty':_0xe312e4,'view':_0x3a5b6f};}break;case _0x357f41[_0x48eb9e(0x152)]:{const _0xa5b4a8=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x350)];if(!_0xa5b4a8)return;const {dataRangeInfo:_0x3a3e4e,unitId:_0x2e337d,subUnitId:_0x53b763}=_0xa5b4a8,_0x178a89=this[_0x48eb9e(0xa6)][_0x48eb9e(0x290)](_0x2e337d,_0x53b763,_0x104884),_0x113b3d=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884);if(!this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x28c)](_0x2e337d,_0x104884)||!_0x113b3d||!_0x178a89)return;const _0x3721b6=this[_0x48eb9e(0xa6)][_0x48eb9e(0x24d)](_0x2e337d,_0x104884,_0x3a3e4e),_0x484b78=this[_0x48eb9e(0xa6)]['getCollection'](_0x2e337d,_0x104884)[_0x48eb9e(0x120)](),{collection:_0x9e7a76}=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1a6)]({'unitId':_0x3a3e4e[_0x48eb9e(0x2d0)],'sheetName':_0x3a3e4e[_0x48eb9e(0x143)],'subUnitId':_0x3a3e4e[_0x48eb9e(0x19f)],'range':_0x3a3e4e[_0x48eb9e(0x26e)]}),_0x522a93=_0x9e7a76[_0x48eb9e(0x120)]();_0x113b3d[_0x48eb9e(0x260)]();const _0x3b9596=this[_0x48eb9e(0xa6)][_0x48eb9e(0x2c2)](_0x2e337d)[_0x48eb9e(0x189)]()||_0x949178[_0x48eb9e(0x18b)];_0x113b3d[_0x48eb9e(0x2d5)](_0xc2dfce=>{const _0x104dc7=_0x48eb9e,_0x5f03b9=_0xc2dfce['getDataFieldId']();if(!_0x9e7a76[_0x104dc7(0x12f)](_0x5f03b9)){const _0x1f06ce=_0x9e7a76[_0x104dc7(0x1d0)](_0xc2dfce[_0x104dc7(0x384)]());if(_0x1f06ce){_0x113b3d['updateFieldSourceInfo'](_0xc2dfce[_0x104dc7(0x13b)](),_0x1f06ce['getName'](),_0x1f06ce[_0x104dc7(0x13b)]());const {area:_0x4346a3}=_0x113b3d[_0x104dc7(0xae)](_0xc2dfce[_0x104dc7(0x13b)]());let _0x2baae0=_0xc2dfce[_0x104dc7(0x384)]();const _0x357e20=_0xc2dfce['getDisplayName']();if(_0x4346a3===_0x949178[_0x104dc7(0x11a)][_0x104dc7(0x105)]){const _0x2553da=_0xc2dfce['getSubtotal']();_0x2baae0=_0x3b9596(_0x1f06ce[_0x104dc7(0x136)](),_0x2553da);}_0x357e20!==_0x2baae0&&_0x113b3d[_0x104dc7(0x139)](_0xc2dfce[_0x104dc7(0x13b)](),_0x2baae0);}else _0x113b3d['removeField'](_0xc2dfce[_0x104dc7(0x13b)]());}});const _0x1a3be4=_0x113b3d[_0x48eb9e(0x121)](),_0x263b54=_0x113b3d[_0x48eb9e(0x1f3)]()['toJSON'](),_0x15a82e=_0x113b3d[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0x350)]={'view':_0x263b54,'changesets':_0x15a82e,'isEmpty':_0x1a3be4,'pivotTableConfig':_0x178a89,'collectionConfig':_0x522a93,'oldCollectionConfig':_0x484b78,'deleteIds':_0x3721b6};}break;case _0x357f41[_0x48eb9e(0xfe)]:{const _0x2215cd=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x1a9)];if(!_0x2215cd)return;const {position:_0x2b9a7b,index:_0x5a109e}=_0x2215cd,_0x515cd4=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x515cd4)return!0x1;const _0xdb3c0f=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884);if(!_0xdb3c0f)return!0x1;_0xdb3c0f[_0x48eb9e(0x260)](),_0xdb3c0f[_0x48eb9e(0x1a9)](_0x2b9a7b,_0x5a109e);const _0x27a99f=_0xdb3c0f[_0x48eb9e(0x121)](),_0x5384fe=_0xdb3c0f['query']()[_0x48eb9e(0x120)](),_0x8559cd=_0xdb3c0f[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0x1a9)]={'changesets':_0x8559cd,'pivotTableConfig':_0x515cd4,'isEmpty':_0x27a99f,'view':_0x5384fe};}break;case _0x357f41[_0x48eb9e(0x2d7)]:{const _0x36f3d7=_0x2193fb[_0x48eb9e(0x2ce)]['setPivotCollapse'];if(!_0x36f3d7)return;const {tableFieldId:_0x4dca29,collapse:_0x47fdcc,item:_0x4eff67}=_0x36f3d7,_0xdd09e3=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884),_0x35afa8=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0xdd09e3||!_0x35afa8)return;_0xdd09e3['startCollectChangeset'](),_0xdd09e3[_0x48eb9e(0x30a)](_0x4dca29,_0x47fdcc,_0x4eff67);const _0xcd2389=_0xdd09e3[_0x48eb9e(0x121)](),_0x29dcd9=_0xdd09e3[_0x48eb9e(0x1f3)]()[_0x48eb9e(0x120)](),_0xe3f896=_0xdd09e3['endCollectChangeset']();_0xbbad19['setPivotCollapse']={'view':_0x29dcd9,'isEmpty':_0xcd2389,'pivotTableConfig':_0x35afa8,'changesets':_0xe3f896};}break;case _0x357f41['SetPivotTableConfig']:{const _0x36001c=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0xe8)];if(!_0x36001c)return;const {pivotTableConfig:_0x59212a}=_0x36001c,_0x414cdb=this[_0x48eb9e(0xa6)][_0x48eb9e(0x1c4)](_0x104884),_0x5500c7=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x414cdb||!_0x5500c7)return;_0x414cdb['startCollectChangeset'](),_0x4bbd9a(_0x414cdb,_0x59212a);const _0xa65ac2=_0x414cdb[_0x48eb9e(0x121)](),_0x2d4a5b=_0x414cdb['query']()['toJSON'](),_0x126cb4=_0x414cdb[_0x48eb9e(0x228)]();_0xbbad19[_0x48eb9e(0xe8)]={'view':_0x2d4a5b,'isEmpty':_0xa65ac2,'pivotTableConfig':{..._0x5500c7,'fieldsConfig':_0x414cdb[_0x48eb9e(0x120)]()},'changesets':_0x126cb4};}break;case _0x357f41[_0x48eb9e(0x133)]:{const _0x30ba5a=_0x2193fb[_0x48eb9e(0x2ce)][_0x48eb9e(0x341)];if(!_0x30ba5a)return;const _0x28c1bc=this[_0x48eb9e(0xa6)]['getPivotTableInstance'](_0x104884),_0x34a65c=this[_0x48eb9e(0xa6)][_0x48eb9e(0x290)](_0x258a39,_0xe7a154,_0x104884);if(!_0x28c1bc||!_0x34a65c)return;_0x28c1bc[_0x48eb9e(0x260)](),_0x30779a(_0x28c1bc,_0x30ba5a['resetArea']);const _0x57758d=_0x28c1bc[_0x48eb9e(0x1f3)]()[_0x48eb9e(0x120)](),_0x4ef834=_0x28c1bc['endCollectChangeset']();_0xbbad19[_0x48eb9e(0x341)]={'view':_0x57758d,'isEmpty':!0x0,'pivotTableConfig':{..._0x34a65c,'fieldsConfig':_0x28c1bc['toJSON']()},'changesets':_0x4ef834};}break;case _0x357f41[_0x48eb9e(0x2ad)]:{const _0x4b926d=_0x2193fb[_0x48eb9e(0x2ce)]['addPivotTableWithConfig'];if(!_0x4b926d)return;const _0xd57826=_0x4b926d[_0x48eb9e(0x1fb)],_0x207f3e=_0x4b926d[_0x48eb9e(0x80)],{collection:_0x4a73cb}=this['_sheetsPivotDataSourceModel'][_0x48eb9e(0x1a6)]({'unitId':_0xd57826[_0x48eb9e(0x2d0)],'sheetName':_0xd57826['sheetName'],'subUnitId':_0xd57826[_0x48eb9e(0x19f)],'range':_0xd57826[_0x48eb9e(0x26e)]}),_0x48aae0=new _0x949178[(_0x48eb9e(0xcd))](_0x4a73cb,void 0x0,_0x207f3e),_0x4fe3c3=_0x4a73cb[_0x48eb9e(0x225)](),{rows:_0x3eb903,columns:_0x362c17,filters:_0x2806be,values:_0x2e2a5e}=_0x4b926d[_0x48eb9e(0x15d)];_0x48aae0[_0x48eb9e(0x260)]();for(const {field:_0x36a091,selectedItems:_0x22343e}of _0x3eb903||[]){const _0x144bb6=_0x4fe3c3[_0x36a091];if(_0x144bb6){const _0x130db8=_0x48aae0[_0x48eb9e(0x185)](_0x144bb6,_0x949178['PivotTableFiledAreaEnum'][_0x48eb9e(0x2bc)]);_0x22343e&&_0x130db8&&_0x48aae0['setLabelFilterInfo'](_0x130db8[_0x48eb9e(0x13b)](),{'type':_0x949178['PivotFilterTypeEnum'][_0x48eb9e(0x191)],'list':_0x22343e,'isAll':!0x1});}}for(const {field:_0x54e083,selectedItems:_0x252ba7}of _0x362c17||[]){const _0x515f75=_0x4fe3c3[_0x54e083];if(_0x515f75){const _0x273b41=_0x48aae0[_0x48eb9e(0x185)](_0x515f75,_0x949178['PivotTableFiledAreaEnum']['Column']);_0x252ba7&&_0x273b41&&_0x48aae0['setLabelFilterInfo'](_0x273b41[_0x48eb9e(0x13b)](),{'type':_0x949178['PivotFilterTypeEnum'][_0x48eb9e(0x191)],'list':_0x252ba7,'isAll':!0x1});}}for(const {field:_0x52b5b1,selectedItems:_0x1697f3}of _0x2806be||[]){const _0x1501c3=_0x4fe3c3[_0x52b5b1];if(_0x1501c3){const _0x54039d=_0x48aae0[_0x48eb9e(0x185)](_0x1501c3,_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x12e)]);_0x1697f3&&_0x54039d&&_0x48aae0[_0x48eb9e(0x175)](_0x54039d[_0x48eb9e(0x13b)](),{'type':_0x949178['PivotFilterTypeEnum'][_0x48eb9e(0x191)],'list':_0x1697f3,'isAll':!0x1});}}for(const {field:_0x5d04f1,subTotalType:_0x2ba06d,formatString:_0x2c80bc}of _0x2e2a5e||[]){const _0x12e7f8=_0x4a73cb[_0x48eb9e(0x181)](_0x4fe3c3[_0x5d04f1]);if(!_0x12e7f8)continue;const _0x497e3f=_0x4fe3c3[_0x5d04f1];if(_0x497e3f){const _0x1b3b1a=_0x48aae0[_0x48eb9e(0x185)](_0x497e3f,_0x949178[_0x48eb9e(0x11a)][_0x48eb9e(0x105)]);if(_0x1b3b1a){if(_0x2ba06d!==void 0x0){_0x48aae0[_0x48eb9e(0x36c)](_0x1b3b1a[_0x48eb9e(0x13b)](),_0x2ba06d);const _0x6d6e6b=this[_0x48eb9e(0xa6)][_0x48eb9e(0x2c2)](_0xd57826[_0x48eb9e(0x2d0)])[_0x48eb9e(0x189)]()||_0x949178['getAutoDisplayName'],_0x5c2a16=_0x4a73cb[_0x48eb9e(0x220)](_0x497e3f),_0x44bf98=_0x6d6e6b(_0x5c2a16,_0x2ba06d);_0x48aae0[_0x48eb9e(0x139)](_0x1b3b1a[_0x48eb9e(0x13b)](),_0x44bf98);}else{if(_0x12e7f8){const _0x10e5c4=_0x12e7f8==null?void 0x0:_0x12e7f8[_0x48eb9e(0x24b)]();_0x48aae0[_0x48eb9e(0x36c)](_0x1b3b1a[_0x48eb9e(0x13b)](),_0x10e5c4===_0x949178[_0x48eb9e(0x369)][_0x48eb9e(0x1b7)]?_0x949178['PivotSubtotalTypeEnum'][_0x48eb9e(0x358)]:_0x949178[_0x48eb9e(0x34e)][_0x48eb9e(0x32c)]);}}_0x2c80bc&&_0x48aae0['setFieldFormat'](_0x1b3b1a['getId'](),_0x2c80bc);}}}const _0x1dba47=_0x48aae0[_0x48eb9e(0x1f3)](),_0x31944e=_0x48aae0[_0x48eb9e(0x120)](),_0x2d2a23=_0x48aae0[_0x48eb9e(0x121)](),_0x366b12=_0x48aae0['endCollectChangeset'](),_0x53c77f=_0x4a73cb['toJSON']();_0xbbad19[_0x48eb9e(0x194)]={'view':_0x1dba47,'fieldsConfig':_0x31944e,'collectionConfig':_0x53c77f,'isEmpty':_0x2d2a23,'changesets':_0x366b12};}break;case _0x357f41[_0x48eb9e(0x7b)]:{const _0x1a06dd=_0x3ea438(this[_0x48eb9e(0x214)],_0x2193fb);if(!_0x1a06dd)return;const {range:_0x236b32,sourceSubUnitId:_0x1c8479,sourceUnitId:_0x191d4c,formatMap:_0x41f10c,indexes:_0x34dfdd}=_0x1a06dd;_0xbbad19['drillDown']={'range':_0x236b32,'sourceSubUnitId':_0x1c8479,'sourceUnitId':_0x191d4c,'formatMap':_0x41f10c,'indexes':_0x34dfdd};}break;}this[_0x48eb9e(0x2c6)][_0x48eb9e(0x35b)](_0x5b3f8e['id'],{'version':_0x2193fb[_0x48eb9e(0x16f)],'result':_0xbbad19},{'onlyLocal':!0x0});}));}[_0x5b4c6d(0x210)](){const _0x39b9cc=_0x5b4c6d;this['disposeWithMe'](this[_0x39b9cc(0x2c6)][_0x39b9cc(0xcc)](_0x334167=>{const _0x52a12c=_0x39b9cc;if(_0x334167['id']!==_0x5273d0['id'])return;const _0x128b43=_0x334167[_0x52a12c(0x2ce)];return this[_0x52a12c(0xa6)][_0x52a12c(0x2ab)](_0x128b43[_0x52a12c(0x2e1)]),!0x0;}));}['_subjectCollectionChange'](){const _0x1ce5fc=_0x5b4c6d;this[_0x1ce5fc(0xa6)][_0x1ce5fc(0xa4)][_0x1ce5fc(0x17c)](_0x2c69f9=>{const _0x5f397f=_0x1ce5fc;switch(_0x2c69f9['type']){case _0x1f8109[_0x5f397f(0xe3)]:_0x2c69f9[_0x5f397f(0x104)]&&_0x2c69f9[_0x5f397f(0x282)]&&this[_0x5f397f(0x163)](_0x2c69f9['token'],_0x2c69f9[_0x5f397f(0x104)],_0x2c69f9[_0x5f397f(0x282)]);break;case _0x1f8109[_0x5f397f(0x236)]:{const {unitId:_0x51cb43,subUnitId:_0x5d287f,token:_0x229dd5}=_0x2c69f9;_0x51cb43&&_0x5d287f&&_0x229dd5&&this[_0x5f397f(0xc2)](_0x51cb43,_0x5d287f,_0x229dd5);}break;case _0x1f8109[_0x5f397f(0x9c)]:{const {token:_0x1a704b,oldSourceRangeInfo:_0x3e9d14,dataRangeInfo:_0x31f985,targetCellInfo:_0x2b8131}=_0x2c69f9,{unitId:_0x5b04c0,subUnitId:_0x5e1556}=_0x3e9d14||{};_0x5b04c0&&_0x5e1556&&_0x1a704b&&this[_0x5f397f(0xc2)](_0x5b04c0,_0x5e1556,_0x1a704b),_0x31f985&&_0x2b8131&&this[_0x5f397f(0x163)](_0x1a704b,_0x31f985,_0x2b8131);}break;}});}[_0x5b4c6d(0x19a)](){const _0x28aedf=_0x5b4c6d;this[_0x28aedf(0xa6)]['fieldsCollectionChange$'][_0x28aedf(0x17c)](_0x37c4df=>{const _0xa9322e=_0x28aedf;Object['keys'](_0x37c4df)[_0xa9322e(0x36a)](_0xe56c6b=>{const _0xd1556d=_0xa9322e,_0x445835=this[_0xd1556d(0xa6)][_0xd1556d(0x1b1)](_0xe56c6b);if(_0x445835){const _0x30b5f4=this[_0xd1556d(0xa6)]['getPivotTableConfig'](_0x445835==null?void 0x0:_0x445835[_0xd1556d(0x2d0)],_0x445835==null?void 0x0:_0x445835[_0xd1556d(0x19f)],_0xe56c6b);_0x30b5f4&&(this[_0xd1556d(0x163)](_0xe56c6b,_0x30b5f4[_0xd1556d(0x1fb)],_0x30b5f4[_0xd1556d(0x282)]),this['triggerDirtyFeature']([{'unitId':_0x445835[_0xd1556d(0x2d0)],'subUnitId':_0x445835[_0xd1556d(0x19f)],'token':_0xe56c6b}]));}});});}[_0x5b4c6d(0x26c)](){const _0x1d5e67=_0x5b4c6d;this[_0x1d5e67(0xa6)][_0x1d5e67(0x11b)]['subscribe'](_0x692aaa=>{const _0x3bd112=_0x1d5e67,{unitId:_0x4bd641,subUnitId:_0x3747d3,pivotTableId:_0x30f1c8}=_0x692aaa;_0x4bd641&&_0x3747d3&&_0x30f1c8&&this[_0x3bd112(0x365)]([{'unitId':_0x4bd641,'subUnitId':_0x3747d3,'token':_0x30f1c8}]);});}[_0x5b4c6d(0x365)](_0x2e54a0){const _0x264f97=_0x5b4c6d,_0x2e4d8d={};_0x2e54a0['forEach'](_0x54ece3=>{var _0x506179,_0x2ee605;const {unitId:_0x4645ef,subUnitId:_0x1b75ff,token:_0xba6c12}=_0x54ece3;_0x2e4d8d[_0x4645ef]=(_0x506179=_0x2e4d8d[_0x4645ef])!=null?_0x506179:{},_0x2e4d8d[_0x4645ef][_0x1b75ff]=(_0x2ee605=_0x2e4d8d[_0x4645ef][_0x1b75ff])!=null?_0x2ee605:{},_0x2e4d8d[_0x4645ef][_0x1b75ff][_0xba6c12]=!0x0;}),this[_0x264f97(0x2c6)][_0x264f97(0x35b)](_0x500ef9['id'],_0x2e4d8d);}['removeSourceRangeChange'](_0x2ad946,_0x355328,_0x1a8a3e){const _0x2a3ef2=_0x5b4c6d;this[_0x2a3ef2(0xa2)][_0x2a3ef2(0xef)](_0x2ad946,_0x355328,[_0x1a8a3e]);}[_0x5b4c6d(0x163)](_0x42e157,_0x26a593,_0x2baac0){const _0x564b81=_0x5b4c6d,{unitId:_0x1eb2ca,subUnitId:_0x42097e}=_0x26a593;this[_0x564b81(0xa2)][_0x564b81(0x208)](_0x2baac0[_0x564b81(0x2d0)],_0x2baac0['subUnitId'],_0x42e157)&&this[_0x564b81(0xc2)](_0x1eb2ca,_0x42097e,_0x42e157);const _0x26f72e={'sheetId':_0x42097e,..._0x26a593};this[_0x564b81(0xa2)][_0x564b81(0x94)](_0x2baac0[_0x564b81(0x2d0)],_0x2baac0[_0x564b81(0x19f)],_0x42e157,{'unitId':_0x2baac0[_0x564b81(0x2d0)],'subUnitId':_0x2baac0[_0x564b81(0x19f)],'dependencyRanges':[_0x26f72e],'getDirtyData':(_0x45509e,_0x409f09)=>{const _0x44842b=_0x564b81,_0x36bfa2=this[_0x44842b(0xa6)],_0x22a1b8=_0x36bfa2[_0x44842b(0x1b1)](_0x42e157);if(!_0x22a1b8)return _0x330b95();const {unitId:_0x14d034,subUnitId:_0xba3ce5}=_0x22a1b8,_0x2dbebb=_0x53fc9b(_0x45509e,_0x409f09,_0x26a593);if(_0x2dbebb[_0x44842b(0xad)]>0x0){const _0x46bd94=_0x36bfa2[_0x44842b(0x28c)](_0x1eb2ca,_0x42e157),_0x33378c=_0x46bd94[_0x44842b(0x225)](),_0x5e75ee=this[_0x44842b(0x11c)](_0x26a593[_0x44842b(0x2d0)],_0x26a593['subUnitId'],_0x409f09),_0x494373={},_0x33179f=this['_sheetsPivotDataSourceModel'][_0x44842b(0x2c2)](_0x14d034)[_0x44842b(0x189)]()||_0x949178['getAutoDisplayName'],_0x4aa769=[];for(const _0x4552a2 of _0x2dbebb){const _0xf76465=_0x4552a2-(_0x26a593[_0x44842b(0x26e)][_0x44842b(0x281)]||0x0),_0x498040=_0x33378c[_0xf76465];_0x4aa769[_0x44842b(0x1cc)](_0x498040),_0x494373[_0x498040]=_0x46bd94[_0x44842b(0x181)](_0x498040)[_0x44842b(0x136)](),_0x36bfa2[_0x44842b(0x2c2)](_0x1eb2ca)[_0x44842b(0xbe)](_0x498040,_0x26a593,_0xf76465,_0x5e75ee);}_0x46bd94['getGroupFieldsInfoByIds'](_0x4aa769)[_0x44842b(0x36a)](_0x11f735=>{const _0x28ce99=_0x44842b,[_0x197883,_0x4d05f5]=_0x11f735,_0x166b67=_0x46bd94['getFieldById'](_0x197883),_0x14eaf4=_0x46bd94[_0x28ce99(0x181)](_0x4d05f5);_0x166b67&&_0x14eaf4&&_0x166b67[_0x28ce99(0x327)](_0x14eaf4);}),_0x46bd94[_0x44842b(0x217)]();const _0x4b1e0c=_0x36bfa2[_0x44842b(0x1c4)](_0x42e157);if(_0x4b1e0c){_0x9024f1(_0x4b1e0c,_0x494373,_0x33179f),_0x4b1e0c[_0x44842b(0x1b3)](!0x0);const _0x11974f=_0x4b1e0c['query'](),_0x10b388=_0x36bfa2[_0x44842b(0x290)](_0x14d034,_0xba3ce5,_0x42e157),_0x5daf4d=_0x36bfa2[_0x44842b(0x2c2)](_0x1eb2ca)[_0x44842b(0x120)]();_0x36bfa2['updateView'](_0x14d034,_0xba3ce5,_0x1bbb8c[_0x44842b(0x261)],_0x42e157,_0x11974f,_0x10b388,_0x5daf4d,!0x0);}}return this[_0x44842b(0x168)](_0x14d034,_0xba3ce5,_0x42e157);}});}[_0x5b4c6d(0x11c)](_0x47953a,_0x45c4ea,_0x4522d3){var _0x41e9ee,_0x509fd0;const {arrayFormulaCellData:_0x1a72a8,unitData:_0x3709c2}=_0x4522d3,_0x1a5854=(_0x41e9ee=_0x1a72a8==null?void 0x0:_0x1a72a8[_0x47953a])==null?void 0x0:_0x41e9ee[_0x45c4ea],_0x2c7152=(_0x509fd0=_0x3709c2==null?void 0x0:_0x3709c2[_0x47953a])==null?void 0x0:_0x509fd0[_0x45c4ea];return{'arrayFormulaCellDataMatrix':_0x1a5854,'unitDataMatrix':_0x2c7152};}[_0x5b4c6d(0x168)](_0xb405a1,_0x4aa1cc,_0x12b4c5){const _0x5102c3=_0x5b4c6d,_0x4aaa5c=this[_0x5102c3(0xa6)][_0x5102c3(0x235)](_0xb405a1,_0x4aa1cc,_0x12b4c5),_0xd02669=[],_0x22df61=new _0x2be92f['ObjectMatrix']();if(_0x4aaa5c){const {rangeCache:_0x569c36,matrix:_0x5cc481,oldRangeCache:_0x2fba96,oldMatrix:_0x22587b}=_0x4aaa5c,_0x557d98=_0x4c470f(_0x2fba96),_0xbe2e2=_0x4c470f(_0x569c36);_0xd02669[_0x5102c3(0x1cc)](..._0xbe2e2,..._0x557d98),_0x22587b&&_0x2fba96&&_0x557d98[_0x5102c3(0x36a)](_0x21f64a=>{const _0x350c22=_0x5102c3;for(let _0x5ce537=_0x21f64a[_0x350c22(0xee)];_0x5ce537<=_0x21f64a[_0x350c22(0x87)];_0x5ce537++)for(let _0x47fc8b=_0x21f64a[_0x350c22(0x281)];_0x47fc8b<=_0x21f64a[_0x350c22(0x249)];_0x47fc8b++)_0x22df61['realDeleteValue'](_0x5ce537,_0x47fc8b);}),_0x5cc481&&_0xbe2e2&&_0xbe2e2[_0x5102c3(0x36a)](_0x63ac66=>{const _0x3aa214=_0x5102c3;for(let _0x1d2ad2=_0x63ac66[_0x3aa214(0xee)];_0x1d2ad2<=_0x63ac66[_0x3aa214(0x87)];_0x1d2ad2++)for(let _0x305b2a=_0x63ac66[_0x3aa214(0x281)];_0x305b2a<=_0x63ac66[_0x3aa214(0x249)];_0x305b2a++)_0x22df61['setValue'](_0x1d2ad2,_0x305b2a,_0x5cc481[_0x3aa214(0x206)](_0x1d2ad2,_0x305b2a));});}const _0x56f0db={};return _0x56f0db[_0xb405a1]={[_0x4aa1cc]:_0xdc4e05(_0xd02669)},{'runtimeCellData':{[_0xb405a1]:{[_0x4aa1cc]:_0x22df61}},'dirtyRanges':_0x56f0db};}[_0x5b4c6d(0x2b2)](){}};_0x218320=_0x1d0353([_0x4ea4bc(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27['SheetsPivotDataSourceModel'])),_0x4ea4bc(0x1,_0x2be92f[_0x5b4c6d(0x27f)]),_0x4ea4bc(0x2,_0x2be92f['Inject'](_0x5172e4[_0x5b4c6d(0x387)])),_0x4ea4bc(0x3,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x109)])),_0x4ea4bc(0x4,_0x2be92f[_0x5b4c6d(0x253)](_0x5172e4[_0x5b4c6d(0x184)])),_0x4ea4bc(0x5,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xf0)]))],_0x218320);var _0xfd587b=Object[_0x5b4c6d(0x2f4)],_0x33d443=(_0x2a6bdb,_0x5bbc9c,_0x514a24,_0x1c423c)=>{for(var _0xa02895=_0x1c423c>0x1?void 0x0:_0x1c423c?_0xfd587b(_0x5bbc9c,_0x514a24):_0x5bbc9c,_0x48195c=_0x2a6bdb['length']-0x1,_0x2b0a92;_0x48195c>=0x0;_0x48195c--)(_0x2b0a92=_0x2a6bdb[_0x48195c])&&(_0xa02895=_0x2b0a92(_0xa02895)||_0xa02895);return _0xa02895;},_0x50aba6=(_0x1bdec1,_0x5c36e8)=>(_0x1a4161,_0x2c22f0)=>_0x5c36e8(_0x1a4161,_0x2c22f0,_0x1bdec1);let _0x546739=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x264ffb,_0x2c24b0,_0x4c5421,_0x3940c5){const _0x415c11=_0x5b4c6d;super(),_0x102d83(this,'disposableCollection',new _0x2be92f[(_0x415c11(0x311))]()),(this['_univerInstanceService']=_0x264ffb,this[_0x415c11(0x30e)]=_0x2c24b0,this[_0x415c11(0x2de)]=_0x4c5421,this['_sheetsPivotTableConfigModel']=_0x3940c5,this[_0x415c11(0x15c)]());}[_0x5b4c6d(0x15c)](){const _0x5c4328=_0x5b4c6d;this[_0x5c4328(0x20b)](this[_0x5c4328(0x30e)][_0x5c4328(0x174)]({'getMutations':_0x544a58=>{const _0x212248=_0x5c4328;if(_0x544a58['id']===_0xac1e83[_0x212248(0x2c8)]['id']||_0x544a58['id']===_0xac1e83[_0x212248(0x26a)]['id']){const _0x592738=[],_0x5a83e6=[],_0x17a6c1=this[_0x212248(0x2de)][_0x212248(0x336)]()['map'](_0x1d9e05=>_0x1d9e05[_0x212248(0x26e)]),_0x2255bb=_0xac1e83[_0x212248(0x1bc)](this[_0x212248(0x35d)]);if(!_0x2255bb)return{'redos':[],'undos':[]};const {unitId:_0x397afc,subUnitId:_0x1de35e}=_0x2255bb,_0x1b7cb5={},_0x878a14=this[_0x212248(0x28a)][_0x212248(0x37b)](_0x397afc,_0x1de35e);if(_0x878a14!=null&&_0x878a14[_0x212248(0x18c)])for(const [_0x1d64d4,_0x3840cc]of _0x878a14){const {unitId:_0x224abb,subUnitId:_0x2bd7a2,row:_0x5edf47,col:_0x43ca74}=_0x3840cc[_0x212248(0x282)];_0x224abb===_0x2255bb[_0x212248(0x2d0)]&&_0x2bd7a2===_0x2255bb['subUnitId']&&(_0x1b7cb5[_0x5edf47+'-'+_0x43ca74]=_0x1d64d4);}return _0x17a6c1&&_0x2255bb&&_0x17a6c1[_0x212248(0x36a)](_0x1b1f7e=>{const _0x38227d=_0x212248;_0x2be92f[_0x38227d(0x1a0)][_0x38227d(0x298)](_0x1b1f7e,(_0xa840db,_0xf13846)=>{const _0x3ea899=_0x38227d,_0x4d8f66=_0xa840db+'-'+_0xf13846;if(_0x1b7cb5[_0x4d8f66]){const _0x191d40=_0x1b7cb5[_0x4d8f66];_0x592738['push']({'id':_0x1d746e['id'],'params':{'unitId':_0x397afc,'subUnitId':_0x1de35e,'pivotTableId':_0x191d40}});const _0xcfb322=this[_0x3ea899(0x28a)][_0x3ea899(0x28c)](_0x397afc,_0x191d40),_0x17b89b=this['_sheetsPivotTableConfigModel'][_0x3ea899(0x290)](_0x397afc,_0x1de35e,_0x191d40);_0x5a83e6[_0x3ea899(0x1cc)]({'id':_0x5bd603['id'],'params':{'unitId':_0x397afc,'subUnitId':_0x1de35e,'pivotTableId':_0x191d40,'pivotTableConfig':_0x17b89b,'collectionConfig':_0xcfb322}});}});}),{'redos':_0x592738,'undos':_0x5a83e6};}return{'redos':[],'undos':[]};}}));}};_0x546739=_0x33d443([_0x50aba6(0x0,_0x2be92f['IUniverInstanceService']),_0x50aba6(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0xac1e83[_0x5b4c6d(0x22c)])),_0x50aba6(0x2,_0x2be92f[_0x5b4c6d(0x253)](_0xac1e83['SheetsSelectionsService'])),_0x50aba6(0x3,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x216)]))],_0x546739);var _0x1c75cc=Object[_0x5b4c6d(0x2f4)],_0x4d0017=(_0x5a93d3,_0x96de15,_0x59ec7a,_0xbe0d36)=>{const _0x32ed47=_0x5b4c6d;for(var _0x33f6ec=_0xbe0d36>0x1?void 0x0:_0xbe0d36?_0x1c75cc(_0x96de15,_0x59ec7a):_0x96de15,_0x1e0b71=_0x5a93d3[_0x32ed47(0xad)]-0x1,_0x3ac940;_0x1e0b71>=0x0;_0x1e0b71--)(_0x3ac940=_0x5a93d3[_0x1e0b71])&&(_0x33f6ec=_0x3ac940(_0x33f6ec)||_0x33f6ec);return _0x33f6ec;},_0x194e90=(_0x10671e,_0x2adcc0)=>(_0x38b48e,_0x170ff5)=>_0x2adcc0(_0x38b48e,_0x170ff5,_0x10671e);let _0xcab1f=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x4ce9d1,_0x21fcf3,_0x24d981,_0x2a44fc,_0x3152a5,_0x55d5f7){const _0x4dc3f6=_0x5b4c6d;super(),this[_0x4dc3f6(0x26d)]=_0x4ce9d1,this[_0x4dc3f6(0x30e)]=_0x21fcf3,this[_0x4dc3f6(0x214)]=_0x24d981,this['_univerInstanceService']=_0x2a44fc,this[_0x4dc3f6(0x28a)]=_0x3152a5,this['_sheetsPivotTableService']=_0x55d5f7,this[_0x4dc3f6(0x199)]();}[_0x5b4c6d(0x15b)](_0x590a62,_0x2aac2a,_0x3e9961){const _0xa35b6d=_0x5b4c6d,{pageView:_0x48b986,cornerView:_0x17d995,rowView:_0x14ab12,colView:_0x32224f,dataView:_0x4477a9}=_0x2aac2a,_0x1a8dca=_0x590a62;let _0x5d6cac;if(_0x3e9961)_0x5d6cac=[..._0xec16bb(_0x1a8dca)];else{const _0x48b478=_0xca17aa(_0x1a8dca,_0x48b986,!0x0),_0x9a8b23=_0x48b986['lastRow']>=0x0?_0x48b986[_0xa35b6d(0x308)]+0x1:0x0,_0x2316bc=_0x17d995['rowCount'],_0xa32860=_0x17d995[_0xa35b6d(0x7a)],_0x25b34f=_0x48b478[_0xa35b6d(0xad)]>0x0?_0x549def:0x0,_0x229408=_0xca17aa({'row':_0x1a8dca['row']+_0x9a8b23+_0x25b34f,'col':_0x1a8dca[_0xa35b6d(0x320)]},_0x17d995,!0x1,!0x1),_0xc6cd2f=_0xca17aa({'row':_0x1a8dca['row']+_0x9a8b23+_0x25b34f+_0x2316bc,'col':_0x1a8dca[_0xa35b6d(0x320)]},_0x14ab12,!0x1,!0x0),_0x9cd5f3=_0xca17aa({'row':_0x1a8dca['row']+_0x9a8b23+_0x25b34f,'col':_0x1a8dca[_0xa35b6d(0x320)]+_0xa32860},_0x32224f,!0x1,!0x0),_0x119dcd=_0xca17aa({'row':_0x1a8dca[_0xa35b6d(0x178)]+_0x9a8b23+_0x25b34f+_0x2316bc,'col':_0x1a8dca[_0xa35b6d(0x320)]+_0xa32860},_0x4477a9,!0x1,!0x0);_0x5d6cac=[..._0x48b478,..._0x229408,..._0xc6cd2f,..._0x9cd5f3,..._0x119dcd];}return _0x5d6cac;}[_0x5b4c6d(0x199)](){const _0x32a6e8=_0x5b4c6d;this[_0x32a6e8(0x20b)](this[_0x32a6e8(0x1be)][_0x32a6e8(0x297)]['intercept'](this[_0x32a6e8(0x1be)]['interceptor'][_0x32a6e8(0xa7)]()[_0x32a6e8(0x36b)],{'handler':(_0x2942b7,_0x25e57b)=>{const _0x30fb4a=_0x32a6e8,{cellInfo:_0x309fcb,view:_0x2377fe,isEmpty:_0x3a872b}=_0x25e57b,_0x1ad7dc=_0x309fcb,{unitId:_0x2005d8,subUnitId:_0x53c1d1}=_0x1ad7dc,_0x2cbd46=this[_0x30fb4a(0x15b)](_0x309fcb,_0x2377fe,_0x3a872b),_0x781980=this[_0x30fb4a(0x30e)][_0x30fb4a(0x335)]({'unitId':_0x2005d8,'subUnitId':_0x53c1d1,'ranges':_0x2cbd46}),_0x5562b7=_0x5bc07b(this['_injector'],_0x2005d8,_0x53c1d1,_0x2cbd46);_0x5562b7['shouldClear']&&(_0x781980['redos'][_0x30fb4a(0x1cc)](_0x5562b7['setRangeValueRedoMutation']),_0x781980[_0x30fb4a(0x187)][_0x30fb4a(0x1cc)](_0x5562b7['setRangeValueUndoMutation']));const _0x10f5bb=this[_0x30fb4a(0x1e4)](_0x2377fe,_0x309fcb);return _0x781980[_0x30fb4a(0x333)]['push'](..._0x10f5bb[_0x30fb4a(0x333)]),_0x781980[_0x30fb4a(0x187)]['push'](..._0x10f5bb['undos']),{'redos':_0x781980['redos'],'undos':_0x781980[_0x30fb4a(0x187)]};}}));}[_0x5b4c6d(0x1e4)](_0x467456,_0x419f3f){const _0x3793c5=_0x5b4c6d,{col:_0x8c3c32,unitId:_0x2479f4,subUnitId:_0x53db44}=_0x419f3f,_0xbbe09b=[],_0x43ed15=[],_0x564f50=_0xac1e83[_0x3793c5(0x1bc)](this[_0x3793c5(0x35d)],{'unitId':_0x2479f4,'subUnitId':_0x53db44});if(!_0x419f3f||!_0x467456||!_0x564f50)return{'undos':_0x43ed15,'redos':_0xbbe09b};const _0x2232ac=this[_0x3793c5(0x28a)][_0x3793c5(0xf7)](),{colView:_0x245f1f,dataView:_0x418358,cornerView:_0x1164f9,rowView:_0x34150e,formatMap:_0x51ea5f}=_0x467456,_0x26342d=_0x41ec75(_0x245f1f,_0x2232ac,!0x0,_0x51ea5f),_0x2d549a=_0x41ec75(_0x34150e,_0x2232ac,!0x1,_0x51ea5f),_0x5ea4da=_0x28c1e4(_0x418358),_0x113e65=_0x287305(_0x1164f9),{worksheet:_0x344fa0}=_0x564f50;if(typeof window<'u'&&window['document']){const _0x12aff3=_0x55d66f[_0x3793c5(0x367)]({..._0x5f2a0b[_0x3793c5(0x29e)]}),_0x3a6da9=_0x55d66f['FontCache'][_0x3793c5(0x2dd)](_0x26342d,_0x12aff3)[_0x3793c5(0x23d)]+0x10,_0x45c780=_0x55d66f[_0x3793c5(0x10f)][_0x3793c5(0x2dd)](_0x5ea4da,_0x12aff3)[_0x3793c5(0x23d)],_0x42d906=Math[_0x3793c5(0x2e6)](Math[_0x3793c5(0x114)](_0x3a6da9,_0x45c780))+0x10,_0x38b840=Math[_0x3793c5(0x2e6)](_0x55d66f[_0x3793c5(0x10f)]['getTextSize'](_0x2d549a,_0x12aff3)[_0x3793c5(0x23d)]),_0x1f1fd4=Math['floor'](_0x55d66f['FontCache']['getTextSize'](_0x113e65,_0x12aff3)[_0x3793c5(0x23d)]),_0x101cb8=Math[_0x3793c5(0x114)](_0x38b840,_0x1f1fd4,0x28)+0xc,_0x1e80d9=_0x245f1f[_0x3793c5(0x7a)]+_0x1164f9[_0x3793c5(0x7a)],_0x38bfa7={},_0xdd10a7={};for(let _0x43f79b=_0x8c3c32;_0x43f79b<_0x8c3c32+_0x1e80d9;_0x43f79b++){const _0x3904b3=_0x344fa0[_0x3793c5(0x1f8)](_0x43f79b);_0x38bfa7[_0x43f79b]=_0x3904b3,_0x43f79b-_0x8c3c32<_0x1164f9[_0x3793c5(0x7a)]?_0xdd10a7[_0x43f79b-_0x8c3c32]=_0x101cb8:_0xdd10a7[_0x43f79b-_0x8c3c32]=_0x42d906;}_0xbbe09b[_0x3793c5(0x1cc)]({'id':_0xac1e83['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x53db44,'unitId':_0x2479f4,'ranges':[{'startColumn':_0x8c3c32,'endColumn':_0x8c3c32+_0x1e80d9-0x1,'startRow':0x0,'endRow':_0x344fa0[_0x3793c5(0x312)]()-0x1}],'colWidth':_0xdd10a7}}),_0x43ed15[_0x3793c5(0x1cc)]({'id':_0xac1e83[_0x3793c5(0x273)]['id'],'params':{'subUnitId':_0x53db44,'unitId':_0x2479f4,'ranges':[{'startColumn':_0x8c3c32,'endColumn':_0x8c3c32+_0x1e80d9-0x1,'startRow':0x0,'endRow':_0x344fa0[_0x3793c5(0x312)]()-0x1}],'colWidth':_0x38bfa7}});}return{'undos':_0x43ed15,'redos':_0xbbe09b};}};_0xcab1f=_0x4d0017([_0x194e90(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x126)])),_0x194e90(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0xac1e83[_0x5b4c6d(0x22c)])),_0x194e90(0x2,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xf0)])),_0x194e90(0x3,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xd2)])),_0x194e90(0x4,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x216)])),_0x194e90(0x5,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27['SheetsPivotTableService']))],_0xcab1f);var _0x13c81a=Object[_0x5b4c6d(0x2f4)],_0x117688=(_0x40bbbe,_0x5cc52e,_0x3df599,_0x491e49)=>{const _0xeb0d52=_0x5b4c6d;for(var _0x31136b=_0x491e49>0x1?void 0x0:_0x491e49?_0x13c81a(_0x5cc52e,_0x3df599):_0x5cc52e,_0xf97a54=_0x40bbbe[_0xeb0d52(0xad)]-0x1,_0x583219;_0xf97a54>=0x0;_0xf97a54--)(_0x583219=_0x40bbbe[_0xf97a54])&&(_0x31136b=_0x583219(_0x31136b)||_0x31136b);return _0x31136b;},_0x5f4029=(_0x4c8d33,_0x278ce1)=>(_0x4c4809,_0x24d35f)=>_0x278ce1(_0x4c4809,_0x24d35f,_0x4c8d33);let _0xc831c0=class extends _0x2be92f['Disposable']{constructor(_0x3a574a,_0x3337c1,_0x289c17,_0x292e8e,_0x1c40cc,_0x4a1000,_0x3248dd){const _0x18f1e2=_0x5b4c6d;super(),_0x102d83(this,'disposableCollection',new _0x2be92f[(_0x18f1e2(0x311))]()),(this[_0x18f1e2(0x214)]=_0x3a574a,this['_refRangeService']=_0x3337c1,this[_0x18f1e2(0x2c6)]=_0x289c17,this[_0x18f1e2(0x35d)]=_0x292e8e,this[_0x18f1e2(0x28a)]=_0x1c40cc,this['_sheetsPivotTableAdaptorModel']=_0x4a1000,this[_0x18f1e2(0x30e)]=_0x3248dd,this['_onRefRangeChange']());}[_0x5b4c6d(0x325)](){const _0x389b1c=_0x5b4c6d,_0x9da226=(_0x47292c,_0x53741e)=>{const _0x431b8a=_0x6997,_0x4f2a4e=this[_0x431b8a(0x35d)][_0x431b8a(0xc4)](_0x2be92f[_0x431b8a(0x326)]['UNIVER_SHEET']);if(!_0x4f2a4e||!(_0x4f2a4e==null?void 0x0:_0x4f2a4e[_0x431b8a(0xc6)](_0x53741e)))return;this['disposableCollection'][_0x431b8a(0x2b2)]();const _0x44752f=_0x2d4e9d=>this[_0x431b8a(0x2cc)](_0x2d4e9d,_0x47292c,_0x53741e),_0x5742cf=this[_0x431b8a(0x28a)][_0x431b8a(0x37b)](_0x47292c,_0x53741e);if(!(_0x5742cf!=null&&_0x5742cf['size']))return;Array[_0x431b8a(0x1dd)](_0x5742cf[_0x431b8a(0x15f)]())[_0x431b8a(0x352)](_0x3860e8=>{const _0x3a313a=_0x431b8a,{row:_0xa8737,col:_0x395361}=_0x3860e8[_0x3a313a(0x282)];return _0x2be92f['cellToRange'](_0xa8737,_0x395361);})['forEach'](_0x54942c=>{const _0xa72330=_0x431b8a;this[_0xa72330(0x31a)]['add'](this[_0xa72330(0x268)]['registerRefRange'](_0x54942c,_0x44752f,_0x47292c,_0x53741e));});},_0x8eda83=()=>{const _0x353264=_0x6997,_0x4377d2=this[_0x353264(0x35d)][_0x353264(0xc4)](_0x2be92f[_0x353264(0x326)][_0x353264(0x150)]);if(_0x4377d2){const _0x2e9beb=_0x4377d2[_0x353264(0x34f)]();if(!_0x2e9beb)return;_0x9da226(_0x4377d2[_0x353264(0x1a8)](),_0x2e9beb['getSheetId']());}};this[_0x389b1c(0x20b)](this['_commandService'][_0x389b1c(0xcc)](_0x322974=>{const _0xfb1ccc=_0x389b1c;if(_0x322974['id']===_0xac1e83[_0xfb1ccc(0x2c1)]['id']){const _0x2de0b6=_0x322974[_0xfb1ccc(0x2ce)],_0x4fa8ee=_0x2de0b6[_0xfb1ccc(0x19f)],_0x97c29b=_0x2de0b6[_0xfb1ccc(0x2d0)];if(!_0x4fa8ee||!_0x97c29b)return;_0x9da226(_0x97c29b,_0x4fa8ee);}})),this[_0x389b1c(0x20b)](this[_0x389b1c(0x28a)][_0x389b1c(0x1dc)][_0x389b1c(0x17c)](_0x5d38cd=>{_0x5d38cd&&_0x8eda83();})),this[_0x389b1c(0x20b)](this[_0x389b1c(0x28a)]['pivotConfigChange$'][_0x389b1c(0x17c)](_0x3e0eb4=>{const _0x16b6f8=_0x389b1c,_0x130744=_0xac1e83[_0x16b6f8(0x1bc)](this[_0x16b6f8(0x35d)]);if(!_0x130744)return;const {unitId:_0x57faec,subUnitId:_0x10f383}=_0x130744,{unitId:_0x353f87,subUnitId:_0x56cbf8}=_0x3e0eb4;_0x57faec!==_0x353f87||_0x10f383!==_0x56cbf8||_0x9da226(_0x57faec,_0x10f383);})),_0x8eda83();}[_0x5b4c6d(0x2cc)](_0x367607,_0x55c6a8,_0x2eddd1){const _0x4a4830=_0x5b4c6d;switch(_0x367607['id']){case _0xac1e83[_0x4a4830(0x34a)]['id']:return this[_0x4a4830(0xfc)](_0x367607[_0x4a4830(0x2ce)],_0x55c6a8,_0x2eddd1);}return{'redos':[],'undos':[]};}[_0x5b4c6d(0xfc)](_0x21c61,_0x4107cc,_0x3e7f16){const _0x3fc9b0=_0x5b4c6d,{fromRange:_0x6f75e9,toRange:_0x5ecaae}=_0x21c61,_0x538085=[],_0x401353=[],_0x3d0abe=_0xac1e83[_0x3fc9b0(0x1bc)](this[_0x3fc9b0(0x35d)]);if(!_0x3d0abe)return{'undos':_0x401353,'redos':_0x538085};if(_0x4107cc!==_0x3d0abe[_0x3fc9b0(0x2d0)]||_0x3e7f16!==_0x3d0abe[_0x3fc9b0(0x19f)])return{'undos':_0x401353,'redos':_0x538085};const _0x142691=this[_0x3fc9b0(0x28a)][_0x3fc9b0(0x37b)](_0x4107cc,_0x3e7f16);if(_0x142691!=null&&_0x142691[_0x3fc9b0(0x18c)])for(const [_0x2e0f6f,_0x58c8a9]of _0x142691){const {unitId:_0x25f860,subUnitId:_0x2e2799,row:_0x54c546,col:_0x50ac4c}=_0x58c8a9[_0x3fc9b0(0x282)];if(_0x25f860===_0x3d0abe['unitId']&&_0x2e2799===_0x3d0abe['subUnitId']){const _0x57c7d9=_0x2be92f[_0x3fc9b0(0x161)](_0x54c546,_0x50ac4c);if(_0x2be92f[_0x3fc9b0(0x337)]['intersects'](_0x57c7d9,_0x6f75e9)){const _0x376fda=_0x54c546-_0x6f75e9[_0x3fc9b0(0xee)],_0x428c0c=_0x50ac4c-_0x6f75e9[_0x3fc9b0(0x281)],_0x2525c0={'row':_0x5ecaae[_0x3fc9b0(0xee)]+_0x376fda,'col':_0x5ecaae['startColumn']+_0x428c0c};_0x538085['push']({'id':_0x2730bb['id'],'params':{'unitId':_0x25f860,'subUnitId':_0x2e2799,'pivotTableId':_0x2e0f6f,'targetCellPosition':_0x2525c0}}),_0x401353[_0x3fc9b0(0x1cc)]({'id':_0x2730bb['id'],'params':{'unitId':_0x25f860,'subUnitId':_0x2e2799,'pivotTableId':_0x2e0f6f,'targetCellPosition':{'row':_0x54c546,'col':_0x50ac4c}}});const _0x2c4d78=_0x2525c0[_0x3fc9b0(0x178)]-_0x54c546,_0x45248f=_0x2525c0[_0x3fc9b0(0x320)]-_0x50ac4c,_0x5d4bac=[],_0x1b34b8=this[_0x3fc9b0(0x2aa)]['getPivotItemRenderInfoCache'](_0x25f860,_0x2e2799,_0x2e0f6f),_0x914594=_0x1b34b8==null?void 0x0:_0x1b34b8[_0x3fc9b0(0x146)];if(_0x914594){Object['keys'](_0x914594)[_0x3fc9b0(0x36a)](_0x250983=>{const _0x5a5c74=_0x3fc9b0;_0x914594[_0x250983][_0x5a5c74(0x36a)](_0x30f5e5=>{const _0x259330=_0x5a5c74,_0x73e888={..._0x30f5e5};_0x73e888['startRow']=_0x30f5e5[_0x259330(0xee)]+_0x2c4d78,_0x73e888[_0x259330(0x87)]=_0x30f5e5[_0x259330(0x87)]+_0x2c4d78,_0x73e888[_0x259330(0x281)]=_0x30f5e5['startColumn']+_0x45248f,_0x73e888[_0x259330(0x249)]=_0x30f5e5[_0x259330(0x249)]+_0x45248f,_0x5d4bac[_0x259330(0x1cc)](_0x73e888);});});const _0x420589=this['_sheetInterceptorService'][_0x3fc9b0(0x335)]({'unitId':_0x25f860,'subUnitId':_0x2e2799,'ranges':_0x5d4bac});_0x538085[_0x3fc9b0(0x1cc)](..._0x420589[_0x3fc9b0(0x333)]),_0x401353[_0x3fc9b0(0x1cc)](..._0x420589[_0x3fc9b0(0x187)]);const _0x152824=_0x5bc07b(this[_0x3fc9b0(0x214)],_0x25f860,_0x2e2799,_0x5d4bac);_0x152824[_0x3fc9b0(0x2b4)]&&(_0x538085[_0x3fc9b0(0x1cc)](_0x152824[_0x3fc9b0(0x78)]),_0x401353[_0x3fc9b0(0x1cc)](_0x152824[_0x3fc9b0(0x33f)]));}}}}return{'redos':_0x538085,'undos':_0x401353};}};_0xc831c0=_0x117688([_0x5f4029(0x0,_0x2be92f['Inject'](_0x2be92f[_0x5b4c6d(0xf0)])),_0x5f4029(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0xac1e83[_0x5b4c6d(0x1a1)])),_0x5f4029(0x2,_0x2be92f[_0x5b4c6d(0x109)]),_0x5f4029(0x3,_0x2be92f['IUniverInstanceService']),_0x5f4029(0x4,_0x2be92f['Inject'](_0x3acc27[_0x5b4c6d(0x216)])),_0x5f4029(0x5,_0x2be92f['Inject'](_0x3acc27['SheetsPivotTableAdaptorModel'])),_0x5f4029(0x6,_0x2be92f['Inject'](_0xac1e83[_0x5b4c6d(0x22c)]))],_0xc831c0);var _0x1246cd=Object[_0x5b4c6d(0x2f4)],_0x3e8db6=(_0x1c7e81,_0x1f4be5,_0x22b0f9,_0x542a25)=>{for(var _0x3a75de=_0x542a25>0x1?void 0x0:_0x542a25?_0x1246cd(_0x1f4be5,_0x22b0f9):_0x1f4be5,_0x2e2026=_0x1c7e81['length']-0x1,_0x417816;_0x2e2026>=0x0;_0x2e2026--)(_0x417816=_0x1c7e81[_0x2e2026])&&(_0x3a75de=_0x417816(_0x3a75de)||_0x3a75de);return _0x3a75de;},_0x1a9b57=(_0x1e9bf2,_0x5fabbc)=>(_0x3ed4b6,_0x425aad)=>_0x5fabbc(_0x3ed4b6,_0x425aad,_0x1e9bf2);let _0x3c22bb=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x566d88,_0x528d3e){const _0x5f27c7=_0x5b4c6d;super(),this[_0x5f27c7(0x30e)]=_0x566d88,this[_0x5f27c7(0x28a)]=_0x528d3e,this[_0x5f27c7(0x131)]();}[_0x5b4c6d(0x131)](){const _0x1ec1e6=_0x5b4c6d;this[_0x1ec1e6(0x20b)](this[_0x1ec1e6(0x30e)][_0x1ec1e6(0x174)]({'getMutations':_0x5ae49b=>{const _0x347496=_0x1ec1e6;if(_0x5ae49b['id']===_0xac1e83[_0x347496(0x155)]['id']){const _0x161b2e=[],_0x2915b7=[],_0x4b3553=_0x5ae49b[_0x347496(0x2ce)],{unitId:_0x1a5859,subUnitId:_0x4ccbc3}=_0x4b3553;if(!_0x1a5859||!_0x4ccbc3)return{'undos':_0x2915b7,'redos':_0x161b2e};const _0xa8242d=this['_sheetsPivotTableConfigModel'][_0x347496(0x37b)](_0x1a5859,_0x4ccbc3);if(_0xa8242d!=null&&_0xa8242d[_0x347496(0x18c)])for(const [_0x1cd303,_0x472b02]of _0xa8242d){_0x161b2e[_0x347496(0x1cc)]({'id':_0x1d746e['id'],'params':{'unitId':_0x1a5859,'subUnitId':_0x4ccbc3,'pivotTableId':_0x1cd303}});const _0x24b6bb={...this[_0x347496(0x28a)][_0x347496(0x28c)](_0x1a5859,_0x1cd303)};_0x2915b7[_0x347496(0x1cc)]({'id':_0x5bd603['id'],'params':{'unitId':_0x1a5859,'subUnitId':_0x4ccbc3,'pivotTableId':_0x1cd303,'pivotTableConfig':_0x472b02,'collectionConfig':_0x24b6bb}});}return{'redos':_0x161b2e,'undos':_0x2915b7};}return{'redos':[],'undos':[]};}}));}};_0x3c22bb=_0x3e8db6([_0x1a9b57(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0xac1e83[_0x5b4c6d(0x22c)])),_0x1a9b57(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x216)]))],_0x3c22bb);var _0x14d7c7=Object[_0x5b4c6d(0x2f4)],_0x473368=(_0x506b99,_0x48ad43,_0x42d031,_0x1a21f8)=>{const _0x30009f=_0x5b4c6d;for(var _0x16ba08=_0x1a21f8>0x1?void 0x0:_0x1a21f8?_0x14d7c7(_0x48ad43,_0x42d031):_0x48ad43,_0x9fd151=_0x506b99[_0x30009f(0xad)]-0x1,_0x2c5781;_0x9fd151>=0x0;_0x9fd151--)(_0x2c5781=_0x506b99[_0x9fd151])&&(_0x16ba08=_0x2c5781(_0x16ba08)||_0x16ba08);return _0x16ba08;},_0x221af5=(_0x50b71e,_0x433e43)=>(_0x33fca1,_0x5aa3e0)=>_0x433e43(_0x33fca1,_0x5aa3e0,_0x50b71e);let _0x418b27=class extends _0x2be92f[_0x5b4c6d(0xb3)]{constructor(_0x28ab55,_0x533773,_0xeb00af,_0x369f7c,_0x1495b6,_0x33980f){const _0x57961=_0x5b4c6d;super(),this['_commandService']=_0x28ab55,this[_0x57961(0x2cb)]=_0x533773,this[_0x57961(0x2aa)]=_0xeb00af,this[_0x57961(0x28a)]=_0x369f7c,this['_univerInstanceService']=_0x1495b6,this['_activeDirtyManagerService']=_0x33980f,this[_0x57961(0x1fa)](),this[_0x57961(0x244)]();}['_initDataSendListener'](){const _0x44604a=_0x5b4c6d;this[_0x44604a(0x20b)](this[_0x44604a(0x2c6)][_0x44604a(0xcc)](_0x307bce=>{const _0x57926d=_0x44604a;if(_0x307bce['id']!==_0x5b3f8e['id'])return;const _0x416249=_0x307bce[_0x57926d(0x2ce)];this['_sheetsPivotRpcService'][_0x57926d(0x1eb)](_0x416249);})),this[_0x44604a(0x20b)](this['_commandService'][_0x44604a(0xcc)](_0xe43588=>{const _0x1af3a4=_0x44604a;if(_0xe43588['id']===_0x4c61bc['id']){const _0x4d8074=_0xe43588[_0x1af3a4(0x2ce)];if(_0x4d8074){const {unitId:_0x44b41,subUnitId:_0x3ca81e,oldSubUnitId:_0x289c1c,pivotTableId:_0x2c5c07,pivotTableConfig:_0x1b1e16,collectionConfig:_0x3d4ce6}=_0x4d8074;this[_0x1af3a4(0x28a)]['updateConfigCache'](_0x44b41,_0x289c1c,_0x4d8074[_0x1af3a4(0x80)],null),this['_sheetsPivotTableConfigModel'][_0x1af3a4(0x2a8)](_0x44b41,_0x3ca81e,_0x2c5c07,_0x1b1e16),this[_0x1af3a4(0x28a)]['updateCollectionConfig'](_0x44b41,_0x3d4ce6);}}})),this[_0x44604a(0x20b)](this[_0x44604a(0x2c6)][_0x44604a(0xcc)](_0x5804ea=>{const _0x325919=_0x44604a;if(_0x5804ea['id']!==_0x24b222['id'])return;const _0x1aa5a3=_0xac1e83[_0x325919(0x1bc)](this['_univerInstanceService']);if(!_0x1aa5a3)return;const {unitId:_0x4fb045,subUnitId:_0x1e1a93}=_0x1aa5a3,_0x5c49f9=_0x5804ea['params'];if(_0x5c49f9[_0x325919(0x233)]&&Object[_0x325919(0x102)](_0x5c49f9['collectionConfig'])[_0x325919(0x36a)](_0x22a727=>{const _0x17d4af=_0x325919;var _0x3b64a2;(_0x3b64a2=_0x5c49f9[_0x17d4af(0x233)])!=null&&_0x3b64a2[_0x22a727]&&this[_0x17d4af(0x28a)][_0x17d4af(0x153)](_0x22a727,_0x5c49f9[_0x17d4af(0x233)][_0x22a727]);}),_0x5c49f9[_0x325919(0x141)]){const _0x378ec9=_0x5c49f9['single'],{unitId:_0x1ac6bf,subUnitId:_0x284b6,view:_0x5bdfa9,pivotTableId:_0x3718c5,type:_0x1ce56b,pivotConfig:_0x1b466c}=_0x378ec9;if(_0x1ce56b===_0x1bbb8c[_0x325919(0x231)])this[_0x325919(0x2aa)]['clearRenderCache']({'unitId':_0x1ac6bf,'subUnitId':_0x284b6,'pivotTableId':_0x3718c5,'type':_0x1ce56b}),this[_0x325919(0x28a)]['updateConfigCache'](_0x1ac6bf,_0x284b6,_0x3718c5,null);else{const _0x579d5b=new _0x949178['PivotView']();_0x579d5b[_0x325919(0x106)](_0x5bdfa9),this[_0x325919(0x28a)][_0x325919(0x2a8)](_0x1ac6bf,_0x284b6,_0x3718c5,_0x1b466c),this['_sheetsPivotTableAdaptorModel'][_0x325919(0x1e7)]({'unitId':_0x1ac6bf,'subUnitId':_0x284b6,'pivotTableId':_0x3718c5,'type':_0x1ce56b,'view':_0x579d5b}),this[_0x325919(0x2aa)][_0x325919(0x14e)]({'unitId':_0x1ac6bf,'subUnitId':_0x284b6,'view':_0x579d5b,'pivotTableId':_0x3718c5,'type':_0x1ce56b});}}else _0x5c49f9[_0x325919(0x2b7)]&&(_0x5c49f9['batch']['forEach'](_0xe7cd60=>{const _0x2c0d60=_0x325919,{unitId:_0x4aa4cc,subUnitId:_0x10d8f8,view:_0x26cc49,pivotTableId:_0x108a6b,type:_0x571cf9,pivotConfig:_0x1e87ff}=_0xe7cd60,_0x5c8785=new _0x949178['PivotView']();_0x5c8785[_0x2c0d60(0x106)](_0x26cc49),this[_0x2c0d60(0x28a)]['updateConfigCache'](_0x4aa4cc,_0x10d8f8,_0x108a6b,_0x1e87ff),this[_0x2c0d60(0x2aa)][_0x2c0d60(0x14e)]({'unitId':_0x4aa4cc,'subUnitId':_0x10d8f8,'view':_0x5c8785,'pivotTableId':_0x108a6b,'type':_0x571cf9});}),this[_0x325919(0x28a)][_0x325919(0x1e3)]());this['_sheetsPivotTableAdaptorModel'][_0x325919(0x258)](_0x4fb045,_0x1e1a93);}));}[_0x5b4c6d(0x244)](){const _0x56a556=_0x5b4c6d;this[_0x56a556(0x24c)][_0x56a556(0x94)](_0x500ef9['id'],{'commandId':_0x500ef9['id'],'getDirtyData'(_0x51a7d1){const _0x1c7c22=_0x56a556;return{'dirtyUnitFeatureMap':_0x51a7d1[_0x1c7c22(0x2ce)]};}});}};_0x418b27=_0x473368([_0x221af5(0x0,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x109)])),_0x221af5(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x2c3)])),_0x221af5(0x2,_0x2be92f['Inject'](_0x3acc27[_0x5b4c6d(0x111)])),_0x221af5(0x3,_0x2be92f[_0x5b4c6d(0x253)](_0x3acc27[_0x5b4c6d(0x216)])),_0x221af5(0x4,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xd2)])),_0x221af5(0x5,_0x5172e4[_0x5b4c6d(0xbf)])],_0x418b27);var _0x212c60=Object[_0x5b4c6d(0x2f2)],_0x18b9b8=Object['getOwnPropertyDescriptor'],_0x14bda9=(_0x27636d,_0x474a9c,_0x567b7e)=>_0x474a9c in _0x27636d?_0x212c60(_0x27636d,_0x474a9c,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x567b7e}):_0x27636d[_0x474a9c]=_0x567b7e,_0x2ef33c=(_0x4c4794,_0x4275ae,_0x51e733,_0x51fa20)=>{const _0x2f8082=_0x5b4c6d;for(var _0x1514c9=_0x51fa20>0x1?void 0x0:_0x51fa20?_0x18b9b8(_0x4275ae,_0x51e733):_0x4275ae,_0x5169f0=_0x4c4794[_0x2f8082(0xad)]-0x1,_0x187479;_0x5169f0>=0x0;_0x5169f0--)(_0x187479=_0x4c4794[_0x5169f0])&&(_0x1514c9=_0x187479(_0x1514c9)||_0x1514c9);return _0x1514c9;},_0x2dae77=(_0x2e9eef,_0x19b6cf)=>(_0x92352e,_0x21004a)=>_0x19b6cf(_0x92352e,_0x21004a,_0x2e9eef),_0xd4c3bb=(_0x5c71b3,_0x5e4e86,_0x52fe60)=>_0x14bda9(_0x5c71b3,typeof _0x5e4e86!=_0x5b4c6d(0xe7)?_0x5e4e86+'':_0x5e4e86,_0x52fe60);_0x3acc27['UniverSheetsPivotTablePlugin']=class extends _0x2be92f['Plugin']{constructor(_0xcb989e=_0x32b1dd,_0x583252,_0x34fd0c,_0x178afa,_0x48238a){const _0x37335a=_0x5b4c6d;super(),this[_0x37335a(0x30b)]=_0xcb989e,this[_0x37335a(0x214)]=_0x583252,this[_0x37335a(0x2c6)]=_0x34fd0c,this['_configService']=_0x178afa,this['_dataSyncPrimaryController']=_0x48238a;const {..._0x59c975}=_0x2be92f[_0x37335a(0x305)]({},_0x32b1dd,this[_0x37335a(0x30b)]);this[_0x37335a(0x1d3)][_0x37335a(0x1a5)](_0x1db600,_0x59c975),this['_initRegisterCommand'](),this[_0x37335a(0x32a)]();}[_0x5b4c6d(0x32a)](){const _0x589353=_0x5b4c6d;var _0x12d8cb;const _0x34e5fe=(_0x12d8cb=this[_0x589353(0x30b)])==null?void 0x0:_0x12d8cb[_0x589353(0x1d2)];this[_0x589353(0x1d3)][_0x589353(0x1a5)](_0x47449f,_0x34e5fe===!0x0);}[_0x5b4c6d(0x96)](){const _0x33eaa9=_0x5b4c6d;var _0x1d06f8;let _0x120b12=[];const _0x55e20e=(_0x1d06f8=this['_config'])==null?void 0x0:_0x1d06f8[_0x33eaa9(0x1d2)];_0x55e20e===!0x0?_0x120b12=[[_0x3acc27[_0x33eaa9(0xe0)]],[_0x3acc27[_0x33eaa9(0x2c3)]],[_0x418b27],[_0x3acc27[_0x33eaa9(0x111)]],[_0x3acc27['SheetsPivotTableConfigModel']],[_0x3c22bb],[_0x546739],[_0xc831c0],[_0xcab1f]]:_0x55e20e===!0x1?_0x120b12=[[_0x3acc27[_0x33eaa9(0x144)]],[_0x218320]]:_0x55e20e===void 0x0&&(_0x120b12=[[_0x3acc27[_0x33eaa9(0x144)]],[_0x218320],[_0x3acc27[_0x33eaa9(0xe0)]],[_0x3acc27[_0x33eaa9(0x2c3)]],[_0x418b27],[_0x3acc27[_0x33eaa9(0x111)]],[_0x3acc27['SheetsPivotTableConfigModel']],[_0x3c22bb],[_0x546739],[_0xc831c0],[_0xcab1f]]),_0x120b12['forEach'](_0x4e53cf=>this[_0x33eaa9(0x214)][_0x33eaa9(0xe3)](_0x4e53cf)),[_0x218320,_0x418b27,_0x3acc27[_0x33eaa9(0xe0)],_0x546739,_0x3c22bb,_0xc831c0,_0xcab1f]['forEach'](_0x555459=>{const _0x2a1dcd=_0x33eaa9;this[_0x2a1dcd(0x214)][_0x2a1dcd(0x208)](_0x555459)&&this['_injector'][_0x2a1dcd(0x177)](_0x555459);});}[_0x5b4c6d(0x1d8)](){const _0x234de5=_0x5b4c6d;[_0x16e723,_0x1b3268,_0x1febc0,_0x31a0e8,_0x3ffcde,_0x14775b,_0x4455f2,_0x3a1b26,_0x21788d,_0x58d703,_0x2497d3,_0x256053,_0x4215d3,_0x5ee8dc,_0x5bd603,_0x51e908,_0x1d746e,_0x24d4d2,_0x4263,_0x1253d3,_0x807385,_0x4df1a2,_0x51f654,_0x1d6ae3,_0x19ed47,_0x5a542d,_0x2730bb,_0x2ef776,_0x5b3f8e,_0x24b222,_0x152067,_0x24f1f7,_0x34c3c5,_0x7df36,_0x5273d0,_0x2988cb,_0x105cc8,_0x500ef9,_0x4c61bc,_0x3c9190,_0x82677d,_0x2121c9,_0x102e7b][_0x234de5(0x36a)](_0x37b980=>{const _0x358ca1=_0x234de5;var _0x4119c9;(_0x4119c9=this[_0x358ca1(0x211)])==null||_0x4119c9['registerSyncingMutations'](_0x37b980),this['_commandService'][_0x358ca1(0x1cf)](_0x37b980);});}},_0xd4c3bb(_0x3acc27[_0x5b4c6d(0x35a)],_0x5b4c6d(0xf6),_0x54e52d),_0xd4c3bb(_0x3acc27[_0x5b4c6d(0x35a)],_0x5b4c6d(0x2b6),_0x2be92f['UniverInstanceType'][_0x5b4c6d(0x150)]),_0x3acc27[_0x5b4c6d(0x35a)]=_0x2ef33c([_0x2be92f[_0x5b4c6d(0xbb)](_0x327f17[_0x5b4c6d(0x382)]),_0x2dae77(0x1,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0xf0)])),_0x2dae77(0x2,_0x2be92f[_0x5b4c6d(0x253)](_0x2be92f[_0x5b4c6d(0x109)])),_0x2dae77(0x3,_0x2be92f['IConfigService']),_0x2dae77(0x4,_0x2be92f[_0x5b4c6d(0x1bf)](_0x1a1d34['DataSyncPrimaryController']))],_0x3acc27[_0x5b4c6d(0x35a)]),_0x3acc27[_0x5b4c6d(0x85)]=_0x1febc0,_0x3acc27[_0x5b4c6d(0x34d)]=_0x24d4d2,_0x3acc27[_0x5b4c6d(0xe4)]=_0x1b3268,_0x3acc27[_0x5b4c6d(0x14d)]=_0x5bd603,_0x3acc27[_0x5b4c6d(0x81)]=_0x16e723,_0x3acc27[_0x5b4c6d(0xf2)]=_0x549def,_0x3acc27['DEFAULT_PIVOT_NUMBER']=_0x3008ad,_0x3acc27[_0x5b4c6d(0xe5)]=_0x31a0e8,_0x3acc27['MovePivotTableCommand']=_0x4215d3,_0x3acc27['PivotDisplayDataType']=_0x357f41,_0x3acc27['PivotDrillDownCommand']=_0x5ee8dc,_0x3acc27['PivotTableOperationEnum']=_0x1bbb8c,_0x3acc27[_0x5b4c6d(0x2a2)]=_0x500ef9,_0x3acc27[_0x5b4c6d(0x223)]=_0x5242d0,_0x3acc27[_0x5b4c6d(0x1ff)]=_0x3ffcde,_0x3acc27[_0x5b4c6d(0x361)]=_0x4df1a2,_0x3acc27[_0x5b4c6d(0x339)]=_0x1d746e,_0x3acc27[_0x5b4c6d(0x116)]=_0x51f654,_0x3acc27[_0x5b4c6d(0x127)]=_0x102e7b,_0x3acc27[_0x5b4c6d(0x2a9)]=_0x1db600,_0x3acc27[_0x5b4c6d(0x2ff)]=_0x54e52d,_0x3acc27[_0x5b4c6d(0x36e)]=_0x3a1b26,_0x3acc27[_0x5b4c6d(0xa3)]=_0x1d6ae3,_0x3acc27['SetPivotFieldFormatMutation']=_0x7df36,_0x3acc27[_0x5b4c6d(0x316)]=_0x2121c9,_0x3acc27['SetPivotFilterCommand']=_0x58d703,_0x3acc27[_0x5b4c6d(0x1b2)]=_0x807385,_0x3acc27[_0x5b4c6d(0x17d)]=_0x5a542d,_0x3acc27['SetPivotPositionMutation']=_0x2730bb,_0x3acc27['SetPivotSortCommand']=_0x21788d,_0x3acc27[_0x5b4c6d(0x28d)]=_0x19ed47,_0x3acc27[_0x5b4c6d(0x1b8)]=_0x34c3c5,_0x3acc27[_0x5b4c6d(0x9f)]=_0x3c9190,_0x3acc27['SetPivotValueFilterMutation']=_0x82677d,_0x3acc27['UpdateDateGroupCommand']=_0x4455f2,_0x3acc27['UpdateFieldPositionMutation']=_0x152067,_0x3acc27['UpdatePivotFieldSettingCommand']=_0x2497d3,_0x3acc27['UpdatePivotFieldSourceInfoMutation']=_0x105cc8,_0x3acc27[_0x5b4c6d(0x200)]=_0x256053,_0x3acc27[_0x5b4c6d(0x242)]=_0x2988cb,_0x3acc27[_0x5b4c6d(0x110)]=_0x14775b,_0x3acc27[_0x5b4c6d(0x372)]=_0x24f1f7,_0x3acc27['applyChangeSet']=_0x54af12,_0x3acc27[_0x5b4c6d(0x89)]=_0x259459,_0x3acc27[_0x5b4c6d(0xd4)]=_0x5f2a0b,_0x3acc27['generateSetRangeValueMutations']=_0x5bc07b,_0x3acc27[_0x5b4c6d(0x173)]=_0xca17aa,_0x3acc27[_0x5b4c6d(0x232)]=_0xec16bb,_0x3acc27[_0x5b4c6d(0x234)]=_0x1ddf05,_0x3acc27[_0x5b4c6d(0x190)]=_0x29e760,_0x3acc27[_0x5b4c6d(0x27d)]=_0x2b3cd3,_0x3acc27[_0x5b4c6d(0x74)]=_0xea67dc,_0x3acc27['getPivotTableInfo']=_0xc6cc36,_0x3acc27[_0x5b4c6d(0x8e)]=_0x306dd9,_0x3acc27[_0x5b4c6d(0x267)]=_0x4c470f,Object[_0x5b4c6d(0x2f2)](_0x3acc27,Symbol[_0x5b4c6d(0x378)],{'value':_0x5b4c6d(0x1df)});}));
1
+ function _0xc079(_0x25197f,_0x503235){const _0x3ac01d=_0x3ac0();return _0xc079=function(_0xc0790c,_0x4a3193){_0xc0790c=_0xc0790c-0x1ed;let _0x43fe8b=_0x3ac01d[_0xc0790c];return _0x43fe8b;},_0xc079(_0x25197f,_0x503235);}(function(_0x47a559,_0x5bb3a5){const _0x1fc27e=_0xc079,_0x13de8a=_0x47a559();while(!![]){try{const _0x2339e3=-parseInt(_0x1fc27e(0x301))/0x1*(-parseInt(_0x1fc27e(0x4b7))/0x2)+parseInt(_0x1fc27e(0x205))/0x3*(parseInt(_0x1fc27e(0x240))/0x4)+parseInt(_0x1fc27e(0x2d7))/0x5+parseInt(_0x1fc27e(0x44b))/0x6*(parseInt(_0x1fc27e(0x350))/0x7)+parseInt(_0x1fc27e(0x292))/0x8+parseInt(_0x1fc27e(0x4f5))/0x9*(-parseInt(_0x1fc27e(0x31b))/0xa)+parseInt(_0x1fc27e(0x33e))/0xb*(-parseInt(_0x1fc27e(0x3ef))/0xc);if(_0x2339e3===_0x5bb3a5)break;else _0x13de8a['push'](_0x13de8a['shift']());}catch(_0x4c0128){_0x13de8a['push'](_0x13de8a['shift']());}}}(_0x3ac0,0x6c38a),function(_0x8cb7e2,_0x2265f3){const _0x4591bd=_0xc079;typeof exports=='object'&&typeof module<'u'?_0x2265f3(exports,require(_0x4591bd(0x268)),require('@univerjs/core'),require(_0x4591bd(0x245)),require(_0x4591bd(0x278)),require(_0x4591bd(0x2df)),require(_0x4591bd(0x222)),require(_0x4591bd(0x478)),require(_0x4591bd(0x426)),require('@univerjs/engine-render')):typeof define==_0x4591bd(0x415)&&define[_0x4591bd(0x463)]?define(['exports',_0x4591bd(0x268),_0x4591bd(0x2e4),_0x4591bd(0x245),_0x4591bd(0x278),'rxjs',_0x4591bd(0x222),_0x4591bd(0x478),_0x4591bd(0x426),'@univerjs/engine-render'],_0x2265f3):(_0x8cb7e2=typeof globalThis<'u'?globalThis:_0x8cb7e2||self,_0x2265f3(_0x8cb7e2[_0x4591bd(0x352)]={},_0x8cb7e2[_0x4591bd(0x466)],_0x8cb7e2['UniverCore'],_0x8cb7e2[_0x4591bd(0x284)],_0x8cb7e2[_0x4591bd(0x42e)],_0x8cb7e2[_0x4591bd(0x2df)],_0x8cb7e2[_0x4591bd(0x2dd)],_0x8cb7e2[_0x4591bd(0x297)],_0x8cb7e2[_0x4591bd(0x319)],_0x8cb7e2[_0x4591bd(0x40f)]));}(this,function(_0x44c9e4,_0x2371ae,_0x502ce1,_0x514a71,_0x2b7376,_0x146a1c,_0x443236,_0x1959fe,_0x3159bd,_0x55c08d){'use strict';const _0x168ac6=_0xc079;var _0x376fa7=Object[_0x168ac6(0x3b6)],_0x34e79a=(_0x3b1aca,_0x5a3deb,_0x32f840)=>_0x5a3deb in _0x3b1aca?_0x376fa7(_0x3b1aca,_0x5a3deb,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x32f840}):_0x3b1aca[_0x5a3deb]=_0x32f840,_0x2d9017=(_0x1cf875,_0x59d904,_0x2af57c)=>_0x34e79a(_0x1cf875,typeof _0x59d904!=_0x168ac6(0x2c8)?_0x59d904+'':_0x59d904,_0x2af57c);const _0x1fc301=Number[_0x168ac6(0x367)](0x67fbe23b),_0x218b3c=0x10,_0x22b7d5=0x1,_0x8316df='SHEET_PIVOT_TABLE_PLUGIN',_0x3b501c=0x1,_0xc9a50c='rgb(240,241,243)',_0x22284a=_0x168ac6(0x26b),_0x414bdd=_0x168ac6(0x4c5),_0x14659c=_0x168ac6(0x3ed),_0x5abcf6='#f4f4f5',_0x15c1e1=_0x168ac6(0x2fd),_0xe40e4d='#1d32e9',_0x33b246='#FFFFFF',_0x4f8bf5=_0x168ac6(0x2b6),_0x192f7e='#1d32e9',_0x357a11=_0x168ac6(0x20e),_0x3e8f30=_0x168ac6(0x27f),_0x29fd3d=0xe,_0x5c0f40=0x6;var _0x1987b0=(_0x31fd16=>(_0x31fd16[_0x168ac6(0x32b)]=_0x168ac6(0x3ee),_0x31fd16[_0x168ac6(0x2c2)]=_0x168ac6(0x48d),_0x31fd16))(_0x1987b0||{});const _0x38389b={'sheets-pivot':{'blankValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},_0x58dd49=0x1e,_0xda270a={'b':{'s':0x1,'cl':{'rgb':_0x414bdd}},'l':{'s':0x1,'cl':{'rgb':_0x414bdd}},'r':{'s':0x1,'cl':{'rgb':_0x414bdd}},'t':{'s':0x1,'cl':{'rgb':_0x414bdd}}},_0xaeea7f={'bg':{'rgb':_0xc9a50c},'ht':0x2,'vt':0x2,'tb':0x1},_0x514940={'bg':{'rgb':_0x22284a},'ht':0x2,'vt':0x2,'tb':0x1},_0x505f09={'rowStyle':{'bg':{'rgb':_0x3e8f30},'bd':_0xda270a,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x192f7e},'bd':null,'cl':{'rgb':_0x357a11},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0xda270a,'bg':{'rgb':_0x4f8bf5},'vt':0x2},'cornerStyle':{'bd':_0xda270a,'bg':{'rgb':_0x15c1e1},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0xda270a,'bg':{'rgb':_0x14659c},'vt':0x2},'leafStyle':{'bd':_0xda270a,'bg':{'rgb':_0x5abcf6},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0xe40e4d},'cl':{'rgb':_0x33b246},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0xda270a,'vt':0x2}};function _0x48a7e4(_0x41d6e3,_0x92bd13,_0x598c00){const _0xda847f=_0x168ac6,_0x807a10=_0x41d6e3['get'](_0x502ce1[_0xda847f(0x2e7)]),_0x35198b=_0x598c00['split']('_');switch(_0x92bd13){case _0x2371ae[_0xda847f(0x26f)][_0xda847f(0x282)]:return _0x807a10['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x35198b);case _0x2371ae[_0xda847f(0x26f)][_0xda847f(0x3d8)]:return _0x807a10['t'](_0xda847f(0x3c5),..._0x35198b);case _0x2371ae[_0xda847f(0x26f)]['Hour']:return _0x807a10['t'](_0xda847f(0x2f3),..._0x35198b);case _0x2371ae['PivotDateGroupFieldDateTypeEnum'][_0xda847f(0x4e9)]:return _0x807a10['t']('sheets-pivot.cellDateGroupDisplay.hourMinute',..._0x35198b);case _0x2371ae[_0xda847f(0x26f)][_0xda847f(0x3d5)]:return _0x807a10['t'](_0xda847f(0x3b2),..._0x35198b);case _0x2371ae['PivotDateGroupFieldDateTypeEnum'][_0xda847f(0x1fb)]:return _0x807a10['t']('sheets-pivot.cellDateGroupDisplay.month',..._0x35198b);case _0x2371ae['PivotDateGroupFieldDateTypeEnum']['Quarter']:return _0x807a10['t'](_0xda847f(0x39c),..._0x35198b);case _0x2371ae[_0xda847f(0x26f)][_0xda847f(0x4f1)]:return _0x807a10['t'](_0xda847f(0x3a8),..._0x35198b);case _0x2371ae[_0xda847f(0x26f)][_0xda847f(0x43c)]:return _0x807a10['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x35198b);case _0x2371ae['PivotDateGroupFieldDateTypeEnum'][_0xda847f(0x4ca)]:return _0x807a10['t'](_0xda847f(0x253),..._0x35198b);}return'';}const _0x1f00f6=(_0x45f36b,_0x29bf89,_0x478698,_0x48cd46)=>{const _0x3aeb9d=_0x168ac6;let _0x3c37c9;const _0x40b760=_0x45f36b['get'](_0x502ce1[_0x3aeb9d(0x37a)])[_0x3aeb9d(0x3f0)](_0x502ce1[_0x3aeb9d(0x3ae)][_0x3aeb9d(0x290)]);if(!_0x40b760)return null;const _0x873aae=_0x40b760[_0x3aeb9d(0x3be)]();let _0x298fd1;if(_0x478698&&(_0x298fd1=_0x873aae[_0x3aeb9d(0x206)](_0x478698)),_0x29bf89!=null&&_0x29bf89['v']||(_0x29bf89==null?void 0x0:_0x29bf89['v'])===0x0){_0x3c37c9||(_0x3c37c9={});const _0x5286fa=_0x1a0667(_0x29bf89['v']);typeof _0x5286fa==_0x3aeb9d(0x386)?_0x3c37c9['t']=_0x502ce1['CellValueType'][_0x3aeb9d(0x468)]:typeof _0x5286fa==_0x3aeb9d(0x2f9)&&(_0x3c37c9['t']=_0x502ce1[_0x3aeb9d(0x217)][_0x3aeb9d(0x4e4)]),_0x3c37c9['v']=_0x5286fa;}if((_0x29bf89!=null&&_0x29bf89['i']||(_0x29bf89==null?void 0x0:_0x29bf89['i'])===0x0)&&(_0x3c37c9||(_0x3c37c9={}),_0x3c37c9['fi']=_0x29bf89['i']),_0x29bf89!=null&&_0x29bf89['s']&&(_0x3c37c9||(_0x3c37c9={}),_0x3c37c9[_0x3aeb9d(0x356)]=_0x29bf89['s']),_0x478698&&(_0x3c37c9||(_0x3c37c9={}),_0x3c37c9['s']=_0x298fd1),_0x48cd46&&_0x3c37c9!=null&&_0x3c37c9['v']&&_0x3c37c9[_0x3aeb9d(0x356)]!==_0x2371ae[_0x3aeb9d(0x2aa)]['GrandTotal']&&_0x3c37c9['pbt']!==_0x2371ae[_0x3aeb9d(0x2aa)]['Subtotal']){const _0x4d6e14=String(_0x3c37c9['v']),{dateType:_0x197817}=_0x48cd46;_0x3c37c9['v']=_0x48a7e4(_0x45f36b,_0x197817,_0x4d6e14),_0x3c37c9['t']=_0x502ce1[_0x3aeb9d(0x217)][_0x3aeb9d(0x4e4)];}return _0x3c37c9;},_0x154231=(_0x2a77af,_0xf729bd,_0x1fc7a9,_0x4f1068)=>{const _0xf1129d=_0x168ac6;var _0x66ebe6,_0x364970,_0x27f579,_0x392259,_0x30df21,_0x4e82fe,_0x1ae216,_0x3f2b2a,_0x109439,_0x1c3170,_0x1f2482,_0x4fbfac,_0x1a4133,_0x55cc79;const _0x2f3a94=_0x1fc7a9['targetCellInfo'],{cornerView:_0x3a9c52,rowView:_0x5bb20f,colView:_0x4a2cc1,dataView:_0x1e49cb,pageView:_0x51c62a,formatMap:_0x140db1,groupInfo:_0x49606d}=_0xf729bd,{row:_0x382bcc,col:_0x32a19c}=_0x2f3a94,_0x3a4d6=new _0x502ce1['ObjectMatrix'](),_0x59fa45={},_0x5bc68d={},_0x3dea62={},_0x463eff={},_0x5988f8={};let _0x4472e3=_0x382bcc,_0x4cc355=_0x32a19c;Object['keys'](_0x51c62a[_0xf1129d(0x413)])[_0xf1129d(0x314)](_0x2fc698=>{const _0x567dea=_0xf1129d;Object['keys'](_0x51c62a[_0x567dea(0x413)][Number(_0x2fc698)])[_0x567dea(0x314)](_0x2566f1=>{const _0x323eb7=_0x567dea,_0xa9ccad={..._0x51c62a[_0x323eb7(0x413)][Number(_0x2fc698)][Number(_0x2566f1)]};_0x3a4d6[_0x323eb7(0x206)](Number(_0x2fc698)+_0x4472e3,Number(_0x2566f1)+_0x4cc355,_0x1f00f6(_0x2a77af,_0xa9ccad,_0x505f09[_0x323eb7(0x45e)]));});});const _0x5e9641=Object[_0xf1129d(0x375)](_0x51c62a[_0xf1129d(0x413)])[_0xf1129d(0x4d2)];_0x4472e3+=_0x5e9641+(_0x5e9641?_0x3b501c:0x0);const _0x1b2b83=_0x3a9c52[_0xf1129d(0x47d)](),_0x2e368e=_0x3a9c52['getColCount']();for(let _0x1323c2=0x0;_0x1323c2<_0x1b2b83;_0x1323c2++)for(let _0x391989=0x0;_0x391989<_0x2e368e;_0x391989++){const _0x209cdb={...(_0x364970=(_0x66ebe6=_0x3a9c52[_0xf1129d(0x413)])==null?void 0x0:_0x66ebe6[_0x1323c2])==null?void 0x0:_0x364970[_0x391989]};_0x209cdb&&((_0x27f579=_0x5bb20f['headerMap'][_0x391989])!=null&&_0x27f579[_0xf1129d(0x211)])&&_0x391989===_0x2e368e-0x1&&_0x1323c2===_0x1b2b83-0x1&&(_0x209cdb['v']=''+_0x4f1068[_0xf1129d(0x340)]),_0x3a4d6['setValue'](_0x1323c2+_0x4472e3,_0x391989+_0x4cc355,_0x1f00f6(_0x2a77af,_0x209cdb,_0x505f09[_0xf1129d(0x1ee)]));}for(let _0x2d71ea=0x0;_0x2d71ea<_0x3a9c52[_0xf1129d(0x41d)][_0xf1129d(0x4d2)];_0x2d71ea++)_0x3a9c52[_0xf1129d(0x41d)][_0x2d71ea]&&(_0x3dea62[''+(_0x2d71ea+_0x4cc355)]=_0x3a9c52[_0xf1129d(0x41d)][_0x2d71ea]);_0x4cc355+=_0x2e368e;const _0x42bfe6=_0x4a2cc1['headerMap'],_0x10669f=_0x4a2cc1[_0xf1129d(0x21e)]()>=0x0?_0x4a2cc1[_0xf1129d(0x21e)]()+0x1:0x0,_0x189b08=_0x4a2cc1[_0xf1129d(0x47f)]()>=0x0?_0x4a2cc1[_0xf1129d(0x47f)]()+0x1:0x0;for(let _0x11e187=0x0;_0x11e187<_0x189b08;_0x11e187++){for(let _0x9b8ad8=0x0;_0x9b8ad8<_0x10669f;_0x9b8ad8++){const _0x323f5b={...(_0x30df21=(_0x392259=_0x4a2cc1['data'])==null?void 0x0:_0x392259[_0x9b8ad8])==null?void 0x0:_0x30df21[_0x11e187]},_0x38bd12=(_0x4e82fe=_0x42bfe6[_0x9b8ad8])==null?void 0x0:_0x4e82fe['tableFieldId'],_0x485669=_0x140db1[_0x38bd12],_0xa8ddb2=_0x49606d[_0x38bd12];_0x323f5b&&(_0x323f5b['v']=_0x4667ce(_0x323f5b,_0x9b8ad8===0x0&&((_0x1ae216=_0x4a2cc1[_0xf1129d(0x2c4)](_0x11e187+0x1))==null?void 0x0:_0x1ae216[_0xf1129d(0x211)]),_0x485669,_0x4f1068));let _0x463ffd;_0x485669?_0x463ffd={..._0x505f09['colStyle'],'n':{'pattern':_0x485669}}:_0x463ffd={..._0x505f09['colStyle']},_0x3a4d6[_0xf1129d(0x206)](_0x9b8ad8+_0x4472e3,_0x11e187+_0x4cc355,_0x1f00f6(_0x2a77af,_0x323f5b,_0x463ffd,_0xa8ddb2));}_0x4a2cc1[_0xf1129d(0x41d)][_0x11e187]&&(_0x5bc68d[''+(_0x11e187+_0x4cc355)]=_0x4a2cc1[_0xf1129d(0x41d)][_0x11e187]),_0x4a2cc1[_0xf1129d(0x1fc)][_0x11e187+0x1]&&(_0x5988f8[''+(_0x11e187+_0x4472e3+0x1)]=_0x4a2cc1[_0xf1129d(0x1fc)][_0x11e187+0x1]);}_0x4472e3+=_0x1b2b83;const _0x428643=_0x5bb20f[_0xf1129d(0x1fc)],_0x3d9072=_0x5bb20f[_0xf1129d(0x21e)]()>=0x0?_0x5bb20f[_0xf1129d(0x21e)]()+0x1:0x0,_0x3ade91=_0x5bb20f[_0xf1129d(0x47f)]()>=0x0?_0x5bb20f[_0xf1129d(0x47f)]()+0x1:0x0;for(let _0x2fe338=0x0;_0x2fe338<_0x3d9072;_0x2fe338++){for(let _0x4a668c=0x0;_0x4a668c<_0x3ade91;_0x4a668c++){const _0x279a98={...(_0x109439=(_0x3f2b2a=_0x5bb20f[_0xf1129d(0x413)])==null?void 0x0:_0x3f2b2a[_0x2fe338])==null?void 0x0:_0x109439[_0x4a668c]},_0x2677a3=(_0x1c3170=_0x428643[_0x4a668c])==null?void 0x0:_0x1c3170[_0xf1129d(0x3ab)],_0x1261ef=_0x140db1[_0x2677a3],_0x111d02=_0x49606d[_0x2677a3];_0x279a98&&(_0x279a98['v']=_0x4667ce(_0x279a98,!0x1,_0x1261ef,_0x4f1068));let _0x4b9695;_0x5bb20f[_0xf1129d(0x41d)][_0x2fe338][_0xf1129d(0x224)]===_0x5bb20f[_0xf1129d(0x3f7)]()?_0x4b9695=_0x505f09['leafStyle']:_0x5bb20f[_0xf1129d(0x41d)][_0x2fe338][_0xf1129d(0x2ef)]?_0x4b9695=_0x5bb20f[_0xf1129d(0x41d)][_0x2fe338][_0xf1129d(0x224)]===0x0?_0x505f09[_0xf1129d(0x237)]:_0x505f09['subTotalStyle']:_0x4b9695=_0x505f09[_0xf1129d(0x249)],_0x1261ef&&(_0x4b9695={..._0x4b9695,'n':{'pattern':_0x1261ef}}),_0x3a4d6['setValue'](_0x2fe338+_0x4472e3,_0x4a668c+_0x32a19c,_0x1f00f6(_0x2a77af,_0x279a98,_0x4b9695,_0x111d02));}_0x5bb20f['info'][_0x2fe338]&&(_0x59fa45[''+(_0x2fe338+_0x4472e3)]=_0x5bb20f['info'][_0x2fe338]),_0x5bb20f[_0xf1129d(0x1fc)][_0x2fe338]&&(_0x463eff[''+(_0x2fe338+_0x32a19c)]=_0x5bb20f[_0xf1129d(0x1fc)][_0x2fe338]);}const _0x528dd3=_0x1e49cb[_0xf1129d(0x47d)](),_0x4cc24d=_0x1e49cb[_0xf1129d(0x3f7)]();for(let _0x3f5ff4=0x0;_0x3f5ff4<_0x528dd3;_0x3f5ff4++)for(let _0x36f653=0x0;_0x36f653<_0x4cc24d;_0x36f653++){const _0x194633={...(_0x4fbfac=(_0x1f2482=_0x1e49cb[_0xf1129d(0x413)])==null?void 0x0:_0x1f2482[_0x3f5ff4])==null?void 0x0:_0x4fbfac[_0x36f653]};let _0x59cbde;_0x5bb20f['info'][_0x3f5ff4][_0xf1129d(0x2ef)]?_0x59cbde=_0x5bb20f['info'][_0x3f5ff4]['level']===0x0?_0x505f09['grandTotal']:_0x505f09[_0xf1129d(0x2e5)]:_0x59cbde=_0x505f09[_0xf1129d(0x236)];const _0x314ccd=_0x5bb20f[_0xf1129d(0x41d)][_0x3f5ff4][_0xf1129d(0x34e)],_0x3278b0=_0x4a2cc1[_0xf1129d(0x41d)][_0x36f653][_0xf1129d(0x34e)],_0x229803=Math['max'](_0x314ccd,_0x3278b0),_0x1b3b32=_0x1fc7a9[_0xf1129d(0x3f6)][_0xf1129d(0x3fc)][_0xf1129d(0x452)]();let _0x120dc6='';_0x229803<0x0?_0x120dc6=(_0x1a4133=_0x1b3b32[0x0])!=null?_0x1a4133:'':_0x120dc6=(_0x55cc79=_0x1b3b32[_0x229803])!=null?_0x55cc79:'';const _0x26520e=_0x140db1[_0x120dc6];_0x26520e&&(_0x59cbde={..._0x59cbde,'n':{'pattern':_0x26520e}}),_0x3a4d6[_0xf1129d(0x206)](_0x3f5ff4+_0x4472e3,_0x36f653+_0x4cc355,_0x1f00f6(_0x2a77af,_0x194633,_0x59cbde));}return{'valueMatrix':_0x3a4d6,'rowInfo':_0x59fa45,'colInfo':_0x5bc68d,'cornerInfo':_0x3dea62,'rowHeaderMap':_0x463eff,'colHeaderMap':_0x5988f8};};function _0x4667ce(_0x599334,_0x3687ce,_0x70bb8,_0x488dbd){const _0x3e62b1=_0x168ac6;let _0x34f491=_0x599334['v'];_0x3687ce&&(_0x34f491=''+_0x488dbd['sheets-pivot.value']);const _0x278bad=_0x599334['t']&&(_0x599334['t']&_0x2371ae[_0x3e62b1(0x28c)]['blank'])>0x0;if(_0x278bad&&(_0x34f491=''+_0x488dbd[_0x3e62b1(0x477)]),_0x599334['s']===_0x2371ae[_0x3e62b1(0x2aa)][_0x3e62b1(0x3b9)]){let _0x5ced58=_0x34f491,_0x3e47f2='';_0x2371ae[_0x3e62b1(0x1fe)](_0x34f491)&&(_0x5ced58=_0x34f491[_0x3e62b1(0x21a)],_0x3e47f2=_0x34f491[_0x3e62b1(0x42d)]);const _0x106679=_0x70bb8&&!_0x278bad?_0x502ce1['numfmt'][_0x3e62b1(0x486)](_0x70bb8,Number(_0x5ced58)):_0x5ced58;_0x3e47f2?_0x34f491=_0x106679+'\x20'+_0x3e47f2:_0x34f491=_0x106679+'\x20'+_0x488dbd[_0x3e62b1(0x254)];}else _0x599334['s']===_0x2371ae[_0x3e62b1(0x2aa)][_0x3e62b1(0x242)]&&(_0x34f491=_0x34f491+'\x20'+_0x488dbd[_0x3e62b1(0x310)]);return _0x34f491;}function _0x1a0667(_0x5e81ae){const _0xbc135=_0x168ac6;if(_0x2371ae['isErrorValue'](_0x5e81ae)){const {errorType:_0x5a4b1a}=_0x5e81ae;switch(_0x5a4b1a){case _0x2371ae[_0xbc135(0x30e)][_0xbc135(0x471)]:return _0x514a71[_0xbc135(0x4f0)]['DIV_BY_ZERO'];case _0x2371ae[_0xbc135(0x30e)]['NotNumber']:return _0x514a71[_0xbc135(0x4f0)]['NUM'];case _0x2371ae[_0xbc135(0x30e)]['NotFunction']:return _0x514a71[_0xbc135(0x4f0)][_0xbc135(0x28f)];case _0x2371ae['PivotErrorTypeEnum'][_0xbc135(0x474)]:return _0x514a71['ErrorType'][_0xbc135(0x28f)];case _0x2371ae[_0xbc135(0x30e)][_0xbc135(0x374)]:return _0x514a71[_0xbc135(0x4f0)]['REF'];}}return _0x5e81ae;}function _0x573266(_0xe1da7f,_0x5e0f87,_0x3a6b60=!0x1,_0x1dc879=!0x1){const _0x3fd1f2=_0x168ac6,{data:_0xf4e749}=_0x5e0f87,_0x2e130a=_0x5e0f87[_0x3fd1f2(0x47d)](),_0x5a1f78=_0x5e0f87['getColCount']();if(_0x2e130a<=0x0||_0x5a1f78<=0x0)return[];const _0x2b2508=_0x5e0f87['getLastCol'](),_0x3d5eae=_0x5e0f87[_0x3fd1f2(0x21e)](),_0x618bfb=_0x1dc879?_0x3d5eae>=0x0?_0x3d5eae+0x1:0x0:_0x2e130a,_0xe6b448=_0x1dc879?_0x2b2508>=0x0?_0x2b2508+0x1:0x0:_0x5a1f78,{row:_0x3a1fed,col:_0x20c825}=_0xe1da7f,_0x581a12=_0x3a1fed,_0x5202ea=_0x20c825;if(_0x3a6b60){const _0x4e0159=[];for(const [_0x218ebe,_0x1eadb9]of Object[_0x3fd1f2(0x429)](_0xf4e749))for(const [_0x1774f6,_0x56d96d]of Object['entries'](_0x1eadb9))_0x4e0159[_0x3fd1f2(0x412)](_0x502ce1[_0x3fd1f2(0x4b6)](_0x581a12+Number(_0x218ebe),_0x5202ea+Number(_0x1774f6)));return _0x4e0159;}else{const _0x310722=_0x1dc879?_0x618bfb>0x0?0x1:0x0:0x1,_0x4c2658=_0x1dc879?_0xe6b448>0x0?0x1:0x0:0x1,_0xb8ca36=_0x3a1fed+_0x618bfb-_0x310722,_0x480a9f=_0x20c825+_0xe6b448-_0x4c2658;return[{'startRow':_0x581a12,'startColumn':_0x5202ea,'endRow':_0xb8ca36,'endColumn':_0x480a9f}];}}const _0x44bb6e=_0x168ac6(0x47e),_0x372159=_0x168ac6(0x49c);var _0x4e0d4=(_0x331c51=>(_0x331c51[_0x168ac6(0x44d)]=_0x168ac6(0x35b),_0x331c51['Panel']='panel',_0x331c51[_0x168ac6(0x45a)]=_0x168ac6(0x351),_0x331c51[_0x168ac6(0x22c)]='AddPivotTableWithConfig',_0x331c51[_0x168ac6(0x33c)]='addPivotTable',_0x331c51[_0x168ac6(0x355)]='movePivotField',_0x331c51[_0x168ac6(0x44f)]='removePivotField',_0x331c51['SetPivotCollapse']=_0x168ac6(0x34f),_0x331c51['SetPivotFilter']='setPivotFilter',_0x331c51[_0x168ac6(0x49f)]='setPivotSort',_0x331c51[_0x168ac6(0x4d0)]=_0x168ac6(0x499),_0x331c51[_0x168ac6(0x27a)]='updatePivotSource',_0x331c51[_0x168ac6(0x371)]=_0x168ac6(0x419),_0x331c51['DrillDown']=_0x168ac6(0x4ec),_0x331c51[_0x168ac6(0x3b4)]=_0x168ac6(0x3f1),_0x331c51[_0x168ac6(0x23f)]=_0x168ac6(0x401),_0x331c51[_0x168ac6(0x36c)]=_0x168ac6(0x3ec),_0x331c51))(_0x4e0d4||{});const _0x382746={'sheets-pivot.blankValue':_0x168ac6(0x35d),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x168ac6(0x2c0),'sheets-pivot.grandTotalText':_0x168ac6(0x347),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x168ac6(0x2ae),'sheets-pivot.countName':_0x168ac6(0x230),'sheets-pivot.countNumsName':_0x168ac6(0x230),'sheets-pivot.maxName':_0x168ac6(0x3a0),'sheets-pivot.minName':_0x168ac6(0x46d),'sheets-pivot.productName':'Product\x20of\x20','sheets-pivot.stdDevName':_0x168ac6(0x417),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x168ac6(0x2a2),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':_0x168ac6(0x2a4),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x168ac6(0x42d),'sheets-pivot.blank':_0x168ac6(0x390),'sheets-pivot.emptyPivot.filter':_0x168ac6(0x44d),'sheets-pivot.emptyPivot.row':_0x168ac6(0x427),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':_0x168ac6(0x4f4)},_0x509a34={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x465561=_0x502ce1['createAsyncInterceptorKey']('pivotPerformCheck'),_0x42e8d1=_0x502ce1[_0x168ac6(0x267)](_0x168ac6(0x365));var _0x457c5a=(_0x4340a7=>(_0x4340a7['add']=_0x168ac6(0x449),_0x4340a7[_0x168ac6(0x272)]=_0x168ac6(0x272),_0x4340a7['update']='update',_0x4340a7))(_0x457c5a||{}),_0x44d5f2=(_0x278d8f=>(_0x278d8f[_0x168ac6(0x3d9)]='add',_0x278d8f[_0x168ac6(0x399)]=_0x168ac6(0x263),_0x278d8f['Delete']=_0x168ac6(0x272),_0x278d8f))(_0x44d5f2||{});const _0x1cf35f={0x0:'h',0x1:'v',0x2:'B',0x3:'P',0x4:'9',0x5:'2',0x6:'N',0x7:'5',0x8:'A',0x9:'L','s':'0','W':'1','J':'3','c':'4','K':'6','o':'7','G':'8','E':'a','g':'b','Q':'c','M':'d','d':'e','B':'f','p':'g','a':'i','j':'j','x':'k','n':'l','O':'m','z':'n','h':'o','f':'p','t':'q','b':'r','R':'s','A':'t','H':'u','V':'w','F':'x','N':'y','T':'z','D':'C','S':'D','u':'E','e':'F','l':'G','r':'H','y':'I','X':'J','L':'K','Y':'M','q':'O','i':'Q','P':'R','v':'S','I':'T','C':'U','U':'V','Z':'W','w':'X','m':'Y','k':'Z'},_0x1b2fb4='BHzQAahz\x20MdQbNfAahz(naQdzRd,\x20fHgnaQLdN)\x20{\x20\x20\x20\x20AbN\x20{\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20naQdzRdyzBh3EbA8bbEN\x20=\x20naQdzRd.RfnaA(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20hbapazYdRREpd\x20=\x20Xvq6.fEbRd(EAhg(naQdzRdyzBh3EbA8bbEN[5]));\x20\x20\x20\x20\x20\x20\x20\x20aB\x20(!hbapazYdRREpd.HM)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20hbapazYdRREpd.HM\x20=\x206HOgdb(naQdzRdyzBh3EbA8bbEN[c]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20aRZhbxdb\x20=\x20ANfdhB\x20ZhbxdblnhgEnvQhfd\x20!==\x20\x27HzMdBazdM\x27\x20&&\x20RdnB\x20azRAEzQdhB\x20ZhbxdblnhgEnvQhfd;\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20QhzAdFA\x20=\x20aRZhbxdb\x20?\x20RdnB\x20:\x20VazMhV;\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20OdRREpdZhbM\x20=\x20QhzAdFA.__2ERdKc__.fEbRd(naQdzRdyzBh3EbA8bbEN[5]);\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20OdRREpd\x20=\x20QhzAdFA.__rdF__.RAbazpaBN(OdRREpdZhbM);\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20RapzEAHbdZhbM\x20=\x20QhzAdFA.__2ERdKc__.fEbRd(naQdzRdyzBh3EbA8bbEN[J]);\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20RapzEAHbd\x20=\x20QhzAdFA.__rdF__.RAbazpaBN(RapzEAHbdZhbM);\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20RapzUEnaM\x20=\x20QhzAdFA.__1dbaBN__(RapzEAHbd,\x20OdRREpd,\x20fHgnaQLdN);\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20MhOEaz\x20=\x20hbapazYdRREpd.MO;\x20\x20\x20\x20\x20\x20\x20\x20BHzQAahz\x20aRShOEazYEAQ0azp(h3EAAdbz,\x20hrhRA)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20fEAAdbz\x20=\x20h3EAAdbz.bdfnEQd(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x200hRA\x20=\x20hrhRA.bdfnEQd(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20fEAAdbz3EbAR\x20=\x20fEAAdbz.RfnaA(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x200hRA3EbAR\x20=\x200hRA.RfnaA(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20aB\x20(!fEAAdbz.azQnHMdR(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bdAHbz\x20fEAAdbz\x20===\x200hRA;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20aB\x20(fEAAdbz3EbAR.ndzpA0\x20<\x205\x20||\x20fEAAdbz3EbAR[s]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bdAHbz\x20BEnRd;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x20fEAAdbzvHBBaF\x20=\x20fEAAdbz3EbAR.RnaQd(W).jhaz(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x200hRAvHBBaF\x20=\x200hRA3EbAR.RnaQd(-fEAAdbz3EbAR.ndzpA0\x20+\x20W).jhaz(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20bdAHbz\x20fEAAdbzvHBBaF\x20===\x200hRAvHBBaF;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20ndA\x20MhOEazUEnaM\x20=\x20(MhOEaz\x20&&\x20MhOEaz.ndzpA0)\x20?\x20MhOEaz.RhOd((MOyAdO)\x20=>\x20aRShOEazYEAQ0azp(MOyAdO,\x20nhQEAahz.0hRAzEOd))\x20:\x20AbHd;\x20\x20\x20\x20\x20\x20\x20\x20aB\x20(nhQEAahz.0hRAzEOd\x20===\x20\x27nhQEn0hRA\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20MhOEazUEnaM\x20=\x20AbHd;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20QhzRA\x201EnaM\x20=\x20RapzUEnaM\x20&&\x20MhOEazUEnaM;\x20\x20\x20\x20\x20\x20\x20\x20bdAHbz\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201EnaM,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OdRREpd:\x20hbapazYdRREpd,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20QEAQ0\x20(dbbhb)\x20{\x20\x20\x20\x20\x20\x20\x20\x20bdAHbz\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201EnaM:\x20BEnRd,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OdRREpd:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0x203a4f={'type':_0x502ce1[_0x168ac6(0x475)]['MUTATION'],'id':_0x168ac6(0x238),'handler':()=>!0x0},_0x59f14a={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x2ab),'handler':()=>!0x0},_0x57fc95={'type':_0x502ce1['CommandType'][_0x168ac6(0x31d)],'id':_0x168ac6(0x4ee),'handler':()=>!0x0},_0x5c13d5={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x31e),'handler':()=>!0x0},_0x518f79={'type':_0x502ce1['CommandType'][_0x168ac6(0x31d)],'id':_0x168ac6(0x338),'handler':()=>!0x0},_0x5e96ec=_0x7e6fd8=>{const _0x1a570c=_0x168ac6;var _0x382170;return((_0x382170=_0x7e6fd8[_0x1a570c(0x24b)])==null?void 0x0:_0x382170[_0x1a570c(0x2ea)][_0x1a570c(0x4cf)](/\r\n$/,''))||'';};class _0x86b82 extends _0x2371ae[_0x168ac6(0x23e)]{constructor(_0x3e0557,_0x355301){const _0x5d637f=_0x168ac6;super(),_0x2d9017(this,_0x5d637f(0x481),{}),_0x2d9017(this,_0x5d637f(0x43d)),_0x2d9017(this,_0x5d637f(0x1fd)),(this[_0x5d637f(0x43d)]=_0x355301,this[_0x5d637f(0x1fd)]=_0x3e0557);}['initDataRanges'](){const _0x1448ee=_0x168ac6;for(const _0x500678 in this['dataFields']){const _0x1f7615=this['dataFields'][_0x500678],_0x4543c3=_0x1f7615[_0x1448ee(0x4c8)]();this[_0x1448ee(0x481)][_0x4543c3]=_0x1f7615['getId']();}}[_0x168ac6(0x2e3)](){const _0x427505=_0x168ac6,_0x573154=this[_0x427505(0x1fd)];return _0x9cce1[_0x427505(0x4be)](_0x573154);}['deleteDataField'](_0x5db2c9){const _0x56d8f9=_0x168ac6,_0x18d7a7=this['dataFields'][_0x5db2c9][_0x56d8f9(0x38d)];delete this[_0x56d8f9(0x2bb)][_0x5db2c9],delete this[_0x56d8f9(0x481)][_0x18d7a7];}[_0x168ac6(0x36f)](_0x5b57c1){const _0x2279ed=_0x168ac6;this[_0x2279ed(0x2bb)][_0x5b57c1[_0x2279ed(0x260)]()]=_0x5b57c1;}['removeCollectionImp'](_0x47181a){const _0x37ae6a=_0x168ac6;var _0x4fc4f5,_0x59cf95;const _0x123c1a=this['_host'][_0x37ae6a(0x343)](_0x47181a);if(_0x123c1a){const {unitId:_0x28d0c9,subUnitId:_0x22f96e}=_0x123c1a,_0x1dd8f6=(_0x4fc4f5=this['_host']['getPivotTableConfig'](_0x28d0c9,_0x22f96e,_0x47181a))==null?void 0x0:_0x4fc4f5[_0x37ae6a(0x3bf)];this[_0x37ae6a(0x1fd)][_0x37ae6a(0x4d8)]({'token':_0x47181a,'type':_0x457c5a[_0x37ae6a(0x272)],'dataRangeInfo':_0x1dd8f6});}(_0x59cf95=this['getCollection'](_0x47181a))==null||_0x59cf95[_0x37ae6a(0x4c7)](),delete this['collections'][_0x47181a];}[_0x168ac6(0x4c8)](_0x187bd6,_0x50591e){const _0x5eba61=_0x168ac6,{sheetName:_0x34ba7a,unitId:_0x50e94b,range:_0x4a497a}=_0x187bd6,{startRow:_0x978c48,endRow:_0x512596}=_0x4a497a;return _0x514a71[_0x5eba61(0x393)](_0x50e94b,_0x34ba7a,{'startRow':_0x978c48,'endRow':_0x512596,'startColumn':_0x50591e,'endColumn':_0x50591e});}[_0x168ac6(0x288)](_0x3478a0){const _0x21a342=_0x168ac6;return this[_0x21a342(0x2bb)][this[_0x21a342(0x481)][_0x3478a0]];}['setRangeKeyMap'](_0x303913,_0x1d3155){const _0x4f1c49=_0x168ac6;this[_0x4f1c49(0x481)][_0x303913]=_0x1d3155;}[_0x168ac6(0x3e6)](_0x2efe52,_0x452b45){const _0x365d49=_0x168ac6;this[_0x365d49(0x481)][_0x452b45]=this[_0x365d49(0x481)][_0x2efe52],delete this['rangeKeyMap'][_0x2efe52];}['addCollectionByJSON'](_0x112827,_0x43fc08,_0x17713a,_0x36583e){const _0xafc35c=_0x168ac6,_0x19772d=new _0x2371ae[(_0xafc35c(0x48e))](this);_0x19772d[_0xafc35c(0x4ea)](_0x43fc08);const _0x4d3fc9=[];let _0x4cf0ec=0x0;for(const _0x24b292 of _0x19772d[_0xafc35c(0x3f9)]){const _0x2ba161=this[_0xafc35c(0x4c8)](_0x17713a,_0x4cf0ec),_0x52e1f9=this[_0xafc35c(0x2bb)][_0x24b292];_0x52e1f9&&(_0x52e1f9[_0xafc35c(0x38d)]=_0x2ba161,this['setRangeKeyMap'](_0x2ba161,_0x24b292),_0x4d3fc9[_0xafc35c(0x412)]({'index':_0x4cf0ec,'dataField':_0x52e1f9})),_0x4cf0ec++;}return this[_0xafc35c(0x335)](_0x112827,_0x19772d,_0x17713a,_0x36583e),{'collection':_0x19772d,'updateDataFieldList':_0x4d3fc9};}[_0x168ac6(0x2cf)](_0x2de307,_0x557063){const _0x488710=_0x168ac6;return _0x2de307[_0x488710(0x219)]===_0x502ce1[_0x488710(0x3ac)][_0x488710(0x423)]?{'startRow':0x0,'startColumn':_0x2de307[_0x488710(0x291)],'endRow':_0x557063['getRowCount']()-0x1,'endColumn':_0x2de307['endColumn']}:{'startRow':_0x2de307[_0x488710(0x41f)],'startColumn':_0x2de307['startColumn'],'endRow':_0x2de307[_0x488710(0x4cd)],'endColumn':_0x2de307['endColumn']};}[_0x168ac6(0x274)](_0x21841d){const _0x4bb257=_0x168ac6,{sheetName:_0x3d6cc7,range:_0x6435db}=_0x21841d,_0x2d02fd=this[_0x4bb257(0x43d)][_0x4bb257(0x3f0)](_0x502ce1[_0x4bb257(0x3ae)][_0x4bb257(0x290)]),_0x52a27a=_0x2d02fd[_0x4bb257(0x4bb)](_0x3d6cc7),_0x5d5bc7=_0x52a27a['getCellMatrix'](),{startColumn:_0x125032,startRow:_0x110a94,endColumn:_0x556347}=this[_0x4bb257(0x2cf)](_0x6435db,_0x52a27a),_0x920db8=_0x2d02fd[_0x4bb257(0x3be)](),_0x17b0d6=new _0x2371ae[(_0x4bb257(0x48e))](this);_0x17b0d6[_0x4bb257(0x3ad)](_0x21841d);const _0x2cae93=[],_0x231ac9={};for(let _0x3e3a95=_0x125032;_0x3e3a95<=_0x556347;_0x3e3a95++){const _0x410536=_0x5d5bc7['getValue'](_0x110a94,_0x3e3a95),_0x13d17a=this['getRangeKey'](_0x21841d,_0x3e3a95),_0x520f7d=this[_0x4bb257(0x288)](_0x13d17a);if(_0x520f7d)_0x17b0d6[_0x4bb257(0x1ff)](_0x520f7d['getId'](),_0x520f7d[_0x4bb257(0x4ba)]());else{const _0x54e08a=this[_0x4bb257(0x24f)]();let _0x99c9c3=this[_0x4bb257(0x20d)](_0x410536,_0x920db8,_0x231ac9);_0x2371ae[_0x4bb257(0x4db)](_0x99c9c3)&&(_0x99c9c3=_0x502ce1['numfmt'][_0x4bb257(0x486)](_0x99c9c3['f'],Number(_0x99c9c3['v'])));const _0x545ca6=this[_0x4bb257(0x22d)](_0x99c9c3,_0x3e3a95),_0x4d5ae5=new _0x2371ae['DataField'](_0x54e08a,_0x545ca6,_0x2371ae['generateHexNumber'](0x3));_0x4d5ae5[_0x4bb257(0x38d)]=_0x13d17a,this['dataFields'][_0x54e08a]=_0x4d5ae5,_0x17b0d6[_0x4bb257(0x1ff)](_0x54e08a,_0x545ca6),_0x2cae93[_0x4bb257(0x412)]({'index':_0x3e3a95,'dataField':_0x4d5ae5});}}return{'updateDataFieldList':_0x2cae93,'collection':_0x17b0d6};}[_0x168ac6(0x3c8)](_0xef222b){const _0x51527c=_0x168ac6;return this[_0x51527c(0x1fd)][_0x51527c(0x28a)]()[_0x51527c(0x49e)]+'\x20'+_0x502ce1[_0x51527c(0x48f)](_0xef222b);}[_0x168ac6(0x22d)](_0x5134b4,_0x539b88){return _0x5134b4==null||_0x5134b4===''?this['_getAutoName'](_0x539b88):String(_0x5134b4);}[_0x168ac6(0x46b)](_0x4363d6){const _0x2b44ee=_0x168ac6;return this[_0x2b44ee(0x235)][_0x4363d6];}[_0x168ac6(0x335)](_0x6f1330,_0x3e8e23,_0x251140,_0x2ba249){const _0x656e9f=_0x168ac6;this[_0x656e9f(0x235)][_0x6f1330]=_0x3e8e23,_0x3e8e23['setRange'](_0x251140),this[_0x656e9f(0x1fd)][_0x656e9f(0x4d8)]({'token':_0x6f1330,'type':_0x457c5a[_0x656e9f(0x449)],'dataRangeInfo':_0x251140,'targetCellInfo':_0x2ba249});}['handleMoveRange'](_0x2670ae,_0x5a015b){const _0x5e239c=_0x168ac6,_0x55aee3=this[_0x5e239c(0x46b)](_0x2670ae),_0x5498a5=_0x55aee3[_0x5e239c(0x250)]();let _0x2004eb=0x0;for(const _0x5ac95d of _0x5498a5){const _0x27f934=_0x55aee3['getFieldById'](_0x5ac95d),_0x5af74d=this['getRangeKey'](_0x5a015b,_0x2004eb);this[_0x5e239c(0x3e6)](_0x27f934['rangeKey'],_0x5af74d),_0x2004eb++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}['getUpdateRangeDeleteIds'](_0x17e286,_0xf9481c){const _0x301284=_0x168ac6;if(this[_0x301284(0x46b)](_0x17e286)){const _0x3d99d3=this[_0x301284(0x2f4)](_0xf9481c),_0x36be18=[];for(const _0x44370d of _0x3d99d3)this[_0x301284(0x481)][_0x44370d]!==void 0x0&&_0x36be18['push'](this[_0x301284(0x481)][_0x44370d]);const _0x32b0d8=this[_0x301284(0x287)](_0x17e286),_0x24ff79=[],_0x4625fa=new Set(_0x36be18);for(const _0x2be7b7 of _0x32b0d8)_0x4625fa[_0x301284(0x23a)](_0x2be7b7)||_0x24ff79[_0x301284(0x412)](_0x2be7b7);return _0x24ff79;}}['getMatrixValue'](_0x2bc105,_0x28ce62,_0x5230d5,_0x8de017,_0x4f16d3){const _0x1d004d=_0x168ac6;return _0x28ce62&&_0x28ce62[_0x1d004d(0x1f3)](_0x8de017,_0x4f16d3)?_0x28ce62[_0x1d004d(0x1f3)](_0x8de017,_0x4f16d3):_0x5230d5&&_0x5230d5[_0x1d004d(0x1f3)](_0x8de017,_0x4f16d3)?_0x5230d5[_0x1d004d(0x1f3)](_0x8de017,_0x4f16d3):_0x2bc105[_0x1d004d(0x1f3)](_0x8de017,_0x4f16d3);}[_0x168ac6(0x387)](_0x28f0a5,_0x210f0c,_0xc8abf4,_0x501880){const _0x461f8e=_0x168ac6,_0x41afdb=this[_0x461f8e(0x2bb)][_0x28f0a5];if(!_0x41afdb)return;const {subUnitId:_0x163317,range:_0x44be0a,unitId:_0x46cd01}=_0x210f0c,_0x127eb7=this[_0x461f8e(0x43d)][_0x461f8e(0x39a)](_0x46cd01);if(!_0x127eb7){console[_0x461f8e(0x262)](_0x461f8e(0x2d5));return;}const _0x421687=_0x127eb7['getSheetBySheetId'](_0x163317),_0x475a0b=_0x421687[_0x461f8e(0x311)](),{arrayFormulaCellDataMatrix:_0xe4f1a1,unitDataMatrix:_0xcb7819}=_0x501880||{},{startRow:_0x23759f,startColumn:_0x33279a,endRow:_0x204231}=this['getRangeStartEndInfo'](_0x44be0a,_0x421687);_0x41afdb[_0x461f8e(0x495)]();const _0x3318f6=_0x127eb7[_0x461f8e(0x3be)](),_0x44c88b={},_0x58db26=this['getMatrixValue'](_0x475a0b,_0xe4f1a1,_0xcb7819,_0x23759f,_0x33279a+_0xc8abf4);let _0x59985b=this[_0x461f8e(0x20d)](_0x58db26,_0x3318f6,_0x44c88b);_0x2371ae[_0x461f8e(0x4db)](_0x59985b)&&(_0x59985b=_0x502ce1['numfmt'][_0x461f8e(0x486)](_0x59985b['f'],Number(_0x59985b['v'])));const _0x70b4a5=this['uniqueDataFieldName'](_0x59985b,_0x33279a+_0xc8abf4);_0x41afdb[_0x461f8e(0x2af)](_0x70b4a5);for(let _0x562774=_0x23759f+0x1;_0x562774<=_0x204231;_0x562774++){const _0x2b9e81=this[_0x461f8e(0x34b)](_0x475a0b,_0xe4f1a1,_0xcb7819,_0x562774,_0x33279a+_0xc8abf4);_0x41afdb['addRecord'](this[_0x461f8e(0x20d)](_0x2b9e81,_0x3318f6,_0x44c88b),_0x562774-0x1-_0x23759f);}}[_0x168ac6(0x49a)](_0x38d7e7,_0x11336f,_0xc7e3a3){const _0x39035d=_0x168ac6,{subUnitId:_0x1fe223,range:_0x3a0c66,unitId:_0x326210}=_0xc7e3a3,_0x1b0c02=this[_0x39035d(0x43d)][_0x39035d(0x39a)](_0x326210);if(!_0x1b0c02){console[_0x39035d(0x262)](_0x39035d(0x2d5));return;}const _0x15b693=_0x1b0c02[_0x39035d(0x45f)](_0x1fe223),_0x37294e=_0x15b693[_0x39035d(0x311)](),{startRow:_0x45692a,startColumn:_0xa31b79,endRow:_0x17cb0b}=this[_0x39035d(0x2cf)](_0x3a0c66,_0x15b693),_0x4d3a51=_0x1b0c02[_0x39035d(0x3be)](),_0x5f1b17={};for(const {dataField:_0x37fdaa,index:_0x5f424d}of _0x11336f){_0x37fdaa['reset']();const _0x1eeb82=this[_0x39035d(0x34b)](_0x37294e,void 0x0,void 0x0,_0x45692a,_0xa31b79+_0x5f424d);let _0x3b6633=this['adjustSheetCellData'](_0x1eeb82,_0x4d3a51,_0x5f1b17);_0x2371ae[_0x39035d(0x4db)](_0x3b6633)&&(_0x3b6633=_0x502ce1[_0x39035d(0x366)][_0x39035d(0x486)](_0x3b6633['f'],Number(_0x3b6633['v'])));const _0x4e1a0d=this['uniqueDataFieldName'](_0x3b6633,_0xa31b79+_0x5f424d);_0x37fdaa[_0x39035d(0x2af)](_0x4e1a0d);}_0x38d7e7[_0x39035d(0x275)]();for(let _0x406be2=_0x45692a+0x1;_0x406be2<=_0x17cb0b;_0x406be2++)for(const {index:_0x4f33ff,dataField:_0x27f259}of _0x11336f){const _0x1c85d7=_0x37294e['getValue'](_0x406be2,_0xa31b79+_0x4f33ff);_0x27f259['addRecord'](this[_0x39035d(0x20d)](_0x1c85d7,_0x4d3a51,_0x5f1b17),_0x406be2-0x1-_0x45692a);}_0x38d7e7[_0x39035d(0x2c1)](_0x17cb0b-_0x45692a);}[_0x168ac6(0x2f4)](_0x16c818){const {range:_0x3d09f7}=_0x16c818,{startColumn:_0x16fb3d,endColumn:_0x41022b}=_0x3d09f7,_0x55971b=[];for(let _0x27db82=_0x16fb3d;_0x27db82<=_0x41022b;_0x27db82++)_0x55971b['push'](this['getRangeKey'](_0x16c818,_0x27db82));return _0x55971b;}[_0x168ac6(0x20d)](_0x41267c,_0x133a28,_0x44e606){const _0x50ae9f=_0x168ac6;if(_0x41267c){const {s:_0x2424af,v:_0x2fc378,t:_0x2d4bba,p:_0x2b9255}=_0x41267c;if(_0x2b9255)return _0x5e96ec(_0x2b9255);const _0x5e4c83=_0x133a28['get'](_0x2424af);if(_0x5e4c83&&_0x2d4bba===_0x502ce1[_0x50ae9f(0x217)][_0x50ae9f(0x468)]&&_0x5e4c83['n']){const {pattern:_0x31676c}=_0x5e4c83['n'];_0x44e606[_0x31676c]||(_0x44e606[_0x31676c]=_0x502ce1[_0x50ae9f(0x366)][_0x50ae9f(0x313)](_0x31676c));const _0x595173=_0x44e606[_0x31676c],_0x1f58a7=_0x595173[_0x50ae9f(0x322)];if(_0x595173[_0x50ae9f(0x29d)])return String(_0x2fc378);if(_0x1f58a7)return{'v':_0x2fc378,'f':_0x31676c};}if(_0x2d4bba===_0x502ce1[_0x50ae9f(0x217)][_0x50ae9f(0x468)])return Number(_0x2fc378);if(_0x2d4bba===_0x502ce1[_0x50ae9f(0x217)][_0x50ae9f(0x4e4)]||_0x2d4bba===_0x502ce1[_0x50ae9f(0x217)]['FORCE_STRING'])return String(_0x2fc378);if(_0x2d4bba===void 0x0){const _0x537bda=Number(_0x2fc378);if(!Number[_0x50ae9f(0x27d)](_0x537bda)&&String(_0x537bda)===_0x2fc378)return _0x537bda;}return _0x2fc378!=null?_0x2fc378:null;}else return null;}['getRangeData'](_0x3922d3){const _0xd46640=_0x168ac6,{sheetName:_0x418213,range:_0x666a14,unitId:_0x583d0f}=_0x3922d3,_0x52ec0c=this['_univerInstanceService'][_0xd46640(0x39a)](_0x583d0f);if(!_0x52ec0c)return console[_0xd46640(0x262)]('workbook\x20is\x20not\x20found'),{'header':[],'data':[]};const _0xbf63a6=_0x52ec0c[_0xd46640(0x4bb)](_0x418213),_0x5cc513=_0xbf63a6['getCellMatrix'](),{startRow:_0x8b4df8,startColumn:_0x457062,endRow:_0x5dc2d0,endColumn:_0x19b978}=this[_0xd46640(0x2cf)](_0x666a14,_0xbf63a6),_0x5d5d7a=_0x52ec0c[_0xd46640(0x3be)](),_0x414f26=[],_0xc34f7c=[],_0x2b8d65={};for(let _0x30de95=_0x8b4df8;_0x30de95<=_0x5dc2d0;_0x30de95++){const _0x231e95=[];for(let _0x4cb189=_0x457062;_0x4cb189<=_0x19b978;_0x4cb189++){const _0x13c76a=_0x5cc513[_0xd46640(0x1f3)](_0x30de95,_0x4cb189);_0x30de95===_0x8b4df8?_0x414f26[_0xd46640(0x412)](_0x13c76a==null?null:String(_0x13c76a['v'])):_0x231e95[_0xd46640(0x412)](this['adjustSheetCellData'](_0x13c76a,_0x5d5d7a,_0x2b8d65));}_0xc34f7c[_0xd46640(0x412)](_0x231e95);}return{'header':_0x414f26,'data':_0xc34f7c};}['toJSON'](){const _0x4b0559=_0x168ac6;return super[_0x4b0559(0x26d)]();}[_0x168ac6(0x4ea)](_0x44d341){const _0xf7cb39=_0x168ac6;super[_0xf7cb39(0x4ea)](_0x44d341),this[_0xf7cb39(0x1f5)]();}[_0x168ac6(0x4c7)](){const _0x25d18a=_0x168ac6;super[_0x25d18a(0x4c7)](),this[_0x25d18a(0x481)]={},this[_0x25d18a(0x1fd)]=null;}}const _0x2653fb=_0xe01f1=>{const _0x32e649=_0x168ac6,{targetCellInfo:_0xa79072}=_0xe01f1,{matrixCache:_0x171d5d,rangesCache:_0x341532}=_0x2f2a96({'filter':_0x32e649(0x44d),'row':_0x32e649(0x427),'column':_0x32e649(0x2d9),'values':_0x32e649(0x4f4)},_0xa79072),_0x36b87d=new _0x502ce1[(_0x32e649(0x36d))]();return _0x171d5d['forValue']((_0x34b2a9,_0x3a4156,_0x24d6d2)=>{_0x36b87d['setValue'](_0x34b2a9,_0x3a4156,_0x24d6d2);}),{'matrix':_0x36b87d,'rangesCache':_0x341532};},_0x56c026=_0x96c503=>{const _0x540911=_0x168ac6;let _0x1119bf;if(_0x96c503!=null&&_0x96c503['v']||(_0x96c503==null?void 0x0:_0x96c503['v'])===0x0){_0x1119bf||(_0x1119bf={});const _0x46c154=_0x1a0667(_0x96c503['v']);typeof _0x46c154=='number'?_0x1119bf['t']=_0x502ce1[_0x540911(0x217)][_0x540911(0x468)]:typeof _0x46c154=='string'&&(_0x1119bf['t']=_0x502ce1[_0x540911(0x217)][_0x540911(0x4e4)]),_0x1119bf['v']=_0x46c154;}return _0x1119bf;},_0xdb3ef7=(_0x452dd3,_0x27a275,_0x402c1f)=>{const _0x20c808=_0x168ac6;var _0x1bc9c8,_0x3139e8,_0x3dae33,_0x859fee,_0x32926b,_0x2e6652,_0x36a058,_0x5806f0,_0x5da47b,_0x1140c3,_0x2e7ab8,_0x15da04;const {cornerView:_0x515887,rowView:_0x11a38a,colView:_0x86b1de,dataView:_0x2ae232,pageView:_0x1a6789,formatMap:_0x541b1e}=_0x452dd3,{row:_0x3ff982,col:_0x5802d0}=_0x27a275,_0x3a5574=new _0x502ce1['ObjectMatrix']();let _0xdfb7db=_0x3ff982,_0x285d10=_0x5802d0;Object[_0x20c808(0x375)](_0x1a6789['data'])[_0x20c808(0x314)](_0x56358f=>{const _0x488f38=_0x20c808;Object['keys'](_0x1a6789[_0x488f38(0x413)][Number(_0x56358f)])[_0x488f38(0x314)](_0x8ac62e=>{const _0x2bc174=_0x488f38,_0x2a64db={..._0x1a6789[_0x2bc174(0x413)][Number(_0x56358f)][Number(_0x8ac62e)]};_0x3a5574[_0x2bc174(0x206)](Number(_0x56358f)+_0xdfb7db,Number(_0x8ac62e)+_0x285d10,_0x56c026(_0x2a64db));});});const _0x5dc7fb=Object['keys'](_0x1a6789[_0x20c808(0x413)])['length'];_0xdfb7db+=_0x5dc7fb+(_0x5dc7fb?_0x3b501c:0x0);const _0x41ec2b=_0x515887[_0x20c808(0x47d)](),_0x3e53fb=_0x515887['getColCount']();for(let _0x3bb098=0x0;_0x3bb098<_0x41ec2b;_0x3bb098++)for(let _0x2c3c0c=0x0;_0x2c3c0c<_0x3e53fb;_0x2c3c0c++){const _0x2d34a6={...(_0x3139e8=(_0x1bc9c8=_0x515887[_0x20c808(0x413)])==null?void 0x0:_0x1bc9c8[_0x3bb098])==null?void 0x0:_0x3139e8[_0x2c3c0c]};_0x2d34a6&&((_0x3dae33=_0x11a38a[_0x20c808(0x1fc)][_0x2c3c0c])!=null&&_0x3dae33[_0x20c808(0x211)])&&_0x2c3c0c===_0x3e53fb-0x1&&_0x3bb098===_0x41ec2b-0x1&&(_0x2d34a6['v']=''+_0x402c1f['sheets-pivot.value']),_0x3a5574[_0x20c808(0x206)](_0x3bb098+_0xdfb7db,_0x2c3c0c+_0x285d10,_0x56c026(_0x2d34a6));}_0x285d10+=_0x3e53fb;const _0x269c0d=_0x86b1de[_0x20c808(0x1fc)],_0x8f75b2=_0x86b1de['getLastRow']()>=0x0?_0x86b1de[_0x20c808(0x21e)]()+0x1:0x0,_0x893109=_0x86b1de[_0x20c808(0x47f)]()>=0x0?_0x86b1de[_0x20c808(0x47f)]()+0x1:0x0;for(let _0x262ea2=0x0;_0x262ea2<_0x893109;_0x262ea2++)for(let _0xbc3d3e=0x0;_0xbc3d3e<_0x8f75b2;_0xbc3d3e++){const _0x2cda3b={...(_0x32926b=(_0x859fee=_0x86b1de[_0x20c808(0x413)])==null?void 0x0:_0x859fee[_0x262ea2])==null?void 0x0:_0x32926b[_0xbc3d3e]},_0x3320ca=(_0x2e6652=_0x269c0d[_0x262ea2])==null?void 0x0:_0x2e6652[_0x20c808(0x3ab)],_0x3ac6b8=_0x541b1e[_0x3320ca];_0x2cda3b&&(_0x2cda3b['v']=_0x4667ce(_0x2cda3b,_0x262ea2===0x0&&((_0x36a058=_0x86b1de[_0x20c808(0x2c4)](_0xbc3d3e+0x1))==null?void 0x0:_0x36a058[_0x20c808(0x211)]),_0x3ac6b8,_0x402c1f)),_0x3a5574[_0x20c808(0x206)](_0x262ea2+_0xdfb7db,_0xbc3d3e+_0x285d10,_0x56c026(_0x2cda3b));}_0xdfb7db+=_0x41ec2b;const _0x37efdb=_0x11a38a[_0x20c808(0x1fc)],_0x46680a=_0x11a38a['getLastRow']()>=0x0?_0x11a38a[_0x20c808(0x21e)]()+0x1:0x0,_0x37ed0e=_0x11a38a['getLastCol']()>=0x0?_0x11a38a[_0x20c808(0x47f)]()+0x1:0x0;for(let _0x50d775=0x0;_0x50d775<_0x46680a;_0x50d775++)for(let _0x2d9367=0x0;_0x2d9367<_0x37ed0e;_0x2d9367++){const _0xb53beb={...(_0x5da47b=(_0x5806f0=_0x11a38a['data'])==null?void 0x0:_0x5806f0[_0x50d775])==null?void 0x0:_0x5da47b[_0x2d9367]},_0x376064=(_0x1140c3=_0x37efdb[_0x2d9367])==null?void 0x0:_0x1140c3[_0x20c808(0x3ab)],_0x2298f8=_0x541b1e[_0x376064];_0xb53beb&&(_0xb53beb['v']=_0x4667ce(_0xb53beb,!0x1,_0x2298f8,_0x402c1f)),_0x3a5574[_0x20c808(0x206)](_0x50d775+_0xdfb7db,_0x2d9367+_0x5802d0,_0x56c026(_0xb53beb));}const _0x1e524d=_0x2ae232[_0x20c808(0x47d)](),_0x423aea=_0x2ae232[_0x20c808(0x3f7)]();for(let _0x33dabf=0x0;_0x33dabf<_0x1e524d;_0x33dabf++)for(let _0x117922=0x0;_0x117922<_0x423aea;_0x117922++){const _0x509519={...(_0x15da04=(_0x2e7ab8=_0x2ae232[_0x20c808(0x413)])==null?void 0x0:_0x2e7ab8[_0x33dabf])==null?void 0x0:_0x15da04[_0x117922]};_0x3a5574[_0x20c808(0x206)](_0x33dabf+_0xdfb7db,_0x117922+_0x285d10,_0x56c026(_0x509519));}return _0x3a5574;},_0x25bc44=_0x56c664=>{const _0x9aa09a=_0x168ac6,{view:_0xa06433,targetCellInfo:_0xeb7089,isEmpty:_0x141a9e,textInfo:_0xed63dc}=_0x56c664;if(_0x141a9e)return _0x2653fb(_0x56c664);const {pageView:_0xd1a9e0,cornerView:_0x3e58aa,rowView:_0x262b9b,colView:_0x1a8425,dataView:_0x56da2f}=_0xa06433,_0x354f66=_0x573266(_0xeb7089,_0xd1a9e0,!0x0),_0x27e9a9=_0xd1a9e0['lastRow']>=0x0?_0xd1a9e0[_0x9aa09a(0x404)]+0x1:0x0,_0x1443e6=_0x3e58aa['getRowCount'](),_0xa6e8e2=_0x3e58aa[_0x9aa09a(0x3f7)](),_0x19b975=_0x354f66[_0x9aa09a(0x4d2)]>0x0?_0x3b501c:0x0,_0x3f6bfc=_0x573266({'row':_0xeb7089[_0x9aa09a(0x2f0)]+_0x27e9a9+_0x19b975,'col':_0xeb7089[_0x9aa09a(0x40d)]},_0x3e58aa,!0x1,!0x1),_0x515d53=_0x573266({'row':_0xeb7089[_0x9aa09a(0x2f0)]+_0x27e9a9+_0x19b975+_0x1443e6,'col':_0xeb7089['col']},_0x262b9b,!0x1,!0x0),_0xfc5047=_0x573266({'row':_0xeb7089[_0x9aa09a(0x2f0)]+_0x27e9a9+_0x19b975,'col':_0xeb7089[_0x9aa09a(0x40d)]+_0xa6e8e2},_0x1a8425,!0x1,!0x0),_0x5b52ac=_0x573266({'row':_0xeb7089['row']+_0x27e9a9+_0x19b975+_0x1443e6,'col':_0xeb7089['col']+_0xa6e8e2},_0x56da2f,!0x1,!0x1),_0x4e6777={'rowRanges':_0x515d53,'colRanges':_0xfc5047,'cornerRanges':_0x3f6bfc,'dataRanges':_0x5b52ac,'pageRanges':_0x354f66};return{'matrix':_0xdb3ef7(_0xa06433,_0xeb7089,_0xed63dc),'rangesCache':_0x4e6777};};var _0x55593d=Object[_0x168ac6(0x2ec)],_0x453f95=(_0x371038,_0x59ac57,_0x5eb525,_0x19301c)=>{const _0x95f238=_0x168ac6;for(var _0x3cb35b=_0x19301c>0x1?void 0x0:_0x19301c?_0x55593d(_0x59ac57,_0x5eb525):_0x59ac57,_0xdbcf5f=_0x371038[_0x95f238(0x4d2)]-0x1,_0x3a2a6b;_0xdbcf5f>=0x0;_0xdbcf5f--)(_0x3a2a6b=_0x371038[_0xdbcf5f])&&(_0x3cb35b=_0x3a2a6b(_0x3cb35b)||_0x3cb35b);return _0x3cb35b;},_0x236169=(_0x4c1f41,_0x1517bf)=>(_0xe133f4,_0x2608e0)=>_0x1517bf(_0xe133f4,_0x2608e0,_0x4c1f41);_0x44c9e4[_0x168ac6(0x31f)]=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x23a0b6,_0x46fbcc,_0xe58a53,_0x347a77,_0x44173a,_0x256e2b){const _0x422152=_0x168ac6;super(),_0x2d9017(this,_0x422152(0x1f4),new Map()),_0x2d9017(this,_0x422152(0x2e8),new Map()),_0x2d9017(this,_0x422152(0x408),new Map()),_0x2d9017(this,_0x422152(0x4b1)),_0x2d9017(this,_0x422152(0x3aa),new _0x146a1c['Subject']()),_0x2d9017(this,_0x422152(0x35c),this[_0x422152(0x3aa)][_0x422152(0x2f8)]()),_0x2d9017(this,_0x422152(0x4cc),new _0x146a1c[(_0x422152(0x36b))]()),_0x2d9017(this,'viewData$',this['_viewData$'][_0x422152(0x2f8)]()),_0x2d9017(this,_0x422152(0x464),new _0x146a1c[(_0x422152(0x36b))]()),_0x2d9017(this,_0x422152(0x344),this['_fieldsCollectionChange$'][_0x422152(0x2f8)]()),_0x2d9017(this,_0x422152(0x3f5),new Map()),_0x2d9017(this,_0x422152(0x2ad),[]),_0x2d9017(this,'_queryingMap',new Map()),(this['_injector']=_0x23a0b6,this[_0x422152(0x43d)]=_0x46fbcc,this['_lifecycleService']=_0xe58a53,this[_0x422152(0x2c7)]=_0x347a77,this['_commandService']=_0x44173a,this[_0x422152(0x42c)]=_0x256e2b,this[_0x422152(0x22b)]());}[_0x168ac6(0x28a)](){return this['_textInfo']?this['_textInfo']:_0x382746;}['setTextInfo'](_0x41b11b){const _0x277bad=_0x168ac6;this[_0x277bad(0x4b1)]=_0x41b11b;}[_0x168ac6(0x22e)](_0x523039){const _0x29ab46=_0x168ac6;var _0x314af1;const {from:_0xc45775,to:_0x2f7d9a,unitId:_0x154c67,fromRange:_0x2cc31b,toRange:_0x132f15}=_0x523039;if(_0xc45775&&_0x2f7d9a){const _0x17d06e=this[_0x29ab46(0x330)](_0x154c67),_0x5d8b2b=this[_0x29ab46(0x1f4)]['get'](_0x154c67),_0x8648ac=(_0x314af1=this['_univerInstanceService']['getUnit'](_0x154c67))==null?void 0x0:_0x314af1[_0x29ab46(0x45f)](_0x2f7d9a['subUnitId']);if(!_0x5d8b2b||!_0x8648ac)return;const _0x2edad6=_0x8648ac==null?void 0x0:_0x8648ac[_0x29ab46(0x4ba)]();for(const [_0x565c51,_0x3b2db2]of _0x5d8b2b[_0x29ab46(0x429)]())for(const [_0x4816b7,_0x1ee126]of _0x3b2db2[_0x29ab46(0x429)]()){const {sourceRangeInfo:_0x4157e9}=_0x1ee126;if(_0x4157e9[_0x29ab46(0x43e)]===_0x154c67&&_0x4157e9[_0x29ab46(0x389)]===_0xc45775[_0x29ab46(0x389)]&&_0x502ce1[_0x29ab46(0x469)][_0x29ab46(0x388)](_0x2cc31b,_0x4157e9[_0x29ab46(0x3c6)])){const _0x43b369={'row':_0x4157e9['range']['startRow']-_0x2cc31b[_0x29ab46(0x41f)],'col':_0x4157e9[_0x29ab46(0x3c6)][_0x29ab46(0x291)]-_0x2cc31b[_0x29ab46(0x291)]},_0x3dbf26={'unitId':_0x154c67,'subUnitId':_0x2f7d9a[_0x29ab46(0x389)],'sheetName':_0x2edad6,'range':{'startRow':_0x132f15[_0x29ab46(0x41f)]+_0x43b369[_0x29ab46(0x2f0)],'endRow':_0x132f15[_0x29ab46(0x41f)]+_0x43b369[_0x29ab46(0x2f0)]+_0x4157e9[_0x29ab46(0x3c6)][_0x29ab46(0x4cd)]-_0x4157e9['range'][_0x29ab46(0x41f)],'startColumn':_0x132f15['startColumn']+_0x43b369[_0x29ab46(0x40d)],'endColumn':_0x132f15[_0x29ab46(0x291)]+_0x43b369['col']+_0x4157e9['range'][_0x29ab46(0x42b)]-_0x4157e9[_0x29ab46(0x3c6)]['startColumn']}};_0x17d06e[_0x29ab46(0x22e)](_0x4816b7,_0x3dbf26);const _0x70ca04={..._0x1ee126,'sourceRangeInfo':_0x3dbf26};this[_0x29ab46(0x3ea)](_0x154c67,_0x2f7d9a[_0x29ab46(0x389)],_0x4816b7,_0x70ca04),this[_0x29ab46(0x4d8)]({'unitId':_0x154c67,'token':_0x4816b7,'type':_0x457c5a[_0x29ab46(0x3e1)],'oldSourceRangeInfo':_0x4157e9,'dataRangeInfo':_0x3dbf26,'targetCellInfo':_0x1ee126[_0x29ab46(0x38e)]}),this['updateConfig']({'unitId':_0x154c67,'subUnitId':_0x2f7d9a[_0x29ab46(0x389)],'oldSubUnitId':_0x565c51,'pivotTableId':_0x4816b7,'pivotTableConfig':_0x70ca04,'collectionConfig':_0x17d06e['toJSON']()});}}}}[_0x168ac6(0x4d8)](_0x2a0cfe){const _0x1690e9=_0x168ac6;this['_collectionChange$'][_0x1690e9(0x21d)](_0x2a0cfe);}[_0x168ac6(0x330)](_0x5be4b8){const _0x23606a=_0x168ac6;let _0x4375e9=this[_0x23606a(0x3f5)][_0x23606a(0x4c2)](_0x5be4b8);return _0x4375e9||(_0x4375e9=new _0x86b82(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x23606a(0x263)](_0x5be4b8,_0x4375e9)),_0x4375e9;}['getCollection'](_0x1a8bfa,_0x503e15){const _0x14a821=_0x168ac6;return this['getDataFieldManager'](_0x1a8bfa)[_0x14a821(0x235)][_0x503e15];}[_0x168ac6(0x3fd)](_0x52bdde,_0x537289,_0x2b31cd){return this['getDataFieldManager'](_0x52bdde)['getUpdateRangeDeleteIds'](_0x537289,_0x2b31cd);}[_0x168ac6(0x316)](_0x48e751,_0xa59317){const _0x43f31f=_0x168ac6;let _0x277142=this['_model'][_0x43f31f(0x4c2)](_0x48e751);_0x277142||(_0x277142=new Map(),this[_0x43f31f(0x1f4)][_0x43f31f(0x263)](_0x48e751,_0x277142));let _0xf219fa=_0x277142[_0x43f31f(0x4c2)](_0xa59317);return _0xf219fa||(_0xf219fa=new Map(),_0x277142[_0x43f31f(0x263)](_0xa59317,_0xf219fa)),_0xf219fa;}[_0x168ac6(0x3ea)](_0x2a95ac,_0x1d6f67,_0x429661,_0x3596ce){const _0x393266=_0x168ac6;this[_0x393266(0x316)](_0x2a95ac,_0x1d6f67)[_0x393266(0x263)](_0x429661,_0x3596ce);}[_0x168ac6(0x247)](_0x532832,_0x4ce2a8,_0x3ab546){const _0x42ad00=_0x168ac6;var _0xdcbc62,_0x13f1c2,_0x16fbad,_0x392227;((_0x13f1c2=(_0xdcbc62=this[_0x42ad00(0x1f4)][_0x42ad00(0x4c2)](_0x532832))==null?void 0x0:_0xdcbc62['get'](_0x4ce2a8))==null?void 0x0:_0x13f1c2[_0x42ad00(0x4c2)](_0x3ab546))&&((_0x392227=(_0x16fbad=this['_model'][_0x42ad00(0x4c2)](_0x532832))==null?void 0x0:_0x16fbad[_0x42ad00(0x4c2)](_0x4ce2a8))==null||_0x392227[_0x42ad00(0x272)](_0x3ab546));}[_0x168ac6(0x256)](_0x3af041,_0x4dec12){const _0x4f9fe0=_0x168ac6;this[_0x4f9fe0(0x2e8)][_0x4f9fe0(0x263)](_0x3af041,_0x4dec12);}[_0x168ac6(0x28d)](_0x354727){const _0x72ceff=_0x168ac6;this['_pivotTableInstanceCache'][_0x72ceff(0x272)](_0x354727);}['_ensureViewDataMap'](_0x3556c8,_0x3bbdfd){const _0x198102=_0x168ac6;let _0x5ce3fc=this[_0x198102(0x408)][_0x198102(0x4c2)](_0x3556c8);_0x5ce3fc||(_0x5ce3fc=new Map(),this[_0x198102(0x408)][_0x198102(0x263)](_0x3556c8,_0x5ce3fc));let _0x474258=_0x5ce3fc[_0x198102(0x4c2)](_0x3bbdfd);return _0x474258||(_0x474258=new Map(),_0x5ce3fc[_0x198102(0x263)](_0x3bbdfd,_0x474258)),_0x474258;}['updateConfig'](_0x2e7712){const _0x2ac7a2=_0x168ac6,{unitId:_0x37c685,subUnitId:_0x5a2e67,pivotTableId:_0x5bbe05,pivotTableConfig:_0x53c723,collectionConfig:_0x416072}=_0x2e7712,_0x4bcd45={'unitId':_0x37c685,'subUnitId':_0x5a2e67,'oldSubUnitId':_0x5a2e67,'pivotTableId':_0x5bbe05,'pivotTableConfig':_0x53c723,'collectionConfig':_0x416072};this[_0x2ac7a2(0x377)]['executeCommand'](_0x5c13d5['id'],_0x4bcd45,{'onlyLocal':!0x0});}[_0x168ac6(0x428)](_0x4dc731,_0x5e9966,_0x31d296,_0x597bfd,_0x41e201,_0x33f36b,_0x599fe5,_0xc9e05d=!0x1){const _0x659e81=_0x168ac6;var _0x5d01d8;this[_0x659e81(0x377)]['executeCommand'](_0x57fc95['id'],{'single':{'unitId':_0x4dc731,'subUnitId':_0x5e9966,'type':_0x31d296,'pivotTableId':_0x597bfd,'view':_0x41e201,'pivotConfig':_0x33f36b},'collectionConfig':{[_0x4dc731]:_0x599fe5}},{'onlyLocal':!0x0});const _0x4cc820=!!((_0x5d01d8=this[_0x659e81(0x42a)](_0x597bfd))!=null&&_0x5d01d8[_0x659e81(0x431)]()),_0x373be7=this[_0x659e81(0x20c)](_0x4dc731,_0x5e9966,_0x597bfd);_0x373be7&&this[_0x659e81(0x3a5)]({'view':_0x41e201,'pivotTableId':_0x597bfd,'textInfo':this[_0x659e81(0x28a)](),'isEmpty':_0x4cc820,'targetCellInfo':_0x373be7[_0x659e81(0x38e)]},_0xc9e05d);}['updateViewData'](_0x3e465f,_0x10c1b2){const _0x354a31=_0x168ac6,{targetCellInfo:_0x5ebe48,pivotTableId:_0x2b35a2}=_0x3e465f,{unitId:_0x10621d,subUnitId:_0x8d8862}=_0x5ebe48,_0x4ae90f=this[_0x354a31(0x370)](_0x10621d,_0x8d8862),_0x5ba42c=_0x4ae90f[_0x354a31(0x4c2)](_0x2b35a2);let _0x79bf26,_0x766fc0;_0x5ba42c&&(_0x79bf26=_0x5ba42c[_0x354a31(0x4c0)],_0x766fc0=_0x5ba42c[_0x354a31(0x2ce)]);const {rangesCache:_0x34cbf7,matrix:_0x99ed69}=_0x25bc44(_0x3e465f);_0x4ae90f[_0x354a31(0x263)](_0x2b35a2,{'rangeCache':_0x34cbf7,'matrix':_0x99ed69,'oldMatrix':_0x766fc0,'oldRangeCache':_0x79bf26}),_0x10c1b2||this[_0x354a31(0x4cc)][_0x354a31(0x21d)]({'unitId':_0x10621d,'subUnitId':_0x8d8862,'pivotTableId':_0x2b35a2});}['addPivotTable'](_0x536e20,_0x15b437,_0x4afd75,_0xf3efcb,_0x4eda68){const _0x2c9eeb=_0x168ac6;this[_0x2c9eeb(0x3ea)](_0x536e20,_0x15b437,_0x4afd75,_0x4eda68),this[_0x2c9eeb(0x256)](_0x4afd75,_0xf3efcb);}[_0x168ac6(0x264)](_0x2b18fb,_0x299784,_0x2f3495){const _0x31ac07=_0x168ac6,_0x209126=this['getDataFieldManager'](_0x2b18fb);_0x209126[_0x31ac07(0x287)](_0x2f3495)[_0x31ac07(0x314)](_0x46ae1e=>{_0x209126['deleteDataField'](_0x46ae1e);}),this[_0x31ac07(0x3a9)](_0x2b18fb,_0x2f3495),this[_0x31ac07(0x247)](_0x2b18fb,_0x299784,_0x2f3495),this[_0x31ac07(0x28d)](_0x2f3495);}[_0x168ac6(0x29c)](_0x5a4cde,_0x1de605,_0x865d53,_0x5e816e){const _0x1451fb=_0x168ac6;this[_0x1451fb(0x3ea)](_0x5a4cde,_0x1de605,_0x865d53,_0x5e816e);}[_0x168ac6(0x20c)](_0x19985e,_0x103654,_0xcdbd09){const _0x42a41c=_0x168ac6;var _0x15571f,_0x1671a4;const _0x3db2c0=(_0x1671a4=(_0x15571f=this[_0x42a41c(0x1f4)]['get'](_0x19985e))==null?void 0x0:_0x15571f[_0x42a41c(0x4c2)](_0x103654))==null?void 0x0:_0x1671a4[_0x42a41c(0x4c2)](_0xcdbd09);if(_0x3db2c0)return _0x3db2c0;}['getPivotTableModelConfig'](_0x40cc12,_0x2739e7,_0x3f48cd){const _0x23661b=_0x168ac6;var _0x22e06c,_0x27de5d;const _0x673490=(_0x27de5d=(_0x22e06c=this[_0x23661b(0x1f4)][_0x23661b(0x4c2)](_0x40cc12))==null?void 0x0:_0x22e06c['get'](_0x2739e7))==null?void 0x0:_0x27de5d['get'](_0x3f48cd);if(_0x673490)return _0x673490[_0x23661b(0x3f6)];}[_0x168ac6(0x42a)](_0x37cf7a){return this['_pivotTableInstanceCache']['get'](_0x37cf7a);}[_0x168ac6(0x382)](_0x48b3df){const _0x504040=_0x168ac6;this['_model'][_0x504040(0x272)](_0x48b3df);const _0x22437a=this[_0x504040(0x3f5)]['get'](_0x48b3df);_0x22437a&&(_0x22437a[_0x504040(0x4c7)](),this['_dataFieldManagerCollection'][_0x504040(0x272)](_0x48b3df)),this['_viewData'][_0x504040(0x272)](_0x48b3df),this[_0x504040(0x2ad)][_0x504040(0x314)](_0x359e9f=>{const _0x4289f0=_0x504040;_0x359e9f[_0x4289f0(0x382)](_0x48b3df);});}['addCollectionByJSON'](_0x19431f,_0x1a8f76,_0x400cb3,_0x5e4bde){const _0x5bd227=_0x168ac6;return this[_0x5bd227(0x330)](_0x400cb3[_0x5bd227(0x43e)])[_0x5bd227(0x451)](_0x19431f,_0x1a8f76,_0x400cb3,_0x5e4bde);}['createCollectionWithDataRange'](_0x1b4dc0){const _0x1dc2fe=_0x168ac6;return this['getDataFieldManager'](_0x1b4dc0[_0x1dc2fe(0x43e)])[_0x1dc2fe(0x274)](_0x1b4dc0);}['refreshData'](_0x232db5,_0x423764,_0x217e01){const _0x16322f=_0x168ac6;this['getDataFieldManager'](_0x217e01['unitId'])[_0x16322f(0x49a)](_0x232db5,_0x423764,_0x217e01);}[_0x168ac6(0x2a3)](_0x17ccf2,_0xe2691e){const _0x5d498c=_0x168ac6;this[_0x5d498c(0x330)](_0x17ccf2)['deleteDataField'](_0xe2691e);}[_0x168ac6(0x3a9)](_0x1192f8,_0x7e070e){this['getDataFieldManager'](_0x1192f8)['removeCollectionImp'](_0x7e070e);}[_0x168ac6(0x4f6)](_0x563ecb,_0x4d025f){const _0x220ba6=_0x168ac6;var _0x5da8d6;return(_0x5da8d6=this[_0x220ba6(0x1f4)]['get'](_0x563ecb))==null?void 0x0:_0x5da8d6[_0x220ba6(0x4c2)](_0x4d025f);}[_0x168ac6(0x343)](_0x48d254){const _0x23cce1=_0x168ac6;for(const [_0x3367b9,_0x3e35b2]of this[_0x23cce1(0x1f4)][_0x23cce1(0x429)]())for(const [_0x1400b8,_0x10fc25]of _0x3e35b2[_0x23cce1(0x429)]())if(_0x10fc25['has'](_0x48d254))return{'unitId':_0x3367b9,'subUnitId':_0x1400b8};return null;}[_0x168ac6(0x293)](_0x1b1b39,_0x167fd0,_0x5514ec,_0x15e5a1){const _0x133978=_0x168ac6,_0x556ea4=this[_0x133978(0x370)](_0x1b1b39,_0x167fd0);_0x15e5a1?_0x556ea4[_0x133978(0x263)](_0x5514ec,_0x15e5a1):_0x556ea4[_0x133978(0x272)](_0x5514ec),this['_viewData$'][_0x133978(0x21d)]({'unitId':_0x1b1b39,'subUnitId':_0x167fd0,'pivotTableId':_0x5514ec});}[_0x168ac6(0x4c7)](){super['dispose']();}[_0x168ac6(0x30c)](_0x698443,_0x374ee4,_0x5cac77){const _0x336634=_0x168ac6;var _0x423259,_0x3fbd6d;const _0x136669=(_0x3fbd6d=(_0x423259=this[_0x336634(0x408)][_0x336634(0x4c2)](_0x698443))==null?void 0x0:_0x423259['get'](_0x374ee4))==null?void 0x0:_0x3fbd6d[_0x336634(0x4c2)](_0x5cac77);return _0x136669||null;}[_0x168ac6(0x4d6)](_0x3c3d23){const _0x48574f=_0x168ac6;this[_0x48574f(0x210)](_0x3c3d23);}['updateDirtyPivotTable'](_0x18bf5c){const _0x489b2a=_0x168ac6,{token:_0x4978ae,unitId:_0x393241,subUnitId:_0x3b85eb}=_0x18bf5c,_0x2f1d37=_0x393241+'-'+_0x3b85eb+'-'+_0x4978ae;this[_0x489b2a(0x488)][_0x489b2a(0x4c2)](_0x2f1d37)&&clearTimeout(this['_queryingMap'][_0x489b2a(0x4c2)](_0x2f1d37));const _0x524809=setTimeout(()=>{const _0x1425e9=_0x489b2a;this[_0x1425e9(0x2c6)](_0x18bf5c),this[_0x1425e9(0x488)][_0x1425e9(0x272)](_0x2f1d37);},_0x58dd49);this['_queryingMap']['set'](_0x2f1d37,_0x524809);}[_0x168ac6(0x2c6)](_0x501550){const _0x20dc7b=_0x168ac6,{unitId:_0x2361f1,subUnitId:_0x2dae0b,token:_0x1fdb9a,type:_0x56f173,pivotConfig:_0x1c1875}=_0x501550,_0x386052=this[_0x20dc7b(0x42a)](_0x1fdb9a),_0x2214c1=_0x386052==null?void 0x0:_0x386052[_0x20dc7b(0x43f)](),_0x1d50de=_0x1c1875!=null?_0x1c1875:this[_0x20dc7b(0x20c)](_0x2361f1,_0x2dae0b,_0x1fdb9a);_0x1d50de&&(_0x1d50de[_0x20dc7b(0x431)]=!!(_0x386052!=null&&_0x386052[_0x20dc7b(0x431)]())),(_0x2214c1||_0x56f173===_0x44d5f2['Delete'])&&this[_0x20dc7b(0x428)](_0x2361f1,_0x2dae0b,_0x56f173,_0x1fdb9a,_0x2214c1,_0x1d50de,this['getDataFieldManager'](_0x2361f1)[_0x20dc7b(0x26d)]());}[_0x168ac6(0x26d)](_0x52cd4f){const _0x2d37fc=_0x168ac6,_0x242fe4={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x2d37fc(0x330)](_0x52cd4f)&&(_0x242fe4['dataFieldManagerConfig'][_0x52cd4f]=this['getDataFieldManager'](_0x52cd4f)[_0x2d37fc(0x26d)]()),this[_0x2d37fc(0x1f4)][_0x2d37fc(0x4c2)](_0x52cd4f)){_0x242fe4[_0x2d37fc(0x4ed)][_0x52cd4f]={};const _0xc8181a=this[_0x2d37fc(0x1f4)]['get'](_0x52cd4f);_0xc8181a!=null&&_0xc8181a[_0x2d37fc(0x381)]&&[..._0xc8181a['keys']()]['forEach'](_0x2ef43e=>{const _0xf92b25=_0x2d37fc,_0x1e80c3=_0xc8181a[_0xf92b25(0x4c2)](_0x2ef43e);_0x1e80c3!=null&&_0x1e80c3[_0xf92b25(0x381)]&&(_0x242fe4[_0xf92b25(0x4ed)][_0x52cd4f][_0x2ef43e]={},[..._0x1e80c3[_0xf92b25(0x375)]()][_0xf92b25(0x314)](_0x5458b3=>{const _0x167e2e=_0xf92b25,_0x201db5=_0x1e80c3[_0x167e2e(0x4c2)](_0x5458b3);_0x201db5&&(_0x242fe4[_0x167e2e(0x4ed)][_0x52cd4f][_0x2ef43e][_0x5458b3]=_0x201db5);}));});}return _0x242fe4;}[_0x168ac6(0x4ea)](_0x790404){const _0x1da339=_0x168ac6;var _0x3ba44a;const {dataFieldManagerConfig:_0x253b99,pivotTableConfigs:_0x5821a9}=_0x790404;_0x253b99&&Object[_0x1da339(0x375)](_0x253b99)[_0x1da339(0x314)](_0x2aa668=>{const _0x5e36ce=_0x1da339;this['getDataFieldManager'](_0x2aa668)[_0x5e36ce(0x4ea)](_0x253b99[_0x2aa668]);});const _0x31932c=[];if(_0x5821a9){const _0x3cad84=(_0x3ba44a=this[_0x1da339(0x360)][_0x1da339(0x4c2)](_0x502ce1['IConfigService'])['getConfig'](_0x443236[_0x1da339(0x23c)]))!=null?_0x3ba44a:{},{ls:_0x24226b,pbk:_0xba1222}=_0x3cad84,_0xc3ed6b=_0x37a464(_0x22b7d5,_0x24226b,_0xba1222)[_0x1da339(0x3bd)];Object['keys'](_0x5821a9)[_0x1da339(0x314)](_0x32c252=>{const _0x4291b7=_0x1da339;let _0x1d5593=0x0;const _0x8ed13e=_0x5821a9[_0x32c252];Object['keys'](_0x8ed13e)[_0x4291b7(0x314)](_0x14d228=>{const _0x148b27=_0x4291b7,_0x3036bb=_0x8ed13e[_0x14d228];Object[_0x148b27(0x375)](_0x3036bb)[_0x148b27(0x314)](_0x2bb453=>{const _0x4beb9f=_0x148b27,_0x5d0377=_0x3036bb[_0x2bb453];if(_0x5d0377){if(_0x1d5593>=_0xc3ed6b)return;_0x1d5593++;const _0x11bc9f=this[_0x4beb9f(0x330)](_0x32c252),_0x474b0c=_0x11bc9f[_0x4beb9f(0x235)][_0x2bb453],_0x4036af=_0x474b0c[_0x4beb9f(0x250)]();let _0xed3753=0x0;const _0xd87b2f=[];for(const _0x31919c of _0x4036af){const _0x56b0ff=_0x474b0c[_0x4beb9f(0x2b4)](_0x31919c);if(_0x2371ae[_0x4beb9f(0x493)](_0x56b0ff)){const _0x5d0688=_0x56b0ff[_0x4beb9f(0x248)](),_0x26ae1a=_0x474b0c[_0x4beb9f(0x2b4)](_0x5d0688);_0x26ae1a&&_0xd87b2f[_0x4beb9f(0x412)]([_0x56b0ff,_0x26ae1a]);continue;}_0x11bc9f[_0x4beb9f(0x387)](_0x31919c,_0x5d0377[_0x4beb9f(0x3bf)],_0xed3753),_0xed3753++;}_0xd87b2f['forEach'](([_0x31e0b6,_0x30dbe0])=>{const _0x3ecd7f=_0x4beb9f;_0x31e0b6[_0x3ecd7f(0x221)](_0x30dbe0);});const _0x560854=new _0x2371ae[(_0x4beb9f(0x3e4))](_0x474b0c);_0x560854[_0x4beb9f(0x4ea)](_0x5d0377[_0x4beb9f(0x3f6)]),this['addPivotTable'](_0x32c252,_0x14d228,_0x2bb453,_0x560854,_0x5d0377);const _0x391873=_0x560854[_0x4beb9f(0x43f)]();_0x31932c[_0x4beb9f(0x412)]({'unitId':_0x32c252,'subUnitId':_0x14d228,'pivotTableId':_0x2bb453,'view':_0x391873[_0x4beb9f(0x26d)](),'pivotConfig':_0x5d0377,'type':_0x44d5f2['Add']});const _0x5000e0=!!_0x560854[_0x4beb9f(0x431)](),_0x1621f6={'view':_0x391873,'pivotTableId':_0x2bb453,'textInfo':this[_0x4beb9f(0x28a)](),'isEmpty':_0x5000e0,'targetCellInfo':_0x5d0377[_0x4beb9f(0x38e)]};this[_0x4beb9f(0x3a5)](_0x1621f6,!0x1);}});});});}_0x253b99&&Object[_0x1da339(0x375)](_0x253b99)[_0x1da339(0x314)](_0x34a569=>{const _0x101925=_0x1da339,_0x51cc3a=this[_0x101925(0x330)](_0x34a569);this[_0x101925(0x464)][_0x101925(0x21d)](_0x51cc3a['collections']);}),this[_0x1da339(0x377)][_0x1da339(0x4e2)](_0x57fc95['id'],{'batch':_0x31932c,'collectionConfig':_0x253b99},{'onlyLocal':!0x0});}[_0x168ac6(0x22b)](){const _0xb33600=_0x168ac6;this['disposeWithMe'](this[_0xb33600(0x42c)][_0xb33600(0x4a9)]({'toJson':_0x3408e7=>JSON[_0xb33600(0x467)](this[_0xb33600(0x26d)](_0x3408e7)),'parseJson':_0x4891e0=>{if(!_0x4891e0)return{};try{return JSON['parse'](_0x4891e0);}catch{return{};}},'businesses':[_0x502ce1['UniverInstanceType'][_0xb33600(0x290)]],'pluginName':_0x8316df,'onLoad':(_0xa8a5b0,_0x34ad5e)=>{const _0x1b7ff1=_0xb33600;this[_0x1b7ff1(0x4ea)](_0x34ad5e);},'onUnLoad':_0x24687c=>{this['deleteUnitId'](_0x24687c);}}));}},_0x44c9e4[_0x168ac6(0x31f)]=_0x453f95([_0x236169(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1['Injector'])),_0x236169(0x1,_0x502ce1[_0x168ac6(0x37a)]),_0x236169(0x2,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x4ce)])),_0x236169(0x3,_0x502ce1[_0x168ac6(0x25b)]),_0x236169(0x4,_0x502ce1['ICommandService']),_0x236169(0x5,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1['IResourceManagerService']))],_0x44c9e4[_0x168ac6(0x31f)]);const _0x53d7d2={0x0:{0x0:{'v':_0x168ac6(0x35b),'s':_0xaeea7f}},0x2:{0x1:{'v':'','s':_0xaeea7f},0x2:{'v':'','s':_0xaeea7f},0x3:{'v':_0x168ac6(0x21b),'s':_0xaeea7f},0x4:{'v':'','s':_0xaeea7f},0x5:{'v':'','s':_0xaeea7f}},0x3:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0x4:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0x5:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0x6:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0x7:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0x8:{0x0:{'v':_0x168ac6(0x2f0),'s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':_0x168ac6(0x484),'s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0x9:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0xa:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0xb:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0xc:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}},0xd:{0x0:{'v':'','s':_0xaeea7f},0x1:{'v':'','s':_0x514940},0x2:{'v':'','s':_0x514940},0x3:{'v':'','s':_0x514940},0x4:{'v':'','s':_0x514940},0x5:{'v':'','s':_0x514940}}},_0x3f7156={'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':[]},_0x2f2a96=(_0x36bc3b,_0x32fc78)=>{const _0x3b9ce6=_0x168ac6,_0x530b42=new _0x502ce1[(_0x3b9ce6(0x36d))](),_0x19b7c0=new _0x502ce1['ObjectMatrix'](_0x53d7d2),{row:_0x51f516,col:_0x386b4f}=_0x32fc78;_0x19b7c0['forValue']((_0x22c70a,_0x1649ea,_0x5308db)=>{const _0x20637f=_0x3b9ce6;let _0x3ba387='';_0x5308db['v']==='filter'?_0x3ba387=_0x36bc3b[_0x20637f(0x35b)]:_0x5308db['v']===_0x20637f(0x2f0)?_0x3ba387=_0x36bc3b[_0x20637f(0x2f0)]:_0x5308db['v']===_0x20637f(0x21b)?_0x3ba387=_0x36bc3b[_0x20637f(0x21b)]:_0x5308db['v']===_0x20637f(0x484)&&(_0x3ba387=_0x36bc3b[_0x20637f(0x484)]),_0x530b42[_0x20637f(0x206)](_0x22c70a+_0x51f516,_0x1649ea+_0x386b4f,{..._0x5308db,'v':_0x3ba387});});const _0x4f869b=_0x502ce1[_0x3b9ce6(0x2e1)]['deepClone'](_0x3f7156);return Object[_0x3b9ce6(0x375)](_0x3f7156)[_0x3b9ce6(0x314)](_0x48ffc1=>{const _0x9a8082=_0x3b9ce6;_0x4f869b[_0x48ffc1]=_0x3f7156[_0x48ffc1][_0x9a8082(0x32d)](_0x1ab203=>({..._0x1ab203,'startRow':_0x1ab203['startRow']+_0x51f516,'endRow':_0x1ab203[_0x9a8082(0x4cd)]+_0x51f516,'startColumn':_0x1ab203['startColumn']+_0x386b4f,'endColumn':_0x1ab203[_0x9a8082(0x42b)]+_0x386b4f}));}),{'matrixCache':_0x530b42,'rangesCache':_0x4f869b};};function _0x9cce1(_0x5726c8,_0xda2155){const _0x4d7819=_0x168ac6;let _0x2ed5f9='';const _0x46aa97=this[_0x4d7819(0x28a)]();switch(_0xda2155){case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x4cb)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x42f)]+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x3bd)]:_0x2ed5f9=_0x46aa97['sheets-pivot.countName']+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x455)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x2f7)]+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x2c9)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x485)]+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x34d)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x231)]+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x2a8)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x37d)]+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x3e2)]:_0x2ed5f9=_0x46aa97['sheets-pivot.stdDevName']+_0x5726c8;break;case _0x2371ae[_0x4d7819(0x24d)][_0x4d7819(0x43a)]:_0x2ed5f9=_0x46aa97['sheets-pivot.stdDevpName']+_0x5726c8;break;case _0x2371ae['PivotSubtotalTypeEnum'][_0x4d7819(0x3d4)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x337)]+_0x5726c8;break;case _0x2371ae['PivotSubtotalTypeEnum'][_0x4d7819(0x440)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x26a)]+_0x5726c8;break;case _0x2371ae['PivotSubtotalTypeEnum'][_0x4d7819(0x364)]:_0x2ed5f9=_0x46aa97[_0x4d7819(0x46e)]+_0x5726c8;break;default:_0x2ed5f9=_0x5726c8;break;}return _0x2ed5f9;}function _0xbf46ad(_0x541b28,_0x444565,_0x12e14e,_0x3143e3,_0x12ebe5){const _0x385ef2=_0x168ac6;var _0x36650a,_0x522842,_0x58c603,_0x2153e2,_0x3827c6;const _0x195c97=_0x502ce1[_0x385ef2(0x4b6)](_0x541b28,_0x444565),{rangesInfo:_0x1b8906,areaInfo:_0x2516ce,headerMap:_0xe3819e}=_0x12ebe5;if(!_0x1b8906||!_0x2516ce||!_0xe3819e)return;const _0x4b842b=Object[_0x385ef2(0x375)](_0x1b8906)[_0x385ef2(0x317)](_0x2131b6=>_0x1b8906[_0x2131b6][_0x385ef2(0x23b)](_0x51697f=>_0x502ce1['Rectangle'][_0x385ef2(0x388)](_0x51697f,_0x195c97))),_0x287e3c=_0x2516ce;let _0x2f00be,_0x47b6a7,_0x258a70;if(_0x4b842b===_0x385ef2(0x255))_0x2f00be=(_0x36650a=_0x287e3c==null?void 0x0:_0x287e3c[_0x385ef2(0x4b8)])==null?void 0x0:_0x36650a[_0x541b28],_0x47b6a7=(_0x522842=_0xe3819e==null?void 0x0:_0xe3819e[_0x385ef2(0x47a)])==null?void 0x0:_0x522842[_0x444565],_0x258a70=_0x47b6a7==null?void 0x0:_0x47b6a7[_0x385ef2(0x3ab)];else{if(_0x4b842b==='colRanges')_0x2f00be=(_0x58c603=_0x287e3c==null?void 0x0:_0x287e3c['colInfo'])==null?void 0x0:_0x58c603[_0x444565],_0x47b6a7=(_0x2153e2=_0xe3819e[_0x385ef2(0x380)])==null?void 0x0:_0x2153e2[_0x541b28+0x1+_0x444565-_0x1b8906[_0x385ef2(0x354)][0x0][_0x385ef2(0x291)]],_0x258a70=_0x47b6a7==null?void 0x0:_0x47b6a7[_0x385ef2(0x3ab)];else{if(_0x4b842b===_0x385ef2(0x41e))_0x2f00be=(_0x3827c6=_0x287e3c==null?void 0x0:_0x287e3c[_0x385ef2(0x41c)])==null?void 0x0:_0x3827c6[_0x444565],_0x258a70=_0x2f00be==null?void 0x0:_0x2f00be[_0x385ef2(0x3ab)];else{if(_0x4b842b===_0x385ef2(0x2fc)){const _0x422e7a=_0x12e14e==null?void 0x0:_0x12e14e['fi'];_0x422e7a!==void 0x0&&(_0x258a70=_0x3143e3['getFilterFieldIdByIndex'](_0x422e7a));}}}}return{'filterId':_0x258a70,'info':_0x2f00be,'data':_0x12e14e,'headerInfo':_0x47b6a7};}function _0x1503d8(_0x295c5b,_0x4a3c2e,_0x230f91){const _0x42ad47=_0x168ac6,_0x25399c=_0x295c5b[_0x42ad47(0x4eb)],_0x9f8755=_0x25399c[_0x42ad47(0x250)](),_0x4beceb=new Set();_0x295c5b[_0x42ad47(0x362)](_0x45345b=>{const _0x23c8aa=_0x42ad47;_0x4beceb['add'](_0x45345b[_0x23c8aa(0x444)]);});const _0x38d089=_0x9f8755[_0x42ad47(0x32d)](_0x2d2461=>{const _0x557425=_0x42ad47,_0x4b5350=_0x25399c[_0x557425(0x2b4)](_0x2d2461);return{'checked':_0x4beceb[_0x557425(0x23a)](_0x2d2461),'dataFieldId':_0x4b5350['id'],'id':_0x4b5350['id'],'name':_0x25399c[_0x557425(0x24c)](_0x4b5350['id']),'type':_0x4b5350[_0x557425(0x2a6)](),'pivotTableId':_0x4a3c2e};}),_0x5ba211=[];_0x295c5b[_0x42ad47(0x3ca)](_0x2371ae[_0x42ad47(0x348)][_0x42ad47(0x427)],_0x5b028e=>{const _0x1dd328=_0x42ad47;_0x5ba211[_0x1dd328(0x412)]({'dataFieldId':_0x5b028e[_0x1dd328(0x444)],'tableFieldId':_0x5b028e[_0x1dd328(0x260)](),'displayName':_0x5b028e['getDisplayName']()});});const _0x52b597=[];_0x295c5b['iterateFieldByArea'](_0x2371ae[_0x42ad47(0x348)][_0x42ad47(0x2d9)],_0x3639c7=>{const _0x202bdc=_0x42ad47;_0x52b597[_0x202bdc(0x412)]({'dataFieldId':_0x3639c7['dataFieldId'],'tableFieldId':_0x3639c7['getId'](),'displayName':_0x3639c7[_0x202bdc(0x24c)]()});});const _0x2d0820=[];if(_0x295c5b[_0x42ad47(0x3ca)](_0x2371ae[_0x42ad47(0x348)][_0x42ad47(0x4e3)],_0x33e2ce=>{const _0x22437c=_0x42ad47;_0x2d0820['push']({'dataFieldId':_0x33e2ce[_0x22437c(0x444)],'tableFieldId':_0x33e2ce[_0x22437c(0x260)](),'displayName':_0x33e2ce[_0x22437c(0x24c)](),'format':_0x33e2ce['getFormat'](),'subTotalType':_0x33e2ce['getSubtotal']()});}),_0x2d0820[_0x42ad47(0x4d2)]>0x1){const _0x49beb2=_0x295c5b[_0x42ad47(0x40b)]();(_0x295c5b[_0x42ad47(0x48a)]()?_0x52b597:_0x5ba211)['splice'](_0x49beb2,0x0,{'dataFieldId':'','tableFieldId':_0x42ad47(0x414),'displayName':'ΣValue'});}const _0x24a2a6=[];_0x295c5b['iterateFieldByArea'](_0x2371ae[_0x42ad47(0x348)][_0x42ad47(0x44d)],_0xefb60=>{const _0x2f9cbd=_0x42ad47;_0x24a2a6[_0x2f9cbd(0x412)]({'dataFieldId':_0xefb60[_0x2f9cbd(0x444)],'tableFieldId':_0xefb60[_0x2f9cbd(0x260)](),'displayName':_0xefb60[_0x2f9cbd(0x24c)]()});});const _0x9cdf1c=_0x230f91['sourceRangeInfo'];return{'sourceList':_0x38d089,'sourceRange':_0x9cdf1c,'rowFields':_0x5ba211,'columnFields':_0x52b597,'valueFields':_0x2d0820,'filterFields':_0x24a2a6,'positionInfo':_0x230f91[_0x42ad47(0x38e)]};}function _0xbe024f(_0x422e9c,_0x302944,_0x5915b5='',_0x9593e1={}){const _0xe0f404=_0x168ac6,_0x36a409=_0x422e9c[_0xe0f404(0x4c2)](_0x502ce1[_0xe0f404(0x2e7)]);for(const _0x68d067 in _0x302944)if(Object[_0xe0f404(0x1f7)][_0xe0f404(0x3b0)][_0xe0f404(0x3a1)](_0x302944,_0x68d067)){const _0x3d20de=_0x5915b5?_0x5915b5+'.'+_0x68d067:_0x68d067;typeof _0x302944[_0x68d067]==_0xe0f404(0x4c9)&&_0x302944[_0x68d067]!==null&&!Array[_0xe0f404(0x2dc)](_0x302944[_0x68d067])?_0xbe024f(_0x422e9c,_0x302944[_0x68d067],_0x3d20de,_0x9593e1):_0x9593e1[_0x3d20de]=_0x36a409['t'](_0x3d20de);}return _0x9593e1;}const _0x1dbac6=_0x213f0c=>{const _0x3f25de=_0x168ac6;if(!_0x213f0c)return[];const {rowRanges:_0x485a8e,colRanges:_0x12a20a,cornerRanges:_0x4e369e,dataRanges:_0x3b64e6,pageRanges:_0x2869e0}=_0x213f0c,_0x193fa0=[..._0x12a20a,..._0x485a8e,..._0x3b64e6,..._0x4e369e][_0x3f25de(0x35b)](_0x55c3bc=>_0x55c3bc[_0x3f25de(0x41f)]>=0x0&&_0x55c3bc[_0x3f25de(0x291)]>=0x0&&_0x55c3bc[_0x3f25de(0x4cd)]>=0x0&&_0x55c3bc[_0x3f25de(0x42b)]>=0x0);let _0x2f899e=Number[_0x3f25de(0x47b)],_0x492eaa=Number[_0x3f25de(0x258)],_0x5c7957=Number[_0x3f25de(0x47b)],_0x441469=Number[_0x3f25de(0x258)];for(let _0x271a34=0x0;_0x271a34<_0x193fa0[_0x3f25de(0x4d2)];_0x271a34++)_0x2f899e=Math[_0x3f25de(0x34d)](_0x2f899e,_0x193fa0[_0x271a34][_0x3f25de(0x41f)]),_0x492eaa=Math[_0x3f25de(0x2c9)](_0x492eaa,_0x193fa0[_0x271a34][_0x3f25de(0x4cd)]),_0x5c7957=Math['min'](_0x5c7957,_0x193fa0[_0x271a34][_0x3f25de(0x291)]),_0x441469=Math[_0x3f25de(0x2c9)](_0x441469,_0x193fa0[_0x271a34][_0x3f25de(0x42b)]);return[..._0x2869e0,{'startRow':_0x2f899e,'endRow':_0x492eaa,'startColumn':_0x5c7957,'endColumn':_0x441469}];};function _0x123669(_0x2ec980,_0x14b68a){const _0x4a245a=_0x168ac6,_0x77fbd5=_0x14b68a['params'][_0x4a245a(0x4ec)],{pivotTableId:_0x5311fd,unitId:_0x3d953f,subUnitId:_0x42898c}=_0x14b68a;if(!_0x77fbd5)return;const _0x5d26bc=_0x2ec980[_0x4a245a(0x4c2)](_0x44c9e4[_0x4a245a(0x31f)]),_0x14046a=_0x5d26bc[_0x4a245a(0x42a)](_0x5311fd),_0x2d5391=_0x5d26bc[_0x4a245a(0x20c)](_0x3d953f,_0x42898c,_0x5311fd);if(!_0x14046a||!_0x2d5391)return;const _0x45592e=_0x14046a[_0x4a245a(0x4a4)](_0x77fbd5['tuple']);if(!(_0x45592e!=null&&_0x45592e[_0x4a245a(0x4d2)]))return;const _0x586fb6=_0x2d5391[_0x4a245a(0x3bf)],{unitId:_0x53de36,subUnitId:_0xa33338,range:_0xd2b0c7}=_0x586fb6;let _0x3e4669=0x0;const _0x19a8ff=_0x14046a[_0x4a245a(0x4eb)]['getFieldIds']()[_0x4a245a(0x3fb)]((_0x2863b0,_0x5a8c38)=>{const _0x492258=_0x4a245a;var _0x551b97;const _0x27b811=(_0x551b97=_0x14046a[_0x492258(0x38a)](_0x5a8c38))==null?void 0x0:_0x551b97[_0x492258(0x2da)]();return _0x27b811&&(_0x2863b0[String(_0x3e4669)]=_0x27b811),_0x3e4669++,_0x2863b0;},{});return{'indexes':_0x45592e,'range':_0xd2b0c7,'sourceUnitId':_0x53de36,'sourceSubUnitId':_0xa33338,'formatMap':_0x19a8ff};}function _0x53ca3c(_0xaf947d,_0x47547b){const _0x14ea53=_0x168ac6;if(!_0xaf947d||!_0x47547b)return!0x0;const _0x55f34f=_0x443236[_0x14ea53(0x38c)](_0x1b2fb4,_0x1cf35f),_0xd78487=new Function(_0x14ea53(0x2cb)+_0x55f34f)()(_0xaf947d,_0x47547b)['message'],_0x196f94=_0x443236['isFeatureAuthorizedWithinTime'](_0xd78487,'sf',_0x1fc301);return!((_0xd78487==null?void 0x0:_0xd78487['rt'])===_0x443236['ReleaseType'][_0x14ea53(0x2a7)]&&!_0x196f94);}function _0x37a464(_0x16427f,_0x4a7ffd,_0xa92161){const _0x11f55b=_0x168ac6,_0x6441d6={'count':_0x16427f,'timeValid':!0x1};if(!_0x4a7ffd||!_0xa92161)return _0x6441d6;const _0x3d91cb=_0x443236[_0x11f55b(0x38c)](_0x1b2fb4,_0x1cf35f),_0x12b300=new Function(_0x11f55b(0x2cb)+_0x3d91cb)()(_0x4a7ffd,_0xa92161);if(_0x12b300!=null&&_0x12b300[_0x11f55b(0x299)]){const _0xb8de2d=_0x12b300['message'],_0xdb48c1=_0x443236[_0x11f55b(0x461)](_0xb8de2d,'sf',_0x1fc301);return{'count':_0x443236['getSheetFeatureLimit'](_0xb8de2d,_0xdb48c1,_0x11f55b(0x3de),_0x16427f,_0x16427f,0x0),'timeValid':_0xdb48c1};}return _0x6441d6;}function _0x49f90b(_0x4a4a31,_0x5af694,_0x27087a,_0x2659c6){const _0x1e568d=_0x168ac6,_0x4afe2e={'subUnitId':_0x27087a,'unitId':_0x5af694,'cellValue':_0x2b7376['generateNullCell'](_0x2659c6)},_0x364771=_0x2b7376[_0x1e568d(0x3b1)](_0x4a4a31,_0x4afe2e);let _0x25c292=!0x1;return new _0x502ce1[(_0x1e568d(0x36d))](_0x364771['cellValue'])[_0x1e568d(0x403)]((_0x172f39,_0x54bbc9,_0x56a3a2)=>{const _0x22ad40=_0x1e568d;if(!_0x25c292&&_0x56a3a2&&(_0x56a3a2[_0x22ad40(0x239)]||_0x56a3a2['f']||_0x56a3a2['p']||_0x56a3a2['s']||_0x56a3a2['si']||_0x56a3a2['t']||_0x56a3a2['v']))return _0x25c292=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x2b7376['SetRangeValuesMutation']['id'],'params':_0x364771},'setRangeValueRedoMutation':{'id':_0x2b7376[_0x1e568d(0x441)]['id'],'params':_0x4afe2e},'shouldClear':_0x25c292};}function _0x3a2594(_0x4952a2){const {row:_0x1a2b92,col:_0x43c952}=_0x4952a2,_0x36d263={'startRow':_0x1a2b92,'endRow':_0x1a2b92,'startColumn':_0x43c952,'endColumn':_0x43c952},_0x582b55={'startRow':_0x1a2b92+0x2,'endRow':_0x1a2b92+0xe,'startColumn':_0x43c952,'endColumn':_0x43c952+0x6};return[_0x36d263,_0x582b55];}function _0x4b2937(_0xbeca4c,_0x3cca8e,_0x38b6ed){const _0x2ebea3=_0x168ac6,{cornerView:_0x3b2f9c,rowView:_0x20e3da,colView:_0x3515bf,pageView:_0x42f264}=_0xbeca4c,{row:_0x5ec9e9,col:_0x241568}=_0x3cca8e;if(_0x38b6ed)return{'rowCount':_0x29fd3d+_0x5ec9e9,'colCount':_0x5c0f40+_0x241568};const _0x56884c=_0x42f264[_0x2ebea3(0x404)]>-0x1?_0x42f264[_0x2ebea3(0x404)]+0x1:0x0,_0x4bdcdc=_0x42f264[_0x2ebea3(0x3c7)]>-0x1?_0x42f264[_0x2ebea3(0x3c7)]:0x0,_0x181b63=_0x5ec9e9+_0x56884c+(_0x56884c?0x1:0x0)+_0x3b2f9c[_0x2ebea3(0x32e)]+_0x20e3da[_0x2ebea3(0x32e)],_0x363125=_0x241568+_0x4bdcdc,_0x33a52d=_0x241568+_0x3b2f9c[_0x2ebea3(0x437)]+_0x3515bf['colCount'],_0xa325e=Math[_0x2ebea3(0x2c9)](_0x363125,_0x33a52d);return{'rowCount':_0x181b63,'colCount':_0xa325e};}function _0x159fc1(_0x2d3301,_0x7fe1bd,_0x562743,_0x1bd40f){const _0x41c328=_0x168ac6,{row:_0x3c913f,col:_0x6a7dfa,unitId:_0x4ab5ad,subUnitId:_0x1a7f40}=_0x562743,_0x5b0be1=_0x4b2937(_0x7fe1bd,{'row':_0x3c913f,'col':_0x6a7dfa},_0x1bd40f),_0x3e409d=_0x2d3301[_0x41c328(0x4c2)](_0x502ce1[_0x41c328(0x37a)]),_0x288752=_0x2b7376[_0x41c328(0x3a3)](_0x3e409d,{'unitId':_0x4ab5ad,'subUnitId':_0x1a7f40}),_0x36724c=[],_0x3c6c10=[];if(!_0x288752)return{'undos':_0x3c6c10,'redos':_0x36724c};const {worksheet:_0x141848}=_0x288752,_0x5e0693=_0x141848['getRowCount'](),_0x1bdd17=_0x141848['getColumnCount']();return _0x5e0693<_0x5b0be1[_0x41c328(0x32e)]&&(_0x36724c[_0x41c328(0x412)]({'id':_0x2b7376[_0x41c328(0x331)]['id'],'params':{'unitId':_0x4ab5ad,'subUnitId':_0x1a7f40,'range':{'startRow':_0x5e0693,'endRow':_0x5b0be1[_0x41c328(0x32e)]-0x1,'startColumn':0x0,'endColumn':_0x1bdd17-0x1}}}),_0x3c6c10[_0x41c328(0x412)]({'id':_0x2b7376['RemoveRowMutation']['id'],'params':{'unitId':_0x4ab5ad,'subUnitId':_0x1a7f40,'range':{'startRow':_0x5e0693,'endRow':_0x5b0be1[_0x41c328(0x32e)]-0x1,'startColumn':0x0,'endColumn':_0x1bdd17-0x1}}})),_0x1bdd17<_0x5b0be1[_0x41c328(0x437)]&&(_0x36724c[_0x41c328(0x412)]({'id':_0x2b7376[_0x41c328(0x295)]['id'],'params':{'unitId':_0x4ab5ad,'subUnitId':_0x1a7f40,'range':{'startRow':0x0,'endRow':_0x5e0693-0x1,'startColumn':_0x1bdd17,'endColumn':_0x5b0be1['colCount']-0x1}}}),_0x3c6c10[_0x41c328(0x412)]({'id':_0x2b7376['RemoveColMutation']['id'],'params':{'unitId':_0x4ab5ad,'subUnitId':_0x1a7f40,'range':{'startRow':0x0,'endRow':_0x5e0693-0x1,'startColumn':_0x1bdd17,'endColumn':_0x5b0be1[_0x41c328(0x437)]-0x1}}})),{'undos':_0x3c6c10,'redos':_0x36724c};}function _0x5e6f2f(_0x40d2b7){const _0x3f32e7=_0x168ac6;let _0xb77ec9=0x0;for(let _0xab4e3=0x0;_0xab4e3<_0x40d2b7[_0x3f32e7(0x4d2)];_0xab4e3++){const _0x219b9e=_0x40d2b7[_0x3f32e7(0x446)](_0xab4e3);_0x219b9e>=0x4e00&&_0x219b9e<=0x9fff||_0x219b9e>=0x3000&&_0x219b9e<=0x303f||_0x219b9e>=0xff00&&_0x219b9e<=0xffef?_0xb77ec9+=0x2:_0xb77ec9+=0x1;}return _0xb77ec9;}function _0x4516e4(_0x490601,_0x1a889b,_0x221fe3,_0x1b086b){const _0x413461=_0x168ac6;var _0x31734d,_0x2409bf,_0x3250cf,_0x100df2;const {rowCount:_0x3c3c2f,colCount:_0x125ed2,headerMap:_0x36386c}=_0x490601,_0x2a0e7e=0x64,_0x2b2f02=Math[_0x413461(0x34d)](_0x3c3c2f,_0x2a0e7e),_0xe1335f=Math[_0x413461(0x34d)](_0x125ed2,_0x2a0e7e);let _0x370e55='',_0x206192=0x0;for(let _0xd824fb=0x0;_0xd824fb<_0x2b2f02;_0xd824fb++)for(let _0x5da147=0x0;_0x5da147<_0xe1335f;_0x5da147++){const _0x53f289={...(_0x2409bf=(_0x31734d=_0x490601[_0x413461(0x413)])==null?void 0x0:_0x31734d[_0xd824fb])==null?void 0x0:_0x2409bf[_0x5da147]},_0x1a3ae4=(_0x3250cf=_0x36386c[_0xd824fb])==null?void 0x0:_0x3250cf[_0x413461(0x3ab)],_0x46a265=_0x1b086b[_0x1a3ae4];let _0x1e3629=_0x490601['getValue'](_0xd824fb,_0x5da147);if(_0x53f289){const _0x3e8f65=_0x221fe3?_0x5da147===0x0&&((_0x100df2=_0x490601[_0x413461(0x2c4)](_0x5da147+0x1))==null?void 0x0:_0x100df2['isValue']):!0x1;_0x1e3629=_0x4667ce(_0x53f289,_0x3e8f65,_0x46a265,_0x1a889b);}if(_0x1e3629!==void 0x0){const _0x1c2b0c=_0x5e6f2f(String(_0x1e3629));_0x206192<_0x1c2b0c&&(_0x370e55=String(_0x1e3629),_0x206192=_0x1c2b0c);}}return _0x370e55;}function _0x20fb6f(_0x1d5a6a){const _0x293853=_0x168ac6,{rowCount:_0x1c5dc7,colCount:_0x514555}=_0x1d5a6a;let _0x421280='',_0x55cabe=0x0;for(let _0x496976=_0x1c5dc7-0x1;_0x496976>0x0&&_0x496976>_0x1c5dc7-0x3;_0x496976--)for(let _0x2e4347=0x0;_0x2e4347<_0x514555;_0x2e4347++){const _0x325577=_0x1d5a6a[_0x293853(0x1f3)](_0x496976,_0x2e4347);if(_0x325577!==void 0x0){const _0x4c0076=String(_0x325577)[_0x293853(0x4d2)];_0x55cabe<_0x4c0076&&(_0x421280=String(_0x325577),_0x55cabe=_0x4c0076);}}return _0x421280;}function _0x42e2e2(_0x542a40){const _0xa21cfa=_0x168ac6,{rowCount:_0x598c21,colCount:_0x5314b6}=_0x542a40;let _0x32a66d='',_0x6dba97=0x0;for(let _0x3f52ab=0x0;_0x3f52ab<_0x598c21;_0x3f52ab++)for(let _0x30bd35=0x0;_0x30bd35<_0x5314b6;_0x30bd35++){const _0x5da60d=_0x542a40['getValue'](_0x3f52ab,_0x30bd35);if(_0x5da60d!==void 0x0){const _0xd6a26f=String(_0x5da60d)[_0xa21cfa(0x4d2)];_0x6dba97<_0xd6a26f&&(_0x32a66d=String(_0x5da60d),_0x6dba97=_0xd6a26f);}}return _0x32a66d;}function _0x41b734(_0x1259a6,_0x4862ea){const _0x22025a=_0x168ac6,{rowFields:_0x494113,columnFields:_0x3daca9,valueFields:_0x85dc42,filterFields:_0x1c09b5,dimension:_0x1fc680,measure:_0x22c67e}=_0x4862ea;for(const _0x2090e5 of _0x494113){const _0x50f5f7=_0x1fc680[_0x2090e5];_0x50f5f7&&_0x1259a6[_0x22025a(0x38a)](_0x50f5f7['dataFieldId'])&&(_0x1259a6['addFieldWithSourceId'](_0x50f5f7[_0x22025a(0x444)],_0x2371ae[_0x22025a(0x348)]['Row'],void 0x0,_0x2090e5),_0x50f5f7['displayName']&&_0x1259a6[_0x22025a(0x321)](_0x50f5f7['id'],_0x50f5f7[_0x22025a(0x3c3)]),_0x50f5f7['sortInfo']&&_0x1259a6[_0x22025a(0x2c3)](_0x50f5f7['id'],_0x50f5f7[_0x22025a(0x2e2)]),_0x50f5f7[_0x22025a(0x4d7)]&&_0x1259a6[_0x22025a(0x4e8)](_0x50f5f7['id'],_0x50f5f7[_0x22025a(0x4d7)]));}for(const _0x165269 of _0x3daca9){const _0x794796=_0x1fc680[_0x165269];_0x794796&&_0x1259a6[_0x22025a(0x38a)](_0x794796[_0x22025a(0x444)])&&(_0x1259a6[_0x22025a(0x2b5)](_0x794796['dataFieldId'],_0x2371ae['PivotTableFiledAreaEnum'][_0x22025a(0x2d9)],void 0x0,_0x165269),_0x794796[_0x22025a(0x2e2)]&&_0x1259a6[_0x22025a(0x2c3)](_0x794796['id'],_0x794796[_0x22025a(0x2e2)]),_0x794796['filterInfo']&&_0x1259a6['setLabelFilterInfo'](_0x794796['id'],_0x794796[_0x22025a(0x4d7)]),_0x794796[_0x22025a(0x3c3)]&&_0x1259a6[_0x22025a(0x321)](_0x794796['id'],_0x794796['displayName']));}for(const _0x405a65 of _0x1c09b5){const _0x3b71de=_0x1fc680[_0x405a65];_0x3b71de&&_0x1259a6[_0x22025a(0x38a)](_0x3b71de[_0x22025a(0x444)])&&(_0x1259a6[_0x22025a(0x2b5)](_0x3b71de[_0x22025a(0x444)],_0x2371ae[_0x22025a(0x348)][_0x22025a(0x44d)],void 0x0,_0x405a65),_0x3b71de[_0x22025a(0x2e2)]&&_0x1259a6[_0x22025a(0x2c3)](_0x3b71de['id'],_0x3b71de[_0x22025a(0x2e2)]),_0x3b71de[_0x22025a(0x4d7)]&&_0x1259a6[_0x22025a(0x4e8)](_0x3b71de['id'],_0x3b71de[_0x22025a(0x4d7)]),_0x3b71de[_0x22025a(0x3c3)]&&_0x1259a6[_0x22025a(0x321)](_0x3b71de['id'],_0x3b71de[_0x22025a(0x3c3)]));}for(const _0x3e158e of _0x85dc42){const _0x54261b=_0x22c67e[_0x3e158e];_0x54261b&&_0x1259a6[_0x22025a(0x38a)](_0x54261b[_0x22025a(0x444)])&&(_0x1259a6[_0x22025a(0x2b5)](_0x54261b['dataFieldId'],_0x2371ae[_0x22025a(0x348)][_0x22025a(0x4e3)],void 0x0,_0x3e158e),_0x54261b[_0x22025a(0x4ab)]!==void 0x0&&_0x1259a6['setSubtotalType'](_0x3e158e,_0x54261b[_0x22025a(0x4ab)]),_0x54261b['format']&&_0x1259a6[_0x22025a(0x216)](_0x3e158e,_0x54261b[_0x22025a(0x486)]),_0x54261b['displayName']&&_0x1259a6[_0x22025a(0x321)](_0x54261b['id'],_0x54261b[_0x22025a(0x3c3)]));}const _0x20c1fb=_0x4862ea['valueFilter'];for(const {fieldId:_0x41b59c,filterInfo:_0x322d7a}of _0x20c1fb)_0x1259a6['setValueFilterInfo'](_0x41b59c,_0x322d7a);}function _0x1b7d0d(_0x4fd48b,_0x5cd317){const _0x39ec84=_0x168ac6,_0x59a383=[];_0x5cd317===_0x2371ae[_0x39ec84(0x348)][_0x39ec84(0x427)]&&_0x4fd48b[_0x39ec84(0x3ca)](_0x2371ae['PivotTableFiledAreaEnum'][_0x39ec84(0x427)],_0x2cf237=>{const _0x403864=_0x39ec84;_0x59a383[_0x403864(0x412)](_0x2cf237[_0x403864(0x260)]());}),_0x5cd317===_0x2371ae[_0x39ec84(0x348)][_0x39ec84(0x2d9)]&&_0x4fd48b[_0x39ec84(0x3ca)](_0x2371ae[_0x39ec84(0x348)]['Column'],_0x47158d=>{const _0x4777cd=_0x39ec84;_0x59a383['push'](_0x47158d[_0x4777cd(0x260)]());}),_0x5cd317===_0x2371ae[_0x39ec84(0x348)][_0x39ec84(0x44d)]&&_0x4fd48b['iterateFieldByArea'](_0x2371ae[_0x39ec84(0x348)][_0x39ec84(0x44d)],_0x23d416=>{const _0x20b88a=_0x39ec84;_0x59a383['push'](_0x23d416[_0x20b88a(0x260)]());}),_0x5cd317===_0x2371ae[_0x39ec84(0x348)][_0x39ec84(0x4e3)]&&_0x4fd48b['iterateFieldByArea'](_0x2371ae['PivotTableFiledAreaEnum'][_0x39ec84(0x4e3)],_0x536690=>{const _0x15c1cd=_0x39ec84;_0x59a383['push'](_0x536690[_0x15c1cd(0x260)]());}),_0x5cd317===void 0x0&&_0x4fd48b['iterateField'](_0x39a314=>{_0x59a383['push'](_0x39a314['getId']());});const _0xd4301f=_0x59a383[_0x39ec84(0x4d2)];for(let _0xae4225=_0xd4301f-0x1;_0xae4225>=0x0;_0xae4225--)_0x4fd48b[_0x39ec84(0x45c)](_0x59a383[_0xae4225]);const _0x5a1299=_0x4fd48b[_0x39ec84(0x30f)]();for(const _0x513244 in _0x5a1299)_0x4fd48b['removeValueFilterInfo'](_0x513244);}function _0xc1ced6(_0x477695,_0x1f3aac){const _0x5b5255=_0x168ac6,_0x40118b=new Date(_0x2371ae[_0x5b5255(0x3a6)](_0x1f3aac)),_0x107902=new Date(_0x2371ae[_0x5b5255(0x3a6)](_0x477695)),_0x18d4d2=_0x40118b[_0x5b5255(0x207)](),_0xd98bc1=_0x107902['getFullYear'](),_0x51c680=_0x40118b[_0x5b5255(0x2d8)](),_0x54e782=_0x107902['getMonth'](),_0x4ad120=_0x40118b[_0x5b5255(0x2a9)](),_0x12b3e3=_0x107902['getDate'](),_0x159a9f=_0x18d4d2===_0xd98bc1,_0x53e2f8=_0x159a9f&&_0x51c680===_0x54e782;return _0x159a9f&&_0x53e2f8&&!(_0x53e2f8&&_0x4ad120===_0x12b3e3)?_0x2371ae[_0x5b5255(0x26f)][_0x5b5255(0x43c)]:_0x159a9f&&!_0x53e2f8?_0x2371ae[_0x5b5255(0x26f)][_0x5b5255(0x4f1)]:_0x2371ae[_0x5b5255(0x26f)][_0x5b5255(0x282)];}function _0x236897(_0x334381,_0x1197ac){const _0x2c7e9f=_0x168ac6,_0x37bbeb=_0x334381[_0x2c7e9f(0x4c2)](_0x44c9e4[_0x2c7e9f(0x31f)])[_0x2c7e9f(0x28a)]();let _0x3494ee='';switch(_0x1197ac){case _0x2371ae[_0x2c7e9f(0x26f)]['YearMonthDate']:_0x3494ee=_0x37bbeb['sheets-pivot.dateGroup.yearMonthDate'];break;case _0x2371ae[_0x2c7e9f(0x26f)][_0x2c7e9f(0x4f1)]:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x1f6)];break;case _0x2371ae[_0x2c7e9f(0x26f)]['Year']:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x395)];break;case _0x2371ae[_0x2c7e9f(0x26f)]['Month']:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x4a8)];break;case _0x2371ae[_0x2c7e9f(0x26f)][_0x2c7e9f(0x4f8)]:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x453)];break;case _0x2371ae[_0x2c7e9f(0x26f)]['Date']:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x4e6)];break;case _0x2371ae[_0x2c7e9f(0x26f)][_0x2c7e9f(0x4e9)]:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x3b3)];break;case _0x2371ae[_0x2c7e9f(0x26f)]['Hour']:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x465)];break;case _0x2371ae[_0x2c7e9f(0x26f)][_0x2c7e9f(0x3d8)]:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x2f2)];break;case _0x2371ae[_0x2c7e9f(0x26f)][_0x2c7e9f(0x336)]:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x3cb)];break;case _0x2371ae[_0x2c7e9f(0x26f)][_0x2c7e9f(0x4ca)]:_0x3494ee=_0x37bbeb[_0x2c7e9f(0x349)];break;default:_0x3494ee='';break;}return _0x3494ee;}const _0x8c6504=_0x168ac6(0x294),_0x27e2dc={};var _0x1e77c0=Object['getOwnPropertyDescriptor'],_0x497289=(_0x23b587,_0x4aec64,_0x314319,_0x12aa02)=>{const _0x1d1cec=_0x168ac6;for(var _0x16e52=_0x12aa02>0x1?void 0x0:_0x12aa02?_0x1e77c0(_0x4aec64,_0x314319):_0x4aec64,_0x44f334=_0x23b587[_0x1d1cec(0x4d2)]-0x1,_0x2205ba;_0x44f334>=0x0;_0x44f334--)(_0x2205ba=_0x23b587[_0x44f334])&&(_0x16e52=_0x2205ba(_0x16e52)||_0x16e52);return _0x16e52;},_0x52500f=(_0x2a1cf5,_0x1ca64d)=>(_0x12759e,_0x473b1f)=>_0x1ca64d(_0x12759e,_0x473b1f,_0x2a1cf5);_0x44c9e4[_0x168ac6(0x30b)]=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x448bb3,_0x5b1abc,_0x384a0e,_0x631d85,_0x22ad1e){const _0x5af1f4=_0x168ac6;super(),_0x2d9017(this,_0x5af1f4(0x1f4),new Map()),_0x2d9017(this,_0x5af1f4(0x3c9),new Map()),_0x2d9017(this,_0x5af1f4(0x3df),new Map()),_0x2d9017(this,'_pivotTableMatrixInfo',new Map()),_0x2d9017(this,_0x5af1f4(0x4f7),new _0x146a1c[(_0x5af1f4(0x36b))]()),_0x2d9017(this,'_pivotInitCompleted$',new _0x146a1c[(_0x5af1f4(0x36b))]()),_0x2d9017(this,_0x5af1f4(0x2e0),this[_0x5af1f4(0x266)][_0x5af1f4(0x2f8)]()),_0x2d9017(this,_0x5af1f4(0x4f2),new _0x146a1c[(_0x5af1f4(0x36b))]()),_0x2d9017(this,'pivotConfigChange$',this[_0x5af1f4(0x4f2)][_0x5af1f4(0x2f8)]()),_0x2d9017(this,_0x5af1f4(0x4b1),{}),_0x2d9017(this,'configVersion$',this[_0x5af1f4(0x4f7)]['asObservable']()),(this[_0x5af1f4(0x360)]=_0x448bb3,this[_0x5af1f4(0x377)]=_0x5b1abc,this[_0x5af1f4(0x43d)]=_0x384a0e,this[_0x5af1f4(0x42c)]=_0x631d85,this[_0x5af1f4(0x2c7)]=_0x22ad1e,this[_0x5af1f4(0x289)](),this[_0x5af1f4(0x35f)]());const _0x24212f=this[_0x5af1f4(0x2c7)][_0x5af1f4(0x4fb)](_0x8c6504);(_0x24212f==null?void 0x0:_0x24212f[_0x5af1f4(0x1ed)])===!0x0&&this['_initSnapshot']();}[_0x168ac6(0x35f)](){const _0x53af94=_0x168ac6;this[_0x53af94(0x218)](this['_univerInstanceService'][_0x53af94(0x2cc)](_0x502ce1['UniverInstanceType'][_0x53af94(0x290)])['subscribe'](_0x129e02=>{const _0x1384b2=_0x53af94;this[_0x1384b2(0x382)](_0x129e02[_0x1384b2(0x22a)]());}));}[_0x168ac6(0x416)](){const _0x252919=_0x168ac6;this[_0x252919(0x266)]['next'](!0x0);}[_0x168ac6(0x289)](){const _0x1b6bed=_0x168ac6,_0x39cd72=_0xbe024f(this[_0x1b6bed(0x360)],_0x38389b,'',{});this['_textInfo']=_0x39cd72,this[_0x1b6bed(0x377)][_0x1b6bed(0x4e2)](_0x518f79['id'],{'textInfo':_0x39cd72},{'onlyLocal':!0x0});}[_0x168ac6(0x28a)](){const _0x18c085=_0x168ac6;return this[_0x18c085(0x4b1)];}[_0x168ac6(0x223)](_0x412f70,_0x4c73e9,_0x590233,_0x33c804,_0x25d567){const _0x42a5af=_0x168ac6;this[_0x42a5af(0x400)](_0x412f70,_0x4c73e9,_0x590233,_0x33c804),this[_0x42a5af(0x300)](_0x412f70,_0x4c73e9,_0x590233,_0x25d567);}[_0x168ac6(0x20c)](_0x19c883,_0x2d813e,_0x54c12d){const _0x4bf446=_0x168ac6;var _0x527a7c;const _0x2e5d0c=(_0x527a7c=this[_0x4bf446(0x1f4)]['get'](_0x19c883))==null?void 0x0:_0x527a7c[_0x4bf446(0x4c2)](_0x2d813e);if(_0x2e5d0c)return _0x2e5d0c[_0x4bf446(0x4c2)](_0x54c12d);}['getTargetByPivotTableId'](_0x3901b7,_0x497db4){const _0x1fedd4=_0x168ac6,_0x4c4a1c=this['_model'][_0x1fedd4(0x4c2)](_0x3901b7);if(_0x4c4a1c){for(const [_0x19b188,_0x173e17]of _0x4c4a1c['entries']())for(const [_0x557353,_0x202f1e]of _0x173e17[_0x1fedd4(0x429)]())if(_0x557353===_0x497db4)return _0x202f1e[_0x1fedd4(0x38e)];}}[_0x168ac6(0x343)](_0xce268e,_0xce177c,_0x1ee7b2){const _0x5d20eb=_0x168ac6,_0xb45983=this[_0x5d20eb(0x20c)](_0xce268e,_0xce177c,_0x1ee7b2);return _0xb45983==null?void 0x0:_0xb45983[_0x5d20eb(0x38e)];}[_0x168ac6(0x4f6)](_0x27f563,_0x1701d9){const _0x4b9f65=_0x168ac6;var _0x4667e7;return(_0x4667e7=this[_0x4b9f65(0x1f4)][_0x4b9f65(0x4c2)](_0x27f563))==null?void 0x0:_0x4667e7[_0x4b9f65(0x4c2)](_0x1701d9);}[_0x168ac6(0x325)](_0x24c77d,_0xaf568c,_0x59425b,_0x5de867){const _0x3131a7=_0x168ac6,_0x303b66=this[_0x3131a7(0x316)](_0x24c77d,_0xaf568c);_0x5de867?_0x303b66[_0x3131a7(0x263)](_0x59425b,_0x5de867):_0x303b66[_0x3131a7(0x272)](_0x59425b),this[_0x3131a7(0x4f2)][_0x3131a7(0x21d)]({'unitId':_0x24c77d,'subUnitId':_0xaf568c,'pivotTableId':_0x59425b,'pivotTableConfig':_0x5de867});}[_0x168ac6(0x46b)](_0x5a2ad1,_0x2e9496){const _0x1dc600=_0x168ac6;var _0x1aec27;return(_0x1aec27=this[_0x1dc600(0x3c9)][_0x1dc600(0x4c2)](_0x5a2ad1))==null?void 0x0:_0x1aec27['collections'][_0x2e9496];}['updateCollectionConfig'](_0x4350b5,_0x31236e){const _0x456b2a=_0x168ac6;this[_0x456b2a(0x3c9)][_0x456b2a(0x263)](_0x4350b5,_0x31236e),this[_0x456b2a(0x4f7)][_0x456b2a(0x21d)](Math[_0x456b2a(0x4b2)]());}[_0x168ac6(0x316)](_0x73b56,_0x614fe4){const _0x3f5487=_0x168ac6;let _0xf328db=this[_0x3f5487(0x1f4)][_0x3f5487(0x4c2)](_0x73b56);_0xf328db||(_0xf328db=new Map(),this[_0x3f5487(0x1f4)][_0x3f5487(0x263)](_0x73b56,_0xf328db));let _0x35cae5=_0xf328db[_0x3f5487(0x4c2)](_0x614fe4);return _0x35cae5||(_0x35cae5=new Map(),_0xf328db[_0x3f5487(0x263)](_0x614fe4,_0x35cae5)),_0x35cae5;}[_0x168ac6(0x3a4)](_0x5b2848,_0x1eb118){const _0x119834=_0x168ac6;let _0x51101c=this[_0x119834(0x3df)][_0x119834(0x4c2)](_0x5b2848);_0x51101c||(_0x51101c=new Map(),this[_0x119834(0x3df)]['set'](_0x5b2848,_0x51101c));let _0x4df721=_0x51101c['get'](_0x1eb118);return _0x4df721||(_0x4df721=new Map(),_0x51101c[_0x119834(0x263)](_0x1eb118,_0x4df721)),_0x4df721;}['_ensurePivotTableMatrixInfo'](_0x292426,_0x560228){const _0x5a137b=_0x168ac6;let _0xd8820e=this[_0x5a137b(0x4dc)][_0x5a137b(0x4c2)](_0x292426);_0xd8820e||(_0xd8820e=new Map(),this['_pivotTableMatrixInfo'][_0x5a137b(0x263)](_0x292426,_0xd8820e));let _0xe6a67=_0xd8820e[_0x5a137b(0x4c2)](_0x560228);return _0xe6a67||(_0xe6a67=new Map(),_0xd8820e['set'](_0x560228,_0xe6a67)),_0xe6a67;}[_0x168ac6(0x300)](_0x5ad752,_0x212b29,_0x412945,_0x2ccba7){const _0x318e32=_0x168ac6;var _0xf97d76;const _0x315adc=this[_0x318e32(0x3a4)](_0x5ad752,_0x212b29),_0x59b7e4=(_0xf97d76=_0x315adc[_0x318e32(0x4c2)](_0x412945))==null?void 0x0:_0xf97d76[_0x318e32(0x25a)];_0x315adc[_0x318e32(0x263)](_0x412945,{'oldRangeInfo':_0x59b7e4,'rangeInfo':_0x2ccba7});}['updatePivotTableMatrixInfo'](_0x514309,_0x2867ca,_0x4139a6,_0x35b92e){const _0x536aad=_0x168ac6;var _0xd38242;const _0x538104=this[_0x536aad(0x4c4)](_0x514309,_0x2867ca),_0x52ec4d=(_0xd38242=_0x538104[_0x536aad(0x4c2)](_0x4139a6))==null?void 0x0:_0xd38242[_0x536aad(0x213)];_0x538104[_0x536aad(0x263)](_0x4139a6,{'oldMatrix':_0x52ec4d,'matrix':_0x35b92e});}[_0x168ac6(0x33f)](_0x367748,_0x2efc5f,_0x23c388){const _0x202aee=_0x168ac6;var _0x64d3e7,_0x51620e;return(_0x51620e=(_0x64d3e7=this[_0x202aee(0x3df)][_0x202aee(0x4c2)](_0x367748))==null?void 0x0:_0x64d3e7['get'](_0x2efc5f))==null?void 0x0:_0x51620e[_0x202aee(0x4c2)](_0x23c388);}[_0x168ac6(0x203)](_0x110ec1,_0x34ef64,_0x5e2de9){const _0x359ccf=_0x168ac6;var _0x3471eb,_0x13d9f0;return(_0x13d9f0=(_0x3471eb=this[_0x359ccf(0x4dc)][_0x359ccf(0x4c2)](_0x110ec1))==null?void 0x0:_0x3471eb[_0x359ccf(0x4c2)](_0x34ef64))==null?void 0x0:_0x13d9f0[_0x359ccf(0x4c2)](_0x5e2de9);}[_0x168ac6(0x382)](_0x3c8a95){const _0x4ed414=_0x168ac6;this[_0x4ed414(0x1f4)][_0x4ed414(0x272)](_0x3c8a95),this[_0x4ed414(0x3c9)]['delete'](_0x3c8a95);}['_toJSON'](_0x500c2b){const _0x9252fb=_0x168ac6,_0x5324b1={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x9252fb(0x3c9)][_0x9252fb(0x4c2)](_0x500c2b)&&(_0x5324b1[_0x9252fb(0x35a)][_0x500c2b]=this[_0x9252fb(0x3c9)][_0x9252fb(0x4c2)](_0x500c2b)),this[_0x9252fb(0x1f4)]['get'](_0x500c2b)){_0x5324b1['pivotTableConfigs'][_0x500c2b]={};const _0x3cca7b=this[_0x9252fb(0x1f4)]['get'](_0x500c2b);_0x3cca7b!=null&&_0x3cca7b[_0x9252fb(0x381)]&&[..._0x3cca7b['keys']()]['forEach'](_0x1704ae=>{const _0x59375b=_0x9252fb,_0x2e0bbb=_0x3cca7b[_0x59375b(0x4c2)](_0x1704ae);_0x2e0bbb!=null&&_0x2e0bbb[_0x59375b(0x381)]&&(_0x5324b1[_0x59375b(0x4ed)][_0x500c2b][_0x1704ae]={},[..._0x2e0bbb[_0x59375b(0x375)]()][_0x59375b(0x314)](_0x3121b5=>{const _0x96b660=_0x59375b,_0x2c7b69=_0x2e0bbb[_0x96b660(0x4c2)](_0x3121b5);_0x2c7b69&&(_0x5324b1[_0x96b660(0x4ed)][_0x500c2b][_0x1704ae][_0x3121b5]=_0x2c7b69);}));});}return _0x5324b1;}[_0x168ac6(0x22b)](){const _0x3263b2=_0x168ac6;this[_0x3263b2(0x218)](this[_0x3263b2(0x42c)]['registerPluginResource']({'toJson':_0x303445=>JSON[_0x3263b2(0x467)](this[_0x3263b2(0x358)](_0x303445)),'parseJson':_0x5b7c13=>({}),'businesses':[_0x502ce1[_0x3263b2(0x3ae)][_0x3263b2(0x290)]],'pluginName':_0x8316df,'onLoad':(_0x224f4d,_0x7a016)=>{},'onUnLoad':_0x5f0720=>{const _0x988c80=_0x3263b2;this[_0x988c80(0x382)](_0x5f0720);}}));}},_0x44c9e4[_0x168ac6(0x30b)]=_0x497289([_0x52500f(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x402)])),_0x52500f(0x1,_0x502ce1['Inject'](_0x502ce1[_0x168ac6(0x48c)])),_0x52500f(0x2,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x37a)])),_0x52500f(0x3,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x470)])),_0x52500f(0x4,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x25b)]))],_0x44c9e4[_0x168ac6(0x30b)]);var _0x23d2d4=Object[_0x168ac6(0x2ec)],_0x3e5af4=(_0xcaab61,_0x22df51,_0x3b4748,_0x58b9fc)=>{const _0x5fd036=_0x168ac6;for(var _0x5e1574=_0x58b9fc>0x1?void 0x0:_0x58b9fc?_0x23d2d4(_0x22df51,_0x3b4748):_0x22df51,_0x556112=_0xcaab61[_0x5fd036(0x4d2)]-0x1,_0x3d6368;_0x556112>=0x0;_0x556112--)(_0x3d6368=_0xcaab61[_0x556112])&&(_0x5e1574=_0x3d6368(_0x5e1574)||_0x5e1574);return _0x5e1574;},_0x354a7b=(_0x87e3a4,_0x4f583a)=>(_0x1b6b07,_0xf113df)=>_0x4f583a(_0x1b6b07,_0xf113df,_0x87e3a4);_0x44c9e4['SheetsPivotTableAdaptorModel']=class extends _0x502ce1['Disposable']{constructor(_0x189855,_0x20e569,_0x54074e,_0x43e1e7,_0x49a91c){const _0x4d183e=_0x168ac6;super(),_0x2d9017(this,_0x4d183e(0x38b),new Map()),_0x2d9017(this,'_pivotRenderValueMatrixCache',new Map()),_0x2d9017(this,_0x4d183e(0x208),new _0x146a1c[(_0x4d183e(0x36b))]()),_0x2d9017(this,_0x4d183e(0x472),this[_0x4d183e(0x208)][_0x4d183e(0x2f8)]()),_0x2d9017(this,_0x4d183e(0x2ed),new _0x146a1c[(_0x4d183e(0x36b))]()),_0x2d9017(this,'viewUpdate$',this[_0x4d183e(0x2ed)]['asObservable']()),_0x2d9017(this,_0x4d183e(0x4b1)),(this[_0x4d183e(0x324)]=_0x189855,this[_0x4d183e(0x360)]=_0x20e569,this[_0x4d183e(0x1f1)]=_0x54074e,this[_0x4d183e(0x43d)]=_0x43e1e7,this[_0x4d183e(0x2ac)]=_0x49a91c,this[_0x4d183e(0x289)](),this[_0x4d183e(0x35f)]());}[_0x168ac6(0x35f)](){const _0x530f9a=_0x168ac6;this[_0x530f9a(0x218)](this['_univerInstanceService'][_0x530f9a(0x2cc)](_0x502ce1[_0x530f9a(0x3ae)]['UNIVER_SHEET'])[_0x530f9a(0x4ef)](_0x2789f0=>{const _0x1eeb45=_0x530f9a;this[_0x1eeb45(0x382)](_0x2789f0[_0x1eeb45(0x22a)]());}));}[_0x168ac6(0x289)](){const _0x1d8af0=_0x168ac6;this['_textInfo']=_0xbe024f(this[_0x1d8af0(0x360)],_0x38389b,'',{});}[_0x168ac6(0x4d9)](_0x1ed3f8){const _0x163e72=_0x168ac6,{view:_0x3245c3,unitId:_0x2d4441,subUnitId:_0x34bcad,pivotTableId:_0x3781b6,type:_0x4d9015}=_0x1ed3f8,_0x136331=this[_0x163e72(0x1f1)]['getPivotTableConfig'](_0x2d4441,_0x34bcad,_0x3781b6);if(!_0x3245c3||!_0x136331||_0x4d9015===_0x44d5f2[_0x163e72(0x306)])return;const {pageView:_0x2b40d2,cornerView:_0x3d7acb,rowView:_0x5b1ece,colView:_0x4011bd,dataView:_0x52f9f6}=_0x3245c3,_0x5969a2=_0x136331[_0x163e72(0x38e)],_0x5589cc=_0x136331[_0x163e72(0x431)],_0x2a52c5=this[_0x163e72(0x2fe)](_0x2d4441,_0x34bcad),_0x43a497=this['_ensurePivotItemRenderInfoCache'](_0x2d4441,_0x34bcad,_0x3781b6);if(_0x5589cc)return this[_0x163e72(0x476)](_0x1ed3f8,_0x2a52c5,_0x5969a2,_0x43a497);{const _0x2a7b52=_0x573266(_0x5969a2,_0x2b40d2,!0x0),_0x169b40=_0x2b40d2[_0x163e72(0x404)]>=0x0?_0x2b40d2[_0x163e72(0x404)]+0x1:0x0,_0x4a3bc0=_0x3d7acb[_0x163e72(0x47d)](),_0x1ff9b7=_0x3d7acb[_0x163e72(0x3f7)](),_0x2c2d9c=_0x2a7b52[_0x163e72(0x4d2)]>0x0?_0x3b501c:0x0,_0x3224cc=_0x573266({'row':_0x5969a2[_0x163e72(0x2f0)]+_0x169b40+_0x2c2d9c,'col':_0x5969a2[_0x163e72(0x40d)]},_0x3d7acb,!0x1,!0x1),_0x1ca6c5=_0x573266({'row':_0x5969a2[_0x163e72(0x2f0)]+_0x169b40+_0x2c2d9c+_0x4a3bc0,'col':_0x5969a2[_0x163e72(0x40d)]},_0x5b1ece,!0x1,!0x0),_0x1cd5f4=_0x573266({'row':_0x5969a2[_0x163e72(0x2f0)]+_0x169b40+_0x2c2d9c,'col':_0x5969a2['col']+_0x1ff9b7},_0x4011bd,!0x1,!0x0),_0x58ca22=_0x573266({'row':_0x5969a2[_0x163e72(0x2f0)]+_0x169b40+_0x2c2d9c+_0x4a3bc0,'col':_0x5969a2[_0x163e72(0x40d)]+_0x1ff9b7},_0x52f9f6,!0x1,!0x1);_0x43a497[_0x163e72(0x391)]={'rowRanges':_0x1ca6c5,'colRanges':_0x1cd5f4,'cornerRanges':_0x3224cc,'dataRanges':_0x58ca22,'pageRanges':_0x2a7b52};const _0x3261bd=_0x154231(this[_0x163e72(0x360)],_0x3245c3,_0x136331,this[_0x163e72(0x4b1)]),{valueMatrix:_0x1de096,rowInfo:_0x4edab3,colInfo:_0x12f03f,cornerInfo:_0x1b8485,rowHeaderMap:_0x4facc0,colHeaderMap:_0x4b20d4}=_0x3261bd;return _0x43a497['areaInfo']={'rowInfo':_0x4edab3,'colInfo':_0x12f03f,'cornerInfo':_0x1b8485},_0x43a497[_0x163e72(0x1fc)]={'rowHeaderMap':_0x4facc0,'colHeaderMap':_0x4b20d4},_0x1de096[_0x163e72(0x314)]((_0x23543f,_0x3fd7a9)=>{const _0xbe4e68=_0x163e72;Object[_0xbe4e68(0x375)](_0x3fd7a9)[_0xbe4e68(0x314)](_0x39e415=>{const _0x198ac8=_0xbe4e68,_0x50f106=+_0x39e415,_0x2b62e2=_0x1de096[_0x198ac8(0x1f3)](_0x23543f,_0x50f106);_0x2a52c5[_0x198ac8(0x206)](_0x23543f,_0x50f106,_0x2b62e2);});}),this[_0x163e72(0x2ed)][_0x163e72(0x21d)]({'unitId':_0x2d4441,'subUnitId':_0x34bcad,'valueMatrix':_0x2a52c5,'rangesCache':_0x43a497[_0x163e72(0x391)],'pivotTableId':_0x3781b6,'type':_0x1ed3f8[_0x163e72(0x376)]}),this[_0x163e72(0x1f1)][_0x163e72(0x223)](_0x2d4441,_0x34bcad,_0x3781b6,_0x2a52c5,_0x43a497['rangesInfo']),this[_0x163e72(0x2ac)][_0x163e72(0x259)](_0x2d4441,_0x34bcad,_0x372159,this[_0x163e72(0x361)](_0x43a497[_0x163e72(0x391)],_0x3781b6)),{'rangeCache':_0x43a497[_0x163e72(0x391)],'matrix':_0x2a52c5};}}[_0x168ac6(0x476)](_0x1979bc,_0x2cafa1,_0x204dce,_0x52c9f6){const _0x5306e8=_0x168ac6,_0x86878d=this[_0x5306e8(0x324)]['t'],{unitId:_0x176ba1,subUnitId:_0x5059f2,pivotTableId:_0x5717e4}=_0x1979bc,_0x1a25e2={'filter':_0x86878d('sheets-pivot.emptyPivot.filter'),'row':_0x86878d(_0x5306e8(0x2fb)),'column':_0x86878d('sheets-pivot.emptyPivot.column'),'values':_0x86878d(_0x5306e8(0x48b))},{matrixCache:_0x38321f,rangesCache:_0x3941f6}=_0x2f2a96(_0x1a25e2,_0x204dce);return _0x38321f['forValue']((_0x2b12b4,_0x5e2172,_0x1283f1)=>{const _0x2f8697=_0x5306e8;_0x2cafa1[_0x2f8697(0x206)](_0x2b12b4,_0x5e2172,_0x1283f1);}),_0x52c9f6[_0x5306e8(0x391)]=_0x3941f6,this[_0x5306e8(0x2ed)]['next']({'unitId':_0x176ba1,'subUnitId':_0x5059f2,'valueMatrix':_0x2cafa1,'rangesCache':_0x3941f6,'pivotTableId':_0x5717e4,'type':_0x1979bc[_0x5306e8(0x376)],'isEmpty':!0x0}),this[_0x5306e8(0x1f1)][_0x5306e8(0x223)](_0x176ba1,_0x5059f2,_0x5717e4,_0x2cafa1,_0x3941f6),this['_exclusiveRangeService'][_0x5306e8(0x259)](_0x176ba1,_0x5059f2,_0x372159,this[_0x5306e8(0x361)](_0x3941f6,_0x5717e4)),{'rangeCache':_0x52c9f6[_0x5306e8(0x391)],'matrix':_0x2cafa1};}[_0x168ac6(0x361)](_0x420088,_0x50c1c3){const _0x33d131=_0x168ac6,_0x1f21fe=[],_0x5a83c7=_0x1dbac6(_0x420088);for(const _0x9b305d of _0x5a83c7)_0x1f21fe[_0x33d131(0x412)]({'groupId':_0x50c1c3,'range':_0x9b305d});return _0x1f21fe;}[_0x168ac6(0x392)](_0x2992c6){const _0x44bb48=_0x168ac6;var _0x2974e7,_0x4b150e,_0x5591c6,_0x38a088;const {pivotTableId:_0x3a649e,unitId:_0xabf3c4,subUnitId:_0x59a41a}=_0x2992c6;if(!_0x3a649e||!_0xabf3c4||!_0x59a41a)return;const _0xddfd3a=this[_0x44bb48(0x2fe)](_0xabf3c4,_0x59a41a),_0x34192f=(_0x4b150e=(_0x2974e7=this[_0x44bb48(0x38b)][_0x44bb48(0x4c2)](_0xabf3c4))==null?void 0x0:_0x2974e7[_0x44bb48(0x4c2)](_0x59a41a))==null?void 0x0:_0x4b150e[_0x44bb48(0x4c2)](_0x3a649e);if(_0x34192f!=null&&_0x34192f[_0x44bb48(0x391)]){for(const _0x19965b of Object[_0x44bb48(0x375)](_0x34192f[_0x44bb48(0x391)]))_0x34192f[_0x44bb48(0x391)][_0x19965b]['forEach'](_0x5462a3=>{const _0x4b5a87=_0x44bb48;for(let _0x24e21d=_0x5462a3['startRow'];_0x24e21d<=_0x5462a3[_0x4b5a87(0x4cd)];_0x24e21d++)for(let _0x1130cd=_0x5462a3[_0x4b5a87(0x291)];_0x1130cd<=_0x5462a3[_0x4b5a87(0x42b)];_0x1130cd++)_0xddfd3a[_0x4b5a87(0x201)](_0x24e21d,_0x1130cd);});}_0x34192f&&((_0x38a088=(_0x5591c6=this[_0x44bb48(0x38b)][_0x44bb48(0x4c2)](_0xabf3c4))==null?void 0x0:_0x5591c6[_0x44bb48(0x4c2)](_0x59a41a))==null||_0x38a088[_0x44bb48(0x272)](_0x3a649e)),this[_0x44bb48(0x2ed)][_0x44bb48(0x21d)]({'unitId':_0xabf3c4,'subUnitId':_0x59a41a,'valueMatrix':_0xddfd3a,'pivotTableId':_0x3a649e,'rangesCache':void 0x0,'type':_0x2992c6[_0x44bb48(0x376)]}),this['_exclusiveRangeService']['clearExclusiveRangesByGroupId'](_0xabf3c4,_0x59a41a,_0x372159,_0x3a649e);}[_0x168ac6(0x30a)](_0x50519d,_0x3de7c8,_0x522b82){const _0x48935f=_0x168ac6;var _0x4a917e,_0x12666f,_0x25d140,_0xaa3a40,_0x3ced43,_0x16213a;return this['_pivotRenderInfoCache'][_0x48935f(0x23a)](_0x50519d)||this[_0x48935f(0x38b)][_0x48935f(0x263)](_0x50519d,new Map()),(_0x4a917e=this[_0x48935f(0x38b)][_0x48935f(0x4c2)](_0x50519d))!=null&&_0x4a917e[_0x48935f(0x23a)](_0x3de7c8)||(_0x12666f=this[_0x48935f(0x38b)][_0x48935f(0x4c2)](_0x50519d))==null||_0x12666f['set'](_0x3de7c8,new Map()),(_0xaa3a40=(_0x25d140=this[_0x48935f(0x38b)]['get'](_0x50519d))==null?void 0x0:_0x25d140['get'](_0x3de7c8))!=null&&_0xaa3a40[_0x48935f(0x23a)](_0x522b82)||(_0x16213a=(_0x3ced43=this[_0x48935f(0x38b)]['get'](_0x50519d))==null?void 0x0:_0x3ced43[_0x48935f(0x4c2)](_0x3de7c8))==null||_0x16213a[_0x48935f(0x263)](_0x522b82,{}),this[_0x48935f(0x38b)][_0x48935f(0x4c2)](_0x50519d)[_0x48935f(0x4c2)](_0x3de7c8)['get'](_0x522b82);}[_0x168ac6(0x2fe)](_0x2da319,_0x1019e6){const _0x16cf49=_0x168ac6;var _0x3b84ee,_0x382f99;return this[_0x16cf49(0x487)][_0x16cf49(0x23a)](_0x2da319)||this[_0x16cf49(0x487)][_0x16cf49(0x263)](_0x2da319,new Map()),(_0x3b84ee=this[_0x16cf49(0x487)][_0x16cf49(0x4c2)](_0x2da319))!=null&&_0x3b84ee[_0x16cf49(0x23a)](_0x1019e6)||(_0x382f99=this['_pivotRenderValueMatrixCache'][_0x16cf49(0x4c2)](_0x2da319))==null||_0x382f99[_0x16cf49(0x263)](_0x1019e6,new _0x502ce1[(_0x16cf49(0x36d))]()),this['_pivotRenderValueMatrixCache'][_0x16cf49(0x4c2)](_0x2da319)['get'](_0x1019e6);}['getPivotTableCellData'](_0x4cb760,_0x5bddf2,_0x340807,_0x2baf4a){const _0x4c5c83=_0x168ac6;var _0x1b60f4,_0x5a378c;const _0x747d31=(_0x5a378c=(_0x1b60f4=this[_0x4c5c83(0x487)][_0x4c5c83(0x4c2)](_0x4cb760))==null?void 0x0:_0x1b60f4[_0x4c5c83(0x4c2)](_0x5bddf2))==null?void 0x0:_0x5a378c['getValue'](_0x340807,_0x2baf4a);if(_0x747d31!=null)return _0x747d31;}[_0x168ac6(0x23d)](_0x1f8cd5,_0x1c2bd2,_0x5dccd4,_0x4844e5){const _0x273d39=_0x168ac6;var _0x240819;const _0x19e270=_0x502ce1[_0x273d39(0x4b6)](_0x5dccd4,_0x4844e5),_0x506ea7=(_0x240819=this[_0x273d39(0x38b)][_0x273d39(0x4c2)](_0x1f8cd5))==null?void 0x0:_0x240819['get'](_0x1c2bd2);return _0x506ea7?Array[_0x273d39(0x421)](_0x506ea7[_0x273d39(0x375)]())['find'](_0x39ef00=>{const _0x5a4e16=_0x273d39,_0x46475a=_0x506ea7[_0x5a4e16(0x4c2)](_0x39ef00),_0x3ba6e7=_0x46475a==null?void 0x0:_0x46475a['rangesInfo'];return _0x3ba6e7?Object['keys'](_0x3ba6e7)['some'](_0x4c4a5b=>_0x3ba6e7[_0x4c4a5b]['some'](_0x1a8605=>_0x502ce1[_0x5a4e16(0x469)]['contains'](_0x1a8605,_0x19e270))):!0x1;}):void 0x0;}[_0x168ac6(0x226)](_0x3b762f,_0x156001,_0x52abb1){const _0x4e483c=_0x168ac6;var _0x10c8cb;const _0x8478e2=(_0x10c8cb=this[_0x4e483c(0x38b)][_0x4e483c(0x4c2)](_0x3b762f))==null?void 0x0:_0x10c8cb[_0x4e483c(0x4c2)](_0x156001),_0x4ef87a=[];return _0x8478e2&&Array['from'](_0x8478e2[_0x4e483c(0x375)]())[_0x4e483c(0x314)](_0x3a4ab2=>{const _0x18ff52=_0x4e483c,_0x55833d=_0x8478e2[_0x18ff52(0x4c2)](_0x3a4ab2),_0x2fef0a=_0x55833d==null?void 0x0:_0x55833d[_0x18ff52(0x391)];if(_0x2fef0a)for(const _0x286961 of Object[_0x18ff52(0x484)](_0x2fef0a)){let _0x185d25=!0x1;for(const _0x18a39a of _0x286961)if(_0x502ce1[_0x18ff52(0x469)][_0x18ff52(0x34c)](_0x18a39a,_0x52abb1)){_0x4ef87a[_0x18ff52(0x412)](_0x3a4ab2),_0x185d25=!0x0;break;}if(_0x185d25)break;}}),_0x4ef87a;}[_0x168ac6(0x318)](_0xe3cc5b,_0x40c6c9){const _0x41ea66=_0x168ac6;var _0x29064d,_0x3fd01b;return(_0x3fd01b=(_0x29064d=this[_0x41ea66(0x487)][_0x41ea66(0x4c2)](_0xe3cc5b))==null?void 0x0:_0x29064d[_0x41ea66(0x4c2)](_0x40c6c9))!=null?_0x3fd01b:new _0x502ce1[(_0x41ea66(0x36d))]();}['getSubUnitPivotRenderCache'](_0xa6c4b9,_0x7f86fe){const _0x240e8c=_0x168ac6;var _0x144f0f;return(_0x144f0f=this[_0x240e8c(0x38b)]['get'](_0xa6c4b9))==null?void 0x0:_0x144f0f[_0x240e8c(0x4c2)](_0x7f86fe);}[_0x168ac6(0x3e7)](_0x5d0038,_0x256016,_0xae740d){const _0x218fd8=_0x168ac6;var _0x2a8712,_0x14ba32;return(_0x14ba32=(_0x2a8712=this[_0x218fd8(0x38b)][_0x218fd8(0x4c2)](_0x5d0038))==null?void 0x0:_0x2a8712[_0x218fd8(0x4c2)](_0x256016))==null?void 0x0:_0x14ba32[_0x218fd8(0x4c2)](_0xae740d);}[_0x168ac6(0x382)](_0x59d013){const _0x112ff5=_0x168ac6;this[_0x112ff5(0x38b)][_0x112ff5(0x272)](_0x59d013),this[_0x112ff5(0x487)]['delete'](_0x59d013);}[_0x168ac6(0x3ba)](_0x18631d,_0x490402){this['_markDirty$']['next']({'unitId':_0x18631d,'subUnitId':_0x490402});}},_0x44c9e4[_0x168ac6(0x4a3)]=_0x3e5af4([_0x354a7b(0x0,_0x502ce1['Inject'](_0x502ce1['LocaleService'])),_0x354a7b(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x402)])),_0x354a7b(0x2,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4['SheetsPivotTableConfigModel'])),_0x354a7b(0x3,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x37a)])),_0x354a7b(0x4,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376['IExclusiveRangeService']))],_0x44c9e4['SheetsPivotTableAdaptorModel']);var _0x4cbd56=Object[_0x168ac6(0x2ec)],_0x16f4a9=(_0x4ef13c,_0x18316a,_0x2e1cd6,_0xf43732)=>{for(var _0x2eed58=_0xf43732>0x1?void 0x0:_0xf43732?_0x4cbd56(_0x18316a,_0x2e1cd6):_0x18316a,_0x25980b=_0x4ef13c['length']-0x1,_0x632f3b;_0x25980b>=0x0;_0x25980b--)(_0x632f3b=_0x4ef13c[_0x25980b])&&(_0x2eed58=_0x632f3b(_0x2eed58)||_0x2eed58);return _0x2eed58;},_0x57d56c=(_0x192387,_0x54c110)=>(_0x175cb0,_0x25c0b6)=>_0x54c110(_0x175cb0,_0x25c0b6,_0x192387);_0x44c9e4[_0x168ac6(0x369)]=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x1f71fc,_0x421ede){const _0x3002bd=_0x168ac6;super(),_0x2d9017(this,_0x3002bd(0x353),new _0x502ce1[(_0x3002bd(0x35e))]({'PIVOT_PERFORM_CHECK':_0x465561})),_0x2d9017(this,_0x3002bd(0x36e),new _0x502ce1[(_0x3002bd(0x276))]({'PIVOT_MUTATION_GENERATE':_0x42e8d1})),(this[_0x3002bd(0x3dd)]=_0x1f71fc,this[_0x3002bd(0x29a)]=_0x421ede,this[_0x3002bd(0x4d1)]());}[_0x168ac6(0x4d1)](){const _0x570a43=_0x168ac6;this[_0x570a43(0x3ff)]();}['getPivotPerformCheck'](_0x5c66a2){const _0x30ea1b=_0x168ac6;return this[_0x30ea1b(0x353)][_0x30ea1b(0x4b4)](_0x465561)(!0x1,_0x5c66a2);}[_0x168ac6(0x3ff)](){const _0x1a2d6c=_0x168ac6;this[_0x1a2d6c(0x218)](this[_0x1a2d6c(0x3dd)][_0x1a2d6c(0x1f0)](_0x2b7376[_0x1a2d6c(0x33d)][_0x1a2d6c(0x3f3)],{'priority':0xc8,'effect':_0x502ce1['InterceptorEffectEnum']['Value']|_0x502ce1[_0x1a2d6c(0x3d3)]['Style'],'handler':(_0x19f953,_0x2366da,_0x1a451f)=>{const _0x227603=_0x1a2d6c,{row:_0x185754,col:_0x20d4b2,unitId:_0x3ddd66,subUnitId:_0xf2b613,workbook:_0xfc74df}=_0x2366da,_0x3b842e=this[_0x227603(0x29a)][_0x227603(0x26e)](_0x3ddd66,_0xf2b613,_0x185754,_0x20d4b2);if(!_0x3b842e)return _0x1a451f(_0x19f953);const _0x3ac6cd={..._0x19f953};(_0x3b842e['v']||_0x3b842e['v']===0x0)&&(_0x3ac6cd['v']=_0x3b842e['v']),_0x3b842e['t']&&(_0x3ac6cd['t']=_0x3b842e['t']);const _0x926ead=(typeof(_0x19f953==null?void 0x0:_0x19f953['s'])=='string'?_0xfc74df[_0x227603(0x3be)]()[_0x227603(0x4c2)](_0x19f953==null?void 0x0:_0x19f953['s']):_0x19f953==null?void 0x0:_0x19f953['s'])||{},_0x3c7769=_0xfc74df[_0x227603(0x3be)]()[_0x227603(0x4c2)](_0x3b842e['s']),_0x3e149a={..._0x3c7769,..._0x926ead};_0x3c7769!=null&&_0x3c7769['n']&&(_0x3e149a['n']=_0x3c7769['n']);const _0x2a6635=_0xfc74df[_0x227603(0x3be)]()[_0x227603(0x206)](_0x3e149a);return _0x3ac6cd['s']=_0x2a6635,(_0x3b842e[_0x227603(0x356)]===_0x2371ae[_0x227603(0x2aa)][_0x227603(0x458)]||_0x3b842e[_0x227603(0x356)]===_0x2371ae['PivotCellStyleTypeEnum'][_0x227603(0x4a2)])&&(_0x3ac6cd['fontRenderExtension']={},_0x3ac6cd[_0x227603(0x4a6)][_0x227603(0x31a)]=_0x218b3c),_0x1a451f(_0x3ac6cd);}}));}},_0x44c9e4[_0x168ac6(0x369)]=_0x16f4a9([_0x57d56c(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376['SheetInterceptorService'])),_0x57d56c(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x4a3)]))],_0x44c9e4['SheetsPivotTableService']);function _0x40ca50(_0x3c3e90,_0x382463){const _0x50cb3d=_0x168ac6;switch(_0x382463){case _0x2371ae[_0x50cb3d(0x348)][_0x50cb3d(0x4e3)]:return _0x3c3e90[_0x50cb3d(0x3fc)];case _0x2371ae['PivotTableFiledAreaEnum'][_0x50cb3d(0x44d)]:return _0x3c3e90[_0x50cb3d(0x269)];case _0x2371ae[_0x50cb3d(0x348)][_0x50cb3d(0x427)]:return _0x3c3e90[_0x50cb3d(0x405)];case _0x2371ae['PivotTableFiledAreaEnum']['Column']:return _0x3c3e90[_0x50cb3d(0x396)];default:return[];}}function _0x358857(_0x21d14e,_0x2d5ed2){const _0x4e60b6=_0x168ac6;return _0x21d14e['measure'][_0x2d5ed2]||_0x21d14e[_0x4e60b6(0x49b)][_0x2d5ed2];}function _0x50d781(_0x9ce4e0,_0x5a5465){const _0x1dc220=_0x168ac6,{area:_0x604430,fieldJson:_0xa0b796,index:_0x172de6}=_0x5a5465;_0x604430===_0x2371ae[_0x1dc220(0x348)][_0x1dc220(0x4e3)]?_0x9ce4e0[_0x1dc220(0x498)][_0xa0b796['id']]=_0xa0b796:_0x9ce4e0[_0x1dc220(0x49b)][_0xa0b796['id']]=_0xa0b796,_0x40ca50(_0x9ce4e0,_0x604430)[_0x1dc220(0x3e8)](_0x172de6,0x0,_0xa0b796['id']);}function _0xe06007(_0x3b1fca,_0x182cb3){const _0x1988d2=_0x168ac6,{area:_0x1c014a,fieldId:_0x1d7e67,index:_0x367020}=_0x182cb3;_0x1c014a===_0x2371ae[_0x1988d2(0x348)][_0x1988d2(0x4e3)]?delete _0x3b1fca['measure'][_0x1d7e67]:delete _0x3b1fca[_0x1988d2(0x49b)][_0x1d7e67],_0x40ca50(_0x3b1fca,_0x1c014a)[_0x1988d2(0x3e8)](_0x367020,0x1);}function _0x62cb6(_0x53cf3f,_0x4fc2f9){const _0x326823=_0x168ac6,{fieldId:_0x4670d7,name:_0x138d0d}=_0x4fc2f9,_0x1f447a=_0x358857(_0x53cf3f,_0x4670d7);_0x1f447a&&(_0x1f447a[_0x326823(0x3c3)]=_0x138d0d);}function _0xccf164(_0x44065e,_0x1bdc03){const _0x549847=_0x168ac6,{fieldId:_0x223cb4,collapse:_0x459878,item:_0x48099d}=_0x1bdc03;_0x48099d!==void 0x0?(_0x44065e[_0x549847(0x2d3)][_0x223cb4]=_0x44065e[_0x549847(0x2d3)][_0x223cb4]||{},_0x44065e[_0x549847(0x2d3)][_0x223cb4][_0x48099d]=_0x459878):_0x44065e[_0x549847(0x2d3)][_0x223cb4]=_0x459878;}function _0x431079(_0x3235f4,_0x1c403){const _0x1407d1=_0x168ac6,{fieldId:_0x422457,format:_0x3b6d7b}=_0x1c403,_0x43f798=_0x358857(_0x3235f4,_0x422457);_0x43f798&&(_0x43f798[_0x1407d1(0x486)]=_0x3b6d7b);}function _0xc7b059(_0x200e32,_0x31f730){const _0x3cb51b=_0x168ac6,{fieldId:_0x4aaf6d,filterInfo:_0x506c4b}=_0x31f730,_0x58eab3=_0x358857(_0x200e32,_0x4aaf6d);_0x58eab3&&(_0x58eab3[_0x3cb51b(0x4d7)]=_0x506c4b);}function _0x575d13(_0x3e8320,_0x7e54b7){const _0x1a272b=_0x168ac6,{fieldId:_0x194a7b,filterInfo:_0x3fed64}=_0x7e54b7,_0x5d0477=_0x3e8320[_0x1a272b(0x3f2)][_0x1a272b(0x35b)](_0x18bd5c=>_0x18bd5c[_0x1a272b(0x442)]!==_0x194a7b);_0x3fed64&&_0x5d0477['push']({'fieldId':_0x194a7b,'filterInfo':_0x3fed64}),_0x3e8320['valueFilter']=_0x5d0477;}function _0x305402(_0x3f9d09,_0x3c04f6){const _0x224eaa=_0x168ac6,{fieldId:_0x5c15ce,subtotalType:_0x4f238f}=_0x3c04f6,_0x1813a5=_0x358857(_0x3f9d09,_0x5c15ce);_0x1813a5&&(_0x1813a5[_0x224eaa(0x4ab)]=_0x4f238f);}function _0x186a2f(_0x784bc4,_0x33ac5e){const _0xa8a889=_0x168ac6,{fieldId:_0x2de927,oldArea:_0x1ddb9,area:_0x5b5698,oldIndex:_0x55c0ca,index:_0x2214d4}=_0x33ac5e,_0x54897a=_0x1ddb9!==_0x2371ae[_0xa8a889(0x348)]['Value']&&_0x5b5698===_0x2371ae[_0xa8a889(0x348)]['Value'],_0x1f4737=_0x1ddb9===_0x2371ae[_0xa8a889(0x348)]['Value']&&_0x5b5698!==_0x2371ae['PivotTableFiledAreaEnum']['Value'];if(_0x54897a||_0x1f4737){const _0x4b0356=_0x358857(_0x784bc4,_0x2de927);_0x4b0356&&(_0x54897a?(delete _0x784bc4[_0xa8a889(0x49b)][_0x2de927],_0x784bc4[_0xa8a889(0x498)][_0x2de927]=_0x4b0356):(delete _0x784bc4[_0xa8a889(0x498)][_0x2de927],_0x784bc4[_0xa8a889(0x49b)][_0x2de927]=_0x4b0356));}const _0x3a80aa=_0x40ca50(_0x784bc4,_0x1ddb9),_0x371802=_0x40ca50(_0x784bc4,_0x5b5698);_0x3a80aa[_0xa8a889(0x3e8)](_0x55c0ca,0x1),_0x371802['splice'](_0x2214d4,0x0,_0x2de927);}function _0xa27a22(_0xd64d97,_0x3f32d2){const _0x4f51c8=_0x168ac6,{valuePosition:_0xb4641d,index:_0x56526a}=_0x3f32d2;_0xd64d97['valuePosition']=_0xb4641d,_0xd64d97[_0x4f51c8(0x34e)]=_0x56526a;}function _0x305834(_0x3a37fc,_0x50bbfc){const {tableFieldId:_0x257673,sourceName:_0x15465a,dataFieldId:_0x272555}=_0x50bbfc,_0x307dfa=_0x358857(_0x3a37fc,_0x257673);_0x307dfa&&(_0x307dfa['sourceName']=_0x15465a,_0x307dfa['dataFieldId']=_0x272555);}function _0x518e32(_0xb77cec,_0x1f5662){const _0x168db1=_0x168ac6,{fieldId:_0x262adf,sortInfo:_0x1c741c}=_0x1f5662,_0x6190dc=_0x358857(_0xb77cec,_0x262adf);_0x6190dc&&(_0x6190dc[_0x168db1(0x2e2)]=_0x1c741c);}function _0x45c205(_0x598cb9,_0xfdf338){const _0x5ce5c8=_0x168ac6,{options:_0x14f96d}=_0xfdf338;_0x598cb9['options']={..._0x598cb9[_0x5ce5c8(0x305)],..._0x14f96d};}const _0x51b7e9={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x25f),'handler'(_0x19ebfd,_0x34cd17){const _0x4d174b=_0x168ac6;if(!_0x34cd17)return!0x1;if(!!_0x19ebfd[_0x4d174b(0x4c2)](_0x502ce1[_0x4d174b(0x25b)])[_0x4d174b(0x4fb)](_0x44bb6e))return!0x0;const _0xe8ee36=_0x19ebfd['get'](_0x44c9e4[_0x4d174b(0x31f)]),{pivotTableId:_0x24d21a,fieldJson:_0x2e1e74,area:_0x44f5dc,index:_0x1aae73,unitId:_0x296533,subUnitId:_0x49f7d6}=_0x34cd17,_0x1a9280=_0xe8ee36[_0x4d174b(0x42a)](_0x24d21a);if(!_0x1a9280)return!0x1;let _0x5c8d57;_0x44f5dc===_0x2371ae[_0x4d174b(0x348)][_0x4d174b(0x4e3)]?_0x5c8d57=_0x2371ae[_0x4d174b(0x4b3)](_0x2e1e74):_0x5c8d57=_0x2371ae['createLabelField'](_0x2e1e74),_0x1a9280[_0x4d174b(0x1ff)](_0x5c8d57,_0x44f5dc,_0x1aae73);const _0x501c3f=_0xe8ee36[_0x4d174b(0x489)](_0x296533,_0x49f7d6,_0x24d21a);_0x50d781(_0x501c3f,_0x34cd17);const _0x9ad290=_0xe8ee36[_0x4d174b(0x20c)](_0x296533,_0x49f7d6,_0x24d21a);return _0xe8ee36[_0x4d174b(0x4d6)]({'unitId':_0x296533,'subUnitId':_0x49f7d6,'token':_0x24d21a,'type':_0x44d5f2[_0x4d174b(0x399)],'pivotConfig':_0x9ad290}),!0x0;}},_0x1a4cf9={'type':_0x502ce1['CommandType']['MUTATION'],'id':'sheet.mutation.remove-pivot-field','handler'(_0x30ac34,_0xf618f4){const _0x118781=_0x168ac6;if(!_0xf618f4)return!0x1;if(!!_0x30ac34[_0x118781(0x4c2)](_0x502ce1[_0x118781(0x25b)])['getConfig'](_0x44bb6e))return!0x0;const _0x15874d=_0x30ac34[_0x118781(0x4c2)](_0x44c9e4[_0x118781(0x31f)]),{pivotTableId:_0x94fc58,fieldId:_0xe21ada,unitId:_0x375423,subUnitId:_0x1b72c2}=_0xf618f4,_0x5e492b=_0x15874d[_0x118781(0x42a)](_0x94fc58);if(!_0x5e492b)return!0x1;_0x5e492b[_0x118781(0x45c)](_0xe21ada);const _0x52cbca=_0x15874d[_0x118781(0x489)](_0x375423,_0x1b72c2,_0x94fc58);_0xe06007(_0x52cbca,_0xf618f4);const _0x26d631=_0x15874d[_0x118781(0x20c)](_0x375423,_0x1b72c2,_0x94fc58);return _0x15874d[_0x118781(0x4d6)]({'unitId':_0x375423,'subUnitId':_0x1b72c2,'token':_0x94fc58,'type':_0x44d5f2[_0x118781(0x399)],'pivotConfig':_0x26d631}),!0x0;}},_0x724960={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x55b102,_0x28c41c){const _0x33daa3=_0x168ac6;if(!_0x28c41c)return!0x1;if(!!_0x55b102[_0x33daa3(0x4c2)](_0x502ce1[_0x33daa3(0x25b)])[_0x33daa3(0x4fb)](_0x44bb6e))return!0x0;const _0x195a89=_0x55b102[_0x33daa3(0x4c2)](_0x44c9e4['SheetsPivotDataSourceModel']),{unitId:_0x19709b,subUnitId:_0x78c46c,pivotTableId:_0x330a76,fieldId:_0x3cff58,name:_0x2b1131}=_0x28c41c,_0x19e957=_0x195a89['getPivotTableInstance'](_0x330a76);if(!_0x19e957)return!0x1;_0x19e957[_0x33daa3(0x321)](_0x3cff58,_0x2b1131);const _0x459995=_0x195a89['getPivotTableModelConfig'](_0x19709b,_0x78c46c,_0x330a76);return _0x62cb6(_0x459995,_0x28c41c),_0x195a89[_0x33daa3(0x4d6)]({'unitId':_0x19709b,'subUnitId':_0x78c46c,'token':_0x330a76,'type':_0x44d5f2[_0x33daa3(0x399)]}),!0x0;}},_0x5ca950={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x227),'handler'(_0x460d79,_0x221ccf){const _0x486bda=_0x168ac6;if(!_0x221ccf)return!0x1;if(!!_0x460d79[_0x486bda(0x4c2)](_0x502ce1[_0x486bda(0x25b)])[_0x486bda(0x4fb)](_0x44bb6e))return!0x0;const _0x3b1d39=_0x460d79[_0x486bda(0x4c2)](_0x44c9e4[_0x486bda(0x31f)]),{unitId:_0x569536,subUnitId:_0x2f68be,pivotTableId:_0x494b52,fieldId:_0x1567ac,collapse:_0x25c18f,item:_0xdb0f01}=_0x221ccf,_0x2807bf=_0x3b1d39[_0x486bda(0x42a)](_0x494b52);if(!_0x2807bf)return!0x1;_0x2807bf[_0x486bda(0x406)](_0x1567ac,_0x25c18f,_0xdb0f01);const _0x3cc0f1=_0x3b1d39[_0x486bda(0x489)](_0x569536,_0x2f68be,_0x494b52);return _0xccf164(_0x3cc0f1,_0x221ccf),_0x3b1d39['addDirtyPivotTable']({'unitId':_0x569536,'subUnitId':_0x2f68be,'token':_0x494b52,'type':_0x44d5f2[_0x486bda(0x399)]}),!0x0;}},_0x22ab1b={'type':_0x502ce1[_0x168ac6(0x475)]['MUTATION'],'id':'sheet.mutation.set-pivot-format','handler'(_0x1ac1d4,_0x25e508){const _0x58b6a8=_0x168ac6;if(!_0x25e508)return!0x1;if(!!_0x1ac1d4['get'](_0x502ce1[_0x58b6a8(0x25b)])[_0x58b6a8(0x4fb)](_0x44bb6e))return!0x0;const _0x269afa=_0x1ac1d4[_0x58b6a8(0x4c2)](_0x44c9e4['SheetsPivotDataSourceModel']),{unitId:_0x412dcd,subUnitId:_0x110c88,pivotTableId:_0x296efb,fieldId:_0x269a91,format:_0x20a799}=_0x25e508,_0x14a4bd=_0x269afa[_0x58b6a8(0x42a)](_0x296efb);if(!_0x14a4bd)return!0x1;_0x14a4bd[_0x58b6a8(0x216)](_0x269a91,_0x20a799);const _0xb4348=_0x269afa['getPivotTableModelConfig'](_0x412dcd,_0x110c88,_0x296efb);return _0x431079(_0xb4348,_0x25e508),_0x269afa[_0x58b6a8(0x4d6)]({'unitId':_0x412dcd,'subUnitId':_0x110c88,'token':_0x296efb,'type':_0x44d5f2[_0x58b6a8(0x399)]}),!0x0;}},_0x513c2f={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':'sheet.mutation.set-pivot-filter','handler'(_0x4d7e49,_0x9cfcde){const _0x35cbe0=_0x168ac6;if(!_0x9cfcde)return!0x1;if(!!_0x4d7e49['get'](_0x502ce1[_0x35cbe0(0x25b)])[_0x35cbe0(0x4fb)](_0x44bb6e))return!0x0;const _0x440260=_0x4d7e49['get'](_0x44c9e4[_0x35cbe0(0x31f)]),{unitId:_0x4a4b8f,subUnitId:_0x480b20,pivotTableId:_0x56102c,fieldId:_0x28b85f,filterInfo:_0x5a7a10}=_0x9cfcde,_0x354f5b=_0x440260[_0x35cbe0(0x42a)](_0x56102c);if(!_0x354f5b)return!0x1;_0x354f5b[_0x35cbe0(0x4e8)](_0x28b85f,_0x5a7a10);const _0x4d5ec5=_0x440260[_0x35cbe0(0x489)](_0x4a4b8f,_0x480b20,_0x56102c);return _0xc7b059(_0x4d5ec5,_0x9cfcde),_0x440260[_0x35cbe0(0x4d6)]({'unitId':_0x4a4b8f,'subUnitId':_0x480b20,'token':_0x56102c,'type':_0x44d5f2[_0x35cbe0(0x399)]}),!0x0;}},_0x36de21={'type':_0x502ce1[_0x168ac6(0x475)]['MUTATION'],'id':_0x168ac6(0x3bb),'handler'(_0x29ba0b,_0x22f600){const _0x43e330=_0x168ac6;if(!_0x22f600)return!0x1;if(!!_0x29ba0b[_0x43e330(0x4c2)](_0x502ce1[_0x43e330(0x25b)])[_0x43e330(0x4fb)](_0x44bb6e))return!0x0;const _0x218ed6=_0x29ba0b[_0x43e330(0x4c2)](_0x44c9e4[_0x43e330(0x31f)]),{unitId:_0x1800ff,subUnitId:_0x562dbe,pivotTableId:_0x5c1e3c,options:_0x254e15}=_0x22f600,_0x4d5fd9=_0x218ed6[_0x43e330(0x42a)](_0x5c1e3c);if(!_0x4d5fd9)return!0x1;_0x4d5fd9[_0x43e330(0x4df)](_0x254e15);const _0x285e43=_0x218ed6[_0x43e330(0x489)](_0x1800ff,_0x562dbe,_0x5c1e3c);return _0x45c205(_0x285e43,_0x22f600),_0x218ed6[_0x43e330(0x4d6)]({'unitId':_0x1800ff,'subUnitId':_0x562dbe,'token':_0x5c1e3c,'type':_0x44d5f2[_0x43e330(0x399)]}),!0x0;}},_0x3f431b={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x4c6),'handler'(_0x45df99,_0x584dd2){const _0x374acb=_0x168ac6;if(!_0x584dd2)return!0x1;if(!!_0x45df99[_0x374acb(0x4c2)](_0x502ce1[_0x374acb(0x25b)])[_0x374acb(0x4fb)](_0x44bb6e))return!0x0;const _0x37e8ab=_0x45df99[_0x374acb(0x4c2)](_0x44c9e4['SheetsPivotDataSourceModel']),{unitId:_0x372938,subUnitId:_0xe5293a,pivotTableId:_0xd7420b,sortInfo:_0x145aa8,fieldId:_0x3cbfd3}=_0x584dd2,_0x36e9f4=_0x37e8ab[_0x374acb(0x42a)](_0xd7420b);if(!_0x36e9f4)return!0x1;_0x36e9f4[_0x374acb(0x2c3)](_0x3cbfd3,_0x145aa8);const _0x4c620b=_0x37e8ab[_0x374acb(0x489)](_0x372938,_0xe5293a,_0xd7420b);return _0x518e32(_0x4c620b,_0x584dd2),_0x37e8ab['addDirtyPivotTable']({'unitId':_0x372938,'subUnitId':_0xe5293a,'token':_0xd7420b,'type':_0x44d5f2[_0x374acb(0x399)]}),!0x0;}},_0x1c9145={'type':_0x502ce1[_0x168ac6(0x475)]['MUTATION'],'id':'sheet.mutation.set-pivot-field-subtotal-type','handler'(_0x5562f0,_0x1b2bcd){const _0x663c1b=_0x168ac6;if(!_0x1b2bcd)return!0x1;if(!!_0x5562f0[_0x663c1b(0x4c2)](_0x502ce1[_0x663c1b(0x25b)])[_0x663c1b(0x4fb)](_0x44bb6e))return!0x0;const _0x3f0f81=_0x5562f0[_0x663c1b(0x4c2)](_0x44c9e4[_0x663c1b(0x31f)]),{unitId:_0x54f834,subUnitId:_0x48fb3e,pivotTableId:_0x597d77,fieldId:_0x65a0af,subtotalType:_0x5363d2}=_0x1b2bcd,_0xccf26e=_0x3f0f81[_0x663c1b(0x42a)](_0x597d77);if(!_0xccf26e)return!0x1;_0xccf26e[_0x663c1b(0x329)](_0x65a0af,_0x5363d2);const _0x2e4e9f=_0x3f0f81[_0x663c1b(0x489)](_0x54f834,_0x48fb3e,_0x597d77);return _0x305402(_0x2e4e9f,_0x1b2bcd),_0x3f0f81[_0x663c1b(0x4d6)]({'unitId':_0x54f834,'subUnitId':_0x48fb3e,'token':_0x597d77,'type':_0x44d5f2[_0x663c1b(0x399)]}),!0x0;}},_0x476318={'type':_0x502ce1['CommandType'][_0x168ac6(0x31d)],'id':_0x168ac6(0x30d),'handler'(_0x548f5e,_0x2566b7){const _0x5acbb4=_0x168ac6;if(!_0x2566b7)return!0x1;if(!!_0x548f5e[_0x5acbb4(0x4c2)](_0x502ce1[_0x5acbb4(0x25b)])[_0x5acbb4(0x4fb)](_0x44bb6e))return!0x0;const _0x235fec=_0x548f5e[_0x5acbb4(0x4c2)](_0x44c9e4['SheetsPivotDataSourceModel']),{unitId:_0x37743b,subUnitId:_0x38ee50,pivotTableId:_0x2fbcbb,fieldId:_0x1b032d,filterInfo:_0x57570d}=_0x2566b7,_0xdc7383=_0x235fec[_0x5acbb4(0x42a)](_0x2fbcbb);if(!_0xdc7383)return!0x1;_0xdc7383[_0x5acbb4(0x261)](_0x1b032d,_0x57570d);const _0x346846=_0x235fec[_0x5acbb4(0x489)](_0x37743b,_0x38ee50,_0x2fbcbb);return _0x575d13(_0x346846,_0x2566b7),_0x235fec['addDirtyPivotTable']({'unitId':_0x37743b,'subUnitId':_0x38ee50,'token':_0x2fbcbb,'type':_0x44d5f2[_0x5acbb4(0x399)]}),!0x0;}},_0x243d97={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x3dc),'handler'(_0x57b18f,_0x5aa299){const _0x92f529=_0x168ac6;if(!_0x5aa299)return!0x1;if(!!_0x57b18f[_0x92f529(0x4c2)](_0x502ce1['IConfigService'])[_0x92f529(0x4fb)](_0x44bb6e))return!0x0;const _0x560710=_0x57b18f['get'](_0x44c9e4[_0x92f529(0x31f)]),{unitId:_0x23caa1,subUnitId:_0x20ab68,pivotTableId:_0x196e05,area:_0x53816f,index:_0x15314d,fieldId:_0x3ac029}=_0x5aa299,_0x191d6d=_0x560710[_0x92f529(0x42a)](_0x196e05);if(!_0x191d6d)return!0x1;_0x191d6d['updateFieldPosition'](_0x3ac029,_0x53816f,_0x15314d);const _0x48188f=_0x560710[_0x92f529(0x489)](_0x23caa1,_0x20ab68,_0x196e05);return _0x186a2f(_0x48188f,_0x5aa299),_0x560710['addDirtyPivotTable']({'unitId':_0x23caa1,'subUnitId':_0x20ab68,'token':_0x196e05,'type':_0x44d5f2[_0x92f529(0x399)]}),!0x0;}},_0x1fa1e0={'type':_0x502ce1[_0x168ac6(0x475)]['MUTATION'],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x57b894,_0x232662){const _0x442ad8=_0x168ac6;if(!_0x232662)return!0x1;if(!!_0x57b894[_0x442ad8(0x4c2)](_0x502ce1[_0x442ad8(0x25b)])[_0x442ad8(0x4fb)](_0x44bb6e))return!0x0;const _0x4abde6=_0x57b894[_0x442ad8(0x4c2)](_0x44c9e4['SheetsPivotDataSourceModel']),{unitId:_0xd6aef3,subUnitId:_0x5a4273,pivotTableId:_0x43929d,sourceName:_0x3f2346,dataFieldId:_0x5d14f2,tableFieldId:_0x53ea8d}=_0x232662,_0x158efa=_0x4abde6[_0x442ad8(0x42a)](_0x43929d);if(!_0x158efa)return!0x1;_0x158efa[_0x442ad8(0x20b)](_0x53ea8d,_0x3f2346,_0x5d14f2);const _0x447321=_0x4abde6[_0x442ad8(0x489)](_0xd6aef3,_0x5a4273,_0x43929d);return _0x305834(_0x447321,_0x232662),_0x4abde6[_0x442ad8(0x4d6)]({'unitId':_0xd6aef3,'subUnitId':_0x5a4273,'token':_0x43929d,'type':_0x44d5f2[_0x442ad8(0x399)]}),!0x0;}},_0x49bc17={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x372),'handler'(_0x33f7d4,_0x1ae5b2){const _0x390171=_0x168ac6;if(!_0x1ae5b2)return!0x1;if(!!_0x33f7d4[_0x390171(0x4c2)](_0x502ce1[_0x390171(0x25b)])['getConfig'](_0x44bb6e))return!0x0;const _0x5a16f7=_0x33f7d4[_0x390171(0x4c2)](_0x44c9e4[_0x390171(0x31f)]),{unitId:_0x46ba7d,subUnitId:_0x22a0bf,pivotTableId:_0x3efd3,valuePosition:_0x52acec,index:_0x20489c}=_0x1ae5b2,_0x2cedad=_0x5a16f7[_0x390171(0x42a)](_0x3efd3);if(!_0x2cedad)return!0x1;_0x2cedad[_0x390171(0x419)](_0x52acec,_0x20489c);const _0x48d492=_0x5a16f7['getPivotTableModelConfig'](_0x46ba7d,_0x22a0bf,_0x3efd3);return _0xa27a22(_0x48d492,_0x1ae5b2),_0x5a16f7[_0x390171(0x4d6)]({'unitId':_0x46ba7d,'subUnitId':_0x22a0bf,'token':_0x3efd3,'type':_0x44d5f2[_0x390171(0x399)]}),!0x0;}};function _0x16abcc(_0x1d8014,_0x520f4b,_0x1afc86){const _0x6a9ee6=_0x168ac6,{pivotTableId:_0x2cc2ab,unitId:_0x5e8ec7,subUnitId:_0x11f6d9}=_0x520f4b,_0x163016=[],_0x54488b=[];for(const _0x515860 of _0x1afc86)switch(_0x515860['type']){case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x200)]:{const {fieldJson:_0x520cbe,area:_0x2cd18c,index:_0xc008ea}=_0x515860,_0x4eb259={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldJson':_0x520cbe,'area':_0x2cd18c,'index':_0xc008ea},_0xd23f30={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x520cbe['id'],'area':_0x2cd18c,'index':_0xc008ea};_0x163016['push']({'id':_0x51b7e9['id'],'params':_0x4eb259}),_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x1a4cf9['id'],'params':_0xd23f30});}break;case _0x2371ae['PivotTableChangeTypeEnum'][_0x6a9ee6(0x214)]:{const {fieldId:_0x1d77c3,newSubtotalType:_0x522eaf,oldSubtotalType:_0x35f813}=_0x515860,_0x40f9e5={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x1d77c3,'subtotalType':_0x522eaf};_0x163016[_0x6a9ee6(0x412)]({'id':_0x1c9145['id'],'params':_0x40f9e5});const _0x30242a={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x1d77c3,'subtotalType':_0x35f813};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x1c9145['id'],'params':_0x30242a});}break;case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x32a)]:{const {fieldId:_0x4511b3,fieldJson:_0xeadc4b,area:_0x136002,index:_0x380269}=_0x515860,_0x4eedb3={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x4511b3,'index':_0x380269,'area':_0x136002};_0x163016[_0x6a9ee6(0x412)]({'id':_0x1a4cf9['id'],'params':_0x4eedb3});const _0x47dd35={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldJson':_0xeadc4b,'area':_0x136002,'index':_0x380269};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x51b7e9['id'],'params':_0x47dd35});}break;case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x234)]:{const {fieldId:_0x463eba,oldName:_0x10027b,newName:_0x1e56fd}=_0x515860,_0x5ca6ec={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x463eba,'name':_0x1e56fd};_0x163016[_0x6a9ee6(0x412)]({'id':_0x724960['id'],'params':_0x5ca6ec});const _0x3a6673={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x463eba,'name':_0x10027b};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x724960['id'],'params':_0x3a6673});}break;case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x435)]:{const {fieldId:_0x2289f1,oldFilterInfo:_0x5952be,newFilterInfo:_0x292511}=_0x515860,_0x229299={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x2289f1,'filterInfo':_0x292511};_0x163016[_0x6a9ee6(0x412)]({'id':_0x513c2f['id'],'params':_0x229299});const _0x47a18f={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x2289f1,'filterInfo':_0x5952be};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x513c2f['id'],'params':_0x47a18f});}break;case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x359)]:{const {fieldId:_0x191c6d,oldSortInfo:_0x23d9bc,newSortInfo:_0x4bd3f2}=_0x515860,_0xbe7ac5={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x191c6d,'sortInfo':_0x4bd3f2};_0x163016[_0x6a9ee6(0x412)]({'id':_0x3f431b['id'],'params':_0xbe7ac5});const _0x1cc8a3={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x191c6d,'sortInfo':_0x23d9bc};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x3f431b['id'],'params':_0x1cc8a3});}break;case _0x2371ae['PivotTableChangeTypeEnum'][_0x6a9ee6(0x456)]:{const {oldOptions:_0x4a1101,newOptions:_0x244c1f}=_0x515860,_0x1c9fad={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'options':_0x244c1f};_0x163016[_0x6a9ee6(0x412)]({'id':_0x36de21['id'],'params':_0x1c9fad});const _0x218b8f={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'options':_0x4a1101};_0x54488b['unshift']({'id':_0x36de21['id'],'params':_0x218b8f});}break;case _0x2371ae['PivotTableChangeTypeEnum'][_0x6a9ee6(0x45b)]:{const {oldArea:_0x5015b2,newArea:_0x480187,oldIndex:_0x55748a,newIndex:_0x3ad525,fieldId:_0x2f0588}=_0x515860,_0xa0cf86={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x2f0588,'area':_0x480187,'index':_0x3ad525,'oldArea':_0x5015b2,'oldIndex':_0x55748a};_0x163016['push']({'id':_0x243d97['id'],'params':_0xa0cf86});const _0x2a26ba={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x2f0588,'area':_0x5015b2,'index':_0x55748a,'oldArea':_0x480187,'oldIndex':_0x3ad525};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x243d97['id'],'params':_0x2a26ba});}break;case _0x2371ae['PivotTableChangeTypeEnum'][_0x6a9ee6(0x371)]:{const {oldValuePosition:_0x535abd,newValuePosition:_0x4856af,oldIndex:_0x40310c,newIndex:_0x5ea81f}=_0x515860,_0x23902a={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'valuePosition':_0x4856af,'index':_0x5ea81f};_0x163016[_0x6a9ee6(0x412)]({'id':_0x49bc17['id'],'params':_0x23902a});const _0x19f8b9={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'valuePosition':_0x535abd,'index':_0x40310c};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x49bc17['id'],'params':_0x19f8b9});}break;case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x2db)]:{const {fieldId:_0x4c20a7,collapse:_0x57503d,item:_0x4015d3}=_0x515860,_0x3a653f={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x4c20a7,'collapse':_0x57503d,'item':_0x4015d3};_0x163016[_0x6a9ee6(0x412)]({'id':_0x5ca950['id'],'params':_0x3a653f});const _0x4ad393={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x4c20a7,'collapse':!_0x57503d,'item':_0x4015d3};_0x54488b['unshift']({'id':_0x5ca950['id'],'params':_0x4ad393});}break;case _0x2371ae['PivotTableChangeTypeEnum']['SetFieldFormat']:{const {newFormat:_0x2935e5,oldFormat:_0x160009,fieldId:_0x5068dc}=_0x515860,_0x4573ea={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x5068dc,'format':_0x2935e5};_0x163016[_0x6a9ee6(0x412)]({'id':_0x22ab1b['id'],'params':_0x4573ea});const _0x140e7d={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x5068dc,'format':_0x160009};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x22ab1b['id'],'params':_0x140e7d});}break;case _0x2371ae['PivotTableChangeTypeEnum'][_0x6a9ee6(0x480)]:{const {tableFieldId:_0x57c8dd,oldSourceName:_0x1a8d7b,newSourceName:_0x3e4d61,oldDataFieldId:_0x49e38a,newDataFieldId:_0x83066b}=_0x515860,_0x399289={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'tableFieldId':_0x57c8dd,'sourceName':_0x3e4d61,'dataFieldId':_0x83066b};_0x163016['push']({'id':_0x1fa1e0['id'],'params':_0x399289});const _0x5442a5={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'tableFieldId':_0x57c8dd,'sourceName':_0x1a8d7b,'dataFieldId':_0x49e38a};_0x54488b[_0x6a9ee6(0x3af)]({'id':_0x1fa1e0['id'],'params':_0x5442a5});}break;case _0x2371ae[_0x6a9ee6(0x315)][_0x6a9ee6(0x241)]:{const {fieldId:_0x41843e,filterInfo:_0x30c591,oldFilterInfo:_0x17f8d9}=_0x515860,_0x3cd7eb={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x41843e,'filterInfo':_0x30c591};_0x163016[_0x6a9ee6(0x412)]({'id':_0x476318['id'],'params':_0x3cd7eb});const _0x53918f={'unitId':_0x5e8ec7,'subUnitId':_0x11f6d9,'pivotTableId':_0x2cc2ab,'fieldId':_0x41843e,'filterInfo':_0x17f8d9};_0x54488b['unshift']({'id':_0x476318['id'],'params':_0x53918f});}}return{'redos':_0x163016,'undos':_0x54488b};}function _0xb9c727(_0x384c21,_0x4936d8){const _0x2e9e94=_0x168ac6;var _0x563d6b;const _0x16bc47=_0x384c21[_0x2e9e94(0x4c2)](_0x44c9e4[_0x2e9e94(0x369)]),{cellInfo:_0xbe2116,view:_0x27ef7c,isEmpty:_0x2ffc95}=_0x4936d8;return(_0x563d6b=_0x16bc47[_0x2e9e94(0x36e)][_0x2e9e94(0x3a7)](_0x42e8d1)(_0x509a34,{'cellInfo':_0xbe2116,'view':_0x27ef7c,'isEmpty':_0x2ffc95}))!=null?_0x563d6b:_0x509a34;}const _0x19cd25=()=>typeof process<'u'&&process[_0x168ac6(0x462)]!=null&&process[_0x168ac6(0x462)]['node']!=null,_0x108104={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':'sheet.mutation.add-pivot-table','handler'(_0x3c248c,_0x3f692a){const _0x93472=_0x168ac6;var _0x45478a;if(!_0x3f692a)return!0x1;const _0x4320df=_0x3c248c[_0x93472(0x4c2)](_0x502ce1[_0x93472(0x25b)]);if(!!_0x4320df[_0x93472(0x4fb)](_0x44bb6e))return!0x0;const _0x9f827b=_0x3c248c[_0x93472(0x4c2)](_0x502ce1[_0x93472(0x37a)]),_0x23b8ed=_0x3c248c['get'](_0x44c9e4[_0x93472(0x31f)]),{pivotTableId:_0x5926e3,pivotTableConfig:_0x26a561,collectionConfig:_0x20dd3a,unitId:_0x210d8c,subUnitId:_0xb769a4}=_0x3f692a,{sourceRangeInfo:_0xae9a4a,fieldsConfig:_0x12d025,targetCellInfo:_0x4cdcf3}=_0x26a561,_0x38fc91=_0x9f827b['getUnit'](_0x210d8c);if(!_0x38fc91||!_0x38fc91[_0x93472(0x45f)](_0xb769a4))return!0x1;if(!_0x19cd25()){let _0x5d0d57=0x0;_0x38fc91[_0x93472(0x41a)]()[_0x93472(0x314)](_0x4ca1d8=>{const _0x35be2a=_0x93472;var _0x31f4db,_0x46f4f1;_0x5d0d57+=(_0x46f4f1=(_0x31f4db=_0x23b8ed[_0x35be2a(0x4f6)](_0x210d8c,_0x4ca1d8[_0x35be2a(0x4a7)]()))==null?void 0x0:_0x31f4db['size'])!=null?_0x46f4f1:0x0;});const _0x4cd970=(_0x45478a=_0x4320df[_0x93472(0x4fb)](_0x443236[_0x93472(0x23c)]))!=null?_0x45478a:{},{ls:_0x24759b,pbk:_0x260f77}=_0x4cd970;if(!_0x53ca3c(_0x24759b,_0x260f77))throw new _0x502ce1['CustomCommandExecutionError'](_0x93472(0x37c));const _0x2e0ce9=_0x37a464(_0x22b7d5,_0x24759b,_0x260f77)[_0x93472(0x3bd)];if(_0x5d0d57>=_0x2e0ce9)throw new _0x502ce1[(_0x93472(0x4de))](_0x93472(0x37c));}if(!_0x20dd3a||!_0x12d025)return!0x1;const {collection:_0x1add61,updateDataFieldList:_0x175e29}=_0x23b8ed['addCollectionByJSON'](_0x5926e3,_0x20dd3a,_0xae9a4a,_0x4cdcf3);_0x23b8ed['refreshData'](_0x1add61,_0x175e29,_0xae9a4a);const _0x1994df=new _0x2371ae[(_0x93472(0x3e4))](_0x1add61,void 0x0,_0x5926e3);_0x1994df[_0x93472(0x4ea)](_0x12d025);const _0x435e4=JSON['parse'](JSON[_0x93472(0x467)](_0x26a561));return _0x23b8ed['addPivotTable'](_0x210d8c,_0xb769a4,_0x5926e3,_0x1994df,_0x435e4),_0x23b8ed[_0x93472(0x4d6)]({'unitId':_0x210d8c,'subUnitId':_0xb769a4,'token':_0x5926e3,'type':_0x44d5f2[_0x93472(0x3d9)],'pivotConfig':_0x435e4}),!0x0;}},_0x372cc7={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':'sheet.mutation.remove-pivot-table','handler'(_0x1f0ec4,_0x3a6df9){const _0x27cb98=_0x168ac6;if(!_0x3a6df9)return!0x1;if(!!_0x1f0ec4[_0x27cb98(0x4c2)](_0x502ce1[_0x27cb98(0x25b)])[_0x27cb98(0x4fb)](_0x44bb6e))return!0x0;const {pivotTableId:_0x918c78,unitId:_0xef2ae3,subUnitId:_0x49f4db}=_0x3a6df9,_0x4be9a4=_0x1f0ec4[_0x27cb98(0x4c2)](_0x44c9e4[_0x27cb98(0x31f)]);return _0x4be9a4[_0x27cb98(0x20c)](_0xef2ae3,_0x49f4db,_0x918c78)?(_0x4be9a4[_0x27cb98(0x4d6)]({'unitId':_0xef2ae3,'subUnitId':_0x49f4db,'token':_0x918c78,'type':_0x44d5f2[_0x27cb98(0x306)]}),_0x4be9a4['removePivotTable'](_0xef2ae3,_0x49f4db,_0x918c78),!0x0):!0x1;}},_0x35b800={'type':_0x502ce1['CommandType'][_0x168ac6(0x31d)],'id':'sheet.mutation.set-pivot-position','handler'(_0x36cbc4,_0x4a00de){const _0x3eaec2=_0x168ac6;if(!_0x4a00de)return!0x1;if(!!_0x36cbc4[_0x3eaec2(0x4c2)](_0x502ce1[_0x3eaec2(0x25b)])[_0x3eaec2(0x4fb)](_0x44bb6e))return!0x0;const {pivotTableId:_0x1c4bb1,targetCellPosition:_0x8cfcbb,unitId:_0x42158a,subUnitId:_0x385ff1}=_0x4a00de,_0x7bf367=_0x36cbc4['get'](_0x44c9e4[_0x3eaec2(0x31f)]);if(!_0x7bf367[_0x3eaec2(0x42a)](_0x4a00de['pivotTableId']))return!0x1;const _0x23284e=_0x7bf367[_0x3eaec2(0x343)](_0x1c4bb1);if(!_0x23284e)return!0x1;const _0xc94018=_0x7bf367['getCollection'](_0x23284e[_0x3eaec2(0x43e)],_0x4a00de[_0x3eaec2(0x22f)]);if(!_0xc94018)return!0x1;const _0x11d80d=_0x7bf367[_0x3eaec2(0x20c)](_0x23284e[_0x3eaec2(0x43e)],_0x23284e[_0x3eaec2(0x389)],_0x1c4bb1);if(!_0x11d80d)return!0x1;const _0x51ae48=_0x502ce1[_0x3eaec2(0x2e1)]['deepClone'](_0x11d80d);_0x51ae48['targetCellInfo']={'unitId':_0x42158a,'subUnitId':_0x385ff1,'row':_0x8cfcbb['row'],'col':_0x8cfcbb[_0x3eaec2(0x40d)]};const _0x4a8264=_0xc94018[_0x3eaec2(0x26d)]();if(_0x23284e[_0x3eaec2(0x389)]===_0x385ff1&&_0x23284e[_0x3eaec2(0x43e)]===_0x42158a)_0x7bf367[_0x3eaec2(0x29c)](_0x42158a,_0x385ff1,_0x1c4bb1,_0x51ae48),_0x7bf367[_0x3eaec2(0x4d6)]({'unitId':_0x42158a,'subUnitId':_0x385ff1,'token':_0x1c4bb1,'type':_0x44d5f2[_0x3eaec2(0x399)]});else{_0x7bf367[_0x3eaec2(0x4d6)]({'unitId':_0x23284e[_0x3eaec2(0x43e)],'subUnitId':_0x23284e[_0x3eaec2(0x389)],'token':_0x1c4bb1,'type':_0x44d5f2[_0x3eaec2(0x306)]}),_0x7bf367[_0x3eaec2(0x264)](_0x23284e[_0x3eaec2(0x43e)],_0x23284e[_0x3eaec2(0x389)],_0x1c4bb1);const _0x4b0728=_0x7bf367['addCollectionByJSON'](_0x1c4bb1,_0x4a8264,_0x11d80d[_0x3eaec2(0x3bf)],_0x51ae48[_0x3eaec2(0x38e)]),_0x7af895=new _0x2371ae[(_0x3eaec2(0x3e4))](_0x4b0728[_0x3eaec2(0x3d1)],void 0x0,_0x1c4bb1);_0x7af895[_0x3eaec2(0x4ea)](_0x51ae48['fieldsConfig']),_0x7bf367[_0x3eaec2(0x483)](_0x42158a,_0x385ff1,_0x1c4bb1,_0x7af895,_0x51ae48),_0x7bf367[_0x3eaec2(0x4d6)]({'unitId':_0x42158a,'subUnitId':_0x385ff1,'token':_0x1c4bb1,'type':_0x44d5f2[_0x3eaec2(0x3d9)],'pivotConfig':_0x51ae48});}return!0x0;}},_0x1683d2={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':'sheet.mutation.update-pivot-table-source-range','handler'(_0x5d18ef,_0x39adc6){const _0x1ee5e6=_0x168ac6;if(!_0x39adc6)return!0x1;if(!!_0x5d18ef[_0x1ee5e6(0x4c2)](_0x502ce1[_0x1ee5e6(0x25b)])[_0x1ee5e6(0x4fb)](_0x44bb6e))return!0x0;const _0x41f7f4=_0x5d18ef[_0x1ee5e6(0x4c2)](_0x44c9e4[_0x1ee5e6(0x31f)]),{pivotTableId:_0x73a66a,deleteIds:_0x558836,collectionJSON:_0x588533,dataRangeInfo:_0x162a24,unitId:_0x3fb735,subUnitId:_0x36f6e8}=_0x39adc6,_0xf3be1a=_0x41f7f4[_0x1ee5e6(0x42a)](_0x73a66a),_0x46261b=_0x41f7f4[_0x1ee5e6(0x20c)](_0x3fb735,_0x36f6e8,_0x73a66a);if(!_0xf3be1a||!_0x46261b)return!0x1;const {collection:_0xce430e,updateDataFieldList:_0x4b5b30}=_0x41f7f4[_0x1ee5e6(0x451)](_0x73a66a,_0x588533,_0x162a24,_0x46261b[_0x1ee5e6(0x38e)]);_0x41f7f4['refreshData'](_0xce430e,_0x4b5b30,_0x162a24),_0xf3be1a[_0x1ee5e6(0x3cc)](_0xce430e);for(const _0x5252c0 of _0x558836)_0x41f7f4['removeDataField'](_0x162a24[_0x1ee5e6(0x43e)],_0x5252c0);const _0x1af281=_0x41f7f4[_0x1ee5e6(0x20c)](_0x3fb735,_0x36f6e8,_0x73a66a);return _0x1af281[_0x1ee5e6(0x3bf)]=JSON[_0x1ee5e6(0x384)](JSON['stringify'](_0x162a24)),_0x41f7f4[_0x1ee5e6(0x4d6)]({'unitId':_0x3fb735,'subUnitId':_0x36f6e8,'token':_0x73a66a,'type':_0x44d5f2['Set']}),!0x0;}},_0x9fb76a={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'id':_0x168ac6(0x40c),'handler'(){return!0x0;}};var _0x53082b=Object[_0x168ac6(0x2ec)],_0x39fd21=(_0x50148c,_0x645703,_0x1bcd3b,_0x1406d2)=>{const _0x4b9a54=_0x168ac6;for(var _0x3c0c9f=_0x1406d2>0x1?void 0x0:_0x1406d2?_0x53082b(_0x645703,_0x1bcd3b):_0x645703,_0x378a95=_0x50148c[_0x4b9a54(0x4d2)]-0x1,_0x421ebf;_0x378a95>=0x0;_0x378a95--)(_0x421ebf=_0x50148c[_0x378a95])&&(_0x3c0c9f=_0x421ebf(_0x3c0c9f)||_0x3c0c9f);return _0x3c0c9f;},_0x12b751=(_0x1096f4,_0x7eaeaa)=>(_0x41c1c9,_0x4f5ade)=>_0x7eaeaa(_0x41c1c9,_0x4f5ade,_0x1096f4);_0x44c9e4[_0x168ac6(0x43b)]=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x2f732f,_0x464b00){const _0x507a0f=_0x168ac6;super(),_0x2d9017(this,'_requestResolvers',new Map()),(this[_0x507a0f(0x360)]=_0x2f732f,this['_commandService']=_0x464b00);}[_0x168ac6(0x257)](_0x19c4a3){const _0x48954d=_0x168ac6,{version:_0x4b6a5f}=_0x19c4a3,_0x165568=this[_0x48954d(0x25c)]['get'](_0x4b6a5f);_0x165568&&(_0x165568(_0x19c4a3),this[_0x48954d(0x25c)][_0x48954d(0x272)](_0x4b6a5f));}[_0x168ac6(0x4e7)](_0xba4202){return new Promise((_0x592cd0,_0x1955e6)=>{const _0xfaa252=_0xc079,_0x5913ab=this[_0xfaa252(0x2b2)]();this[_0xfaa252(0x25c)][_0xfaa252(0x263)](_0x5913ab,_0x592cd0),this['_commandService'][_0xfaa252(0x4e2)](_0x203a4f['id'],{'version':_0x5913ab,..._0xba4202},{'onlyLocal':!0x0});});}[_0x168ac6(0x2b2)](){const _0x59e692=_0x168ac6;return Math[_0x59e692(0x4b2)]()['toString'](0x24)[_0x59e692(0x2d0)](0x2,0x10);}},_0x44c9e4[_0x168ac6(0x43b)]=_0x39fd21([_0x12b751(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x402)])),_0x12b751(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x48c)]))],_0x44c9e4[_0x168ac6(0x43b)]);const _0x5357c4={'id':_0x168ac6(0x4c3),'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'handler':(_0x2e3858,_0x5f28b1)=>{const _0x4c9ab2=_0x168ac6;if(!_0x5f28b1)return!0x1;if(!!_0x2e3858[_0x4c9ab2(0x4c2)](_0x502ce1[_0x4c9ab2(0x25b)])['getConfig'](_0x44bb6e))return!0x0;const {pivotTableId:_0x3b9b96,fieldJSON:_0x1d3ae2,unitId:_0x1ea2f7,subUnitId:_0x180a78}=_0x5f28b1,_0x59a2de=_0x2371ae[_0x4c9ab2(0x3b7)]['fromJSON'](_0x1d3ae2);if(!_0x59a2de)return!0x1;const _0x33fa8c=_0x2e3858[_0x4c9ab2(0x4c2)](_0x44c9e4[_0x4c9ab2(0x31f)]),_0x5f4810=_0x33fa8c[_0x4c9ab2(0x330)](_0x1ea2f7),_0x4bf2cc=_0x5f4810[_0x4c9ab2(0x46b)](_0x3b9b96);_0x5f4810[_0x4c9ab2(0x36f)](_0x59a2de),_0x4bf2cc[_0x4c9ab2(0x1ff)](_0x59a2de[_0x4c9ab2(0x260)](),_0x59a2de[_0x4c9ab2(0x4ba)]());const _0x3d4008=_0x4bf2cc['getFieldById'](_0x59a2de[_0x4c9ab2(0x248)]());_0x3d4008&&_0x59a2de[_0x4c9ab2(0x221)](_0x3d4008);const _0x249763=_0x33fa8c[_0x4c9ab2(0x20c)](_0x1ea2f7,_0x180a78,_0x3b9b96);return _0x33fa8c[_0x4c9ab2(0x4d6)]({'unitId':_0x1ea2f7,'subUnitId':_0x180a78,'token':_0x3b9b96,'type':_0x44d5f2[_0x4c9ab2(0x399)],'pivotConfig':_0x249763}),!0x0;}},_0x3ebc05={'id':'sheet.mutation.remove-group-collection','type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'handler':(_0x2b0151,_0x3692d6)=>{const _0x2eb399=_0x168ac6;if(!_0x3692d6)return!0x1;if(!!_0x2b0151[_0x2eb399(0x4c2)](_0x502ce1[_0x2eb399(0x25b)])['getConfig'](_0x44bb6e))return!0x0;const {pivotTableId:_0x34f7a2,dataFieldId:_0x1a8a4c,unitId:_0x465cfb,subUnitId:_0x1c8290}=_0x3692d6,_0x235837=_0x2b0151[_0x2eb399(0x4c2)](_0x44c9e4[_0x2eb399(0x31f)]),_0x3b3c63=_0x235837[_0x2eb399(0x330)](_0x465cfb);_0x3b3c63[_0x2eb399(0x46b)](_0x34f7a2)[_0x2eb399(0x24e)](_0x1a8a4c);let _0xea4199=!0x0;for(const _0x40b747 in _0x3b3c63[_0x2eb399(0x235)])if(_0x3b3c63[_0x2eb399(0x235)][_0x40b747][_0x2eb399(0x250)]()['includes'](_0x1a8a4c)){_0xea4199=!0x1;break;}_0xea4199&&_0x3b3c63[_0x2eb399(0x3db)](_0x1a8a4c);const _0x1ad35b=_0x235837['getPivotTableConfig'](_0x465cfb,_0x1c8290,_0x34f7a2);return _0x235837[_0x2eb399(0x4d6)]({'unitId':_0x465cfb,'subUnitId':_0x1c8290,'token':_0x34f7a2,'type':_0x44d5f2['Set'],'pivotConfig':_0x1ad35b}),!0x0;}},_0xfe7240={'type':_0x502ce1[_0x168ac6(0x475)]['COMMAND'],'id':_0x168ac6(0x346),async 'handler'(_0xa65069,_0x1e268c){const _0xcecd34=_0x168ac6;if(!_0x1e268c)return!0x1;const _0x3c87d7=_0xa65069[_0xcecd34(0x4c2)](_0x502ce1['ICommandService']),_0x8e6dc4=_0xa65069['get'](_0x44c9e4[_0xcecd34(0x43b)]),_0x2a6b85=_0xa65069[_0xcecd34(0x4c2)](_0x502ce1[_0xcecd34(0x2c5)]),{pivotTableId:_0x46496b,dataFieldId:_0x1029cd,fieldArea:_0xb2ab9b,index:_0x4e4183,unitId:_0x54cd69,subUnitId:_0xe65ab2}=_0x1e268c,_0x92e8a1=(await _0x8e6dc4[_0xcecd34(0x4e7)]({'unitId':_0x54cd69,'subUnitId':_0xe65ab2,'pivotTableId':_0x46496b,'params':{'type':_0x4e0d4[_0xcecd34(0x45a)],'addPivotField':{'dataFieldId':_0x1029cd,'fieldArea':_0xb2ab9b,'index':_0x4e4183}}}))[_0xcecd34(0x4bf)][_0xcecd34(0x351)];if(!_0x92e8a1)return!0x1;const {view:_0x38a7f9,changesets:_0x319ab1,isEmpty:_0x4572cc,pivotTableConfig:_0x3810c6,shouldBeAddedGroupJSON:_0x594915}=_0x92e8a1,_0x1cf4cb=_0x3810c6[_0xcecd34(0x38e)],_0x31b348=new _0x2371ae['PivotView']();_0x31b348[_0xcecd34(0x497)](_0x38a7f9);const _0x3a3752={'cellInfo':_0x1cf4cb,'view':_0x31b348,'isEmpty':_0x4572cc};if(!await _0xa65069[_0xcecd34(0x4c2)](_0x44c9e4[_0xcecd34(0x369)])[_0xcecd34(0x353)][_0xcecd34(0x4b4)](_0x465561)(!0x0,_0x3a3752))return!0x1;const _0x45aa1a=_0x159fc1(_0xa65069,_0x31b348,_0x1cf4cb,_0x4572cc),_0x47e952=_0xb9c727(_0xa65069,_0x3a3752),{undos:_0x50958d,redos:_0x510e2b}=_0x16abcc(_0x3c87d7,{'pivotTableId':_0x46496b,'unitId':_0x54cd69,'subUnitId':_0xe65ab2},_0x319ab1);return _0x594915&&(_0x510e2b[_0xcecd34(0x3af)]({'id':_0x5357c4['id'],'params':{'pivotTableId':_0x46496b,'fieldJSON':_0x594915,'unitId':_0x54cd69,'subUnitId':_0xe65ab2}}),_0x50958d['push']({'id':_0x3ebc05['id'],'params':{'pivotTableId':_0x46496b,'dataFieldId':_0x594915['id'],'unitId':_0x54cd69,'subUnitId':_0xe65ab2}})),_0x502ce1[_0xcecd34(0x1f9)]([..._0x45aa1a[_0xcecd34(0x2d6)],..._0x47e952[_0xcecd34(0x2d6)],..._0x510e2b],_0x3c87d7),_0x2a6b85[_0xcecd34(0x44a)]({'unitID':_0x54cd69,'redoMutations':[..._0x45aa1a['redos'],..._0x47e952[_0xcecd34(0x2d6)],..._0x510e2b],'undoMutations':[..._0x45aa1a[_0xcecd34(0x383)],..._0x47e952[_0xcecd34(0x383)],..._0x50958d]}),!0x0;}},_0x3259b7={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x1f8),async 'handler'(_0x3c2eb5,_0x300797){const _0x1efa25=_0x168ac6;if(!_0x300797)return!0x1;const {sourceDataInfo:_0x165b71,pivotTableConfig:_0x120076}=_0x300797;if(!_0x165b71||!_0x120076)return!0x1;const {unitId:_0x494277,subUnitId:_0x25e5e6,range:_0xccd374}=_0x165b71,_0xdcc285=_0x3c2eb5[_0x1efa25(0x4c2)](_0x502ce1[_0x1efa25(0x37a)]),_0x290cde=_0x3c2eb5[_0x1efa25(0x4c2)](_0x44c9e4[_0x1efa25(0x43b)]),_0x3d7ef4=_0x3c2eb5[_0x1efa25(0x4c2)](_0x502ce1[_0x1efa25(0x2e7)]),_0x2c71fa=_0x3c2eb5[_0x1efa25(0x4c2)](_0x502ce1['ICommandService']),_0x2a6955=_0xdcc285[_0x1efa25(0x39a)](_0x494277);if(!_0x2a6955)return!0x1;const _0x46e1ef=_0x2a6955['getSheetBySheetId'](_0x25e5e6);if(!_0x46e1ef)return!0x1;const _0x4372e9=_0x2371ae['generateHexNumber'](0x8),_0x22189c=_0xccd374||{'startRow':0x0,'startColumn':0x0,'endRow':_0x46e1ef[_0x1efa25(0x47d)]()-0x1,'endColumn':_0x46e1ef[_0x1efa25(0x45d)]()-0x1};_0x22189c[_0x1efa25(0x219)]=_0x502ce1[_0x1efa25(0x3ac)][_0x1efa25(0x448)];const _0x5882ff=(await _0x290cde[_0x1efa25(0x4e7)]({'unitId':_0x494277,'subUnitId':_0x25e5e6,'pivotTableId':_0x4372e9,'params':{'type':_0x4e0d4[_0x1efa25(0x22c)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x494277,'sheetName':_0x46e1ef[_0x1efa25(0x4ba)](),'subUnitId':_0x25e5e6,'range':_0x22189c},'pivotTableId':_0x4372e9,'pivotTableIndexConfig':_0x120076}}}))[_0x1efa25(0x4bf)][_0x1efa25(0x432)];if(!_0x5882ff)return!0x1;const {isEmpty:_0x229215,fieldsConfig:_0x4c5157,collectionConfig:_0x25ac26,changesets:_0x3a813a}=_0x5882ff,_0x5763df=_0x2a6955[_0x1efa25(0x41a)]()[_0x1efa25(0x4d2)],_0x1998f1=_0x502ce1[_0x1efa25(0x228)]({'rowCount':_0x46e1ef[_0x1efa25(0x47d)]()-0x1,'columnCount':_0x46e1ef[_0x1efa25(0x45d)]()-0x1});_0x1998f1['id']=_0x502ce1[_0x1efa25(0x21c)](),_0x1998f1[_0x1efa25(0x328)]=_0x2a6955[_0x1efa25(0x327)](''+_0x3d7ef4['t'](_0x1efa25(0x37e)));const _0x3455cc={'index':_0x5763df,'sheet':_0x1998f1,'unitId':_0x494277},{redos:_0x2aea10}=_0x16abcc(_0x2c71fa,{'pivotTableId':_0x4372e9,'unitId':_0x494277,'subUnitId':_0x1998f1['id']},_0x3a813a),_0xe46b3d=[{'id':_0x2b7376[_0x1efa25(0x270)]['id'],'params':_0x3455cc},{'id':_0x108104['id'],'params':{'unitId':_0x494277,'subUnitId':_0x1998f1['id'],'pivotTableId':_0x4372e9,'pivotTableConfig':{'isEmpty':_0x229215,'fieldsConfig':_0x4c5157,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x494277,'subUnitId':_0x1998f1['id']},'sourceRangeInfo':{'subUnitId':_0x25e5e6,'unitId':_0x494277,'range':_0x22189c,'sheetName':_0x46e1ef['getName']()}},'collectionConfig':_0x25ac26}},..._0x2aea10];return _0x502ce1[_0x1efa25(0x1f9)](_0xe46b3d,_0x2c71fa),!0x0;}},_0x29e850={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x4aa),async 'handler'(_0x2609e1,_0x5f48d7){const _0x275495=_0x168ac6;var _0x5afdad,_0x3d8c95;const _0x22f0b8=_0x2609e1['get'](_0x502ce1[_0x275495(0x48c)]),_0x21fbac=_0x2609e1[_0x275495(0x4c2)](_0x502ce1[_0x275495(0x37a)]),_0x2d8d02=_0x2609e1[_0x275495(0x4c2)](_0x502ce1[_0x275495(0x2e7)]),_0x221b06=_0x2609e1[_0x275495(0x4c2)](_0x44c9e4[_0x275495(0x43b)]),_0x216bb5=_0x2609e1[_0x275495(0x4c2)](_0x502ce1[_0x275495(0x2c5)]),_0x1ae412=_0x2609e1[_0x275495(0x4c2)](_0x44c9e4[_0x275495(0x30b)]),_0x3e7553=_0x2609e1[_0x275495(0x4c2)](_0x502ce1[_0x275495(0x25b)]);if(!_0x5f48d7)return!0x1;const {pivotTableConfig:_0x303dec,positionType:_0x11e7c3}=_0x5f48d7,{targetCellInfo:_0x4e27a2,sourceRangeInfo:_0x3511d6}=_0x303dec,{unitId:_0x467058,subUnitId:_0x4ec88d}=_0x4e27a2,_0x55becb=_0x21fbac[_0x275495(0x39a)](_0x467058);if(!_0x55becb)return!0x1;let _0x2ffe92=0x0;_0x55becb[_0x275495(0x41a)]()['forEach'](_0x56b071=>{const _0x18a7ab=_0x275495;var _0x2ae1f7,_0x44a125;_0x2ffe92+=(_0x44a125=(_0x2ae1f7=_0x1ae412[_0x18a7ab(0x4f6)](_0x467058,_0x56b071[_0x18a7ab(0x4a7)]()))==null?void 0x0:_0x2ae1f7['size'])!=null?_0x44a125:0x0;});const _0x58462f=(_0x5afdad=_0x3e7553[_0x275495(0x4fb)](_0x443236['LS_CONFIG_KEY']))!=null?_0x5afdad:{},{ls:_0x5caf92,pbk:_0x1d66da}=_0x58462f;if(!_0x53ca3c(_0x5caf92,_0x1d66da))return!0x1;const _0x28e66b=_0x37a464(_0x22b7d5,_0x5caf92,_0x1d66da)['count'];if(_0x2ffe92>=_0x28e66b)return!0x1;const _0x467585=_0x5f48d7[_0x275495(0x22f)]||_0x2371ae[_0x275495(0x40a)](0x8),_0x54f8c5=(await _0x221b06[_0x275495(0x4e7)]({'unitId':_0x467058,'subUnitId':_0x4ec88d,'pivotTableId':_0x467585,'params':{'type':_0x4e0d4[_0x275495(0x33c)],'addPivotTable':{'sourceRangeInfo':_0x3511d6,'pivotTableId':_0x467585}}}))['result'][_0x275495(0x483)];if(!_0x54f8c5)return!0x1;const {view:_0x4896f0,isEmpty:_0x4b7a14,fieldsConfig:_0x22ddd0,collectionConfig:_0x4161f1}=_0x54f8c5,_0x21d85d=[],_0x44f27c=[];if(_0x11e7c3===_0x1987b0['New']){const _0x52b833=_0x55becb['getSheets']()[_0x275495(0x4d2)],_0x5e6861=_0x502ce1[_0x275495(0x228)]({});_0x5e6861['id']=_0x303dec['targetCellInfo'][_0x275495(0x389)],_0x5e6861[_0x275495(0x328)]=(_0x3d8c95=_0x303dec[_0x275495(0x38e)][_0x275495(0x37b)])!=null?_0x3d8c95:_0x55becb[_0x275495(0x327)](''+_0x2d8d02['t'](_0x275495(0x37e)));const _0xb3cff1={'index':_0x52b833,'sheet':_0x5e6861,'unitId':_0x467058},_0x528a23=_0x2b7376[_0x275495(0x3ce)](_0x2609e1,_0xb3cff1);_0x21d85d[_0x275495(0x412)]({'id':_0x2b7376['RemoveSheetMutation']['id'],'params':_0x528a23}),_0x44f27c[_0x275495(0x412)]({'id':_0x2b7376[_0x275495(0x3fa)]['id'],'params':_0xb3cff1});}else{if(!_0x55becb[_0x275495(0x45f)](_0x4ec88d))return!0x1;const _0x2ffc75=_0x159fc1(_0x2609e1,new _0x2371ae[(_0x275495(0x4f9))](),_0x4e27a2,!0x0);_0x44f27c['push'](..._0x2ffc75[_0x275495(0x2d6)]),_0x21d85d[_0x275495(0x412)](..._0x2ffc75['undos']);const _0x17e77d={'cellInfo':_0x4e27a2,'view':_0x4896f0,'isEmpty':_0x4b7a14};if(!await _0x2609e1[_0x275495(0x4c2)](_0x44c9e4[_0x275495(0x369)])['asyncInterceptor'][_0x275495(0x4b4)](_0x465561)(!0x0,_0x17e77d))return!0x1;const _0x119162=_0xb9c727(_0x2609e1,_0x17e77d);_0x44f27c[_0x275495(0x412)](..._0x119162[_0x275495(0x2d6)]),_0x21d85d[_0x275495(0x412)](..._0x119162[_0x275495(0x383)]);}return _0x44f27c[_0x275495(0x412)]({'id':_0x108104['id'],'params':{'unitId':_0x4e27a2[_0x275495(0x43e)],'subUnitId':_0x4e27a2[_0x275495(0x389)],'pivotTableId':_0x467585,'pivotTableConfig':{'targetCellInfo':_0x4e27a2,'sourceRangeInfo':_0x3511d6,'fieldsConfig':_0x22ddd0},'collectionConfig':_0x4161f1}}),_0x21d85d[_0x275495(0x3af)]({'id':_0x372cc7['id'],'params':{'unitId':_0x467058,'subUnitId':_0x4ec88d,'pivotTableId':_0x467585}}),_0x502ce1[_0x275495(0x1f9)](_0x44f27c,_0x22f0b8)&&_0x216bb5['pushUndoRedo']({'unitID':_0x467058,'undoMutations':_0x21d85d,'redoMutations':_0x44f27c}),!0x0;}},_0x4d3140={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x49d),async 'handler'(_0x4483bf,_0x247878){const _0x459c67=_0x168ac6;if(!_0x247878)return!0x1;const _0x2a1a3b=_0x4483bf['get'](_0x502ce1[_0x459c67(0x48c)]),_0x1cc0f1=_0x4483bf[_0x459c67(0x4c2)](_0x44c9e4[_0x459c67(0x43b)]),_0x5b52fc=_0x4483bf[_0x459c67(0x4c2)](_0x502ce1[_0x459c67(0x2c5)]),{pivotTableId:_0x20f36a,fieldId:_0x16c116,area:_0x1c3657,index:_0x36e821,unitId:_0x3d95e0,subUnitId:_0x375521}=_0x247878,_0x4b80f0=(await _0x1cc0f1[_0x459c67(0x4e7)]({'unitId':_0x3d95e0,'subUnitId':_0x375521,'pivotTableId':_0x20f36a,'params':{'type':_0x4e0d4[_0x459c67(0x355)],'movePivotField':{'fieldId':_0x16c116,'area':_0x1c3657,'index':_0x36e821}}}))[_0x459c67(0x4bf)]['movePivotField'];if(!_0x4b80f0)return!0x1;const {changesets:_0x5a8b23,view:_0x1a4777,isEmpty:_0x400efe,pivotTableConfig:_0x1bb274}=_0x4b80f0,_0x425323=_0x1bb274[_0x459c67(0x38e)],_0x129f1d=new _0x2371ae['PivotView']();_0x129f1d[_0x459c67(0x497)](_0x1a4777);const _0x423d1b={'cellInfo':_0x425323,'view':_0x129f1d,'isEmpty':_0x400efe};if(!await _0x4483bf[_0x459c67(0x4c2)](_0x44c9e4[_0x459c67(0x369)])['asyncInterceptor'][_0x459c67(0x4b4)](_0x465561)(!0x0,_0x423d1b))return!0x1;const _0x23a207=_0x159fc1(_0x4483bf,_0x129f1d,_0x425323,_0x400efe),_0x3c6bb2=_0xb9c727(_0x4483bf,_0x423d1b),{redos:_0x3d9ea4,undos:_0x3118b8}=_0x16abcc(_0x2a1a3b,{'pivotTableId':_0x20f36a,'unitId':_0x3d95e0,'subUnitId':_0x375521},_0x5a8b23);return _0x502ce1[_0x459c67(0x1f9)]([..._0x23a207[_0x459c67(0x2d6)],..._0x3c6bb2['redos'],..._0x3d9ea4],_0x2a1a3b),_0x5b52fc['pushUndoRedo']({'unitID':_0x3d95e0,'redoMutations':[..._0x23a207[_0x459c67(0x2d6)],..._0x3c6bb2[_0x459c67(0x2d6)],..._0x3d9ea4],'undoMutations':[..._0x23a207['undos'],..._0x3c6bb2[_0x459c67(0x383)],..._0x3118b8]}),!0x0;}},_0x12647c={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x53618f,_0x47fcc0){const _0x4de3fe=_0x168ac6;var _0x2f3528;if(!_0x47fcc0)return!0x1;const _0x76a537=_0x53618f[_0x4de3fe(0x4c2)](_0x502ce1['IUniverInstanceService']),_0x28f116=_0x2b7376[_0x4de3fe(0x3a3)](_0x76a537);if(!_0x28f116)return!0x1;const {unitId:_0x5bb8d0,subUnitId:_0x5be372,workbook:_0x1d92ca}=_0x28f116,{row:_0x226674,col:_0x461692}=_0x47fcc0,_0x45d8ef=_0x53618f['get'](_0x44c9e4['SheetsPivotTableAdaptorModel']),_0x4f8d29=_0x45d8ef['getPivotTableIdByCell'](_0x5bb8d0,_0x5be372,_0x226674,_0x461692);if(!_0x4f8d29)return!0x1;const _0x1c3b66=(_0x2f3528=_0x45d8ef[_0x4de3fe(0x3e7)](_0x5bb8d0,_0x5be372,_0x4f8d29))==null?void 0x0:_0x2f3528[_0x4de3fe(0x460)];if(!_0x1c3b66)return!0x1;const _0x2f33a4=_0x53618f[_0x4de3fe(0x4c2)](_0x44c9e4['SheetsPivotTableConfigModel'])[_0x4de3fe(0x20c)](_0x5bb8d0,_0x5be372,_0x4f8d29);if(!_0x2f33a4)return!0x1;const {rowInfo:_0x38ea8d,colInfo:_0x7c0c51}=_0x1c3b66,_0x46f5e0=_0x38ea8d[_0x226674][_0x4de3fe(0x243)],_0x726bb2=_0x7c0c51[_0x461692][_0x4de3fe(0x243)],_0x13dfb6=_0x38ea8d[_0x226674][_0x4de3fe(0x224)],_0x22ccac=_0x7c0c51[_0x461692][_0x4de3fe(0x224)],_0x42c4a0=_0x46f5e0[_0x4de3fe(0x452)](_0x726bb2),_0x5ab364=_0x2f33a4['fieldsConfig'][_0x4de3fe(0x405)]['slice'](0x0,_0x13dfb6),_0x5ca437=_0x2f33a4[_0x4de3fe(0x3f6)][_0x4de3fe(0x396)]['slice'](0x0,_0x22ccac),_0x1ad2fb=_0x5ab364[_0x4de3fe(0x452)](_0x5ca437),_0x31cfcc=_0x42c4a0[_0x4de3fe(0x32d)]((_0x218ee0,_0x5a8839)=>[_0x218ee0,_0x1ad2fb[_0x5a8839]]),_0x25732b=(await _0x53618f[_0x4de3fe(0x4c2)](_0x44c9e4[_0x4de3fe(0x43b)])[_0x4de3fe(0x4e7)]({'unitId':_0x5bb8d0,'subUnitId':_0x5be372,'pivotTableId':_0x4f8d29,'params':{'type':_0x4e0d4[_0x4de3fe(0x378)],'drillDown':{'tuple':_0x31cfcc}}}))[_0x4de3fe(0x4bf)][_0x4de3fe(0x4ec)];if(!_0x25732b)return!0x1;const {indexes:_0x268479,range:_0x587982,sourceUnitId:_0x43903c,sourceSubUnitId:_0xc23bd4,formatMap:_0x3e0b26}=_0x25732b,{startRow:_0x5a323a,endRow:_0x5de5be,startColumn:_0x1e24e9,endColumn:_0x53a423}=_0x587982,_0x5cd6f5=new _0x502ce1[(_0x4de3fe(0x36d))](),_0x1f227e=_0x5de5be-_0x5a323a,_0x3ccb3a=_0x53a423-_0x1e24e9,_0x1a6493={},_0x20aa07=_0x2b7376[_0x4de3fe(0x3a3)](_0x76a537,{'unitId':_0x43903c,'subUnitId':_0xc23bd4});if(!_0x20aa07)return!0x1;const _0x2a61a3=_0x505f09[_0x4de3fe(0x204)],_0x1f3938=_0x505f09[_0x4de3fe(0x2e5)],_0x5406f6=_0x505f09[_0x4de3fe(0x2e5)],_0x39fb47=_0x1d92ca[_0x4de3fe(0x3be)]()[_0x4de3fe(0x206)](_0x2a61a3),_0x1b5bff=_0x1d92ca[_0x4de3fe(0x3be)]()[_0x4de3fe(0x206)](_0x1f3938),_0x4b4769=_0x1d92ca[_0x4de3fe(0x3be)]()[_0x4de3fe(0x206)](_0x5406f6),{worksheet:_0x2e3c54}=_0x20aa07;let _0xdfa558=0x0;const _0x3c9902=0x1;_0x268479[_0x4de3fe(0x314)](_0x193953=>{const _0xfc7407=_0x4de3fe;for(let _0x1c0b70=0x0;_0x1c0b70<=_0x53a423-_0x1e24e9;_0x1c0b70++)_0x5cd6f5[_0xfc7407(0x206)](_0xdfa558,_0x1c0b70,_0x2e3c54[_0xfc7407(0x4af)](_0x193953+_0x587982[_0xfc7407(0x41f)]+_0x3c9902,_0x1c0b70));_0xdfa558++;});for(let _0x4791d5=_0x1e24e9;_0x4791d5<=_0x53a423;_0x4791d5++){const _0x2cf7e6=_0x2e3c54['getCellRaw'](_0x5a323a,_0x4791d5);_0x1a6493[_0x5a323a]||(_0x1a6493[_0x5a323a]={}),_0x1a6493[_0x5a323a][_0x4791d5]={..._0x2cf7e6,'s':_0x39fb47};}let _0x4a405d=0x1;const _0x5ebfec={},_0x34c9a4={};_0x5cd6f5[_0x4de3fe(0x4ac)]((_0xbe49dd,_0x44c6c5)=>{const _0xab6704=_0x4de3fe;_0x44c6c5[_0xab6704(0x314)](_0x3098fd=>{const _0x1e418c=_0xab6704,_0x5c4b0f=_0x5cd6f5[_0x1e418c(0x1f3)](_0xbe49dd,_0x3098fd);if(_0x1a6493[_0x4a405d]||(_0x1a6493[_0x4a405d]={}),_0x1a6493[_0x4a405d][_0x3098fd]={..._0x5c4b0f,'s':_0x4a405d%0x2===0x0?_0x4b4769:_0x1b5bff},_0x3e0b26[_0x3098fd]&&_0xbe49dd>=0x0){const _0x1dc67a=_0x4a405d%0x2===0x0;let _0xa05307=_0x1dc67a?_0x34c9a4[_0x3098fd]:_0x5ebfec[_0x3098fd];_0xa05307||(_0xa05307=_0x1d92ca[_0x1e418c(0x3be)]()[_0x1e418c(0x206)]({..._0x1dc67a?_0x5406f6:_0x1f3938,'n':{'pattern':_0x3e0b26[_0x3098fd]}}),_0x1dc67a?_0x34c9a4[_0x3098fd]=_0xa05307:_0x5ebfec[_0x3098fd]=_0xa05307),_0x1a6493[_0x4a405d][_0x3098fd]['s']=_0xa05307;}}),_0x4a405d++;});const _0x590d2b=new _0x502ce1[(_0x4de3fe(0x36d))](_0x1a6493),_0x48f7f0={};_0x590d2b[_0x4de3fe(0x403)]((_0x1c45c3,_0x4544dc,_0x58aa09)=>{_0x48f7f0[_0x1c45c3]||(_0x48f7f0[_0x1c45c3]={}),_0x48f7f0[_0x1c45c3][_0x4544dc]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x159b37=[],_0xab2f51=[],_0x181c27=_0x1d92ca[_0x4de3fe(0x41a)]()[_0x4de3fe(0x4d2)],_0x1bacaa=_0x502ce1[_0x4de3fe(0x228)]({'rowCount':Math[_0x4de3fe(0x2c9)](_0x502ce1[_0x4de3fe(0x457)],_0x1f227e+0xa),'columnCount':Math['max'](_0x502ce1[_0x4de3fe(0x28b)],_0x3ccb3a+0x5)}),_0x529ac6=_0x53618f[_0x4de3fe(0x4c2)](_0x502ce1[_0x4de3fe(0x2e7)]);_0x1bacaa['id']=_0x502ce1[_0x4de3fe(0x21c)](),_0x1bacaa[_0x4de3fe(0x328)]=_0x1d92ca[_0x4de3fe(0x327)](''+_0x529ac6['t'](_0x4de3fe(0x37e)));const _0x4d1a69={'index':_0x181c27,'sheet':_0x1bacaa,'unitId':_0x5bb8d0},_0x7064b4=_0x2b7376[_0x4de3fe(0x3ce)](_0x53618f,_0x4d1a69);_0xab2f51['push']({'id':_0x2b7376[_0x4de3fe(0x3fa)]['id'],'params':_0x4d1a69}),_0x159b37[_0x4de3fe(0x412)]({'id':_0x2b7376['RemoveSheetMutation']['id'],'params':_0x7064b4}),_0xab2f51['push']({'id':_0x2b7376['SetRangeValuesMutation']['id'],'params':{'unitId':_0x5bb8d0,'subUnitId':_0x1bacaa['id'],'cellValue':_0x1a6493}}),_0x159b37['unshift']({'id':_0x2b7376[_0x4de3fe(0x441)]['id'],'params':{'unitId':_0x5bb8d0,'subUnitId':_0x1bacaa['id'],'cellValue':_0x48f7f0}});const _0x4cbfa4={'startRow':0x0,'startColumn':0x0,'endRow':_0x4a405d-0x1,'endColumn':_0x53a423};_0xab2f51['push']({'id':_0x1959fe['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x5bb8d0,'subUnitId':_0x1bacaa['id'],'range':_0x4cbfa4}}),_0x159b37[_0x4de3fe(0x3af)]({'id':_0x1959fe[_0x4de3fe(0x3d0)]['id'],'params':{'unitId':_0x5bb8d0,'subUnitId':_0x1bacaa['id']}});const _0x3f1cfd=_0x53618f[_0x4de3fe(0x4c2)](_0x502ce1[_0x4de3fe(0x48c)]);return _0x502ce1[_0x4de3fe(0x1f9)](_0xab2f51,_0x3f1cfd)&&_0x53618f[_0x4de3fe(0x4c2)](_0x502ce1[_0x4de3fe(0x2c5)])['pushUndoRedo']({'unitID':_0x5bb8d0,'undoMutations':_0x159b37,'redoMutations':_0xab2f51}),!0x0;}},_0x3b4bc3={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x490),async 'handler'(_0x6206f9,_0x19c726){const _0x337609=_0x168ac6;if(!_0x19c726)return!0x1;const _0x4ef412=_0x6206f9['get'](_0x502ce1[_0x337609(0x48c)]),_0x5c3842=_0x6206f9[_0x337609(0x4c2)](_0x44c9e4[_0x337609(0x43b)]),_0x1cc7af=_0x6206f9[_0x337609(0x4c2)](_0x502ce1[_0x337609(0x2c5)]),{pivotTableId:_0x3f98ba,fieldIds:_0xaf2fd,unitId:_0x209163,subUnitId:_0x245bd7}=_0x19c726,_0x355922=(await _0x5c3842[_0x337609(0x4e7)]({'unitId':_0x209163,'subUnitId':_0x245bd7,'pivotTableId':_0x3f98ba,'params':{'type':_0x4e0d4[_0x337609(0x44f)],'removePivotField':{'fieldIds':_0xaf2fd}}}))['result'][_0x337609(0x286)];if(!_0x355922)return!0x1;const {view:_0x54d98e,changesets:_0x24ca08,isEmpty:_0x14ed73,pivotTableConfig:_0x26a386}=_0x355922,_0xee9ffe=_0x26a386['targetCellInfo'],_0x5c323e=new _0x2371ae[(_0x337609(0x4f9))]();_0x5c323e[_0x337609(0x497)](_0x54d98e);const _0x575bb1={'cellInfo':_0xee9ffe,'view':_0x5c323e,'isEmpty':_0x14ed73};if(!await _0x6206f9[_0x337609(0x4c2)](_0x44c9e4[_0x337609(0x369)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x465561)(!0x0,_0x575bb1))return!0x1;const _0x21c026=_0x159fc1(_0x6206f9,_0x5c323e,_0xee9ffe,_0x14ed73),_0x41dc26=_0xb9c727(_0x6206f9,_0x575bb1),{redos:_0xc41e37,undos:_0x2570f6}=_0x16abcc(_0x4ef412,{'pivotTableId':_0x3f98ba,'unitId':_0x209163,'subUnitId':_0x245bd7},_0x24ca08);return _0x502ce1[_0x337609(0x1f9)]([..._0x21c026[_0x337609(0x2d6)],..._0x41dc26[_0x337609(0x2d6)],..._0xc41e37],_0x4ef412),_0x1cc7af[_0x337609(0x44a)]({'unitID':_0x209163,'redoMutations':[..._0x21c026[_0x337609(0x2d6)],..._0x41dc26[_0x337609(0x2d6)],..._0xc41e37],'undoMutations':[..._0x21c026[_0x337609(0x383)],..._0x41dc26[_0x337609(0x383)],..._0x2570f6]}),!0x0;}},_0xd8144b={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x39b),async 'handler'(_0x1242ea,_0x27f3b7){const _0x5ed759=_0x168ac6;var _0x1a04c2;const _0x42742f=_0x1242ea[_0x5ed759(0x4c2)](_0x502ce1[_0x5ed759(0x48c)]),_0x1f7a8d=_0x1242ea[_0x5ed759(0x4c2)](_0x44c9e4[_0x5ed759(0x43b)]),_0x45e011=_0x1242ea['get'](_0x44c9e4[_0x5ed759(0x4a3)]),_0x459c34=_0x1242ea['get'](_0x502ce1[_0x5ed759(0x37a)]),_0x3d2b5b=_0x1242ea[_0x5ed759(0x4c2)](_0x502ce1[_0x5ed759(0x2c5)]);if(!_0x27f3b7)return!0x1;const {unitId:_0x3ff225,subUnitId:_0x1a3d51,row:_0x398a0f,col:_0x1d29cd,collapse:_0x5cb322}=_0x27f3b7,_0x99921c=_0x459c34['getUnit'](_0x3ff225);if(!_0x99921c||!_0x99921c[_0x5ed759(0x45f)](_0x1a3d51))return!0x1;const _0x240abc=_0x45e011[_0x5ed759(0x23d)](_0x3ff225,_0x1a3d51,_0x398a0f,_0x1d29cd);if(!_0x240abc)return!0x1;const _0x1cb560=_0x45e011[_0x5ed759(0x3e7)](_0x3ff225,_0x1a3d51,_0x240abc);if(!_0x1cb560)return!0x1;const _0x4272ea=_0x502ce1['cellToRange'](_0x398a0f,_0x1d29cd),{rangesInfo:_0x46794d,areaInfo:_0x45a534,headerMap:_0x470c08}=_0x1cb560;if(!_0x46794d||!_0x45a534||!_0x470c08)return!0x1;const _0x604062=Object[_0x5ed759(0x375)](_0x46794d)['find'](_0x560ffa=>_0x46794d[_0x560ffa][_0x5ed759(0x23b)](_0x2e1597=>_0x502ce1[_0x5ed759(0x469)][_0x5ed759(0x388)](_0x2e1597,_0x4272ea)));let _0x27500a;_0x604062===_0x5ed759(0x255)?_0x27500a=_0x470c08[_0x5ed759(0x47a)][_0x1d29cd]:_0x604062===_0x5ed759(0x354)&&(_0x27500a=_0x470c08[_0x5ed759(0x380)][_0x398a0f]);const _0x49d67c=_0x27500a==null?void 0x0:_0x27500a[_0x5ed759(0x3ab)],_0x562099=(_0x1a04c2=_0x45e011[_0x5ed759(0x26e)](_0x3ff225,_0x1a3d51,_0x398a0f,_0x1d29cd))==null?void 0x0:_0x1a04c2['v'];if(_0x562099==null||!_0x240abc||!_0x49d67c)return!0x1;const _0x10bcd5=await _0x1f7a8d[_0x5ed759(0x4e7)]({'unitId':_0x3ff225,'subUnitId':_0x1a3d51,'pivotTableId':_0x240abc,'params':{'type':_0x4e0d4['SetPivotCollapse'],'setPivotCollapse':{'tableFieldId':_0x49d67c,'collapse':_0x5cb322,'item':_0x562099}}}),_0x425c38=_0x10bcd5==null?void 0x0:_0x10bcd5[_0x5ed759(0x4bf)][_0x5ed759(0x34f)];if(!_0x425c38)return!0x1;const {view:_0x78ca9a,pivotTableConfig:_0x195c7f,isEmpty:_0x327bd8,changesets:_0x5ad925}=_0x425c38,_0x518a5d=new _0x2371ae['PivotView']();_0x518a5d[_0x5ed759(0x497)](_0x78ca9a);const _0x4aff6b=_0x195c7f['targetCellInfo'],_0x48ec8d={'cellInfo':_0x4aff6b,'view':_0x518a5d,'isEmpty':_0x327bd8};if(!await _0x1242ea[_0x5ed759(0x4c2)](_0x44c9e4[_0x5ed759(0x369)])[_0x5ed759(0x353)][_0x5ed759(0x4b4)](_0x465561)(!0x0,_0x48ec8d))return!0x1;const _0x13a2ae=_0x159fc1(_0x1242ea,_0x518a5d,_0x4aff6b,_0x327bd8),_0x248a68=_0xb9c727(_0x1242ea,_0x48ec8d),{redos:_0x57b9b1,undos:_0x3925f0}=_0x16abcc(_0x42742f,{'pivotTableId':_0x240abc,'unitId':_0x3ff225,'subUnitId':_0x1a3d51},_0x5ad925);return _0x502ce1[_0x5ed759(0x1f9)]([..._0x13a2ae[_0x5ed759(0x2d6)],..._0x248a68[_0x5ed759(0x2d6)],..._0x57b9b1],_0x42742f),_0x3d2b5b[_0x5ed759(0x44a)]({'unitID':_0x3ff225,'redoMutations':[..._0x13a2ae[_0x5ed759(0x2d6)],..._0x248a68['redos'],..._0x57b9b1],'undoMutations':[..._0x13a2ae[_0x5ed759(0x383)],..._0x248a68[_0x5ed759(0x383)],..._0x3925f0]}),!0x0;}},_0x3395df={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x4d4),async 'handler'(_0x5cc158,_0x38af23){const _0x2639cd=_0x168ac6;if(!_0x38af23)return!0x1;const _0xebadf8=_0x5cc158[_0x2639cd(0x4c2)](_0x502ce1[_0x2639cd(0x48c)]),{pivotTableId:_0xecbd8f,tableFieldId:_0x2db40c,items:_0x106756,unitId:_0x1e3bd2,subUnitId:_0x35c431,isAll:_0x2b52c2}=_0x38af23,_0x2c0b2b=_0x5cc158[_0x2639cd(0x4c2)](_0x44c9e4[_0x2639cd(0x43b)]),_0x216a9e=_0x5cc158['get'](_0x502ce1['IUndoRedoService']),_0x3d81b2=(await _0x2c0b2b['getPivotDisplayConfig']({'unitId':_0x1e3bd2,'subUnitId':_0x35c431,'pivotTableId':_0xecbd8f,'params':{'type':_0x4e0d4[_0x2639cd(0x2ca)],'setPivotFilter':{'tableFieldId':_0x2db40c,'items':_0x106756,'isAll':_0x2b52c2}}}))[_0x2639cd(0x4bf)]['setPivotFilter'];if(!_0x3d81b2)return!0x1;const {changesets:_0x59c4c7,pivotTableConfig:_0x3336f7,isEmpty:_0x4c9377,view:_0x52fbe5}=_0x3d81b2,_0x496bbe=_0x3336f7[_0x2639cd(0x38e)],_0x23b0eb=new _0x2371ae[(_0x2639cd(0x4f9))]();_0x23b0eb['formJSON'](_0x52fbe5);const _0x19ebf5={'cellInfo':_0x496bbe,'view':_0x23b0eb,'isEmpty':_0x4c9377};if(!await _0x5cc158[_0x2639cd(0x4c2)](_0x44c9e4[_0x2639cd(0x369)])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x465561)(!0x0,_0x19ebf5))return!0x1;const _0x11c9b7=_0x159fc1(_0x5cc158,_0x23b0eb,_0x496bbe,_0x4c9377),_0x94e6e8=_0xb9c727(_0x5cc158,_0x19ebf5),{undos:_0x5495c0,redos:_0x4d6b56}=_0x16abcc(_0xebadf8,{'pivotTableId':_0xecbd8f,'unitId':_0x1e3bd2,'subUnitId':_0x35c431},_0x59c4c7);return _0x502ce1['sequenceExecute']([..._0x11c9b7[_0x2639cd(0x2d6)],..._0x94e6e8['redos'],..._0x4d6b56],_0xebadf8),_0x216a9e['pushUndoRedo']({'unitID':_0x1e3bd2,'redoMutations':[..._0x11c9b7['redos'],..._0x94e6e8['redos'],..._0x4d6b56],'undoMutations':[..._0x11c9b7['undos'],..._0x94e6e8[_0x2639cd(0x383)],..._0x5495c0]}),!0x0;}},_0x5bb1b8={'type':_0x502ce1[_0x168ac6(0x475)]['COMMAND'],'id':_0x168ac6(0x445),async 'handler'(_0x18e476,_0x6afadf){const _0x2a13d0=_0x168ac6;if(!_0x6afadf)return!0x1;const _0x157166=_0x18e476['get'](_0x502ce1['ICommandService']),_0x558ea9=_0x18e476[_0x2a13d0(0x4c2)](_0x502ce1[_0x2a13d0(0x2c5)]),_0x42b76a=_0x18e476['get'](_0x44c9e4[_0x2a13d0(0x43b)]),{info:_0x7bceeb,tableFieldId:_0x1e1890,pivotTableId:_0xf2f184,unitId:_0x500fae,subUnitId:_0x3f6985}=_0x6afadf,_0x5f4dd5=(await _0x42b76a[_0x2a13d0(0x4e7)]({'unitId':_0x500fae,'subUnitId':_0x3f6985,'pivotTableId':_0xf2f184,'params':{'type':_0x4e0d4['SetPivotSort'],'setPivotSort':{'tableFieldId':_0x1e1890,'info':_0x7bceeb}}}))[_0x2a13d0(0x4bf)][_0x2a13d0(0x2bd)];if(!_0x5f4dd5)return!0x1;const {changesets:_0x4fc67f}=_0x5f4dd5,{redos:_0x26b7f9,undos:_0x5b0aa6}=_0x16abcc(_0x157166,{'pivotTableId':_0xf2f184,'unitId':_0x500fae,'subUnitId':_0x3f6985},_0x4fc67f);return _0x502ce1[_0x2a13d0(0x1f9)](_0x26b7f9,_0x157166),_0x558ea9['pushUndoRedo']({'unitID':_0x500fae,'redoMutations':_0x26b7f9,'undoMutations':_0x5b0aa6}),!0x0;}},_0x3b1fad={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x2ba),async 'handler'(_0x49b5b6,_0x18d464){const _0x3475a8=_0x168ac6;if(!_0x18d464)return!0x1;const _0x404b54=_0x49b5b6[_0x3475a8(0x4c2)](_0x502ce1[_0x3475a8(0x48c)]),_0x167324=_0x49b5b6[_0x3475a8(0x4c2)](_0x502ce1[_0x3475a8(0x2c5)]),_0x2b380a=_0x49b5b6[_0x3475a8(0x4c2)](_0x44c9e4['SheetsPivotRPCService']),{displayName:_0x4192c9,subtotalType:_0x5f0a08,format:_0x1eb65b,tableFieldId:_0x20e52f,pivotTableId:_0x44b287,unitId:_0x19e604,subUnitId:_0x4a614b}=_0x18d464,_0x47b0a8=(await _0x2b380a[_0x3475a8(0x4e7)]({'unitId':_0x19e604,'subUnitId':_0x4a614b,'pivotTableId':_0x44b287,'params':{'type':_0x4e0d4['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x20e52f,'displayName':_0x4192c9,'subtotalType':_0x5f0a08,'format':_0x1eb65b}}}))[_0x3475a8(0x4bf)][_0x3475a8(0x499)];if(!_0x47b0a8)return!0x1;const {changesets:_0x26acd4,view:_0x257948,pivotTableConfig:_0x3c2a70,isEmpty:_0x36bd64}=_0x47b0a8,_0x3a9e62=_0x3c2a70[_0x3475a8(0x38e)],_0x37f159=new _0x2371ae[(_0x3475a8(0x4f9))]();_0x37f159[_0x3475a8(0x497)](_0x257948);const _0x563a7e={'cellInfo':_0x3a9e62,'view':_0x37f159,'isEmpty':_0x36bd64};if(!await _0x49b5b6[_0x3475a8(0x4c2)](_0x44c9e4[_0x3475a8(0x369)])[_0x3475a8(0x353)][_0x3475a8(0x4b4)](_0x465561)(!0x0,_0x563a7e))return!0x1;const _0x368966=_0x159fc1(_0x49b5b6,_0x37f159,_0x3a9e62,_0x36bd64),_0x656c8a=_0xb9c727(_0x49b5b6,_0x563a7e),{undos:_0x2520a9,redos:_0x1ebf87}=_0x16abcc(_0x404b54,{'pivotTableId':_0x44b287,'unitId':_0x19e604,'subUnitId':_0x4a614b},_0x26acd4);return _0x502ce1[_0x3475a8(0x1f9)]([..._0x368966[_0x3475a8(0x2d6)],..._0x656c8a[_0x3475a8(0x2d6)],..._0x1ebf87],_0x404b54),_0x167324[_0x3475a8(0x44a)]({'unitID':_0x19e604,'redoMutations':[..._0x368966[_0x3475a8(0x2d6)],..._0x656c8a[_0x3475a8(0x2d6)],..._0x1ebf87],'undoMutations':[..._0x368966[_0x3475a8(0x383)],..._0x656c8a[_0x3475a8(0x383)],..._0x2520a9]}),!0x0;}},_0xa3a1a0={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x341),async 'handler'(_0x2a2995,_0x49b031){const _0x4f83ed=_0x168ac6,_0x528e5f=_0x2a2995[_0x4f83ed(0x4c2)](_0x502ce1[_0x4f83ed(0x48c)]),_0x362791=_0x2a2995[_0x4f83ed(0x4c2)](_0x44c9e4[_0x4f83ed(0x43b)]),_0x3075fc=_0x2a2995[_0x4f83ed(0x4c2)](_0x502ce1['IUndoRedoService']);if(!_0x49b031)return!0x1;const {token:_0x27355c,dataRangeInfo:_0xbb7d24,unitId:_0x3e6958,subUnitId:_0x28c0ed}=_0x49b031,_0x3f653e=[],_0x1c695e=[],_0x53f664=(await _0x362791[_0x4f83ed(0x4e7)]({'unitId':_0x3e6958,'subUnitId':_0x28c0ed,'pivotTableId':_0x27355c,'params':{'type':_0x4e0d4['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0xbb7d24,'unitId':_0x3e6958,'subUnitId':_0x28c0ed}}}))[_0x4f83ed(0x4bf)][_0x4f83ed(0x342)];if(!_0x53f664)return!0x1;const {changesets:_0x39ca9a,deleteIds:_0x461dc1,collectionConfig:_0x124d94,oldCollectionConfig:_0x168951,view:_0xe4911b,isEmpty:_0x1ba024,pivotTableConfig:_0x487099}=_0x53f664;_0x1c695e['push']({'id':_0x1683d2['id'],'params':{'pivotTableId':_0x27355c,'deleteIds':_0x461dc1,'collectionJSON':_0x124d94,'dataRangeInfo':_0xbb7d24,'unitId':_0x3e6958,'subUnitId':_0x28c0ed}}),_0x3f653e[_0x4f83ed(0x3af)]({'id':_0x1683d2['id'],'params':{'pivotTableId':_0x27355c,'deleteIds':[],'collectionJSON':_0x168951,'dataRangeInfo':_0x487099[_0x4f83ed(0x3bf)],'unitId':_0x3e6958,'subUnitId':_0x28c0ed}});const _0x392ac5=_0x487099['targetCellInfo'],_0x5a688e=new _0x2371ae[(_0x4f83ed(0x4f9))]();_0x5a688e[_0x4f83ed(0x497)](_0xe4911b);const _0x4508aa={'cellInfo':_0x392ac5,'view':_0x5a688e,'isEmpty':_0x1ba024};if(!await _0x2a2995['get'](_0x44c9e4[_0x4f83ed(0x369)])[_0x4f83ed(0x353)][_0x4f83ed(0x4b4)](_0x465561)(!0x0,_0x4508aa))return!0x1;const _0x513541=_0x159fc1(_0x2a2995,_0x5a688e,_0x392ac5,_0x1ba024),_0x3daf02=_0xb9c727(_0x2a2995,_0x4508aa),{undos:_0x13a353,redos:_0x4bcadb}=_0x16abcc(_0x528e5f,{'pivotTableId':_0x27355c,'unitId':_0x3e6958,'subUnitId':_0x28c0ed},_0x39ca9a);return _0x502ce1[_0x4f83ed(0x1f9)]([..._0x513541[_0x4f83ed(0x2d6)],..._0x3daf02[_0x4f83ed(0x2d6)],..._0x1c695e,..._0x13a353],_0x528e5f),_0x3075fc['pushUndoRedo']({'unitID':_0x3e6958,'redoMutations':[..._0x513541[_0x4f83ed(0x2d6)],..._0x3daf02[_0x4f83ed(0x2d6)],..._0x1c695e,..._0x13a353],'undoMutations':[..._0x513541[_0x4f83ed(0x383)],..._0x3daf02[_0x4f83ed(0x383)],..._0x3f653e,..._0x4bcadb]}),!0x0;}},_0x40b7e3={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x27b),async 'handler'(_0x18eef3,_0x27fa65){const _0x1e0111=_0x168ac6;if(!_0x27fa65)return!0x1;const _0x5b0733=_0x18eef3['get'](_0x502ce1[_0x1e0111(0x48c)]),_0x52b39e=_0x18eef3[_0x1e0111(0x4c2)](_0x44c9e4[_0x1e0111(0x43b)]),_0x4a6257=_0x18eef3[_0x1e0111(0x4c2)](_0x502ce1[_0x1e0111(0x37a)]),_0x69ccd3=_0x18eef3[_0x1e0111(0x4c2)](_0x502ce1[_0x1e0111(0x2c5)]),{pivotTableId:_0x3b4354,position:_0x1edc0d,index:_0x1b7a3f}=_0x27fa65,_0x88656f=_0x2b7376[_0x1e0111(0x3a3)](_0x4a6257);if(!_0x88656f)return!0x1;const {unitId:_0xd3da7f,subUnitId:_0x5e977f}=_0x88656f,_0x529292=(await _0x52b39e['getPivotDisplayConfig']({'unitId':_0xd3da7f,'subUnitId':_0x5e977f,'pivotTableId':_0x3b4354,'params':{'type':_0x4e0d4[_0x1e0111(0x371)],'updateValuePosition':{'position':_0x1edc0d,'index':_0x1b7a3f}}}))[_0x1e0111(0x4bf)]['updateValuePosition'];if(!_0x529292)return!0x1;const {changesets:_0x26a7d4,view:_0x867063,isEmpty:_0x23ce65,pivotTableConfig:_0x1a60fa}=_0x529292,_0x5d676e=_0x1a60fa[_0x1e0111(0x38e)],_0x28892d=new _0x2371ae[(_0x1e0111(0x4f9))]();_0x28892d[_0x1e0111(0x497)](_0x867063);const _0x6801e7=_0x18eef3[_0x1e0111(0x4c2)](_0x44c9e4[_0x1e0111(0x369)]),_0x3bb953={'cellInfo':_0x5d676e,'view':_0x28892d,'isEmpty':_0x23ce65};if(!await _0x6801e7[_0x1e0111(0x353)][_0x1e0111(0x4b4)](_0x465561)(!0x0,_0x3bb953))return!0x1;const _0x322951=_0x159fc1(_0x18eef3,_0x28892d,_0x5d676e,_0x23ce65),_0x5e4f27=_0xb9c727(_0x18eef3,_0x3bb953),{undos:_0x20ec94,redos:_0x4c5b11}=_0x16abcc(_0x5b0733,{'pivotTableId':_0x3b4354,'unitId':_0xd3da7f,'subUnitId':_0x5e977f},_0x26a7d4);return _0x502ce1['sequenceExecute']([..._0x322951[_0x1e0111(0x2d6)],..._0x5e4f27[_0x1e0111(0x2d6)],..._0x4c5b11],_0x5b0733),_0x69ccd3['pushUndoRedo']({'unitID':_0xd3da7f,'redoMutations':[..._0x322951['redos'],..._0x5e4f27[_0x1e0111(0x2d6)],..._0x4c5b11],'undoMutations':[..._0x322951[_0x1e0111(0x383)],..._0x5e4f27[_0x1e0111(0x383)],..._0x20ec94]}),!0x0;}},_0x4e1c9e={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':'sheet.command.move-pivot-table','handler':(_0x5201c0,_0x521f80)=>{const _0x8b3f04=_0x168ac6,_0x3f4b59=_0x5201c0[_0x8b3f04(0x4c2)](_0x502ce1[_0x8b3f04(0x48c)]),_0x1d1f07=_0x5201c0[_0x8b3f04(0x4c2)](_0x502ce1[_0x8b3f04(0x2c5)]),_0x3badd9=_0x5201c0[_0x8b3f04(0x4c2)](_0x44c9e4[_0x8b3f04(0x30b)]),_0x255cdf=_0x5201c0[_0x8b3f04(0x4c2)](_0x502ce1['IUniverInstanceService']);if(!_0x521f80)return!0x1;const _0x53d6f5=_0x2b7376[_0x8b3f04(0x3a3)](_0x255cdf);if(!_0x53d6f5)return!0x1;const {unitId:_0x36ec75,subUnitId:_0x379a10,workbook:_0x15f8a2}=_0x53d6f5,_0x3ae924=_0x3badd9['getPivotTableConfig'](_0x521f80[_0x8b3f04(0x202)][_0x8b3f04(0x43e)],_0x521f80['originTargetInfo'][_0x8b3f04(0x389)],_0x521f80[_0x8b3f04(0x22f)]);if(!_0x3ae924)return!0x1;const _0x4addfb=_0x15f8a2[_0x8b3f04(0x45f)](_0x521f80[_0x8b3f04(0x38e)][_0x8b3f04(0x389)]);if(!_0x4addfb)throw new Error(_0x8b3f04(0x2d2));const _0x5c5612=_0x4addfb[_0x8b3f04(0x47d)](),_0x52c38b=_0x4addfb['getColumnCount']();if(_0x521f80['targetCellInfo'][_0x8b3f04(0x2f0)]>_0x5c5612||_0x521f80[_0x8b3f04(0x38e)]['col']>_0x52c38b)throw new Error('[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range');const _0x14cd06=[{'id':_0x35b800['id'],'params':{'unitId':_0x36ec75,'subUnitId':_0x521f80[_0x8b3f04(0x38e)][_0x8b3f04(0x389)],'pivotTableId':_0x521f80[_0x8b3f04(0x22f)],'targetCellPosition':{'row':_0x521f80[_0x8b3f04(0x38e)][_0x8b3f04(0x2f0)],'col':_0x521f80[_0x8b3f04(0x38e)][_0x8b3f04(0x40d)]}}}],_0x2a60e5=[{'id':_0x35b800['id'],'params':{'unitId':_0x36ec75,'subUnitId':_0x379a10,'pivotTableId':_0x521f80[_0x8b3f04(0x22f)],'targetCellPosition':{'row':_0x3ae924[_0x8b3f04(0x38e)]['row'],'col':_0x3ae924[_0x8b3f04(0x38e)]['col']}}}];return _0x502ce1[_0x8b3f04(0x1f9)](_0x14cd06,_0x3f4b59)&&_0x1d1f07[_0x8b3f04(0x44a)]({'unitID':_0x36ec75,'undoMutations':_0x2a60e5,'redoMutations':_0x14cd06}),!0x0;}},_0x4917da={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x309),async 'handler'(_0x94124a,_0x42b3c2){const _0x242ae2=_0x168ac6;if(!_0x42b3c2)return!0x1;const _0x2067f4=_0x94124a[_0x242ae2(0x4c2)](_0x502ce1[_0x242ae2(0x48c)]),{pivotTableId:_0x1f9f04,fieldId:_0x29bdd8,valueFilterInfo:_0xa8ed4a,unitId:_0x227a6d,subUnitId:_0x39617c}=_0x42b3c2,_0x4423a1=_0x94124a['get'](_0x44c9e4['SheetsPivotRPCService']),_0x4c2f7f=_0x94124a[_0x242ae2(0x4c2)](_0x502ce1[_0x242ae2(0x2c5)]),_0x48ab8c=(await _0x4423a1[_0x242ae2(0x4e7)]({'unitId':_0x227a6d,'subUnitId':_0x39617c,'pivotTableId':_0x1f9f04,'params':{'type':_0x4e0d4['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x29bdd8,'filterInfo':_0xa8ed4a}}}))[_0x242ae2(0x4bf)][_0x242ae2(0x3f1)];if(!_0x48ab8c)return!0x1;const {changesets:_0x1c4f71,pivotTableConfig:_0xe49149,isEmpty:_0x3f39ed,view:_0x564e36}=_0x48ab8c,_0x233698=_0xe49149['targetCellInfo'],_0x4cba9f=new _0x2371ae[(_0x242ae2(0x4f9))]();_0x4cba9f[_0x242ae2(0x497)](_0x564e36);const _0x3183bc={'cellInfo':_0x233698,'view':_0x4cba9f,'isEmpty':_0x3f39ed};if(!await _0x94124a[_0x242ae2(0x4c2)](_0x44c9e4['SheetsPivotTableService'])[_0x242ae2(0x353)][_0x242ae2(0x4b4)](_0x465561)(!0x0,_0x3183bc))return!0x1;const _0x2c18cf=_0x159fc1(_0x94124a,_0x4cba9f,_0x233698,_0x3f39ed),_0x5888d2=_0xb9c727(_0x94124a,_0x3183bc),{undos:_0x57c4bb,redos:_0x36ebeb}=_0x16abcc(_0x2067f4,{'pivotTableId':_0x1f9f04,'unitId':_0x227a6d,'subUnitId':_0x39617c},_0x1c4f71);return _0x502ce1[_0x242ae2(0x1f9)]([..._0x2c18cf['redos'],..._0x5888d2[_0x242ae2(0x2d6)],..._0x36ebeb],_0x2067f4),_0x4c2f7f[_0x242ae2(0x44a)]({'unitID':_0x227a6d,'redoMutations':[..._0x2c18cf[_0x242ae2(0x2d6)],..._0x5888d2[_0x242ae2(0x2d6)],..._0x36ebeb],'undoMutations':[..._0x2c18cf[_0x242ae2(0x383)],..._0x5888d2['undos'],..._0x57c4bb]}),!0x0;}},_0x49de69={'type':_0x502ce1['CommandType'][_0x168ac6(0x334)],'id':_0x168ac6(0x252),async 'handler'(_0x598b80,_0x4ec903){const _0x36124f=_0x168ac6;if(!_0x4ec903)return!0x1;const _0x452e5f=_0x598b80['get'](_0x502ce1[_0x36124f(0x48c)]),_0x4c4b68=_0x598b80[_0x36124f(0x4c2)](_0x502ce1[_0x36124f(0x2c5)]),_0x8ce826=_0x598b80['get'](_0x44c9e4['SheetsPivotRPCService']),{pivotTableConfig:_0x3b9b2a,pivotTableId:_0x18734f,unitId:_0x353146,subUnitId:_0x4cfaaa}=_0x4ec903,_0xc6dffe=(await _0x8ce826[_0x36124f(0x4e7)]({'unitId':_0x353146,'subUnitId':_0x4cfaaa,'pivotTableId':_0x18734f,'params':{'type':_0x4e0d4[_0x36124f(0x23f)],'setPivotTableConfig':{'pivotTableId':_0x18734f,'pivotTableConfig':_0x3b9b2a}}}))[_0x36124f(0x4bf)]['setPivotTableConfig'];if(!_0xc6dffe)return!0x1;const {changesets:_0x21a3a2}=_0xc6dffe,{redos:_0x544555,undos:_0x4eb80b}=_0x16abcc(_0x452e5f,{'pivotTableId':_0x18734f,'unitId':_0x353146,'subUnitId':_0x4cfaaa},_0x21a3a2);return _0x502ce1[_0x36124f(0x1f9)](_0x544555,_0x452e5f),_0x4c4b68[_0x36124f(0x44a)]({'unitID':_0x353146,'redoMutations':_0x544555,'undoMutations':_0x4eb80b}),!0x0;}},_0x30a04f={'type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'id':_0x168ac6(0x2b9),async 'handler'(_0x46088a,_0x819a7f){const _0xff23c1=_0x168ac6;if(!_0x819a7f)return!0x1;const _0x5758a2=_0x46088a[_0xff23c1(0x4c2)](_0x502ce1[_0xff23c1(0x48c)]),_0x644c51=_0x46088a[_0xff23c1(0x4c2)](_0x502ce1[_0xff23c1(0x2c5)]),_0x419fb4=_0x46088a[_0xff23c1(0x4c2)](_0x44c9e4[_0xff23c1(0x43b)]),{resetArea:_0x589a67,pivotTableId:_0x10e72f,unitId:_0x9b30af,subUnitId:_0x1027b3}=_0x819a7f,_0xa42f37=(await _0x419fb4['getPivotDisplayConfig']({'unitId':_0x9b30af,'subUnitId':_0x1027b3,'pivotTableId':_0x10e72f,'params':{'type':_0x4e0d4['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x10e72f,'resetArea':_0x589a67}}}))['result'][_0xff23c1(0x3ec)];if(!_0xa42f37)return!0x1;const {changesets:_0x42d45b}=_0xa42f37,{redos:_0x4d4930,undos:_0xb133a6}=_0x16abcc(_0x5758a2,{'pivotTableId':_0x10e72f,'unitId':_0x9b30af,'subUnitId':_0x1027b3},_0x42d45b);return _0x502ce1['sequenceExecute'](_0x4d4930,_0x5758a2),_0x644c51[_0xff23c1(0x44a)]({'unitID':_0x9b30af,'redoMutations':_0x4d4930,'undoMutations':_0xb133a6}),!0x0;}},_0x972376={'id':'sheet.mutation.update-date-group','type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x31d)],'handler':(_0x57da8d,_0x4af35e)=>{const _0x381fc4=_0x168ac6;if(!_0x4af35e)return!0x1;if(!!_0x57da8d[_0x381fc4(0x4c2)](_0x502ce1[_0x381fc4(0x25b)])[_0x381fc4(0x4fb)](_0x44bb6e))return!0x0;const {unitId:_0x3c0e88,subUnitId:_0x1c4151,pivotTableId:_0x73d002,tableFieldId:_0x1d42c4,dateType:_0x1408c5}=_0x4af35e,_0x586966=_0x57da8d['get'](_0x44c9e4[_0x381fc4(0x31f)]),_0x41303c=_0x586966[_0x381fc4(0x42a)](_0x73d002);if(!_0x41303c)return!0x1;const _0x366f24=_0x41303c[_0x381fc4(0x308)](_0x1d42c4);if(!_0x366f24)return!0x1;const _0x32456d=_0x366f24[_0x381fc4(0x248)](),_0x127613=_0x41303c[_0x381fc4(0x38a)](_0x32456d),_0x5f00dd=(_0x127613==null?void 0x0:_0x127613['getName']())+'\x20'+_0x236897(_0x57da8d,_0x1408c5);_0x586966[_0x381fc4(0x46b)](_0x3c0e88,_0x73d002)[_0x381fc4(0x1ef)](_0x366f24['id'],_0x5f00dd);const _0x152240=_0x41303c['getTableFieldById'](_0x1d42c4);if(!_0x152240)return!0x1;_0x41303c['renameField'](_0x152240[_0x381fc4(0x260)](),_0x5f00dd),_0x366f24[_0x381fc4(0x215)](_0x1408c5);const _0x26c0c7=_0x586966[_0x381fc4(0x20c)](_0x3c0e88,_0x1c4151,_0x73d002);return _0x586966[_0x381fc4(0x4d6)]({'unitId':_0x3c0e88,'subUnitId':_0x1c4151,'token':_0x73d002,'type':_0x44d5f2[_0x381fc4(0x399)],'pivotConfig':_0x26c0c7}),!0x0;}},_0x345b02={'id':'sheet.command.update-date-group','type':_0x502ce1[_0x168ac6(0x475)][_0x168ac6(0x334)],'handler':(_0x2b8601,_0x370912)=>{const _0x440d21=_0x168ac6;if(!_0x370912)return!0x1;const _0x3510b8=_0x2b8601[_0x440d21(0x4c2)](_0x502ce1[_0x440d21(0x2c5)]),{unitId:_0x31243d,subUnitId:_0x27a5e8,pivotTableId:_0x47ab9f,tableFieldId:_0x24eabf}=_0x370912,_0x1b56c9=[],_0x1d2257=[],_0xd4fedf=_0x2b8601[_0x440d21(0x4c2)](_0x44c9e4[_0x440d21(0x30b)]),_0x5fbab7=_0xd4fedf[_0x440d21(0x46b)](_0x31243d,_0x47ab9f),_0x54303b=_0xd4fedf[_0x440d21(0x20c)](_0x31243d,_0x27a5e8,_0x47ab9f);if(!(_0x54303b!=null&&_0x54303b['fieldsConfig'][_0x440d21(0x49b)]))return!0x1;const _0x35df69=Object[_0x440d21(0x484)](_0x54303b[_0x440d21(0x3f6)]['dimension'])['find'](_0x11279d=>_0x11279d['id']===_0x24eabf);if(!_0x35df69)return!0x1;const _0x98c699=_0x35df69[_0x440d21(0x444)];if(!(_0x5fbab7!=null&&_0x5fbab7[_0x440d21(0x251)]))return!0x1;const _0x1e4d88=Object[_0x440d21(0x484)](_0x5fbab7==null?void 0x0:_0x5fbab7[_0x440d21(0x251)])[_0x440d21(0x317)](_0x380a21=>_0x380a21['id']===_0x98c699);if(!_0x1e4d88)return!0x1;_0x2371ae[_0x440d21(0x27c)](_0x1e4d88)&&_0x1b56c9['push']({'id':_0x972376['id'],'params':{..._0x370912,'dateType':_0x1e4d88[_0x440d21(0x4d3)]}}),_0x1d2257[_0x440d21(0x412)]({'id':_0x972376['id'],'params':{..._0x370912}});const _0x485c8c=_0x2b8601[_0x440d21(0x4c2)](_0x502ce1[_0x440d21(0x48c)]);return _0x502ce1[_0x440d21(0x1f9)](_0x1d2257,_0x485c8c)&&_0x3510b8[_0x440d21(0x44a)]({'unitID':_0x31243d,'undoMutations':_0x1b56c9,'redoMutations':_0x1d2257}),!0x0;}};var _0x11c80f=Object[_0x168ac6(0x2ec)],_0x113412=(_0x6b8fe5,_0x5b89ac,_0x5d5d43,_0x278315)=>{const _0x4900c1=_0x168ac6;for(var _0x2c89f4=_0x278315>0x1?void 0x0:_0x278315?_0x11c80f(_0x5b89ac,_0x5d5d43):_0x5b89ac,_0x5355da=_0x6b8fe5[_0x4900c1(0x4d2)]-0x1,_0x425549;_0x5355da>=0x0;_0x5355da--)(_0x425549=_0x6b8fe5[_0x5355da])&&(_0x2c89f4=_0x425549(_0x2c89f4)||_0x2c89f4);return _0x2c89f4;},_0x140b61=(_0xb60163,_0x3b8f3f)=>(_0x1a16a2,_0x19f08e)=>_0x3b8f3f(_0x1a16a2,_0x19f08e,_0xb60163);const _0x139533=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x273428=(_0x31c453,_0x4f37f6,_0x241232)=>{const _0x1474b9=_0x168ac6,_0x16cddd=_0x31c453[_0x1474b9(0x4eb)];_0x31c453[_0x1474b9(0x397)](_0xe49c9b=>{const _0x5303a7=_0x1474b9,_0x45164e=_0xe49c9b[_0x5303a7(0x260)](),_0x3d41ee=_0xe49c9b[_0x5303a7(0x2cd)](),_0x1f8ce7=_0xe49c9b[_0x5303a7(0x482)](),_0x3a7178=_0xe49c9b[_0x5303a7(0x24c)]();_0x4f37f6[_0x3d41ee]&&_0x4f37f6[_0x3d41ee]===_0x3a7178&&_0x1f8ce7===_0x3a7178&&(_0x31c453[_0x5303a7(0x321)](_0x45164e,_0x16cddd[_0x5303a7(0x24c)](_0x3d41ee)),_0xe49c9b[_0x5303a7(0x2b1)](_0x16cddd[_0x5303a7(0x24c)](_0x3d41ee)));}),_0x31c453[_0x1474b9(0x3ca)](_0x2371ae[_0x1474b9(0x348)]['Value'],_0x9bcbbe=>{const _0xa3beea=_0x1474b9,_0x1bfbf6=_0x9bcbbe[_0xa3beea(0x260)](),_0x115fd2=_0x9bcbbe[_0xa3beea(0x2cd)](),_0xbf8a00=_0x9bcbbe['getSourceName'](),_0x54c2f5=_0x9bcbbe[_0xa3beea(0x24c)](),_0x167148=_0x9bcbbe[_0xa3beea(0x2ee)](),_0x1e022a=_0x241232(_0xbf8a00,_0x167148);_0x4f37f6[_0x115fd2]&&_0x4f37f6[_0x115fd2]===_0xbf8a00&&_0x1e022a===_0x54c2f5&&(_0x31c453[_0xa3beea(0x321)](_0x1bfbf6,_0x241232(_0x16cddd[_0xa3beea(0x24c)](_0x115fd2),_0x167148)),_0x9bcbbe[_0xa3beea(0x2b1)](_0x16cddd[_0xa3beea(0x24c)](_0x115fd2)));});},_0x43b63c=(_0x475138,_0x143f97,_0x1afb46)=>{const _0xc684d5=_0x168ac6;var _0x4393d5,_0x31b885;const {arrayFormulaCellData:_0x49bbd1,unitData:_0x3616c2}=_0x143f97,{unitId:_0x42ba82,subUnitId:_0x405e2c}=_0x1afb46,_0xa9afd8=_0x1afb46['range'],{startColumn:_0x4efd42,endColumn:_0x257fe5}=_0xa9afd8,_0x4a1a2a=(_0x4393d5=_0x49bbd1==null?void 0x0:_0x49bbd1[_0x42ba82])==null?void 0x0:_0x4393d5[_0x405e2c],_0x276f3f=(_0x31b885=_0x3616c2==null?void 0x0:_0x3616c2[_0x42ba82])==null?void 0x0:_0x31b885[_0x405e2c],_0x159d52=new Set(),_0x1ccdcf=_0x257fe5-_0x4efd42+0x1,{dirtyRanges:_0x1c0b8a}=_0x475138;if(_0x1c0b8a)for(const {range:_0x2d15af,sheetId:_0x344abd,unitId:_0x22809c}of _0x1c0b8a){if(_0x344abd!==_0x405e2c||_0x42ba82!==_0x22809c)continue;const _0x40ab3c=_0x502ce1[_0xc684d5(0x469)][_0xc684d5(0x332)](_0x2d15af,_0xa9afd8);if(_0x40ab3c){const {startColumn:_0x21c28b,endColumn:_0x228886}=_0x40ab3c;for(let _0x31c628=_0x21c28b;_0x31c628<=_0x228886;_0x31c628++)_0x159d52[_0xc684d5(0x449)](_0x31c628);}}if(_0x159d52['size']===_0x1ccdcf||_0x159d52[_0xc684d5(0x381)]===_0x1ccdcf)return Array[_0xc684d5(0x421)](_0x159d52);if(_0x276f3f){const _0x2110f1=_0x276f3f[_0xc684d5(0x4ad)](),_0x56833e=Object[_0xc684d5(0x375)](_0x2110f1);for(const _0x4e1554 of _0x56833e){const _0x29d116=Number(_0x4e1554),_0x352d8f=_0x2110f1[_0x29d116];if(_0x159d52['size']===_0x1ccdcf)break;for(const _0x49cb91 in _0x352d8f){const _0x232136=Number(_0x49cb91);_0x232136<_0x4efd42||_0x232136>_0x257fe5||_0x159d52[_0xc684d5(0x449)](_0x232136);}}}if(_0x4a1a2a){const _0x2d678b=_0x4a1a2a[_0xc684d5(0x4ad)](),_0x2c3717=Object[_0xc684d5(0x375)](_0x2d678b);for(const _0x357970 of _0x2c3717){const _0x1ecdd9=Number(_0x357970),_0x4a6dcd=_0x2d678b[_0x1ecdd9];if(_0x159d52['size']===_0x1ccdcf)break;for(const _0x111c68 in _0x4a6dcd){const _0x1ae895=Number(_0x111c68);_0x1ae895<_0x4efd42||_0x1ae895>_0x257fe5||_0x159d52[_0xc684d5(0x449)](_0x1ae895);}}}return Array[_0xc684d5(0x421)](_0x159d52);},_0x10f61d=_0x254aed=>{const _0x28fec1=_0x168ac6,_0x1909c0=new Set(),_0xb857fd=[];for(const _0x38e159 of _0x254aed){const _0x2049fa=_0x38e159[_0x28fec1(0x41f)]+','+_0x38e159[_0x28fec1(0x4cd)]+','+_0x38e159[_0x28fec1(0x291)]+','+_0x38e159[_0x28fec1(0x42b)];_0x1909c0[_0x28fec1(0x23a)](_0x2049fa)||(_0x1909c0[_0x28fec1(0x449)](_0x2049fa),_0xb857fd[_0x28fec1(0x412)](_0x38e159));}return _0xb857fd;};let _0x2bb2b4=class extends _0x502ce1['Disposable']{constructor(_0x5983cd,_0xa56a9,_0x533bca,_0x30d0b7,_0x4164c7,_0x244910){const _0x272754=_0x168ac6;super(),_0x2d9017(this,_0x272754(0x436),new _0x146a1c[(_0x272754(0x326))](!0x0)),_0x2d9017(this,_0x272754(0x2a5),_0x52b6e8=>{const _0x4f2080=_0x272754;this[_0x4f2080(0x436)][_0x4f2080(0x21d)](!0x1);}),_0x2d9017(this,_0x272754(0x2e6),_0x17b001=>{const _0x3a37e6=_0x272754;this[_0x3a37e6(0x436)][_0x3a37e6(0x21d)](!0x0);}),(this[_0x272754(0x34a)]=_0x5983cd,this[_0x272754(0x2c7)]=_0xa56a9,this[_0x272754(0x232)]=_0x533bca,this['_commandService']=_0x30d0b7,this[_0x272754(0x422)]=_0x4164c7,this[_0x272754(0x360)]=_0x244910,this[_0x272754(0x4d1)](),this[_0x272754(0x26c)]());}['_init'](){const _0x10e633=_0x168ac6;this[_0x10e633(0x385)](),this[_0x10e633(0x29f)](),this[_0x10e633(0x394)](),this['_subjectFieldsCollectionChange']();}[_0x168ac6(0x4e0)](){const _0x4ecc66=_0x168ac6;this[_0x4ecc66(0x422)][_0x4ecc66(0x298)](this['_globalSubject']),_0x2371ae[_0x4ecc66(0x3e4)]['registerCallbackWithEvent'](_0x2371ae[_0x4ecc66(0x41b)]['onQueryStart'],this[_0x4ecc66(0x2a5)]),_0x2371ae[_0x4ecc66(0x3e4)]['registerCallbackWithEvent'](_0x2371ae[_0x4ecc66(0x41b)][_0x4ecc66(0x2bf)],this[_0x4ecc66(0x2e6)]);}[_0x168ac6(0x26c)](){const _0x177073=_0x168ac6;this[_0x177073(0x218)](this[_0x177073(0x377)]['onCommandExecuted'](_0x3c6163=>{const _0x2cda24=_0x177073;_0x3c6163['id']===_0x2b7376['MoveRangeMutation']['id']&&this['_sheetsPivotDataSourceModel'][_0x2cda24(0x22e)](_0x3c6163[_0x2cda24(0x4f3)]);})),this['disposeWithMe'](this[_0x177073(0x377)][_0x177073(0x28e)](_0x50e8ed=>{const _0x25d6ff=_0x177073;if(_0x50e8ed['id']!==_0x203a4f['id'])return;const _0x34a50e=_0x50e8ed[_0x25d6ff(0x4f3)],{unitId:_0xc4847a,subUnitId:_0x360474,pivotTableId:_0x9f42be}=_0x34a50e,_0x479128=_0x34a50e[_0x25d6ff(0x4f3)]['type'],_0x3a8b77={};switch(_0x479128){case _0x4e0d4[_0x25d6ff(0x44d)]:{const _0x3127d2=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x35b)];if(!_0x3127d2)return;const {row:_0x344c40,col:_0x32e16f,cellData:_0x487584,pivotItemRenderInfoCache:_0x583659,tableFieldId:_0xfa555e}=_0x3127d2,_0x4cabdd=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x34a50e[_0x25d6ff(0x22f)]);if(!_0x4cabdd||!_0x583659)return;if(_0xfa555e){const _0x53820b=_0x4cabdd[_0x25d6ff(0x308)](_0xfa555e);if(!_0x53820b)return;_0x3a8b77[_0x25d6ff(0x35b)]={..._0x4cabdd[_0x25d6ff(0x4a5)](_0x53820b),'tableFieldId':_0xfa555e,'pivotTableId':_0x34a50e[_0x25d6ff(0x22f)],'filterInfo':_0x4cabdd[_0x25d6ff(0x225)](_0xfa555e),'sortInfo':_0x4cabdd[_0x25d6ff(0x281)](_0xfa555e),'format':_0x4cabdd[_0x25d6ff(0x2f1)](_0xfa555e)};}else{const _0x669b31=_0xbf46ad(_0x344c40,_0x32e16f,_0x487584,_0x4cabdd,_0x583659),_0x341822=_0x669b31==null?void 0x0:_0x669b31[_0x25d6ff(0x398)];if(!_0x341822)return;const _0x12ebd0=_0x4cabdd[_0x25d6ff(0x308)](_0x341822);if(!_0x12ebd0)return;_0x3a8b77['filter']={..._0x4cabdd[_0x25d6ff(0x4a5)](_0x12ebd0),'tableFieldId':_0x341822,'pivotTableId':_0x34a50e[_0x25d6ff(0x22f)],'filterInfo':_0x4cabdd[_0x25d6ff(0x225)](_0x341822),'sortInfo':_0x4cabdd[_0x25d6ff(0x281)](_0x341822),'format':_0x4cabdd[_0x25d6ff(0x2f1)](_0x341822)};}}break;case _0x4e0d4[_0x25d6ff(0x3c4)]:{const _0x473825=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x447)];if(!_0x473825)return;const {pivotTableId:_0x59d83e}=_0x473825,_0x1abbe4=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x59d83e);if(!_0x1abbe4)return;const _0x2fe0ff=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x59d83e),_0x1af2e1=_0x1503d8(_0x1abbe4,_0x59d83e,_0x2fe0ff);_0x3a8b77[_0x25d6ff(0x447)]=_0x1af2e1;}break;case _0x4e0d4[_0x25d6ff(0x45a)]:{const _0x3bc87d=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be),_0x21ef16=this[_0x25d6ff(0x34a)]['getDataFieldManager'](_0xc4847a),_0xc38845=_0x21ef16[_0x25d6ff(0x46b)](_0x9f42be);let _0x2ccf7c=null;const _0x51aa76=this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be),_0x2e0051=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x351)];if(!_0x3bc87d||!_0x51aa76||!_0x2e0051)return!0x1;const {dataFieldId:_0x421be1,fieldArea:_0x32c0a7,index:_0x5d71f1}=_0x2e0051;_0x3bc87d['startCollectChangeset']();const _0x4333b5=_0x3bc87d[_0x25d6ff(0x2b5)](_0x421be1,_0x32c0a7,_0x5d71f1);if(_0x4333b5&&_0x32c0a7===_0x2371ae['PivotTableFiledAreaEnum'][_0x25d6ff(0x4e3)]){const _0x7e8e77=_0x4333b5[_0x25d6ff(0x260)](),_0x624f77=_0x3bc87d[_0x25d6ff(0x308)](_0x7e8e77);if(_0x624f77){const _0x3a75b5=_0x624f77==null?void 0x0:_0x624f77[_0x25d6ff(0x2a6)]();_0x3bc87d[_0x25d6ff(0x329)](_0x4333b5[_0x25d6ff(0x260)](),_0x3a75b5===_0x2371ae['PivotDataFieldDataTypeEnum'][_0x25d6ff(0x386)]?_0x2371ae[_0x25d6ff(0x24d)][_0x25d6ff(0x3d4)]:_0x2371ae[_0x25d6ff(0x24d)]['count']);}const _0x3d5d9e=_0x3bc87d['getValueIndex'](),_0x3d9fe0=_0x3bc87d['getValuePosition'](),_0x320204=_0x3bc87d[_0x25d6ff(0x434)](_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x4e3)]);if(_0x3d5d9e===-0x1&&_0x320204>0x1){const _0x4e0ed9=_0x3d9fe0===_0x2371ae[_0x25d6ff(0x410)]['None']?_0x2371ae[_0x25d6ff(0x410)][_0x25d6ff(0x2d9)]:_0x3d9fe0,_0x50121e=_0x4e0ed9===_0x2371ae['PivotTableValuePositionEnum'][_0x25d6ff(0x427)]?_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x427)]:_0x2371ae['PivotTableFiledAreaEnum'][_0x25d6ff(0x2d9)];_0x3bc87d[_0x25d6ff(0x419)](_0x4e0ed9,_0x3bc87d[_0x25d6ff(0x434)](_0x50121e));}}else{if(_0x4333b5&&(_0x32c0a7===_0x2371ae['PivotTableFiledAreaEnum']['Row']||_0x32c0a7===_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x2d9)])){const _0x55db1b=_0x4333b5[_0x25d6ff(0x260)](),_0x25c6f2=_0x3bc87d[_0x25d6ff(0x308)](_0x55db1b);if(_0x25c6f2&&(_0x25c6f2==null?void 0x0:_0x25c6f2[_0x25d6ff(0x2a6)]())===_0x2371ae[_0x25d6ff(0x3eb)][_0x25d6ff(0x2be)]){const _0x160b6d=_0x25c6f2[_0x25d6ff(0x2da)]();if(_0x160b6d&&_0x3bc87d[_0x25d6ff(0x216)](_0x4333b5[_0x25d6ff(0x260)](),_0x160b6d),!_0xc38845[_0x25d6ff(0x250)]()[_0x25d6ff(0x23b)](_0x9e7a38=>{const _0x360708=_0x25d6ff,_0x24ba18=_0xc38845[_0x360708(0x2b4)](_0x9e7a38);return _0x2371ae['isDateGroupField'](_0x24ba18)?_0x24ba18[_0x360708(0x494)]()[_0x360708(0x2b3)]===_0x421be1:!0x1;})){const _0x4722c3=_0x21ef16[_0x25d6ff(0x24f)](),_0x44c066=_0xc1ced6(_0x25c6f2[_0x25d6ff(0x46a)],_0x25c6f2[_0x25d6ff(0x39d)]),_0x41a5f8=_0x25c6f2['getName']()+_0x25d6ff(0x47c)+_0x236897(this[_0x25d6ff(0x360)],_0x44c066),_0x5a43ad=new _0x2371ae[(_0x25d6ff(0x4dd))](_0x4722c3,_0x41a5f8,_0x2371ae[_0x25d6ff(0x40a)](0x3),_0x25c6f2[_0x25d6ff(0x260)](),_0x44c066);_0x21ef16[_0x25d6ff(0x36f)](_0x5a43ad),_0xc38845['addField'](_0x4722c3,_0x41a5f8),_0x3bc87d[_0x25d6ff(0x2b5)](_0x4722c3,_0x32c0a7,(_0x5d71f1!=null?_0x5d71f1:0x0)+0x1),_0x2ccf7c=_0x5a43ad;}}}}const _0x4f567f=_0x3bc87d[_0x25d6ff(0x431)](),_0x45f369=_0x3bc87d[_0x25d6ff(0x43f)]()[_0x25d6ff(0x26d)]();let _0x4ea83e;if(_0x2ccf7c){_0x4ea83e=_0x2ccf7c[_0x25d6ff(0x26d)]();const _0xc86101=_0x2ccf7c[_0x25d6ff(0x260)]();_0xc38845[_0x25d6ff(0x24e)](_0xc86101);let _0x3b0109=!0x0;for(const _0xeab348 in _0x21ef16['collections'])if(_0x21ef16[_0x25d6ff(0x235)][_0xeab348][_0x25d6ff(0x250)]()['includes'](_0xc86101)){_0x3b0109=!0x1;break;}_0x3b0109&&_0x21ef16[_0x25d6ff(0x3db)](_0xc86101);}const _0x4b1ee1=_0x3bc87d[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x351)]={'view':_0x45f369,'changesets':_0x4b1ee1,'isEmpty':_0x4f567f,'pivotTableConfig':_0x51aa76,'shouldBeAddedGroupJSON':_0x4ea83e};}break;case _0x4e0d4[_0x25d6ff(0x33c)]:{const _0x197ec5=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x483)];if(!_0x197ec5)return;const _0x44c450=_0x197ec5[_0x25d6ff(0x3bf)],_0x2668dd=_0x197ec5[_0x25d6ff(0x22f)],{collection:_0x3b03ce}=this[_0x25d6ff(0x34a)]['createCollectionWithDataRange']({'unitId':_0x44c450[_0x25d6ff(0x43e)],'sheetName':_0x44c450[_0x25d6ff(0x37b)],'subUnitId':_0x44c450['subUnitId'],'range':_0x44c450[_0x25d6ff(0x3c6)]}),_0x267c58=new _0x2371ae[(_0x25d6ff(0x3e4))](_0x3b03ce,void 0x0,_0x2668dd),_0x200a36=_0x267c58[_0x25d6ff(0x43f)](),_0x2e6e7c=_0x267c58['toJSON'](),_0x33a2f5=_0x3b03ce[_0x25d6ff(0x26d)]();_0x3a8b77[_0x25d6ff(0x483)]={'view':_0x200a36,'fieldsConfig':_0x2e6e7c,'collectionConfig':_0x33a2f5,'isEmpty':_0x267c58[_0x25d6ff(0x431)]()};}break;case _0x4e0d4[_0x25d6ff(0x355)]:{const _0x229448=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x492)];if(!_0x229448)return;const {fieldId:_0x36f46b,area:_0x3d045a,index:_0x3a1f26}=_0x229448,_0x1d40f6=this[_0x25d6ff(0x34a)]['getPivotTableConfig'](_0xc4847a,_0x360474,_0x9f42be);if(!_0x1d40f6)return;const _0x28dde8=this[_0x25d6ff(0x34a)]['getPivotTableInstance'](_0x9f42be);if(!_0x28dde8)return;_0x28dde8[_0x25d6ff(0x2eb)]();const {area:_0x39a664,index:_0x46505d}=_0x28dde8[_0x25d6ff(0x39e)](_0x36f46b);if(_0x28dde8[_0x25d6ff(0x2b0)](_0x36f46b,_0x3d045a,_0x3a1f26),_0x3d045a===_0x2371ae[_0x25d6ff(0x348)]['Value']&&_0x28dde8[_0x25d6ff(0x212)](_0x36f46b)[_0x25d6ff(0x2ee)]()===void 0x0){const _0xcf8c8f=_0x28dde8[_0x25d6ff(0x212)](_0x36f46b);if(_0xcf8c8f&&_0xcf8c8f[_0x25d6ff(0x2ee)]()===void 0x0){const _0xcd5fc=_0x28dde8[_0x25d6ff(0x308)](_0x36f46b);if(_0xcd5fc){const _0x3e4040=_0xcd5fc==null?void 0x0:_0xcd5fc[_0x25d6ff(0x2a6)]();_0x28dde8[_0x25d6ff(0x329)](_0x36f46b,_0x3e4040===_0x2371ae[_0x25d6ff(0x3eb)][_0x25d6ff(0x386)]?_0x2371ae[_0x25d6ff(0x24d)][_0x25d6ff(0x3d4)]:_0x2371ae[_0x25d6ff(0x24d)][_0x25d6ff(0x3bd)]);}}}const _0x2ed546=_0x28dde8['getValuePosition'](),_0x164eb8=_0x28dde8[_0x25d6ff(0x40b)](),_0x1311a0=_0x28dde8[_0x25d6ff(0x434)](_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x4e3)])>0x1;if(_0x1311a0&&_0x39a664===_0x3d045a&&(_0x3d045a===_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x427)]&&_0x2ed546===_0x2371ae[_0x25d6ff(0x410)][_0x25d6ff(0x427)]||_0x3d045a===_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x2d9)]&&_0x2ed546===_0x2371ae['PivotTableValuePositionEnum'][_0x25d6ff(0x2d9)])){let _0x258037=_0x164eb8;_0x46505d<=_0x164eb8&&_0x258037--,_0x3a1f26<=_0x164eb8&&_0x258037++,_0x28dde8[_0x25d6ff(0x419)](_0x2ed546,_0x258037);}else _0x1311a0&&(_0x39a664===_0x2371ae['PivotTableFiledAreaEnum']['Row']&&_0x2ed546===_0x2371ae[_0x25d6ff(0x410)][_0x25d6ff(0x427)]||_0x39a664===_0x2371ae['PivotTableFiledAreaEnum'][_0x25d6ff(0x2d9)]&&_0x2ed546===_0x2371ae[_0x25d6ff(0x410)][_0x25d6ff(0x2d9)])&&_0x164eb8>=_0x46505d&&_0x28dde8[_0x25d6ff(0x419)](_0x2ed546,_0x164eb8-0x1),_0x1311a0&&(_0x3d045a===_0x2371ae[_0x25d6ff(0x348)]['Row']&&_0x2ed546===_0x2371ae['PivotTableValuePositionEnum'][_0x25d6ff(0x427)]||_0x3d045a===_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x2d9)]&&_0x2ed546===_0x2371ae['PivotTableValuePositionEnum'][_0x25d6ff(0x2d9)])&&_0x164eb8>=_0x3a1f26&&_0x28dde8[_0x25d6ff(0x419)](_0x2ed546,_0x164eb8+0x1);const _0x3ce615=_0x28dde8[_0x25d6ff(0x43f)](),_0x5a6920=_0x28dde8['isEmpty'](),_0x393304=_0x28dde8[_0x25d6ff(0x229)]();_0x3a8b77['movePivotField']={'view':_0x3ce615[_0x25d6ff(0x26d)](),'changesets':_0x393304,'isEmpty':_0x5a6920,'pivotTableConfig':_0x1d40f6};}break;case _0x4e0d4['RemovePivotField']:{const _0x3a9212=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x286)];if(!_0x3a9212)return;const _0x1dde8d=_0x3a9212[_0x25d6ff(0x3f9)],_0x4bbb13=this[_0x25d6ff(0x34a)]['getPivotTableConfig'](_0xc4847a,_0x360474,_0x9f42be);if(!_0x4bbb13)return!0x1;const _0x3f8111=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be);if(!_0x3f8111)return!0x1;_0x3f8111['startCollectChangeset']();for(const _0x562aaa of _0x1dde8d){const {area:_0x4abdfd}=_0x3f8111[_0x25d6ff(0x39e)](_0x562aaa);_0x4abdfd===_0x2371ae['PivotTableFiledAreaEnum'][_0x25d6ff(0x4e3)]&&_0x3f8111[_0x25d6ff(0x2fa)](_0x562aaa),(_0x4abdfd===_0x2371ae[_0x25d6ff(0x348)]['Row']||_0x4abdfd===_0x2371ae['PivotTableFiledAreaEnum'][_0x25d6ff(0x2d9)])&&_0x3f8111['removeValueFilterInfo'](_0x562aaa),_0x3f8111[_0x25d6ff(0x45c)](_0x562aaa);}const _0xf8bf9f=_0x3f8111['isEmpty'](),_0xce24f8=_0x3f8111['query']()['toJSON'](),_0x5647e7=_0x3f8111[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x286)]={'changesets':_0x5647e7,'pivotTableConfig':_0x4bbb13,'isEmpty':_0xf8bf9f,'view':_0xce24f8};}break;case _0x4e0d4[_0x25d6ff(0x2ca)]:{const _0x2c82ca=_0x34a50e[_0x25d6ff(0x4f3)]['setPivotFilter'];if(!_0x2c82ca)return;const {tableFieldId:_0x58b9ff,items:_0x335121,isAll:_0x2217b6}=_0x2c82ca,_0x57a44c=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x9f42be),_0x5ac078=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x57a44c||!_0x5ac078)return;_0x57a44c['startCollectChangeset'](),_0x57a44c[_0x25d6ff(0x4e8)](_0x58b9ff,{'type':_0x2371ae['PivotFilterTypeEnum'][_0x25d6ff(0x33b)],'list':_0x335121,'isAll':_0x2217b6});const _0x60fc4=_0x57a44c['isEmpty'](),_0x12ad65=_0x57a44c[_0x25d6ff(0x43f)]()[_0x25d6ff(0x26d)](),_0x54ff14=_0x57a44c[_0x25d6ff(0x229)]();_0x3a8b77['setPivotFilter']={'view':_0x12ad65,'changesets':_0x54ff14,'isEmpty':_0x60fc4,'pivotTableConfig':_0x5ac078};}break;case _0x4e0d4[_0x25d6ff(0x3b4)]:{const _0x25f1e6=_0x34a50e['params'][_0x25d6ff(0x3f1)];if(!_0x25f1e6)return;const {tableFieldId:_0x4d629f,filterInfo:_0x3f5dd5}=_0x25f1e6,_0x5600b4=this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x42a)](_0x9f42be),_0x2e8fac=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x5600b4||!_0x2e8fac)return;_0x5600b4[_0x25d6ff(0x2eb)](),_0x5600b4['setValueFilterInfo'](_0x4d629f,_0x3f5dd5);const _0x1c4bda=_0x5600b4[_0x25d6ff(0x431)](),_0x37606f=_0x5600b4[_0x25d6ff(0x43f)]()['toJSON'](),_0x2fccb1=_0x5600b4[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x3f1)]={'view':_0x37606f,'changesets':_0x2fccb1,'isEmpty':_0x1c4bda,'pivotTableConfig':_0x2e8fac};}break;case _0x4e0d4[_0x25d6ff(0x49f)]:{const _0x40707e=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x2bd)];if(!_0x40707e)return;const {tableFieldId:_0x27ffc3,info:_0x1f5c1b}=_0x40707e,_0x91e297=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be),_0x3f6648=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x91e297||!_0x3f6648)return;_0x91e297[_0x25d6ff(0x2eb)](),_0x91e297[_0x25d6ff(0x2c3)](_0x27ffc3,_0x1f5c1b);const _0x414dd2=_0x91e297[_0x25d6ff(0x431)](),_0x6cbc6a=_0x91e297[_0x25d6ff(0x43f)]()['toJSON'](),_0x241a74=_0x91e297['endCollectChangeset']();_0x3a8b77[_0x25d6ff(0x2bd)]={'view':_0x6cbc6a,'changesets':_0x241a74,'isEmpty':_0x414dd2,'pivotTableConfig':_0x3f6648};}break;case _0x4e0d4[_0x25d6ff(0x4d0)]:{const _0x158f66=_0x34a50e['params'][_0x25d6ff(0x499)];if(!_0x158f66)return;const {tableFieldId:_0x551757,displayName:_0x26cd85,subtotalType:_0x3caba4,format:_0x4b771d}=_0x158f66,_0x444ce1=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be),_0x320029=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x444ce1||!_0x320029)return;_0x444ce1[_0x25d6ff(0x2eb)](),_0x26cd85!==void 0x0&&_0x444ce1['renameField'](_0x551757,_0x26cd85),_0x3caba4!==void 0x0&&_0x444ce1[_0x25d6ff(0x329)](_0x551757,_0x3caba4),_0x4b771d!==void 0x0&&_0x444ce1[_0x25d6ff(0x216)](_0x551757,_0x4b771d);const _0x5c2ab9=_0x444ce1[_0x25d6ff(0x431)](),_0x5c5ff9=_0x444ce1[_0x25d6ff(0x43f)]()[_0x25d6ff(0x26d)](),_0x2c3d6e=_0x444ce1[_0x25d6ff(0x229)]();_0x3a8b77['setPivotSetting']={'changesets':_0x2c3d6e,'pivotTableConfig':_0x320029,'isEmpty':_0x5c2ab9,'view':_0x5c5ff9};}break;case _0x4e0d4[_0x25d6ff(0x27a)]:{const _0x3bca1f=_0x34a50e[_0x25d6ff(0x4f3)]['updatePivotSource'];if(!_0x3bca1f)return;const {dataRangeInfo:_0x55e23b,unitId:_0x3d8e98,subUnitId:_0x2b332b}=_0x3bca1f,_0x3123bf=this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x20c)](_0x3d8e98,_0x2b332b,_0x9f42be),_0x58a575=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be);if(!this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x46b)](_0x3d8e98,_0x9f42be)||!_0x58a575||!_0x3123bf)return;const _0x15d6e3=this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x3fd)](_0x3d8e98,_0x9f42be,_0x55e23b),_0x75e32a=this[_0x25d6ff(0x34a)][_0x25d6ff(0x46b)](_0x3d8e98,_0x9f42be)['toJSON'](),{collection:_0x1c986a}=this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x274)]({'unitId':_0x55e23b['unitId'],'sheetName':_0x55e23b[_0x25d6ff(0x37b)],'subUnitId':_0x55e23b[_0x25d6ff(0x389)],'range':_0x55e23b[_0x25d6ff(0x3c6)]}),_0x2badcf=_0x1c986a[_0x25d6ff(0x26d)]();_0x58a575[_0x25d6ff(0x2eb)]();const _0x1bfff7=this[_0x25d6ff(0x34a)][_0x25d6ff(0x330)](_0x3d8e98)[_0x25d6ff(0x2e3)]()||_0x2371ae['getAutoDisplayName'];_0x58a575[_0x25d6ff(0x362)](_0x2b78e9=>{const _0x5ded99=_0x25d6ff,_0x10a220=_0x2b78e9['getDataFieldId']();if(!_0x1c986a[_0x5ded99(0x3a2)](_0x10a220)){const _0x157bf9=_0x1c986a[_0x5ded99(0x312)](_0x2b78e9[_0x5ded99(0x482)]());if(_0x157bf9){_0x58a575[_0x5ded99(0x20b)](_0x2b78e9[_0x5ded99(0x260)](),_0x157bf9[_0x5ded99(0x4ba)](),_0x157bf9[_0x5ded99(0x260)]());const {area:_0x2ad139}=_0x58a575[_0x5ded99(0x39e)](_0x2b78e9[_0x5ded99(0x260)]());let _0x193329=_0x2b78e9[_0x5ded99(0x482)]();const _0x54dce2=_0x2b78e9[_0x5ded99(0x24c)]();if(_0x2ad139===_0x2371ae['PivotTableFiledAreaEnum']['Value']){const _0x43f72c=_0x2b78e9[_0x5ded99(0x2ee)]();_0x193329=_0x1bfff7(_0x157bf9[_0x5ded99(0x4ba)](),_0x43f72c);}_0x54dce2!==_0x193329&&_0x58a575[_0x5ded99(0x321)](_0x2b78e9[_0x5ded99(0x260)](),_0x193329);}else _0x58a575['removeField'](_0x2b78e9[_0x5ded99(0x260)]());}});const _0x23ae93=_0x58a575[_0x25d6ff(0x431)](),_0x8241ea=_0x58a575[_0x25d6ff(0x43f)]()[_0x25d6ff(0x26d)](),_0x2e6cf5=_0x58a575[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x342)]={'view':_0x8241ea,'changesets':_0x2e6cf5,'isEmpty':_0x23ae93,'pivotTableConfig':_0x3123bf,'collectionConfig':_0x2badcf,'oldCollectionConfig':_0x75e32a,'deleteIds':_0x15d6e3};}break;case _0x4e0d4[_0x25d6ff(0x371)]:{const _0x19521c=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x419)];if(!_0x19521c)return;const {position:_0x4f0c6c,index:_0x1fbbd6}=_0x19521c,_0x221805=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x221805)return!0x1;const _0x54c3f6=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be);if(!_0x54c3f6)return!0x1;_0x54c3f6['startCollectChangeset'](),_0x54c3f6[_0x25d6ff(0x419)](_0x4f0c6c,_0x1fbbd6);const _0x5ee8e9=_0x54c3f6[_0x25d6ff(0x431)](),_0x23bcbf=_0x54c3f6[_0x25d6ff(0x43f)]()[_0x25d6ff(0x26d)](),_0x5e7376=_0x54c3f6[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x419)]={'changesets':_0x5e7376,'pivotTableConfig':_0x221805,'isEmpty':_0x5ee8e9,'view':_0x23bcbf};}break;case _0x4e0d4['SetPivotCollapse']:{const _0x4c269c=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x34f)];if(!_0x4c269c)return;const {tableFieldId:_0x36bab3,collapse:_0x221834,item:_0x586f35}=_0x4c269c,_0x5ea6b6=this[_0x25d6ff(0x34a)]['getPivotTableInstance'](_0x9f42be),_0x51490a=this[_0x25d6ff(0x34a)][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x5ea6b6||!_0x51490a)return;_0x5ea6b6['startCollectChangeset'](),_0x5ea6b6[_0x25d6ff(0x406)](_0x36bab3,_0x221834,_0x586f35);const _0x346579=_0x5ea6b6[_0x25d6ff(0x431)](),_0x2402c6=_0x5ea6b6[_0x25d6ff(0x43f)]()['toJSON'](),_0x25fd9d=_0x5ea6b6[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x34f)]={'view':_0x2402c6,'isEmpty':_0x346579,'pivotTableConfig':_0x51490a,'changesets':_0x25fd9d};}break;case _0x4e0d4[_0x25d6ff(0x23f)]:{const _0x1aab9f=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x401)];if(!_0x1aab9f)return;const {pivotTableConfig:_0x3e2125}=_0x1aab9f,_0x548f9d=this[_0x25d6ff(0x34a)][_0x25d6ff(0x42a)](_0x9f42be),_0x5670d1=this[_0x25d6ff(0x34a)]['getPivotTableConfig'](_0xc4847a,_0x360474,_0x9f42be);if(!_0x548f9d||!_0x5670d1)return;_0x548f9d[_0x25d6ff(0x2eb)](),_0x41b734(_0x548f9d,_0x3e2125);const _0x1ffc4e=_0x548f9d[_0x25d6ff(0x431)](),_0x48ba43=_0x548f9d[_0x25d6ff(0x43f)]()['toJSON'](),_0x15932f=_0x548f9d[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x401)]={'view':_0x48ba43,'isEmpty':_0x1ffc4e,'pivotTableConfig':{..._0x5670d1,'fieldsConfig':_0x548f9d[_0x25d6ff(0x26d)]()},'changesets':_0x15932f};}break;case _0x4e0d4[_0x25d6ff(0x36c)]:{const _0x11eec5=_0x34a50e['params'][_0x25d6ff(0x3ec)];if(!_0x11eec5)return;const _0x5dbe1a=this[_0x25d6ff(0x34a)]['getPivotTableInstance'](_0x9f42be),_0x3c3c59=this['_sheetsPivotDataSourceModel'][_0x25d6ff(0x20c)](_0xc4847a,_0x360474,_0x9f42be);if(!_0x5dbe1a||!_0x3c3c59)return;_0x5dbe1a[_0x25d6ff(0x2eb)](),_0x1b7d0d(_0x5dbe1a,_0x11eec5[_0x25d6ff(0x31c)]);const _0x40cbf7=_0x5dbe1a[_0x25d6ff(0x43f)]()['toJSON'](),_0x131dfc=_0x5dbe1a[_0x25d6ff(0x229)]();_0x3a8b77[_0x25d6ff(0x3ec)]={'view':_0x40cbf7,'isEmpty':!0x0,'pivotTableConfig':{..._0x3c3c59,'fieldsConfig':_0x5dbe1a[_0x25d6ff(0x26d)]()},'changesets':_0x131dfc};}break;case _0x4e0d4[_0x25d6ff(0x22c)]:{const _0x374549=_0x34a50e[_0x25d6ff(0x4f3)][_0x25d6ff(0x432)];if(!_0x374549)return;const _0x1d299d=_0x374549[_0x25d6ff(0x3bf)],_0x1d3f93=_0x374549[_0x25d6ff(0x22f)],{collection:_0x3a06e2}=this[_0x25d6ff(0x34a)][_0x25d6ff(0x274)]({'unitId':_0x1d299d[_0x25d6ff(0x43e)],'sheetName':_0x1d299d[_0x25d6ff(0x37b)],'subUnitId':_0x1d299d['subUnitId'],'range':_0x1d299d[_0x25d6ff(0x3c6)]}),_0x1d3dc3=new _0x2371ae[(_0x25d6ff(0x3e4))](_0x3a06e2,void 0x0,_0x1d3f93),_0x14f97b=_0x3a06e2[_0x25d6ff(0x250)](),{rows:_0x2b4d19,columns:_0xeff186,filters:_0x580d28,values:_0x447249}=_0x374549[_0x25d6ff(0x280)];_0x1d3dc3[_0x25d6ff(0x2eb)]();for(const {field:_0x29da4b,selectedItems:_0x1c6083}of _0x2b4d19||[]){const _0x54a1e0=_0x14f97b[_0x29da4b];if(_0x54a1e0){const _0x1b7a85=_0x1d3dc3[_0x25d6ff(0x2b5)](_0x54a1e0,_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x427)]);_0x1c6083&&_0x1b7a85&&_0x1d3dc3[_0x25d6ff(0x4e8)](_0x1b7a85['getId'](),{'type':_0x2371ae['PivotFilterTypeEnum'][_0x25d6ff(0x33b)],'list':_0x1c6083,'isAll':!0x1});}}for(const {field:_0x4dc147,selectedItems:_0x5c682b}of _0xeff186||[]){const _0x21bd27=_0x14f97b[_0x4dc147];if(_0x21bd27){const _0x114cac=_0x1d3dc3[_0x25d6ff(0x2b5)](_0x21bd27,_0x2371ae[_0x25d6ff(0x348)]['Column']);_0x5c682b&&_0x114cac&&_0x1d3dc3['setLabelFilterInfo'](_0x114cac[_0x25d6ff(0x260)](),{'type':_0x2371ae['PivotFilterTypeEnum'][_0x25d6ff(0x33b)],'list':_0x5c682b,'isAll':!0x1});}}for(const {field:_0x503176,selectedItems:_0x30ba6d}of _0x580d28||[]){const _0x2a9ac7=_0x14f97b[_0x503176];if(_0x2a9ac7){const _0x43c633=_0x1d3dc3[_0x25d6ff(0x2b5)](_0x2a9ac7,_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x44d)]);_0x30ba6d&&_0x43c633&&_0x1d3dc3['setLabelFilterInfo'](_0x43c633[_0x25d6ff(0x260)](),{'type':_0x2371ae['PivotFilterTypeEnum'][_0x25d6ff(0x33b)],'list':_0x30ba6d,'isAll':!0x1});}}for(const {field:_0xde94bb,subTotalType:_0x40f7e5,formatString:_0x57fe07}of _0x447249||[]){const _0x4708b5=_0x3a06e2[_0x25d6ff(0x2b4)](_0x14f97b[_0xde94bb]);if(!_0x4708b5)continue;const _0x5665e6=_0x14f97b[_0xde94bb];if(_0x5665e6){const _0x2e3079=_0x1d3dc3[_0x25d6ff(0x2b5)](_0x5665e6,_0x2371ae[_0x25d6ff(0x348)][_0x25d6ff(0x4e3)]);if(_0x2e3079){if(_0x40f7e5!==void 0x0){_0x1d3dc3['setSubtotalType'](_0x2e3079['getId'](),_0x40f7e5);const _0x22b067=this[_0x25d6ff(0x34a)]['getDataFieldManager'](_0x1d299d[_0x25d6ff(0x43e)])['getAutoDisplayNameFunction']()||_0x2371ae['getAutoDisplayName'],_0x5411f1=_0x3a06e2[_0x25d6ff(0x24c)](_0x5665e6),_0x263321=_0x22b067(_0x5411f1,_0x40f7e5);_0x1d3dc3['renameField'](_0x2e3079['getId'](),_0x263321);}else{if(_0x4708b5){const _0x54dcb1=_0x4708b5==null?void 0x0:_0x4708b5[_0x25d6ff(0x2a6)]();_0x1d3dc3['setSubtotalType'](_0x2e3079[_0x25d6ff(0x260)](),_0x54dcb1===_0x2371ae[_0x25d6ff(0x3eb)][_0x25d6ff(0x386)]?_0x2371ae['PivotSubtotalTypeEnum']['sum']:_0x2371ae['PivotSubtotalTypeEnum']['count']);}}_0x57fe07&&_0x1d3dc3[_0x25d6ff(0x216)](_0x2e3079['getId'](),_0x57fe07);}}}const _0x28d36a=_0x1d3dc3[_0x25d6ff(0x43f)](),_0x206580=_0x1d3dc3[_0x25d6ff(0x26d)](),_0x3ef52a=_0x1d3dc3['isEmpty'](),_0xb64574=_0x1d3dc3[_0x25d6ff(0x229)](),_0x329335=_0x3a06e2['toJSON']();_0x3a8b77[_0x25d6ff(0x432)]={'view':_0x28d36a,'fieldsConfig':_0x206580,'collectionConfig':_0x329335,'isEmpty':_0x3ef52a,'changesets':_0xb64574};}break;case _0x4e0d4[_0x25d6ff(0x378)]:{const _0x11536e=_0x123669(this[_0x25d6ff(0x360)],_0x34a50e);if(!_0x11536e)return;const {range:_0x1f52a6,sourceSubUnitId:_0x1ebbd1,sourceUnitId:_0x47c2f3,formatMap:_0xb0e5e4,indexes:_0x167822}=_0x11536e;_0x3a8b77['drillDown']={'range':_0x1f52a6,'sourceSubUnitId':_0x1ebbd1,'sourceUnitId':_0x47c2f3,'formatMap':_0xb0e5e4,'indexes':_0x167822};}break;}this[_0x25d6ff(0x377)][_0x25d6ff(0x4e2)](_0x59f14a['id'],{'version':_0x34a50e[_0x25d6ff(0x4bd)],'result':_0x3a8b77},{'onlyLocal':!0x0});}));}[_0x168ac6(0x394)](){const _0x38274c=_0x168ac6;this[_0x38274c(0x218)](this[_0x38274c(0x377)][_0x38274c(0x28e)](_0x3869d7=>{const _0x440cf8=_0x38274c;if(_0x3869d7['id']!==_0x518f79['id'])return;const _0x49686a=_0x3869d7[_0x440cf8(0x4f3)];return this['_sheetsPivotDataSourceModel'][_0x440cf8(0x438)](_0x49686a[_0x440cf8(0x357)]),!0x0;}));}['_subjectCollectionChange'](){const _0x3db553=_0x168ac6;this[_0x3db553(0x34a)][_0x3db553(0x35c)][_0x3db553(0x4ef)](_0x2a4387=>{const _0x8d5610=_0x3db553;switch(_0x2a4387[_0x8d5610(0x376)]){case _0x457c5a['add']:_0x2a4387['dataRangeInfo']&&_0x2a4387[_0x8d5610(0x38e)]&&this[_0x8d5610(0x40e)](_0x2a4387[_0x8d5610(0x420)],_0x2a4387[_0x8d5610(0x233)],_0x2a4387[_0x8d5610(0x38e)]);break;case _0x457c5a['delete']:{const {unitId:_0x557100,subUnitId:_0x5f2480,token:_0x35409c}=_0x2a4387;_0x557100&&_0x5f2480&&_0x35409c&&this[_0x8d5610(0x32f)](_0x557100,_0x5f2480,_0x35409c);}break;case _0x457c5a[_0x8d5610(0x3e1)]:{const {token:_0xe4b9c5,oldSourceRangeInfo:_0x424130,dataRangeInfo:_0x3e1a4f,targetCellInfo:_0x4c1e59}=_0x2a4387,{unitId:_0x11cc36,subUnitId:_0x5536e8}=_0x424130||{};_0x11cc36&&_0x5536e8&&_0xe4b9c5&&this[_0x8d5610(0x32f)](_0x11cc36,_0x5536e8,_0xe4b9c5),_0x3e1a4f&&_0x4c1e59&&this[_0x8d5610(0x40e)](_0xe4b9c5,_0x3e1a4f,_0x4c1e59);}break;}});}['_subjectFieldsCollectionChange'](){const _0x4ef61a=_0x168ac6;this[_0x4ef61a(0x34a)][_0x4ef61a(0x344)][_0x4ef61a(0x4ef)](_0x218e96=>{const _0x235e91=_0x4ef61a;Object['keys'](_0x218e96)[_0x235e91(0x314)](_0x537c23=>{const _0x5786b5=_0x235e91,_0x4d87e7=this['_sheetsPivotDataSourceModel']['getTargetByPivotId'](_0x537c23);if(_0x4d87e7){const _0x5efedd=this[_0x5786b5(0x34a)][_0x5786b5(0x20c)](_0x4d87e7==null?void 0x0:_0x4d87e7[_0x5786b5(0x43e)],_0x4d87e7==null?void 0x0:_0x4d87e7[_0x5786b5(0x389)],_0x537c23);_0x5efedd&&(this[_0x5786b5(0x40e)](_0x537c23,_0x5efedd[_0x5786b5(0x3bf)],_0x5efedd[_0x5786b5(0x38e)]),this[_0x5786b5(0x433)]([{'unitId':_0x4d87e7['unitId'],'subUnitId':_0x4d87e7['subUnitId'],'token':_0x537c23}]));}});});}['_subjectViewChange'](){const _0x6edd95=_0x168ac6;this[_0x6edd95(0x34a)][_0x6edd95(0x3cd)][_0x6edd95(0x4ef)](_0x4b60cf=>{const _0x300a81=_0x6edd95,{unitId:_0x3244b5,subUnitId:_0x2f6428,pivotTableId:_0x4c41ee}=_0x4b60cf;_0x3244b5&&_0x2f6428&&_0x4c41ee&&this[_0x300a81(0x433)]([{'unitId':_0x3244b5,'subUnitId':_0x2f6428,'token':_0x4c41ee}]);});}['triggerDirtyFeature'](_0x17cf25){const _0x3cf62f=_0x168ac6,_0x1a87bb={};_0x17cf25[_0x3cf62f(0x314)](_0x248a41=>{var _0x2c6118,_0x37e219;const {unitId:_0x58382d,subUnitId:_0x11722a,token:_0xb83511}=_0x248a41;_0x1a87bb[_0x58382d]=(_0x2c6118=_0x1a87bb[_0x58382d])!=null?_0x2c6118:{},_0x1a87bb[_0x58382d][_0x11722a]=(_0x37e219=_0x1a87bb[_0x58382d][_0x11722a])!=null?_0x37e219:{},_0x1a87bb[_0x58382d][_0x11722a][_0xb83511]=!0x0;}),this['_commandService'][_0x3cf62f(0x4e2)](_0x9fb76a['id'],_0x1a87bb);}[_0x168ac6(0x32f)](_0x22d932,_0x5d7042,_0x3bd5c2){const _0x31114b=_0x168ac6;this[_0x31114b(0x232)]['remove'](_0x22d932,_0x5d7042,[_0x3bd5c2]);}['handleSourceRangeChange'](_0x5133d9,_0x16dc75,_0x360de7){const _0x2f8d84=_0x168ac6,{unitId:_0x804757,subUnitId:_0x57a3bc}=_0x16dc75;this[_0x2f8d84(0x232)][_0x2f8d84(0x23a)](_0x360de7[_0x2f8d84(0x43e)],_0x360de7[_0x2f8d84(0x389)],_0x5133d9)&&this[_0x2f8d84(0x32f)](_0x804757,_0x57a3bc,_0x5133d9);const _0x52a3a4={'sheetId':_0x57a3bc,..._0x16dc75};this[_0x2f8d84(0x232)]['register'](_0x360de7[_0x2f8d84(0x43e)],_0x360de7['subUnitId'],_0x5133d9,{'unitId':_0x360de7[_0x2f8d84(0x43e)],'subUnitId':_0x360de7[_0x2f8d84(0x389)],'dependencyRanges':[_0x52a3a4],'getDirtyData':(_0x34f8ea,_0x3ee159)=>{const _0x280e00=_0x2f8d84,_0x5219d3=this[_0x280e00(0x34a)],_0x7ea8bc=_0x5219d3['getTargetByPivotId'](_0x5133d9);if(!_0x7ea8bc)return _0x139533();const {unitId:_0x5e5313,subUnitId:_0x3ceb58}=_0x7ea8bc,_0x879154=_0x43b63c(_0x34f8ea,_0x3ee159,_0x16dc75);if(_0x879154[_0x280e00(0x4d2)]>0x0){const _0x3644b5=_0x5219d3[_0x280e00(0x46b)](_0x804757,_0x5133d9),_0x4eda11=_0x3644b5['getFieldIds'](),_0x12ad2d=this[_0x280e00(0x2b8)](_0x16dc75[_0x280e00(0x43e)],_0x16dc75[_0x280e00(0x389)],_0x3ee159),_0x27290c={},_0x730751=this[_0x280e00(0x34a)][_0x280e00(0x330)](_0x5e5313)['getAutoDisplayNameFunction']()||_0x2371ae[_0x280e00(0x25e)],_0x57eb2c=[];for(const _0x2e27cc of _0x879154){const _0xe30bb7=_0x2e27cc-(_0x16dc75[_0x280e00(0x3c6)][_0x280e00(0x291)]||0x0),_0x1f6cc0=_0x4eda11[_0xe30bb7];_0x57eb2c['push'](_0x1f6cc0),_0x27290c[_0x1f6cc0]=_0x3644b5[_0x280e00(0x2b4)](_0x1f6cc0)['getName'](),_0x5219d3[_0x280e00(0x330)](_0x804757)[_0x280e00(0x387)](_0x1f6cc0,_0x16dc75,_0xe30bb7,_0x12ad2d);}_0x3644b5[_0x280e00(0x3d2)](_0x57eb2c)['forEach'](_0x9cf532=>{const _0x63605b=_0x280e00,[_0x52fb9d,_0x33b7a5]=_0x9cf532,_0xe9862e=_0x3644b5[_0x63605b(0x2b4)](_0x52fb9d),_0x3489e2=_0x3644b5['getFieldById'](_0x33b7a5);_0xe9862e&&_0x3489e2&&_0xe9862e['refreshGroupField'](_0x3489e2);}),_0x3644b5[_0x280e00(0x275)]();const _0x448e6f=_0x5219d3[_0x280e00(0x42a)](_0x5133d9);if(_0x448e6f){_0x273428(_0x448e6f,_0x27290c,_0x730751),_0x448e6f[_0x280e00(0x2a1)](!0x0);const _0x6c2baf=_0x448e6f[_0x280e00(0x43f)](),_0xbea0aa=_0x5219d3[_0x280e00(0x20c)](_0x5e5313,_0x3ceb58,_0x5133d9),_0x99635e=_0x5219d3['getDataFieldManager'](_0x804757)[_0x280e00(0x26d)]();_0x5219d3[_0x280e00(0x428)](_0x5e5313,_0x3ceb58,_0x44d5f2[_0x280e00(0x399)],_0x5133d9,_0x6c2baf,_0xbea0aa,_0x99635e,!0x0);}}return this['getDirtyInfo'](_0x5e5313,_0x3ceb58,_0x5133d9);}});}[_0x168ac6(0x2b8)](_0x70de06,_0x269369,_0x1598ac){var _0xdeddf1,_0x1a16cc;const {arrayFormulaCellData:_0x2fc3b1,unitData:_0x19eff9}=_0x1598ac,_0x4eea65=(_0xdeddf1=_0x2fc3b1==null?void 0x0:_0x2fc3b1[_0x70de06])==null?void 0x0:_0xdeddf1[_0x269369],_0x38b7a8=(_0x1a16cc=_0x19eff9==null?void 0x0:_0x19eff9[_0x70de06])==null?void 0x0:_0x1a16cc[_0x269369];return{'arrayFormulaCellDataMatrix':_0x4eea65,'unitDataMatrix':_0x38b7a8};}[_0x168ac6(0x29b)](_0x4c0318,_0x3fb963,_0x1d8c07){const _0x1105bf=_0x168ac6,_0x4f1570=this['_sheetsPivotDataSourceModel'][_0x1105bf(0x30c)](_0x4c0318,_0x3fb963,_0x1d8c07),_0x2dcc2b=[],_0x2b0b00=new _0x502ce1[(_0x1105bf(0x36d))]();if(_0x4f1570){const {rangeCache:_0x577926,matrix:_0x5251c0,oldRangeCache:_0x3530ce,oldMatrix:_0x6848c8}=_0x4f1570,_0x3fd992=_0x1dbac6(_0x3530ce),_0x40109c=_0x1dbac6(_0x577926);_0x2dcc2b[_0x1105bf(0x412)](..._0x40109c,..._0x3fd992),_0x6848c8&&_0x3530ce&&_0x3fd992[_0x1105bf(0x314)](_0x47d209=>{const _0x45630d=_0x1105bf;for(let _0x22fef3=_0x47d209[_0x45630d(0x41f)];_0x22fef3<=_0x47d209[_0x45630d(0x4cd)];_0x22fef3++)for(let _0x35f86b=_0x47d209[_0x45630d(0x291)];_0x35f86b<=_0x47d209[_0x45630d(0x42b)];_0x35f86b++)_0x2b0b00['realDeleteValue'](_0x22fef3,_0x35f86b);}),_0x5251c0&&_0x40109c&&_0x40109c[_0x1105bf(0x314)](_0x43419d=>{const _0xa1e6ba=_0x1105bf;for(let _0x51aea3=_0x43419d[_0xa1e6ba(0x41f)];_0x51aea3<=_0x43419d['endRow'];_0x51aea3++)for(let _0xc87c00=_0x43419d[_0xa1e6ba(0x291)];_0xc87c00<=_0x43419d[_0xa1e6ba(0x42b)];_0xc87c00++)_0x2b0b00[_0xa1e6ba(0x206)](_0x51aea3,_0xc87c00,_0x5251c0['getValue'](_0x51aea3,_0xc87c00));});}const _0x2ad9af={};return _0x2ad9af[_0x4c0318]={[_0x3fb963]:_0x10f61d(_0x2dcc2b)},{'runtimeCellData':{[_0x4c0318]:{[_0x3fb963]:_0x2b0b00}},'dirtyRanges':_0x2ad9af};}[_0x168ac6(0x4c7)](){}};_0x2bb2b4=_0x113412([_0x140b61(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x31f)])),_0x140b61(0x1,_0x502ce1['IConfigService']),_0x140b61(0x2,_0x502ce1[_0x168ac6(0x27e)](_0x514a71['IFeatureCalculationManagerService'])),_0x140b61(0x3,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x48c)])),_0x140b61(0x4,_0x502ce1[_0x168ac6(0x27e)](_0x514a71[_0x168ac6(0x303)])),_0x140b61(0x5,_0x502ce1['Inject'](_0x502ce1['Injector']))],_0x2bb2b4);var _0xecea01=Object['getOwnPropertyDescriptor'],_0x35de32=(_0x45bbb0,_0x3a4af9,_0x348d77,_0x2bf8b4)=>{const _0x4a4bc0=_0x168ac6;for(var _0x2b48ce=_0x2bf8b4>0x1?void 0x0:_0x2bf8b4?_0xecea01(_0x3a4af9,_0x348d77):_0x3a4af9,_0x492abc=_0x45bbb0[_0x4a4bc0(0x4d2)]-0x1,_0x4cb4e9;_0x492abc>=0x0;_0x492abc--)(_0x4cb4e9=_0x45bbb0[_0x492abc])&&(_0x2b48ce=_0x4cb4e9(_0x2b48ce)||_0x2b48ce);return _0x2b48ce;},_0x552fa1=(_0x45b65a,_0x5e6d9d)=>(_0x3290b2,_0x512db4)=>_0x5e6d9d(_0x3290b2,_0x512db4,_0x45b65a);let _0x44d21b=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x432205,_0x44c234,_0xb64be0,_0x2c6fdf){const _0x3ed981=_0x168ac6;super(),_0x2d9017(this,_0x3ed981(0x244),new _0x502ce1[(_0x3ed981(0x3cf))]()),(this['_univerInstanceService']=_0x432205,this[_0x3ed981(0x3dd)]=_0x44c234,this[_0x3ed981(0x4b5)]=_0xb64be0,this[_0x3ed981(0x1f1)]=_0x2c6fdf,this[_0x3ed981(0x4b0)]());}[_0x168ac6(0x4b0)](){const _0x467671=_0x168ac6;this[_0x467671(0x218)](this[_0x467671(0x3dd)][_0x467671(0x44c)]({'getMutations':_0x1bde67=>{const _0x13174b=_0x467671;if(_0x1bde67['id']===_0x2b7376['ClearSelectionContentCommand']['id']||_0x1bde67['id']===_0x2b7376[_0x13174b(0x2de)]['id']){const _0x10d55d=[],_0x224fd1=[],_0x120c32=this[_0x13174b(0x4b5)]['getCurrentSelections']()[_0x13174b(0x32d)](_0x5e0cf5=>_0x5e0cf5[_0x13174b(0x3c6)]),_0x2e5426=_0x2b7376['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x2e5426)return{'redos':[],'undos':[]};const {unitId:_0x5f22dd,subUnitId:_0x2295e9}=_0x2e5426,_0x2ad9a5={},_0x108300=this[_0x13174b(0x1f1)][_0x13174b(0x4f6)](_0x5f22dd,_0x2295e9);if(_0x108300!=null&&_0x108300[_0x13174b(0x381)])for(const [_0x31769a,_0x4c32d7]of _0x108300){const {unitId:_0x38b65b,subUnitId:_0x1bb1d2,row:_0x2ef228,col:_0x1bccd6}=_0x4c32d7[_0x13174b(0x38e)];_0x38b65b===_0x2e5426['unitId']&&_0x1bb1d2===_0x2e5426[_0x13174b(0x389)]&&(_0x2ad9a5[_0x2ef228+'-'+_0x1bccd6]=_0x31769a);}return _0x120c32&&_0x2e5426&&_0x120c32[_0x13174b(0x314)](_0x423bd3=>{const _0x5b6735=_0x13174b;_0x502ce1[_0x5b6735(0x3e3)][_0x5b6735(0x24a)](_0x423bd3,(_0x5bdaa0,_0xe9156b)=>{const _0x5b560c=_0x5b6735,_0x2ab3f7=_0x5bdaa0+'-'+_0xe9156b;if(_0x2ad9a5[_0x2ab3f7]){const _0x2c3eed=_0x2ad9a5[_0x2ab3f7];_0x10d55d[_0x5b560c(0x412)]({'id':_0x372cc7['id'],'params':{'unitId':_0x5f22dd,'subUnitId':_0x2295e9,'pivotTableId':_0x2c3eed}});const _0x348e70=this[_0x5b560c(0x1f1)][_0x5b560c(0x46b)](_0x5f22dd,_0x2c3eed),_0x4ae0b6=this['_sheetsPivotTableConfigModel'][_0x5b560c(0x20c)](_0x5f22dd,_0x2295e9,_0x2c3eed);_0x224fd1[_0x5b560c(0x412)]({'id':_0x108104['id'],'params':{'unitId':_0x5f22dd,'subUnitId':_0x2295e9,'pivotTableId':_0x2c3eed,'pivotTableConfig':_0x4ae0b6,'collectionConfig':_0x348e70}});}});}),{'redos':_0x10d55d,'undos':_0x224fd1};}return{'redos':[],'undos':[]};}}));}};_0x44d21b=_0x35de32([_0x552fa1(0x0,_0x502ce1[_0x168ac6(0x37a)]),_0x552fa1(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376[_0x168ac6(0x1fa)])),_0x552fa1(0x2,_0x502ce1['Inject'](_0x2b7376[_0x168ac6(0x459)])),_0x552fa1(0x3,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x30b)]))],_0x44d21b);var _0x2c7c23=Object['getOwnPropertyDescriptor'],_0x5129cb=(_0x47ea25,_0x3a892c,_0x260361,_0xa4e35a)=>{for(var _0x4d35f6=_0xa4e35a>0x1?void 0x0:_0xa4e35a?_0x2c7c23(_0x3a892c,_0x260361):_0x3a892c,_0x396e8f=_0x47ea25['length']-0x1,_0x4a527e;_0x396e8f>=0x0;_0x396e8f--)(_0x4a527e=_0x47ea25[_0x396e8f])&&(_0x4d35f6=_0x4a527e(_0x4d35f6)||_0x4d35f6);return _0x4d35f6;},_0x4d554c=(_0x3619ec,_0x4f4c73)=>(_0x407e8d,_0x5f0e83)=>_0x4f4c73(_0x407e8d,_0x5f0e83,_0x3619ec);let _0x593845=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x58ad29,_0x5bcb60,_0x18dca0,_0x1ad17f,_0x32a334,_0x104cc3){const _0x49cf30=_0x168ac6;super(),this[_0x49cf30(0x324)]=_0x58ad29,this[_0x49cf30(0x3dd)]=_0x5bcb60,this[_0x49cf30(0x360)]=_0x18dca0,this[_0x49cf30(0x43d)]=_0x1ad17f,this[_0x49cf30(0x1f1)]=_0x32a334,this[_0x49cf30(0x345)]=_0x104cc3,this[_0x49cf30(0x2d4)]();}[_0x168ac6(0x3bc)](_0x1e8cb1,_0x1c627d,_0x3e6cb4){const _0x283e26=_0x168ac6,{pageView:_0x1973a1,cornerView:_0xc108e6,rowView:_0xcc39c6,colView:_0x53e541,dataView:_0x567ee8}=_0x1c627d,_0x4a46e9=_0x1e8cb1;let _0x56c51c;if(_0x3e6cb4)_0x56c51c=[..._0x3a2594(_0x4a46e9)];else{const _0x5ceff5=_0x573266(_0x4a46e9,_0x1973a1,!0x0),_0x780648=_0x1973a1[_0x283e26(0x404)]>=0x0?_0x1973a1[_0x283e26(0x404)]+0x1:0x0,_0x263715=_0xc108e6[_0x283e26(0x32e)],_0x57d30f=_0xc108e6[_0x283e26(0x437)],_0x229ca0=_0x5ceff5[_0x283e26(0x4d2)]>0x0?_0x3b501c:0x0,_0x4babca=_0x573266({'row':_0x4a46e9[_0x283e26(0x2f0)]+_0x780648+_0x229ca0,'col':_0x4a46e9['col']},_0xc108e6,!0x1,!0x1),_0x400ec1=_0x573266({'row':_0x4a46e9[_0x283e26(0x2f0)]+_0x780648+_0x229ca0+_0x263715,'col':_0x4a46e9[_0x283e26(0x40d)]},_0xcc39c6,!0x1,!0x0),_0x45d597=_0x573266({'row':_0x4a46e9['row']+_0x780648+_0x229ca0,'col':_0x4a46e9[_0x283e26(0x40d)]+_0x57d30f},_0x53e541,!0x1,!0x0),_0x1494f3=_0x573266({'row':_0x4a46e9[_0x283e26(0x2f0)]+_0x780648+_0x229ca0+_0x263715,'col':_0x4a46e9['col']+_0x57d30f},_0x567ee8,!0x1,!0x0);_0x56c51c=[..._0x5ceff5,..._0x4babca,..._0x400ec1,..._0x45d597,..._0x1494f3];}return _0x56c51c;}[_0x168ac6(0x2d4)](){const _0x5157f5=_0x168ac6;this[_0x5157f5(0x218)](this[_0x5157f5(0x345)][_0x5157f5(0x36e)][_0x5157f5(0x1f0)](this[_0x5157f5(0x345)]['interceptor'][_0x5157f5(0x46f)]()[_0x5157f5(0x4e5)],{'handler':(_0x4179f3,_0x3a9c0f)=>{const _0x1df78c=_0x5157f5,{cellInfo:_0x18148d,view:_0x4ec939,isEmpty:_0x5c1c80}=_0x3a9c0f,_0x4bfc47=_0x18148d,{unitId:_0xf445bc,subUnitId:_0x4fb90b}=_0x4bfc47,_0x35c0f1=this[_0x1df78c(0x3bc)](_0x18148d,_0x4ec939,_0x5c1c80),_0x1d3653=this['_sheetInterceptorService']['generateMutationsByRanges']({'unitId':_0xf445bc,'subUnitId':_0x4fb90b,'ranges':_0x35c0f1}),_0x4bde10=_0x49f90b(this[_0x1df78c(0x360)],_0xf445bc,_0x4fb90b,_0x35c0f1);_0x4bde10[_0x1df78c(0x450)]&&(_0x1d3653['redos']['push'](_0x4bde10[_0x1df78c(0x38f)]),_0x1d3653[_0x1df78c(0x383)]['push'](_0x4bde10[_0x1df78c(0x3b5)]));const _0x2555c4=this[_0x1df78c(0x285)](_0x4ec939,_0x18148d);return _0x1d3653[_0x1df78c(0x2d6)]['push'](..._0x2555c4[_0x1df78c(0x2d6)]),_0x1d3653['undos'][_0x1df78c(0x412)](..._0x2555c4[_0x1df78c(0x383)]),{'redos':_0x1d3653[_0x1df78c(0x2d6)],'undos':_0x1d3653[_0x1df78c(0x383)]};}}));}[_0x168ac6(0x285)](_0x1d008d,_0x2306c0){const _0x156a4c=_0x168ac6,{col:_0x24df1e,unitId:_0x2986d3,subUnitId:_0x5d2f55}=_0x2306c0,_0x3cc7ab=[],_0x253f18=[],_0x5311e5=_0x2b7376[_0x156a4c(0x3a3)](this[_0x156a4c(0x43d)],{'unitId':_0x2986d3,'subUnitId':_0x5d2f55});if(!_0x2306c0||!_0x1d008d||!_0x5311e5)return{'undos':_0x253f18,'redos':_0x3cc7ab};const _0x8889d5=this['_sheetsPivotTableConfigModel']['getTextInfo'](),{colView:_0x2543d8,dataView:_0x4720cb,cornerView:_0x35787f,rowView:_0x4da304,formatMap:_0x21d880}=_0x1d008d,_0x1137b5=_0x4516e4(_0x2543d8,_0x8889d5,!0x0,_0x21d880),_0x4d6082=_0x4516e4(_0x4da304,_0x8889d5,!0x1,_0x21d880),_0x5c23ce=_0x20fb6f(_0x4720cb),_0x50f0ad=_0x42e2e2(_0x35787f),{worksheet:_0x2ef8d9}=_0x5311e5;if(typeof window<'u'&&window[_0x156a4c(0x491)]){const _0x2f611e=_0x55c08d[_0x156a4c(0x283)]({..._0x505f09[_0x156a4c(0x204)]}),_0x415411=_0x55c08d[_0x156a4c(0x3f4)][_0x156a4c(0x279)](_0x1137b5,_0x2f611e)['width']+0x10,_0x318a60=_0x55c08d[_0x156a4c(0x3f4)][_0x156a4c(0x279)](_0x5c23ce,_0x2f611e)[_0x156a4c(0x2e9)],_0x4865ee=Math[_0x156a4c(0x3c0)](Math['max'](_0x415411,_0x318a60))+0x10,_0x19a294=Math[_0x156a4c(0x3c0)](_0x55c08d['FontCache']['getTextSize'](_0x4d6082,_0x2f611e)[_0x156a4c(0x2e9)]),_0x39e3d8=Math['floor'](_0x55c08d[_0x156a4c(0x3f4)][_0x156a4c(0x279)](_0x50f0ad,_0x2f611e)[_0x156a4c(0x2e9)]),_0x3b4236=Math['max'](_0x19a294,_0x39e3d8,0x28)+0xc,_0x591511=_0x2543d8[_0x156a4c(0x437)]+_0x35787f['colCount'],_0x4cf251={},_0x5386d2={};for(let _0x51f351=_0x24df1e;_0x51f351<_0x24df1e+_0x591511;_0x51f351++){const _0x163d19=_0x2ef8d9[_0x156a4c(0x2d1)](_0x51f351);_0x4cf251[_0x51f351]=_0x163d19,_0x51f351-_0x24df1e<_0x35787f[_0x156a4c(0x437)]?_0x5386d2[_0x51f351-_0x24df1e]=_0x3b4236:_0x5386d2[_0x51f351-_0x24df1e]=_0x4865ee;}_0x3cc7ab[_0x156a4c(0x412)]({'id':_0x2b7376[_0x156a4c(0x209)]['id'],'params':{'subUnitId':_0x5d2f55,'unitId':_0x2986d3,'ranges':[{'startColumn':_0x24df1e,'endColumn':_0x24df1e+_0x591511-0x1,'startRow':0x0,'endRow':_0x2ef8d9[_0x156a4c(0x47d)]()-0x1}],'colWidth':_0x5386d2}}),_0x253f18[_0x156a4c(0x412)]({'id':_0x2b7376[_0x156a4c(0x209)]['id'],'params':{'subUnitId':_0x5d2f55,'unitId':_0x2986d3,'ranges':[{'startColumn':_0x24df1e,'endColumn':_0x24df1e+_0x591511-0x1,'startRow':0x0,'endRow':_0x2ef8d9['getRowCount']()-0x1}],'colWidth':_0x4cf251}});}return{'undos':_0x253f18,'redos':_0x3cc7ab};}};_0x593845=_0x5129cb([_0x4d554c(0x0,_0x502ce1['Inject'](_0x502ce1['LocaleService'])),_0x4d554c(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376[_0x168ac6(0x1fa)])),_0x4d554c(0x2,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x402)])),_0x4d554c(0x3,_0x502ce1['Inject'](_0x502ce1[_0x168ac6(0x37a)])),_0x4d554c(0x4,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x30b)])),_0x4d554c(0x5,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4['SheetsPivotTableService']))],_0x593845);var _0x52093d=Object[_0x168ac6(0x2ec)],_0x846204=(_0x505132,_0x4830b0,_0x15ead0,_0x1dbb16)=>{const _0x59d3d4=_0x168ac6;for(var _0x4f6a34=_0x1dbb16>0x1?void 0x0:_0x1dbb16?_0x52093d(_0x4830b0,_0x15ead0):_0x4830b0,_0x553158=_0x505132[_0x59d3d4(0x4d2)]-0x1,_0x62b073;_0x553158>=0x0;_0x553158--)(_0x62b073=_0x505132[_0x553158])&&(_0x4f6a34=_0x62b073(_0x4f6a34)||_0x4f6a34);return _0x4f6a34;},_0x7fac2e=(_0x247c49,_0x4f19bc)=>(_0x530d93,_0x10ce2d)=>_0x4f19bc(_0x530d93,_0x10ce2d,_0x247c49);let _0x4fed05=class extends _0x502ce1['Disposable']{constructor(_0x146eeb,_0x4ba24e,_0x4d3357,_0x5770f9,_0x498741,_0x498337,_0x5696c9){const _0x521415=_0x168ac6;super(),_0x2d9017(this,'disposableCollection',new _0x502ce1['DisposableCollection']()),(this['_injector']=_0x146eeb,this['_refRangeService']=_0x4ba24e,this[_0x521415(0x377)]=_0x4d3357,this[_0x521415(0x43d)]=_0x5770f9,this[_0x521415(0x1f1)]=_0x498741,this[_0x521415(0x29a)]=_0x498337,this[_0x521415(0x3dd)]=_0x5696c9,this['_onRefRangeChange']());}[_0x168ac6(0x265)](){const _0x582843=_0x168ac6,_0x1bc09f=(_0x45db31,_0x5074ad)=>{const _0x9b2070=_0xc079,_0x2b2cf0=this['_univerInstanceService'][_0x9b2070(0x3f0)](_0x502ce1[_0x9b2070(0x3ae)]['UNIVER_SHEET']);if(!_0x2b2cf0||!(_0x2b2cf0==null?void 0x0:_0x2b2cf0[_0x9b2070(0x45f)](_0x5074ad)))return;this[_0x9b2070(0x244)]['dispose']();const _0x28217f=_0x1b060b=>this[_0x9b2070(0x29e)](_0x1b060b,_0x45db31,_0x5074ad),_0x3502f1=this[_0x9b2070(0x1f1)][_0x9b2070(0x4f6)](_0x45db31,_0x5074ad);if(!(_0x3502f1!=null&&_0x3502f1[_0x9b2070(0x381)]))return;Array[_0x9b2070(0x421)](_0x3502f1[_0x9b2070(0x484)]())['map'](_0xcc37f1=>{const {row:_0x343160,col:_0x4d9fde}=_0xcc37f1['targetCellInfo'];return _0x502ce1['cellToRange'](_0x343160,_0x4d9fde);})['forEach'](_0x1d2a28=>{const _0x4048ae=_0x9b2070;this[_0x4048ae(0x244)]['add'](this[_0x4048ae(0x302)][_0x4048ae(0x2f6)](_0x1d2a28,_0x28217f,_0x45db31,_0x5074ad));});},_0x5c631f=()=>{const _0x18bcc1=_0xc079,_0x362b2a=this[_0x18bcc1(0x43d)][_0x18bcc1(0x3f0)](_0x502ce1[_0x18bcc1(0x3ae)][_0x18bcc1(0x290)]);if(_0x362b2a){const _0x3b7bfb=_0x362b2a[_0x18bcc1(0x20f)]();if(!_0x3b7bfb)return;_0x1bc09f(_0x362b2a['getUnitId'](),_0x3b7bfb[_0x18bcc1(0x4a7)]());}};this[_0x582843(0x218)](this[_0x582843(0x377)]['onCommandExecuted'](_0x4c12ec=>{const _0x4844ef=_0x582843;if(_0x4c12ec['id']===_0x2b7376[_0x4844ef(0x296)]['id']){const _0x2fbcfc=_0x4c12ec[_0x4844ef(0x4f3)],_0x4e5d00=_0x2fbcfc['subUnitId'],_0x492cd3=_0x2fbcfc[_0x4844ef(0x43e)];if(!_0x4e5d00||!_0x492cd3)return;_0x1bc09f(_0x492cd3,_0x4e5d00);}})),this[_0x582843(0x218)](this[_0x582843(0x1f1)]['pivotInitCompleted$'][_0x582843(0x4ef)](_0x3b79f0=>{_0x3b79f0&&_0x5c631f();})),this[_0x582843(0x218)](this['_sheetsPivotTableConfigModel'][_0x582843(0x220)][_0x582843(0x4ef)](_0x26965e=>{const _0x2f2bd2=_0x582843,_0x393946=_0x2b7376[_0x2f2bd2(0x3a3)](this[_0x2f2bd2(0x43d)]);if(!_0x393946)return;const {unitId:_0x4102fc,subUnitId:_0x42c3b4}=_0x393946,{unitId:_0x21d385,subUnitId:_0x49001f}=_0x26965e;_0x4102fc!==_0x21d385||_0x42c3b4!==_0x49001f||_0x1bc09f(_0x4102fc,_0x42c3b4);})),_0x5c631f();}[_0x168ac6(0x29e)](_0x117a8,_0x11d0dd,_0x47f360){const _0x158801=_0x168ac6;switch(_0x117a8['id']){case _0x2b7376[_0x158801(0x3d7)]['id']:return this[_0x158801(0x496)](_0x117a8[_0x158801(0x4f3)],_0x11d0dd,_0x47f360);}return{'redos':[],'undos':[]};}[_0x168ac6(0x496)](_0x421e69,_0xa2ee80,_0x24fc6f){const _0x2d9c0a=_0x168ac6,{fromRange:_0x21df91,toRange:_0x253245}=_0x421e69,_0x4966c7=[],_0x4d18eb=[],_0x5362d4=_0x2b7376[_0x2d9c0a(0x3a3)](this['_univerInstanceService']);if(!_0x5362d4)return{'undos':_0x4d18eb,'redos':_0x4966c7};if(_0xa2ee80!==_0x5362d4[_0x2d9c0a(0x43e)]||_0x24fc6f!==_0x5362d4[_0x2d9c0a(0x389)])return{'undos':_0x4d18eb,'redos':_0x4966c7};const _0x562167=this[_0x2d9c0a(0x1f1)][_0x2d9c0a(0x4f6)](_0xa2ee80,_0x24fc6f);if(_0x562167!=null&&_0x562167[_0x2d9c0a(0x381)])for(const [_0x275a9b,_0x18a6df]of _0x562167){const {unitId:_0x1ae5c3,subUnitId:_0x1f2591,row:_0xb9118e,col:_0x4c480b}=_0x18a6df['targetCellInfo'];if(_0x1ae5c3===_0x5362d4['unitId']&&_0x1f2591===_0x5362d4[_0x2d9c0a(0x389)]){const _0x3ec6ce=_0x502ce1['cellToRange'](_0xb9118e,_0x4c480b);if(_0x502ce1[_0x2d9c0a(0x469)][_0x2d9c0a(0x34c)](_0x3ec6ce,_0x21df91)){const _0x3b0617=_0xb9118e-_0x21df91['startRow'],_0x3268ec=_0x4c480b-_0x21df91[_0x2d9c0a(0x291)],_0x6c02b8={'row':_0x253245[_0x2d9c0a(0x41f)]+_0x3b0617,'col':_0x253245[_0x2d9c0a(0x291)]+_0x3268ec};_0x4966c7['push']({'id':_0x35b800['id'],'params':{'unitId':_0x1ae5c3,'subUnitId':_0x1f2591,'pivotTableId':_0x275a9b,'targetCellPosition':_0x6c02b8}}),_0x4d18eb['push']({'id':_0x35b800['id'],'params':{'unitId':_0x1ae5c3,'subUnitId':_0x1f2591,'pivotTableId':_0x275a9b,'targetCellPosition':{'row':_0xb9118e,'col':_0x4c480b}}});const _0x42f468=_0x6c02b8['row']-_0xb9118e,_0x358467=_0x6c02b8['col']-_0x4c480b,_0x5b03fa=[],_0x3254c7=this[_0x2d9c0a(0x29a)]['getPivotItemRenderInfoCache'](_0x1ae5c3,_0x1f2591,_0x275a9b),_0x91bcac=_0x3254c7==null?void 0x0:_0x3254c7[_0x2d9c0a(0x391)];if(_0x91bcac){Object['keys'](_0x91bcac)['forEach'](_0x1fe165=>{const _0x1cea79=_0x2d9c0a;_0x91bcac[_0x1fe165][_0x1cea79(0x314)](_0x4204ff=>{const _0x2e4287=_0x1cea79,_0x34e68a={..._0x4204ff};_0x34e68a['startRow']=_0x4204ff[_0x2e4287(0x41f)]+_0x42f468,_0x34e68a[_0x2e4287(0x4cd)]=_0x4204ff[_0x2e4287(0x4cd)]+_0x42f468,_0x34e68a[_0x2e4287(0x291)]=_0x4204ff[_0x2e4287(0x291)]+_0x358467,_0x34e68a[_0x2e4287(0x42b)]=_0x4204ff['endColumn']+_0x358467,_0x5b03fa[_0x2e4287(0x412)](_0x34e68a);});});const _0x5b9eab=this[_0x2d9c0a(0x3dd)][_0x2d9c0a(0x3e0)]({'unitId':_0x1ae5c3,'subUnitId':_0x1f2591,'ranges':_0x5b03fa});_0x4966c7[_0x2d9c0a(0x412)](..._0x5b9eab[_0x2d9c0a(0x2d6)]),_0x4d18eb[_0x2d9c0a(0x412)](..._0x5b9eab[_0x2d9c0a(0x383)]);const _0x1c9b00=_0x49f90b(this[_0x2d9c0a(0x360)],_0x1ae5c3,_0x1f2591,_0x5b03fa);_0x1c9b00[_0x2d9c0a(0x450)]&&(_0x4966c7['push'](_0x1c9b00['setRangeValueRedoMutation']),_0x4d18eb['push'](_0x1c9b00[_0x2d9c0a(0x3b5)]));}}}}return{'redos':_0x4966c7,'undos':_0x4d18eb};}};_0x4fed05=_0x846204([_0x7fac2e(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1['Injector'])),_0x7fac2e(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376[_0x168ac6(0x454)])),_0x7fac2e(0x2,_0x502ce1[_0x168ac6(0x48c)]),_0x7fac2e(0x3,_0x502ce1[_0x168ac6(0x37a)]),_0x7fac2e(0x4,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4['SheetsPivotTableConfigModel'])),_0x7fac2e(0x5,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x4a3)])),_0x7fac2e(0x6,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376[_0x168ac6(0x1fa)]))],_0x4fed05);var _0x586b56=Object['getOwnPropertyDescriptor'],_0x12804c=(_0x1fa6a6,_0xa3ecce,_0x218123,_0x569fed)=>{const _0x3948cb=_0x168ac6;for(var _0x2109fa=_0x569fed>0x1?void 0x0:_0x569fed?_0x586b56(_0xa3ecce,_0x218123):_0xa3ecce,_0x5000db=_0x1fa6a6[_0x3948cb(0x4d2)]-0x1,_0x2ccac4;_0x5000db>=0x0;_0x5000db--)(_0x2ccac4=_0x1fa6a6[_0x5000db])&&(_0x2109fa=_0x2ccac4(_0x2109fa)||_0x2109fa);return _0x2109fa;},_0x17854e=(_0x534343,_0x5e7473)=>(_0x82c36f,_0x178f5a)=>_0x5e7473(_0x82c36f,_0x178f5a,_0x534343);let _0x5f2111=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x487fbd,_0x5454df){const _0x49220c=_0x168ac6;super(),this[_0x49220c(0x3dd)]=_0x487fbd,this['_sheetsPivotTableConfigModel']=_0x5454df,this['_initRemoveSheetCommandInterceptor']();}['_initRemoveSheetCommandInterceptor'](){const _0x2134bf=_0x168ac6;this[_0x2134bf(0x218)](this[_0x2134bf(0x3dd)][_0x2134bf(0x44c)]({'getMutations':_0x18d93a=>{const _0x569ff8=_0x2134bf;if(_0x18d93a['id']===_0x2b7376[_0x569ff8(0x44e)]['id']){const _0x22ccef=[],_0xaa378c=[],_0x39f36c=_0x18d93a[_0x569ff8(0x4f3)],{unitId:_0x471720,subUnitId:_0x375eea}=_0x39f36c;if(!_0x471720||!_0x375eea)return{'undos':_0xaa378c,'redos':_0x22ccef};const _0x5ac0c1=this[_0x569ff8(0x1f1)][_0x569ff8(0x4f6)](_0x471720,_0x375eea);if(_0x5ac0c1!=null&&_0x5ac0c1['size'])for(const [_0x54ff9c,_0x60aaaa]of _0x5ac0c1){_0x22ccef[_0x569ff8(0x412)]({'id':_0x372cc7['id'],'params':{'unitId':_0x471720,'subUnitId':_0x375eea,'pivotTableId':_0x54ff9c}});const _0x33cffe={...this[_0x569ff8(0x1f1)][_0x569ff8(0x46b)](_0x471720,_0x54ff9c)};_0xaa378c[_0x569ff8(0x412)]({'id':_0x108104['id'],'params':{'unitId':_0x471720,'subUnitId':_0x375eea,'pivotTableId':_0x54ff9c,'pivotTableConfig':_0x60aaaa,'collectionConfig':_0x33cffe}});}return{'redos':_0x22ccef,'undos':_0xaa378c};}return{'redos':[],'undos':[]};}}));}};_0x5f2111=_0x12804c([_0x17854e(0x0,_0x502ce1[_0x168ac6(0x27e)](_0x2b7376['SheetInterceptorService'])),_0x17854e(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x30b)]))],_0x5f2111);var _0x16f7da=Object[_0x168ac6(0x2ec)],_0xdcc80b=(_0x171275,_0x2fda3e,_0x155f95,_0x41bf85)=>{const _0x4011d4=_0x168ac6;for(var _0x48aa14=_0x41bf85>0x1?void 0x0:_0x41bf85?_0x16f7da(_0x2fda3e,_0x155f95):_0x2fda3e,_0x4b8572=_0x171275[_0x4011d4(0x4d2)]-0x1,_0xc04027;_0x4b8572>=0x0;_0x4b8572--)(_0xc04027=_0x171275[_0x4b8572])&&(_0x48aa14=_0xc04027(_0x48aa14)||_0x48aa14);return _0x48aa14;},_0x203711=(_0x58adbe,_0x36ff46)=>(_0xdf9111,_0x2d7c94)=>_0x36ff46(_0xdf9111,_0x2d7c94,_0x58adbe);let _0x37cfc9=class extends _0x502ce1[_0x168ac6(0x3f8)]{constructor(_0x289129,_0x4ca126,_0x4086b8,_0x4f4b08,_0x1a6f68,_0x33a79d){const _0x5ec98b=_0x168ac6;super(),this[_0x5ec98b(0x377)]=_0x289129,this[_0x5ec98b(0x368)]=_0x4ca126,this['_sheetsPivotTableAdaptorModel']=_0x4086b8,this[_0x5ec98b(0x1f1)]=_0x4f4b08,this[_0x5ec98b(0x43d)]=_0x1a6f68,this['_activeDirtyManagerService']=_0x33a79d,this[_0x5ec98b(0x479)](),this['registerDirtyService']();}[_0x168ac6(0x479)](){const _0x47b650=_0x168ac6;this[_0x47b650(0x218)](this['_commandService'][_0x47b650(0x28e)](_0x3b1839=>{const _0x455797=_0x47b650;if(_0x3b1839['id']!==_0x59f14a['id'])return;const _0x1d525b=_0x3b1839[_0x455797(0x4f3)];this['_sheetsPivotRpcService'][_0x455797(0x257)](_0x1d525b);})),this[_0x47b650(0x218)](this['_commandService']['onCommandExecuted'](_0x58773f=>{const _0x22e0e5=_0x47b650;if(_0x58773f['id']===_0x5c13d5['id']){const _0x1ffb5e=_0x58773f[_0x22e0e5(0x4f3)];if(_0x1ffb5e){const {unitId:_0x11caa8,subUnitId:_0x59437d,oldSubUnitId:_0x223b40,pivotTableId:_0x91b67b,pivotTableConfig:_0x31a2e4,collectionConfig:_0x307ccb}=_0x1ffb5e;this[_0x22e0e5(0x1f1)]['updateConfigCache'](_0x11caa8,_0x223b40,_0x1ffb5e[_0x22e0e5(0x22f)],null),this[_0x22e0e5(0x1f1)][_0x22e0e5(0x325)](_0x11caa8,_0x59437d,_0x91b67b,_0x31a2e4),this[_0x22e0e5(0x1f1)]['updateCollectionConfig'](_0x11caa8,_0x307ccb);}}})),this[_0x47b650(0x218)](this['_commandService']['onCommandExecuted'](_0xd5238b=>{const _0x42a4bb=_0x47b650;if(_0xd5238b['id']!==_0x57fc95['id'])return;const _0x16a4d2=_0x2b7376[_0x42a4bb(0x3a3)](this[_0x42a4bb(0x43d)]);if(!_0x16a4d2)return;const {unitId:_0x7fe5ad,subUnitId:_0x927d31}=_0x16a4d2,_0x272198=_0xd5238b[_0x42a4bb(0x4f3)];if(_0x272198['collectionConfig']&&Object[_0x42a4bb(0x375)](_0x272198['collectionConfig'])[_0x42a4bb(0x314)](_0x35cec1=>{const _0x34da0b=_0x42a4bb;var _0x1edd59;(_0x1edd59=_0x272198[_0x34da0b(0x323)])!=null&&_0x1edd59[_0x35cec1]&&this[_0x34da0b(0x1f1)]['updateCollectionConfig'](_0x35cec1,_0x272198[_0x34da0b(0x323)][_0x35cec1]);}),_0x272198[_0x42a4bb(0x4c1)]){const _0x3deb71=_0x272198['single'],{unitId:_0x23d05d,subUnitId:_0x4127d1,view:_0x316113,pivotTableId:_0x3a83b9,type:_0x15473d,pivotConfig:_0x4dc302}=_0x3deb71;if(_0x15473d===_0x44d5f2[_0x42a4bb(0x306)])this[_0x42a4bb(0x29a)][_0x42a4bb(0x392)]({'unitId':_0x23d05d,'subUnitId':_0x4127d1,'pivotTableId':_0x3a83b9,'type':_0x15473d}),this[_0x42a4bb(0x1f1)][_0x42a4bb(0x325)](_0x23d05d,_0x4127d1,_0x3a83b9,null);else{const _0x5656f8=new _0x2371ae['PivotView']();_0x5656f8[_0x42a4bb(0x497)](_0x316113),this['_sheetsPivotTableConfigModel'][_0x42a4bb(0x325)](_0x23d05d,_0x4127d1,_0x3a83b9,_0x4dc302),this['_sheetsPivotTableAdaptorModel'][_0x42a4bb(0x392)]({'unitId':_0x23d05d,'subUnitId':_0x4127d1,'pivotTableId':_0x3a83b9,'type':_0x15473d,'view':_0x5656f8}),this[_0x42a4bb(0x29a)]['updateRenderCache']({'unitId':_0x23d05d,'subUnitId':_0x4127d1,'view':_0x5656f8,'pivotTableId':_0x3a83b9,'type':_0x15473d});}}else _0x272198[_0x42a4bb(0x3e5)]&&(_0x272198[_0x42a4bb(0x3e5)]['forEach'](_0x27d1f1=>{const _0x1d40d1=_0x42a4bb,{unitId:_0x4efe9d,subUnitId:_0x29638b,view:_0x24c0a1,pivotTableId:_0x274d28,type:_0x2c4096,pivotConfig:_0x52098c}=_0x27d1f1,_0xc0a36a=new _0x2371ae[(_0x1d40d1(0x4f9))]();_0xc0a36a[_0x1d40d1(0x497)](_0x24c0a1),this[_0x1d40d1(0x1f1)][_0x1d40d1(0x325)](_0x4efe9d,_0x29638b,_0x274d28,_0x52098c),this[_0x1d40d1(0x29a)][_0x1d40d1(0x4d9)]({'unitId':_0x4efe9d,'subUnitId':_0x29638b,'view':_0xc0a36a,'pivotTableId':_0x274d28,'type':_0x2c4096});}),this['_sheetsPivotTableConfigModel'][_0x42a4bb(0x416)]());this[_0x42a4bb(0x29a)]['markDirty'](_0x7fe5ad,_0x927d31);}));}['registerDirtyService'](){const _0x4acaf9=_0x168ac6;this[_0x4acaf9(0x411)][_0x4acaf9(0x1f2)](_0x9fb76a['id'],{'commandId':_0x9fb76a['id'],'getDirtyData'(_0x3ef0a0){const _0x3d1eff=_0x4acaf9;return{'dirtyUnitFeatureMap':_0x3ef0a0[_0x3d1eff(0x4f3)]};}});}};_0x37cfc9=_0xdcc80b([_0x203711(0x0,_0x502ce1['Inject'](_0x502ce1[_0x168ac6(0x48c)])),_0x203711(0x1,_0x502ce1['Inject'](_0x44c9e4[_0x168ac6(0x43b)])),_0x203711(0x2,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x4a3)])),_0x203711(0x3,_0x502ce1[_0x168ac6(0x27e)](_0x44c9e4[_0x168ac6(0x30b)])),_0x203711(0x4,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1['IUniverInstanceService'])),_0x203711(0x5,_0x514a71[_0x168ac6(0x3da)])],_0x37cfc9);var _0x2bd14b=Object[_0x168ac6(0x3b6)],_0x1445db=Object[_0x168ac6(0x2ec)],_0x1c1f59=(_0x468699,_0x2a6543,_0x1507af)=>_0x2a6543 in _0x468699?_0x2bd14b(_0x468699,_0x2a6543,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1507af}):_0x468699[_0x2a6543]=_0x1507af,_0x580e97=(_0x4714e8,_0x1a7a8c,_0x9ffb96,_0x174087)=>{const _0x164d0d=_0x168ac6;for(var _0x386e1e=_0x174087>0x1?void 0x0:_0x174087?_0x1445db(_0x1a7a8c,_0x9ffb96):_0x1a7a8c,_0x4da31e=_0x4714e8[_0x164d0d(0x4d2)]-0x1,_0x36d069;_0x4da31e>=0x0;_0x4da31e--)(_0x36d069=_0x4714e8[_0x4da31e])&&(_0x386e1e=_0x36d069(_0x386e1e)||_0x386e1e);return _0x386e1e;},_0x2b77ed=(_0x44a1a5,_0x27fd04)=>(_0x4abec7,_0x117129)=>_0x27fd04(_0x4abec7,_0x117129,_0x44a1a5),_0x6e5c64=(_0x5c0db6,_0x23b9eb,_0x519056)=>_0x1c1f59(_0x5c0db6,typeof _0x23b9eb!=_0x168ac6(0x2c8)?_0x23b9eb+'':_0x23b9eb,_0x519056);_0x44c9e4['UniverSheetsPivotTablePlugin']=class extends _0x502ce1[_0x168ac6(0x20a)]{constructor(_0x94572a=_0x27e2dc,_0x51d7ae,_0x3fbe34,_0x43c40c,_0x6cfb68){const _0x481350=_0x168ac6;super(),this['_config']=_0x94572a,this[_0x481350(0x360)]=_0x51d7ae,this['_commandService']=_0x3fbe34,this[_0x481350(0x2c7)]=_0x43c40c,this[_0x481350(0x4ae)]=_0x6cfb68;const {..._0x1be252}=_0x502ce1['merge']({},_0x27e2dc,this['_config']);this[_0x481350(0x2c7)]['setConfig'](_0x8c6504,_0x1be252),this[_0x481350(0x379)](),this['_initConfig']();}['_initConfig'](){const _0x5d8eb3=_0x168ac6;var _0x2a26c7;const _0x43f432=(_0x2a26c7=this[_0x5d8eb3(0x409)])==null?void 0x0:_0x2a26c7[_0x5d8eb3(0x1ed)];this[_0x5d8eb3(0x2c7)]['setConfig'](_0x44bb6e,_0x43f432===!0x0);}['onStarting'](){const _0x3ea4f5=_0x168ac6;var _0x52c48b;let _0x3c65ba=[];const _0x10e62e=(_0x52c48b=this[_0x3ea4f5(0x409)])==null?void 0x0:_0x52c48b[_0x3ea4f5(0x1ed)];_0x10e62e===!0x0?_0x3c65ba=[[_0x44c9e4[_0x3ea4f5(0x369)]],[_0x44c9e4['SheetsPivotRPCService']],[_0x37cfc9],[_0x44c9e4[_0x3ea4f5(0x4a3)]],[_0x44c9e4[_0x3ea4f5(0x30b)]],[_0x5f2111],[_0x44d21b],[_0x4fed05],[_0x593845]]:_0x10e62e===!0x1?_0x3c65ba=[[_0x44c9e4[_0x3ea4f5(0x31f)]],[_0x2bb2b4]]:_0x10e62e===void 0x0&&(_0x3c65ba=[[_0x44c9e4['SheetsPivotDataSourceModel']],[_0x2bb2b4],[_0x44c9e4[_0x3ea4f5(0x369)]],[_0x44c9e4[_0x3ea4f5(0x43b)]],[_0x37cfc9],[_0x44c9e4['SheetsPivotTableAdaptorModel']],[_0x44c9e4[_0x3ea4f5(0x30b)]],[_0x5f2111],[_0x44d21b],[_0x4fed05],[_0x593845]]),_0x3c65ba['forEach'](_0xdbdfc4=>this[_0x3ea4f5(0x360)]['add'](_0xdbdfc4)),[_0x2bb2b4,_0x37cfc9,_0x44c9e4['SheetsPivotTableService'],_0x44d21b,_0x5f2111,_0x4fed05,_0x593845][_0x3ea4f5(0x314)](_0x3677ff=>{const _0x520d98=_0x3ea4f5;this[_0x520d98(0x360)][_0x520d98(0x23a)](_0x3677ff)&&this['_injector'][_0x520d98(0x4c2)](_0x3677ff);});}[_0x168ac6(0x379)](){const _0x5cae86=_0x168ac6;[_0x3259b7,_0x29e850,_0xfe7240,_0x4d3140,_0x3b4bc3,_0x40b7e3,_0x345b02,_0xd8144b,_0x5bb1b8,_0x3395df,_0x3b1fad,_0xa3a1a0,_0x4e1c9e,_0x12647c,_0x108104,_0x972376,_0x372cc7,_0x51b7e9,_0x5357c4,_0x3ebc05,_0x513c2f,_0x1a4cf9,_0x724960,_0x5ca950,_0x3f431b,_0x36de21,_0x35b800,_0x203a4f,_0x59f14a,_0x57fc95,_0x243d97,_0x49bc17,_0x1c9145,_0x22ab1b,_0x518f79,_0x1683d2,_0x1fa1e0,_0x9fb76a,_0x5c13d5,_0x4917da,_0x476318,_0x49de69,_0x30a04f][_0x5cae86(0x314)](_0x4a52b4=>{const _0x446329=_0x5cae86;var _0x804ef1;(_0x804ef1=this['_dataSyncPrimaryController'])==null||_0x804ef1['registerSyncingMutations'](_0x4a52b4),this[_0x446329(0x377)][_0x446329(0x363)](_0x4a52b4);});}},_0x6e5c64(_0x44c9e4[_0x168ac6(0x2a0)],'pluginName',_0x8316df),_0x6e5c64(_0x44c9e4[_0x168ac6(0x2a0)],_0x168ac6(0x376),_0x502ce1[_0x168ac6(0x3ae)][_0x168ac6(0x290)]),_0x44c9e4['UniverSheetsPivotTablePlugin']=_0x580e97([_0x502ce1['DependentOn'](_0x443236[_0x168ac6(0x4b9)]),_0x2b77ed(0x1,_0x502ce1[_0x168ac6(0x27e)](_0x502ce1[_0x168ac6(0x402)])),_0x2b77ed(0x2,_0x502ce1['Inject'](_0x502ce1['ICommandService'])),_0x2b77ed(0x3,_0x502ce1[_0x168ac6(0x25b)]),_0x2b77ed(0x4,_0x502ce1[_0x168ac6(0x333)](_0x3159bd[_0x168ac6(0x3d6)]))],_0x44c9e4[_0x168ac6(0x2a0)]),_0x44c9e4[_0x168ac6(0x320)]=_0xfe7240,_0x44c9e4['AddPivotFieldMutation']=_0x51b7e9,_0x44c9e4[_0x168ac6(0x271)]=_0x29e850,_0x44c9e4[_0x168ac6(0x407)]=_0x108104,_0x44c9e4[_0x168ac6(0x25d)]=_0x3259b7,_0x44c9e4[_0x168ac6(0x3fe)]=_0x3b501c,_0x44c9e4[_0x168ac6(0x439)]=_0x22b7d5,_0x44c9e4[_0x168ac6(0x46c)]=_0x4d3140,_0x44c9e4['MovePivotTableCommand']=_0x4e1c9e,_0x44c9e4[_0x168ac6(0x3b8)]=_0x4e0d4,_0x44c9e4[_0x168ac6(0x277)]=_0x12647c,_0x44c9e4[_0x168ac6(0x2bc)]=_0x44d5f2,_0x44c9e4['PivotTableViewDirtyMarkOperation']=_0x9fb76a,_0x44c9e4[_0x168ac6(0x21f)]=_0x1987b0,_0x44c9e4['RemovePivotFieldCommand']=_0x3b4bc3,_0x44c9e4[_0x168ac6(0x246)]=_0x1a4cf9,_0x44c9e4[_0x168ac6(0x430)]=_0x372cc7,_0x44c9e4[_0x168ac6(0x307)]=_0x724960,_0x44c9e4['ResetPivotFieldsConfigCommand']=_0x30a04f,_0x44c9e4[_0x168ac6(0x273)]=_0x8c6504,_0x44c9e4[_0x168ac6(0x3c2)]=_0x8316df,_0x44c9e4[_0x168ac6(0x418)]=_0xd8144b,_0x44c9e4['SetPivotCollapseMutation']=_0x5ca950,_0x44c9e4[_0x168ac6(0x424)]=_0x22ab1b,_0x44c9e4[_0x168ac6(0x373)]=_0x49de69,_0x44c9e4[_0x168ac6(0x339)]=_0x3395df,_0x44c9e4[_0x168ac6(0x4d5)]=_0x513c2f,_0x44c9e4['SetPivotOptionMutation']=_0x36de21,_0x44c9e4[_0x168ac6(0x39f)]=_0x35b800,_0x44c9e4[_0x168ac6(0x4e1)]=_0x5bb1b8,_0x44c9e4[_0x168ac6(0x425)]=_0x3f431b,_0x44c9e4['SetPivotSubtotalTypeMutation']=_0x1c9145,_0x44c9e4[_0x168ac6(0x304)]=_0x4917da,_0x44c9e4['SetPivotValueFilterMutation']=_0x476318,_0x44c9e4[_0x168ac6(0x4fa)]=_0x345b02,_0x44c9e4[_0x168ac6(0x3c1)]=_0x243d97,_0x44c9e4[_0x168ac6(0x4a1)]=_0x3b1fad,_0x44c9e4[_0x168ac6(0x473)]=_0x1fa1e0,_0x44c9e4['UpdatePivotTableSourceRangeCommand']=_0xa3a1a0,_0x44c9e4[_0x168ac6(0x3e9)]=_0x1683d2,_0x44c9e4[_0x168ac6(0x2f5)]=_0x40b7e3,_0x44c9e4[_0x168ac6(0x32c)]=_0x49bc17,_0x44c9e4[_0x168ac6(0x33a)]=_0x16abcc,_0x44c9e4[_0x168ac6(0x2b7)]=_0x53ca3c,_0x44c9e4['defaultThemeStyle']=_0x505f09,_0x44c9e4['generateSetRangeValueMutations']=_0x49f90b,_0x44c9e4[_0x168ac6(0x2ff)]=_0x573266,_0x44c9e4['getEmptyPivotRanges']=_0x3a2594,_0x44c9e4[_0x168ac6(0x4bc)]=_0x40ca50,_0x44c9e4['getInsertRowColMutations']=_0x159fc1,_0x44c9e4['getPivotCellInfo']=_0xbf46ad,_0x44c9e4[_0x168ac6(0x4a0)]=_0x37a464,_0x44c9e4[_0x168ac6(0x36a)]=_0x1503d8,_0x44c9e4[_0x168ac6(0x37f)]=_0x4667ce,_0x44c9e4[_0x168ac6(0x4da)]=_0x1dbac6,Object[_0x168ac6(0x3b6)](_0x44c9e4,Symbol['toStringTag'],{'value':_0x168ac6(0x443)});}));function _0x3ac0(){const _0x1c2975=['_localeService','updateConfigCache','BehaviorSubject','generateNewSheetName','name','setSubtotalType','RemoveField','Existing','UpdateValuePositionMutation','map','rowCount','removeSourceRangeChange','getDataFieldManager','InsertRowMutation','getIntersects','Optional','COMMAND','addCollection','MonthDate','sheets-pivot.sumName','sheet.mutation.send-init-pivot-text-local','SetPivotFilterCommand','applyChangeSet','ManualFilter','AddPivotTable','INTERCEPTOR_POINT','11CGfgwa','getPivotTableRangeInfo','sheets-pivot.value','sheet.command.update-pivot-table-source-range','updatePivotSource','getTargetByPivotId','fieldsCollectionChange$','_sheetsPivotTableService','sheet.command.add-pivot-field','Grand\x20Total','PivotTableFiledAreaEnum','sheets-pivot.dateGroup.yearQuarter','_sheetsPivotDataSourceModel','getMatrixValue','intersects','min','valueIndex','setPivotCollapse','12026jcExpH','addPivotField','UniverProSheetsPivot','asyncInterceptor','colRanges','MovePivotField','pbt','textInfo','_toJSON','SetSortInfo','dataFieldManagerConfig','filter','collectionChange$','(Blank)','AsyncInterceptorManager','_initUnitDisposed','_injector','_createExclusiveRange','iterateField','registerCommand','varp','pivotMutationGenerate','numfmt','parseInt','_sheetsPivotRpcService','SheetsPivotTableService','getPivotTableInfo','Subject','ResetPivotTable','ObjectMatrix','interceptor','addDataFieldWithoutUnitInfo','_ensureViewDataMap','UpdateValuePosition','sheet.mutation.pivot-update-value-position','SetPivotFieldsConfigCommand','BadReference','keys','type','_commandService','DrillDown','_initRegisterCommand','IUniverInstanceService','sheetName','limit\x20pivot','sheets-pivot.productName','sheets.tabs.sheet','transFromCellValue','colHeaderMap','size','deleteUnitId','undos','parse','_subjectCollectionChange','number','refreshDataField','contains','subUnitId','getDataFieldByDataFieldId','_pivotRenderInfoCache','unshiftString','rangeKey','targetCellInfo','setRangeValueRedoMutation','blank','rangesInfo','clearRenderCache','serializeRangeWithSpreadsheet','_initPivotTextInfo','sheets-pivot.dateGroup.year','columnFields','iterateFieldDim','filterId','Set','getUnit','sheet.command.set-pivot-collapse','sheets-pivot.cellDateGroupDisplay.quarter','minDate','getFieldPositionInfoById','SetPivotPositionMutation','Max\x20of\x20','call','hasField','getSheetCommandTarget','_ensurePivotTableRangeInfo','updateViewData','excelDateToUnixMilliseconds','fetchThroughInterceptors','sheets-pivot.cellDateGroupDisplay.yearMonth','removeCollections','_collectionChange$','tableFieldId','RANGE_TYPE','setRange','UniverInstanceType','unshift','hasOwnProperty','SetRangeValuesUndoMutationFactory','sheets-pivot.cellDateGroupDisplay.date','sheets-pivot.dateGroup.hourMinute','SetValuePivotFilter','setRangeValueUndoMutation','defineProperty','BaseGroupField','PivotDisplayDataType','Subtotal','markDirty','sheet.mutation.set-pivot-option','_getPivotAppliedRanges','count','getStyles','sourceRangeInfo','floor','UpdateFieldPositionMutation','SHEET_PIVOT_TABLE_PLUGIN','displayName','Panel','sheets-pivot.cellDateGroupDisplay.minute','range','lastCol','_getAutoName','_collectionConfigModel','iterateFieldByArea','sheets-pivot.dateGroup.monthDate','updateDataFieldsCollection','viewData$','InsertSheetUndoMutationFactory','DisposableCollection','RemoveSheetsFilterMutation','collection','getGroupFieldsInfoByIds','InterceptorEffectEnum','sum','Date','DataSyncPrimaryController','MoveRangeCommand','Minute','Add','IActiveDirtyManagerService','deleteDataField','sheet.mutation.pivot-update-field-position','_sheetInterceptorService','ptn','_pivotTableRangeInfo','generateMutationsByRanges','update','stdDev','Range','PivotTable','batch','updateRangeKeyMap','getPivotItemRenderInfoCache','splice','UpdatePivotTableSourceRangeMutation','_updateModelCache','PivotDataFieldDataTypeEnum','resetPivotTable','#f4f4f5','existing','29542404SgAfZd','getCurrentUnitForType','setValuePivotFilter','valueFilter','CELL_CONTENT','FontCache','_dataFieldManagerCollection','fieldsConfig','getColCount','Disposable','fieldIds','InsertSheetMutation','reduce','valueFields','getUpdateRangeDeleteIds','BLANK_ROW_COUNT','_initViewModelBySheetInterceptor','updatePivotTableMatrixInfo','setPivotTableConfig','Injector','forValue','lastRow','rowFields','setCollapse','AddPivotTableMutation','_viewData','_config','generateHexNumber','getValueIndex','sheet.operation.pivot-table-view-formula-mark-dirty','col','handleSourceRangeChange','UniverEngineRender','PivotTableValuePositionEnum','_activeDirtyManagerService','push','data','PivotMultipleValueId','function','setPivotInitCompleted','StdDev\x20of\x20','SetPivotCollapseCommand','updateValuePosition','getSheets','PivotCallbackEnum','cornerInfo','info','cornerRanges','startRow','token','from','_globalComputingSrv','COLUMN','SetPivotFieldFormatMutation','SetPivotSortMutation','@univerjs/rpc','Row','updateView','entries','getPivotTableInstance','endColumn','_resourceManagerService','value','UniverSheets','sheets-pivot.averageName','RemovePivotTableMutation','isEmpty','addPivotTableWithConfig','triggerDirtyFeature','getFieldCountByArea','SetFilterInfo','_globalSubject','colCount','setTextInfo','DEFAULT_PIVOT_NUMBER','stdDevp','SheetsPivotRPCService','YearMonthDate','_univerInstanceService','unitId','query','var','SetRangeValuesMutation','fieldId','Module','dataFieldId','sheet.command.set-pivot-sort','charCodeAt','panel','NORMAL','add','pushUndoRedo','2814CKUwAj','interceptCommand','Filter','RemoveSheetCommand','RemovePivotField','shouldClear','addCollectionByJSON','concat','sheets-pivot.dateGroup.quarter','RefRangeService','countNums','SetOptions','DEFAULT_WORKSHEET_ROW_COUNT','Collapse','SheetsSelectionsService','AddPivotField','UpdateFieldPosition','removeField','getColumnCount','pageStyle','getSheetBySheetId','areaInfo','isFeatureAuthorizedWithinTime','versions','amd','_fieldsCollectionChange$','sheets-pivot.dateGroup.hour','UniverProEnginePivot','stringify','NUMBER','Rectangle','maxDate','getCollection','MovePivotFieldCommand','Min\x20of\x20','sheets-pivot.varpName','getInterceptPoints','IResourceManagerService','Div0','markDirty$','UpdatePivotFieldSourceInfoMutation','NotName','CommandType','_updateRenderEmptyCache','sheets-pivot.blank','@univerjs/sheets-filter','_initDataSendListener','rowHeaderMap','MAX_SAFE_INTEGER','\x20-\x20','getRowCount','SHEET_PIVOT_IN_MAIN_THREAD','getLastCol','UpdateSource','rangeKeyMap','getSourceName','addPivotTable','values','sheets-pivot.maxName','format','_pivotRenderValueMatrixCache','_queryingMap','getPivotTableModelConfig','isColMultiMeasure','sheets-pivot.emptyPivot.values','ICommandService','new','FieldsCollection','numberToABC','sheet.command.remove-pivot-field','document','movePivotField','isBaseGroupField','getFieldInfo','reset','getRefRangeMutationsByMoveRange','formJSON','measure','setPivotSetting','refreshData','dimension','SHEET_PIVOT_EXCLUSIVE_ID','sheet.command.move-pivot-field','sheets-pivot.columnName','SetPivotSort','getPivotInfoByLicense','UpdatePivotFieldSettingCommand','Expand','SheetsPivotTableAdaptorModel','getIndexesByPathStr','getDataFieldItemInfo','fontRenderExtension','getSheetId','sheets-pivot.dateGroup.month','registerPluginResource','sheet.command.add-pivot-table','subtotal','forRow','getMatrix','_dataSyncPrimaryController','getCellRaw','_initClearSelectionCommandInterceptor','_textInfo','random','createValueField','fetchThroughAsyncInterceptors','_sheetsSelectionsService','cellToRange','2yBdvMI','rowInfo','UniverLicensePlugin','getName','getSheetBySheetName','getFieldListByArea','version','bind','result','rangeCache','single','get','sheet.mutation.add-group-collection','_ensurePivotTableMatrixInfo','#b2b2b2','sheet.mutation.set-pivot-sort-info','dispose','getRangeKey','object','YearQuarter','average','_viewData$','endRow','LifecycleService','replace','SetPivotSetting','_init','length','dateType','sheet.command.set-pivot-filter','SetPivotFilterMutation','addDirtyPivotTable','filterInfo','broadcastCollectionChange','updateRenderCache','unionPivotViewRange','isDateValue','_pivotTableMatrixInfo','DateGroupField','CustomCommandExecutionError','setOptions','_initGlobalComputed','SetPivotSortCommand','executeCommand','Value','STRING','PIVOT_MUTATION_GENERATE','sheets-pivot.dateGroup.date','getPivotDisplayConfig','setLabelFilterInfo','HourMinute','fromJSON','dataFieldsCollection','drillDown','pivotTableConfigs','sheet.mutation.send-pivot-view-local','subscribe','ErrorType','YearMonth','_pivotConfigChange$','params','Values','1703682XqQAJE','getSubUnitPivotConfigs','_configVersion$','Quarter','PivotView','UpdateDateGroupCommand','getConfig','notExecuteFormula','cornerStyle','setDisplayName','intercept','_sheetsPivotTableConfigModel','register','getValue','_model','initDataRanges','sheets-pivot.dateGroup.yearMonth','prototype','sheet.command.add-pivot-table-with-config','sequenceExecute','SheetInterceptorService','Month','headerMap','_host','isPrefixValue','addField','AddField','realDeleteValue','originTargetInfo','getPivotTableMatrixInfo','colStyle','3VkRLJv','setValue','getFullYear','_markDirty$','SetWorksheetColWidthMutation','Plugin','updateFieldSourceInfo','getPivotTableConfig','adjustSheetCellData','#FFFFFF','getActiveSheet','updateDirtyPivotTable','isValue','getTableFieldById','oldMatrix','SetSubtotalType','setDateType','setFieldFormat','CellValueType','disposeWithMe','rangeType','prefix','column','generateRandomId','next','getLastRow','PositionType','pivotConfigChange$','refreshGroupField','@univerjs-pro/license','updateViewInfo','level','getFilterInfo','getIntersectsPivotTable','sheet.mutation.set-pivot-collapse','mergeWorksheetSnapshotWithDefault','endCollectChangeset','getUnitId','_initSnapshot','AddPivotTableWithConfig','uniqueDataFieldName','handleMoveRange','pivotTableId','Count\x20of\x20','sheets-pivot.minName','_featureCalculationManagerService','dataRangeInfo','RenameField','collections','dataStyle','grandTotal','sheet.mutation.get-pivot-data-local','custom','has','some','LS_CONFIG_KEY','getPivotTableIdByCell','DataFieldManager','SetPivotTableConfig','3062176VpvAbT','SetValueFilter','GrandTotal','paths','disposableCollection','@univerjs/engine-formula','RemovePivotFieldMutation','_deleteModelCache','getOriginFieldId','rowStyle','foreach','body','getDisplayName','PivotSubtotalTypeEnum','deleteField','createDataFieldId','getFieldIds','fields','sheet.command.set-pivot-fields-config','sheets-pivot.cellDateGroupDisplay.yearQuarter','sheets-pivot.subTotal','rowRanges','_updatePivotTableInstanceCache','handleAsyncResponse','MIN_SAFE_INTEGER','addExclusiveRange','oldRangeInfo','IConfigService','_requestResolvers','AddPivotTableWithConfigCommand','getAutoDisplayName','sheet.mutation.add-pivot-field','getId','setValueFilterInfo','error','set','removePivotTable','_onRefRangeChange','_pivotInitCompleted$','createInterceptorKey','@univerjs-pro/engine-pivot','filterFields','sheets-pivot.varName','rgb(255,255,255)','_initPivotDataGetListener','toJSON','getPivotTableCellData','PivotDateGroupFieldDateTypeEnum','InsertSheetCommand','AddPivotTableCommand','delete','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','createCollectionWithDataRange','updateAllDisplayName','InterceptorManager','PivotDrillDownCommand','@univerjs/sheets','getTextSize','UpdatePivotSource','sheet.command.update-pivot-value-position','isDateGroupFieldJSON','isNaN','Inject','#e6ebfb','pivotTableIndexConfig','getSortInfo','Year','getFontStyleString','UniverEngineFormula','getAutoFitColumnsMutations','removePivotField','getNoUsedDataFieldIds','getDataFieldByRangeKey','_initLocale','getTextInfo','DEFAULT_WORKSHEET_COLUMN_COUNT','PivotViewCellValueTypeEnum','_deletePivotTableInstanceCache','onCommandExecuted','NAME','UNIVER_SHEET','startColumn','6345624wFoErU','sideEffectUpdateWorkerCache','sheets-pivot.config','InsertColMutation','SetWorksheetActiveOperation','UniverSheetsFilter','pushComputingStatusSubject','valid','_sheetsPivotTableAdaptorModel','getDirtyInfo','setPivotTable','isText','_refRangeHandle','_subjectViewChange','UniverSheetsPivotTablePlugin','setDirty','Sum\x20of\x20','removeDataField','Varp\x20of\x20','_globalComputedStartHelpFunc','getFieldDataType','NO_COMMERCIAL','product','getDate','PivotCellStyleTypeEnum','sheet.mutation.send-pivot-data-local','_exclusiveRangeService','needSameDeleteModel','Average\x20of\x20','setName','updateFieldPosition','setSourceName','_generateUniqueVersion','originalFieldId','getFieldById','addFieldWithSourceId','#e6ebfa','canUsePivot','getMatrixFromRunTimeData','sheet.command.reset-pivot-fields-config','sheet.command.set-pivot-field-setting','dataFields','PivotTableOperationEnum','setPivotSort','date','onQueryEnd','Total','setDataRecordCount','New','setSortInfo','getHeaderMapItem','IUndoRedoService','queryDirtyPivotTable','_configService','symbol','max','SetPivotFilter','return\x20','getTypeOfUnitDisposed$','getDataFieldId','matrix','getRangeStartEndInfo','substring','getColumnWidth','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','collapseInfo','_initCommandInterceptListener','workbook\x20is\x20not\x20found','redos','3288825nqELEp','getMonth','Column','getformat','SetCollapse','isArray','UniverProLicense','ClearSelectionAllCommand','rxjs','pivotInitCompleted$','Tools','sortInfo','getAutoDisplayNameFunction','@univerjs/core','subTotalStyle','_globalComputedEndHelpFunc','LocaleService','_pivotTableInstanceCache','width','dataStream','startCollectChangeset','getOwnPropertyDescriptor','_viewUpdate$','getSubtotal','isBottomTotal','row','getFieldFormat','sheets-pivot.dateGroup.minute','sheets-pivot.cellDateGroupDisplay.hour','getRangeKeyList','UpdatePivotValuePositionCommand','registerRefRange','sheets-pivot.countNumsName','asObservable','string','removeValueFilterInfoByValueFieldId','sheets-pivot.emptyPivot.row','pageRanges','#eceeff','_ensurePivotItemRenderValueMatrixCache','getAdjustRangesPosition','updatePivotTableRangeInfo','72185gtMqwk','_refRangeService','GlobalComputingStatusService','SetPivotValueFilterCommand','options','Delete','RenamePivotFieldMutation','getDataFieldByTableId','sheet.command.set-pivot-value-filter','_ensurePivotItemRenderInfoCache','SheetsPivotTableConfigModel','getViewData','sheet.mutation.set-pivot-value-filter','PivotErrorTypeEnum','getValueFilterInfos','sheets-pivot.grandTotal','getCellMatrix','getDataFieldBySourceName','getInfo','forEach','PivotTableChangeTypeEnum','_ensurePivotMap','find','getSubUnitPivotMatrix','UniverRpc','leftOffset','10ltOxum','resetArea','MUTATION','sheet.mutation.send-pivot-config-local','SheetsPivotDataSourceModel','AddPivotFieldCommand','renameField','isDate','collectionConfig'];_0x3ac0=function(){return _0x1c2975;};return _0x3ac0();}