@univerjs-pro/sheets-pivot 0.6.10-experimental.20250411-f5b7b16 → 0.6.10-experimental.20250418-8830bd4

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 _0x45c2(_0x1f43d1,_0x566078){const _0x1ff6ca=_0x1ff6();return _0x45c2=function(_0x45c2ad,_0x552258){_0x45c2ad=_0x45c2ad-0x122;let _0x5738b7=_0x1ff6ca[_0x45c2ad];return _0x5738b7;},_0x45c2(_0x1f43d1,_0x566078);}function _0x1ff6(){const _0x16cbec=['_sheetsPivotTableConfigModel','error','_initGlobalComputed','getConfig','setDataRecordCount','sheet.mutation.rename-pivot-field','bind','setSourceName','isColMultiMeasure','RemovePivotFieldCommand','isErrorValue','forEach','colInfo','16101jPhcHW','ClearSelectionContentCommand','_model','isDateGroupField','SheetsPivotTableService','YearQuarter','_sheetInterceptorService','Month','isText','LS_CONFIG_KEY','sheets-pivot.cellDateGroupDisplay.yearMonthDate','setValue','Expand','_updatePivotTableInstanceCache','_initPivotDataGetListener','endColumn','sheet.command.add-pivot-table','set','max','getformat','sheets-pivot.dateGroup.yearMonthDate','getPivotTableCellData','MoveRangeCommand','map','count','addDirtyPivotTable','RemoveSheetMutation','RemoveField','notExecuteFormula','GrandTotal','getPivotTableInstance','updateConfig','sheet.mutation.set-pivot-collapse','column','from','subTotalStyle','_viewData','SHEET_PIVOT_EXCLUSIVE_ID','SetPivotPositionMutation','fieldIds','token','SetPivotCollapseMutation','UniverCore','resetArea','sheet.mutation.remove-pivot-table','@univerjs/engine-formula','_injector','UniverSheetsPivotTablePlugin','fontRenderExtension','getStyles','format','\x20-\x20','_sheetsPivotRpcService','getUpdateRangeDeleteIds','forValue','getPivotItemRenderInfoCache','2DGSdTz','startRow','getTableFieldById','SetPivotFilterCommand','NORMAL','_ensurePivotItemRenderValueMatrixCache','PivotErrorTypeEnum','versions','getPivotTableMatrixInfo','refreshGroupField','UpdatePivotSource','grandTotal','_activeDirtyManagerService','REF','sheet.command.move-pivot-table','amd','getUnit','size','getSheets','_config','UpdateSource','getInterceptPoints','getDataFieldManager','addPivotField','sheet.mutation.send-init-pivot-text-local','@univerjs/sheets-filter','SheetsPivotTableConfigModel','MonthDate','UpdateValuePosition','sheet.mutation.get-pivot-data-local','getFullYear','sheet.mutation.pivot-update-field-position','removeValueFilterInfo','markDirty$','_configService','@univerjs/sheets','DataField','setPivotSetting','StdDev\x20of\x20','PositionType','getRangeKey','_initLocale','maxDate','rowCount','reset','getMatrix','getValue','tableFieldId','AddPivotTableMutation','getColumnWidth','sheets-pivot.cellDateGroupDisplay.hourMinute','sheets-pivot.emptyPivot.column','Subject','_ensurePivotTableRangeInfo','parse','UpdatePivotTableSourceRangeMutation','getCellMatrix','filter','PivotTableValuePositionEnum','sheet.mutation.send-pivot-view-local','Varp\x20of\x20','endRow','sourceRangeInfo','concat','sheets-pivot.cellDateGroupDisplay.quarter','_globalSubject','disposeWithMe','#b2b2b2','width','getOriginFieldId','getPivotTableIdByCell','MUTATION','sheets-pivot.varpName','sheets-pivot.dateGroup.year','movePivotField','existing','ErrorType','setPivotFilter','getDataFieldByTableId','queryDirtyPivotTable','stdDev','_ensurePivotItemRenderInfoCache','limit\x20pivot','SHEET_PIVOT_TABLE_PLUGIN','Set','_ensurePivotTableMatrixInfo','dataRangeInfo','createDataFieldId','PivotSubtotalTypeEnum','setPivotTable','headerMap','query','Product\x20of\x20','asyncInterceptor','UpdateDateGroupCommand','_updateModelCache','getPivotDisplayConfig','ResetPivotTable','getFieldCountByArea','UniverEngineRender','sheets-pivot.dateGroup.monthDate','type','getPivotInfoByLicense','_globalComputingSrv','isNaN','getValueIndex','UniverLicensePlugin','Average\x20of\x20','getMonth','@univerjs/engine-render','fetchThroughAsyncInterceptors','originalFieldId','dimension','_init','rxjs','sheet.command.update-date-group','iterateFieldByArea','AddPivotFieldMutation','StdDevp\x20of\x20','_initViewModelBySheetInterceptor','setFieldFormat','endCollectChangeset','CellValueType','pluginName','Min\x20of\x20','PIVOT_MUTATION_GENERATE','isFeatureAuthorizedWithinTime','removeCollections','DependentOn','filterInfo','row','collectionChange$','refreshData','_deletePivotTableInstanceCache','getValuePosition','addCollectionByJSON','updatePivotSource','sheets-pivot.maxName','MovePivotField','measure','Minute','getOwnPropertyDescriptor','getColCount','find','AddField','_sheetsPivotTableAdaptorModel','addFieldWithSourceId','SetPivotCollapseCommand','defineProperty','viewData$','oldRangeInfo','body','#FFFFFF','dataFieldManagerConfig','getAutoDisplayName','pbt','SetPivotSetting','_initSnapshot','displayName','getIndexesByPathStr','minDate','sheets-pivot.cellDateGroupDisplay.year','SetPivotOptionMutation','contains','collapseInfo','intersects','getSubtotal','NotName','UpdatePivotFieldSourceInfoMutation','RemovePivotTableMutation','_updateRenderEmptyCache','AddPivotField','ptn','leafStyle','Existing','Quarter','lastRow','document','merge','setDisplayName','colCount','DataFieldManager','_initDataSendListener','@univerjs-pro/engine-pivot','SetSortInfo','sheet.mutation.add-group-collection','viewUpdate$','NO_COMMERCIAL','entries','isArray','setRangeValueUndoMutation','pushUndoRedo','PivotTableChangeTypeEnum','redos','sheet.mutation.set-pivot-value-filter','_requestResolvers','getMatrixValue','sheets-pivot.cellDateGroupDisplay.month','clearExclusiveRangesByGroupId','FontCache','getLastCol','numfmt','varp','InsertSheetUndoMutationFactory','deleteDataField','RemoveRowMutation','getLastRow','adjustSheetCellData','getDataFieldItemInfo','getFieldInfo','string','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','IUndoRedoService','setSortInfo','getId','includes','addDataFieldWithoutUnitInfo','removePivotField','cornerInfo','isDateGroupFieldJSON','toString','WOuUqgJu\x20wyUj9dqgJu(ogUyuFy,\x20dOAogUIy9)\x20{\x20\x20\x20\x20qj9\x20{\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20ogUyuFyauWJpbjqTjjb9\x20=\x20ogUyuFy.Fdogq(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20JjgHguiyFFbHy\x20=\x208eKE.dbjFy(bqJA(ogUyuFyauWJpbjqTjjb9[s]));\x20\x20\x20\x20\x20\x20\x20\x20gW\x20(!JjgHguiyFFbHy.Ow)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JjgHguiyFFbHy.Ow\x20=\x20EO1Ayj(ogUyuFyauWJpbjqTjjb9[B]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20gF4JjLyj\x20=\x20q9dyJW\x204JjLyjfoJAboeUJdy\x20!==\x20\x27OuwyWguyw\x27\x20&&\x20FyoW\x20guFqbuUyJW\x204JjLyjfoJAboeUJdy;\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20UJuqymq\x20=\x20gF4JjLyj\x20?\x20FyoW\x20:\x20xguwJx;\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x201yFFbHy4Jjw\x20=\x20UJuqymq.__hbFyNB__.dbjFy(ogUyuFyauWJpbjqTjjb9[s]);\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x201yFFbHy\x20=\x20UJuqymq.__Xym__.FqjguHgW9(1yFFbHy4Jjw);\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20FgHubqOjy4Jjw\x20=\x20UJuqymq.__hbFyNB__.dbjFy(ogUyuFyauWJpbjqTjjb9[P]);\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20FgHubqOjy\x20=\x20UJuqymq.__Xym__.FqjguHgW9(FgHubqOjy4Jjw);\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20FgHuVbogw\x20=\x20UJuqymq.__6yjgW9__(FgHubqOjy,\x201yFFbHy,\x20dOAogUIy9);\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20wJ1bgu\x20=\x20JjgHguiyFFbHy.w1;\x20\x20\x20\x20\x20\x20\x20\x20WOuUqgJu\x20gFvJ1bguibqUQguH(Jpbqqyju,\x20JXJFq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20dbqqyju\x20=\x20Jpbqqyju.jydobUy(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20QJFq\x20=\x20JXJFq.jydobUy(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20dbqqyjupbjqF\x20=\x20dbqqyju.Fdogq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20QJFqpbjqF\x20=\x20QJFq.Fdogq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gW\x20(!dbqqyju.guUoOwyF(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jyqOju\x20dbqqyju\x20===\x20QJFq;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gW\x20(dbqqyjupbjqF.oyuHqQ\x20<\x20s\x20||\x20dbqqyjupbjqF[M]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jyqOju\x20WboFy;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20dbqqyjueOWWgm\x20=\x20dbqqyjupbjqF.FogUy(Z).DJgu(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x20QJFqeOWWgm\x20=\x20QJFqpbjqF.FogUy(-dbqqyjupbjqF.oyuHqQ\x20+\x20Z).DJgu(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jyqOju\x20dbqqyjueOWWgm\x20===\x20QJFqeOWWgm;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20oyq\x20wJ1bguVbogw\x20=\x20(wJ1bgu\x20&&\x20wJ1bgu.oyuHqQ)\x20?\x20wJ1bgu.FJ1y((w1aqy1)\x20=>\x20gFvJ1bguibqUQguH(w1aqy1,\x20oJUbqgJu.QJFqub1y))\x20:\x20qjOy;\x20\x20\x20\x20\x20\x20\x20\x20gW\x20(oJUbqgJu.QJFqub1y\x20===\x20\x27oJUboQJFq\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wJ1bguVbogw\x20=\x20qjOy;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20UJuFq\x206bogw\x20=\x20FgHuVbogw\x20&&\x20wJ1bguVbogw;\x20\x20\x20\x20\x20\x20\x20\x20jyqOju\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206bogw,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201yFFbHy:\x20JjgHguiyFFbHy,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20UbqUQ\x20(yjjJj)\x20{\x20\x20\x20\x20\x20\x20\x20\x20jyqOju\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x206bogw:\x20WboFy,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x201yFFbHy:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','filterId','sheet.command.move-pivot-field','_subjectCollectionChange','getFieldListByArea','originTargetInfo','_pivotTableRangeInfo','AsyncInterceptorManager','_sheetsSelectionsService','values','sheets-pivot.varName','getFieldById','setDateType','1236204CeqKKI','updateViewData','stdDevp','addField','fromJSON','InterceptorEffectEnum','fields','setOptions','collections','panel','_initRemoveSheetCommandInterceptor','ManualFilter','IConfigService','addCollection','getDataFieldBySourceName','random','cellValue','createLabelField','Column','sortInfo','deleteField','ICommandService','sheet.command.add-pivot-field','MovePivotFieldCommand','setSubtotalType','Count\x20of\x20','DIV_BY_ZERO','getSheetFeatureLimit','pageStyle','SetPivotSortCommand','getSourceName','Column\x20','prototype','_textInfo','NUMBER','rangeKeyMap','sheets-pivot.minName','numberToABC','PivotView','setValueFilterInfo','floor','isBaseGroupField','_initCommandInterceptListener','Inject','YearMonthDate','Panel','BehaviorSubject','_ensureViewDataMap','paths','sheets-pivot.grandTotal','setPivotInitCompleted','DataSyncPrimaryController','result','Disposable','col','updatePivotTableMatrixInfo','rowStyle','AddPivotTableCommand','node','Module','remove','sheet.mutation.add-pivot-field','updateRangeKeyMap','return\x20','cornerRanges','SetFieldFormat','getFieldIds','MAX_SAFE_INTEGER','Optional','Rectangle','sheet.mutation.send-pivot-data-local','Year','getPivotTableInfo','SetPivotFieldFormatMutation','PivotDateGroupFieldDateTypeEnum','_dataSyncPrimaryController','date','lastCol','#e6ebfb','sheet.command.set-pivot-fields-config','getFieldPositionInfoById','UpdatePivotValuePositionCommand','message','subtotal','targetCellInfo','number','range','subscribe','sheets-pivot.value','broadcastCollectionChange','removeDataField','getTextInfo','Date','getEmptyPivotRanges','getInfo','fieldId','UniverProLicense','substring','_initUnitDisposed','_subjectFieldsCollectionChange','getRangeKeyList','valueFields','columnFields','updateAllDisplayName','stringify','_markDirty$','sheets-pivot.dateGroup.minute','toJSON','Delete','getMatrixFromRunTimeData','6564580nrweMI','_univerInstanceService','fieldsCollectionChange$','updateRenderCache','getPivotPerformCheck','_lifecycleService','sheet.mutation.set-pivot-format','dataStream','PivotCellStyleTypeEnum','getPivotDirtyViewInfo','InsertSheetMutation','setLabelFilterInfo','sourceName','handleAsyncResponse','sheets-pivot.averageName','SetPivotTableConfig','ObjectMatrix','unshift','sheets-pivot.subTotal','setPivotCollapse','getDataFieldId','RANGE_TYPE','serializeRangeWithSpreadsheet','replace','sheets-pivot.emptyPivot.filter','sheet.mutation.update-pivot-table-source-range','interceptCommand','PivotCallbackEnum','initDataRanges','rangeType','params','unshiftString','getIntersectsPivotTable','rowInfo','_sheetsPivotTableService','removeCollectionImp','has','getSheetCommandTarget','getPivotTableRangeInfo','RenameField','pushComputingStatusSubject','getSheetId','rowHeaderMap','cellToRange','applyChangeSet','addRecord','_ensurePivotMap','pivotConfigChange$','isDateValue','pivotInitCompleted$','NotFunction','removePivotTable','object','colHeaderMap','#f4f4f5','1419455qKcTnd','sheets-pivot.dateGroup.yearMonth','getTextSize','SheetInterceptorService','DEFAULT_WORKSHEET_ROW_COUNT','level','getViewData','generateMutationsByRanges','update','_queryingMap','getRangeStartEndInfo','UniverEngineFormula','updateViewInfo','hasOwnProperty','rowFields','startCollectChangeset','function','SetPivotSort','SetValueFilter','#eceeff','registerCommand','length','createCollectionWithDataRange','NAME','generateSetRangeValueMutations','setPivotSort','addExclusiveRange','_refRangeHandle','prefix','getSheetBySheetId','fetchThroughInterceptors','getPivotTableModelConfig','filterFields','ResetPivotFieldsConfigCommand','getFilterFieldIdByIndex','dataFields','_featureCalculationManagerService','LocaleService','_localeService','AddPivotTableWithConfigCommand','collection','registerRefRange','symbol','unionPivotViewRange','ClearSelectionAllCommand','_collectionConfigModel','dispose','_getAutoName','pageRanges','getAutoFitColumnsMutations','LifecycleService','MovePivotTableCommand','sheet.command.set-pivot-sort','IResourceManagerService','PivotTableViewDirtyMarkOperation','isBottomTotal','disposableCollection','SetSubtotalType','addPivotTableWithConfig','FieldsCollection','getPivotCellInfo','GlobalComputingStatusService','HourMinute','markDirty','INTERCEPTOR_POINT','SetPivotFilter','_subjectViewChange','_collectionChange$','version','ReleaseType','fieldsConfig','_pivotRenderInfoCache','968NWWsQQ','_viewUpdate$','setConfig','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','some','_resourceManagerService','workbook\x20is\x20not\x20found','CommandType','getRefRangeMutationsByMoveRange','drillDown','splice','_createExclusiveRange','matrix','InsertColMutation','sheet.command.set-pivot-value-filter','_initRegisterCommand','undos','getFormat','getRangeData','refreshDataField','name','SetCollapse','reduce','_exclusiveRangeService','textInfo','getFontStyleString','UpdatePivotFieldSettingCommand','sideEffectUpdateWorkerCache','SetPivotCollapse','sheet.command.set-pivot-filter','updateView','COLUMN','executeCommand','formJSON','getNoUsedDataFieldIds','getTargetByPivotTableId','AddPivotTable','_dataFieldManagerCollection','_deleteModelCache','RemovePivotField','shouldClear','getFieldDataType','hasField','Row','updateDirtyPivotTable','updateCollectionConfig','sheets-pivot.columnName','Plugin','getGroupFieldsInfoByIds','charCodeAt','uniqueDataFieldName','isDate','registerSyncingMutations','_refRangeService','Collapse','sheet.command.set-pivot-collapse','dataFieldId','_pivotTableInstanceCache','getUnitId','sheets-pivot.dateGroup.quarter','PivotDataFieldDataTypeEnum','_pivotTableMatrixInfo','Var\x20of\x20','getCurrentUnitForType','RefRangeService','@univerjs-pro/license','keys','registerPluginResource','getCellRaw','valueIndex','clearRenderCache','COMMAND','excelDateToUnixMilliseconds','setRange','rangesInfo','getTypeOfUnitDisposed$','setCollapse','generateRandomId','removeField','SheetsPivotRPCService','generateNewSheetName','getName','sheet.command.add-pivot-table-with-config','sum','YearMonth','_pivotConfigChange$','95721AaBzuW','getAdjustRangesPosition','_pivotRenderValueMatrixCache','needSameDeleteModel','_initClearSelectionCommandInterceptor','_viewData$','getSubUnitPivotMatrix','generateHexNumber','iterateField','product','toStringTag','Hour','onQueryStart','SetSheetsFilterRangeMutation','sheet.mutation.pivot-update-field-source-info','colRanges','pivotTableIndexConfig','updateConfigCache','isValue','addPivotTable','sheets-pivot.cellDateGroupDisplay.date','push','Value','SetValuePivotFilter','DisposableCollection','getHeaderMapItem','_generateUniqueVersion','getDisplayName','deepClone','sheet.command.set-pivot-field-setting','setRangeKeyMap','SetWorksheetColWidthMutation','IFeatureCalculationManagerService','UNIVER_SHEET','average','sheets-pivot.dateGroup.hourMinute','AddPivotTableWithConfig','DrillDown','updateValuePosition','setValuePivotFilter','add','BadReference','options','pivotTableId','getCollection','sheets.tabs.sheet','IUniverInstanceService','STRING','startColumn','sheets-pivot.emptyPivot.row','data','getSubUnitPivotConfigs','delete','updateFieldSourceInfo','PivotTableFiledAreaEnum','SetPivotFieldsConfigCommand','_sheetsPivotDataSourceModel','sheet.mutation.remove-group-collection','sheetName','pivotPerformCheck','_host','interceptor','getTargetByPivotId','areaInfo','CELL_CONTENT','PivotDisplayDataType','renameField','handleSourceRangeChange','SetPivotFilterMutation','getAutoDisplayNameFunction','Add','setPivotTableConfig','@univerjs/rpc','sheet.command.pivot-drill-down','SheetsPivotTableAdaptorModel','getSortInfo','PivotTable','pivotMutationGenerate','sheets-pivot.countNumsName','configVersion$','isPrefixValue','resetPivotTable','pivotTableConfigs','None','PivotDrillDownCommand','info','getDataFieldByRangeKey','getColumnCount','batch','intercept','setTextInfo','isEmpty','sheet.mutation.set-pivot-field-subtotal-type','20BCDNTs','colStyle','setRangeValueRedoMutation','collectionConfig','SheetsPivotDataSourceModel','min','@univerjs/core','register','sheets-pivot.cellDateGroupDisplay.hour','CustomCommandExecutionError','registerDirtyService','slice','_pivotInitCompleted$','getFilterInfo','sheets-pivot.dateGroup.date','mergeWorksheetSnapshotWithDefault','sequenceExecute','7234bnAPvu','iterateFieldDim','_commandService','get','sheets-pivot.emptyPivot.values','call','value','PivotFilterTypeEnum','_configVersion$','triggerDirtyFeature','Injector','deleteUnitId','dataFieldsCollection','removeSourceRangeChange','_fieldsCollectionChange$','MIN_SAFE_INTEGER','getDirtyInfo','431501dEXnTc','setName','onCommandExecuted','SetWorksheetActiveOperation','blank','Values','tuple','rangeKey','InsertRowMutation','getSheetBySheetName','getDataFieldByDataFieldId','dataStyle','_toJSON','_globalComputedEndHelpFunc','subUnitId','PivotViewCellValueTypeEnum','_initConfig','sheet.command.remove-pivot-field','next','valueFilter','UniverInstanceType','Range','sheets-pivot.stdDevpName','SetRangeValuesMutation','_initPivotTextInfo','unitId','getFieldFormat','UniverProEnginePivot','getPivotTableConfig','Tools','handleMoveRange','IActiveDirtyManagerService','Filter','sheets-pivot.dateGroup.yearQuarter','asObservable','sheets-pivot.cellDateGroupDisplay.yearMonth','_globalComputedStartHelpFunc','sheets-pivot.dateGroup.hour','_onRefRangeChange','getRowCount','cornerStyle','MoveRangeMutation','valuePosition','New'];_0x1ff6=function(){return _0x16cbec;};return _0x1ff6();}(function(_0x1b00c6,_0x365afb){const _0x397c93=_0x45c2,_0xb0dffc=_0x1b00c6();while(!![]){try{const _0x46adee=parseInt(_0x397c93(0x390))/0x1*(-parseInt(_0x397c93(0x412))/0x2)+parseInt(_0x397c93(0x322))/0x3*(parseInt(_0x397c93(0x37f))/0x4)+-parseInt(_0x397c93(0x284))/0x5+-parseInt(_0x397c93(0x1df))/0x6+parseInt(_0x397c93(0x3a1))/0x7+-parseInt(_0x397c93(0x2cc))/0x8*(parseInt(_0x397c93(0x3da))/0x9)+parseInt(_0x397c93(0x24d))/0xa;if(_0x46adee===_0x365afb)break;else _0xb0dffc['push'](_0xb0dffc['shift']());}catch(_0x4842c5){_0xb0dffc['push'](_0xb0dffc['shift']());}}}(_0x1ff6,0x280a8),function(_0xd02a69,_0x236ab5){const _0x45ba88=_0x45c2;typeof exports=='object'&&typeof module<'u'?_0x236ab5(exports,require(_0x45ba88(0x1ac)),require('@univerjs/core'),require(_0x45ba88(0x407)),require('@univerjs/sheets'),require('rxjs'),require(_0x45ba88(0x30d)),require(_0x45ba88(0x42b)),require(_0x45ba88(0x36a)),require(_0x45ba88(0x162))):typeof define==_0x45ba88(0x294)&&define[_0x45ba88(0x421)]?define(['exports',_0x45ba88(0x1ac),_0x45ba88(0x385),_0x45ba88(0x407),_0x45ba88(0x435),_0x45ba88(0x167),_0x45ba88(0x30d),_0x45ba88(0x42b),_0x45ba88(0x36a),'@univerjs/engine-render'],_0x236ab5):(_0xd02a69=typeof globalThis<'u'?globalThis:_0xd02a69||self,_0x236ab5(_0xd02a69['UniverProSheetsPivot']={},_0xd02a69[_0x45ba88(0x3bc)],_0xd02a69[_0x45ba88(0x404)],_0xd02a69[_0x45ba88(0x28f)],_0xd02a69['UniverSheets'],_0xd02a69[_0x45ba88(0x167)],_0xd02a69[_0x45ba88(0x23f)],_0xd02a69['UniverSheetsFilter'],_0xd02a69['UniverRpc'],_0xd02a69[_0x45ba88(0x158)]));}(this,function(_0x271f43,_0x5ab2d7,_0x3aab5b,_0x1cd130,_0x5b84bb,_0x2b128f,_0x2a826e,_0x4bef69,_0x2fffef,_0x2c5cc7){'use strict';const _0x6daf50=_0x45c2;var _0x27ce6d=Object[_0x6daf50(0x189)],_0x9c773c=(_0x2770e0,_0x4d1951,_0x3aec8a)=>_0x4d1951 in _0x2770e0?_0x27ce6d(_0x2770e0,_0x4d1951,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x3aec8a}):_0x2770e0[_0x4d1951]=_0x3aec8a,_0x3f9e42=(_0x454dbd,_0x46b588,_0x5d5bb4)=>_0x9c773c(_0x454dbd,typeof _0x46b588!=_0x6daf50(0x2ae)?_0x46b588+'':_0x46b588,_0x5d5bb4);const _0x533439=Number['parseInt'](0x67f903e7),_0x4eaf16=0x10,_0x884d8a=0x1,_0x3a232b=_0x6daf50(0x148),_0x50ed31=0x1,_0x88dd6a='rgb(240,241,243)',_0x615ae1='rgb(255,255,255)',_0x3afd7d=_0x6daf50(0x138),_0x1f6af2=_0x6daf50(0x283),_0x1629a1=_0x6daf50(0x283),_0x2bef8a=_0x6daf50(0x297),_0x5b65ff='#1d32e9',_0x9ca638=_0x6daf50(0x18d),_0x267e74='#e6ebfa',_0x409fac='#1d32e9',_0x2f8a5a=_0x6daf50(0x18d),_0x220dfc=_0x6daf50(0x22d),_0x30b41c=0xe,_0x232a4c=0x6;var _0xdd5059=(_0x15bec6=>(_0x15bec6[_0x6daf50(0x1a3)]=_0x6daf50(0x140),_0x15bec6[_0x6daf50(0x3cc)]='new',_0x15bec6))(_0xdd5059||{});const _0x42a6ad={'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':''}}},_0x40ef3f=0x1e,_0x76bfb5={'b':{'s':0x1,'cl':{'rgb':_0x3afd7d}},'l':{'s':0x1,'cl':{'rgb':_0x3afd7d}},'r':{'s':0x1,'cl':{'rgb':_0x3afd7d}},'t':{'s':0x1,'cl':{'rgb':_0x3afd7d}}},_0x1a2a41={'bg':{'rgb':_0x88dd6a},'ht':0x2,'vt':0x2,'tb':0x1},_0x1d3c38={'bg':{'rgb':_0x615ae1},'ht':0x2,'vt':0x2,'tb':0x1},_0x34ff93={'rowStyle':{'bg':{'rgb':_0x220dfc},'bd':_0x76bfb5,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x409fac},'bd':null,'cl':{'rgb':_0x2f8a5a},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x76bfb5,'bg':{'rgb':_0x267e74},'vt':0x2},'cornerStyle':{'bd':_0x76bfb5,'bg':{'rgb':_0x2bef8a},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x76bfb5,'bg':{'rgb':_0x1f6af2},'vt':0x2},'leafStyle':{'bd':_0x76bfb5,'bg':{'rgb':_0x1629a1},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x5b65ff},'cl':{'rgb':_0x9ca638},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x76bfb5,'vt':0x2}};function _0xe5b251(_0x1e6de4,_0x38295b,_0x5099ec){const _0x2a6c1f=_0x6daf50,_0x36ee92=_0x1e6de4[_0x2a6c1f(0x393)](_0x3aab5b[_0x2a6c1f(0x2a9)]),_0x35e5da=_0x5099ec['split']('_');switch(_0x38295b){case _0x5ab2d7['PivotDateGroupFieldDateTypeEnum'][_0x2a6c1f(0x226)]:return _0x36ee92['t'](_0x2a6c1f(0x196),..._0x35e5da);case _0x5ab2d7[_0x2a6c1f(0x229)][_0x2a6c1f(0x181)]:return _0x36ee92['t']('sheets-pivot.cellDateGroupDisplay.minute',..._0x35e5da);case _0x5ab2d7[_0x2a6c1f(0x229)][_0x2a6c1f(0x32d)]:return _0x36ee92['t'](_0x2a6c1f(0x387),..._0x35e5da);case _0x5ab2d7[_0x2a6c1f(0x229)][_0x2a6c1f(0x2c2)]:return _0x36ee92['t'](_0x2a6c1f(0x127),..._0x35e5da);case _0x5ab2d7[_0x2a6c1f(0x229)][_0x2a6c1f(0x23b)]:return _0x36ee92['t'](_0x2a6c1f(0x336),..._0x35e5da);case _0x5ab2d7['PivotDateGroupFieldDateTypeEnum'][_0x2a6c1f(0x3e1)]:return _0x36ee92['t'](_0x2a6c1f(0x1ba),..._0x35e5da);case _0x5ab2d7[_0x2a6c1f(0x229)][_0x2a6c1f(0x1a4)]:return _0x36ee92['t'](_0x2a6c1f(0x135),..._0x35e5da);case _0x5ab2d7['PivotDateGroupFieldDateTypeEnum']['YearMonth']:return _0x36ee92['t'](_0x2a6c1f(0x3c4),..._0x35e5da);case _0x5ab2d7['PivotDateGroupFieldDateTypeEnum']['YearMonthDate']:return _0x36ee92['t'](_0x2a6c1f(0x3e4),..._0x35e5da);case _0x5ab2d7[_0x2a6c1f(0x229)][_0x2a6c1f(0x3df)]:return _0x36ee92['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x35e5da);}return'';}const _0x1ac6ba=(_0x693caf,_0x2b1e6a,_0x544eb1,_0x418dae)=>{const _0x480e06=_0x6daf50;let _0x569e11;const _0x1df8d9=_0x693caf[_0x480e06(0x393)](_0x3aab5b['IUniverInstanceService'])[_0x480e06(0x30b)](_0x3aab5b['UniverInstanceType'][_0x480e06(0x343)]);if(!_0x1df8d9)return null;const _0x5cae2a=_0x1df8d9['getStyles']();let _0xd4e2da;if(_0x544eb1&&(_0xd4e2da=_0x5cae2a['setValue'](_0x544eb1)),_0x2b1e6a!=null&&_0x2b1e6a['v']||(_0x2b1e6a==null?void 0x0:_0x2b1e6a['v'])===0x0){_0x569e11||(_0x569e11={});const _0x32f139=_0x1cbd0f(_0x2b1e6a['v']);typeof _0x32f139==_0x480e06(0x234)?_0x569e11['t']=_0x3aab5b['CellValueType'][_0x480e06(0x201)]:typeof _0x32f139==_0x480e06(0x1c7)&&(_0x569e11['t']=_0x3aab5b[_0x480e06(0x16f)][_0x480e06(0x351)]),_0x569e11['v']=_0x32f139;}if((_0x2b1e6a!=null&&_0x2b1e6a['i']||(_0x2b1e6a==null?void 0x0:_0x2b1e6a['i'])===0x0)&&(_0x569e11||(_0x569e11={}),_0x569e11['fi']=_0x2b1e6a['i']),_0x2b1e6a!=null&&_0x2b1e6a['s']&&(_0x569e11||(_0x569e11={}),_0x569e11['pbt']=_0x2b1e6a['s']),_0x544eb1&&(_0x569e11||(_0x569e11={}),_0x569e11['s']=_0xd4e2da),_0x418dae&&_0x569e11!=null&&_0x569e11['v']&&_0x569e11[_0x480e06(0x190)]!==_0x5ab2d7[_0x480e06(0x255)][_0x480e06(0x3f7)]&&_0x569e11['pbt']!==_0x5ab2d7[_0x480e06(0x255)]['Subtotal']){const _0x3997df=String(_0x569e11['v']),{dateType:_0x28304a}=_0x418dae;_0x569e11['v']=_0xe5b251(_0x693caf,_0x28304a,_0x3997df),_0x569e11['t']=_0x3aab5b[_0x480e06(0x16f)]['STRING'];}return _0x569e11;},_0x489212=(_0x569214,_0x234248,_0x1cacef,_0x2687af)=>{const _0x2efd1e=_0x6daf50;var _0x23a277,_0xb9205c,_0x5373e0,_0x337483,_0x2f69b6,_0x486594,_0x5598fc,_0x400765,_0x37994b,_0x40d898,_0x1abafa,_0x8ba83a,_0x4df9d8,_0x52c468;const _0x191540=_0x1cacef[_0x2efd1e(0x233)],{cornerView:_0x3593b2,rowView:_0x15d79c,colView:_0x57a2eb,dataView:_0xd3baf5,pageView:_0x8d64ea,formatMap:_0x18b7af,groupInfo:_0xc862fc}=_0x234248,{row:_0x3e7a61,col:_0x3235ed}=_0x191540,_0x4540ad=new _0x3aab5b['ObjectMatrix'](),_0x56be9e={},_0x51ae6a={},_0x4c1cfd={},_0x122d47={},_0x4104b5={};let _0x462527=_0x3e7a61,_0x17ce64=_0x3235ed;Object['keys'](_0x8d64ea[_0x2efd1e(0x354)])[_0x2efd1e(0x3d8)](_0x21a927=>{const _0x1c5bc9=_0x2efd1e;Object[_0x1c5bc9(0x30e)](_0x8d64ea['data'][Number(_0x21a927)])[_0x1c5bc9(0x3d8)](_0x3a33cb=>{const _0x2a56fa=_0x1c5bc9,_0x3fcaa4={..._0x8d64ea[_0x2a56fa(0x354)][Number(_0x21a927)][Number(_0x3a33cb)]};_0x4540ad['setValue'](Number(_0x21a927)+_0x462527,Number(_0x3a33cb)+_0x17ce64,_0x1ac6ba(_0x569214,_0x3fcaa4,_0x34ff93[_0x2a56fa(0x1fb)]));});});const _0x437eba=Object[_0x2efd1e(0x30e)](_0x8d64ea['data'])[_0x2efd1e(0x299)];_0x462527+=_0x437eba+(_0x437eba?_0x50ed31:0x0);const _0x1b179f=_0x3593b2[_0x2efd1e(0x3c8)](),_0x4b1389=_0x3593b2[_0x2efd1e(0x183)]();for(let _0x575245=0x0;_0x575245<_0x1b179f;_0x575245++)for(let _0x30f290=0x0;_0x30f290<_0x4b1389;_0x30f290++){const _0x4f086b={...(_0xb9205c=(_0x23a277=_0x3593b2['data'])==null?void 0x0:_0x23a277[_0x575245])==null?void 0x0:_0xb9205c[_0x30f290]};_0x4f086b&&((_0x5373e0=_0x15d79c[_0x2efd1e(0x14f)][_0x30f290])!=null&&_0x5373e0[_0x2efd1e(0x334)])&&_0x30f290===_0x4b1389-0x1&&_0x575245===_0x1b179f-0x1&&(_0x4f086b['v']=''+_0x2687af[_0x2efd1e(0x237)]),_0x4540ad[_0x2efd1e(0x3e5)](_0x575245+_0x462527,_0x30f290+_0x17ce64,_0x1ac6ba(_0x569214,_0x4f086b,_0x34ff93[_0x2efd1e(0x3c9)]));}for(let _0x2ddf56=0x0;_0x2ddf56<_0x3593b2[_0x2efd1e(0x377)][_0x2efd1e(0x299)];_0x2ddf56++)_0x3593b2[_0x2efd1e(0x377)][_0x2ddf56]&&(_0x4c1cfd[''+(_0x2ddf56+_0x17ce64)]=_0x3593b2[_0x2efd1e(0x377)][_0x2ddf56]);_0x17ce64+=_0x4b1389;const _0x1e8b4a=_0x57a2eb['headerMap'],_0x5b3d5e=_0x57a2eb[_0x2efd1e(0x1c3)]()>=0x0?_0x57a2eb[_0x2efd1e(0x1c3)]()+0x1:0x0,_0x4a4384=_0x57a2eb[_0x2efd1e(0x1bd)]()>=0x0?_0x57a2eb[_0x2efd1e(0x1bd)]()+0x1:0x0;for(let _0x119f12=0x0;_0x119f12<_0x4a4384;_0x119f12++){for(let _0x484019=0x0;_0x484019<_0x5b3d5e;_0x484019++){const _0x6e382e={...(_0x2f69b6=(_0x337483=_0x57a2eb[_0x2efd1e(0x354)])==null?void 0x0:_0x337483[_0x484019])==null?void 0x0:_0x2f69b6[_0x119f12]},_0x275175=(_0x486594=_0x1e8b4a[_0x484019])==null?void 0x0:_0x486594[_0x2efd1e(0x124)],_0x229ad2=_0x18b7af[_0x275175],_0x402362=_0xc862fc[_0x275175];_0x6e382e&&(_0x6e382e['v']=_0x574731(_0x6e382e,_0x484019===0x0&&((_0x5598fc=_0x57a2eb[_0x2efd1e(0x33b)](_0x119f12+0x1))==null?void 0x0:_0x5598fc[_0x2efd1e(0x334)]),_0x229ad2,_0x2687af));let _0x2a6eeb;_0x229ad2?_0x2a6eeb={..._0x34ff93[_0x2efd1e(0x380)],'n':{'pattern':_0x229ad2}}:_0x2a6eeb={..._0x34ff93[_0x2efd1e(0x380)]},_0x4540ad[_0x2efd1e(0x3e5)](_0x484019+_0x462527,_0x119f12+_0x17ce64,_0x1ac6ba(_0x569214,_0x6e382e,_0x2a6eeb,_0x402362));}_0x57a2eb[_0x2efd1e(0x377)][_0x119f12]&&(_0x51ae6a[''+(_0x119f12+_0x17ce64)]=_0x57a2eb['info'][_0x119f12]),_0x57a2eb[_0x2efd1e(0x14f)][_0x119f12+0x1]&&(_0x4104b5[''+(_0x119f12+_0x462527+0x1)]=_0x57a2eb['headerMap'][_0x119f12+0x1]);}_0x462527+=_0x1b179f;const _0x51727a=_0x15d79c[_0x2efd1e(0x14f)],_0x2333e4=_0x15d79c[_0x2efd1e(0x1c3)]()>=0x0?_0x15d79c[_0x2efd1e(0x1c3)]()+0x1:0x0,_0x5c30e8=_0x15d79c[_0x2efd1e(0x1bd)]()>=0x0?_0x15d79c[_0x2efd1e(0x1bd)]()+0x1:0x0;for(let _0x96d8f5=0x0;_0x96d8f5<_0x2333e4;_0x96d8f5++){for(let _0x1f42bd=0x0;_0x1f42bd<_0x5c30e8;_0x1f42bd++){const _0x4b86ae={...(_0x37994b=(_0x400765=_0x15d79c[_0x2efd1e(0x354)])==null?void 0x0:_0x400765[_0x96d8f5])==null?void 0x0:_0x37994b[_0x1f42bd]},_0x2e54fe=(_0x40d898=_0x51727a[_0x1f42bd])==null?void 0x0:_0x40d898[_0x2efd1e(0x124)],_0x4692d1=_0x18b7af[_0x2e54fe],_0x45bcb5=_0xc862fc[_0x2e54fe];_0x4b86ae&&(_0x4b86ae['v']=_0x574731(_0x4b86ae,!0x1,_0x4692d1,_0x2687af));let _0xcbb212;_0x15d79c[_0x2efd1e(0x377)][_0x96d8f5][_0x2efd1e(0x289)]===_0x15d79c[_0x2efd1e(0x183)]()?_0xcbb212=_0x34ff93[_0x2efd1e(0x1a2)]:_0x15d79c[_0x2efd1e(0x377)][_0x96d8f5][_0x2efd1e(0x2bb)]?_0xcbb212=_0x15d79c[_0x2efd1e(0x377)][_0x96d8f5][_0x2efd1e(0x289)]===0x0?_0x34ff93[_0x2efd1e(0x41d)]:_0x34ff93['subTotalStyle']:_0xcbb212=_0x34ff93[_0x2efd1e(0x217)],_0x4692d1&&(_0xcbb212={..._0xcbb212,'n':{'pattern':_0x4692d1}}),_0x4540ad['setValue'](_0x96d8f5+_0x462527,_0x1f42bd+_0x3235ed,_0x1ac6ba(_0x569214,_0x4b86ae,_0xcbb212,_0x45bcb5));}_0x15d79c[_0x2efd1e(0x377)][_0x96d8f5]&&(_0x56be9e[''+(_0x96d8f5+_0x462527)]=_0x15d79c[_0x2efd1e(0x377)][_0x96d8f5]),_0x15d79c['headerMap'][_0x96d8f5]&&(_0x122d47[''+(_0x96d8f5+_0x3235ed)]=_0x15d79c[_0x2efd1e(0x14f)][_0x96d8f5]);}const _0x115b17=_0xd3baf5[_0x2efd1e(0x3c8)](),_0x3e87ea=_0xd3baf5[_0x2efd1e(0x183)]();for(let _0x3e03cf=0x0;_0x3e03cf<_0x115b17;_0x3e03cf++)for(let _0x24f499=0x0;_0x24f499<_0x3e87ea;_0x24f499++){const _0x511feb={...(_0x8ba83a=(_0x1abafa=_0xd3baf5['data'])==null?void 0x0:_0x1abafa[_0x3e03cf])==null?void 0x0:_0x8ba83a[_0x24f499]};let _0xdc327e;_0x15d79c[_0x2efd1e(0x377)][_0x3e03cf][_0x2efd1e(0x2bb)]?_0xdc327e=_0x15d79c[_0x2efd1e(0x377)][_0x3e03cf][_0x2efd1e(0x289)]===0x0?_0x34ff93[_0x2efd1e(0x41d)]:_0x34ff93[_0x2efd1e(0x3fd)]:_0xdc327e=_0x34ff93[_0x2efd1e(0x3ac)];const _0x40113e=_0x15d79c[_0x2efd1e(0x377)][_0x3e03cf][_0x2efd1e(0x311)],_0x28e55d=_0x57a2eb[_0x2efd1e(0x377)][_0x24f499][_0x2efd1e(0x311)],_0x7fc5c6=Math[_0x2efd1e(0x3ec)](_0x40113e,_0x28e55d),_0x585979=_0x1cacef[_0x2efd1e(0x2ca)][_0x2efd1e(0x244)][_0x2efd1e(0x134)]();let _0x12f2ff='';_0x7fc5c6<0x0?_0x12f2ff=(_0x4df9d8=_0x585979[0x0])!=null?_0x4df9d8:'':_0x12f2ff=(_0x52c468=_0x585979[_0x7fc5c6])!=null?_0x52c468:'';const _0x53c599=_0x18b7af[_0x12f2ff];_0x53c599&&(_0xdc327e={..._0xdc327e,'n':{'pattern':_0x53c599}}),_0x4540ad[_0x2efd1e(0x3e5)](_0x3e03cf+_0x462527,_0x24f499+_0x17ce64,_0x1ac6ba(_0x569214,_0x511feb,_0xdc327e));}return{'valueMatrix':_0x4540ad,'rowInfo':_0x56be9e,'colInfo':_0x51ae6a,'cornerInfo':_0x4c1cfd,'rowHeaderMap':_0x122d47,'colHeaderMap':_0x4104b5};};function _0x574731(_0x1db22c,_0x50ea0f,_0xbbfbb9,_0x4b2a99){const _0x586918=_0x6daf50;let _0x41c91d=_0x1db22c['v'];_0x50ea0f&&(_0x41c91d=''+_0x4b2a99[_0x586918(0x237)]);const _0xc47869=_0x1db22c['t']&&(_0x1db22c['t']&_0x5ab2d7[_0x586918(0x3b0)][_0x586918(0x3a5)])>0x0;if(_0xc47869&&(_0x41c91d=''+_0x4b2a99['sheets-pivot.blank']),_0x1db22c['s']===_0x5ab2d7[_0x586918(0x255)]['Subtotal']){let _0x2963d9=_0x41c91d,_0x49a74d='';_0x5ab2d7[_0x586918(0x372)](_0x41c91d)&&(_0x2963d9=_0x41c91d[_0x586918(0x2a0)],_0x49a74d=_0x41c91d[_0x586918(0x396)]);const _0x174652=_0xbbfbb9&&!_0xc47869?_0x3aab5b['numfmt'][_0x586918(0x40c)](_0xbbfbb9,Number(_0x2963d9)):_0x2963d9;_0x49a74d?_0x41c91d=_0x174652+'\x20'+_0x49a74d:_0x41c91d=_0x174652+'\x20'+_0x4b2a99[_0x586918(0x25f)];}else _0x1db22c['s']===_0x5ab2d7['PivotCellStyleTypeEnum'][_0x586918(0x3f7)]&&(_0x41c91d=_0x41c91d+'\x20'+_0x4b2a99[_0x586918(0x210)]);return _0x41c91d;}function _0x1cbd0f(_0x2575ec){const _0x72dccd=_0x6daf50;if(_0x5ab2d7[_0x72dccd(0x3d7)](_0x2575ec)){const {errorType:_0x513991}=_0x2575ec;switch(_0x513991){case _0x5ab2d7['PivotErrorTypeEnum']['Div0']:return _0x1cd130['ErrorType'][_0x72dccd(0x1f9)];case _0x5ab2d7[_0x72dccd(0x418)]['NotNumber']:return _0x1cd130[_0x72dccd(0x141)]['NUM'];case _0x5ab2d7[_0x72dccd(0x418)][_0x72dccd(0x27f)]:return _0x1cd130[_0x72dccd(0x141)][_0x72dccd(0x29b)];case _0x5ab2d7[_0x72dccd(0x418)][_0x72dccd(0x19c)]:return _0x1cd130[_0x72dccd(0x141)][_0x72dccd(0x29b)];case _0x5ab2d7[_0x72dccd(0x418)][_0x72dccd(0x34b)]:return _0x1cd130[_0x72dccd(0x141)][_0x72dccd(0x41f)];}}return _0x2575ec;}function _0x56e08b(_0x3acc35,_0x51a3ae,_0x37685f=!0x1,_0x5a4ccc=!0x1){const _0x2c65bb=_0x6daf50,{data:_0x1f6bd3}=_0x51a3ae,_0x236683=_0x51a3ae[_0x2c65bb(0x3c8)](),_0x4f9390=_0x51a3ae[_0x2c65bb(0x183)]();if(_0x236683<=0x0||_0x4f9390<=0x0)return[];const _0x427a7d=_0x51a3ae[_0x2c65bb(0x1bd)](),_0x1abb46=_0x51a3ae[_0x2c65bb(0x1c3)](),_0x3a1bc5=_0x5a4ccc?_0x1abb46>=0x0?_0x1abb46+0x1:0x0:_0x236683,_0x957f93=_0x5a4ccc?_0x427a7d>=0x0?_0x427a7d+0x1:0x0:_0x4f9390,{row:_0x3ec793,col:_0x561802}=_0x3acc35,_0x174325=_0x3ec793,_0x3545ca=_0x561802;if(_0x37685f){const _0x21a5d9=[];for(const [_0x3a1a17,_0x373b25]of Object[_0x2c65bb(0x1b1)](_0x1f6bd3))for(const [_0x1ab37b,_0x9baaf6]of Object['entries'](_0x373b25))_0x21a5d9[_0x2c65bb(0x337)](_0x3aab5b['cellToRange'](_0x174325+Number(_0x3a1a17),_0x3545ca+Number(_0x1ab37b)));return _0x21a5d9;}else{const _0x524b48=_0x5a4ccc?_0x3a1bc5>0x0?0x1:0x0:0x1,_0x3ecf4a=_0x5a4ccc?_0x957f93>0x0?0x1:0x0:0x1,_0x467bd8=_0x3ec793+_0x3a1bc5-_0x524b48,_0x5c6f1e=_0x561802+_0x957f93-_0x3ecf4a;return[{'startRow':_0x174325,'startColumn':_0x3545ca,'endRow':_0x467bd8,'endColumn':_0x5c6f1e}];}}const _0x332892='SHEET_PIVOT_IN_MAIN_THREAD',_0x4b122d=_0x6daf50(0x3ff);var _0x17706b=(_0x580aa8=>(_0x580aa8[_0x6daf50(0x3c1)]=_0x6daf50(0x12e),_0x580aa8['Panel']=_0x6daf50(0x1e8),_0x580aa8[_0x6daf50(0x1a0)]=_0x6daf50(0x429),_0x580aa8[_0x6daf50(0x346)]=_0x6daf50(0x346),_0x580aa8[_0x6daf50(0x2f0)]='addPivotTable',_0x580aa8['MovePivotField']=_0x6daf50(0x13f),_0x580aa8[_0x6daf50(0x2f3)]=_0x6daf50(0x1ce),_0x580aa8[_0x6daf50(0x2e8)]='setPivotCollapse',_0x580aa8[_0x6daf50(0x2c5)]='setPivotFilter',_0x580aa8[_0x6daf50(0x295)]='setPivotSort',_0x580aa8[_0x6daf50(0x191)]=_0x6daf50(0x437),_0x580aa8[_0x6daf50(0x41c)]='updatePivotSource',_0x580aa8[_0x6daf50(0x42e)]=_0x6daf50(0x348),_0x580aa8[_0x6daf50(0x347)]=_0x6daf50(0x2d5),_0x580aa8['SetValuePivotFilter']=_0x6daf50(0x349),_0x580aa8[_0x6daf50(0x25c)]=_0x6daf50(0x369),_0x580aa8[_0x6daf50(0x156)]=_0x6daf50(0x373),_0x580aa8))(_0x17706b||{});const _0x13bd35={'sheets-pivot.blankValue':'(Blank)','sheets-pivot.columnName':_0x6daf50(0x1fe),'sheets-pivot.subTotalText':'Total','sheets-pivot.grandTotalText':'Grand\x20Total','sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x6daf50(0x160),'sheets-pivot.countName':_0x6daf50(0x1f8),'sheets-pivot.countNumsName':_0x6daf50(0x1f8),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x6daf50(0x171),'sheets-pivot.productName':_0x6daf50(0x151),'sheets-pivot.stdDevName':_0x6daf50(0x438),'sheets-pivot.stdDevpName':_0x6daf50(0x16b),'sheets-pivot.sumName':'Sum\x20of\x20','sheets-pivot.varName':_0x6daf50(0x30a),'sheets-pivot.varpName':_0x6daf50(0x131),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':'value','sheets-pivot.blank':_0x6daf50(0x3a5),'sheets-pivot.emptyPivot.filter':'Filter','sheets-pivot.emptyPivot.row':_0x6daf50(0x2f7),'sheets-pivot.emptyPivot.column':_0x6daf50(0x1f1),'sheets-pivot.emptyPivot.values':_0x6daf50(0x3a6)},_0x2929b8={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x4f637e=_0x3aab5b['createAsyncInterceptorKey'](_0x6daf50(0x35d)),_0x43df9f=_0x3aab5b['createInterceptorKey'](_0x6daf50(0x36f));var _0x284237=(_0x59c40d=>(_0x59c40d[_0x6daf50(0x34a)]=_0x6daf50(0x34a),_0x59c40d['delete']=_0x6daf50(0x356),_0x59c40d[_0x6daf50(0x28c)]=_0x6daf50(0x28c),_0x59c40d))(_0x284237||{}),_0x1ab225=(_0x4ee8c2=>(_0x4ee8c2[_0x6daf50(0x368)]=_0x6daf50(0x34a),_0x4ee8c2[_0x6daf50(0x149)]=_0x6daf50(0x3eb),_0x4ee8c2['Delete']=_0x6daf50(0x356),_0x4ee8c2))(_0x1ab225||{});const _0xba7c91={0x0:'T',0x1:'m',0x2:'Z',0x3:'q',0x4:'W',0x5:'8',0x6:'v',0x7:'9',0x8:'J',0x9:'y','M':'0','Z':'1','s':'2','P':'3','B':'4','c':'5','N':'6','n':'7','b':'a','A':'b','U':'c','w':'d','y':'e','W':'f','H':'g','Q':'h','g':'i','D':'j','L':'k','o':'l','u':'n','J':'o','d':'p','j':'r','F':'s','q':'t','O':'u','x':'w','m':'x','t':'z','T':'A','h':'B','C':'C','v':'D','R':'E','l':'F','f':'G','X':'H','a':'I','I':'K','r':'L','i':'M','E':'N','K':'O','p':'P','k':'Q','Y':'R','e':'S','z':'U','V':'V','S':'X','G':'Y'},_0x1274f4=_0x6daf50(0x1d2),_0x549956={'type':_0x3aab5b['CommandType']['MUTATION'],'id':_0x6daf50(0x42f),'handler':()=>!0x0},_0x1af275={'type':_0x3aab5b['CommandType'][_0x6daf50(0x13c)],'id':_0x6daf50(0x225),'handler':()=>!0x0},_0x261bb1={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x130),'handler':()=>!0x0},_0x19396d={'type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'id':'sheet.mutation.send-pivot-config-local','handler':()=>!0x0},_0x3db2ca={'type':_0x3aab5b['CommandType'][_0x6daf50(0x13c)],'id':_0x6daf50(0x42a),'handler':()=>!0x0},_0x1d0b62=_0x46c6de=>{const _0x407895=_0x6daf50;var _0x45accf;return((_0x45accf=_0x46c6de[_0x407895(0x18c)])==null?void 0x0:_0x45accf[_0x407895(0x254)][_0x407895(0x264)](/\r\n$/,''))||'';};class _0x464dd9 extends _0x5ab2d7[_0x6daf50(0x1aa)]{constructor(_0x2ffbc1,_0x409d3a){const _0x18b32f=_0x6daf50;super(),_0x3f9e42(this,'rangeKeyMap',{}),_0x3f9e42(this,_0x18b32f(0x24e)),_0x3f9e42(this,_0x18b32f(0x35e)),(this[_0x18b32f(0x24e)]=_0x409d3a,this[_0x18b32f(0x35e)]=_0x2ffbc1);}['initDataRanges'](){const _0xdf27e3=_0x6daf50;for(const _0x248c03 in this[_0xdf27e3(0x2a7)]){const _0x5ba371=this[_0xdf27e3(0x2a7)][_0x248c03],_0x33f00a=_0x5ba371['getRangeKey']();this[_0xdf27e3(0x202)][_0x33f00a]=_0x5ba371[_0xdf27e3(0x1cb)]();}}[_0x6daf50(0x367)](){const _0x4ec6b0=_0x6daf50,_0x448830=this[_0x4ec6b0(0x35e)];return _0x155576[_0x4ec6b0(0x3d3)](_0x448830);}[_0x6daf50(0x1c1)](_0x161067){const _0xa8ab8=_0x6daf50,_0x258fe4=this['dataFields'][_0x161067]['rangeKey'];delete this[_0xa8ab8(0x2a7)][_0x161067],delete this[_0xa8ab8(0x202)][_0x258fe4];}[_0x6daf50(0x1cd)](_0x4109a9){const _0x50c776=_0x6daf50;this[_0x50c776(0x2a7)][_0x4109a9[_0x50c776(0x1cb)]()]=_0x4109a9;}[_0x6daf50(0x270)](_0x5a13bc){const _0x530cea=_0x6daf50;var _0x2fea49,_0x76d8d3;const _0x28bf9c=this[_0x530cea(0x35e)][_0x530cea(0x360)](_0x5a13bc);if(_0x28bf9c){const {unitId:_0x4e9f18,subUnitId:_0x2aee9b}=_0x28bf9c,_0x419eec=(_0x2fea49=this[_0x530cea(0x35e)][_0x530cea(0x3bd)](_0x4e9f18,_0x2aee9b,_0x5a13bc))==null?void 0x0:_0x2fea49[_0x530cea(0x133)];this[_0x530cea(0x35e)][_0x530cea(0x238)]({'token':_0x5a13bc,'type':_0x284237[_0x530cea(0x356)],'dataRangeInfo':_0x419eec});}(_0x76d8d3=this['getCollection'](_0x5a13bc))==null||_0x76d8d3['dispose'](),delete this['collections'][_0x5a13bc];}[_0x6daf50(0x43a)](_0x19c9f5,_0x21f908){const _0x5e9720=_0x6daf50,{sheetName:_0x2eb9e1,unitId:_0x1f47f1,range:_0x28326c}=_0x19c9f5,{startRow:_0xdbbbe8,endRow:_0x40f144}=_0x28326c;return _0x1cd130[_0x5e9720(0x263)](_0x1f47f1,_0x2eb9e1,{'startRow':_0xdbbbe8,'endRow':_0x40f144,'startColumn':_0x21f908,'endColumn':_0x21f908});}['getDataFieldByRangeKey'](_0x26d133){const _0x5e0fa2=_0x6daf50;return this[_0x5e0fa2(0x2a7)][this[_0x5e0fa2(0x202)][_0x26d133]];}[_0x6daf50(0x340)](_0x2a5338,_0x593338){const _0x421ca0=_0x6daf50;this[_0x421ca0(0x202)][_0x2a5338]=_0x593338;}[_0x6daf50(0x21d)](_0x40ee02,_0x4c7864){const _0x45dc25=_0x6daf50;this[_0x45dc25(0x202)][_0x4c7864]=this[_0x45dc25(0x202)][_0x40ee02],delete this['rangeKeyMap'][_0x40ee02];}[_0x6daf50(0x17c)](_0x53f946,_0x3048eb,_0x4c1a4d,_0xd28241){const _0x181da9=_0x6daf50,_0x52792b=new _0x5ab2d7[(_0x181da9(0x2bf))](this);_0x52792b[_0x181da9(0x1e3)](_0x3048eb);const _0x4fc80a=[];let _0x43aead=0x0;for(const _0x453467 of _0x52792b['fieldIds']){const _0x5a64b1=this[_0x181da9(0x43a)](_0x4c1a4d,_0x43aead),_0x1572fb=this['dataFields'][_0x453467];_0x1572fb&&(_0x1572fb[_0x181da9(0x3a8)]=_0x5a64b1,this[_0x181da9(0x340)](_0x5a64b1,_0x453467),_0x4fc80a['push']({'index':_0x43aead,'dataField':_0x1572fb})),_0x43aead++;}return this[_0x181da9(0x1ec)](_0x53f946,_0x52792b,_0x4c1a4d,_0xd28241),{'collection':_0x52792b,'updateDataFieldList':_0x4fc80a};}[_0x6daf50(0x28e)](_0x2c483e,_0x5a573b){const _0x1f7e64=_0x6daf50;return _0x2c483e[_0x1f7e64(0x26a)]===_0x3aab5b[_0x1f7e64(0x262)][_0x1f7e64(0x2eb)]?{'startRow':0x0,'startColumn':_0x2c483e[_0x1f7e64(0x352)],'endRow':_0x5a573b[_0x1f7e64(0x3c8)]()-0x1,'endColumn':_0x2c483e[_0x1f7e64(0x3e9)]}:{'startRow':_0x2c483e['startRow'],'startColumn':_0x2c483e[_0x1f7e64(0x352)],'endRow':_0x2c483e['endRow'],'endColumn':_0x2c483e[_0x1f7e64(0x3e9)]};}[_0x6daf50(0x29a)](_0x22a21b){const _0x48a8a8=_0x6daf50,{sheetName:_0x5469ae,range:_0xffa2c4}=_0x22a21b,_0x2eab2e=this[_0x48a8a8(0x24e)][_0x48a8a8(0x30b)](_0x3aab5b[_0x48a8a8(0x3b5)]['UNIVER_SHEET']),_0x3b1d50=_0x2eab2e['getSheetBySheetName'](_0x5469ae),_0x2d36dd=_0x3b1d50[_0x48a8a8(0x12d)](),{startColumn:_0x3147de,startRow:_0x2aefb4,endColumn:_0x2bc39a}=this[_0x48a8a8(0x28e)](_0xffa2c4,_0x3b1d50),_0xa6c889=_0x2eab2e[_0x48a8a8(0x40b)](),_0x1478fe=new _0x5ab2d7['FieldsCollection'](this);_0x1478fe[_0x48a8a8(0x315)](_0x22a21b);const _0x1726f6=[],_0x5e3756={};for(let _0x1db0f1=_0x3147de;_0x1db0f1<=_0x2bc39a;_0x1db0f1++){const _0xf565d4=_0x2d36dd[_0x48a8a8(0x123)](_0x2aefb4,_0x1db0f1),_0x4cef17=this[_0x48a8a8(0x43a)](_0x22a21b,_0x1db0f1),_0x1bb9a4=this[_0x48a8a8(0x378)](_0x4cef17);if(_0x1bb9a4)_0x1478fe[_0x48a8a8(0x1e2)](_0x1bb9a4['getId'](),_0x1bb9a4[_0x48a8a8(0x31d)]());else{const _0x240b1b=this['createDataFieldId']();let _0x3958a7=this[_0x48a8a8(0x1c4)](_0xf565d4,_0xa6c889,_0x5e3756);_0x5ab2d7[_0x48a8a8(0x27d)](_0x3958a7)&&(_0x3958a7=_0x3aab5b[_0x48a8a8(0x1be)][_0x48a8a8(0x40c)](_0x3958a7['f'],Number(_0x3958a7['v'])));const _0x50ed8c=this[_0x48a8a8(0x2fe)](_0x3958a7,_0x1db0f1),_0x468616=new _0x5ab2d7[(_0x48a8a8(0x436))](_0x240b1b,_0x50ed8c,_0x5ab2d7[_0x48a8a8(0x329)](0x3));_0x468616[_0x48a8a8(0x3a8)]=_0x4cef17,this[_0x48a8a8(0x2a7)][_0x240b1b]=_0x468616,_0x1478fe[_0x48a8a8(0x1e2)](_0x240b1b,_0x50ed8c),_0x1726f6['push']({'index':_0x1db0f1,'dataField':_0x468616});}}return{'updateDataFieldList':_0x1726f6,'collection':_0x1478fe};}[_0x6daf50(0x2b3)](_0x4b5f79){const _0x1f0ad9=_0x6daf50;return this[_0x1f0ad9(0x35e)]['getTextInfo']()[_0x1f0ad9(0x2fa)]+'\x20'+_0x3aab5b[_0x1f0ad9(0x204)](_0x4b5f79);}[_0x6daf50(0x2fe)](_0x2c1f01,_0x535ae2){return _0x2c1f01==null||_0x2c1f01===''?this['_getAutoName'](_0x535ae2):String(_0x2c1f01);}[_0x6daf50(0x34e)](_0x24a2ca){const _0x1fea1a=_0x6daf50;return this[_0x1fea1a(0x1e7)][_0x24a2ca];}[_0x6daf50(0x1ec)](_0x39e030,_0x903e6,_0x55781c,_0x195921){const _0x4decb9=_0x6daf50;this[_0x4decb9(0x1e7)][_0x39e030]=_0x903e6,_0x903e6[_0x4decb9(0x315)](_0x55781c),this[_0x4decb9(0x35e)]['broadcastCollectionChange']({'token':_0x39e030,'type':_0x284237[_0x4decb9(0x34a)],'dataRangeInfo':_0x55781c,'targetCellInfo':_0x195921});}['handleMoveRange'](_0x2f5544,_0x377f4d){const _0x5f39f6=_0x6daf50,_0x157526=this[_0x5f39f6(0x34e)](_0x2f5544),_0x346988=_0x157526[_0x5f39f6(0x221)]();let _0x2d7c65=0x0;for(const _0x1ad218 of _0x346988){const _0x233e54=_0x157526[_0x5f39f6(0x1dd)](_0x1ad218),_0x1a38e3=this[_0x5f39f6(0x43a)](_0x377f4d,_0x2d7c65);this[_0x5f39f6(0x21d)](_0x233e54[_0x5f39f6(0x3a8)],_0x1a38e3),_0x2d7c65++;}}[_0x6daf50(0x256)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x6daf50(0x40f)](_0x184a26,_0x32d24d){const _0x551d9d=_0x6daf50;if(this[_0x551d9d(0x34e)](_0x184a26)){const _0x91618f=this[_0x551d9d(0x243)](_0x32d24d),_0x88becd=[];for(const _0x2b2306 of _0x91618f)this[_0x551d9d(0x202)][_0x2b2306]!==void 0x0&&_0x88becd[_0x551d9d(0x337)](this['rangeKeyMap'][_0x2b2306]);const _0x566496=this[_0x551d9d(0x2ee)](_0x184a26),_0x5ae6f3=[],_0xb8a7ff=new Set(_0x88becd);for(const _0x16a7fa of _0x566496)_0xb8a7ff[_0x551d9d(0x271)](_0x16a7fa)||_0x5ae6f3[_0x551d9d(0x337)](_0x16a7fa);return _0x5ae6f3;}}[_0x6daf50(0x1b9)](_0x584732,_0x34393b,_0x1cbcd9,_0x22b6f8,_0x13bd61){const _0x52411e=_0x6daf50;return _0x34393b&&_0x34393b[_0x52411e(0x123)](_0x22b6f8,_0x13bd61)?_0x34393b['getValue'](_0x22b6f8,_0x13bd61):_0x1cbcd9&&_0x1cbcd9[_0x52411e(0x123)](_0x22b6f8,_0x13bd61)?_0x1cbcd9[_0x52411e(0x123)](_0x22b6f8,_0x13bd61):_0x584732[_0x52411e(0x123)](_0x22b6f8,_0x13bd61);}[_0x6daf50(0x2df)](_0x133b6d,_0x47d4b6,_0x990882,_0x489809){const _0x38796f=_0x6daf50,_0x559e04=this['dataFields'][_0x133b6d];if(!_0x559e04)return;const {subUnitId:_0x10420d,range:_0x545e8c,unitId:_0xad5a1f}=_0x47d4b6,_0x99880=this[_0x38796f(0x24e)][_0x38796f(0x422)](_0xad5a1f);if(!_0x99880){console['error'](_0x38796f(0x2d2));return;}const _0x5d8394=_0x99880[_0x38796f(0x2a1)](_0x10420d),_0xb6473a=_0x5d8394[_0x38796f(0x12d)](),{arrayFormulaCellDataMatrix:_0x15c177,unitDataMatrix:_0x3952ea}=_0x489809||{},{startRow:_0x38f82e,startColumn:_0x4b66e8,endRow:_0x373b0a}=this[_0x38796f(0x28e)](_0x545e8c,_0x5d8394);_0x559e04[_0x38796f(0x43e)]();const _0x4cd86e=_0x99880[_0x38796f(0x40b)](),_0x44994b={},_0x491ed4=this[_0x38796f(0x1b9)](_0xb6473a,_0x15c177,_0x3952ea,_0x38f82e,_0x4b66e8+_0x990882);let _0x559654=this[_0x38796f(0x1c4)](_0x491ed4,_0x4cd86e,_0x44994b);_0x5ab2d7[_0x38796f(0x27d)](_0x559654)&&(_0x559654=_0x3aab5b['numfmt'][_0x38796f(0x40c)](_0x559654['f'],Number(_0x559654['v'])));const _0x5b5759=this['uniqueDataFieldName'](_0x559654,_0x4b66e8+_0x990882);_0x559e04[_0x38796f(0x3a2)](_0x5b5759);for(let _0x1c008c=_0x38f82e+0x1;_0x1c008c<=_0x373b0a;_0x1c008c++){const _0x30fdcb=this[_0x38796f(0x1b9)](_0xb6473a,_0x15c177,_0x3952ea,_0x1c008c,_0x4b66e8+_0x990882);_0x559e04[_0x38796f(0x27a)](this[_0x38796f(0x1c4)](_0x30fdcb,_0x4cd86e,_0x44994b),_0x1c008c-0x1-_0x38f82e);}}[_0x6daf50(0x179)](_0x2a613b,_0x196265,_0x45e938){const _0x34d37e=_0x6daf50,{subUnitId:_0xdc55e,range:_0x395a53,unitId:_0x526f51}=_0x45e938,_0x427495=this[_0x34d37e(0x24e)][_0x34d37e(0x422)](_0x526f51);if(!_0x427495){console['error'](_0x34d37e(0x2d2));return;}const _0x1ebe26=_0x427495[_0x34d37e(0x2a1)](_0xdc55e),_0x1c68b1=_0x1ebe26['getCellMatrix'](),{startRow:_0x2cb2d5,startColumn:_0x3f46a8,endRow:_0xdf94f7}=this[_0x34d37e(0x28e)](_0x395a53,_0x1ebe26),_0xc7d59e=_0x427495[_0x34d37e(0x40b)](),_0x557449={};for(const {dataField:_0xdf92dc,index:_0x4b7882}of _0x196265){_0xdf92dc[_0x34d37e(0x43e)]();const _0x33c1f2=this[_0x34d37e(0x1b9)](_0x1c68b1,void 0x0,void 0x0,_0x2cb2d5,_0x3f46a8+_0x4b7882);let _0x246770=this[_0x34d37e(0x1c4)](_0x33c1f2,_0xc7d59e,_0x557449);_0x5ab2d7['isDateValue'](_0x246770)&&(_0x246770=_0x3aab5b[_0x34d37e(0x1be)]['format'](_0x246770['f'],Number(_0x246770['v'])));const _0xbfa41a=this[_0x34d37e(0x2fe)](_0x246770,_0x3f46a8+_0x4b7882);_0xdf92dc[_0x34d37e(0x3a2)](_0xbfa41a);}_0x2a613b[_0x34d37e(0x246)]();for(let _0x3e5896=_0x2cb2d5+0x1;_0x3e5896<=_0xdf94f7;_0x3e5896++)for(const {index:_0x44f157,dataField:_0x1e3fb7}of _0x196265){const _0x43cdb8=_0x1c68b1[_0x34d37e(0x123)](_0x3e5896,_0x3f46a8+_0x44f157);_0x1e3fb7['addRecord'](this[_0x34d37e(0x1c4)](_0x43cdb8,_0xc7d59e,_0x557449),_0x3e5896-0x1-_0x2cb2d5);}_0x2a613b[_0x34d37e(0x3d1)](_0xdf94f7-_0x2cb2d5);}[_0x6daf50(0x243)](_0x473a19){const _0x155be7=_0x6daf50,{range:_0x32ae5c}=_0x473a19,{startColumn:_0x564773,endColumn:_0x24e899}=_0x32ae5c,_0x3a8ed7=[];for(let _0x56264d=_0x564773;_0x56264d<=_0x24e899;_0x56264d++)_0x3a8ed7[_0x155be7(0x337)](this[_0x155be7(0x43a)](_0x473a19,_0x56264d));return _0x3a8ed7;}['adjustSheetCellData'](_0x52833c,_0x1fc85b,_0x50d607){const _0x12e2be=_0x6daf50;if(_0x52833c){const {s:_0x5089be,v:_0xe65913,t:_0x3b89c5,p:_0x42b68d}=_0x52833c;if(_0x42b68d)return _0x1d0b62(_0x42b68d);const _0x1b84d7=_0x1fc85b[_0x12e2be(0x393)](_0x5089be);if(_0x1b84d7&&_0x3b89c5===_0x3aab5b[_0x12e2be(0x16f)][_0x12e2be(0x201)]&&_0x1b84d7['n']){const {pattern:_0x5891bd}=_0x1b84d7['n'];_0x50d607[_0x5891bd]||(_0x50d607[_0x5891bd]=_0x3aab5b[_0x12e2be(0x1be)][_0x12e2be(0x23d)](_0x5891bd));const _0x5d4101=_0x50d607[_0x5891bd],_0x172c6b=_0x5d4101[_0x12e2be(0x2ff)];if(_0x5d4101[_0x12e2be(0x3e2)])return String(_0xe65913);if(_0x172c6b)return{'v':_0xe65913,'f':_0x5891bd};}if(_0x3b89c5===_0x3aab5b['CellValueType'][_0x12e2be(0x201)])return Number(_0xe65913);if(_0x3b89c5===_0x3aab5b[_0x12e2be(0x16f)][_0x12e2be(0x351)]||_0x3b89c5===_0x3aab5b[_0x12e2be(0x16f)]['FORCE_STRING'])return String(_0xe65913);if(_0x3b89c5===void 0x0){const _0xa1ba0c=Number(_0xe65913);if(!Number[_0x12e2be(0x15d)](_0xa1ba0c)&&String(_0xa1ba0c)===_0xe65913)return _0xa1ba0c;}return _0xe65913!=null?_0xe65913:null;}else return null;}[_0x6daf50(0x2de)](_0x292e09){const _0x56aa95=_0x6daf50,{sheetName:_0x4a922c,range:_0x114b72,unitId:_0xbc36a9}=_0x292e09,_0x7dd25d=this[_0x56aa95(0x24e)]['getUnit'](_0xbc36a9);if(!_0x7dd25d)return console[_0x56aa95(0x3ce)](_0x56aa95(0x2d2)),{'header':[],'data':[]};const _0x19b93e=_0x7dd25d[_0x56aa95(0x3aa)](_0x4a922c),_0x1b7f18=_0x19b93e[_0x56aa95(0x12d)](),{startRow:_0x3fdb3b,startColumn:_0x46956e,endRow:_0x29c68d,endColumn:_0x14e6e2}=this[_0x56aa95(0x28e)](_0x114b72,_0x19b93e),_0x99cc5a=_0x7dd25d['getStyles'](),_0x2b8660=[],_0x42df3a=[],_0x2517a0={};for(let _0x5c52ed=_0x3fdb3b;_0x5c52ed<=_0x29c68d;_0x5c52ed++){const _0x8faf68=[];for(let _0x5b37e3=_0x46956e;_0x5b37e3<=_0x14e6e2;_0x5b37e3++){const _0x5d3eea=_0x1b7f18[_0x56aa95(0x123)](_0x5c52ed,_0x5b37e3);_0x5c52ed===_0x3fdb3b?_0x2b8660[_0x56aa95(0x337)](_0x5d3eea==null?null:String(_0x5d3eea['v'])):_0x8faf68[_0x56aa95(0x337)](this[_0x56aa95(0x1c4)](_0x5d3eea,_0x99cc5a,_0x2517a0));}_0x42df3a[_0x56aa95(0x337)](_0x8faf68);}return{'header':_0x2b8660,'data':_0x42df3a};}[_0x6daf50(0x24a)](){const _0x270ff9=_0x6daf50;return super[_0x270ff9(0x24a)]();}[_0x6daf50(0x1e3)](_0x29f79c){const _0x446cdc=_0x6daf50;super['fromJSON'](_0x29f79c),this[_0x446cdc(0x269)]();}[_0x6daf50(0x2b2)](){const _0x458c7d=_0x6daf50;super[_0x458c7d(0x2b2)](),this[_0x458c7d(0x202)]={},this['_host']=null;}}const _0x238c93=_0x5e972c=>{const _0xd81c39=_0x6daf50,{targetCellInfo:_0xfa74b7}=_0x5e972c,{matrixCache:_0x1d7078,rangesCache:_0x39b34e}=_0x43512b({'filter':'Filter','row':_0xd81c39(0x2f7),'column':_0xd81c39(0x1f1),'values':_0xd81c39(0x3a6)},_0xfa74b7),_0x6e07bc=new _0x3aab5b[(_0xd81c39(0x25d))]();return _0x1d7078[_0xd81c39(0x410)]((_0x4b61d5,_0x85dc4c,_0x36c6a0)=>{_0x6e07bc['setValue'](_0x4b61d5,_0x85dc4c,_0x36c6a0);}),{'matrix':_0x6e07bc,'rangesCache':_0x39b34e};},_0x1e9277=_0x55000b=>{const _0x45e4b4=_0x6daf50;let _0x23ccee;if(_0x55000b!=null&&_0x55000b['v']||(_0x55000b==null?void 0x0:_0x55000b['v'])===0x0){_0x23ccee||(_0x23ccee={});const _0x1cdbf8=_0x1cbd0f(_0x55000b['v']);typeof _0x1cdbf8==_0x45e4b4(0x234)?_0x23ccee['t']=_0x3aab5b[_0x45e4b4(0x16f)][_0x45e4b4(0x201)]:typeof _0x1cdbf8==_0x45e4b4(0x1c7)&&(_0x23ccee['t']=_0x3aab5b['CellValueType']['STRING']),_0x23ccee['v']=_0x1cdbf8;}return _0x23ccee;},_0x4af3fb=(_0xdad184,_0x1c024f,_0x5629e9)=>{const _0x2258dc=_0x6daf50;var _0x263bdc,_0x473334,_0x21c4fd,_0x2a42a3,_0xc6fad4,_0x47b096,_0x4ed55f,_0x57526c,_0x3a6f59,_0x2b7f40,_0x4a94b2,_0x29d5e3;const {cornerView:_0x2e6b84,rowView:_0xda7479,colView:_0x17bd56,dataView:_0x13146f,pageView:_0x2ce13b,formatMap:_0x36642d}=_0xdad184,{row:_0x308616,col:_0x2775ba}=_0x1c024f,_0x2d89f6=new _0x3aab5b[(_0x2258dc(0x25d))]();let _0x50c5b0=_0x308616,_0xe0a7ef=_0x2775ba;Object[_0x2258dc(0x30e)](_0x2ce13b[_0x2258dc(0x354)])[_0x2258dc(0x3d8)](_0x22adaf=>{const _0x89a437=_0x2258dc;Object[_0x89a437(0x30e)](_0x2ce13b[_0x89a437(0x354)][Number(_0x22adaf)])[_0x89a437(0x3d8)](_0x593fa9=>{const _0x50b4f7=_0x89a437,_0x1268c5={..._0x2ce13b['data'][Number(_0x22adaf)][Number(_0x593fa9)]};_0x2d89f6[_0x50b4f7(0x3e5)](Number(_0x22adaf)+_0x50c5b0,Number(_0x593fa9)+_0xe0a7ef,_0x1e9277(_0x1268c5));});});const _0x20d4e3=Object[_0x2258dc(0x30e)](_0x2ce13b[_0x2258dc(0x354)])[_0x2258dc(0x299)];_0x50c5b0+=_0x20d4e3+(_0x20d4e3?_0x50ed31:0x0);const _0x1e21fa=_0x2e6b84[_0x2258dc(0x3c8)](),_0x26072c=_0x2e6b84[_0x2258dc(0x183)]();for(let _0x129211=0x0;_0x129211<_0x1e21fa;_0x129211++)for(let _0x2ec02d=0x0;_0x2ec02d<_0x26072c;_0x2ec02d++){const _0x88d698={...(_0x473334=(_0x263bdc=_0x2e6b84['data'])==null?void 0x0:_0x263bdc[_0x129211])==null?void 0x0:_0x473334[_0x2ec02d]};_0x88d698&&((_0x21c4fd=_0xda7479[_0x2258dc(0x14f)][_0x2ec02d])!=null&&_0x21c4fd[_0x2258dc(0x334)])&&_0x2ec02d===_0x26072c-0x1&&_0x129211===_0x1e21fa-0x1&&(_0x88d698['v']=''+_0x5629e9[_0x2258dc(0x237)]),_0x2d89f6[_0x2258dc(0x3e5)](_0x129211+_0x50c5b0,_0x2ec02d+_0xe0a7ef,_0x1e9277(_0x88d698));}_0xe0a7ef+=_0x26072c;const _0x2b11b4=_0x17bd56['headerMap'],_0x5de74a=_0x17bd56['getLastRow']()>=0x0?_0x17bd56[_0x2258dc(0x1c3)]()+0x1:0x0,_0x4ee424=_0x17bd56['getLastCol']()>=0x0?_0x17bd56['getLastCol']()+0x1:0x0;for(let _0x3b3dc8=0x0;_0x3b3dc8<_0x4ee424;_0x3b3dc8++)for(let _0x586b5a=0x0;_0x586b5a<_0x5de74a;_0x586b5a++){const _0x24b34e={...(_0xc6fad4=(_0x2a42a3=_0x17bd56[_0x2258dc(0x354)])==null?void 0x0:_0x2a42a3[_0x3b3dc8])==null?void 0x0:_0xc6fad4[_0x586b5a]},_0x4fd1b7=(_0x47b096=_0x2b11b4[_0x3b3dc8])==null?void 0x0:_0x47b096[_0x2258dc(0x124)],_0x466d44=_0x36642d[_0x4fd1b7];_0x24b34e&&(_0x24b34e['v']=_0x574731(_0x24b34e,_0x3b3dc8===0x0&&((_0x4ed55f=_0x17bd56[_0x2258dc(0x33b)](_0x586b5a+0x1))==null?void 0x0:_0x4ed55f[_0x2258dc(0x334)]),_0x466d44,_0x5629e9)),_0x2d89f6['setValue'](_0x3b3dc8+_0x50c5b0,_0x586b5a+_0xe0a7ef,_0x1e9277(_0x24b34e));}_0x50c5b0+=_0x1e21fa;const _0x450e66=_0xda7479['headerMap'],_0x43749e=_0xda7479[_0x2258dc(0x1c3)]()>=0x0?_0xda7479[_0x2258dc(0x1c3)]()+0x1:0x0,_0x554155=_0xda7479['getLastCol']()>=0x0?_0xda7479['getLastCol']()+0x1:0x0;for(let _0x3761c6=0x0;_0x3761c6<_0x43749e;_0x3761c6++)for(let _0x3d4eb5=0x0;_0x3d4eb5<_0x554155;_0x3d4eb5++){const _0x100238={...(_0x3a6f59=(_0x57526c=_0xda7479['data'])==null?void 0x0:_0x57526c[_0x3761c6])==null?void 0x0:_0x3a6f59[_0x3d4eb5]},_0x3a62fa=(_0x2b7f40=_0x450e66[_0x3d4eb5])==null?void 0x0:_0x2b7f40[_0x2258dc(0x124)],_0x20a092=_0x36642d[_0x3a62fa];_0x100238&&(_0x100238['v']=_0x574731(_0x100238,!0x1,_0x20a092,_0x5629e9)),_0x2d89f6[_0x2258dc(0x3e5)](_0x3761c6+_0x50c5b0,_0x3d4eb5+_0x2775ba,_0x1e9277(_0x100238));}const _0x53e13c=_0x13146f[_0x2258dc(0x3c8)](),_0x4b8b71=_0x13146f[_0x2258dc(0x183)]();for(let _0x3bca24=0x0;_0x3bca24<_0x53e13c;_0x3bca24++)for(let _0x4fde42=0x0;_0x4fde42<_0x4b8b71;_0x4fde42++){const _0x4d8219={...(_0x29d5e3=(_0x4a94b2=_0x13146f[_0x2258dc(0x354)])==null?void 0x0:_0x4a94b2[_0x3bca24])==null?void 0x0:_0x29d5e3[_0x4fde42]};_0x2d89f6[_0x2258dc(0x3e5)](_0x3bca24+_0x50c5b0,_0x4fde42+_0xe0a7ef,_0x1e9277(_0x4d8219));}return _0x2d89f6;},_0x1e5355=_0x28c5f2=>{const _0x29609f=_0x6daf50,{view:_0x2ff4ac,targetCellInfo:_0x1b7be8,isEmpty:_0x5db6,textInfo:_0x3d44bd}=_0x28c5f2;if(_0x5db6)return _0x238c93(_0x28c5f2);const {pageView:_0x43bbd5,cornerView:_0x185c27,rowView:_0x548508,colView:_0x20341f,dataView:_0x23a1c7}=_0x2ff4ac,_0x4cf206=_0x56e08b(_0x1b7be8,_0x43bbd5,!0x0),_0x9daa90=_0x43bbd5[_0x29609f(0x1a5)]>=0x0?_0x43bbd5[_0x29609f(0x1a5)]+0x1:0x0,_0x368526=_0x185c27[_0x29609f(0x3c8)](),_0xe7b145=_0x185c27['getColCount'](),_0x25d068=_0x4cf206[_0x29609f(0x299)]>0x0?_0x50ed31:0x0,_0x266ce6=_0x56e08b({'row':_0x1b7be8['row']+_0x9daa90+_0x25d068,'col':_0x1b7be8['col']},_0x185c27,!0x1,!0x1),_0x9ae1c9=_0x56e08b({'row':_0x1b7be8[_0x29609f(0x177)]+_0x9daa90+_0x25d068+_0x368526,'col':_0x1b7be8[_0x29609f(0x215)]},_0x548508,!0x1,!0x0),_0x2dd817=_0x56e08b({'row':_0x1b7be8[_0x29609f(0x177)]+_0x9daa90+_0x25d068,'col':_0x1b7be8[_0x29609f(0x215)]+_0xe7b145},_0x20341f,!0x1,!0x0),_0x4a0044=_0x56e08b({'row':_0x1b7be8[_0x29609f(0x177)]+_0x9daa90+_0x25d068+_0x368526,'col':_0x1b7be8[_0x29609f(0x215)]+_0xe7b145},_0x23a1c7,!0x1,!0x1),_0x3ca9f9={'rowRanges':_0x9ae1c9,'colRanges':_0x2dd817,'cornerRanges':_0x266ce6,'dataRanges':_0x4a0044,'pageRanges':_0x4cf206};return{'matrix':_0x4af3fb(_0x2ff4ac,_0x1b7be8,_0x3d44bd),'rangesCache':_0x3ca9f9};};var _0x4ad496=Object['getOwnPropertyDescriptor'],_0x39b95a=(_0x339704,_0x531afe,_0x8a0837,_0x463fd6)=>{const _0x3e6fa9=_0x6daf50;for(var _0x56de4d=_0x463fd6>0x1?void 0x0:_0x463fd6?_0x4ad496(_0x531afe,_0x8a0837):_0x531afe,_0x47c784=_0x339704[_0x3e6fa9(0x299)]-0x1,_0x230631;_0x47c784>=0x0;_0x47c784--)(_0x230631=_0x339704[_0x47c784])&&(_0x56de4d=_0x230631(_0x56de4d)||_0x56de4d);return _0x56de4d;},_0x36fecd=(_0x42bfde,_0x5f1717)=>(_0x2132ec,_0x51dc77)=>_0x5f1717(_0x2132ec,_0x51dc77,_0x42bfde);_0x271f43['SheetsPivotDataSourceModel']=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x47bb53,_0x59f063,_0x70b2ab,_0x32ac31,_0x29bda1,_0x47c4ca){const _0x56ab2b=_0x6daf50;super(),_0x3f9e42(this,'_model',new Map()),_0x3f9e42(this,_0x56ab2b(0x305),new Map()),_0x3f9e42(this,_0x56ab2b(0x3fe),new Map()),_0x3f9e42(this,'_textInfo'),_0x3f9e42(this,_0x56ab2b(0x2c7),new _0x2b128f[(_0x56ab2b(0x129))]()),_0x3f9e42(this,_0x56ab2b(0x178),this[_0x56ab2b(0x2c7)][_0x56ab2b(0x3c3)]()),_0x3f9e42(this,_0x56ab2b(0x327),new _0x2b128f[(_0x56ab2b(0x129))]()),_0x3f9e42(this,_0x56ab2b(0x18a),this[_0x56ab2b(0x327)][_0x56ab2b(0x3c3)]()),_0x3f9e42(this,_0x56ab2b(0x39e),new _0x2b128f[(_0x56ab2b(0x129))]()),_0x3f9e42(this,_0x56ab2b(0x24f),this[_0x56ab2b(0x39e)][_0x56ab2b(0x3c3)]()),_0x3f9e42(this,_0x56ab2b(0x2f1),new Map()),_0x3f9e42(this,_0x56ab2b(0x325),[]),_0x3f9e42(this,_0x56ab2b(0x28d),new Map()),(this['_injector']=_0x47bb53,this[_0x56ab2b(0x24e)]=_0x59f063,this[_0x56ab2b(0x252)]=_0x70b2ab,this[_0x56ab2b(0x434)]=_0x32ac31,this[_0x56ab2b(0x392)]=_0x29bda1,this[_0x56ab2b(0x2d1)]=_0x47c4ca,this[_0x56ab2b(0x192)]());}[_0x6daf50(0x23a)](){const _0x3252fc=_0x6daf50;return this[_0x3252fc(0x200)]?this[_0x3252fc(0x200)]:_0x13bd35;}[_0x6daf50(0x37c)](_0x431a58){const _0x54c091=_0x6daf50;this[_0x54c091(0x200)]=_0x431a58;}['handleMoveRange'](_0x3a2217){const _0x180f0d=_0x6daf50;var _0x1f6baa;const {from:_0x5803db,to:_0xa0d3fb,unitId:_0x2ace27,fromRange:_0xd3aff5,toRange:_0xdaa64c}=_0x3a2217;if(_0x5803db&&_0xa0d3fb){const _0xd45ba4=this['getDataFieldManager'](_0x2ace27),_0x5e806e=this[_0x180f0d(0x3dc)][_0x180f0d(0x393)](_0x2ace27),_0xedc0ea=(_0x1f6baa=this[_0x180f0d(0x24e)][_0x180f0d(0x422)](_0x2ace27))==null?void 0x0:_0x1f6baa[_0x180f0d(0x2a1)](_0xa0d3fb[_0x180f0d(0x3af)]);if(!_0x5e806e||!_0xedc0ea)return;const _0x164ee5=_0xedc0ea==null?void 0x0:_0xedc0ea[_0x180f0d(0x31d)]();for(const [_0x3fbe9b,_0x530a48]of _0x5e806e['entries']())for(const [_0x141653,_0x561120]of _0x530a48[_0x180f0d(0x1b1)]()){const {sourceRangeInfo:_0x185849}=_0x561120;if(_0x185849[_0x180f0d(0x3ba)]===_0x2ace27&&_0x185849[_0x180f0d(0x3af)]===_0x5803db[_0x180f0d(0x3af)]&&_0x3aab5b[_0x180f0d(0x224)]['contains'](_0xd3aff5,_0x185849['range'])){const _0x22c3fc={'row':_0x185849[_0x180f0d(0x235)][_0x180f0d(0x413)]-_0xd3aff5['startRow'],'col':_0x185849[_0x180f0d(0x235)]['startColumn']-_0xd3aff5[_0x180f0d(0x352)]},_0x5dffa0={'unitId':_0x2ace27,'subUnitId':_0xa0d3fb[_0x180f0d(0x3af)],'sheetName':_0x164ee5,'range':{'startRow':_0xdaa64c[_0x180f0d(0x413)]+_0x22c3fc[_0x180f0d(0x177)],'endRow':_0xdaa64c[_0x180f0d(0x413)]+_0x22c3fc['row']+_0x185849[_0x180f0d(0x235)][_0x180f0d(0x132)]-_0x185849['range'][_0x180f0d(0x413)],'startColumn':_0xdaa64c[_0x180f0d(0x352)]+_0x22c3fc[_0x180f0d(0x215)],'endColumn':_0xdaa64c['startColumn']+_0x22c3fc[_0x180f0d(0x215)]+_0x185849[_0x180f0d(0x235)][_0x180f0d(0x3e9)]-_0x185849[_0x180f0d(0x235)][_0x180f0d(0x352)]}};_0xd45ba4[_0x180f0d(0x3bf)](_0x141653,_0x5dffa0);const _0x1bd45f={..._0x561120,'sourceRangeInfo':_0x5dffa0};this[_0x180f0d(0x154)](_0x2ace27,_0xa0d3fb[_0x180f0d(0x3af)],_0x141653,_0x1bd45f),this[_0x180f0d(0x238)]({'unitId':_0x2ace27,'token':_0x141653,'type':_0x284237[_0x180f0d(0x28c)],'oldSourceRangeInfo':_0x185849,'dataRangeInfo':_0x5dffa0,'targetCellInfo':_0x561120[_0x180f0d(0x233)]}),this[_0x180f0d(0x3f9)]({'unitId':_0x2ace27,'subUnitId':_0xa0d3fb[_0x180f0d(0x3af)],'oldSubUnitId':_0x3fbe9b,'pivotTableId':_0x141653,'pivotTableConfig':_0x1bd45f,'collectionConfig':_0xd45ba4[_0x180f0d(0x24a)]()});}}}}['broadcastCollectionChange'](_0x2a4a77){const _0x5a2a58=_0x6daf50;this['_collectionChange$'][_0x5a2a58(0x3b3)](_0x2a4a77);}[_0x6daf50(0x428)](_0x50d83f){const _0x202608=_0x6daf50;let _0x53918b=this[_0x202608(0x2f1)][_0x202608(0x393)](_0x50d83f);return _0x53918b||(_0x53918b=new _0x464dd9(this,this[_0x202608(0x24e)]),this[_0x202608(0x2f1)][_0x202608(0x3eb)](_0x50d83f,_0x53918b)),_0x53918b;}[_0x6daf50(0x34e)](_0xfb5ef4,_0x44a6eb){const _0x2ec4ba=_0x6daf50;return this[_0x2ec4ba(0x428)](_0xfb5ef4)[_0x2ec4ba(0x1e7)][_0x44a6eb];}[_0x6daf50(0x40f)](_0x1ab1a9,_0x476657,_0x388fc5){const _0x49a9c2=_0x6daf50;return this[_0x49a9c2(0x428)](_0x1ab1a9)['getUpdateRangeDeleteIds'](_0x476657,_0x388fc5);}[_0x6daf50(0x27b)](_0x4d0c72,_0x1bf123){const _0x7f997c=_0x6daf50;let _0x4ebae5=this[_0x7f997c(0x3dc)]['get'](_0x4d0c72);_0x4ebae5||(_0x4ebae5=new Map(),this[_0x7f997c(0x3dc)][_0x7f997c(0x3eb)](_0x4d0c72,_0x4ebae5));let _0x41359a=_0x4ebae5[_0x7f997c(0x393)](_0x1bf123);return _0x41359a||(_0x41359a=new Map(),_0x4ebae5['set'](_0x1bf123,_0x41359a)),_0x41359a;}[_0x6daf50(0x154)](_0x8e667a,_0x3c0da6,_0x4d9182,_0x4c86ae){const _0x70fe0f=_0x6daf50;this[_0x70fe0f(0x27b)](_0x8e667a,_0x3c0da6)['set'](_0x4d9182,_0x4c86ae);}[_0x6daf50(0x2f2)](_0x2deda6,_0x825b9f,_0x184318){const _0x2d12c9=_0x6daf50;var _0x2d4760,_0xb3374d,_0x245147,_0x14e96c;((_0xb3374d=(_0x2d4760=this[_0x2d12c9(0x3dc)][_0x2d12c9(0x393)](_0x2deda6))==null?void 0x0:_0x2d4760[_0x2d12c9(0x393)](_0x825b9f))==null?void 0x0:_0xb3374d[_0x2d12c9(0x393)](_0x184318))&&((_0x14e96c=(_0x245147=this[_0x2d12c9(0x3dc)][_0x2d12c9(0x393)](_0x2deda6))==null?void 0x0:_0x245147[_0x2d12c9(0x393)](_0x825b9f))==null||_0x14e96c[_0x2d12c9(0x356)](_0x184318));}[_0x6daf50(0x3e7)](_0x3353c3,_0x5a9907){const _0x34d190=_0x6daf50;this[_0x34d190(0x305)]['set'](_0x3353c3,_0x5a9907);}[_0x6daf50(0x17a)](_0x312af9){const _0x5425e4=_0x6daf50;this[_0x5425e4(0x305)][_0x5425e4(0x356)](_0x312af9);}['_ensureViewDataMap'](_0x2e7a42,_0x145508){const _0x13e451=_0x6daf50;let _0x3ceb40=this[_0x13e451(0x3fe)][_0x13e451(0x393)](_0x2e7a42);_0x3ceb40||(_0x3ceb40=new Map(),this[_0x13e451(0x3fe)][_0x13e451(0x3eb)](_0x2e7a42,_0x3ceb40));let _0x4efce1=_0x3ceb40[_0x13e451(0x393)](_0x145508);return _0x4efce1||(_0x4efce1=new Map(),_0x3ceb40[_0x13e451(0x3eb)](_0x145508,_0x4efce1)),_0x4efce1;}[_0x6daf50(0x3f9)](_0x46f900){const _0x2e82a5=_0x6daf50,{unitId:_0x2e32d3,subUnitId:_0x3e5e0f,pivotTableId:_0x573ea9,pivotTableConfig:_0x5813e2,collectionConfig:_0x732222}=_0x46f900,_0x388264={'unitId':_0x2e32d3,'subUnitId':_0x3e5e0f,'oldSubUnitId':_0x3e5e0f,'pivotTableId':_0x573ea9,'pivotTableConfig':_0x5813e2,'collectionConfig':_0x732222};this[_0x2e82a5(0x392)][_0x2e82a5(0x2ec)](_0x19396d['id'],_0x388264,{'onlyLocal':!0x0});}[_0x6daf50(0x2ea)](_0x1f6355,_0x5037ae,_0x1d76d1,_0x3b390c,_0x2787b2,_0x53dd6f,_0x5ef661,_0x2e8b56=!0x1){const _0x525f68=_0x6daf50;var _0x22b21e;this[_0x525f68(0x392)][_0x525f68(0x2ec)](_0x261bb1['id'],{'single':{'unitId':_0x1f6355,'subUnitId':_0x5037ae,'type':_0x1d76d1,'pivotTableId':_0x3b390c,'view':_0x2787b2,'pivotConfig':_0x53dd6f},'collectionConfig':{[_0x1f6355]:_0x5ef661}},{'onlyLocal':!0x0});const _0x196ee4=!!((_0x22b21e=this[_0x525f68(0x3f8)](_0x3b390c))!=null&&_0x22b21e[_0x525f68(0x37d)]()),_0x57087e=this[_0x525f68(0x3bd)](_0x1f6355,_0x5037ae,_0x3b390c);_0x57087e&&this[_0x525f68(0x1e0)]({'view':_0x2787b2,'pivotTableId':_0x3b390c,'textInfo':this['getTextInfo'](),'isEmpty':_0x196ee4,'targetCellInfo':_0x57087e['targetCellInfo']},_0x2e8b56);}[_0x6daf50(0x1e0)](_0x49a74e,_0x1aed80){const _0x5a2434=_0x6daf50,{targetCellInfo:_0x925183,pivotTableId:_0x1cb7a4}=_0x49a74e,{unitId:_0x476b55,subUnitId:_0x2ce432}=_0x925183,_0x176ea5=this['_ensureViewDataMap'](_0x476b55,_0x2ce432),_0x46e6be=_0x176ea5[_0x5a2434(0x393)](_0x1cb7a4);let _0x8519fb,_0x249588;_0x46e6be&&(_0x8519fb=_0x46e6be['rangeCache'],_0x249588=_0x46e6be[_0x5a2434(0x2d8)]);const {rangesCache:_0x111d9d,matrix:_0x4be405}=_0x1e5355(_0x49a74e);_0x176ea5[_0x5a2434(0x3eb)](_0x1cb7a4,{'rangeCache':_0x111d9d,'matrix':_0x4be405,'oldMatrix':_0x249588,'oldRangeCache':_0x8519fb}),_0x1aed80||this[_0x5a2434(0x327)][_0x5a2434(0x3b3)]({'unitId':_0x476b55,'subUnitId':_0x2ce432,'pivotTableId':_0x1cb7a4});}[_0x6daf50(0x335)](_0x3bd06b,_0xb495e6,_0x151bdf,_0x4c5db5,_0x3b7a01){const _0x460ab2=_0x6daf50;this[_0x460ab2(0x154)](_0x3bd06b,_0xb495e6,_0x151bdf,_0x3b7a01),this['_updatePivotTableInstanceCache'](_0x151bdf,_0x4c5db5);}[_0x6daf50(0x280)](_0x55ec6d,_0x329df8,_0x39bff4){const _0x5db942=_0x6daf50,_0x152b3e=this[_0x5db942(0x428)](_0x55ec6d);_0x152b3e[_0x5db942(0x2ee)](_0x39bff4)['forEach'](_0x397474=>{const _0x48a8c5=_0x5db942;_0x152b3e[_0x48a8c5(0x1c1)](_0x397474);}),this[_0x5db942(0x174)](_0x55ec6d,_0x39bff4),this[_0x5db942(0x2f2)](_0x55ec6d,_0x329df8,_0x39bff4),this[_0x5db942(0x17a)](_0x39bff4);}[_0x6daf50(0x14e)](_0x3d632e,_0xa8d977,_0x57d5d7,_0x248e83){const _0x588cdf=_0x6daf50;this[_0x588cdf(0x154)](_0x3d632e,_0xa8d977,_0x57d5d7,_0x248e83);}[_0x6daf50(0x3bd)](_0x5e8420,_0x456c27,_0x461eb2){const _0x5201e4=_0x6daf50;var _0x58db07,_0x4c2e5b;const _0x3c21c9=(_0x4c2e5b=(_0x58db07=this[_0x5201e4(0x3dc)][_0x5201e4(0x393)](_0x5e8420))==null?void 0x0:_0x58db07[_0x5201e4(0x393)](_0x456c27))==null?void 0x0:_0x4c2e5b[_0x5201e4(0x393)](_0x461eb2);if(_0x3c21c9)return _0x3c21c9;}['getPivotTableModelConfig'](_0x4618b4,_0x38760a,_0x20a1a3){const _0x5465c7=_0x6daf50;var _0x2f389b,_0x1a09cc;const _0x295e9e=(_0x1a09cc=(_0x2f389b=this[_0x5465c7(0x3dc)][_0x5465c7(0x393)](_0x4618b4))==null?void 0x0:_0x2f389b[_0x5465c7(0x393)](_0x38760a))==null?void 0x0:_0x1a09cc[_0x5465c7(0x393)](_0x20a1a3);if(_0x295e9e)return _0x295e9e[_0x5465c7(0x2ca)];}[_0x6daf50(0x3f8)](_0x5a093f){const _0x2d54eb=_0x6daf50;return this['_pivotTableInstanceCache'][_0x2d54eb(0x393)](_0x5a093f);}[_0x6daf50(0x39b)](_0x46af12){const _0x2b2baf=_0x6daf50;this[_0x2b2baf(0x3dc)]['delete'](_0x46af12);const _0x10119e=this['_dataFieldManagerCollection'][_0x2b2baf(0x393)](_0x46af12);_0x10119e&&(_0x10119e['dispose'](),this['_dataFieldManagerCollection'][_0x2b2baf(0x356)](_0x46af12)),this[_0x2b2baf(0x3fe)][_0x2b2baf(0x356)](_0x46af12),this[_0x2b2baf(0x325)]['forEach'](_0x394f70=>{const _0x2a2908=_0x2b2baf;_0x394f70[_0x2a2908(0x39b)](_0x46af12);});}[_0x6daf50(0x17c)](_0x3409e8,_0x2d8e71,_0x52a8b3,_0x21055e){const _0x5d2d1c=_0x6daf50;return this[_0x5d2d1c(0x428)](_0x52a8b3[_0x5d2d1c(0x3ba)])[_0x5d2d1c(0x17c)](_0x3409e8,_0x2d8e71,_0x52a8b3,_0x21055e);}[_0x6daf50(0x29a)](_0x30241c){const _0x87088d=_0x6daf50;return this[_0x87088d(0x428)](_0x30241c[_0x87088d(0x3ba)])[_0x87088d(0x29a)](_0x30241c);}[_0x6daf50(0x179)](_0x253a4a,_0x3a976d,_0xee86ab){const _0x4283b7=_0x6daf50;this[_0x4283b7(0x428)](_0xee86ab['unitId'])[_0x4283b7(0x179)](_0x253a4a,_0x3a976d,_0xee86ab);}[_0x6daf50(0x239)](_0xc4d927,_0x1a2f8d){this['getDataFieldManager'](_0xc4d927)['deleteDataField'](_0x1a2f8d);}[_0x6daf50(0x174)](_0x5b951e,_0x214ed7){const _0xf124ea=_0x6daf50;this[_0xf124ea(0x428)](_0x5b951e)[_0xf124ea(0x270)](_0x214ed7);}[_0x6daf50(0x355)](_0x2bb31b,_0x7242e9){const _0x4ede05=_0x6daf50;var _0x34ccdc;return(_0x34ccdc=this[_0x4ede05(0x3dc)][_0x4ede05(0x393)](_0x2bb31b))==null?void 0x0:_0x34ccdc['get'](_0x7242e9);}[_0x6daf50(0x360)](_0x4994c6){const _0x54eb87=_0x6daf50;for(const [_0xc79ff1,_0x4cec9a]of this[_0x54eb87(0x3dc)]['entries']())for(const [_0x3873f6,_0x36aab6]of _0x4cec9a[_0x54eb87(0x1b1)]())if(_0x36aab6[_0x54eb87(0x271)](_0x4994c6))return{'unitId':_0xc79ff1,'subUnitId':_0x3873f6};return null;}[_0x6daf50(0x2e7)](_0x2319e6,_0x16570e,_0x478a1c,_0x420b45){const _0x2ef857=_0x6daf50,_0x237491=this[_0x2ef857(0x20e)](_0x2319e6,_0x16570e);_0x420b45?_0x237491['set'](_0x478a1c,_0x420b45):_0x237491[_0x2ef857(0x356)](_0x478a1c),this[_0x2ef857(0x327)][_0x2ef857(0x3b3)]({'unitId':_0x2319e6,'subUnitId':_0x16570e,'pivotTableId':_0x478a1c});}[_0x6daf50(0x2b2)](){const _0x39a6a3=_0x6daf50;super[_0x39a6a3(0x2b2)]();}[_0x6daf50(0x28a)](_0x1b1ff3,_0x412fd5,_0x48a18b){const _0x5cb812=_0x6daf50;var _0x180388,_0x22f0ca;const _0x1dd2a6=(_0x22f0ca=(_0x180388=this[_0x5cb812(0x3fe)][_0x5cb812(0x393)](_0x1b1ff3))==null?void 0x0:_0x180388[_0x5cb812(0x393)](_0x412fd5))==null?void 0x0:_0x22f0ca[_0x5cb812(0x393)](_0x48a18b);return _0x1dd2a6||null;}['addDirtyPivotTable'](_0x518eb8){this['updateDirtyPivotTable'](_0x518eb8);}[_0x6daf50(0x2f8)](_0x165920){const _0x216bbd=_0x6daf50,{token:_0xf534d5,unitId:_0x196985,subUnitId:_0x487577}=_0x165920,_0x3705b7=_0x196985+'-'+_0x487577+'-'+_0xf534d5;this[_0x216bbd(0x28d)][_0x216bbd(0x393)](_0x3705b7)&&clearTimeout(this['_queryingMap'][_0x216bbd(0x393)](_0x3705b7));const _0x2d82e9=setTimeout(()=>{const _0x3335f8=_0x216bbd;this[_0x3335f8(0x144)](_0x165920),this[_0x3335f8(0x28d)][_0x3335f8(0x356)](_0x3705b7);},_0x40ef3f);this[_0x216bbd(0x28d)]['set'](_0x3705b7,_0x2d82e9);}[_0x6daf50(0x144)](_0x559fef){const _0x119448=_0x6daf50,{unitId:_0x2675ec,subUnitId:_0x357823,token:_0x4f2bd4,type:_0x3cb6fe,pivotConfig:_0x1eca7d}=_0x559fef,_0x78f83d=this[_0x119448(0x3f8)](_0x4f2bd4),_0xa4af05=_0x78f83d==null?void 0x0:_0x78f83d[_0x119448(0x150)](),_0x12c2f1=_0x1eca7d!=null?_0x1eca7d:this[_0x119448(0x3bd)](_0x2675ec,_0x357823,_0x4f2bd4);_0x12c2f1&&(_0x12c2f1[_0x119448(0x37d)]=!!(_0x78f83d!=null&&_0x78f83d[_0x119448(0x37d)]())),(_0xa4af05||_0x3cb6fe===_0x1ab225[_0x119448(0x24b)])&&this[_0x119448(0x2ea)](_0x2675ec,_0x357823,_0x3cb6fe,_0x4f2bd4,_0xa4af05,_0x12c2f1,this['getDataFieldManager'](_0x2675ec)['toJSON']());}[_0x6daf50(0x24a)](_0xf1e4ae){const _0x23f5b6=_0x6daf50,_0x48d78b={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x23f5b6(0x428)](_0xf1e4ae)&&(_0x48d78b[_0x23f5b6(0x18e)][_0xf1e4ae]=this[_0x23f5b6(0x428)](_0xf1e4ae)[_0x23f5b6(0x24a)]()),this[_0x23f5b6(0x3dc)][_0x23f5b6(0x393)](_0xf1e4ae)){_0x48d78b[_0x23f5b6(0x374)][_0xf1e4ae]={};const _0x430674=this[_0x23f5b6(0x3dc)][_0x23f5b6(0x393)](_0xf1e4ae);_0x430674!=null&&_0x430674[_0x23f5b6(0x423)]&&[..._0x430674[_0x23f5b6(0x30e)]()][_0x23f5b6(0x3d8)](_0x536a78=>{const _0x8ba3cb=_0x23f5b6,_0x3c5e84=_0x430674[_0x8ba3cb(0x393)](_0x536a78);_0x3c5e84!=null&&_0x3c5e84[_0x8ba3cb(0x423)]&&(_0x48d78b[_0x8ba3cb(0x374)][_0xf1e4ae][_0x536a78]={},[..._0x3c5e84[_0x8ba3cb(0x30e)]()][_0x8ba3cb(0x3d8)](_0x8c2063=>{const _0x2663ff=_0x8ba3cb,_0x240626=_0x3c5e84['get'](_0x8c2063);_0x240626&&(_0x48d78b[_0x2663ff(0x374)][_0xf1e4ae][_0x536a78][_0x8c2063]=_0x240626);}));});}return _0x48d78b;}[_0x6daf50(0x1e3)](_0x168be8){const _0x4be859=_0x6daf50;var _0x582203;const {dataFieldManagerConfig:_0x45119b,pivotTableConfigs:_0x4ab294}=_0x168be8;_0x45119b&&Object[_0x4be859(0x30e)](_0x45119b)[_0x4be859(0x3d8)](_0x48deeb=>{this['getDataFieldManager'](_0x48deeb)['fromJSON'](_0x45119b[_0x48deeb]);});const _0x327d44=[];if(_0x4ab294){const _0x5178de=(_0x582203=this['_injector'][_0x4be859(0x393)](_0x3aab5b[_0x4be859(0x1eb)])[_0x4be859(0x3d0)](_0x2a826e[_0x4be859(0x3e3)]))!=null?_0x582203:{},{ls:_0x2785f3,pbk:_0x2f15aa}=_0x5178de,_0x3c25a4=_0x21309a(_0x884d8a,_0x2785f3,_0x2f15aa)[_0x4be859(0x3f2)];Object[_0x4be859(0x30e)](_0x4ab294)[_0x4be859(0x3d8)](_0x25dc03=>{let _0x5db7c0=0x0;const _0x173a35=_0x4ab294[_0x25dc03];Object['keys'](_0x173a35)['forEach'](_0xbd1ff7=>{const _0x845a26=_0x45c2,_0x571558=_0x173a35[_0xbd1ff7];Object[_0x845a26(0x30e)](_0x571558)[_0x845a26(0x3d8)](_0x1e0315=>{const _0xe1bac4=_0x845a26,_0x2c9268=_0x571558[_0x1e0315];if(_0x2c9268){if(_0x5db7c0>=_0x3c25a4)return;_0x5db7c0++;const _0xfa9b62=this[_0xe1bac4(0x428)](_0x25dc03),_0x54b4f1=_0xfa9b62[_0xe1bac4(0x1e7)][_0x1e0315],_0x13722c=_0x54b4f1['getFieldIds']();let _0x84d2e2=0x0;const _0x5c9d16=[];for(const _0x4cbb72 of _0x13722c){const _0x30e022=_0x54b4f1[_0xe1bac4(0x1dd)](_0x4cbb72);if(_0x5ab2d7[_0xe1bac4(0x208)](_0x30e022)){const _0x250a35=_0x30e022[_0xe1bac4(0x13a)](),_0x9e2bea=_0x54b4f1[_0xe1bac4(0x1dd)](_0x250a35);_0x9e2bea&&_0x5c9d16['push']([_0x30e022,_0x9e2bea]);continue;}_0xfa9b62[_0xe1bac4(0x2df)](_0x4cbb72,_0x2c9268[_0xe1bac4(0x133)],_0x84d2e2),_0x84d2e2++;}_0x5c9d16['forEach'](([_0x2f7200,_0x303efe])=>{_0x2f7200['refreshGroupField'](_0x303efe);});const _0x2afdbe=new _0x5ab2d7['PivotTable'](_0x54b4f1);_0x2afdbe['fromJSON'](_0x2c9268[_0xe1bac4(0x2ca)]),this[_0xe1bac4(0x335)](_0x25dc03,_0xbd1ff7,_0x1e0315,_0x2afdbe,_0x2c9268);const _0x5ddb29=_0x2afdbe['query']();_0x327d44['push']({'unitId':_0x25dc03,'subUnitId':_0xbd1ff7,'pivotTableId':_0x1e0315,'view':_0x5ddb29['toJSON'](),'pivotConfig':_0x2c9268,'type':_0x1ab225['Add']});const _0x44ceef=!!_0x2afdbe['isEmpty'](),_0x2f437b={'view':_0x5ddb29,'pivotTableId':_0x1e0315,'textInfo':this[_0xe1bac4(0x23a)](),'isEmpty':_0x44ceef,'targetCellInfo':_0x2c9268['targetCellInfo']};this['updateViewData'](_0x2f437b,!0x1);}});});});}_0x45119b&&Object[_0x4be859(0x30e)](_0x45119b)[_0x4be859(0x3d8)](_0x25e285=>{const _0x146429=_0x4be859,_0x426466=this[_0x146429(0x428)](_0x25e285);this[_0x146429(0x39e)][_0x146429(0x3b3)](_0x426466[_0x146429(0x1e7)]);}),this[_0x4be859(0x392)][_0x4be859(0x2ec)](_0x261bb1['id'],{'batch':_0x327d44,'collectionConfig':_0x45119b},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x4843d2=_0x6daf50;this[_0x4843d2(0x137)](this[_0x4843d2(0x2d1)]['registerPluginResource']({'toJson':_0x260996=>JSON[_0x4843d2(0x247)](this[_0x4843d2(0x24a)](_0x260996)),'parseJson':_0x2db16c=>{const _0x571be1=_0x4843d2;if(!_0x2db16c)return{};try{return JSON[_0x571be1(0x12b)](_0x2db16c);}catch{return{};}},'businesses':[_0x3aab5b[_0x4843d2(0x3b5)]['UNIVER_SHEET']],'pluginName':_0x3a232b,'onLoad':(_0xb60177,_0x596d5a)=>{const _0xdf7bd1=_0x4843d2;this[_0xdf7bd1(0x1e3)](_0x596d5a);},'onUnLoad':_0x54b185=>{this['deleteUnitId'](_0x54b185);}}));}},_0x271f43[_0x6daf50(0x383)]=_0x39b95a([_0x36fecd(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x39a)])),_0x36fecd(0x1,_0x3aab5b[_0x6daf50(0x350)]),_0x36fecd(0x2,_0x3aab5b['Inject'](_0x3aab5b[_0x6daf50(0x2b6)])),_0x36fecd(0x3,_0x3aab5b[_0x6daf50(0x1eb)]),_0x36fecd(0x4,_0x3aab5b['ICommandService']),_0x36fecd(0x5,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x2b9)]))],_0x271f43['SheetsPivotDataSourceModel']);const _0x2b7f6a={0x0:{0x0:{'v':'filter','s':_0x1a2a41}},0x2:{0x1:{'v':'','s':_0x1a2a41},0x2:{'v':'','s':_0x1a2a41},0x3:{'v':_0x6daf50(0x3fb),'s':_0x1a2a41},0x4:{'v':'','s':_0x1a2a41},0x5:{'v':'','s':_0x1a2a41}},0x3:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0x4:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0x5:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0x6:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0x7:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0x8:{0x0:{'v':_0x6daf50(0x177),'s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':_0x6daf50(0x1db),'s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0x9:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0xa:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0xb:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0xc:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}},0xd:{0x0:{'v':'','s':_0x1a2a41},0x1:{'v':'','s':_0x1d3c38},0x2:{'v':'','s':_0x1d3c38},0x3:{'v':'','s':_0x1d3c38},0x4:{'v':'','s':_0x1d3c38},0x5:{'v':'','s':_0x1d3c38}}},_0x390b1d={'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':[]},_0x43512b=(_0x129af2,_0x276221)=>{const _0x26ee5b=_0x6daf50,_0x3b35fc=new _0x3aab5b['ObjectMatrix'](),_0x20b7b6=new _0x3aab5b[(_0x26ee5b(0x25d))](_0x2b7f6a),{row:_0x357238,col:_0x42c5de}=_0x276221;_0x20b7b6[_0x26ee5b(0x410)]((_0x534509,_0x3d3c60,_0x5f1993)=>{const _0x511b4e=_0x26ee5b;let _0x3e953a='';_0x5f1993['v']===_0x511b4e(0x12e)?_0x3e953a=_0x129af2[_0x511b4e(0x12e)]:_0x5f1993['v']===_0x511b4e(0x177)?_0x3e953a=_0x129af2[_0x511b4e(0x177)]:_0x5f1993['v']===_0x511b4e(0x3fb)?_0x3e953a=_0x129af2[_0x511b4e(0x3fb)]:_0x5f1993['v']===_0x511b4e(0x1db)&&(_0x3e953a=_0x129af2['values']),_0x3b35fc[_0x511b4e(0x3e5)](_0x534509+_0x357238,_0x3d3c60+_0x42c5de,{..._0x5f1993,'v':_0x3e953a});});const _0x28eb6f=_0x3aab5b[_0x26ee5b(0x3be)][_0x26ee5b(0x33e)](_0x390b1d);return Object[_0x26ee5b(0x30e)](_0x390b1d)[_0x26ee5b(0x3d8)](_0x3b9925=>{const _0xc04137=_0x26ee5b;_0x28eb6f[_0x3b9925]=_0x390b1d[_0x3b9925][_0xc04137(0x3f1)](_0x52ae8b=>({..._0x52ae8b,'startRow':_0x52ae8b['startRow']+_0x357238,'endRow':_0x52ae8b[_0xc04137(0x132)]+_0x357238,'startColumn':_0x52ae8b['startColumn']+_0x42c5de,'endColumn':_0x52ae8b[_0xc04137(0x3e9)]+_0x42c5de}));}),{'matrixCache':_0x3b35fc,'rangesCache':_0x28eb6f};};function _0x155576(_0x23200c,_0x5121d9){const _0x518100=_0x6daf50;let _0x538251='';const _0x28f9e0=this[_0x518100(0x23a)]();switch(_0x5121d9){case _0x5ab2d7['PivotSubtotalTypeEnum'][_0x518100(0x344)]:_0x538251=_0x28f9e0[_0x518100(0x25b)]+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x3f2)]:_0x538251=_0x28f9e0['sheets-pivot.countName']+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)]['countNums']:_0x538251=_0x28f9e0[_0x518100(0x370)]+_0x23200c;break;case _0x5ab2d7['PivotSubtotalTypeEnum'][_0x518100(0x3ec)]:_0x538251=_0x28f9e0[_0x518100(0x17e)]+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x384)]:_0x538251=_0x28f9e0[_0x518100(0x203)]+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x32b)]:_0x538251=_0x28f9e0['sheets-pivot.productName']+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x145)]:_0x538251=_0x28f9e0['sheets-pivot.stdDevName']+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x1e1)]:_0x538251=_0x28f9e0[_0x518100(0x3b7)]+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x31f)]:_0x538251=_0x28f9e0['sheets-pivot.sumName']+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)]['var']:_0x538251=_0x28f9e0[_0x518100(0x1dc)]+_0x23200c;break;case _0x5ab2d7[_0x518100(0x14d)][_0x518100(0x1bf)]:_0x538251=_0x28f9e0[_0x518100(0x13d)]+_0x23200c;break;default:_0x538251=_0x23200c;break;}return _0x538251;}function _0x37a114(_0x3d9008,_0x3c4b64,_0x1ebaf7,_0x46ca90,_0x3d28fc){const _0x494a15=_0x6daf50;var _0x2e5957,_0x5ca0a1,_0x104b59,_0x1bdcc7,_0x1b3160;const _0x44091a=_0x3aab5b[_0x494a15(0x278)](_0x3d9008,_0x3c4b64),{rangesInfo:_0x155f88,areaInfo:_0x1f35ba,headerMap:_0x22f184}=_0x3d28fc;if(!_0x155f88||!_0x1f35ba||!_0x22f184)return;const _0x2d45a6=Object[_0x494a15(0x30e)](_0x155f88)[_0x494a15(0x184)](_0x2350b3=>_0x155f88[_0x2350b3][_0x494a15(0x2d0)](_0x3f647d=>_0x3aab5b[_0x494a15(0x224)][_0x494a15(0x198)](_0x3f647d,_0x44091a))),_0x2495ea=_0x1f35ba;let _0x3d8269,_0x3c092b,_0x1b1260;if(_0x2d45a6==='rowRanges')_0x3d8269=(_0x2e5957=_0x2495ea==null?void 0x0:_0x2495ea[_0x494a15(0x26e)])==null?void 0x0:_0x2e5957[_0x3d9008],_0x3c092b=(_0x5ca0a1=_0x22f184==null?void 0x0:_0x22f184[_0x494a15(0x277)])==null?void 0x0:_0x5ca0a1[_0x3c4b64],_0x1b1260=_0x3c092b==null?void 0x0:_0x3c092b[_0x494a15(0x124)];else{if(_0x2d45a6==='colRanges')_0x3d8269=(_0x104b59=_0x2495ea==null?void 0x0:_0x2495ea[_0x494a15(0x3d9)])==null?void 0x0:_0x104b59[_0x3c4b64],_0x3c092b=(_0x1bdcc7=_0x22f184[_0x494a15(0x282)])==null?void 0x0:_0x1bdcc7[_0x3d9008+0x1+_0x3c4b64-_0x155f88[_0x494a15(0x331)][0x0]['startColumn']],_0x1b1260=_0x3c092b==null?void 0x0:_0x3c092b[_0x494a15(0x124)];else{if(_0x2d45a6===_0x494a15(0x21f))_0x3d8269=(_0x1b3160=_0x2495ea==null?void 0x0:_0x2495ea[_0x494a15(0x1cf)])==null?void 0x0:_0x1b3160[_0x3c4b64],_0x1b1260=_0x3d8269==null?void 0x0:_0x3d8269['tableFieldId'];else{if(_0x2d45a6===_0x494a15(0x2b4)){const _0x17ee2b=_0x1ebaf7==null?void 0x0:_0x1ebaf7['fi'];_0x17ee2b!==void 0x0&&(_0x1b1260=_0x46ca90[_0x494a15(0x2a6)](_0x17ee2b));}}}}return{'filterId':_0x1b1260,'info':_0x3d8269,'data':_0x1ebaf7,'headerInfo':_0x3c092b};}function _0x3bc063(_0x514187,_0x101d2c,_0x387a86){const _0x6408bd=_0x6daf50,_0xa4fe47=_0x514187[_0x6408bd(0x39c)],_0x4780ad=_0xa4fe47[_0x6408bd(0x221)](),_0x5eed51=new Set();_0x514187['iterateField'](_0x1153fd=>{const _0x1d072a=_0x6408bd;_0x5eed51[_0x1d072a(0x34a)](_0x1153fd[_0x1d072a(0x304)]);});const _0x3ab9f9=_0x4780ad[_0x6408bd(0x3f1)](_0x441d9e=>{const _0xbcdafa=_0x6408bd,_0xfa8be1=_0xa4fe47[_0xbcdafa(0x1dd)](_0x441d9e);return{'checked':_0x5eed51[_0xbcdafa(0x271)](_0x441d9e),'dataFieldId':_0xfa8be1['id'],'id':_0xfa8be1['id'],'name':_0xa4fe47[_0xbcdafa(0x33d)](_0xfa8be1['id']),'type':_0xfa8be1[_0xbcdafa(0x2f5)](),'pivotTableId':_0x101d2c};}),_0xde954b=[];_0x514187[_0x6408bd(0x169)](_0x5ab2d7['PivotTableFiledAreaEnum'][_0x6408bd(0x2f7)],_0x145b69=>{const _0x16c229=_0x6408bd;_0xde954b['push']({'dataFieldId':_0x145b69[_0x16c229(0x304)],'tableFieldId':_0x145b69[_0x16c229(0x1cb)](),'displayName':_0x145b69[_0x16c229(0x33d)]()});});const _0x3bcc9a=[];_0x514187[_0x6408bd(0x169)](_0x5ab2d7['PivotTableFiledAreaEnum'][_0x6408bd(0x1f1)],_0x1a4c5a=>{const _0x1802bd=_0x6408bd;_0x3bcc9a['push']({'dataFieldId':_0x1a4c5a[_0x1802bd(0x304)],'tableFieldId':_0x1a4c5a[_0x1802bd(0x1cb)](),'displayName':_0x1a4c5a[_0x1802bd(0x33d)]()});});const _0x113b77=[];if(_0x514187[_0x6408bd(0x169)](_0x5ab2d7[_0x6408bd(0x358)]['Value'],_0xde3734=>{const _0x454c52=_0x6408bd;_0x113b77[_0x454c52(0x337)]({'dataFieldId':_0xde3734['dataFieldId'],'tableFieldId':_0xde3734[_0x454c52(0x1cb)](),'displayName':_0xde3734[_0x454c52(0x33d)](),'format':_0xde3734[_0x454c52(0x2dd)](),'subTotalType':_0xde3734['getSubtotal']()});}),_0x113b77[_0x6408bd(0x299)]>0x1){const _0x4d54f6=_0x514187['getValueIndex']();(_0x514187[_0x6408bd(0x3d5)]()?_0x3bcc9a:_0xde954b)[_0x6408bd(0x2d6)](_0x4d54f6,0x0,{'dataFieldId':'','tableFieldId':'PivotMultipleValueId','displayName':'ΣValue'});}const _0x40fd9b=[];_0x514187[_0x6408bd(0x169)](_0x5ab2d7[_0x6408bd(0x358)]['Filter'],_0x36aa78=>{const _0x36f2c7=_0x6408bd;_0x40fd9b[_0x36f2c7(0x337)]({'dataFieldId':_0x36aa78['dataFieldId'],'tableFieldId':_0x36aa78['getId'](),'displayName':_0x36aa78[_0x36f2c7(0x33d)]()});});const _0x5b56eb=_0x387a86[_0x6408bd(0x133)];return{'sourceList':_0x3ab9f9,'sourceRange':_0x5b56eb,'rowFields':_0xde954b,'columnFields':_0x3bcc9a,'valueFields':_0x113b77,'filterFields':_0x40fd9b,'positionInfo':_0x387a86['targetCellInfo']};}function _0x314566(_0x312881,_0x83e047,_0x4720ee='',_0x2ebcdb={}){const _0x53eea4=_0x6daf50,_0x128b26=_0x312881[_0x53eea4(0x393)](_0x3aab5b['LocaleService']);for(const _0x5bdc87 in _0x83e047)if(Object[_0x53eea4(0x1ff)][_0x53eea4(0x291)][_0x53eea4(0x395)](_0x83e047,_0x5bdc87)){const _0x24b2c1=_0x4720ee?_0x4720ee+'.'+_0x5bdc87:_0x5bdc87;typeof _0x83e047[_0x5bdc87]==_0x53eea4(0x281)&&_0x83e047[_0x5bdc87]!==null&&!Array[_0x53eea4(0x1b2)](_0x83e047[_0x5bdc87])?_0x314566(_0x312881,_0x83e047[_0x5bdc87],_0x24b2c1,_0x2ebcdb):_0x2ebcdb[_0x24b2c1]=_0x128b26['t'](_0x24b2c1);}return _0x2ebcdb;}const _0x1668ea=_0x112334=>{const _0x226183=_0x6daf50;if(!_0x112334)return[];const {rowRanges:_0x46e853,colRanges:_0x24e663,cornerRanges:_0x3a4e64,dataRanges:_0x5a698f,pageRanges:_0xc4eff7}=_0x112334,_0xa2a2e=[..._0x24e663,..._0x46e853,..._0x5a698f,..._0x3a4e64][_0x226183(0x12e)](_0x624946=>_0x624946['startRow']>=0x0&&_0x624946[_0x226183(0x352)]>=0x0&&_0x624946[_0x226183(0x132)]>=0x0&&_0x624946['endColumn']>=0x0);let _0x5114c6=Number[_0x226183(0x222)],_0x3bd886=Number[_0x226183(0x39f)],_0xb9dc8=Number[_0x226183(0x222)],_0x4774ae=Number[_0x226183(0x39f)];for(let _0x4409fa=0x0;_0x4409fa<_0xa2a2e[_0x226183(0x299)];_0x4409fa++)_0x5114c6=Math['min'](_0x5114c6,_0xa2a2e[_0x4409fa][_0x226183(0x413)]),_0x3bd886=Math[_0x226183(0x3ec)](_0x3bd886,_0xa2a2e[_0x4409fa]['endRow']),_0xb9dc8=Math[_0x226183(0x384)](_0xb9dc8,_0xa2a2e[_0x4409fa][_0x226183(0x352)]),_0x4774ae=Math[_0x226183(0x3ec)](_0x4774ae,_0xa2a2e[_0x4409fa]['endColumn']);return[..._0xc4eff7,{'startRow':_0x5114c6,'endRow':_0x3bd886,'startColumn':_0xb9dc8,'endColumn':_0x4774ae}];};function _0x1f7c8b(_0x3791e5,_0x3595da){const _0x4a6d89=_0x6daf50,_0x9d9414=_0x3595da[_0x4a6d89(0x26b)][_0x4a6d89(0x2d5)],{pivotTableId:_0x2bfced,unitId:_0x4b2c67,subUnitId:_0x563138}=_0x3595da;if(!_0x9d9414)return;const _0x4d5676=_0x3791e5[_0x4a6d89(0x393)](_0x271f43[_0x4a6d89(0x383)]),_0x580f14=_0x4d5676[_0x4a6d89(0x3f8)](_0x2bfced),_0x2b5a6b=_0x4d5676[_0x4a6d89(0x3bd)](_0x4b2c67,_0x563138,_0x2bfced);if(!_0x580f14||!_0x2b5a6b)return;const _0x422d89=_0x580f14[_0x4a6d89(0x194)](_0x9d9414[_0x4a6d89(0x3a7)]);if(!(_0x422d89!=null&&_0x422d89[_0x4a6d89(0x299)]))return;const _0x3ba968=_0x2b5a6b[_0x4a6d89(0x133)],{unitId:_0xb8203,subUnitId:_0x291b1b,range:_0x47ef05}=_0x3ba968;let _0x5481b6=0x0;const _0x5d3834=_0x580f14[_0x4a6d89(0x39c)][_0x4a6d89(0x221)]()[_0x4a6d89(0x2e2)]((_0x177757,_0x43cff0)=>{const _0x2e0bd4=_0x4a6d89;var _0x49533c;const _0x32d7c9=(_0x49533c=_0x580f14[_0x2e0bd4(0x3ab)](_0x43cff0))==null?void 0x0:_0x49533c['getformat']();return _0x32d7c9&&(_0x177757[String(_0x5481b6)]=_0x32d7c9),_0x5481b6++,_0x177757;},{});return{'indexes':_0x422d89,'range':_0x47ef05,'sourceUnitId':_0xb8203,'sourceSubUnitId':_0x291b1b,'formatMap':_0x5d3834};}function _0x2ffa8d(_0x15f4fd,_0x5465c8){const _0x2a812a=_0x6daf50;if(!_0x15f4fd||!_0x5465c8)return!0x0;const _0x5ad29e=_0x2a826e[_0x2a812a(0x26c)](_0x1274f4,_0xba7c91),_0x209137=new Function(_0x2a812a(0x21e)+_0x5ad29e)()(_0x15f4fd,_0x5465c8)[_0x2a812a(0x231)],_0xcfe61b=_0x2a826e['isFeatureAuthorizedWithinTime'](_0x209137,'sf',_0x533439);return!((_0x209137==null?void 0x0:_0x209137['rt'])===_0x2a826e[_0x2a812a(0x2c9)][_0x2a812a(0x1b0)]&&!_0xcfe61b);}function _0x21309a(_0x34c746,_0x2f33db,_0xd5a69e){const _0x1a6da3=_0x6daf50,_0x5e671c={'count':_0x34c746,'timeValid':!0x1};if(!_0x2f33db||!_0xd5a69e)return _0x5e671c;const _0x1cb54f=_0x2a826e['unshiftString'](_0x1274f4,_0xba7c91),_0x36540a=new Function('return\x20'+_0x1cb54f)()(_0x2f33db,_0xd5a69e);if(_0x36540a!=null&&_0x36540a['valid']){const _0x341b87=_0x36540a[_0x1a6da3(0x231)],_0x58b288=_0x2a826e[_0x1a6da3(0x173)](_0x341b87,'sf',_0x533439);return{'count':_0x2a826e[_0x1a6da3(0x1fa)](_0x341b87,_0x58b288,_0x1a6da3(0x1a1),_0x34c746,_0x34c746,0x0),'timeValid':_0x58b288};}return _0x5e671c;}function _0x40be2a(_0x2a2801,_0x16bcc5,_0xa6eaa4,_0x1b7d1d){const _0x536f63=_0x6daf50,_0x13648a={'subUnitId':_0xa6eaa4,'unitId':_0x16bcc5,'cellValue':_0x5b84bb['generateNullCell'](_0x1b7d1d)},_0x17a389=_0x5b84bb['SetRangeValuesUndoMutationFactory'](_0x2a2801,_0x13648a);let _0x35a16a=!0x1;return new _0x3aab5b[(_0x536f63(0x25d))](_0x17a389[_0x536f63(0x1ef)])[_0x536f63(0x410)]((_0x224d81,_0x2827bf,_0x4ff7f1)=>{if(!_0x35a16a&&_0x4ff7f1&&(_0x4ff7f1['custom']||_0x4ff7f1['f']||_0x4ff7f1['p']||_0x4ff7f1['s']||_0x4ff7f1['si']||_0x4ff7f1['t']||_0x4ff7f1['v']))return _0x35a16a=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x5b84bb[_0x536f63(0x3b8)]['id'],'params':_0x17a389},'setRangeValueRedoMutation':{'id':_0x5b84bb['SetRangeValuesMutation']['id'],'params':_0x13648a},'shouldClear':_0x35a16a};}function _0x5014d2(_0x71f695){const {row:_0x495ff5,col:_0xdc7e6e}=_0x71f695,_0x19a165={'startRow':_0x495ff5,'endRow':_0x495ff5,'startColumn':_0xdc7e6e,'endColumn':_0xdc7e6e},_0x35f8b2={'startRow':_0x495ff5+0x2,'endRow':_0x495ff5+0xe,'startColumn':_0xdc7e6e,'endColumn':_0xdc7e6e+0x6};return[_0x19a165,_0x35f8b2];}function _0x5912db(_0xc02fa2,_0x45480a,_0x4ee61b){const _0x4192a2=_0x6daf50,{cornerView:_0x44d9d1,rowView:_0x20f4e0,colView:_0x4e5486,pageView:_0x1778eb}=_0xc02fa2,{row:_0x4737f7,col:_0x23ae21}=_0x45480a;if(_0x4ee61b)return{'rowCount':_0x30b41c+_0x4737f7,'colCount':_0x232a4c+_0x23ae21};const _0x135373=_0x1778eb[_0x4192a2(0x1a5)]>-0x1?_0x1778eb[_0x4192a2(0x1a5)]+0x1:0x0,_0x4c2268=_0x1778eb[_0x4192a2(0x22c)]>-0x1?_0x1778eb[_0x4192a2(0x22c)]:0x0,_0x3924e6=_0x4737f7+_0x135373+(_0x135373?0x1:0x0)+_0x44d9d1[_0x4192a2(0x43d)]+_0x20f4e0[_0x4192a2(0x43d)],_0x391c58=_0x23ae21+_0x4c2268,_0x5923e2=_0x23ae21+_0x44d9d1[_0x4192a2(0x1a9)]+_0x4e5486[_0x4192a2(0x1a9)],_0x47df4d=Math[_0x4192a2(0x3ec)](_0x391c58,_0x5923e2);return{'rowCount':_0x3924e6,'colCount':_0x47df4d};}function _0x44c00e(_0x3db356,_0x301259,_0x2c876a,_0x75ed7f){const _0x4e6f40=_0x6daf50,{row:_0x3e1c70,col:_0x55e3e3,unitId:_0x375dae,subUnitId:_0xa877df}=_0x2c876a,_0x2d0ee4=_0x5912db(_0x301259,{'row':_0x3e1c70,'col':_0x55e3e3},_0x75ed7f),_0x4fce91=_0x3db356[_0x4e6f40(0x393)](_0x3aab5b[_0x4e6f40(0x350)]),_0x105741=_0x5b84bb[_0x4e6f40(0x272)](_0x4fce91,{'unitId':_0x375dae,'subUnitId':_0xa877df}),_0x46c898=[],_0x5572ff=[];if(!_0x105741)return{'undos':_0x5572ff,'redos':_0x46c898};const {worksheet:_0x5006ab}=_0x105741,_0x3ae350=_0x5006ab['getRowCount'](),_0x4058d4=_0x5006ab[_0x4e6f40(0x379)]();return _0x3ae350<_0x2d0ee4[_0x4e6f40(0x43d)]&&(_0x46c898[_0x4e6f40(0x337)]({'id':_0x5b84bb[_0x4e6f40(0x3a9)]['id'],'params':{'unitId':_0x375dae,'subUnitId':_0xa877df,'range':{'startRow':_0x3ae350,'endRow':_0x2d0ee4[_0x4e6f40(0x43d)]-0x1,'startColumn':0x0,'endColumn':_0x4058d4-0x1}}}),_0x5572ff[_0x4e6f40(0x337)]({'id':_0x5b84bb[_0x4e6f40(0x1c2)]['id'],'params':{'unitId':_0x375dae,'subUnitId':_0xa877df,'range':{'startRow':_0x3ae350,'endRow':_0x2d0ee4[_0x4e6f40(0x43d)]-0x1,'startColumn':0x0,'endColumn':_0x4058d4-0x1}}})),_0x4058d4<_0x2d0ee4[_0x4e6f40(0x1a9)]&&(_0x46c898[_0x4e6f40(0x337)]({'id':_0x5b84bb[_0x4e6f40(0x2d9)]['id'],'params':{'unitId':_0x375dae,'subUnitId':_0xa877df,'range':{'startRow':0x0,'endRow':_0x3ae350-0x1,'startColumn':_0x4058d4,'endColumn':_0x2d0ee4[_0x4e6f40(0x1a9)]-0x1}}}),_0x5572ff[_0x4e6f40(0x337)]({'id':_0x5b84bb['RemoveColMutation']['id'],'params':{'unitId':_0x375dae,'subUnitId':_0xa877df,'range':{'startRow':0x0,'endRow':_0x3ae350-0x1,'startColumn':_0x4058d4,'endColumn':_0x2d0ee4[_0x4e6f40(0x1a9)]-0x1}}})),{'undos':_0x5572ff,'redos':_0x46c898};}function _0x3a5858(_0x41cb51){const _0x423f85=_0x6daf50;let _0x1c0898=0x0;for(let _0x9f9452=0x0;_0x9f9452<_0x41cb51['length'];_0x9f9452++){const _0x517f60=_0x41cb51[_0x423f85(0x2fd)](_0x9f9452);_0x517f60>=0x4e00&&_0x517f60<=0x9fff||_0x517f60>=0x3000&&_0x517f60<=0x303f||_0x517f60>=0xff00&&_0x517f60<=0xffef?_0x1c0898+=0x2:_0x1c0898+=0x1;}return _0x1c0898;}function _0x43be85(_0x9b4004,_0x1e8b31,_0x22a7c3,_0x347720){const _0x359668=_0x6daf50;var _0x1c13e3,_0x4c55ad,_0x44eaff,_0x18fbcc;const {rowCount:_0x4f33c1,colCount:_0x187edd,headerMap:_0x30aea}=_0x9b4004,_0x568b62=0x64,_0x203862=Math['min'](_0x4f33c1,_0x568b62),_0x4752b9=Math[_0x359668(0x384)](_0x187edd,_0x568b62);let _0x2501fc='',_0x1c81bb=0x0;for(let _0x3f89d5=0x0;_0x3f89d5<_0x203862;_0x3f89d5++)for(let _0xc2fb32=0x0;_0xc2fb32<_0x4752b9;_0xc2fb32++){const _0x5b6373={...(_0x4c55ad=(_0x1c13e3=_0x9b4004[_0x359668(0x354)])==null?void 0x0:_0x1c13e3[_0x3f89d5])==null?void 0x0:_0x4c55ad[_0xc2fb32]},_0x2653d8=(_0x44eaff=_0x30aea[_0x3f89d5])==null?void 0x0:_0x44eaff[_0x359668(0x124)],_0x506b94=_0x347720[_0x2653d8];let _0x2a9432=_0x9b4004[_0x359668(0x123)](_0x3f89d5,_0xc2fb32);if(_0x5b6373){const _0x1c0c86=_0x22a7c3?_0xc2fb32===0x0&&((_0x18fbcc=_0x9b4004[_0x359668(0x33b)](_0xc2fb32+0x1))==null?void 0x0:_0x18fbcc[_0x359668(0x334)]):!0x1;_0x2a9432=_0x574731(_0x5b6373,_0x1c0c86,_0x506b94,_0x1e8b31);}if(_0x2a9432!==void 0x0){const _0x3bc4dc=_0x3a5858(String(_0x2a9432));_0x1c81bb<_0x3bc4dc&&(_0x2501fc=String(_0x2a9432),_0x1c81bb=_0x3bc4dc);}}return _0x2501fc;}function _0x261719(_0x3f33c7){const _0xdd6410=_0x6daf50,{rowCount:_0x3be55d,colCount:_0x96b707}=_0x3f33c7;let _0x37f46f='',_0xcb466e=0x0;for(let _0x2a07cc=_0x3be55d-0x1;_0x2a07cc>0x0&&_0x2a07cc>_0x3be55d-0x3;_0x2a07cc--)for(let _0x45215a=0x0;_0x45215a<_0x96b707;_0x45215a++){const _0x32a583=_0x3f33c7[_0xdd6410(0x123)](_0x2a07cc,_0x45215a);if(_0x32a583!==void 0x0){const _0x45b36e=String(_0x32a583)[_0xdd6410(0x299)];_0xcb466e<_0x45b36e&&(_0x37f46f=String(_0x32a583),_0xcb466e=_0x45b36e);}}return _0x37f46f;}function _0x4c0c6c(_0x1a16ff){const _0x337ab3=_0x6daf50,{rowCount:_0x198b22,colCount:_0x2315bd}=_0x1a16ff;let _0x1534d9='',_0x3f612b=0x0;for(let _0x30e354=0x0;_0x30e354<_0x198b22;_0x30e354++)for(let _0x59e7f7=0x0;_0x59e7f7<_0x2315bd;_0x59e7f7++){const _0x89f8d5=_0x1a16ff[_0x337ab3(0x123)](_0x30e354,_0x59e7f7);if(_0x89f8d5!==void 0x0){const _0xf670e4=String(_0x89f8d5)[_0x337ab3(0x299)];_0x3f612b<_0xf670e4&&(_0x1534d9=String(_0x89f8d5),_0x3f612b=_0xf670e4);}}return _0x1534d9;}function _0x1d0768(_0x3b86eb,_0x5b747e){const _0x328b0e=_0x6daf50,{rowFields:_0xf3d954,columnFields:_0x28be05,valueFields:_0x361d00,filterFields:_0x1de3ad,dimension:_0x33601f,measure:_0x1b4b22}=_0x5b747e;for(const _0x5beda5 of _0xf3d954){const _0x481216=_0x33601f[_0x5beda5];_0x481216&&_0x3b86eb[_0x328b0e(0x3ab)](_0x481216['dataFieldId'])&&(_0x3b86eb[_0x328b0e(0x187)](_0x481216['dataFieldId'],_0x5ab2d7[_0x328b0e(0x358)][_0x328b0e(0x2f7)],void 0x0,_0x5beda5),_0x481216[_0x328b0e(0x193)]&&_0x3b86eb[_0x328b0e(0x364)](_0x481216['id'],_0x481216[_0x328b0e(0x193)]),_0x481216['sortInfo']&&_0x3b86eb['setSortInfo'](_0x481216['id'],_0x481216[_0x328b0e(0x1f2)]),_0x481216['filterInfo']&&_0x3b86eb[_0x328b0e(0x258)](_0x481216['id'],_0x481216['filterInfo']));}for(const _0x100ef6 of _0x28be05){const _0x194ca1=_0x33601f[_0x100ef6];_0x194ca1&&_0x3b86eb['getDataFieldByDataFieldId'](_0x194ca1[_0x328b0e(0x304)])&&(_0x3b86eb[_0x328b0e(0x187)](_0x194ca1['dataFieldId'],_0x5ab2d7[_0x328b0e(0x358)]['Column'],void 0x0,_0x100ef6),_0x194ca1[_0x328b0e(0x1f2)]&&_0x3b86eb['setSortInfo'](_0x194ca1['id'],_0x194ca1[_0x328b0e(0x1f2)]),_0x194ca1['filterInfo']&&_0x3b86eb[_0x328b0e(0x258)](_0x194ca1['id'],_0x194ca1['filterInfo']),_0x194ca1[_0x328b0e(0x193)]&&_0x3b86eb[_0x328b0e(0x364)](_0x194ca1['id'],_0x194ca1[_0x328b0e(0x193)]));}for(const _0x204fae of _0x1de3ad){const _0xfe0a0b=_0x33601f[_0x204fae];_0xfe0a0b&&_0x3b86eb[_0x328b0e(0x3ab)](_0xfe0a0b['dataFieldId'])&&(_0x3b86eb[_0x328b0e(0x187)](_0xfe0a0b['dataFieldId'],_0x5ab2d7[_0x328b0e(0x358)][_0x328b0e(0x3c1)],void 0x0,_0x204fae),_0xfe0a0b['sortInfo']&&_0x3b86eb[_0x328b0e(0x1ca)](_0xfe0a0b['id'],_0xfe0a0b['sortInfo']),_0xfe0a0b[_0x328b0e(0x176)]&&_0x3b86eb[_0x328b0e(0x258)](_0xfe0a0b['id'],_0xfe0a0b[_0x328b0e(0x176)]),_0xfe0a0b[_0x328b0e(0x193)]&&_0x3b86eb[_0x328b0e(0x364)](_0xfe0a0b['id'],_0xfe0a0b[_0x328b0e(0x193)]));}for(const _0x59d32b of _0x361d00){const _0x5ea367=_0x1b4b22[_0x59d32b];_0x5ea367&&_0x3b86eb['getDataFieldByDataFieldId'](_0x5ea367[_0x328b0e(0x304)])&&(_0x3b86eb[_0x328b0e(0x187)](_0x5ea367[_0x328b0e(0x304)],_0x5ab2d7[_0x328b0e(0x358)][_0x328b0e(0x338)],void 0x0,_0x59d32b),_0x5ea367[_0x328b0e(0x232)]!==void 0x0&&_0x3b86eb[_0x328b0e(0x1f7)](_0x59d32b,_0x5ea367[_0x328b0e(0x232)]),_0x5ea367[_0x328b0e(0x40c)]&&_0x3b86eb[_0x328b0e(0x16d)](_0x59d32b,_0x5ea367['format']),_0x5ea367['displayName']&&_0x3b86eb['renameField'](_0x5ea367['id'],_0x5ea367['displayName']));}const _0x522a22=_0x5b747e['valueFilter'];for(const {fieldId:_0x31fe47,filterInfo:_0x3d6cb0}of _0x522a22)_0x3b86eb[_0x328b0e(0x206)](_0x31fe47,_0x3d6cb0);}function _0x22f4ff(_0x510c89,_0x13edd3){const _0x1d7157=_0x6daf50,_0x37abff=[];_0x13edd3===_0x5ab2d7[_0x1d7157(0x358)][_0x1d7157(0x2f7)]&&_0x510c89[_0x1d7157(0x169)](_0x5ab2d7[_0x1d7157(0x358)][_0x1d7157(0x2f7)],_0x575049=>{const _0x366115=_0x1d7157;_0x37abff[_0x366115(0x337)](_0x575049[_0x366115(0x1cb)]());}),_0x13edd3===_0x5ab2d7[_0x1d7157(0x358)]['Column']&&_0x510c89[_0x1d7157(0x169)](_0x5ab2d7['PivotTableFiledAreaEnum']['Column'],_0x20cbcc=>{const _0x5b19da=_0x1d7157;_0x37abff[_0x5b19da(0x337)](_0x20cbcc['getId']());}),_0x13edd3===_0x5ab2d7[_0x1d7157(0x358)][_0x1d7157(0x3c1)]&&_0x510c89[_0x1d7157(0x169)](_0x5ab2d7[_0x1d7157(0x358)][_0x1d7157(0x3c1)],_0x52efb5=>{const _0xf35246=_0x1d7157;_0x37abff['push'](_0x52efb5[_0xf35246(0x1cb)]());}),_0x13edd3===_0x5ab2d7['PivotTableFiledAreaEnum']['Value']&&_0x510c89[_0x1d7157(0x169)](_0x5ab2d7[_0x1d7157(0x358)][_0x1d7157(0x338)],_0x34945c=>{const _0x11ab1f=_0x1d7157;_0x37abff['push'](_0x34945c[_0x11ab1f(0x1cb)]());}),_0x13edd3===void 0x0&&_0x510c89[_0x1d7157(0x32a)](_0x33b2ac=>{const _0x206df0=_0x1d7157;_0x37abff[_0x206df0(0x337)](_0x33b2ac[_0x206df0(0x1cb)]());});const _0x400317=_0x37abff[_0x1d7157(0x299)];for(let _0x4be79e=_0x400317-0x1;_0x4be79e>=0x0;_0x4be79e--)_0x510c89[_0x1d7157(0x31a)](_0x37abff[_0x4be79e]);const _0x5b5d3c=_0x510c89['getValueFilterInfos']();for(const _0x26056e in _0x5b5d3c)_0x510c89[_0x1d7157(0x432)](_0x26056e);}function _0x2752ed(_0x472986,_0x574f1e){const _0x1564af=_0x6daf50,_0x345121=new Date(_0x5ab2d7[_0x1564af(0x314)](_0x574f1e)),_0x42a3db=new Date(_0x5ab2d7[_0x1564af(0x314)](_0x472986)),_0x28db79=_0x345121[_0x1564af(0x430)](),_0x231505=_0x42a3db[_0x1564af(0x430)](),_0x2d7342=_0x345121[_0x1564af(0x161)](),_0x2fee0a=_0x42a3db[_0x1564af(0x161)](),_0x138f71=_0x345121['getDate'](),_0x409b9d=_0x42a3db['getDate'](),_0xd9a263=_0x28db79===_0x231505,_0x2f0478=_0xd9a263&&_0x2d7342===_0x2fee0a;return _0xd9a263&&_0x2f0478&&!(_0x2f0478&&_0x138f71===_0x409b9d)?_0x5ab2d7['PivotDateGroupFieldDateTypeEnum'][_0x1564af(0x20b)]:_0xd9a263&&!_0x2f0478?_0x5ab2d7[_0x1564af(0x229)][_0x1564af(0x320)]:_0x5ab2d7['PivotDateGroupFieldDateTypeEnum'][_0x1564af(0x226)];}function _0x59a81c(_0x5521f5,_0x3a9cae){const _0x1a5034=_0x6daf50,_0x526901=_0x5521f5[_0x1a5034(0x393)](_0x271f43[_0x1a5034(0x383)])['getTextInfo']();let _0x298e40='';switch(_0x3a9cae){case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x20b)]:_0x298e40=_0x526901[_0x1a5034(0x3ee)];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x320)]:_0x298e40=_0x526901[_0x1a5034(0x285)];break;case _0x5ab2d7[_0x1a5034(0x229)]['Year']:_0x298e40=_0x526901[_0x1a5034(0x13e)];break;case _0x5ab2d7['PivotDateGroupFieldDateTypeEnum'][_0x1a5034(0x3e1)]:_0x298e40=_0x526901['sheets-pivot.dateGroup.month'];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x1a4)]:_0x298e40=_0x526901[_0x1a5034(0x307)];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x23b)]:_0x298e40=_0x526901[_0x1a5034(0x38d)];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x2c2)]:_0x298e40=_0x526901[_0x1a5034(0x345)];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x32d)]:_0x298e40=_0x526901[_0x1a5034(0x3c6)];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x181)]:_0x298e40=_0x526901[_0x1a5034(0x249)];break;case _0x5ab2d7['PivotDateGroupFieldDateTypeEnum'][_0x1a5034(0x42d)]:_0x298e40=_0x526901[_0x1a5034(0x159)];break;case _0x5ab2d7[_0x1a5034(0x229)][_0x1a5034(0x3df)]:_0x298e40=_0x526901[_0x1a5034(0x3c2)];break;default:_0x298e40='';break;}return _0x298e40;}const _0x29fd09='sheets-pivot.config',_0x5a1be7={};var _0xd41005=Object[_0x6daf50(0x182)],_0x80f776=(_0x100115,_0x41f48b,_0x21a3d4,_0x3f4209)=>{for(var _0x122490=_0x3f4209>0x1?void 0x0:_0x3f4209?_0xd41005(_0x41f48b,_0x21a3d4):_0x41f48b,_0x109b73=_0x100115['length']-0x1,_0x1fb562;_0x109b73>=0x0;_0x109b73--)(_0x1fb562=_0x100115[_0x109b73])&&(_0x122490=_0x1fb562(_0x122490)||_0x122490);return _0x122490;},_0x51104c=(_0x2b22c3,_0x3e39e0)=>(_0x13b164,_0x3788b4)=>_0x3e39e0(_0x13b164,_0x3788b4,_0x2b22c3);_0x271f43[_0x6daf50(0x42c)]=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x556ee2,_0x1d72d4,_0x1ab03c,_0x3cbebd,_0x51a085){const _0x327253=_0x6daf50;super(),_0x3f9e42(this,_0x327253(0x3dc),new Map()),_0x3f9e42(this,'_collectionConfigModel',new Map()),_0x3f9e42(this,_0x327253(0x1d8),new Map()),_0x3f9e42(this,_0x327253(0x309),new Map()),_0x3f9e42(this,_0x327253(0x398),new _0x2b128f[(_0x327253(0x129))]()),_0x3f9e42(this,_0x327253(0x38b),new _0x2b128f[(_0x327253(0x129))]()),_0x3f9e42(this,_0x327253(0x27e),this['_pivotInitCompleted$'][_0x327253(0x3c3)]()),_0x3f9e42(this,_0x327253(0x321),new _0x2b128f['Subject']()),_0x3f9e42(this,_0x327253(0x27c),this[_0x327253(0x321)][_0x327253(0x3c3)]()),_0x3f9e42(this,_0x327253(0x200),{}),_0x3f9e42(this,_0x327253(0x371),this[_0x327253(0x398)][_0x327253(0x3c3)]()),(this['_injector']=_0x556ee2,this[_0x327253(0x392)]=_0x1d72d4,this[_0x327253(0x24e)]=_0x1ab03c,this[_0x327253(0x2d1)]=_0x3cbebd,this[_0x327253(0x434)]=_0x51a085,this[_0x327253(0x43b)](),this[_0x327253(0x241)]());const _0x25d1c3=this[_0x327253(0x434)][_0x327253(0x3d0)](_0x29fd09);(_0x25d1c3==null?void 0x0:_0x25d1c3['notExecuteFormula'])===!0x0&&this[_0x327253(0x192)]();}[_0x6daf50(0x241)](){const _0x373192=_0x6daf50;this[_0x373192(0x137)](this[_0x373192(0x24e)][_0x373192(0x317)](_0x3aab5b[_0x373192(0x3b5)][_0x373192(0x343)])[_0x373192(0x236)](_0x8f68d7=>{const _0x570ca1=_0x373192;this[_0x570ca1(0x39b)](_0x8f68d7[_0x570ca1(0x306)]());}));}[_0x6daf50(0x211)](){const _0x1c1710=_0x6daf50;this['_pivotInitCompleted$'][_0x1c1710(0x3b3)](!0x0);}[_0x6daf50(0x43b)](){const _0x1d0119=_0x6daf50,_0x377b20=_0x314566(this[_0x1d0119(0x408)],_0x42a6ad,'',{});this[_0x1d0119(0x200)]=_0x377b20,this['_commandService'][_0x1d0119(0x2ec)](_0x3db2ca['id'],{'textInfo':_0x377b20},{'onlyLocal':!0x0});}['getTextInfo'](){const _0x345c7d=_0x6daf50;return this[_0x345c7d(0x200)];}[_0x6daf50(0x290)](_0x56cc82,_0x147bce,_0x56cb57,_0x2adeee,_0x33e9f4){const _0x364144=_0x6daf50;this[_0x364144(0x216)](_0x56cc82,_0x147bce,_0x56cb57,_0x2adeee),this['updatePivotTableRangeInfo'](_0x56cc82,_0x147bce,_0x56cb57,_0x33e9f4);}[_0x6daf50(0x3bd)](_0x1b4960,_0x5f4a95,_0x35302d){const _0x15b27e=_0x6daf50;var _0x31c34c;const _0x1e132d=(_0x31c34c=this['_model'][_0x15b27e(0x393)](_0x1b4960))==null?void 0x0:_0x31c34c[_0x15b27e(0x393)](_0x5f4a95);if(_0x1e132d)return _0x1e132d[_0x15b27e(0x393)](_0x35302d);}[_0x6daf50(0x2ef)](_0x2b02d4,_0x1880dc){const _0x58a2bd=_0x6daf50,_0x170f20=this['_model'][_0x58a2bd(0x393)](_0x2b02d4);if(_0x170f20){for(const [_0x3c13e9,_0x51d9d2]of _0x170f20[_0x58a2bd(0x1b1)]())for(const [_0x373dec,_0x5aba07]of _0x51d9d2[_0x58a2bd(0x1b1)]())if(_0x373dec===_0x1880dc)return _0x5aba07[_0x58a2bd(0x233)];}}[_0x6daf50(0x360)](_0x562caa,_0x341739,_0x5e2a58){const _0x416a9e=_0x6daf50,_0x12c2e5=this[_0x416a9e(0x3bd)](_0x562caa,_0x341739,_0x5e2a58);return _0x12c2e5==null?void 0x0:_0x12c2e5[_0x416a9e(0x233)];}[_0x6daf50(0x355)](_0x42d7f7,_0x4a9da4){const _0x1cb075=_0x6daf50;var _0x1ddafd;return(_0x1ddafd=this[_0x1cb075(0x3dc)][_0x1cb075(0x393)](_0x42d7f7))==null?void 0x0:_0x1ddafd[_0x1cb075(0x393)](_0x4a9da4);}['updateConfigCache'](_0x58bb7c,_0x58305e,_0x429f7a,_0x1eed34){const _0x3f0a95=_0x6daf50,_0x5f5bd5=this[_0x3f0a95(0x27b)](_0x58bb7c,_0x58305e);_0x1eed34?_0x5f5bd5[_0x3f0a95(0x3eb)](_0x429f7a,_0x1eed34):_0x5f5bd5[_0x3f0a95(0x356)](_0x429f7a),this[_0x3f0a95(0x321)]['next']({'unitId':_0x58bb7c,'subUnitId':_0x58305e,'pivotTableId':_0x429f7a,'pivotTableConfig':_0x1eed34});}[_0x6daf50(0x34e)](_0x2f5bf1,_0x15e8a7){const _0x14714a=_0x6daf50;var _0x3fb985;return(_0x3fb985=this[_0x14714a(0x2b1)][_0x14714a(0x393)](_0x2f5bf1))==null?void 0x0:_0x3fb985[_0x14714a(0x1e7)][_0x15e8a7];}[_0x6daf50(0x2f9)](_0x2e7d63,_0x52c118){const _0x240df1=_0x6daf50;this[_0x240df1(0x2b1)][_0x240df1(0x3eb)](_0x2e7d63,_0x52c118),this[_0x240df1(0x398)][_0x240df1(0x3b3)](Math[_0x240df1(0x1ee)]());}[_0x6daf50(0x27b)](_0x460e21,_0x3b9265){const _0x2d73b7=_0x6daf50;let _0x2d38e7=this[_0x2d73b7(0x3dc)][_0x2d73b7(0x393)](_0x460e21);_0x2d38e7||(_0x2d38e7=new Map(),this[_0x2d73b7(0x3dc)][_0x2d73b7(0x3eb)](_0x460e21,_0x2d38e7));let _0x59d738=_0x2d38e7[_0x2d73b7(0x393)](_0x3b9265);return _0x59d738||(_0x59d738=new Map(),_0x2d38e7['set'](_0x3b9265,_0x59d738)),_0x59d738;}[_0x6daf50(0x12a)](_0x34ae79,_0x3aa50b){const _0x5ac939=_0x6daf50;let _0x196fae=this[_0x5ac939(0x1d8)][_0x5ac939(0x393)](_0x34ae79);_0x196fae||(_0x196fae=new Map(),this[_0x5ac939(0x1d8)]['set'](_0x34ae79,_0x196fae));let _0x2b74d0=_0x196fae[_0x5ac939(0x393)](_0x3aa50b);return _0x2b74d0||(_0x2b74d0=new Map(),_0x196fae[_0x5ac939(0x3eb)](_0x3aa50b,_0x2b74d0)),_0x2b74d0;}[_0x6daf50(0x14a)](_0x2f28ba,_0x2a01aa){const _0x54f79d=_0x6daf50;let _0x209887=this[_0x54f79d(0x309)][_0x54f79d(0x393)](_0x2f28ba);_0x209887||(_0x209887=new Map(),this[_0x54f79d(0x309)][_0x54f79d(0x3eb)](_0x2f28ba,_0x209887));let _0x4b5296=_0x209887[_0x54f79d(0x393)](_0x2a01aa);return _0x4b5296||(_0x4b5296=new Map(),_0x209887[_0x54f79d(0x3eb)](_0x2a01aa,_0x4b5296)),_0x4b5296;}['updatePivotTableRangeInfo'](_0x1c9180,_0x320f3e,_0x4e7627,_0x2938fb){const _0x4afcd2=_0x6daf50;var _0x2432c3;const _0x3bd82d=this['_ensurePivotTableRangeInfo'](_0x1c9180,_0x320f3e),_0x4b9402=(_0x2432c3=_0x3bd82d[_0x4afcd2(0x393)](_0x4e7627))==null?void 0x0:_0x2432c3[_0x4afcd2(0x18b)];_0x3bd82d[_0x4afcd2(0x3eb)](_0x4e7627,{'oldRangeInfo':_0x4b9402,'rangeInfo':_0x2938fb});}[_0x6daf50(0x216)](_0x59c9f6,_0x4e8ff9,_0x3cd9e6,_0x3b0210){const _0x26e637=_0x6daf50;var _0x48174b;const _0x4103e1=this[_0x26e637(0x14a)](_0x59c9f6,_0x4e8ff9),_0x16eae4=(_0x48174b=_0x4103e1['get'](_0x3cd9e6))==null?void 0x0:_0x48174b['oldMatrix'];_0x4103e1[_0x26e637(0x3eb)](_0x3cd9e6,{'oldMatrix':_0x16eae4,'matrix':_0x3b0210});}[_0x6daf50(0x273)](_0x5e6179,_0x487f3f,_0x157a02){const _0x4f72cc=_0x6daf50;var _0xb2b24f,_0x4d44f9;return(_0x4d44f9=(_0xb2b24f=this[_0x4f72cc(0x1d8)][_0x4f72cc(0x393)](_0x5e6179))==null?void 0x0:_0xb2b24f[_0x4f72cc(0x393)](_0x487f3f))==null?void 0x0:_0x4d44f9['get'](_0x157a02);}[_0x6daf50(0x41a)](_0x2532fa,_0x420d90,_0x515a9f){const _0x122cd7=_0x6daf50;var _0x3ec4d2,_0x3ee710;return(_0x3ee710=(_0x3ec4d2=this[_0x122cd7(0x309)][_0x122cd7(0x393)](_0x2532fa))==null?void 0x0:_0x3ec4d2[_0x122cd7(0x393)](_0x420d90))==null?void 0x0:_0x3ee710[_0x122cd7(0x393)](_0x515a9f);}[_0x6daf50(0x39b)](_0x528a3e){const _0x4a9808=_0x6daf50;this[_0x4a9808(0x3dc)][_0x4a9808(0x356)](_0x528a3e),this[_0x4a9808(0x2b1)][_0x4a9808(0x356)](_0x528a3e);}[_0x6daf50(0x3ad)](_0xcbb347){const _0x5edac1=_0x6daf50,_0x536484={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x5edac1(0x2b1)][_0x5edac1(0x393)](_0xcbb347)&&(_0x536484[_0x5edac1(0x18e)][_0xcbb347]=this['_collectionConfigModel'][_0x5edac1(0x393)](_0xcbb347)),this[_0x5edac1(0x3dc)][_0x5edac1(0x393)](_0xcbb347)){_0x536484['pivotTableConfigs'][_0xcbb347]={};const _0x231a55=this['_model']['get'](_0xcbb347);_0x231a55!=null&&_0x231a55[_0x5edac1(0x423)]&&[..._0x231a55[_0x5edac1(0x30e)]()][_0x5edac1(0x3d8)](_0x22db1b=>{const _0x16f4df=_0x5edac1,_0x20f40e=_0x231a55[_0x16f4df(0x393)](_0x22db1b);_0x20f40e!=null&&_0x20f40e[_0x16f4df(0x423)]&&(_0x536484[_0x16f4df(0x374)][_0xcbb347][_0x22db1b]={},[..._0x20f40e[_0x16f4df(0x30e)]()][_0x16f4df(0x3d8)](_0x322050=>{const _0x302664=_0x16f4df,_0x4adf5a=_0x20f40e[_0x302664(0x393)](_0x322050);_0x4adf5a&&(_0x536484[_0x302664(0x374)][_0xcbb347][_0x22db1b][_0x322050]=_0x4adf5a);}));});}return _0x536484;}[_0x6daf50(0x192)](){const _0x25fbcb=_0x6daf50;this[_0x25fbcb(0x137)](this['_resourceManagerService'][_0x25fbcb(0x30f)]({'toJson':_0x34aa26=>JSON[_0x25fbcb(0x247)](this['_toJSON'](_0x34aa26)),'parseJson':_0x32d664=>({}),'businesses':[_0x3aab5b[_0x25fbcb(0x3b5)][_0x25fbcb(0x343)]],'pluginName':_0x3a232b,'onLoad':(_0x3b3303,_0x1d4ade)=>{},'onUnLoad':_0x7ce36d=>{const _0xbb04bf=_0x25fbcb;this[_0xbb04bf(0x39b)](_0x7ce36d);}}));}},_0x271f43['SheetsPivotTableConfigModel']=_0x80f776([_0x51104c(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x39a)])),_0x51104c(0x1,_0x3aab5b['Inject'](_0x3aab5b['ICommandService'])),_0x51104c(0x2,_0x3aab5b['Inject'](_0x3aab5b['IUniverInstanceService'])),_0x51104c(0x3,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x2b9)])),_0x51104c(0x4,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x1eb)]))],_0x271f43[_0x6daf50(0x42c)]);var _0x1e5014=Object[_0x6daf50(0x182)],_0xf8d671=(_0x226a25,_0x2ed21e,_0x501ba9,_0x2935e3)=>{const _0x165161=_0x6daf50;for(var _0x424b84=_0x2935e3>0x1?void 0x0:_0x2935e3?_0x1e5014(_0x2ed21e,_0x501ba9):_0x2ed21e,_0x2edc7c=_0x226a25[_0x165161(0x299)]-0x1,_0x33bf4d;_0x2edc7c>=0x0;_0x2edc7c--)(_0x33bf4d=_0x226a25[_0x2edc7c])&&(_0x424b84=_0x33bf4d(_0x424b84)||_0x424b84);return _0x424b84;},_0x29602c=(_0xe07b54,_0x151844)=>(_0x1e8f7e,_0xb26ffb)=>_0x151844(_0x1e8f7e,_0xb26ffb,_0xe07b54);_0x271f43['SheetsPivotTableAdaptorModel']=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x2eefad,_0x11d6ba,_0xe2ee1a,_0x357e42,_0x54d54b){const _0x764cfb=_0x6daf50;super(),_0x3f9e42(this,_0x764cfb(0x2cb),new Map()),_0x3f9e42(this,_0x764cfb(0x324),new Map()),_0x3f9e42(this,_0x764cfb(0x248),new _0x2b128f[(_0x764cfb(0x129))]()),_0x3f9e42(this,_0x764cfb(0x433),this['_markDirty$'][_0x764cfb(0x3c3)]()),_0x3f9e42(this,_0x764cfb(0x2cd),new _0x2b128f[(_0x764cfb(0x129))]()),_0x3f9e42(this,_0x764cfb(0x1af),this[_0x764cfb(0x2cd)][_0x764cfb(0x3c3)]()),_0x3f9e42(this,'_textInfo'),(this[_0x764cfb(0x2aa)]=_0x2eefad,this[_0x764cfb(0x408)]=_0x11d6ba,this[_0x764cfb(0x3cd)]=_0xe2ee1a,this[_0x764cfb(0x24e)]=_0x357e42,this[_0x764cfb(0x2e3)]=_0x54d54b,this[_0x764cfb(0x43b)](),this[_0x764cfb(0x241)]());}[_0x6daf50(0x241)](){const _0x5e6f70=_0x6daf50;this[_0x5e6f70(0x137)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x3aab5b['UniverInstanceType'][_0x5e6f70(0x343)])[_0x5e6f70(0x236)](_0x3f5dfc=>{const _0x22a5fc=_0x5e6f70;this[_0x22a5fc(0x39b)](_0x3f5dfc['getUnitId']());}));}[_0x6daf50(0x43b)](){const _0x52b719=_0x6daf50;this[_0x52b719(0x200)]=_0x314566(this[_0x52b719(0x408)],_0x42a6ad,'',{});}[_0x6daf50(0x250)](_0x21bc80){const _0x19deb9=_0x6daf50,{view:_0x3ed836,unitId:_0x21560a,subUnitId:_0x5390ec,pivotTableId:_0x27d70d,type:_0x3f5887}=_0x21bc80,_0x57b6c2=this[_0x19deb9(0x3cd)][_0x19deb9(0x3bd)](_0x21560a,_0x5390ec,_0x27d70d);if(!_0x3ed836||!_0x57b6c2||_0x3f5887===_0x1ab225[_0x19deb9(0x24b)])return;const {pageView:_0x5c17cf,cornerView:_0x1fb6f4,rowView:_0x4595a4,colView:_0xf87dd9,dataView:_0x4bd6a5}=_0x3ed836,_0xdd1d2a=_0x57b6c2[_0x19deb9(0x233)],_0x3c0d68=_0x57b6c2[_0x19deb9(0x37d)],_0x39a6ba=this[_0x19deb9(0x417)](_0x21560a,_0x5390ec),_0x28a002=this[_0x19deb9(0x146)](_0x21560a,_0x5390ec,_0x27d70d);if(_0x3c0d68)return this[_0x19deb9(0x19f)](_0x21bc80,_0x39a6ba,_0xdd1d2a,_0x28a002);{const _0x591670=_0x56e08b(_0xdd1d2a,_0x5c17cf,!0x0),_0x1fb41d=_0x5c17cf[_0x19deb9(0x1a5)]>=0x0?_0x5c17cf['lastRow']+0x1:0x0,_0x553979=_0x1fb6f4[_0x19deb9(0x3c8)](),_0x1c251c=_0x1fb6f4['getColCount'](),_0x26af6a=_0x591670[_0x19deb9(0x299)]>0x0?_0x50ed31:0x0,_0x7562ff=_0x56e08b({'row':_0xdd1d2a[_0x19deb9(0x177)]+_0x1fb41d+_0x26af6a,'col':_0xdd1d2a[_0x19deb9(0x215)]},_0x1fb6f4,!0x1,!0x1),_0x59d646=_0x56e08b({'row':_0xdd1d2a['row']+_0x1fb41d+_0x26af6a+_0x553979,'col':_0xdd1d2a[_0x19deb9(0x215)]},_0x4595a4,!0x1,!0x0),_0x16d8c2=_0x56e08b({'row':_0xdd1d2a[_0x19deb9(0x177)]+_0x1fb41d+_0x26af6a,'col':_0xdd1d2a[_0x19deb9(0x215)]+_0x1c251c},_0xf87dd9,!0x1,!0x0),_0x2296e9=_0x56e08b({'row':_0xdd1d2a[_0x19deb9(0x177)]+_0x1fb41d+_0x26af6a+_0x553979,'col':_0xdd1d2a[_0x19deb9(0x215)]+_0x1c251c},_0x4bd6a5,!0x1,!0x1);_0x28a002[_0x19deb9(0x316)]={'rowRanges':_0x59d646,'colRanges':_0x16d8c2,'cornerRanges':_0x7562ff,'dataRanges':_0x2296e9,'pageRanges':_0x591670};const _0x2f0675=_0x489212(this['_injector'],_0x3ed836,_0x57b6c2,this['_textInfo']),{valueMatrix:_0x15b1d8,rowInfo:_0x55de91,colInfo:_0x2f78f5,cornerInfo:_0x25af28,rowHeaderMap:_0x343819,colHeaderMap:_0x305403}=_0x2f0675;return _0x28a002[_0x19deb9(0x361)]={'rowInfo':_0x55de91,'colInfo':_0x2f78f5,'cornerInfo':_0x25af28},_0x28a002[_0x19deb9(0x14f)]={'rowHeaderMap':_0x343819,'colHeaderMap':_0x305403},_0x15b1d8['forEach']((_0x118d22,_0xf2131d)=>{const _0x5ebd72=_0x19deb9;Object[_0x5ebd72(0x30e)](_0xf2131d)['forEach'](_0x1a7218=>{const _0x3f0bac=_0x5ebd72,_0x3ab777=+_0x1a7218,_0x3579ba=_0x15b1d8['getValue'](_0x118d22,_0x3ab777);_0x39a6ba[_0x3f0bac(0x3e5)](_0x118d22,_0x3ab777,_0x3579ba);});}),this['_viewUpdate$'][_0x19deb9(0x3b3)]({'unitId':_0x21560a,'subUnitId':_0x5390ec,'valueMatrix':_0x39a6ba,'rangesCache':_0x28a002[_0x19deb9(0x316)],'pivotTableId':_0x27d70d,'type':_0x21bc80[_0x19deb9(0x15a)]}),this['_sheetsPivotTableConfigModel'][_0x19deb9(0x290)](_0x21560a,_0x5390ec,_0x27d70d,_0x39a6ba,_0x28a002[_0x19deb9(0x316)]),this[_0x19deb9(0x2e3)][_0x19deb9(0x29e)](_0x21560a,_0x5390ec,_0x4b122d,this[_0x19deb9(0x2d7)](_0x28a002[_0x19deb9(0x316)],_0x27d70d)),{'rangeCache':_0x28a002[_0x19deb9(0x316)],'matrix':_0x39a6ba};}}['_updateRenderEmptyCache'](_0x241e7d,_0x2b3c79,_0x53104e,_0x604d24){const _0x211b48=_0x6daf50,_0x18e392=this['_localeService']['t'],{unitId:_0x2b8148,subUnitId:_0x53dcfe,pivotTableId:_0xbea1b0}=_0x241e7d,_0x418b6b={'filter':_0x18e392(_0x211b48(0x265)),'row':_0x18e392(_0x211b48(0x353)),'column':_0x18e392(_0x211b48(0x128)),'values':_0x18e392(_0x211b48(0x394))},{matrixCache:_0x20b6f2,rangesCache:_0x3d60e7}=_0x43512b(_0x418b6b,_0x53104e);return _0x20b6f2[_0x211b48(0x410)]((_0x18ed83,_0x13a6b3,_0x33736c)=>{_0x2b3c79['setValue'](_0x18ed83,_0x13a6b3,_0x33736c);}),_0x604d24[_0x211b48(0x316)]=_0x3d60e7,this[_0x211b48(0x2cd)][_0x211b48(0x3b3)]({'unitId':_0x2b8148,'subUnitId':_0x53dcfe,'valueMatrix':_0x2b3c79,'rangesCache':_0x3d60e7,'pivotTableId':_0xbea1b0,'type':_0x241e7d[_0x211b48(0x15a)],'isEmpty':!0x0}),this[_0x211b48(0x3cd)][_0x211b48(0x290)](_0x2b8148,_0x53dcfe,_0xbea1b0,_0x2b3c79,_0x3d60e7),this['_exclusiveRangeService'][_0x211b48(0x29e)](_0x2b8148,_0x53dcfe,_0x4b122d,this['_createExclusiveRange'](_0x3d60e7,_0xbea1b0)),{'rangeCache':_0x604d24[_0x211b48(0x316)],'matrix':_0x2b3c79};}[_0x6daf50(0x2d7)](_0x37a83a,_0x1515f8){const _0x56859e=[],_0x246e49=_0x1668ea(_0x37a83a);for(const _0xef4d40 of _0x246e49)_0x56859e['push']({'groupId':_0x1515f8,'range':_0xef4d40});return _0x56859e;}[_0x6daf50(0x312)](_0x277a66){const _0x20146d=_0x6daf50;var _0x592db7,_0x2a9d0c,_0x188b67,_0x1c54ff;const {pivotTableId:_0x1ebcf7,unitId:_0x5132f2,subUnitId:_0x569568}=_0x277a66;if(!_0x1ebcf7||!_0x5132f2||!_0x569568)return;const _0x3d1be7=this[_0x20146d(0x417)](_0x5132f2,_0x569568),_0x1be9a0=(_0x2a9d0c=(_0x592db7=this[_0x20146d(0x2cb)][_0x20146d(0x393)](_0x5132f2))==null?void 0x0:_0x592db7[_0x20146d(0x393)](_0x569568))==null?void 0x0:_0x2a9d0c['get'](_0x1ebcf7);if(_0x1be9a0!=null&&_0x1be9a0[_0x20146d(0x316)]){for(const _0x4c3471 of Object['keys'](_0x1be9a0['rangesInfo']))_0x1be9a0['rangesInfo'][_0x4c3471][_0x20146d(0x3d8)](_0x24e307=>{const _0x5cd6d1=_0x20146d;for(let _0x3bd330=_0x24e307[_0x5cd6d1(0x413)];_0x3bd330<=_0x24e307[_0x5cd6d1(0x132)];_0x3bd330++)for(let _0x1b16ef=_0x24e307['startColumn'];_0x1b16ef<=_0x24e307[_0x5cd6d1(0x3e9)];_0x1b16ef++)_0x3d1be7['realDeleteValue'](_0x3bd330,_0x1b16ef);});}_0x1be9a0&&((_0x1c54ff=(_0x188b67=this[_0x20146d(0x2cb)][_0x20146d(0x393)](_0x5132f2))==null?void 0x0:_0x188b67['get'](_0x569568))==null||_0x1c54ff['delete'](_0x1ebcf7)),this['_viewUpdate$'][_0x20146d(0x3b3)]({'unitId':_0x5132f2,'subUnitId':_0x569568,'valueMatrix':_0x3d1be7,'pivotTableId':_0x1ebcf7,'rangesCache':void 0x0,'type':_0x277a66['type']}),this[_0x20146d(0x2e3)][_0x20146d(0x1bb)](_0x5132f2,_0x569568,_0x4b122d,_0x1ebcf7);}[_0x6daf50(0x146)](_0x534bfc,_0x54e545,_0x44b5e9){const _0x45e0c0=_0x6daf50;var _0x34f1ef,_0x3e3f16,_0xba44fa,_0x1dc66d,_0x4d34a2,_0x30cf5d;return this[_0x45e0c0(0x2cb)][_0x45e0c0(0x271)](_0x534bfc)||this[_0x45e0c0(0x2cb)][_0x45e0c0(0x3eb)](_0x534bfc,new Map()),(_0x34f1ef=this[_0x45e0c0(0x2cb)][_0x45e0c0(0x393)](_0x534bfc))!=null&&_0x34f1ef['has'](_0x54e545)||(_0x3e3f16=this['_pivotRenderInfoCache'][_0x45e0c0(0x393)](_0x534bfc))==null||_0x3e3f16[_0x45e0c0(0x3eb)](_0x54e545,new Map()),(_0x1dc66d=(_0xba44fa=this[_0x45e0c0(0x2cb)]['get'](_0x534bfc))==null?void 0x0:_0xba44fa[_0x45e0c0(0x393)](_0x54e545))!=null&&_0x1dc66d['has'](_0x44b5e9)||(_0x30cf5d=(_0x4d34a2=this[_0x45e0c0(0x2cb)][_0x45e0c0(0x393)](_0x534bfc))==null?void 0x0:_0x4d34a2[_0x45e0c0(0x393)](_0x54e545))==null||_0x30cf5d[_0x45e0c0(0x3eb)](_0x44b5e9,{}),this[_0x45e0c0(0x2cb)][_0x45e0c0(0x393)](_0x534bfc)[_0x45e0c0(0x393)](_0x54e545)[_0x45e0c0(0x393)](_0x44b5e9);}['_ensurePivotItemRenderValueMatrixCache'](_0x2f33fa,_0x584155){const _0x3e6e32=_0x6daf50;var _0xbcee7f,_0x5109c5;return this['_pivotRenderValueMatrixCache'][_0x3e6e32(0x271)](_0x2f33fa)||this[_0x3e6e32(0x324)][_0x3e6e32(0x3eb)](_0x2f33fa,new Map()),(_0xbcee7f=this[_0x3e6e32(0x324)][_0x3e6e32(0x393)](_0x2f33fa))!=null&&_0xbcee7f[_0x3e6e32(0x271)](_0x584155)||(_0x5109c5=this['_pivotRenderValueMatrixCache'][_0x3e6e32(0x393)](_0x2f33fa))==null||_0x5109c5[_0x3e6e32(0x3eb)](_0x584155,new _0x3aab5b[(_0x3e6e32(0x25d))]()),this[_0x3e6e32(0x324)][_0x3e6e32(0x393)](_0x2f33fa)['get'](_0x584155);}[_0x6daf50(0x3ef)](_0x420d93,_0x1b6591,_0x311ed7,_0x39bfe2){const _0x1d0e9f=_0x6daf50;var _0x302ab8,_0x1e14d8;const _0x3568be=(_0x1e14d8=(_0x302ab8=this[_0x1d0e9f(0x324)]['get'](_0x420d93))==null?void 0x0:_0x302ab8[_0x1d0e9f(0x393)](_0x1b6591))==null?void 0x0:_0x1e14d8['getValue'](_0x311ed7,_0x39bfe2);if(_0x3568be!=null)return _0x3568be;}[_0x6daf50(0x13b)](_0x3baa8a,_0x29f42e,_0x5a0c7d,_0x3885f0){const _0x57bb12=_0x6daf50;var _0x212d56;const _0x5d6b53=_0x3aab5b[_0x57bb12(0x278)](_0x5a0c7d,_0x3885f0),_0x49a484=(_0x212d56=this[_0x57bb12(0x2cb)][_0x57bb12(0x393)](_0x3baa8a))==null?void 0x0:_0x212d56[_0x57bb12(0x393)](_0x29f42e);return _0x49a484?Array[_0x57bb12(0x3fc)](_0x49a484[_0x57bb12(0x30e)]())[_0x57bb12(0x184)](_0x393f0c=>{const _0x56f1a7=_0x57bb12,_0x3a7d50=_0x49a484[_0x56f1a7(0x393)](_0x393f0c),_0x4aae4b=_0x3a7d50==null?void 0x0:_0x3a7d50[_0x56f1a7(0x316)];return _0x4aae4b?Object[_0x56f1a7(0x30e)](_0x4aae4b)['some'](_0x7f513c=>_0x4aae4b[_0x7f513c][_0x56f1a7(0x2d0)](_0x5bf59b=>_0x3aab5b[_0x56f1a7(0x224)]['contains'](_0x5bf59b,_0x5d6b53))):!0x1;}):void 0x0;}[_0x6daf50(0x26d)](_0x4ae24d,_0x38c861,_0x5f5a52){const _0x352281=_0x6daf50;var _0xea0ab1;const _0x49791c=(_0xea0ab1=this[_0x352281(0x2cb)][_0x352281(0x393)](_0x4ae24d))==null?void 0x0:_0xea0ab1[_0x352281(0x393)](_0x38c861),_0x51c0bb=[];return _0x49791c&&Array['from'](_0x49791c[_0x352281(0x30e)]())[_0x352281(0x3d8)](_0x593935=>{const _0x38e550=_0x352281,_0x298006=_0x49791c[_0x38e550(0x393)](_0x593935),_0x19117a=_0x298006==null?void 0x0:_0x298006[_0x38e550(0x316)];if(_0x19117a)for(const _0x10e549 of Object[_0x38e550(0x1db)](_0x19117a)){let _0x37d51e=!0x1;for(const _0x1bcb91 of _0x10e549)if(_0x3aab5b['Rectangle'][_0x38e550(0x19a)](_0x1bcb91,_0x5f5a52)){_0x51c0bb['push'](_0x593935),_0x37d51e=!0x0;break;}if(_0x37d51e)break;}}),_0x51c0bb;}[_0x6daf50(0x328)](_0x2d0199,_0x39b323){const _0x5b76f2=_0x6daf50;var _0x837c51,_0xb9b739;return(_0xb9b739=(_0x837c51=this[_0x5b76f2(0x324)][_0x5b76f2(0x393)](_0x2d0199))==null?void 0x0:_0x837c51['get'](_0x39b323))!=null?_0xb9b739:new _0x3aab5b[(_0x5b76f2(0x25d))]();}['getSubUnitPivotRenderCache'](_0x4921cd,_0x306094){const _0x4822f9=_0x6daf50;var _0x49ab3a;return(_0x49ab3a=this[_0x4822f9(0x2cb)][_0x4822f9(0x393)](_0x4921cd))==null?void 0x0:_0x49ab3a[_0x4822f9(0x393)](_0x306094);}[_0x6daf50(0x411)](_0x291795,_0x10d500,_0x408af5){const _0x4a0c16=_0x6daf50;var _0x370056,_0x232321;return(_0x232321=(_0x370056=this[_0x4a0c16(0x2cb)]['get'](_0x291795))==null?void 0x0:_0x370056[_0x4a0c16(0x393)](_0x10d500))==null?void 0x0:_0x232321[_0x4a0c16(0x393)](_0x408af5);}['deleteUnitId'](_0x4e1b09){const _0x4165e0=_0x6daf50;this['_pivotRenderInfoCache']['delete'](_0x4e1b09),this[_0x4165e0(0x324)][_0x4165e0(0x356)](_0x4e1b09);}[_0x6daf50(0x2c3)](_0xd6642a,_0xa5e2ea){const _0x766e7f=_0x6daf50;this[_0x766e7f(0x248)][_0x766e7f(0x3b3)]({'unitId':_0xd6642a,'subUnitId':_0xa5e2ea});}},_0x271f43[_0x6daf50(0x36c)]=_0xf8d671([_0x29602c(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b['LocaleService'])),_0x29602c(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x39a)])),_0x29602c(0x2,_0x3aab5b['Inject'](_0x271f43['SheetsPivotTableConfigModel'])),_0x29602c(0x3,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x350)])),_0x29602c(0x4,_0x3aab5b[_0x6daf50(0x20a)](_0x5b84bb['IExclusiveRangeService']))],_0x271f43[_0x6daf50(0x36c)]);var _0x198160=Object[_0x6daf50(0x182)],_0x548e81=(_0x47ac84,_0x3fc221,_0x1b8cf2,_0x2d2b5f)=>{for(var _0x44f948=_0x2d2b5f>0x1?void 0x0:_0x2d2b5f?_0x198160(_0x3fc221,_0x1b8cf2):_0x3fc221,_0x37cf50=_0x47ac84['length']-0x1,_0x20339e;_0x37cf50>=0x0;_0x37cf50--)(_0x20339e=_0x47ac84[_0x37cf50])&&(_0x44f948=_0x20339e(_0x44f948)||_0x44f948);return _0x44f948;},_0x24d0b6=(_0xa12dac,_0x15192c)=>(_0x18612e,_0x2b2d35)=>_0x15192c(_0x18612e,_0x2b2d35,_0xa12dac);_0x271f43[_0x6daf50(0x3de)]=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x5167e5,_0x497de7){const _0x5f3f31=_0x6daf50;super(),_0x3f9e42(this,_0x5f3f31(0x152),new _0x3aab5b[(_0x5f3f31(0x1d9))]({'PIVOT_PERFORM_CHECK':_0x4f637e})),_0x3f9e42(this,_0x5f3f31(0x35f),new _0x3aab5b['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x43df9f})),(this['_sheetInterceptorService']=_0x5167e5,this[_0x5f3f31(0x186)]=_0x497de7,this[_0x5f3f31(0x166)]());}[_0x6daf50(0x166)](){const _0x275b62=_0x6daf50;this[_0x275b62(0x16c)]();}[_0x6daf50(0x251)](_0x57c31e){const _0x25b2bb=_0x6daf50;return this[_0x25b2bb(0x152)][_0x25b2bb(0x163)](_0x4f637e)(!0x1,_0x57c31e);}[_0x6daf50(0x16c)](){const _0x1b5baf=_0x6daf50;this[_0x1b5baf(0x137)](this[_0x1b5baf(0x3e0)][_0x1b5baf(0x37b)](_0x5b84bb[_0x1b5baf(0x2c4)][_0x1b5baf(0x362)],{'priority':0xc8,'effect':_0x3aab5b[_0x1b5baf(0x1e4)][_0x1b5baf(0x338)]|_0x3aab5b[_0x1b5baf(0x1e4)]['Style'],'handler':(_0x356637,_0xb5313d,_0x17f97f)=>{const _0x197e55=_0x1b5baf,{row:_0x243fd1,col:_0x2f91ab,unitId:_0x560392,subUnitId:_0x197d24,workbook:_0x3d1570}=_0xb5313d,_0x5b7c04=this[_0x197e55(0x186)][_0x197e55(0x3ef)](_0x560392,_0x197d24,_0x243fd1,_0x2f91ab);if(!_0x5b7c04)return _0x17f97f(_0x356637);const _0x1e0023={..._0x356637};(_0x5b7c04['v']||_0x5b7c04['v']===0x0)&&(_0x1e0023['v']=_0x5b7c04['v']),_0x5b7c04['t']&&(_0x1e0023['t']=_0x5b7c04['t']);const _0x4ec782=(typeof(_0x356637==null?void 0x0:_0x356637['s'])==_0x197e55(0x1c7)?_0x3d1570[_0x197e55(0x40b)]()[_0x197e55(0x393)](_0x356637==null?void 0x0:_0x356637['s']):_0x356637==null?void 0x0:_0x356637['s'])||{},_0x245f27=_0x3d1570[_0x197e55(0x40b)]()[_0x197e55(0x393)](_0x5b7c04['s']),_0x2bc342={..._0x245f27,..._0x4ec782};_0x245f27!=null&&_0x245f27['n']&&(_0x2bc342['n']=_0x245f27['n']);const _0x326eef=_0x3d1570[_0x197e55(0x40b)]()[_0x197e55(0x3e5)](_0x2bc342);return _0x1e0023['s']=_0x326eef,(_0x5b7c04['pbt']===_0x5ab2d7['PivotCellStyleTypeEnum'][_0x197e55(0x302)]||_0x5b7c04[_0x197e55(0x190)]===_0x5ab2d7[_0x197e55(0x255)][_0x197e55(0x3e6)])&&(_0x1e0023[_0x197e55(0x40a)]={},_0x1e0023[_0x197e55(0x40a)]['leftOffset']=_0x4eaf16),_0x17f97f(_0x1e0023);}}));}},_0x271f43[_0x6daf50(0x3de)]=_0x548e81([_0x24d0b6(0x0,_0x3aab5b['Inject'](_0x5b84bb[_0x6daf50(0x287)])),_0x24d0b6(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43[_0x6daf50(0x36c)]))],_0x271f43[_0x6daf50(0x3de)]);function _0x349e95(_0x3e4a87,_0x39941c){const _0x21abbd=_0x6daf50;switch(_0x39941c){case _0x5ab2d7[_0x21abbd(0x358)][_0x21abbd(0x338)]:return _0x3e4a87[_0x21abbd(0x244)];case _0x5ab2d7[_0x21abbd(0x358)]['Filter']:return _0x3e4a87[_0x21abbd(0x2a4)];case _0x5ab2d7[_0x21abbd(0x358)][_0x21abbd(0x2f7)]:return _0x3e4a87[_0x21abbd(0x292)];case _0x5ab2d7[_0x21abbd(0x358)][_0x21abbd(0x1f1)]:return _0x3e4a87[_0x21abbd(0x245)];default:return[];}}function _0x387fcc(_0x4c76ae,_0x34c7cf){const _0x3cc32a=_0x6daf50;return _0x4c76ae[_0x3cc32a(0x180)][_0x34c7cf]||_0x4c76ae[_0x3cc32a(0x165)][_0x34c7cf];}function _0x56df75(_0x1b8cdc,_0x3d5e30){const _0x3a70ac=_0x6daf50,{area:_0x47318d,fieldJson:_0x36711e,index:_0x22c281}=_0x3d5e30;_0x47318d===_0x5ab2d7[_0x3a70ac(0x358)]['Value']?_0x1b8cdc['measure'][_0x36711e['id']]=_0x36711e:_0x1b8cdc['dimension'][_0x36711e['id']]=_0x36711e,_0x349e95(_0x1b8cdc,_0x47318d)[_0x3a70ac(0x2d6)](_0x22c281,0x0,_0x36711e['id']);}function _0x388764(_0x128ea9,_0x18d286){const _0x5337fd=_0x6daf50,{area:_0x28f67f,fieldId:_0x536343,index:_0x24d9dc}=_0x18d286;_0x28f67f===_0x5ab2d7[_0x5337fd(0x358)][_0x5337fd(0x338)]?delete _0x128ea9[_0x5337fd(0x180)][_0x536343]:delete _0x128ea9['dimension'][_0x536343],_0x349e95(_0x128ea9,_0x28f67f)[_0x5337fd(0x2d6)](_0x24d9dc,0x1);}function _0x4c9c91(_0x15dfee,_0x816a33){const _0x4e4bfd=_0x6daf50,{fieldId:_0xc4bc34,name:_0x3727c0}=_0x816a33,_0x7a392d=_0x387fcc(_0x15dfee,_0xc4bc34);_0x7a392d&&(_0x7a392d[_0x4e4bfd(0x193)]=_0x3727c0);}function _0x4cf75(_0x3ef901,_0x39b0be){const _0x40d9b7=_0x6daf50,{fieldId:_0x5a07fc,collapse:_0x293cd7,item:_0x3768c6}=_0x39b0be;_0x3768c6!==void 0x0?(_0x3ef901[_0x40d9b7(0x199)][_0x5a07fc]=_0x3ef901[_0x40d9b7(0x199)][_0x5a07fc]||{},_0x3ef901['collapseInfo'][_0x5a07fc][_0x3768c6]=_0x293cd7):_0x3ef901[_0x40d9b7(0x199)][_0x5a07fc]=_0x293cd7;}function _0x5c5c12(_0x2d461f,_0x5484a4){const _0x5f5dd8=_0x6daf50,{fieldId:_0xd6688,format:_0x31539c}=_0x5484a4,_0x474c8f=_0x387fcc(_0x2d461f,_0xd6688);_0x474c8f&&(_0x474c8f[_0x5f5dd8(0x40c)]=_0x31539c);}function _0x526937(_0x26f46f,_0x1bea00){const _0x22fc32=_0x6daf50,{fieldId:_0x5975d0,filterInfo:_0x3aa176}=_0x1bea00,_0x26c2cb=_0x387fcc(_0x26f46f,_0x5975d0);_0x26c2cb&&(_0x26c2cb[_0x22fc32(0x176)]=_0x3aa176);}function _0x52d012(_0x2cbc4f,_0x60891b){const _0x377904=_0x6daf50,{fieldId:_0x562b98,filterInfo:_0x203c7d}=_0x60891b,_0x23dd11=_0x2cbc4f[_0x377904(0x3b4)][_0x377904(0x12e)](_0x2da4d0=>_0x2da4d0[_0x377904(0x23e)]!==_0x562b98);_0x203c7d&&_0x23dd11[_0x377904(0x337)]({'fieldId':_0x562b98,'filterInfo':_0x203c7d}),_0x2cbc4f[_0x377904(0x3b4)]=_0x23dd11;}function _0x73a105(_0x4943ef,_0x2bd494){const _0x34d732=_0x6daf50,{fieldId:_0x327326,subtotalType:_0x2af83a}=_0x2bd494,_0x20ee77=_0x387fcc(_0x4943ef,_0x327326);_0x20ee77&&(_0x20ee77[_0x34d732(0x232)]=_0x2af83a);}function _0x29c703(_0x347c45,_0x4bf3e3){const _0x2fdf52=_0x6daf50,{fieldId:_0x4e3ffe,oldArea:_0x3a5f10,area:_0x54f497,oldIndex:_0x24c097,index:_0x3661b5}=_0x4bf3e3,_0x41c873=_0x3a5f10!==_0x5ab2d7[_0x2fdf52(0x358)]['Value']&&_0x54f497===_0x5ab2d7[_0x2fdf52(0x358)][_0x2fdf52(0x338)],_0x1ac644=_0x3a5f10===_0x5ab2d7[_0x2fdf52(0x358)]['Value']&&_0x54f497!==_0x5ab2d7['PivotTableFiledAreaEnum'][_0x2fdf52(0x338)];if(_0x41c873||_0x1ac644){const _0x1a331a=_0x387fcc(_0x347c45,_0x4e3ffe);_0x1a331a&&(_0x41c873?(delete _0x347c45['dimension'][_0x4e3ffe],_0x347c45[_0x2fdf52(0x180)][_0x4e3ffe]=_0x1a331a):(delete _0x347c45['measure'][_0x4e3ffe],_0x347c45['dimension'][_0x4e3ffe]=_0x1a331a));}const _0x317e10=_0x349e95(_0x347c45,_0x3a5f10),_0x3ad4c8=_0x349e95(_0x347c45,_0x54f497);_0x317e10[_0x2fdf52(0x2d6)](_0x24c097,0x1),_0x3ad4c8[_0x2fdf52(0x2d6)](_0x3661b5,0x0,_0x4e3ffe);}function _0x11f5d3(_0x74bb39,_0x11055b){const _0x5c2387=_0x6daf50,{valuePosition:_0x73ebcf,index:_0x53b3d1}=_0x11055b;_0x74bb39[_0x5c2387(0x3cb)]=_0x73ebcf,_0x74bb39[_0x5c2387(0x311)]=_0x53b3d1;}function _0x3f2877(_0x1a4cd1,_0x2061ba){const _0x14c5ee=_0x6daf50,{tableFieldId:_0x126078,sourceName:_0x5a82da,dataFieldId:_0x25a423}=_0x2061ba,_0x5a79e5=_0x387fcc(_0x1a4cd1,_0x126078);_0x5a79e5&&(_0x5a79e5[_0x14c5ee(0x259)]=_0x5a82da,_0x5a79e5[_0x14c5ee(0x304)]=_0x25a423);}function _0x5508d7(_0x35aa37,_0x22204a){const _0x366328=_0x6daf50,{fieldId:_0xf7ce1e,sortInfo:_0x104ee3}=_0x22204a,_0x36d16f=_0x387fcc(_0x35aa37,_0xf7ce1e);_0x36d16f&&(_0x36d16f[_0x366328(0x1f2)]=_0x104ee3);}function _0x19332f(_0x33eac6,_0x5d398e){const _0x44d3d1=_0x6daf50,{options:_0xc11545}=_0x5d398e;_0x33eac6[_0x44d3d1(0x34c)]={..._0x33eac6[_0x44d3d1(0x34c)],..._0xc11545};}const _0x1678ea={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x21c),'handler'(_0x4ae39c,_0x379e77){const _0x4a7dfe=_0x6daf50;if(!_0x379e77)return!0x1;if(!!_0x4ae39c['get'](_0x3aab5b[_0x4a7dfe(0x1eb)])[_0x4a7dfe(0x3d0)](_0x332892))return!0x0;const _0x4fb521=_0x4ae39c[_0x4a7dfe(0x393)](_0x271f43['SheetsPivotDataSourceModel']),{pivotTableId:_0x3b02d3,fieldJson:_0x3852a9,area:_0x4d674c,index:_0xf368a7,unitId:_0x1ada4e,subUnitId:_0x3f2116}=_0x379e77,_0x3a6bfe=_0x4fb521[_0x4a7dfe(0x3f8)](_0x3b02d3);if(!_0x3a6bfe)return!0x1;let _0x526dd3;_0x4d674c===_0x5ab2d7[_0x4a7dfe(0x358)][_0x4a7dfe(0x338)]?_0x526dd3=_0x5ab2d7['createValueField'](_0x3852a9):_0x526dd3=_0x5ab2d7[_0x4a7dfe(0x1f0)](_0x3852a9),_0x3a6bfe[_0x4a7dfe(0x1e2)](_0x526dd3,_0x4d674c,_0xf368a7);const _0x245fba=_0x4fb521[_0x4a7dfe(0x2a3)](_0x1ada4e,_0x3f2116,_0x3b02d3);_0x56df75(_0x245fba,_0x379e77);const _0x4432ce=_0x4fb521[_0x4a7dfe(0x3bd)](_0x1ada4e,_0x3f2116,_0x3b02d3);return _0x4fb521['addDirtyPivotTable']({'unitId':_0x1ada4e,'subUnitId':_0x3f2116,'token':_0x3b02d3,'type':_0x1ab225[_0x4a7dfe(0x149)],'pivotConfig':_0x4432ce}),!0x0;}},_0x87a600={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x500d83,_0x546770){const _0x2fe799=_0x6daf50;if(!_0x546770)return!0x1;if(!!_0x500d83['get'](_0x3aab5b[_0x2fe799(0x1eb)])['getConfig'](_0x332892))return!0x0;const _0x56694e=_0x500d83['get'](_0x271f43[_0x2fe799(0x383)]),{pivotTableId:_0xf5c45a,fieldId:_0x21a6d2,unitId:_0x3cd022,subUnitId:_0x121898}=_0x546770,_0x3f3bb4=_0x56694e[_0x2fe799(0x3f8)](_0xf5c45a);if(!_0x3f3bb4)return!0x1;_0x3f3bb4['removeField'](_0x21a6d2);const _0x59df77=_0x56694e[_0x2fe799(0x2a3)](_0x3cd022,_0x121898,_0xf5c45a);_0x388764(_0x59df77,_0x546770);const _0x1f0dbb=_0x56694e[_0x2fe799(0x3bd)](_0x3cd022,_0x121898,_0xf5c45a);return _0x56694e[_0x2fe799(0x3f3)]({'unitId':_0x3cd022,'subUnitId':_0x121898,'token':_0xf5c45a,'type':_0x1ab225[_0x2fe799(0x149)],'pivotConfig':_0x1f0dbb}),!0x0;}},_0x280ff8={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x3d2),'handler'(_0x5ef732,_0x2531ec){const _0x3c9045=_0x6daf50;if(!_0x2531ec)return!0x1;if(!!_0x5ef732[_0x3c9045(0x393)](_0x3aab5b['IConfigService'])['getConfig'](_0x332892))return!0x0;const _0x241e40=_0x5ef732[_0x3c9045(0x393)](_0x271f43[_0x3c9045(0x383)]),{unitId:_0xc2a66a,subUnitId:_0x14eb8e,pivotTableId:_0x2b9ece,fieldId:_0xb6ae5e,name:_0xc90368}=_0x2531ec,_0x5b8742=_0x241e40[_0x3c9045(0x3f8)](_0x2b9ece);if(!_0x5b8742)return!0x1;_0x5b8742['renameField'](_0xb6ae5e,_0xc90368);const _0x423847=_0x241e40[_0x3c9045(0x2a3)](_0xc2a66a,_0x14eb8e,_0x2b9ece);return _0x4c9c91(_0x423847,_0x2531ec),_0x241e40['addDirtyPivotTable']({'unitId':_0xc2a66a,'subUnitId':_0x14eb8e,'token':_0x2b9ece,'type':_0x1ab225[_0x3c9045(0x149)]}),!0x0;}},_0x50f618={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x3fa),'handler'(_0x1616b4,_0x445426){const _0x398198=_0x6daf50;if(!_0x445426)return!0x1;if(!!_0x1616b4[_0x398198(0x393)](_0x3aab5b[_0x398198(0x1eb)])['getConfig'](_0x332892))return!0x0;const _0x3b71ef=_0x1616b4[_0x398198(0x393)](_0x271f43['SheetsPivotDataSourceModel']),{unitId:_0x288d8d,subUnitId:_0x50782c,pivotTableId:_0x1ff17e,fieldId:_0x59d213,collapse:_0x5501bd,item:_0x2b6453}=_0x445426,_0x31735a=_0x3b71ef[_0x398198(0x3f8)](_0x1ff17e);if(!_0x31735a)return!0x1;_0x31735a[_0x398198(0x318)](_0x59d213,_0x5501bd,_0x2b6453);const _0x88f37a=_0x3b71ef['getPivotTableModelConfig'](_0x288d8d,_0x50782c,_0x1ff17e);return _0x4cf75(_0x88f37a,_0x445426),_0x3b71ef['addDirtyPivotTable']({'unitId':_0x288d8d,'subUnitId':_0x50782c,'token':_0x1ff17e,'type':_0x1ab225[_0x398198(0x149)]}),!0x0;}},_0x2ebdf3={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x253),'handler'(_0x3713a2,_0x4b7174){const _0x1c5c70=_0x6daf50;if(!_0x4b7174)return!0x1;if(!!_0x3713a2[_0x1c5c70(0x393)](_0x3aab5b[_0x1c5c70(0x1eb)])[_0x1c5c70(0x3d0)](_0x332892))return!0x0;const _0x3050bc=_0x3713a2[_0x1c5c70(0x393)](_0x271f43['SheetsPivotDataSourceModel']),{unitId:_0x2ef466,subUnitId:_0x28a423,pivotTableId:_0x792f7,fieldId:_0x5c6a6c,format:_0xf2c0}=_0x4b7174,_0x22677d=_0x3050bc[_0x1c5c70(0x3f8)](_0x792f7);if(!_0x22677d)return!0x1;_0x22677d['setFieldFormat'](_0x5c6a6c,_0xf2c0);const _0x6a6882=_0x3050bc[_0x1c5c70(0x2a3)](_0x2ef466,_0x28a423,_0x792f7);return _0x5c5c12(_0x6a6882,_0x4b7174),_0x3050bc['addDirtyPivotTable']({'unitId':_0x2ef466,'subUnitId':_0x28a423,'token':_0x792f7,'type':_0x1ab225[_0x1c5c70(0x149)]}),!0x0;}},_0x17d811={'type':_0x3aab5b['CommandType'][_0x6daf50(0x13c)],'id':'sheet.mutation.set-pivot-filter','handler'(_0x184727,_0x2a0912){const _0x192aa3=_0x6daf50;if(!_0x2a0912)return!0x1;if(!!_0x184727[_0x192aa3(0x393)](_0x3aab5b[_0x192aa3(0x1eb)])[_0x192aa3(0x3d0)](_0x332892))return!0x0;const _0x831904=_0x184727[_0x192aa3(0x393)](_0x271f43[_0x192aa3(0x383)]),{unitId:_0x5728a7,subUnitId:_0x1413d8,pivotTableId:_0x268550,fieldId:_0xa164a8,filterInfo:_0x105fcc}=_0x2a0912,_0x5150f5=_0x831904['getPivotTableInstance'](_0x268550);if(!_0x5150f5)return!0x1;_0x5150f5[_0x192aa3(0x258)](_0xa164a8,_0x105fcc);const _0x1d82ae=_0x831904[_0x192aa3(0x2a3)](_0x5728a7,_0x1413d8,_0x268550);return _0x526937(_0x1d82ae,_0x2a0912),_0x831904[_0x192aa3(0x3f3)]({'unitId':_0x5728a7,'subUnitId':_0x1413d8,'token':_0x268550,'type':_0x1ab225[_0x192aa3(0x149)]}),!0x0;}},_0x31e799={'type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'id':'sheet.mutation.set-pivot-option','handler'(_0x586906,_0x2151f9){const _0x919e20=_0x6daf50;if(!_0x2151f9)return!0x1;if(!!_0x586906['get'](_0x3aab5b[_0x919e20(0x1eb)])[_0x919e20(0x3d0)](_0x332892))return!0x0;const _0x125b48=_0x586906[_0x919e20(0x393)](_0x271f43[_0x919e20(0x383)]),{unitId:_0x3af3a6,subUnitId:_0x5d2a0f,pivotTableId:_0x56d5e1,options:_0xbdae21}=_0x2151f9,_0x29c473=_0x125b48[_0x919e20(0x3f8)](_0x56d5e1);if(!_0x29c473)return!0x1;_0x29c473[_0x919e20(0x1e6)](_0xbdae21);const _0x4a865a=_0x125b48['getPivotTableModelConfig'](_0x3af3a6,_0x5d2a0f,_0x56d5e1);return _0x19332f(_0x4a865a,_0x2151f9),_0x125b48['addDirtyPivotTable']({'unitId':_0x3af3a6,'subUnitId':_0x5d2a0f,'token':_0x56d5e1,'type':_0x1ab225[_0x919e20(0x149)]}),!0x0;}},_0x5a460e={'type':_0x3aab5b['CommandType'][_0x6daf50(0x13c)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x1c948c,_0x1d9b29){const _0x3d8121=_0x6daf50;if(!_0x1d9b29)return!0x1;if(!!_0x1c948c[_0x3d8121(0x393)](_0x3aab5b['IConfigService'])[_0x3d8121(0x3d0)](_0x332892))return!0x0;const _0xac69d0=_0x1c948c['get'](_0x271f43[_0x3d8121(0x383)]),{unitId:_0x2183a5,subUnitId:_0x5da67f,pivotTableId:_0x1f84c9,sortInfo:_0x30dd18,fieldId:_0xcd35c1}=_0x1d9b29,_0x559623=_0xac69d0['getPivotTableInstance'](_0x1f84c9);if(!_0x559623)return!0x1;_0x559623[_0x3d8121(0x1ca)](_0xcd35c1,_0x30dd18);const _0x40761f=_0xac69d0[_0x3d8121(0x2a3)](_0x2183a5,_0x5da67f,_0x1f84c9);return _0x5508d7(_0x40761f,_0x1d9b29),_0xac69d0[_0x3d8121(0x3f3)]({'unitId':_0x2183a5,'subUnitId':_0x5da67f,'token':_0x1f84c9,'type':_0x1ab225[_0x3d8121(0x149)]}),!0x0;}},_0x4b2215={'type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'id':_0x6daf50(0x37e),'handler'(_0x46a69a,_0x191d00){const _0x490548=_0x6daf50;if(!_0x191d00)return!0x1;if(!!_0x46a69a[_0x490548(0x393)](_0x3aab5b[_0x490548(0x1eb)])['getConfig'](_0x332892))return!0x0;const _0x2294cd=_0x46a69a[_0x490548(0x393)](_0x271f43[_0x490548(0x383)]),{unitId:_0x1c4c19,subUnitId:_0x54af12,pivotTableId:_0x3471fe,fieldId:_0x4a7aa1,subtotalType:_0x1a1d1d}=_0x191d00,_0x55dcf6=_0x2294cd[_0x490548(0x3f8)](_0x3471fe);if(!_0x55dcf6)return!0x1;_0x55dcf6[_0x490548(0x1f7)](_0x4a7aa1,_0x1a1d1d);const _0x1b8a24=_0x2294cd[_0x490548(0x2a3)](_0x1c4c19,_0x54af12,_0x3471fe);return _0x73a105(_0x1b8a24,_0x191d00),_0x2294cd[_0x490548(0x3f3)]({'unitId':_0x1c4c19,'subUnitId':_0x54af12,'token':_0x3471fe,'type':_0x1ab225[_0x490548(0x149)]}),!0x0;}},_0x1d73d4={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x1b7),'handler'(_0xef8bb1,_0x1677b3){const _0x1571d6=_0x6daf50;if(!_0x1677b3)return!0x1;if(!!_0xef8bb1[_0x1571d6(0x393)](_0x3aab5b[_0x1571d6(0x1eb)])['getConfig'](_0x332892))return!0x0;const _0x30663e=_0xef8bb1[_0x1571d6(0x393)](_0x271f43[_0x1571d6(0x383)]),{unitId:_0x5b211b,subUnitId:_0x405aa8,pivotTableId:_0x24b1e2,fieldId:_0x4bf219,filterInfo:_0x3a1d52}=_0x1677b3,_0x3593a0=_0x30663e[_0x1571d6(0x3f8)](_0x24b1e2);if(!_0x3593a0)return!0x1;_0x3593a0['setValueFilterInfo'](_0x4bf219,_0x3a1d52);const _0x1ac4a8=_0x30663e[_0x1571d6(0x2a3)](_0x5b211b,_0x405aa8,_0x24b1e2);return _0x52d012(_0x1ac4a8,_0x1677b3),_0x30663e[_0x1571d6(0x3f3)]({'unitId':_0x5b211b,'subUnitId':_0x405aa8,'token':_0x24b1e2,'type':_0x1ab225[_0x1571d6(0x149)]}),!0x0;}},_0x12d494={'type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'id':_0x6daf50(0x431),'handler'(_0x439c62,_0x4eba2c){const _0x1a497e=_0x6daf50;if(!_0x4eba2c)return!0x1;if(!!_0x439c62['get'](_0x3aab5b['IConfigService'])['getConfig'](_0x332892))return!0x0;const _0x4a51de=_0x439c62['get'](_0x271f43[_0x1a497e(0x383)]),{unitId:_0x1fc9fb,subUnitId:_0x403e7b,pivotTableId:_0x5dc778,area:_0x75dcbe,index:_0x1cb19a,fieldId:_0x47d4ac}=_0x4eba2c,_0x426c4e=_0x4a51de[_0x1a497e(0x3f8)](_0x5dc778);if(!_0x426c4e)return!0x1;_0x426c4e['updateFieldPosition'](_0x47d4ac,_0x75dcbe,_0x1cb19a);const _0x24a15d=_0x4a51de['getPivotTableModelConfig'](_0x1fc9fb,_0x403e7b,_0x5dc778);return _0x29c703(_0x24a15d,_0x4eba2c),_0x4a51de[_0x1a497e(0x3f3)]({'unitId':_0x1fc9fb,'subUnitId':_0x403e7b,'token':_0x5dc778,'type':_0x1ab225[_0x1a497e(0x149)]}),!0x0;}},_0x5772bb={'type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'id':_0x6daf50(0x330),'handler'(_0x37edfe,_0x4e62a2){const _0x5304a4=_0x6daf50;if(!_0x4e62a2)return!0x1;if(!!_0x37edfe[_0x5304a4(0x393)](_0x3aab5b[_0x5304a4(0x1eb)])[_0x5304a4(0x3d0)](_0x332892))return!0x0;const _0x493695=_0x37edfe[_0x5304a4(0x393)](_0x271f43[_0x5304a4(0x383)]),{unitId:_0x520579,subUnitId:_0x550cbf,pivotTableId:_0x465544,sourceName:_0x328c41,dataFieldId:_0x45337d,tableFieldId:_0x196435}=_0x4e62a2,_0x59c45d=_0x493695[_0x5304a4(0x3f8)](_0x465544);if(!_0x59c45d)return!0x1;_0x59c45d[_0x5304a4(0x357)](_0x196435,_0x328c41,_0x45337d);const _0x5a4af6=_0x493695[_0x5304a4(0x2a3)](_0x520579,_0x550cbf,_0x465544);return _0x3f2877(_0x5a4af6,_0x4e62a2),_0x493695[_0x5304a4(0x3f3)]({'unitId':_0x520579,'subUnitId':_0x550cbf,'token':_0x465544,'type':_0x1ab225[_0x5304a4(0x149)]}),!0x0;}},_0x231c1a={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':'sheet.mutation.pivot-update-value-position','handler'(_0x2e3850,_0xe86e58){const _0x3735f6=_0x6daf50;if(!_0xe86e58)return!0x1;if(!!_0x2e3850[_0x3735f6(0x393)](_0x3aab5b[_0x3735f6(0x1eb)])[_0x3735f6(0x3d0)](_0x332892))return!0x0;const _0x5e15a9=_0x2e3850[_0x3735f6(0x393)](_0x271f43[_0x3735f6(0x383)]),{unitId:_0xe9009e,subUnitId:_0x278c9b,pivotTableId:_0x1d7971,valuePosition:_0x3bf11b,index:_0x39ceaf}=_0xe86e58,_0x13b732=_0x5e15a9[_0x3735f6(0x3f8)](_0x1d7971);if(!_0x13b732)return!0x1;_0x13b732[_0x3735f6(0x348)](_0x3bf11b,_0x39ceaf);const _0x4fc168=_0x5e15a9[_0x3735f6(0x2a3)](_0xe9009e,_0x278c9b,_0x1d7971);return _0x11f5d3(_0x4fc168,_0xe86e58),_0x5e15a9[_0x3735f6(0x3f3)]({'unitId':_0xe9009e,'subUnitId':_0x278c9b,'token':_0x1d7971,'type':_0x1ab225[_0x3735f6(0x149)]}),!0x0;}};function _0x20db0e(_0x33ac99,_0x22cf51,_0x48b26a){const _0x4db9a0=_0x6daf50,{pivotTableId:_0x11e2d5,unitId:_0x31ff9e,subUnitId:_0x1f0fca}=_0x22cf51,_0x44fb6f=[],_0x337b58=[];for(const _0x5daccb of _0x48b26a)switch(_0x5daccb[_0x4db9a0(0x15a)]){case _0x5ab2d7[_0x4db9a0(0x1b5)][_0x4db9a0(0x185)]:{const {fieldJson:_0x591d2,area:_0x3309cb,index:_0x5e9d7c}=_0x5daccb,_0x41448c={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldJson':_0x591d2,'area':_0x3309cb,'index':_0x5e9d7c},_0x414113={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x591d2['id'],'area':_0x3309cb,'index':_0x5e9d7c};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x1678ea['id'],'params':_0x41448c}),_0x337b58['unshift']({'id':_0x87a600['id'],'params':_0x414113});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)][_0x4db9a0(0x2bd)]:{const {fieldId:_0x31d8e6,newSubtotalType:_0x280d59,oldSubtotalType:_0x366707}=_0x5daccb,_0x5bc341={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x31d8e6,'subtotalType':_0x280d59};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x4b2215['id'],'params':_0x5bc341});const _0x2518d7={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x31d8e6,'subtotalType':_0x366707};_0x337b58['unshift']({'id':_0x4b2215['id'],'params':_0x2518d7});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)][_0x4db9a0(0x3f5)]:{const {fieldId:_0x582ee9,fieldJson:_0x31f6be,area:_0x1cd39e,index:_0x27a075}=_0x5daccb,_0x1540af={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x582ee9,'index':_0x27a075,'area':_0x1cd39e};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x87a600['id'],'params':_0x1540af});const _0x1f8c16={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldJson':_0x31f6be,'area':_0x1cd39e,'index':_0x27a075};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x1678ea['id'],'params':_0x1f8c16});}break;case _0x5ab2d7['PivotTableChangeTypeEnum'][_0x4db9a0(0x274)]:{const {fieldId:_0x23b397,oldName:_0x1a1329,newName:_0x4e037f}=_0x5daccb,_0x5ca0f6={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x23b397,'name':_0x4e037f};_0x44fb6f['push']({'id':_0x280ff8['id'],'params':_0x5ca0f6});const _0x3aa281={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x23b397,'name':_0x1a1329};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x280ff8['id'],'params':_0x3aa281});}break;case _0x5ab2d7['PivotTableChangeTypeEnum']['SetFilterInfo']:{const {fieldId:_0x9d5699,oldFilterInfo:_0x46a7d7,newFilterInfo:_0x267eaf}=_0x5daccb,_0x49cf59={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x9d5699,'filterInfo':_0x267eaf};_0x44fb6f['push']({'id':_0x17d811['id'],'params':_0x49cf59});const _0x112e90={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x9d5699,'filterInfo':_0x46a7d7};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x17d811['id'],'params':_0x112e90});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)][_0x4db9a0(0x1ad)]:{const {fieldId:_0x5ed933,oldSortInfo:_0x19f8c3,newSortInfo:_0x17a4a4}=_0x5daccb,_0x49b88a={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x5ed933,'sortInfo':_0x17a4a4};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x5a460e['id'],'params':_0x49b88a});const _0x4dd043={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x5ed933,'sortInfo':_0x19f8c3};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x5a460e['id'],'params':_0x4dd043});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)]['SetOptions']:{const {oldOptions:_0xac2319,newOptions:_0x55890e}=_0x5daccb,_0x4cf707={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'options':_0x55890e};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x31e799['id'],'params':_0x4cf707});const _0x4dab31={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'options':_0xac2319};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x31e799['id'],'params':_0x4dab31});}break;case _0x5ab2d7['PivotTableChangeTypeEnum']['UpdateFieldPosition']:{const {oldArea:_0x2e4909,newArea:_0x313180,oldIndex:_0x416104,newIndex:_0x40f803,fieldId:_0x462d62}=_0x5daccb,_0x20bc08={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x462d62,'area':_0x313180,'index':_0x40f803,'oldArea':_0x2e4909,'oldIndex':_0x416104};_0x44fb6f['push']({'id':_0x12d494['id'],'params':_0x20bc08});const _0x5deeec={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x462d62,'area':_0x2e4909,'index':_0x416104,'oldArea':_0x313180,'oldIndex':_0x40f803};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x12d494['id'],'params':_0x5deeec});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)]['UpdateValuePosition']:{const {oldValuePosition:_0x29632c,newValuePosition:_0x56b066,oldIndex:_0x3ef96f,newIndex:_0x1bd348}=_0x5daccb,_0x516563={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'valuePosition':_0x56b066,'index':_0x1bd348};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x231c1a['id'],'params':_0x516563});const _0x29be71={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'valuePosition':_0x29632c,'index':_0x3ef96f};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x231c1a['id'],'params':_0x29be71});}break;case _0x5ab2d7['PivotTableChangeTypeEnum'][_0x4db9a0(0x2e1)]:{const {fieldId:_0x45f99b,collapse:_0x21dfd2,item:_0x1224ea}=_0x5daccb,_0xed5f3c={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x45f99b,'collapse':_0x21dfd2,'item':_0x1224ea};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x50f618['id'],'params':_0xed5f3c});const _0x31fdbc={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x45f99b,'collapse':!_0x21dfd2,'item':_0x1224ea};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x50f618['id'],'params':_0x31fdbc});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)][_0x4db9a0(0x220)]:{const {newFormat:_0x15c306,oldFormat:_0x43fc22,fieldId:_0x438565}=_0x5daccb,_0x134b27={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x438565,'format':_0x15c306};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x2ebdf3['id'],'params':_0x134b27});const _0x3fffda={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x438565,'format':_0x43fc22};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x2ebdf3['id'],'params':_0x3fffda});}break;case _0x5ab2d7['PivotTableChangeTypeEnum'][_0x4db9a0(0x426)]:{const {tableFieldId:_0x1932bb,oldSourceName:_0xdaedb5,newSourceName:_0x69ab8,oldDataFieldId:_0x121ccf,newDataFieldId:_0x5300c5}=_0x5daccb,_0x18f5dd={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'tableFieldId':_0x1932bb,'sourceName':_0x69ab8,'dataFieldId':_0x5300c5};_0x44fb6f[_0x4db9a0(0x337)]({'id':_0x5772bb['id'],'params':_0x18f5dd});const _0x1b6e19={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'tableFieldId':_0x1932bb,'sourceName':_0xdaedb5,'dataFieldId':_0x121ccf};_0x337b58[_0x4db9a0(0x25e)]({'id':_0x5772bb['id'],'params':_0x1b6e19});}break;case _0x5ab2d7[_0x4db9a0(0x1b5)][_0x4db9a0(0x296)]:{const {fieldId:_0x551479,filterInfo:_0x3c5b52,oldFilterInfo:_0x3e0413}=_0x5daccb,_0xdbad37={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x551479,'filterInfo':_0x3c5b52};_0x44fb6f['push']({'id':_0x1d73d4['id'],'params':_0xdbad37});const _0x546ace={'unitId':_0x31ff9e,'subUnitId':_0x1f0fca,'pivotTableId':_0x11e2d5,'fieldId':_0x551479,'filterInfo':_0x3e0413};_0x337b58['unshift']({'id':_0x1d73d4['id'],'params':_0x546ace});}}return{'redos':_0x44fb6f,'undos':_0x337b58};}function _0x10be2a(_0x31f750,_0x2137c3){const _0x28b03a=_0x6daf50;var _0x22ab7e;const _0x51b60e=_0x31f750['get'](_0x271f43[_0x28b03a(0x3de)]),{cellInfo:_0x937802,view:_0x3d66fc,isEmpty:_0x281a1b}=_0x2137c3;return(_0x22ab7e=_0x51b60e[_0x28b03a(0x35f)][_0x28b03a(0x2a2)](_0x43df9f)(_0x2929b8,{'cellInfo':_0x937802,'view':_0x3d66fc,'isEmpty':_0x281a1b}))!=null?_0x22ab7e:_0x2929b8;}const _0x1dfebb=()=>typeof process<'u'&&process['versions']!=null&&process[_0x6daf50(0x419)][_0x6daf50(0x219)]!=null,_0x17abbf={'type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'id':'sheet.mutation.add-pivot-table','handler'(_0x30bab4,_0x2b3ada){const _0x296f07=_0x6daf50;var _0x45d5ad;if(!_0x2b3ada)return!0x1;const _0x2bf377=_0x30bab4[_0x296f07(0x393)](_0x3aab5b[_0x296f07(0x1eb)]);if(!!_0x2bf377[_0x296f07(0x3d0)](_0x332892))return!0x0;const _0x2de007=_0x30bab4[_0x296f07(0x393)](_0x3aab5b[_0x296f07(0x350)]),_0xb71896=_0x30bab4[_0x296f07(0x393)](_0x271f43[_0x296f07(0x383)]),{pivotTableId:_0x5c8b4c,pivotTableConfig:_0x4057b3,collectionConfig:_0x38b544,unitId:_0x35f906,subUnitId:_0x5c43c9}=_0x2b3ada,{sourceRangeInfo:_0x34c6da,fieldsConfig:_0x5180c0,targetCellInfo:_0x11acec}=_0x4057b3,_0x1adeb5=_0x2de007['getUnit'](_0x35f906);if(!_0x1adeb5||!_0x1adeb5[_0x296f07(0x2a1)](_0x5c43c9))return!0x1;if(!_0x1dfebb()){let _0x221e51=0x0;_0x1adeb5[_0x296f07(0x424)]()[_0x296f07(0x3d8)](_0x2cd043=>{const _0x29e47d=_0x296f07;var _0x45685e,_0x3bf5bf;_0x221e51+=(_0x3bf5bf=(_0x45685e=_0xb71896[_0x29e47d(0x355)](_0x35f906,_0x2cd043[_0x29e47d(0x276)]()))==null?void 0x0:_0x45685e[_0x29e47d(0x423)])!=null?_0x3bf5bf:0x0;});const _0x252898=(_0x45d5ad=_0x2bf377[_0x296f07(0x3d0)](_0x2a826e[_0x296f07(0x3e3)]))!=null?_0x45d5ad:{},{ls:_0x4c54f4,pbk:_0x2cf611}=_0x252898;if(!_0x2ffa8d(_0x4c54f4,_0x2cf611))throw new _0x3aab5b[(_0x296f07(0x388))]('limit\x20pivot');const _0x31494d=_0x21309a(_0x884d8a,_0x4c54f4,_0x2cf611)[_0x296f07(0x3f2)];if(_0x221e51>=_0x31494d)throw new _0x3aab5b[(_0x296f07(0x388))](_0x296f07(0x147));}if(!_0x38b544||!_0x5180c0)return!0x1;const {collection:_0x1900d8,updateDataFieldList:_0x439d28}=_0xb71896[_0x296f07(0x17c)](_0x5c8b4c,_0x38b544,_0x34c6da,_0x11acec);_0xb71896['refreshData'](_0x1900d8,_0x439d28,_0x34c6da);const _0x3f9b1f=new _0x5ab2d7[(_0x296f07(0x36e))](_0x1900d8,void 0x0,_0x5c8b4c);_0x3f9b1f[_0x296f07(0x1e3)](_0x5180c0);const _0x50b5d0=JSON[_0x296f07(0x12b)](JSON[_0x296f07(0x247)](_0x4057b3));return _0xb71896[_0x296f07(0x335)](_0x35f906,_0x5c43c9,_0x5c8b4c,_0x3f9b1f,_0x50b5d0),_0xb71896[_0x296f07(0x3f3)]({'unitId':_0x35f906,'subUnitId':_0x5c43c9,'token':_0x5c8b4c,'type':_0x1ab225[_0x296f07(0x368)],'pivotConfig':_0x50b5d0}),!0x0;}},_0x2b2273={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x406),'handler'(_0x4044c0,_0x316e75){const _0x4a3ac6=_0x6daf50;if(!_0x316e75)return!0x1;if(!!_0x4044c0[_0x4a3ac6(0x393)](_0x3aab5b[_0x4a3ac6(0x1eb)])[_0x4a3ac6(0x3d0)](_0x332892))return!0x0;const {pivotTableId:_0x163941,unitId:_0x201889,subUnitId:_0x9c3eba}=_0x316e75,_0x4ded4b=_0x4044c0[_0x4a3ac6(0x393)](_0x271f43[_0x4a3ac6(0x383)]);return _0x4ded4b[_0x4a3ac6(0x3bd)](_0x201889,_0x9c3eba,_0x163941)?(_0x4ded4b['addDirtyPivotTable']({'unitId':_0x201889,'subUnitId':_0x9c3eba,'token':_0x163941,'type':_0x1ab225[_0x4a3ac6(0x24b)]}),_0x4ded4b[_0x4a3ac6(0x280)](_0x201889,_0x9c3eba,_0x163941),!0x0):!0x1;}},_0x2ef4c5={'type':_0x3aab5b['CommandType']['MUTATION'],'id':'sheet.mutation.set-pivot-position','handler'(_0x26d6aa,_0x44c53c){const _0x21f1d6=_0x6daf50;if(!_0x44c53c)return!0x1;if(!!_0x26d6aa['get'](_0x3aab5b[_0x21f1d6(0x1eb)])['getConfig'](_0x332892))return!0x0;const {pivotTableId:_0x5ab219,targetCellPosition:_0xb0f9ba,unitId:_0x349441,subUnitId:_0x531961}=_0x44c53c,_0x3d65d4=_0x26d6aa[_0x21f1d6(0x393)](_0x271f43[_0x21f1d6(0x383)]);if(!_0x3d65d4[_0x21f1d6(0x3f8)](_0x44c53c[_0x21f1d6(0x34d)]))return!0x1;const _0x4b9d29=_0x3d65d4[_0x21f1d6(0x360)](_0x5ab219);if(!_0x4b9d29)return!0x1;const _0x98f73e=_0x3d65d4['getCollection'](_0x4b9d29[_0x21f1d6(0x3ba)],_0x44c53c[_0x21f1d6(0x34d)]);if(!_0x98f73e)return!0x1;const _0x2e1916=_0x3d65d4[_0x21f1d6(0x3bd)](_0x4b9d29[_0x21f1d6(0x3ba)],_0x4b9d29['subUnitId'],_0x5ab219);if(!_0x2e1916)return!0x1;const _0x366e8a=_0x3aab5b[_0x21f1d6(0x3be)][_0x21f1d6(0x33e)](_0x2e1916);_0x366e8a[_0x21f1d6(0x233)]={'unitId':_0x349441,'subUnitId':_0x531961,'row':_0xb0f9ba['row'],'col':_0xb0f9ba['col']};const _0x3f63a5=_0x98f73e[_0x21f1d6(0x24a)]();if(_0x4b9d29['subUnitId']===_0x531961&&_0x4b9d29['unitId']===_0x349441)_0x3d65d4[_0x21f1d6(0x14e)](_0x349441,_0x531961,_0x5ab219,_0x366e8a),_0x3d65d4['addDirtyPivotTable']({'unitId':_0x349441,'subUnitId':_0x531961,'token':_0x5ab219,'type':_0x1ab225[_0x21f1d6(0x149)]});else{_0x3d65d4[_0x21f1d6(0x3f3)]({'unitId':_0x4b9d29[_0x21f1d6(0x3ba)],'subUnitId':_0x4b9d29['subUnitId'],'token':_0x5ab219,'type':_0x1ab225[_0x21f1d6(0x24b)]}),_0x3d65d4['removePivotTable'](_0x4b9d29[_0x21f1d6(0x3ba)],_0x4b9d29[_0x21f1d6(0x3af)],_0x5ab219);const _0x3be7f2=_0x3d65d4[_0x21f1d6(0x17c)](_0x5ab219,_0x3f63a5,_0x2e1916[_0x21f1d6(0x133)],_0x366e8a[_0x21f1d6(0x233)]),_0x42f2be=new _0x5ab2d7[(_0x21f1d6(0x36e))](_0x3be7f2[_0x21f1d6(0x2ac)],void 0x0,_0x5ab219);_0x42f2be[_0x21f1d6(0x1e3)](_0x366e8a[_0x21f1d6(0x2ca)]),_0x3d65d4[_0x21f1d6(0x335)](_0x349441,_0x531961,_0x5ab219,_0x42f2be,_0x366e8a),_0x3d65d4[_0x21f1d6(0x3f3)]({'unitId':_0x349441,'subUnitId':_0x531961,'token':_0x5ab219,'type':_0x1ab225[_0x21f1d6(0x368)],'pivotConfig':_0x366e8a});}return!0x0;}},_0x49672d={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':_0x6daf50(0x266),'handler'(_0x2ba6e8,_0x2adb5d){const _0x4549c5=_0x6daf50;if(!_0x2adb5d)return!0x1;if(!!_0x2ba6e8[_0x4549c5(0x393)](_0x3aab5b[_0x4549c5(0x1eb)])[_0x4549c5(0x3d0)](_0x332892))return!0x0;const _0x4d84f3=_0x2ba6e8[_0x4549c5(0x393)](_0x271f43[_0x4549c5(0x383)]),{pivotTableId:_0x31612a,deleteIds:_0x7e026c,collectionJSON:_0x75b707,dataRangeInfo:_0xcd5dbf,unitId:_0x592d7d,subUnitId:_0x3c3fd3}=_0x2adb5d,_0x57be37=_0x4d84f3[_0x4549c5(0x3f8)](_0x31612a),_0x3743db=_0x4d84f3[_0x4549c5(0x3bd)](_0x592d7d,_0x3c3fd3,_0x31612a);if(!_0x57be37||!_0x3743db)return!0x1;const {collection:_0x1119cf,updateDataFieldList:_0x158547}=_0x4d84f3[_0x4549c5(0x17c)](_0x31612a,_0x75b707,_0xcd5dbf,_0x3743db['targetCellInfo']);_0x4d84f3[_0x4549c5(0x179)](_0x1119cf,_0x158547,_0xcd5dbf),_0x57be37['updateDataFieldsCollection'](_0x1119cf);for(const _0x3e2fc9 of _0x7e026c)_0x4d84f3['removeDataField'](_0xcd5dbf['unitId'],_0x3e2fc9);const _0x4bb9a1=_0x4d84f3['getPivotTableConfig'](_0x592d7d,_0x3c3fd3,_0x31612a);return _0x4bb9a1[_0x4549c5(0x133)]=JSON[_0x4549c5(0x12b)](JSON['stringify'](_0xcd5dbf)),_0x4d84f3[_0x4549c5(0x3f3)]({'unitId':_0x592d7d,'subUnitId':_0x3c3fd3,'token':_0x31612a,'type':_0x1ab225[_0x4549c5(0x149)]}),!0x0;}},_0x326fd6={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'id':'sheet.operation.pivot-table-view-formula-mark-dirty','handler'(){return!0x0;}};var _0x1246ec=Object[_0x6daf50(0x182)],_0x25f3bc=(_0xf3f48f,_0x5963a7,_0x1d9e95,_0x408baf)=>{for(var _0x58a984=_0x408baf>0x1?void 0x0:_0x408baf?_0x1246ec(_0x5963a7,_0x1d9e95):_0x5963a7,_0x18e111=_0xf3f48f['length']-0x1,_0x2fd25e;_0x18e111>=0x0;_0x18e111--)(_0x2fd25e=_0xf3f48f[_0x18e111])&&(_0x58a984=_0x2fd25e(_0x58a984)||_0x58a984);return _0x58a984;},_0x4b9096=(_0x50809e,_0x1973a6)=>(_0x3e7561,_0x366bc8)=>_0x1973a6(_0x3e7561,_0x366bc8,_0x50809e);_0x271f43[_0x6daf50(0x31b)]=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x4dc997,_0x5c25bd){const _0x50dd13=_0x6daf50;super(),_0x3f9e42(this,'_requestResolvers',new Map()),(this[_0x50dd13(0x408)]=_0x4dc997,this[_0x50dd13(0x392)]=_0x5c25bd);}['handleAsyncResponse'](_0x19452b){const _0x3c8140=_0x6daf50,{version:_0x301d65}=_0x19452b,_0x44c3ac=this[_0x3c8140(0x1b8)][_0x3c8140(0x393)](_0x301d65);_0x44c3ac&&(_0x44c3ac(_0x19452b),this['_requestResolvers'][_0x3c8140(0x356)](_0x301d65));}[_0x6daf50(0x155)](_0x3c3ffb){return new Promise((_0x234a45,_0x48abdb)=>{const _0x5e7a1c=_0x45c2,_0x22c5a1=this[_0x5e7a1c(0x33c)]();this[_0x5e7a1c(0x1b8)][_0x5e7a1c(0x3eb)](_0x22c5a1,_0x234a45),this[_0x5e7a1c(0x392)][_0x5e7a1c(0x2ec)](_0x549956['id'],{'version':_0x22c5a1,..._0x3c3ffb},{'onlyLocal':!0x0});});}[_0x6daf50(0x33c)](){const _0x185382=_0x6daf50;return Math['random']()[_0x185382(0x1d1)](0x24)[_0x185382(0x240)](0x2,0x10);}},_0x271f43[_0x6daf50(0x31b)]=_0x25f3bc([_0x4b9096(0x0,_0x3aab5b['Inject'](_0x3aab5b[_0x6daf50(0x39a)])),_0x4b9096(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x1f4)]))],_0x271f43[_0x6daf50(0x31b)]);const _0xc2bdb6={'id':_0x6daf50(0x1ae),'type':_0x3aab5b['CommandType'][_0x6daf50(0x13c)],'handler':(_0x3c493f,_0x390c7b)=>{const _0x45d1a6=_0x6daf50;if(!_0x390c7b)return!0x1;if(!!_0x3c493f[_0x45d1a6(0x393)](_0x3aab5b[_0x45d1a6(0x1eb)])[_0x45d1a6(0x3d0)](_0x332892))return!0x0;const {pivotTableId:_0xf7ea8c,fieldJSON:_0x515dc9,unitId:_0x5f4502,subUnitId:_0x5b4e15}=_0x390c7b,_0x4f272d=_0x5ab2d7['BaseGroupField'][_0x45d1a6(0x1e3)](_0x515dc9);if(!_0x4f272d)return!0x1;const _0x1ab841=_0x3c493f[_0x45d1a6(0x393)](_0x271f43[_0x45d1a6(0x383)]),_0x1c51ee=_0x1ab841[_0x45d1a6(0x428)](_0x5f4502),_0x1b61a7=_0x1c51ee[_0x45d1a6(0x34e)](_0xf7ea8c);_0x1c51ee[_0x45d1a6(0x1cd)](_0x4f272d),_0x1b61a7['addField'](_0x4f272d[_0x45d1a6(0x1cb)](),_0x4f272d[_0x45d1a6(0x31d)]());const _0x4eb7bc=_0x1b61a7[_0x45d1a6(0x1dd)](_0x4f272d[_0x45d1a6(0x13a)]());_0x4eb7bc&&_0x4f272d[_0x45d1a6(0x41b)](_0x4eb7bc);const _0x195b8c=_0x1ab841[_0x45d1a6(0x3bd)](_0x5f4502,_0x5b4e15,_0xf7ea8c);return _0x1ab841[_0x45d1a6(0x3f3)]({'unitId':_0x5f4502,'subUnitId':_0x5b4e15,'token':_0xf7ea8c,'type':_0x1ab225['Set'],'pivotConfig':_0x195b8c}),!0x0;}},_0x1062bf={'id':_0x6daf50(0x35b),'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x13c)],'handler':(_0x390b3d,_0x4103be)=>{const _0x58eabd=_0x6daf50;if(!_0x4103be)return!0x1;if(!!_0x390b3d[_0x58eabd(0x393)](_0x3aab5b[_0x58eabd(0x1eb)])['getConfig'](_0x332892))return!0x0;const {pivotTableId:_0x38e304,dataFieldId:_0x1754ec,unitId:_0x17821b,subUnitId:_0x41dde5}=_0x4103be,_0x5545ab=_0x390b3d[_0x58eabd(0x393)](_0x271f43['SheetsPivotDataSourceModel']),_0x50894a=_0x5545ab[_0x58eabd(0x428)](_0x17821b);_0x50894a[_0x58eabd(0x34e)](_0x38e304)[_0x58eabd(0x1f3)](_0x1754ec);let _0x39a0e8=!0x0;for(const _0x4c147e in _0x50894a['collections'])if(_0x50894a['collections'][_0x4c147e][_0x58eabd(0x221)]()[_0x58eabd(0x1cc)](_0x1754ec)){_0x39a0e8=!0x1;break;}_0x39a0e8&&_0x50894a['deleteDataField'](_0x1754ec);const _0x1add3d=_0x5545ab[_0x58eabd(0x3bd)](_0x17821b,_0x41dde5,_0x38e304);return _0x5545ab['addDirtyPivotTable']({'unitId':_0x17821b,'subUnitId':_0x41dde5,'token':_0x38e304,'type':_0x1ab225[_0x58eabd(0x149)],'pivotConfig':_0x1add3d}),!0x0;}},_0x18a88f={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x1f5),async 'handler'(_0x3c70f1,_0x2dd241){const _0x401604=_0x6daf50;if(!_0x2dd241)return!0x1;const _0x248adb=_0x3c70f1['get'](_0x3aab5b[_0x401604(0x1f4)]),_0x276071=_0x3c70f1['get'](_0x271f43[_0x401604(0x31b)]),_0x3dae88=_0x3c70f1['get'](_0x3aab5b['IUndoRedoService']),{pivotTableId:_0x7c0ca2,dataFieldId:_0x1d88a9,fieldArea:_0x44db5c,index:_0x5d2bca,unitId:_0x495f0a,subUnitId:_0x43d73e}=_0x2dd241,_0x24404b=(await _0x276071['getPivotDisplayConfig']({'unitId':_0x495f0a,'subUnitId':_0x43d73e,'pivotTableId':_0x7c0ca2,'params':{'type':_0x17706b['AddPivotField'],'addPivotField':{'dataFieldId':_0x1d88a9,'fieldArea':_0x44db5c,'index':_0x5d2bca}}}))['result'][_0x401604(0x429)];if(!_0x24404b)return!0x1;const {view:_0x141298,changesets:_0x276790,isEmpty:_0x368d6f,pivotTableConfig:_0x1f7bd0,shouldBeAddedGroupJSON:_0x349f72}=_0x24404b,_0x1543bf=_0x1f7bd0[_0x401604(0x233)],_0x3fd8ab=new _0x5ab2d7[(_0x401604(0x205))]();_0x3fd8ab[_0x401604(0x2ed)](_0x141298);const _0xa591b1={'cellInfo':_0x1543bf,'view':_0x3fd8ab,'isEmpty':_0x368d6f};if(!await _0x3c70f1['get'](_0x271f43[_0x401604(0x3de)])[_0x401604(0x152)][_0x401604(0x163)](_0x4f637e)(!0x0,_0xa591b1))return!0x1;const _0x48f64f=_0x44c00e(_0x3c70f1,_0x3fd8ab,_0x1543bf,_0x368d6f),_0x3c3d08=_0x10be2a(_0x3c70f1,_0xa591b1),{undos:_0x329266,redos:_0x2669f3}=_0x20db0e(_0x248adb,{'pivotTableId':_0x7c0ca2,'unitId':_0x495f0a,'subUnitId':_0x43d73e},_0x276790);return _0x349f72&&(_0x2669f3[_0x401604(0x25e)]({'id':_0xc2bdb6['id'],'params':{'pivotTableId':_0x7c0ca2,'fieldJSON':_0x349f72,'unitId':_0x495f0a,'subUnitId':_0x43d73e}}),_0x329266['push']({'id':_0x1062bf['id'],'params':{'pivotTableId':_0x7c0ca2,'dataFieldId':_0x349f72['id'],'unitId':_0x495f0a,'subUnitId':_0x43d73e}})),_0x3aab5b['sequenceExecute']([..._0x48f64f['redos'],..._0x3c3d08[_0x401604(0x1b6)],..._0x2669f3],_0x248adb),_0x3dae88['pushUndoRedo']({'unitID':_0x495f0a,'redoMutations':[..._0x48f64f[_0x401604(0x1b6)],..._0x3c3d08[_0x401604(0x1b6)],..._0x2669f3],'undoMutations':[..._0x48f64f[_0x401604(0x2dc)],..._0x3c3d08[_0x401604(0x2dc)],..._0x329266]}),!0x0;}},_0x40ec48={'type':_0x3aab5b[_0x6daf50(0x2d3)]['COMMAND'],'id':_0x6daf50(0x31e),async 'handler'(_0x4761e2,_0x5eb0d){const _0x775019=_0x6daf50;if(!_0x5eb0d)return!0x1;const {sourceDataInfo:_0x45a4ea,pivotTableConfig:_0xd42018}=_0x5eb0d;if(!_0x45a4ea||!_0xd42018)return!0x1;const {unitId:_0x5d2f3e,subUnitId:_0x1ea9f6,range:_0xbbced0}=_0x45a4ea,_0x183afc=_0x4761e2[_0x775019(0x393)](_0x3aab5b[_0x775019(0x350)]),_0xc2cb23=_0x4761e2[_0x775019(0x393)](_0x271f43[_0x775019(0x31b)]),_0xcf9949=_0x4761e2[_0x775019(0x393)](_0x3aab5b[_0x775019(0x2a9)]),_0x6ef2d2=_0x4761e2[_0x775019(0x393)](_0x3aab5b[_0x775019(0x1f4)]),_0x168a70=_0x183afc[_0x775019(0x422)](_0x5d2f3e);if(!_0x168a70)return!0x1;const _0x1e9b6b=_0x168a70['getSheetBySheetId'](_0x1ea9f6);if(!_0x1e9b6b)return!0x1;const _0x5c97e0=_0x5ab2d7[_0x775019(0x329)](0x8),_0x14a09c=_0xbbced0||{'startRow':0x0,'startColumn':0x0,'endRow':_0x1e9b6b[_0x775019(0x3c8)]()-0x1,'endColumn':_0x1e9b6b[_0x775019(0x379)]()-0x1};_0x14a09c[_0x775019(0x26a)]=_0x3aab5b[_0x775019(0x262)][_0x775019(0x416)];const _0x4e8dfe=(await _0xc2cb23['getPivotDisplayConfig']({'unitId':_0x5d2f3e,'subUnitId':_0x1ea9f6,'pivotTableId':_0x5c97e0,'params':{'type':_0x17706b['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x5d2f3e,'sheetName':_0x1e9b6b['getName'](),'subUnitId':_0x1ea9f6,'range':_0x14a09c},'pivotTableId':_0x5c97e0,'pivotTableIndexConfig':_0xd42018}}}))[_0x775019(0x213)][_0x775019(0x2be)];if(!_0x4e8dfe)return!0x1;const {isEmpty:_0x52f8bb,fieldsConfig:_0x5521e0,collectionConfig:_0x1b3f00,changesets:_0x123fb5}=_0x4e8dfe,_0x5df038=_0x168a70[_0x775019(0x424)]()['length'],_0x245b49=_0x3aab5b[_0x775019(0x38e)]({'rowCount':_0x1e9b6b[_0x775019(0x3c8)]()-0x1,'columnCount':_0x1e9b6b[_0x775019(0x379)]()-0x1});_0x245b49['id']=_0x3aab5b[_0x775019(0x319)](),_0x245b49[_0x775019(0x2e0)]=_0x168a70[_0x775019(0x31c)](''+_0xcf9949['t'](_0x775019(0x34f)));const _0x29d20e={'index':_0x5df038,'sheet':_0x245b49,'unitId':_0x5d2f3e},{redos:_0x3d4c7c}=_0x20db0e(_0x6ef2d2,{'pivotTableId':_0x5c97e0,'unitId':_0x5d2f3e,'subUnitId':_0x245b49['id']},_0x123fb5),_0x2a4aa7=[{'id':_0x5b84bb['InsertSheetCommand']['id'],'params':_0x29d20e},{'id':_0x17abbf['id'],'params':{'unitId':_0x5d2f3e,'subUnitId':_0x245b49['id'],'pivotTableId':_0x5c97e0,'pivotTableConfig':{'isEmpty':_0x52f8bb,'fieldsConfig':_0x5521e0,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x5d2f3e,'subUnitId':_0x245b49['id']},'sourceRangeInfo':{'subUnitId':_0x1ea9f6,'unitId':_0x5d2f3e,'range':_0x14a09c,'sheetName':_0x1e9b6b[_0x775019(0x31d)]()}},'collectionConfig':_0x1b3f00}},..._0x3d4c7c];return _0x3aab5b[_0x775019(0x38f)](_0x2a4aa7,_0x6ef2d2),!0x0;}},_0x5b2cbd={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x3ea),async 'handler'(_0x24c5a4,_0x2fb3e1){const _0x191727=_0x6daf50;var _0x4dbe15,_0x3ae4ff;const _0x1f6a5c=_0x24c5a4[_0x191727(0x393)](_0x3aab5b[_0x191727(0x1f4)]),_0xdac4f7=_0x24c5a4['get'](_0x3aab5b['IUniverInstanceService']),_0x48776f=_0x24c5a4['get'](_0x3aab5b[_0x191727(0x2a9)]),_0x31ca8a=_0x24c5a4[_0x191727(0x393)](_0x271f43[_0x191727(0x31b)]),_0x479d6a=_0x24c5a4[_0x191727(0x393)](_0x3aab5b[_0x191727(0x1c9)]),_0x4af999=_0x24c5a4[_0x191727(0x393)](_0x271f43[_0x191727(0x42c)]),_0x11a537=_0x24c5a4['get'](_0x3aab5b[_0x191727(0x1eb)]);if(!_0x2fb3e1)return!0x1;const {pivotTableConfig:_0x254c09,positionType:_0x4d9945}=_0x2fb3e1,{targetCellInfo:_0x550df9,sourceRangeInfo:_0x22125a}=_0x254c09,{unitId:_0x146d9a,subUnitId:_0x3777ad}=_0x550df9,_0x100b4c=_0xdac4f7[_0x191727(0x422)](_0x146d9a);if(!_0x100b4c)return!0x1;let _0x52c4c5=0x0;_0x100b4c[_0x191727(0x424)]()[_0x191727(0x3d8)](_0x9387b5=>{const _0x444580=_0x191727;var _0x11c3b9,_0x4ff6b6;_0x52c4c5+=(_0x4ff6b6=(_0x11c3b9=_0x4af999[_0x444580(0x355)](_0x146d9a,_0x9387b5[_0x444580(0x276)]()))==null?void 0x0:_0x11c3b9[_0x444580(0x423)])!=null?_0x4ff6b6:0x0;});const _0x93e1b6=(_0x4dbe15=_0x11a537[_0x191727(0x3d0)](_0x2a826e[_0x191727(0x3e3)]))!=null?_0x4dbe15:{},{ls:_0x32215c,pbk:_0x60701a}=_0x93e1b6;if(!_0x2ffa8d(_0x32215c,_0x60701a))return!0x1;const _0x5965b8=_0x21309a(_0x884d8a,_0x32215c,_0x60701a)['count'];if(_0x52c4c5>=_0x5965b8)return!0x1;const _0x84ca91=_0x2fb3e1[_0x191727(0x34d)]||_0x5ab2d7[_0x191727(0x329)](0x8),_0x2d70c5=(await _0x31ca8a['getPivotDisplayConfig']({'unitId':_0x146d9a,'subUnitId':_0x3777ad,'pivotTableId':_0x84ca91,'params':{'type':_0x17706b[_0x191727(0x2f0)],'addPivotTable':{'sourceRangeInfo':_0x22125a,'pivotTableId':_0x84ca91}}}))['result'][_0x191727(0x335)];if(!_0x2d70c5)return!0x1;const {view:_0x1fbc72,isEmpty:_0x36838a,fieldsConfig:_0x108ec2,collectionConfig:_0x3187dc}=_0x2d70c5,_0x4da475=[],_0x4b2af2=[];if(_0x4d9945===_0xdd5059[_0x191727(0x3cc)]){const _0x372f97=_0x100b4c[_0x191727(0x424)]()['length'],_0xe7e70=_0x3aab5b[_0x191727(0x38e)]({});_0xe7e70['id']=_0x254c09['targetCellInfo'][_0x191727(0x3af)],_0xe7e70['name']=(_0x3ae4ff=_0x254c09[_0x191727(0x233)][_0x191727(0x35c)])!=null?_0x3ae4ff:_0x100b4c[_0x191727(0x31c)](''+_0x48776f['t'](_0x191727(0x34f)));const _0x37621e={'index':_0x372f97,'sheet':_0xe7e70,'unitId':_0x146d9a},_0x3a7dfe=_0x5b84bb[_0x191727(0x1c0)](_0x24c5a4,_0x37621e);_0x4da475[_0x191727(0x337)]({'id':_0x5b84bb[_0x191727(0x3f4)]['id'],'params':_0x3a7dfe}),_0x4b2af2[_0x191727(0x337)]({'id':_0x5b84bb[_0x191727(0x257)]['id'],'params':_0x37621e});}else{if(!_0x100b4c[_0x191727(0x2a1)](_0x3777ad))return!0x1;const _0x10c496=_0x44c00e(_0x24c5a4,new _0x5ab2d7[(_0x191727(0x205))](),_0x550df9,!0x0);_0x4b2af2['push'](..._0x10c496['redos']),_0x4da475[_0x191727(0x337)](..._0x10c496['undos']);const _0x46c822={'cellInfo':_0x550df9,'view':_0x1fbc72,'isEmpty':_0x36838a};if(!await _0x24c5a4[_0x191727(0x393)](_0x271f43[_0x191727(0x3de)])[_0x191727(0x152)][_0x191727(0x163)](_0x4f637e)(!0x0,_0x46c822))return!0x1;const _0x436620=_0x10be2a(_0x24c5a4,_0x46c822);_0x4b2af2['push'](..._0x436620[_0x191727(0x1b6)]),_0x4da475[_0x191727(0x337)](..._0x436620[_0x191727(0x2dc)]);}return _0x4b2af2[_0x191727(0x337)]({'id':_0x17abbf['id'],'params':{'unitId':_0x550df9[_0x191727(0x3ba)],'subUnitId':_0x550df9[_0x191727(0x3af)],'pivotTableId':_0x84ca91,'pivotTableConfig':{'targetCellInfo':_0x550df9,'sourceRangeInfo':_0x22125a,'fieldsConfig':_0x108ec2},'collectionConfig':_0x3187dc}}),_0x4da475[_0x191727(0x25e)]({'id':_0x2b2273['id'],'params':{'unitId':_0x146d9a,'subUnitId':_0x3777ad,'pivotTableId':_0x84ca91}}),_0x3aab5b[_0x191727(0x38f)](_0x4b2af2,_0x1f6a5c)&&_0x479d6a[_0x191727(0x1b4)]({'unitID':_0x146d9a,'undoMutations':_0x4da475,'redoMutations':_0x4b2af2}),!0x0;}},_0x10ba26={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x1d4),async 'handler'(_0x94ca12,_0x481394){const _0x245d39=_0x6daf50;if(!_0x481394)return!0x1;const _0x286cc2=_0x94ca12[_0x245d39(0x393)](_0x3aab5b[_0x245d39(0x1f4)]),_0x537e67=_0x94ca12[_0x245d39(0x393)](_0x271f43[_0x245d39(0x31b)]),_0x1fd4a5=_0x94ca12[_0x245d39(0x393)](_0x3aab5b['IUndoRedoService']),{pivotTableId:_0x39b885,fieldId:_0x24804c,area:_0x5c28c0,index:_0x4a1540,unitId:_0x29467d,subUnitId:_0xe52253}=_0x481394,_0x4bda44=(await _0x537e67[_0x245d39(0x155)]({'unitId':_0x29467d,'subUnitId':_0xe52253,'pivotTableId':_0x39b885,'params':{'type':_0x17706b[_0x245d39(0x17f)],'movePivotField':{'fieldId':_0x24804c,'area':_0x5c28c0,'index':_0x4a1540}}}))[_0x245d39(0x213)][_0x245d39(0x13f)];if(!_0x4bda44)return!0x1;const {changesets:_0x59dc49,view:_0x49a250,isEmpty:_0x25acf5,pivotTableConfig:_0x30d43d}=_0x4bda44,_0x8c78b3=_0x30d43d['targetCellInfo'],_0x1da105=new _0x5ab2d7[(_0x245d39(0x205))]();_0x1da105[_0x245d39(0x2ed)](_0x49a250);const _0xe7a5e3={'cellInfo':_0x8c78b3,'view':_0x1da105,'isEmpty':_0x25acf5};if(!await _0x94ca12[_0x245d39(0x393)](_0x271f43['SheetsPivotTableService'])[_0x245d39(0x152)][_0x245d39(0x163)](_0x4f637e)(!0x0,_0xe7a5e3))return!0x1;const _0x43964c=_0x44c00e(_0x94ca12,_0x1da105,_0x8c78b3,_0x25acf5),_0x17c195=_0x10be2a(_0x94ca12,_0xe7a5e3),{redos:_0x419898,undos:_0x5bfb6d}=_0x20db0e(_0x286cc2,{'pivotTableId':_0x39b885,'unitId':_0x29467d,'subUnitId':_0xe52253},_0x59dc49);return _0x3aab5b[_0x245d39(0x38f)]([..._0x43964c[_0x245d39(0x1b6)],..._0x17c195[_0x245d39(0x1b6)],..._0x419898],_0x286cc2),_0x1fd4a5[_0x245d39(0x1b4)]({'unitID':_0x29467d,'redoMutations':[..._0x43964c[_0x245d39(0x1b6)],..._0x17c195[_0x245d39(0x1b6)],..._0x419898],'undoMutations':[..._0x43964c[_0x245d39(0x2dc)],..._0x17c195[_0x245d39(0x2dc)],..._0x5bfb6d]}),!0x0;}},_0x594ab8={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x36b),async 'handler'(_0x3ff42f,_0xc0506d){const _0x109ea8=_0x6daf50;var _0x4025e0;if(!_0xc0506d)return!0x1;const _0x241d6f=_0x3ff42f[_0x109ea8(0x393)](_0x3aab5b['IUniverInstanceService']),_0xb1b1e0=_0x5b84bb[_0x109ea8(0x272)](_0x241d6f);if(!_0xb1b1e0)return!0x1;const {unitId:_0x195a5b,subUnitId:_0x728baf,workbook:_0x57b2c7}=_0xb1b1e0,{row:_0x1b203c,col:_0x45f06a}=_0xc0506d,_0x98acf6=_0x3ff42f[_0x109ea8(0x393)](_0x271f43[_0x109ea8(0x36c)]),_0x2724a6=_0x98acf6['getPivotTableIdByCell'](_0x195a5b,_0x728baf,_0x1b203c,_0x45f06a);if(!_0x2724a6)return!0x1;const _0x5acd5f=(_0x4025e0=_0x98acf6[_0x109ea8(0x411)](_0x195a5b,_0x728baf,_0x2724a6))==null?void 0x0:_0x4025e0[_0x109ea8(0x361)];if(!_0x5acd5f)return!0x1;const _0x3c1b29=_0x3ff42f['get'](_0x271f43['SheetsPivotTableConfigModel'])['getPivotTableConfig'](_0x195a5b,_0x728baf,_0x2724a6);if(!_0x3c1b29)return!0x1;const {rowInfo:_0x342725,colInfo:_0x26a6d5}=_0x5acd5f,_0x3fd94e=_0x342725[_0x1b203c]['paths'],_0x1a2fef=_0x26a6d5[_0x45f06a][_0x109ea8(0x20f)],_0x1ffaab=_0x342725[_0x1b203c][_0x109ea8(0x289)],_0xf2ee5a=_0x26a6d5[_0x45f06a][_0x109ea8(0x289)],_0xbfdae9=_0x3fd94e['concat'](_0x1a2fef),_0x234ab5=_0x3c1b29[_0x109ea8(0x2ca)][_0x109ea8(0x292)][_0x109ea8(0x38a)](0x0,_0x1ffaab),_0x23d96f=_0x3c1b29['fieldsConfig'][_0x109ea8(0x245)][_0x109ea8(0x38a)](0x0,_0xf2ee5a),_0x3ff583=_0x234ab5[_0x109ea8(0x134)](_0x23d96f),_0x4f1890=_0xbfdae9[_0x109ea8(0x3f1)]((_0x35332f,_0x4f37b7)=>[_0x35332f,_0x3ff583[_0x4f37b7]]),_0x5e5f64=(await _0x3ff42f[_0x109ea8(0x393)](_0x271f43[_0x109ea8(0x31b)])[_0x109ea8(0x155)]({'unitId':_0x195a5b,'subUnitId':_0x728baf,'pivotTableId':_0x2724a6,'params':{'type':_0x17706b[_0x109ea8(0x347)],'drillDown':{'tuple':_0x4f1890}}}))[_0x109ea8(0x213)][_0x109ea8(0x2d5)];if(!_0x5e5f64)return!0x1;const {indexes:_0x3678a7,range:_0x35d6fd,sourceUnitId:_0x487c0d,sourceSubUnitId:_0x2039a6,formatMap:_0x415680}=_0x5e5f64,{startRow:_0x128abc,endRow:_0x409f06,startColumn:_0x5d57ad,endColumn:_0x247d6d}=_0x35d6fd,_0x171fa9=new _0x3aab5b[(_0x109ea8(0x25d))](),_0x1a4e15=_0x409f06-_0x128abc,_0x1df2f3=_0x247d6d-_0x5d57ad,_0x5a2a5c={},_0x163933=_0x5b84bb[_0x109ea8(0x272)](_0x241d6f,{'unitId':_0x487c0d,'subUnitId':_0x2039a6});if(!_0x163933)return!0x1;const _0x1257bf=_0x34ff93[_0x109ea8(0x380)],_0x32f7b9=_0x34ff93[_0x109ea8(0x3fd)],_0x512f2b=_0x34ff93[_0x109ea8(0x3fd)],_0x3d9587=_0x57b2c7[_0x109ea8(0x40b)]()[_0x109ea8(0x3e5)](_0x1257bf),_0x3f2d0f=_0x57b2c7[_0x109ea8(0x40b)]()[_0x109ea8(0x3e5)](_0x32f7b9),_0x5ae53b=_0x57b2c7[_0x109ea8(0x40b)]()['setValue'](_0x512f2b),{worksheet:_0xd9346b}=_0x163933;let _0x1a9759=0x0;const _0x46e9af=0x1;_0x3678a7[_0x109ea8(0x3d8)](_0x29acd8=>{const _0x3445d0=_0x109ea8;for(let _0x3891f0=0x0;_0x3891f0<=_0x247d6d-_0x5d57ad;_0x3891f0++)_0x171fa9[_0x3445d0(0x3e5)](_0x1a9759,_0x3891f0,_0xd9346b[_0x3445d0(0x310)](_0x29acd8+_0x35d6fd[_0x3445d0(0x413)]+_0x46e9af,_0x3891f0));_0x1a9759++;});for(let _0x5e62e4=_0x5d57ad;_0x5e62e4<=_0x247d6d;_0x5e62e4++){const _0x3ac64a=_0xd9346b[_0x109ea8(0x310)](_0x128abc,_0x5e62e4);_0x5a2a5c[_0x128abc]||(_0x5a2a5c[_0x128abc]={}),_0x5a2a5c[_0x128abc][_0x5e62e4]={..._0x3ac64a,'s':_0x3d9587};}let _0x7c3661=0x1;const _0x7b9b4={},_0x340ca5={};_0x171fa9['forRow']((_0x2e3841,_0x4e2e01)=>{const _0x2586b3=_0x109ea8;_0x4e2e01[_0x2586b3(0x3d8)](_0x17e0a9=>{const _0x52817b=_0x2586b3,_0x4251a8=_0x171fa9[_0x52817b(0x123)](_0x2e3841,_0x17e0a9);if(_0x5a2a5c[_0x7c3661]||(_0x5a2a5c[_0x7c3661]={}),_0x5a2a5c[_0x7c3661][_0x17e0a9]={..._0x4251a8,'s':_0x7c3661%0x2===0x0?_0x5ae53b:_0x3f2d0f},_0x415680[_0x17e0a9]&&_0x2e3841>=0x0){const _0x312c2d=_0x7c3661%0x2===0x0;let _0x393f09=_0x312c2d?_0x340ca5[_0x17e0a9]:_0x7b9b4[_0x17e0a9];_0x393f09||(_0x393f09=_0x57b2c7[_0x52817b(0x40b)]()[_0x52817b(0x3e5)]({..._0x312c2d?_0x512f2b:_0x32f7b9,'n':{'pattern':_0x415680[_0x17e0a9]}}),_0x312c2d?_0x340ca5[_0x17e0a9]=_0x393f09:_0x7b9b4[_0x17e0a9]=_0x393f09),_0x5a2a5c[_0x7c3661][_0x17e0a9]['s']=_0x393f09;}}),_0x7c3661++;});const _0x1c7db7=new _0x3aab5b[(_0x109ea8(0x25d))](_0x5a2a5c),_0x4a3b5a={};_0x1c7db7['forValue']((_0x569a6b,_0x4b5e93,_0x2a9f5c)=>{_0x4a3b5a[_0x569a6b]||(_0x4a3b5a[_0x569a6b]={}),_0x4a3b5a[_0x569a6b][_0x4b5e93]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x29cb18=[],_0x3d23d6=[],_0x307353=_0x57b2c7[_0x109ea8(0x424)]()[_0x109ea8(0x299)],_0x2fe7a4=_0x3aab5b[_0x109ea8(0x38e)]({'rowCount':Math['max'](_0x3aab5b[_0x109ea8(0x288)],_0x1a4e15+0xa),'columnCount':Math['max'](_0x3aab5b['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x1df2f3+0x5)}),_0x3e4172=_0x3ff42f[_0x109ea8(0x393)](_0x3aab5b[_0x109ea8(0x2a9)]);_0x2fe7a4['id']=_0x3aab5b[_0x109ea8(0x319)](),_0x2fe7a4['name']=_0x57b2c7['generateNewSheetName'](''+_0x3e4172['t'](_0x109ea8(0x34f)));const _0xaf780e={'index':_0x307353,'sheet':_0x2fe7a4,'unitId':_0x195a5b},_0x3ff5aa=_0x5b84bb[_0x109ea8(0x1c0)](_0x3ff42f,_0xaf780e);_0x3d23d6[_0x109ea8(0x337)]({'id':_0x5b84bb[_0x109ea8(0x257)]['id'],'params':_0xaf780e}),_0x29cb18[_0x109ea8(0x337)]({'id':_0x5b84bb[_0x109ea8(0x3f4)]['id'],'params':_0x3ff5aa}),_0x3d23d6[_0x109ea8(0x337)]({'id':_0x5b84bb[_0x109ea8(0x3b8)]['id'],'params':{'unitId':_0x195a5b,'subUnitId':_0x2fe7a4['id'],'cellValue':_0x5a2a5c}}),_0x29cb18['unshift']({'id':_0x5b84bb[_0x109ea8(0x3b8)]['id'],'params':{'unitId':_0x195a5b,'subUnitId':_0x2fe7a4['id'],'cellValue':_0x4a3b5a}});const _0x4c5a42={'startRow':0x0,'startColumn':0x0,'endRow':_0x7c3661-0x1,'endColumn':_0x247d6d};_0x3d23d6[_0x109ea8(0x337)]({'id':_0x4bef69[_0x109ea8(0x32f)]['id'],'params':{'unitId':_0x195a5b,'subUnitId':_0x2fe7a4['id'],'range':_0x4c5a42}}),_0x29cb18['unshift']({'id':_0x4bef69['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x195a5b,'subUnitId':_0x2fe7a4['id']}});const _0x15e7c0=_0x3ff42f[_0x109ea8(0x393)](_0x3aab5b['ICommandService']);return _0x3aab5b[_0x109ea8(0x38f)](_0x3d23d6,_0x15e7c0)&&_0x3ff42f[_0x109ea8(0x393)](_0x3aab5b[_0x109ea8(0x1c9)])[_0x109ea8(0x1b4)]({'unitID':_0x195a5b,'undoMutations':_0x29cb18,'redoMutations':_0x3d23d6}),!0x0;}},_0x586638={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x3b2),async 'handler'(_0x327188,_0xa7dc17){const _0x3c56d1=_0x6daf50;if(!_0xa7dc17)return!0x1;const _0x418e48=_0x327188[_0x3c56d1(0x393)](_0x3aab5b[_0x3c56d1(0x1f4)]),_0x52e002=_0x327188[_0x3c56d1(0x393)](_0x271f43[_0x3c56d1(0x31b)]),_0x3ed4d4=_0x327188[_0x3c56d1(0x393)](_0x3aab5b['IUndoRedoService']),{pivotTableId:_0x2b9791,fieldIds:_0x2f22d7,unitId:_0x4fa97c,subUnitId:_0x393575}=_0xa7dc17,_0x11e33c=(await _0x52e002[_0x3c56d1(0x155)]({'unitId':_0x4fa97c,'subUnitId':_0x393575,'pivotTableId':_0x2b9791,'params':{'type':_0x17706b[_0x3c56d1(0x2f3)],'removePivotField':{'fieldIds':_0x2f22d7}}}))[_0x3c56d1(0x213)]['removePivotField'];if(!_0x11e33c)return!0x1;const {view:_0xffac5d,changesets:_0x367227,isEmpty:_0x29beff,pivotTableConfig:_0x32453c}=_0x11e33c,_0x4244a0=_0x32453c[_0x3c56d1(0x233)],_0x53c1bd=new _0x5ab2d7['PivotView']();_0x53c1bd[_0x3c56d1(0x2ed)](_0xffac5d);const _0x1561ca={'cellInfo':_0x4244a0,'view':_0x53c1bd,'isEmpty':_0x29beff};if(!await _0x327188[_0x3c56d1(0x393)](_0x271f43[_0x3c56d1(0x3de)])[_0x3c56d1(0x152)][_0x3c56d1(0x163)](_0x4f637e)(!0x0,_0x1561ca))return!0x1;const _0x5b34d9=_0x44c00e(_0x327188,_0x53c1bd,_0x4244a0,_0x29beff),_0x44d4d2=_0x10be2a(_0x327188,_0x1561ca),{redos:_0x40946a,undos:_0x3bf09b}=_0x20db0e(_0x418e48,{'pivotTableId':_0x2b9791,'unitId':_0x4fa97c,'subUnitId':_0x393575},_0x367227);return _0x3aab5b['sequenceExecute']([..._0x5b34d9['redos'],..._0x44d4d2[_0x3c56d1(0x1b6)],..._0x40946a],_0x418e48),_0x3ed4d4[_0x3c56d1(0x1b4)]({'unitID':_0x4fa97c,'redoMutations':[..._0x5b34d9[_0x3c56d1(0x1b6)],..._0x44d4d2[_0x3c56d1(0x1b6)],..._0x40946a],'undoMutations':[..._0x5b34d9[_0x3c56d1(0x2dc)],..._0x44d4d2['undos'],..._0x3bf09b]}),!0x0;}},_0x3bc954={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x303),async 'handler'(_0x548f3d,_0x59cbdf){const _0xd84995=_0x6daf50;var _0x566e6f;const _0x4ad1dc=_0x548f3d['get'](_0x3aab5b[_0xd84995(0x1f4)]),_0x11b963=_0x548f3d[_0xd84995(0x393)](_0x271f43['SheetsPivotRPCService']),_0x58d654=_0x548f3d[_0xd84995(0x393)](_0x271f43['SheetsPivotTableAdaptorModel']),_0x259928=_0x548f3d['get'](_0x3aab5b['IUniverInstanceService']),_0x2fb7aa=_0x548f3d['get'](_0x3aab5b[_0xd84995(0x1c9)]);if(!_0x59cbdf)return!0x1;const {unitId:_0x3097c4,subUnitId:_0xd1a09f,row:_0x182106,col:_0xb6003d,collapse:_0x885578}=_0x59cbdf,_0x5d1d79=_0x259928[_0xd84995(0x422)](_0x3097c4);if(!_0x5d1d79||!_0x5d1d79['getSheetBySheetId'](_0xd1a09f))return!0x1;const _0x277b6b=_0x58d654[_0xd84995(0x13b)](_0x3097c4,_0xd1a09f,_0x182106,_0xb6003d);if(!_0x277b6b)return!0x1;const _0x5580ab=_0x58d654[_0xd84995(0x411)](_0x3097c4,_0xd1a09f,_0x277b6b);if(!_0x5580ab)return!0x1;const _0x5e52bf=_0x3aab5b['cellToRange'](_0x182106,_0xb6003d),{rangesInfo:_0x954770,areaInfo:_0x341b17,headerMap:_0x352810}=_0x5580ab;if(!_0x954770||!_0x341b17||!_0x352810)return!0x1;const _0x50b346=Object[_0xd84995(0x30e)](_0x954770)[_0xd84995(0x184)](_0x1d679d=>_0x954770[_0x1d679d]['some'](_0x269dcc=>_0x3aab5b[_0xd84995(0x224)]['contains'](_0x269dcc,_0x5e52bf)));let _0xde51fc;_0x50b346==='rowRanges'?_0xde51fc=_0x352810[_0xd84995(0x277)][_0xb6003d]:_0x50b346===_0xd84995(0x331)&&(_0xde51fc=_0x352810[_0xd84995(0x282)][_0x182106]);const _0x168542=_0xde51fc==null?void 0x0:_0xde51fc[_0xd84995(0x124)],_0x592db8=(_0x566e6f=_0x58d654[_0xd84995(0x3ef)](_0x3097c4,_0xd1a09f,_0x182106,_0xb6003d))==null?void 0x0:_0x566e6f['v'];if(_0x592db8==null||!_0x277b6b||!_0x168542)return!0x1;const _0x475dcb=await _0x11b963['getPivotDisplayConfig']({'unitId':_0x3097c4,'subUnitId':_0xd1a09f,'pivotTableId':_0x277b6b,'params':{'type':_0x17706b[_0xd84995(0x2e8)],'setPivotCollapse':{'tableFieldId':_0x168542,'collapse':_0x885578,'item':_0x592db8}}}),_0x5bfe32=_0x475dcb==null?void 0x0:_0x475dcb[_0xd84995(0x213)][_0xd84995(0x260)];if(!_0x5bfe32)return!0x1;const {view:_0x43d48b,pivotTableConfig:_0x3d8072,isEmpty:_0x313a00,changesets:_0x7b27db}=_0x5bfe32,_0xe904fc=new _0x5ab2d7[(_0xd84995(0x205))]();_0xe904fc['formJSON'](_0x43d48b);const _0x172ef9=_0x3d8072[_0xd84995(0x233)],_0x3d1139={'cellInfo':_0x172ef9,'view':_0xe904fc,'isEmpty':_0x313a00};if(!await _0x548f3d[_0xd84995(0x393)](_0x271f43[_0xd84995(0x3de)])[_0xd84995(0x152)][_0xd84995(0x163)](_0x4f637e)(!0x0,_0x3d1139))return!0x1;const _0x41cbce=_0x44c00e(_0x548f3d,_0xe904fc,_0x172ef9,_0x313a00),_0x1541fa=_0x10be2a(_0x548f3d,_0x3d1139),{redos:_0x15d1a6,undos:_0x1e7feb}=_0x20db0e(_0x4ad1dc,{'pivotTableId':_0x277b6b,'unitId':_0x3097c4,'subUnitId':_0xd1a09f},_0x7b27db);return _0x3aab5b[_0xd84995(0x38f)]([..._0x41cbce[_0xd84995(0x1b6)],..._0x1541fa[_0xd84995(0x1b6)],..._0x15d1a6],_0x4ad1dc),_0x2fb7aa[_0xd84995(0x1b4)]({'unitID':_0x3097c4,'redoMutations':[..._0x41cbce[_0xd84995(0x1b6)],..._0x1541fa[_0xd84995(0x1b6)],..._0x15d1a6],'undoMutations':[..._0x41cbce[_0xd84995(0x2dc)],..._0x1541fa[_0xd84995(0x2dc)],..._0x1e7feb]}),!0x0;}},_0x4add00={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x2e9),async 'handler'(_0x56cb84,_0x1a2dec){const _0x64d59a=_0x6daf50;if(!_0x1a2dec)return!0x1;const _0x342942=_0x56cb84[_0x64d59a(0x393)](_0x3aab5b['ICommandService']),{pivotTableId:_0xfd77b4,tableFieldId:_0x326994,items:_0x138c08,unitId:_0x2764c5,subUnitId:_0x38bd26,isAll:_0x27b9f0}=_0x1a2dec,_0x5e6653=_0x56cb84[_0x64d59a(0x393)](_0x271f43[_0x64d59a(0x31b)]),_0x5089a6=_0x56cb84[_0x64d59a(0x393)](_0x3aab5b['IUndoRedoService']),_0x24b371=(await _0x5e6653[_0x64d59a(0x155)]({'unitId':_0x2764c5,'subUnitId':_0x38bd26,'pivotTableId':_0xfd77b4,'params':{'type':_0x17706b[_0x64d59a(0x2c5)],'setPivotFilter':{'tableFieldId':_0x326994,'items':_0x138c08,'isAll':_0x27b9f0}}}))[_0x64d59a(0x213)]['setPivotFilter'];if(!_0x24b371)return!0x1;const {changesets:_0x1ba3d1,pivotTableConfig:_0x4181d3,isEmpty:_0x2dd1f5,view:_0x2fad1f}=_0x24b371,_0x438753=_0x4181d3[_0x64d59a(0x233)],_0x56175b=new _0x5ab2d7[(_0x64d59a(0x205))]();_0x56175b[_0x64d59a(0x2ed)](_0x2fad1f);const _0x1a630d={'cellInfo':_0x438753,'view':_0x56175b,'isEmpty':_0x2dd1f5};if(!await _0x56cb84[_0x64d59a(0x393)](_0x271f43[_0x64d59a(0x3de)])['asyncInterceptor'][_0x64d59a(0x163)](_0x4f637e)(!0x0,_0x1a630d))return!0x1;const _0x24ae27=_0x44c00e(_0x56cb84,_0x56175b,_0x438753,_0x2dd1f5),_0x303cae=_0x10be2a(_0x56cb84,_0x1a630d),{undos:_0x2e3544,redos:_0x34ee98}=_0x20db0e(_0x342942,{'pivotTableId':_0xfd77b4,'unitId':_0x2764c5,'subUnitId':_0x38bd26},_0x1ba3d1);return _0x3aab5b['sequenceExecute']([..._0x24ae27[_0x64d59a(0x1b6)],..._0x303cae[_0x64d59a(0x1b6)],..._0x34ee98],_0x342942),_0x5089a6['pushUndoRedo']({'unitID':_0x2764c5,'redoMutations':[..._0x24ae27[_0x64d59a(0x1b6)],..._0x303cae[_0x64d59a(0x1b6)],..._0x34ee98],'undoMutations':[..._0x24ae27['undos'],..._0x303cae[_0x64d59a(0x2dc)],..._0x2e3544]}),!0x0;}},_0x417133={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x2b8),async 'handler'(_0x14b682,_0x343a71){const _0x2281ec=_0x6daf50;if(!_0x343a71)return!0x1;const _0x436367=_0x14b682[_0x2281ec(0x393)](_0x3aab5b[_0x2281ec(0x1f4)]),_0x1fc8de=_0x14b682['get'](_0x3aab5b['IUndoRedoService']),_0x563932=_0x14b682[_0x2281ec(0x393)](_0x271f43[_0x2281ec(0x31b)]),{info:_0x1ec59a,tableFieldId:_0x2927b2,pivotTableId:_0x1e3c58,unitId:_0x579fe0,subUnitId:_0x3d61e5}=_0x343a71,_0x245512=(await _0x563932['getPivotDisplayConfig']({'unitId':_0x579fe0,'subUnitId':_0x3d61e5,'pivotTableId':_0x1e3c58,'params':{'type':_0x17706b[_0x2281ec(0x295)],'setPivotSort':{'tableFieldId':_0x2927b2,'info':_0x1ec59a}}}))['result'][_0x2281ec(0x29d)];if(!_0x245512)return!0x1;const {changesets:_0x39469c}=_0x245512,{redos:_0x565bf5,undos:_0x386191}=_0x20db0e(_0x436367,{'pivotTableId':_0x1e3c58,'unitId':_0x579fe0,'subUnitId':_0x3d61e5},_0x39469c);return _0x3aab5b[_0x2281ec(0x38f)](_0x565bf5,_0x436367),_0x1fc8de['pushUndoRedo']({'unitID':_0x579fe0,'redoMutations':_0x565bf5,'undoMutations':_0x386191}),!0x0;}},_0x3df461={'type':_0x3aab5b[_0x6daf50(0x2d3)]['COMMAND'],'id':_0x6daf50(0x33f),async 'handler'(_0x221a6d,_0xce884a){const _0x5bd24c=_0x6daf50;if(!_0xce884a)return!0x1;const _0x12b50a=_0x221a6d[_0x5bd24c(0x393)](_0x3aab5b[_0x5bd24c(0x1f4)]),_0x2ed3f6=_0x221a6d[_0x5bd24c(0x393)](_0x3aab5b[_0x5bd24c(0x1c9)]),_0x6ed4c2=_0x221a6d['get'](_0x271f43[_0x5bd24c(0x31b)]),{displayName:_0x18f27c,subtotalType:_0x26c0dc,format:_0xbd0634,tableFieldId:_0x3b3370,pivotTableId:_0x230d4a,unitId:_0x4aa756,subUnitId:_0x109a3a}=_0xce884a,_0x37b91e=(await _0x6ed4c2[_0x5bd24c(0x155)]({'unitId':_0x4aa756,'subUnitId':_0x109a3a,'pivotTableId':_0x230d4a,'params':{'type':_0x17706b['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x3b3370,'displayName':_0x18f27c,'subtotalType':_0x26c0dc,'format':_0xbd0634}}}))[_0x5bd24c(0x213)]['setPivotSetting'];if(!_0x37b91e)return!0x1;const {changesets:_0x5e15ac,view:_0x39e229,pivotTableConfig:_0xe2fc0,isEmpty:_0x1798bb}=_0x37b91e,_0x1ca240=_0xe2fc0[_0x5bd24c(0x233)],_0x4a0a09=new _0x5ab2d7['PivotView']();_0x4a0a09['formJSON'](_0x39e229);const _0x73428a={'cellInfo':_0x1ca240,'view':_0x4a0a09,'isEmpty':_0x1798bb};if(!await _0x221a6d[_0x5bd24c(0x393)](_0x271f43['SheetsPivotTableService'])[_0x5bd24c(0x152)][_0x5bd24c(0x163)](_0x4f637e)(!0x0,_0x73428a))return!0x1;const _0x5c8362=_0x44c00e(_0x221a6d,_0x4a0a09,_0x1ca240,_0x1798bb),_0x2f7a16=_0x10be2a(_0x221a6d,_0x73428a),{undos:_0x4ce3da,redos:_0x3f7a6d}=_0x20db0e(_0x12b50a,{'pivotTableId':_0x230d4a,'unitId':_0x4aa756,'subUnitId':_0x109a3a},_0x5e15ac);return _0x3aab5b['sequenceExecute']([..._0x5c8362['redos'],..._0x2f7a16[_0x5bd24c(0x1b6)],..._0x3f7a6d],_0x12b50a),_0x2ed3f6[_0x5bd24c(0x1b4)]({'unitID':_0x4aa756,'redoMutations':[..._0x5c8362['redos'],..._0x2f7a16[_0x5bd24c(0x1b6)],..._0x3f7a6d],'undoMutations':[..._0x5c8362['undos'],..._0x2f7a16[_0x5bd24c(0x2dc)],..._0x4ce3da]}),!0x0;}},_0x55f03e={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':'sheet.command.update-pivot-table-source-range',async 'handler'(_0x1a003c,_0x943ab1){const _0x1ab038=_0x6daf50,_0x43971f=_0x1a003c[_0x1ab038(0x393)](_0x3aab5b[_0x1ab038(0x1f4)]),_0x46c5b2=_0x1a003c[_0x1ab038(0x393)](_0x271f43[_0x1ab038(0x31b)]),_0x4ce8b4=_0x1a003c[_0x1ab038(0x393)](_0x3aab5b[_0x1ab038(0x1c9)]);if(!_0x943ab1)return!0x1;const {token:_0x3c3022,dataRangeInfo:_0x4da33e,unitId:_0x213968,subUnitId:_0x1c50aa}=_0x943ab1,_0x20449f=[],_0x5f14d4=[],_0x586e2b=(await _0x46c5b2['getPivotDisplayConfig']({'unitId':_0x213968,'subUnitId':_0x1c50aa,'pivotTableId':_0x3c3022,'params':{'type':_0x17706b[_0x1ab038(0x41c)],'updatePivotSource':{'dataRangeInfo':_0x4da33e,'unitId':_0x213968,'subUnitId':_0x1c50aa}}}))[_0x1ab038(0x213)][_0x1ab038(0x17d)];if(!_0x586e2b)return!0x1;const {changesets:_0x48a1cb,deleteIds:_0x12666d,collectionConfig:_0x35ce06,oldCollectionConfig:_0xfa46ff,view:_0x19354d,isEmpty:_0x4f1bd4,pivotTableConfig:_0x39b8c1}=_0x586e2b;_0x5f14d4[_0x1ab038(0x337)]({'id':_0x49672d['id'],'params':{'pivotTableId':_0x3c3022,'deleteIds':_0x12666d,'collectionJSON':_0x35ce06,'dataRangeInfo':_0x4da33e,'unitId':_0x213968,'subUnitId':_0x1c50aa}}),_0x20449f[_0x1ab038(0x25e)]({'id':_0x49672d['id'],'params':{'pivotTableId':_0x3c3022,'deleteIds':[],'collectionJSON':_0xfa46ff,'dataRangeInfo':_0x39b8c1[_0x1ab038(0x133)],'unitId':_0x213968,'subUnitId':_0x1c50aa}});const _0x25f400=_0x39b8c1[_0x1ab038(0x233)],_0xb1ae84=new _0x5ab2d7['PivotView']();_0xb1ae84[_0x1ab038(0x2ed)](_0x19354d);const _0x1aa66b={'cellInfo':_0x25f400,'view':_0xb1ae84,'isEmpty':_0x4f1bd4};if(!await _0x1a003c[_0x1ab038(0x393)](_0x271f43[_0x1ab038(0x3de)])[_0x1ab038(0x152)]['fetchThroughAsyncInterceptors'](_0x4f637e)(!0x0,_0x1aa66b))return!0x1;const _0x206c6f=_0x44c00e(_0x1a003c,_0xb1ae84,_0x25f400,_0x4f1bd4),_0x460819=_0x10be2a(_0x1a003c,_0x1aa66b),{undos:_0xe54819,redos:_0x274aad}=_0x20db0e(_0x43971f,{'pivotTableId':_0x3c3022,'unitId':_0x213968,'subUnitId':_0x1c50aa},_0x48a1cb);return _0x3aab5b[_0x1ab038(0x38f)]([..._0x206c6f[_0x1ab038(0x1b6)],..._0x460819[_0x1ab038(0x1b6)],..._0x5f14d4,..._0xe54819],_0x43971f),_0x4ce8b4[_0x1ab038(0x1b4)]({'unitID':_0x213968,'redoMutations':[..._0x206c6f[_0x1ab038(0x1b6)],..._0x460819['redos'],..._0x5f14d4,..._0xe54819],'undoMutations':[..._0x206c6f['undos'],..._0x460819[_0x1ab038(0x2dc)],..._0x20449f,..._0x274aad]}),!0x0;}},_0x57f960={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x328610,_0x17da54){const _0x566848=_0x6daf50;if(!_0x17da54)return!0x1;const _0x45e272=_0x328610[_0x566848(0x393)](_0x3aab5b[_0x566848(0x1f4)]),_0x3274cb=_0x328610[_0x566848(0x393)](_0x271f43['SheetsPivotRPCService']),_0x2aab17=_0x328610[_0x566848(0x393)](_0x3aab5b['IUniverInstanceService']),_0x35882a=_0x328610[_0x566848(0x393)](_0x3aab5b[_0x566848(0x1c9)]),{pivotTableId:_0x3470e4,position:_0x43ec45,index:_0x469e11}=_0x17da54,_0x21d5b8=_0x5b84bb[_0x566848(0x272)](_0x2aab17);if(!_0x21d5b8)return!0x1;const {unitId:_0x572d0d,subUnitId:_0x1e9b70}=_0x21d5b8,_0x2b1d53=(await _0x3274cb[_0x566848(0x155)]({'unitId':_0x572d0d,'subUnitId':_0x1e9b70,'pivotTableId':_0x3470e4,'params':{'type':_0x17706b[_0x566848(0x42e)],'updateValuePosition':{'position':_0x43ec45,'index':_0x469e11}}}))[_0x566848(0x213)][_0x566848(0x348)];if(!_0x2b1d53)return!0x1;const {changesets:_0x1fc36e,view:_0x2c027a,isEmpty:_0x1d4c5e,pivotTableConfig:_0x55afd2}=_0x2b1d53,_0x32909b=_0x55afd2['targetCellInfo'],_0x4d30e4=new _0x5ab2d7['PivotView']();_0x4d30e4[_0x566848(0x2ed)](_0x2c027a);const _0x55d751=_0x328610[_0x566848(0x393)](_0x271f43[_0x566848(0x3de)]),_0x46e701={'cellInfo':_0x32909b,'view':_0x4d30e4,'isEmpty':_0x1d4c5e};if(!await _0x55d751[_0x566848(0x152)][_0x566848(0x163)](_0x4f637e)(!0x0,_0x46e701))return!0x1;const _0x3534a=_0x44c00e(_0x328610,_0x4d30e4,_0x32909b,_0x1d4c5e),_0x906c4=_0x10be2a(_0x328610,_0x46e701),{undos:_0x294d91,redos:_0x20d43f}=_0x20db0e(_0x45e272,{'pivotTableId':_0x3470e4,'unitId':_0x572d0d,'subUnitId':_0x1e9b70},_0x1fc36e);return _0x3aab5b[_0x566848(0x38f)]([..._0x3534a[_0x566848(0x1b6)],..._0x906c4['redos'],..._0x20d43f],_0x45e272),_0x35882a[_0x566848(0x1b4)]({'unitID':_0x572d0d,'redoMutations':[..._0x3534a['redos'],..._0x906c4[_0x566848(0x1b6)],..._0x20d43f],'undoMutations':[..._0x3534a[_0x566848(0x2dc)],..._0x906c4[_0x566848(0x2dc)],..._0x294d91]}),!0x0;}},_0x383fc8={'type':_0x3aab5b['CommandType']['COMMAND'],'id':_0x6daf50(0x420),'handler':(_0x2693ae,_0x152394)=>{const _0x446f0b=_0x6daf50,_0x8c7e94=_0x2693ae[_0x446f0b(0x393)](_0x3aab5b[_0x446f0b(0x1f4)]),_0x244acb=_0x2693ae[_0x446f0b(0x393)](_0x3aab5b[_0x446f0b(0x1c9)]),_0x321ff2=_0x2693ae[_0x446f0b(0x393)](_0x271f43['SheetsPivotTableConfigModel']),_0x16e2ce=_0x2693ae['get'](_0x3aab5b['IUniverInstanceService']);if(!_0x152394)return!0x1;const _0x4070db=_0x5b84bb[_0x446f0b(0x272)](_0x16e2ce);if(!_0x4070db)return!0x1;const {unitId:_0x561308,subUnitId:_0x441994,workbook:_0x4256ee}=_0x4070db,_0x3d473e=_0x321ff2['getPivotTableConfig'](_0x152394[_0x446f0b(0x1d7)][_0x446f0b(0x3ba)],_0x152394['originTargetInfo'][_0x446f0b(0x3af)],_0x152394[_0x446f0b(0x34d)]);if(!_0x3d473e)return!0x1;const _0x460668=_0x4256ee['getSheetBySheetId'](_0x152394[_0x446f0b(0x233)]['subUnitId']);if(!_0x460668)throw new Error(_0x446f0b(0x2cf));const _0x2b035e=_0x460668['getRowCount'](),_0x3327c3=_0x460668[_0x446f0b(0x379)]();if(_0x152394[_0x446f0b(0x233)][_0x446f0b(0x177)]>_0x2b035e||_0x152394[_0x446f0b(0x233)][_0x446f0b(0x215)]>_0x3327c3)throw new Error(_0x446f0b(0x1c8));const _0x48b390=[{'id':_0x2ef4c5['id'],'params':{'unitId':_0x561308,'subUnitId':_0x152394['targetCellInfo'][_0x446f0b(0x3af)],'pivotTableId':_0x152394[_0x446f0b(0x34d)],'targetCellPosition':{'row':_0x152394[_0x446f0b(0x233)][_0x446f0b(0x177)],'col':_0x152394[_0x446f0b(0x233)]['col']}}}],_0x49239e=[{'id':_0x2ef4c5['id'],'params':{'unitId':_0x561308,'subUnitId':_0x441994,'pivotTableId':_0x152394[_0x446f0b(0x34d)],'targetCellPosition':{'row':_0x3d473e[_0x446f0b(0x233)]['row'],'col':_0x3d473e[_0x446f0b(0x233)]['col']}}}];return _0x3aab5b[_0x446f0b(0x38f)](_0x48b390,_0x8c7e94)&&_0x244acb[_0x446f0b(0x1b4)]({'unitID':_0x561308,'undoMutations':_0x49239e,'redoMutations':_0x48b390}),!0x0;}},_0x492476={'type':_0x3aab5b['CommandType'][_0x6daf50(0x313)],'id':_0x6daf50(0x2da),async 'handler'(_0x3dca90,_0x3b0689){const _0x3369cd=_0x6daf50;if(!_0x3b0689)return!0x1;const _0x2022e1=_0x3dca90[_0x3369cd(0x393)](_0x3aab5b[_0x3369cd(0x1f4)]),{pivotTableId:_0x100941,fieldId:_0x48f3fa,valueFilterInfo:_0xfade53,unitId:_0xb356dd,subUnitId:_0x3b6ecd}=_0x3b0689,_0x205ecc=_0x3dca90['get'](_0x271f43['SheetsPivotRPCService']),_0x12b9f6=_0x3dca90[_0x3369cd(0x393)](_0x3aab5b[_0x3369cd(0x1c9)]),_0x41a8d8=(await _0x205ecc[_0x3369cd(0x155)]({'unitId':_0xb356dd,'subUnitId':_0x3b6ecd,'pivotTableId':_0x100941,'params':{'type':_0x17706b[_0x3369cd(0x339)],'setValuePivotFilter':{'tableFieldId':_0x48f3fa,'filterInfo':_0xfade53}}}))[_0x3369cd(0x213)][_0x3369cd(0x349)];if(!_0x41a8d8)return!0x1;const {changesets:_0x2aecb5,pivotTableConfig:_0x486e3f,isEmpty:_0x16c65d,view:_0x4d9e71}=_0x41a8d8,_0x1cca9f=_0x486e3f[_0x3369cd(0x233)],_0xfe4b56=new _0x5ab2d7['PivotView']();_0xfe4b56['formJSON'](_0x4d9e71);const _0x493290={'cellInfo':_0x1cca9f,'view':_0xfe4b56,'isEmpty':_0x16c65d};if(!await _0x3dca90[_0x3369cd(0x393)](_0x271f43[_0x3369cd(0x3de)])[_0x3369cd(0x152)][_0x3369cd(0x163)](_0x4f637e)(!0x0,_0x493290))return!0x1;const _0x3c07de=_0x44c00e(_0x3dca90,_0xfe4b56,_0x1cca9f,_0x16c65d),_0x2a15a8=_0x10be2a(_0x3dca90,_0x493290),{undos:_0x927562,redos:_0x39a655}=_0x20db0e(_0x2022e1,{'pivotTableId':_0x100941,'unitId':_0xb356dd,'subUnitId':_0x3b6ecd},_0x2aecb5);return _0x3aab5b[_0x3369cd(0x38f)]([..._0x3c07de[_0x3369cd(0x1b6)],..._0x2a15a8[_0x3369cd(0x1b6)],..._0x39a655],_0x2022e1),_0x12b9f6[_0x3369cd(0x1b4)]({'unitID':_0xb356dd,'redoMutations':[..._0x3c07de[_0x3369cd(0x1b6)],..._0x2a15a8[_0x3369cd(0x1b6)],..._0x39a655],'undoMutations':[..._0x3c07de[_0x3369cd(0x2dc)],..._0x2a15a8[_0x3369cd(0x2dc)],..._0x927562]}),!0x0;}},_0x5d22d2={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':_0x6daf50(0x22e),async 'handler'(_0x3465cc,_0x1cf633){const _0xe5ccb7=_0x6daf50;if(!_0x1cf633)return!0x1;const _0xcca9fe=_0x3465cc[_0xe5ccb7(0x393)](_0x3aab5b['ICommandService']),_0x16d63e=_0x3465cc[_0xe5ccb7(0x393)](_0x3aab5b[_0xe5ccb7(0x1c9)]),_0x2fb30a=_0x3465cc[_0xe5ccb7(0x393)](_0x271f43[_0xe5ccb7(0x31b)]),{pivotTableConfig:_0x34c341,pivotTableId:_0x53e29b,unitId:_0x21f75d,subUnitId:_0x233f83}=_0x1cf633,_0x3f0b97=(await _0x2fb30a[_0xe5ccb7(0x155)]({'unitId':_0x21f75d,'subUnitId':_0x233f83,'pivotTableId':_0x53e29b,'params':{'type':_0x17706b['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x53e29b,'pivotTableConfig':_0x34c341}}}))[_0xe5ccb7(0x213)][_0xe5ccb7(0x369)];if(!_0x3f0b97)return!0x1;const {changesets:_0x11d708}=_0x3f0b97,{redos:_0x4766ef,undos:_0x360025}=_0x20db0e(_0xcca9fe,{'pivotTableId':_0x53e29b,'unitId':_0x21f75d,'subUnitId':_0x233f83},_0x11d708);return _0x3aab5b['sequenceExecute'](_0x4766ef,_0xcca9fe),_0x16d63e[_0xe5ccb7(0x1b4)]({'unitID':_0x21f75d,'redoMutations':_0x4766ef,'undoMutations':_0x360025}),!0x0;}},_0x198890={'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x47aea8,_0x3b67a4){const _0x304485=_0x6daf50;if(!_0x3b67a4)return!0x1;const _0x3e9f09=_0x47aea8[_0x304485(0x393)](_0x3aab5b[_0x304485(0x1f4)]),_0x420d3e=_0x47aea8[_0x304485(0x393)](_0x3aab5b['IUndoRedoService']),_0x39fc72=_0x47aea8[_0x304485(0x393)](_0x271f43[_0x304485(0x31b)]),{resetArea:_0x3fac20,pivotTableId:_0x55b29a,unitId:_0x293fea,subUnitId:_0xc65679}=_0x3b67a4,_0x4e34ce=(await _0x39fc72[_0x304485(0x155)]({'unitId':_0x293fea,'subUnitId':_0xc65679,'pivotTableId':_0x55b29a,'params':{'type':_0x17706b['ResetPivotTable'],'resetPivotTable':{'pivotTableId':_0x55b29a,'resetArea':_0x3fac20}}}))[_0x304485(0x213)]['resetPivotTable'];if(!_0x4e34ce)return!0x1;const {changesets:_0x46afc0}=_0x4e34ce,{redos:_0x143380,undos:_0x29cc64}=_0x20db0e(_0x3e9f09,{'pivotTableId':_0x55b29a,'unitId':_0x293fea,'subUnitId':_0xc65679},_0x46afc0);return _0x3aab5b['sequenceExecute'](_0x143380,_0x3e9f09),_0x420d3e[_0x304485(0x1b4)]({'unitID':_0x293fea,'redoMutations':_0x143380,'undoMutations':_0x29cc64}),!0x0;}},_0x3b255d={'id':'sheet.mutation.update-date-group','type':_0x3aab5b[_0x6daf50(0x2d3)]['MUTATION'],'handler':(_0x5f2398,_0x28d45e)=>{const _0x5078bc=_0x6daf50;if(!_0x28d45e)return!0x1;if(!!_0x5f2398[_0x5078bc(0x393)](_0x3aab5b['IConfigService'])[_0x5078bc(0x3d0)](_0x332892))return!0x0;const {unitId:_0x2001bd,subUnitId:_0x469103,pivotTableId:_0x208f1f,tableFieldId:_0x1789d7,dateType:_0x154fe7}=_0x28d45e,_0x5573a2=_0x5f2398[_0x5078bc(0x393)](_0x271f43[_0x5078bc(0x383)]),_0x19fd0f=_0x5573a2['getPivotTableInstance'](_0x208f1f);if(!_0x19fd0f)return!0x1;const _0x5c9750=_0x19fd0f[_0x5078bc(0x143)](_0x1789d7);if(!_0x5c9750)return!0x1;const _0x4bd3a5=_0x5c9750[_0x5078bc(0x13a)](),_0x277a96=_0x19fd0f[_0x5078bc(0x3ab)](_0x4bd3a5),_0x3b1d29=(_0x277a96==null?void 0x0:_0x277a96['getName']())+'\x20'+_0x59a81c(_0x5f2398,_0x154fe7);_0x5573a2[_0x5078bc(0x34e)](_0x2001bd,_0x208f1f)[_0x5078bc(0x1a8)](_0x5c9750['id'],_0x3b1d29);const _0x1120bd=_0x19fd0f['getTableFieldById'](_0x1789d7);if(!_0x1120bd)return!0x1;_0x19fd0f['renameField'](_0x1120bd['getId'](),_0x3b1d29),_0x5c9750[_0x5078bc(0x1de)](_0x154fe7);const _0x3fdf07=_0x5573a2[_0x5078bc(0x3bd)](_0x2001bd,_0x469103,_0x208f1f);return _0x5573a2[_0x5078bc(0x3f3)]({'unitId':_0x2001bd,'subUnitId':_0x469103,'token':_0x208f1f,'type':_0x1ab225[_0x5078bc(0x149)],'pivotConfig':_0x3fdf07}),!0x0;}},_0x5904e9={'id':_0x6daf50(0x168),'type':_0x3aab5b[_0x6daf50(0x2d3)][_0x6daf50(0x313)],'handler':(_0x284261,_0x534bf2)=>{const _0x22d296=_0x6daf50;if(!_0x534bf2)return!0x1;const _0x38e8f5=_0x284261[_0x22d296(0x393)](_0x3aab5b['IUndoRedoService']),{unitId:_0xbe26e3,subUnitId:_0x51fa65,pivotTableId:_0x24db6b,tableFieldId:_0x36bf6e}=_0x534bf2,_0x14f3c0=[],_0x3b620a=[],_0x43316b=_0x284261[_0x22d296(0x393)](_0x271f43[_0x22d296(0x42c)]),_0x5ef586=_0x43316b[_0x22d296(0x34e)](_0xbe26e3,_0x24db6b),_0x54c157=_0x43316b[_0x22d296(0x3bd)](_0xbe26e3,_0x51fa65,_0x24db6b);if(!(_0x54c157!=null&&_0x54c157[_0x22d296(0x2ca)][_0x22d296(0x165)]))return!0x1;const _0x55a51f=Object[_0x22d296(0x1db)](_0x54c157[_0x22d296(0x2ca)][_0x22d296(0x165)])[_0x22d296(0x184)](_0x3ace65=>_0x3ace65['id']===_0x36bf6e);if(!_0x55a51f)return!0x1;const _0x25200d=_0x55a51f['dataFieldId'];if(!(_0x5ef586!=null&&_0x5ef586[_0x22d296(0x1e5)]))return!0x1;const _0x366d4b=Object[_0x22d296(0x1db)](_0x5ef586==null?void 0x0:_0x5ef586['fields'])[_0x22d296(0x184)](_0x146bd7=>_0x146bd7['id']===_0x25200d);if(!_0x366d4b)return!0x1;_0x5ab2d7[_0x22d296(0x1d0)](_0x366d4b)&&_0x14f3c0[_0x22d296(0x337)]({'id':_0x3b255d['id'],'params':{..._0x534bf2,'dateType':_0x366d4b['dateType']}}),_0x3b620a[_0x22d296(0x337)]({'id':_0x3b255d['id'],'params':{..._0x534bf2}});const _0x1510fc=_0x284261[_0x22d296(0x393)](_0x3aab5b[_0x22d296(0x1f4)]);return _0x3aab5b[_0x22d296(0x38f)](_0x3b620a,_0x1510fc)&&_0x38e8f5[_0x22d296(0x1b4)]({'unitID':_0xbe26e3,'undoMutations':_0x14f3c0,'redoMutations':_0x3b620a}),!0x0;}};var _0x137135=Object[_0x6daf50(0x182)],_0x5d6a36=(_0x472530,_0x20569e,_0x9ab0f1,_0x2a99de)=>{const _0x379cc5=_0x6daf50;for(var _0x255a95=_0x2a99de>0x1?void 0x0:_0x2a99de?_0x137135(_0x20569e,_0x9ab0f1):_0x20569e,_0x374f93=_0x472530[_0x379cc5(0x299)]-0x1,_0x4cac0d;_0x374f93>=0x0;_0x374f93--)(_0x4cac0d=_0x472530[_0x374f93])&&(_0x255a95=_0x4cac0d(_0x255a95)||_0x255a95);return _0x255a95;},_0x258c3e=(_0x52a1ec,_0x18ea29)=>(_0x463d9d,_0x4a776e)=>_0x18ea29(_0x463d9d,_0x4a776e,_0x52a1ec);const _0x2dfd6c=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x1e351e=(_0x1d3f53,_0x1b3479,_0x8e6496)=>{const _0x55c6a7=_0x6daf50,_0x5aa026=_0x1d3f53['dataFieldsCollection'];_0x1d3f53[_0x55c6a7(0x391)](_0x19a35d=>{const _0x48a076=_0x55c6a7,_0x5641f0=_0x19a35d['getId'](),_0x29ddb6=_0x19a35d['getDataFieldId'](),_0x5a1fbf=_0x19a35d[_0x48a076(0x1fd)](),_0x53e90b=_0x19a35d['getDisplayName']();_0x1b3479[_0x29ddb6]&&_0x1b3479[_0x29ddb6]===_0x53e90b&&_0x5a1fbf===_0x53e90b&&(_0x1d3f53['renameField'](_0x5641f0,_0x5aa026[_0x48a076(0x33d)](_0x29ddb6)),_0x19a35d[_0x48a076(0x3d4)](_0x5aa026['getDisplayName'](_0x29ddb6)));}),_0x1d3f53['iterateFieldByArea'](_0x5ab2d7[_0x55c6a7(0x358)]['Value'],_0x39a1e5=>{const _0x41b085=_0x55c6a7,_0x2371be=_0x39a1e5[_0x41b085(0x1cb)](),_0x31225a=_0x39a1e5[_0x41b085(0x261)](),_0x4f3abf=_0x39a1e5[_0x41b085(0x1fd)](),_0x480ba9=_0x39a1e5['getDisplayName'](),_0x5cd62d=_0x39a1e5[_0x41b085(0x19b)](),_0x245d76=_0x8e6496(_0x4f3abf,_0x5cd62d);_0x1b3479[_0x31225a]&&_0x1b3479[_0x31225a]===_0x4f3abf&&_0x245d76===_0x480ba9&&(_0x1d3f53[_0x41b085(0x364)](_0x2371be,_0x8e6496(_0x5aa026[_0x41b085(0x33d)](_0x31225a),_0x5cd62d)),_0x39a1e5[_0x41b085(0x3d4)](_0x5aa026[_0x41b085(0x33d)](_0x31225a)));});},_0x16df2e=(_0x1a5329,_0x5d23b4,_0x5c9acf)=>{const _0x2a9c17=_0x6daf50;var _0xbef4bd,_0x101177;const {arrayFormulaCellData:_0x6c086,unitData:_0x15e1da}=_0x5d23b4,{unitId:_0x10fa75,subUnitId:_0x366917}=_0x5c9acf,_0x439adc=_0x5c9acf[_0x2a9c17(0x235)],{startColumn:_0x14e84e,endColumn:_0x3eab5a}=_0x439adc,_0x4b5541=(_0xbef4bd=_0x6c086==null?void 0x0:_0x6c086[_0x10fa75])==null?void 0x0:_0xbef4bd[_0x366917],_0x380c3d=(_0x101177=_0x15e1da==null?void 0x0:_0x15e1da[_0x10fa75])==null?void 0x0:_0x101177[_0x366917],_0x4fc338=new Set(),_0x48d982=_0x3eab5a-_0x14e84e+0x1,{dirtyRanges:_0x25c8ed}=_0x1a5329;if(_0x25c8ed)for(const {range:_0xdc8169,sheetId:_0x494990,unitId:_0x5b6146}of _0x25c8ed){if(_0x494990!==_0x366917||_0x10fa75!==_0x5b6146)continue;const _0x5946be=_0x3aab5b['Rectangle']['getIntersects'](_0xdc8169,_0x439adc);if(_0x5946be){const {startColumn:_0x448e86,endColumn:_0x24f4cf}=_0x5946be;for(let _0x521d89=_0x448e86;_0x521d89<=_0x24f4cf;_0x521d89++)_0x4fc338[_0x2a9c17(0x34a)](_0x521d89);}}if(_0x4fc338[_0x2a9c17(0x423)]===_0x48d982||_0x4fc338['size']===_0x48d982)return Array['from'](_0x4fc338);if(_0x380c3d){const _0x92706f=_0x380c3d['getMatrix'](),_0x3ec0f9=Object[_0x2a9c17(0x30e)](_0x92706f);for(const _0x16abe5 of _0x3ec0f9){const _0x1a57ad=Number(_0x16abe5),_0x53a392=_0x92706f[_0x1a57ad];if(_0x4fc338[_0x2a9c17(0x423)]===_0x48d982)break;for(const _0x5be054 in _0x53a392){const _0xd1fd77=Number(_0x5be054);_0xd1fd77<_0x14e84e||_0xd1fd77>_0x3eab5a||_0x4fc338[_0x2a9c17(0x34a)](_0xd1fd77);}}}if(_0x4b5541){const _0x1e1215=_0x4b5541[_0x2a9c17(0x122)](),_0x20a4c3=Object['keys'](_0x1e1215);for(const _0x3d4ed4 of _0x20a4c3){const _0x246348=Number(_0x3d4ed4),_0x4dc162=_0x1e1215[_0x246348];if(_0x4fc338[_0x2a9c17(0x423)]===_0x48d982)break;for(const _0x5414fc in _0x4dc162){const _0x3d5288=Number(_0x5414fc);_0x3d5288<_0x14e84e||_0x3d5288>_0x3eab5a||_0x4fc338[_0x2a9c17(0x34a)](_0x3d5288);}}}return Array['from'](_0x4fc338);},_0x9fd165=_0x1dfc76=>{const _0x2e0910=_0x6daf50,_0x4a7859=new Set(),_0x4bdd14=[];for(const _0x53f766 of _0x1dfc76){const _0x9e4c47=_0x53f766[_0x2e0910(0x413)]+','+_0x53f766[_0x2e0910(0x132)]+','+_0x53f766[_0x2e0910(0x352)]+','+_0x53f766[_0x2e0910(0x3e9)];_0x4a7859[_0x2e0910(0x271)](_0x9e4c47)||(_0x4a7859['add'](_0x9e4c47),_0x4bdd14[_0x2e0910(0x337)](_0x53f766));}return _0x4bdd14;};let _0x1ac75c=class extends _0x3aab5b['Disposable']{constructor(_0x1e92a6,_0x25fa66,_0x4a4a5b,_0x5e6dfc,_0xe89c83,_0x4c3f40){const _0x5406e6=_0x6daf50;super(),_0x3f9e42(this,_0x5406e6(0x136),new _0x2b128f[(_0x5406e6(0x20d))](!0x0)),_0x3f9e42(this,_0x5406e6(0x3c5),_0x562fae=>{const _0x51ad9e=_0x5406e6;this[_0x51ad9e(0x136)]['next'](!0x1);}),_0x3f9e42(this,'_globalComputedEndHelpFunc',_0x3fb995=>{const _0x2b7f0c=_0x5406e6;this[_0x2b7f0c(0x136)][_0x2b7f0c(0x3b3)](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x1e92a6,this['_configService']=_0x25fa66,this['_featureCalculationManagerService']=_0x4a4a5b,this['_commandService']=_0x5e6dfc,this[_0x5406e6(0x15c)]=_0xe89c83,this[_0x5406e6(0x408)]=_0x4c3f40,this[_0x5406e6(0x166)](),this['_initPivotDataGetListener']());}[_0x6daf50(0x166)](){const _0x3857b8=_0x6daf50;this[_0x3857b8(0x1d5)](),this['_subjectViewChange'](),this[_0x3857b8(0x3b9)](),this['_subjectFieldsCollectionChange']();}[_0x6daf50(0x3cf)](){const _0x1faa10=_0x6daf50;this[_0x1faa10(0x15c)][_0x1faa10(0x275)](this[_0x1faa10(0x136)]),_0x5ab2d7[_0x1faa10(0x36e)]['registerCallbackWithEvent'](_0x5ab2d7[_0x1faa10(0x268)][_0x1faa10(0x32e)],this[_0x1faa10(0x3c5)]),_0x5ab2d7[_0x1faa10(0x36e)]['registerCallbackWithEvent'](_0x5ab2d7['PivotCallbackEnum']['onQueryEnd'],this[_0x1faa10(0x3ae)]);}[_0x6daf50(0x3e8)](){const _0x261581=_0x6daf50;this[_0x261581(0x137)](this['_commandService']['onCommandExecuted'](_0x5e1b69=>{const _0x48b496=_0x261581;_0x5e1b69['id']===_0x5b84bb[_0x48b496(0x3ca)]['id']&&this['_sheetsPivotDataSourceModel'][_0x48b496(0x3bf)](_0x5e1b69[_0x48b496(0x26b)]);})),this[_0x261581(0x137)](this[_0x261581(0x392)][_0x261581(0x3a3)](_0x3acdd1=>{const _0x543850=_0x261581;if(_0x3acdd1['id']!==_0x549956['id'])return;const _0x597fc7=_0x3acdd1[_0x543850(0x26b)],{unitId:_0x2f599d,subUnitId:_0x2e6e58,pivotTableId:_0x3c6991}=_0x597fc7,_0x124132=_0x597fc7[_0x543850(0x26b)][_0x543850(0x15a)],_0x2b60f7={};switch(_0x124132){case _0x17706b['Filter']:{const _0x38eb0a=_0x597fc7[_0x543850(0x26b)][_0x543850(0x12e)];if(!_0x38eb0a)return;const {row:_0x5ef3a7,col:_0x570303,cellData:_0x1cf0ae,pivotItemRenderInfoCache:_0x174d3f,tableFieldId:_0x29f8c7}=_0x38eb0a,_0x49b795=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x597fc7[_0x543850(0x34d)]);if(!_0x49b795||!_0x174d3f)return;if(_0x29f8c7){const _0x2867ca=_0x49b795['getDataFieldByTableId'](_0x29f8c7);if(!_0x2867ca)return;_0x2b60f7[_0x543850(0x12e)]={..._0x49b795['getDataFieldItemInfo'](_0x2867ca),'tableFieldId':_0x29f8c7,'pivotTableId':_0x597fc7[_0x543850(0x34d)],'filterInfo':_0x49b795['getFilterInfo'](_0x29f8c7),'sortInfo':_0x49b795['getSortInfo'](_0x29f8c7),'format':_0x49b795['getFieldFormat'](_0x29f8c7)};}else{const _0x3cdba9=_0x37a114(_0x5ef3a7,_0x570303,_0x1cf0ae,_0x49b795,_0x174d3f),_0x5a0602=_0x3cdba9==null?void 0x0:_0x3cdba9[_0x543850(0x1d3)];if(!_0x5a0602)return;const _0x263231=_0x49b795[_0x543850(0x143)](_0x5a0602);if(!_0x263231)return;_0x2b60f7[_0x543850(0x12e)]={..._0x49b795[_0x543850(0x1c5)](_0x263231),'tableFieldId':_0x5a0602,'pivotTableId':_0x597fc7[_0x543850(0x34d)],'filterInfo':_0x49b795[_0x543850(0x38c)](_0x5a0602),'sortInfo':_0x49b795[_0x543850(0x36d)](_0x5a0602),'format':_0x49b795[_0x543850(0x3bb)](_0x5a0602)};}}break;case _0x17706b[_0x543850(0x20c)]:{const _0x69a05=_0x597fc7[_0x543850(0x26b)][_0x543850(0x1e8)];if(!_0x69a05)return;const {pivotTableId:_0x3e71d5}=_0x69a05,_0x25fd99=this['_sheetsPivotDataSourceModel'][_0x543850(0x3f8)](_0x3e71d5);if(!_0x25fd99)return;const _0x2b0ce6=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x2f599d,_0x2e6e58,_0x3e71d5),_0x22e2c9=_0x3bc063(_0x25fd99,_0x3e71d5,_0x2b0ce6);_0x2b60f7[_0x543850(0x1e8)]=_0x22e2c9;}break;case _0x17706b['AddPivotField']:{const _0x5e52ef=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991),_0x34593c=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x2f599d),_0x4c07d9=_0x34593c[_0x543850(0x34e)](_0x3c6991);let _0x461037=null;const _0x15b0fc=this[_0x543850(0x35a)][_0x543850(0x3bd)](_0x2f599d,_0x2e6e58,_0x3c6991),_0x3f8921=_0x597fc7['params'][_0x543850(0x429)];if(!_0x5e52ef||!_0x15b0fc||!_0x3f8921)return!0x1;const {dataFieldId:_0x16050e,fieldArea:_0x46a080,index:_0x286228}=_0x3f8921;_0x5e52ef[_0x543850(0x293)]();const _0x1d51d6=_0x5e52ef[_0x543850(0x187)](_0x16050e,_0x46a080,_0x286228);if(_0x1d51d6&&_0x46a080===_0x5ab2d7[_0x543850(0x358)][_0x543850(0x338)]){const _0x7d17a9=_0x1d51d6[_0x543850(0x1cb)](),_0x2ab326=_0x5e52ef[_0x543850(0x143)](_0x7d17a9);if(_0x2ab326){const _0x465779=_0x2ab326==null?void 0x0:_0x2ab326[_0x543850(0x2f5)]();_0x5e52ef[_0x543850(0x1f7)](_0x1d51d6[_0x543850(0x1cb)](),_0x465779===_0x5ab2d7[_0x543850(0x308)]['number']?_0x5ab2d7[_0x543850(0x14d)][_0x543850(0x31f)]:_0x5ab2d7[_0x543850(0x14d)][_0x543850(0x3f2)]);}const _0x10713e=_0x5e52ef[_0x543850(0x15e)](),_0x523eb7=_0x5e52ef[_0x543850(0x17b)](),_0x1adb8d=_0x5e52ef[_0x543850(0x157)](_0x5ab2d7[_0x543850(0x358)][_0x543850(0x338)]);if(_0x10713e===-0x1&&_0x1adb8d>0x1){const _0x468d45=_0x523eb7===_0x5ab2d7['PivotTableValuePositionEnum'][_0x543850(0x375)]?_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x1f1)]:_0x523eb7,_0x3d1eff=_0x468d45===_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x2f7)]?_0x5ab2d7[_0x543850(0x358)][_0x543850(0x2f7)]:_0x5ab2d7[_0x543850(0x358)][_0x543850(0x1f1)];_0x5e52ef['updateValuePosition'](_0x468d45,_0x5e52ef['getFieldCountByArea'](_0x3d1eff));}}else{if(_0x1d51d6&&(_0x46a080===_0x5ab2d7['PivotTableFiledAreaEnum'][_0x543850(0x2f7)]||_0x46a080===_0x5ab2d7['PivotTableFiledAreaEnum'][_0x543850(0x1f1)])){const _0x17ea37=_0x1d51d6[_0x543850(0x1cb)](),_0x1ff40b=_0x5e52ef[_0x543850(0x143)](_0x17ea37);if(_0x1ff40b&&(_0x1ff40b==null?void 0x0:_0x1ff40b[_0x543850(0x2f5)]())===_0x5ab2d7[_0x543850(0x308)][_0x543850(0x22b)]){const _0x58e1a2=_0x1ff40b[_0x543850(0x3ed)]();if(_0x58e1a2&&_0x5e52ef['setFieldFormat'](_0x1d51d6[_0x543850(0x1cb)](),_0x58e1a2),!_0x4c07d9[_0x543850(0x221)]()['some'](_0x36e9b4=>{const _0xbcf4a1=_0x543850,_0x1683ef=_0x4c07d9[_0xbcf4a1(0x1dd)](_0x36e9b4);return _0x5ab2d7[_0xbcf4a1(0x3dd)](_0x1683ef)?_0x1683ef[_0xbcf4a1(0x1c6)]()[_0xbcf4a1(0x164)]===_0x16050e:!0x1;})){const _0x112f90=_0x34593c[_0x543850(0x14c)](),_0x10467a=_0x2752ed(_0x1ff40b[_0x543850(0x43c)],_0x1ff40b[_0x543850(0x195)]),_0x7cc8b7=_0x1ff40b[_0x543850(0x31d)]()+_0x543850(0x40d)+_0x59a81c(this[_0x543850(0x408)],_0x10467a),_0x1962d2=new _0x5ab2d7['DateGroupField'](_0x112f90,_0x7cc8b7,_0x5ab2d7[_0x543850(0x329)](0x3),_0x1ff40b[_0x543850(0x1cb)](),_0x10467a);_0x34593c[_0x543850(0x1cd)](_0x1962d2),_0x4c07d9[_0x543850(0x1e2)](_0x112f90,_0x7cc8b7),_0x5e52ef[_0x543850(0x187)](_0x112f90,_0x46a080,(_0x286228!=null?_0x286228:0x0)+0x1),_0x461037=_0x1962d2;}}}}const _0xa97b3f=_0x5e52ef[_0x543850(0x37d)](),_0x2e15bc=_0x5e52ef[_0x543850(0x150)]()[_0x543850(0x24a)]();let _0x4e3403;if(_0x461037){_0x4e3403=_0x461037[_0x543850(0x24a)]();const _0x610ddb=_0x461037[_0x543850(0x1cb)]();_0x4c07d9[_0x543850(0x1f3)](_0x610ddb);let _0x5d94e0=!0x0;for(const _0x57c83c in _0x34593c[_0x543850(0x1e7)])if(_0x34593c[_0x543850(0x1e7)][_0x57c83c][_0x543850(0x221)]()[_0x543850(0x1cc)](_0x610ddb)){_0x5d94e0=!0x1;break;}_0x5d94e0&&_0x34593c['deleteDataField'](_0x610ddb);}const _0x5e4b00=_0x5e52ef[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x429)]={'view':_0x2e15bc,'changesets':_0x5e4b00,'isEmpty':_0xa97b3f,'pivotTableConfig':_0x15b0fc,'shouldBeAddedGroupJSON':_0x4e3403};}break;case _0x17706b[_0x543850(0x2f0)]:{const _0x25abf0=_0x597fc7['params']['addPivotTable'];if(!_0x25abf0)return;const _0x2802bb=_0x25abf0[_0x543850(0x133)],_0x5c7dd7=_0x25abf0[_0x543850(0x34d)],{collection:_0x4064ab}=this[_0x543850(0x35a)][_0x543850(0x29a)]({'unitId':_0x2802bb[_0x543850(0x3ba)],'sheetName':_0x2802bb[_0x543850(0x35c)],'subUnitId':_0x2802bb[_0x543850(0x3af)],'range':_0x2802bb[_0x543850(0x235)]}),_0x4ea777=new _0x5ab2d7[(_0x543850(0x36e))](_0x4064ab,void 0x0,_0x5c7dd7),_0x45f2fa=_0x4ea777[_0x543850(0x150)](),_0x44f8a1=_0x4ea777[_0x543850(0x24a)](),_0x3436bb=_0x4064ab[_0x543850(0x24a)]();_0x2b60f7['addPivotTable']={'view':_0x45f2fa,'fieldsConfig':_0x44f8a1,'collectionConfig':_0x3436bb,'isEmpty':_0x4ea777[_0x543850(0x37d)]()};}break;case _0x17706b[_0x543850(0x17f)]:{const _0x411633=_0x597fc7[_0x543850(0x26b)][_0x543850(0x13f)];if(!_0x411633)return;const {fieldId:_0x48e7f2,area:_0x54fab3,index:_0xe9189}=_0x411633,_0x49bace=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x49bace)return;const _0x5f4611=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991);if(!_0x5f4611)return;_0x5f4611[_0x543850(0x293)]();const {area:_0x3573f7,index:_0xf4fa3e}=_0x5f4611[_0x543850(0x22f)](_0x48e7f2);if(_0x5f4611['updateFieldPosition'](_0x48e7f2,_0x54fab3,_0xe9189),_0x54fab3===_0x5ab2d7[_0x543850(0x358)][_0x543850(0x338)]&&_0x5f4611[_0x543850(0x414)](_0x48e7f2)[_0x543850(0x19b)]()===void 0x0){const _0x1646b1=_0x5f4611[_0x543850(0x414)](_0x48e7f2);if(_0x1646b1&&_0x1646b1['getSubtotal']()===void 0x0){const _0xcccd6b=_0x5f4611[_0x543850(0x143)](_0x48e7f2);if(_0xcccd6b){const _0x557b78=_0xcccd6b==null?void 0x0:_0xcccd6b[_0x543850(0x2f5)]();_0x5f4611[_0x543850(0x1f7)](_0x48e7f2,_0x557b78===_0x5ab2d7['PivotDataFieldDataTypeEnum']['number']?_0x5ab2d7[_0x543850(0x14d)][_0x543850(0x31f)]:_0x5ab2d7[_0x543850(0x14d)][_0x543850(0x3f2)]);}}}const _0x2e3110=_0x5f4611[_0x543850(0x17b)](),_0x33f9b1=_0x5f4611[_0x543850(0x15e)](),_0x225a11=_0x5f4611[_0x543850(0x157)](_0x5ab2d7[_0x543850(0x358)]['Value'])>0x1;if(_0x225a11&&_0x3573f7===_0x54fab3&&(_0x54fab3===_0x5ab2d7[_0x543850(0x358)][_0x543850(0x2f7)]&&_0x2e3110===_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x2f7)]||_0x54fab3===_0x5ab2d7[_0x543850(0x358)]['Column']&&_0x2e3110===_0x5ab2d7['PivotTableValuePositionEnum'][_0x543850(0x1f1)])){let _0x1145ac=_0x33f9b1;_0xf4fa3e<=_0x33f9b1&&_0x1145ac--,_0xe9189<=_0x33f9b1&&_0x1145ac++,_0x5f4611[_0x543850(0x348)](_0x2e3110,_0x1145ac);}else _0x225a11&&(_0x3573f7===_0x5ab2d7['PivotTableFiledAreaEnum'][_0x543850(0x2f7)]&&_0x2e3110===_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x2f7)]||_0x3573f7===_0x5ab2d7[_0x543850(0x358)][_0x543850(0x1f1)]&&_0x2e3110===_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x1f1)])&&_0x33f9b1>=_0xf4fa3e&&_0x5f4611[_0x543850(0x348)](_0x2e3110,_0x33f9b1-0x1),_0x225a11&&(_0x54fab3===_0x5ab2d7[_0x543850(0x358)][_0x543850(0x2f7)]&&_0x2e3110===_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x2f7)]||_0x54fab3===_0x5ab2d7[_0x543850(0x358)]['Column']&&_0x2e3110===_0x5ab2d7[_0x543850(0x12f)][_0x543850(0x1f1)])&&_0x33f9b1>=_0xe9189&&_0x5f4611[_0x543850(0x348)](_0x2e3110,_0x33f9b1+0x1);const _0x2a86bf=_0x5f4611['query'](),_0x1a0e2e=_0x5f4611['isEmpty'](),_0x465543=_0x5f4611[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x13f)]={'view':_0x2a86bf[_0x543850(0x24a)](),'changesets':_0x465543,'isEmpty':_0x1a0e2e,'pivotTableConfig':_0x49bace};}break;case _0x17706b['RemovePivotField']:{const _0x57063b=_0x597fc7[_0x543850(0x26b)][_0x543850(0x1ce)];if(!_0x57063b)return;const _0x3ce1ba=_0x57063b[_0x543850(0x401)],_0x449c09=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x449c09)return!0x1;const _0x348fd4=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991);if(!_0x348fd4)return!0x1;_0x348fd4['startCollectChangeset']();for(const _0x2567b7 of _0x3ce1ba){const {area:_0x4e6127}=_0x348fd4['getFieldPositionInfoById'](_0x2567b7);_0x4e6127===_0x5ab2d7['PivotTableFiledAreaEnum'][_0x543850(0x338)]&&_0x348fd4['removeValueFilterInfoByValueFieldId'](_0x2567b7),(_0x4e6127===_0x5ab2d7[_0x543850(0x358)]['Row']||_0x4e6127===_0x5ab2d7['PivotTableFiledAreaEnum']['Column'])&&_0x348fd4['removeValueFilterInfo'](_0x2567b7),_0x348fd4[_0x543850(0x31a)](_0x2567b7);}const _0x2d9a2f=_0x348fd4['isEmpty'](),_0x450554=_0x348fd4[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x3fd2fc=_0x348fd4[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x1ce)]={'changesets':_0x3fd2fc,'pivotTableConfig':_0x449c09,'isEmpty':_0x2d9a2f,'view':_0x450554};}break;case _0x17706b['SetPivotFilter']:{const _0x5b5710=_0x597fc7['params']['setPivotFilter'];if(!_0x5b5710)return;const {tableFieldId:_0x16a193,items:_0x105f7a,isAll:_0x4bf02c}=_0x5b5710,_0x3ee224=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991),_0x3a1745=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x3ee224||!_0x3a1745)return;_0x3ee224[_0x543850(0x293)](),_0x3ee224['setLabelFilterInfo'](_0x16a193,{'type':_0x5ab2d7[_0x543850(0x397)]['ManualFilter'],'list':_0x105f7a,'isAll':_0x4bf02c});const _0x30da28=_0x3ee224[_0x543850(0x37d)](),_0x39b0c7=_0x3ee224[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x4a504f=_0x3ee224[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x142)]={'view':_0x39b0c7,'changesets':_0x4a504f,'isEmpty':_0x30da28,'pivotTableConfig':_0x3a1745};}break;case _0x17706b[_0x543850(0x339)]:{const _0x5eaf5f=_0x597fc7[_0x543850(0x26b)][_0x543850(0x349)];if(!_0x5eaf5f)return;const {tableFieldId:_0x5411b7,filterInfo:_0x5a103d}=_0x5eaf5f,_0x622f83=this['_sheetsPivotDataSourceModel'][_0x543850(0x3f8)](_0x3c6991),_0x569c80=this[_0x543850(0x35a)][_0x543850(0x3bd)](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x622f83||!_0x569c80)return;_0x622f83[_0x543850(0x293)](),_0x622f83[_0x543850(0x206)](_0x5411b7,_0x5a103d);const _0x288f1e=_0x622f83['isEmpty'](),_0x451534=_0x622f83[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x2bfd94=_0x622f83['endCollectChangeset']();_0x2b60f7[_0x543850(0x349)]={'view':_0x451534,'changesets':_0x2bfd94,'isEmpty':_0x288f1e,'pivotTableConfig':_0x569c80};}break;case _0x17706b[_0x543850(0x295)]:{const _0x19d476=_0x597fc7['params']['setPivotSort'];if(!_0x19d476)return;const {tableFieldId:_0xc6b86e,info:_0x1e4d74}=_0x19d476,_0x5b703b=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x3c6991),_0x3ff0c8=this[_0x543850(0x35a)][_0x543850(0x3bd)](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x5b703b||!_0x3ff0c8)return;_0x5b703b[_0x543850(0x293)](),_0x5b703b[_0x543850(0x1ca)](_0xc6b86e,_0x1e4d74);const _0xf664c1=_0x5b703b[_0x543850(0x37d)](),_0x750f8c=_0x5b703b['query']()[_0x543850(0x24a)](),_0x5a8a0e=_0x5b703b[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x29d)]={'view':_0x750f8c,'changesets':_0x5a8a0e,'isEmpty':_0xf664c1,'pivotTableConfig':_0x3ff0c8};}break;case _0x17706b[_0x543850(0x191)]:{const _0x2842e5=_0x597fc7[_0x543850(0x26b)][_0x543850(0x437)];if(!_0x2842e5)return;const {tableFieldId:_0x59394e,displayName:_0x25d5f0,subtotalType:_0x1a4c6a,format:_0x168279}=_0x2842e5,_0x4dd761=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991),_0x4c3ea3=this[_0x543850(0x35a)][_0x543850(0x3bd)](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x4dd761||!_0x4c3ea3)return;_0x4dd761[_0x543850(0x293)](),_0x25d5f0!==void 0x0&&_0x4dd761['renameField'](_0x59394e,_0x25d5f0),_0x1a4c6a!==void 0x0&&_0x4dd761['setSubtotalType'](_0x59394e,_0x1a4c6a),_0x168279!==void 0x0&&_0x4dd761[_0x543850(0x16d)](_0x59394e,_0x168279);const _0x4feee8=_0x4dd761['isEmpty'](),_0x4b3c8f=_0x4dd761[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x21ab5d=_0x4dd761[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x437)]={'changesets':_0x21ab5d,'pivotTableConfig':_0x4c3ea3,'isEmpty':_0x4feee8,'view':_0x4b3c8f};}break;case _0x17706b[_0x543850(0x41c)]:{const _0x3b1916=_0x597fc7['params'][_0x543850(0x17d)];if(!_0x3b1916)return;const {dataRangeInfo:_0x4f1c17,unitId:_0x4cf18c,subUnitId:_0x2e6bc9}=_0x3b1916,_0x1c25ae=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x4cf18c,_0x2e6bc9,_0x3c6991),_0x28545e=this[_0x543850(0x35a)]['getPivotTableInstance'](_0x3c6991);if(!this[_0x543850(0x35a)][_0x543850(0x34e)](_0x4cf18c,_0x3c6991)||!_0x28545e||!_0x1c25ae)return;const _0x34b02e=this[_0x543850(0x35a)][_0x543850(0x40f)](_0x4cf18c,_0x3c6991,_0x4f1c17),_0x1a714f=this[_0x543850(0x35a)][_0x543850(0x34e)](_0x4cf18c,_0x3c6991)[_0x543850(0x24a)](),{collection:_0x1afd4d}=this[_0x543850(0x35a)][_0x543850(0x29a)]({'unitId':_0x4f1c17[_0x543850(0x3ba)],'sheetName':_0x4f1c17[_0x543850(0x35c)],'subUnitId':_0x4f1c17['subUnitId'],'range':_0x4f1c17['range']}),_0x482b8b=_0x1afd4d[_0x543850(0x24a)]();_0x28545e[_0x543850(0x293)]();const _0x578bae=this[_0x543850(0x35a)][_0x543850(0x428)](_0x4cf18c)[_0x543850(0x367)]()||_0x5ab2d7['getAutoDisplayName'];_0x28545e[_0x543850(0x32a)](_0x189c51=>{const _0x5c93a1=_0x543850,_0x16de9e=_0x189c51['getDataFieldId']();if(!_0x1afd4d[_0x5c93a1(0x2f6)](_0x16de9e)){const _0x230993=_0x1afd4d[_0x5c93a1(0x1ed)](_0x189c51['getSourceName']());if(_0x230993){_0x28545e[_0x5c93a1(0x357)](_0x189c51[_0x5c93a1(0x1cb)](),_0x230993['getName'](),_0x230993[_0x5c93a1(0x1cb)]());const {area:_0x4693c8}=_0x28545e[_0x5c93a1(0x22f)](_0x189c51[_0x5c93a1(0x1cb)]());let _0x121cfb=_0x189c51[_0x5c93a1(0x1fd)]();const _0xe9096c=_0x189c51[_0x5c93a1(0x33d)]();if(_0x4693c8===_0x5ab2d7[_0x5c93a1(0x358)][_0x5c93a1(0x338)]){const _0x496c75=_0x189c51['getSubtotal']();_0x121cfb=_0x578bae(_0x230993[_0x5c93a1(0x31d)](),_0x496c75);}_0xe9096c!==_0x121cfb&&_0x28545e['renameField'](_0x189c51[_0x5c93a1(0x1cb)](),_0x121cfb);}else _0x28545e[_0x5c93a1(0x31a)](_0x189c51[_0x5c93a1(0x1cb)]());}});const _0x2183d4=_0x28545e[_0x543850(0x37d)](),_0x42452d=_0x28545e[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x572243=_0x28545e[_0x543850(0x16e)]();_0x2b60f7['updatePivotSource']={'view':_0x42452d,'changesets':_0x572243,'isEmpty':_0x2183d4,'pivotTableConfig':_0x1c25ae,'collectionConfig':_0x482b8b,'oldCollectionConfig':_0x1a714f,'deleteIds':_0x34b02e};}break;case _0x17706b[_0x543850(0x42e)]:{const _0x4b823a=_0x597fc7['params']['updateValuePosition'];if(!_0x4b823a)return;const {position:_0x7f348a,index:_0x92154b}=_0x4b823a,_0x2e0233=this['_sheetsPivotDataSourceModel'][_0x543850(0x3bd)](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x2e0233)return!0x1;const _0xcf494c=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991);if(!_0xcf494c)return!0x1;_0xcf494c[_0x543850(0x293)](),_0xcf494c['updateValuePosition'](_0x7f348a,_0x92154b);const _0x23f75f=_0xcf494c[_0x543850(0x37d)](),_0x4de8cc=_0xcf494c[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x2ec03e=_0xcf494c[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x348)]={'changesets':_0x2ec03e,'pivotTableConfig':_0x2e0233,'isEmpty':_0x23f75f,'view':_0x4de8cc};}break;case _0x17706b[_0x543850(0x2e8)]:{const _0x4d5d8e=_0x597fc7['params'][_0x543850(0x260)];if(!_0x4d5d8e)return;const {tableFieldId:_0x2cb633,collapse:_0x1f9abb,item:_0xfa0786}=_0x4d5d8e,_0x4edf61=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991),_0x137bb1=this[_0x543850(0x35a)][_0x543850(0x3bd)](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x4edf61||!_0x137bb1)return;_0x4edf61[_0x543850(0x293)](),_0x4edf61['setCollapse'](_0x2cb633,_0x1f9abb,_0xfa0786);const _0x168698=_0x4edf61[_0x543850(0x37d)](),_0x736b46=_0x4edf61[_0x543850(0x150)]()[_0x543850(0x24a)](),_0x1eab63=_0x4edf61['endCollectChangeset']();_0x2b60f7[_0x543850(0x260)]={'view':_0x736b46,'isEmpty':_0x168698,'pivotTableConfig':_0x137bb1,'changesets':_0x1eab63};}break;case _0x17706b[_0x543850(0x25c)]:{const _0x2b650f=_0x597fc7[_0x543850(0x26b)]['setPivotTableConfig'];if(!_0x2b650f)return;const {pivotTableConfig:_0x478b83}=_0x2b650f,_0x3f70b9=this['_sheetsPivotDataSourceModel'][_0x543850(0x3f8)](_0x3c6991),_0x1ed081=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x3f70b9||!_0x1ed081)return;_0x3f70b9[_0x543850(0x293)](),_0x1d0768(_0x3f70b9,_0x478b83);const _0x4b33ed=_0x3f70b9[_0x543850(0x37d)](),_0x5de48f=_0x3f70b9[_0x543850(0x150)]()['toJSON'](),_0x17eb98=_0x3f70b9[_0x543850(0x16e)]();_0x2b60f7[_0x543850(0x369)]={'view':_0x5de48f,'isEmpty':_0x4b33ed,'pivotTableConfig':{..._0x1ed081,'fieldsConfig':_0x3f70b9[_0x543850(0x24a)]()},'changesets':_0x17eb98};}break;case _0x17706b[_0x543850(0x156)]:{const _0x3a6a20=_0x597fc7[_0x543850(0x26b)][_0x543850(0x373)];if(!_0x3a6a20)return;const _0x370b23=this[_0x543850(0x35a)][_0x543850(0x3f8)](_0x3c6991),_0x5cd35c=this[_0x543850(0x35a)]['getPivotTableConfig'](_0x2f599d,_0x2e6e58,_0x3c6991);if(!_0x370b23||!_0x5cd35c)return;_0x370b23['startCollectChangeset'](),_0x22f4ff(_0x370b23,_0x3a6a20[_0x543850(0x405)]);const _0x1b46d5=_0x370b23[_0x543850(0x150)]()['toJSON'](),_0x4aaa15=_0x370b23['endCollectChangeset']();_0x2b60f7['resetPivotTable']={'view':_0x1b46d5,'isEmpty':!0x0,'pivotTableConfig':{..._0x5cd35c,'fieldsConfig':_0x370b23['toJSON']()},'changesets':_0x4aaa15};}break;case _0x17706b[_0x543850(0x346)]:{const _0x3166bd=_0x597fc7[_0x543850(0x26b)][_0x543850(0x2be)];if(!_0x3166bd)return;const _0x484aae=_0x3166bd[_0x543850(0x133)],_0x540736=_0x3166bd[_0x543850(0x34d)],{collection:_0xe68004}=this[_0x543850(0x35a)][_0x543850(0x29a)]({'unitId':_0x484aae[_0x543850(0x3ba)],'sheetName':_0x484aae[_0x543850(0x35c)],'subUnitId':_0x484aae[_0x543850(0x3af)],'range':_0x484aae['range']}),_0x179fb3=new _0x5ab2d7[(_0x543850(0x36e))](_0xe68004,void 0x0,_0x540736),_0x42f12f=_0xe68004['getFieldIds'](),{rows:_0x3f86fe,columns:_0x2afb7a,filters:_0x5eec18,values:_0xa0c9f3}=_0x3166bd[_0x543850(0x332)];_0x179fb3[_0x543850(0x293)]();for(const {field:_0x81aad0,selectedItems:_0x446444}of _0x3f86fe||[]){const _0x1fd45a=_0x42f12f[_0x81aad0];if(_0x1fd45a){const _0x41de82=_0x179fb3[_0x543850(0x187)](_0x1fd45a,_0x5ab2d7['PivotTableFiledAreaEnum']['Row']);_0x446444&&_0x41de82&&_0x179fb3[_0x543850(0x258)](_0x41de82[_0x543850(0x1cb)](),{'type':_0x5ab2d7['PivotFilterTypeEnum'][_0x543850(0x1ea)],'list':_0x446444,'isAll':!0x1});}}for(const {field:_0x1a07ab,selectedItems:_0x5a407d}of _0x2afb7a||[]){const _0x59f620=_0x42f12f[_0x1a07ab];if(_0x59f620){const _0x23c4e1=_0x179fb3[_0x543850(0x187)](_0x59f620,_0x5ab2d7[_0x543850(0x358)][_0x543850(0x1f1)]);_0x5a407d&&_0x23c4e1&&_0x179fb3['setLabelFilterInfo'](_0x23c4e1['getId'](),{'type':_0x5ab2d7[_0x543850(0x397)][_0x543850(0x1ea)],'list':_0x5a407d,'isAll':!0x1});}}for(const {field:_0x40dab8,selectedItems:_0x3b86d0}of _0x5eec18||[]){const _0x3d28b8=_0x42f12f[_0x40dab8];if(_0x3d28b8){const _0x109258=_0x179fb3[_0x543850(0x187)](_0x3d28b8,_0x5ab2d7[_0x543850(0x358)]['Filter']);_0x3b86d0&&_0x109258&&_0x179fb3[_0x543850(0x258)](_0x109258[_0x543850(0x1cb)](),{'type':_0x5ab2d7[_0x543850(0x397)][_0x543850(0x1ea)],'list':_0x3b86d0,'isAll':!0x1});}}for(const {field:_0x4d13bc,subTotalType:_0x15989a,formatString:_0x407fe1}of _0xa0c9f3||[]){const _0x15a8da=_0xe68004[_0x543850(0x1dd)](_0x42f12f[_0x4d13bc]);if(!_0x15a8da)continue;const _0x3d179d=_0x42f12f[_0x4d13bc];if(_0x3d179d){const _0x3d5384=_0x179fb3[_0x543850(0x187)](_0x3d179d,_0x5ab2d7[_0x543850(0x358)][_0x543850(0x338)]);if(_0x3d5384){if(_0x15989a!==void 0x0){_0x179fb3[_0x543850(0x1f7)](_0x3d5384[_0x543850(0x1cb)](),_0x15989a);const _0x2eb53f=this[_0x543850(0x35a)]['getDataFieldManager'](_0x484aae[_0x543850(0x3ba)])['getAutoDisplayNameFunction']()||_0x5ab2d7[_0x543850(0x18f)],_0x10d6f8=_0xe68004[_0x543850(0x33d)](_0x3d179d),_0x4f0356=_0x2eb53f(_0x10d6f8,_0x15989a);_0x179fb3[_0x543850(0x364)](_0x3d5384[_0x543850(0x1cb)](),_0x4f0356);}else{if(_0x15a8da){const _0x31c9=_0x15a8da==null?void 0x0:_0x15a8da[_0x543850(0x2f5)]();_0x179fb3[_0x543850(0x1f7)](_0x3d5384['getId'](),_0x31c9===_0x5ab2d7[_0x543850(0x308)][_0x543850(0x234)]?_0x5ab2d7[_0x543850(0x14d)]['sum']:_0x5ab2d7['PivotSubtotalTypeEnum'][_0x543850(0x3f2)]);}}_0x407fe1&&_0x179fb3[_0x543850(0x16d)](_0x3d5384[_0x543850(0x1cb)](),_0x407fe1);}}}const _0x1a548c=_0x179fb3[_0x543850(0x150)](),_0x49de31=_0x179fb3['toJSON'](),_0x37c640=_0x179fb3[_0x543850(0x37d)](),_0x5f349b=_0x179fb3[_0x543850(0x16e)](),_0x3fddbd=_0xe68004[_0x543850(0x24a)]();_0x2b60f7['addPivotTableWithConfig']={'view':_0x1a548c,'fieldsConfig':_0x49de31,'collectionConfig':_0x3fddbd,'isEmpty':_0x37c640,'changesets':_0x5f349b};}break;case _0x17706b[_0x543850(0x347)]:{const _0x1e3703=_0x1f7c8b(this[_0x543850(0x408)],_0x597fc7);if(!_0x1e3703)return;const {range:_0x1cb2e1,sourceSubUnitId:_0x39d318,sourceUnitId:_0x3d092e,formatMap:_0x5b5a3d,indexes:_0x39b2ae}=_0x1e3703;_0x2b60f7['drillDown']={'range':_0x1cb2e1,'sourceSubUnitId':_0x39d318,'sourceUnitId':_0x3d092e,'formatMap':_0x5b5a3d,'indexes':_0x39b2ae};}break;}this[_0x543850(0x392)][_0x543850(0x2ec)](_0x1af275['id'],{'version':_0x597fc7[_0x543850(0x2c8)],'result':_0x2b60f7},{'onlyLocal':!0x0});}));}[_0x6daf50(0x3b9)](){const _0x5d36cd=_0x6daf50;this[_0x5d36cd(0x137)](this['_commandService'][_0x5d36cd(0x3a3)](_0x35f212=>{const _0x30e26f=_0x5d36cd;if(_0x35f212['id']!==_0x3db2ca['id'])return;const _0x3d7cc8=_0x35f212['params'];return this[_0x30e26f(0x35a)][_0x30e26f(0x37c)](_0x3d7cc8[_0x30e26f(0x2e4)]),!0x0;}));}[_0x6daf50(0x1d5)](){const _0x49156a=_0x6daf50;this[_0x49156a(0x35a)]['collectionChange$'][_0x49156a(0x236)](_0x391cb4=>{const _0x2c2c16=_0x49156a;switch(_0x391cb4['type']){case _0x284237[_0x2c2c16(0x34a)]:_0x391cb4[_0x2c2c16(0x14b)]&&_0x391cb4[_0x2c2c16(0x233)]&&this['handleSourceRangeChange'](_0x391cb4[_0x2c2c16(0x402)],_0x391cb4[_0x2c2c16(0x14b)],_0x391cb4[_0x2c2c16(0x233)]);break;case _0x284237['delete']:{const {unitId:_0x5dbdae,subUnitId:_0x43f7d8,token:_0x2b7eca}=_0x391cb4;_0x5dbdae&&_0x43f7d8&&_0x2b7eca&&this[_0x2c2c16(0x39d)](_0x5dbdae,_0x43f7d8,_0x2b7eca);}break;case _0x284237[_0x2c2c16(0x28c)]:{const {token:_0x2bf220,oldSourceRangeInfo:_0x192ad3,dataRangeInfo:_0x412052,targetCellInfo:_0x37ed50}=_0x391cb4,{unitId:_0x1cb7e1,subUnitId:_0x141469}=_0x192ad3||{};_0x1cb7e1&&_0x141469&&_0x2bf220&&this[_0x2c2c16(0x39d)](_0x1cb7e1,_0x141469,_0x2bf220),_0x412052&&_0x37ed50&&this[_0x2c2c16(0x365)](_0x2bf220,_0x412052,_0x37ed50);}break;}});}[_0x6daf50(0x242)](){const _0x530515=_0x6daf50;this[_0x530515(0x35a)][_0x530515(0x24f)][_0x530515(0x236)](_0x1b6789=>{const _0x727b9=_0x530515;Object[_0x727b9(0x30e)](_0x1b6789)[_0x727b9(0x3d8)](_0x40e2b3=>{const _0x37a8e2=_0x727b9,_0x443380=this[_0x37a8e2(0x35a)][_0x37a8e2(0x360)](_0x40e2b3);if(_0x443380){const _0x18f85b=this[_0x37a8e2(0x35a)][_0x37a8e2(0x3bd)](_0x443380==null?void 0x0:_0x443380[_0x37a8e2(0x3ba)],_0x443380==null?void 0x0:_0x443380[_0x37a8e2(0x3af)],_0x40e2b3);_0x18f85b&&(this[_0x37a8e2(0x365)](_0x40e2b3,_0x18f85b[_0x37a8e2(0x133)],_0x18f85b['targetCellInfo']),this[_0x37a8e2(0x399)]([{'unitId':_0x443380[_0x37a8e2(0x3ba)],'subUnitId':_0x443380[_0x37a8e2(0x3af)],'token':_0x40e2b3}]));}});});}[_0x6daf50(0x2c6)](){const _0x4a4247=_0x6daf50;this[_0x4a4247(0x35a)][_0x4a4247(0x18a)][_0x4a4247(0x236)](_0x3052c1=>{const {unitId:_0xf72868,subUnitId:_0x50e06a,pivotTableId:_0x543e87}=_0x3052c1;_0xf72868&&_0x50e06a&&_0x543e87&&this['triggerDirtyFeature']([{'unitId':_0xf72868,'subUnitId':_0x50e06a,'token':_0x543e87}]);});}[_0x6daf50(0x399)](_0x36612a){const _0x2e9aa4=_0x6daf50,_0x40d534={};_0x36612a[_0x2e9aa4(0x3d8)](_0x40964f=>{var _0x6dc587,_0x365e70;const {unitId:_0x416302,subUnitId:_0x402205,token:_0x39abaf}=_0x40964f;_0x40d534[_0x416302]=(_0x6dc587=_0x40d534[_0x416302])!=null?_0x6dc587:{},_0x40d534[_0x416302][_0x402205]=(_0x365e70=_0x40d534[_0x416302][_0x402205])!=null?_0x365e70:{},_0x40d534[_0x416302][_0x402205][_0x39abaf]=!0x0;}),this[_0x2e9aa4(0x392)][_0x2e9aa4(0x2ec)](_0x326fd6['id'],_0x40d534);}[_0x6daf50(0x39d)](_0x19a272,_0x579fb4,_0x2f48c8){const _0x16ba04=_0x6daf50;this[_0x16ba04(0x2a8)][_0x16ba04(0x21b)](_0x19a272,_0x579fb4,[_0x2f48c8]);}[_0x6daf50(0x365)](_0xa71adf,_0x2e5d28,_0xff7033){const _0x1f4508=_0x6daf50,{unitId:_0x4350b6,subUnitId:_0x46e6b3}=_0x2e5d28;this['_featureCalculationManagerService'][_0x1f4508(0x271)](_0xff7033[_0x1f4508(0x3ba)],_0xff7033[_0x1f4508(0x3af)],_0xa71adf)&&this[_0x1f4508(0x39d)](_0x4350b6,_0x46e6b3,_0xa71adf);const _0x6689b3={'sheetId':_0x46e6b3,..._0x2e5d28};this[_0x1f4508(0x2a8)][_0x1f4508(0x386)](_0xff7033[_0x1f4508(0x3ba)],_0xff7033[_0x1f4508(0x3af)],_0xa71adf,{'unitId':_0xff7033[_0x1f4508(0x3ba)],'subUnitId':_0xff7033[_0x1f4508(0x3af)],'dependencyRanges':[_0x6689b3],'getDirtyData':(_0x2a690b,_0x38efa3)=>{const _0x40a876=_0x1f4508,_0x3902e9=this[_0x40a876(0x35a)],_0x54da6f=_0x3902e9[_0x40a876(0x360)](_0xa71adf);if(!_0x54da6f)return _0x2dfd6c();const {unitId:_0x2a1852,subUnitId:_0x590a1d}=_0x54da6f,_0x507310=_0x16df2e(_0x2a690b,_0x38efa3,_0x2e5d28);if(_0x507310[_0x40a876(0x299)]>0x0){const _0x29e87e=_0x3902e9[_0x40a876(0x34e)](_0x4350b6,_0xa71adf),_0x33a84b=_0x29e87e[_0x40a876(0x221)](),_0x231f33=this[_0x40a876(0x24c)](_0x2e5d28['unitId'],_0x2e5d28['subUnitId'],_0x38efa3),_0x483743={},_0x25ab33=this['_sheetsPivotDataSourceModel'][_0x40a876(0x428)](_0x2a1852)[_0x40a876(0x367)]()||_0x5ab2d7['getAutoDisplayName'],_0x371ab9=[];for(const _0x4a6836 of _0x507310){const _0x5e368f=_0x4a6836-(_0x2e5d28[_0x40a876(0x235)][_0x40a876(0x352)]||0x0),_0x36af16=_0x33a84b[_0x5e368f];_0x371ab9[_0x40a876(0x337)](_0x36af16),_0x483743[_0x36af16]=_0x29e87e[_0x40a876(0x1dd)](_0x36af16)['getName'](),_0x3902e9[_0x40a876(0x428)](_0x4350b6)[_0x40a876(0x2df)](_0x36af16,_0x2e5d28,_0x5e368f,_0x231f33);}_0x29e87e[_0x40a876(0x2fc)](_0x371ab9)[_0x40a876(0x3d8)](_0x16ea44=>{const _0x3bbc71=_0x40a876,[_0x4cfb89,_0x3a8d68]=_0x16ea44,_0x1cf798=_0x29e87e[_0x3bbc71(0x1dd)](_0x4cfb89),_0x4f209a=_0x29e87e[_0x3bbc71(0x1dd)](_0x3a8d68);_0x1cf798&&_0x4f209a&&_0x1cf798[_0x3bbc71(0x41b)](_0x4f209a);}),_0x29e87e[_0x40a876(0x246)]();const _0x303109=_0x3902e9['getPivotTableInstance'](_0xa71adf);if(_0x303109){_0x1e351e(_0x303109,_0x483743,_0x25ab33),_0x303109['setDirty'](!0x0);const _0x397820=_0x303109['query'](),_0x547057=_0x3902e9[_0x40a876(0x3bd)](_0x2a1852,_0x590a1d,_0xa71adf),_0x1e7448=_0x3902e9[_0x40a876(0x428)](_0x4350b6)[_0x40a876(0x24a)]();_0x3902e9['updateView'](_0x2a1852,_0x590a1d,_0x1ab225[_0x40a876(0x149)],_0xa71adf,_0x397820,_0x547057,_0x1e7448,!0x0);}}return this[_0x40a876(0x3a0)](_0x2a1852,_0x590a1d,_0xa71adf);}});}[_0x6daf50(0x24c)](_0x1a4e8c,_0x361468,_0xd93c75){var _0x362b17,_0x23fb34;const {arrayFormulaCellData:_0x556935,unitData:_0xc746af}=_0xd93c75,_0x100ced=(_0x362b17=_0x556935==null?void 0x0:_0x556935[_0x1a4e8c])==null?void 0x0:_0x362b17[_0x361468],_0x178aa7=(_0x23fb34=_0xc746af==null?void 0x0:_0xc746af[_0x1a4e8c])==null?void 0x0:_0x23fb34[_0x361468];return{'arrayFormulaCellDataMatrix':_0x100ced,'unitDataMatrix':_0x178aa7};}[_0x6daf50(0x3a0)](_0x27fdfc,_0x227451,_0x73437e){const _0x59b110=_0x6daf50,_0x57a4fe=this[_0x59b110(0x35a)][_0x59b110(0x28a)](_0x27fdfc,_0x227451,_0x73437e),_0x5e3cd9=[],_0x5874f1=new _0x3aab5b[(_0x59b110(0x25d))]();if(_0x57a4fe){const {rangeCache:_0x2e0498,matrix:_0xb556ea,oldRangeCache:_0xc86414,oldMatrix:_0x407ebe}=_0x57a4fe,_0x3c5e5f=_0x1668ea(_0xc86414),_0x4c39de=_0x1668ea(_0x2e0498);_0x5e3cd9['push'](..._0x4c39de,..._0x3c5e5f),_0x407ebe&&_0xc86414&&_0x3c5e5f[_0x59b110(0x3d8)](_0x595b45=>{const _0x42f87f=_0x59b110;for(let _0x2b0679=_0x595b45[_0x42f87f(0x413)];_0x2b0679<=_0x595b45['endRow'];_0x2b0679++)for(let _0x892451=_0x595b45['startColumn'];_0x892451<=_0x595b45[_0x42f87f(0x3e9)];_0x892451++)_0x5874f1['realDeleteValue'](_0x2b0679,_0x892451);}),_0xb556ea&&_0x4c39de&&_0x4c39de[_0x59b110(0x3d8)](_0x38476e=>{const _0x29a29d=_0x59b110;for(let _0x3f9148=_0x38476e[_0x29a29d(0x413)];_0x3f9148<=_0x38476e[_0x29a29d(0x132)];_0x3f9148++)for(let _0x410f3f=_0x38476e['startColumn'];_0x410f3f<=_0x38476e[_0x29a29d(0x3e9)];_0x410f3f++)_0x5874f1[_0x29a29d(0x3e5)](_0x3f9148,_0x410f3f,_0xb556ea[_0x29a29d(0x123)](_0x3f9148,_0x410f3f));});}const _0x2aa25f={};return _0x2aa25f[_0x27fdfc]={[_0x227451]:_0x9fd165(_0x5e3cd9)},{'runtimeCellData':{[_0x27fdfc]:{[_0x227451]:_0x5874f1}},'dirtyRanges':_0x2aa25f};}['dispose'](){}};_0x1ac75c=_0x5d6a36([_0x258c3e(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43['SheetsPivotDataSourceModel'])),_0x258c3e(0x1,_0x3aab5b[_0x6daf50(0x1eb)]),_0x258c3e(0x2,_0x3aab5b['Inject'](_0x1cd130[_0x6daf50(0x342)])),_0x258c3e(0x3,_0x3aab5b['Inject'](_0x3aab5b[_0x6daf50(0x1f4)])),_0x258c3e(0x4,_0x3aab5b[_0x6daf50(0x20a)](_0x1cd130[_0x6daf50(0x2c1)])),_0x258c3e(0x5,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x39a)]))],_0x1ac75c);var _0x1f69f5=Object[_0x6daf50(0x182)],_0x228ded=(_0x17ced5,_0xd05c53,_0x509fc0,_0x37d2ab)=>{const _0x5e3107=_0x6daf50;for(var _0x3b86e8=_0x37d2ab>0x1?void 0x0:_0x37d2ab?_0x1f69f5(_0xd05c53,_0x509fc0):_0xd05c53,_0x259528=_0x17ced5[_0x5e3107(0x299)]-0x1,_0x5e1ec9;_0x259528>=0x0;_0x259528--)(_0x5e1ec9=_0x17ced5[_0x259528])&&(_0x3b86e8=_0x5e1ec9(_0x3b86e8)||_0x3b86e8);return _0x3b86e8;},_0x1d7a7b=(_0xa5a217,_0x42e7b1)=>(_0x533cc6,_0x366d87)=>_0x42e7b1(_0x533cc6,_0x366d87,_0xa5a217);let _0x43f816=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x440cd3,_0x459551,_0x5d159a,_0x21a73e){const _0x389503=_0x6daf50;super(),_0x3f9e42(this,_0x389503(0x2bc),new _0x3aab5b['DisposableCollection']()),(this[_0x389503(0x24e)]=_0x440cd3,this[_0x389503(0x3e0)]=_0x459551,this[_0x389503(0x1da)]=_0x5d159a,this['_sheetsPivotTableConfigModel']=_0x21a73e,this[_0x389503(0x326)]());}[_0x6daf50(0x326)](){const _0x45594d=_0x6daf50;this['disposeWithMe'](this[_0x45594d(0x3e0)][_0x45594d(0x267)]({'getMutations':_0x215177=>{const _0x44640d=_0x45594d;if(_0x215177['id']===_0x5b84bb[_0x44640d(0x3db)]['id']||_0x215177['id']===_0x5b84bb[_0x44640d(0x2b0)]['id']){const _0x51ac89=[],_0x55aff6=[],_0x319bfd=this[_0x44640d(0x1da)]['getCurrentSelections']()[_0x44640d(0x3f1)](_0x1d415b=>_0x1d415b[_0x44640d(0x235)]),_0x53635b=_0x5b84bb[_0x44640d(0x272)](this[_0x44640d(0x24e)]);if(!_0x53635b)return{'redos':[],'undos':[]};const {unitId:_0x38d2bd,subUnitId:_0x1bdd24}=_0x53635b,_0x115e2e={},_0x155aae=this[_0x44640d(0x3cd)][_0x44640d(0x355)](_0x38d2bd,_0x1bdd24);if(_0x155aae!=null&&_0x155aae['size'])for(const [_0x4c2556,_0xf697a]of _0x155aae){const {unitId:_0x1857ed,subUnitId:_0x232fd5,row:_0x2b4106,col:_0x122253}=_0xf697a[_0x44640d(0x233)];_0x1857ed===_0x53635b[_0x44640d(0x3ba)]&&_0x232fd5===_0x53635b[_0x44640d(0x3af)]&&(_0x115e2e[_0x2b4106+'-'+_0x122253]=_0x4c2556);}return _0x319bfd&&_0x53635b&&_0x319bfd[_0x44640d(0x3d8)](_0x59b46f=>{const _0x767465=_0x44640d;_0x3aab5b[_0x767465(0x3b6)]['foreach'](_0x59b46f,(_0x2ad049,_0x420b9b)=>{const _0x5668f0=_0x767465,_0x1862bf=_0x2ad049+'-'+_0x420b9b;if(_0x115e2e[_0x1862bf]){const _0x26d2cf=_0x115e2e[_0x1862bf];_0x51ac89[_0x5668f0(0x337)]({'id':_0x2b2273['id'],'params':{'unitId':_0x38d2bd,'subUnitId':_0x1bdd24,'pivotTableId':_0x26d2cf}});const _0x13b990=this['_sheetsPivotTableConfigModel'][_0x5668f0(0x34e)](_0x38d2bd,_0x26d2cf),_0x4fc566=this[_0x5668f0(0x3cd)][_0x5668f0(0x3bd)](_0x38d2bd,_0x1bdd24,_0x26d2cf);_0x55aff6[_0x5668f0(0x337)]({'id':_0x17abbf['id'],'params':{'unitId':_0x38d2bd,'subUnitId':_0x1bdd24,'pivotTableId':_0x26d2cf,'pivotTableConfig':_0x4fc566,'collectionConfig':_0x13b990}});}});}),{'redos':_0x51ac89,'undos':_0x55aff6};}return{'redos':[],'undos':[]};}}));}};_0x43f816=_0x228ded([_0x1d7a7b(0x0,_0x3aab5b[_0x6daf50(0x350)]),_0x1d7a7b(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x5b84bb[_0x6daf50(0x287)])),_0x1d7a7b(0x2,_0x3aab5b[_0x6daf50(0x20a)](_0x5b84bb['SheetsSelectionsService'])),_0x1d7a7b(0x3,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43['SheetsPivotTableConfigModel']))],_0x43f816);var _0x5e2884=Object[_0x6daf50(0x182)],_0x488f35=(_0x1da638,_0x25db28,_0x1c2eb3,_0x223529)=>{for(var _0x9e5b18=_0x223529>0x1?void 0x0:_0x223529?_0x5e2884(_0x25db28,_0x1c2eb3):_0x25db28,_0x2a702d=_0x1da638['length']-0x1,_0xbb310d;_0x2a702d>=0x0;_0x2a702d--)(_0xbb310d=_0x1da638[_0x2a702d])&&(_0x9e5b18=_0xbb310d(_0x9e5b18)||_0x9e5b18);return _0x9e5b18;},_0x4be18d=(_0x361b7f,_0x4e2f1e)=>(_0xe2562b,_0x319249)=>_0x4e2f1e(_0xe2562b,_0x319249,_0x361b7f);let _0x57b9f8=class extends _0x3aab5b['Disposable']{constructor(_0x17b33,_0x2db553,_0x5ce03d,_0x72f903,_0x5d5d1e,_0x472cfa){const _0x5f52a5=_0x6daf50;super(),this[_0x5f52a5(0x2aa)]=_0x17b33,this['_sheetInterceptorService']=_0x2db553,this[_0x5f52a5(0x408)]=_0x5ce03d,this[_0x5f52a5(0x24e)]=_0x72f903,this[_0x5f52a5(0x3cd)]=_0x5d5d1e,this[_0x5f52a5(0x26f)]=_0x472cfa,this[_0x5f52a5(0x209)]();}['_getPivotAppliedRanges'](_0x32f678,_0x4ddcbb,_0x42708b){const _0x3a7c45=_0x6daf50,{pageView:_0x31cdf1,cornerView:_0x127e4e,rowView:_0x1d1158,colView:_0x5bf14f,dataView:_0x39209a}=_0x4ddcbb,_0x35feea=_0x32f678;let _0x4035e8;if(_0x42708b)_0x4035e8=[..._0x5014d2(_0x35feea)];else{const _0x3c125c=_0x56e08b(_0x35feea,_0x31cdf1,!0x0),_0x7ab6a7=_0x31cdf1[_0x3a7c45(0x1a5)]>=0x0?_0x31cdf1['lastRow']+0x1:0x0,_0x384da2=_0x127e4e[_0x3a7c45(0x43d)],_0x29d1fe=_0x127e4e[_0x3a7c45(0x1a9)],_0x279eef=_0x3c125c[_0x3a7c45(0x299)]>0x0?_0x50ed31:0x0,_0x55fab1=_0x56e08b({'row':_0x35feea[_0x3a7c45(0x177)]+_0x7ab6a7+_0x279eef,'col':_0x35feea[_0x3a7c45(0x215)]},_0x127e4e,!0x1,!0x1),_0x5c878a=_0x56e08b({'row':_0x35feea['row']+_0x7ab6a7+_0x279eef+_0x384da2,'col':_0x35feea['col']},_0x1d1158,!0x1,!0x0),_0x4499a7=_0x56e08b({'row':_0x35feea[_0x3a7c45(0x177)]+_0x7ab6a7+_0x279eef,'col':_0x35feea[_0x3a7c45(0x215)]+_0x29d1fe},_0x5bf14f,!0x1,!0x0),_0x193163=_0x56e08b({'row':_0x35feea[_0x3a7c45(0x177)]+_0x7ab6a7+_0x279eef+_0x384da2,'col':_0x35feea['col']+_0x29d1fe},_0x39209a,!0x1,!0x0);_0x4035e8=[..._0x3c125c,..._0x55fab1,..._0x5c878a,..._0x4499a7,..._0x193163];}return _0x4035e8;}[_0x6daf50(0x209)](){const _0x5ed742=_0x6daf50;this['disposeWithMe'](this[_0x5ed742(0x26f)][_0x5ed742(0x35f)]['intercept'](this['_sheetsPivotTableService'][_0x5ed742(0x35f)][_0x5ed742(0x427)]()[_0x5ed742(0x172)],{'handler':(_0x22f05e,_0x4515fb)=>{const _0x1c4260=_0x5ed742,{cellInfo:_0x485329,view:_0x540da9,isEmpty:_0x483883}=_0x4515fb,_0x5659e6=_0x485329,{unitId:_0x51f1d6,subUnitId:_0x24107b}=_0x5659e6,_0x5de8c5=this['_getPivotAppliedRanges'](_0x485329,_0x540da9,_0x483883),_0x45ce39=this[_0x1c4260(0x3e0)][_0x1c4260(0x28b)]({'unitId':_0x51f1d6,'subUnitId':_0x24107b,'ranges':_0x5de8c5}),_0x3d1736=_0x40be2a(this[_0x1c4260(0x408)],_0x51f1d6,_0x24107b,_0x5de8c5);_0x3d1736[_0x1c4260(0x2f4)]&&(_0x45ce39[_0x1c4260(0x1b6)][_0x1c4260(0x337)](_0x3d1736[_0x1c4260(0x381)]),_0x45ce39['undos'][_0x1c4260(0x337)](_0x3d1736[_0x1c4260(0x1b3)]));const _0x35d414=this[_0x1c4260(0x2b5)](_0x540da9,_0x485329);return _0x45ce39[_0x1c4260(0x1b6)][_0x1c4260(0x337)](..._0x35d414[_0x1c4260(0x1b6)]),_0x45ce39[_0x1c4260(0x2dc)]['push'](..._0x35d414[_0x1c4260(0x2dc)]),{'redos':_0x45ce39['redos'],'undos':_0x45ce39[_0x1c4260(0x2dc)]};}}));}[_0x6daf50(0x2b5)](_0x53fb0c,_0xc911f8){const _0x4d733a=_0x6daf50,{col:_0x263183,unitId:_0x3da274,subUnitId:_0x78b6e3}=_0xc911f8,_0x39e9e5=[],_0x22fdc5=[],_0x57207a=_0x5b84bb[_0x4d733a(0x272)](this['_univerInstanceService'],{'unitId':_0x3da274,'subUnitId':_0x78b6e3});if(!_0xc911f8||!_0x53fb0c||!_0x57207a)return{'undos':_0x22fdc5,'redos':_0x39e9e5};const _0x460db7=this[_0x4d733a(0x3cd)][_0x4d733a(0x23a)](),{colView:_0x2070f0,dataView:_0x2b92dd,cornerView:_0x55d6ff,rowView:_0x19e08a,formatMap:_0x2aaed3}=_0x53fb0c,_0x42c793=_0x43be85(_0x2070f0,_0x460db7,!0x0,_0x2aaed3),_0x24bfc7=_0x43be85(_0x19e08a,_0x460db7,!0x1,_0x2aaed3),_0x4a80ef=_0x261719(_0x2b92dd),_0x405bf3=_0x4c0c6c(_0x55d6ff),{worksheet:_0x47e10f}=_0x57207a;if(typeof window<'u'&&window[_0x4d733a(0x1a6)]){const _0x2f447b=_0x2c5cc7[_0x4d733a(0x2e5)]({..._0x34ff93[_0x4d733a(0x380)]}),_0x4caa9a=_0x2c5cc7[_0x4d733a(0x1bc)][_0x4d733a(0x286)](_0x42c793,_0x2f447b)[_0x4d733a(0x139)]+0x10,_0x53a8e6=_0x2c5cc7[_0x4d733a(0x1bc)][_0x4d733a(0x286)](_0x4a80ef,_0x2f447b)['width'],_0x5d7f5f=Math[_0x4d733a(0x207)](Math[_0x4d733a(0x3ec)](_0x4caa9a,_0x53a8e6))+0x10,_0x16fa76=Math['floor'](_0x2c5cc7[_0x4d733a(0x1bc)][_0x4d733a(0x286)](_0x24bfc7,_0x2f447b)[_0x4d733a(0x139)]),_0x8a3a60=Math[_0x4d733a(0x207)](_0x2c5cc7[_0x4d733a(0x1bc)][_0x4d733a(0x286)](_0x405bf3,_0x2f447b)[_0x4d733a(0x139)]),_0x1e5b10=Math[_0x4d733a(0x3ec)](_0x16fa76,_0x8a3a60,0x28)+0xc,_0x592b11=_0x2070f0['colCount']+_0x55d6ff[_0x4d733a(0x1a9)],_0x206814={},_0x5e4593={};for(let _0x47f822=_0x263183;_0x47f822<_0x263183+_0x592b11;_0x47f822++){const _0x513845=_0x47e10f[_0x4d733a(0x126)](_0x47f822);_0x206814[_0x47f822]=_0x513845,_0x47f822-_0x263183<_0x55d6ff[_0x4d733a(0x1a9)]?_0x5e4593[_0x47f822-_0x263183]=_0x1e5b10:_0x5e4593[_0x47f822-_0x263183]=_0x5d7f5f;}_0x39e9e5[_0x4d733a(0x337)]({'id':_0x5b84bb[_0x4d733a(0x341)]['id'],'params':{'subUnitId':_0x78b6e3,'unitId':_0x3da274,'ranges':[{'startColumn':_0x263183,'endColumn':_0x263183+_0x592b11-0x1,'startRow':0x0,'endRow':_0x47e10f[_0x4d733a(0x3c8)]()-0x1}],'colWidth':_0x5e4593}}),_0x22fdc5[_0x4d733a(0x337)]({'id':_0x5b84bb[_0x4d733a(0x341)]['id'],'params':{'subUnitId':_0x78b6e3,'unitId':_0x3da274,'ranges':[{'startColumn':_0x263183,'endColumn':_0x263183+_0x592b11-0x1,'startRow':0x0,'endRow':_0x47e10f[_0x4d733a(0x3c8)]()-0x1}],'colWidth':_0x206814}});}return{'undos':_0x22fdc5,'redos':_0x39e9e5};}};_0x57b9f8=_0x488f35([_0x4be18d(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x2a9)])),_0x4be18d(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x5b84bb['SheetInterceptorService'])),_0x4be18d(0x2,_0x3aab5b['Inject'](_0x3aab5b[_0x6daf50(0x39a)])),_0x4be18d(0x3,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x350)])),_0x4be18d(0x4,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43[_0x6daf50(0x42c)])),_0x4be18d(0x5,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43[_0x6daf50(0x3de)]))],_0x57b9f8);var _0x1b157c=Object[_0x6daf50(0x182)],_0x2ff832=(_0x4be6a6,_0x3b54e6,_0xf8f91e,_0x32ede9)=>{for(var _0x450911=_0x32ede9>0x1?void 0x0:_0x32ede9?_0x1b157c(_0x3b54e6,_0xf8f91e):_0x3b54e6,_0x381bf4=_0x4be6a6['length']-0x1,_0x275bf8;_0x381bf4>=0x0;_0x381bf4--)(_0x275bf8=_0x4be6a6[_0x381bf4])&&(_0x450911=_0x275bf8(_0x450911)||_0x450911);return _0x450911;},_0x4a76c7=(_0x4ff1b0,_0x2413d1)=>(_0x1e8d76,_0xda533a)=>_0x2413d1(_0x1e8d76,_0xda533a,_0x4ff1b0);let _0x2ba7de=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x583e4a,_0x2882d9,_0x4c81fb,_0x3ffa59,_0x553393,_0x2f956a,_0x57ee82){const _0x1bfae4=_0x6daf50;super(),_0x3f9e42(this,_0x1bfae4(0x2bc),new _0x3aab5b[(_0x1bfae4(0x33a))]()),(this[_0x1bfae4(0x408)]=_0x583e4a,this[_0x1bfae4(0x301)]=_0x2882d9,this[_0x1bfae4(0x392)]=_0x4c81fb,this[_0x1bfae4(0x24e)]=_0x3ffa59,this[_0x1bfae4(0x3cd)]=_0x553393,this[_0x1bfae4(0x186)]=_0x2f956a,this['_sheetInterceptorService']=_0x57ee82,this[_0x1bfae4(0x3c7)]());}[_0x6daf50(0x3c7)](){const _0x60f36b=_0x6daf50,_0x56a7c2=(_0x30cc32,_0x5063d2)=>{const _0x1afce6=_0x45c2,_0x5a9c81=this[_0x1afce6(0x24e)][_0x1afce6(0x30b)](_0x3aab5b[_0x1afce6(0x3b5)][_0x1afce6(0x343)]);if(!_0x5a9c81||!(_0x5a9c81==null?void 0x0:_0x5a9c81[_0x1afce6(0x2a1)](_0x5063d2)))return;this['disposableCollection'][_0x1afce6(0x2b2)]();const _0x1f42d0=_0x3d31f8=>this[_0x1afce6(0x29f)](_0x3d31f8,_0x30cc32,_0x5063d2),_0x50fbe0=this[_0x1afce6(0x3cd)]['getSubUnitPivotConfigs'](_0x30cc32,_0x5063d2);if(!(_0x50fbe0!=null&&_0x50fbe0[_0x1afce6(0x423)]))return;Array['from'](_0x50fbe0[_0x1afce6(0x1db)]())['map'](_0x14776e=>{const _0x4a4b56=_0x1afce6,{row:_0x347926,col:_0x306f32}=_0x14776e['targetCellInfo'];return _0x3aab5b[_0x4a4b56(0x278)](_0x347926,_0x306f32);})[_0x1afce6(0x3d8)](_0x4f72d4=>{const _0x55bcc7=_0x1afce6;this[_0x55bcc7(0x2bc)][_0x55bcc7(0x34a)](this['_refRangeService'][_0x55bcc7(0x2ad)](_0x4f72d4,_0x1f42d0,_0x30cc32,_0x5063d2));});},_0x665303=()=>{const _0x3c2a4a=_0x45c2,_0x3698b2=this['_univerInstanceService'][_0x3c2a4a(0x30b)](_0x3aab5b['UniverInstanceType']['UNIVER_SHEET']);if(_0x3698b2){const _0x5997d8=_0x3698b2['getActiveSheet']();if(!_0x5997d8)return;_0x56a7c2(_0x3698b2[_0x3c2a4a(0x306)](),_0x5997d8[_0x3c2a4a(0x276)]());}};this[_0x60f36b(0x137)](this['_commandService'][_0x60f36b(0x3a3)](_0x233ade=>{const _0xa68567=_0x60f36b;if(_0x233ade['id']===_0x5b84bb[_0xa68567(0x3a4)]['id']){const _0x475ff8=_0x233ade[_0xa68567(0x26b)],_0x3d7a51=_0x475ff8['subUnitId'],_0x568c4b=_0x475ff8[_0xa68567(0x3ba)];if(!_0x3d7a51||!_0x568c4b)return;_0x56a7c2(_0x568c4b,_0x3d7a51);}})),this[_0x60f36b(0x137)](this['_sheetsPivotTableConfigModel'][_0x60f36b(0x27e)]['subscribe'](_0x415943=>{_0x415943&&_0x665303();})),this['disposeWithMe'](this['_sheetsPivotTableConfigModel'][_0x60f36b(0x27c)]['subscribe'](_0x5a4151=>{const _0x45159b=_0x60f36b,_0x3600a2=_0x5b84bb[_0x45159b(0x272)](this[_0x45159b(0x24e)]);if(!_0x3600a2)return;const {unitId:_0x464b8d,subUnitId:_0x5501d4}=_0x3600a2,{unitId:_0x24ce9f,subUnitId:_0x451420}=_0x5a4151;_0x464b8d!==_0x24ce9f||_0x5501d4!==_0x451420||_0x56a7c2(_0x464b8d,_0x5501d4);})),_0x665303();}[_0x6daf50(0x29f)](_0x103edd,_0x49dc40,_0x546dd7){const _0x40d8b3=_0x6daf50;switch(_0x103edd['id']){case _0x5b84bb[_0x40d8b3(0x3f0)]['id']:return this[_0x40d8b3(0x2d4)](_0x103edd[_0x40d8b3(0x26b)],_0x49dc40,_0x546dd7);}return{'redos':[],'undos':[]};}[_0x6daf50(0x2d4)](_0x380d41,_0x314b69,_0x244346){const _0x2c0408=_0x6daf50,{fromRange:_0x38e010,toRange:_0x28a172}=_0x380d41,_0x3529aa=[],_0x5d91da=[],_0x11d67e=_0x5b84bb['getSheetCommandTarget'](this[_0x2c0408(0x24e)]);if(!_0x11d67e)return{'undos':_0x5d91da,'redos':_0x3529aa};if(_0x314b69!==_0x11d67e['unitId']||_0x244346!==_0x11d67e[_0x2c0408(0x3af)])return{'undos':_0x5d91da,'redos':_0x3529aa};const _0x1ea783=this[_0x2c0408(0x3cd)][_0x2c0408(0x355)](_0x314b69,_0x244346);if(_0x1ea783!=null&&_0x1ea783[_0x2c0408(0x423)])for(const [_0x2d55d4,_0x59e4a2]of _0x1ea783){const {unitId:_0x5f17e6,subUnitId:_0x2744c5,row:_0x21f4aa,col:_0x502806}=_0x59e4a2[_0x2c0408(0x233)];if(_0x5f17e6===_0x11d67e['unitId']&&_0x2744c5===_0x11d67e['subUnitId']){const _0x11f967=_0x3aab5b[_0x2c0408(0x278)](_0x21f4aa,_0x502806);if(_0x3aab5b['Rectangle']['intersects'](_0x11f967,_0x38e010)){const _0x45d192=_0x21f4aa-_0x38e010[_0x2c0408(0x413)],_0x45c291=_0x502806-_0x38e010[_0x2c0408(0x352)],_0x4c880a={'row':_0x28a172[_0x2c0408(0x413)]+_0x45d192,'col':_0x28a172['startColumn']+_0x45c291};_0x3529aa[_0x2c0408(0x337)]({'id':_0x2ef4c5['id'],'params':{'unitId':_0x5f17e6,'subUnitId':_0x2744c5,'pivotTableId':_0x2d55d4,'targetCellPosition':_0x4c880a}}),_0x5d91da[_0x2c0408(0x337)]({'id':_0x2ef4c5['id'],'params':{'unitId':_0x5f17e6,'subUnitId':_0x2744c5,'pivotTableId':_0x2d55d4,'targetCellPosition':{'row':_0x21f4aa,'col':_0x502806}}});const _0x38907a=_0x4c880a[_0x2c0408(0x177)]-_0x21f4aa,_0x5a61ac=_0x4c880a[_0x2c0408(0x215)]-_0x502806,_0x54f255=[],_0x392139=this['_sheetsPivotTableAdaptorModel'][_0x2c0408(0x411)](_0x5f17e6,_0x2744c5,_0x2d55d4),_0x520be9=_0x392139==null?void 0x0:_0x392139[_0x2c0408(0x316)];if(_0x520be9){Object[_0x2c0408(0x30e)](_0x520be9)[_0x2c0408(0x3d8)](_0x12adc4=>{const _0x23f16e=_0x2c0408;_0x520be9[_0x12adc4][_0x23f16e(0x3d8)](_0x32f3dc=>{const _0xe0f2e0=_0x23f16e,_0x30b7bf={..._0x32f3dc};_0x30b7bf[_0xe0f2e0(0x413)]=_0x32f3dc[_0xe0f2e0(0x413)]+_0x38907a,_0x30b7bf[_0xe0f2e0(0x132)]=_0x32f3dc[_0xe0f2e0(0x132)]+_0x38907a,_0x30b7bf[_0xe0f2e0(0x352)]=_0x32f3dc[_0xe0f2e0(0x352)]+_0x5a61ac,_0x30b7bf[_0xe0f2e0(0x3e9)]=_0x32f3dc[_0xe0f2e0(0x3e9)]+_0x5a61ac,_0x54f255['push'](_0x30b7bf);});});const _0x55c48b=this[_0x2c0408(0x3e0)][_0x2c0408(0x28b)]({'unitId':_0x5f17e6,'subUnitId':_0x2744c5,'ranges':_0x54f255});_0x3529aa[_0x2c0408(0x337)](..._0x55c48b[_0x2c0408(0x1b6)]),_0x5d91da[_0x2c0408(0x337)](..._0x55c48b[_0x2c0408(0x2dc)]);const _0x2fe59d=_0x40be2a(this[_0x2c0408(0x408)],_0x5f17e6,_0x2744c5,_0x54f255);_0x2fe59d['shouldClear']&&(_0x3529aa[_0x2c0408(0x337)](_0x2fe59d[_0x2c0408(0x381)]),_0x5d91da[_0x2c0408(0x337)](_0x2fe59d[_0x2c0408(0x1b3)]));}}}}return{'redos':_0x3529aa,'undos':_0x5d91da};}};_0x2ba7de=_0x2ff832([_0x4a76c7(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x39a)])),_0x4a76c7(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x5b84bb[_0x6daf50(0x30c)])),_0x4a76c7(0x2,_0x3aab5b[_0x6daf50(0x1f4)]),_0x4a76c7(0x3,_0x3aab5b[_0x6daf50(0x350)]),_0x4a76c7(0x4,_0x3aab5b['Inject'](_0x271f43['SheetsPivotTableConfigModel'])),_0x4a76c7(0x5,_0x3aab5b['Inject'](_0x271f43['SheetsPivotTableAdaptorModel'])),_0x4a76c7(0x6,_0x3aab5b['Inject'](_0x5b84bb[_0x6daf50(0x287)]))],_0x2ba7de);var _0x2bb535=Object[_0x6daf50(0x182)],_0x1dd209=(_0x4507f4,_0x130992,_0x268df5,_0x2d2705)=>{const _0x58c532=_0x6daf50;for(var _0x22c95f=_0x2d2705>0x1?void 0x0:_0x2d2705?_0x2bb535(_0x130992,_0x268df5):_0x130992,_0x4ebb5a=_0x4507f4[_0x58c532(0x299)]-0x1,_0x5670e1;_0x4ebb5a>=0x0;_0x4ebb5a--)(_0x5670e1=_0x4507f4[_0x4ebb5a])&&(_0x22c95f=_0x5670e1(_0x22c95f)||_0x22c95f);return _0x22c95f;},_0xb6ed22=(_0x433bc1,_0x16e8be)=>(_0x1bd274,_0x4ed6cb)=>_0x16e8be(_0x1bd274,_0x4ed6cb,_0x433bc1);let _0x22a1fd=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x27e271,_0x2a8468){const _0x4c7c6a=_0x6daf50;super(),this['_sheetInterceptorService']=_0x27e271,this['_sheetsPivotTableConfigModel']=_0x2a8468,this[_0x4c7c6a(0x1e9)]();}[_0x6daf50(0x1e9)](){const _0x4e8146=_0x6daf50;this[_0x4e8146(0x137)](this['_sheetInterceptorService'][_0x4e8146(0x267)]({'getMutations':_0x41f7a1=>{const _0x3556ad=_0x4e8146;if(_0x41f7a1['id']===_0x5b84bb['RemoveSheetCommand']['id']){const _0x27e29f=[],_0x3fa065=[],_0x36aabf=_0x41f7a1['params'],{unitId:_0x5210a8,subUnitId:_0x27093d}=_0x36aabf;if(!_0x5210a8||!_0x27093d)return{'undos':_0x3fa065,'redos':_0x27e29f};const _0x14db62=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x5210a8,_0x27093d);if(_0x14db62!=null&&_0x14db62[_0x3556ad(0x423)])for(const [_0x4e7dd3,_0x24d75b]of _0x14db62){_0x27e29f[_0x3556ad(0x337)]({'id':_0x2b2273['id'],'params':{'unitId':_0x5210a8,'subUnitId':_0x27093d,'pivotTableId':_0x4e7dd3}});const _0x584405={...this['_sheetsPivotTableConfigModel'][_0x3556ad(0x34e)](_0x5210a8,_0x4e7dd3)};_0x3fa065[_0x3556ad(0x337)]({'id':_0x17abbf['id'],'params':{'unitId':_0x5210a8,'subUnitId':_0x27093d,'pivotTableId':_0x4e7dd3,'pivotTableConfig':_0x24d75b,'collectionConfig':_0x584405}});}return{'redos':_0x27e29f,'undos':_0x3fa065};}return{'redos':[],'undos':[]};}}));}};_0x22a1fd=_0x1dd209([_0xb6ed22(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x5b84bb[_0x6daf50(0x287)])),_0xb6ed22(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43[_0x6daf50(0x42c)]))],_0x22a1fd);var _0x147061=Object[_0x6daf50(0x182)],_0x41c1b0=(_0x573466,_0xef1c52,_0x4e4f68,_0x8fd85a)=>{for(var _0x5f44be=_0x8fd85a>0x1?void 0x0:_0x8fd85a?_0x147061(_0xef1c52,_0x4e4f68):_0xef1c52,_0x160f88=_0x573466['length']-0x1,_0x44decf;_0x160f88>=0x0;_0x160f88--)(_0x44decf=_0x573466[_0x160f88])&&(_0x5f44be=_0x44decf(_0x5f44be)||_0x5f44be);return _0x5f44be;},_0x3e6e07=(_0x445721,_0x4dae45)=>(_0x5ab67f,_0x4d5816)=>_0x4dae45(_0x5ab67f,_0x4d5816,_0x445721);let _0x1f4982=class extends _0x3aab5b[_0x6daf50(0x214)]{constructor(_0x3942c7,_0x3f20ec,_0x1ee866,_0x53612a,_0x11baf0,_0x6fca72){const _0x2755e5=_0x6daf50;super(),this['_commandService']=_0x3942c7,this[_0x2755e5(0x40e)]=_0x3f20ec,this[_0x2755e5(0x186)]=_0x1ee866,this[_0x2755e5(0x3cd)]=_0x53612a,this['_univerInstanceService']=_0x11baf0,this[_0x2755e5(0x41e)]=_0x6fca72,this[_0x2755e5(0x1ab)](),this[_0x2755e5(0x389)]();}['_initDataSendListener'](){const _0x43f194=_0x6daf50;this[_0x43f194(0x137)](this[_0x43f194(0x392)][_0x43f194(0x3a3)](_0x2b64a5=>{const _0x41f985=_0x43f194;if(_0x2b64a5['id']!==_0x1af275['id'])return;const _0x33c7f6=_0x2b64a5[_0x41f985(0x26b)];this[_0x41f985(0x40e)][_0x41f985(0x25a)](_0x33c7f6);})),this[_0x43f194(0x137)](this['_commandService'][_0x43f194(0x3a3)](_0x25f0f6=>{const _0xb7d097=_0x43f194;if(_0x25f0f6['id']===_0x19396d['id']){const _0x3b9dce=_0x25f0f6[_0xb7d097(0x26b)];if(_0x3b9dce){const {unitId:_0x4a6903,subUnitId:_0x221ecc,oldSubUnitId:_0x3e4717,pivotTableId:_0x20b679,pivotTableConfig:_0x547e71,collectionConfig:_0x294a86}=_0x3b9dce;this[_0xb7d097(0x3cd)][_0xb7d097(0x333)](_0x4a6903,_0x3e4717,_0x3b9dce[_0xb7d097(0x34d)],null),this[_0xb7d097(0x3cd)]['updateConfigCache'](_0x4a6903,_0x221ecc,_0x20b679,_0x547e71),this[_0xb7d097(0x3cd)][_0xb7d097(0x2f9)](_0x4a6903,_0x294a86);}}})),this['disposeWithMe'](this[_0x43f194(0x392)][_0x43f194(0x3a3)](_0x472825=>{const _0x2ee7ef=_0x43f194;if(_0x472825['id']!==_0x261bb1['id'])return;const _0x23802a=_0x5b84bb[_0x2ee7ef(0x272)](this[_0x2ee7ef(0x24e)]);if(!_0x23802a)return;const {unitId:_0xf71b92,subUnitId:_0x2312a7}=_0x23802a,_0xb398bf=_0x472825[_0x2ee7ef(0x26b)];if(_0xb398bf['collectionConfig']&&Object['keys'](_0xb398bf[_0x2ee7ef(0x382)])[_0x2ee7ef(0x3d8)](_0x4fcc5f=>{const _0x35a65d=_0x2ee7ef;var _0x3fa22c;(_0x3fa22c=_0xb398bf[_0x35a65d(0x382)])!=null&&_0x3fa22c[_0x4fcc5f]&&this[_0x35a65d(0x3cd)]['updateCollectionConfig'](_0x4fcc5f,_0xb398bf[_0x35a65d(0x382)][_0x4fcc5f]);}),_0xb398bf['single']){const _0x1d1aac=_0xb398bf['single'],{unitId:_0x78a0a0,subUnitId:_0x329a1b,view:_0x538ba4,pivotTableId:_0xf774a0,type:_0x22ea84,pivotConfig:_0x28c2df}=_0x1d1aac;if(_0x22ea84===_0x1ab225[_0x2ee7ef(0x24b)])this['_sheetsPivotTableAdaptorModel'][_0x2ee7ef(0x312)]({'unitId':_0x78a0a0,'subUnitId':_0x329a1b,'pivotTableId':_0xf774a0,'type':_0x22ea84}),this['_sheetsPivotTableConfigModel'][_0x2ee7ef(0x333)](_0x78a0a0,_0x329a1b,_0xf774a0,null);else{const _0x2dda2b=new _0x5ab2d7[(_0x2ee7ef(0x205))]();_0x2dda2b[_0x2ee7ef(0x2ed)](_0x538ba4),this[_0x2ee7ef(0x3cd)][_0x2ee7ef(0x333)](_0x78a0a0,_0x329a1b,_0xf774a0,_0x28c2df),this['_sheetsPivotTableAdaptorModel'][_0x2ee7ef(0x312)]({'unitId':_0x78a0a0,'subUnitId':_0x329a1b,'pivotTableId':_0xf774a0,'type':_0x22ea84,'view':_0x2dda2b}),this[_0x2ee7ef(0x186)][_0x2ee7ef(0x250)]({'unitId':_0x78a0a0,'subUnitId':_0x329a1b,'view':_0x2dda2b,'pivotTableId':_0xf774a0,'type':_0x22ea84});}}else _0xb398bf[_0x2ee7ef(0x37a)]&&(_0xb398bf['batch'][_0x2ee7ef(0x3d8)](_0x392b37=>{const _0x53467d=_0x2ee7ef,{unitId:_0x4a758f,subUnitId:_0x35509b,view:_0x48d7f1,pivotTableId:_0x126cc3,type:_0x8c8d76,pivotConfig:_0x1f8ee3}=_0x392b37,_0x3a2ab2=new _0x5ab2d7[(_0x53467d(0x205))]();_0x3a2ab2[_0x53467d(0x2ed)](_0x48d7f1),this['_sheetsPivotTableConfigModel'][_0x53467d(0x333)](_0x4a758f,_0x35509b,_0x126cc3,_0x1f8ee3),this[_0x53467d(0x186)][_0x53467d(0x250)]({'unitId':_0x4a758f,'subUnitId':_0x35509b,'view':_0x3a2ab2,'pivotTableId':_0x126cc3,'type':_0x8c8d76});}),this['_sheetsPivotTableConfigModel']['setPivotInitCompleted']());this[_0x2ee7ef(0x186)][_0x2ee7ef(0x2c3)](_0xf71b92,_0x2312a7);}));}['registerDirtyService'](){const _0x5d69be=_0x6daf50;this[_0x5d69be(0x41e)][_0x5d69be(0x386)](_0x326fd6['id'],{'commandId':_0x326fd6['id'],'getDirtyData'(_0xa3c541){const _0x261279=_0x5d69be;return{'dirtyUnitFeatureMap':_0xa3c541[_0x261279(0x26b)]};}});}};_0x1f4982=_0x41c1b0([_0x3e6e07(0x0,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x1f4)])),_0x3e6e07(0x1,_0x3aab5b['Inject'](_0x271f43['SheetsPivotRPCService'])),_0x3e6e07(0x2,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43[_0x6daf50(0x36c)])),_0x3e6e07(0x3,_0x3aab5b[_0x6daf50(0x20a)](_0x271f43[_0x6daf50(0x42c)])),_0x3e6e07(0x4,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x350)])),_0x3e6e07(0x5,_0x1cd130[_0x6daf50(0x3c0)])],_0x1f4982);var _0x375475=Object[_0x6daf50(0x189)],_0x2bc720=Object['getOwnPropertyDescriptor'],_0x392d3c=(_0x26c6a4,_0x2f755e,_0x2beaea)=>_0x2f755e in _0x26c6a4?_0x375475(_0x26c6a4,_0x2f755e,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2beaea}):_0x26c6a4[_0x2f755e]=_0x2beaea,_0x5c4471=(_0x1c243d,_0xaf5b76,_0x2b9240,_0x4ae01b)=>{const _0x2b4c69=_0x6daf50;for(var _0x15fd3c=_0x4ae01b>0x1?void 0x0:_0x4ae01b?_0x2bc720(_0xaf5b76,_0x2b9240):_0xaf5b76,_0x1d724d=_0x1c243d[_0x2b4c69(0x299)]-0x1,_0xaa3440;_0x1d724d>=0x0;_0x1d724d--)(_0xaa3440=_0x1c243d[_0x1d724d])&&(_0x15fd3c=_0xaa3440(_0x15fd3c)||_0x15fd3c);return _0x15fd3c;},_0x11d621=(_0x2abdc9,_0x1786e4)=>(_0x3fadcc,_0x4c6e2c)=>_0x1786e4(_0x3fadcc,_0x4c6e2c,_0x2abdc9),_0x478d6f=(_0x5b76c1,_0x21351a,_0x46db31)=>_0x392d3c(_0x5b76c1,typeof _0x21351a!=_0x6daf50(0x2ae)?_0x21351a+'':_0x21351a,_0x46db31);_0x271f43[_0x6daf50(0x409)]=class extends _0x3aab5b[_0x6daf50(0x2fb)]{constructor(_0x2804cd=_0x5a1be7,_0x2a4ac1,_0x1f7fb3,_0x30a135,_0x46237e){const _0x4c70d2=_0x6daf50;super(),this[_0x4c70d2(0x425)]=_0x2804cd,this['_injector']=_0x2a4ac1,this['_commandService']=_0x1f7fb3,this[_0x4c70d2(0x434)]=_0x30a135,this[_0x4c70d2(0x22a)]=_0x46237e;const {..._0x3ca39f}=_0x3aab5b[_0x4c70d2(0x1a7)]({},_0x5a1be7,this[_0x4c70d2(0x425)]);this[_0x4c70d2(0x434)][_0x4c70d2(0x2ce)](_0x29fd09,_0x3ca39f),this[_0x4c70d2(0x2db)](),this[_0x4c70d2(0x3b1)]();}[_0x6daf50(0x3b1)](){const _0x485c07=_0x6daf50;var _0x32905a;const _0x3b240c=(_0x32905a=this[_0x485c07(0x425)])==null?void 0x0:_0x32905a[_0x485c07(0x3f6)];this[_0x485c07(0x434)][_0x485c07(0x2ce)](_0x332892,_0x3b240c===!0x0);}['onStarting'](){const _0x5d0c1c=_0x6daf50;var _0x3ae6c9;let _0x185bad=[];const _0x4006f5=(_0x3ae6c9=this[_0x5d0c1c(0x425)])==null?void 0x0:_0x3ae6c9[_0x5d0c1c(0x3f6)];_0x4006f5===!0x0?_0x185bad=[[_0x271f43['SheetsPivotTableService']],[_0x271f43[_0x5d0c1c(0x31b)]],[_0x1f4982],[_0x271f43[_0x5d0c1c(0x36c)]],[_0x271f43[_0x5d0c1c(0x42c)]],[_0x22a1fd],[_0x43f816],[_0x2ba7de],[_0x57b9f8]]:_0x4006f5===!0x1?_0x185bad=[[_0x271f43[_0x5d0c1c(0x383)]],[_0x1ac75c]]:_0x4006f5===void 0x0&&(_0x185bad=[[_0x271f43[_0x5d0c1c(0x383)]],[_0x1ac75c],[_0x271f43[_0x5d0c1c(0x3de)]],[_0x271f43[_0x5d0c1c(0x31b)]],[_0x1f4982],[_0x271f43[_0x5d0c1c(0x36c)]],[_0x271f43[_0x5d0c1c(0x42c)]],[_0x22a1fd],[_0x43f816],[_0x2ba7de],[_0x57b9f8]]),_0x185bad[_0x5d0c1c(0x3d8)](_0x3c657c=>this[_0x5d0c1c(0x408)][_0x5d0c1c(0x34a)](_0x3c657c)),[_0x1ac75c,_0x1f4982,_0x271f43[_0x5d0c1c(0x3de)],_0x43f816,_0x22a1fd,_0x2ba7de,_0x57b9f8][_0x5d0c1c(0x3d8)](_0x3a2260=>{const _0x2298bc=_0x5d0c1c;this[_0x2298bc(0x408)][_0x2298bc(0x271)](_0x3a2260)&&this['_injector'][_0x2298bc(0x393)](_0x3a2260);});}[_0x6daf50(0x2db)](){const _0x3ac30d=_0x6daf50;[_0x40ec48,_0x5b2cbd,_0x18a88f,_0x10ba26,_0x586638,_0x57f960,_0x5904e9,_0x3bc954,_0x417133,_0x4add00,_0x3df461,_0x55f03e,_0x383fc8,_0x594ab8,_0x17abbf,_0x3b255d,_0x2b2273,_0x1678ea,_0xc2bdb6,_0x1062bf,_0x17d811,_0x87a600,_0x280ff8,_0x50f618,_0x5a460e,_0x31e799,_0x2ef4c5,_0x549956,_0x1af275,_0x261bb1,_0x12d494,_0x231c1a,_0x4b2215,_0x2ebdf3,_0x3db2ca,_0x49672d,_0x5772bb,_0x326fd6,_0x19396d,_0x492476,_0x1d73d4,_0x5d22d2,_0x198890][_0x3ac30d(0x3d8)](_0x19171b=>{const _0x40e893=_0x3ac30d;var _0x128e51;(_0x128e51=this[_0x40e893(0x22a)])==null||_0x128e51[_0x40e893(0x300)](_0x19171b),this[_0x40e893(0x392)][_0x40e893(0x298)](_0x19171b);});}},_0x478d6f(_0x271f43[_0x6daf50(0x409)],_0x6daf50(0x170),_0x3a232b),_0x478d6f(_0x271f43['UniverSheetsPivotTablePlugin'],_0x6daf50(0x15a),_0x3aab5b[_0x6daf50(0x3b5)][_0x6daf50(0x343)]),_0x271f43[_0x6daf50(0x409)]=_0x5c4471([_0x3aab5b[_0x6daf50(0x175)](_0x2a826e[_0x6daf50(0x15f)]),_0x11d621(0x1,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x39a)])),_0x11d621(0x2,_0x3aab5b[_0x6daf50(0x20a)](_0x3aab5b[_0x6daf50(0x1f4)])),_0x11d621(0x3,_0x3aab5b[_0x6daf50(0x1eb)]),_0x11d621(0x4,_0x3aab5b[_0x6daf50(0x223)](_0x2fffef[_0x6daf50(0x212)]))],_0x271f43[_0x6daf50(0x409)]),_0x271f43['AddPivotFieldCommand']=_0x18a88f,_0x271f43[_0x6daf50(0x16a)]=_0x1678ea,_0x271f43[_0x6daf50(0x218)]=_0x5b2cbd,_0x271f43[_0x6daf50(0x125)]=_0x17abbf,_0x271f43[_0x6daf50(0x2ab)]=_0x40ec48,_0x271f43['BLANK_ROW_COUNT']=_0x50ed31,_0x271f43['DEFAULT_PIVOT_NUMBER']=_0x884d8a,_0x271f43[_0x6daf50(0x1f6)]=_0x10ba26,_0x271f43[_0x6daf50(0x2b7)]=_0x383fc8,_0x271f43[_0x6daf50(0x363)]=_0x17706b,_0x271f43[_0x6daf50(0x376)]=_0x594ab8,_0x271f43['PivotTableOperationEnum']=_0x1ab225,_0x271f43[_0x6daf50(0x2ba)]=_0x326fd6,_0x271f43[_0x6daf50(0x439)]=_0xdd5059,_0x271f43[_0x6daf50(0x3d6)]=_0x586638,_0x271f43['RemovePivotFieldMutation']=_0x87a600,_0x271f43[_0x6daf50(0x19e)]=_0x2b2273,_0x271f43['RenamePivotFieldMutation']=_0x280ff8,_0x271f43[_0x6daf50(0x2a5)]=_0x198890,_0x271f43['SHEETS_PIVOT_PLUGIN_CONFIG_KEY']=_0x29fd09,_0x271f43['SHEET_PIVOT_TABLE_PLUGIN']=_0x3a232b,_0x271f43[_0x6daf50(0x188)]=_0x3bc954,_0x271f43[_0x6daf50(0x403)]=_0x50f618,_0x271f43[_0x6daf50(0x228)]=_0x2ebdf3,_0x271f43[_0x6daf50(0x359)]=_0x5d22d2,_0x271f43[_0x6daf50(0x415)]=_0x4add00,_0x271f43[_0x6daf50(0x366)]=_0x17d811,_0x271f43[_0x6daf50(0x197)]=_0x31e799,_0x271f43[_0x6daf50(0x400)]=_0x2ef4c5,_0x271f43[_0x6daf50(0x1fc)]=_0x417133,_0x271f43['SetPivotSortMutation']=_0x5a460e,_0x271f43['SetPivotSubtotalTypeMutation']=_0x4b2215,_0x271f43['SetPivotValueFilterCommand']=_0x492476,_0x271f43['SetPivotValueFilterMutation']=_0x1d73d4,_0x271f43[_0x6daf50(0x153)]=_0x5904e9,_0x271f43['UpdateFieldPositionMutation']=_0x12d494,_0x271f43[_0x6daf50(0x2e6)]=_0x3df461,_0x271f43[_0x6daf50(0x19d)]=_0x5772bb,_0x271f43['UpdatePivotTableSourceRangeCommand']=_0x55f03e,_0x271f43[_0x6daf50(0x12c)]=_0x49672d,_0x271f43[_0x6daf50(0x230)]=_0x57f960,_0x271f43['UpdateValuePositionMutation']=_0x231c1a,_0x271f43[_0x6daf50(0x279)]=_0x20db0e,_0x271f43['canUsePivot']=_0x2ffa8d,_0x271f43['defaultThemeStyle']=_0x34ff93,_0x271f43[_0x6daf50(0x29c)]=_0x40be2a,_0x271f43[_0x6daf50(0x323)]=_0x56e08b,_0x271f43[_0x6daf50(0x23c)]=_0x5014d2,_0x271f43[_0x6daf50(0x1d6)]=_0x349e95,_0x271f43['getInsertRowColMutations']=_0x44c00e,_0x271f43[_0x6daf50(0x2c0)]=_0x37a114,_0x271f43[_0x6daf50(0x15b)]=_0x21309a,_0x271f43[_0x6daf50(0x227)]=_0x3bc063,_0x271f43['transFromCellValue']=_0x574731,_0x271f43[_0x6daf50(0x2af)]=_0x1668ea,Object[_0x6daf50(0x189)](_0x271f43,Symbol[_0x6daf50(0x32c)],{'value':_0x6daf50(0x21a)});}));
1
+ function _0x316b(_0x2a641a,_0x3c1dec){const _0x2f7a37=_0x2f7a();return _0x316b=function(_0x316bbc,_0x107cf0){_0x316bbc=_0x316bbc-0x187;let _0x2e4860=_0x2f7a37[_0x316bbc];return _0x2e4860;},_0x316b(_0x2a641a,_0x3c1dec);}function _0x2f7a(){const _0x55feef=['setRangeKeyMap','DEFAULT_WORKSHEET_ROW_COUNT','PivotMultipleValueId','merge','col','getAdjustRangesPosition','Row','getValuePosition','setPivotCollapse','AddPivotField','updateFieldSourceInfo','sourceRangeInfo','dataFields','UniverEngineFormula','getLastRow','SetValueFilter','_initClearSelectionCommandInterceptor','getConfig','_init','sheet.command.update-pivot-table-source-range','MoveRangeMutation','oldMatrix','_sheetsPivotTableService','Subtotal','_initPivotTextInfo','updateFieldPosition','max','InsertSheetUndoMutationFactory','_pivotTableRangeInfo','getTypeOfUnitDisposed$','value','fields','sheets-pivot.dateGroup.hourMinute','IConfigService','length','_subjectViewChange','_resourceManagerService','getPivotTableModelConfig','STRING','_pivotRenderInfoCache','query','InsertSheetCommand','addExclusiveRange','asyncInterceptor','Var\x20of\x20','broadcastCollectionChange','SetSortInfo','SetFieldFormat','sheet.mutation.send-pivot-config-local','stdDevp','_globalSubject','body','_sheetsPivotRpcService','_model','map','sheet.mutation.add-group-collection','lastCol','_fieldsCollectionChange$','colCount','getUnit','collection','deleteUnitId','_featureCalculationManagerService','getAutoDisplayNameFunction','canUsePivot','startCollectChangeset','setSortInfo','_ensurePivotItemRenderValueMatrixCache','registerSyncingMutations','_onRefRangeChange','endColumn','markDirty','originTargetInfo','add','AsyncInterceptorManager','lastRow','getSheets','1711968iHAnBZ','numfmt','sheets-pivot.countNumsName','LifecycleService','sheet.command.set-pivot-fields-config','getRowCount','count','ClearSelectionContentCommand','isErrorValue','Values','NotFunction','\x20-\x20','PivotDrillDownCommand','sheets-pivot.cellDateGroupDisplay.yearMonthDate','getSubUnitPivotRenderCache','MUTATION','getCellMatrix','@univerjs/sheets','getPivotTableInfo','getSheetCommandTarget','SetPivotSort','DIV_BY_ZERO','range','removePivotField','SheetsPivotRPCService','sheet.mutation.update-pivot-table-source-range','getAutoFitColumnsMutations','addRecord','SHEET_PIVOT_EXCLUSIVE_ID','sheets-pivot.dateGroup.year','registerCommand','column','getTargetByPivotTableId','setLabelFilterInfo','updateDataFieldsCollection','AddField','@univerjs/engine-formula','varp','RemovePivotField','_markDirty$','paths','push','sheet.mutation.pivot-update-value-position','subscribe','getDataFieldByTableId','SheetsSelectionsService','getFilterInfo','displayName','getFieldById','pivotMutationGenerate','NUM','iterateField','_pivotTableInstanceCache','numberToABC','_subjectFieldsCollectionChange','sheets-pivot.cellDateGroupDisplay.quarter','endCollectChangeset','getRangeKeyList','getTargetByPivotId','toJSON','getGroupFieldsInfoByIds','DEFAULT_WORKSHEET_COLUMN_COUNT','sheets-pivot.emptyPivot.row','getSheetId','sheet.command.update-pivot-value-position','_pivotConfigChange$','getFullYear','Date','valid','document','split','register','createAsyncInterceptorKey','collections','fromJSON','version','_ensurePivotItemRenderInfoCache','originalFieldId','generateMutationsByRanges','NotNumber','SHEET_PIVOT_TABLE_PLUGIN','dataFieldId','targetCellInfo','headerMap','getValue','_textInfo','toStringTag','_commandService','dispose','getPivotTableRangeInfo','SetPivotFieldsConfigCommand','Year','foreach','PositionType','New','isPrefixValue','InterceptorEffectEnum','sheet.mutation.set-pivot-option','#FFFFFF','AddPivotTableMutation','exports','sheets-pivot.emptyPivot.column','RenameField','49112jQjDqd','Injector','UpdatePivotTableSourceRangeCommand','renameField','SetPivotOptionMutation','removeSourceRangeChange','getRefRangeMutationsByMoveRange','3423704FOofUK','formJSON','addPivotTableWithConfig','PivotErrorTypeEnum','SetPivotSortMutation','rowStyle','sheets-pivot.grandTotal','PivotTableFiledAreaEnum','transFromCellValue','workbook\x20is\x20not\x20found','getCurrentUnitForType','message','_refRangeHandle','dimension','measure','date','SetPivotFilter','return\x20','_ensureViewDataMap','getSubUnitPivotConfigs','sheet.command.pivot-drill-down','rgb(255,255,255)','CellValueType','sideEffectUpdateWorkerCache','_configVersion$','UpdatePivotFieldSourceInfoMutation','updateConfigCache','getFieldIds','number','grandTotal','SetPivotCollapseCommand','UniverInstanceType','setFieldFormat','concat','ResetPivotTable','RemoveRowMutation','MIN_SAFE_INTEGER','handleSourceRangeChange','getPivotTableIdByCell','UniverSheetsFilter','PivotViewCellValueTypeEnum','fieldsConfig','_initSnapshot','size','addField','textInfo','SetPivotCollapse','removeValueFilterInfoByValueFieldId','sheet.mutation.set-pivot-collapse','removeDataField','HourMinute','@univerjs/rpc','CELL_CONTENT','#b2b2b2','UniverSheetsPivotTablePlugin','_collectionConfigModel','isNaN','sheets-pivot.cellDateGroupDisplay.hour','maxDate','getDirtyInfo','setPivotInitCompleted','_collectionChange$','Panel','colHeaderMap','getFieldFormat','228ZTFYGH','sheet.command.move-pivot-table','Filter','_sheetInterceptorService','7ApSNkM','sheets-pivot.varName','getSubUnitPivotMatrix','cornerInfo','YearMonthDate','@univerjs/sheets-filter','registerCallbackWithEvent','isDateValue','type','_pivotInitCompleted$','removeValueFilterInfo','sheets-pivot.cellDateGroupDisplay.yearQuarter','DataField','getColumnCount','Plugin','PivotFilterTypeEnum','LS_CONFIG_KEY','IExclusiveRangeService','updateValuePosition','Subject','_lifecycleService','getId','RemovePivotFieldCommand','_localeService','options','_sheetsPivotDataSourceModel','_toJSON','InsertSheetMutation','pivotTableId','Hour','_initLocale','reset','@univerjs/core','stringify','DEFAULT_PIVOT_NUMBER','_deleteModelCache','_globalComputedStartHelpFunc','addCollection','sheets-pivot.cellDateGroupDisplay.hourMinute','IUniverInstanceService','setSourceName','sheet.mutation.update-date-group','filter','Div0','sheets-pivot.blank','getHeaderMapItem','markDirty$','collapseInfo','REF','panel','getInterceptPoints','ptn','_initRemoveSheetCommandInterceptor','minDate','COLUMN','splice','interceptor','sequenceExecute','forValue','_queryingMap','Value','product','updateAllDisplayName','sheets-pivot.dateGroup.hour','countNums','RemoveSheetsFilterMutation','sheet.operation.pivot-table-view-formula-mark-dirty','sheets.tabs.sheet','NotName','interceptCommand','sheets-pivot.varpName','handleMoveRange','colRanges','sheets-pivot.columnName','limit\x20pivot','updateViewInfo','UniverCore','MoveRangeCommand','UpdatePivotSource','tuple','FORCE_STRING','sheet.mutation.remove-pivot-table','ICommandService','fetchThroughAsyncInterceptors','COMMAND','Delete','sheets-pivot.stdDevpName','setDataRecordCount','sheet.command.set-pivot-filter','sourceName','IResourceManagerService','width','dataFieldManagerConfig','getViewData','rangeType','PivotTableViewDirtyMarkOperation','UpdatePivotFieldSettingCommand','setRangeValueRedoMutation','symbol','redos','_initViewModelBySheetInterceptor','SetRangeValuesUndoMutationFactory','Disposable','columnFields','getLastCol','3550176LJQDnz','Optional','getDate','_activeDirtyManagerService','UniverLicensePlugin','rangeKeyMap','getCollection','subtotal','setRangeValueUndoMutation','getSortInfo','getRangeData','PivotDataFieldDataTypeEnum','MovePivotTableCommand','level','PivotTable','sheet.mutation.add-pivot-field','format','node','Add','queryDirtyPivotTable','SheetsPivotTableAdaptorModel','keys','_updateRenderEmptyCache','RemovePivotTableMutation','getNoUsedDataFieldIds','Quarter','removePivotTable','_viewData','sheet.command.set-pivot-field-setting','UniverProEnginePivot','getMatrixValue','removeCollectionImp','14762610exqQiF','_deletePivotTableInstanceCache','getColumnWidth','_globalComputingSrv','hasField','_getPivotAppliedRanges','getUnitId','getDisplayName','MAX_SAFE_INTEGER','setName','Minute','updateRangeKeyMap','Inject','colStyle','generateRandomId','UpdateSource','deleteDataField','parseInt','batch','rxjs','tableFieldId','_initRegisterCommand','Product\x20of\x20','bind','unshift','updatePivotSource','generateSetRangeValueMutations','Column','sheets-pivot.dateGroup.quarter','UpdateFieldPositionMutation','cellValue','filterFields','createLabelField','unshiftString','excelDateToUnixMilliseconds','Total','substring','IUndoRedoService','SHEET_PIVOT_IN_MAIN_THREAD','info','_refRangeService','cornerRanges','PivotCallbackEnum','fieldId','fieldsCollectionChange$','UpdateValuePosition','_pivotRenderValueMatrixCache','getSubtotal','charCodeAt','getIntersectsPivotTable','AddPivotTableWithConfigCommand','generateHexNumber','UniverProLicense','valueFilter','SetCollapse','matrix','IActiveDirtyManagerService','refreshData','asObservable','var','PivotTableValuePositionEnum','setPivotFilter','setPivotSetting','viewData$','isBaseGroupField','AddPivotTable','BMewqJse\x20x2w3jvqJse(hJw2ed2,\x20vMDhJwI2j)\x20{\x20\x20\x20\x20q3j\x20{\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20hJw2ed2OeBsoT3qH33Tj\x20=\x20hJw2ed2.dvhJq(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20s3JmJeU2ddTm2\x20=\x20k5Wl.vT3d2(TqsD(hJw2ed2OeBsoT3qH33Tj[V]));\x20\x20\x20\x20\x20\x20\x20\x20JB\x20(!s3JmJeU2ddTm2.Mx)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20s3JmJeU2ddTm2.Mx\x20=\x20lMrD23(hJw2ed2OeBsoT3qH33Tj[t]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20Jd6s3E23\x20=\x20qjv2sB\x206s3E23ahsDTh5wsv2\x20!==\x20\x27Mex2BJe2x\x27\x20&&\x20d2hB\x20JedqTew2sB\x206s3E23ahsDTh5wsv2;\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20wseq2nq\x20=\x20Jd6s3E23\x20?\x20d2hB\x20:\x20GJexsG;\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20r2ddTm26s3x\x20=\x20wseq2nq.__CTd2ct__.vT3d2(hJw2ed2OeBsoT3qH33Tj[V]);\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20r2ddTm2\x20=\x20wseq2nq.__A2n__.dq3JemJBj(r2ddTm26s3x);\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20dJmeTqM326s3x\x20=\x20wseq2nq.__CTd2ct__.vT3d2(hJw2ed2OeBsoT3qH33Tj[Z]);\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20dJmeTqM32\x20=\x20wseq2nq.__A2n__.dq3JemJBj(dJmeTqM326s3x);\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20dJmebThJx\x20=\x20wseq2nq.__L23JBj__(dJmeTqM32,\x20r2ddTm2,\x20vMDhJwI2j);\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20xsrTJe\x20=\x20s3JmJeU2ddTm2.xr;\x20\x20\x20\x20\x20\x20\x20\x20BMewqJse\x20JdXsrTJeUTqw4Jem(soTqq23e,\x20sAsdq)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20vTqq23e\x20=\x20soTqq23e.32vhTw2(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x204sdq\x20=\x20sAsdq.32vhTw2(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20vTqq23eoT3qd\x20=\x20vTqq23e.dvhJq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x204sdqoT3qd\x20=\x204sdq.dvhJq(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JB\x20(!vTqq23e.JewhMx2d(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2032qM3e\x20vTqq23e\x20===\x204sdq;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JB\x20(vTqq23eoT3qd.h2emq4\x20<\x20V\x20||\x20vTqq23eoT3qd[S]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2032qM3e\x20BThd2;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20vTqq23e5MBBJn\x20=\x20vTqq23eoT3qd.dhJw2(Y).9sJe(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x204sdq5MBBJn\x20=\x204sdqoT3qd.dhJw2(-vTqq23eoT3qd.h2emq4\x20+\x20Y).9sJe(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2032qM3e\x20vTqq23e5MBBJn\x20===\x204sdq5MBBJn;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20h2q\x20xsrTJebThJx\x20=\x20(xsrTJe\x20&&\x20xsrTJe.h2emq4)\x20?\x20xsrTJe.dsr2((xrOq2r)\x20=>\x20JdXsrTJeUTqw4Jem(xrOq2r,\x20hswTqJse.4sdqeTr2))\x20:\x20q3M2;\x20\x20\x20\x20\x20\x20\x20\x20JB\x20(hswTqJse.4sdqeTr2\x20===\x20\x27hswTh4sdq\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20xsrTJebThJx\x20=\x20q3M2;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20wsedq\x20LThJx\x20=\x20dJmebThJx\x20&&\x20xsrTJebThJx;\x20\x20\x20\x20\x20\x20\x20\x2032qM3e\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LThJx,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20r2ddTm2:\x20s3JmJeU2ddTm2,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20wTqw4\x20(233s3)\x20{\x20\x20\x20\x20\x20\x20\x20\x2032qM3e\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20LThJx:\x20BThd2,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20r2ddTm2:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','sheet.mutation.set-pivot-filter','CustomCommandExecutionError','UpdateDateGroupCommand','SheetsPivotTableService','ManualFilter','sheets-pivot.subTotal','getCurrentSelections','filterInfo','SetRangeValuesMutation','name','PivotView','SheetsPivotDataSourceModel','createCollectionWithDataRange','defaultThemeStyle','updateCollectionConfig','subUnitId','setValue','configVersion$','updateView','pivotTableConfigs','FontCache','slice','areaInfo','defineProperty','refreshGroupField','sheet.command.add-pivot-field','sortInfo','#f4f4f5','adjustSheetCellData','registerPluginResource','filterId','_univerInstanceService','DataFieldManager','removeCollections','_subjectCollectionChange','RANGE_TYPE','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','Varp\x20of\x20','cellToRange','sheets-pivot.cellDateGroupDisplay.date','@univerjs-pro/license','startColumn','setDisplayName','getPivotTableConfig','disposableCollection','_sheetsPivotTableConfigModel','getOriginFieldId','_initGlobalComputed','setDirty','sheet.command.move-pivot-field','next','SheetsPivotTableConfigModel','clearExclusiveRangesByGroupId','notExecuteFormula','sheets-pivot.cellDateGroupDisplay.minute','getDataFieldItemInfo','_configService','createDataFieldId','ΣValue','pluginName','getName','getAutoDisplayName','intersects','forRow','addFieldWithSourceId','viewUpdate$','getActiveSheet','stdDev','getPivotTableCellData','Tools','rangesInfo','_ensurePivotTableRangeInfo','getMatrix','_pivotTableMatrixInfo','_dataSyncPrimaryController','updateConfig','find','PivotTableChangeTypeEnum','_dataFieldManagerCollection','_config','sheets-pivot.dateGroup.date','sheet.command.remove-pivot-field','resetPivotTable','mergeWorksheetSnapshotWithDefault','getColCount','forEach','getSheetBySheetName','addCollectionByJSON','min','hasOwnProperty','startRow','error','result','leafStyle','sheets-pivot.dateGroup.yearMonth','intercept','needSameDeleteModel','data','UniverEngineRender','_createExclusiveRange','disposeWithMe','sheet.mutation.set-pivot-sort-info','updateDirtyPivotTable','LocaleService','_exclusiveRangeService','getDataFieldByDataFieldId','GrandTotal','MovePivotField','dataFieldsCollection','dataStream','Grand\x20Total','10268iNUnOq','collectionChange$','valueIndex','blank','_sheetsSelectionsService','getFieldCountByArea','dateType','uniqueDataFieldName','sheet.mutation.remove-pivot-field','deepClone','getMonth','DisposableCollection','sheet.command.set-pivot-value-filter','getStyles','fieldIds','collectionConfig','getSheetFeatureLimit','NAME','setTextInfo','Style','_host','getPivotDisplayConfig','sum','registerDirtyService','pivotPerformCheck','SetFilterInfo','getDataFieldId','Rectangle','generateNewSheetName','AddPivotFieldCommand','token','isColMultiMeasure','pushUndoRedo','NUMBER','realDeleteValue','getDataFieldManager','fontRenderExtension','PivotDateGroupFieldDateTypeEnum','sheet.command.update-date-group','oldRangeInfo','update','isArray','DependentOn','getDataFieldByRangeKey','UpdatePivotTableSourceRangeMutation','RemovePivotFieldMutation','from','MovePivotFieldCommand','values','entries','rowCount','sheet.mutation.send-pivot-data-local','UNIVER_SHEET','_requestResolvers','isEmpty','sheets-pivot.dateGroup.yearMonthDate','getSheetBySheetId','Set','updatePivotTableRangeInfo','params','SetPivotValueFilterCommand','sheet.mutation.set-pivot-field-subtotal-type','sheets-pivot.dateGroup.monthDate','SetPivotFilterCommand','setPivotSort','leftOffset','ResetPivotFieldsConfigCommand','Sum\x20of\x20','3009500ecUQPc','DrillDown','getOwnPropertyDescriptor','single','UniverRpc','setCollapse','ErrorType','new','YearMonth','#1d32e9','getFieldPositionInfoById','_updateModelCache','isValue','handleAsyncResponse','getPivotTableInstance','floor','existing','getTextInfo','getRangeKey','Average\x20of\x20','getValueIndex','setConfig','has','random','updateRenderCache','_initCommandInterceptListener','PivotSubtotalTypeEnum','addDirtyPivotTable','drillDown','getSourceName','_injector','onCommandExecuted','pivotConfigChange$','SetWorksheetColWidthMutation','getUpdateRangeDeleteIds','endRow','parse','GlobalComputingStatusService','SetPivotFilterMutation','refreshDataField','onQueryEnd','shouldClear','subTotalStyle','setSubtotalType','row','_viewData$','Max\x20of\x20','getCellRaw','rangeKey','SetPivotSetting','setPivotTableConfig','pbt','executeCommand','createInterceptorKey','SetPivotTableConfig','get','addPivotTable','object','rangeCache','function','#e6ebfa','prototype','clearRenderCache','CommandType','getTextSize','undos','sheets-pivot.value','sheets-pivot.maxName','movePivotField','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','_ensurePivotMap','isDateGroupFieldJSON','DataSyncPrimaryController','setValueFilterInfo','delete','ObjectMatrix','Count\x20of\x20','string','getFieldDataType','getPivotItemRenderInfoCache','AddPivotFieldMutation','ClearSelectionAllCommand','@univerjs/engine-render','addDataFieldWithoutUnitInfo','AddPivotTableWithConfig','YearQuarter','RemoveField','RenamePivotFieldMutation','SheetInterceptorService','reduce','setRange','getInfo','sheets-pivot.emptyPivot.values','setValuePivotFilter','sheetName','iterateFieldByArea','dataRangeInfo','sheets-pivot.config','_getAutoName','PivotCellStyleTypeEnum','rowFields','sheets-pivot.countName','_viewUpdate$','(Blank)','sheets-pivot.dateGroup.month','Month','isFeatureAuthorizedWithinTime','some','_initUnitDisposed','getPivotTableMatrixInfo','colInfo','SetPivotPositionMutation','addPivotField','getFormat','ReleaseType','Module','Column\x20','setPivotTable','UniverProSheetsPivot','sheet.command.add-pivot-table','deleteField','getformat','FieldsCollection','getMatrixFromRunTimeData','_sheetsPivotTableAdaptorModel','RefRangeService','updatePivotTableMatrixInfo','serializeRangeWithSpreadsheet','initDataRanges','_globalComputedEndHelpFunc','iterateFieldDim','getRangeStartEndInfo','sheets-pivot.cellDateGroupDisplay.month','dataStyle','prefix','rowRanges','set','getFieldInfo','Range','Collapse','includes','unitId','_initDataSendListener','removeField','BadReference','contains','updateViewData','triggerDirtyFeature','PivotDisplayDataType','_initPivotDataGetListener','rowHeaderMap'];_0x2f7a=function(){return _0x55feef;};return _0x2f7a();}(function(_0x2b763e,_0x41b517){const _0x3fed25=_0x316b,_0x54a7a3=_0x2b763e();while(!![]){try{const _0xf4895e=-parseInt(_0x3fed25(0x402))/0x1+-parseInt(_0x3fed25(0x1a1))/0x2+-parseInt(_0x3fed25(0x44a))/0x3*(parseInt(_0x3fed25(0x273))/0x4)+parseInt(_0x3fed25(0x2b7))/0x5+parseInt(_0x3fed25(0x39b))/0x6*(parseInt(_0x3fed25(0x44e))/0x7)+parseInt(_0x3fed25(0x409))/0x8+parseInt(_0x3fed25(0x1c1))/0x9;if(_0xf4895e===_0x41b517)break;else _0x54a7a3['push'](_0x54a7a3['shift']());}catch(_0x5c52f3){_0x54a7a3['push'](_0x54a7a3['shift']());}}}(_0x2f7a,0xe48fd),function(_0x3bd7f8,_0x30f708){const _0x2c5850=_0x316b;typeof exports==_0x2c5850(0x2f0)&&typeof module<'u'?_0x30f708(exports,require('@univerjs-pro/engine-pivot'),require(_0x2c5850(0x46e)),require(_0x2c5850(0x3bf)),require(_0x2c5850(0x3ac)),require(_0x2c5850(0x1d4)),require(_0x2c5850(0x22c)),require(_0x2c5850(0x453)),require(_0x2c5850(0x43c)),require(_0x2c5850(0x309))):typeof define==_0x2c5850(0x2f2)&&define['amd']?define([_0x2c5850(0x3ff),'@univerjs-pro/engine-pivot',_0x2c5850(0x46e),'@univerjs/engine-formula',_0x2c5850(0x3ac),_0x2c5850(0x1d4),'@univerjs-pro/license','@univerjs/sheets-filter','@univerjs/rpc',_0x2c5850(0x309)],_0x30f708):(_0x3bd7f8=typeof globalThis<'u'?globalThis:_0x3bd7f8||self,_0x30f708(_0x3bd7f8[_0x2c5850(0x32d)]={},_0x3bd7f8[_0x2c5850(0x1be)],_0x3bd7f8[_0x2c5850(0x49a)],_0x3bd7f8[_0x2c5850(0x35b)],_0x3bd7f8['UniverSheets'],_0x3bd7f8[_0x2c5850(0x1d4)],_0x3bd7f8[_0x2c5850(0x1f5)],_0x3bd7f8[_0x2c5850(0x430)],_0x3bd7f8[_0x2c5850(0x2bb)],_0x3bd7f8[_0x2c5850(0x266)]));}(this,function(_0x4e9eda,_0x7008cc,_0x5b61bd,_0x8e7411,_0x2009a4,_0x5928f9,_0x573993,_0x12b322,_0x3f0d0a,_0x3d9691){'use strict';const _0x1e02b9=_0x316b;var _0x32719a=Object['defineProperty'],_0x5880ce=(_0x1699b9,_0x28ff60,_0x31038f)=>_0x28ff60 in _0x1699b9?_0x32719a(_0x1699b9,_0x28ff60,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x31038f}):_0x1699b9[_0x28ff60]=_0x31038f,_0xef46e3=(_0x42eab2,_0x3909a,_0x4c48e3)=>_0x5880ce(_0x42eab2,typeof _0x3909a!='symbol'?_0x3909a+'':_0x3909a,_0x4c48e3);const _0x440441=Number[_0x1e02b9(0x1d2)](0x68023927),_0x554a9e=0x10,_0x52c532=0x1,_0x2b9ea6='SHEET_PIVOT_TABLE_PLUGIN',_0x90963f=0x1,_0x352577='rgb(240,241,243)',_0x25a0dc=_0x1e02b9(0x41e),_0x41abf7=_0x1e02b9(0x43e),_0x18cff6=_0x1e02b9(0x21f),_0x2eafd4='#f4f4f5',_0x400995='#eceeff',_0x31fd60=_0x1e02b9(0x2c0),_0x14e1bc=_0x1e02b9(0x3fd),_0x2dbfec=_0x1e02b9(0x2f3),_0x376eef=_0x1e02b9(0x2c0),_0x592d04=_0x1e02b9(0x3fd),_0x3b4677='#e6ebfb',_0x894520=0xe,_0x1ae5b9=0x6;var _0x29ef15=(_0x25ecf1=>(_0x25ecf1['Existing']=_0x1e02b9(0x2c7),_0x25ecf1[_0x1e02b9(0x3f9)]=_0x1e02b9(0x2be),_0x25ecf1))(_0x29ef15||{});const _0x5caa5f={'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':''}}},_0x5bffd2=0x1e,_0x1a8f2a={'b':{'s':0x1,'cl':{'rgb':_0x41abf7}},'l':{'s':0x1,'cl':{'rgb':_0x41abf7}},'r':{'s':0x1,'cl':{'rgb':_0x41abf7}},'t':{'s':0x1,'cl':{'rgb':_0x41abf7}}},_0x519f45={'bg':{'rgb':_0x352577},'ht':0x2,'vt':0x2,'tb':0x1},_0x542466={'bg':{'rgb':_0x25a0dc},'ht':0x2,'vt':0x2,'tb':0x1},_0xde021f={'rowStyle':{'bg':{'rgb':_0x3b4677},'bd':_0x1a8f2a,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x376eef},'bd':null,'cl':{'rgb':_0x592d04},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x1a8f2a,'bg':{'rgb':_0x2dbfec},'vt':0x2},'cornerStyle':{'bd':_0x1a8f2a,'bg':{'rgb':_0x400995},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x1a8f2a,'bg':{'rgb':_0x18cff6},'vt':0x2},'leafStyle':{'bd':_0x1a8f2a,'bg':{'rgb':_0x2eafd4},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x31fd60},'cl':{'rgb':_0x14e1bc},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x1a8f2a,'vt':0x2}};function _0x185713(_0x2e475d,_0x3f976b,_0x36e8b5){const _0x32d91c=_0x1e02b9,_0x4bb170=_0x2e475d['get'](_0x5b61bd[_0x32d91c(0x26b)]),_0x20bcd6=_0x36e8b5[_0x32d91c(0x3e1)]('_');switch(_0x3f976b){case _0x7008cc[_0x32d91c(0x298)]['Year']:return _0x4bb170['t']('sheets-pivot.cellDateGroupDisplay.year',..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)]['Minute']:return _0x4bb170['t'](_0x32d91c(0x23a),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x46b)]:return _0x4bb170['t'](_0x32d91c(0x442),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x43b)]:return _0x4bb170['t'](_0x32d91c(0x474),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x3de)]:return _0x4bb170['t'](_0x32d91c(0x22b),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x320)]:return _0x4bb170['t'](_0x32d91c(0x33b),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x1ba)]:return _0x4bb170['t'](_0x32d91c(0x3d2),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x2bf)]:return _0x4bb170['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x452)]:return _0x4bb170['t'](_0x32d91c(0x3a8),..._0x20bcd6);case _0x7008cc[_0x32d91c(0x298)][_0x32d91c(0x30c)]:return _0x4bb170['t'](_0x32d91c(0x459),..._0x20bcd6);}return'';}const _0x4c6394=(_0x2343b1,_0x5920df,_0x24d0c1,_0x322dac)=>{const _0x1f46ff=_0x1e02b9;let _0x560c99;const _0x1b2eea=_0x2343b1[_0x1f46ff(0x2ee)](_0x5b61bd[_0x1f46ff(0x475)])[_0x1f46ff(0x413)](_0x5b61bd[_0x1f46ff(0x428)][_0x1f46ff(0x2a7)]);if(!_0x1b2eea)return null;const _0x234032=_0x1b2eea[_0x1f46ff(0x280)]();let _0x398438;if(_0x24d0c1&&(_0x398438=_0x234032[_0x1f46ff(0x214)](_0x24d0c1)),_0x5920df!=null&&_0x5920df['v']||(_0x5920df==null?void 0x0:_0x5920df['v'])===0x0){_0x560c99||(_0x560c99={});const _0xa2b78b=_0x22e542(_0x5920df['v']);typeof _0xa2b78b==_0x1f46ff(0x425)?_0x560c99['t']=_0x5b61bd['CellValueType'][_0x1f46ff(0x294)]:typeof _0xa2b78b==_0x1f46ff(0x304)&&(_0x560c99['t']=_0x5b61bd[_0x1f46ff(0x41f)]['STRING']),_0x560c99['v']=_0xa2b78b;}if((_0x5920df!=null&&_0x5920df['i']||(_0x5920df==null?void 0x0:_0x5920df['i'])===0x0)&&(_0x560c99||(_0x560c99={}),_0x560c99['fi']=_0x5920df['i']),_0x5920df!=null&&_0x5920df['s']&&(_0x560c99||(_0x560c99={}),_0x560c99[_0x1f46ff(0x2ea)]=_0x5920df['s']),_0x24d0c1&&(_0x560c99||(_0x560c99={}),_0x560c99['s']=_0x398438),_0x322dac&&_0x560c99!=null&&_0x560c99['v']&&_0x560c99['pbt']!==_0x7008cc[_0x1f46ff(0x31a)][_0x1f46ff(0x26e)]&&_0x560c99[_0x1f46ff(0x2ea)]!==_0x7008cc['PivotCellStyleTypeEnum'][_0x1f46ff(0x365)]){const _0x2487b4=String(_0x560c99['v']),{dateType:_0x48181b}=_0x322dac;_0x560c99['v']=_0x185713(_0x2343b1,_0x48181b,_0x2487b4),_0x560c99['t']=_0x5b61bd[_0x1f46ff(0x41f)]['STRING'];}return _0x560c99;},_0x19b724=(_0x281be0,_0x126156,_0x4e32bc,_0x5c0658)=>{const _0x56d715=_0x1e02b9;var _0x1fc3e3,_0x53613e,_0x1316e4,_0x287da8,_0x460384,_0x2aa178,_0x2d84f0,_0x4c824,_0x3fc5d9,_0x1935e3,_0x7449b8,_0x3a6514,_0x3e63e9,_0x5931cb;const _0x24049a=_0x4e32bc['targetCellInfo'],{cornerView:_0x3b3edb,rowView:_0x46ed00,colView:_0x32c69a,dataView:_0x5b914c,pageView:_0x256705,formatMap:_0x539c89,groupInfo:_0x551221}=_0x126156,{row:_0x200051,col:_0x4708c3}=_0x24049a,_0x1b4f6d=new _0x5b61bd[(_0x56d715(0x302))](),_0x5e6641={},_0x3fe9cb={},_0x2f93a4={},_0x219ea5={},_0x2de9f3={};let _0x1f5d4e=_0x200051,_0x212f93=_0x4708c3;Object[_0x56d715(0x1b6)](_0x256705[_0x56d715(0x265)])['forEach'](_0x582e8a=>{const _0x280d16=_0x56d715;Object[_0x280d16(0x1b6)](_0x256705[_0x280d16(0x265)][Number(_0x582e8a)])[_0x280d16(0x259)](_0x586a4c=>{const _0x3e8570=_0x280d16,_0x22c345={..._0x256705[_0x3e8570(0x265)][Number(_0x582e8a)][Number(_0x586a4c)]};_0x1b4f6d[_0x3e8570(0x214)](Number(_0x582e8a)+_0x1f5d4e,Number(_0x586a4c)+_0x212f93,_0x4c6394(_0x281be0,_0x22c345,_0xde021f['pageStyle']));});});const _0x5657cc=Object['keys'](_0x256705[_0x56d715(0x265)])[_0x56d715(0x370)];_0x1f5d4e+=_0x5657cc+(_0x5657cc?_0x90963f:0x0);const _0x42a291=_0x3b3edb['getRowCount'](),_0x3b71d4=_0x3b3edb[_0x56d715(0x258)]();for(let _0x18f252=0x0;_0x18f252<_0x42a291;_0x18f252++)for(let _0x2c1a8a=0x0;_0x2c1a8a<_0x3b71d4;_0x2c1a8a++){const _0x5b889c={...(_0x53613e=(_0x1fc3e3=_0x3b3edb['data'])==null?void 0x0:_0x1fc3e3[_0x18f252])==null?void 0x0:_0x53613e[_0x2c1a8a]};_0x5b889c&&((_0x1316e4=_0x46ed00[_0x56d715(0x3ee)][_0x2c1a8a])!=null&&_0x1316e4[_0x56d715(0x2c3)])&&_0x2c1a8a===_0x3b71d4-0x1&&_0x18f252===_0x42a291-0x1&&(_0x5b889c['v']=''+_0x5c0658['sheets-pivot.value']),_0x1b4f6d[_0x56d715(0x214)](_0x18f252+_0x1f5d4e,_0x2c1a8a+_0x212f93,_0x4c6394(_0x281be0,_0x5b889c,_0xde021f['cornerStyle']));}for(let _0x2fb27a=0x0;_0x2fb27a<_0x3b3edb[_0x56d715(0x1e8)][_0x56d715(0x370)];_0x2fb27a++)_0x3b3edb['info'][_0x2fb27a]&&(_0x2f93a4[''+(_0x2fb27a+_0x212f93)]=_0x3b3edb['info'][_0x2fb27a]);_0x212f93+=_0x3b71d4;const _0x559cdf=_0x32c69a[_0x56d715(0x3ee)],_0x213b1c=_0x32c69a[_0x56d715(0x35c)]()>=0x0?_0x32c69a[_0x56d715(0x35c)]()+0x1:0x0,_0xfbe746=_0x32c69a[_0x56d715(0x1a0)]()>=0x0?_0x32c69a['getLastCol']()+0x1:0x0;for(let _0x38c527=0x0;_0x38c527<_0xfbe746;_0x38c527++){for(let _0x5b6efd=0x0;_0x5b6efd<_0x213b1c;_0x5b6efd++){const _0x4c4095={...(_0x460384=(_0x287da8=_0x32c69a[_0x56d715(0x265)])==null?void 0x0:_0x287da8[_0x5b6efd])==null?void 0x0:_0x460384[_0x38c527]},_0x161e79=(_0x2aa178=_0x559cdf[_0x5b6efd])==null?void 0x0:_0x2aa178[_0x56d715(0x1d5)],_0x17e6ee=_0x539c89[_0x161e79],_0x4cc019=_0x551221[_0x161e79];_0x4c4095&&(_0x4c4095['v']=_0x34f9f3(_0x4c4095,_0x5b6efd===0x0&&((_0x2d84f0=_0x32c69a[_0x56d715(0x47b)](_0x38c527+0x1))==null?void 0x0:_0x2d84f0[_0x56d715(0x2c3)]),_0x17e6ee,_0x5c0658));let _0x39ba3c;_0x17e6ee?_0x39ba3c={..._0xde021f[_0x56d715(0x1ce)],'n':{'pattern':_0x17e6ee}}:_0x39ba3c={..._0xde021f[_0x56d715(0x1ce)]},_0x1b4f6d[_0x56d715(0x214)](_0x5b6efd+_0x1f5d4e,_0x38c527+_0x212f93,_0x4c6394(_0x281be0,_0x4c4095,_0x39ba3c,_0x4cc019));}_0x32c69a[_0x56d715(0x1e8)][_0x38c527]&&(_0x3fe9cb[''+(_0x38c527+_0x212f93)]=_0x32c69a[_0x56d715(0x1e8)][_0x38c527]),_0x32c69a['headerMap'][_0x38c527+0x1]&&(_0x2de9f3[''+(_0x38c527+_0x1f5d4e+0x1)]=_0x32c69a['headerMap'][_0x38c527+0x1]);}_0x1f5d4e+=_0x42a291;const _0x4f9913=_0x46ed00[_0x56d715(0x3ee)],_0x397abb=_0x46ed00[_0x56d715(0x35c)]()>=0x0?_0x46ed00[_0x56d715(0x35c)]()+0x1:0x0,_0x4426e3=_0x46ed00[_0x56d715(0x1a0)]()>=0x0?_0x46ed00[_0x56d715(0x1a0)]()+0x1:0x0;for(let _0x2d04ea=0x0;_0x2d04ea<_0x397abb;_0x2d04ea++){for(let _0x238390=0x0;_0x238390<_0x4426e3;_0x238390++){const _0x59da87={...(_0x3fc5d9=(_0x4c824=_0x46ed00['data'])==null?void 0x0:_0x4c824[_0x2d04ea])==null?void 0x0:_0x3fc5d9[_0x238390]},_0xe5581d=(_0x1935e3=_0x4f9913[_0x238390])==null?void 0x0:_0x1935e3[_0x56d715(0x1d5)],_0x2bd1bc=_0x539c89[_0xe5581d],_0x35ed51=_0x551221[_0xe5581d];_0x59da87&&(_0x59da87['v']=_0x34f9f3(_0x59da87,!0x1,_0x2bd1bc,_0x5c0658));let _0x33e7c0;_0x46ed00[_0x56d715(0x1e8)][_0x2d04ea][_0x56d715(0x1ae)]===_0x46ed00[_0x56d715(0x258)]()?_0x33e7c0=_0xde021f[_0x56d715(0x261)]:_0x46ed00[_0x56d715(0x1e8)][_0x2d04ea]['isBottomTotal']?_0x33e7c0=_0x46ed00[_0x56d715(0x1e8)][_0x2d04ea]['level']===0x0?_0xde021f[_0x56d715(0x426)]:_0xde021f['subTotalStyle']:_0x33e7c0=_0xde021f[_0x56d715(0x40e)],_0x2bd1bc&&(_0x33e7c0={..._0x33e7c0,'n':{'pattern':_0x2bd1bc}}),_0x1b4f6d[_0x56d715(0x214)](_0x2d04ea+_0x1f5d4e,_0x238390+_0x4708c3,_0x4c6394(_0x281be0,_0x59da87,_0x33e7c0,_0x35ed51));}_0x46ed00['info'][_0x2d04ea]&&(_0x5e6641[''+(_0x2d04ea+_0x1f5d4e)]=_0x46ed00[_0x56d715(0x1e8)][_0x2d04ea]),_0x46ed00[_0x56d715(0x3ee)][_0x2d04ea]&&(_0x219ea5[''+(_0x2d04ea+_0x4708c3)]=_0x46ed00[_0x56d715(0x3ee)][_0x2d04ea]);}const _0x55dd70=_0x5b914c['getRowCount'](),_0x35c026=_0x5b914c['getColCount']();for(let _0xfc53ea=0x0;_0xfc53ea<_0x55dd70;_0xfc53ea++)for(let _0x58c5f2=0x0;_0x58c5f2<_0x35c026;_0x58c5f2++){const _0x5beed1={...(_0x3a6514=(_0x7449b8=_0x5b914c[_0x56d715(0x265)])==null?void 0x0:_0x7449b8[_0xfc53ea])==null?void 0x0:_0x3a6514[_0x58c5f2]};let _0x15e5a5;_0x46ed00[_0x56d715(0x1e8)][_0xfc53ea]['isBottomTotal']?_0x15e5a5=_0x46ed00[_0x56d715(0x1e8)][_0xfc53ea]['level']===0x0?_0xde021f['grandTotal']:_0xde021f[_0x56d715(0x2e1)]:_0x15e5a5=_0xde021f[_0x56d715(0x33c)];const _0x28b324=_0x46ed00[_0x56d715(0x1e8)][_0xfc53ea][_0x56d715(0x275)],_0x1303dd=_0x32c69a[_0x56d715(0x1e8)][_0x58c5f2][_0x56d715(0x275)],_0x44f095=Math[_0x56d715(0x368)](_0x28b324,_0x1303dd),_0xe51e6e=_0x4e32bc[_0x56d715(0x432)]['valueFields'][_0x56d715(0x42a)]();let _0x22dc74='';_0x44f095<0x0?_0x22dc74=(_0x3e63e9=_0xe51e6e[0x0])!=null?_0x3e63e9:'':_0x22dc74=(_0x5931cb=_0xe51e6e[_0x44f095])!=null?_0x5931cb:'';const _0x4ab6d8=_0x539c89[_0x22dc74];_0x4ab6d8&&(_0x15e5a5={..._0x15e5a5,'n':{'pattern':_0x4ab6d8}}),_0x1b4f6d[_0x56d715(0x214)](_0xfc53ea+_0x1f5d4e,_0x58c5f2+_0x212f93,_0x4c6394(_0x281be0,_0x5beed1,_0x15e5a5));}return{'valueMatrix':_0x1b4f6d,'rowInfo':_0x5e6641,'colInfo':_0x3fe9cb,'cornerInfo':_0x2f93a4,'rowHeaderMap':_0x219ea5,'colHeaderMap':_0x2de9f3};};function _0x34f9f3(_0x1a8751,_0x1b3d49,_0x38f796,_0x56ac77){const _0x370372=_0x1e02b9;let _0x505bec=_0x1a8751['v'];_0x1b3d49&&(_0x505bec=''+_0x56ac77[_0x370372(0x2f9)]);const _0x463d24=_0x1a8751['t']&&(_0x1a8751['t']&_0x7008cc[_0x370372(0x431)][_0x370372(0x276)])>0x0;if(_0x463d24&&(_0x505bec=''+_0x56ac77[_0x370372(0x47a)]),_0x1a8751['s']===_0x7008cc[_0x370372(0x31a)]['Subtotal']){let _0x58d75e=_0x505bec,_0x1a46b1='';_0x7008cc[_0x370372(0x3fa)](_0x505bec)&&(_0x58d75e=_0x505bec[_0x370372(0x33d)],_0x1a46b1=_0x505bec['value']);const _0x2db309=_0x38f796&&!_0x463d24?_0x5b61bd[_0x370372(0x39c)][_0x370372(0x1b1)](_0x38f796,Number(_0x58d75e)):_0x58d75e;_0x1a46b1?_0x505bec=_0x2db309+'\x20'+_0x1a46b1:_0x505bec=_0x2db309+'\x20'+_0x56ac77[_0x370372(0x209)];}else _0x1a8751['s']===_0x7008cc[_0x370372(0x31a)][_0x370372(0x26e)]&&(_0x505bec=_0x505bec+'\x20'+_0x56ac77[_0x370372(0x40f)]);return _0x505bec;}function _0x22e542(_0x5eed78){const _0x3396f9=_0x1e02b9;if(_0x7008cc[_0x3396f9(0x3a3)](_0x5eed78)){const {errorType:_0x17a866}=_0x5eed78;switch(_0x17a866){case _0x7008cc[_0x3396f9(0x40c)][_0x3396f9(0x479)]:return _0x8e7411['ErrorType'][_0x3396f9(0x3b0)];case _0x7008cc[_0x3396f9(0x40c)][_0x3396f9(0x3ea)]:return _0x8e7411[_0x3396f9(0x2bd)][_0x3396f9(0x3cd)];case _0x7008cc[_0x3396f9(0x40c)][_0x3396f9(0x3a5)]:return _0x8e7411['ErrorType'][_0x3396f9(0x284)];case _0x7008cc[_0x3396f9(0x40c)][_0x3396f9(0x492)]:return _0x8e7411[_0x3396f9(0x2bd)]['NAME'];case _0x7008cc[_0x3396f9(0x40c)][_0x3396f9(0x347)]:return _0x8e7411[_0x3396f9(0x2bd)][_0x3396f9(0x47e)];}}return _0x5eed78;}function _0x18c8ea(_0x5d4d52,_0x390cce,_0x30d02f=!0x1,_0x28d903=!0x1){const _0x3197f9=_0x1e02b9,{data:_0x21fcd5}=_0x390cce,_0x322b26=_0x390cce[_0x3197f9(0x3a0)](),_0x146c38=_0x390cce[_0x3197f9(0x258)]();if(_0x322b26<=0x0||_0x146c38<=0x0)return[];const _0x2bb52c=_0x390cce[_0x3197f9(0x1a0)](),_0x13f6ab=_0x390cce[_0x3197f9(0x35c)](),_0x5eead2=_0x28d903?_0x13f6ab>=0x0?_0x13f6ab+0x1:0x0:_0x322b26,_0x4123f4=_0x28d903?_0x2bb52c>=0x0?_0x2bb52c+0x1:0x0:_0x146c38,{row:_0x23b171,col:_0x3acbd8}=_0x5d4d52,_0x279abc=_0x23b171,_0x18f931=_0x3acbd8;if(_0x30d02f){const _0x1a4c56=[];for(const [_0x30fc6c,_0x205ed9]of Object[_0x3197f9(0x2a4)](_0x21fcd5))for(const [_0xc821b9,_0x7d0086]of Object[_0x3197f9(0x2a4)](_0x205ed9))_0x1a4c56[_0x3197f9(0x3c4)](_0x5b61bd[_0x3197f9(0x22a)](_0x279abc+Number(_0x30fc6c),_0x18f931+Number(_0xc821b9)));return _0x1a4c56;}else{const _0x1a9be7=_0x28d903?_0x5eead2>0x0?0x1:0x0:0x1,_0x22fd75=_0x28d903?_0x4123f4>0x0?0x1:0x0:0x1,_0x265b1a=_0x23b171+_0x5eead2-_0x1a9be7,_0x2c5a0c=_0x3acbd8+_0x4123f4-_0x22fd75;return[{'startRow':_0x279abc,'startColumn':_0x18f931,'endRow':_0x265b1a,'endColumn':_0x2c5a0c}];}}const _0x1ea5d8=_0x1e02b9(0x1e7),_0x154002=_0x1e02b9(0x3b7);var _0x4f52d8=(_0x11ca35=>(_0x11ca35[_0x1e02b9(0x44c)]=_0x1e02b9(0x478),_0x11ca35[_0x1e02b9(0x447)]=_0x1e02b9(0x47f),_0x11ca35[_0x1e02b9(0x357)]=_0x1e02b9(0x327),_0x11ca35[_0x1e02b9(0x30b)]=_0x1e02b9(0x30b),_0x11ca35[_0x1e02b9(0x202)]=_0x1e02b9(0x2ef),_0x11ca35['MovePivotField']='movePivotField',_0x11ca35[_0x1e02b9(0x3c1)]=_0x1e02b9(0x3b2),_0x11ca35[_0x1e02b9(0x437)]=_0x1e02b9(0x356),_0x11ca35[_0x1e02b9(0x419)]='setPivotFilter',_0x11ca35[_0x1e02b9(0x3af)]='setPivotSort',_0x11ca35['SetPivotSetting']=_0x1e02b9(0x1ff),_0x11ca35[_0x1e02b9(0x49c)]=_0x1e02b9(0x1da),_0x11ca35[_0x1e02b9(0x1ee)]='updateValuePosition',_0x11ca35['DrillDown']=_0x1e02b9(0x2d3),_0x11ca35['SetValuePivotFilter']=_0x1e02b9(0x314),_0x11ca35[_0x1e02b9(0x2ed)]=_0x1e02b9(0x2e9),_0x11ca35['ResetPivotTable']=_0x1e02b9(0x256),_0x11ca35))(_0x4f52d8||{});const _0x5b549e={'sheets-pivot.blankValue':_0x1e02b9(0x31e),'sheets-pivot.columnName':_0x1e02b9(0x32b),'sheets-pivot.subTotalText':_0x1e02b9(0x1e4),'sheets-pivot.grandTotalText':_0x1e02b9(0x272),'sheets-pivot.valueText':'Value','sheets-pivot.averageName':_0x1e02b9(0x2ca),'sheets-pivot.countName':_0x1e02b9(0x303),'sheets-pivot.countNumsName':_0x1e02b9(0x303),'sheets-pivot.maxName':_0x1e02b9(0x2e5),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':_0x1e02b9(0x1d7),'sheets-pivot.stdDevName':'StdDev\x20of\x20','sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x1e02b9(0x2b6),'sheets-pivot.varName':_0x1e02b9(0x37a),'sheets-pivot.varpName':_0x1e02b9(0x229),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x1e02b9(0x36c),'sheets-pivot.blank':'blank','sheets-pivot.emptyPivot.filter':_0x1e02b9(0x44c),'sheets-pivot.emptyPivot.row':_0x1e02b9(0x354),'sheets-pivot.emptyPivot.column':_0x1e02b9(0x1dc),'sheets-pivot.emptyPivot.values':_0x1e02b9(0x3a4)},_0x4ce09b={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x27b0ca=_0x5b61bd[_0x1e02b9(0x3e3)](_0x1e02b9(0x28b)),_0x41d518=_0x5b61bd[_0x1e02b9(0x2ec)](_0x1e02b9(0x3cc));var _0x25f8c4=(_0x2c1096=>(_0x2c1096[_0x1e02b9(0x397)]=_0x1e02b9(0x397),_0x2c1096[_0x1e02b9(0x301)]=_0x1e02b9(0x301),_0x2c1096[_0x1e02b9(0x29b)]=_0x1e02b9(0x29b),_0x2c1096))(_0x25f8c4||{}),_0x407136=(_0x3c98b3=>(_0x3c98b3[_0x1e02b9(0x1b3)]=_0x1e02b9(0x397),_0x3c98b3[_0x1e02b9(0x2ac)]=_0x1e02b9(0x33f),_0x3c98b3[_0x1e02b9(0x18d)]='delete',_0x3c98b3))(_0x407136||{});const _0x36e952={0x0:'T',0x1:'q',0x2:'e',0x3:'r',0x4:'h',0x5:'S',0x6:'W',0x7:'X',0x8:'5',0x9:'j','S':'0','Y':'1','V':'2','Z':'3','t':'4','c':'6','R':'7','u':'8','y':'9','T':'a','D':'b','w':'c','x':'d','B':'f','m':'g','J':'i','E':'k','h':'l','r':'m','e':'n','s':'o','v':'p','d':'s','q':'t','M':'u','L':'v','G':'w','n':'x','j':'y','P':'z','H':'A','C':'B','z':'C','X':'D','K':'E','N':'F','a':'G','A':'H','O':'I','k':'J','I':'K','g':'L','U':'M','l':'N','W':'O','o':'P','f':'Q','F':'R','i':'U','b':'V','Q':'Y','p':'Z'},_0xfe5d8=_0x1e02b9(0x203),_0x4fe5d7={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['MUTATION'],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x557855={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x2a6),'handler':()=>!0x0},_0x2727e2={'type':_0x5b61bd['CommandType']['MUTATION'],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},_0x13d163={'type':_0x5b61bd['CommandType'][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x37e),'handler':()=>!0x0},_0xb20377={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['MUTATION'],'id':'sheet.mutation.send-init-pivot-text-local','handler':()=>!0x0},_0x4e0296=_0x508e8b=>{const _0x3aa35b=_0x1e02b9;var _0x1d0c16;return((_0x1d0c16=_0x508e8b[_0x3aa35b(0x381)])==null?void 0x0:_0x1d0c16[_0x3aa35b(0x271)]['replace'](/\r\n$/,''))||'';};class _0x6d40e extends _0x7008cc[_0x1e02b9(0x224)]{constructor(_0x7474eb,_0x42f38f){const _0x3f0e66=_0x1e02b9;super(),_0xef46e3(this,_0x3f0e66(0x1a6),{}),_0xef46e3(this,_0x3f0e66(0x223)),_0xef46e3(this,_0x3f0e66(0x287)),(this[_0x3f0e66(0x223)]=_0x42f38f,this['_host']=_0x7474eb);}['initDataRanges'](){const _0x471bec=_0x1e02b9;for(const _0x4d769f in this[_0x471bec(0x35a)]){const _0x34a606=this[_0x471bec(0x35a)][_0x4d769f],_0x38b932=_0x34a606[_0x471bec(0x2c9)]();this[_0x471bec(0x1a6)][_0x38b932]=_0x34a606[_0x471bec(0x463)]();}}[_0x1e02b9(0x38d)](){const _0x7de023=_0x1e02b9,_0x50ed98=this[_0x7de023(0x287)];return _0x2609b8[_0x7de023(0x1d8)](_0x50ed98);}[_0x1e02b9(0x1d1)](_0x19b643){const _0x726918=_0x1e02b9,_0x28e139=this[_0x726918(0x35a)][_0x19b643][_0x726918(0x2e7)];delete this[_0x726918(0x35a)][_0x19b643],delete this['rangeKeyMap'][_0x28e139];}[_0x1e02b9(0x30a)](_0x4c6593){const _0x35b69e=_0x1e02b9;this['dataFields'][_0x4c6593[_0x35b69e(0x463)]()]=_0x4c6593;}[_0x1e02b9(0x1c0)](_0x4183a5){const _0x52fbd8=_0x1e02b9;var _0x271511,_0x2654f6;const _0x3dafaa=this['_host'][_0x52fbd8(0x3d5)](_0x4183a5);if(_0x3dafaa){const {unitId:_0x1d2bb4,subUnitId:_0x38badf}=_0x3dafaa,_0x9a2907=(_0x271511=this[_0x52fbd8(0x287)][_0x52fbd8(0x22f)](_0x1d2bb4,_0x38badf,_0x4183a5))==null?void 0x0:_0x271511['sourceRangeInfo'];this[_0x52fbd8(0x287)]['broadcastCollectionChange']({'token':_0x4183a5,'type':_0x25f8c4[_0x52fbd8(0x301)],'dataRangeInfo':_0x9a2907});}(_0x2654f6=this[_0x52fbd8(0x1a7)](_0x4183a5))==null||_0x2654f6[_0x52fbd8(0x3f3)](),delete this[_0x52fbd8(0x3e4)][_0x4183a5];}[_0x1e02b9(0x2c9)](_0x8be6cb,_0x1e5d6a){const _0x4ece19=_0x1e02b9,{sheetName:_0x526bd0,unitId:_0x3d470b,range:_0x36c252}=_0x8be6cb,{startRow:_0x12b886,endRow:_0x195b2f}=_0x36c252;return _0x8e7411[_0x4ece19(0x336)](_0x3d470b,_0x526bd0,{'startRow':_0x12b886,'endRow':_0x195b2f,'startColumn':_0x1e5d6a,'endColumn':_0x1e5d6a});}[_0x1e02b9(0x29e)](_0x25db56){const _0x3ce13f=_0x1e02b9;return this[_0x3ce13f(0x35a)][this['rangeKeyMap'][_0x25db56]];}[_0x1e02b9(0x34e)](_0x5ada91,_0x50de6b){const _0x7797ec=_0x1e02b9;this[_0x7797ec(0x1a6)][_0x5ada91]=_0x50de6b;}['updateRangeKeyMap'](_0x123727,_0x35200b){const _0x295258=_0x1e02b9;this['rangeKeyMap'][_0x35200b]=this[_0x295258(0x1a6)][_0x123727],delete this[_0x295258(0x1a6)][_0x123727];}[_0x1e02b9(0x25b)](_0xcb9951,_0x710377,_0x3b9529,_0xa4ac5c){const _0x10a601=_0x1e02b9,_0x565ef1=new _0x7008cc[(_0x10a601(0x331))](this);_0x565ef1[_0x10a601(0x3e5)](_0x710377);const _0x243ed9=[];let _0x11bcf8=0x0;for(const _0x5f12c6 of _0x565ef1[_0x10a601(0x281)]){const _0x7f1395=this['getRangeKey'](_0x3b9529,_0x11bcf8),_0x3c14f5=this[_0x10a601(0x35a)][_0x5f12c6];_0x3c14f5&&(_0x3c14f5[_0x10a601(0x2e7)]=_0x7f1395,this[_0x10a601(0x34e)](_0x7f1395,_0x5f12c6),_0x243ed9['push']({'index':_0x11bcf8,'dataField':_0x3c14f5})),_0x11bcf8++;}return this[_0x10a601(0x473)](_0xcb9951,_0x565ef1,_0x3b9529,_0xa4ac5c),{'collection':_0x565ef1,'updateDataFieldList':_0x243ed9};}[_0x1e02b9(0x33a)](_0x321b9b,_0x21565c){const _0x331e32=_0x1e02b9;return _0x321b9b[_0x331e32(0x196)]===_0x5b61bd[_0x331e32(0x227)][_0x331e32(0x484)]?{'startRow':0x0,'startColumn':_0x321b9b['startColumn'],'endRow':_0x21565c[_0x331e32(0x3a0)]()-0x1,'endColumn':_0x321b9b[_0x331e32(0x394)]}:{'startRow':_0x321b9b['startRow'],'startColumn':_0x321b9b[_0x331e32(0x22d)],'endRow':_0x321b9b[_0x331e32(0x2da)],'endColumn':_0x321b9b[_0x331e32(0x394)]};}[_0x1e02b9(0x210)](_0x19e999){const _0x3b22bc=_0x1e02b9,{sheetName:_0x387f5c,range:_0x35ac3a}=_0x19e999,_0x3d6bff=this[_0x3b22bc(0x223)][_0x3b22bc(0x413)](_0x5b61bd['UniverInstanceType'][_0x3b22bc(0x2a7)]),_0x255e31=_0x3d6bff[_0x3b22bc(0x25a)](_0x387f5c),_0x3836ab=_0x255e31[_0x3b22bc(0x3ab)](),{startColumn:_0x3b58f2,startRow:_0x42c542,endColumn:_0x11ad2a}=this[_0x3b22bc(0x33a)](_0x35ac3a,_0x255e31),_0x364581=_0x3d6bff['getStyles'](),_0x3bb736=new _0x7008cc[(_0x3b22bc(0x331))](this);_0x3bb736[_0x3b22bc(0x311)](_0x19e999);const _0x28e195=[],_0x52758a={};for(let _0x2983e8=_0x3b58f2;_0x2983e8<=_0x11ad2a;_0x2983e8++){const _0x67305b=_0x3836ab['getValue'](_0x42c542,_0x2983e8),_0x570d8d=this[_0x3b22bc(0x2c9)](_0x19e999,_0x2983e8),_0x56fddd=this[_0x3b22bc(0x29e)](_0x570d8d);if(_0x56fddd)_0x3bb736[_0x3b22bc(0x435)](_0x56fddd['getId'](),_0x56fddd[_0x3b22bc(0x240)]());else{const _0x2f776e=this[_0x3b22bc(0x23d)]();let _0x220df8=this['adjustSheetCellData'](_0x67305b,_0x364581,_0x52758a);_0x7008cc['isDateValue'](_0x220df8)&&(_0x220df8=_0x5b61bd['numfmt']['format'](_0x220df8['f'],Number(_0x220df8['v'])));const _0x176d7d=this[_0x3b22bc(0x27a)](_0x220df8,_0x2983e8),_0x503296=new _0x7008cc[(_0x3b22bc(0x45a))](_0x2f776e,_0x176d7d,_0x7008cc['generateHexNumber'](0x3));_0x503296['rangeKey']=_0x570d8d,this[_0x3b22bc(0x35a)][_0x2f776e]=_0x503296,_0x3bb736[_0x3b22bc(0x435)](_0x2f776e,_0x176d7d),_0x28e195[_0x3b22bc(0x3c4)]({'index':_0x2983e8,'dataField':_0x503296});}}return{'updateDataFieldList':_0x28e195,'collection':_0x3bb736};}[_0x1e02b9(0x319)](_0x345d25){const _0x491bda=_0x1e02b9;return this[_0x491bda(0x287)][_0x491bda(0x2c8)]()[_0x491bda(0x497)]+'\x20'+_0x5b61bd[_0x491bda(0x3d0)](_0x345d25);}['uniqueDataFieldName'](_0x123ef7,_0x345895){return _0x123ef7==null||_0x123ef7===''?this['_getAutoName'](_0x345895):String(_0x123ef7);}[_0x1e02b9(0x1a7)](_0x52985c){return this['collections'][_0x52985c];}['addCollection'](_0x35bf9b,_0x4542ed,_0x11ccf3,_0x41d0e2){const _0x690113=_0x1e02b9;this[_0x690113(0x3e4)][_0x35bf9b]=_0x4542ed,_0x4542ed[_0x690113(0x311)](_0x11ccf3),this[_0x690113(0x287)][_0x690113(0x37b)]({'token':_0x35bf9b,'type':_0x25f8c4[_0x690113(0x397)],'dataRangeInfo':_0x11ccf3,'targetCellInfo':_0x41d0e2});}[_0x1e02b9(0x495)](_0x323c37,_0x4a0ef2){const _0x39ccbd=_0x1e02b9,_0x189e63=this[_0x39ccbd(0x1a7)](_0x323c37),_0x209e81=_0x189e63['getFieldIds']();let _0x32b311=0x0;for(const _0x2d4615 of _0x209e81){const _0x25427a=_0x189e63[_0x39ccbd(0x3cb)](_0x2d4615),_0x4e28f7=this[_0x39ccbd(0x2c9)](_0x4a0ef2,_0x32b311);this[_0x39ccbd(0x1cc)](_0x25427a[_0x39ccbd(0x2e7)],_0x4e28f7),_0x32b311++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x1e02b9(0x2d9)](_0x4ec4ef,_0x534d5f){const _0x166b8b=_0x1e02b9;if(this[_0x166b8b(0x1a7)](_0x4ec4ef)){const _0x23dfdc=this[_0x166b8b(0x3d4)](_0x534d5f),_0x3aacb1=[];for(const _0x15365d of _0x23dfdc)this[_0x166b8b(0x1a6)][_0x15365d]!==void 0x0&&_0x3aacb1[_0x166b8b(0x3c4)](this[_0x166b8b(0x1a6)][_0x15365d]);const _0x3d766b=this[_0x166b8b(0x1b9)](_0x4ec4ef),_0xfdfab9=[],_0x518322=new Set(_0x3aacb1);for(const _0x40abac of _0x3d766b)_0x518322[_0x166b8b(0x2cd)](_0x40abac)||_0xfdfab9[_0x166b8b(0x3c4)](_0x40abac);return _0xfdfab9;}}[_0x1e02b9(0x1bf)](_0x1bb047,_0x336952,_0x2666b3,_0x9b16aa,_0x3aaa27){const _0x2650e0=_0x1e02b9;return _0x336952&&_0x336952['getValue'](_0x9b16aa,_0x3aaa27)?_0x336952[_0x2650e0(0x3ef)](_0x9b16aa,_0x3aaa27):_0x2666b3&&_0x2666b3[_0x2650e0(0x3ef)](_0x9b16aa,_0x3aaa27)?_0x2666b3[_0x2650e0(0x3ef)](_0x9b16aa,_0x3aaa27):_0x1bb047[_0x2650e0(0x3ef)](_0x9b16aa,_0x3aaa27);}['refreshDataField'](_0x3438ef,_0x1f4c92,_0x23a31a,_0x56406d){const _0x27dde1=_0x1e02b9,_0x435e3d=this['dataFields'][_0x3438ef];if(!_0x435e3d)return;const {subUnitId:_0x37a7bc,range:_0x273108,unitId:_0x1f1a0b}=_0x1f4c92,_0x438c26=this[_0x27dde1(0x223)]['getUnit'](_0x1f1a0b);if(!_0x438c26){console[_0x27dde1(0x25f)]('workbook\x20is\x20not\x20found');return;}const _0x15084c=_0x438c26[_0x27dde1(0x2ab)](_0x37a7bc),_0x54c3a0=_0x15084c[_0x27dde1(0x3ab)](),{arrayFormulaCellDataMatrix:_0x2f6016,unitDataMatrix:_0x12d51c}=_0x56406d||{},{startRow:_0x5251a,startColumn:_0x429725,endRow:_0xf76766}=this[_0x27dde1(0x33a)](_0x273108,_0x15084c);_0x435e3d['reset']();const _0xef28f0=_0x438c26[_0x27dde1(0x280)](),_0x564b77={},_0x1778c4=this[_0x27dde1(0x1bf)](_0x54c3a0,_0x2f6016,_0x12d51c,_0x5251a,_0x429725+_0x23a31a);let _0x1ddc59=this[_0x27dde1(0x220)](_0x1778c4,_0xef28f0,_0x564b77);_0x7008cc[_0x27dde1(0x455)](_0x1ddc59)&&(_0x1ddc59=_0x5b61bd[_0x27dde1(0x39c)][_0x27dde1(0x1b1)](_0x1ddc59['f'],Number(_0x1ddc59['v'])));const _0x517850=this[_0x27dde1(0x27a)](_0x1ddc59,_0x429725+_0x23a31a);_0x435e3d[_0x27dde1(0x1ca)](_0x517850);for(let _0x488201=_0x5251a+0x1;_0x488201<=_0xf76766;_0x488201++){const _0x231160=this[_0x27dde1(0x1bf)](_0x54c3a0,_0x2f6016,_0x12d51c,_0x488201,_0x429725+_0x23a31a);_0x435e3d[_0x27dde1(0x3b6)](this[_0x27dde1(0x220)](_0x231160,_0xef28f0,_0x564b77),_0x488201-0x1-_0x5251a);}}[_0x1e02b9(0x1fa)](_0x1b2408,_0x52a629,_0x5edd2c){const _0x5078fe=_0x1e02b9,{subUnitId:_0xc0e470,range:_0x23ee92,unitId:_0x307234}=_0x5edd2c,_0xdd3e39=this[_0x5078fe(0x223)]['getUnit'](_0x307234);if(!_0xdd3e39){console[_0x5078fe(0x25f)](_0x5078fe(0x412));return;}const _0x251f50=_0xdd3e39[_0x5078fe(0x2ab)](_0xc0e470),_0x3eb60d=_0x251f50[_0x5078fe(0x3ab)](),{startRow:_0x206f34,startColumn:_0x233592,endRow:_0x10add2}=this['getRangeStartEndInfo'](_0x23ee92,_0x251f50),_0x525e23=_0xdd3e39[_0x5078fe(0x280)](),_0x25a4c0={};for(const {dataField:_0x43cc2c,index:_0x202af2}of _0x52a629){_0x43cc2c[_0x5078fe(0x46d)]();const _0x10ebcd=this[_0x5078fe(0x1bf)](_0x3eb60d,void 0x0,void 0x0,_0x206f34,_0x233592+_0x202af2);let _0x3fc17d=this[_0x5078fe(0x220)](_0x10ebcd,_0x525e23,_0x25a4c0);_0x7008cc['isDateValue'](_0x3fc17d)&&(_0x3fc17d=_0x5b61bd[_0x5078fe(0x39c)][_0x5078fe(0x1b1)](_0x3fc17d['f'],Number(_0x3fc17d['v'])));const _0x3fb5eb=this[_0x5078fe(0x27a)](_0x3fc17d,_0x233592+_0x202af2);_0x43cc2c[_0x5078fe(0x1ca)](_0x3fb5eb);}_0x1b2408[_0x5078fe(0x48c)]();for(let _0x28449d=_0x206f34+0x1;_0x28449d<=_0x10add2;_0x28449d++)for(const {index:_0x393d1d,dataField:_0x2ca93f}of _0x52a629){const _0x3f5629=_0x3eb60d['getValue'](_0x28449d,_0x233592+_0x393d1d);_0x2ca93f[_0x5078fe(0x3b6)](this[_0x5078fe(0x220)](_0x3f5629,_0x525e23,_0x25a4c0),_0x28449d-0x1-_0x206f34);}_0x1b2408[_0x5078fe(0x18f)](_0x10add2-_0x206f34);}[_0x1e02b9(0x3d4)](_0x27cdbc){const _0x1d6214=_0x1e02b9,{range:_0x47fc7b}=_0x27cdbc,{startColumn:_0x33f695,endColumn:_0x55e71c}=_0x47fc7b,_0x3bd8b0=[];for(let _0x20a8df=_0x33f695;_0x20a8df<=_0x55e71c;_0x20a8df++)_0x3bd8b0[_0x1d6214(0x3c4)](this[_0x1d6214(0x2c9)](_0x27cdbc,_0x20a8df));return _0x3bd8b0;}['adjustSheetCellData'](_0x37aed5,_0x5069f5,_0x598dc0){const _0x3e023a=_0x1e02b9;if(_0x37aed5){const {s:_0x33df8e,v:_0x1bd67f,t:_0x318c67,p:_0x10e2d5}=_0x37aed5;if(_0x10e2d5)return _0x4e0296(_0x10e2d5);const _0x33a825=_0x5069f5[_0x3e023a(0x2ee)](_0x33df8e);if(_0x33a825&&_0x318c67===_0x5b61bd[_0x3e023a(0x41f)][_0x3e023a(0x294)]&&_0x33a825['n']){const {pattern:_0x465787}=_0x33a825['n'];_0x598dc0[_0x465787]||(_0x598dc0[_0x465787]=_0x5b61bd[_0x3e023a(0x39c)][_0x3e023a(0x312)](_0x465787));const _0x4a934e=_0x598dc0[_0x465787],_0xd55ec8=_0x4a934e['isDate'];if(_0x4a934e['isText'])return String(_0x1bd67f);if(_0xd55ec8)return{'v':_0x1bd67f,'f':_0x465787};}if(_0x318c67===_0x5b61bd['CellValueType'][_0x3e023a(0x294)])return Number(_0x1bd67f);if(_0x318c67===_0x5b61bd[_0x3e023a(0x41f)][_0x3e023a(0x374)]||_0x318c67===_0x5b61bd[_0x3e023a(0x41f)][_0x3e023a(0x188)])return String(_0x1bd67f);if(_0x318c67===void 0x0){const _0x82f7f5=Number(_0x1bd67f);if(!Number[_0x3e023a(0x441)](_0x82f7f5)&&String(_0x82f7f5)===_0x1bd67f)return _0x82f7f5;}return _0x1bd67f!=null?_0x1bd67f:null;}else return null;}[_0x1e02b9(0x1ab)](_0x4a2dd4){const _0x1e8574=_0x1e02b9,{sheetName:_0x5b5d3a,range:_0x4315a9,unitId:_0x48d6a5}=_0x4a2dd4,_0x50ea78=this[_0x1e8574(0x223)]['getUnit'](_0x48d6a5);if(!_0x50ea78)return console[_0x1e8574(0x25f)](_0x1e8574(0x412)),{'header':[],'data':[]};const _0x29a6d4=_0x50ea78['getSheetBySheetName'](_0x5b5d3a),_0x4d1ea2=_0x29a6d4[_0x1e8574(0x3ab)](),{startRow:_0x25a7d2,startColumn:_0x156ee1,endRow:_0x65d71b,endColumn:_0x179a3e}=this[_0x1e8574(0x33a)](_0x4315a9,_0x29a6d4),_0x42660c=_0x50ea78[_0x1e8574(0x280)](),_0x371f8d=[],_0x28196f=[],_0x2f5ce3={};for(let _0x1e2786=_0x25a7d2;_0x1e2786<=_0x65d71b;_0x1e2786++){const _0x137781=[];for(let _0x1d0348=_0x156ee1;_0x1d0348<=_0x179a3e;_0x1d0348++){const _0x5b77bd=_0x4d1ea2[_0x1e8574(0x3ef)](_0x1e2786,_0x1d0348);_0x1e2786===_0x25a7d2?_0x371f8d['push'](_0x5b77bd==null?null:String(_0x5b77bd['v'])):_0x137781['push'](this['adjustSheetCellData'](_0x5b77bd,_0x42660c,_0x2f5ce3));}_0x28196f[_0x1e8574(0x3c4)](_0x137781);}return{'header':_0x371f8d,'data':_0x28196f};}[_0x1e02b9(0x3d6)](){return super['toJSON']();}[_0x1e02b9(0x3e5)](_0x51eb9f){const _0x1e5bdd=_0x1e02b9;super[_0x1e5bdd(0x3e5)](_0x51eb9f),this[_0x1e5bdd(0x337)]();}[_0x1e02b9(0x3f3)](){const _0x321eca=_0x1e02b9;super[_0x321eca(0x3f3)](),this[_0x321eca(0x1a6)]={},this[_0x321eca(0x287)]=null;}}const _0x5214b7=_0x556deb=>{const _0xba777=_0x1e02b9,{targetCellInfo:_0x4c7cd6}=_0x556deb,{matrixCache:_0x2655af,rangesCache:_0x3e7c98}=_0xd0cc2a({'filter':_0xba777(0x44c),'row':'Row','column':'Column','values':'Values'},_0x4c7cd6),_0x4a8f8f=new _0x5b61bd[(_0xba777(0x302))]();return _0x2655af[_0xba777(0x488)]((_0x53cf35,_0x370287,_0x5f58a5)=>{const _0x5ad4a9=_0xba777;_0x4a8f8f[_0x5ad4a9(0x214)](_0x53cf35,_0x370287,_0x5f58a5);}),{'matrix':_0x4a8f8f,'rangesCache':_0x3e7c98};},_0x204eb5=_0x180882=>{const _0x6bdbab=_0x1e02b9;let _0x524e06;if(_0x180882!=null&&_0x180882['v']||(_0x180882==null?void 0x0:_0x180882['v'])===0x0){_0x524e06||(_0x524e06={});const _0x440c76=_0x22e542(_0x180882['v']);typeof _0x440c76==_0x6bdbab(0x425)?_0x524e06['t']=_0x5b61bd[_0x6bdbab(0x41f)]['NUMBER']:typeof _0x440c76=='string'&&(_0x524e06['t']=_0x5b61bd['CellValueType'][_0x6bdbab(0x374)]),_0x524e06['v']=_0x440c76;}return _0x524e06;},_0x23aa17=(_0x426cf9,_0xa75aa1,_0x23d717)=>{const _0x518e42=_0x1e02b9;var _0x10d6af,_0x2023d6,_0x814f44,_0x35cb49,_0x1813e6,_0xebafb9,_0x5dc480,_0x54edd6,_0x32da3e,_0x1739c4,_0x165188,_0x39ae9a;const {cornerView:_0x3af25d,rowView:_0x14895d,colView:_0x3875c8,dataView:_0x1689b6,pageView:_0x3d6555,formatMap:_0x2c65f9}=_0x426cf9,{row:_0x1aab33,col:_0x247853}=_0xa75aa1,_0x5265f3=new _0x5b61bd[(_0x518e42(0x302))]();let _0xdd3441=_0x1aab33,_0x56ef94=_0x247853;Object[_0x518e42(0x1b6)](_0x3d6555[_0x518e42(0x265)])['forEach'](_0x32c70c=>{const _0xfb5a7e=_0x518e42;Object[_0xfb5a7e(0x1b6)](_0x3d6555[_0xfb5a7e(0x265)][Number(_0x32c70c)])[_0xfb5a7e(0x259)](_0x7f690=>{const _0x33f66b=_0xfb5a7e,_0x4c3252={..._0x3d6555[_0x33f66b(0x265)][Number(_0x32c70c)][Number(_0x7f690)]};_0x5265f3[_0x33f66b(0x214)](Number(_0x32c70c)+_0xdd3441,Number(_0x7f690)+_0x56ef94,_0x204eb5(_0x4c3252));});});const _0x48f483=Object[_0x518e42(0x1b6)](_0x3d6555[_0x518e42(0x265)])[_0x518e42(0x370)];_0xdd3441+=_0x48f483+(_0x48f483?_0x90963f:0x0);const _0x45dffc=_0x3af25d[_0x518e42(0x3a0)](),_0x1c63dc=_0x3af25d[_0x518e42(0x258)]();for(let _0x1a037c=0x0;_0x1a037c<_0x45dffc;_0x1a037c++)for(let _0x3cce6c=0x0;_0x3cce6c<_0x1c63dc;_0x3cce6c++){const _0x4061bd={...(_0x2023d6=(_0x10d6af=_0x3af25d[_0x518e42(0x265)])==null?void 0x0:_0x10d6af[_0x1a037c])==null?void 0x0:_0x2023d6[_0x3cce6c]};_0x4061bd&&((_0x814f44=_0x14895d[_0x518e42(0x3ee)][_0x3cce6c])!=null&&_0x814f44['isValue'])&&_0x3cce6c===_0x1c63dc-0x1&&_0x1a037c===_0x45dffc-0x1&&(_0x4061bd['v']=''+_0x23d717[_0x518e42(0x2f9)]),_0x5265f3[_0x518e42(0x214)](_0x1a037c+_0xdd3441,_0x3cce6c+_0x56ef94,_0x204eb5(_0x4061bd));}_0x56ef94+=_0x1c63dc;const _0x4bc7dd=_0x3875c8[_0x518e42(0x3ee)],_0x7a4944=_0x3875c8[_0x518e42(0x35c)]()>=0x0?_0x3875c8[_0x518e42(0x35c)]()+0x1:0x0,_0x47f8a6=_0x3875c8[_0x518e42(0x1a0)]()>=0x0?_0x3875c8[_0x518e42(0x1a0)]()+0x1:0x0;for(let _0x289593=0x0;_0x289593<_0x47f8a6;_0x289593++)for(let _0x4cb76e=0x0;_0x4cb76e<_0x7a4944;_0x4cb76e++){const _0xb1f2b5={...(_0x1813e6=(_0x35cb49=_0x3875c8['data'])==null?void 0x0:_0x35cb49[_0x289593])==null?void 0x0:_0x1813e6[_0x4cb76e]},_0x2c69e0=(_0xebafb9=_0x4bc7dd[_0x289593])==null?void 0x0:_0xebafb9[_0x518e42(0x1d5)],_0x2ac150=_0x2c65f9[_0x2c69e0];_0xb1f2b5&&(_0xb1f2b5['v']=_0x34f9f3(_0xb1f2b5,_0x289593===0x0&&((_0x5dc480=_0x3875c8[_0x518e42(0x47b)](_0x4cb76e+0x1))==null?void 0x0:_0x5dc480[_0x518e42(0x2c3)]),_0x2ac150,_0x23d717)),_0x5265f3['setValue'](_0x289593+_0xdd3441,_0x4cb76e+_0x56ef94,_0x204eb5(_0xb1f2b5));}_0xdd3441+=_0x45dffc;const _0x537499=_0x14895d[_0x518e42(0x3ee)],_0x9b12e7=_0x14895d[_0x518e42(0x35c)]()>=0x0?_0x14895d[_0x518e42(0x35c)]()+0x1:0x0,_0x3e1fb4=_0x14895d['getLastCol']()>=0x0?_0x14895d[_0x518e42(0x1a0)]()+0x1:0x0;for(let _0x1a135a=0x0;_0x1a135a<_0x9b12e7;_0x1a135a++)for(let _0x3e65c6=0x0;_0x3e65c6<_0x3e1fb4;_0x3e65c6++){const _0x2e1622={...(_0x32da3e=(_0x54edd6=_0x14895d['data'])==null?void 0x0:_0x54edd6[_0x1a135a])==null?void 0x0:_0x32da3e[_0x3e65c6]},_0x1257d8=(_0x1739c4=_0x537499[_0x3e65c6])==null?void 0x0:_0x1739c4[_0x518e42(0x1d5)],_0xc4109b=_0x2c65f9[_0x1257d8];_0x2e1622&&(_0x2e1622['v']=_0x34f9f3(_0x2e1622,!0x1,_0xc4109b,_0x23d717)),_0x5265f3['setValue'](_0x1a135a+_0xdd3441,_0x3e65c6+_0x247853,_0x204eb5(_0x2e1622));}const _0x52bc3a=_0x1689b6[_0x518e42(0x3a0)](),_0x5cd874=_0x1689b6[_0x518e42(0x258)]();for(let _0x5572f7=0x0;_0x5572f7<_0x52bc3a;_0x5572f7++)for(let _0x428983=0x0;_0x428983<_0x5cd874;_0x428983++){const _0x301ed8={...(_0x39ae9a=(_0x165188=_0x1689b6[_0x518e42(0x265)])==null?void 0x0:_0x165188[_0x5572f7])==null?void 0x0:_0x39ae9a[_0x428983]};_0x5265f3[_0x518e42(0x214)](_0x5572f7+_0xdd3441,_0x428983+_0x56ef94,_0x204eb5(_0x301ed8));}return _0x5265f3;},_0x4687ac=_0x5f272a=>{const _0x528848=_0x1e02b9,{view:_0x216d70,targetCellInfo:_0x3ff60f,isEmpty:_0x2d7b9e,textInfo:_0xedbf09}=_0x5f272a;if(_0x2d7b9e)return _0x5214b7(_0x5f272a);const {pageView:_0x55de7e,cornerView:_0x233b7d,rowView:_0x1a6343,colView:_0x31156d,dataView:_0x1c4f53}=_0x216d70,_0x3e2303=_0x18c8ea(_0x3ff60f,_0x55de7e,!0x0),_0x58b045=_0x55de7e[_0x528848(0x399)]>=0x0?_0x55de7e[_0x528848(0x399)]+0x1:0x0,_0x1be378=_0x233b7d[_0x528848(0x3a0)](),_0x59cc0a=_0x233b7d[_0x528848(0x258)](),_0x54bbf5=_0x3e2303[_0x528848(0x370)]>0x0?_0x90963f:0x0,_0x5001b5=_0x18c8ea({'row':_0x3ff60f['row']+_0x58b045+_0x54bbf5,'col':_0x3ff60f[_0x528848(0x352)]},_0x233b7d,!0x1,!0x1),_0x157acf=_0x18c8ea({'row':_0x3ff60f[_0x528848(0x2e3)]+_0x58b045+_0x54bbf5+_0x1be378,'col':_0x3ff60f['col']},_0x1a6343,!0x1,!0x0),_0x360099=_0x18c8ea({'row':_0x3ff60f[_0x528848(0x2e3)]+_0x58b045+_0x54bbf5,'col':_0x3ff60f[_0x528848(0x352)]+_0x59cc0a},_0x31156d,!0x1,!0x0),_0x5e7932=_0x18c8ea({'row':_0x3ff60f[_0x528848(0x2e3)]+_0x58b045+_0x54bbf5+_0x1be378,'col':_0x3ff60f[_0x528848(0x352)]+_0x59cc0a},_0x1c4f53,!0x1,!0x1),_0x237e9d={'rowRanges':_0x157acf,'colRanges':_0x360099,'cornerRanges':_0x5001b5,'dataRanges':_0x5e7932,'pageRanges':_0x3e2303};return{'matrix':_0x23aa17(_0x216d70,_0x3ff60f,_0xedbf09),'rangesCache':_0x237e9d};};var _0x5e921b=Object['getOwnPropertyDescriptor'],_0xe7c2b6=(_0xc28d22,_0x4e6f79,_0x1178d3,_0x430302)=>{for(var _0x286ac1=_0x430302>0x1?void 0x0:_0x430302?_0x5e921b(_0x4e6f79,_0x1178d3):_0x4e6f79,_0x16b967=_0xc28d22['length']-0x1,_0x5e5eef;_0x16b967>=0x0;_0x16b967--)(_0x5e5eef=_0xc28d22[_0x16b967])&&(_0x286ac1=_0x5e5eef(_0x286ac1)||_0x286ac1);return _0x286ac1;},_0x2bf0c0=(_0x15ad5a,_0x1bf2de)=>(_0xd5f288,_0x47306e)=>_0x1bf2de(_0xd5f288,_0x47306e,_0x15ad5a);_0x4e9eda[_0x1e02b9(0x20f)]=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x24b1d2,_0x178007,_0x5da556,_0x4eb9e9,_0x18e212,_0x5d7fcc){const _0x2f9c2b=_0x1e02b9;super(),_0xef46e3(this,'_model',new Map()),_0xef46e3(this,'_pivotTableInstanceCache',new Map()),_0xef46e3(this,'_viewData',new Map()),_0xef46e3(this,'_textInfo'),_0xef46e3(this,_0x2f9c2b(0x446),new _0x5928f9[(_0x2f9c2b(0x461))]()),_0xef46e3(this,'collectionChange$',this['_collectionChange$'][_0x2f9c2b(0x1fb)]()),_0xef46e3(this,_0x2f9c2b(0x2e4),new _0x5928f9[(_0x2f9c2b(0x461))]()),_0xef46e3(this,'viewData$',this['_viewData$']['asObservable']()),_0xef46e3(this,'_fieldsCollectionChange$',new _0x5928f9['Subject']()),_0xef46e3(this,_0x2f9c2b(0x1ed),this[_0x2f9c2b(0x387)]['asObservable']()),_0xef46e3(this,_0x2f9c2b(0x252),new Map()),_0xef46e3(this,_0x2f9c2b(0x264),[]),_0xef46e3(this,_0x2f9c2b(0x489),new Map()),(this[_0x2f9c2b(0x2d5)]=_0x24b1d2,this[_0x2f9c2b(0x223)]=_0x178007,this[_0x2f9c2b(0x462)]=_0x5da556,this[_0x2f9c2b(0x23c)]=_0x4eb9e9,this[_0x2f9c2b(0x3f2)]=_0x18e212,this[_0x2f9c2b(0x372)]=_0x5d7fcc,this[_0x2f9c2b(0x433)]());}['getTextInfo'](){const _0x598228=_0x1e02b9;return this[_0x598228(0x3f0)]?this[_0x598228(0x3f0)]:_0x5b549e;}['setTextInfo'](_0x8d5bf6){this['_textInfo']=_0x8d5bf6;}[_0x1e02b9(0x495)](_0x53d9d0){const _0x5a6ea9=_0x1e02b9;var _0x4c448c;const {from:_0x3eaead,to:_0x2ba685,unitId:_0x458c62,fromRange:_0x1e2ac3,toRange:_0x3e1e19}=_0x53d9d0;if(_0x3eaead&&_0x2ba685){const _0x430e91=this[_0x5a6ea9(0x296)](_0x458c62),_0x112a23=this[_0x5a6ea9(0x383)]['get'](_0x458c62),_0x29a768=(_0x4c448c=this['_univerInstanceService'][_0x5a6ea9(0x389)](_0x458c62))==null?void 0x0:_0x4c448c[_0x5a6ea9(0x2ab)](_0x2ba685['subUnitId']);if(!_0x112a23||!_0x29a768)return;const _0x395ab6=_0x29a768==null?void 0x0:_0x29a768['getName']();for(const [_0x1358fe,_0x45e03f]of _0x112a23[_0x5a6ea9(0x2a4)]())for(const [_0x2905ce,_0x1e5fab]of _0x45e03f[_0x5a6ea9(0x2a4)]()){const {sourceRangeInfo:_0x1ceb3b}=_0x1e5fab;if(_0x1ceb3b[_0x5a6ea9(0x344)]===_0x458c62&&_0x1ceb3b[_0x5a6ea9(0x213)]===_0x3eaead[_0x5a6ea9(0x213)]&&_0x5b61bd[_0x5a6ea9(0x28e)]['contains'](_0x1e2ac3,_0x1ceb3b[_0x5a6ea9(0x3b1)])){const _0x35fc17={'row':_0x1ceb3b[_0x5a6ea9(0x3b1)][_0x5a6ea9(0x25e)]-_0x1e2ac3[_0x5a6ea9(0x25e)],'col':_0x1ceb3b[_0x5a6ea9(0x3b1)]['startColumn']-_0x1e2ac3[_0x5a6ea9(0x22d)]},_0x208fb8={'unitId':_0x458c62,'subUnitId':_0x2ba685[_0x5a6ea9(0x213)],'sheetName':_0x395ab6,'range':{'startRow':_0x3e1e19[_0x5a6ea9(0x25e)]+_0x35fc17[_0x5a6ea9(0x2e3)],'endRow':_0x3e1e19[_0x5a6ea9(0x25e)]+_0x35fc17[_0x5a6ea9(0x2e3)]+_0x1ceb3b[_0x5a6ea9(0x3b1)]['endRow']-_0x1ceb3b[_0x5a6ea9(0x3b1)][_0x5a6ea9(0x25e)],'startColumn':_0x3e1e19[_0x5a6ea9(0x22d)]+_0x35fc17[_0x5a6ea9(0x352)],'endColumn':_0x3e1e19[_0x5a6ea9(0x22d)]+_0x35fc17[_0x5a6ea9(0x352)]+_0x1ceb3b[_0x5a6ea9(0x3b1)][_0x5a6ea9(0x394)]-_0x1ceb3b[_0x5a6ea9(0x3b1)][_0x5a6ea9(0x22d)]}};_0x430e91[_0x5a6ea9(0x495)](_0x2905ce,_0x208fb8);const _0x297568={..._0x1e5fab,'sourceRangeInfo':_0x208fb8};this['_updateModelCache'](_0x458c62,_0x2ba685[_0x5a6ea9(0x213)],_0x2905ce,_0x297568),this[_0x5a6ea9(0x37b)]({'unitId':_0x458c62,'token':_0x2905ce,'type':_0x25f8c4[_0x5a6ea9(0x29b)],'oldSourceRangeInfo':_0x1ceb3b,'dataRangeInfo':_0x208fb8,'targetCellInfo':_0x1e5fab[_0x5a6ea9(0x3ed)]}),this[_0x5a6ea9(0x24f)]({'unitId':_0x458c62,'subUnitId':_0x2ba685[_0x5a6ea9(0x213)],'oldSubUnitId':_0x1358fe,'pivotTableId':_0x2905ce,'pivotTableConfig':_0x297568,'collectionConfig':_0x430e91['toJSON']()});}}}}[_0x1e02b9(0x37b)](_0x56ea40){const _0xdcc18a=_0x1e02b9;this[_0xdcc18a(0x446)][_0xdcc18a(0x236)](_0x56ea40);}[_0x1e02b9(0x296)](_0x273662){const _0x1ad055=_0x1e02b9;let _0x3d7698=this['_dataFieldManagerCollection'][_0x1ad055(0x2ee)](_0x273662);return _0x3d7698||(_0x3d7698=new _0x6d40e(this,this[_0x1ad055(0x223)]),this[_0x1ad055(0x252)][_0x1ad055(0x33f)](_0x273662,_0x3d7698)),_0x3d7698;}['getCollection'](_0x4d0042,_0x430b9c){const _0x474a28=_0x1e02b9;return this[_0x474a28(0x296)](_0x4d0042)[_0x474a28(0x3e4)][_0x430b9c];}[_0x1e02b9(0x2d9)](_0x4bd83e,_0x4e23c2,_0x4f7193){const _0x8e1602=_0x1e02b9;return this[_0x8e1602(0x296)](_0x4bd83e)['getUpdateRangeDeleteIds'](_0x4e23c2,_0x4f7193);}['_ensurePivotMap'](_0x3bb72a,_0x550fd3){const _0x1ec3ac=_0x1e02b9;let _0x515cc2=this[_0x1ec3ac(0x383)][_0x1ec3ac(0x2ee)](_0x3bb72a);_0x515cc2||(_0x515cc2=new Map(),this[_0x1ec3ac(0x383)]['set'](_0x3bb72a,_0x515cc2));let _0x3d7201=_0x515cc2[_0x1ec3ac(0x2ee)](_0x550fd3);return _0x3d7201||(_0x3d7201=new Map(),_0x515cc2[_0x1ec3ac(0x33f)](_0x550fd3,_0x3d7201)),_0x3d7201;}[_0x1e02b9(0x2c2)](_0xe889f2,_0x5b975e,_0x1490a7,_0x457ace){const _0x567c1f=_0x1e02b9;this[_0x567c1f(0x2fd)](_0xe889f2,_0x5b975e)[_0x567c1f(0x33f)](_0x1490a7,_0x457ace);}['_deleteModelCache'](_0x494192,_0x5b6b01,_0x3e9215){const _0x2bb4fa=_0x1e02b9;var _0x3f8a45,_0x203728,_0x1210cd,_0x2a25e4;((_0x203728=(_0x3f8a45=this[_0x2bb4fa(0x383)][_0x2bb4fa(0x2ee)](_0x494192))==null?void 0x0:_0x3f8a45[_0x2bb4fa(0x2ee)](_0x5b6b01))==null?void 0x0:_0x203728['get'](_0x3e9215))&&((_0x2a25e4=(_0x1210cd=this[_0x2bb4fa(0x383)][_0x2bb4fa(0x2ee)](_0x494192))==null?void 0x0:_0x1210cd['get'](_0x5b6b01))==null||_0x2a25e4[_0x2bb4fa(0x301)](_0x3e9215));}['_updatePivotTableInstanceCache'](_0x19306c,_0x16d440){const _0x37d1db=_0x1e02b9;this[_0x37d1db(0x3cf)][_0x37d1db(0x33f)](_0x19306c,_0x16d440);}[_0x1e02b9(0x1c2)](_0x27ce69){const _0x4e02d2=_0x1e02b9;this[_0x4e02d2(0x3cf)]['delete'](_0x27ce69);}[_0x1e02b9(0x41b)](_0x59aeb6,_0x549721){const _0x2f3e8f=_0x1e02b9;let _0x11d5fb=this[_0x2f3e8f(0x1bc)][_0x2f3e8f(0x2ee)](_0x59aeb6);_0x11d5fb||(_0x11d5fb=new Map(),this[_0x2f3e8f(0x1bc)][_0x2f3e8f(0x33f)](_0x59aeb6,_0x11d5fb));let _0x266e11=_0x11d5fb[_0x2f3e8f(0x2ee)](_0x549721);return _0x266e11||(_0x266e11=new Map(),_0x11d5fb[_0x2f3e8f(0x33f)](_0x549721,_0x266e11)),_0x266e11;}[_0x1e02b9(0x24f)](_0x5a7e86){const _0x2e1700=_0x1e02b9,{unitId:_0x5297d5,subUnitId:_0xa7c446,pivotTableId:_0x2fc86f,pivotTableConfig:_0x28562a,collectionConfig:_0x571ada}=_0x5a7e86,_0x6f3d65={'unitId':_0x5297d5,'subUnitId':_0xa7c446,'oldSubUnitId':_0xa7c446,'pivotTableId':_0x2fc86f,'pivotTableConfig':_0x28562a,'collectionConfig':_0x571ada};this[_0x2e1700(0x3f2)]['executeCommand'](_0x13d163['id'],_0x6f3d65,{'onlyLocal':!0x0});}[_0x1e02b9(0x216)](_0x2e3cde,_0x756dcd,_0x3921b8,_0x505dfe,_0x53cd00,_0x2d6445,_0x47e21e,_0x3b69aa=!0x1){const _0x50f1f4=_0x1e02b9;var _0x37aabb;this[_0x50f1f4(0x3f2)][_0x50f1f4(0x2eb)](_0x2727e2['id'],{'single':{'unitId':_0x2e3cde,'subUnitId':_0x756dcd,'type':_0x3921b8,'pivotTableId':_0x505dfe,'view':_0x53cd00,'pivotConfig':_0x2d6445},'collectionConfig':{[_0x2e3cde]:_0x47e21e}},{'onlyLocal':!0x0});const _0x370a81=!!((_0x37aabb=this['getPivotTableInstance'](_0x505dfe))!=null&&_0x37aabb[_0x50f1f4(0x2a9)]()),_0x334f6b=this['getPivotTableConfig'](_0x2e3cde,_0x756dcd,_0x505dfe);_0x334f6b&&this[_0x50f1f4(0x349)]({'view':_0x53cd00,'pivotTableId':_0x505dfe,'textInfo':this['getTextInfo'](),'isEmpty':_0x370a81,'targetCellInfo':_0x334f6b[_0x50f1f4(0x3ed)]},_0x3b69aa);}['updateViewData'](_0x32403c,_0x23d5ec){const _0x3810f9=_0x1e02b9,{targetCellInfo:_0x43e177,pivotTableId:_0x56f9e0}=_0x32403c,{unitId:_0x452bef,subUnitId:_0x40352f}=_0x43e177,_0x18c4bf=this[_0x3810f9(0x41b)](_0x452bef,_0x40352f),_0x4e488b=_0x18c4bf['get'](_0x56f9e0);let _0x58055e,_0x188db1;_0x4e488b&&(_0x58055e=_0x4e488b[_0x3810f9(0x2f1)],_0x188db1=_0x4e488b[_0x3810f9(0x1f8)]);const {rangesCache:_0x34cbd5,matrix:_0x599cd8}=_0x4687ac(_0x32403c);_0x18c4bf[_0x3810f9(0x33f)](_0x56f9e0,{'rangeCache':_0x34cbd5,'matrix':_0x599cd8,'oldMatrix':_0x188db1,'oldRangeCache':_0x58055e}),_0x23d5ec||this['_viewData$'][_0x3810f9(0x236)]({'unitId':_0x452bef,'subUnitId':_0x40352f,'pivotTableId':_0x56f9e0});}['addPivotTable'](_0x9ce1ba,_0x4f0642,_0x1e4158,_0x20cc4e,_0x8bd47){const _0x5d7f03=_0x1e02b9;this[_0x5d7f03(0x2c2)](_0x9ce1ba,_0x4f0642,_0x1e4158,_0x8bd47),this['_updatePivotTableInstanceCache'](_0x1e4158,_0x20cc4e);}[_0x1e02b9(0x1bb)](_0x189d0a,_0x4ab8c2,_0x184ddd){const _0x3ec913=_0x1e02b9,_0x5f2a51=this[_0x3ec913(0x296)](_0x189d0a);_0x5f2a51[_0x3ec913(0x1b9)](_0x184ddd)[_0x3ec913(0x259)](_0x517bed=>{const _0x2eb3c6=_0x3ec913;_0x5f2a51[_0x2eb3c6(0x1d1)](_0x517bed);}),this[_0x3ec913(0x225)](_0x189d0a,_0x184ddd),this[_0x3ec913(0x471)](_0x189d0a,_0x4ab8c2,_0x184ddd),this[_0x3ec913(0x1c2)](_0x184ddd);}[_0x1e02b9(0x32c)](_0x1bdebf,_0x58d139,_0x4c48f5,_0x25008d){const _0x5f507a=_0x1e02b9;this[_0x5f507a(0x2c2)](_0x1bdebf,_0x58d139,_0x4c48f5,_0x25008d);}[_0x1e02b9(0x22f)](_0x4d3af2,_0x101084,_0x4f7663){const _0x45ca4a=_0x1e02b9;var _0x22e4a8,_0x48cd86;const _0x4919aa=(_0x48cd86=(_0x22e4a8=this[_0x45ca4a(0x383)][_0x45ca4a(0x2ee)](_0x4d3af2))==null?void 0x0:_0x22e4a8['get'](_0x101084))==null?void 0x0:_0x48cd86[_0x45ca4a(0x2ee)](_0x4f7663);if(_0x4919aa)return _0x4919aa;}[_0x1e02b9(0x373)](_0x3cecd4,_0x73b7d2,_0x2070f8){const _0x33ae6d=_0x1e02b9;var _0x320f94,_0x5d2ee8;const _0x310b54=(_0x5d2ee8=(_0x320f94=this[_0x33ae6d(0x383)][_0x33ae6d(0x2ee)](_0x3cecd4))==null?void 0x0:_0x320f94[_0x33ae6d(0x2ee)](_0x73b7d2))==null?void 0x0:_0x5d2ee8[_0x33ae6d(0x2ee)](_0x2070f8);if(_0x310b54)return _0x310b54[_0x33ae6d(0x432)];}[_0x1e02b9(0x2c5)](_0x1161b8){const _0x24e527=_0x1e02b9;return this[_0x24e527(0x3cf)]['get'](_0x1161b8);}['deleteUnitId'](_0x25c470){const _0x4f66a6=_0x1e02b9;this['_model'][_0x4f66a6(0x301)](_0x25c470);const _0x6c0c7e=this[_0x4f66a6(0x252)][_0x4f66a6(0x2ee)](_0x25c470);_0x6c0c7e&&(_0x6c0c7e[_0x4f66a6(0x3f3)](),this[_0x4f66a6(0x252)][_0x4f66a6(0x301)](_0x25c470)),this[_0x4f66a6(0x1bc)][_0x4f66a6(0x301)](_0x25c470),this[_0x4f66a6(0x264)]['forEach'](_0x5ea9c2=>{_0x5ea9c2['deleteUnitId'](_0x25c470);});}[_0x1e02b9(0x25b)](_0x6dc566,_0x4394eb,_0x48ee3c,_0x20ebd0){const _0x3a8d1f=_0x1e02b9;return this[_0x3a8d1f(0x296)](_0x48ee3c['unitId'])['addCollectionByJSON'](_0x6dc566,_0x4394eb,_0x48ee3c,_0x20ebd0);}[_0x1e02b9(0x210)](_0x2d3a1e){const _0x4a1632=_0x1e02b9;return this[_0x4a1632(0x296)](_0x2d3a1e[_0x4a1632(0x344)])[_0x4a1632(0x210)](_0x2d3a1e);}[_0x1e02b9(0x1fa)](_0x176e5c,_0x1ec4c3,_0x5a0ca9){const _0x44671e=_0x1e02b9;this[_0x44671e(0x296)](_0x5a0ca9['unitId'])[_0x44671e(0x1fa)](_0x176e5c,_0x1ec4c3,_0x5a0ca9);}[_0x1e02b9(0x43a)](_0x2e36ba,_0xb17d9d){const _0x3e30ac=_0x1e02b9;this[_0x3e30ac(0x296)](_0x2e36ba)[_0x3e30ac(0x1d1)](_0xb17d9d);}[_0x1e02b9(0x225)](_0x2438ae,_0x331eb0){const _0x27e4ba=_0x1e02b9;this[_0x27e4ba(0x296)](_0x2438ae)[_0x27e4ba(0x1c0)](_0x331eb0);}[_0x1e02b9(0x41c)](_0x5cfd0e,_0x1b4135){const _0xbfeb25=_0x1e02b9;var _0x2df2ed;return(_0x2df2ed=this['_model']['get'](_0x5cfd0e))==null?void 0x0:_0x2df2ed[_0xbfeb25(0x2ee)](_0x1b4135);}[_0x1e02b9(0x3d5)](_0x845bfc){const _0x509e30=_0x1e02b9;for(const [_0x14033f,_0x32ae7d]of this[_0x509e30(0x383)][_0x509e30(0x2a4)]())for(const [_0xe796a4,_0x1ba30a]of _0x32ae7d[_0x509e30(0x2a4)]())if(_0x1ba30a[_0x509e30(0x2cd)](_0x845bfc))return{'unitId':_0x14033f,'subUnitId':_0xe796a4};return null;}[_0x1e02b9(0x420)](_0x584eb3,_0x3672f3,_0x23dba0,_0x32cc83){const _0x4e16fc=_0x1e02b9,_0x4abfe8=this['_ensureViewDataMap'](_0x584eb3,_0x3672f3);_0x32cc83?_0x4abfe8[_0x4e16fc(0x33f)](_0x23dba0,_0x32cc83):_0x4abfe8[_0x4e16fc(0x301)](_0x23dba0),this[_0x4e16fc(0x2e4)][_0x4e16fc(0x236)]({'unitId':_0x584eb3,'subUnitId':_0x3672f3,'pivotTableId':_0x23dba0});}[_0x1e02b9(0x3f3)](){const _0x51cbde=_0x1e02b9;super[_0x51cbde(0x3f3)]();}[_0x1e02b9(0x195)](_0x1b9660,_0x575cd9,_0x4330aa){const _0x42019b=_0x1e02b9;var _0x52743a,_0x41be99;const _0x3ae094=(_0x41be99=(_0x52743a=this[_0x42019b(0x1bc)][_0x42019b(0x2ee)](_0x1b9660))==null?void 0x0:_0x52743a[_0x42019b(0x2ee)](_0x575cd9))==null?void 0x0:_0x41be99[_0x42019b(0x2ee)](_0x4330aa);return _0x3ae094||null;}[_0x1e02b9(0x2d2)](_0x1e9d61){const _0xf71758=_0x1e02b9;this[_0xf71758(0x26a)](_0x1e9d61);}[_0x1e02b9(0x26a)](_0x4c72c2){const _0x16aeb6=_0x1e02b9,{token:_0x5dac47,unitId:_0xa6817d,subUnitId:_0x439f96}=_0x4c72c2,_0x301809=_0xa6817d+'-'+_0x439f96+'-'+_0x5dac47;this[_0x16aeb6(0x489)]['get'](_0x301809)&&clearTimeout(this[_0x16aeb6(0x489)][_0x16aeb6(0x2ee)](_0x301809));const _0x34028c=setTimeout(()=>{const _0x33fe1b=_0x16aeb6;this[_0x33fe1b(0x1b4)](_0x4c72c2),this[_0x33fe1b(0x489)][_0x33fe1b(0x301)](_0x301809);},_0x5bffd2);this['_queryingMap'][_0x16aeb6(0x33f)](_0x301809,_0x34028c);}[_0x1e02b9(0x1b4)](_0x38cdc9){const _0xdaf4bf=_0x1e02b9,{unitId:_0x1b3a5d,subUnitId:_0x4179ab,token:_0x762ba6,type:_0x279ff7,pivotConfig:_0x324962}=_0x38cdc9,_0x400c10=this['getPivotTableInstance'](_0x762ba6),_0xa5a823=_0x400c10==null?void 0x0:_0x400c10[_0xdaf4bf(0x376)](),_0xe5e073=_0x324962!=null?_0x324962:this[_0xdaf4bf(0x22f)](_0x1b3a5d,_0x4179ab,_0x762ba6);_0xe5e073&&(_0xe5e073['isEmpty']=!!(_0x400c10!=null&&_0x400c10[_0xdaf4bf(0x2a9)]())),(_0xa5a823||_0x279ff7===_0x407136[_0xdaf4bf(0x18d)])&&this[_0xdaf4bf(0x216)](_0x1b3a5d,_0x4179ab,_0x279ff7,_0x762ba6,_0xa5a823,_0xe5e073,this['getDataFieldManager'](_0x1b3a5d)['toJSON']());}[_0x1e02b9(0x3d6)](_0x12be53){const _0x1975e5=_0x1e02b9,_0x14ac21={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x1975e5(0x296)](_0x12be53)&&(_0x14ac21[_0x1975e5(0x194)][_0x12be53]=this[_0x1975e5(0x296)](_0x12be53)[_0x1975e5(0x3d6)]()),this['_model'][_0x1975e5(0x2ee)](_0x12be53)){_0x14ac21[_0x1975e5(0x217)][_0x12be53]={};const _0x134b27=this[_0x1975e5(0x383)][_0x1975e5(0x2ee)](_0x12be53);_0x134b27!=null&&_0x134b27[_0x1975e5(0x434)]&&[..._0x134b27['keys']()][_0x1975e5(0x259)](_0x1f3aa0=>{const _0x229ce1=_0x1975e5,_0x1a3009=_0x134b27['get'](_0x1f3aa0);_0x1a3009!=null&&_0x1a3009[_0x229ce1(0x434)]&&(_0x14ac21['pivotTableConfigs'][_0x12be53][_0x1f3aa0]={},[..._0x1a3009[_0x229ce1(0x1b6)]()]['forEach'](_0x20b4db=>{const _0x135f5d=_0x229ce1,_0x1b5c9c=_0x1a3009[_0x135f5d(0x2ee)](_0x20b4db);_0x1b5c9c&&(_0x14ac21[_0x135f5d(0x217)][_0x12be53][_0x1f3aa0][_0x20b4db]=_0x1b5c9c);}));});}return _0x14ac21;}[_0x1e02b9(0x3e5)](_0x13e853){const _0xd50e8b=_0x1e02b9;var _0x3524e6;const {dataFieldManagerConfig:_0x8a3556,pivotTableConfigs:_0x2d35aa}=_0x13e853;_0x8a3556&&Object[_0xd50e8b(0x1b6)](_0x8a3556)[_0xd50e8b(0x259)](_0x2bbc03=>{const _0x32a677=_0xd50e8b;this[_0x32a677(0x296)](_0x2bbc03)[_0x32a677(0x3e5)](_0x8a3556[_0x2bbc03]);});const _0x5ab529=[];if(_0x2d35aa){const _0xa57613=(_0x3524e6=this[_0xd50e8b(0x2d5)][_0xd50e8b(0x2ee)](_0x5b61bd[_0xd50e8b(0x36f)])[_0xd50e8b(0x35f)](_0x573993['LS_CONFIG_KEY']))!=null?_0x3524e6:{},{ls:_0x4edb3e,pbk:_0x18f100}=_0xa57613,_0x406cf7=_0x8d06ca(_0x52c532,_0x4edb3e,_0x18f100)['count'];Object[_0xd50e8b(0x1b6)](_0x2d35aa)[_0xd50e8b(0x259)](_0xc9c3b0=>{const _0x55e870=_0xd50e8b;let _0x38a532=0x0;const _0x5ea0f3=_0x2d35aa[_0xc9c3b0];Object['keys'](_0x5ea0f3)[_0x55e870(0x259)](_0x140f7f=>{const _0xbfb072=_0x55e870,_0x2c220d=_0x5ea0f3[_0x140f7f];Object[_0xbfb072(0x1b6)](_0x2c220d)[_0xbfb072(0x259)](_0x23328d=>{const _0x1fb5bc=_0xbfb072,_0x3324b6=_0x2c220d[_0x23328d];if(_0x3324b6){if(_0x38a532>=_0x406cf7)return;_0x38a532++;const _0x1f3f5c=this[_0x1fb5bc(0x296)](_0xc9c3b0),_0x4b6a3a=_0x1f3f5c['collections'][_0x23328d],_0x56bfbb=_0x4b6a3a[_0x1fb5bc(0x424)]();let _0x41f277=0x0;const _0x498483=[];for(const _0x5a03e0 of _0x56bfbb){const _0x362a66=_0x4b6a3a[_0x1fb5bc(0x3cb)](_0x5a03e0);if(_0x7008cc[_0x1fb5bc(0x201)](_0x362a66)){const _0x45cfdb=_0x362a66[_0x1fb5bc(0x232)](),_0x1e348d=_0x4b6a3a[_0x1fb5bc(0x3cb)](_0x45cfdb);_0x1e348d&&_0x498483[_0x1fb5bc(0x3c4)]([_0x362a66,_0x1e348d]);continue;}_0x1f3f5c[_0x1fb5bc(0x2de)](_0x5a03e0,_0x3324b6[_0x1fb5bc(0x359)],_0x41f277),_0x41f277++;}_0x498483['forEach'](([_0x283f70,_0x56c087])=>{const _0x491ce5=_0x1fb5bc;_0x283f70[_0x491ce5(0x21c)](_0x56c087);});const _0x214ea5=new _0x7008cc['PivotTable'](_0x4b6a3a);_0x214ea5['fromJSON'](_0x3324b6[_0x1fb5bc(0x432)]),this['addPivotTable'](_0xc9c3b0,_0x140f7f,_0x23328d,_0x214ea5,_0x3324b6);const _0xdca2d2=_0x214ea5[_0x1fb5bc(0x376)]();_0x5ab529[_0x1fb5bc(0x3c4)]({'unitId':_0xc9c3b0,'subUnitId':_0x140f7f,'pivotTableId':_0x23328d,'view':_0xdca2d2['toJSON'](),'pivotConfig':_0x3324b6,'type':_0x407136[_0x1fb5bc(0x1b3)]});const _0x34b9e0=!!_0x214ea5[_0x1fb5bc(0x2a9)](),_0x330f71={'view':_0xdca2d2,'pivotTableId':_0x23328d,'textInfo':this[_0x1fb5bc(0x2c8)](),'isEmpty':_0x34b9e0,'targetCellInfo':_0x3324b6[_0x1fb5bc(0x3ed)]};this['updateViewData'](_0x330f71,!0x1);}});});});}_0x8a3556&&Object['keys'](_0x8a3556)[_0xd50e8b(0x259)](_0x16e4e9=>{const _0x2f76b0=_0xd50e8b,_0x217b67=this[_0x2f76b0(0x296)](_0x16e4e9);this[_0x2f76b0(0x387)][_0x2f76b0(0x236)](_0x217b67[_0x2f76b0(0x3e4)]);}),this['_commandService'][_0xd50e8b(0x2eb)](_0x2727e2['id'],{'batch':_0x5ab529,'collectionConfig':_0x8a3556},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x2e2a37=_0x1e02b9;this[_0x2e2a37(0x268)](this['_resourceManagerService']['registerPluginResource']({'toJson':_0x585979=>JSON[_0x2e2a37(0x46f)](this[_0x2e2a37(0x3d6)](_0x585979)),'parseJson':_0x4f020a=>{const _0x541c55=_0x2e2a37;if(!_0x4f020a)return{};try{return JSON[_0x541c55(0x2db)](_0x4f020a);}catch{return{};}},'businesses':[_0x5b61bd[_0x2e2a37(0x428)]['UNIVER_SHEET']],'pluginName':_0x2b9ea6,'onLoad':(_0x417aca,_0x1b6f3c)=>{this['fromJSON'](_0x1b6f3c);},'onUnLoad':_0x381686=>{const _0x41f62f=_0x2e2a37;this[_0x41f62f(0x38b)](_0x381686);}}));}},_0x4e9eda[_0x1e02b9(0x20f)]=_0xe7c2b6([_0x2bf0c0(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x403)])),_0x2bf0c0(0x1,_0x5b61bd[_0x1e02b9(0x475)]),_0x2bf0c0(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x39e)])),_0x2bf0c0(0x3,_0x5b61bd['IConfigService']),_0x2bf0c0(0x4,_0x5b61bd[_0x1e02b9(0x18a)]),_0x2bf0c0(0x5,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x192)]))],_0x4e9eda[_0x1e02b9(0x20f)]);const _0x12aea6={0x0:{0x0:{'v':_0x1e02b9(0x478),'s':_0x519f45}},0x2:{0x1:{'v':'','s':_0x519f45},0x2:{'v':'','s':_0x519f45},0x3:{'v':_0x1e02b9(0x3ba),'s':_0x519f45},0x4:{'v':'','s':_0x519f45},0x5:{'v':'','s':_0x519f45}},0x3:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0x4:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0x5:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0x6:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0x7:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0x8:{0x0:{'v':_0x1e02b9(0x2e3),'s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':_0x1e02b9(0x2a3),'s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0x9:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0xa:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0xb:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0xc:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}},0xd:{0x0:{'v':'','s':_0x519f45},0x1:{'v':'','s':_0x542466},0x2:{'v':'','s':_0x542466},0x3:{'v':'','s':_0x542466},0x4:{'v':'','s':_0x542466},0x5:{'v':'','s':_0x542466}}},_0x1d64de={'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':[]},_0xd0cc2a=(_0x56cd4c,_0x2b3a71)=>{const _0x5d7d30=_0x1e02b9,_0x54a8c7=new _0x5b61bd[(_0x5d7d30(0x302))](),_0x4e7113=new _0x5b61bd[(_0x5d7d30(0x302))](_0x12aea6),{row:_0x5876b2,col:_0x26ed03}=_0x2b3a71;_0x4e7113[_0x5d7d30(0x488)]((_0x19c8fc,_0x4dcea8,_0x4fe73b)=>{const _0x561562=_0x5d7d30;let _0x5c4b67='';_0x4fe73b['v']===_0x561562(0x478)?_0x5c4b67=_0x56cd4c['filter']:_0x4fe73b['v']===_0x561562(0x2e3)?_0x5c4b67=_0x56cd4c[_0x561562(0x2e3)]:_0x4fe73b['v']===_0x561562(0x3ba)?_0x5c4b67=_0x56cd4c[_0x561562(0x3ba)]:_0x4fe73b['v']==='values'&&(_0x5c4b67=_0x56cd4c[_0x561562(0x2a3)]),_0x54a8c7[_0x561562(0x214)](_0x19c8fc+_0x5876b2,_0x4dcea8+_0x26ed03,{..._0x4fe73b,'v':_0x5c4b67});});const _0x5583ec=_0x5b61bd[_0x5d7d30(0x249)][_0x5d7d30(0x27c)](_0x1d64de);return Object[_0x5d7d30(0x1b6)](_0x1d64de)[_0x5d7d30(0x259)](_0xb45571=>{const _0x14f8b9=_0x5d7d30;_0x5583ec[_0xb45571]=_0x1d64de[_0xb45571][_0x14f8b9(0x384)](_0x1de3e4=>({..._0x1de3e4,'startRow':_0x1de3e4['startRow']+_0x5876b2,'endRow':_0x1de3e4[_0x14f8b9(0x2da)]+_0x5876b2,'startColumn':_0x1de3e4[_0x14f8b9(0x22d)]+_0x26ed03,'endColumn':_0x1de3e4[_0x14f8b9(0x394)]+_0x26ed03}));}),{'matrixCache':_0x54a8c7,'rangesCache':_0x5583ec};};function _0x2609b8(_0x17d388,_0x175b49){const _0x12e27a=_0x1e02b9;let _0x46e5d5='';const _0x40bafc=this['getTextInfo']();switch(_0x175b49){case _0x7008cc['PivotSubtotalTypeEnum']['average']:_0x46e5d5=_0x40bafc['sheets-pivot.averageName']+_0x17d388;break;case _0x7008cc[_0x12e27a(0x2d1)][_0x12e27a(0x3a1)]:_0x46e5d5=_0x40bafc[_0x12e27a(0x31c)]+_0x17d388;break;case _0x7008cc[_0x12e27a(0x2d1)][_0x12e27a(0x48e)]:_0x46e5d5=_0x40bafc[_0x12e27a(0x39d)]+_0x17d388;break;case _0x7008cc[_0x12e27a(0x2d1)][_0x12e27a(0x368)]:_0x46e5d5=_0x40bafc[_0x12e27a(0x2fa)]+_0x17d388;break;case _0x7008cc['PivotSubtotalTypeEnum']['min']:_0x46e5d5=_0x40bafc['sheets-pivot.minName']+_0x17d388;break;case _0x7008cc['PivotSubtotalTypeEnum'][_0x12e27a(0x48b)]:_0x46e5d5=_0x40bafc['sheets-pivot.productName']+_0x17d388;break;case _0x7008cc[_0x12e27a(0x2d1)][_0x12e27a(0x247)]:_0x46e5d5=_0x40bafc['sheets-pivot.stdDevName']+_0x17d388;break;case _0x7008cc['PivotSubtotalTypeEnum'][_0x12e27a(0x37f)]:_0x46e5d5=_0x40bafc[_0x12e27a(0x18e)]+_0x17d388;break;case _0x7008cc[_0x12e27a(0x2d1)][_0x12e27a(0x289)]:_0x46e5d5=_0x40bafc['sheets-pivot.sumName']+_0x17d388;break;case _0x7008cc[_0x12e27a(0x2d1)][_0x12e27a(0x1fc)]:_0x46e5d5=_0x40bafc[_0x12e27a(0x44f)]+_0x17d388;break;case _0x7008cc['PivotSubtotalTypeEnum'][_0x12e27a(0x3c0)]:_0x46e5d5=_0x40bafc[_0x12e27a(0x494)]+_0x17d388;break;default:_0x46e5d5=_0x17d388;break;}return _0x46e5d5;}function _0x4b4797(_0x1d63c7,_0x377efd,_0x4a34d3,_0x12931d,_0x2615d4){const _0x2f3910=_0x1e02b9;var _0x1f8035,_0x347dfa,_0x5d39b0,_0xfc8da4,_0x2aaff8;const _0x3e582b=_0x5b61bd[_0x2f3910(0x22a)](_0x1d63c7,_0x377efd),{rangesInfo:_0x903019,areaInfo:_0x3cdf00,headerMap:_0x32cf05}=_0x2615d4;if(!_0x903019||!_0x3cdf00||!_0x32cf05)return;const _0x1a3464=Object[_0x2f3910(0x1b6)](_0x903019)[_0x2f3910(0x250)](_0x50a6b4=>_0x903019[_0x50a6b4][_0x2f3910(0x322)](_0x35bc9f=>_0x5b61bd['Rectangle'][_0x2f3910(0x348)](_0x35bc9f,_0x3e582b))),_0x16682f=_0x3cdf00;let _0x367bb2,_0x36d55f,_0x451a05;if(_0x1a3464===_0x2f3910(0x33e))_0x367bb2=(_0x1f8035=_0x16682f==null?void 0x0:_0x16682f['rowInfo'])==null?void 0x0:_0x1f8035[_0x1d63c7],_0x36d55f=(_0x347dfa=_0x32cf05==null?void 0x0:_0x32cf05[_0x2f3910(0x34d)])==null?void 0x0:_0x347dfa[_0x377efd],_0x451a05=_0x36d55f==null?void 0x0:_0x36d55f[_0x2f3910(0x1d5)];else{if(_0x1a3464===_0x2f3910(0x496))_0x367bb2=(_0x5d39b0=_0x16682f==null?void 0x0:_0x16682f[_0x2f3910(0x325)])==null?void 0x0:_0x5d39b0[_0x377efd],_0x36d55f=(_0xfc8da4=_0x32cf05[_0x2f3910(0x448)])==null?void 0x0:_0xfc8da4[_0x1d63c7+0x1+_0x377efd-_0x903019[_0x2f3910(0x496)][0x0][_0x2f3910(0x22d)]],_0x451a05=_0x36d55f==null?void 0x0:_0x36d55f[_0x2f3910(0x1d5)];else{if(_0x1a3464===_0x2f3910(0x1ea))_0x367bb2=(_0x2aaff8=_0x16682f==null?void 0x0:_0x16682f[_0x2f3910(0x451)])==null?void 0x0:_0x2aaff8[_0x377efd],_0x451a05=_0x367bb2==null?void 0x0:_0x367bb2['tableFieldId'];else{if(_0x1a3464==='pageRanges'){const _0x498d53=_0x4a34d3==null?void 0x0:_0x4a34d3['fi'];_0x498d53!==void 0x0&&(_0x451a05=_0x12931d['getFilterFieldIdByIndex'](_0x498d53));}}}}return{'filterId':_0x451a05,'info':_0x367bb2,'data':_0x4a34d3,'headerInfo':_0x36d55f};}function _0x5ced2c(_0x489c5b,_0x469072,_0x2173e4){const _0xeb0afb=_0x1e02b9,_0x478193=_0x489c5b[_0xeb0afb(0x270)],_0x490321=_0x478193[_0xeb0afb(0x424)](),_0x2094cf=new Set();_0x489c5b['iterateField'](_0xc7b3dc=>{const _0x2147e1=_0xeb0afb;_0x2094cf[_0x2147e1(0x397)](_0xc7b3dc[_0x2147e1(0x3ec)]);});const _0x28bc96=_0x490321[_0xeb0afb(0x384)](_0x42bcbf=>{const _0x1f42be=_0xeb0afb,_0xbb742a=_0x478193['getFieldById'](_0x42bcbf);return{'checked':_0x2094cf[_0x1f42be(0x2cd)](_0x42bcbf),'dataFieldId':_0xbb742a['id'],'id':_0xbb742a['id'],'name':_0x478193[_0x1f42be(0x1c8)](_0xbb742a['id']),'type':_0xbb742a[_0x1f42be(0x305)](),'pivotTableId':_0x469072};}),_0x5a3815=[];_0x489c5b[_0xeb0afb(0x316)](_0x7008cc[_0xeb0afb(0x410)][_0xeb0afb(0x354)],_0x48a025=>{const _0x299e58=_0xeb0afb;_0x5a3815[_0x299e58(0x3c4)]({'dataFieldId':_0x48a025[_0x299e58(0x3ec)],'tableFieldId':_0x48a025[_0x299e58(0x463)](),'displayName':_0x48a025[_0x299e58(0x1c8)]()});});const _0x21626d=[];_0x489c5b[_0xeb0afb(0x316)](_0x7008cc['PivotTableFiledAreaEnum'][_0xeb0afb(0x1dc)],_0x3257bd=>{const _0x329de6=_0xeb0afb;_0x21626d[_0x329de6(0x3c4)]({'dataFieldId':_0x3257bd[_0x329de6(0x3ec)],'tableFieldId':_0x3257bd[_0x329de6(0x463)](),'displayName':_0x3257bd[_0x329de6(0x1c8)]()});});const _0x30ee2c=[];if(_0x489c5b[_0xeb0afb(0x316)](_0x7008cc[_0xeb0afb(0x410)][_0xeb0afb(0x48a)],_0x3ac424=>{const _0x455ca6=_0xeb0afb;_0x30ee2c[_0x455ca6(0x3c4)]({'dataFieldId':_0x3ac424[_0x455ca6(0x3ec)],'tableFieldId':_0x3ac424[_0x455ca6(0x463)](),'displayName':_0x3ac424[_0x455ca6(0x1c8)](),'format':_0x3ac424[_0x455ca6(0x328)](),'subTotalType':_0x3ac424['getSubtotal']()});}),_0x30ee2c[_0xeb0afb(0x370)]>0x1){const _0x110a1f=_0x489c5b[_0xeb0afb(0x2cb)]();(_0x489c5b[_0xeb0afb(0x292)]()?_0x21626d:_0x5a3815)[_0xeb0afb(0x485)](_0x110a1f,0x0,{'dataFieldId':'','tableFieldId':_0xeb0afb(0x350),'displayName':_0xeb0afb(0x23e)});}const _0x211476=[];_0x489c5b[_0xeb0afb(0x316)](_0x7008cc['PivotTableFiledAreaEnum'][_0xeb0afb(0x44c)],_0x13fde5=>{const _0x11147d=_0xeb0afb;_0x211476['push']({'dataFieldId':_0x13fde5['dataFieldId'],'tableFieldId':_0x13fde5[_0x11147d(0x463)](),'displayName':_0x13fde5[_0x11147d(0x1c8)]()});});const _0x2e44e5=_0x2173e4[_0xeb0afb(0x359)];return{'sourceList':_0x28bc96,'sourceRange':_0x2e44e5,'rowFields':_0x5a3815,'columnFields':_0x21626d,'valueFields':_0x30ee2c,'filterFields':_0x211476,'positionInfo':_0x2173e4[_0xeb0afb(0x3ed)]};}function _0x56113b(_0x4e0996,_0x2e00d6,_0x434f41='',_0x55c1ac={}){const _0x32083e=_0x1e02b9,_0x4543ec=_0x4e0996[_0x32083e(0x2ee)](_0x5b61bd[_0x32083e(0x26b)]);for(const _0x1ea42b in _0x2e00d6)if(Object[_0x32083e(0x2f4)][_0x32083e(0x25d)]['call'](_0x2e00d6,_0x1ea42b)){const _0x56049d=_0x434f41?_0x434f41+'.'+_0x1ea42b:_0x1ea42b;typeof _0x2e00d6[_0x1ea42b]=='object'&&_0x2e00d6[_0x1ea42b]!==null&&!Array[_0x32083e(0x29c)](_0x2e00d6[_0x1ea42b])?_0x56113b(_0x4e0996,_0x2e00d6[_0x1ea42b],_0x56049d,_0x55c1ac):_0x55c1ac[_0x56049d]=_0x4543ec['t'](_0x56049d);}return _0x55c1ac;}const _0x4cd387=_0x19b001=>{const _0x3ec8ad=_0x1e02b9;if(!_0x19b001)return[];const {rowRanges:_0x32bd4e,colRanges:_0x52d18c,cornerRanges:_0x3a247d,dataRanges:_0x442b94,pageRanges:_0x26d1a0}=_0x19b001,_0x5dc143=[..._0x52d18c,..._0x32bd4e,..._0x442b94,..._0x3a247d][_0x3ec8ad(0x478)](_0x5cdfa6=>_0x5cdfa6['startRow']>=0x0&&_0x5cdfa6['startColumn']>=0x0&&_0x5cdfa6[_0x3ec8ad(0x2da)]>=0x0&&_0x5cdfa6[_0x3ec8ad(0x394)]>=0x0);let _0x2131f6=Number[_0x3ec8ad(0x1c9)],_0x1ca394=Number[_0x3ec8ad(0x42d)],_0x153475=Number[_0x3ec8ad(0x1c9)],_0x4f0421=Number[_0x3ec8ad(0x42d)];for(let _0x4b6597=0x0;_0x4b6597<_0x5dc143[_0x3ec8ad(0x370)];_0x4b6597++)_0x2131f6=Math[_0x3ec8ad(0x25c)](_0x2131f6,_0x5dc143[_0x4b6597][_0x3ec8ad(0x25e)]),_0x1ca394=Math[_0x3ec8ad(0x368)](_0x1ca394,_0x5dc143[_0x4b6597][_0x3ec8ad(0x2da)]),_0x153475=Math[_0x3ec8ad(0x25c)](_0x153475,_0x5dc143[_0x4b6597][_0x3ec8ad(0x22d)]),_0x4f0421=Math[_0x3ec8ad(0x368)](_0x4f0421,_0x5dc143[_0x4b6597][_0x3ec8ad(0x394)]);return[..._0x26d1a0,{'startRow':_0x2131f6,'endRow':_0x1ca394,'startColumn':_0x153475,'endColumn':_0x4f0421}];};function _0x1fbad5(_0x1b7242,_0x2a0bd4){const _0x3dff4f=_0x1e02b9,_0x55552e=_0x2a0bd4['params'][_0x3dff4f(0x2d3)],{pivotTableId:_0x51b467,unitId:_0x31fea3,subUnitId:_0x497b4a}=_0x2a0bd4;if(!_0x55552e)return;const _0xc22ce1=_0x1b7242[_0x3dff4f(0x2ee)](_0x4e9eda[_0x3dff4f(0x20f)]),_0x4d61c1=_0xc22ce1[_0x3dff4f(0x2c5)](_0x51b467),_0x27b9fa=_0xc22ce1[_0x3dff4f(0x22f)](_0x31fea3,_0x497b4a,_0x51b467);if(!_0x4d61c1||!_0x27b9fa)return;const _0x5f1645=_0x4d61c1['getIndexesByPathStr'](_0x55552e[_0x3dff4f(0x187)]);if(!(_0x5f1645!=null&&_0x5f1645[_0x3dff4f(0x370)]))return;const _0x7061f2=_0x27b9fa['sourceRangeInfo'],{unitId:_0x1d4e85,subUnitId:_0x3a6f48,range:_0x5d0551}=_0x7061f2;let _0x3e1dad=0x0;const _0x4b171c=_0x4d61c1['dataFieldsCollection']['getFieldIds']()[_0x3dff4f(0x310)]((_0x39c96e,_0x16b1de)=>{var _0x5bd19e;const _0x37e394=(_0x5bd19e=_0x4d61c1['getDataFieldByDataFieldId'](_0x16b1de))==null?void 0x0:_0x5bd19e['getformat']();return _0x37e394&&(_0x39c96e[String(_0x3e1dad)]=_0x37e394),_0x3e1dad++,_0x39c96e;},{});return{'indexes':_0x5f1645,'range':_0x5d0551,'sourceUnitId':_0x1d4e85,'sourceSubUnitId':_0x3a6f48,'formatMap':_0x4b171c};}function _0x586982(_0x400279,_0x9e4e74){const _0x138097=_0x1e02b9;if(!_0x400279||!_0x9e4e74)return!0x0;const _0x5f2bb9=_0x573993['unshiftString'](_0xfe5d8,_0x36e952),_0x281cc8=new Function(_0x138097(0x41a)+_0x5f2bb9)()(_0x400279,_0x9e4e74)[_0x138097(0x414)],_0x4df3d0=_0x573993[_0x138097(0x321)](_0x281cc8,'sf',_0x440441);return!((_0x281cc8==null?void 0x0:_0x281cc8['rt'])===_0x573993[_0x138097(0x329)]['NO_COMMERCIAL']&&!_0x4df3d0);}function _0x8d06ca(_0x4fa98c,_0x271c4c,_0x55c45b){const _0xe0cc01=_0x1e02b9,_0x39dace={'count':_0x4fa98c,'timeValid':!0x1};if(!_0x271c4c||!_0x55c45b)return _0x39dace;const _0x4de50c=_0x573993[_0xe0cc01(0x1e2)](_0xfe5d8,_0x36e952),_0x161f93=new Function('return\x20'+_0x4de50c)()(_0x271c4c,_0x55c45b);if(_0x161f93!=null&&_0x161f93[_0xe0cc01(0x3df)]){const _0x57b167=_0x161f93['message'],_0x17cb87=_0x573993[_0xe0cc01(0x321)](_0x57b167,'sf',_0x440441);return{'count':_0x573993[_0xe0cc01(0x283)](_0x57b167,_0x17cb87,_0xe0cc01(0x481),_0x4fa98c,_0x4fa98c,0x0),'timeValid':_0x17cb87};}return _0x39dace;}function _0x3eb589(_0x12f18b,_0xc15bd,_0x99eed5,_0x5a8b67){const _0x1b150b=_0x1e02b9,_0x1c68d4={'subUnitId':_0x99eed5,'unitId':_0xc15bd,'cellValue':_0x2009a4['generateNullCell'](_0x5a8b67)},_0x1d9fef=_0x2009a4[_0x1b150b(0x19d)](_0x12f18b,_0x1c68d4);let _0x419b5a=!0x1;return new _0x5b61bd[(_0x1b150b(0x302))](_0x1d9fef[_0x1b150b(0x1df)])[_0x1b150b(0x488)]((_0x5a148e,_0x4bdd7d,_0x3a6f10)=>{if(!_0x419b5a&&_0x3a6f10&&(_0x3a6f10['custom']||_0x3a6f10['f']||_0x3a6f10['p']||_0x3a6f10['s']||_0x3a6f10['si']||_0x3a6f10['t']||_0x3a6f10['v']))return _0x419b5a=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x2009a4[_0x1b150b(0x20c)]['id'],'params':_0x1d9fef},'setRangeValueRedoMutation':{'id':_0x2009a4[_0x1b150b(0x20c)]['id'],'params':_0x1c68d4},'shouldClear':_0x419b5a};}function _0x4916f6(_0x303c37){const {row:_0x2a2ce2,col:_0xa472e3}=_0x303c37,_0x2c33df={'startRow':_0x2a2ce2,'endRow':_0x2a2ce2,'startColumn':_0xa472e3,'endColumn':_0xa472e3},_0x27803c={'startRow':_0x2a2ce2+0x2,'endRow':_0x2a2ce2+0xe,'startColumn':_0xa472e3,'endColumn':_0xa472e3+0x6};return[_0x2c33df,_0x27803c];}function _0x3c6faa(_0x3c4631,_0x4cc860,_0x2cb9f0){const _0x265884=_0x1e02b9,{cornerView:_0x79ee40,rowView:_0x480b0b,colView:_0x4cb81d,pageView:_0x316f1c}=_0x3c4631,{row:_0x1388eb,col:_0x3f2f0e}=_0x4cc860;if(_0x2cb9f0)return{'rowCount':_0x894520+_0x1388eb,'colCount':_0x1ae5b9+_0x3f2f0e};const _0xec6455=_0x316f1c['lastRow']>-0x1?_0x316f1c[_0x265884(0x399)]+0x1:0x0,_0xc64dae=_0x316f1c[_0x265884(0x386)]>-0x1?_0x316f1c[_0x265884(0x386)]:0x0,_0x491ac2=_0x1388eb+_0xec6455+(_0xec6455?0x1:0x0)+_0x79ee40[_0x265884(0x2a5)]+_0x480b0b['rowCount'],_0x3098f8=_0x3f2f0e+_0xc64dae,_0x344165=_0x3f2f0e+_0x79ee40[_0x265884(0x388)]+_0x4cb81d[_0x265884(0x388)],_0x5e07e3=Math['max'](_0x3098f8,_0x344165);return{'rowCount':_0x491ac2,'colCount':_0x5e07e3};}function _0x58f3ac(_0x2ab9f5,_0x10c732,_0x4b39ae,_0x1ab809){const _0x404e2f=_0x1e02b9,{row:_0x3d247e,col:_0x3ded8a,unitId:_0x47780b,subUnitId:_0x5c1ae0}=_0x4b39ae,_0x3306de=_0x3c6faa(_0x10c732,{'row':_0x3d247e,'col':_0x3ded8a},_0x1ab809),_0x2e1da7=_0x2ab9f5[_0x404e2f(0x2ee)](_0x5b61bd[_0x404e2f(0x475)]),_0x5c6069=_0x2009a4['getSheetCommandTarget'](_0x2e1da7,{'unitId':_0x47780b,'subUnitId':_0x5c1ae0}),_0x4d2dd5=[],_0x3e8729=[];if(!_0x5c6069)return{'undos':_0x3e8729,'redos':_0x4d2dd5};const {worksheet:_0x1c8f82}=_0x5c6069,_0x4115de=_0x1c8f82[_0x404e2f(0x3a0)](),_0x2a4ac5=_0x1c8f82['getColumnCount']();return _0x4115de<_0x3306de['rowCount']&&(_0x4d2dd5['push']({'id':_0x2009a4['InsertRowMutation']['id'],'params':{'unitId':_0x47780b,'subUnitId':_0x5c1ae0,'range':{'startRow':_0x4115de,'endRow':_0x3306de[_0x404e2f(0x2a5)]-0x1,'startColumn':0x0,'endColumn':_0x2a4ac5-0x1}}}),_0x3e8729[_0x404e2f(0x3c4)]({'id':_0x2009a4[_0x404e2f(0x42c)]['id'],'params':{'unitId':_0x47780b,'subUnitId':_0x5c1ae0,'range':{'startRow':_0x4115de,'endRow':_0x3306de[_0x404e2f(0x2a5)]-0x1,'startColumn':0x0,'endColumn':_0x2a4ac5-0x1}}})),_0x2a4ac5<_0x3306de[_0x404e2f(0x388)]&&(_0x4d2dd5[_0x404e2f(0x3c4)]({'id':_0x2009a4['InsertColMutation']['id'],'params':{'unitId':_0x47780b,'subUnitId':_0x5c1ae0,'range':{'startRow':0x0,'endRow':_0x4115de-0x1,'startColumn':_0x2a4ac5,'endColumn':_0x3306de['colCount']-0x1}}}),_0x3e8729[_0x404e2f(0x3c4)]({'id':_0x2009a4['RemoveColMutation']['id'],'params':{'unitId':_0x47780b,'subUnitId':_0x5c1ae0,'range':{'startRow':0x0,'endRow':_0x4115de-0x1,'startColumn':_0x2a4ac5,'endColumn':_0x3306de[_0x404e2f(0x388)]-0x1}}})),{'undos':_0x3e8729,'redos':_0x4d2dd5};}function _0x153545(_0x342a02){const _0x3b585e=_0x1e02b9;let _0x213127=0x0;for(let _0x38c4bd=0x0;_0x38c4bd<_0x342a02[_0x3b585e(0x370)];_0x38c4bd++){const _0x384ce3=_0x342a02[_0x3b585e(0x1f1)](_0x38c4bd);_0x384ce3>=0x4e00&&_0x384ce3<=0x9fff||_0x384ce3>=0x3000&&_0x384ce3<=0x303f||_0x384ce3>=0xff00&&_0x384ce3<=0xffef?_0x213127+=0x2:_0x213127+=0x1;}return _0x213127;}function _0x3ab8ff(_0x1adbcd,_0x509352,_0x1acc5c,_0x1291f8){const _0x2f9d93=_0x1e02b9;var _0x3a105e,_0x1a5864,_0x392c93,_0x4114d4;const {rowCount:_0x43ace1,colCount:_0x56d698,headerMap:_0x47c6a8}=_0x1adbcd,_0x64af22=0x64,_0x4dea00=Math[_0x2f9d93(0x25c)](_0x43ace1,_0x64af22),_0x35c9eb=Math[_0x2f9d93(0x25c)](_0x56d698,_0x64af22);let _0x51e1c0='',_0x29f388=0x0;for(let _0x4327f9=0x0;_0x4327f9<_0x4dea00;_0x4327f9++)for(let _0x48c390=0x0;_0x48c390<_0x35c9eb;_0x48c390++){const _0x425e21={...(_0x1a5864=(_0x3a105e=_0x1adbcd['data'])==null?void 0x0:_0x3a105e[_0x4327f9])==null?void 0x0:_0x1a5864[_0x48c390]},_0x677e32=(_0x392c93=_0x47c6a8[_0x4327f9])==null?void 0x0:_0x392c93[_0x2f9d93(0x1d5)],_0x1554ed=_0x1291f8[_0x677e32];let _0x1f744c=_0x1adbcd[_0x2f9d93(0x3ef)](_0x4327f9,_0x48c390);if(_0x425e21){const _0x3a3977=_0x1acc5c?_0x48c390===0x0&&((_0x4114d4=_0x1adbcd[_0x2f9d93(0x47b)](_0x48c390+0x1))==null?void 0x0:_0x4114d4[_0x2f9d93(0x2c3)]):!0x1;_0x1f744c=_0x34f9f3(_0x425e21,_0x3a3977,_0x1554ed,_0x509352);}if(_0x1f744c!==void 0x0){const _0x3488ac=_0x153545(String(_0x1f744c));_0x29f388<_0x3488ac&&(_0x51e1c0=String(_0x1f744c),_0x29f388=_0x3488ac);}}return _0x51e1c0;}function _0x21e3f0(_0x4b17a0){const _0x654e6a=_0x1e02b9,{rowCount:_0x36b7ef,colCount:_0x1d0824}=_0x4b17a0;let _0x156256='',_0x599881=0x0;for(let _0xa031aa=_0x36b7ef-0x1;_0xa031aa>0x0&&_0xa031aa>_0x36b7ef-0x3;_0xa031aa--)for(let _0x395ef6=0x0;_0x395ef6<_0x1d0824;_0x395ef6++){const _0x58c6b1=_0x4b17a0[_0x654e6a(0x3ef)](_0xa031aa,_0x395ef6);if(_0x58c6b1!==void 0x0){const _0x469c5d=String(_0x58c6b1)[_0x654e6a(0x370)];_0x599881<_0x469c5d&&(_0x156256=String(_0x58c6b1),_0x599881=_0x469c5d);}}return _0x156256;}function _0x20b704(_0x528a2b){const _0x3349b0=_0x1e02b9,{rowCount:_0x233f12,colCount:_0x54520a}=_0x528a2b;let _0x1d4b1b='',_0x38c6b5=0x0;for(let _0xbbc95e=0x0;_0xbbc95e<_0x233f12;_0xbbc95e++)for(let _0x2bdb85=0x0;_0x2bdb85<_0x54520a;_0x2bdb85++){const _0x2d642e=_0x528a2b['getValue'](_0xbbc95e,_0x2bdb85);if(_0x2d642e!==void 0x0){const _0x35ac4b=String(_0x2d642e)[_0x3349b0(0x370)];_0x38c6b5<_0x35ac4b&&(_0x1d4b1b=String(_0x2d642e),_0x38c6b5=_0x35ac4b);}}return _0x1d4b1b;}function _0x2a0725(_0x3a4aa4,_0x35b273){const _0x3071b9=_0x1e02b9,{rowFields:_0x321bbc,columnFields:_0x733acf,valueFields:_0x3209b7,filterFields:_0x18053e,dimension:_0x5b95a0,measure:_0x4beac7}=_0x35b273;for(const _0xa06ad2 of _0x321bbc){const _0x160b80=_0x5b95a0[_0xa06ad2];_0x160b80&&_0x3a4aa4[_0x3071b9(0x26d)](_0x160b80[_0x3071b9(0x3ec)])&&(_0x3a4aa4[_0x3071b9(0x244)](_0x160b80[_0x3071b9(0x3ec)],_0x7008cc[_0x3071b9(0x410)][_0x3071b9(0x354)],void 0x0,_0xa06ad2),_0x160b80[_0x3071b9(0x3ca)]&&_0x3a4aa4[_0x3071b9(0x405)](_0x160b80['id'],_0x160b80[_0x3071b9(0x3ca)]),_0x160b80[_0x3071b9(0x21e)]&&_0x3a4aa4[_0x3071b9(0x390)](_0x160b80['id'],_0x160b80[_0x3071b9(0x21e)]),_0x160b80[_0x3071b9(0x20b)]&&_0x3a4aa4['setLabelFilterInfo'](_0x160b80['id'],_0x160b80['filterInfo']));}for(const _0x25d59d of _0x733acf){const _0x491cc3=_0x5b95a0[_0x25d59d];_0x491cc3&&_0x3a4aa4[_0x3071b9(0x26d)](_0x491cc3[_0x3071b9(0x3ec)])&&(_0x3a4aa4['addFieldWithSourceId'](_0x491cc3[_0x3071b9(0x3ec)],_0x7008cc[_0x3071b9(0x410)][_0x3071b9(0x1dc)],void 0x0,_0x25d59d),_0x491cc3[_0x3071b9(0x21e)]&&_0x3a4aa4[_0x3071b9(0x390)](_0x491cc3['id'],_0x491cc3[_0x3071b9(0x21e)]),_0x491cc3[_0x3071b9(0x20b)]&&_0x3a4aa4[_0x3071b9(0x3bc)](_0x491cc3['id'],_0x491cc3[_0x3071b9(0x20b)]),_0x491cc3['displayName']&&_0x3a4aa4[_0x3071b9(0x405)](_0x491cc3['id'],_0x491cc3['displayName']));}for(const _0x3faa7a of _0x18053e){const _0x4abc6f=_0x5b95a0[_0x3faa7a];_0x4abc6f&&_0x3a4aa4[_0x3071b9(0x26d)](_0x4abc6f[_0x3071b9(0x3ec)])&&(_0x3a4aa4[_0x3071b9(0x244)](_0x4abc6f[_0x3071b9(0x3ec)],_0x7008cc['PivotTableFiledAreaEnum']['Filter'],void 0x0,_0x3faa7a),_0x4abc6f[_0x3071b9(0x21e)]&&_0x3a4aa4[_0x3071b9(0x390)](_0x4abc6f['id'],_0x4abc6f[_0x3071b9(0x21e)]),_0x4abc6f[_0x3071b9(0x20b)]&&_0x3a4aa4[_0x3071b9(0x3bc)](_0x4abc6f['id'],_0x4abc6f[_0x3071b9(0x20b)]),_0x4abc6f[_0x3071b9(0x3ca)]&&_0x3a4aa4[_0x3071b9(0x405)](_0x4abc6f['id'],_0x4abc6f[_0x3071b9(0x3ca)]));}for(const _0x4d25ae of _0x3209b7){const _0x9e3b8f=_0x4beac7[_0x4d25ae];_0x9e3b8f&&_0x3a4aa4[_0x3071b9(0x26d)](_0x9e3b8f[_0x3071b9(0x3ec)])&&(_0x3a4aa4[_0x3071b9(0x244)](_0x9e3b8f['dataFieldId'],_0x7008cc['PivotTableFiledAreaEnum'][_0x3071b9(0x48a)],void 0x0,_0x4d25ae),_0x9e3b8f[_0x3071b9(0x1a8)]!==void 0x0&&_0x3a4aa4['setSubtotalType'](_0x4d25ae,_0x9e3b8f[_0x3071b9(0x1a8)]),_0x9e3b8f[_0x3071b9(0x1b1)]&&_0x3a4aa4[_0x3071b9(0x429)](_0x4d25ae,_0x9e3b8f[_0x3071b9(0x1b1)]),_0x9e3b8f['displayName']&&_0x3a4aa4[_0x3071b9(0x405)](_0x9e3b8f['id'],_0x9e3b8f[_0x3071b9(0x3ca)]));}const _0x1cd622=_0x35b273['valueFilter'];for(const {fieldId:_0x5eff5a,filterInfo:_0x144e69}of _0x1cd622)_0x3a4aa4[_0x3071b9(0x300)](_0x5eff5a,_0x144e69);}function _0x28779b(_0x1074f3,_0x44b3c4){const _0x3f4861=_0x1e02b9,_0x5558e6=[];_0x44b3c4===_0x7008cc[_0x3f4861(0x410)]['Row']&&_0x1074f3[_0x3f4861(0x316)](_0x7008cc[_0x3f4861(0x410)][_0x3f4861(0x354)],_0x52fe10=>{const _0x4ddfbf=_0x3f4861;_0x5558e6[_0x4ddfbf(0x3c4)](_0x52fe10[_0x4ddfbf(0x463)]());}),_0x44b3c4===_0x7008cc[_0x3f4861(0x410)][_0x3f4861(0x1dc)]&&_0x1074f3[_0x3f4861(0x316)](_0x7008cc['PivotTableFiledAreaEnum'][_0x3f4861(0x1dc)],_0x3fc223=>{const _0x532761=_0x3f4861;_0x5558e6[_0x532761(0x3c4)](_0x3fc223[_0x532761(0x463)]());}),_0x44b3c4===_0x7008cc[_0x3f4861(0x410)][_0x3f4861(0x44c)]&&_0x1074f3[_0x3f4861(0x316)](_0x7008cc[_0x3f4861(0x410)][_0x3f4861(0x44c)],_0x3aac71=>{const _0x533f21=_0x3f4861;_0x5558e6[_0x533f21(0x3c4)](_0x3aac71[_0x533f21(0x463)]());}),_0x44b3c4===_0x7008cc['PivotTableFiledAreaEnum'][_0x3f4861(0x48a)]&&_0x1074f3[_0x3f4861(0x316)](_0x7008cc[_0x3f4861(0x410)]['Value'],_0x585e28=>{const _0x37e240=_0x3f4861;_0x5558e6[_0x37e240(0x3c4)](_0x585e28[_0x37e240(0x463)]());}),_0x44b3c4===void 0x0&&_0x1074f3[_0x3f4861(0x3ce)](_0x3ddb93=>{const _0x48a07e=_0x3f4861;_0x5558e6[_0x48a07e(0x3c4)](_0x3ddb93[_0x48a07e(0x463)]());});const _0xc836a9=_0x5558e6['length'];for(let _0xa6cc6e=_0xc836a9-0x1;_0xa6cc6e>=0x0;_0xa6cc6e--)_0x1074f3[_0x3f4861(0x346)](_0x5558e6[_0xa6cc6e]);const _0x5c0cb6=_0x1074f3['getValueFilterInfos']();for(const _0x130c71 in _0x5c0cb6)_0x1074f3[_0x3f4861(0x458)](_0x130c71);}function _0x1a6e57(_0x2b9969,_0x5994c2){const _0x3aa795=_0x1e02b9,_0x5e0ee6=new Date(_0x7008cc[_0x3aa795(0x1e3)](_0x5994c2)),_0x179cff=new Date(_0x7008cc[_0x3aa795(0x1e3)](_0x2b9969)),_0x15c517=_0x5e0ee6[_0x3aa795(0x3dd)](),_0x5b70e0=_0x179cff[_0x3aa795(0x3dd)](),_0x3d041f=_0x5e0ee6[_0x3aa795(0x27d)](),_0x933acf=_0x179cff[_0x3aa795(0x27d)](),_0x151e8a=_0x5e0ee6[_0x3aa795(0x1a3)](),_0x2575de=_0x179cff[_0x3aa795(0x1a3)](),_0x1783e9=_0x15c517===_0x5b70e0,_0x2cc5e4=_0x1783e9&&_0x3d041f===_0x933acf;return _0x1783e9&&_0x2cc5e4&&!(_0x2cc5e4&&_0x151e8a===_0x2575de)?_0x7008cc[_0x3aa795(0x298)]['YearMonthDate']:_0x1783e9&&!_0x2cc5e4?_0x7008cc[_0x3aa795(0x298)][_0x3aa795(0x2bf)]:_0x7008cc[_0x3aa795(0x298)][_0x3aa795(0x3f6)];}function _0x3bf797(_0x173708,_0xe842f9){const _0x4a8b60=_0x1e02b9,_0x3845e5=_0x173708[_0x4a8b60(0x2ee)](_0x4e9eda[_0x4a8b60(0x20f)])['getTextInfo']();let _0x2a4d64='';switch(_0xe842f9){case _0x7008cc[_0x4a8b60(0x298)][_0x4a8b60(0x452)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x2aa)];break;case _0x7008cc['PivotDateGroupFieldDateTypeEnum'][_0x4a8b60(0x2bf)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x262)];break;case _0x7008cc[_0x4a8b60(0x298)][_0x4a8b60(0x3f6)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x3b8)];break;case _0x7008cc[_0x4a8b60(0x298)]['Month']:_0x2a4d64=_0x3845e5[_0x4a8b60(0x31f)];break;case _0x7008cc[_0x4a8b60(0x298)][_0x4a8b60(0x1ba)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x1dd)];break;case _0x7008cc['PivotDateGroupFieldDateTypeEnum'][_0x4a8b60(0x3de)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x254)];break;case _0x7008cc['PivotDateGroupFieldDateTypeEnum'][_0x4a8b60(0x43b)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x36e)];break;case _0x7008cc[_0x4a8b60(0x298)][_0x4a8b60(0x46b)]:_0x2a4d64=_0x3845e5[_0x4a8b60(0x48d)];break;case _0x7008cc[_0x4a8b60(0x298)][_0x4a8b60(0x1cb)]:_0x2a4d64=_0x3845e5['sheets-pivot.dateGroup.minute'];break;case _0x7008cc[_0x4a8b60(0x298)]['MonthDate']:_0x2a4d64=_0x3845e5[_0x4a8b60(0x2b1)];break;case _0x7008cc[_0x4a8b60(0x298)][_0x4a8b60(0x30c)]:_0x2a4d64=_0x3845e5['sheets-pivot.dateGroup.yearQuarter'];break;default:_0x2a4d64='';break;}return _0x2a4d64;}const _0x442f8f=_0x1e02b9(0x318),_0x3f8cf3={};var _0x21a124=Object[_0x1e02b9(0x2b9)],_0x34fa44=(_0x3e1749,_0x42fb84,_0x28e706,_0x7a80ab)=>{for(var _0x2b6649=_0x7a80ab>0x1?void 0x0:_0x7a80ab?_0x21a124(_0x42fb84,_0x28e706):_0x42fb84,_0xc63500=_0x3e1749['length']-0x1,_0x240368;_0xc63500>=0x0;_0xc63500--)(_0x240368=_0x3e1749[_0xc63500])&&(_0x2b6649=_0x240368(_0x2b6649)||_0x2b6649);return _0x2b6649;},_0x5e6e76=(_0xa40735,_0x655078)=>(_0x2935a6,_0x1b5e2f)=>_0x655078(_0x2935a6,_0x1b5e2f,_0xa40735);_0x4e9eda['SheetsPivotTableConfigModel']=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x134c70,_0x8a9716,_0x3d21e3,_0x246e79,_0x4dacff){const _0x6f6445=_0x1e02b9;super(),_0xef46e3(this,_0x6f6445(0x383),new Map()),_0xef46e3(this,_0x6f6445(0x440),new Map()),_0xef46e3(this,_0x6f6445(0x36a),new Map()),_0xef46e3(this,_0x6f6445(0x24d),new Map()),_0xef46e3(this,_0x6f6445(0x421),new _0x5928f9['Subject']()),_0xef46e3(this,_0x6f6445(0x457),new _0x5928f9[(_0x6f6445(0x461))]()),_0xef46e3(this,'pivotInitCompleted$',this[_0x6f6445(0x457)][_0x6f6445(0x1fb)]()),_0xef46e3(this,_0x6f6445(0x3dc),new _0x5928f9[(_0x6f6445(0x461))]()),_0xef46e3(this,_0x6f6445(0x2d7),this[_0x6f6445(0x3dc)][_0x6f6445(0x1fb)]()),_0xef46e3(this,_0x6f6445(0x3f0),{}),_0xef46e3(this,_0x6f6445(0x215),this[_0x6f6445(0x421)][_0x6f6445(0x1fb)]()),(this['_injector']=_0x134c70,this['_commandService']=_0x8a9716,this[_0x6f6445(0x223)]=_0x3d21e3,this[_0x6f6445(0x372)]=_0x246e79,this[_0x6f6445(0x23c)]=_0x4dacff,this[_0x6f6445(0x46c)](),this['_initUnitDisposed']());const _0x1475d0=this[_0x6f6445(0x23c)][_0x6f6445(0x35f)](_0x442f8f);(_0x1475d0==null?void 0x0:_0x1475d0['notExecuteFormula'])===!0x0&&this[_0x6f6445(0x433)]();}[_0x1e02b9(0x323)](){const _0x1dc584=_0x1e02b9;this['disposeWithMe'](this[_0x1dc584(0x223)]['getTypeOfUnitDisposed$'](_0x5b61bd['UniverInstanceType'][_0x1dc584(0x2a7)])[_0x1dc584(0x3c6)](_0xb0999=>{const _0x1bea87=_0x1dc584;this[_0x1bea87(0x38b)](_0xb0999['getUnitId']());}));}[_0x1e02b9(0x445)](){const _0x5d4973=_0x1e02b9;this[_0x5d4973(0x457)][_0x5d4973(0x236)](!0x0);}['_initLocale'](){const _0x457497=_0x1e02b9,_0x2069d3=_0x56113b(this[_0x457497(0x2d5)],_0x5caa5f,'',{});this[_0x457497(0x3f0)]=_0x2069d3,this[_0x457497(0x3f2)][_0x457497(0x2eb)](_0xb20377['id'],{'textInfo':_0x2069d3},{'onlyLocal':!0x0});}[_0x1e02b9(0x2c8)](){return this['_textInfo'];}[_0x1e02b9(0x499)](_0x37d566,_0x16f0d2,_0x4fd085,_0x5c396d,_0x35305b){this['updatePivotTableMatrixInfo'](_0x37d566,_0x16f0d2,_0x4fd085,_0x5c396d),this['updatePivotTableRangeInfo'](_0x37d566,_0x16f0d2,_0x4fd085,_0x35305b);}['getPivotTableConfig'](_0x1228cf,_0x1fc079,_0x163a47){const _0x1f1817=_0x1e02b9;var _0xb7a8fc;const _0x48ad60=(_0xb7a8fc=this[_0x1f1817(0x383)][_0x1f1817(0x2ee)](_0x1228cf))==null?void 0x0:_0xb7a8fc[_0x1f1817(0x2ee)](_0x1fc079);if(_0x48ad60)return _0x48ad60['get'](_0x163a47);}[_0x1e02b9(0x3bb)](_0xe5140a,_0x338ca1){const _0x150184=_0x1e02b9,_0x4ac56a=this['_model'][_0x150184(0x2ee)](_0xe5140a);if(_0x4ac56a){for(const [_0x154992,_0xaf1a33]of _0x4ac56a[_0x150184(0x2a4)]())for(const [_0x1dc2f0,_0x54ec5d]of _0xaf1a33[_0x150184(0x2a4)]())if(_0x1dc2f0===_0x338ca1)return _0x54ec5d['targetCellInfo'];}}[_0x1e02b9(0x3d5)](_0x4b320e,_0x494118,_0x21478b){const _0x348093=this['getPivotTableConfig'](_0x4b320e,_0x494118,_0x21478b);return _0x348093==null?void 0x0:_0x348093['targetCellInfo'];}[_0x1e02b9(0x41c)](_0x4b98e2,_0x44967c){const _0x200b54=_0x1e02b9;var _0x145039;return(_0x145039=this[_0x200b54(0x383)][_0x200b54(0x2ee)](_0x4b98e2))==null?void 0x0:_0x145039['get'](_0x44967c);}[_0x1e02b9(0x423)](_0x5c7c7f,_0x1d2063,_0x14a9ee,_0x5e5731){const _0x329b93=_0x1e02b9,_0x585370=this['_ensurePivotMap'](_0x5c7c7f,_0x1d2063);_0x5e5731?_0x585370['set'](_0x14a9ee,_0x5e5731):_0x585370[_0x329b93(0x301)](_0x14a9ee),this[_0x329b93(0x3dc)][_0x329b93(0x236)]({'unitId':_0x5c7c7f,'subUnitId':_0x1d2063,'pivotTableId':_0x14a9ee,'pivotTableConfig':_0x5e5731});}[_0x1e02b9(0x1a7)](_0x3603d9,_0x42506c){const _0x227cf2=_0x1e02b9;var _0x1f9d05;return(_0x1f9d05=this[_0x227cf2(0x440)][_0x227cf2(0x2ee)](_0x3603d9))==null?void 0x0:_0x1f9d05[_0x227cf2(0x3e4)][_0x42506c];}[_0x1e02b9(0x212)](_0x485693,_0x4ca610){const _0x214eff=_0x1e02b9;this[_0x214eff(0x440)][_0x214eff(0x33f)](_0x485693,_0x4ca610),this[_0x214eff(0x421)][_0x214eff(0x236)](Math[_0x214eff(0x2ce)]());}[_0x1e02b9(0x2fd)](_0x1c2918,_0x210f6a){const _0x2aaa78=_0x1e02b9;let _0x287f94=this['_model'][_0x2aaa78(0x2ee)](_0x1c2918);_0x287f94||(_0x287f94=new Map(),this[_0x2aaa78(0x383)]['set'](_0x1c2918,_0x287f94));let _0x1a96ec=_0x287f94['get'](_0x210f6a);return _0x1a96ec||(_0x1a96ec=new Map(),_0x287f94['set'](_0x210f6a,_0x1a96ec)),_0x1a96ec;}[_0x1e02b9(0x24b)](_0x4ae54a,_0x4e84e7){const _0x4eaff4=_0x1e02b9;let _0x424cb4=this['_pivotTableRangeInfo'][_0x4eaff4(0x2ee)](_0x4ae54a);_0x424cb4||(_0x424cb4=new Map(),this[_0x4eaff4(0x36a)]['set'](_0x4ae54a,_0x424cb4));let _0x322a83=_0x424cb4['get'](_0x4e84e7);return _0x322a83||(_0x322a83=new Map(),_0x424cb4[_0x4eaff4(0x33f)](_0x4e84e7,_0x322a83)),_0x322a83;}['_ensurePivotTableMatrixInfo'](_0x5fc933,_0x32e337){const _0x46986f=_0x1e02b9;let _0x33fdae=this[_0x46986f(0x24d)][_0x46986f(0x2ee)](_0x5fc933);_0x33fdae||(_0x33fdae=new Map(),this[_0x46986f(0x24d)][_0x46986f(0x33f)](_0x5fc933,_0x33fdae));let _0x149be3=_0x33fdae[_0x46986f(0x2ee)](_0x32e337);return _0x149be3||(_0x149be3=new Map(),_0x33fdae[_0x46986f(0x33f)](_0x32e337,_0x149be3)),_0x149be3;}[_0x1e02b9(0x2ad)](_0x4e4bac,_0x2a9da6,_0x448318,_0x5d7a45){const _0x301a2b=_0x1e02b9;var _0x4c9443;const _0x29f6f7=this[_0x301a2b(0x24b)](_0x4e4bac,_0x2a9da6),_0x26eb2b=(_0x4c9443=_0x29f6f7[_0x301a2b(0x2ee)](_0x448318))==null?void 0x0:_0x4c9443[_0x301a2b(0x29a)];_0x29f6f7['set'](_0x448318,{'oldRangeInfo':_0x26eb2b,'rangeInfo':_0x5d7a45});}[_0x1e02b9(0x335)](_0x5d5d5f,_0xbd686c,_0x2d6ceb,_0x4ee50d){const _0xb72879=_0x1e02b9;var _0x32cbab;const _0x370ed9=this['_ensurePivotTableMatrixInfo'](_0x5d5d5f,_0xbd686c),_0x35209e=(_0x32cbab=_0x370ed9[_0xb72879(0x2ee)](_0x2d6ceb))==null?void 0x0:_0x32cbab[_0xb72879(0x363)];_0x370ed9['set'](_0x2d6ceb,{'oldMatrix':_0x35209e,'matrix':_0x4ee50d});}[_0x1e02b9(0x3f4)](_0x37457c,_0x29303d,_0x59d5d4){const _0xcc7543=_0x1e02b9;var _0x3caf3f,_0x477f42;return(_0x477f42=(_0x3caf3f=this['_pivotTableRangeInfo'][_0xcc7543(0x2ee)](_0x37457c))==null?void 0x0:_0x3caf3f[_0xcc7543(0x2ee)](_0x29303d))==null?void 0x0:_0x477f42['get'](_0x59d5d4);}[_0x1e02b9(0x324)](_0x3d672b,_0x56152e,_0x4117c3){const _0x6af3ae=_0x1e02b9;var _0x17b31b,_0x3e702e;return(_0x3e702e=(_0x17b31b=this[_0x6af3ae(0x24d)]['get'](_0x3d672b))==null?void 0x0:_0x17b31b[_0x6af3ae(0x2ee)](_0x56152e))==null?void 0x0:_0x3e702e['get'](_0x4117c3);}[_0x1e02b9(0x38b)](_0x15d9e6){const _0x5f08f1=_0x1e02b9;this[_0x5f08f1(0x383)][_0x5f08f1(0x301)](_0x15d9e6),this[_0x5f08f1(0x440)][_0x5f08f1(0x301)](_0x15d9e6);}[_0x1e02b9(0x468)](_0x3328ed){const _0x19158d=_0x1e02b9,_0xf7080d={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['_collectionConfigModel'][_0x19158d(0x2ee)](_0x3328ed)&&(_0xf7080d['dataFieldManagerConfig'][_0x3328ed]=this[_0x19158d(0x440)]['get'](_0x3328ed)),this[_0x19158d(0x383)][_0x19158d(0x2ee)](_0x3328ed)){_0xf7080d[_0x19158d(0x217)][_0x3328ed]={};const _0x1deb58=this[_0x19158d(0x383)][_0x19158d(0x2ee)](_0x3328ed);_0x1deb58!=null&&_0x1deb58['size']&&[..._0x1deb58[_0x19158d(0x1b6)]()][_0x19158d(0x259)](_0x11939d=>{const _0x24c070=_0x19158d,_0x569b77=_0x1deb58[_0x24c070(0x2ee)](_0x11939d);_0x569b77!=null&&_0x569b77[_0x24c070(0x434)]&&(_0xf7080d[_0x24c070(0x217)][_0x3328ed][_0x11939d]={},[..._0x569b77[_0x24c070(0x1b6)]()][_0x24c070(0x259)](_0x2a313b=>{const _0x19b71e=_0x24c070,_0x446d9c=_0x569b77[_0x19b71e(0x2ee)](_0x2a313b);_0x446d9c&&(_0xf7080d['pivotTableConfigs'][_0x3328ed][_0x11939d][_0x2a313b]=_0x446d9c);}));});}return _0xf7080d;}[_0x1e02b9(0x433)](){const _0x8a9f7a=_0x1e02b9;this[_0x8a9f7a(0x268)](this[_0x8a9f7a(0x372)][_0x8a9f7a(0x221)]({'toJson':_0x57f85b=>JSON[_0x8a9f7a(0x46f)](this[_0x8a9f7a(0x468)](_0x57f85b)),'parseJson':_0xd53246=>({}),'businesses':[_0x5b61bd[_0x8a9f7a(0x428)][_0x8a9f7a(0x2a7)]],'pluginName':_0x2b9ea6,'onLoad':(_0x447ec0,_0x282cb1)=>{},'onUnLoad':_0x27698c=>{const _0x31def1=_0x8a9f7a;this[_0x31def1(0x38b)](_0x27698c);}}));}},_0x4e9eda['SheetsPivotTableConfigModel']=_0x34fa44([_0x5e6e76(0x0,_0x5b61bd['Inject'](_0x5b61bd[_0x1e02b9(0x403)])),_0x5e6e76(0x1,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x18a)])),_0x5e6e76(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x475)])),_0x5e6e76(0x3,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x192)])),_0x5e6e76(0x4,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x36f)]))],_0x4e9eda[_0x1e02b9(0x237)]);var _0x4c3db2=Object[_0x1e02b9(0x2b9)],_0x3b43a=(_0x2a7ec8,_0x2780f2,_0x16f070,_0xce4b6e)=>{const _0x31a7d8=_0x1e02b9;for(var _0x23f019=_0xce4b6e>0x1?void 0x0:_0xce4b6e?_0x4c3db2(_0x2780f2,_0x16f070):_0x2780f2,_0x3ebd3d=_0x2a7ec8[_0x31a7d8(0x370)]-0x1,_0x2dbe45;_0x3ebd3d>=0x0;_0x3ebd3d--)(_0x2dbe45=_0x2a7ec8[_0x3ebd3d])&&(_0x23f019=_0x2dbe45(_0x23f019)||_0x23f019);return _0x23f019;},_0x4aae58=(_0x2f4970,_0x17c170)=>(_0x32fe1f,_0x1558fe)=>_0x17c170(_0x32fe1f,_0x1558fe,_0x2f4970);_0x4e9eda[_0x1e02b9(0x1b5)]=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x3008a9,_0xe6b237,_0xa6126,_0x574187,_0xb5572b){const _0x4fc782=_0x1e02b9;super(),_0xef46e3(this,_0x4fc782(0x375),new Map()),_0xef46e3(this,_0x4fc782(0x1ef),new Map()),_0xef46e3(this,_0x4fc782(0x3c2),new _0x5928f9[(_0x4fc782(0x461))]()),_0xef46e3(this,_0x4fc782(0x47c),this[_0x4fc782(0x3c2)][_0x4fc782(0x1fb)]()),_0xef46e3(this,_0x4fc782(0x31d),new _0x5928f9[(_0x4fc782(0x461))]()),_0xef46e3(this,_0x4fc782(0x245),this[_0x4fc782(0x31d)][_0x4fc782(0x1fb)]()),_0xef46e3(this,_0x4fc782(0x3f0)),(this[_0x4fc782(0x465)]=_0x3008a9,this[_0x4fc782(0x2d5)]=_0xe6b237,this[_0x4fc782(0x231)]=_0xa6126,this['_univerInstanceService']=_0x574187,this[_0x4fc782(0x26c)]=_0xb5572b,this[_0x4fc782(0x46c)](),this[_0x4fc782(0x323)]());}[_0x1e02b9(0x323)](){const _0x5c74b8=_0x1e02b9;this['disposeWithMe'](this[_0x5c74b8(0x223)][_0x5c74b8(0x36b)](_0x5b61bd['UniverInstanceType'][_0x5c74b8(0x2a7)])['subscribe'](_0x1555ce=>{const _0x5d1e42=_0x5c74b8;this[_0x5d1e42(0x38b)](_0x1555ce[_0x5d1e42(0x1c7)]());}));}[_0x1e02b9(0x46c)](){const _0x5b86c0=_0x1e02b9;this[_0x5b86c0(0x3f0)]=_0x56113b(this['_injector'],_0x5caa5f,'',{});}['updateRenderCache'](_0x376e4e){const _0x2fbf31=_0x1e02b9,{view:_0x4469c3,unitId:_0x2e8ac0,subUnitId:_0x2bd6dc,pivotTableId:_0x5f4238,type:_0x44a632}=_0x376e4e,_0x29c7df=this[_0x2fbf31(0x231)]['getPivotTableConfig'](_0x2e8ac0,_0x2bd6dc,_0x5f4238);if(!_0x4469c3||!_0x29c7df||_0x44a632===_0x407136[_0x2fbf31(0x18d)])return;const {pageView:_0x32d6fb,cornerView:_0x3e38c8,rowView:_0x5d64da,colView:_0x18a46e,dataView:_0x3ffff1}=_0x4469c3,_0x5e2080=_0x29c7df[_0x2fbf31(0x3ed)],_0x4e9a10=_0x29c7df[_0x2fbf31(0x2a9)],_0x28f464=this[_0x2fbf31(0x391)](_0x2e8ac0,_0x2bd6dc),_0x4e2c84=this[_0x2fbf31(0x3e7)](_0x2e8ac0,_0x2bd6dc,_0x5f4238);if(_0x4e9a10)return this['_updateRenderEmptyCache'](_0x376e4e,_0x28f464,_0x5e2080,_0x4e2c84);{const _0x1de3b1=_0x18c8ea(_0x5e2080,_0x32d6fb,!0x0),_0x44a983=_0x32d6fb['lastRow']>=0x0?_0x32d6fb['lastRow']+0x1:0x0,_0x2b7213=_0x3e38c8[_0x2fbf31(0x3a0)](),_0x3ac681=_0x3e38c8[_0x2fbf31(0x258)](),_0x1c3a5c=_0x1de3b1[_0x2fbf31(0x370)]>0x0?_0x90963f:0x0,_0x446173=_0x18c8ea({'row':_0x5e2080[_0x2fbf31(0x2e3)]+_0x44a983+_0x1c3a5c,'col':_0x5e2080['col']},_0x3e38c8,!0x1,!0x1),_0x35eaaf=_0x18c8ea({'row':_0x5e2080['row']+_0x44a983+_0x1c3a5c+_0x2b7213,'col':_0x5e2080[_0x2fbf31(0x352)]},_0x5d64da,!0x1,!0x0),_0x253296=_0x18c8ea({'row':_0x5e2080[_0x2fbf31(0x2e3)]+_0x44a983+_0x1c3a5c,'col':_0x5e2080['col']+_0x3ac681},_0x18a46e,!0x1,!0x0),_0x35e2b7=_0x18c8ea({'row':_0x5e2080[_0x2fbf31(0x2e3)]+_0x44a983+_0x1c3a5c+_0x2b7213,'col':_0x5e2080[_0x2fbf31(0x352)]+_0x3ac681},_0x3ffff1,!0x1,!0x1);_0x4e2c84[_0x2fbf31(0x24a)]={'rowRanges':_0x35eaaf,'colRanges':_0x253296,'cornerRanges':_0x446173,'dataRanges':_0x35e2b7,'pageRanges':_0x1de3b1};const _0x461ea3=_0x19b724(this[_0x2fbf31(0x2d5)],_0x4469c3,_0x29c7df,this[_0x2fbf31(0x3f0)]),{valueMatrix:_0x7afeb7,rowInfo:_0x27b336,colInfo:_0x3c8854,cornerInfo:_0x25620d,rowHeaderMap:_0x406e47,colHeaderMap:_0x1811c0}=_0x461ea3;return _0x4e2c84[_0x2fbf31(0x21a)]={'rowInfo':_0x27b336,'colInfo':_0x3c8854,'cornerInfo':_0x25620d},_0x4e2c84['headerMap']={'rowHeaderMap':_0x406e47,'colHeaderMap':_0x1811c0},_0x7afeb7[_0x2fbf31(0x259)]((_0x8b1d18,_0x344c45)=>{const _0x3a7ff1=_0x2fbf31;Object['keys'](_0x344c45)[_0x3a7ff1(0x259)](_0x492120=>{const _0x4f88b6=_0x3a7ff1,_0x236f50=+_0x492120,_0x12f03c=_0x7afeb7['getValue'](_0x8b1d18,_0x236f50);_0x28f464[_0x4f88b6(0x214)](_0x8b1d18,_0x236f50,_0x12f03c);});}),this[_0x2fbf31(0x31d)]['next']({'unitId':_0x2e8ac0,'subUnitId':_0x2bd6dc,'valueMatrix':_0x28f464,'rangesCache':_0x4e2c84[_0x2fbf31(0x24a)],'pivotTableId':_0x5f4238,'type':_0x376e4e[_0x2fbf31(0x456)]}),this['_sheetsPivotTableConfigModel'][_0x2fbf31(0x499)](_0x2e8ac0,_0x2bd6dc,_0x5f4238,_0x28f464,_0x4e2c84[_0x2fbf31(0x24a)]),this[_0x2fbf31(0x26c)]['addExclusiveRange'](_0x2e8ac0,_0x2bd6dc,_0x154002,this[_0x2fbf31(0x267)](_0x4e2c84[_0x2fbf31(0x24a)],_0x5f4238)),{'rangeCache':_0x4e2c84[_0x2fbf31(0x24a)],'matrix':_0x28f464};}}[_0x1e02b9(0x1b7)](_0x2cc9ee,_0x5c5ccc,_0x48b9cf,_0x3b31f0){const _0x76ed91=_0x1e02b9,_0x236b0e=this[_0x76ed91(0x465)]['t'],{unitId:_0x199a40,subUnitId:_0x3712ba,pivotTableId:_0x1cf6bd}=_0x2cc9ee,_0x399321={'filter':_0x236b0e('sheets-pivot.emptyPivot.filter'),'row':_0x236b0e(_0x76ed91(0x3d9)),'column':_0x236b0e(_0x76ed91(0x400)),'values':_0x236b0e(_0x76ed91(0x313))},{matrixCache:_0x266253,rangesCache:_0x1f3741}=_0xd0cc2a(_0x399321,_0x48b9cf);return _0x266253[_0x76ed91(0x488)]((_0x41c931,_0x1673b1,_0x23980c)=>{_0x5c5ccc['setValue'](_0x41c931,_0x1673b1,_0x23980c);}),_0x3b31f0['rangesInfo']=_0x1f3741,this[_0x76ed91(0x31d)][_0x76ed91(0x236)]({'unitId':_0x199a40,'subUnitId':_0x3712ba,'valueMatrix':_0x5c5ccc,'rangesCache':_0x1f3741,'pivotTableId':_0x1cf6bd,'type':_0x2cc9ee[_0x76ed91(0x456)],'isEmpty':!0x0}),this[_0x76ed91(0x231)]['updateViewInfo'](_0x199a40,_0x3712ba,_0x1cf6bd,_0x5c5ccc,_0x1f3741),this['_exclusiveRangeService'][_0x76ed91(0x378)](_0x199a40,_0x3712ba,_0x154002,this[_0x76ed91(0x267)](_0x1f3741,_0x1cf6bd)),{'rangeCache':_0x3b31f0[_0x76ed91(0x24a)],'matrix':_0x5c5ccc};}[_0x1e02b9(0x267)](_0x4b606e,_0x136bc1){const _0x1f0d0b=_0x1e02b9,_0x5e67fb=[],_0x1ddc1f=_0x4cd387(_0x4b606e);for(const _0x14cf73 of _0x1ddc1f)_0x5e67fb[_0x1f0d0b(0x3c4)]({'groupId':_0x136bc1,'range':_0x14cf73});return _0x5e67fb;}[_0x1e02b9(0x2f5)](_0xf558dd){const _0x1c93d6=_0x1e02b9;var _0x47912d,_0x30e6a8,_0x147077,_0xcc4ddc;const {pivotTableId:_0x233cd6,unitId:_0x21b751,subUnitId:_0x30c58b}=_0xf558dd;if(!_0x233cd6||!_0x21b751||!_0x30c58b)return;const _0x390425=this[_0x1c93d6(0x391)](_0x21b751,_0x30c58b),_0x8496f7=(_0x30e6a8=(_0x47912d=this[_0x1c93d6(0x375)]['get'](_0x21b751))==null?void 0x0:_0x47912d[_0x1c93d6(0x2ee)](_0x30c58b))==null?void 0x0:_0x30e6a8[_0x1c93d6(0x2ee)](_0x233cd6);if(_0x8496f7!=null&&_0x8496f7[_0x1c93d6(0x24a)]){for(const _0x357c1d of Object[_0x1c93d6(0x1b6)](_0x8496f7[_0x1c93d6(0x24a)]))_0x8496f7['rangesInfo'][_0x357c1d][_0x1c93d6(0x259)](_0x12fb67=>{const _0x4e5b59=_0x1c93d6;for(let _0x31aab3=_0x12fb67['startRow'];_0x31aab3<=_0x12fb67[_0x4e5b59(0x2da)];_0x31aab3++)for(let _0x357e3b=_0x12fb67[_0x4e5b59(0x22d)];_0x357e3b<=_0x12fb67[_0x4e5b59(0x394)];_0x357e3b++)_0x390425['realDeleteValue'](_0x31aab3,_0x357e3b);});}_0x8496f7&&((_0xcc4ddc=(_0x147077=this[_0x1c93d6(0x375)][_0x1c93d6(0x2ee)](_0x21b751))==null?void 0x0:_0x147077['get'](_0x30c58b))==null||_0xcc4ddc[_0x1c93d6(0x301)](_0x233cd6)),this[_0x1c93d6(0x31d)]['next']({'unitId':_0x21b751,'subUnitId':_0x30c58b,'valueMatrix':_0x390425,'pivotTableId':_0x233cd6,'rangesCache':void 0x0,'type':_0xf558dd[_0x1c93d6(0x456)]}),this['_exclusiveRangeService'][_0x1c93d6(0x238)](_0x21b751,_0x30c58b,_0x154002,_0x233cd6);}[_0x1e02b9(0x3e7)](_0x3e5435,_0x4ae08b,_0x296bde){const _0x289224=_0x1e02b9;var _0x201549,_0x4a84fb,_0x4debff,_0x3fdc44,_0x4be8b3,_0x4e97db;return this[_0x289224(0x375)][_0x289224(0x2cd)](_0x3e5435)||this[_0x289224(0x375)]['set'](_0x3e5435,new Map()),(_0x201549=this[_0x289224(0x375)][_0x289224(0x2ee)](_0x3e5435))!=null&&_0x201549['has'](_0x4ae08b)||(_0x4a84fb=this['_pivotRenderInfoCache'][_0x289224(0x2ee)](_0x3e5435))==null||_0x4a84fb['set'](_0x4ae08b,new Map()),(_0x3fdc44=(_0x4debff=this[_0x289224(0x375)][_0x289224(0x2ee)](_0x3e5435))==null?void 0x0:_0x4debff[_0x289224(0x2ee)](_0x4ae08b))!=null&&_0x3fdc44[_0x289224(0x2cd)](_0x296bde)||(_0x4e97db=(_0x4be8b3=this['_pivotRenderInfoCache'][_0x289224(0x2ee)](_0x3e5435))==null?void 0x0:_0x4be8b3['get'](_0x4ae08b))==null||_0x4e97db[_0x289224(0x33f)](_0x296bde,{}),this[_0x289224(0x375)][_0x289224(0x2ee)](_0x3e5435)[_0x289224(0x2ee)](_0x4ae08b)[_0x289224(0x2ee)](_0x296bde);}['_ensurePivotItemRenderValueMatrixCache'](_0x3e8b87,_0x269e5e){const _0x56a2de=_0x1e02b9;var _0x569aed,_0x92112;return this['_pivotRenderValueMatrixCache'][_0x56a2de(0x2cd)](_0x3e8b87)||this[_0x56a2de(0x1ef)][_0x56a2de(0x33f)](_0x3e8b87,new Map()),(_0x569aed=this[_0x56a2de(0x1ef)][_0x56a2de(0x2ee)](_0x3e8b87))!=null&&_0x569aed['has'](_0x269e5e)||(_0x92112=this[_0x56a2de(0x1ef)]['get'](_0x3e8b87))==null||_0x92112[_0x56a2de(0x33f)](_0x269e5e,new _0x5b61bd[(_0x56a2de(0x302))]()),this[_0x56a2de(0x1ef)][_0x56a2de(0x2ee)](_0x3e8b87)[_0x56a2de(0x2ee)](_0x269e5e);}[_0x1e02b9(0x248)](_0x33962b,_0x4e6c45,_0x5ad16a,_0xaa74bb){const _0x3d85b3=_0x1e02b9;var _0x18477d,_0x86099c;const _0xef5f0a=(_0x86099c=(_0x18477d=this[_0x3d85b3(0x1ef)][_0x3d85b3(0x2ee)](_0x33962b))==null?void 0x0:_0x18477d['get'](_0x4e6c45))==null?void 0x0:_0x86099c[_0x3d85b3(0x3ef)](_0x5ad16a,_0xaa74bb);if(_0xef5f0a!=null)return _0xef5f0a;}[_0x1e02b9(0x42f)](_0x1cd775,_0x512d5a,_0x231cda,_0x3731ec){const _0x2e2a0a=_0x1e02b9;var _0xf78f1d;const _0x1b5ecc=_0x5b61bd[_0x2e2a0a(0x22a)](_0x231cda,_0x3731ec),_0x5f54a2=(_0xf78f1d=this[_0x2e2a0a(0x375)][_0x2e2a0a(0x2ee)](_0x1cd775))==null?void 0x0:_0xf78f1d[_0x2e2a0a(0x2ee)](_0x512d5a);return _0x5f54a2?Array['from'](_0x5f54a2[_0x2e2a0a(0x1b6)]())[_0x2e2a0a(0x250)](_0x488dbe=>{const _0xd57373=_0x2e2a0a,_0x2cafcf=_0x5f54a2[_0xd57373(0x2ee)](_0x488dbe),_0x1ed023=_0x2cafcf==null?void 0x0:_0x2cafcf[_0xd57373(0x24a)];return _0x1ed023?Object['keys'](_0x1ed023)[_0xd57373(0x322)](_0x4acc2d=>_0x1ed023[_0x4acc2d][_0xd57373(0x322)](_0x528fb9=>_0x5b61bd[_0xd57373(0x28e)][_0xd57373(0x348)](_0x528fb9,_0x1b5ecc))):!0x1;}):void 0x0;}[_0x1e02b9(0x1f2)](_0x46289f,_0x18dec8,_0x486008){const _0x50f63c=_0x1e02b9;var _0x2ed0ad;const _0x7f2f2d=(_0x2ed0ad=this[_0x50f63c(0x375)][_0x50f63c(0x2ee)](_0x46289f))==null?void 0x0:_0x2ed0ad['get'](_0x18dec8),_0xfa2357=[];return _0x7f2f2d&&Array[_0x50f63c(0x2a1)](_0x7f2f2d[_0x50f63c(0x1b6)]())[_0x50f63c(0x259)](_0x8c1c0c=>{const _0x48f40f=_0x50f63c,_0x17f108=_0x7f2f2d[_0x48f40f(0x2ee)](_0x8c1c0c),_0xce7e63=_0x17f108==null?void 0x0:_0x17f108[_0x48f40f(0x24a)];if(_0xce7e63)for(const _0x51522f of Object['values'](_0xce7e63)){let _0x4ddc2f=!0x1;for(const _0x436dc7 of _0x51522f)if(_0x5b61bd[_0x48f40f(0x28e)][_0x48f40f(0x242)](_0x436dc7,_0x486008)){_0xfa2357[_0x48f40f(0x3c4)](_0x8c1c0c),_0x4ddc2f=!0x0;break;}if(_0x4ddc2f)break;}}),_0xfa2357;}[_0x1e02b9(0x450)](_0x22e0ec,_0x5c03a0){const _0x937cee=_0x1e02b9;var _0x4b4531,_0x12dc2a;return(_0x12dc2a=(_0x4b4531=this[_0x937cee(0x1ef)][_0x937cee(0x2ee)](_0x22e0ec))==null?void 0x0:_0x4b4531[_0x937cee(0x2ee)](_0x5c03a0))!=null?_0x12dc2a:new _0x5b61bd[(_0x937cee(0x302))]();}[_0x1e02b9(0x3a9)](_0x2d7b60,_0x657df2){const _0xf31cd9=_0x1e02b9;var _0x1a794f;return(_0x1a794f=this[_0xf31cd9(0x375)][_0xf31cd9(0x2ee)](_0x2d7b60))==null?void 0x0:_0x1a794f[_0xf31cd9(0x2ee)](_0x657df2);}[_0x1e02b9(0x306)](_0x34a16c,_0x26d8f6,_0x518aea){const _0x1ac68a=_0x1e02b9;var _0x3defb8,_0x58ecd5;return(_0x58ecd5=(_0x3defb8=this[_0x1ac68a(0x375)][_0x1ac68a(0x2ee)](_0x34a16c))==null?void 0x0:_0x3defb8[_0x1ac68a(0x2ee)](_0x26d8f6))==null?void 0x0:_0x58ecd5['get'](_0x518aea);}['deleteUnitId'](_0x5ca3ef){const _0x332c19=_0x1e02b9;this['_pivotRenderInfoCache'][_0x332c19(0x301)](_0x5ca3ef),this[_0x332c19(0x1ef)]['delete'](_0x5ca3ef);}[_0x1e02b9(0x395)](_0x4709c4,_0x5d87bb){const _0x7dfac1=_0x1e02b9;this[_0x7dfac1(0x3c2)]['next']({'unitId':_0x4709c4,'subUnitId':_0x5d87bb});}},_0x4e9eda[_0x1e02b9(0x1b5)]=_0x3b43a([_0x4aae58(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x26b)])),_0x4aae58(0x1,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x403)])),_0x4aae58(0x2,_0x5b61bd['Inject'](_0x4e9eda[_0x1e02b9(0x237)])),_0x4aae58(0x3,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x475)])),_0x4aae58(0x4,_0x5b61bd['Inject'](_0x2009a4[_0x1e02b9(0x45f)]))],_0x4e9eda[_0x1e02b9(0x1b5)]);var _0x10609d=Object['getOwnPropertyDescriptor'],_0x17c103=(_0x737daa,_0x2f1f25,_0x2c19ee,_0x593371)=>{const _0x1441f0=_0x1e02b9;for(var _0x5473c8=_0x593371>0x1?void 0x0:_0x593371?_0x10609d(_0x2f1f25,_0x2c19ee):_0x2f1f25,_0x4d1a3c=_0x737daa[_0x1441f0(0x370)]-0x1,_0x1f4e00;_0x4d1a3c>=0x0;_0x4d1a3c--)(_0x1f4e00=_0x737daa[_0x4d1a3c])&&(_0x5473c8=_0x1f4e00(_0x5473c8)||_0x5473c8);return _0x5473c8;},_0x306b78=(_0xd903fc,_0x3cbad9)=>(_0x334950,_0xa9588f)=>_0x3cbad9(_0x334950,_0xa9588f,_0xd903fc);_0x4e9eda[_0x1e02b9(0x207)]=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x30e57b,_0x31d34b){const _0x355af7=_0x1e02b9;super(),_0xef46e3(this,'asyncInterceptor',new _0x5b61bd[(_0x355af7(0x398))]({'PIVOT_PERFORM_CHECK':_0x27b0ca})),_0xef46e3(this,_0x355af7(0x486),new _0x5b61bd['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x41d518})),(this[_0x355af7(0x44d)]=_0x30e57b,this['_sheetsPivotTableAdaptorModel']=_0x31d34b,this['_init']());}[_0x1e02b9(0x360)](){const _0x58266c=_0x1e02b9;this[_0x58266c(0x19c)]();}['getPivotPerformCheck'](_0x46db9c){const _0x4b7c11=_0x1e02b9;return this['asyncInterceptor'][_0x4b7c11(0x18b)](_0x27b0ca)(!0x1,_0x46db9c);}['_initViewModelBySheetInterceptor'](){const _0x9fee73=_0x1e02b9;this[_0x9fee73(0x268)](this[_0x9fee73(0x44d)][_0x9fee73(0x263)](_0x2009a4['INTERCEPTOR_POINT'][_0x9fee73(0x43d)],{'priority':0xc8,'effect':_0x5b61bd['InterceptorEffectEnum']['Value']|_0x5b61bd[_0x9fee73(0x3fb)][_0x9fee73(0x286)],'handler':(_0x4db51a,_0x33adbc,_0x49ee7a)=>{const _0x5465cb=_0x9fee73,{row:_0x486250,col:_0x28c567,unitId:_0xffa425,subUnitId:_0x154b0c,workbook:_0x4134ed}=_0x33adbc,_0x188499=this['_sheetsPivotTableAdaptorModel']['getPivotTableCellData'](_0xffa425,_0x154b0c,_0x486250,_0x28c567);if(!_0x188499)return _0x49ee7a(_0x4db51a);const _0x42fd34={..._0x4db51a};(_0x188499['v']||_0x188499['v']===0x0)&&(_0x42fd34['v']=_0x188499['v']),_0x188499['t']&&(_0x42fd34['t']=_0x188499['t']);const _0x2644bd=(typeof(_0x4db51a==null?void 0x0:_0x4db51a['s'])==_0x5465cb(0x304)?_0x4134ed[_0x5465cb(0x280)]()[_0x5465cb(0x2ee)](_0x4db51a==null?void 0x0:_0x4db51a['s']):_0x4db51a==null?void 0x0:_0x4db51a['s'])||{},_0x52a08d=_0x4134ed[_0x5465cb(0x280)]()[_0x5465cb(0x2ee)](_0x188499['s']),_0x4d7c63={..._0x52a08d,..._0x2644bd};_0x52a08d!=null&&_0x52a08d['n']&&(_0x4d7c63['n']=_0x52a08d['n']);const _0x33e3d8=_0x4134ed[_0x5465cb(0x280)]()['setValue'](_0x4d7c63);return _0x42fd34['s']=_0x33e3d8,(_0x188499[_0x5465cb(0x2ea)]===_0x7008cc[_0x5465cb(0x31a)][_0x5465cb(0x342)]||_0x188499['pbt']===_0x7008cc['PivotCellStyleTypeEnum']['Expand'])&&(_0x42fd34[_0x5465cb(0x297)]={},_0x42fd34['fontRenderExtension'][_0x5465cb(0x2b4)]=_0x554a9e),_0x49ee7a(_0x42fd34);}}));}},_0x4e9eda['SheetsPivotTableService']=_0x17c103([_0x306b78(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x2009a4['SheetInterceptorService'])),_0x306b78(0x1,_0x5b61bd['Inject'](_0x4e9eda[_0x1e02b9(0x1b5)]))],_0x4e9eda[_0x1e02b9(0x207)]);function _0x10a63d(_0x861547,_0x441f63){const _0x3cd294=_0x1e02b9;switch(_0x441f63){case _0x7008cc['PivotTableFiledAreaEnum']['Value']:return _0x861547['valueFields'];case _0x7008cc[_0x3cd294(0x410)][_0x3cd294(0x44c)]:return _0x861547[_0x3cd294(0x1e0)];case _0x7008cc['PivotTableFiledAreaEnum'][_0x3cd294(0x354)]:return _0x861547[_0x3cd294(0x31b)];case _0x7008cc[_0x3cd294(0x410)][_0x3cd294(0x1dc)]:return _0x861547['columnFields'];default:return[];}}function _0x5bd4a2(_0x564306,_0xdd8c6b){const _0x25363f=_0x1e02b9;return _0x564306[_0x25363f(0x417)][_0xdd8c6b]||_0x564306[_0x25363f(0x416)][_0xdd8c6b];}function _0x118b7b(_0x4692d2,_0x12a65b){const _0x299134=_0x1e02b9,{area:_0x5056e5,fieldJson:_0x5f5939,index:_0x4ede28}=_0x12a65b;_0x5056e5===_0x7008cc[_0x299134(0x410)][_0x299134(0x48a)]?_0x4692d2['measure'][_0x5f5939['id']]=_0x5f5939:_0x4692d2['dimension'][_0x5f5939['id']]=_0x5f5939,_0x10a63d(_0x4692d2,_0x5056e5)[_0x299134(0x485)](_0x4ede28,0x0,_0x5f5939['id']);}function _0x3ffea7(_0x2b2291,_0x535a55){const _0x367f09=_0x1e02b9,{area:_0x509b05,fieldId:_0x4796bf,index:_0x2ca27b}=_0x535a55;_0x509b05===_0x7008cc[_0x367f09(0x410)][_0x367f09(0x48a)]?delete _0x2b2291[_0x367f09(0x417)][_0x4796bf]:delete _0x2b2291[_0x367f09(0x416)][_0x4796bf],_0x10a63d(_0x2b2291,_0x509b05)[_0x367f09(0x485)](_0x2ca27b,0x1);}function _0x548f79(_0x283d1f,_0x5c7cae){const _0x9a9a6a=_0x1e02b9,{fieldId:_0x3d7692,name:_0x397e79}=_0x5c7cae,_0xfb0169=_0x5bd4a2(_0x283d1f,_0x3d7692);_0xfb0169&&(_0xfb0169[_0x9a9a6a(0x3ca)]=_0x397e79);}function _0x5f00e2(_0x2e92ef,_0x4b8b37){const _0x38e0ab=_0x1e02b9,{fieldId:_0x3ef668,collapse:_0x507eca,item:_0x970ded}=_0x4b8b37;_0x970ded!==void 0x0?(_0x2e92ef[_0x38e0ab(0x47d)][_0x3ef668]=_0x2e92ef[_0x38e0ab(0x47d)][_0x3ef668]||{},_0x2e92ef[_0x38e0ab(0x47d)][_0x3ef668][_0x970ded]=_0x507eca):_0x2e92ef['collapseInfo'][_0x3ef668]=_0x507eca;}function _0xac9c11(_0x1e7646,_0x328267){const _0x1a9362=_0x1e02b9,{fieldId:_0x305bad,format:_0x4a8ee8}=_0x328267,_0x1ac25f=_0x5bd4a2(_0x1e7646,_0x305bad);_0x1ac25f&&(_0x1ac25f[_0x1a9362(0x1b1)]=_0x4a8ee8);}function _0x2697a0(_0x52f85e,_0x442419){const {fieldId:_0x302ea7,filterInfo:_0x18993d}=_0x442419,_0x35e55a=_0x5bd4a2(_0x52f85e,_0x302ea7);_0x35e55a&&(_0x35e55a['filterInfo']=_0x18993d);}function _0x2c3198(_0x119bab,_0x1aa3aa){const _0x3abafd=_0x1e02b9,{fieldId:_0x3771ff,filterInfo:_0x35f107}=_0x1aa3aa,_0x49fa55=_0x119bab[_0x3abafd(0x1f6)]['filter'](_0x354e2c=>_0x354e2c[_0x3abafd(0x1ec)]!==_0x3771ff);_0x35f107&&_0x49fa55['push']({'fieldId':_0x3771ff,'filterInfo':_0x35f107}),_0x119bab['valueFilter']=_0x49fa55;}function _0x3a8548(_0x51230d,_0x1cc140){const {fieldId:_0x59e944,subtotalType:_0x1b40a3}=_0x1cc140,_0x206dab=_0x5bd4a2(_0x51230d,_0x59e944);_0x206dab&&(_0x206dab['subtotal']=_0x1b40a3);}function _0x18ab53(_0x480a9b,_0x4853b0){const _0x32c75e=_0x1e02b9,{fieldId:_0x3ad986,oldArea:_0x4ecb4f,area:_0x57be02,oldIndex:_0xc49cad,index:_0xda2241}=_0x4853b0,_0x566189=_0x4ecb4f!==_0x7008cc[_0x32c75e(0x410)][_0x32c75e(0x48a)]&&_0x57be02===_0x7008cc[_0x32c75e(0x410)][_0x32c75e(0x48a)],_0xfb07ed=_0x4ecb4f===_0x7008cc[_0x32c75e(0x410)][_0x32c75e(0x48a)]&&_0x57be02!==_0x7008cc['PivotTableFiledAreaEnum'][_0x32c75e(0x48a)];if(_0x566189||_0xfb07ed){const _0x43e58a=_0x5bd4a2(_0x480a9b,_0x3ad986);_0x43e58a&&(_0x566189?(delete _0x480a9b['dimension'][_0x3ad986],_0x480a9b[_0x32c75e(0x417)][_0x3ad986]=_0x43e58a):(delete _0x480a9b[_0x32c75e(0x417)][_0x3ad986],_0x480a9b[_0x32c75e(0x416)][_0x3ad986]=_0x43e58a));}const _0x1d68c9=_0x10a63d(_0x480a9b,_0x4ecb4f),_0x56497f=_0x10a63d(_0x480a9b,_0x57be02);_0x1d68c9[_0x32c75e(0x485)](_0xc49cad,0x1),_0x56497f[_0x32c75e(0x485)](_0xda2241,0x0,_0x3ad986);}function _0x1a79bb(_0x66b96d,_0xc5478c){const _0x236889=_0x1e02b9,{valuePosition:_0x4dedbb,index:_0x324476}=_0xc5478c;_0x66b96d['valuePosition']=_0x4dedbb,_0x66b96d[_0x236889(0x275)]=_0x324476;}function _0x5b3b03(_0x4a1b6a,_0x21c67a){const _0x376f6a=_0x1e02b9,{tableFieldId:_0x28c102,sourceName:_0xd09914,dataFieldId:_0x49b58f}=_0x21c67a,_0x11f2fe=_0x5bd4a2(_0x4a1b6a,_0x28c102);_0x11f2fe&&(_0x11f2fe[_0x376f6a(0x191)]=_0xd09914,_0x11f2fe[_0x376f6a(0x3ec)]=_0x49b58f);}function _0x1fbeb5(_0x45b2eb,_0x1ff91c){const {fieldId:_0x4782ef,sortInfo:_0x57c3b5}=_0x1ff91c,_0x4d419c=_0x5bd4a2(_0x45b2eb,_0x4782ef);_0x4d419c&&(_0x4d419c['sortInfo']=_0x57c3b5);}function _0xca0538(_0x40ea8a,_0x5e126a){const _0x2ae570=_0x1e02b9,{options:_0xa2e8d2}=_0x5e126a;_0x40ea8a[_0x2ae570(0x466)]={..._0x40ea8a['options'],..._0xa2e8d2};}const _0x33818b={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['MUTATION'],'id':_0x1e02b9(0x1b0),'handler'(_0x6c0684,_0x5094a7){const _0x33e91c=_0x1e02b9;if(!_0x5094a7)return!0x1;if(!!_0x6c0684[_0x33e91c(0x2ee)](_0x5b61bd[_0x33e91c(0x36f)])[_0x33e91c(0x35f)](_0x1ea5d8))return!0x0;const _0x1c5641=_0x6c0684[_0x33e91c(0x2ee)](_0x4e9eda['SheetsPivotDataSourceModel']),{pivotTableId:_0x3d8e08,fieldJson:_0x420ad2,area:_0x5e0b57,index:_0x3e0355,unitId:_0x257a93,subUnitId:_0x34a7fd}=_0x5094a7,_0x44e482=_0x1c5641[_0x33e91c(0x2c5)](_0x3d8e08);if(!_0x44e482)return!0x1;let _0x276869;_0x5e0b57===_0x7008cc['PivotTableFiledAreaEnum'][_0x33e91c(0x48a)]?_0x276869=_0x7008cc['createValueField'](_0x420ad2):_0x276869=_0x7008cc[_0x33e91c(0x1e1)](_0x420ad2),_0x44e482['addField'](_0x276869,_0x5e0b57,_0x3e0355);const _0x139a2c=_0x1c5641[_0x33e91c(0x373)](_0x257a93,_0x34a7fd,_0x3d8e08);_0x118b7b(_0x139a2c,_0x5094a7);const _0x128f7e=_0x1c5641['getPivotTableConfig'](_0x257a93,_0x34a7fd,_0x3d8e08);return _0x1c5641[_0x33e91c(0x2d2)]({'unitId':_0x257a93,'subUnitId':_0x34a7fd,'token':_0x3d8e08,'type':_0x407136['Set'],'pivotConfig':_0x128f7e}),!0x0;}},_0xf91e4a={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x27b),'handler'(_0x424352,_0x2f152a){const _0x50b12b=_0x1e02b9;if(!_0x2f152a)return!0x1;if(!!_0x424352['get'](_0x5b61bd[_0x50b12b(0x36f)])['getConfig'](_0x1ea5d8))return!0x0;const _0x18661e=_0x424352['get'](_0x4e9eda[_0x50b12b(0x20f)]),{pivotTableId:_0x45caea,fieldId:_0x11cd75,unitId:_0x34dc60,subUnitId:_0x722a10}=_0x2f152a,_0x3357da=_0x18661e[_0x50b12b(0x2c5)](_0x45caea);if(!_0x3357da)return!0x1;_0x3357da['removeField'](_0x11cd75);const _0x1f3384=_0x18661e['getPivotTableModelConfig'](_0x34dc60,_0x722a10,_0x45caea);_0x3ffea7(_0x1f3384,_0x2f152a);const _0x11c301=_0x18661e[_0x50b12b(0x22f)](_0x34dc60,_0x722a10,_0x45caea);return _0x18661e[_0x50b12b(0x2d2)]({'unitId':_0x34dc60,'subUnitId':_0x722a10,'token':_0x45caea,'type':_0x407136[_0x50b12b(0x2ac)],'pivotConfig':_0x11c301}),!0x0;}},_0x4e94ad={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':'sheet.mutation.rename-pivot-field','handler'(_0x5ed991,_0x19b191){const _0x4eff75=_0x1e02b9;if(!_0x19b191)return!0x1;if(!!_0x5ed991[_0x4eff75(0x2ee)](_0x5b61bd[_0x4eff75(0x36f)])[_0x4eff75(0x35f)](_0x1ea5d8))return!0x0;const _0x438f05=_0x5ed991['get'](_0x4e9eda[_0x4eff75(0x20f)]),{unitId:_0x4cf54a,subUnitId:_0x3f27a6,pivotTableId:_0x5c5d5d,fieldId:_0x1f7e7b,name:_0x63857e}=_0x19b191,_0x58e6a9=_0x438f05[_0x4eff75(0x2c5)](_0x5c5d5d);if(!_0x58e6a9)return!0x1;_0x58e6a9[_0x4eff75(0x405)](_0x1f7e7b,_0x63857e);const _0xf1e58=_0x438f05['getPivotTableModelConfig'](_0x4cf54a,_0x3f27a6,_0x5c5d5d);return _0x548f79(_0xf1e58,_0x19b191),_0x438f05[_0x4eff75(0x2d2)]({'unitId':_0x4cf54a,'subUnitId':_0x3f27a6,'token':_0x5c5d5d,'type':_0x407136[_0x4eff75(0x2ac)]}),!0x0;}},_0x59ddfe={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x439),'handler'(_0x2d45e1,_0x17e245){const _0x396f6b=_0x1e02b9;if(!_0x17e245)return!0x1;if(!!_0x2d45e1[_0x396f6b(0x2ee)](_0x5b61bd[_0x396f6b(0x36f)])[_0x396f6b(0x35f)](_0x1ea5d8))return!0x0;const _0x46bea6=_0x2d45e1[_0x396f6b(0x2ee)](_0x4e9eda[_0x396f6b(0x20f)]),{unitId:_0x58571e,subUnitId:_0xa0d936,pivotTableId:_0x4bd85d,fieldId:_0x4a0acc,collapse:_0x2d31da,item:_0x45a2b5}=_0x17e245,_0x11ac4d=_0x46bea6['getPivotTableInstance'](_0x4bd85d);if(!_0x11ac4d)return!0x1;_0x11ac4d['setCollapse'](_0x4a0acc,_0x2d31da,_0x45a2b5);const _0x5f40a7=_0x46bea6[_0x396f6b(0x373)](_0x58571e,_0xa0d936,_0x4bd85d);return _0x5f00e2(_0x5f40a7,_0x17e245),_0x46bea6[_0x396f6b(0x2d2)]({'unitId':_0x58571e,'subUnitId':_0xa0d936,'token':_0x4bd85d,'type':_0x407136[_0x396f6b(0x2ac)]}),!0x0;}},_0x134a23={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':'sheet.mutation.set-pivot-format','handler'(_0x4dfdce,_0x1b3f37){const _0x5d1039=_0x1e02b9;if(!_0x1b3f37)return!0x1;if(!!_0x4dfdce['get'](_0x5b61bd[_0x5d1039(0x36f)])[_0x5d1039(0x35f)](_0x1ea5d8))return!0x0;const _0x344590=_0x4dfdce['get'](_0x4e9eda[_0x5d1039(0x20f)]),{unitId:_0x4efb30,subUnitId:_0x365ce9,pivotTableId:_0x587e0f,fieldId:_0x90fee3,format:_0x28bd9e}=_0x1b3f37,_0x89cc6a=_0x344590[_0x5d1039(0x2c5)](_0x587e0f);if(!_0x89cc6a)return!0x1;_0x89cc6a['setFieldFormat'](_0x90fee3,_0x28bd9e);const _0x4cae06=_0x344590[_0x5d1039(0x373)](_0x4efb30,_0x365ce9,_0x587e0f);return _0xac9c11(_0x4cae06,_0x1b3f37),_0x344590[_0x5d1039(0x2d2)]({'unitId':_0x4efb30,'subUnitId':_0x365ce9,'token':_0x587e0f,'type':_0x407136[_0x5d1039(0x2ac)]}),!0x0;}},_0x1217cd={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x204),'handler'(_0x127af9,_0x552a78){const _0x55b08f=_0x1e02b9;if(!_0x552a78)return!0x1;if(!!_0x127af9[_0x55b08f(0x2ee)](_0x5b61bd[_0x55b08f(0x36f)])[_0x55b08f(0x35f)](_0x1ea5d8))return!0x0;const _0x70e86a=_0x127af9[_0x55b08f(0x2ee)](_0x4e9eda[_0x55b08f(0x20f)]),{unitId:_0x2d6f0e,subUnitId:_0xe3415e,pivotTableId:_0x136112,fieldId:_0x39943d,filterInfo:_0x4e2765}=_0x552a78,_0x43ab96=_0x70e86a[_0x55b08f(0x2c5)](_0x136112);if(!_0x43ab96)return!0x1;_0x43ab96[_0x55b08f(0x3bc)](_0x39943d,_0x4e2765);const _0x11f686=_0x70e86a[_0x55b08f(0x373)](_0x2d6f0e,_0xe3415e,_0x136112);return _0x2697a0(_0x11f686,_0x552a78),_0x70e86a[_0x55b08f(0x2d2)]({'unitId':_0x2d6f0e,'subUnitId':_0xe3415e,'token':_0x136112,'type':_0x407136[_0x55b08f(0x2ac)]}),!0x0;}},_0x56be52={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x3fc),'handler'(_0x176874,_0x30b27e){const _0xb6dc60=_0x1e02b9;if(!_0x30b27e)return!0x1;if(!!_0x176874[_0xb6dc60(0x2ee)](_0x5b61bd['IConfigService'])['getConfig'](_0x1ea5d8))return!0x0;const _0x542a3c=_0x176874[_0xb6dc60(0x2ee)](_0x4e9eda[_0xb6dc60(0x20f)]),{unitId:_0x3905a7,subUnitId:_0x518fc9,pivotTableId:_0x21d694,options:_0x2e25be}=_0x30b27e,_0x21e9f0=_0x542a3c[_0xb6dc60(0x2c5)](_0x21d694);if(!_0x21e9f0)return!0x1;_0x21e9f0['setOptions'](_0x2e25be);const _0x16c0b4=_0x542a3c[_0xb6dc60(0x373)](_0x3905a7,_0x518fc9,_0x21d694);return _0xca0538(_0x16c0b4,_0x30b27e),_0x542a3c[_0xb6dc60(0x2d2)]({'unitId':_0x3905a7,'subUnitId':_0x518fc9,'token':_0x21d694,'type':_0x407136[_0xb6dc60(0x2ac)]}),!0x0;}},_0x40bcd4={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['MUTATION'],'id':_0x1e02b9(0x269),'handler'(_0x539b0f,_0x40b931){const _0x22f91a=_0x1e02b9;if(!_0x40b931)return!0x1;if(!!_0x539b0f[_0x22f91a(0x2ee)](_0x5b61bd[_0x22f91a(0x36f)])[_0x22f91a(0x35f)](_0x1ea5d8))return!0x0;const _0x3f5ed2=_0x539b0f['get'](_0x4e9eda[_0x22f91a(0x20f)]),{unitId:_0x2ac83e,subUnitId:_0x270fb7,pivotTableId:_0x569e65,sortInfo:_0x4bf5a6,fieldId:_0x2ee147}=_0x40b931,_0x591245=_0x3f5ed2[_0x22f91a(0x2c5)](_0x569e65);if(!_0x591245)return!0x1;_0x591245[_0x22f91a(0x390)](_0x2ee147,_0x4bf5a6);const _0x3d0dfd=_0x3f5ed2[_0x22f91a(0x373)](_0x2ac83e,_0x270fb7,_0x569e65);return _0x1fbeb5(_0x3d0dfd,_0x40b931),_0x3f5ed2[_0x22f91a(0x2d2)]({'unitId':_0x2ac83e,'subUnitId':_0x270fb7,'token':_0x569e65,'type':_0x407136[_0x22f91a(0x2ac)]}),!0x0;}},_0x34d26f={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x2b0),'handler'(_0x3e41a6,_0x341a24){const _0x4c8707=_0x1e02b9;if(!_0x341a24)return!0x1;if(!!_0x3e41a6[_0x4c8707(0x2ee)](_0x5b61bd[_0x4c8707(0x36f)])[_0x4c8707(0x35f)](_0x1ea5d8))return!0x0;const _0x6013fd=_0x3e41a6[_0x4c8707(0x2ee)](_0x4e9eda[_0x4c8707(0x20f)]),{unitId:_0x2c2e4c,subUnitId:_0x6b0bd6,pivotTableId:_0x2e75cf,fieldId:_0xae90e8,subtotalType:_0x598c88}=_0x341a24,_0xbada20=_0x6013fd['getPivotTableInstance'](_0x2e75cf);if(!_0xbada20)return!0x1;_0xbada20[_0x4c8707(0x2e2)](_0xae90e8,_0x598c88);const _0x7a080b=_0x6013fd[_0x4c8707(0x373)](_0x2c2e4c,_0x6b0bd6,_0x2e75cf);return _0x3a8548(_0x7a080b,_0x341a24),_0x6013fd[_0x4c8707(0x2d2)]({'unitId':_0x2c2e4c,'subUnitId':_0x6b0bd6,'token':_0x2e75cf,'type':_0x407136[_0x4c8707(0x2ac)]}),!0x0;}},_0x4af02e={'type':_0x5b61bd['CommandType']['MUTATION'],'id':'sheet.mutation.set-pivot-value-filter','handler'(_0x23788b,_0x2d0195){const _0x535d1c=_0x1e02b9;if(!_0x2d0195)return!0x1;if(!!_0x23788b[_0x535d1c(0x2ee)](_0x5b61bd[_0x535d1c(0x36f)])[_0x535d1c(0x35f)](_0x1ea5d8))return!0x0;const _0xfa6e0f=_0x23788b['get'](_0x4e9eda['SheetsPivotDataSourceModel']),{unitId:_0x1f5eb3,subUnitId:_0x5e3c27,pivotTableId:_0x591573,fieldId:_0x50f579,filterInfo:_0x2bf18a}=_0x2d0195,_0x5c95b4=_0xfa6e0f['getPivotTableInstance'](_0x591573);if(!_0x5c95b4)return!0x1;_0x5c95b4[_0x535d1c(0x300)](_0x50f579,_0x2bf18a);const _0x374a05=_0xfa6e0f[_0x535d1c(0x373)](_0x1f5eb3,_0x5e3c27,_0x591573);return _0x2c3198(_0x374a05,_0x2d0195),_0xfa6e0f[_0x535d1c(0x2d2)]({'unitId':_0x1f5eb3,'subUnitId':_0x5e3c27,'token':_0x591573,'type':_0x407136[_0x535d1c(0x2ac)]}),!0x0;}},_0x23d02c={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':'sheet.mutation.pivot-update-field-position','handler'(_0x5e0d84,_0x16085f){const _0x90b623=_0x1e02b9;if(!_0x16085f)return!0x1;if(!!_0x5e0d84[_0x90b623(0x2ee)](_0x5b61bd[_0x90b623(0x36f)])[_0x90b623(0x35f)](_0x1ea5d8))return!0x0;const _0x2331a3=_0x5e0d84['get'](_0x4e9eda[_0x90b623(0x20f)]),{unitId:_0x2b8ec9,subUnitId:_0x9f70dc,pivotTableId:_0x510efa,area:_0x394c7f,index:_0x16d067,fieldId:_0x298b7c}=_0x16085f,_0x51d382=_0x2331a3[_0x90b623(0x2c5)](_0x510efa);if(!_0x51d382)return!0x1;_0x51d382['updateFieldPosition'](_0x298b7c,_0x394c7f,_0x16d067);const _0x58a15e=_0x2331a3[_0x90b623(0x373)](_0x2b8ec9,_0x9f70dc,_0x510efa);return _0x18ab53(_0x58a15e,_0x16085f),_0x2331a3[_0x90b623(0x2d2)]({'unitId':_0x2b8ec9,'subUnitId':_0x9f70dc,'token':_0x510efa,'type':_0x407136['Set']}),!0x0;}},_0x304d6a={'type':_0x5b61bd['CommandType'][_0x1e02b9(0x3aa)],'id':'sheet.mutation.pivot-update-field-source-info','handler'(_0x36f178,_0x3f8339){const _0x290a5e=_0x1e02b9;if(!_0x3f8339)return!0x1;if(!!_0x36f178[_0x290a5e(0x2ee)](_0x5b61bd[_0x290a5e(0x36f)])[_0x290a5e(0x35f)](_0x1ea5d8))return!0x0;const _0x39233e=_0x36f178[_0x290a5e(0x2ee)](_0x4e9eda[_0x290a5e(0x20f)]),{unitId:_0x5322a4,subUnitId:_0x5e68d6,pivotTableId:_0x16d427,sourceName:_0x287d64,dataFieldId:_0x29b619,tableFieldId:_0x31a312}=_0x3f8339,_0x289fd5=_0x39233e[_0x290a5e(0x2c5)](_0x16d427);if(!_0x289fd5)return!0x1;_0x289fd5[_0x290a5e(0x358)](_0x31a312,_0x287d64,_0x29b619);const _0x4d711d=_0x39233e[_0x290a5e(0x373)](_0x5322a4,_0x5e68d6,_0x16d427);return _0x5b3b03(_0x4d711d,_0x3f8339),_0x39233e[_0x290a5e(0x2d2)]({'unitId':_0x5322a4,'subUnitId':_0x5e68d6,'token':_0x16d427,'type':_0x407136[_0x290a5e(0x2ac)]}),!0x0;}},_0x5f5521={'type':_0x5b61bd['CommandType'][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x3c5),'handler'(_0x3a5f05,_0x56fdb6){const _0x380e6a=_0x1e02b9;if(!_0x56fdb6)return!0x1;if(!!_0x3a5f05['get'](_0x5b61bd[_0x380e6a(0x36f)])[_0x380e6a(0x35f)](_0x1ea5d8))return!0x0;const _0x5ad153=_0x3a5f05[_0x380e6a(0x2ee)](_0x4e9eda['SheetsPivotDataSourceModel']),{unitId:_0x1b9997,subUnitId:_0xeb8819,pivotTableId:_0x36d1e7,valuePosition:_0x5b6bc1,index:_0x58ddcb}=_0x56fdb6,_0x3a2ce8=_0x5ad153[_0x380e6a(0x2c5)](_0x36d1e7);if(!_0x3a2ce8)return!0x1;_0x3a2ce8[_0x380e6a(0x460)](_0x5b6bc1,_0x58ddcb);const _0xb4ecd8=_0x5ad153[_0x380e6a(0x373)](_0x1b9997,_0xeb8819,_0x36d1e7);return _0x1a79bb(_0xb4ecd8,_0x56fdb6),_0x5ad153['addDirtyPivotTable']({'unitId':_0x1b9997,'subUnitId':_0xeb8819,'token':_0x36d1e7,'type':_0x407136[_0x380e6a(0x2ac)]}),!0x0;}};function _0x4df1bc(_0x11fe8e,_0x36e550,_0x4152bd){const _0x18fd3b=_0x1e02b9,{pivotTableId:_0x43f8f6,unitId:_0x465fb9,subUnitId:_0x1f6f5b}=_0x36e550,_0x28855e=[],_0x8eb4f2=[];for(const _0x5432fe of _0x4152bd)switch(_0x5432fe[_0x18fd3b(0x456)]){case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x3be)]:{const {fieldJson:_0x4f3725,area:_0x2faf32,index:_0x4e3f67}=_0x5432fe,_0x3495c8={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldJson':_0x4f3725,'area':_0x2faf32,'index':_0x4e3f67},_0x135274={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x4f3725['id'],'area':_0x2faf32,'index':_0x4e3f67};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0x33818b['id'],'params':_0x3495c8}),_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0xf91e4a['id'],'params':_0x135274});}break;case _0x7008cc['PivotTableChangeTypeEnum']['SetSubtotalType']:{const {fieldId:_0x1993fa,newSubtotalType:_0x5c5839,oldSubtotalType:_0x3be43b}=_0x5432fe,_0xfc8965={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x1993fa,'subtotalType':_0x5c5839};_0x28855e['push']({'id':_0x34d26f['id'],'params':_0xfc8965});const _0xbe630d={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x1993fa,'subtotalType':_0x3be43b};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x34d26f['id'],'params':_0xbe630d});}break;case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x30d)]:{const {fieldId:_0x341957,fieldJson:_0x1b7c9f,area:_0xcd9b4f,index:_0x51520c}=_0x5432fe,_0x27509b={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x341957,'index':_0x51520c,'area':_0xcd9b4f};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0xf91e4a['id'],'params':_0x27509b});const _0x43fdee={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldJson':_0x1b7c9f,'area':_0xcd9b4f,'index':_0x51520c};_0x8eb4f2['unshift']({'id':_0x33818b['id'],'params':_0x43fdee});}break;case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x401)]:{const {fieldId:_0x4c0cb7,oldName:_0x5360cc,newName:_0x2c9933}=_0x5432fe,_0xacfdbb={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x4c0cb7,'name':_0x2c9933};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0x4e94ad['id'],'params':_0xacfdbb});const _0x51124d={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x4c0cb7,'name':_0x5360cc};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x4e94ad['id'],'params':_0x51124d});}break;case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x28c)]:{const {fieldId:_0x3b9b69,oldFilterInfo:_0x193d74,newFilterInfo:_0x56cc8e}=_0x5432fe,_0x10c459={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x3b9b69,'filterInfo':_0x56cc8e};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0x1217cd['id'],'params':_0x10c459});const _0x1ee857={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x3b9b69,'filterInfo':_0x193d74};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x1217cd['id'],'params':_0x1ee857});}break;case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x37c)]:{const {fieldId:_0x91e0aa,oldSortInfo:_0x3fe2ac,newSortInfo:_0x32b216}=_0x5432fe,_0xcfcd75={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x91e0aa,'sortInfo':_0x32b216};_0x28855e['push']({'id':_0x40bcd4['id'],'params':_0xcfcd75});const _0x3900bc={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x91e0aa,'sortInfo':_0x3fe2ac};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x40bcd4['id'],'params':_0x3900bc});}break;case _0x7008cc[_0x18fd3b(0x251)]['SetOptions']:{const {oldOptions:_0x545e64,newOptions:_0x33f087}=_0x5432fe,_0xd5b4c9={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'options':_0x33f087};_0x28855e['push']({'id':_0x56be52['id'],'params':_0xd5b4c9});const _0x425fd0={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'options':_0x545e64};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x56be52['id'],'params':_0x425fd0});}break;case _0x7008cc[_0x18fd3b(0x251)]['UpdateFieldPosition']:{const {oldArea:_0x85a9ea,newArea:_0x2a88c1,oldIndex:_0x8f3b0a,newIndex:_0x2999d4,fieldId:_0x76f292}=_0x5432fe,_0x161f79={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x76f292,'area':_0x2a88c1,'index':_0x2999d4,'oldArea':_0x85a9ea,'oldIndex':_0x8f3b0a};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0x23d02c['id'],'params':_0x161f79});const _0x5d3f4e={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x76f292,'area':_0x85a9ea,'index':_0x8f3b0a,'oldArea':_0x2a88c1,'oldIndex':_0x2999d4};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x23d02c['id'],'params':_0x5d3f4e});}break;case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x1ee)]:{const {oldValuePosition:_0x2d14b2,newValuePosition:_0x18579c,oldIndex:_0x17b091,newIndex:_0x439ed5}=_0x5432fe,_0x113896={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'valuePosition':_0x18579c,'index':_0x439ed5};_0x28855e['push']({'id':_0x5f5521['id'],'params':_0x113896});const _0x2c6d02={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'valuePosition':_0x2d14b2,'index':_0x17b091};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x5f5521['id'],'params':_0x2c6d02});}break;case _0x7008cc['PivotTableChangeTypeEnum'][_0x18fd3b(0x1f7)]:{const {fieldId:_0x12e913,collapse:_0x34fd0b,item:_0x293e22}=_0x5432fe,_0x1bb02b={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x12e913,'collapse':_0x34fd0b,'item':_0x293e22};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0x59ddfe['id'],'params':_0x1bb02b});const _0x17da43={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x12e913,'collapse':!_0x34fd0b,'item':_0x293e22};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x59ddfe['id'],'params':_0x17da43});}break;case _0x7008cc['PivotTableChangeTypeEnum'][_0x18fd3b(0x37d)]:{const {newFormat:_0x5aa67c,oldFormat:_0xea6589,fieldId:_0x37bbfa}=_0x5432fe,_0x502e72={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x37bbfa,'format':_0x5aa67c};_0x28855e[_0x18fd3b(0x3c4)]({'id':_0x134a23['id'],'params':_0x502e72});const _0x42cfee={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x37bbfa,'format':_0xea6589};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x134a23['id'],'params':_0x42cfee});}break;case _0x7008cc['PivotTableChangeTypeEnum'][_0x18fd3b(0x1d0)]:{const {tableFieldId:_0x2a3177,oldSourceName:_0x2fab33,newSourceName:_0x30f8cd,oldDataFieldId:_0x289336,newDataFieldId:_0x586a1f}=_0x5432fe,_0x25b8f8={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'tableFieldId':_0x2a3177,'sourceName':_0x30f8cd,'dataFieldId':_0x586a1f};_0x28855e['push']({'id':_0x304d6a['id'],'params':_0x25b8f8});const _0x372e99={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'tableFieldId':_0x2a3177,'sourceName':_0x2fab33,'dataFieldId':_0x289336};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x304d6a['id'],'params':_0x372e99});}break;case _0x7008cc[_0x18fd3b(0x251)][_0x18fd3b(0x35d)]:{const {fieldId:_0x65bfda,filterInfo:_0x124eee,oldFilterInfo:_0x4301cf}=_0x5432fe,_0x283ab7={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x65bfda,'filterInfo':_0x124eee};_0x28855e['push']({'id':_0x4af02e['id'],'params':_0x283ab7});const _0x3fc645={'unitId':_0x465fb9,'subUnitId':_0x1f6f5b,'pivotTableId':_0x43f8f6,'fieldId':_0x65bfda,'filterInfo':_0x4301cf};_0x8eb4f2[_0x18fd3b(0x1d9)]({'id':_0x4af02e['id'],'params':_0x3fc645});}}return{'redos':_0x28855e,'undos':_0x8eb4f2};}function _0x48a5a9(_0x3f0d59,_0x241cac){const _0x4e6d0d=_0x1e02b9;var _0x536148;const _0x3caaff=_0x3f0d59['get'](_0x4e9eda[_0x4e6d0d(0x207)]),{cellInfo:_0x3b752d,view:_0x41f30d,isEmpty:_0x48bc0a}=_0x241cac;return(_0x536148=_0x3caaff[_0x4e6d0d(0x486)]['fetchThroughInterceptors'](_0x41d518)(_0x4ce09b,{'cellInfo':_0x3b752d,'view':_0x41f30d,'isEmpty':_0x48bc0a}))!=null?_0x536148:_0x4ce09b;}const _0x4f2a93=()=>typeof process<'u'&&process['versions']!=null&&process['versions'][_0x1e02b9(0x1b2)]!=null,_0x5598e6={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':'sheet.mutation.add-pivot-table','handler'(_0x10708e,_0x5661ee){const _0x32deac=_0x1e02b9;var _0x52810f;if(!_0x5661ee)return!0x1;const _0x37c35f=_0x10708e[_0x32deac(0x2ee)](_0x5b61bd[_0x32deac(0x36f)]);if(!!_0x37c35f[_0x32deac(0x35f)](_0x1ea5d8))return!0x0;const _0x2712a1=_0x10708e[_0x32deac(0x2ee)](_0x5b61bd[_0x32deac(0x475)]),_0x1b78e9=_0x10708e[_0x32deac(0x2ee)](_0x4e9eda['SheetsPivotDataSourceModel']),{pivotTableId:_0x256529,pivotTableConfig:_0x1017b0,collectionConfig:_0x48aec5,unitId:_0x2537b0,subUnitId:_0x58bfaf}=_0x5661ee,{sourceRangeInfo:_0x304c9b,fieldsConfig:_0x201d9e,targetCellInfo:_0x596f69}=_0x1017b0,_0x10ca63=_0x2712a1[_0x32deac(0x389)](_0x2537b0);if(!_0x10ca63||!_0x10ca63['getSheetBySheetId'](_0x58bfaf))return!0x1;if(!_0x4f2a93()){let _0x40dfd0=0x0;_0x10ca63[_0x32deac(0x39a)]()[_0x32deac(0x259)](_0x12278e=>{const _0x25bfab=_0x32deac;var _0x4dfa34,_0x4f3511;_0x40dfd0+=(_0x4f3511=(_0x4dfa34=_0x1b78e9[_0x25bfab(0x41c)](_0x2537b0,_0x12278e[_0x25bfab(0x3da)]()))==null?void 0x0:_0x4dfa34['size'])!=null?_0x4f3511:0x0;});const _0x17db5b=(_0x52810f=_0x37c35f[_0x32deac(0x35f)](_0x573993[_0x32deac(0x45e)]))!=null?_0x52810f:{},{ls:_0x41bc85,pbk:_0x6a8bb3}=_0x17db5b;if(!_0x586982(_0x41bc85,_0x6a8bb3))throw new _0x5b61bd['CustomCommandExecutionError'](_0x32deac(0x498));const _0x4201ac=_0x8d06ca(_0x52c532,_0x41bc85,_0x6a8bb3)[_0x32deac(0x3a1)];if(_0x40dfd0>=_0x4201ac)throw new _0x5b61bd[(_0x32deac(0x205))](_0x32deac(0x498));}if(!_0x48aec5||!_0x201d9e)return!0x1;const {collection:_0x1248dc,updateDataFieldList:_0x31165f}=_0x1b78e9[_0x32deac(0x25b)](_0x256529,_0x48aec5,_0x304c9b,_0x596f69);_0x1b78e9[_0x32deac(0x1fa)](_0x1248dc,_0x31165f,_0x304c9b);const _0x15c251=new _0x7008cc['PivotTable'](_0x1248dc,void 0x0,_0x256529);_0x15c251[_0x32deac(0x3e5)](_0x201d9e);const _0x543914=JSON[_0x32deac(0x2db)](JSON['stringify'](_0x1017b0));return _0x1b78e9['addPivotTable'](_0x2537b0,_0x58bfaf,_0x256529,_0x15c251,_0x543914),_0x1b78e9['addDirtyPivotTable']({'unitId':_0x2537b0,'subUnitId':_0x58bfaf,'token':_0x256529,'type':_0x407136[_0x32deac(0x1b3)],'pivotConfig':_0x543914}),!0x0;}},_0xa3768f={'type':_0x5b61bd['CommandType']['MUTATION'],'id':_0x1e02b9(0x189),'handler'(_0x47cdb2,_0x957904){const _0x31b1fc=_0x1e02b9;if(!_0x957904)return!0x1;if(!!_0x47cdb2['get'](_0x5b61bd[_0x31b1fc(0x36f)])[_0x31b1fc(0x35f)](_0x1ea5d8))return!0x0;const {pivotTableId:_0x34efaa,unitId:_0x4ae718,subUnitId:_0x3820e7}=_0x957904,_0x5c7159=_0x47cdb2[_0x31b1fc(0x2ee)](_0x4e9eda[_0x31b1fc(0x20f)]);return _0x5c7159[_0x31b1fc(0x22f)](_0x4ae718,_0x3820e7,_0x34efaa)?(_0x5c7159[_0x31b1fc(0x2d2)]({'unitId':_0x4ae718,'subUnitId':_0x3820e7,'token':_0x34efaa,'type':_0x407136[_0x31b1fc(0x18d)]}),_0x5c7159['removePivotTable'](_0x4ae718,_0x3820e7,_0x34efaa),!0x0):!0x1;}},_0xf618f3={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':'sheet.mutation.set-pivot-position','handler'(_0x5af19d,_0x5ae765){const _0x5581e9=_0x1e02b9;if(!_0x5ae765)return!0x1;if(!!_0x5af19d[_0x5581e9(0x2ee)](_0x5b61bd[_0x5581e9(0x36f)])['getConfig'](_0x1ea5d8))return!0x0;const {pivotTableId:_0x487d09,targetCellPosition:_0x4d59f5,unitId:_0x1e14b5,subUnitId:_0x485539}=_0x5ae765,_0x2ae8b7=_0x5af19d[_0x5581e9(0x2ee)](_0x4e9eda[_0x5581e9(0x20f)]);if(!_0x2ae8b7[_0x5581e9(0x2c5)](_0x5ae765[_0x5581e9(0x46a)]))return!0x1;const _0x4eff79=_0x2ae8b7[_0x5581e9(0x3d5)](_0x487d09);if(!_0x4eff79)return!0x1;const _0x256b90=_0x2ae8b7[_0x5581e9(0x1a7)](_0x4eff79['unitId'],_0x5ae765[_0x5581e9(0x46a)]);if(!_0x256b90)return!0x1;const _0xced096=_0x2ae8b7[_0x5581e9(0x22f)](_0x4eff79[_0x5581e9(0x344)],_0x4eff79[_0x5581e9(0x213)],_0x487d09);if(!_0xced096)return!0x1;const _0x5aeab0=_0x5b61bd[_0x5581e9(0x249)][_0x5581e9(0x27c)](_0xced096);_0x5aeab0[_0x5581e9(0x3ed)]={'unitId':_0x1e14b5,'subUnitId':_0x485539,'row':_0x4d59f5[_0x5581e9(0x2e3)],'col':_0x4d59f5[_0x5581e9(0x352)]};const _0x39f7c6=_0x256b90[_0x5581e9(0x3d6)]();if(_0x4eff79[_0x5581e9(0x213)]===_0x485539&&_0x4eff79[_0x5581e9(0x344)]===_0x1e14b5)_0x2ae8b7[_0x5581e9(0x32c)](_0x1e14b5,_0x485539,_0x487d09,_0x5aeab0),_0x2ae8b7[_0x5581e9(0x2d2)]({'unitId':_0x1e14b5,'subUnitId':_0x485539,'token':_0x487d09,'type':_0x407136[_0x5581e9(0x2ac)]});else{_0x2ae8b7['addDirtyPivotTable']({'unitId':_0x4eff79[_0x5581e9(0x344)],'subUnitId':_0x4eff79[_0x5581e9(0x213)],'token':_0x487d09,'type':_0x407136[_0x5581e9(0x18d)]}),_0x2ae8b7[_0x5581e9(0x1bb)](_0x4eff79[_0x5581e9(0x344)],_0x4eff79[_0x5581e9(0x213)],_0x487d09);const _0x30c59a=_0x2ae8b7[_0x5581e9(0x25b)](_0x487d09,_0x39f7c6,_0xced096['sourceRangeInfo'],_0x5aeab0[_0x5581e9(0x3ed)]),_0x1a47a4=new _0x7008cc[(_0x5581e9(0x1af))](_0x30c59a[_0x5581e9(0x38a)],void 0x0,_0x487d09);_0x1a47a4[_0x5581e9(0x3e5)](_0x5aeab0[_0x5581e9(0x432)]),_0x2ae8b7['addPivotTable'](_0x1e14b5,_0x485539,_0x487d09,_0x1a47a4,_0x5aeab0),_0x2ae8b7[_0x5581e9(0x2d2)]({'unitId':_0x1e14b5,'subUnitId':_0x485539,'token':_0x487d09,'type':_0x407136['Add'],'pivotConfig':_0x5aeab0});}return!0x0;}},_0x2b1ec5={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['MUTATION'],'id':_0x1e02b9(0x3b4),'handler'(_0x62e459,_0x317b89){const _0xce26c=_0x1e02b9;if(!_0x317b89)return!0x1;if(!!_0x62e459['get'](_0x5b61bd[_0xce26c(0x36f)])[_0xce26c(0x35f)](_0x1ea5d8))return!0x0;const _0x5d26c0=_0x62e459[_0xce26c(0x2ee)](_0x4e9eda[_0xce26c(0x20f)]),{pivotTableId:_0x19e1dd,deleteIds:_0x323f8f,collectionJSON:_0x13360c,dataRangeInfo:_0x3b1d75,unitId:_0x30d955,subUnitId:_0x481701}=_0x317b89,_0x1abc46=_0x5d26c0[_0xce26c(0x2c5)](_0x19e1dd),_0x113c2e=_0x5d26c0[_0xce26c(0x22f)](_0x30d955,_0x481701,_0x19e1dd);if(!_0x1abc46||!_0x113c2e)return!0x1;const {collection:_0x438821,updateDataFieldList:_0x20a2e0}=_0x5d26c0[_0xce26c(0x25b)](_0x19e1dd,_0x13360c,_0x3b1d75,_0x113c2e[_0xce26c(0x3ed)]);_0x5d26c0[_0xce26c(0x1fa)](_0x438821,_0x20a2e0,_0x3b1d75),_0x1abc46[_0xce26c(0x3bd)](_0x438821);for(const _0x53dc6e of _0x323f8f)_0x5d26c0[_0xce26c(0x43a)](_0x3b1d75['unitId'],_0x53dc6e);const _0x18c212=_0x5d26c0[_0xce26c(0x22f)](_0x30d955,_0x481701,_0x19e1dd);return _0x18c212[_0xce26c(0x359)]=JSON[_0xce26c(0x2db)](JSON[_0xce26c(0x46f)](_0x3b1d75)),_0x5d26c0['addDirtyPivotTable']({'unitId':_0x30d955,'subUnitId':_0x481701,'token':_0x19e1dd,'type':_0x407136[_0xce26c(0x2ac)]}),!0x0;}},_0x45ce1b={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'id':_0x1e02b9(0x490),'handler'(){return!0x0;}};var _0x583233=Object['getOwnPropertyDescriptor'],_0x5c85da=(_0x25c0a9,_0x4f83fc,_0x7cc6d0,_0x45eb39)=>{const _0x44502e=_0x1e02b9;for(var _0xa62f15=_0x45eb39>0x1?void 0x0:_0x45eb39?_0x583233(_0x4f83fc,_0x7cc6d0):_0x4f83fc,_0x14712c=_0x25c0a9[_0x44502e(0x370)]-0x1,_0x1d2cf2;_0x14712c>=0x0;_0x14712c--)(_0x1d2cf2=_0x25c0a9[_0x14712c])&&(_0xa62f15=_0x1d2cf2(_0xa62f15)||_0xa62f15);return _0xa62f15;},_0xba6e3f=(_0xbf7c33,_0x5ec2c0)=>(_0x1a8957,_0x3bede0)=>_0x5ec2c0(_0x1a8957,_0x3bede0,_0xbf7c33);_0x4e9eda[_0x1e02b9(0x3b3)]=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x5d9781,_0x2fd609){const _0x2687f7=_0x1e02b9;super(),_0xef46e3(this,'_requestResolvers',new Map()),(this[_0x2687f7(0x2d5)]=_0x5d9781,this['_commandService']=_0x2fd609);}['handleAsyncResponse'](_0x2834c6){const _0x4f03e5=_0x1e02b9,{version:_0x5bab01}=_0x2834c6,_0x2fedb2=this['_requestResolvers'][_0x4f03e5(0x2ee)](_0x5bab01);_0x2fedb2&&(_0x2fedb2(_0x2834c6),this[_0x4f03e5(0x2a8)]['delete'](_0x5bab01));}[_0x1e02b9(0x288)](_0x19e856){return new Promise((_0x576948,_0x45c086)=>{const _0xf08edb=_0x316b,_0x519951=this['_generateUniqueVersion']();this[_0xf08edb(0x2a8)][_0xf08edb(0x33f)](_0x519951,_0x576948),this[_0xf08edb(0x3f2)][_0xf08edb(0x2eb)](_0x4fe5d7['id'],{'version':_0x519951,..._0x19e856},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x248140=_0x1e02b9;return Math[_0x248140(0x2ce)]()['toString'](0x24)[_0x248140(0x1e5)](0x2,0x10);}},_0x4e9eda[_0x1e02b9(0x3b3)]=_0x5c85da([_0xba6e3f(0x0,_0x5b61bd['Inject'](_0x5b61bd[_0x1e02b9(0x403)])),_0xba6e3f(0x1,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x18a)]))],_0x4e9eda['SheetsPivotRPCService']);const _0x2ceedf={'id':_0x1e02b9(0x385),'type':_0x5b61bd['CommandType'][_0x1e02b9(0x3aa)],'handler':(_0x111dda,_0x1a5fff)=>{const _0x2d116b=_0x1e02b9;if(!_0x1a5fff)return!0x1;if(!!_0x111dda[_0x2d116b(0x2ee)](_0x5b61bd[_0x2d116b(0x36f)])['getConfig'](_0x1ea5d8))return!0x0;const {pivotTableId:_0xa1a094,fieldJSON:_0x23629e,unitId:_0x46cadf,subUnitId:_0x21c972}=_0x1a5fff,_0x39764d=_0x7008cc['BaseGroupField'][_0x2d116b(0x3e5)](_0x23629e);if(!_0x39764d)return!0x1;const _0x4a932f=_0x111dda[_0x2d116b(0x2ee)](_0x4e9eda[_0x2d116b(0x20f)]),_0x45bb68=_0x4a932f[_0x2d116b(0x296)](_0x46cadf),_0x484097=_0x45bb68[_0x2d116b(0x1a7)](_0xa1a094);_0x45bb68[_0x2d116b(0x30a)](_0x39764d),_0x484097[_0x2d116b(0x435)](_0x39764d['getId'](),_0x39764d[_0x2d116b(0x240)]());const _0x3daa96=_0x484097[_0x2d116b(0x3cb)](_0x39764d[_0x2d116b(0x232)]());_0x3daa96&&_0x39764d[_0x2d116b(0x21c)](_0x3daa96);const _0x4f632c=_0x4a932f[_0x2d116b(0x22f)](_0x46cadf,_0x21c972,_0xa1a094);return _0x4a932f['addDirtyPivotTable']({'unitId':_0x46cadf,'subUnitId':_0x21c972,'token':_0xa1a094,'type':_0x407136[_0x2d116b(0x2ac)],'pivotConfig':_0x4f632c}),!0x0;}},_0x29f8d8={'id':'sheet.mutation.remove-group-collection','type':_0x5b61bd['CommandType']['MUTATION'],'handler':(_0x37c665,_0x273ae5)=>{const _0x895473=_0x1e02b9;if(!_0x273ae5)return!0x1;if(!!_0x37c665[_0x895473(0x2ee)](_0x5b61bd[_0x895473(0x36f)])[_0x895473(0x35f)](_0x1ea5d8))return!0x0;const {pivotTableId:_0x31bda7,dataFieldId:_0x116077,unitId:_0x359014,subUnitId:_0x314ef3}=_0x273ae5,_0x221846=_0x37c665[_0x895473(0x2ee)](_0x4e9eda['SheetsPivotDataSourceModel']),_0x144542=_0x221846['getDataFieldManager'](_0x359014);_0x144542[_0x895473(0x1a7)](_0x31bda7)['deleteField'](_0x116077);let _0x3066e2=!0x0;for(const _0x9562d in _0x144542[_0x895473(0x3e4)])if(_0x144542['collections'][_0x9562d][_0x895473(0x424)]()[_0x895473(0x343)](_0x116077)){_0x3066e2=!0x1;break;}_0x3066e2&&_0x144542[_0x895473(0x1d1)](_0x116077);const _0x2cdebb=_0x221846[_0x895473(0x22f)](_0x359014,_0x314ef3,_0x31bda7);return _0x221846[_0x895473(0x2d2)]({'unitId':_0x359014,'subUnitId':_0x314ef3,'token':_0x31bda7,'type':_0x407136[_0x895473(0x2ac)],'pivotConfig':_0x2cdebb}),!0x0;}},_0x2f61f9={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x21d),async 'handler'(_0x5af984,_0x16ad1d){const _0x3bd5fb=_0x1e02b9;if(!_0x16ad1d)return!0x1;const _0x204c18=_0x5af984['get'](_0x5b61bd['ICommandService']),_0x4a0fb5=_0x5af984[_0x3bd5fb(0x2ee)](_0x4e9eda[_0x3bd5fb(0x3b3)]),_0x215233=_0x5af984[_0x3bd5fb(0x2ee)](_0x5b61bd['IUndoRedoService']),{pivotTableId:_0x516192,dataFieldId:_0xd1fdcf,fieldArea:_0x358d72,index:_0xb846be,unitId:_0x285124,subUnitId:_0x4a3c76}=_0x16ad1d,_0x40415e=(await _0x4a0fb5[_0x3bd5fb(0x288)]({'unitId':_0x285124,'subUnitId':_0x4a3c76,'pivotTableId':_0x516192,'params':{'type':_0x4f52d8[_0x3bd5fb(0x357)],'addPivotField':{'dataFieldId':_0xd1fdcf,'fieldArea':_0x358d72,'index':_0xb846be}}}))['result']['addPivotField'];if(!_0x40415e)return!0x1;const {view:_0x2cbad8,changesets:_0x2cbd7f,isEmpty:_0xc78498,pivotTableConfig:_0x573731,shouldBeAddedGroupJSON:_0x5c7024}=_0x40415e,_0x51a69a=_0x573731['targetCellInfo'],_0x1e18e4=new _0x7008cc[(_0x3bd5fb(0x20e))]();_0x1e18e4[_0x3bd5fb(0x40a)](_0x2cbad8);const _0x16e1e0={'cellInfo':_0x51a69a,'view':_0x1e18e4,'isEmpty':_0xc78498};if(!await _0x5af984[_0x3bd5fb(0x2ee)](_0x4e9eda[_0x3bd5fb(0x207)])[_0x3bd5fb(0x379)][_0x3bd5fb(0x18b)](_0x27b0ca)(!0x0,_0x16e1e0))return!0x1;const _0x213b39=_0x58f3ac(_0x5af984,_0x1e18e4,_0x51a69a,_0xc78498),_0xa8278=_0x48a5a9(_0x5af984,_0x16e1e0),{undos:_0x588dcd,redos:_0x4abf3d}=_0x4df1bc(_0x204c18,{'pivotTableId':_0x516192,'unitId':_0x285124,'subUnitId':_0x4a3c76},_0x2cbd7f);return _0x5c7024&&(_0x4abf3d[_0x3bd5fb(0x1d9)]({'id':_0x2ceedf['id'],'params':{'pivotTableId':_0x516192,'fieldJSON':_0x5c7024,'unitId':_0x285124,'subUnitId':_0x4a3c76}}),_0x588dcd[_0x3bd5fb(0x3c4)]({'id':_0x29f8d8['id'],'params':{'pivotTableId':_0x516192,'dataFieldId':_0x5c7024['id'],'unitId':_0x285124,'subUnitId':_0x4a3c76}})),_0x5b61bd[_0x3bd5fb(0x487)]([..._0x213b39[_0x3bd5fb(0x19b)],..._0xa8278[_0x3bd5fb(0x19b)],..._0x4abf3d],_0x204c18),_0x215233[_0x3bd5fb(0x293)]({'unitID':_0x285124,'redoMutations':[..._0x213b39['redos'],..._0xa8278[_0x3bd5fb(0x19b)],..._0x4abf3d],'undoMutations':[..._0x213b39[_0x3bd5fb(0x2f8)],..._0xa8278[_0x3bd5fb(0x2f8)],..._0x588dcd]}),!0x0;}},_0x571e83={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['COMMAND'],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x515bf5,_0x58b208){const _0x25bf95=_0x1e02b9;if(!_0x58b208)return!0x1;const {sourceDataInfo:_0x31e3bd,pivotTableConfig:_0x12668f}=_0x58b208;if(!_0x31e3bd||!_0x12668f)return!0x1;const {unitId:_0xe72d53,subUnitId:_0x452b81,range:_0xce5b82}=_0x31e3bd,_0xedb440=_0x515bf5[_0x25bf95(0x2ee)](_0x5b61bd[_0x25bf95(0x475)]),_0x35ba03=_0x515bf5[_0x25bf95(0x2ee)](_0x4e9eda[_0x25bf95(0x3b3)]),_0x2896c1=_0x515bf5[_0x25bf95(0x2ee)](_0x5b61bd[_0x25bf95(0x26b)]),_0x3872b0=_0x515bf5[_0x25bf95(0x2ee)](_0x5b61bd[_0x25bf95(0x18a)]),_0x10d1f8=_0xedb440[_0x25bf95(0x389)](_0xe72d53);if(!_0x10d1f8)return!0x1;const _0x50aca0=_0x10d1f8[_0x25bf95(0x2ab)](_0x452b81);if(!_0x50aca0)return!0x1;const _0x10a479=_0x7008cc[_0x25bf95(0x1f4)](0x8),_0x4a5c8a=_0xce5b82||{'startRow':0x0,'startColumn':0x0,'endRow':_0x50aca0[_0x25bf95(0x3a0)]()-0x1,'endColumn':_0x50aca0[_0x25bf95(0x45b)]()-0x1};_0x4a5c8a[_0x25bf95(0x196)]=_0x5b61bd['RANGE_TYPE']['NORMAL'];const _0x3c1907=(await _0x35ba03[_0x25bf95(0x288)]({'unitId':_0xe72d53,'subUnitId':_0x452b81,'pivotTableId':_0x10a479,'params':{'type':_0x4f52d8['AddPivotTableWithConfig'],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0xe72d53,'sheetName':_0x50aca0['getName'](),'subUnitId':_0x452b81,'range':_0x4a5c8a},'pivotTableId':_0x10a479,'pivotTableIndexConfig':_0x12668f}}}))[_0x25bf95(0x260)][_0x25bf95(0x40b)];if(!_0x3c1907)return!0x1;const {isEmpty:_0x24e1f8,fieldsConfig:_0x4a043c,collectionConfig:_0xabc77e,changesets:_0x31d201}=_0x3c1907,_0x3dc5be=_0x10d1f8['getSheets']()['length'],_0x39da91=_0x5b61bd[_0x25bf95(0x257)]({'rowCount':_0x50aca0[_0x25bf95(0x3a0)]()-0x1,'columnCount':_0x50aca0['getColumnCount']()-0x1});_0x39da91['id']=_0x5b61bd[_0x25bf95(0x1cf)](),_0x39da91[_0x25bf95(0x20d)]=_0x10d1f8[_0x25bf95(0x28f)](''+_0x2896c1['t']('sheets.tabs.sheet'));const _0x1147f6={'index':_0x3dc5be,'sheet':_0x39da91,'unitId':_0xe72d53},{redos:_0x1a9db5}=_0x4df1bc(_0x3872b0,{'pivotTableId':_0x10a479,'unitId':_0xe72d53,'subUnitId':_0x39da91['id']},_0x31d201),_0xac58f8=[{'id':_0x2009a4[_0x25bf95(0x377)]['id'],'params':_0x1147f6},{'id':_0x5598e6['id'],'params':{'unitId':_0xe72d53,'subUnitId':_0x39da91['id'],'pivotTableId':_0x10a479,'pivotTableConfig':{'isEmpty':_0x24e1f8,'fieldsConfig':_0x4a043c,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0xe72d53,'subUnitId':_0x39da91['id']},'sourceRangeInfo':{'subUnitId':_0x452b81,'unitId':_0xe72d53,'range':_0x4a5c8a,'sheetName':_0x50aca0[_0x25bf95(0x240)]()}},'collectionConfig':_0xabc77e}},..._0x1a9db5];return _0x5b61bd[_0x25bf95(0x487)](_0xac58f8,_0x3872b0),!0x0;}},_0x231d95={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x32e),async 'handler'(_0x3d1939,_0x45de52){const _0x4ec8f9=_0x1e02b9;var _0x3d1c6d,_0x2772d0;const _0x5047f9=_0x3d1939['get'](_0x5b61bd[_0x4ec8f9(0x18a)]),_0x44e875=_0x3d1939['get'](_0x5b61bd[_0x4ec8f9(0x475)]),_0x5655c1=_0x3d1939[_0x4ec8f9(0x2ee)](_0x5b61bd[_0x4ec8f9(0x26b)]),_0x80af27=_0x3d1939['get'](_0x4e9eda[_0x4ec8f9(0x3b3)]),_0x4a62bd=_0x3d1939['get'](_0x5b61bd[_0x4ec8f9(0x1e6)]),_0x184ea3=_0x3d1939[_0x4ec8f9(0x2ee)](_0x4e9eda['SheetsPivotTableConfigModel']),_0x92cafc=_0x3d1939[_0x4ec8f9(0x2ee)](_0x5b61bd[_0x4ec8f9(0x36f)]);if(!_0x45de52)return!0x1;const {pivotTableConfig:_0x398999,positionType:_0x43fd02}=_0x45de52,{targetCellInfo:_0x3acec4,sourceRangeInfo:_0x51749b}=_0x398999,{unitId:_0xc3357e,subUnitId:_0x97ae74}=_0x3acec4,_0x38a9d7=_0x44e875['getUnit'](_0xc3357e);if(!_0x38a9d7)return!0x1;let _0x3ad5b4=0x0;_0x38a9d7[_0x4ec8f9(0x39a)]()[_0x4ec8f9(0x259)](_0x2363de=>{const _0x4422a9=_0x4ec8f9;var _0x5e6e25,_0x20ffe8;_0x3ad5b4+=(_0x20ffe8=(_0x5e6e25=_0x184ea3[_0x4422a9(0x41c)](_0xc3357e,_0x2363de['getSheetId']()))==null?void 0x0:_0x5e6e25[_0x4422a9(0x434)])!=null?_0x20ffe8:0x0;});const _0x1958d6=(_0x3d1c6d=_0x92cafc[_0x4ec8f9(0x35f)](_0x573993[_0x4ec8f9(0x45e)]))!=null?_0x3d1c6d:{},{ls:_0x190673,pbk:_0xf1343}=_0x1958d6;if(!_0x586982(_0x190673,_0xf1343))return!0x1;const _0x11d851=_0x8d06ca(_0x52c532,_0x190673,_0xf1343)[_0x4ec8f9(0x3a1)];if(_0x3ad5b4>=_0x11d851)return!0x1;const _0x38435a=_0x45de52['pivotTableId']||_0x7008cc[_0x4ec8f9(0x1f4)](0x8),_0x17c7c9=(await _0x80af27[_0x4ec8f9(0x288)]({'unitId':_0xc3357e,'subUnitId':_0x97ae74,'pivotTableId':_0x38435a,'params':{'type':_0x4f52d8[_0x4ec8f9(0x202)],'addPivotTable':{'sourceRangeInfo':_0x51749b,'pivotTableId':_0x38435a}}}))[_0x4ec8f9(0x260)][_0x4ec8f9(0x2ef)];if(!_0x17c7c9)return!0x1;const {view:_0x942cd6,isEmpty:_0x43ef0e,fieldsConfig:_0x1d06ae,collectionConfig:_0x48e3f3}=_0x17c7c9,_0x1fde98=[],_0x51880f=[];if(_0x43fd02===_0x29ef15[_0x4ec8f9(0x3f9)]){const _0x4be97b=_0x38a9d7['getSheets']()[_0x4ec8f9(0x370)],_0x37f925=_0x5b61bd[_0x4ec8f9(0x257)]({});_0x37f925['id']=_0x398999[_0x4ec8f9(0x3ed)][_0x4ec8f9(0x213)],_0x37f925[_0x4ec8f9(0x20d)]=(_0x2772d0=_0x398999[_0x4ec8f9(0x3ed)]['sheetName'])!=null?_0x2772d0:_0x38a9d7['generateNewSheetName'](''+_0x5655c1['t']('sheets.tabs.sheet'));const _0x565795={'index':_0x4be97b,'sheet':_0x37f925,'unitId':_0xc3357e},_0x44e8e0=_0x2009a4[_0x4ec8f9(0x369)](_0x3d1939,_0x565795);_0x1fde98[_0x4ec8f9(0x3c4)]({'id':_0x2009a4['RemoveSheetMutation']['id'],'params':_0x44e8e0}),_0x51880f[_0x4ec8f9(0x3c4)]({'id':_0x2009a4['InsertSheetMutation']['id'],'params':_0x565795});}else{if(!_0x38a9d7[_0x4ec8f9(0x2ab)](_0x97ae74))return!0x1;const _0x5f395f=_0x58f3ac(_0x3d1939,new _0x7008cc[(_0x4ec8f9(0x20e))](),_0x3acec4,!0x0);_0x51880f[_0x4ec8f9(0x3c4)](..._0x5f395f['redos']),_0x1fde98['push'](..._0x5f395f['undos']);const _0x1b238e={'cellInfo':_0x3acec4,'view':_0x942cd6,'isEmpty':_0x43ef0e};if(!await _0x3d1939[_0x4ec8f9(0x2ee)](_0x4e9eda[_0x4ec8f9(0x207)])['asyncInterceptor'][_0x4ec8f9(0x18b)](_0x27b0ca)(!0x0,_0x1b238e))return!0x1;const _0x2384e0=_0x48a5a9(_0x3d1939,_0x1b238e);_0x51880f[_0x4ec8f9(0x3c4)](..._0x2384e0[_0x4ec8f9(0x19b)]),_0x1fde98[_0x4ec8f9(0x3c4)](..._0x2384e0[_0x4ec8f9(0x2f8)]);}return _0x51880f[_0x4ec8f9(0x3c4)]({'id':_0x5598e6['id'],'params':{'unitId':_0x3acec4[_0x4ec8f9(0x344)],'subUnitId':_0x3acec4['subUnitId'],'pivotTableId':_0x38435a,'pivotTableConfig':{'targetCellInfo':_0x3acec4,'sourceRangeInfo':_0x51749b,'fieldsConfig':_0x1d06ae},'collectionConfig':_0x48e3f3}}),_0x1fde98[_0x4ec8f9(0x1d9)]({'id':_0xa3768f['id'],'params':{'unitId':_0xc3357e,'subUnitId':_0x97ae74,'pivotTableId':_0x38435a}}),_0x5b61bd[_0x4ec8f9(0x487)](_0x51880f,_0x5047f9)&&_0x4a62bd[_0x4ec8f9(0x293)]({'unitID':_0xc3357e,'undoMutations':_0x1fde98,'redoMutations':_0x51880f}),!0x0;}},_0x4767b6={'type':_0x5b61bd['CommandType'][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x235),async 'handler'(_0x2b771b,_0x3fe1bf){const _0x5571a2=_0x1e02b9;if(!_0x3fe1bf)return!0x1;const _0x30856e=_0x2b771b[_0x5571a2(0x2ee)](_0x5b61bd[_0x5571a2(0x18a)]),_0x2b4ab7=_0x2b771b[_0x5571a2(0x2ee)](_0x4e9eda[_0x5571a2(0x3b3)]),_0x4614e4=_0x2b771b[_0x5571a2(0x2ee)](_0x5b61bd[_0x5571a2(0x1e6)]),{pivotTableId:_0x561729,fieldId:_0x4968bd,area:_0x173e59,index:_0x2f9b4e,unitId:_0xcd2223,subUnitId:_0x2c007c}=_0x3fe1bf,_0xca01f3=(await _0x2b4ab7['getPivotDisplayConfig']({'unitId':_0xcd2223,'subUnitId':_0x2c007c,'pivotTableId':_0x561729,'params':{'type':_0x4f52d8[_0x5571a2(0x26f)],'movePivotField':{'fieldId':_0x4968bd,'area':_0x173e59,'index':_0x2f9b4e}}}))[_0x5571a2(0x260)][_0x5571a2(0x2fb)];if(!_0xca01f3)return!0x1;const {changesets:_0x51a0bc,view:_0x30932d,isEmpty:_0x16e7a7,pivotTableConfig:_0x3ee1c6}=_0xca01f3,_0x302b9b=_0x3ee1c6[_0x5571a2(0x3ed)],_0x380704=new _0x7008cc['PivotView']();_0x380704['formJSON'](_0x30932d);const _0x1e2319={'cellInfo':_0x302b9b,'view':_0x380704,'isEmpty':_0x16e7a7};if(!await _0x2b771b[_0x5571a2(0x2ee)](_0x4e9eda[_0x5571a2(0x207)])['asyncInterceptor'][_0x5571a2(0x18b)](_0x27b0ca)(!0x0,_0x1e2319))return!0x1;const _0x3780a5=_0x58f3ac(_0x2b771b,_0x380704,_0x302b9b,_0x16e7a7),_0x3b2186=_0x48a5a9(_0x2b771b,_0x1e2319),{redos:_0x4ce858,undos:_0x38d7de}=_0x4df1bc(_0x30856e,{'pivotTableId':_0x561729,'unitId':_0xcd2223,'subUnitId':_0x2c007c},_0x51a0bc);return _0x5b61bd[_0x5571a2(0x487)]([..._0x3780a5['redos'],..._0x3b2186['redos'],..._0x4ce858],_0x30856e),_0x4614e4['pushUndoRedo']({'unitID':_0xcd2223,'redoMutations':[..._0x3780a5[_0x5571a2(0x19b)],..._0x3b2186[_0x5571a2(0x19b)],..._0x4ce858],'undoMutations':[..._0x3780a5[_0x5571a2(0x2f8)],..._0x3b2186['undos'],..._0x38d7de]}),!0x0;}},_0x4643bb={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x41d),async 'handler'(_0x37b5d2,_0x21a74b){const _0x3fe8b7=_0x1e02b9;var _0x3cefb6;if(!_0x21a74b)return!0x1;const _0x401ae7=_0x37b5d2[_0x3fe8b7(0x2ee)](_0x5b61bd[_0x3fe8b7(0x475)]),_0x11f754=_0x2009a4[_0x3fe8b7(0x3ae)](_0x401ae7);if(!_0x11f754)return!0x1;const {unitId:_0x319b56,subUnitId:_0x4b09b9,workbook:_0x2e401f}=_0x11f754,{row:_0x3ac3af,col:_0x57be1f}=_0x21a74b,_0x5e66f5=_0x37b5d2[_0x3fe8b7(0x2ee)](_0x4e9eda['SheetsPivotTableAdaptorModel']),_0x1fe5b6=_0x5e66f5['getPivotTableIdByCell'](_0x319b56,_0x4b09b9,_0x3ac3af,_0x57be1f);if(!_0x1fe5b6)return!0x1;const _0x1ec542=(_0x3cefb6=_0x5e66f5[_0x3fe8b7(0x306)](_0x319b56,_0x4b09b9,_0x1fe5b6))==null?void 0x0:_0x3cefb6[_0x3fe8b7(0x21a)];if(!_0x1ec542)return!0x1;const _0x72a514=_0x37b5d2['get'](_0x4e9eda['SheetsPivotTableConfigModel'])[_0x3fe8b7(0x22f)](_0x319b56,_0x4b09b9,_0x1fe5b6);if(!_0x72a514)return!0x1;const {rowInfo:_0x3ac3a1,colInfo:_0x372e06}=_0x1ec542,_0x428ade=_0x3ac3a1[_0x3ac3af][_0x3fe8b7(0x3c3)],_0x520f31=_0x372e06[_0x57be1f][_0x3fe8b7(0x3c3)],_0xaf8659=_0x3ac3a1[_0x3ac3af]['level'],_0x2e3e61=_0x372e06[_0x57be1f][_0x3fe8b7(0x1ae)],_0x4dd295=_0x428ade[_0x3fe8b7(0x42a)](_0x520f31),_0x3f60e5=_0x72a514[_0x3fe8b7(0x432)]['rowFields'][_0x3fe8b7(0x219)](0x0,_0xaf8659),_0x5d8b87=_0x72a514[_0x3fe8b7(0x432)][_0x3fe8b7(0x19f)][_0x3fe8b7(0x219)](0x0,_0x2e3e61),_0x54afbc=_0x3f60e5[_0x3fe8b7(0x42a)](_0x5d8b87),_0x275a86=_0x4dd295[_0x3fe8b7(0x384)]((_0x4e7de0,_0x319157)=>[_0x4e7de0,_0x54afbc[_0x319157]]),_0x38b177=(await _0x37b5d2[_0x3fe8b7(0x2ee)](_0x4e9eda[_0x3fe8b7(0x3b3)])[_0x3fe8b7(0x288)]({'unitId':_0x319b56,'subUnitId':_0x4b09b9,'pivotTableId':_0x1fe5b6,'params':{'type':_0x4f52d8[_0x3fe8b7(0x2b8)],'drillDown':{'tuple':_0x275a86}}}))[_0x3fe8b7(0x260)]['drillDown'];if(!_0x38b177)return!0x1;const {indexes:_0x44cdeb,range:_0x551fc6,sourceUnitId:_0x4037c3,sourceSubUnitId:_0x116717,formatMap:_0x48fb0c}=_0x38b177,{startRow:_0x239a5a,endRow:_0x66bb5e,startColumn:_0x3280fd,endColumn:_0x59cee7}=_0x551fc6,_0x4ff715=new _0x5b61bd['ObjectMatrix'](),_0x2400a6=_0x66bb5e-_0x239a5a,_0x181684=_0x59cee7-_0x3280fd,_0x5653ba={},_0x51da28=_0x2009a4['getSheetCommandTarget'](_0x401ae7,{'unitId':_0x4037c3,'subUnitId':_0x116717});if(!_0x51da28)return!0x1;const _0xa9e9e2=_0xde021f[_0x3fe8b7(0x1ce)],_0x4470e7=_0xde021f[_0x3fe8b7(0x2e1)],_0x509075=_0xde021f['subTotalStyle'],_0x2a8fea=_0x2e401f[_0x3fe8b7(0x280)]()[_0x3fe8b7(0x214)](_0xa9e9e2),_0x4fd901=_0x2e401f[_0x3fe8b7(0x280)]()[_0x3fe8b7(0x214)](_0x4470e7),_0x3a9348=_0x2e401f[_0x3fe8b7(0x280)]()['setValue'](_0x509075),{worksheet:_0x3c5e55}=_0x51da28;let _0x1dfebb=0x0;const _0x1c12b3=0x1;_0x44cdeb[_0x3fe8b7(0x259)](_0xdd3189=>{const _0x5217b7=_0x3fe8b7;for(let _0x54365c=0x0;_0x54365c<=_0x59cee7-_0x3280fd;_0x54365c++)_0x4ff715[_0x5217b7(0x214)](_0x1dfebb,_0x54365c,_0x3c5e55[_0x5217b7(0x2e6)](_0xdd3189+_0x551fc6[_0x5217b7(0x25e)]+_0x1c12b3,_0x54365c));_0x1dfebb++;});for(let _0x1f3fe3=_0x3280fd;_0x1f3fe3<=_0x59cee7;_0x1f3fe3++){const _0x142132=_0x3c5e55[_0x3fe8b7(0x2e6)](_0x239a5a,_0x1f3fe3);_0x5653ba[_0x239a5a]||(_0x5653ba[_0x239a5a]={}),_0x5653ba[_0x239a5a][_0x1f3fe3]={..._0x142132,'s':_0x2a8fea};}let _0x431384=0x1;const _0x3eaaed={},_0x39628d={};_0x4ff715[_0x3fe8b7(0x243)]((_0x43607c,_0x28c344)=>{const _0x30bca9=_0x3fe8b7;_0x28c344[_0x30bca9(0x259)](_0x329959=>{const _0x4cf5d5=_0x30bca9,_0x313467=_0x4ff715['getValue'](_0x43607c,_0x329959);if(_0x5653ba[_0x431384]||(_0x5653ba[_0x431384]={}),_0x5653ba[_0x431384][_0x329959]={..._0x313467,'s':_0x431384%0x2===0x0?_0x3a9348:_0x4fd901},_0x48fb0c[_0x329959]&&_0x43607c>=0x0){const _0xf7e55a=_0x431384%0x2===0x0;let _0x403a34=_0xf7e55a?_0x39628d[_0x329959]:_0x3eaaed[_0x329959];_0x403a34||(_0x403a34=_0x2e401f['getStyles']()[_0x4cf5d5(0x214)]({..._0xf7e55a?_0x509075:_0x4470e7,'n':{'pattern':_0x48fb0c[_0x329959]}}),_0xf7e55a?_0x39628d[_0x329959]=_0x403a34:_0x3eaaed[_0x329959]=_0x403a34),_0x5653ba[_0x431384][_0x329959]['s']=_0x403a34;}}),_0x431384++;});const _0x5008f6=new _0x5b61bd['ObjectMatrix'](_0x5653ba),_0x49bb54={};_0x5008f6['forValue']((_0x3008f9,_0x20900d,_0x45798c)=>{_0x49bb54[_0x3008f9]||(_0x49bb54[_0x3008f9]={}),_0x49bb54[_0x3008f9][_0x20900d]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x2b6daf=[],_0x497670=[],_0x34181e=_0x2e401f[_0x3fe8b7(0x39a)]()['length'],_0x387822=_0x5b61bd[_0x3fe8b7(0x257)]({'rowCount':Math[_0x3fe8b7(0x368)](_0x5b61bd[_0x3fe8b7(0x34f)],_0x2400a6+0xa),'columnCount':Math[_0x3fe8b7(0x368)](_0x5b61bd[_0x3fe8b7(0x3d8)],_0x181684+0x5)}),_0x191c9a=_0x37b5d2[_0x3fe8b7(0x2ee)](_0x5b61bd[_0x3fe8b7(0x26b)]);_0x387822['id']=_0x5b61bd['generateRandomId'](),_0x387822['name']=_0x2e401f[_0x3fe8b7(0x28f)](''+_0x191c9a['t'](_0x3fe8b7(0x491)));const _0xd1a3f8={'index':_0x34181e,'sheet':_0x387822,'unitId':_0x319b56},_0x1c9785=_0x2009a4['InsertSheetUndoMutationFactory'](_0x37b5d2,_0xd1a3f8);_0x497670[_0x3fe8b7(0x3c4)]({'id':_0x2009a4[_0x3fe8b7(0x469)]['id'],'params':_0xd1a3f8}),_0x2b6daf[_0x3fe8b7(0x3c4)]({'id':_0x2009a4['RemoveSheetMutation']['id'],'params':_0x1c9785}),_0x497670[_0x3fe8b7(0x3c4)]({'id':_0x2009a4[_0x3fe8b7(0x20c)]['id'],'params':{'unitId':_0x319b56,'subUnitId':_0x387822['id'],'cellValue':_0x5653ba}}),_0x2b6daf[_0x3fe8b7(0x1d9)]({'id':_0x2009a4['SetRangeValuesMutation']['id'],'params':{'unitId':_0x319b56,'subUnitId':_0x387822['id'],'cellValue':_0x49bb54}});const _0x8e4da2={'startRow':0x0,'startColumn':0x0,'endRow':_0x431384-0x1,'endColumn':_0x59cee7};_0x497670[_0x3fe8b7(0x3c4)]({'id':_0x12b322['SetSheetsFilterRangeMutation']['id'],'params':{'unitId':_0x319b56,'subUnitId':_0x387822['id'],'range':_0x8e4da2}}),_0x2b6daf[_0x3fe8b7(0x1d9)]({'id':_0x12b322[_0x3fe8b7(0x48f)]['id'],'params':{'unitId':_0x319b56,'subUnitId':_0x387822['id']}});const _0x186bc3=_0x37b5d2[_0x3fe8b7(0x2ee)](_0x5b61bd[_0x3fe8b7(0x18a)]);return _0x5b61bd[_0x3fe8b7(0x487)](_0x497670,_0x186bc3)&&_0x37b5d2[_0x3fe8b7(0x2ee)](_0x5b61bd[_0x3fe8b7(0x1e6)])[_0x3fe8b7(0x293)]({'unitID':_0x319b56,'undoMutations':_0x2b6daf,'redoMutations':_0x497670}),!0x0;}},_0x324d43={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x255),async 'handler'(_0x5282b7,_0x263d8a){const _0x29064e=_0x1e02b9;if(!_0x263d8a)return!0x1;const _0x16a64e=_0x5282b7['get'](_0x5b61bd[_0x29064e(0x18a)]),_0x14c328=_0x5282b7[_0x29064e(0x2ee)](_0x4e9eda[_0x29064e(0x3b3)]),_0x5aa9f3=_0x5282b7['get'](_0x5b61bd[_0x29064e(0x1e6)]),{pivotTableId:_0x48441f,fieldIds:_0x114ebf,unitId:_0x1adcdc,subUnitId:_0x1865c9}=_0x263d8a,_0x1b636f=(await _0x14c328[_0x29064e(0x288)]({'unitId':_0x1adcdc,'subUnitId':_0x1865c9,'pivotTableId':_0x48441f,'params':{'type':_0x4f52d8[_0x29064e(0x3c1)],'removePivotField':{'fieldIds':_0x114ebf}}}))[_0x29064e(0x260)][_0x29064e(0x3b2)];if(!_0x1b636f)return!0x1;const {view:_0x2e2150,changesets:_0x3f79c1,isEmpty:_0x4d86cc,pivotTableConfig:_0x5c9846}=_0x1b636f,_0x2b98b8=_0x5c9846[_0x29064e(0x3ed)],_0x33db1b=new _0x7008cc[(_0x29064e(0x20e))]();_0x33db1b[_0x29064e(0x40a)](_0x2e2150);const _0x341e44={'cellInfo':_0x2b98b8,'view':_0x33db1b,'isEmpty':_0x4d86cc};if(!await _0x5282b7['get'](_0x4e9eda['SheetsPivotTableService'])[_0x29064e(0x379)][_0x29064e(0x18b)](_0x27b0ca)(!0x0,_0x341e44))return!0x1;const _0x162538=_0x58f3ac(_0x5282b7,_0x33db1b,_0x2b98b8,_0x4d86cc),_0x44a173=_0x48a5a9(_0x5282b7,_0x341e44),{redos:_0xb87536,undos:_0x12d9b9}=_0x4df1bc(_0x16a64e,{'pivotTableId':_0x48441f,'unitId':_0x1adcdc,'subUnitId':_0x1865c9},_0x3f79c1);return _0x5b61bd[_0x29064e(0x487)]([..._0x162538[_0x29064e(0x19b)],..._0x44a173[_0x29064e(0x19b)],..._0xb87536],_0x16a64e),_0x5aa9f3[_0x29064e(0x293)]({'unitID':_0x1adcdc,'redoMutations':[..._0x162538['redos'],..._0x44a173[_0x29064e(0x19b)],..._0xb87536],'undoMutations':[..._0x162538['undos'],..._0x44a173[_0x29064e(0x2f8)],..._0x12d9b9]}),!0x0;}},_0x4c38b4={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':'sheet.command.set-pivot-collapse',async 'handler'(_0x2658ed,_0x22f2e0){const _0x14602e=_0x1e02b9;var _0xd7f98b;const _0x372249=_0x2658ed['get'](_0x5b61bd[_0x14602e(0x18a)]),_0x39bdd3=_0x2658ed[_0x14602e(0x2ee)](_0x4e9eda['SheetsPivotRPCService']),_0x309dae=_0x2658ed[_0x14602e(0x2ee)](_0x4e9eda[_0x14602e(0x1b5)]),_0x36d563=_0x2658ed['get'](_0x5b61bd['IUniverInstanceService']),_0x592469=_0x2658ed[_0x14602e(0x2ee)](_0x5b61bd[_0x14602e(0x1e6)]);if(!_0x22f2e0)return!0x1;const {unitId:_0x690893,subUnitId:_0x1aface,row:_0x18d821,col:_0x12a426,collapse:_0x4878f0}=_0x22f2e0,_0x471b26=_0x36d563[_0x14602e(0x389)](_0x690893);if(!_0x471b26||!_0x471b26['getSheetBySheetId'](_0x1aface))return!0x1;const _0x20472e=_0x309dae[_0x14602e(0x42f)](_0x690893,_0x1aface,_0x18d821,_0x12a426);if(!_0x20472e)return!0x1;const _0x192a32=_0x309dae['getPivotItemRenderInfoCache'](_0x690893,_0x1aface,_0x20472e);if(!_0x192a32)return!0x1;const _0x515d1b=_0x5b61bd[_0x14602e(0x22a)](_0x18d821,_0x12a426),{rangesInfo:_0x2ca546,areaInfo:_0x1f6d6f,headerMap:_0x14441a}=_0x192a32;if(!_0x2ca546||!_0x1f6d6f||!_0x14441a)return!0x1;const _0x23e5ee=Object[_0x14602e(0x1b6)](_0x2ca546)[_0x14602e(0x250)](_0x42c42b=>_0x2ca546[_0x42c42b][_0x14602e(0x322)](_0xaae1cc=>_0x5b61bd[_0x14602e(0x28e)][_0x14602e(0x348)](_0xaae1cc,_0x515d1b)));let _0x14f9a5;_0x23e5ee===_0x14602e(0x33e)?_0x14f9a5=_0x14441a[_0x14602e(0x34d)][_0x12a426]:_0x23e5ee===_0x14602e(0x496)&&(_0x14f9a5=_0x14441a['colHeaderMap'][_0x18d821]);const _0xa0f6b=_0x14f9a5==null?void 0x0:_0x14f9a5['tableFieldId'],_0x1b9159=(_0xd7f98b=_0x309dae[_0x14602e(0x248)](_0x690893,_0x1aface,_0x18d821,_0x12a426))==null?void 0x0:_0xd7f98b['v'];if(_0x1b9159==null||!_0x20472e||!_0xa0f6b)return!0x1;const _0xd048d8=await _0x39bdd3[_0x14602e(0x288)]({'unitId':_0x690893,'subUnitId':_0x1aface,'pivotTableId':_0x20472e,'params':{'type':_0x4f52d8[_0x14602e(0x437)],'setPivotCollapse':{'tableFieldId':_0xa0f6b,'collapse':_0x4878f0,'item':_0x1b9159}}}),_0x433379=_0xd048d8==null?void 0x0:_0xd048d8['result']['setPivotCollapse'];if(!_0x433379)return!0x1;const {view:_0x223927,pivotTableConfig:_0x33eaa3,isEmpty:_0x3fc207,changesets:_0x35a064}=_0x433379,_0x2a0a8d=new _0x7008cc[(_0x14602e(0x20e))]();_0x2a0a8d[_0x14602e(0x40a)](_0x223927);const _0x14c65a=_0x33eaa3['targetCellInfo'],_0x5c5c97={'cellInfo':_0x14c65a,'view':_0x2a0a8d,'isEmpty':_0x3fc207};if(!await _0x2658ed['get'](_0x4e9eda[_0x14602e(0x207)])[_0x14602e(0x379)][_0x14602e(0x18b)](_0x27b0ca)(!0x0,_0x5c5c97))return!0x1;const _0x1297ea=_0x58f3ac(_0x2658ed,_0x2a0a8d,_0x14c65a,_0x3fc207),_0x447337=_0x48a5a9(_0x2658ed,_0x5c5c97),{redos:_0x15f58,undos:_0x298b47}=_0x4df1bc(_0x372249,{'pivotTableId':_0x20472e,'unitId':_0x690893,'subUnitId':_0x1aface},_0x35a064);return _0x5b61bd[_0x14602e(0x487)]([..._0x1297ea[_0x14602e(0x19b)],..._0x447337[_0x14602e(0x19b)],..._0x15f58],_0x372249),_0x592469['pushUndoRedo']({'unitID':_0x690893,'redoMutations':[..._0x1297ea['redos'],..._0x447337[_0x14602e(0x19b)],..._0x15f58],'undoMutations':[..._0x1297ea[_0x14602e(0x2f8)],..._0x447337[_0x14602e(0x2f8)],..._0x298b47]}),!0x0;}},_0x2c5a46={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['COMMAND'],'id':_0x1e02b9(0x190),async 'handler'(_0x203eae,_0x476310){const _0x47b500=_0x1e02b9;if(!_0x476310)return!0x1;const _0x28714b=_0x203eae[_0x47b500(0x2ee)](_0x5b61bd[_0x47b500(0x18a)]),{pivotTableId:_0x3d7e6b,tableFieldId:_0x16f5af,items:_0x1517db,unitId:_0x44f075,subUnitId:_0xbd9e1c,isAll:_0x6f3392}=_0x476310,_0x36e8bd=_0x203eae['get'](_0x4e9eda[_0x47b500(0x3b3)]),_0x54b3db=_0x203eae[_0x47b500(0x2ee)](_0x5b61bd[_0x47b500(0x1e6)]),_0x5577f4=(await _0x36e8bd['getPivotDisplayConfig']({'unitId':_0x44f075,'subUnitId':_0xbd9e1c,'pivotTableId':_0x3d7e6b,'params':{'type':_0x4f52d8[_0x47b500(0x419)],'setPivotFilter':{'tableFieldId':_0x16f5af,'items':_0x1517db,'isAll':_0x6f3392}}}))[_0x47b500(0x260)][_0x47b500(0x1fe)];if(!_0x5577f4)return!0x1;const {changesets:_0x4749e4,pivotTableConfig:_0x3b1d6e,isEmpty:_0x4df715,view:_0x43be5b}=_0x5577f4,_0x43af6c=_0x3b1d6e['targetCellInfo'],_0x1c6c81=new _0x7008cc[(_0x47b500(0x20e))]();_0x1c6c81[_0x47b500(0x40a)](_0x43be5b);const _0x4831e4={'cellInfo':_0x43af6c,'view':_0x1c6c81,'isEmpty':_0x4df715};if(!await _0x203eae[_0x47b500(0x2ee)](_0x4e9eda[_0x47b500(0x207)])[_0x47b500(0x379)][_0x47b500(0x18b)](_0x27b0ca)(!0x0,_0x4831e4))return!0x1;const _0x28b5a1=_0x58f3ac(_0x203eae,_0x1c6c81,_0x43af6c,_0x4df715),_0x1b7b78=_0x48a5a9(_0x203eae,_0x4831e4),{undos:_0x23e753,redos:_0x48ecbe}=_0x4df1bc(_0x28714b,{'pivotTableId':_0x3d7e6b,'unitId':_0x44f075,'subUnitId':_0xbd9e1c},_0x4749e4);return _0x5b61bd[_0x47b500(0x487)]([..._0x28b5a1['redos'],..._0x1b7b78[_0x47b500(0x19b)],..._0x48ecbe],_0x28714b),_0x54b3db[_0x47b500(0x293)]({'unitID':_0x44f075,'redoMutations':[..._0x28b5a1['redos'],..._0x1b7b78[_0x47b500(0x19b)],..._0x48ecbe],'undoMutations':[..._0x28b5a1[_0x47b500(0x2f8)],..._0x1b7b78['undos'],..._0x23e753]}),!0x0;}},_0x1c2343={'type':_0x5b61bd['CommandType'][_0x1e02b9(0x18c)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x150e32,_0x41180d){const _0x2acb13=_0x1e02b9;if(!_0x41180d)return!0x1;const _0x3b27b4=_0x150e32['get'](_0x5b61bd['ICommandService']),_0x1bfa94=_0x150e32['get'](_0x5b61bd[_0x2acb13(0x1e6)]),_0x17b445=_0x150e32[_0x2acb13(0x2ee)](_0x4e9eda[_0x2acb13(0x3b3)]),{info:_0x24d1f6,tableFieldId:_0x58c7d3,pivotTableId:_0x2af8f0,unitId:_0x5e8c82,subUnitId:_0xc13ed4}=_0x41180d,_0xa62343=(await _0x17b445[_0x2acb13(0x288)]({'unitId':_0x5e8c82,'subUnitId':_0xc13ed4,'pivotTableId':_0x2af8f0,'params':{'type':_0x4f52d8[_0x2acb13(0x3af)],'setPivotSort':{'tableFieldId':_0x58c7d3,'info':_0x24d1f6}}}))[_0x2acb13(0x260)][_0x2acb13(0x2b3)];if(!_0xa62343)return!0x1;const {changesets:_0x4bde03}=_0xa62343,{redos:_0x31e914,undos:_0x289725}=_0x4df1bc(_0x3b27b4,{'pivotTableId':_0x2af8f0,'unitId':_0x5e8c82,'subUnitId':_0xc13ed4},_0x4bde03);return _0x5b61bd[_0x2acb13(0x487)](_0x31e914,_0x3b27b4),_0x1bfa94[_0x2acb13(0x293)]({'unitID':_0x5e8c82,'redoMutations':_0x31e914,'undoMutations':_0x289725}),!0x0;}},_0x1197bd={'type':_0x5b61bd[_0x1e02b9(0x2f6)]['COMMAND'],'id':_0x1e02b9(0x1bd),async 'handler'(_0x541059,_0x18c465){const _0x2a7a21=_0x1e02b9;if(!_0x18c465)return!0x1;const _0x15e95b=_0x541059[_0x2a7a21(0x2ee)](_0x5b61bd[_0x2a7a21(0x18a)]),_0x5aad16=_0x541059[_0x2a7a21(0x2ee)](_0x5b61bd[_0x2a7a21(0x1e6)]),_0x3a7fd3=_0x541059[_0x2a7a21(0x2ee)](_0x4e9eda[_0x2a7a21(0x3b3)]),{displayName:_0x60d9e0,subtotalType:_0x262e52,format:_0x22d55a,tableFieldId:_0x481b85,pivotTableId:_0x556b96,unitId:_0x330e89,subUnitId:_0x3c5983}=_0x18c465,_0xe2f450=(await _0x3a7fd3['getPivotDisplayConfig']({'unitId':_0x330e89,'subUnitId':_0x3c5983,'pivotTableId':_0x556b96,'params':{'type':_0x4f52d8[_0x2a7a21(0x2e8)],'setPivotSetting':{'tableFieldId':_0x481b85,'displayName':_0x60d9e0,'subtotalType':_0x262e52,'format':_0x22d55a}}}))[_0x2a7a21(0x260)][_0x2a7a21(0x1ff)];if(!_0xe2f450)return!0x1;const {changesets:_0x34c69d,view:_0x5f4f7a,pivotTableConfig:_0x401680,isEmpty:_0x4162f8}=_0xe2f450,_0x418e3e=_0x401680[_0x2a7a21(0x3ed)],_0xff611f=new _0x7008cc[(_0x2a7a21(0x20e))]();_0xff611f['formJSON'](_0x5f4f7a);const _0x2ef507={'cellInfo':_0x418e3e,'view':_0xff611f,'isEmpty':_0x4162f8};if(!await _0x541059[_0x2a7a21(0x2ee)](_0x4e9eda[_0x2a7a21(0x207)])[_0x2a7a21(0x379)][_0x2a7a21(0x18b)](_0x27b0ca)(!0x0,_0x2ef507))return!0x1;const _0x4ebf78=_0x58f3ac(_0x541059,_0xff611f,_0x418e3e,_0x4162f8),_0x360437=_0x48a5a9(_0x541059,_0x2ef507),{undos:_0x5c1172,redos:_0x5389f1}=_0x4df1bc(_0x15e95b,{'pivotTableId':_0x556b96,'unitId':_0x330e89,'subUnitId':_0x3c5983},_0x34c69d);return _0x5b61bd['sequenceExecute']([..._0x4ebf78[_0x2a7a21(0x19b)],..._0x360437[_0x2a7a21(0x19b)],..._0x5389f1],_0x15e95b),_0x5aad16['pushUndoRedo']({'unitID':_0x330e89,'redoMutations':[..._0x4ebf78[_0x2a7a21(0x19b)],..._0x360437[_0x2a7a21(0x19b)],..._0x5389f1],'undoMutations':[..._0x4ebf78['undos'],..._0x360437[_0x2a7a21(0x2f8)],..._0x5c1172]}),!0x0;}},_0x16947d={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x361),async 'handler'(_0x55b018,_0x4649e0){const _0x8b6d12=_0x1e02b9,_0x5f43aa=_0x55b018['get'](_0x5b61bd['ICommandService']),_0x549df0=_0x55b018[_0x8b6d12(0x2ee)](_0x4e9eda['SheetsPivotRPCService']),_0x3f4703=_0x55b018[_0x8b6d12(0x2ee)](_0x5b61bd[_0x8b6d12(0x1e6)]);if(!_0x4649e0)return!0x1;const {token:_0x4dc4d2,dataRangeInfo:_0x22a051,unitId:_0x1f8dc7,subUnitId:_0x1e6101}=_0x4649e0,_0x479646=[],_0x4f3378=[],_0x258ded=(await _0x549df0[_0x8b6d12(0x288)]({'unitId':_0x1f8dc7,'subUnitId':_0x1e6101,'pivotTableId':_0x4dc4d2,'params':{'type':_0x4f52d8[_0x8b6d12(0x49c)],'updatePivotSource':{'dataRangeInfo':_0x22a051,'unitId':_0x1f8dc7,'subUnitId':_0x1e6101}}}))[_0x8b6d12(0x260)][_0x8b6d12(0x1da)];if(!_0x258ded)return!0x1;const {changesets:_0x10c69e,deleteIds:_0x303dc0,collectionConfig:_0x4d92fd,oldCollectionConfig:_0x214fb0,view:_0x32af0f,isEmpty:_0x47c980,pivotTableConfig:_0x427ba5}=_0x258ded;_0x4f3378[_0x8b6d12(0x3c4)]({'id':_0x2b1ec5['id'],'params':{'pivotTableId':_0x4dc4d2,'deleteIds':_0x303dc0,'collectionJSON':_0x4d92fd,'dataRangeInfo':_0x22a051,'unitId':_0x1f8dc7,'subUnitId':_0x1e6101}}),_0x479646[_0x8b6d12(0x1d9)]({'id':_0x2b1ec5['id'],'params':{'pivotTableId':_0x4dc4d2,'deleteIds':[],'collectionJSON':_0x214fb0,'dataRangeInfo':_0x427ba5[_0x8b6d12(0x359)],'unitId':_0x1f8dc7,'subUnitId':_0x1e6101}});const _0x3960c8=_0x427ba5[_0x8b6d12(0x3ed)],_0x590f5c=new _0x7008cc[(_0x8b6d12(0x20e))]();_0x590f5c[_0x8b6d12(0x40a)](_0x32af0f);const _0x36f694={'cellInfo':_0x3960c8,'view':_0x590f5c,'isEmpty':_0x47c980};if(!await _0x55b018[_0x8b6d12(0x2ee)](_0x4e9eda[_0x8b6d12(0x207)])[_0x8b6d12(0x379)][_0x8b6d12(0x18b)](_0x27b0ca)(!0x0,_0x36f694))return!0x1;const _0x150696=_0x58f3ac(_0x55b018,_0x590f5c,_0x3960c8,_0x47c980),_0xa7250f=_0x48a5a9(_0x55b018,_0x36f694),{undos:_0x1891a4,redos:_0xbdd523}=_0x4df1bc(_0x5f43aa,{'pivotTableId':_0x4dc4d2,'unitId':_0x1f8dc7,'subUnitId':_0x1e6101},_0x10c69e);return _0x5b61bd[_0x8b6d12(0x487)]([..._0x150696['redos'],..._0xa7250f[_0x8b6d12(0x19b)],..._0x4f3378,..._0x1891a4],_0x5f43aa),_0x3f4703[_0x8b6d12(0x293)]({'unitID':_0x1f8dc7,'redoMutations':[..._0x150696[_0x8b6d12(0x19b)],..._0xa7250f[_0x8b6d12(0x19b)],..._0x4f3378,..._0x1891a4],'undoMutations':[..._0x150696[_0x8b6d12(0x2f8)],..._0xa7250f['undos'],..._0x479646,..._0xbdd523]}),!0x0;}},_0x16152a={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x3db),async 'handler'(_0x6e0a02,_0x139491){const _0x213123=_0x1e02b9;if(!_0x139491)return!0x1;const _0x9dc2eb=_0x6e0a02[_0x213123(0x2ee)](_0x5b61bd[_0x213123(0x18a)]),_0xc9e0d9=_0x6e0a02[_0x213123(0x2ee)](_0x4e9eda[_0x213123(0x3b3)]),_0x38aeef=_0x6e0a02[_0x213123(0x2ee)](_0x5b61bd[_0x213123(0x475)]),_0x5b4bfa=_0x6e0a02['get'](_0x5b61bd[_0x213123(0x1e6)]),{pivotTableId:_0x3cb4c8,position:_0x5237fb,index:_0x18d46b}=_0x139491,_0xa2f4d2=_0x2009a4[_0x213123(0x3ae)](_0x38aeef);if(!_0xa2f4d2)return!0x1;const {unitId:_0x1c7a89,subUnitId:_0x5e8683}=_0xa2f4d2,_0x178885=(await _0xc9e0d9[_0x213123(0x288)]({'unitId':_0x1c7a89,'subUnitId':_0x5e8683,'pivotTableId':_0x3cb4c8,'params':{'type':_0x4f52d8[_0x213123(0x1ee)],'updateValuePosition':{'position':_0x5237fb,'index':_0x18d46b}}}))[_0x213123(0x260)]['updateValuePosition'];if(!_0x178885)return!0x1;const {changesets:_0x5e8fc4,view:_0x30dbda,isEmpty:_0x326cdc,pivotTableConfig:_0x2ef0c4}=_0x178885,_0x507392=_0x2ef0c4[_0x213123(0x3ed)],_0x3dc999=new _0x7008cc['PivotView']();_0x3dc999[_0x213123(0x40a)](_0x30dbda);const _0x101f22=_0x6e0a02[_0x213123(0x2ee)](_0x4e9eda[_0x213123(0x207)]),_0x1a02ae={'cellInfo':_0x507392,'view':_0x3dc999,'isEmpty':_0x326cdc};if(!await _0x101f22['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x27b0ca)(!0x0,_0x1a02ae))return!0x1;const _0x7529f2=_0x58f3ac(_0x6e0a02,_0x3dc999,_0x507392,_0x326cdc),_0x13c7f2=_0x48a5a9(_0x6e0a02,_0x1a02ae),{undos:_0x493bf0,redos:_0x418743}=_0x4df1bc(_0x9dc2eb,{'pivotTableId':_0x3cb4c8,'unitId':_0x1c7a89,'subUnitId':_0x5e8683},_0x5e8fc4);return _0x5b61bd['sequenceExecute']([..._0x7529f2[_0x213123(0x19b)],..._0x13c7f2[_0x213123(0x19b)],..._0x418743],_0x9dc2eb),_0x5b4bfa[_0x213123(0x293)]({'unitID':_0x1c7a89,'redoMutations':[..._0x7529f2[_0x213123(0x19b)],..._0x13c7f2['redos'],..._0x418743],'undoMutations':[..._0x7529f2[_0x213123(0x2f8)],..._0x13c7f2[_0x213123(0x2f8)],..._0x493bf0]}),!0x0;}},_0x555823={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x44b),'handler':(_0x3f5e8b,_0x7ce973)=>{const _0x3626a8=_0x1e02b9,_0x19c482=_0x3f5e8b['get'](_0x5b61bd[_0x3626a8(0x18a)]),_0x21ea9e=_0x3f5e8b[_0x3626a8(0x2ee)](_0x5b61bd['IUndoRedoService']),_0xd32ec=_0x3f5e8b[_0x3626a8(0x2ee)](_0x4e9eda[_0x3626a8(0x237)]),_0x20f5f2=_0x3f5e8b[_0x3626a8(0x2ee)](_0x5b61bd['IUniverInstanceService']);if(!_0x7ce973)return!0x1;const _0x58c6c9=_0x2009a4[_0x3626a8(0x3ae)](_0x20f5f2);if(!_0x58c6c9)return!0x1;const {unitId:_0x1d3da1,subUnitId:_0x5e68bb,workbook:_0x350972}=_0x58c6c9,_0x3cb41f=_0xd32ec[_0x3626a8(0x22f)](_0x7ce973[_0x3626a8(0x396)][_0x3626a8(0x344)],_0x7ce973[_0x3626a8(0x396)][_0x3626a8(0x213)],_0x7ce973[_0x3626a8(0x46a)]);if(!_0x3cb41f)return!0x1;const _0x3014c=_0x350972[_0x3626a8(0x2ab)](_0x7ce973[_0x3626a8(0x3ed)][_0x3626a8(0x213)]);if(!_0x3014c)throw new Error(_0x3626a8(0x2fc));const _0x592a8e=_0x3014c[_0x3626a8(0x3a0)](),_0x219c2f=_0x3014c[_0x3626a8(0x45b)]();if(_0x7ce973['targetCellInfo'][_0x3626a8(0x2e3)]>_0x592a8e||_0x7ce973[_0x3626a8(0x3ed)][_0x3626a8(0x352)]>_0x219c2f)throw new Error(_0x3626a8(0x228));const _0x28d131=[{'id':_0xf618f3['id'],'params':{'unitId':_0x1d3da1,'subUnitId':_0x7ce973[_0x3626a8(0x3ed)][_0x3626a8(0x213)],'pivotTableId':_0x7ce973[_0x3626a8(0x46a)],'targetCellPosition':{'row':_0x7ce973[_0x3626a8(0x3ed)][_0x3626a8(0x2e3)],'col':_0x7ce973[_0x3626a8(0x3ed)][_0x3626a8(0x352)]}}}],_0x4e1f27=[{'id':_0xf618f3['id'],'params':{'unitId':_0x1d3da1,'subUnitId':_0x5e68bb,'pivotTableId':_0x7ce973['pivotTableId'],'targetCellPosition':{'row':_0x3cb41f[_0x3626a8(0x3ed)][_0x3626a8(0x2e3)],'col':_0x3cb41f[_0x3626a8(0x3ed)]['col']}}}];return _0x5b61bd['sequenceExecute'](_0x28d131,_0x19c482)&&_0x21ea9e[_0x3626a8(0x293)]({'unitID':_0x1d3da1,'undoMutations':_0x4e1f27,'redoMutations':_0x28d131}),!0x0;}},_0x29fec7={'type':_0x5b61bd['CommandType']['COMMAND'],'id':_0x1e02b9(0x27f),async 'handler'(_0x2c3e92,_0x28ddda){const _0x2bca33=_0x1e02b9;if(!_0x28ddda)return!0x1;const _0x5e9b60=_0x2c3e92[_0x2bca33(0x2ee)](_0x5b61bd['ICommandService']),{pivotTableId:_0x19b089,fieldId:_0x3e7e3a,valueFilterInfo:_0x143462,unitId:_0x205b35,subUnitId:_0x46fa50}=_0x28ddda,_0x11b1af=_0x2c3e92[_0x2bca33(0x2ee)](_0x4e9eda['SheetsPivotRPCService']),_0x45a252=_0x2c3e92[_0x2bca33(0x2ee)](_0x5b61bd[_0x2bca33(0x1e6)]),_0x4961d2=(await _0x11b1af['getPivotDisplayConfig']({'unitId':_0x205b35,'subUnitId':_0x46fa50,'pivotTableId':_0x19b089,'params':{'type':_0x4f52d8['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x3e7e3a,'filterInfo':_0x143462}}}))[_0x2bca33(0x260)][_0x2bca33(0x314)];if(!_0x4961d2)return!0x1;const {changesets:_0x22b780,pivotTableConfig:_0x31d511,isEmpty:_0x1d3134,view:_0x451822}=_0x4961d2,_0x4461ad=_0x31d511[_0x2bca33(0x3ed)],_0x36b2a9=new _0x7008cc[(_0x2bca33(0x20e))]();_0x36b2a9[_0x2bca33(0x40a)](_0x451822);const _0x244fc7={'cellInfo':_0x4461ad,'view':_0x36b2a9,'isEmpty':_0x1d3134};if(!await _0x2c3e92[_0x2bca33(0x2ee)](_0x4e9eda[_0x2bca33(0x207)])[_0x2bca33(0x379)]['fetchThroughAsyncInterceptors'](_0x27b0ca)(!0x0,_0x244fc7))return!0x1;const _0x2261f8=_0x58f3ac(_0x2c3e92,_0x36b2a9,_0x4461ad,_0x1d3134),_0x239ee5=_0x48a5a9(_0x2c3e92,_0x244fc7),{undos:_0x4d7e2c,redos:_0x1c6bc9}=_0x4df1bc(_0x5e9b60,{'pivotTableId':_0x19b089,'unitId':_0x205b35,'subUnitId':_0x46fa50},_0x22b780);return _0x5b61bd['sequenceExecute']([..._0x2261f8['redos'],..._0x239ee5[_0x2bca33(0x19b)],..._0x1c6bc9],_0x5e9b60),_0x45a252[_0x2bca33(0x293)]({'unitID':_0x205b35,'redoMutations':[..._0x2261f8[_0x2bca33(0x19b)],..._0x239ee5[_0x2bca33(0x19b)],..._0x1c6bc9],'undoMutations':[..._0x2261f8[_0x2bca33(0x2f8)],..._0x239ee5['undos'],..._0x4d7e2c]}),!0x0;}},_0x2db570={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':_0x1e02b9(0x39f),async 'handler'(_0x1d5499,_0x284a11){const _0x40b34c=_0x1e02b9;if(!_0x284a11)return!0x1;const _0x1120fb=_0x1d5499['get'](_0x5b61bd[_0x40b34c(0x18a)]),_0x2971a4=_0x1d5499[_0x40b34c(0x2ee)](_0x5b61bd[_0x40b34c(0x1e6)]),_0x220626=_0x1d5499[_0x40b34c(0x2ee)](_0x4e9eda[_0x40b34c(0x3b3)]),{pivotTableConfig:_0x2d09e6,pivotTableId:_0x635eb3,unitId:_0x4e4ff7,subUnitId:_0x365477}=_0x284a11,_0x460454=(await _0x220626[_0x40b34c(0x288)]({'unitId':_0x4e4ff7,'subUnitId':_0x365477,'pivotTableId':_0x635eb3,'params':{'type':_0x4f52d8['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x635eb3,'pivotTableConfig':_0x2d09e6}}}))[_0x40b34c(0x260)][_0x40b34c(0x2e9)];if(!_0x460454)return!0x1;const {changesets:_0xb0703b}=_0x460454,{redos:_0x502399,undos:_0x19c28b}=_0x4df1bc(_0x1120fb,{'pivotTableId':_0x635eb3,'unitId':_0x4e4ff7,'subUnitId':_0x365477},_0xb0703b);return _0x5b61bd['sequenceExecute'](_0x502399,_0x1120fb),_0x2971a4[_0x40b34c(0x293)]({'unitID':_0x4e4ff7,'redoMutations':_0x502399,'undoMutations':_0x19c28b}),!0x0;}},_0xbf7f6d={'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x59a7ce,_0x4ccda3){const _0x4ccfb6=_0x1e02b9;if(!_0x4ccda3)return!0x1;const _0x35182a=_0x59a7ce[_0x4ccfb6(0x2ee)](_0x5b61bd['ICommandService']),_0x552d9e=_0x59a7ce[_0x4ccfb6(0x2ee)](_0x5b61bd[_0x4ccfb6(0x1e6)]),_0x9fbd54=_0x59a7ce['get'](_0x4e9eda[_0x4ccfb6(0x3b3)]),{resetArea:_0x30176e,pivotTableId:_0x4c20ab,unitId:_0x3048f9,subUnitId:_0x570345}=_0x4ccda3,_0x41d469=(await _0x9fbd54[_0x4ccfb6(0x288)]({'unitId':_0x3048f9,'subUnitId':_0x570345,'pivotTableId':_0x4c20ab,'params':{'type':_0x4f52d8[_0x4ccfb6(0x42b)],'resetPivotTable':{'pivotTableId':_0x4c20ab,'resetArea':_0x30176e}}}))['result'][_0x4ccfb6(0x256)];if(!_0x41d469)return!0x1;const {changesets:_0x40a33d}=_0x41d469,{redos:_0x45bbd9,undos:_0x45558a}=_0x4df1bc(_0x35182a,{'pivotTableId':_0x4c20ab,'unitId':_0x3048f9,'subUnitId':_0x570345},_0x40a33d);return _0x5b61bd[_0x4ccfb6(0x487)](_0x45bbd9,_0x35182a),_0x552d9e[_0x4ccfb6(0x293)]({'unitID':_0x3048f9,'redoMutations':_0x45bbd9,'undoMutations':_0x45558a}),!0x0;}},_0x21562d={'id':_0x1e02b9(0x477),'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x3aa)],'handler':(_0x9e7352,_0x4cc741)=>{const _0x51d0c8=_0x1e02b9;if(!_0x4cc741)return!0x1;if(!!_0x9e7352[_0x51d0c8(0x2ee)](_0x5b61bd['IConfigService'])[_0x51d0c8(0x35f)](_0x1ea5d8))return!0x0;const {unitId:_0x1d29bc,subUnitId:_0x36bac5,pivotTableId:_0x14ece6,tableFieldId:_0x228e25,dateType:_0x39c1ea}=_0x4cc741,_0x1a8efb=_0x9e7352[_0x51d0c8(0x2ee)](_0x4e9eda[_0x51d0c8(0x20f)]),_0xd756ec=_0x1a8efb[_0x51d0c8(0x2c5)](_0x14ece6);if(!_0xd756ec)return!0x1;const _0x32afc1=_0xd756ec['getDataFieldByTableId'](_0x228e25);if(!_0x32afc1)return!0x1;const _0x35d160=_0x32afc1['getOriginFieldId'](),_0x20b870=_0xd756ec[_0x51d0c8(0x26d)](_0x35d160),_0x441255=(_0x20b870==null?void 0x0:_0x20b870['getName']())+'\x20'+_0x3bf797(_0x9e7352,_0x39c1ea);_0x1a8efb[_0x51d0c8(0x1a7)](_0x1d29bc,_0x14ece6)[_0x51d0c8(0x22e)](_0x32afc1['id'],_0x441255);const _0x1e66b8=_0xd756ec['getTableFieldById'](_0x228e25);if(!_0x1e66b8)return!0x1;_0xd756ec['renameField'](_0x1e66b8[_0x51d0c8(0x463)](),_0x441255),_0x32afc1['setDateType'](_0x39c1ea);const _0x1d9459=_0x1a8efb[_0x51d0c8(0x22f)](_0x1d29bc,_0x36bac5,_0x14ece6);return _0x1a8efb[_0x51d0c8(0x2d2)]({'unitId':_0x1d29bc,'subUnitId':_0x36bac5,'token':_0x14ece6,'type':_0x407136['Set'],'pivotConfig':_0x1d9459}),!0x0;}},_0xae97d6={'id':_0x1e02b9(0x299),'type':_0x5b61bd[_0x1e02b9(0x2f6)][_0x1e02b9(0x18c)],'handler':(_0x2c751f,_0x50a490)=>{const _0x485895=_0x1e02b9;if(!_0x50a490)return!0x1;const _0x404c75=_0x2c751f[_0x485895(0x2ee)](_0x5b61bd[_0x485895(0x1e6)]),{unitId:_0x40f9a2,subUnitId:_0x1b0f7d,pivotTableId:_0x4153ec,tableFieldId:_0x275ad9}=_0x50a490,_0x1ac5e8=[],_0x2d8a8d=[],_0x895eb2=_0x2c751f[_0x485895(0x2ee)](_0x4e9eda['SheetsPivotTableConfigModel']),_0x146150=_0x895eb2['getCollection'](_0x40f9a2,_0x4153ec),_0x145b0f=_0x895eb2[_0x485895(0x22f)](_0x40f9a2,_0x1b0f7d,_0x4153ec);if(!(_0x145b0f!=null&&_0x145b0f['fieldsConfig'][_0x485895(0x416)]))return!0x1;const _0x93fa0a=Object[_0x485895(0x2a3)](_0x145b0f[_0x485895(0x432)][_0x485895(0x416)])[_0x485895(0x250)](_0x5cdc60=>_0x5cdc60['id']===_0x275ad9);if(!_0x93fa0a)return!0x1;const _0x59a428=_0x93fa0a['dataFieldId'];if(!(_0x146150!=null&&_0x146150['fields']))return!0x1;const _0x263296=Object[_0x485895(0x2a3)](_0x146150==null?void 0x0:_0x146150[_0x485895(0x36d)])[_0x485895(0x250)](_0x2f0a25=>_0x2f0a25['id']===_0x59a428);if(!_0x263296)return!0x1;_0x7008cc[_0x485895(0x2fe)](_0x263296)&&_0x1ac5e8[_0x485895(0x3c4)]({'id':_0x21562d['id'],'params':{..._0x50a490,'dateType':_0x263296[_0x485895(0x279)]}}),_0x2d8a8d[_0x485895(0x3c4)]({'id':_0x21562d['id'],'params':{..._0x50a490}});const _0xf802f3=_0x2c751f['get'](_0x5b61bd[_0x485895(0x18a)]);return _0x5b61bd[_0x485895(0x487)](_0x2d8a8d,_0xf802f3)&&_0x404c75[_0x485895(0x293)]({'unitID':_0x40f9a2,'undoMutations':_0x1ac5e8,'redoMutations':_0x2d8a8d}),!0x0;}};var _0x57868b=Object[_0x1e02b9(0x2b9)],_0x16c9d4=(_0x528e25,_0x4b2213,_0x3c109f,_0x2e517c)=>{const _0x4c72cf=_0x1e02b9;for(var _0x5d82c9=_0x2e517c>0x1?void 0x0:_0x2e517c?_0x57868b(_0x4b2213,_0x3c109f):_0x4b2213,_0x531348=_0x528e25[_0x4c72cf(0x370)]-0x1,_0x311b70;_0x531348>=0x0;_0x531348--)(_0x311b70=_0x528e25[_0x531348])&&(_0x5d82c9=_0x311b70(_0x5d82c9)||_0x5d82c9);return _0x5d82c9;},_0x4ca369=(_0x3e619b,_0x35e418)=>(_0xc90bda,_0x188e29)=>_0x35e418(_0xc90bda,_0x188e29,_0x3e619b);const _0x568e84=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x5b4628=(_0x31a1c4,_0x4fa931,_0x38e123)=>{const _0x3fe958=_0x1e02b9,_0x2bdd24=_0x31a1c4[_0x3fe958(0x270)];_0x31a1c4[_0x3fe958(0x339)](_0x4ceb5d=>{const _0x3aeb35=_0x3fe958,_0x3cec7f=_0x4ceb5d[_0x3aeb35(0x463)](),_0x56e6f7=_0x4ceb5d[_0x3aeb35(0x28d)](),_0x849536=_0x4ceb5d[_0x3aeb35(0x2d4)](),_0x23c2a9=_0x4ceb5d[_0x3aeb35(0x1c8)]();_0x4fa931[_0x56e6f7]&&_0x4fa931[_0x56e6f7]===_0x23c2a9&&_0x849536===_0x23c2a9&&(_0x31a1c4[_0x3aeb35(0x405)](_0x3cec7f,_0x2bdd24[_0x3aeb35(0x1c8)](_0x56e6f7)),_0x4ceb5d[_0x3aeb35(0x476)](_0x2bdd24[_0x3aeb35(0x1c8)](_0x56e6f7)));}),_0x31a1c4[_0x3fe958(0x316)](_0x7008cc[_0x3fe958(0x410)]['Value'],_0x31f115=>{const _0x31f7c7=_0x3fe958,_0x2c7523=_0x31f115[_0x31f7c7(0x463)](),_0x1ab199=_0x31f115[_0x31f7c7(0x28d)](),_0xd0c2c1=_0x31f115[_0x31f7c7(0x2d4)](),_0x49da99=_0x31f115[_0x31f7c7(0x1c8)](),_0x1edd34=_0x31f115[_0x31f7c7(0x1f0)](),_0xbffec9=_0x38e123(_0xd0c2c1,_0x1edd34);_0x4fa931[_0x1ab199]&&_0x4fa931[_0x1ab199]===_0xd0c2c1&&_0xbffec9===_0x49da99&&(_0x31a1c4['renameField'](_0x2c7523,_0x38e123(_0x2bdd24[_0x31f7c7(0x1c8)](_0x1ab199),_0x1edd34)),_0x31f115['setSourceName'](_0x2bdd24[_0x31f7c7(0x1c8)](_0x1ab199)));});},_0x5ed6fc=(_0x18d14b,_0xec07fb,_0x2f683e)=>{const _0x279787=_0x1e02b9;var _0x96b75f,_0x2ae19a;const {arrayFormulaCellData:_0x3c6e77,unitData:_0x3b8424}=_0xec07fb,{unitId:_0x597fb9,subUnitId:_0x17b8d8}=_0x2f683e,_0x382243=_0x2f683e[_0x279787(0x3b1)],{startColumn:_0x141c9f,endColumn:_0x220c21}=_0x382243,_0x1c0a95=(_0x96b75f=_0x3c6e77==null?void 0x0:_0x3c6e77[_0x597fb9])==null?void 0x0:_0x96b75f[_0x17b8d8],_0x17ea46=(_0x2ae19a=_0x3b8424==null?void 0x0:_0x3b8424[_0x597fb9])==null?void 0x0:_0x2ae19a[_0x17b8d8],_0x2839bf=new Set(),_0xd171c5=_0x220c21-_0x141c9f+0x1,{dirtyRanges:_0x3b5afa}=_0x18d14b;if(_0x3b5afa)for(const {range:_0xbcade2,sheetId:_0x428fcb,unitId:_0x2577f7}of _0x3b5afa){if(_0x428fcb!==_0x17b8d8||_0x597fb9!==_0x2577f7)continue;const _0x217a9a=_0x5b61bd[_0x279787(0x28e)]['getIntersects'](_0xbcade2,_0x382243);if(_0x217a9a){const {startColumn:_0x581339,endColumn:_0x4ea006}=_0x217a9a;for(let _0x1b5b1b=_0x581339;_0x1b5b1b<=_0x4ea006;_0x1b5b1b++)_0x2839bf['add'](_0x1b5b1b);}}if(_0x2839bf['size']===_0xd171c5||_0x2839bf[_0x279787(0x434)]===_0xd171c5)return Array[_0x279787(0x2a1)](_0x2839bf);if(_0x17ea46){const _0x52a9c3=_0x17ea46[_0x279787(0x24c)](),_0x50ee75=Object[_0x279787(0x1b6)](_0x52a9c3);for(const _0x2a0757 of _0x50ee75){const _0x189817=Number(_0x2a0757),_0x243ee0=_0x52a9c3[_0x189817];if(_0x2839bf[_0x279787(0x434)]===_0xd171c5)break;for(const _0x3be8cb in _0x243ee0){const _0x2e365e=Number(_0x3be8cb);_0x2e365e<_0x141c9f||_0x2e365e>_0x220c21||_0x2839bf[_0x279787(0x397)](_0x2e365e);}}}if(_0x1c0a95){const _0x2192ad=_0x1c0a95['getMatrix'](),_0x40077d=Object[_0x279787(0x1b6)](_0x2192ad);for(const _0x1015dd of _0x40077d){const _0x1ac4a0=Number(_0x1015dd),_0x2a6e33=_0x2192ad[_0x1ac4a0];if(_0x2839bf[_0x279787(0x434)]===_0xd171c5)break;for(const _0x317840 in _0x2a6e33){const _0x1782b9=Number(_0x317840);_0x1782b9<_0x141c9f||_0x1782b9>_0x220c21||_0x2839bf['add'](_0x1782b9);}}}return Array[_0x279787(0x2a1)](_0x2839bf);},_0x53bb39=_0x183658=>{const _0x415878=_0x1e02b9,_0xc06da9=new Set(),_0x299cf8=[];for(const _0x19bcbb of _0x183658){const _0x5ab113=_0x19bcbb['startRow']+','+_0x19bcbb['endRow']+','+_0x19bcbb[_0x415878(0x22d)]+','+_0x19bcbb[_0x415878(0x394)];_0xc06da9[_0x415878(0x2cd)](_0x5ab113)||(_0xc06da9[_0x415878(0x397)](_0x5ab113),_0x299cf8[_0x415878(0x3c4)](_0x19bcbb));}return _0x299cf8;};let _0x32808e=class extends _0x5b61bd['Disposable']{constructor(_0x22c2c0,_0x5d40f9,_0x3b03dd,_0x3a445a,_0x4c2aae,_0x565dab){const _0x37c3ee=_0x1e02b9;super(),_0xef46e3(this,'_globalSubject',new _0x5928f9['BehaviorSubject'](!0x0)),_0xef46e3(this,'_globalComputedStartHelpFunc',_0x477a5d=>{const _0x323184=_0x316b;this['_globalSubject'][_0x323184(0x236)](!0x1);}),_0xef46e3(this,_0x37c3ee(0x338),_0x242f89=>{const _0x57c770=_0x37c3ee;this[_0x57c770(0x380)]['next'](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x22c2c0,this[_0x37c3ee(0x23c)]=_0x5d40f9,this['_featureCalculationManagerService']=_0x3b03dd,this[_0x37c3ee(0x3f2)]=_0x3a445a,this['_globalComputingSrv']=_0x4c2aae,this[_0x37c3ee(0x2d5)]=_0x565dab,this[_0x37c3ee(0x360)](),this[_0x37c3ee(0x34c)]());}[_0x1e02b9(0x360)](){const _0xa21418=_0x1e02b9;this[_0xa21418(0x226)](),this[_0xa21418(0x371)](),this[_0xa21418(0x366)](),this[_0xa21418(0x3d1)]();}[_0x1e02b9(0x233)](){const _0x26069c=_0x1e02b9;this[_0x26069c(0x1c4)]['pushComputingStatusSubject'](this['_globalSubject']),_0x7008cc[_0x26069c(0x1af)]['registerCallbackWithEvent'](_0x7008cc['PivotCallbackEnum']['onQueryStart'],this[_0x26069c(0x472)]),_0x7008cc[_0x26069c(0x1af)][_0x26069c(0x454)](_0x7008cc[_0x26069c(0x1eb)][_0x26069c(0x2df)],this[_0x26069c(0x338)]);}[_0x1e02b9(0x34c)](){const _0x2daf0b=_0x1e02b9;this[_0x2daf0b(0x268)](this['_commandService'][_0x2daf0b(0x2d6)](_0x2197a3=>{const _0x3b83da=_0x2daf0b;_0x2197a3['id']===_0x2009a4[_0x3b83da(0x362)]['id']&&this[_0x3b83da(0x467)][_0x3b83da(0x495)](_0x2197a3[_0x3b83da(0x2ae)]);})),this[_0x2daf0b(0x268)](this[_0x2daf0b(0x3f2)][_0x2daf0b(0x2d6)](_0x573bc5=>{const _0x35ac2b=_0x2daf0b;if(_0x573bc5['id']!==_0x4fe5d7['id'])return;const _0x8d9de2=_0x573bc5['params'],{unitId:_0x4b411a,subUnitId:_0x64a197,pivotTableId:_0x675e3b}=_0x8d9de2,_0x539ebd=_0x8d9de2[_0x35ac2b(0x2ae)]['type'],_0x48ec13={};switch(_0x539ebd){case _0x4f52d8['Filter']:{const _0x893022=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x478)];if(!_0x893022)return;const {row:_0x44fcc0,col:_0x73efe6,cellData:_0x292752,pivotItemRenderInfoCache:_0x2e6733,tableFieldId:_0x2f08f9}=_0x893022,_0x1efe27=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x8d9de2['pivotTableId']);if(!_0x1efe27||!_0x2e6733)return;if(_0x2f08f9){const _0x963a40=_0x1efe27[_0x35ac2b(0x3c7)](_0x2f08f9);if(!_0x963a40)return;_0x48ec13[_0x35ac2b(0x478)]={..._0x1efe27[_0x35ac2b(0x23b)](_0x963a40),'tableFieldId':_0x2f08f9,'pivotTableId':_0x8d9de2[_0x35ac2b(0x46a)],'filterInfo':_0x1efe27[_0x35ac2b(0x3c9)](_0x2f08f9),'sortInfo':_0x1efe27['getSortInfo'](_0x2f08f9),'format':_0x1efe27['getFieldFormat'](_0x2f08f9)};}else{const _0x2c8b7f=_0x4b4797(_0x44fcc0,_0x73efe6,_0x292752,_0x1efe27,_0x2e6733),_0x3939c8=_0x2c8b7f==null?void 0x0:_0x2c8b7f[_0x35ac2b(0x222)];if(!_0x3939c8)return;const _0x2ea2f6=_0x1efe27[_0x35ac2b(0x3c7)](_0x3939c8);if(!_0x2ea2f6)return;_0x48ec13[_0x35ac2b(0x478)]={..._0x1efe27['getDataFieldItemInfo'](_0x2ea2f6),'tableFieldId':_0x3939c8,'pivotTableId':_0x8d9de2['pivotTableId'],'filterInfo':_0x1efe27[_0x35ac2b(0x3c9)](_0x3939c8),'sortInfo':_0x1efe27[_0x35ac2b(0x1aa)](_0x3939c8),'format':_0x1efe27[_0x35ac2b(0x449)](_0x3939c8)};}}break;case _0x4f52d8[_0x35ac2b(0x447)]:{const _0x5dcc69=_0x8d9de2['params'][_0x35ac2b(0x47f)];if(!_0x5dcc69)return;const {pivotTableId:_0x4fbb97}=_0x5dcc69,_0x38ee74=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x4fbb97);if(!_0x38ee74)return;const _0x5da3ee=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x4fbb97),_0x501f2b=_0x5ced2c(_0x38ee74,_0x4fbb97,_0x5da3ee);_0x48ec13[_0x35ac2b(0x47f)]=_0x501f2b;}break;case _0x4f52d8[_0x35ac2b(0x357)]:{const _0x2f8d37=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x675e3b),_0x2faca3=this['_sheetsPivotDataSourceModel'][_0x35ac2b(0x296)](_0x4b411a),_0x420662=_0x2faca3[_0x35ac2b(0x1a7)](_0x675e3b);let _0x93d879=null;const _0x19bf1d=this[_0x35ac2b(0x467)]['getPivotTableConfig'](_0x4b411a,_0x64a197,_0x675e3b),_0x2b9cd3=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x327)];if(!_0x2f8d37||!_0x19bf1d||!_0x2b9cd3)return!0x1;const {dataFieldId:_0x59cb73,fieldArea:_0x24656b,index:_0x45ad30}=_0x2b9cd3;_0x2f8d37['startCollectChangeset']();const _0x1ab220=_0x2f8d37[_0x35ac2b(0x244)](_0x59cb73,_0x24656b,_0x45ad30);if(_0x1ab220&&_0x24656b===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x48a)]){const _0x17ae36=_0x1ab220['getId'](),_0x3f9ece=_0x2f8d37[_0x35ac2b(0x3c7)](_0x17ae36);if(_0x3f9ece){const _0x236bd0=_0x3f9ece==null?void 0x0:_0x3f9ece[_0x35ac2b(0x305)]();_0x2f8d37['setSubtotalType'](_0x1ab220[_0x35ac2b(0x463)](),_0x236bd0===_0x7008cc[_0x35ac2b(0x1ac)][_0x35ac2b(0x425)]?_0x7008cc[_0x35ac2b(0x2d1)][_0x35ac2b(0x289)]:_0x7008cc[_0x35ac2b(0x2d1)][_0x35ac2b(0x3a1)]);}const _0x1f8069=_0x2f8d37[_0x35ac2b(0x2cb)](),_0x1537a7=_0x2f8d37['getValuePosition'](),_0x295b19=_0x2f8d37[_0x35ac2b(0x278)](_0x7008cc['PivotTableFiledAreaEnum'][_0x35ac2b(0x48a)]);if(_0x1f8069===-0x1&&_0x295b19>0x1){const _0x471e87=_0x1537a7===_0x7008cc[_0x35ac2b(0x1fd)]['None']?_0x7008cc['PivotTableValuePositionEnum'][_0x35ac2b(0x1dc)]:_0x1537a7,_0x5b6be8=_0x471e87===_0x7008cc[_0x35ac2b(0x1fd)][_0x35ac2b(0x354)]?_0x7008cc['PivotTableFiledAreaEnum'][_0x35ac2b(0x354)]:_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x1dc)];_0x2f8d37[_0x35ac2b(0x460)](_0x471e87,_0x2f8d37[_0x35ac2b(0x278)](_0x5b6be8));}}else{if(_0x1ab220&&(_0x24656b===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x354)]||_0x24656b===_0x7008cc[_0x35ac2b(0x410)]['Column'])){const _0x4ef875=_0x1ab220[_0x35ac2b(0x463)](),_0xb65cbc=_0x2f8d37[_0x35ac2b(0x3c7)](_0x4ef875);if(_0xb65cbc&&(_0xb65cbc==null?void 0x0:_0xb65cbc[_0x35ac2b(0x305)]())===_0x7008cc[_0x35ac2b(0x1ac)][_0x35ac2b(0x418)]){const _0x49294a=_0xb65cbc[_0x35ac2b(0x330)]();if(_0x49294a&&_0x2f8d37[_0x35ac2b(0x429)](_0x1ab220[_0x35ac2b(0x463)](),_0x49294a),!_0x420662[_0x35ac2b(0x424)]()[_0x35ac2b(0x322)](_0x14692d=>{const _0x14e9c8=_0x35ac2b,_0x481b54=_0x420662[_0x14e9c8(0x3cb)](_0x14692d);return _0x7008cc['isDateGroupField'](_0x481b54)?_0x481b54[_0x14e9c8(0x340)]()[_0x14e9c8(0x3e8)]===_0x59cb73:!0x1;})){const _0x767771=_0x2faca3['createDataFieldId'](),_0x46b221=_0x1a6e57(_0xb65cbc[_0x35ac2b(0x443)],_0xb65cbc[_0x35ac2b(0x483)]),_0x25d9e1=_0xb65cbc[_0x35ac2b(0x240)]()+_0x35ac2b(0x3a6)+_0x3bf797(this[_0x35ac2b(0x2d5)],_0x46b221),_0x5344ac=new _0x7008cc['DateGroupField'](_0x767771,_0x25d9e1,_0x7008cc[_0x35ac2b(0x1f4)](0x3),_0xb65cbc[_0x35ac2b(0x463)](),_0x46b221);_0x2faca3[_0x35ac2b(0x30a)](_0x5344ac),_0x420662[_0x35ac2b(0x435)](_0x767771,_0x25d9e1),_0x2f8d37[_0x35ac2b(0x244)](_0x767771,_0x24656b,(_0x45ad30!=null?_0x45ad30:0x0)+0x1),_0x93d879=_0x5344ac;}}}}const _0x375f78=_0x2f8d37[_0x35ac2b(0x2a9)](),_0x1cf498=_0x2f8d37[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)]();let _0x27ff39;if(_0x93d879){_0x27ff39=_0x93d879[_0x35ac2b(0x3d6)]();const _0x15701c=_0x93d879[_0x35ac2b(0x463)]();_0x420662[_0x35ac2b(0x32f)](_0x15701c);let _0x12a7c6=!0x0;for(const _0x22730c in _0x2faca3[_0x35ac2b(0x3e4)])if(_0x2faca3['collections'][_0x22730c][_0x35ac2b(0x424)]()[_0x35ac2b(0x343)](_0x15701c)){_0x12a7c6=!0x1;break;}_0x12a7c6&&_0x2faca3[_0x35ac2b(0x1d1)](_0x15701c);}const _0x3b60b3=_0x2f8d37[_0x35ac2b(0x3d3)]();_0x48ec13[_0x35ac2b(0x327)]={'view':_0x1cf498,'changesets':_0x3b60b3,'isEmpty':_0x375f78,'pivotTableConfig':_0x19bf1d,'shouldBeAddedGroupJSON':_0x27ff39};}break;case _0x4f52d8[_0x35ac2b(0x202)]:{const _0x4bd50e=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x2ef)];if(!_0x4bd50e)return;const _0x30db37=_0x4bd50e['sourceRangeInfo'],_0x4a608b=_0x4bd50e[_0x35ac2b(0x46a)],{collection:_0x455a9a}=this['_sheetsPivotDataSourceModel'][_0x35ac2b(0x210)]({'unitId':_0x30db37[_0x35ac2b(0x344)],'sheetName':_0x30db37[_0x35ac2b(0x315)],'subUnitId':_0x30db37[_0x35ac2b(0x213)],'range':_0x30db37[_0x35ac2b(0x3b1)]}),_0x2678ab=new _0x7008cc['PivotTable'](_0x455a9a,void 0x0,_0x4a608b),_0x444733=_0x2678ab[_0x35ac2b(0x376)](),_0x57aa71=_0x2678ab[_0x35ac2b(0x3d6)](),_0x11bf19=_0x455a9a[_0x35ac2b(0x3d6)]();_0x48ec13[_0x35ac2b(0x2ef)]={'view':_0x444733,'fieldsConfig':_0x57aa71,'collectionConfig':_0x11bf19,'isEmpty':_0x2678ab[_0x35ac2b(0x2a9)]()};}break;case _0x4f52d8['MovePivotField']:{const _0x138e14=_0x8d9de2['params']['movePivotField'];if(!_0x138e14)return;const {fieldId:_0x5ea9a1,area:_0x49800d,index:_0x1bcc5f}=_0x138e14,_0x287912=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x287912)return;const _0x4d4eab=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x675e3b);if(!_0x4d4eab)return;_0x4d4eab[_0x35ac2b(0x38f)]();const {area:_0x364d85,index:_0x50a650}=_0x4d4eab[_0x35ac2b(0x2c1)](_0x5ea9a1);if(_0x4d4eab[_0x35ac2b(0x367)](_0x5ea9a1,_0x49800d,_0x1bcc5f),_0x49800d===_0x7008cc['PivotTableFiledAreaEnum'][_0x35ac2b(0x48a)]&&_0x4d4eab['getTableFieldById'](_0x5ea9a1)['getSubtotal']()===void 0x0){const _0x1c78b9=_0x4d4eab['getTableFieldById'](_0x5ea9a1);if(_0x1c78b9&&_0x1c78b9[_0x35ac2b(0x1f0)]()===void 0x0){const _0x3d4601=_0x4d4eab[_0x35ac2b(0x3c7)](_0x5ea9a1);if(_0x3d4601){const _0x10b98d=_0x3d4601==null?void 0x0:_0x3d4601[_0x35ac2b(0x305)]();_0x4d4eab[_0x35ac2b(0x2e2)](_0x5ea9a1,_0x10b98d===_0x7008cc[_0x35ac2b(0x1ac)]['number']?_0x7008cc[_0x35ac2b(0x2d1)][_0x35ac2b(0x289)]:_0x7008cc['PivotSubtotalTypeEnum'][_0x35ac2b(0x3a1)]);}}}const _0x5b206f=_0x4d4eab[_0x35ac2b(0x355)](),_0x21e669=_0x4d4eab[_0x35ac2b(0x2cb)](),_0x295acd=_0x4d4eab[_0x35ac2b(0x278)](_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x48a)])>0x1;if(_0x295acd&&_0x364d85===_0x49800d&&(_0x49800d===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x354)]&&_0x5b206f===_0x7008cc[_0x35ac2b(0x1fd)][_0x35ac2b(0x354)]||_0x49800d===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x1dc)]&&_0x5b206f===_0x7008cc[_0x35ac2b(0x1fd)][_0x35ac2b(0x1dc)])){let _0x5afa7a=_0x21e669;_0x50a650<=_0x21e669&&_0x5afa7a--,_0x1bcc5f<=_0x21e669&&_0x5afa7a++,_0x4d4eab['updateValuePosition'](_0x5b206f,_0x5afa7a);}else _0x295acd&&(_0x364d85===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x354)]&&_0x5b206f===_0x7008cc[_0x35ac2b(0x1fd)]['Row']||_0x364d85===_0x7008cc['PivotTableFiledAreaEnum'][_0x35ac2b(0x1dc)]&&_0x5b206f===_0x7008cc[_0x35ac2b(0x1fd)][_0x35ac2b(0x1dc)])&&_0x21e669>=_0x50a650&&_0x4d4eab['updateValuePosition'](_0x5b206f,_0x21e669-0x1),_0x295acd&&(_0x49800d===_0x7008cc[_0x35ac2b(0x410)]['Row']&&_0x5b206f===_0x7008cc[_0x35ac2b(0x1fd)][_0x35ac2b(0x354)]||_0x49800d===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x1dc)]&&_0x5b206f===_0x7008cc['PivotTableValuePositionEnum'][_0x35ac2b(0x1dc)])&&_0x21e669>=_0x1bcc5f&&_0x4d4eab[_0x35ac2b(0x460)](_0x5b206f,_0x21e669+0x1);const _0x460db0=_0x4d4eab[_0x35ac2b(0x376)](),_0x1b5981=_0x4d4eab['isEmpty'](),_0x1306d2=_0x4d4eab['endCollectChangeset']();_0x48ec13[_0x35ac2b(0x2fb)]={'view':_0x460db0[_0x35ac2b(0x3d6)](),'changesets':_0x1306d2,'isEmpty':_0x1b5981,'pivotTableConfig':_0x287912};}break;case _0x4f52d8['RemovePivotField']:{const _0x30e38b=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x3b2)];if(!_0x30e38b)return;const _0x2e212f=_0x30e38b['fieldIds'],_0x3829b9=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x3829b9)return!0x1;const _0x5ce5b8=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x675e3b);if(!_0x5ce5b8)return!0x1;_0x5ce5b8[_0x35ac2b(0x38f)]();for(const _0x1ed5bb of _0x2e212f){const {area:_0x27d790}=_0x5ce5b8[_0x35ac2b(0x2c1)](_0x1ed5bb);_0x27d790===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x48a)]&&_0x5ce5b8[_0x35ac2b(0x438)](_0x1ed5bb),(_0x27d790===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x354)]||_0x27d790===_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x1dc)])&&_0x5ce5b8[_0x35ac2b(0x458)](_0x1ed5bb),_0x5ce5b8['removeField'](_0x1ed5bb);}const _0x317596=_0x5ce5b8['isEmpty'](),_0x418155=_0x5ce5b8[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0x2aaba9=_0x5ce5b8[_0x35ac2b(0x3d3)]();_0x48ec13['removePivotField']={'changesets':_0x2aaba9,'pivotTableConfig':_0x3829b9,'isEmpty':_0x317596,'view':_0x418155};}break;case _0x4f52d8[_0x35ac2b(0x419)]:{const _0x2e76cf=_0x8d9de2['params'][_0x35ac2b(0x1fe)];if(!_0x2e76cf)return;const {tableFieldId:_0x3443de,items:_0x337a56,isAll:_0x31f3ad}=_0x2e76cf,_0x1cf9e3=this[_0x35ac2b(0x467)]['getPivotTableInstance'](_0x675e3b),_0xbd5435=this[_0x35ac2b(0x467)]['getPivotTableConfig'](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x1cf9e3||!_0xbd5435)return;_0x1cf9e3[_0x35ac2b(0x38f)](),_0x1cf9e3['setLabelFilterInfo'](_0x3443de,{'type':_0x7008cc['PivotFilterTypeEnum'][_0x35ac2b(0x208)],'list':_0x337a56,'isAll':_0x31f3ad});const _0x5099db=_0x1cf9e3[_0x35ac2b(0x2a9)](),_0x8a943a=_0x1cf9e3[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0x5a6f6d=_0x1cf9e3['endCollectChangeset']();_0x48ec13['setPivotFilter']={'view':_0x8a943a,'changesets':_0x5a6f6d,'isEmpty':_0x5099db,'pivotTableConfig':_0xbd5435};}break;case _0x4f52d8['SetValuePivotFilter']:{const _0x283308=_0x8d9de2['params'][_0x35ac2b(0x314)];if(!_0x283308)return;const {tableFieldId:_0x232e09,filterInfo:_0x16fe23}=_0x283308,_0x2607d1=this['_sheetsPivotDataSourceModel'][_0x35ac2b(0x2c5)](_0x675e3b),_0x18c81a=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x2607d1||!_0x18c81a)return;_0x2607d1[_0x35ac2b(0x38f)](),_0x2607d1['setValueFilterInfo'](_0x232e09,_0x16fe23);const _0x5253ad=_0x2607d1[_0x35ac2b(0x2a9)](),_0x77aac3=_0x2607d1[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0x228357=_0x2607d1[_0x35ac2b(0x3d3)]();_0x48ec13['setValuePivotFilter']={'view':_0x77aac3,'changesets':_0x228357,'isEmpty':_0x5253ad,'pivotTableConfig':_0x18c81a};}break;case _0x4f52d8[_0x35ac2b(0x3af)]:{const _0x1c90d8=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x2b3)];if(!_0x1c90d8)return;const {tableFieldId:_0x1216ff,info:_0x3cfb52}=_0x1c90d8,_0x3b0434=this[_0x35ac2b(0x467)]['getPivotTableInstance'](_0x675e3b),_0x211383=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x3b0434||!_0x211383)return;_0x3b0434[_0x35ac2b(0x38f)](),_0x3b0434[_0x35ac2b(0x390)](_0x1216ff,_0x3cfb52);const _0x157f7f=_0x3b0434['isEmpty'](),_0x1b8495=_0x3b0434['query']()[_0x35ac2b(0x3d6)](),_0x4b415d=_0x3b0434[_0x35ac2b(0x3d3)]();_0x48ec13[_0x35ac2b(0x2b3)]={'view':_0x1b8495,'changesets':_0x4b415d,'isEmpty':_0x157f7f,'pivotTableConfig':_0x211383};}break;case _0x4f52d8[_0x35ac2b(0x2e8)]:{const _0x1c1140=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x1ff)];if(!_0x1c1140)return;const {tableFieldId:_0x15b469,displayName:_0x42c7eb,subtotalType:_0xf4142,format:_0x46869f}=_0x1c1140,_0x3d074d=this[_0x35ac2b(0x467)]['getPivotTableInstance'](_0x675e3b),_0x1e8f42=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x3d074d||!_0x1e8f42)return;_0x3d074d[_0x35ac2b(0x38f)](),_0x42c7eb!==void 0x0&&_0x3d074d[_0x35ac2b(0x405)](_0x15b469,_0x42c7eb),_0xf4142!==void 0x0&&_0x3d074d[_0x35ac2b(0x2e2)](_0x15b469,_0xf4142),_0x46869f!==void 0x0&&_0x3d074d[_0x35ac2b(0x429)](_0x15b469,_0x46869f);const _0xe283a3=_0x3d074d[_0x35ac2b(0x2a9)](),_0x1f9b07=_0x3d074d[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0x277d5e=_0x3d074d[_0x35ac2b(0x3d3)]();_0x48ec13['setPivotSetting']={'changesets':_0x277d5e,'pivotTableConfig':_0x1e8f42,'isEmpty':_0xe283a3,'view':_0x1f9b07};}break;case _0x4f52d8[_0x35ac2b(0x49c)]:{const _0x408fae=_0x8d9de2['params'][_0x35ac2b(0x1da)];if(!_0x408fae)return;const {dataRangeInfo:_0x87d2f7,unitId:_0x538314,subUnitId:_0x5b5e03}=_0x408fae,_0x57340b=this[_0x35ac2b(0x467)]['getPivotTableConfig'](_0x538314,_0x5b5e03,_0x675e3b),_0x3871d7=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x675e3b);if(!this[_0x35ac2b(0x467)][_0x35ac2b(0x1a7)](_0x538314,_0x675e3b)||!_0x3871d7||!_0x57340b)return;const _0x136b4e=this[_0x35ac2b(0x467)][_0x35ac2b(0x2d9)](_0x538314,_0x675e3b,_0x87d2f7),_0x5981c7=this[_0x35ac2b(0x467)]['getCollection'](_0x538314,_0x675e3b)[_0x35ac2b(0x3d6)](),{collection:_0x45f184}=this['_sheetsPivotDataSourceModel'][_0x35ac2b(0x210)]({'unitId':_0x87d2f7[_0x35ac2b(0x344)],'sheetName':_0x87d2f7[_0x35ac2b(0x315)],'subUnitId':_0x87d2f7[_0x35ac2b(0x213)],'range':_0x87d2f7[_0x35ac2b(0x3b1)]}),_0x122e88=_0x45f184[_0x35ac2b(0x3d6)]();_0x3871d7[_0x35ac2b(0x38f)]();const _0x170fee=this[_0x35ac2b(0x467)][_0x35ac2b(0x296)](_0x538314)[_0x35ac2b(0x38d)]()||_0x7008cc['getAutoDisplayName'];_0x3871d7[_0x35ac2b(0x3ce)](_0x5b3bce=>{const _0x33e86e=_0x35ac2b,_0x4a9f1a=_0x5b3bce[_0x33e86e(0x28d)]();if(!_0x45f184[_0x33e86e(0x1c5)](_0x4a9f1a)){const _0x2d74f5=_0x45f184['getDataFieldBySourceName'](_0x5b3bce[_0x33e86e(0x2d4)]());if(_0x2d74f5){_0x3871d7[_0x33e86e(0x358)](_0x5b3bce['getId'](),_0x2d74f5['getName'](),_0x2d74f5[_0x33e86e(0x463)]());const {area:_0x2a1e93}=_0x3871d7[_0x33e86e(0x2c1)](_0x5b3bce[_0x33e86e(0x463)]());let _0x502ca1=_0x5b3bce[_0x33e86e(0x2d4)]();const _0x5d9277=_0x5b3bce[_0x33e86e(0x1c8)]();if(_0x2a1e93===_0x7008cc['PivotTableFiledAreaEnum'][_0x33e86e(0x48a)]){const _0x2df887=_0x5b3bce['getSubtotal']();_0x502ca1=_0x170fee(_0x2d74f5['getName'](),_0x2df887);}_0x5d9277!==_0x502ca1&&_0x3871d7[_0x33e86e(0x405)](_0x5b3bce[_0x33e86e(0x463)](),_0x502ca1);}else _0x3871d7[_0x33e86e(0x346)](_0x5b3bce['getId']());}});const _0x5700f5=_0x3871d7[_0x35ac2b(0x2a9)](),_0x498634=_0x3871d7[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0xc58a23=_0x3871d7[_0x35ac2b(0x3d3)]();_0x48ec13['updatePivotSource']={'view':_0x498634,'changesets':_0xc58a23,'isEmpty':_0x5700f5,'pivotTableConfig':_0x57340b,'collectionConfig':_0x122e88,'oldCollectionConfig':_0x5981c7,'deleteIds':_0x136b4e};}break;case _0x4f52d8[_0x35ac2b(0x1ee)]:{const _0x376140=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x460)];if(!_0x376140)return;const {position:_0x3728eb,index:_0x2fe47a}=_0x376140,_0x5cbb3f=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x5cbb3f)return!0x1;const _0x38d40c=this['_sheetsPivotDataSourceModel'][_0x35ac2b(0x2c5)](_0x675e3b);if(!_0x38d40c)return!0x1;_0x38d40c[_0x35ac2b(0x38f)](),_0x38d40c[_0x35ac2b(0x460)](_0x3728eb,_0x2fe47a);const _0x384b27=_0x38d40c['isEmpty'](),_0x11959e=_0x38d40c[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0x59fb78=_0x38d40c['endCollectChangeset']();_0x48ec13[_0x35ac2b(0x460)]={'changesets':_0x59fb78,'pivotTableConfig':_0x5cbb3f,'isEmpty':_0x384b27,'view':_0x11959e};}break;case _0x4f52d8[_0x35ac2b(0x437)]:{const _0x5b3ead=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x356)];if(!_0x5b3ead)return;const {tableFieldId:_0x570f80,collapse:_0x409f62,item:_0xea5cd0}=_0x5b3ead,_0x4f6d4d=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x675e3b),_0x4eb7fd=this[_0x35ac2b(0x467)]['getPivotTableConfig'](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x4f6d4d||!_0x4eb7fd)return;_0x4f6d4d[_0x35ac2b(0x38f)](),_0x4f6d4d[_0x35ac2b(0x2bc)](_0x570f80,_0x409f62,_0xea5cd0);const _0x258873=_0x4f6d4d[_0x35ac2b(0x2a9)](),_0x5217f1=_0x4f6d4d['query']()[_0x35ac2b(0x3d6)](),_0x566e71=_0x4f6d4d[_0x35ac2b(0x3d3)]();_0x48ec13[_0x35ac2b(0x356)]={'view':_0x5217f1,'isEmpty':_0x258873,'pivotTableConfig':_0x4eb7fd,'changesets':_0x566e71};}break;case _0x4f52d8[_0x35ac2b(0x2ed)]:{const _0x41a4f8=_0x8d9de2['params'][_0x35ac2b(0x2e9)];if(!_0x41a4f8)return;const {pivotTableConfig:_0x22f0d4}=_0x41a4f8,_0x1b501c=this[_0x35ac2b(0x467)]['getPivotTableInstance'](_0x675e3b),_0x74fe38=this[_0x35ac2b(0x467)][_0x35ac2b(0x22f)](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x1b501c||!_0x74fe38)return;_0x1b501c['startCollectChangeset'](),_0x2a0725(_0x1b501c,_0x22f0d4);const _0x37d69e=_0x1b501c[_0x35ac2b(0x2a9)](),_0x4d1573=_0x1b501c['query']()[_0x35ac2b(0x3d6)](),_0x53a4e0=_0x1b501c[_0x35ac2b(0x3d3)]();_0x48ec13[_0x35ac2b(0x2e9)]={'view':_0x4d1573,'isEmpty':_0x37d69e,'pivotTableConfig':{..._0x74fe38,'fieldsConfig':_0x1b501c[_0x35ac2b(0x3d6)]()},'changesets':_0x53a4e0};}break;case _0x4f52d8[_0x35ac2b(0x42b)]:{const _0x1e92be=_0x8d9de2[_0x35ac2b(0x2ae)][_0x35ac2b(0x256)];if(!_0x1e92be)return;const _0x318acc=this[_0x35ac2b(0x467)][_0x35ac2b(0x2c5)](_0x675e3b),_0x32628f=this[_0x35ac2b(0x467)]['getPivotTableConfig'](_0x4b411a,_0x64a197,_0x675e3b);if(!_0x318acc||!_0x32628f)return;_0x318acc[_0x35ac2b(0x38f)](),_0x28779b(_0x318acc,_0x1e92be['resetArea']);const _0x30ab56=_0x318acc[_0x35ac2b(0x376)]()[_0x35ac2b(0x3d6)](),_0x5b17ff=_0x318acc[_0x35ac2b(0x3d3)]();_0x48ec13[_0x35ac2b(0x256)]={'view':_0x30ab56,'isEmpty':!0x0,'pivotTableConfig':{..._0x32628f,'fieldsConfig':_0x318acc[_0x35ac2b(0x3d6)]()},'changesets':_0x5b17ff};}break;case _0x4f52d8[_0x35ac2b(0x30b)]:{const _0x44c2cf=_0x8d9de2[_0x35ac2b(0x2ae)]['addPivotTableWithConfig'];if(!_0x44c2cf)return;const _0x8aa440=_0x44c2cf[_0x35ac2b(0x359)],_0x50575e=_0x44c2cf['pivotTableId'],{collection:_0x3bb267}=this[_0x35ac2b(0x467)][_0x35ac2b(0x210)]({'unitId':_0x8aa440[_0x35ac2b(0x344)],'sheetName':_0x8aa440['sheetName'],'subUnitId':_0x8aa440['subUnitId'],'range':_0x8aa440['range']}),_0x4f867d=new _0x7008cc[(_0x35ac2b(0x1af))](_0x3bb267,void 0x0,_0x50575e),_0x2c703e=_0x3bb267[_0x35ac2b(0x424)](),{rows:_0x44cc58,columns:_0x170e90,filters:_0x3648b6,values:_0x3a65d0}=_0x44c2cf['pivotTableIndexConfig'];_0x4f867d[_0x35ac2b(0x38f)]();for(const {field:_0x48831f,selectedItems:_0x2c4fe0}of _0x44cc58||[]){const _0x38c7ee=_0x2c703e[_0x48831f];if(_0x38c7ee){const _0x22cbaa=_0x4f867d['addFieldWithSourceId'](_0x38c7ee,_0x7008cc['PivotTableFiledAreaEnum'][_0x35ac2b(0x354)]);_0x2c4fe0&&_0x22cbaa&&_0x4f867d[_0x35ac2b(0x3bc)](_0x22cbaa[_0x35ac2b(0x463)](),{'type':_0x7008cc[_0x35ac2b(0x45d)][_0x35ac2b(0x208)],'list':_0x2c4fe0,'isAll':!0x1});}}for(const {field:_0x360527,selectedItems:_0xafcc2b}of _0x170e90||[]){const _0x6fd5d6=_0x2c703e[_0x360527];if(_0x6fd5d6){const _0x4088f5=_0x4f867d[_0x35ac2b(0x244)](_0x6fd5d6,_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x1dc)]);_0xafcc2b&&_0x4088f5&&_0x4f867d[_0x35ac2b(0x3bc)](_0x4088f5[_0x35ac2b(0x463)](),{'type':_0x7008cc[_0x35ac2b(0x45d)][_0x35ac2b(0x208)],'list':_0xafcc2b,'isAll':!0x1});}}for(const {field:_0x4ef86d,selectedItems:_0x5522db}of _0x3648b6||[]){const _0x33f982=_0x2c703e[_0x4ef86d];if(_0x33f982){const _0x32ed19=_0x4f867d['addFieldWithSourceId'](_0x33f982,_0x7008cc[_0x35ac2b(0x410)][_0x35ac2b(0x44c)]);_0x5522db&&_0x32ed19&&_0x4f867d[_0x35ac2b(0x3bc)](_0x32ed19[_0x35ac2b(0x463)](),{'type':_0x7008cc[_0x35ac2b(0x45d)][_0x35ac2b(0x208)],'list':_0x5522db,'isAll':!0x1});}}for(const {field:_0x4a3c08,subTotalType:_0x40f0e4,formatString:_0x579346}of _0x3a65d0||[]){const _0xecd1b9=_0x3bb267['getFieldById'](_0x2c703e[_0x4a3c08]);if(!_0xecd1b9)continue;const _0x1fdeaa=_0x2c703e[_0x4a3c08];if(_0x1fdeaa){const _0x166230=_0x4f867d['addFieldWithSourceId'](_0x1fdeaa,_0x7008cc[_0x35ac2b(0x410)]['Value']);if(_0x166230){if(_0x40f0e4!==void 0x0){_0x4f867d[_0x35ac2b(0x2e2)](_0x166230['getId'](),_0x40f0e4);const _0x5a5c01=this[_0x35ac2b(0x467)][_0x35ac2b(0x296)](_0x8aa440[_0x35ac2b(0x344)])[_0x35ac2b(0x38d)]()||_0x7008cc[_0x35ac2b(0x241)],_0x5155dc=_0x3bb267[_0x35ac2b(0x1c8)](_0x1fdeaa),_0x21136b=_0x5a5c01(_0x5155dc,_0x40f0e4);_0x4f867d[_0x35ac2b(0x405)](_0x166230[_0x35ac2b(0x463)](),_0x21136b);}else{if(_0xecd1b9){const _0x438ccb=_0xecd1b9==null?void 0x0:_0xecd1b9['getFieldDataType']();_0x4f867d[_0x35ac2b(0x2e2)](_0x166230[_0x35ac2b(0x463)](),_0x438ccb===_0x7008cc[_0x35ac2b(0x1ac)][_0x35ac2b(0x425)]?_0x7008cc[_0x35ac2b(0x2d1)][_0x35ac2b(0x289)]:_0x7008cc[_0x35ac2b(0x2d1)][_0x35ac2b(0x3a1)]);}}_0x579346&&_0x4f867d[_0x35ac2b(0x429)](_0x166230[_0x35ac2b(0x463)](),_0x579346);}}}const _0x3791ed=_0x4f867d[_0x35ac2b(0x376)](),_0x1ba148=_0x4f867d['toJSON'](),_0x2d2d6c=_0x4f867d[_0x35ac2b(0x2a9)](),_0x53dbca=_0x4f867d[_0x35ac2b(0x3d3)](),_0x3f726f=_0x3bb267[_0x35ac2b(0x3d6)]();_0x48ec13['addPivotTableWithConfig']={'view':_0x3791ed,'fieldsConfig':_0x1ba148,'collectionConfig':_0x3f726f,'isEmpty':_0x2d2d6c,'changesets':_0x53dbca};}break;case _0x4f52d8[_0x35ac2b(0x2b8)]:{const _0x232d84=_0x1fbad5(this[_0x35ac2b(0x2d5)],_0x8d9de2);if(!_0x232d84)return;const {range:_0xf9af4b,sourceSubUnitId:_0xf8bf90,sourceUnitId:_0x94ca78,formatMap:_0x29224b,indexes:_0x119a26}=_0x232d84;_0x48ec13['drillDown']={'range':_0xf9af4b,'sourceSubUnitId':_0xf8bf90,'sourceUnitId':_0x94ca78,'formatMap':_0x29224b,'indexes':_0x119a26};}break;}this['_commandService']['executeCommand'](_0x557855['id'],{'version':_0x8d9de2[_0x35ac2b(0x3e6)],'result':_0x48ec13},{'onlyLocal':!0x0});}));}[_0x1e02b9(0x366)](){const _0x5446ae=_0x1e02b9;this[_0x5446ae(0x268)](this[_0x5446ae(0x3f2)][_0x5446ae(0x2d6)](_0xe8b9bd=>{const _0x37390a=_0x5446ae;if(_0xe8b9bd['id']!==_0xb20377['id'])return;const _0x38e0f4=_0xe8b9bd['params'];return this[_0x37390a(0x467)][_0x37390a(0x285)](_0x38e0f4[_0x37390a(0x436)]),!0x0;}));}[_0x1e02b9(0x226)](){const _0x5550c4=_0x1e02b9;this[_0x5550c4(0x467)][_0x5550c4(0x274)][_0x5550c4(0x3c6)](_0x2976ce=>{const _0x18f8d8=_0x5550c4;switch(_0x2976ce['type']){case _0x25f8c4[_0x18f8d8(0x397)]:_0x2976ce['dataRangeInfo']&&_0x2976ce[_0x18f8d8(0x3ed)]&&this['handleSourceRangeChange'](_0x2976ce[_0x18f8d8(0x291)],_0x2976ce[_0x18f8d8(0x317)],_0x2976ce[_0x18f8d8(0x3ed)]);break;case _0x25f8c4[_0x18f8d8(0x301)]:{const {unitId:_0x5c10f0,subUnitId:_0x5ea102,token:_0x50b495}=_0x2976ce;_0x5c10f0&&_0x5ea102&&_0x50b495&&this[_0x18f8d8(0x407)](_0x5c10f0,_0x5ea102,_0x50b495);}break;case _0x25f8c4[_0x18f8d8(0x29b)]:{const {token:_0x191889,oldSourceRangeInfo:_0x22f633,dataRangeInfo:_0xc3763c,targetCellInfo:_0x599fde}=_0x2976ce,{unitId:_0x449c08,subUnitId:_0x204a81}=_0x22f633||{};_0x449c08&&_0x204a81&&_0x191889&&this[_0x18f8d8(0x407)](_0x449c08,_0x204a81,_0x191889),_0xc3763c&&_0x599fde&&this[_0x18f8d8(0x42e)](_0x191889,_0xc3763c,_0x599fde);}break;}});}['_subjectFieldsCollectionChange'](){const _0x1e727b=_0x1e02b9;this[_0x1e727b(0x467)]['fieldsCollectionChange$']['subscribe'](_0x8716f7=>{const _0xcfa003=_0x1e727b;Object[_0xcfa003(0x1b6)](_0x8716f7)['forEach'](_0x33cb43=>{const _0x5e8a34=_0xcfa003,_0x292561=this[_0x5e8a34(0x467)]['getTargetByPivotId'](_0x33cb43);if(_0x292561){const _0x44aba5=this['_sheetsPivotDataSourceModel'][_0x5e8a34(0x22f)](_0x292561==null?void 0x0:_0x292561[_0x5e8a34(0x344)],_0x292561==null?void 0x0:_0x292561[_0x5e8a34(0x213)],_0x33cb43);_0x44aba5&&(this[_0x5e8a34(0x42e)](_0x33cb43,_0x44aba5[_0x5e8a34(0x359)],_0x44aba5[_0x5e8a34(0x3ed)]),this[_0x5e8a34(0x34a)]([{'unitId':_0x292561[_0x5e8a34(0x344)],'subUnitId':_0x292561['subUnitId'],'token':_0x33cb43}]));}});});}[_0x1e02b9(0x371)](){const _0x2c4817=_0x1e02b9;this[_0x2c4817(0x467)][_0x2c4817(0x200)][_0x2c4817(0x3c6)](_0x2fd860=>{const {unitId:_0x8282e4,subUnitId:_0x1f5fab,pivotTableId:_0x31d302}=_0x2fd860;_0x8282e4&&_0x1f5fab&&_0x31d302&&this['triggerDirtyFeature']([{'unitId':_0x8282e4,'subUnitId':_0x1f5fab,'token':_0x31d302}]);});}['triggerDirtyFeature'](_0x3cc1e4){const _0x3d03e4=_0x1e02b9,_0x24db19={};_0x3cc1e4['forEach'](_0x284295=>{var _0x396347,_0x37a28d;const {unitId:_0x381361,subUnitId:_0x24ae44,token:_0x471f3a}=_0x284295;_0x24db19[_0x381361]=(_0x396347=_0x24db19[_0x381361])!=null?_0x396347:{},_0x24db19[_0x381361][_0x24ae44]=(_0x37a28d=_0x24db19[_0x381361][_0x24ae44])!=null?_0x37a28d:{},_0x24db19[_0x381361][_0x24ae44][_0x471f3a]=!0x0;}),this[_0x3d03e4(0x3f2)][_0x3d03e4(0x2eb)](_0x45ce1b['id'],_0x24db19);}[_0x1e02b9(0x407)](_0x287edb,_0x458713,_0x93ac0f){this['_featureCalculationManagerService']['remove'](_0x287edb,_0x458713,[_0x93ac0f]);}['handleSourceRangeChange'](_0x3915bb,_0x20795b,_0x15292e){const _0x3717de=_0x1e02b9,{unitId:_0x14c68b,subUnitId:_0x28c768}=_0x20795b;this['_featureCalculationManagerService'][_0x3717de(0x2cd)](_0x15292e[_0x3717de(0x344)],_0x15292e[_0x3717de(0x213)],_0x3915bb)&&this[_0x3717de(0x407)](_0x14c68b,_0x28c768,_0x3915bb);const _0x3b979a={'sheetId':_0x28c768,..._0x20795b};this[_0x3717de(0x38c)][_0x3717de(0x3e2)](_0x15292e[_0x3717de(0x344)],_0x15292e[_0x3717de(0x213)],_0x3915bb,{'unitId':_0x15292e[_0x3717de(0x344)],'subUnitId':_0x15292e['subUnitId'],'dependencyRanges':[_0x3b979a],'getDirtyData':(_0x4d3733,_0x4f6dff)=>{const _0x2d86b9=_0x3717de,_0x47ae80=this['_sheetsPivotDataSourceModel'],_0x47325a=_0x47ae80['getTargetByPivotId'](_0x3915bb);if(!_0x47325a)return _0x568e84();const {unitId:_0x503395,subUnitId:_0xbc39ac}=_0x47325a,_0x3d764e=_0x5ed6fc(_0x4d3733,_0x4f6dff,_0x20795b);if(_0x3d764e['length']>0x0){const _0x2c848c=_0x47ae80['getCollection'](_0x14c68b,_0x3915bb),_0x4ba1e7=_0x2c848c[_0x2d86b9(0x424)](),_0x396dac=this[_0x2d86b9(0x332)](_0x20795b['unitId'],_0x20795b['subUnitId'],_0x4f6dff),_0x29fd64={},_0x341eea=this[_0x2d86b9(0x467)]['getDataFieldManager'](_0x503395)['getAutoDisplayNameFunction']()||_0x7008cc[_0x2d86b9(0x241)],_0x5c2c65=[];for(const _0xf9623d of _0x3d764e){const _0x3079da=_0xf9623d-(_0x20795b[_0x2d86b9(0x3b1)][_0x2d86b9(0x22d)]||0x0),_0x69f0d0=_0x4ba1e7[_0x3079da];_0x5c2c65['push'](_0x69f0d0),_0x29fd64[_0x69f0d0]=_0x2c848c['getFieldById'](_0x69f0d0)[_0x2d86b9(0x240)](),_0x47ae80['getDataFieldManager'](_0x14c68b)[_0x2d86b9(0x2de)](_0x69f0d0,_0x20795b,_0x3079da,_0x396dac);}_0x2c848c[_0x2d86b9(0x3d7)](_0x5c2c65)[_0x2d86b9(0x259)](_0x3e9792=>{const _0x27dc8b=_0x2d86b9,[_0x47adb6,_0x37c487]=_0x3e9792,_0x1780e4=_0x2c848c['getFieldById'](_0x47adb6),_0x7f205=_0x2c848c[_0x27dc8b(0x3cb)](_0x37c487);_0x1780e4&&_0x7f205&&_0x1780e4['refreshGroupField'](_0x7f205);}),_0x2c848c[_0x2d86b9(0x48c)]();const _0x174ace=_0x47ae80[_0x2d86b9(0x2c5)](_0x3915bb);if(_0x174ace){_0x5b4628(_0x174ace,_0x29fd64,_0x341eea),_0x174ace[_0x2d86b9(0x234)](!0x0);const _0x3dc7c0=_0x174ace[_0x2d86b9(0x376)](),_0x581eb0=_0x47ae80[_0x2d86b9(0x22f)](_0x503395,_0xbc39ac,_0x3915bb),_0x27d5a9=_0x47ae80[_0x2d86b9(0x296)](_0x14c68b)[_0x2d86b9(0x3d6)]();_0x47ae80[_0x2d86b9(0x216)](_0x503395,_0xbc39ac,_0x407136[_0x2d86b9(0x2ac)],_0x3915bb,_0x3dc7c0,_0x581eb0,_0x27d5a9,!0x0);}}return this['getDirtyInfo'](_0x503395,_0xbc39ac,_0x3915bb);}});}['getMatrixFromRunTimeData'](_0x2eca38,_0x1c8903,_0x3752e9){var _0x4106e7,_0x324b2;const {arrayFormulaCellData:_0x29ba17,unitData:_0x3047a0}=_0x3752e9,_0x512434=(_0x4106e7=_0x29ba17==null?void 0x0:_0x29ba17[_0x2eca38])==null?void 0x0:_0x4106e7[_0x1c8903],_0x5e3f2f=(_0x324b2=_0x3047a0==null?void 0x0:_0x3047a0[_0x2eca38])==null?void 0x0:_0x324b2[_0x1c8903];return{'arrayFormulaCellDataMatrix':_0x512434,'unitDataMatrix':_0x5e3f2f};}[_0x1e02b9(0x444)](_0x30a73b,_0x18dbe0,_0x5afc19){const _0x2d25fb=_0x1e02b9,_0x2add97=this['_sheetsPivotDataSourceModel'][_0x2d25fb(0x195)](_0x30a73b,_0x18dbe0,_0x5afc19),_0x1759fb=[],_0x3660aa=new _0x5b61bd['ObjectMatrix']();if(_0x2add97){const {rangeCache:_0x1e4a4d,matrix:_0x8fd6d2,oldRangeCache:_0x19fd0a,oldMatrix:_0x33d137}=_0x2add97,_0x1fcd38=_0x4cd387(_0x19fd0a),_0x1ced17=_0x4cd387(_0x1e4a4d);_0x1759fb['push'](..._0x1ced17,..._0x1fcd38),_0x33d137&&_0x19fd0a&&_0x1fcd38[_0x2d25fb(0x259)](_0x36d646=>{const _0x3ab9d9=_0x2d25fb;for(let _0x3746fd=_0x36d646[_0x3ab9d9(0x25e)];_0x3746fd<=_0x36d646[_0x3ab9d9(0x2da)];_0x3746fd++)for(let _0x28bd6d=_0x36d646[_0x3ab9d9(0x22d)];_0x28bd6d<=_0x36d646[_0x3ab9d9(0x394)];_0x28bd6d++)_0x3660aa[_0x3ab9d9(0x295)](_0x3746fd,_0x28bd6d);}),_0x8fd6d2&&_0x1ced17&&_0x1ced17[_0x2d25fb(0x259)](_0x29ddab=>{const _0x1d62af=_0x2d25fb;for(let _0x3f1e04=_0x29ddab['startRow'];_0x3f1e04<=_0x29ddab[_0x1d62af(0x2da)];_0x3f1e04++)for(let _0x353b6c=_0x29ddab[_0x1d62af(0x22d)];_0x353b6c<=_0x29ddab['endColumn'];_0x353b6c++)_0x3660aa[_0x1d62af(0x214)](_0x3f1e04,_0x353b6c,_0x8fd6d2[_0x1d62af(0x3ef)](_0x3f1e04,_0x353b6c));});}const _0x5ea6bd={};return _0x5ea6bd[_0x30a73b]={[_0x18dbe0]:_0x53bb39(_0x1759fb)},{'runtimeCellData':{[_0x30a73b]:{[_0x18dbe0]:_0x3660aa}},'dirtyRanges':_0x5ea6bd};}[_0x1e02b9(0x3f3)](){}};_0x32808e=_0x16c9d4([_0x4ca369(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x4e9eda[_0x1e02b9(0x20f)])),_0x4ca369(0x1,_0x5b61bd[_0x1e02b9(0x36f)]),_0x4ca369(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x8e7411['IFeatureCalculationManagerService'])),_0x4ca369(0x3,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x18a)])),_0x4ca369(0x4,_0x5b61bd['Inject'](_0x8e7411[_0x1e02b9(0x2dc)])),_0x4ca369(0x5,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x403)]))],_0x32808e);var _0x2ede34=Object[_0x1e02b9(0x2b9)],_0x49b672=(_0xd408e2,_0xecabd3,_0xcbca6,_0x47c49e)=>{const _0x30cf72=_0x1e02b9;for(var _0x216327=_0x47c49e>0x1?void 0x0:_0x47c49e?_0x2ede34(_0xecabd3,_0xcbca6):_0xecabd3,_0x5d042a=_0xd408e2[_0x30cf72(0x370)]-0x1,_0x3ae6f2;_0x5d042a>=0x0;_0x5d042a--)(_0x3ae6f2=_0xd408e2[_0x5d042a])&&(_0x216327=_0x3ae6f2(_0x216327)||_0x216327);return _0x216327;},_0x5edbbd=(_0x3edf9e,_0x4be1d0)=>(_0x29f463,_0x5506cf)=>_0x4be1d0(_0x29f463,_0x5506cf,_0x3edf9e);let _0x21fc2b=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x4be6a0,_0x12d738,_0x209947,_0x53cbd0){const _0x41ea60=_0x1e02b9;super(),_0xef46e3(this,'disposableCollection',new _0x5b61bd[(_0x41ea60(0x27e))]()),(this['_univerInstanceService']=_0x4be6a0,this['_sheetInterceptorService']=_0x12d738,this[_0x41ea60(0x277)]=_0x209947,this[_0x41ea60(0x231)]=_0x53cbd0,this[_0x41ea60(0x35e)]());}[_0x1e02b9(0x35e)](){const _0x5de213=_0x1e02b9;this[_0x5de213(0x268)](this[_0x5de213(0x44d)][_0x5de213(0x493)]({'getMutations':_0x597efb=>{const _0x1579a3=_0x5de213;if(_0x597efb['id']===_0x2009a4[_0x1579a3(0x3a2)]['id']||_0x597efb['id']===_0x2009a4[_0x1579a3(0x308)]['id']){const _0x4c223e=[],_0x228988=[],_0x208f41=this[_0x1579a3(0x277)][_0x1579a3(0x20a)]()[_0x1579a3(0x384)](_0x189ee4=>_0x189ee4[_0x1579a3(0x3b1)]),_0x9df278=_0x2009a4['getSheetCommandTarget'](this[_0x1579a3(0x223)]);if(!_0x9df278)return{'redos':[],'undos':[]};const {unitId:_0x14ec33,subUnitId:_0x1ab794}=_0x9df278,_0x248ffb={},_0x23eed2=this['_sheetsPivotTableConfigModel'][_0x1579a3(0x41c)](_0x14ec33,_0x1ab794);if(_0x23eed2!=null&&_0x23eed2[_0x1579a3(0x434)])for(const [_0x30d1d7,_0x4ef39c]of _0x23eed2){const {unitId:_0x288f3f,subUnitId:_0xdafd24,row:_0x5ab0ce,col:_0x2d2b17}=_0x4ef39c['targetCellInfo'];_0x288f3f===_0x9df278[_0x1579a3(0x344)]&&_0xdafd24===_0x9df278['subUnitId']&&(_0x248ffb[_0x5ab0ce+'-'+_0x2d2b17]=_0x30d1d7);}return _0x208f41&&_0x9df278&&_0x208f41[_0x1579a3(0x259)](_0x499579=>{const _0x27f9b4=_0x1579a3;_0x5b61bd[_0x27f9b4(0x341)][_0x27f9b4(0x3f7)](_0x499579,(_0x2be955,_0x112d7f)=>{const _0x4a168a=_0x27f9b4,_0x126561=_0x2be955+'-'+_0x112d7f;if(_0x248ffb[_0x126561]){const _0x510e27=_0x248ffb[_0x126561];_0x4c223e[_0x4a168a(0x3c4)]({'id':_0xa3768f['id'],'params':{'unitId':_0x14ec33,'subUnitId':_0x1ab794,'pivotTableId':_0x510e27}});const _0x32dd04=this[_0x4a168a(0x231)][_0x4a168a(0x1a7)](_0x14ec33,_0x510e27),_0x54da79=this[_0x4a168a(0x231)]['getPivotTableConfig'](_0x14ec33,_0x1ab794,_0x510e27);_0x228988['push']({'id':_0x5598e6['id'],'params':{'unitId':_0x14ec33,'subUnitId':_0x1ab794,'pivotTableId':_0x510e27,'pivotTableConfig':_0x54da79,'collectionConfig':_0x32dd04}});}});}),{'redos':_0x4c223e,'undos':_0x228988};}return{'redos':[],'undos':[]};}}));}};_0x21fc2b=_0x49b672([_0x5edbbd(0x0,_0x5b61bd[_0x1e02b9(0x475)]),_0x5edbbd(0x1,_0x5b61bd[_0x1e02b9(0x1cd)](_0x2009a4[_0x1e02b9(0x30f)])),_0x5edbbd(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x2009a4[_0x1e02b9(0x3c8)])),_0x5edbbd(0x3,_0x5b61bd['Inject'](_0x4e9eda[_0x1e02b9(0x237)]))],_0x21fc2b);var _0x480140=Object[_0x1e02b9(0x2b9)],_0x44c256=(_0x3afb63,_0x57aea7,_0x5d8e57,_0x5ef35e)=>{const _0xbfb012=_0x1e02b9;for(var _0x1b897b=_0x5ef35e>0x1?void 0x0:_0x5ef35e?_0x480140(_0x57aea7,_0x5d8e57):_0x57aea7,_0xbcc8d5=_0x3afb63[_0xbfb012(0x370)]-0x1,_0x1aaeb2;_0xbcc8d5>=0x0;_0xbcc8d5--)(_0x1aaeb2=_0x3afb63[_0xbcc8d5])&&(_0x1b897b=_0x1aaeb2(_0x1b897b)||_0x1b897b);return _0x1b897b;},_0x2e7901=(_0x53ee8a,_0x88c327)=>(_0xfbda1a,_0x49d082)=>_0x88c327(_0xfbda1a,_0x49d082,_0x53ee8a);let _0xf6ac64=class extends _0x5b61bd['Disposable']{constructor(_0x3b5596,_0x46fa24,_0x2c8dc5,_0x4f38d3,_0x4f7970,_0x433ecf){const _0x56e367=_0x1e02b9;super(),this[_0x56e367(0x465)]=_0x3b5596,this[_0x56e367(0x44d)]=_0x46fa24,this[_0x56e367(0x2d5)]=_0x2c8dc5,this['_univerInstanceService']=_0x4f38d3,this[_0x56e367(0x231)]=_0x4f7970,this[_0x56e367(0x364)]=_0x433ecf,this[_0x56e367(0x2d0)]();}[_0x1e02b9(0x1c6)](_0xbc52d2,_0x2e8c59,_0x4c6785){const _0x35745f=_0x1e02b9,{pageView:_0x2983cd,cornerView:_0x27a8a1,rowView:_0xaa71d,colView:_0x629a36,dataView:_0x4d9082}=_0x2e8c59,_0x35ab3f=_0xbc52d2;let _0x428a58;if(_0x4c6785)_0x428a58=[..._0x4916f6(_0x35ab3f)];else{const _0x43ebd9=_0x18c8ea(_0x35ab3f,_0x2983cd,!0x0),_0x31cd1d=_0x2983cd[_0x35745f(0x399)]>=0x0?_0x2983cd[_0x35745f(0x399)]+0x1:0x0,_0x1a1e3c=_0x27a8a1[_0x35745f(0x2a5)],_0x2159f8=_0x27a8a1['colCount'],_0x3cf93f=_0x43ebd9['length']>0x0?_0x90963f:0x0,_0x4840ab=_0x18c8ea({'row':_0x35ab3f['row']+_0x31cd1d+_0x3cf93f,'col':_0x35ab3f[_0x35745f(0x352)]},_0x27a8a1,!0x1,!0x1),_0x4b0c46=_0x18c8ea({'row':_0x35ab3f[_0x35745f(0x2e3)]+_0x31cd1d+_0x3cf93f+_0x1a1e3c,'col':_0x35ab3f['col']},_0xaa71d,!0x1,!0x0),_0x2bbc6b=_0x18c8ea({'row':_0x35ab3f[_0x35745f(0x2e3)]+_0x31cd1d+_0x3cf93f,'col':_0x35ab3f[_0x35745f(0x352)]+_0x2159f8},_0x629a36,!0x1,!0x0),_0x2d4576=_0x18c8ea({'row':_0x35ab3f[_0x35745f(0x2e3)]+_0x31cd1d+_0x3cf93f+_0x1a1e3c,'col':_0x35ab3f[_0x35745f(0x352)]+_0x2159f8},_0x4d9082,!0x1,!0x0);_0x428a58=[..._0x43ebd9,..._0x4840ab,..._0x4b0c46,..._0x2bbc6b,..._0x2d4576];}return _0x428a58;}[_0x1e02b9(0x2d0)](){const _0x53ab6e=_0x1e02b9;this[_0x53ab6e(0x268)](this[_0x53ab6e(0x364)][_0x53ab6e(0x486)][_0x53ab6e(0x263)](this['_sheetsPivotTableService'][_0x53ab6e(0x486)][_0x53ab6e(0x480)]()['PIVOT_MUTATION_GENERATE'],{'handler':(_0x403281,_0x286ea6)=>{const _0x876deb=_0x53ab6e,{cellInfo:_0x13aa20,view:_0x41e86c,isEmpty:_0x1e83b7}=_0x286ea6,_0x446417=_0x13aa20,{unitId:_0x17c5ae,subUnitId:_0x2f9cce}=_0x446417,_0x46f58a=this[_0x876deb(0x1c6)](_0x13aa20,_0x41e86c,_0x1e83b7),_0x43f4ce=this['_sheetInterceptorService']['generateMutationsByRanges']({'unitId':_0x17c5ae,'subUnitId':_0x2f9cce,'ranges':_0x46f58a}),_0x18294e=_0x3eb589(this[_0x876deb(0x2d5)],_0x17c5ae,_0x2f9cce,_0x46f58a);_0x18294e[_0x876deb(0x2e0)]&&(_0x43f4ce[_0x876deb(0x19b)][_0x876deb(0x3c4)](_0x18294e['setRangeValueRedoMutation']),_0x43f4ce[_0x876deb(0x2f8)][_0x876deb(0x3c4)](_0x18294e['setRangeValueUndoMutation']));const _0x2c5317=this[_0x876deb(0x3b5)](_0x41e86c,_0x13aa20);return _0x43f4ce[_0x876deb(0x19b)][_0x876deb(0x3c4)](..._0x2c5317['redos']),_0x43f4ce[_0x876deb(0x2f8)][_0x876deb(0x3c4)](..._0x2c5317['undos']),{'redos':_0x43f4ce['redos'],'undos':_0x43f4ce[_0x876deb(0x2f8)]};}}));}[_0x1e02b9(0x3b5)](_0x5abe04,_0x4b8aa3){const _0x53c0f8=_0x1e02b9,{col:_0x231ff7,unitId:_0x2dcc69,subUnitId:_0x16d520}=_0x4b8aa3,_0x131f80=[],_0x8f42dd=[],_0x4605ab=_0x2009a4[_0x53c0f8(0x3ae)](this[_0x53c0f8(0x223)],{'unitId':_0x2dcc69,'subUnitId':_0x16d520});if(!_0x4b8aa3||!_0x5abe04||!_0x4605ab)return{'undos':_0x8f42dd,'redos':_0x131f80};const _0x425703=this[_0x53c0f8(0x231)][_0x53c0f8(0x2c8)](),{colView:_0x45aaae,dataView:_0x40684e,cornerView:_0x24215f,rowView:_0x40b8cd,formatMap:_0x421469}=_0x5abe04,_0x2350bb=_0x3ab8ff(_0x45aaae,_0x425703,!0x0,_0x421469),_0x2d9f41=_0x3ab8ff(_0x40b8cd,_0x425703,!0x1,_0x421469),_0x33f7f9=_0x21e3f0(_0x40684e),_0x39607c=_0x20b704(_0x24215f),{worksheet:_0x1a5f5e}=_0x4605ab;if(typeof window<'u'&&window[_0x53c0f8(0x3e0)]){const _0x4b8baf=_0x3d9691['getFontStyleString']({..._0xde021f[_0x53c0f8(0x1ce)]}),_0x2c38de=_0x3d9691[_0x53c0f8(0x218)][_0x53c0f8(0x2f7)](_0x2350bb,_0x4b8baf)[_0x53c0f8(0x193)]+0x10,_0x5ddd5d=_0x3d9691[_0x53c0f8(0x218)][_0x53c0f8(0x2f7)](_0x33f7f9,_0x4b8baf)[_0x53c0f8(0x193)],_0x2c6df6=Math[_0x53c0f8(0x2c6)](Math[_0x53c0f8(0x368)](_0x2c38de,_0x5ddd5d))+0x10,_0x1ad82d=Math[_0x53c0f8(0x2c6)](_0x3d9691['FontCache'][_0x53c0f8(0x2f7)](_0x2d9f41,_0x4b8baf)[_0x53c0f8(0x193)]),_0xfe0e0e=Math[_0x53c0f8(0x2c6)](_0x3d9691[_0x53c0f8(0x218)][_0x53c0f8(0x2f7)](_0x39607c,_0x4b8baf)[_0x53c0f8(0x193)]),_0x44e846=Math[_0x53c0f8(0x368)](_0x1ad82d,_0xfe0e0e,0x28)+0xc,_0x86c698=_0x45aaae['colCount']+_0x24215f[_0x53c0f8(0x388)],_0x5bccac={},_0x24df0b={};for(let _0x43ece8=_0x231ff7;_0x43ece8<_0x231ff7+_0x86c698;_0x43ece8++){const _0x13df09=_0x1a5f5e[_0x53c0f8(0x1c3)](_0x43ece8);_0x5bccac[_0x43ece8]=_0x13df09,_0x43ece8-_0x231ff7<_0x24215f[_0x53c0f8(0x388)]?_0x24df0b[_0x43ece8-_0x231ff7]=_0x44e846:_0x24df0b[_0x43ece8-_0x231ff7]=_0x2c6df6;}_0x131f80[_0x53c0f8(0x3c4)]({'id':_0x2009a4[_0x53c0f8(0x2d8)]['id'],'params':{'subUnitId':_0x16d520,'unitId':_0x2dcc69,'ranges':[{'startColumn':_0x231ff7,'endColumn':_0x231ff7+_0x86c698-0x1,'startRow':0x0,'endRow':_0x1a5f5e[_0x53c0f8(0x3a0)]()-0x1}],'colWidth':_0x24df0b}}),_0x8f42dd[_0x53c0f8(0x3c4)]({'id':_0x2009a4[_0x53c0f8(0x2d8)]['id'],'params':{'subUnitId':_0x16d520,'unitId':_0x2dcc69,'ranges':[{'startColumn':_0x231ff7,'endColumn':_0x231ff7+_0x86c698-0x1,'startRow':0x0,'endRow':_0x1a5f5e['getRowCount']()-0x1}],'colWidth':_0x5bccac}});}return{'undos':_0x8f42dd,'redos':_0x131f80};}};_0xf6ac64=_0x44c256([_0x2e7901(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x26b)])),_0x2e7901(0x1,_0x5b61bd[_0x1e02b9(0x1cd)](_0x2009a4[_0x1e02b9(0x30f)])),_0x2e7901(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x403)])),_0x2e7901(0x3,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x475)])),_0x2e7901(0x4,_0x5b61bd[_0x1e02b9(0x1cd)](_0x4e9eda[_0x1e02b9(0x237)])),_0x2e7901(0x5,_0x5b61bd['Inject'](_0x4e9eda['SheetsPivotTableService']))],_0xf6ac64);var _0x3824f2=Object['getOwnPropertyDescriptor'],_0x5c501b=(_0x506d0a,_0x118365,_0x2e3e69,_0x771ced)=>{const _0x174400=_0x1e02b9;for(var _0x3a9c30=_0x771ced>0x1?void 0x0:_0x771ced?_0x3824f2(_0x118365,_0x2e3e69):_0x118365,_0x4b4be6=_0x506d0a[_0x174400(0x370)]-0x1,_0xbaac43;_0x4b4be6>=0x0;_0x4b4be6--)(_0xbaac43=_0x506d0a[_0x4b4be6])&&(_0x3a9c30=_0xbaac43(_0x3a9c30)||_0x3a9c30);return _0x3a9c30;},_0x412f01=(_0x1b829f,_0x52f69d)=>(_0x5ce081,_0x5d0537)=>_0x52f69d(_0x5ce081,_0x5d0537,_0x1b829f);let _0x1ebd9b=class extends _0x5b61bd['Disposable']{constructor(_0x4af1f2,_0x56b601,_0x4c2dd8,_0x5c8f69,_0x29bbd6,_0xb08921,_0x5e623f){const _0x20be19=_0x1e02b9;super(),_0xef46e3(this,_0x20be19(0x230),new _0x5b61bd[(_0x20be19(0x27e))]()),(this[_0x20be19(0x2d5)]=_0x4af1f2,this[_0x20be19(0x1e9)]=_0x56b601,this['_commandService']=_0x4c2dd8,this[_0x20be19(0x223)]=_0x5c8f69,this[_0x20be19(0x231)]=_0x29bbd6,this[_0x20be19(0x333)]=_0xb08921,this[_0x20be19(0x44d)]=_0x5e623f,this[_0x20be19(0x393)]());}['_onRefRangeChange'](){const _0x243a7d=_0x1e02b9,_0x189b10=(_0x3fe31a,_0x342282)=>{const _0x374fb7=_0x316b,_0x3f475f=this[_0x374fb7(0x223)]['getCurrentUnitForType'](_0x5b61bd['UniverInstanceType'][_0x374fb7(0x2a7)]);if(!_0x3f475f||!(_0x3f475f==null?void 0x0:_0x3f475f[_0x374fb7(0x2ab)](_0x342282)))return;this['disposableCollection'][_0x374fb7(0x3f3)]();const _0x2da925=_0x3a4575=>this[_0x374fb7(0x415)](_0x3a4575,_0x3fe31a,_0x342282),_0x166859=this[_0x374fb7(0x231)][_0x374fb7(0x41c)](_0x3fe31a,_0x342282);if(!(_0x166859!=null&&_0x166859[_0x374fb7(0x434)]))return;Array['from'](_0x166859[_0x374fb7(0x2a3)]())[_0x374fb7(0x384)](_0x355a0a=>{const _0x5e0ff1=_0x374fb7,{row:_0x1cc8ab,col:_0x4a2353}=_0x355a0a[_0x5e0ff1(0x3ed)];return _0x5b61bd[_0x5e0ff1(0x22a)](_0x1cc8ab,_0x4a2353);})['forEach'](_0x4042e1=>{const _0x554c62=_0x374fb7;this[_0x554c62(0x230)]['add'](this[_0x554c62(0x1e9)]['registerRefRange'](_0x4042e1,_0x2da925,_0x3fe31a,_0x342282));});},_0x59f8ba=()=>{const _0x35396e=_0x316b,_0x389955=this[_0x35396e(0x223)][_0x35396e(0x413)](_0x5b61bd['UniverInstanceType']['UNIVER_SHEET']);if(_0x389955){const _0x3cc841=_0x389955[_0x35396e(0x246)]();if(!_0x3cc841)return;_0x189b10(_0x389955[_0x35396e(0x1c7)](),_0x3cc841['getSheetId']());}};this[_0x243a7d(0x268)](this[_0x243a7d(0x3f2)][_0x243a7d(0x2d6)](_0x3d12e0=>{const _0x27114b=_0x243a7d;if(_0x3d12e0['id']===_0x2009a4['SetWorksheetActiveOperation']['id']){const _0x50cbad=_0x3d12e0['params'],_0x3acf50=_0x50cbad[_0x27114b(0x213)],_0x12ec24=_0x50cbad[_0x27114b(0x344)];if(!_0x3acf50||!_0x12ec24)return;_0x189b10(_0x12ec24,_0x3acf50);}})),this['disposeWithMe'](this['_sheetsPivotTableConfigModel']['pivotInitCompleted$']['subscribe'](_0x56aa01=>{_0x56aa01&&_0x59f8ba();})),this[_0x243a7d(0x268)](this['_sheetsPivotTableConfigModel'][_0x243a7d(0x2d7)][_0x243a7d(0x3c6)](_0x59ffd8=>{const _0x110aa0=_0x243a7d,_0x154329=_0x2009a4[_0x110aa0(0x3ae)](this['_univerInstanceService']);if(!_0x154329)return;const {unitId:_0xc8bba0,subUnitId:_0x28fd2a}=_0x154329,{unitId:_0x4acedb,subUnitId:_0xe0cb2f}=_0x59ffd8;_0xc8bba0!==_0x4acedb||_0x28fd2a!==_0xe0cb2f||_0x189b10(_0xc8bba0,_0x28fd2a);})),_0x59f8ba();}[_0x1e02b9(0x415)](_0x5c14c0,_0x372c62,_0x3f3fac){const _0x495422=_0x1e02b9;switch(_0x5c14c0['id']){case _0x2009a4[_0x495422(0x49b)]['id']:return this['getRefRangeMutationsByMoveRange'](_0x5c14c0['params'],_0x372c62,_0x3f3fac);}return{'redos':[],'undos':[]};}[_0x1e02b9(0x408)](_0x3ecde5,_0x42d6a5,_0xaa54a3){const _0x4324de=_0x1e02b9,{fromRange:_0x207c3c,toRange:_0x55ab36}=_0x3ecde5,_0x236848=[],_0x12f670=[],_0x39115a=_0x2009a4[_0x4324de(0x3ae)](this[_0x4324de(0x223)]);if(!_0x39115a)return{'undos':_0x12f670,'redos':_0x236848};if(_0x42d6a5!==_0x39115a['unitId']||_0xaa54a3!==_0x39115a['subUnitId'])return{'undos':_0x12f670,'redos':_0x236848};const _0x2a1b1f=this[_0x4324de(0x231)]['getSubUnitPivotConfigs'](_0x42d6a5,_0xaa54a3);if(_0x2a1b1f!=null&&_0x2a1b1f[_0x4324de(0x434)])for(const [_0x72863e,_0x3dc29c]of _0x2a1b1f){const {unitId:_0x28895d,subUnitId:_0x4a4adb,row:_0x4ab047,col:_0x526202}=_0x3dc29c[_0x4324de(0x3ed)];if(_0x28895d===_0x39115a[_0x4324de(0x344)]&&_0x4a4adb===_0x39115a[_0x4324de(0x213)]){const _0x29b91e=_0x5b61bd[_0x4324de(0x22a)](_0x4ab047,_0x526202);if(_0x5b61bd[_0x4324de(0x28e)][_0x4324de(0x242)](_0x29b91e,_0x207c3c)){const _0x5de88b=_0x4ab047-_0x207c3c[_0x4324de(0x25e)],_0x2a684b=_0x526202-_0x207c3c['startColumn'],_0x3311ba={'row':_0x55ab36[_0x4324de(0x25e)]+_0x5de88b,'col':_0x55ab36[_0x4324de(0x22d)]+_0x2a684b};_0x236848['push']({'id':_0xf618f3['id'],'params':{'unitId':_0x28895d,'subUnitId':_0x4a4adb,'pivotTableId':_0x72863e,'targetCellPosition':_0x3311ba}}),_0x12f670['push']({'id':_0xf618f3['id'],'params':{'unitId':_0x28895d,'subUnitId':_0x4a4adb,'pivotTableId':_0x72863e,'targetCellPosition':{'row':_0x4ab047,'col':_0x526202}}});const _0x42cad=_0x3311ba[_0x4324de(0x2e3)]-_0x4ab047,_0xdcf934=_0x3311ba[_0x4324de(0x352)]-_0x526202,_0x4920f8=[],_0x46cf47=this[_0x4324de(0x333)][_0x4324de(0x306)](_0x28895d,_0x4a4adb,_0x72863e),_0x3e7990=_0x46cf47==null?void 0x0:_0x46cf47[_0x4324de(0x24a)];if(_0x3e7990){Object['keys'](_0x3e7990)[_0x4324de(0x259)](_0x5d7cfd=>{_0x3e7990[_0x5d7cfd]['forEach'](_0x1127d1=>{const _0xd2cfd8=_0x316b,_0x2a8ddd={..._0x1127d1};_0x2a8ddd[_0xd2cfd8(0x25e)]=_0x1127d1[_0xd2cfd8(0x25e)]+_0x42cad,_0x2a8ddd[_0xd2cfd8(0x2da)]=_0x1127d1[_0xd2cfd8(0x2da)]+_0x42cad,_0x2a8ddd[_0xd2cfd8(0x22d)]=_0x1127d1[_0xd2cfd8(0x22d)]+_0xdcf934,_0x2a8ddd[_0xd2cfd8(0x394)]=_0x1127d1[_0xd2cfd8(0x394)]+_0xdcf934,_0x4920f8[_0xd2cfd8(0x3c4)](_0x2a8ddd);});});const _0x10caaa=this[_0x4324de(0x44d)][_0x4324de(0x3e9)]({'unitId':_0x28895d,'subUnitId':_0x4a4adb,'ranges':_0x4920f8});_0x236848['push'](..._0x10caaa[_0x4324de(0x19b)]),_0x12f670[_0x4324de(0x3c4)](..._0x10caaa[_0x4324de(0x2f8)]);const _0x12b3eb=_0x3eb589(this['_injector'],_0x28895d,_0x4a4adb,_0x4920f8);_0x12b3eb['shouldClear']&&(_0x236848['push'](_0x12b3eb[_0x4324de(0x199)]),_0x12f670[_0x4324de(0x3c4)](_0x12b3eb[_0x4324de(0x1a9)]));}}}}return{'redos':_0x236848,'undos':_0x12f670};}};_0x1ebd9b=_0x5c501b([_0x412f01(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x403)])),_0x412f01(0x1,_0x5b61bd['Inject'](_0x2009a4[_0x1e02b9(0x334)])),_0x412f01(0x2,_0x5b61bd[_0x1e02b9(0x18a)]),_0x412f01(0x3,_0x5b61bd[_0x1e02b9(0x475)]),_0x412f01(0x4,_0x5b61bd[_0x1e02b9(0x1cd)](_0x4e9eda['SheetsPivotTableConfigModel'])),_0x412f01(0x5,_0x5b61bd[_0x1e02b9(0x1cd)](_0x4e9eda[_0x1e02b9(0x1b5)])),_0x412f01(0x6,_0x5b61bd[_0x1e02b9(0x1cd)](_0x2009a4[_0x1e02b9(0x30f)]))],_0x1ebd9b);var _0xbc1f1f=Object[_0x1e02b9(0x2b9)],_0x2010bb=(_0x1aa724,_0x58a840,_0x4c12e8,_0x5cd45e)=>{const _0x483add=_0x1e02b9;for(var _0x21d136=_0x5cd45e>0x1?void 0x0:_0x5cd45e?_0xbc1f1f(_0x58a840,_0x4c12e8):_0x58a840,_0x595bd7=_0x1aa724[_0x483add(0x370)]-0x1,_0x5bfa90;_0x595bd7>=0x0;_0x595bd7--)(_0x5bfa90=_0x1aa724[_0x595bd7])&&(_0x21d136=_0x5bfa90(_0x21d136)||_0x21d136);return _0x21d136;},_0x2c1e4f=(_0xf18537,_0x5b66cc)=>(_0x2d4f4f,_0x1ade85)=>_0x5b66cc(_0x2d4f4f,_0x1ade85,_0xf18537);let _0x3b2c6b=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x20c519,_0x138259){const _0x441d03=_0x1e02b9;super(),this['_sheetInterceptorService']=_0x20c519,this[_0x441d03(0x231)]=_0x138259,this[_0x441d03(0x482)]();}[_0x1e02b9(0x482)](){const _0x57f2c7=_0x1e02b9;this[_0x57f2c7(0x268)](this[_0x57f2c7(0x44d)]['interceptCommand']({'getMutations':_0x44db9a=>{const _0x3da5bf=_0x57f2c7;if(_0x44db9a['id']===_0x2009a4['RemoveSheetCommand']['id']){const _0x8d902d=[],_0x3734cc=[],_0xac4058=_0x44db9a[_0x3da5bf(0x2ae)],{unitId:_0x2c1dbf,subUnitId:_0xfd8671}=_0xac4058;if(!_0x2c1dbf||!_0xfd8671)return{'undos':_0x3734cc,'redos':_0x8d902d};const _0x5a0fcb=this[_0x3da5bf(0x231)]['getSubUnitPivotConfigs'](_0x2c1dbf,_0xfd8671);if(_0x5a0fcb!=null&&_0x5a0fcb['size'])for(const [_0x33be63,_0x19234c]of _0x5a0fcb){_0x8d902d[_0x3da5bf(0x3c4)]({'id':_0xa3768f['id'],'params':{'unitId':_0x2c1dbf,'subUnitId':_0xfd8671,'pivotTableId':_0x33be63}});const _0x2c40e5={...this['_sheetsPivotTableConfigModel']['getCollection'](_0x2c1dbf,_0x33be63)};_0x3734cc['push']({'id':_0x5598e6['id'],'params':{'unitId':_0x2c1dbf,'subUnitId':_0xfd8671,'pivotTableId':_0x33be63,'pivotTableConfig':_0x19234c,'collectionConfig':_0x2c40e5}});}return{'redos':_0x8d902d,'undos':_0x3734cc};}return{'redos':[],'undos':[]};}}));}};_0x3b2c6b=_0x2010bb([_0x2c1e4f(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x2009a4[_0x1e02b9(0x30f)])),_0x2c1e4f(0x1,_0x5b61bd['Inject'](_0x4e9eda[_0x1e02b9(0x237)]))],_0x3b2c6b);var _0x14540f=Object[_0x1e02b9(0x2b9)],_0x268fb1=(_0xc68c5e,_0x22ff9f,_0x1d37bd,_0x4972c5)=>{const _0x5c2a73=_0x1e02b9;for(var _0x2ab910=_0x4972c5>0x1?void 0x0:_0x4972c5?_0x14540f(_0x22ff9f,_0x1d37bd):_0x22ff9f,_0x107326=_0xc68c5e[_0x5c2a73(0x370)]-0x1,_0x12bcbf;_0x107326>=0x0;_0x107326--)(_0x12bcbf=_0xc68c5e[_0x107326])&&(_0x2ab910=_0x12bcbf(_0x2ab910)||_0x2ab910);return _0x2ab910;},_0x481f3a=(_0x2112d3,_0x419124)=>(_0x4b7412,_0x131d14)=>_0x419124(_0x4b7412,_0x131d14,_0x2112d3);let _0x527620=class extends _0x5b61bd[_0x1e02b9(0x19e)]{constructor(_0x2f0157,_0x37db37,_0x331f12,_0x3586b0,_0x5e108a,_0x5b0d37){const _0x16eab6=_0x1e02b9;super(),this[_0x16eab6(0x3f2)]=_0x2f0157,this[_0x16eab6(0x382)]=_0x37db37,this['_sheetsPivotTableAdaptorModel']=_0x331f12,this[_0x16eab6(0x231)]=_0x3586b0,this[_0x16eab6(0x223)]=_0x5e108a,this[_0x16eab6(0x1a4)]=_0x5b0d37,this[_0x16eab6(0x345)](),this['registerDirtyService']();}[_0x1e02b9(0x345)](){const _0x542e92=_0x1e02b9;this[_0x542e92(0x268)](this['_commandService'][_0x542e92(0x2d6)](_0x30d06b=>{const _0x40626b=_0x542e92;if(_0x30d06b['id']!==_0x557855['id'])return;const _0x565d51=_0x30d06b[_0x40626b(0x2ae)];this[_0x40626b(0x382)][_0x40626b(0x2c4)](_0x565d51);})),this[_0x542e92(0x268)](this[_0x542e92(0x3f2)][_0x542e92(0x2d6)](_0x532a47=>{const _0x20cc3c=_0x542e92;if(_0x532a47['id']===_0x13d163['id']){const _0x55f5fc=_0x532a47[_0x20cc3c(0x2ae)];if(_0x55f5fc){const {unitId:_0x23e1b6,subUnitId:_0x47fd3b,oldSubUnitId:_0x34ee00,pivotTableId:_0x36889a,pivotTableConfig:_0x3b034d,collectionConfig:_0x1e60da}=_0x55f5fc;this[_0x20cc3c(0x231)][_0x20cc3c(0x423)](_0x23e1b6,_0x34ee00,_0x55f5fc['pivotTableId'],null),this[_0x20cc3c(0x231)][_0x20cc3c(0x423)](_0x23e1b6,_0x47fd3b,_0x36889a,_0x3b034d),this[_0x20cc3c(0x231)][_0x20cc3c(0x212)](_0x23e1b6,_0x1e60da);}}})),this[_0x542e92(0x268)](this[_0x542e92(0x3f2)][_0x542e92(0x2d6)](_0x590cf1=>{const _0x53fad0=_0x542e92;if(_0x590cf1['id']!==_0x2727e2['id'])return;const _0x4cb355=_0x2009a4['getSheetCommandTarget'](this[_0x53fad0(0x223)]);if(!_0x4cb355)return;const {unitId:_0x206a8f,subUnitId:_0xeb84e7}=_0x4cb355,_0x7e1dbe=_0x590cf1['params'];if(_0x7e1dbe[_0x53fad0(0x282)]&&Object[_0x53fad0(0x1b6)](_0x7e1dbe[_0x53fad0(0x282)])[_0x53fad0(0x259)](_0xe8421=>{const _0x596e9f=_0x53fad0;var _0x5b4a96;(_0x5b4a96=_0x7e1dbe['collectionConfig'])!=null&&_0x5b4a96[_0xe8421]&&this[_0x596e9f(0x231)]['updateCollectionConfig'](_0xe8421,_0x7e1dbe[_0x596e9f(0x282)][_0xe8421]);}),_0x7e1dbe[_0x53fad0(0x2ba)]){const _0x4eb19e=_0x7e1dbe['single'],{unitId:_0x32bf41,subUnitId:_0x1cf968,view:_0x513692,pivotTableId:_0x548ff7,type:_0x9a1321,pivotConfig:_0x12349f}=_0x4eb19e;if(_0x9a1321===_0x407136[_0x53fad0(0x18d)])this[_0x53fad0(0x333)]['clearRenderCache']({'unitId':_0x32bf41,'subUnitId':_0x1cf968,'pivotTableId':_0x548ff7,'type':_0x9a1321}),this[_0x53fad0(0x231)][_0x53fad0(0x423)](_0x32bf41,_0x1cf968,_0x548ff7,null);else{const _0x3d5618=new _0x7008cc[(_0x53fad0(0x20e))]();_0x3d5618[_0x53fad0(0x40a)](_0x513692),this[_0x53fad0(0x231)][_0x53fad0(0x423)](_0x32bf41,_0x1cf968,_0x548ff7,_0x12349f),this[_0x53fad0(0x333)]['clearRenderCache']({'unitId':_0x32bf41,'subUnitId':_0x1cf968,'pivotTableId':_0x548ff7,'type':_0x9a1321,'view':_0x3d5618}),this[_0x53fad0(0x333)][_0x53fad0(0x2cf)]({'unitId':_0x32bf41,'subUnitId':_0x1cf968,'view':_0x3d5618,'pivotTableId':_0x548ff7,'type':_0x9a1321});}}else _0x7e1dbe[_0x53fad0(0x1d3)]&&(_0x7e1dbe['batch'][_0x53fad0(0x259)](_0x454779=>{const _0x183104=_0x53fad0,{unitId:_0x185cd1,subUnitId:_0x533543,view:_0x5b77a2,pivotTableId:_0x1a1d27,type:_0x10d530,pivotConfig:_0x597ffa}=_0x454779,_0x14f600=new _0x7008cc['PivotView']();_0x14f600[_0x183104(0x40a)](_0x5b77a2),this['_sheetsPivotTableConfigModel'][_0x183104(0x423)](_0x185cd1,_0x533543,_0x1a1d27,_0x597ffa),this['_sheetsPivotTableAdaptorModel'][_0x183104(0x2cf)]({'unitId':_0x185cd1,'subUnitId':_0x533543,'view':_0x14f600,'pivotTableId':_0x1a1d27,'type':_0x10d530});}),this[_0x53fad0(0x231)][_0x53fad0(0x445)]());this[_0x53fad0(0x333)]['markDirty'](_0x206a8f,_0xeb84e7);}));}[_0x1e02b9(0x28a)](){const _0x769f60=_0x1e02b9;this[_0x769f60(0x1a4)]['register'](_0x45ce1b['id'],{'commandId':_0x45ce1b['id'],'getDirtyData'(_0x1582ff){const _0x4e7359=_0x769f60;return{'dirtyUnitFeatureMap':_0x1582ff[_0x4e7359(0x2ae)]};}});}};_0x527620=_0x268fb1([_0x481f3a(0x0,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x18a)])),_0x481f3a(0x1,_0x5b61bd['Inject'](_0x4e9eda['SheetsPivotRPCService'])),_0x481f3a(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x4e9eda['SheetsPivotTableAdaptorModel'])),_0x481f3a(0x3,_0x5b61bd[_0x1e02b9(0x1cd)](_0x4e9eda[_0x1e02b9(0x237)])),_0x481f3a(0x4,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd['IUniverInstanceService'])),_0x481f3a(0x5,_0x8e7411[_0x1e02b9(0x1f9)])],_0x527620);var _0x3b05b8=Object[_0x1e02b9(0x21b)],_0x2258d7=Object[_0x1e02b9(0x2b9)],_0x51498b=(_0x5ca1d7,_0x4ee57a,_0x25eb0c)=>_0x4ee57a in _0x5ca1d7?_0x3b05b8(_0x5ca1d7,_0x4ee57a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x25eb0c}):_0x5ca1d7[_0x4ee57a]=_0x25eb0c,_0xfcd5f4=(_0x3a29bf,_0x5d685b,_0x389e0f,_0xa677ba)=>{const _0x13f553=_0x1e02b9;for(var _0x2da829=_0xa677ba>0x1?void 0x0:_0xa677ba?_0x2258d7(_0x5d685b,_0x389e0f):_0x5d685b,_0x1eafac=_0x3a29bf[_0x13f553(0x370)]-0x1,_0x5dba01;_0x1eafac>=0x0;_0x1eafac--)(_0x5dba01=_0x3a29bf[_0x1eafac])&&(_0x2da829=_0x5dba01(_0x2da829)||_0x2da829);return _0x2da829;},_0x4526b0=(_0x419b6c,_0x302c1d)=>(_0x25cfe5,_0x257fd7)=>_0x302c1d(_0x25cfe5,_0x257fd7,_0x419b6c),_0x171c93=(_0x4c71da,_0x541e4f,_0x32b49f)=>_0x51498b(_0x4c71da,typeof _0x541e4f!=_0x1e02b9(0x19a)?_0x541e4f+'':_0x541e4f,_0x32b49f);_0x4e9eda['UniverSheetsPivotTablePlugin']=class extends _0x5b61bd[_0x1e02b9(0x45c)]{constructor(_0x5fce4a=_0x3f8cf3,_0x214790,_0x4ad590,_0x587408,_0x50d985){const _0x5312ce=_0x1e02b9;super(),this[_0x5312ce(0x253)]=_0x5fce4a,this[_0x5312ce(0x2d5)]=_0x214790,this[_0x5312ce(0x3f2)]=_0x4ad590,this['_configService']=_0x587408,this[_0x5312ce(0x24e)]=_0x50d985;const {..._0x16a41f}=_0x5b61bd[_0x5312ce(0x351)]({},_0x3f8cf3,this[_0x5312ce(0x253)]);this[_0x5312ce(0x23c)][_0x5312ce(0x2cc)](_0x442f8f,_0x16a41f),this[_0x5312ce(0x1d6)](),this['_initConfig']();}['_initConfig'](){const _0x2e2511=_0x1e02b9;var _0xadf1dc;const _0x136a2e=(_0xadf1dc=this[_0x2e2511(0x253)])==null?void 0x0:_0xadf1dc[_0x2e2511(0x239)];this[_0x2e2511(0x23c)]['setConfig'](_0x1ea5d8,_0x136a2e===!0x0);}['onStarting'](){const _0x29f8a1=_0x1e02b9;var _0x527872;let _0x285760=[];const _0x15aae9=(_0x527872=this[_0x29f8a1(0x253)])==null?void 0x0:_0x527872['notExecuteFormula'];_0x15aae9===!0x0?_0x285760=[[_0x4e9eda[_0x29f8a1(0x207)]],[_0x4e9eda[_0x29f8a1(0x3b3)]],[_0x527620],[_0x4e9eda[_0x29f8a1(0x1b5)]],[_0x4e9eda[_0x29f8a1(0x237)]],[_0x3b2c6b],[_0x21fc2b],[_0x1ebd9b],[_0xf6ac64]]:_0x15aae9===!0x1?_0x285760=[[_0x4e9eda[_0x29f8a1(0x20f)]],[_0x32808e]]:_0x15aae9===void 0x0&&(_0x285760=[[_0x4e9eda[_0x29f8a1(0x20f)]],[_0x32808e],[_0x4e9eda[_0x29f8a1(0x207)]],[_0x4e9eda[_0x29f8a1(0x3b3)]],[_0x527620],[_0x4e9eda[_0x29f8a1(0x1b5)]],[_0x4e9eda[_0x29f8a1(0x237)]],[_0x3b2c6b],[_0x21fc2b],[_0x1ebd9b],[_0xf6ac64]]),_0x285760[_0x29f8a1(0x259)](_0x273181=>this[_0x29f8a1(0x2d5)][_0x29f8a1(0x397)](_0x273181)),[_0x32808e,_0x527620,_0x4e9eda['SheetsPivotTableService'],_0x21fc2b,_0x3b2c6b,_0x1ebd9b,_0xf6ac64][_0x29f8a1(0x259)](_0x57a370=>{const _0x1c93f1=_0x29f8a1;this['_injector']['has'](_0x57a370)&&this['_injector'][_0x1c93f1(0x2ee)](_0x57a370);});}[_0x1e02b9(0x1d6)](){[_0x571e83,_0x231d95,_0x2f61f9,_0x4767b6,_0x324d43,_0x16152a,_0xae97d6,_0x4c38b4,_0x1c2343,_0x2c5a46,_0x1197bd,_0x16947d,_0x555823,_0x4643bb,_0x5598e6,_0x21562d,_0xa3768f,_0x33818b,_0x2ceedf,_0x29f8d8,_0x1217cd,_0xf91e4a,_0x4e94ad,_0x59ddfe,_0x40bcd4,_0x56be52,_0xf618f3,_0x4fe5d7,_0x557855,_0x2727e2,_0x23d02c,_0x5f5521,_0x34d26f,_0x134a23,_0xb20377,_0x2b1ec5,_0x304d6a,_0x45ce1b,_0x13d163,_0x29fec7,_0x4af02e,_0x2db570,_0xbf7f6d]['forEach'](_0x12fb0e=>{const _0x149a0f=_0x316b;var _0x2edc6e;(_0x2edc6e=this['_dataSyncPrimaryController'])==null||_0x2edc6e[_0x149a0f(0x392)](_0x12fb0e),this[_0x149a0f(0x3f2)][_0x149a0f(0x3b9)](_0x12fb0e);});}},_0x171c93(_0x4e9eda[_0x1e02b9(0x43f)],_0x1e02b9(0x23f),_0x2b9ea6),_0x171c93(_0x4e9eda[_0x1e02b9(0x43f)],_0x1e02b9(0x456),_0x5b61bd[_0x1e02b9(0x428)]['UNIVER_SHEET']),_0x4e9eda[_0x1e02b9(0x43f)]=_0xfcd5f4([_0x5b61bd[_0x1e02b9(0x29d)](_0x573993[_0x1e02b9(0x1a5)]),_0x4526b0(0x1,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd[_0x1e02b9(0x403)])),_0x4526b0(0x2,_0x5b61bd[_0x1e02b9(0x1cd)](_0x5b61bd['ICommandService'])),_0x4526b0(0x3,_0x5b61bd[_0x1e02b9(0x36f)]),_0x4526b0(0x4,_0x5b61bd[_0x1e02b9(0x1a2)](_0x3f0d0a[_0x1e02b9(0x2ff)]))],_0x4e9eda['UniverSheetsPivotTablePlugin']),_0x4e9eda[_0x1e02b9(0x290)]=_0x2f61f9,_0x4e9eda[_0x1e02b9(0x307)]=_0x33818b,_0x4e9eda['AddPivotTableCommand']=_0x231d95,_0x4e9eda[_0x1e02b9(0x3fe)]=_0x5598e6,_0x4e9eda[_0x1e02b9(0x1f3)]=_0x571e83,_0x4e9eda['BLANK_ROW_COUNT']=_0x90963f,_0x4e9eda[_0x1e02b9(0x470)]=_0x52c532,_0x4e9eda[_0x1e02b9(0x2a2)]=_0x4767b6,_0x4e9eda[_0x1e02b9(0x1ad)]=_0x555823,_0x4e9eda[_0x1e02b9(0x34b)]=_0x4f52d8,_0x4e9eda[_0x1e02b9(0x3a7)]=_0x4643bb,_0x4e9eda['PivotTableOperationEnum']=_0x407136,_0x4e9eda[_0x1e02b9(0x197)]=_0x45ce1b,_0x4e9eda[_0x1e02b9(0x3f8)]=_0x29ef15,_0x4e9eda[_0x1e02b9(0x464)]=_0x324d43,_0x4e9eda[_0x1e02b9(0x2a0)]=_0xf91e4a,_0x4e9eda[_0x1e02b9(0x1b8)]=_0xa3768f,_0x4e9eda[_0x1e02b9(0x30e)]=_0x4e94ad,_0x4e9eda[_0x1e02b9(0x2b5)]=_0xbf7f6d,_0x4e9eda['SHEETS_PIVOT_PLUGIN_CONFIG_KEY']=_0x442f8f,_0x4e9eda[_0x1e02b9(0x3eb)]=_0x2b9ea6,_0x4e9eda[_0x1e02b9(0x427)]=_0x4c38b4,_0x4e9eda['SetPivotCollapseMutation']=_0x59ddfe,_0x4e9eda['SetPivotFieldFormatMutation']=_0x134a23,_0x4e9eda[_0x1e02b9(0x3f5)]=_0x2db570,_0x4e9eda[_0x1e02b9(0x2b2)]=_0x2c5a46,_0x4e9eda[_0x1e02b9(0x2dd)]=_0x1217cd,_0x4e9eda[_0x1e02b9(0x406)]=_0x56be52,_0x4e9eda[_0x1e02b9(0x326)]=_0xf618f3,_0x4e9eda['SetPivotSortCommand']=_0x1c2343,_0x4e9eda[_0x1e02b9(0x40d)]=_0x40bcd4,_0x4e9eda['SetPivotSubtotalTypeMutation']=_0x34d26f,_0x4e9eda[_0x1e02b9(0x2af)]=_0x29fec7,_0x4e9eda['SetPivotValueFilterMutation']=_0x4af02e,_0x4e9eda[_0x1e02b9(0x206)]=_0xae97d6,_0x4e9eda[_0x1e02b9(0x1de)]=_0x23d02c,_0x4e9eda[_0x1e02b9(0x198)]=_0x1197bd,_0x4e9eda[_0x1e02b9(0x422)]=_0x304d6a,_0x4e9eda[_0x1e02b9(0x404)]=_0x16947d,_0x4e9eda[_0x1e02b9(0x29f)]=_0x2b1ec5,_0x4e9eda['UpdatePivotValuePositionCommand']=_0x16152a,_0x4e9eda['UpdateValuePositionMutation']=_0x5f5521,_0x4e9eda['applyChangeSet']=_0x4df1bc,_0x4e9eda[_0x1e02b9(0x38e)]=_0x586982,_0x4e9eda[_0x1e02b9(0x211)]=_0xde021f,_0x4e9eda[_0x1e02b9(0x1db)]=_0x3eb589,_0x4e9eda[_0x1e02b9(0x353)]=_0x18c8ea,_0x4e9eda['getEmptyPivotRanges']=_0x4916f6,_0x4e9eda['getFieldListByArea']=_0x10a63d,_0x4e9eda['getInsertRowColMutations']=_0x58f3ac,_0x4e9eda['getPivotCellInfo']=_0x4b4797,_0x4e9eda['getPivotInfoByLicense']=_0x8d06ca,_0x4e9eda[_0x1e02b9(0x3ad)]=_0x5ced2c,_0x4e9eda[_0x1e02b9(0x411)]=_0x34f9f3,_0x4e9eda['unionPivotViewRange']=_0x4cd387,Object[_0x1e02b9(0x21b)](_0x4e9eda,Symbol[_0x1e02b9(0x3f1)],{'value':_0x1e02b9(0x32a)});}));