@univerjs-pro/sheets-pivot 0.5.5 → 0.6.0-alpha.0
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/cjs/facade.js +1 -1
- package/lib/cjs/index.js +1 -1
- package/lib/cjs/locale/en-US.js +1 -1
- package/lib/cjs/locale/fa-IR.js +1 -1
- package/lib/cjs/locale/fr-FR.js +1 -1
- package/lib/cjs/locale/ru-RU.js +1 -1
- package/lib/cjs/locale/vi-VN.js +1 -1
- package/lib/cjs/locale/zh-CN.js +1 -1
- package/lib/cjs/locale/zh-TW.js +1 -1
- package/lib/es/facade.js +1 -1
- package/lib/es/index.js +1 -1
- package/lib/es/locale/en-US.js +1 -1
- package/lib/es/locale/fa-IR.js +1 -1
- package/lib/es/locale/fr-FR.js +1 -1
- package/lib/es/locale/ru-RU.js +1 -1
- package/lib/es/locale/vi-VN.js +1 -1
- package/lib/es/locale/zh-CN.js +1 -1
- package/lib/es/locale/zh-TW.js +1 -1
- package/lib/types/common/const.d.ts +41 -41
- package/lib/types/controllers/const.d.ts +1 -1
- package/lib/types/facade/f-enum.d.ts +6 -0
- package/lib/types/facade/f-event.d.ts +39 -12
- package/lib/types/facade/f-pivot-table.d.ts +28 -0
- package/lib/types/facade/f-workbook.d.ts +26 -20
- package/lib/types/models/sheets-pivot-data-field-manager.d.ts +1 -1
- package/lib/umd/facade.js +1 -1
- package/lib/umd/index.js +1 -1
- package/lib/umd/locale/en-US.js +1 -1
- package/lib/umd/locale/fa-IR.js +1 -1
- package/lib/umd/locale/fr-FR.js +1 -1
- package/lib/umd/locale/ru-RU.js +1 -1
- package/lib/umd/locale/vi-VN.js +1 -1
- package/lib/umd/locale/zh-CN.js +1 -1
- package/lib/umd/locale/zh-TW.js +1 -1
- package/package.json +11 -11
package/lib/umd/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function _0x27db(){const _0x24e1c0=['sheets-pivot.value','width','AddPivotTableMutation','options','getPivotInfoByLicense','_initClearSelectionCommandInterceptor','paths','sheet.command.set-pivot-field-setting','addCollection','COLUMN','from','iterateFieldDim','sheet.command.add-pivot-field','_ensurePivotItemRenderInfoCache','PIVOT_MUTATION_GENERATE','StdDev\x20of\x20','getFilterInfo','sheet.mutation.send-pivot-data-local','@univerjs/sheets','Add','setSourceName','PivotMultipleValueId','initDataRanges','getFormat','column','getPivotTableInstance','adjustSheetCellData','pivotInitCompleted$','AddField','forEach','sourceName','SetPivotCollapse','@univerjs/rpc','dispose','NUMBER','InsertColMutation','valueIndex','getMatrix','Total','rangeCache','PivotTableViewDirtyMarkOperation','Div0','registerPluginResource','updateFieldSourceInfo','removePivotField','fetchThroughAsyncInterceptors','SetRangeValuesMutation','redos','shouldClear','updateDirtyPivotTable','deepClone','LifecycleService','map','broadcastCollectionChange','sum','type','MoveRangeMutation','removeField','handleSourceRangeChange','has','_onRefRangeChange','sheets-pivot.emptyPivot.values','getFieldListByArea','RemoveSheetMutation','Disposable','sheet.mutation.set-pivot-filter','9pJFWBv','PivotCellStyleTypeEnum','prefix','_refRangeHandle','fieldsConfig','_initLocale','_updateModelCache','pageStyle','getDataFieldByRangeKey','DrillDown','tableFieldId','var','getTableFieldById','_activeDirtyManagerService','rowStyle','FieldsCollection','_pivotRenderValueMatrixCache','#f4f4f5','_dataSyncPrimaryController','_sheetsSelectionsService','_collectionConfigModel','sheet.mutation.set-pivot-position','setPivotSetting','getRangeData','UpdatePivotFieldSourceInfoMutation','leftOffset','getCellRaw','dataFieldId','getLastCol','RANGE_TYPE','getTypeOfUnitDisposed$','updateRenderCache','PivotTableChangeTypeEnum','endCollectChangeset','subtotal','GrandTotal','getName','lastCol','STRING','result','_initCommandInterceptListener','InterceptorEffectEnum','filter','size','Subject','dataFieldManagerConfig','contains','PivotTableValuePositionEnum','addPivotTable','setPivotCollapse','toString','mergeWorksheetSnapshotWithDefault','isBottomTotal','sortInfo','toJSON','dataStyle','getTargetByPivotId','removeSourceRangeChange','format','_deleteModelCache','sourceRangeInfo','document','_ensurePivotItemRenderValueMatrixCache','iterateField','SetPivotSortMutation','getSheetBySheetName','sheet.mutation.pivot-update-field-source-info','disposableCollection','colStyle','canUsePivot','INTERCEPTOR_POINT','SetPivotSetting','panel','SetWorksheetColWidthMutation','updateConfig','pageRanges','updateFieldPosition','SetSheetsFilterRangeMutation','sheet.command.update-pivot-value-position','PivotTableFiledAreaEnum','_sheetsPivotTableConfigModel','deleteDataField','fieldsCollectionChange$','rangeKey','getPivotItemRenderInfoCache','updateViewInfo','isValue','Injector','endRow','getSortInfo','_ensureViewDataMap','value','collectionConfig','_ensurePivotTableMatrixInfo','MIN_SAFE_INTEGER','SheetsPivotRPCService','MoveRangeCommand','refreshData','getInterceptPoints','setSortInfo','sheet.mutation.set-pivot-sort-info','_sheetsPivotTableService','getPivotCellInfo','min','updatePivotTableRangeInfo','getSheets','isDateValue','_initPivotDataGetListener','Module','_initConfig','batch','sheet.command.move-pivot-field','getActiveSheet','AddPivotTableCommand','generateMutationsByRanges','concat','11YeyOas','setCollapse','MovePivotTableCommand','asyncInterceptor','colInfo','sheet.mutation.set-pivot-option','triggerDirtyFeature','143cXqaMn','pluginName','getSubtotal','getViewData','rowCount','pbt','AddPivotFieldCommand','_initPivotTextInfo','_sheetsPivotRpcService','UpdateFieldPosition','pivotConfigChange$','parse','updateValuePosition','SetRangeValuesUndoMutationFactory','updateViewData','MovePivotField','getAdjustRangesPosition','430910GdHGEY','remove','Rectangle','handleMoveRange','startRow','unshift','getSheetId','dataFields','getAutoFitColumnsMutations','valid','sheets-pivot.averageName','charCodeAt','sheet.command.remove-pivot-field','fetchThroughInterceptors','pivotTableConfigs','filterFields','498956curBgL','getCellMatrix','count','_config','SetPivotCollapseCommand','dataFieldsCollection','UpdateFieldPositionMutation','SetPivotFieldFormatMutation','RemovePivotField','setRange','delete','splice','sheet.mutation.send-init-pivot-text-local','sheet.mutation.remove-pivot-table','SetPivotSortCommand','getAutoDisplayName','filterId','message','getLastRow','getRefRangeMutationsByMoveRange','rowFields','getMatrixFromRunTimeData','AddPivotField','length','_markDirty$','getPivotTableMatrixInfo','displayName','sheet.mutation.pivot-update-field-position','keys','_viewData','PivotTable','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','renameField','row','setPivotFilter','undos','PivotDataFieldDataTypeEnum','IUndoRedoService','push','IExclusiveRangeService','ObjectMatrix','SetSubtotalType','getColCount','data','isText','sequenceExecute','getFieldPositionInfoById','onStarting','updateConfigCache','@univerjs/sheets-filter','realDeleteValue','_initUnitDisposed','RemovePivotFieldCommand','sheets.tabs.sheet','registerCommand','getSourceName','getOwnPropertyDescriptor','None','_sheetsPivotDataSourceModel','Row','createValueField','UniverRpc','hasField','_configVersion$','registerDirtyService','some','max','SetOptions','markDirty$','sheets-pivot.columnName','_sheetsPivotTableAdaptorModel','blank','_pivotTableMatrixInfo','RemovePivotTableMutation','getIntersects','colRanges','pivotTableId','pushUndoRedo','_pivotTableInstanceCache','UpdatePivotValuePositionCommand','tuple','Range','generateHexNumber','getDataFieldByTableId','@univerjs/core','_dataFieldManagerCollection','Inject','@univerjs-pro/license','sheets-pivot.config','@univerjs/engine-render','_exclusiveRangeService','date','intersects','clearExclusiveRangesByGroupId','_viewData$','stdDevp','sheet.mutation.send-pivot-view-local','SetPivotOptionMutation','setTextInfo','DisposableCollection','Style','PivotTableOperationEnum','setConfig','interceptor','cellToRange','toStringTag','iterateFieldByArea','_deletePivotTableInstanceCache','UniverInstanceType','Filter','set','UpdatePivotSource','filterInfo','Varp\x20of\x20','getFieldById','getPivotTableConfig','SetFieldFormat','getConfig','slice','Value','headerMap','getTextSize','sheet.mutation.add-pivot-table','updateCollectionConfig','getPivotTableIdByCell','entries','sheets-pivot.minName','LS_CONFIG_KEY','NotNumber','needSameDeleteModel','versions','FontCache','error','getFieldFormat','getEmptyPivotRanges','ClearSelectionAllCommand','interceptCommand','add','Expand','sheets-pivot.grandTotal','_getAutoName','next','removePivotTable','removeDataField','sheet.mutation.set-pivot-format','(Blank)','InsertSheetUndoMutationFactory','floor','getUnit','addCollectionByJSON','isArray','exports','substring','sheet.command.add-pivot-table','getUpdateRangeDeleteIds','startColumn','getFontStyleString','product','getDataFieldItemInfo','valueFields','collection','level','getFieldCountByArea','Sum\x20of\x20','MUTATION','textInfo','RefRangeService','subscribe','number','sheets-pivot.countName','getValuePosition','refreshDataField','_viewUpdate$','_configService','getMatrixValue','SheetInterceptorService','Grand\x20Total','UniverSheets','sheet.mutation.rename-pivot-field','rangeType','formJSON','_commandService','string','getPivotTableModelConfig','_refRangeService','collapseInfo','MovePivotFieldCommand','_queryingMap','UniverSheetsPivotTablePlugin','subUnitId','addExclusiveRange','isEmpty','_injector','existing','sideEffectUpdateWorkerCache','varp','COMMAND','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','createAsyncInterceptorKey','PivotFilterTypeEnum','getSubUnitPivotConfigs','UniverSheetsFilter','getValue','rxjs','sheets-pivot.productName','generateSetRangeValueMutations','UniverLicensePlugin','getDataFieldId','sheet.mutation.update-pivot-table-source-range','pivotTableIndexConfig','_initDataSendListener','update','movePivotField','fromJSON','ManualFilter','getFieldDataType','SetPivotPositionMutation','RemoveField','addDirtyPivotTable','unionPivotViewRange','range','leafStyle','#1d32e9','configVersion$','ptn','sheets-pivot.stdDevpName','getStyles','216195xYFpQI','setFilterInfo','_createExclusiveRange','getSheetCommandTarget','sheets-pivot.maxName','generateRandomId','IActiveDirtyManagerService','Optional','New','removeCollectionImp','getDirtyInfo','Plugin','rgb(240,241,243)','getRangeKeyList','240JKNCUK','uniqueDataFieldName','reduce','#eceeff','Delete','#FFFFFF','SHEET_PIVOT_TABLE_PLUGIN','SheetsPivotTableConfigModel','defineProperty','@univerjs/engine-formula','sheet.mutation.pivot-update-value-position','AddPivotTableWithConfig','Count\x20of\x20','sheet.command.set-pivot-collapse','1626488JFevLX','setSubtotalType','deleteUnitId','name','numberToABC','setRangeValueUndoMutation','1110480mFfmWp','fieldIds','unshiftString','setPivotInitCompleted','CellValueType','getDataFieldManager','getTextInfo','updatePivotSource','numfmt','unitId','sheet.command.update-pivot-table-source-range','getDisplayName','getDataFieldByDataFieldId','getNoUsedDataFieldIds','values','col','drillDown','getHeaderMapItem','targetCellInfo','getTargetByPivotTableId','getAutoDisplayNameFunction','FORCE_STRING','startCollectChangeset','forRow','getValueIndex','Column','_updateRenderEmptyCache','register','AddPivotTable','getId','_model','DEFAULT_WORKSHEET_ROW_COUNT','bind','SetSortInfo','UniverProLicense','getDataFieldBySourceName','areaInfo','executeCommand','setValue','getCurrentUnitForType','average','Var\x20of\x20','isNaN','sheets-pivot.stdDevName','dataRangeInfo','colHeaderMap','function','getCollection','_initSnapshot','replace','object','rangeKeyMap','sheets-pivot.blank','sheets-pivot.subTotal','REF','createCollectionWithDataRange','_ensurePivotMap','subTotalStyle','_host','sheet.command.move-pivot-table','hasOwnProperty','sheet.mutation.remove-pivot-field','_featureCalculationManagerService','fontRenderExtension','SetPivotSubtotalTypeMutation','_resourceManagerService','CELL_CONTENT','addRecord','PivotErrorTypeEnum','updateView','addFieldWithSourceId','clearRenderCache','createDataFieldId','sheet.mutation.send-pivot-config-local','get','DEFAULT_PIVOT_NUMBER','_subjectViewChange','getformat','Max\x20of\x20','transFromCellValue','CustomCommandExecutionError','cornerRanges','UpdateValuePosition','getIndexesByPathStr','sheet.command.pivot-drill-down','UpdatePivotTableSourceRangeMutation','SetWorksheetActiveOperation','Average\x20of\x20','version','getPivotTableRangeInfo','getFieldIds','colCount','setRangeKeyMap','sheet.mutation.set-pivot-field-subtotal-type','NO_COMMERCIAL','getRangeStartEndInfo','endColumn','PivotSubtotalTypeEnum','params','limit\x20pivot','DataSyncPrimaryController','workbook\x20is\x20not\x20found','isFeatureAuthorizedWithinTime','collections','serializeRangeWithSpreadsheet','lastRow','_initRemoveSheetCommandInterceptor','_generateUniqueVersion','setPivotTable','measure','sheetName','_sheetInterceptorService','getSheetBySheetId','disposeWithMe','collectionChange$','setPivotSort','stringify','notExecuteFormula','sheet.mutation.set-pivot-collapse','ErrorType','RemovePivotFieldMutation','ICommandService','sheet.operation.pivot-table-view-formula-mark-dirty','getPivotDisplayConfig','columnFields','random','reset','MAX_SAFE_INTEGER','onCommandExecuted','isErrorValue','forValue','SHEET_PIVOT_EXCLUSIVE_ID','getColumnCount','isDate','addPivotTableWithConfig','grandTotal','single','createInterceptorKey','Product\x20of\x20','@univerjs-pro/engine-pivot','asObservable','PivotDisplayDataType','sheets-pivot.varName','_collectionChange$','_init','rangesInfo','DataField','ReleaseType','viewData$','InsertSheetMutation','getRowCount','_updatePivotTableInstanceCache','token','generateNewSheetName','_requestResolvers','Values','sheets-pivot.emptyPivot.filter','defaultThemeStyle','find','rowRanges','IUniverInstanceService','DataFieldManager','_subjectCollectionChange','_ensurePivotTableRangeInfo','_getPivotAppliedRanges','_fieldsCollectionChange$','_textInfo','intercept','SheetsPivotTableAdaptorModel','Set','ClearSelectionContentCommand','SheetsPivotDataSourceModel','_univerInstanceService','PivotViewCellValueTypeEnum','getPivotTableCellData','getPivotPerformCheck','getUnitId','info','LocaleService','sheets-pivot.varpName','4821425UQwwTc','Tools','matrix','InsertRowMutation','SheetsPivotTableService','UNIVER_SHEET','RenamePivotFieldMutation','cornerStyle','sheets-pivot.emptyPivot.row','updatePivotTableMatrixInfo','dimension','CommandType','_pivotRenderInfoCache','viewUpdate$','isPrefixValue','RenameField','setOptions','addPivotField','parseInt','setFieldFormat','sheet.mutation.add-pivot-field','query','addField','NAME','SetPivotFilter','IConfigService','SetPivotSort','_localeService','return\x20','PivotView','rowHeaderMap','getRangeKey','283892kLuPdj','cellValue','#e6ebfa','_pivotTableRangeInfo','handleAsyncResponse','new','_pivotConfigChange$','originTargetInfo','15dboaEx','SetPivotFilterMutation','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','getInfo'];_0x27db=function(){return _0x24e1c0;};return _0x27db();}function _0x58b3(_0x11bb5f,_0x21e2f9){const _0x27dba6=_0x27db();return _0x58b3=function(_0x58b381,_0x450cf9){_0x58b381=_0x58b381-0xcb;let _0x1762d4=_0x27dba6[_0x58b381];return _0x1762d4;},_0x58b3(_0x11bb5f,_0x21e2f9);}(function(_0x4f0ac7,_0x3d639c){const _0x4f6bcb=_0x58b3,_0x4bf277=_0x4f0ac7();while(!![]){try{const _0x4b9788=-parseInt(_0x4f6bcb(0x28a))/0x1*(parseInt(_0x4f6bcb(0x1c8))/0x2)+-parseInt(_0x4f6bcb(0x1d0))/0x3*(-parseInt(_0x4f6bcb(0x2b2))/0x4)+parseInt(_0x4f6bcb(0xd2))/0x5*(parseInt(_0x4f6bcb(0xe0))/0x6)+-parseInt(_0x4f6bcb(0x1a8))/0x7+-parseInt(_0x4f6bcb(0xee))/0x8*(-parseInt(_0x4f6bcb(0x216))/0x9)+parseInt(_0x4f6bcb(0x2a2))/0xa*(parseInt(_0x4f6bcb(0x291))/0xb)+parseInt(_0x4f6bcb(0xf4))/0xc;if(_0x4b9788===_0x3d639c)break;else _0x4bf277['push'](_0x4bf277['shift']());}catch(_0x144c13){_0x4bf277['push'](_0x4bf277['shift']());}}}(_0x27db,0xea284),function(_0x5687be,_0x50c553){const _0x1d3561=_0x58b3;typeof exports==_0x1d3561(0x126)&&typeof module<'u'?_0x50c553(exports,require(_0x1d3561(0x17f)),require('@univerjs/core'),require(_0x1d3561(0xe9)),require(_0x1d3561(0x1e6)),require(_0x1d3561(0x37d)),require(_0x1d3561(0x309)),require(_0x1d3561(0x2e3)),require(_0x1d3561(0x1f4)),require(_0x1d3561(0x30b))):typeof define==_0x1d3561(0x122)&&define['amd']?define([_0x1d3561(0x349),_0x1d3561(0x17f),_0x1d3561(0x306),'@univerjs/engine-formula','@univerjs/sheets',_0x1d3561(0x37d),_0x1d3561(0x309),'@univerjs/sheets-filter',_0x1d3561(0x1f4),_0x1d3561(0x30b)],_0x50c553):(_0x5687be=typeof globalThis<'u'?globalThis:_0x5687be||self,_0x50c553(_0x5687be['UniverProSheetsPivot']={},_0x5687be['UniverProEnginePivot'],_0x5687be['UniverCore'],_0x5687be['UniverEngineFormula'],_0x5687be[_0x1d3561(0x363)],_0x5687be[_0x1d3561(0x37d)],_0x5687be[_0x1d3561(0x116)],_0x5687be[_0x1d3561(0x37b)],_0x5687be[_0x1d3561(0x2ef)],_0x5687be['UniverEngineRender']));}(this,function(_0x263ce9,_0x57400a,_0x5e852f,_0x4f0edc,_0x114012,_0x29847b,_0x4c185a,_0x55b710,_0x332bf8,_0x377545){'use strict';const _0x182aea=_0x58b3;var _0x5d761c=Object['defineProperty'],_0x451e3e=(_0x1fc135,_0x2e1ad3,_0x2d22df)=>_0x2e1ad3 in _0x1fc135?_0x5d761c(_0x1fc135,_0x2e1ad3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2d22df}):_0x1fc135[_0x2e1ad3]=_0x2d22df,_0x53fb96=(_0x28d634,_0x532cd8,_0x11f0c4)=>_0x451e3e(_0x28d634,typeof _0x532cd8!='symbol'?_0x532cd8+'':_0x532cd8,_0x11f0c4);const _0x5acfd0=Number[_0x182aea(0x1ba)](0x678e4968),_0x498f18=0x10,_0x5654ca=0x1,_0x20b0ef='SHEET_PIVOT_TABLE_PLUGIN',_0x36909d=0x1,_0x38ff74=_0x182aea(0xde),_0x2935bd='rgb(255,255,255)',_0x5c08c4='#b2b2b2',_0x156345=_0x182aea(0x227),_0x311c6e=_0x182aea(0x227),_0x330b94=_0x182aea(0xe3),_0x11fc37=_0x182aea(0xcd),_0x3f67a8=_0x182aea(0xe5),_0x4f8d7f=_0x182aea(0x1ca),_0x41e0ce=_0x182aea(0xcd),_0x528266=_0x182aea(0xe5),_0x29c789='#e6ebfb',_0x172c35=0xe,_0x3ba579=0x6;var _0x3f6a00=(_0x1cb6f5=>(_0x1cb6f5['Existing']=_0x182aea(0x373),_0x1cb6f5['New']=_0x182aea(0x1cd),_0x1cb6f5))(_0x3f6a00||{});const _0x162294={'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':''}}},_0x57a027=0x1e,_0x34c544={'b':{'s':0x1,'cl':{'rgb':_0x5c08c4}},'l':{'s':0x1,'cl':{'rgb':_0x5c08c4}},'r':{'s':0x1,'cl':{'rgb':_0x5c08c4}},'t':{'s':0x1,'cl':{'rgb':_0x5c08c4}}},_0x4901ed={'bg':{'rgb':_0x38ff74},'ht':0x2,'vt':0x2,'tb':0x1},_0x22daee={'bg':{'rgb':_0x2935bd},'ht':0x2,'vt':0x2,'tb':0x1},_0x4c691c={'rowStyle':{'bg':{'rgb':_0x29c789},'bd':_0x34c544,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x41e0ce},'bd':null,'cl':{'rgb':_0x528266},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x34c544,'bg':{'rgb':_0x4f8d7f},'vt':0x2},'cornerStyle':{'bd':_0x34c544,'bg':{'rgb':_0x330b94},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x34c544,'bg':{'rgb':_0x156345},'vt':0x2},'leafStyle':{'bd':_0x34c544,'bg':{'rgb':_0x311c6e},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x11fc37},'cl':{'rgb':_0x3f67a8},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x34c544,'vt':0x2}},_0x46bc9a=(_0x4c4049,_0x4851aa,_0x4e4a58)=>{const _0x2f9034=_0x182aea;let _0xe02b46;const _0x394312=_0x4c4049[_0x2f9034(0x13e)](_0x5e852f[_0x2f9034(0x194)])[_0x2f9034(0x11b)](_0x5e852f[_0x2f9034(0x31e)][_0x2f9034(0x1ad)]);if(!_0x394312)return null;const _0x352b52=_0x394312[_0x2f9034(0xd1)]();let _0x5d4d63;if(_0x4e4a58&&(_0x5d4d63=_0x352b52[_0x2f9034(0x11a)](_0x4e4a58)),_0x4851aa!=null&&_0x4851aa['v']||(_0x4851aa==null?void 0x0:_0x4851aa['v'])===0x0){_0xe02b46||(_0xe02b46={});const _0x12c550=_0x2fdd0f(_0x4851aa['v']);typeof _0x12c550==_0x2f9034(0x35a)?_0xe02b46['t']=_0x5e852f[_0x2f9034(0xf8)][_0x2f9034(0x1f6)]:typeof _0x12c550==_0x2f9034(0x368)&&(_0xe02b46['t']=_0x5e852f[_0x2f9034(0xf8)][_0x2f9034(0x23c)]),_0xe02b46['v']=_0x12c550;}return(_0x4851aa!=null&&_0x4851aa['i']||(_0x4851aa==null?void 0x0:_0x4851aa['i'])===0x0)&&(_0xe02b46||(_0xe02b46={}),_0xe02b46['fi']=_0x4851aa['i']),_0x4851aa!=null&&_0x4851aa['s']&&(_0xe02b46||(_0xe02b46={}),_0xe02b46[_0x2f9034(0x296)]=_0x4851aa['s']),_0x4e4a58&&(_0xe02b46||(_0xe02b46={}),_0xe02b46['s']=_0x5d4d63),_0xe02b46;},_0x326673=(_0x188a92,_0x430ffe,_0x52dbc2,_0x562b9c)=>{const _0x22624c=_0x182aea;var _0x476754,_0x385a04,_0x2037a8,_0x4e7ce6,_0x263e5c,_0x1e6cee,_0x43c962,_0x33efe7,_0x3579b7,_0x3d3fbf,_0x4e52f4,_0x460bb8,_0x1d1be9,_0x343a37;const _0xa54866=_0x52dbc2[_0x22624c(0x106)],{cornerView:_0x45ec1d,rowView:_0x537dad,colView:_0x29f86c,dataView:_0x2ed101,pageView:_0x4d56cd,formatMap:_0x10ecbf}=_0x430ffe,{row:_0x4aa8d5,col:_0x1ff29a}=_0xa54866,_0x219e9e=new _0x5e852f[(_0x22624c(0x2da))](),_0x166d49={},_0x9cac9f={},_0x11808d={},_0x59b0e8={},_0x505dc2={};let _0x62f6b=_0x4aa8d5,_0x2727bf=_0x1ff29a;Object[_0x22624c(0x2ce)](_0x4d56cd[_0x22624c(0x2dd)])[_0x22624c(0x1f1)](_0x2f8ab5=>{const _0x4bfaf0=_0x22624c;Object[_0x4bfaf0(0x2ce)](_0x4d56cd['data'][Number(_0x2f8ab5)])[_0x4bfaf0(0x1f1)](_0x4bed67=>{const _0x59997f=_0x4bfaf0,_0x1fddfa={..._0x4d56cd[_0x59997f(0x2dd)][Number(_0x2f8ab5)][Number(_0x4bed67)]};_0x219e9e[_0x59997f(0x11a)](Number(_0x2f8ab5)+_0x62f6b,Number(_0x4bed67)+_0x2727bf,_0x46bc9a(_0x188a92,_0x1fddfa,_0x4c691c[_0x59997f(0x21d)]));});});const _0x2cc59a=Object['keys'](_0x4d56cd[_0x22624c(0x2dd)])[_0x22624c(0x2c9)];_0x62f6b+=_0x2cc59a+(_0x2cc59a?_0x36909d:0x0);const _0x5cbf4b=_0x45ec1d['getRowCount'](),_0x1dcbc8=_0x45ec1d['getColCount']();for(let _0x591123=0x0;_0x591123<_0x5cbf4b;_0x591123++)for(let _0x5bd29c=0x0;_0x5bd29c<_0x1dcbc8;_0x5bd29c++){const _0x39fa64={...(_0x385a04=(_0x476754=_0x45ec1d[_0x22624c(0x2dd)])==null?void 0x0:_0x476754[_0x591123])==null?void 0x0:_0x385a04[_0x5bd29c]};((_0x2037a8=_0x537dad['headerMap'][_0x5bd29c])==null?void 0x0:_0x2037a8[_0x22624c(0x26c)])&&_0x5bd29c===_0x1dcbc8-0x1&&_0x591123===_0x5cbf4b-0x1&&(_0x39fa64['v']=''+_0x562b9c[_0x22624c(0x1d4)]),_0x219e9e[_0x22624c(0x11a)](_0x591123+_0x62f6b,_0x5bd29c+_0x2727bf,_0x46bc9a(_0x188a92,_0x39fa64,_0x4c691c[_0x22624c(0x1af)]));}for(let _0x3aa497=0x0;_0x3aa497<_0x45ec1d[_0x22624c(0x1a5)][_0x22624c(0x2c9)];_0x3aa497++)_0x45ec1d[_0x22624c(0x1a5)][_0x3aa497]&&(_0x11808d[''+(_0x3aa497+_0x2727bf)]=_0x45ec1d['info'][_0x3aa497]);_0x2727bf+=_0x1dcbc8;const _0x5bcbf1=_0x29f86c[_0x22624c(0x32a)],_0x888bc=_0x29f86c[_0x22624c(0x2c4)]()>=0x0?_0x29f86c[_0x22624c(0x2c4)]()+0x1:0x0,_0x1d08c5=_0x29f86c['getLastCol']()>=0x0?_0x29f86c['getLastCol']()+0x1:0x0;for(let _0x576ab9=0x0;_0x576ab9<_0x1d08c5;_0x576ab9++){for(let _0x10d660=0x0;_0x10d660<_0x888bc;_0x10d660++){const _0x4cf1ba={...(_0x263e5c=(_0x4e7ce6=_0x29f86c[_0x22624c(0x2dd)])==null?void 0x0:_0x4e7ce6[_0x10d660])==null?void 0x0:_0x263e5c[_0x576ab9]},_0x5a2090=(_0x1e6cee=_0x5bcbf1[_0x10d660])==null?void 0x0:_0x1e6cee[_0x22624c(0x220)],_0x51beee=_0x10ecbf[_0x5a2090];_0x4cf1ba['v']=_0x250ad2(_0x4cf1ba,_0x10d660===0x0&&((_0x43c962=_0x29f86c[_0x22624c(0x105)](_0x576ab9+0x1))==null?void 0x0:_0x43c962['isValue']),_0x51beee,_0x562b9c);let _0x13977d;_0x51beee?_0x13977d={..._0x4c691c[_0x22624c(0x25a)],'n':{'pattern':_0x51beee}}:_0x13977d={..._0x4c691c[_0x22624c(0x25a)]},_0x219e9e[_0x22624c(0x11a)](_0x10d660+_0x62f6b,_0x576ab9+_0x2727bf,_0x46bc9a(_0x188a92,_0x4cf1ba,_0x13977d));}_0x29f86c[_0x22624c(0x1a5)][_0x576ab9]&&(_0x9cac9f[''+(_0x576ab9+_0x2727bf)]=_0x29f86c['info'][_0x576ab9]),_0x29f86c['headerMap'][_0x576ab9+0x1]&&(_0x505dc2[''+(_0x576ab9+_0x62f6b+0x1)]=_0x29f86c[_0x22624c(0x32a)][_0x576ab9+0x1]);}_0x62f6b+=_0x5cbf4b;const _0x250f13=_0x537dad[_0x22624c(0x32a)],_0x20b3ba=_0x537dad[_0x22624c(0x2c4)]()>=0x0?_0x537dad[_0x22624c(0x2c4)]()+0x1:0x0,_0x3a30a0=_0x537dad[_0x22624c(0x232)]()>=0x0?_0x537dad[_0x22624c(0x232)]()+0x1:0x0;for(let _0x338ebe=0x0;_0x338ebe<_0x20b3ba;_0x338ebe++){for(let _0x2328c5=0x0;_0x2328c5<_0x3a30a0;_0x2328c5++){const _0x280d99={...(_0x3579b7=(_0x33efe7=_0x537dad['data'])==null?void 0x0:_0x33efe7[_0x338ebe])==null?void 0x0:_0x3579b7[_0x2328c5]},_0x4c58b9=(_0x3d3fbf=_0x250f13[_0x2328c5])==null?void 0x0:_0x3d3fbf[_0x22624c(0x220)],_0x5d0472=_0x10ecbf[_0x4c58b9];_0x280d99['v']=_0x250ad2(_0x280d99,!0x1,_0x5d0472,_0x562b9c);let _0x571ada;_0x537dad[_0x22624c(0x1a5)][_0x338ebe]['level']===_0x537dad[_0x22624c(0x2dc)]()?_0x571ada=_0x4c691c[_0x22624c(0xcc)]:_0x537dad['info'][_0x338ebe][_0x22624c(0x24a)]?_0x571ada=_0x537dad[_0x22624c(0x1a5)][_0x338ebe][_0x22624c(0x353)]===0x0?_0x4c691c['grandTotal']:_0x4c691c[_0x22624c(0x12d)]:_0x571ada=_0x4c691c[_0x22624c(0x224)],_0x5d0472&&(_0x571ada={..._0x571ada,'n':{'pattern':_0x5d0472}}),_0x219e9e[_0x22624c(0x11a)](_0x338ebe+_0x62f6b,_0x2328c5+_0x1ff29a,_0x46bc9a(_0x188a92,_0x280d99,_0x571ada));}_0x537dad[_0x22624c(0x1a5)][_0x338ebe]&&(_0x166d49[''+(_0x338ebe+_0x62f6b)]=_0x537dad[_0x22624c(0x1a5)][_0x338ebe]),_0x537dad[_0x22624c(0x32a)][_0x338ebe]&&(_0x59b0e8[''+(_0x338ebe+_0x1ff29a)]=_0x537dad['headerMap'][_0x338ebe]);}const _0x553b80=_0x2ed101[_0x22624c(0x18a)](),_0x2ad87f=_0x2ed101[_0x22624c(0x2dc)]();for(let _0x22bb7c=0x0;_0x22bb7c<_0x553b80;_0x22bb7c++)for(let _0x5ab4b3=0x0;_0x5ab4b3<_0x2ad87f;_0x5ab4b3++){const _0x3f9c8a={...(_0x460bb8=(_0x4e52f4=_0x2ed101['data'])==null?void 0x0:_0x4e52f4[_0x22bb7c])==null?void 0x0:_0x460bb8[_0x5ab4b3]};let _0x2ff9ff;_0x537dad[_0x22624c(0x1a5)][_0x22bb7c]['isBottomTotal']?_0x2ff9ff=_0x537dad['info'][_0x22bb7c][_0x22624c(0x353)]===0x0?_0x4c691c[_0x22624c(0x17b)]:_0x4c691c[_0x22624c(0x12d)]:_0x2ff9ff=_0x4c691c[_0x22624c(0x24d)];const _0x5148ed=_0x537dad[_0x22624c(0x1a5)][_0x22bb7c]['valueIndex'],_0x42c71a=_0x29f86c[_0x22624c(0x1a5)][_0x5ab4b3][_0x22624c(0x1f8)],_0x465838=Math[_0x22624c(0x2f4)](_0x5148ed,_0x42c71a),_0x5afc34=_0x52dbc2['fieldsConfig'][_0x22624c(0x351)]['concat']();let _0x41a8a1='';_0x465838<0x0?_0x41a8a1=(_0x1d1be9=_0x5afc34[0x0])!=null?_0x1d1be9:'':_0x41a8a1=(_0x343a37=_0x5afc34[_0x465838])!=null?_0x343a37:'';const _0x3daf0a=_0x10ecbf[_0x41a8a1];_0x3daf0a&&(_0x2ff9ff={..._0x2ff9ff,'n':{'pattern':_0x3daf0a}}),_0x219e9e[_0x22624c(0x11a)](_0x22bb7c+_0x62f6b,_0x5ab4b3+_0x2727bf,_0x46bc9a(_0x188a92,_0x3f9c8a,_0x2ff9ff));}return{'valueMatrix':_0x219e9e,'rowInfo':_0x166d49,'colInfo':_0x9cac9f,'cornerInfo':_0x11808d,'rowHeaderMap':_0x59b0e8,'colHeaderMap':_0x505dc2};};function _0x250ad2(_0x2f0fed,_0x36f728,_0x494782,_0x51bfd3){const _0x34ba6d=_0x182aea;let _0x1d4a45=_0x2f0fed['v'];_0x36f728&&(_0x1d4a45=''+_0x51bfd3[_0x34ba6d(0x1d4)]);const _0x3f8977=_0x2f0fed['t']&&(_0x2f0fed['t']&_0x57400a[_0x34ba6d(0x1a1)][_0x34ba6d(0x2f9)])>0x0;if(_0x3f8977&&(_0x1d4a45=''+_0x51bfd3[_0x34ba6d(0x128)]),_0x2f0fed['s']===_0x57400a[_0x34ba6d(0x217)]['Subtotal']){let _0x56e92f=_0x1d4a45,_0x3a155e='';_0x57400a[_0x34ba6d(0x1b6)](_0x1d4a45)&&(_0x56e92f=_0x1d4a45[_0x34ba6d(0x218)],_0x3a155e=_0x1d4a45[_0x34ba6d(0x271)]);const _0x526d79=_0x494782&&!_0x3f8977?_0x5e852f[_0x34ba6d(0xfc)][_0x34ba6d(0x250)](_0x494782,Number(_0x56e92f)):_0x56e92f;_0x3a155e?_0x1d4a45=_0x526d79+'\x20'+_0x3a155e:_0x1d4a45=_0x526d79+'\x20'+_0x51bfd3[_0x34ba6d(0x129)];}else _0x2f0fed['s']===_0x57400a[_0x34ba6d(0x217)][_0x34ba6d(0x239)]&&(_0x1d4a45=_0x1d4a45+'\x20'+_0x51bfd3[_0x34ba6d(0x33d)]);return _0x1d4a45;}function _0x2fdd0f(_0x3c204b){const _0x281433=_0x182aea;if(_0x57400a[_0x281433(0x175)](_0x3c204b)){const {errorType:_0x4231ed}=_0x3c204b;switch(_0x4231ed){case _0x57400a[_0x281433(0x138)][_0x281433(0x1fd)]:return _0x4f0edc[_0x281433(0x16b)]['DIV_BY_ZERO'];case _0x57400a[_0x281433(0x138)][_0x281433(0x332)]:return _0x4f0edc[_0x281433(0x16b)]['NUM'];case _0x57400a[_0x281433(0x138)]['NotFunction']:return _0x4f0edc[_0x281433(0x16b)][_0x281433(0x1bf)];case _0x57400a[_0x281433(0x138)]['NotName']:return _0x4f0edc[_0x281433(0x16b)]['NAME'];case _0x57400a[_0x281433(0x138)]['BadReference']:return _0x4f0edc[_0x281433(0x16b)][_0x281433(0x12a)];}}return _0x3c204b;}function _0x59dbf1(_0x2236d1,_0x47ffae,_0x1bb43f=!0x1,_0x29845d=!0x1){const _0x1636e8=_0x182aea,{data:_0x1cada8}=_0x47ffae,_0x12ef7d=_0x47ffae['getRowCount'](),_0x292cdf=_0x47ffae['getColCount']();if(_0x12ef7d<=0x0||_0x292cdf<=0x0)return[];const _0x5cc544=_0x47ffae[_0x1636e8(0x232)](),_0x7a2db0=_0x47ffae['getLastRow'](),_0x2738f7=_0x29845d?_0x7a2db0>=0x0?_0x7a2db0+0x1:0x0:_0x12ef7d,_0x1e30a8=_0x29845d?_0x5cc544>=0x0?_0x5cc544+0x1:0x0:_0x292cdf,{row:_0x5a7eb8,col:_0x4861fa}=_0x2236d1,_0x2520a1=_0x5a7eb8,_0x411dc4=_0x4861fa;if(_0x1bb43f){const _0x1096d7=[];for(const [_0x367584,_0x85239]of Object[_0x1636e8(0x32f)](_0x1cada8))for(const [_0x11d2d2,_0x4a474a]of Object[_0x1636e8(0x32f)](_0x85239))_0x1096d7[_0x1636e8(0x2d8)](_0x5e852f[_0x1636e8(0x31a)](_0x2520a1+Number(_0x367584),_0x411dc4+Number(_0x11d2d2)));return _0x1096d7;}else{const _0xacc2d5=_0x29845d?_0x2738f7>0x0?0x1:0x0:0x1,_0x68dcd3=_0x29845d?_0x1e30a8>0x0?0x1:0x0:0x1,_0x4f6764=_0x5a7eb8+_0x2738f7-_0xacc2d5,_0x45f4b4=_0x4861fa+_0x1e30a8-_0x68dcd3;return[{'startRow':_0x2520a1,'startColumn':_0x411dc4,'endRow':_0x4f6764,'endColumn':_0x45f4b4}];}}const _0x543aca='SHEET_PIVOT_IN_MAIN_THREAD',_0x49d791=_0x182aea(0x177);var _0x4b4d23=(_0x2e5e0a=>(_0x2e5e0a['Filter']=_0x182aea(0x240),_0x2e5e0a['Panel']=_0x182aea(0x25e),_0x2e5e0a[_0x182aea(0x2c8)]=_0x182aea(0x1b9),_0x2e5e0a['AddPivotTableWithConfig']=_0x182aea(0xeb),_0x2e5e0a[_0x182aea(0x110)]=_0x182aea(0x246),_0x2e5e0a[_0x182aea(0x2a0)]=_0x182aea(0x386),_0x2e5e0a[_0x182aea(0x2ba)]=_0x182aea(0x200),_0x2e5e0a[_0x182aea(0x1f3)]=_0x182aea(0x247),_0x2e5e0a['SetPivotFilter']=_0x182aea(0x2d4),_0x2e5e0a['SetPivotSort']=_0x182aea(0x167),_0x2e5e0a[_0x182aea(0x25d)]=_0x182aea(0x22c),_0x2e5e0a[_0x182aea(0x321)]=_0x182aea(0xfb),_0x2e5e0a[_0x182aea(0x146)]=_0x182aea(0x29d),_0x2e5e0a[_0x182aea(0x21f)]=_0x182aea(0x104),_0x2e5e0a))(_0x4b4d23||{});const _0x5e537d={'sheets-pivot.blankValue':_0x182aea(0x343),'sheets-pivot.columnName':'Column\x20','sheets-pivot.subTotalText':_0x182aea(0x1fa),'sheets-pivot.grandTotalText':_0x182aea(0x362),'sheets-pivot.valueText':_0x182aea(0x329),'sheets-pivot.averageName':_0x182aea(0x14b),'sheets-pivot.countName':'Count\x20of\x20','sheets-pivot.countNumsName':_0x182aea(0xec),'sheets-pivot.maxName':_0x182aea(0x142),'sheets-pivot.minName':'Min\x20of\x20','sheets-pivot.productName':_0x182aea(0x17e),'sheets-pivot.stdDevName':_0x182aea(0x1e3),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x182aea(0x355),'sheets-pivot.varName':_0x182aea(0x11d),'sheets-pivot.varpName':_0x182aea(0x323),'sheets-pivot.subTotal':'Subtotal','sheets-pivot.grandTotal':_0x182aea(0x362),'sheets-pivot.value':_0x182aea(0x271),'sheets-pivot.blank':_0x182aea(0x2f9),'sheets-pivot.emptyPivot.filter':_0x182aea(0x31f),'sheets-pivot.emptyPivot.row':'Row','sheets-pivot.emptyPivot.column':_0x182aea(0x10d),'sheets-pivot.emptyPivot.values':'Values'},_0x562c83={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x5d2f76=_0x5e852f[_0x182aea(0x378)]('pivotPerformCheck'),_0x42b52c=_0x5e852f[_0x182aea(0x17d)]('pivotMutationGenerate');var _0x29c238=(_0x333daf=>(_0x333daf[_0x182aea(0x33b)]='add',_0x333daf[_0x182aea(0x2bc)]=_0x182aea(0x2bc),_0x333daf['update']=_0x182aea(0x385),_0x333daf))(_0x29c238||{}),_0x4d6445=(_0x225b3a=>(_0x225b3a[_0x182aea(0x1e7)]=_0x182aea(0x33b),_0x225b3a[_0x182aea(0x19d)]='set',_0x225b3a['Delete']=_0x182aea(0x2bc),_0x225b3a))(_0x4d6445||{});const _0x551ddf={0x0:'d',0x1:'2',0x2:'j',0x3:'N',0x4:'J',0x5:'i',0x6:'s',0x7:'o',0x8:'8',0x9:'C','k':'0','T':'1','m':'3','y':'4','M':'5','Q':'6','L':'7','A':'9','t':'a','p':'b','J':'c','o':'e','z':'f','G':'g','E':'h','W':'k','r':'l','V':'m','S':'n','d':'p','D':'q','H':'r','B':'t','Y':'u','g':'v','j':'w','n':'x','x':'y','c':'z','K':'A','N':'B','w':'D','R':'E','X':'F','Z':'G','P':'H','U':'I','u':'K','C':'L','f':'M','l':'O','b':'P','v':'Q','h':'R','e':'S','s':'T','O':'U','a':'V','q':'W','I':'X','F':'Y','i':'Z'},_0x41606f='zYSJB57S\x200oJHxdB57S(r5JoS6o,\x20dYpr5Juox)\x20{\x20\x20\x20\x20BHx\x20{\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20r5JoS6oUSz7btHBKHHtx\x20=\x20r5JoS6o.6dr5B(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x207H5G5Sfo66tGo\x20=\x204el3.dtH6o(tB7p(r5JoS6oUSz7btHBKHHtx[1]));\x20\x20\x20\x20\x20\x20\x20\x205z\x20(!7H5G5Sfo66tGo.Y0)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x207H5G5Sfo66tGo.Y0\x20=\x203YVpoH(r5JoS6oUSz7btHBKHHtx[y]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x2056q7HWoH\x20=\x20Bxdo7z\x20q7HWoHZr7ptreJ7do\x20!==\x20\x27YS0oz5So0\x27\x20&&\x206orz\x205S6BtSJo7z\x20q7HWoHZr7ptreJ7do;\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20J7SBonB\x20=\x2056q7HWoH\x20?\x206orz\x20:\x20j5S07j;\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20Vo66tGoq7H0\x20=\x20J7SBonB.__Nt6oQy__.dtH6o(r5JoS6oUSz7btHBKHHtx[1]);\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20Vo66tGo\x20=\x20J7SBonB.__Pon__.6BH5SG5zx(Vo66tGoq7H0);\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x2065GStBYHoq7H0\x20=\x20J7SBonB.__Nt6oQy__.dtH6o(r5JoS6oUSz7btHBKHHtx[m]);\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x2065GStBYHo\x20=\x20J7SBonB.__Pon__.6BH5SG5zx(65GStBYHoq7H0);\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x2065GSatr50\x20=\x20J7SBonB.__goH5zx__(65GStBYHo,\x20Vo66tGo,\x20dYpr5Juox);\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x2007Vt5S\x20=\x207H5G5Sfo66tGo.0V;\x20\x20\x20\x20\x20\x20\x20\x20zYSJB57S\x2056w7Vt5SftBJE5SG(7btBBoHS,\x207P76B)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20dtBBoHS\x20=\x207btBBoHS.HodrtJo(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20E76B\x20=\x207P76B.HodrtJo(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20dtBBoHSbtHB6\x20=\x20dtBBoHS.6dr5B(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20E76BbtHB6\x20=\x20E76B.6dr5B(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x205z\x20(!dtBBoHS.5SJrY0o6(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HoBYHS\x20dtBBoHS\x20===\x20E76B;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x205z\x20(dtBBoHSbtHB6.roSGBE\x20<\x201\x20||\x20dtBBoHSbtHB6[k]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HoBYHS\x20ztr6o;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20dtBBoHSeYzz5n\x20=\x20dtBBoHSbtHB6.6r5Jo(T).275S(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20E76BeYzz5n\x20=\x20E76BbtHB6.6r5Jo(-dtBBoHSbtHB6.roSGBE\x20+\x20T).275S(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20HoBYHS\x20dtBBoHSeYzz5n\x20===\x20E76BeYzz5n;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20roB\x2007Vt5Satr50\x20=\x20(07Vt5S\x20&&\x2007Vt5S.roSGBE)\x20?\x2007Vt5S.67Vo((0VUBoV)\x20=>\x2056w7Vt5SftBJE5SG(0VUBoV,\x20r7JtB57S.E76BStVo))\x20:\x20BHYo;\x20\x20\x20\x20\x20\x20\x20\x205z\x20(r7JtB57S.E76BStVo\x20===\x20\x27r7JtrE76B\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x2007Vt5Satr50\x20=\x20BHYo;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20J7S6B\x20gtr50\x20=\x2065GSatr50\x20&&\x2007Vt5Satr50;\x20\x20\x20\x20\x20\x20\x20\x20HoBYHS\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gtr50,\x20Vo66tGo:\x207H5G5Sfo66tGo,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20JtBJE\x20(oHH7H)\x20{\x20\x20\x20\x20\x20\x20\x20\x20HoBYHS\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20gtr50:\x20ztr6o,\x20Vo66tGo:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}',_0x46d7ec={'type':_0x5e852f[_0x182aea(0x1b3)]['MUTATION'],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},_0x446be6={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x1e5),'handler':()=>!0x0},_0xe83f7f={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x312),'handler':()=>!0x0},_0x6853d5={'type':_0x5e852f[_0x182aea(0x1b3)]['MUTATION'],'id':_0x182aea(0x13d),'handler':()=>!0x0},_0x13f2fe={'type':_0x5e852f['CommandType'][_0x182aea(0x356)],'id':_0x182aea(0x2be),'handler':()=>!0x0},_0x9e7219=_0x4768ae=>{const _0x1200d4=_0x182aea;var _0x1098de;return((_0x1098de=_0x4768ae['body'])==null?void 0x0:_0x1098de['dataStream'][_0x1200d4(0x125)](/\r\n$/,''))||'';};class _0x2e4601 extends _0x57400a[_0x182aea(0x195)]{constructor(_0x289c77,_0x578f73){const _0x1ae653=_0x182aea;super(),_0x53fb96(this,'rangeKeyMap',{}),_0x53fb96(this,'_univerInstanceService'),_0x53fb96(this,_0x1ae653(0x12e)),(this['_univerInstanceService']=_0x578f73,this[_0x1ae653(0x12e)]=_0x289c77);}[_0x182aea(0x1ea)](){const _0x1c3c7a=_0x182aea;for(const _0xd2ef0c in this['dataFields']){const _0x3f6ab5=this[_0x1c3c7a(0x2a9)][_0xd2ef0c],_0x27a124=_0x3f6ab5[_0x1c3c7a(0x1c7)]();this['rangeKeyMap'][_0x27a124]=_0x3f6ab5['getId']();}}[_0x182aea(0x108)](){const _0x533a5c=_0x182aea,_0x249e8a=this[_0x533a5c(0x12e)];return _0x46f018[_0x533a5c(0x114)](_0x249e8a);}[_0x182aea(0x267)](_0x24fe17){const _0x3776c7=_0x182aea,_0x58dc5c=this[_0x3776c7(0x2a9)][_0x24fe17][_0x3776c7(0x269)];delete this[_0x3776c7(0x2a9)][_0x24fe17],delete this[_0x3776c7(0x127)][_0x58dc5c];}[_0x182aea(0xdb)](_0x413c55){const _0x3a75a3=_0x182aea;var _0x3ad23b,_0x58b559;const _0x47fe35=this[_0x3a75a3(0x12e)][_0x3a75a3(0x24e)](_0x413c55);if(_0x47fe35){const {unitId:_0x54bec4,subUnitId:_0x5a475b}=_0x47fe35,_0x2710f3=(_0x3ad23b=this[_0x3a75a3(0x12e)]['getPivotTableConfig'](_0x54bec4,_0x5a475b,_0x413c55))==null?void 0x0:_0x3ad23b[_0x3a75a3(0x252)];this[_0x3a75a3(0x12e)]['broadcastCollectionChange']({'token':_0x413c55,'type':_0x29c238[_0x3a75a3(0x2bc)],'dataRangeInfo':_0x2710f3});}(_0x58b559=this['getCollection'](_0x413c55))==null||_0x58b559[_0x3a75a3(0x1f5)](),delete this['collections'][_0x413c55];}['getRangeKey'](_0x575a2c,_0x5791cf){const _0x5c484c=_0x182aea,{sheetName:_0x58330f,unitId:_0x5ac6a2,range:_0x4be106}=_0x575a2c,{startRow:_0x34eb49,endRow:_0x534534}=_0x4be106;return _0x4f0edc[_0x5c484c(0x15c)](_0x5ac6a2,_0x58330f,{'startRow':_0x34eb49,'endRow':_0x534534,'startColumn':_0x5791cf,'endColumn':_0x5791cf});}[_0x182aea(0x21e)](_0x54e254){const _0x2b545c=_0x182aea;return this[_0x2b545c(0x2a9)][this[_0x2b545c(0x127)][_0x54e254]];}[_0x182aea(0x150)](_0x37315a,_0x41ef45){const _0x1d217e=_0x182aea;this[_0x1d217e(0x127)][_0x37315a]=_0x41ef45;}['updateRangeKeyMap'](_0x8cf85b,_0x164904){const _0x17cccb=_0x182aea;this[_0x17cccb(0x127)][_0x164904]=this['rangeKeyMap'][_0x8cf85b],delete this[_0x17cccb(0x127)][_0x8cf85b];}[_0x182aea(0x347)](_0x1332ad,_0x3e715d,_0x33887f,_0x5d22dc){const _0x49af2d=_0x182aea,_0x3f37fc=new _0x57400a['FieldsCollection'](this);_0x3f37fc['fromJSON'](_0x3e715d);const _0x5e8d02=[];let _0x1449d0=0x0;for(const _0x3b3cc4 of _0x3f37fc[_0x49af2d(0xf5)]){const _0x48fe45=this[_0x49af2d(0x1c7)](_0x33887f,_0x1449d0),_0x351e68=this[_0x49af2d(0x2a9)][_0x3b3cc4];_0x351e68&&(_0x351e68[_0x49af2d(0x269)]=_0x48fe45,this[_0x49af2d(0x150)](_0x48fe45,_0x3b3cc4),_0x5e8d02[_0x49af2d(0x2d8)]({'index':_0x1449d0,'dataField':_0x351e68})),_0x1449d0++;}return this[_0x49af2d(0x1dc)](_0x1332ad,_0x3f37fc,_0x33887f,_0x5d22dc),{'collection':_0x3f37fc,'updateDataFieldList':_0x5e8d02};}[_0x182aea(0x153)](_0x332131,_0x987b5){const _0x5d42db=_0x182aea;return _0x332131[_0x5d42db(0x365)]===_0x5e852f['RANGE_TYPE'][_0x5d42db(0x1dd)]?{'startRow':0x0,'startColumn':_0x332131[_0x5d42db(0x34d)],'endRow':_0x987b5[_0x5d42db(0x18a)]()-0x1,'endColumn':_0x332131['endColumn']}:{'startRow':_0x332131[_0x5d42db(0x2a6)],'startColumn':_0x332131[_0x5d42db(0x34d)],'endRow':_0x332131['endRow'],'endColumn':_0x332131[_0x5d42db(0x154)]};}[_0x182aea(0x12b)](_0x5a8d85){const _0x54fef1=_0x182aea,{sheetName:_0x29fa56,range:_0xd678cf}=_0x5a8d85,_0xc2e90e=this[_0x54fef1(0x1a0)]['getCurrentUnitForType'](_0x5e852f[_0x54fef1(0x31e)]['UNIVER_SHEET']),_0x1adfdd=_0xc2e90e[_0x54fef1(0x257)](_0x29fa56),_0x4e2c4e=_0x1adfdd['getCellMatrix'](),{startColumn:_0x493dc2,startRow:_0x4e2f0c,endColumn:_0x4845b1}=this[_0x54fef1(0x153)](_0xd678cf,_0x1adfdd),_0x45c9e0=_0xc2e90e['getStyles'](),_0x20b9e6=new _0x57400a[(_0x54fef1(0x225))](this);_0x20b9e6[_0x54fef1(0x2bb)](_0x5a8d85);const _0x4eb585=[],_0x198003={};for(let _0x5cdf9d=_0x493dc2;_0x5cdf9d<=_0x4845b1;_0x5cdf9d++){const _0x579901=_0x4e2c4e[_0x54fef1(0x37c)](_0x4e2f0c,_0x5cdf9d),_0x2c1f4f=this[_0x54fef1(0x1c7)](_0x5a8d85,_0x5cdf9d),_0x3dcbfb=this[_0x54fef1(0x21e)](_0x2c1f4f);if(_0x3dcbfb)_0x20b9e6[_0x54fef1(0x1be)](_0x3dcbfb[_0x54fef1(0x111)](),_0x3dcbfb['getName']());else{const _0x5a2ee5=this[_0x54fef1(0x13c)]();let _0x5acfd8=this[_0x54fef1(0x1ee)](_0x579901,_0x45c9e0,_0x198003);_0x57400a[_0x54fef1(0x280)](_0x5acfd8)&&(_0x5acfd8=_0x5e852f[_0x54fef1(0xfc)][_0x54fef1(0x250)](_0x5acfd8['f'],Number(_0x5acfd8['v'])));const _0x4c9a23=this['uniqueDataFieldName'](_0x5acfd8,_0x493dc2+_0x5cdf9d),_0x2c76da=new _0x57400a[(_0x54fef1(0x186))](_0x5a2ee5,_0x4c9a23,_0x57400a[_0x54fef1(0x304)](0x3));_0x2c76da['rangeKey']=_0x2c1f4f,this[_0x54fef1(0x2a9)][_0x5a2ee5]=_0x2c76da,_0x20b9e6[_0x54fef1(0x1be)](_0x5a2ee5,_0x4c9a23),_0x4eb585[_0x54fef1(0x2d8)]({'index':_0x5cdf9d,'dataField':_0x2c76da});}}return{'updateDataFieldList':_0x4eb585,'collection':_0x20b9e6};}[_0x182aea(0x33e)](_0x482fe8){const _0x8d2624=_0x182aea;return this['_host'][_0x8d2624(0xfa)]()[_0x8d2624(0x2f7)]+'\x20'+_0x5e852f[_0x8d2624(0xf2)](_0x482fe8);}[_0x182aea(0xe1)](_0x4f181f,_0x54602a){return _0x4f181f==null?this['_getAutoName'](_0x54602a):String(_0x4f181f);}['getCollection'](_0x1a002a){const _0x1f46f4=_0x182aea;return this[_0x1f46f4(0x15b)][_0x1a002a];}[_0x182aea(0x1dc)](_0x1d4130,_0x390206,_0x2351d8,_0x254969){const _0x523415=_0x182aea;this['collections'][_0x1d4130]=_0x390206,_0x390206[_0x523415(0x2bb)](_0x2351d8),this[_0x523415(0x12e)][_0x523415(0x209)]({'token':_0x1d4130,'type':_0x29c238[_0x523415(0x33b)],'dataRangeInfo':_0x2351d8,'targetCellInfo':_0x254969});}[_0x182aea(0x2a5)](_0xd44ae3,_0x387b64){const _0xafba68=_0x182aea,_0x3f7868=this[_0xafba68(0x123)](_0xd44ae3),_0x3902fe=_0x3f7868[_0xafba68(0x14e)]();let _0x4c42f7=0x0;for(const _0xdcb614 of _0x3902fe){const _0x18772a=_0x3f7868[_0xafba68(0x324)](_0xdcb614),_0x5a8f4f=this[_0xafba68(0x1c7)](_0x387b64,_0x4c42f7);this['updateRangeKeyMap'](_0x18772a[_0xafba68(0x269)],_0x5a8f4f),_0x4c42f7++;}}['getPivotDirtyViewInfo'](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x182aea(0x34c)](_0x40664f,_0x102640){const _0x18ce5e=_0x182aea;if(this[_0x18ce5e(0x123)](_0x40664f)){const _0x13efe5=this[_0x18ce5e(0xdf)](_0x102640),_0x4cdee7=[];for(const _0x13ea1e of _0x13efe5)this[_0x18ce5e(0x127)][_0x13ea1e]!==void 0x0&&_0x4cdee7[_0x18ce5e(0x2d8)](this[_0x18ce5e(0x127)][_0x13ea1e]);const _0x3276b0=this[_0x18ce5e(0x101)](_0x40664f),_0x31c0f9=[],_0xc641bd=new Set(_0x4cdee7);for(const _0x3d071f of _0x3276b0)_0xc641bd['has'](_0x3d071f)||_0x31c0f9['push'](_0x3d071f);return _0x31c0f9;}}[_0x182aea(0x360)](_0x16e532,_0x5235fb,_0x3c5cf4,_0x6c2dd3,_0x2b9664){const _0x19df3f=_0x182aea;return _0x5235fb&&_0x5235fb[_0x19df3f(0x37c)](_0x6c2dd3,_0x2b9664)?_0x5235fb[_0x19df3f(0x37c)](_0x6c2dd3,_0x2b9664):_0x3c5cf4&&_0x3c5cf4[_0x19df3f(0x37c)](_0x6c2dd3,_0x2b9664)?_0x3c5cf4[_0x19df3f(0x37c)](_0x6c2dd3,_0x2b9664):_0x16e532['getValue'](_0x6c2dd3,_0x2b9664);}[_0x182aea(0x35d)](_0x50cbdb,_0x542294,_0x2f557e,_0x3b4e41){const _0x1dbd04=_0x182aea,_0x51eb2b=this[_0x1dbd04(0x2a9)][_0x50cbdb];if(!_0x51eb2b)return;const {subUnitId:_0x5e5c06,range:_0x3dd5b0,unitId:_0x38abc4}=_0x542294,_0x50de2f=this[_0x1dbd04(0x1a0)][_0x1dbd04(0x346)](_0x38abc4);if(!_0x50de2f){console[_0x1dbd04(0x336)](_0x1dbd04(0x159));return;}const _0x5d31f2=_0x50de2f[_0x1dbd04(0x164)](_0x5e5c06),_0x1ae212=_0x5d31f2['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x34e756,unitDataMatrix:_0x42a7a8}=_0x3b4e41||{},{startRow:_0x40afb7,startColumn:_0x205348,endRow:_0x55554e}=this[_0x1dbd04(0x153)](_0x3dd5b0,_0x5d31f2);_0x51eb2b[_0x1dbd04(0x172)]();const _0x3c1817=_0x50de2f['getStyles'](),_0x7de997={},_0x50f98f=this[_0x1dbd04(0x360)](_0x1ae212,_0x34e756,_0x42a7a8,_0x40afb7,_0x205348+_0x2f557e);let _0x552df9=this[_0x1dbd04(0x1ee)](_0x50f98f,_0x3c1817,_0x7de997);_0x57400a[_0x1dbd04(0x280)](_0x552df9)&&(_0x552df9=_0x5e852f['numfmt'][_0x1dbd04(0x250)](_0x552df9['f'],Number(_0x552df9['v'])));const _0x53c8d7=this['uniqueDataFieldName'](_0x552df9,_0x205348+_0x2f557e);_0x51eb2b['setName'](_0x53c8d7);for(let _0x4abcde=_0x40afb7+0x1;_0x4abcde<=_0x55554e;_0x4abcde++){const _0x58d5e5=this[_0x1dbd04(0x360)](_0x1ae212,_0x34e756,_0x42a7a8,_0x4abcde,_0x205348+_0x2f557e);_0x51eb2b[_0x1dbd04(0x137)](this[_0x1dbd04(0x1ee)](_0x58d5e5,_0x3c1817,_0x7de997),_0x4abcde-0x1);}}[_0x182aea(0x277)](_0x2dbc37,_0x577845,_0x398a0f){const _0x6ff44f=_0x182aea,{subUnitId:_0x515669,range:_0x1c8d31,unitId:_0x260f07}=_0x398a0f,_0x1e1871=this[_0x6ff44f(0x1a0)]['getUnit'](_0x260f07);if(!_0x1e1871){console[_0x6ff44f(0x336)](_0x6ff44f(0x159));return;}const _0x127d9a=_0x1e1871[_0x6ff44f(0x164)](_0x515669),_0x47ebe4=_0x127d9a[_0x6ff44f(0x2b3)](),{startRow:_0x461510,startColumn:_0x2ea2c0,endRow:_0x57e215}=this['getRangeStartEndInfo'](_0x1c8d31,_0x127d9a),_0x1fb10f=_0x1e1871[_0x6ff44f(0xd1)](),_0x11fe9a={};for(const {dataField:_0x279987,index:_0x38795b}of _0x577845){_0x279987['reset']();const _0x4b674f=this[_0x6ff44f(0x360)](_0x47ebe4,void 0x0,void 0x0,_0x461510,_0x2ea2c0+_0x38795b);let _0x1d5612=this[_0x6ff44f(0x1ee)](_0x4b674f,_0x1fb10f,_0x11fe9a);_0x57400a[_0x6ff44f(0x280)](_0x1d5612)&&(_0x1d5612=_0x5e852f['numfmt'][_0x6ff44f(0x250)](_0x1d5612['f'],Number(_0x1d5612['v'])));const _0x546ed0=this[_0x6ff44f(0xe1)](_0x1d5612,_0x2ea2c0+_0x38795b);_0x279987['setName'](_0x546ed0);}_0x2dbc37['updateAllDisplayName']();for(let _0x2274ec=_0x461510+0x1;_0x2274ec<=_0x57e215;_0x2274ec++)for(const {index:_0x30de56,dataField:_0x14d742}of _0x577845){const _0x3d1929=_0x47ebe4[_0x6ff44f(0x37c)](_0x2274ec,_0x2ea2c0+_0x30de56);_0x14d742[_0x6ff44f(0x137)](this[_0x6ff44f(0x1ee)](_0x3d1929,_0x1fb10f,_0x11fe9a),_0x2274ec-0x1);}_0x2dbc37['setDataRecordCount'](_0x57e215-_0x461510);}[_0x182aea(0xdf)](_0x53438d){const _0x3f1e71=_0x182aea,{range:_0x25b719}=_0x53438d,{startColumn:_0x28d928,endColumn:_0x2c5673}=_0x25b719,_0x7b35e8=[];for(let _0x6c840c=_0x28d928;_0x6c840c<=_0x2c5673;_0x6c840c++)_0x7b35e8[_0x3f1e71(0x2d8)](this[_0x3f1e71(0x1c7)](_0x53438d,_0x6c840c));return _0x7b35e8;}[_0x182aea(0x1ee)](_0x103bcb,_0x368d57,_0x1705e4){const _0x3fa123=_0x182aea;if(_0x103bcb){const {s:_0x52a914,v:_0x74165e,t:_0x2703f8,p:_0x3c5a9c}=_0x103bcb;if(_0x3c5a9c)return _0x9e7219(_0x3c5a9c);const _0x58c5df=_0x368d57[_0x3fa123(0x13e)](_0x52a914);if(_0x58c5df&&_0x2703f8===_0x5e852f[_0x3fa123(0xf8)]['NUMBER']&&_0x58c5df['n']){const {pattern:_0xe686a2}=_0x58c5df['n'];_0x1705e4[_0xe686a2]||(_0x1705e4[_0xe686a2]=_0x5e852f['numfmt'][_0x3fa123(0x1d3)](_0xe686a2));const _0x39b47b=_0x1705e4[_0xe686a2],_0xfd7b97=_0x39b47b[_0x3fa123(0x179)];if(_0x39b47b[_0x3fa123(0x2de)])return String(_0x74165e);if(_0xfd7b97)return{'v':_0x74165e,'f':_0xe686a2};}if(_0x2703f8===_0x5e852f[_0x3fa123(0xf8)]['NUMBER'])return Number(_0x74165e);if(_0x2703f8===_0x5e852f[_0x3fa123(0xf8)][_0x3fa123(0x23c)]||_0x2703f8===_0x5e852f['CellValueType'][_0x3fa123(0x109)])return String(_0x74165e);if(_0x2703f8===void 0x0){const _0x45ab0e=Number(_0x74165e);if(!Number[_0x3fa123(0x11e)](_0x45ab0e)&&String(_0x45ab0e)===_0x74165e)return _0x45ab0e;}return _0x74165e!=null?_0x74165e:null;}else return null;}[_0x182aea(0x22d)](_0x536c6c){const _0x3c6485=_0x182aea,{sheetName:_0x1baa80,range:_0xc3f14e,unitId:_0x54a487}=_0x536c6c,_0x11616b=this[_0x3c6485(0x1a0)][_0x3c6485(0x346)](_0x54a487);if(!_0x11616b)return console[_0x3c6485(0x336)](_0x3c6485(0x159)),{'header':[],'data':[]};const _0x196e70=_0x11616b['getSheetBySheetName'](_0x1baa80),_0x17a5d8=_0x196e70[_0x3c6485(0x2b3)](),{startRow:_0x1ca65b,startColumn:_0x41c58e,endRow:_0x4af135,endColumn:_0x5cd2d6}=this[_0x3c6485(0x153)](_0xc3f14e,_0x196e70),_0x378613=_0x11616b['getStyles'](),_0x3a2a00=[],_0x7bd6fb=[],_0xda0670={};for(let _0x511cd0=_0x1ca65b;_0x511cd0<=_0x4af135;_0x511cd0++){const _0x2c0dcd=[];for(let _0x1db5b7=_0x41c58e;_0x1db5b7<=_0x5cd2d6;_0x1db5b7++){const _0x2e7aaa=_0x17a5d8['getValue'](_0x511cd0,_0x1db5b7);_0x511cd0===_0x1ca65b?_0x3a2a00[_0x3c6485(0x2d8)](_0x2e7aaa==null?null:String(_0x2e7aaa['v'])):_0x2c0dcd['push'](this['adjustSheetCellData'](_0x2e7aaa,_0x378613,_0xda0670));}_0x7bd6fb[_0x3c6485(0x2d8)](_0x2c0dcd);}return{'header':_0x3a2a00,'data':_0x7bd6fb};}[_0x182aea(0x24c)](){const _0xb56c7d=_0x182aea;return super[_0xb56c7d(0x24c)]();}[_0x182aea(0x387)](_0x35e054){super['fromJSON'](_0x35e054),this['initDataRanges']();}[_0x182aea(0x1f5)](){const _0x1b91f7=_0x182aea;super['dispose'](),this[_0x1b91f7(0x127)]={},this['_host']=null;}}const _0x500923=_0x1471a3=>{const _0x5695f2=_0x182aea,{targetCellInfo:_0x2ee9af}=_0x1471a3,{matrixCache:_0x4033f3,rangesCache:_0x5e9702}=_0x1405b6({'filter':_0x5695f2(0x31f),'row':'Row','column':_0x5695f2(0x10d),'values':_0x5695f2(0x18f)},_0x2ee9af),_0x4d42c3=new _0x5e852f[(_0x5695f2(0x2da))]();return _0x4033f3[_0x5695f2(0x176)]((_0x24f0c4,_0x4eec46,_0x494cf3)=>{const _0x32e77c=_0x5695f2;_0x4d42c3[_0x32e77c(0x11a)](_0x24f0c4,_0x4eec46,_0x494cf3);}),{'matrix':_0x4d42c3,'rangesCache':_0x5e9702};},_0xa6453c=_0xdc49ba=>{const _0x342b9d=_0x182aea;let _0x5593bb;if(_0xdc49ba!=null&&_0xdc49ba['v']||(_0xdc49ba==null?void 0x0:_0xdc49ba['v'])===0x0){_0x5593bb||(_0x5593bb={});const _0x1a9862=_0x2fdd0f(_0xdc49ba['v']);typeof _0x1a9862==_0x342b9d(0x35a)?_0x5593bb['t']=_0x5e852f[_0x342b9d(0xf8)][_0x342b9d(0x1f6)]:typeof _0x1a9862==_0x342b9d(0x368)&&(_0x5593bb['t']=_0x5e852f[_0x342b9d(0xf8)][_0x342b9d(0x23c)]),_0x5593bb['v']=_0x1a9862;}return _0x5593bb;},_0x1efa5f=(_0x28b70e,_0x102379,_0x2ae3c7)=>{const _0xae03c7=_0x182aea;var _0x575c00,_0x443caa,_0x47fc89,_0x1b6ec5,_0x17df94,_0x3ce907,_0x55fecc,_0x47af9a,_0x236246,_0x557d9,_0x59f74a,_0x6e9736;const {cornerView:_0x1af996,rowView:_0x672150,colView:_0x11d95a,dataView:_0x1f9248,pageView:_0x44b76a,formatMap:_0x3f9030}=_0x28b70e,{row:_0xe37781,col:_0x37fa50}=_0x102379,_0x465a64=new _0x5e852f['ObjectMatrix']();let _0x557043=_0xe37781,_0x35fc72=_0x37fa50;Object[_0xae03c7(0x2ce)](_0x44b76a['data'])[_0xae03c7(0x1f1)](_0x4080e9=>{const _0x5a6ae3=_0xae03c7;Object[_0x5a6ae3(0x2ce)](_0x44b76a[_0x5a6ae3(0x2dd)][Number(_0x4080e9)])[_0x5a6ae3(0x1f1)](_0x3fd2e2=>{const _0x4f6736=_0x5a6ae3,_0x1ca0a2={..._0x44b76a['data'][Number(_0x4080e9)][Number(_0x3fd2e2)]};_0x465a64[_0x4f6736(0x11a)](Number(_0x4080e9)+_0x557043,Number(_0x3fd2e2)+_0x35fc72,_0xa6453c(_0x1ca0a2));});});const _0x5a31ac=Object[_0xae03c7(0x2ce)](_0x44b76a['data'])[_0xae03c7(0x2c9)];_0x557043+=_0x5a31ac+(_0x5a31ac?_0x36909d:0x0);const _0x34bca2=_0x1af996['getRowCount'](),_0x62f8d0=_0x1af996['getColCount']();for(let _0x59e223=0x0;_0x59e223<_0x34bca2;_0x59e223++)for(let _0x5e6d5b=0x0;_0x5e6d5b<_0x62f8d0;_0x5e6d5b++){const _0x1f4a6b={...(_0x443caa=(_0x575c00=_0x1af996[_0xae03c7(0x2dd)])==null?void 0x0:_0x575c00[_0x59e223])==null?void 0x0:_0x443caa[_0x5e6d5b]};((_0x47fc89=_0x672150[_0xae03c7(0x32a)][_0x5e6d5b])==null?void 0x0:_0x47fc89['isValue'])&&_0x5e6d5b===_0x62f8d0-0x1&&_0x59e223===_0x34bca2-0x1&&(_0x1f4a6b['v']=''+_0x2ae3c7['sheets-pivot.value']),_0x465a64[_0xae03c7(0x11a)](_0x59e223+_0x557043,_0x5e6d5b+_0x35fc72,_0xa6453c(_0x1f4a6b));}_0x35fc72+=_0x62f8d0;const _0x25d9f3=_0x11d95a[_0xae03c7(0x32a)],_0x37c575=_0x11d95a[_0xae03c7(0x2c4)]()>=0x0?_0x11d95a[_0xae03c7(0x2c4)]()+0x1:0x0,_0x55c21a=_0x11d95a[_0xae03c7(0x232)]()>=0x0?_0x11d95a[_0xae03c7(0x232)]()+0x1:0x0;for(let _0x58ed73=0x0;_0x58ed73<_0x55c21a;_0x58ed73++)for(let _0x51954f=0x0;_0x51954f<_0x37c575;_0x51954f++){const _0x2821b9={...(_0x17df94=(_0x1b6ec5=_0x11d95a[_0xae03c7(0x2dd)])==null?void 0x0:_0x1b6ec5[_0x58ed73])==null?void 0x0:_0x17df94[_0x51954f]},_0x21fbaa=(_0x3ce907=_0x25d9f3[_0x58ed73])==null?void 0x0:_0x3ce907['tableFieldId'],_0x1fc1c4=_0x3f9030[_0x21fbaa];_0x2821b9['v']=_0x250ad2(_0x2821b9,_0x58ed73===0x0&&((_0x55fecc=_0x11d95a['getHeaderMapItem'](_0x51954f+0x1))==null?void 0x0:_0x55fecc['isValue']),_0x1fc1c4,_0x2ae3c7),_0x465a64['setValue'](_0x58ed73+_0x557043,_0x51954f+_0x35fc72,_0xa6453c(_0x2821b9));}_0x557043+=_0x34bca2;const _0x16951b=_0x672150['headerMap'],_0xf4ce07=_0x672150[_0xae03c7(0x2c4)]()>=0x0?_0x672150[_0xae03c7(0x2c4)]()+0x1:0x0,_0x54ef4b=_0x672150[_0xae03c7(0x232)]()>=0x0?_0x672150[_0xae03c7(0x232)]()+0x1:0x0;for(let _0x23eb11=0x0;_0x23eb11<_0xf4ce07;_0x23eb11++)for(let _0x40ba66=0x0;_0x40ba66<_0x54ef4b;_0x40ba66++){const _0x222a5f={...(_0x236246=(_0x47af9a=_0x672150[_0xae03c7(0x2dd)])==null?void 0x0:_0x47af9a[_0x23eb11])==null?void 0x0:_0x236246[_0x40ba66]},_0x3f8e33=(_0x557d9=_0x16951b[_0x40ba66])==null?void 0x0:_0x557d9[_0xae03c7(0x220)],_0x32190b=_0x3f9030[_0x3f8e33];_0x222a5f['v']=_0x250ad2(_0x222a5f,!0x1,_0x32190b,_0x2ae3c7),_0x465a64[_0xae03c7(0x11a)](_0x23eb11+_0x557043,_0x40ba66+_0x37fa50,_0xa6453c(_0x222a5f));}const _0x3ead21=_0x1f9248['getRowCount'](),_0x532655=_0x1f9248['getColCount']();for(let _0x176949=0x0;_0x176949<_0x3ead21;_0x176949++)for(let _0x270f19=0x0;_0x270f19<_0x532655;_0x270f19++){const _0x321005={...(_0x6e9736=(_0x59f74a=_0x1f9248[_0xae03c7(0x2dd)])==null?void 0x0:_0x59f74a[_0x176949])==null?void 0x0:_0x6e9736[_0x270f19]};_0x465a64[_0xae03c7(0x11a)](_0x176949+_0x557043,_0x270f19+_0x35fc72,_0xa6453c(_0x321005));}return _0x465a64;},_0x34a2cd=_0x13fdae=>{const _0xe24f45=_0x182aea,{view:_0x4bc91c,targetCellInfo:_0x5b9e2b,isEmpty:_0x22fe3b,textInfo:_0x51e8f7}=_0x13fdae;if(_0x22fe3b)return _0x500923(_0x13fdae);const {pageView:_0x43fd1c,cornerView:_0x5cee9f,rowView:_0x2f9713,colView:_0x259afa,dataView:_0x2789a6}=_0x4bc91c,_0x1411e1=_0x59dbf1(_0x5b9e2b,_0x43fd1c,!0x0),_0x1c0827=_0x43fd1c[_0xe24f45(0x15d)]>=0x0?_0x43fd1c['lastRow']+0x1:0x0,_0x20bf4b=_0x5cee9f[_0xe24f45(0x18a)](),_0x266741=_0x5cee9f[_0xe24f45(0x2dc)](),_0x37769e=_0x1411e1[_0xe24f45(0x2c9)]>0x0?_0x36909d:0x0,_0x371afc=_0x59dbf1({'row':_0x5b9e2b[_0xe24f45(0x2d3)]+_0x1c0827+_0x37769e,'col':_0x5b9e2b['col']},_0x5cee9f,!0x1,!0x1),_0x2eecfa=_0x59dbf1({'row':_0x5b9e2b[_0xe24f45(0x2d3)]+_0x1c0827+_0x37769e+_0x20bf4b,'col':_0x5b9e2b['col']},_0x2f9713,!0x1,!0x0),_0x297579=_0x59dbf1({'row':_0x5b9e2b[_0xe24f45(0x2d3)]+_0x1c0827+_0x37769e,'col':_0x5b9e2b['col']+_0x266741},_0x259afa,!0x1,!0x0),_0x4a4946=_0x59dbf1({'row':_0x5b9e2b[_0xe24f45(0x2d3)]+_0x1c0827+_0x37769e+_0x20bf4b,'col':_0x5b9e2b[_0xe24f45(0x103)]+_0x266741},_0x2789a6,!0x1,!0x1),_0x16a9f8={'rowRanges':_0x2eecfa,'colRanges':_0x297579,'cornerRanges':_0x371afc,'dataRanges':_0x4a4946,'pageRanges':_0x1411e1};return{'matrix':_0x1efa5f(_0x4bc91c,_0x5b9e2b,_0x51e8f7),'rangesCache':_0x16a9f8};};var _0x2a7c74=Object['defineProperty'],_0x3200b7=Object[_0x182aea(0x2ea)],_0x444a99=(_0x4133d7,_0x5d3195,_0x46297c,_0x491b02)=>{const _0x5be739=_0x182aea;for(var _0x4d2d88=_0x491b02>0x1?void 0x0:_0x491b02?_0x3200b7(_0x5d3195,_0x46297c):_0x5d3195,_0x17b0ee=_0x4133d7[_0x5be739(0x2c9)]-0x1,_0xc6c3a4;_0x17b0ee>=0x0;_0x17b0ee--)(_0xc6c3a4=_0x4133d7[_0x17b0ee])&&(_0x4d2d88=(_0x491b02?_0xc6c3a4(_0x5d3195,_0x46297c,_0x4d2d88):_0xc6c3a4(_0x4d2d88))||_0x4d2d88);return _0x491b02&&_0x4d2d88&&_0x2a7c74(_0x5d3195,_0x46297c,_0x4d2d88),_0x4d2d88;},_0x4ad677=(_0xdce9a7,_0x2584dc)=>(_0x2028b4,_0x30c019)=>_0x2584dc(_0x2028b4,_0x30c019,_0xdce9a7);_0x263ce9[_0x182aea(0x19f)]=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0x3bd8ae,_0x49e2af,_0x211b26,_0x18ca17,_0x48df21,_0x2b4ed7){const _0x5bfda4=_0x182aea;super(),_0x53fb96(this,'_model',new Map()),_0x53fb96(this,_0x5bfda4(0x300),new Map()),_0x53fb96(this,_0x5bfda4(0x2cf),new Map()),_0x53fb96(this,_0x5bfda4(0x19a)),_0x53fb96(this,_0x5bfda4(0x183),new _0x29847b[(_0x5bfda4(0x242))]()),_0x53fb96(this,_0x5bfda4(0x166),this[_0x5bfda4(0x183)][_0x5bfda4(0x180)]()),_0x53fb96(this,'_viewData$',new _0x29847b[(_0x5bfda4(0x242))]()),_0x53fb96(this,_0x5bfda4(0x188),this[_0x5bfda4(0x310)][_0x5bfda4(0x180)]()),_0x53fb96(this,'_fieldsCollectionChange$',new _0x29847b['Subject']()),_0x53fb96(this,_0x5bfda4(0x268),this[_0x5bfda4(0x199)][_0x5bfda4(0x180)]()),_0x53fb96(this,'_dataFieldManagerCollection',new Map()),_0x53fb96(this,'needSameDeleteModel',[]),_0x53fb96(this,_0x5bfda4(0x36d),new Map()),(this[_0x5bfda4(0x372)]=_0x3bd8ae,this['_univerInstanceService']=_0x49e2af,this['_lifecycleService']=_0x211b26,this[_0x5bfda4(0x35f)]=_0x18ca17,this['_commandService']=_0x48df21,this[_0x5bfda4(0x135)]=_0x2b4ed7,this[_0x5bfda4(0x124)]());}[_0x182aea(0xfa)](){const _0x4a3470=_0x182aea;return this[_0x4a3470(0x19a)]?this[_0x4a3470(0x19a)]:_0x5e537d;}[_0x182aea(0x314)](_0x3edabd){const _0x2bf803=_0x182aea;this[_0x2bf803(0x19a)]=_0x3edabd;}[_0x182aea(0x2a5)](_0x3c81e6){const _0x15a6ec=_0x182aea;var _0x1519a3;const {from:_0x5b602f,to:_0xad1dfa,unitId:_0x2de216,fromRange:_0x3bf118,toRange:_0x2f5311}=_0x3c81e6;if(_0x5b602f&&_0xad1dfa){const _0xcc3d67=this[_0x15a6ec(0xf9)](_0x2de216),_0x52e4a2=this[_0x15a6ec(0x112)]['get'](_0x2de216),_0x3b23ef=(_0x1519a3=this[_0x15a6ec(0x1a0)]['getUnit'](_0x2de216))==null?void 0x0:_0x1519a3[_0x15a6ec(0x164)](_0xad1dfa[_0x15a6ec(0x36f)]);if(!_0x52e4a2||!_0x3b23ef)return;const _0x15b22f=_0x3b23ef==null?void 0x0:_0x3b23ef[_0x15a6ec(0x23a)]();for(const [_0x4c7c0d,_0x3a0eb2]of _0x52e4a2['entries']())for(const [_0x5678bf,_0x59d4f6]of _0x3a0eb2['entries']()){const {sourceRangeInfo:_0x3a061f}=_0x59d4f6;if(_0x3a061f[_0x15a6ec(0xfd)]===_0x2de216&&_0x3a061f[_0x15a6ec(0x36f)]===_0x5b602f[_0x15a6ec(0x36f)]&&_0x5e852f[_0x15a6ec(0x2a4)]['contains'](_0x3bf118,_0x3a061f['range'])){const _0x5a484c={'row':_0x3a061f[_0x15a6ec(0xcb)][_0x15a6ec(0x2a6)]-_0x3bf118[_0x15a6ec(0x2a6)],'col':_0x3a061f[_0x15a6ec(0xcb)][_0x15a6ec(0x34d)]-_0x3bf118['startColumn']},_0x31834c={'unitId':_0x2de216,'subUnitId':_0xad1dfa[_0x15a6ec(0x36f)],'sheetName':_0x15b22f,'range':{'startRow':_0x2f5311[_0x15a6ec(0x2a6)]+_0x5a484c[_0x15a6ec(0x2d3)],'endRow':_0x2f5311[_0x15a6ec(0x2a6)]+_0x5a484c['row']+_0x3a061f[_0x15a6ec(0xcb)][_0x15a6ec(0x26e)]-_0x3a061f[_0x15a6ec(0xcb)][_0x15a6ec(0x2a6)],'startColumn':_0x2f5311['startColumn']+_0x5a484c[_0x15a6ec(0x103)],'endColumn':_0x2f5311['startColumn']+_0x5a484c[_0x15a6ec(0x103)]+_0x3a061f[_0x15a6ec(0xcb)][_0x15a6ec(0x154)]-_0x3a061f['range']['startColumn']}};_0xcc3d67['handleMoveRange'](_0x5678bf,_0x31834c);const _0x5e266b={..._0x59d4f6,'sourceRangeInfo':_0x31834c};this[_0x15a6ec(0x21c)](_0x2de216,_0xad1dfa['subUnitId'],_0x5678bf,_0x5e266b),this[_0x15a6ec(0x209)]({'unitId':_0x2de216,'token':_0x5678bf,'type':_0x29c238[_0x15a6ec(0x385)],'oldSourceRangeInfo':_0x3a061f,'dataRangeInfo':_0x31834c,'targetCellInfo':_0x59d4f6['targetCellInfo']}),this[_0x15a6ec(0x260)]({'unitId':_0x2de216,'subUnitId':_0xad1dfa[_0x15a6ec(0x36f)],'oldSubUnitId':_0x4c7c0d,'pivotTableId':_0x5678bf,'pivotTableConfig':_0x5e266b,'collectionConfig':_0xcc3d67['toJSON']()});}}}}['broadcastCollectionChange'](_0xfa87cf){const _0x25377c=_0x182aea;this['_collectionChange$'][_0x25377c(0x33f)](_0xfa87cf);}['getDataFieldManager'](_0x5b2a64){const _0x503ff9=_0x182aea;let _0x29e212=this['_dataFieldManagerCollection'][_0x503ff9(0x13e)](_0x5b2a64);return _0x29e212||(_0x29e212=new _0x2e4601(this,this['_univerInstanceService']),this['_dataFieldManagerCollection'][_0x503ff9(0x320)](_0x5b2a64,_0x29e212)),_0x29e212;}['getCollection'](_0x5d4d42,_0x120cd5){const _0x4dd9ce=_0x182aea;return this[_0x4dd9ce(0xf9)](_0x5d4d42)['collections'][_0x120cd5];}[_0x182aea(0x34c)](_0x203d7d,_0x1a9e3d,_0x4e930e){const _0x2ae730=_0x182aea;return this[_0x2ae730(0xf9)](_0x203d7d)[_0x2ae730(0x34c)](_0x1a9e3d,_0x4e930e);}['_ensurePivotMap'](_0x5d9d5c,_0x35cbf9){const _0x1cf2f7=_0x182aea;let _0x5064c2=this['_model'][_0x1cf2f7(0x13e)](_0x5d9d5c);_0x5064c2||(_0x5064c2=new Map(),this[_0x1cf2f7(0x112)][_0x1cf2f7(0x320)](_0x5d9d5c,_0x5064c2));let _0xf77a6b=_0x5064c2[_0x1cf2f7(0x13e)](_0x35cbf9);return _0xf77a6b||(_0xf77a6b=new Map(),_0x5064c2[_0x1cf2f7(0x320)](_0x35cbf9,_0xf77a6b)),_0xf77a6b;}[_0x182aea(0x21c)](_0x555f72,_0x57fb29,_0x4b43f6,_0x50e284){const _0x5690a3=_0x182aea;this[_0x5690a3(0x12c)](_0x555f72,_0x57fb29)[_0x5690a3(0x320)](_0x4b43f6,_0x50e284);}[_0x182aea(0x251)](_0x29a92e,_0x3f1ed3,_0x5c0c66){const _0x4e74ae=_0x182aea;var _0x116e03,_0x6e875c,_0x26abc7,_0x58dba8;((_0x6e875c=(_0x116e03=this[_0x4e74ae(0x112)]['get'](_0x29a92e))==null?void 0x0:_0x116e03[_0x4e74ae(0x13e)](_0x3f1ed3))==null?void 0x0:_0x6e875c['get'](_0x5c0c66))&&((_0x58dba8=(_0x26abc7=this['_model'][_0x4e74ae(0x13e)](_0x29a92e))==null?void 0x0:_0x26abc7[_0x4e74ae(0x13e)](_0x3f1ed3))==null||_0x58dba8[_0x4e74ae(0x2bc)](_0x5c0c66));}[_0x182aea(0x18b)](_0x45f226,_0x243025){const _0x38a127=_0x182aea;this[_0x38a127(0x300)][_0x38a127(0x320)](_0x45f226,_0x243025);}[_0x182aea(0x31d)](_0x51634d){const _0x3e3e0f=_0x182aea;this[_0x3e3e0f(0x300)][_0x3e3e0f(0x2bc)](_0x51634d);}[_0x182aea(0x270)](_0x3d28f8,_0x1aa004){const _0x220b41=_0x182aea;let _0x5382d0=this[_0x220b41(0x2cf)][_0x220b41(0x13e)](_0x3d28f8);_0x5382d0||(_0x5382d0=new Map(),this[_0x220b41(0x2cf)][_0x220b41(0x320)](_0x3d28f8,_0x5382d0));let _0x3646a3=_0x5382d0[_0x220b41(0x13e)](_0x1aa004);return _0x3646a3||(_0x3646a3=new Map(),_0x5382d0[_0x220b41(0x320)](_0x1aa004,_0x3646a3)),_0x3646a3;}[_0x182aea(0x260)](_0x2fb2bf){const _0x51218e=_0x182aea,{unitId:_0x1dd4b8,subUnitId:_0x353f80,pivotTableId:_0x50967f,pivotTableConfig:_0x559ee5,collectionConfig:_0x107266}=_0x2fb2bf,_0x5da2e8={'unitId':_0x1dd4b8,'subUnitId':_0x353f80,'oldSubUnitId':_0x353f80,'pivotTableId':_0x50967f,'pivotTableConfig':_0x559ee5,'collectionConfig':_0x107266};this[_0x51218e(0x367)]['executeCommand'](_0x6853d5['id'],_0x5da2e8,{'onlyLocal':!0x0});}['updateView'](_0x1daedd,_0x5d2a88,_0x456614,_0x2ace40,_0x5172a7,_0x4589ae,_0x1f7d57,_0x8cf415=!0x1){const _0xc902c=_0x182aea;var _0x4884fe;this[_0xc902c(0x367)]['executeCommand'](_0xe83f7f['id'],{'single':{'unitId':_0x1daedd,'subUnitId':_0x5d2a88,'type':_0x456614,'pivotTableId':_0x2ace40,'view':_0x5172a7,'pivotConfig':_0x4589ae},'collectionConfig':{[_0x1daedd]:_0x1f7d57}},{'onlyLocal':!0x0});const _0x56fb57=!!((_0x4884fe=this[_0xc902c(0x1ed)](_0x2ace40))!=null&&_0x4884fe[_0xc902c(0x371)]()),_0xceece3=this[_0xc902c(0x325)](_0x1daedd,_0x5d2a88,_0x2ace40);_0xceece3&&this[_0xc902c(0x29f)]({'view':_0x5172a7,'pivotTableId':_0x2ace40,'textInfo':this['getTextInfo'](),'isEmpty':_0x56fb57,'targetCellInfo':_0xceece3[_0xc902c(0x106)]},_0x8cf415);}[_0x182aea(0x29f)](_0x1920f9,_0x5ee0a0){const _0x55bc20=_0x182aea,{targetCellInfo:_0x1c6d12,pivotTableId:_0x487b13}=_0x1920f9,{unitId:_0x1b9597,subUnitId:_0x1365c7}=_0x1c6d12,_0x5e5a58=this['_ensureViewDataMap'](_0x1b9597,_0x1365c7),_0x29eecb=_0x5e5a58['get'](_0x487b13);let _0x32a49b,_0x455761;_0x29eecb&&(_0x32a49b=_0x29eecb[_0x55bc20(0x1fb)],_0x455761=_0x29eecb[_0x55bc20(0x1aa)]);const {rangesCache:_0x281702,matrix:_0x212d54}=_0x34a2cd(_0x1920f9);_0x5e5a58[_0x55bc20(0x320)](_0x487b13,{'rangeCache':_0x281702,'matrix':_0x212d54,'oldMatrix':_0x455761,'oldRangeCache':_0x32a49b}),_0x5ee0a0||this['_viewData$']['next']({'unitId':_0x1b9597,'subUnitId':_0x1365c7,'pivotTableId':_0x487b13});}[_0x182aea(0x246)](_0x4c3af2,_0x445d37,_0x117ce3,_0xb3da14,_0x320318){const _0xc2d549=_0x182aea;this[_0xc2d549(0x21c)](_0x4c3af2,_0x445d37,_0x117ce3,_0x320318),this[_0xc2d549(0x18b)](_0x117ce3,_0xb3da14);}[_0x182aea(0x340)](_0x39a18e,_0x3d7b1f,_0x33677b){const _0x2f7c8a=_0x182aea,_0x133d6e=this[_0x2f7c8a(0xf9)](_0x39a18e);_0x133d6e[_0x2f7c8a(0x101)](_0x33677b)[_0x2f7c8a(0x1f1)](_0xc983ce=>{const _0x291d27=_0x2f7c8a;_0x133d6e[_0x291d27(0x267)](_0xc983ce);}),this['removeCollections'](_0x39a18e,_0x33677b),this[_0x2f7c8a(0x251)](_0x39a18e,_0x3d7b1f,_0x33677b),this[_0x2f7c8a(0x31d)](_0x33677b);}['setPivotTable'](_0x168e81,_0x476173,_0x217594,_0x54c9d1){const _0x641b97=_0x182aea;this[_0x641b97(0x21c)](_0x168e81,_0x476173,_0x217594,_0x54c9d1);}[_0x182aea(0x325)](_0x51b093,_0x2be6dd,_0x4f05f1){const _0x387063=_0x182aea;var _0x59babc,_0x165bb5;const _0x1c9b05=(_0x165bb5=(_0x59babc=this[_0x387063(0x112)][_0x387063(0x13e)](_0x51b093))==null?void 0x0:_0x59babc[_0x387063(0x13e)](_0x2be6dd))==null?void 0x0:_0x165bb5[_0x387063(0x13e)](_0x4f05f1);if(_0x1c9b05)return _0x1c9b05;}[_0x182aea(0x369)](_0x18685c,_0x29a0c4,_0x39c4d3){const _0x2f02e7=_0x182aea;var _0x17e816,_0x313e9e;const _0x566322=(_0x313e9e=(_0x17e816=this[_0x2f02e7(0x112)][_0x2f02e7(0x13e)](_0x18685c))==null?void 0x0:_0x17e816[_0x2f02e7(0x13e)](_0x29a0c4))==null?void 0x0:_0x313e9e[_0x2f02e7(0x13e)](_0x39c4d3);if(_0x566322)return _0x566322[_0x2f02e7(0x21a)];}[_0x182aea(0x1ed)](_0x256cdf){const _0x2f3230=_0x182aea;return this['_pivotTableInstanceCache'][_0x2f3230(0x13e)](_0x256cdf);}[_0x182aea(0xf0)](_0x3c6022){const _0x14f937=_0x182aea;this[_0x14f937(0x112)][_0x14f937(0x2bc)](_0x3c6022);const _0x3b15bc=this[_0x14f937(0x307)][_0x14f937(0x13e)](_0x3c6022);_0x3b15bc&&(_0x3b15bc[_0x14f937(0x1f5)](),this['_dataFieldManagerCollection'][_0x14f937(0x2bc)](_0x3c6022)),this[_0x14f937(0x2cf)][_0x14f937(0x2bc)](_0x3c6022),this[_0x14f937(0x333)][_0x14f937(0x1f1)](_0x1221e3=>{const _0x270444=_0x14f937;_0x1221e3[_0x270444(0xf0)](_0x3c6022);});}[_0x182aea(0x347)](_0x45f5b1,_0x10260c,_0x4e72c5,_0x55ad36){const _0x5425a0=_0x182aea;return this[_0x5425a0(0xf9)](_0x4e72c5[_0x5425a0(0xfd)])[_0x5425a0(0x347)](_0x45f5b1,_0x10260c,_0x4e72c5,_0x55ad36);}[_0x182aea(0x12b)](_0xbaf63f){const _0x15fcc0=_0x182aea;return this[_0x15fcc0(0xf9)](_0xbaf63f[_0x15fcc0(0xfd)])[_0x15fcc0(0x12b)](_0xbaf63f);}[_0x182aea(0x277)](_0x3c66b7,_0x28c884,_0x416762){const _0x199994=_0x182aea;this[_0x199994(0xf9)](_0x416762['unitId'])['refreshData'](_0x3c66b7,_0x28c884,_0x416762);}[_0x182aea(0x341)](_0x42da01,_0x1ac9a){const _0x5a57f6=_0x182aea;this['getDataFieldManager'](_0x42da01)[_0x5a57f6(0x267)](_0x1ac9a);}['removeCollections'](_0x1b6c91,_0x2c8efb){const _0x1820b1=_0x182aea;this[_0x1820b1(0xf9)](_0x1b6c91)['removeCollectionImp'](_0x2c8efb);}['getSubUnitPivotConfigs'](_0x1cab61,_0x1de62f){const _0x4e3d5d=_0x182aea;var _0x5c4828;return(_0x5c4828=this[_0x4e3d5d(0x112)][_0x4e3d5d(0x13e)](_0x1cab61))==null?void 0x0:_0x5c4828[_0x4e3d5d(0x13e)](_0x1de62f);}[_0x182aea(0x24e)](_0x2fbb28){const _0x452a5c=_0x182aea;for(const [_0x2f005c,_0x35733f]of this[_0x452a5c(0x112)]['entries']())for(const [_0x2c826a,_0x35c7fb]of _0x35733f[_0x452a5c(0x32f)]())if(_0x35c7fb[_0x452a5c(0x20f)](_0x2fbb28))return{'unitId':_0x2f005c,'subUnitId':_0x2c826a};return null;}[_0x182aea(0x374)](_0xa3fe11,_0x3a3fa6,_0x1a18a8,_0x5a9068){const _0x547a40=_0x182aea,_0x101c77=this[_0x547a40(0x270)](_0xa3fe11,_0x3a3fa6);_0x5a9068?_0x101c77[_0x547a40(0x320)](_0x1a18a8,_0x5a9068):_0x101c77[_0x547a40(0x2bc)](_0x1a18a8),this[_0x547a40(0x310)][_0x547a40(0x33f)]({'unitId':_0xa3fe11,'subUnitId':_0x3a3fa6,'pivotTableId':_0x1a18a8});}[_0x182aea(0x1f5)](){super['dispose']();}[_0x182aea(0x294)](_0x302dfa,_0x3e50ce,_0x3da0cb){const _0x585e89=_0x182aea;var _0x406a18,_0x2b53ae;const _0x5857fe=(_0x2b53ae=(_0x406a18=this[_0x585e89(0x2cf)][_0x585e89(0x13e)](_0x302dfa))==null?void 0x0:_0x406a18[_0x585e89(0x13e)](_0x3e50ce))==null?void 0x0:_0x2b53ae['get'](_0x3da0cb);return _0x5857fe||null;}[_0x182aea(0x38c)](_0x3c21aa){const _0x251ae3=_0x182aea;this[_0x251ae3(0x205)](_0x3c21aa);}[_0x182aea(0x205)](_0xd05dcd){const _0x18e14e=_0x182aea,{token:_0x271554,unitId:_0x4934e6,subUnitId:_0x1e99a5}=_0xd05dcd,_0x34eec0=_0x4934e6+'-'+_0x1e99a5+'-'+_0x271554;this[_0x18e14e(0x36d)][_0x18e14e(0x13e)](_0x34eec0)&&clearTimeout(this[_0x18e14e(0x36d)]['get'](_0x34eec0));const _0x16f0fb=setTimeout(()=>{const _0x5f3dad=_0x18e14e;this['queryDirtyPivotTable'](_0xd05dcd),this[_0x5f3dad(0x36d)][_0x5f3dad(0x2bc)](_0x34eec0);},_0x57a027);this[_0x18e14e(0x36d)][_0x18e14e(0x320)](_0x34eec0,_0x16f0fb);}['queryDirtyPivotTable'](_0x15288f){const _0xca597f=_0x182aea,{unitId:_0x53e5b6,subUnitId:_0x583284,token:_0x3eb2a6,type:_0x293014,pivotConfig:_0x486fb6}=_0x15288f,_0x1d8ea7=this[_0xca597f(0x1ed)](_0x3eb2a6),_0x1a9c61=_0x1d8ea7==null?void 0x0:_0x1d8ea7['query'](),_0x6b40f1=_0x486fb6!=null?_0x486fb6:this[_0xca597f(0x325)](_0x53e5b6,_0x583284,_0x3eb2a6);_0x6b40f1&&(_0x6b40f1['isEmpty']=!!(_0x1d8ea7!=null&&_0x1d8ea7[_0xca597f(0x371)]())),(_0x1a9c61||_0x293014===_0x4d6445[_0xca597f(0xe4)])&&this['updateView'](_0x53e5b6,_0x583284,_0x293014,_0x3eb2a6,_0x1a9c61,_0x6b40f1,this[_0xca597f(0xf9)](_0x53e5b6)[_0xca597f(0x24c)]());}[_0x182aea(0x24c)](_0x3d0681){const _0x350b54=_0x182aea,_0x5916b8={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x350b54(0xf9)](_0x3d0681)&&(_0x5916b8[_0x350b54(0x243)][_0x3d0681]=this[_0x350b54(0xf9)](_0x3d0681)[_0x350b54(0x24c)]()),this['_model'][_0x350b54(0x13e)](_0x3d0681)){_0x5916b8['pivotTableConfigs'][_0x3d0681]={};const _0x513be4=this[_0x350b54(0x112)][_0x350b54(0x13e)](_0x3d0681);_0x513be4!=null&&_0x513be4[_0x350b54(0x241)]&&[..._0x513be4['keys']()][_0x350b54(0x1f1)](_0x590273=>{const _0x29d263=_0x350b54,_0x2a8b09=_0x513be4['get'](_0x590273);_0x2a8b09!=null&&_0x2a8b09[_0x29d263(0x241)]&&(_0x5916b8[_0x29d263(0x2b0)][_0x3d0681][_0x590273]={},[..._0x2a8b09[_0x29d263(0x2ce)]()]['forEach'](_0x4fb4e5=>{const _0x2dad5a=_0x29d263,_0x2cbb9d=_0x2a8b09[_0x2dad5a(0x13e)](_0x4fb4e5);_0x2cbb9d&&(_0x5916b8[_0x2dad5a(0x2b0)][_0x3d0681][_0x590273][_0x4fb4e5]=_0x2cbb9d);}));});}return _0x5916b8;}[_0x182aea(0x387)](_0x46dce3){const _0x113dcb=_0x182aea;var _0x3d198e;const {dataFieldManagerConfig:_0x54b572,pivotTableConfigs:_0xe980ce}=_0x46dce3;_0x54b572&&Object[_0x113dcb(0x2ce)](_0x54b572)[_0x113dcb(0x1f1)](_0x34e3d7=>{const _0x446721=_0x113dcb;this[_0x446721(0xf9)](_0x34e3d7)[_0x446721(0x387)](_0x54b572[_0x34e3d7]);});const _0x5c5ca6=[];if(_0xe980ce){const _0x4a0614=(_0x3d198e=this[_0x113dcb(0x372)]['get'](_0x5e852f[_0x113dcb(0x1c1)])[_0x113dcb(0x327)](_0x4c185a[_0x113dcb(0x331)]))!=null?_0x3d198e:{},{ls:_0x4d3d9d,pbk:_0x2b77cd}=_0x4a0614,_0x3f80d5=_0x301057(_0x5654ca,_0x4d3d9d,_0x2b77cd)[_0x113dcb(0x2b4)];Object['keys'](_0xe980ce)[_0x113dcb(0x1f1)](_0x3b0d8c=>{const _0x2390aa=_0x113dcb;let _0x921fa9=0x0;const _0x1b3343=_0xe980ce[_0x3b0d8c];Object['keys'](_0x1b3343)[_0x2390aa(0x1f1)](_0x12b46d=>{const _0x240227=_0x2390aa,_0x17d411=_0x1b3343[_0x12b46d];Object[_0x240227(0x2ce)](_0x17d411)['forEach'](_0x3563ad=>{const _0x2b097e=_0x240227,_0x350cbf=_0x17d411[_0x3563ad];if(_0x350cbf){if(_0x921fa9>=_0x3f80d5)return;_0x921fa9++;const _0x267b5c=this[_0x2b097e(0xf9)](_0x3b0d8c),_0x2971d6=_0x267b5c['collections'][_0x3563ad],_0x323b61=_0x2971d6[_0x2b097e(0x14e)]();let _0x37a18e=0x0;for(const _0x84fca0 of _0x323b61)_0x267b5c[_0x2b097e(0x35d)](_0x84fca0,_0x350cbf['sourceRangeInfo'],_0x37a18e),_0x37a18e++;const _0x5dab7f=new _0x57400a[(_0x2b097e(0x2d0))](_0x2971d6);_0x5dab7f[_0x2b097e(0x387)](_0x350cbf['fieldsConfig']),this[_0x2b097e(0x246)](_0x3b0d8c,_0x12b46d,_0x3563ad,_0x5dab7f,_0x350cbf);const _0x50a74b=_0x5dab7f['query']();_0x5c5ca6[_0x2b097e(0x2d8)]({'unitId':_0x3b0d8c,'subUnitId':_0x12b46d,'pivotTableId':_0x3563ad,'view':_0x50a74b[_0x2b097e(0x24c)](),'pivotConfig':_0x350cbf,'type':_0x4d6445[_0x2b097e(0x1e7)]});const _0x3e0b9=!!_0x5dab7f['isEmpty'](),_0x206e25={'view':_0x50a74b,'pivotTableId':_0x3563ad,'textInfo':this['getTextInfo'](),'isEmpty':_0x3e0b9,'targetCellInfo':_0x350cbf['targetCellInfo']};this['updateViewData'](_0x206e25,!0x1);}});});});}_0x54b572&&Object['keys'](_0x54b572)[_0x113dcb(0x1f1)](_0x3401f3=>{const _0x1ac95f=_0x113dcb,_0x26f3c9=this[_0x1ac95f(0xf9)](_0x3401f3);this['_fieldsCollectionChange$']['next'](_0x26f3c9[_0x1ac95f(0x15b)]);}),this[_0x113dcb(0x367)][_0x113dcb(0x119)](_0xe83f7f['id'],{'batch':_0x5c5ca6,'collectionConfig':_0x54b572},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x5b2bc4=_0x182aea;this['disposeWithMe'](this['_resourceManagerService'][_0x5b2bc4(0x1fe)]({'toJson':_0x28a2f5=>JSON[_0x5b2bc4(0x168)](this[_0x5b2bc4(0x24c)](_0x28a2f5)),'parseJson':_0x2285f9=>{if(!_0x2285f9)return{};try{return JSON['parse'](_0x2285f9);}catch{return{};}},'businesses':[_0x5e852f['UniverInstanceType'][_0x5b2bc4(0x1ad)]],'pluginName':_0x20b0ef,'onLoad':(_0x508ece,_0x26aac9)=>{const _0x31fcc2=_0x5b2bc4;this[_0x31fcc2(0x387)](_0x26aac9);},'onUnLoad':_0x558d3e=>{const _0x2778ba=_0x5b2bc4;this[_0x2778ba(0xf0)](_0x558d3e);}}));}},_0x263ce9[_0x182aea(0x19f)]=_0x444a99([_0x4ad677(0x0,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x26d)])),_0x4ad677(0x1,_0x5e852f['IUniverInstanceService']),_0x4ad677(0x2,_0x5e852f['Inject'](_0x5e852f[_0x182aea(0x207)])),_0x4ad677(0x3,_0x5e852f[_0x182aea(0x1c1)]),_0x4ad677(0x4,_0x5e852f[_0x182aea(0x16d)]),_0x4ad677(0x5,_0x5e852f[_0x182aea(0x308)](_0x5e852f['IResourceManagerService']))],_0x263ce9[_0x182aea(0x19f)]);const _0x4f1d5b={0x0:{0x0:{'v':_0x182aea(0x240),'s':_0x4901ed}},0x2:{0x1:{'v':'','s':_0x4901ed},0x2:{'v':'','s':_0x4901ed},0x3:{'v':_0x182aea(0x1ec),'s':_0x4901ed},0x4:{'v':'','s':_0x4901ed},0x5:{'v':'','s':_0x4901ed}},0x3:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0x4:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0x5:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0x6:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0x7:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0x8:{0x0:{'v':_0x182aea(0x2d3),'s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':_0x182aea(0x102),'s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0x9:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0xa:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0xb:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0xc:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}},0xd:{0x0:{'v':'','s':_0x4901ed},0x1:{'v':'','s':_0x22daee},0x2:{'v':'','s':_0x22daee},0x3:{'v':'','s':_0x22daee},0x4:{'v':'','s':_0x22daee},0x5:{'v':'','s':_0x22daee}}},_0x129b6a={'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':[]},_0x1405b6=(_0x154083,_0x36b2cf)=>{const _0x4b61d0=_0x182aea,_0x545560=new _0x5e852f[(_0x4b61d0(0x2da))](),_0x35d53b=new _0x5e852f[(_0x4b61d0(0x2da))](_0x4f1d5b),{row:_0x1feab6,col:_0x82bb5e}=_0x36b2cf;_0x35d53b[_0x4b61d0(0x176)]((_0x3578b5,_0x544a65,_0x984e62)=>{const _0x46ec21=_0x4b61d0;let _0x2c9af1='';_0x984e62['v']===_0x46ec21(0x240)?_0x2c9af1=_0x154083[_0x46ec21(0x240)]:_0x984e62['v']===_0x46ec21(0x2d3)?_0x2c9af1=_0x154083[_0x46ec21(0x2d3)]:_0x984e62['v']==='column'?_0x2c9af1=_0x154083[_0x46ec21(0x1ec)]:_0x984e62['v']===_0x46ec21(0x102)&&(_0x2c9af1=_0x154083[_0x46ec21(0x102)]),_0x545560['setValue'](_0x3578b5+_0x1feab6,_0x544a65+_0x82bb5e,{..._0x984e62,'v':_0x2c9af1});});const _0x1bdf66=_0x5e852f[_0x4b61d0(0x1a9)]['deepClone'](_0x129b6a);return Object['keys'](_0x129b6a)[_0x4b61d0(0x1f1)](_0x56764b=>{const _0x43a268=_0x4b61d0;_0x1bdf66[_0x56764b]=_0x129b6a[_0x56764b][_0x43a268(0x208)](_0x106575=>({..._0x106575,'startRow':_0x106575[_0x43a268(0x2a6)]+_0x1feab6,'endRow':_0x106575['endRow']+_0x1feab6,'startColumn':_0x106575[_0x43a268(0x34d)]+_0x82bb5e,'endColumn':_0x106575[_0x43a268(0x154)]+_0x82bb5e}));}),{'matrixCache':_0x545560,'rangesCache':_0x1bdf66};};function _0x46f018(_0x4458e5,_0x4700d0){const _0x1596a0=_0x182aea;let _0x4760f5='';const _0x37ef0b=this[_0x1596a0(0xfa)]();switch(_0x4700d0){case _0x57400a[_0x1596a0(0x155)][_0x1596a0(0x11c)]:_0x4760f5=_0x37ef0b[_0x1596a0(0x2ac)]+_0x4458e5;break;case _0x57400a[_0x1596a0(0x155)][_0x1596a0(0x2b4)]:_0x4760f5=_0x37ef0b[_0x1596a0(0x35b)]+_0x4458e5;break;case _0x57400a['PivotSubtotalTypeEnum']['countNums']:_0x4760f5=_0x37ef0b['sheets-pivot.countNumsName']+_0x4458e5;break;case _0x57400a[_0x1596a0(0x155)][_0x1596a0(0x2f4)]:_0x4760f5=_0x37ef0b[_0x1596a0(0xd6)]+_0x4458e5;break;case _0x57400a['PivotSubtotalTypeEnum'][_0x1596a0(0x27d)]:_0x4760f5=_0x37ef0b[_0x1596a0(0x330)]+_0x4458e5;break;case _0x57400a['PivotSubtotalTypeEnum'][_0x1596a0(0x34f)]:_0x4760f5=_0x37ef0b[_0x1596a0(0x37e)]+_0x4458e5;break;case _0x57400a[_0x1596a0(0x155)]['stdDev']:_0x4760f5=_0x37ef0b[_0x1596a0(0x11f)]+_0x4458e5;break;case _0x57400a[_0x1596a0(0x155)][_0x1596a0(0x311)]:_0x4760f5=_0x37ef0b[_0x1596a0(0xd0)]+_0x4458e5;break;case _0x57400a['PivotSubtotalTypeEnum'][_0x1596a0(0x20a)]:_0x4760f5=_0x37ef0b['sheets-pivot.sumName']+_0x4458e5;break;case _0x57400a[_0x1596a0(0x155)][_0x1596a0(0x221)]:_0x4760f5=_0x37ef0b[_0x1596a0(0x182)]+_0x4458e5;break;case _0x57400a[_0x1596a0(0x155)][_0x1596a0(0x375)]:_0x4760f5=_0x37ef0b[_0x1596a0(0x1a7)]+_0x4458e5;break;default:_0x4760f5=_0x4458e5;break;}return _0x4760f5;}function _0x28b41a(_0x4d799f,_0xa9967d,_0x299e4f,_0x3e54e5,_0x32d52b){const _0x77af64=_0x182aea;var _0x43efc5,_0x1d32be,_0x130440,_0x34d5e0,_0x49433c;const _0x184cc2=_0x5e852f['cellToRange'](_0x4d799f,_0xa9967d),{rangesInfo:_0x11eeaa,areaInfo:_0x1e2b98,headerMap:_0x2c3f3b}=_0x32d52b;if(!_0x11eeaa||!_0x1e2b98||!_0x2c3f3b)return;const _0xc87216=Object[_0x77af64(0x2ce)](_0x11eeaa)['find'](_0x431859=>_0x11eeaa[_0x431859][_0x77af64(0x2f3)](_0x10f0f9=>_0x5e852f[_0x77af64(0x2a4)][_0x77af64(0x244)](_0x10f0f9,_0x184cc2))),_0x17348d=_0x1e2b98;let _0x1dee27,_0x153682,_0x775ba1;if(_0xc87216===_0x77af64(0x193))_0x1dee27=(_0x43efc5=_0x17348d==null?void 0x0:_0x17348d['rowInfo'])==null?void 0x0:_0x43efc5[_0x4d799f],_0x153682=(_0x1d32be=_0x2c3f3b==null?void 0x0:_0x2c3f3b[_0x77af64(0x1c6)])==null?void 0x0:_0x1d32be[_0xa9967d],_0x775ba1=_0x153682==null?void 0x0:_0x153682['tableFieldId'];else{if(_0xc87216==='colRanges')_0x1dee27=(_0x130440=_0x17348d==null?void 0x0:_0x17348d[_0x77af64(0x28e)])==null?void 0x0:_0x130440[_0xa9967d],_0x153682=(_0x34d5e0=_0x2c3f3b['colHeaderMap'])==null?void 0x0:_0x34d5e0[_0x4d799f+0x1+_0xa9967d-_0x11eeaa['colRanges'][0x0]['startColumn']],_0x775ba1=_0x153682==null?void 0x0:_0x153682[_0x77af64(0x220)];else{if(_0xc87216===_0x77af64(0x145))_0x1dee27=(_0x49433c=_0x17348d==null?void 0x0:_0x17348d['cornerInfo'])==null?void 0x0:_0x49433c[_0xa9967d],_0x775ba1=_0x1dee27==null?void 0x0:_0x1dee27['tableFieldId'];else{if(_0xc87216===_0x77af64(0x261)){const _0x3bb5d8=_0x299e4f==null?void 0x0:_0x299e4f['fi'];_0x3bb5d8!==void 0x0&&(_0x775ba1=_0x3e54e5['getFilterFieldIdByIndex'](_0x3bb5d8));}}}}return{'filterId':_0x775ba1,'info':_0x1dee27,'data':_0x299e4f,'headerInfo':_0x153682};}function _0x53c54d(_0x564a67,_0x5e9865,_0x26b291){const _0x2b9339=_0x182aea,_0x25888e=_0x564a67['dataFieldsCollection'],_0x40853c=_0x25888e['getFieldIds'](),_0x2cd966=new Set();_0x564a67[_0x2b9339(0x255)](_0x5b9283=>{const _0x1915e4=_0x2b9339;_0x2cd966[_0x1915e4(0x33b)](_0x5b9283[_0x1915e4(0x231)]);});const _0xcfd151=_0x40853c[_0x2b9339(0x208)](_0x30578c=>{const _0x20c4f5=_0x2b9339,_0x495aa6=_0x25888e[_0x20c4f5(0x324)](_0x30578c);return{'checked':_0x2cd966[_0x20c4f5(0x20f)](_0x30578c),'dataFieldId':_0x495aa6['id'],'id':_0x495aa6['id'],'name':_0x25888e[_0x20c4f5(0xff)](_0x495aa6['id']),'type':_0x495aa6['getFieldDataType'](),'pivotTableId':_0x5e9865};}),_0x3135d4=[];_0x564a67[_0x2b9339(0x31c)](_0x57400a[_0x2b9339(0x265)][_0x2b9339(0x2ed)],_0x7411e5=>{const _0x4ec365=_0x2b9339;_0x3135d4['push']({'dataFieldId':_0x7411e5['dataFieldId'],'tableFieldId':_0x7411e5[_0x4ec365(0x111)](),'displayName':_0x7411e5['getDisplayName']()});});const _0x5a1ddc=[];_0x564a67['iterateFieldByArea'](_0x57400a[_0x2b9339(0x265)]['Column'],_0x5354fb=>{const _0x5c19bb=_0x2b9339;_0x5a1ddc[_0x5c19bb(0x2d8)]({'dataFieldId':_0x5354fb[_0x5c19bb(0x231)],'tableFieldId':_0x5354fb[_0x5c19bb(0x111)](),'displayName':_0x5354fb['getDisplayName']()});});const _0xd8e34f=[];if(_0x564a67['iterateFieldByArea'](_0x57400a[_0x2b9339(0x265)][_0x2b9339(0x329)],_0x17fbd0=>{const _0x5580ed=_0x2b9339;_0xd8e34f[_0x5580ed(0x2d8)]({'dataFieldId':_0x17fbd0['dataFieldId'],'tableFieldId':_0x17fbd0[_0x5580ed(0x111)](),'displayName':_0x17fbd0[_0x5580ed(0xff)](),'format':_0x17fbd0[_0x5580ed(0x1eb)](),'subTotalType':_0x17fbd0[_0x5580ed(0x293)]()});}),_0xd8e34f[_0x2b9339(0x2c9)]>0x1){const _0x52ad1f=_0x564a67[_0x2b9339(0x10c)]();(_0x564a67['isColMultiMeasure']()?_0x5a1ddc:_0x3135d4)[_0x2b9339(0x2bd)](_0x52ad1f,0x0,{'dataFieldId':'','tableFieldId':_0x2b9339(0x1e9),'displayName':'ΣValue'});}const _0x1316d2=[];_0x564a67['iterateFieldByArea'](_0x57400a['PivotTableFiledAreaEnum'][_0x2b9339(0x31f)],_0x35022b=>{const _0x47c70e=_0x2b9339;_0x1316d2[_0x47c70e(0x2d8)]({'dataFieldId':_0x35022b[_0x47c70e(0x231)],'tableFieldId':_0x35022b[_0x47c70e(0x111)](),'displayName':_0x35022b['getDisplayName']()});});const _0x4f6d67=_0x26b291[_0x2b9339(0x252)];return{'sourceList':_0xcfd151,'sourceRange':_0x4f6d67,'rowFields':_0x3135d4,'columnFields':_0x5a1ddc,'valueFields':_0xd8e34f,'filterFields':_0x1316d2,'positionInfo':_0x26b291[_0x2b9339(0x106)]};}function _0xd487ad(_0x236b71,_0x167aa3,_0x6322bf='',_0x5ab6aa={}){const _0x240afb=_0x182aea,_0xc96de2=_0x236b71[_0x240afb(0x13e)](_0x5e852f[_0x240afb(0x1a6)]);for(const _0x4cc8ab in _0x167aa3)if(Object['prototype'][_0x240afb(0x130)]['call'](_0x167aa3,_0x4cc8ab)){const _0x394427=_0x6322bf?_0x6322bf+'.'+_0x4cc8ab:_0x4cc8ab;typeof _0x167aa3[_0x4cc8ab]==_0x240afb(0x126)&&_0x167aa3[_0x4cc8ab]!==null&&!Array[_0x240afb(0x348)](_0x167aa3[_0x4cc8ab])?_0xd487ad(_0x236b71,_0x167aa3[_0x4cc8ab],_0x394427,_0x5ab6aa):_0x5ab6aa[_0x394427]=_0xc96de2['t'](_0x394427);}return _0x5ab6aa;}const _0x5cae0c=_0x1e358b=>{const _0x598ba9=_0x182aea;if(!_0x1e358b)return[];const {rowRanges:_0x21cf6a,colRanges:_0x13274f,cornerRanges:_0x40f94d,dataRanges:_0x2102dc,pageRanges:_0x22f572}=_0x1e358b,_0x3ed74d=[..._0x13274f,..._0x21cf6a,..._0x2102dc,..._0x40f94d][_0x598ba9(0x240)](_0x49cc05=>_0x49cc05[_0x598ba9(0x2a6)]>=0x0&&_0x49cc05[_0x598ba9(0x34d)]>=0x0&&_0x49cc05['endRow']>=0x0&&_0x49cc05[_0x598ba9(0x154)]>=0x0);let _0x5dfc6e=Number['MAX_SAFE_INTEGER'],_0x1a015e=Number['MIN_SAFE_INTEGER'],_0xccca26=Number[_0x598ba9(0x173)],_0x56149f=Number[_0x598ba9(0x274)];for(let _0x24e6df=0x0;_0x24e6df<_0x3ed74d[_0x598ba9(0x2c9)];_0x24e6df++)_0x5dfc6e=Math[_0x598ba9(0x27d)](_0x5dfc6e,_0x3ed74d[_0x24e6df][_0x598ba9(0x2a6)]),_0x1a015e=Math[_0x598ba9(0x2f4)](_0x1a015e,_0x3ed74d[_0x24e6df]['endRow']),_0xccca26=Math[_0x598ba9(0x27d)](_0xccca26,_0x3ed74d[_0x24e6df][_0x598ba9(0x34d)]),_0x56149f=Math[_0x598ba9(0x2f4)](_0x56149f,_0x3ed74d[_0x24e6df]['endColumn']);return[..._0x22f572,{'startRow':_0x5dfc6e,'endRow':_0x1a015e,'startColumn':_0xccca26,'endColumn':_0x56149f}];};function _0x14345d(_0x9e11e1,_0x22c0d4){const _0x15b2c2=_0x182aea,_0x518480=_0x22c0d4[_0x15b2c2(0x156)][_0x15b2c2(0x104)],{pivotTableId:_0x29140e,unitId:_0x15e356,subUnitId:_0x2713b6}=_0x22c0d4;if(!_0x518480)return;const _0x24c46f=_0x9e11e1[_0x15b2c2(0x13e)](_0x263ce9[_0x15b2c2(0x19f)]),_0x2c92bd=_0x24c46f[_0x15b2c2(0x1ed)](_0x29140e),_0x229517=_0x24c46f[_0x15b2c2(0x325)](_0x15e356,_0x2713b6,_0x29140e);if(!_0x2c92bd||!_0x229517)return;const _0x511a36=_0x2c92bd[_0x15b2c2(0x147)](_0x518480[_0x15b2c2(0x302)]);if(!(_0x511a36!=null&&_0x511a36[_0x15b2c2(0x2c9)]))return;const _0x6d9d1f=_0x229517[_0x15b2c2(0x252)],{unitId:_0x316ad8,subUnitId:_0x25cddd,range:_0x429b82}=_0x6d9d1f;let _0x1d6f4=0x0;const _0x4086e2=_0x2c92bd[_0x15b2c2(0x2b7)][_0x15b2c2(0x14e)]()[_0x15b2c2(0xe2)]((_0x90cd0f,_0x52368f)=>{const _0x768114=_0x15b2c2;var _0x3b4082;const _0x4e484d=(_0x3b4082=_0x2c92bd[_0x768114(0x100)](_0x52368f))==null?void 0x0:_0x3b4082['getformat']();return _0x4e484d&&(_0x90cd0f[String(_0x1d6f4)]=_0x4e484d),_0x1d6f4++,_0x90cd0f;},{});return{'indexes':_0x511a36,'range':_0x429b82,'sourceUnitId':_0x316ad8,'sourceSubUnitId':_0x25cddd,'formatMap':_0x4086e2};}function _0x42a595(_0x152b16,_0xc381db){const _0x416853=_0x182aea;if(!_0x152b16||!_0xc381db)return!0x0;const _0x30e4dc=_0x4c185a[_0x416853(0xf6)](_0x41606f,_0x551ddf),_0x5ccb13=new Function(_0x416853(0x1c4)+_0x30e4dc)()(_0x152b16,_0xc381db)[_0x416853(0x2c3)],_0x409b4d=_0x4c185a[_0x416853(0x15a)](_0x5ccb13,'sf',_0x5acfd0);return!((_0x5ccb13==null?void 0x0:_0x5ccb13['rt'])===_0x4c185a[_0x416853(0x187)][_0x416853(0x152)]&&!_0x409b4d);}function _0x301057(_0x369d4e,_0x3b63c7,_0x8f3390){const _0x334935=_0x182aea,_0x1cccad={'count':_0x369d4e,'timeValid':!0x1};if(!_0x3b63c7||!_0x8f3390)return _0x1cccad;const _0x4b93e2=_0x4c185a[_0x334935(0xf6)](_0x41606f,_0x551ddf),_0x3d5764=new Function(_0x334935(0x1c4)+_0x4b93e2)()(_0x3b63c7,_0x8f3390);if(_0x3d5764!=null&&_0x3d5764[_0x334935(0x2ab)]){const _0x464cbc=_0x3d5764[_0x334935(0x2c3)],_0x56e362=_0x4c185a['isFeatureAuthorizedWithinTime'](_0x464cbc,'sf',_0x5acfd0);return{'count':_0x4c185a['getSheetFeatureLimit'](_0x464cbc,_0x56e362,_0x334935(0xcf),_0x369d4e,_0x369d4e,0x0),'timeValid':_0x56e362};}return _0x1cccad;}function _0xca5d5d(_0x4eaad5,_0x50bb57,_0x5f538d,_0x59023e){const _0x1dcb5e=_0x182aea,_0x86629c={'subUnitId':_0x5f538d,'unitId':_0x50bb57,'cellValue':_0x114012['generateNullCell'](_0x59023e)},_0x3c160a=_0x114012[_0x1dcb5e(0x29e)](_0x4eaad5,_0x86629c);let _0x1a34c3=!0x1;return new _0x5e852f[(_0x1dcb5e(0x2da))](_0x3c160a[_0x1dcb5e(0x1c9)])[_0x1dcb5e(0x176)]((_0x3d2300,_0x44e048,_0xd9a199)=>{if(!_0x1a34c3&&_0xd9a199&&(_0xd9a199['custom']||_0xd9a199['f']||_0xd9a199['p']||_0xd9a199['s']||_0xd9a199['si']||_0xd9a199['t']||_0xd9a199['v']))return _0x1a34c3=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x114012[_0x1dcb5e(0x202)]['id'],'params':_0x3c160a},'setRangeValueRedoMutation':{'id':_0x114012['SetRangeValuesMutation']['id'],'params':_0x86629c},'shouldClear':_0x1a34c3};}function _0x57cd3b(_0x52cf3f){const {row:_0x3fd4de,col:_0x11dabc}=_0x52cf3f,_0x2dddef={'startRow':_0x3fd4de,'endRow':_0x3fd4de,'startColumn':_0x11dabc,'endColumn':_0x11dabc},_0x13a728={'startRow':_0x3fd4de+0x2,'endRow':_0x3fd4de+0xe,'startColumn':_0x11dabc,'endColumn':_0x11dabc+0x6};return[_0x2dddef,_0x13a728];}function _0x1bf6db(_0x425001,_0x47edd2,_0x4537c8){const _0x937dc4=_0x182aea,{cornerView:_0x43b697,rowView:_0x293da4,colView:_0x557899,pageView:_0x50dcc0}=_0x425001,{row:_0x1b570f,col:_0x62a11f}=_0x47edd2;if(_0x4537c8)return{'rowCount':_0x172c35+_0x1b570f,'colCount':_0x3ba579+_0x62a11f};const _0x3bcb95=_0x50dcc0[_0x937dc4(0x15d)]>-0x1?_0x50dcc0[_0x937dc4(0x15d)]+0x1:0x0,_0x11b8f9=_0x50dcc0[_0x937dc4(0x23b)]>-0x1?_0x50dcc0[_0x937dc4(0x23b)]:0x0,_0x3d9ed3=_0x1b570f+_0x3bcb95+(_0x3bcb95?0x1:0x0)+_0x43b697[_0x937dc4(0x295)]+_0x293da4[_0x937dc4(0x295)],_0x1a9802=_0x62a11f+_0x11b8f9,_0x2d8719=_0x62a11f+_0x43b697['colCount']+_0x557899[_0x937dc4(0x14f)],_0x256ead=Math['max'](_0x1a9802,_0x2d8719);return{'rowCount':_0x3d9ed3,'colCount':_0x256ead};}function _0x14295f(_0x48a40a,_0x1702d6,_0x1288f6,_0x48251b){const _0x4b76a2=_0x182aea,{row:_0x3c1789,col:_0x503f7b,unitId:_0x5bb415,subUnitId:_0x514d39}=_0x1288f6,_0x23b9bb=_0x1bf6db(_0x1702d6,{'row':_0x3c1789,'col':_0x503f7b},_0x48251b),_0x439c9e=_0x48a40a['get'](_0x5e852f[_0x4b76a2(0x194)]),_0x2dbbbc=_0x114012[_0x4b76a2(0xd5)](_0x439c9e,{'unitId':_0x5bb415,'subUnitId':_0x514d39}),_0x3e3080=[],_0x4b2fbc=[];if(!_0x2dbbbc)return{'undos':_0x4b2fbc,'redos':_0x3e3080};const {worksheet:_0x22e997}=_0x2dbbbc,_0x41725c=_0x22e997['getRowCount'](),_0x47ace8=_0x22e997[_0x4b76a2(0x178)]();return _0x41725c<_0x23b9bb[_0x4b76a2(0x295)]&&(_0x3e3080[_0x4b76a2(0x2d8)]({'id':_0x114012[_0x4b76a2(0x1ab)]['id'],'params':{'unitId':_0x5bb415,'subUnitId':_0x514d39,'range':{'startRow':_0x41725c,'endRow':_0x23b9bb[_0x4b76a2(0x295)]-0x1,'startColumn':0x0,'endColumn':_0x47ace8-0x1}}}),_0x4b2fbc[_0x4b76a2(0x2d8)]({'id':_0x114012['RemoveRowMutation']['id'],'params':{'unitId':_0x5bb415,'subUnitId':_0x514d39,'range':{'startRow':_0x41725c,'endRow':_0x23b9bb[_0x4b76a2(0x295)]-0x1,'startColumn':0x0,'endColumn':_0x47ace8-0x1}}})),_0x47ace8<_0x23b9bb[_0x4b76a2(0x14f)]&&(_0x3e3080[_0x4b76a2(0x2d8)]({'id':_0x114012[_0x4b76a2(0x1f7)]['id'],'params':{'unitId':_0x5bb415,'subUnitId':_0x514d39,'range':{'startRow':0x0,'endRow':_0x41725c-0x1,'startColumn':_0x47ace8,'endColumn':_0x23b9bb['colCount']-0x1}}}),_0x4b2fbc[_0x4b76a2(0x2d8)]({'id':_0x114012['RemoveColMutation']['id'],'params':{'unitId':_0x5bb415,'subUnitId':_0x514d39,'range':{'startRow':0x0,'endRow':_0x41725c-0x1,'startColumn':_0x47ace8,'endColumn':_0x23b9bb[_0x4b76a2(0x14f)]-0x1}}})),{'undos':_0x4b2fbc,'redos':_0x3e3080};}function _0x1fb5ea(_0x2458f6){const _0x524f46=_0x182aea;let _0x14979f=0x0;for(let _0x1a7ae6=0x0;_0x1a7ae6<_0x2458f6[_0x524f46(0x2c9)];_0x1a7ae6++){const _0x39f22c=_0x2458f6[_0x524f46(0x2ad)](_0x1a7ae6);_0x39f22c>=0x4e00&&_0x39f22c<=0x9fff||_0x39f22c>=0x3000&&_0x39f22c<=0x303f||_0x39f22c>=0xff00&&_0x39f22c<=0xffef?_0x14979f+=0x2:_0x14979f+=0x1;}return _0x14979f;}function _0x38b624(_0xfa203e,_0x441ff5,_0x419858,_0x5557ba){const _0x43e750=_0x182aea;var _0x3a7607,_0x1e4be9,_0x2122d9,_0xb2c8f5;const {rowCount:_0x1fd4fb,colCount:_0x3854a7,headerMap:_0x18deb8}=_0xfa203e,_0xec50bf=0x64,_0x29ccef=Math[_0x43e750(0x27d)](_0x1fd4fb,_0xec50bf),_0x250726=Math[_0x43e750(0x27d)](_0x3854a7,_0xec50bf);let _0x48f528='',_0x42e921=0x0;for(let _0x180c12=0x0;_0x180c12<_0x29ccef;_0x180c12++)for(let _0x477764=0x0;_0x477764<_0x250726;_0x477764++){const _0x54152a={...(_0x1e4be9=(_0x3a7607=_0xfa203e['data'])==null?void 0x0:_0x3a7607[_0x180c12])==null?void 0x0:_0x1e4be9[_0x477764]},_0x4ce268=(_0x2122d9=_0x18deb8[_0x180c12])==null?void 0x0:_0x2122d9[_0x43e750(0x220)],_0x67ff6c=_0x5557ba[_0x4ce268];let _0xe9a44=_0xfa203e[_0x43e750(0x37c)](_0x180c12,_0x477764);{const _0x4e637c=_0x419858?_0x477764===0x0&&((_0xb2c8f5=_0xfa203e[_0x43e750(0x105)](_0x477764+0x1))==null?void 0x0:_0xb2c8f5[_0x43e750(0x26c)]):!0x1;_0xe9a44=_0x250ad2(_0x54152a,_0x4e637c,_0x67ff6c,_0x441ff5);}if(_0xe9a44!==void 0x0){const _0x16d288=_0x1fb5ea(String(_0xe9a44));_0x42e921<_0x16d288&&(_0x48f528=String(_0xe9a44),_0x42e921=_0x16d288);}}return _0x48f528;}function _0x3acd98(_0x3ae631){const _0xf8bf21=_0x182aea,{rowCount:_0x46960e,colCount:_0x4f0bc6}=_0x3ae631;let _0x259025='',_0x5965fc=0x0;for(let _0x4b9811=_0x46960e-0x1;_0x4b9811>0x0&&_0x4b9811>_0x46960e-0x3;_0x4b9811--)for(let _0x6757a5=0x0;_0x6757a5<_0x4f0bc6;_0x6757a5++){const _0x41e2a1=_0x3ae631[_0xf8bf21(0x37c)](_0x4b9811,_0x6757a5);if(_0x41e2a1!==void 0x0){const _0x2e4d84=String(_0x41e2a1)['length'];_0x5965fc<_0x2e4d84&&(_0x259025=String(_0x41e2a1),_0x5965fc=_0x2e4d84);}}return _0x259025;}function _0x1da78e(_0x288977){const _0x7a9253=_0x182aea,{rowCount:_0x302e39,colCount:_0x12d3fc}=_0x288977;let _0x17691d='',_0x5ad924=0x0;for(let _0x1f2fe5=0x0;_0x1f2fe5<_0x302e39;_0x1f2fe5++)for(let _0x5e6bd0=0x0;_0x5e6bd0<_0x12d3fc;_0x5e6bd0++){const _0x408ef6=_0x288977[_0x7a9253(0x37c)](_0x1f2fe5,_0x5e6bd0);if(_0x408ef6!==void 0x0){const _0x5b8647=String(_0x408ef6)[_0x7a9253(0x2c9)];_0x5ad924<_0x5b8647&&(_0x17691d=String(_0x408ef6),_0x5ad924=_0x5b8647);}}return _0x17691d;}var _0x1ae1f7=Object['defineProperty'],_0x20010f=Object[_0x182aea(0x2ea)],_0x9b1948=(_0x5ca0f6,_0x5ed8f1,_0xe12655,_0x5f47fe)=>{const _0x581cd6=_0x182aea;for(var _0x5bb608=_0x5f47fe>0x1?void 0x0:_0x5f47fe?_0x20010f(_0x5ed8f1,_0xe12655):_0x5ed8f1,_0x59640d=_0x5ca0f6[_0x581cd6(0x2c9)]-0x1,_0x2a119e;_0x59640d>=0x0;_0x59640d--)(_0x2a119e=_0x5ca0f6[_0x59640d])&&(_0x5bb608=(_0x5f47fe?_0x2a119e(_0x5ed8f1,_0xe12655,_0x5bb608):_0x2a119e(_0x5bb608))||_0x5bb608);return _0x5f47fe&&_0x5bb608&&_0x1ae1f7(_0x5ed8f1,_0xe12655,_0x5bb608),_0x5bb608;},_0x138867=(_0x18cbf0,_0x3b29d4)=>(_0x16cb4b,_0x1f6dfe)=>_0x3b29d4(_0x16cb4b,_0x1f6dfe,_0x18cbf0);_0x263ce9[_0x182aea(0xe7)]=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0xd22b9c,_0x28ca6a,_0x1e8b6e){const _0x4cecd7=_0x182aea;super(),_0x53fb96(this,_0x4cecd7(0x112),new Map()),_0x53fb96(this,_0x4cecd7(0x22a),new Map()),_0x53fb96(this,'_pivotTableRangeInfo',new Map()),_0x53fb96(this,_0x4cecd7(0x2fa),new Map()),_0x53fb96(this,_0x4cecd7(0x2f1),new _0x29847b[(_0x4cecd7(0x242))]()),_0x53fb96(this,'_pivotInitCompleted$',new _0x29847b['Subject']()),_0x53fb96(this,_0x4cecd7(0x1ef),this['_pivotInitCompleted$'][_0x4cecd7(0x180)]()),_0x53fb96(this,_0x4cecd7(0x1ce),new _0x29847b[(_0x4cecd7(0x242))]()),_0x53fb96(this,_0x4cecd7(0x29b),this[_0x4cecd7(0x1ce)][_0x4cecd7(0x180)]()),_0x53fb96(this,_0x4cecd7(0x19a),{}),_0x53fb96(this,_0x4cecd7(0xce),this[_0x4cecd7(0x2f1)]['asObservable']()),(this['_injector']=_0xd22b9c,this[_0x4cecd7(0x367)]=_0x28ca6a,this['_univerInstanceService']=_0x1e8b6e,this[_0x4cecd7(0x21b)](),this[_0x4cecd7(0x2e5)]());}[_0x182aea(0x2e5)](){const _0x2bec59=_0x182aea;this[_0x2bec59(0x165)](this['_univerInstanceService']['getTypeOfUnitDisposed$'](_0x5e852f[_0x2bec59(0x31e)]['UNIVER_SHEET'])[_0x2bec59(0x359)](_0x72235c=>{const _0xfec686=_0x2bec59;this[_0xfec686(0xf0)](_0x72235c[_0xfec686(0x1a4)]());}));}['setPivotInitCompleted'](){const _0x113d8c=_0x182aea;this['_pivotInitCompleted$'][_0x113d8c(0x33f)](!0x0);}[_0x182aea(0x21b)](){const _0x2130bd=_0x182aea,_0x5ecfb6=_0xd487ad(this[_0x2130bd(0x372)],_0x162294,'',{});this[_0x2130bd(0x19a)]=_0x5ecfb6,this[_0x2130bd(0x367)][_0x2130bd(0x119)](_0x13f2fe['id'],{'textInfo':_0x5ecfb6},{'onlyLocal':!0x0});}[_0x182aea(0xfa)](){return this['_textInfo'];}['updateViewInfo'](_0x4d2392,_0x577d39,_0xa8ca3c,_0x304fed,_0x204e57){const _0x58ea59=_0x182aea;this['updatePivotTableMatrixInfo'](_0x4d2392,_0x577d39,_0xa8ca3c,_0x304fed),this[_0x58ea59(0x27e)](_0x4d2392,_0x577d39,_0xa8ca3c,_0x204e57);}['getPivotTableConfig'](_0x5c364a,_0x11a91d,_0xbd9618){const _0x3d3904=_0x182aea;var _0x3d02f8;const _0x42224e=(_0x3d02f8=this['_model'][_0x3d3904(0x13e)](_0x5c364a))==null?void 0x0:_0x3d02f8[_0x3d3904(0x13e)](_0x11a91d);if(_0x42224e)return _0x42224e[_0x3d3904(0x13e)](_0xbd9618);}[_0x182aea(0x107)](_0x29dacd,_0x15ca77){const _0x4b5f97=_0x182aea,_0x3978ca=this[_0x4b5f97(0x112)]['get'](_0x29dacd);if(_0x3978ca){for(const [_0x548a52,_0x119465]of _0x3978ca[_0x4b5f97(0x32f)]())for(const [_0x5b36a5,_0x1cb226]of _0x119465[_0x4b5f97(0x32f)]())if(_0x5b36a5===_0x15ca77)return _0x1cb226[_0x4b5f97(0x106)];}}['getTargetByPivotId'](_0x179603,_0x572913,_0x4120d8){const _0x32970f=_0x182aea,_0x523554=this['getPivotTableConfig'](_0x179603,_0x572913,_0x4120d8);return _0x523554==null?void 0x0:_0x523554[_0x32970f(0x106)];}[_0x182aea(0x37a)](_0x676324,_0x3fec35){const _0x1f1c44=_0x182aea;var _0x47e4fe;return(_0x47e4fe=this[_0x1f1c44(0x112)][_0x1f1c44(0x13e)](_0x676324))==null?void 0x0:_0x47e4fe[_0x1f1c44(0x13e)](_0x3fec35);}[_0x182aea(0x2e2)](_0x4f1377,_0x48d454,_0x92accf,_0x13d41f){const _0x415357=_0x182aea,_0x309f3f=this['_ensurePivotMap'](_0x4f1377,_0x48d454);_0x13d41f?_0x309f3f[_0x415357(0x320)](_0x92accf,_0x13d41f):_0x309f3f[_0x415357(0x2bc)](_0x92accf),this[_0x415357(0x1ce)][_0x415357(0x33f)]({'unitId':_0x4f1377,'subUnitId':_0x48d454,'pivotTableId':_0x92accf,'pivotTableConfig':_0x13d41f});}[_0x182aea(0x123)](_0x1ef71a,_0x1c6ad5){const _0x572475=_0x182aea;var _0x18db2b;return(_0x18db2b=this[_0x572475(0x22a)]['get'](_0x1ef71a))==null?void 0x0:_0x18db2b['collections'][_0x1c6ad5];}[_0x182aea(0x32d)](_0x11b2f8,_0x4168c7){const _0x578cf3=_0x182aea;this[_0x578cf3(0x22a)][_0x578cf3(0x320)](_0x11b2f8,_0x4168c7),this[_0x578cf3(0x2f1)][_0x578cf3(0x33f)](Math[_0x578cf3(0x171)]());}['_ensurePivotMap'](_0x3ac064,_0x5061d4){const _0x3b8227=_0x182aea;let _0xef7515=this['_model']['get'](_0x3ac064);_0xef7515||(_0xef7515=new Map(),this['_model'][_0x3b8227(0x320)](_0x3ac064,_0xef7515));let _0x2cd784=_0xef7515[_0x3b8227(0x13e)](_0x5061d4);return _0x2cd784||(_0x2cd784=new Map(),_0xef7515['set'](_0x5061d4,_0x2cd784)),_0x2cd784;}[_0x182aea(0x197)](_0x21adc3,_0xf3148f){const _0x2ff3b1=_0x182aea;let _0x538101=this[_0x2ff3b1(0x1cb)]['get'](_0x21adc3);_0x538101||(_0x538101=new Map(),this[_0x2ff3b1(0x1cb)][_0x2ff3b1(0x320)](_0x21adc3,_0x538101));let _0x508f9c=_0x538101[_0x2ff3b1(0x13e)](_0xf3148f);return _0x508f9c||(_0x508f9c=new Map(),_0x538101[_0x2ff3b1(0x320)](_0xf3148f,_0x508f9c)),_0x508f9c;}[_0x182aea(0x273)](_0x20b071,_0x9e5310){const _0x3b2c2f=_0x182aea;let _0xb2b6fd=this['_pivotTableMatrixInfo'][_0x3b2c2f(0x13e)](_0x20b071);_0xb2b6fd||(_0xb2b6fd=new Map(),this[_0x3b2c2f(0x2fa)][_0x3b2c2f(0x320)](_0x20b071,_0xb2b6fd));let _0x43e74a=_0xb2b6fd[_0x3b2c2f(0x13e)](_0x9e5310);return _0x43e74a||(_0x43e74a=new Map(),_0xb2b6fd[_0x3b2c2f(0x320)](_0x9e5310,_0x43e74a)),_0x43e74a;}['updatePivotTableRangeInfo'](_0x49f8a6,_0x366b9b,_0x167140,_0xfd9674){const _0x486d5e=_0x182aea;var _0x4a67b4;const _0x3ca36d=this[_0x486d5e(0x197)](_0x49f8a6,_0x366b9b),_0x3528f5=(_0x4a67b4=_0x3ca36d[_0x486d5e(0x13e)](_0x167140))==null?void 0x0:_0x4a67b4['oldRangeInfo'];_0x3ca36d['set'](_0x167140,{'oldRangeInfo':_0x3528f5,'rangeInfo':_0xfd9674});}[_0x182aea(0x1b1)](_0x411b71,_0x42b4b7,_0x258a35,_0x3026f4){const _0x17fcee=_0x182aea;var _0x45b8c0;const _0x24f7d0=this[_0x17fcee(0x273)](_0x411b71,_0x42b4b7),_0x5664c0=(_0x45b8c0=_0x24f7d0[_0x17fcee(0x13e)](_0x258a35))==null?void 0x0:_0x45b8c0['oldMatrix'];_0x24f7d0['set'](_0x258a35,{'oldMatrix':_0x5664c0,'matrix':_0x3026f4});}[_0x182aea(0x14d)](_0x310f6e,_0x4fa237,_0x4deee4){const _0x4f0ded=_0x182aea;var _0x236997,_0x527633;return(_0x527633=(_0x236997=this[_0x4f0ded(0x1cb)][_0x4f0ded(0x13e)](_0x310f6e))==null?void 0x0:_0x236997[_0x4f0ded(0x13e)](_0x4fa237))==null?void 0x0:_0x527633[_0x4f0ded(0x13e)](_0x4deee4);}[_0x182aea(0x2cb)](_0x479d2d,_0x2e8455,_0x134081){const _0x1d52e1=_0x182aea;var _0x3d133c,_0x116994;return(_0x116994=(_0x3d133c=this[_0x1d52e1(0x2fa)][_0x1d52e1(0x13e)](_0x479d2d))==null?void 0x0:_0x3d133c[_0x1d52e1(0x13e)](_0x2e8455))==null?void 0x0:_0x116994[_0x1d52e1(0x13e)](_0x134081);}[_0x182aea(0xf0)](_0x2dea9f){const _0x9d887a=_0x182aea;this[_0x9d887a(0x112)][_0x9d887a(0x2bc)](_0x2dea9f),this[_0x9d887a(0x22a)][_0x9d887a(0x2bc)](_0x2dea9f);}},_0x263ce9[_0x182aea(0xe7)]=_0x9b1948([_0x138867(0x0,_0x5e852f['Inject'](_0x5e852f[_0x182aea(0x26d)])),_0x138867(0x1,_0x5e852f[_0x182aea(0x308)](_0x5e852f['ICommandService'])),_0x138867(0x2,_0x5e852f['Inject'](_0x5e852f[_0x182aea(0x194)]))],_0x263ce9[_0x182aea(0xe7)]);var _0x18684f=Object['defineProperty'],_0x4b1c95=Object[_0x182aea(0x2ea)],_0x29cdac=(_0x40d371,_0x4275c7,_0x21a803,_0x4c73df)=>{const _0x2d4b1a=_0x182aea;for(var _0x59e9d7=_0x4c73df>0x1?void 0x0:_0x4c73df?_0x4b1c95(_0x4275c7,_0x21a803):_0x4275c7,_0x36e397=_0x40d371[_0x2d4b1a(0x2c9)]-0x1,_0x5e5371;_0x36e397>=0x0;_0x36e397--)(_0x5e5371=_0x40d371[_0x36e397])&&(_0x59e9d7=(_0x4c73df?_0x5e5371(_0x4275c7,_0x21a803,_0x59e9d7):_0x5e5371(_0x59e9d7))||_0x59e9d7);return _0x4c73df&&_0x59e9d7&&_0x18684f(_0x4275c7,_0x21a803,_0x59e9d7),_0x59e9d7;},_0x3acc30=(_0x2eadf4,_0x29456f)=>(_0x587d95,_0x3c88c8)=>_0x29456f(_0x587d95,_0x3c88c8,_0x2eadf4);_0x263ce9[_0x182aea(0x19c)]=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0x397d1e,_0x36992e,_0x4b14da,_0x1b23fb,_0x170f3e){const _0x4c8d2e=_0x182aea;super(),_0x53fb96(this,_0x4c8d2e(0x1b4),new Map()),_0x53fb96(this,_0x4c8d2e(0x226),new Map()),_0x53fb96(this,'_markDirty$',new _0x29847b[(_0x4c8d2e(0x242))]()),_0x53fb96(this,_0x4c8d2e(0x2f6),this['_markDirty$'][_0x4c8d2e(0x180)]()),_0x53fb96(this,_0x4c8d2e(0x35e),new _0x29847b['Subject']()),_0x53fb96(this,_0x4c8d2e(0x1b5),this[_0x4c8d2e(0x35e)][_0x4c8d2e(0x180)]()),_0x53fb96(this,_0x4c8d2e(0x19a)),(this[_0x4c8d2e(0x1c3)]=_0x397d1e,this[_0x4c8d2e(0x372)]=_0x36992e,this['_sheetsPivotTableConfigModel']=_0x4b14da,this['_univerInstanceService']=_0x1b23fb,this['_exclusiveRangeService']=_0x170f3e,this['_initLocale'](),this['_initUnitDisposed']());}[_0x182aea(0x2e5)](){const _0x22c393=_0x182aea;this[_0x22c393(0x165)](this[_0x22c393(0x1a0)][_0x22c393(0x234)](_0x5e852f['UniverInstanceType']['UNIVER_SHEET'])[_0x22c393(0x359)](_0xf7642=>{const _0xafbbad=_0x22c393;this[_0xafbbad(0xf0)](_0xf7642[_0xafbbad(0x1a4)]());}));}[_0x182aea(0x21b)](){const _0x2aa2be=_0x182aea;this[_0x2aa2be(0x19a)]=_0xd487ad(this[_0x2aa2be(0x372)],_0x162294,'',{});}[_0x182aea(0x235)](_0xc86853){const _0x174b2a=_0x182aea,{view:_0x248817,unitId:_0x21e85a,subUnitId:_0x13a3b0,pivotTableId:_0x1128c1,type:_0x3677af}=_0xc86853,_0x49e2f8=this[_0x174b2a(0x266)][_0x174b2a(0x325)](_0x21e85a,_0x13a3b0,_0x1128c1);if(!_0x248817||!_0x49e2f8||_0x3677af===_0x4d6445['Delete'])return;const {pageView:_0x56b7a3,cornerView:_0x5f25dd,rowView:_0x537dd4,colView:_0x1e8d2c,dataView:_0x5d68e7}=_0x248817,_0x123da1=_0x49e2f8[_0x174b2a(0x106)],_0x589ff1=_0x49e2f8[_0x174b2a(0x371)],_0x5e2882=this[_0x174b2a(0x254)](_0x21e85a,_0x13a3b0),_0x4bac50=this['_ensurePivotItemRenderInfoCache'](_0x21e85a,_0x13a3b0,_0x1128c1);if(_0x589ff1)return this['_updateRenderEmptyCache'](_0xc86853,_0x5e2882,_0x123da1,_0x4bac50);{const _0x597ca7=_0x59dbf1(_0x123da1,_0x56b7a3,!0x0),_0x4b2e60=_0x56b7a3['lastRow']>=0x0?_0x56b7a3[_0x174b2a(0x15d)]+0x1:0x0,_0x2c0b5b=_0x5f25dd[_0x174b2a(0x18a)](),_0x422440=_0x5f25dd[_0x174b2a(0x2dc)](),_0xda7037=_0x597ca7[_0x174b2a(0x2c9)]>0x0?_0x36909d:0x0,_0x1e8946=_0x59dbf1({'row':_0x123da1[_0x174b2a(0x2d3)]+_0x4b2e60+_0xda7037,'col':_0x123da1['col']},_0x5f25dd,!0x1,!0x1),_0x827d8a=_0x59dbf1({'row':_0x123da1[_0x174b2a(0x2d3)]+_0x4b2e60+_0xda7037+_0x2c0b5b,'col':_0x123da1[_0x174b2a(0x103)]},_0x537dd4,!0x1,!0x0),_0x52407e=_0x59dbf1({'row':_0x123da1[_0x174b2a(0x2d3)]+_0x4b2e60+_0xda7037,'col':_0x123da1[_0x174b2a(0x103)]+_0x422440},_0x1e8d2c,!0x1,!0x0),_0x4aa9e6=_0x59dbf1({'row':_0x123da1[_0x174b2a(0x2d3)]+_0x4b2e60+_0xda7037+_0x2c0b5b,'col':_0x123da1[_0x174b2a(0x103)]+_0x422440},_0x5d68e7,!0x1,!0x1);_0x4bac50[_0x174b2a(0x185)]={'rowRanges':_0x827d8a,'colRanges':_0x52407e,'cornerRanges':_0x1e8946,'dataRanges':_0x4aa9e6,'pageRanges':_0x597ca7};const _0x63990a=_0x326673(this[_0x174b2a(0x372)],_0x248817,_0x49e2f8,this[_0x174b2a(0x19a)]),{valueMatrix:_0x463ec2,rowInfo:_0x4455c6,colInfo:_0x5f4d05,cornerInfo:_0xec7864,rowHeaderMap:_0x2ed3a9,colHeaderMap:_0x3960a7}=_0x63990a;return _0x4bac50['areaInfo']={'rowInfo':_0x4455c6,'colInfo':_0x5f4d05,'cornerInfo':_0xec7864},_0x4bac50[_0x174b2a(0x32a)]={'rowHeaderMap':_0x2ed3a9,'colHeaderMap':_0x3960a7},_0x463ec2['forEach']((_0x5bcd51,_0x43e045)=>{const _0x1621e3=_0x174b2a;Object[_0x1621e3(0x2ce)](_0x43e045)[_0x1621e3(0x1f1)](_0x5ef0a8=>{const _0x4f9cb2=_0x1621e3,_0x303568=+_0x5ef0a8,_0x3503a1=_0x463ec2['getValue'](_0x5bcd51,_0x303568);_0x5e2882[_0x4f9cb2(0x11a)](_0x5bcd51,_0x303568,_0x3503a1);});}),this['_viewUpdate$'][_0x174b2a(0x33f)]({'unitId':_0x21e85a,'subUnitId':_0x13a3b0,'valueMatrix':_0x5e2882,'rangesCache':_0x4bac50[_0x174b2a(0x185)],'pivotTableId':_0x1128c1,'type':_0xc86853[_0x174b2a(0x20b)]}),this[_0x174b2a(0x266)][_0x174b2a(0x26b)](_0x21e85a,_0x13a3b0,_0x1128c1,_0x5e2882,_0x4bac50[_0x174b2a(0x185)]),this[_0x174b2a(0x30c)][_0x174b2a(0x370)](_0x21e85a,_0x13a3b0,_0x49d791,this[_0x174b2a(0xd4)](_0x4bac50[_0x174b2a(0x185)],_0x1128c1)),{'rangeCache':_0x4bac50['rangesInfo'],'matrix':_0x5e2882};}}[_0x182aea(0x10e)](_0xb297cf,_0x2f45dd,_0x4e69b6,_0x6edaf4){const _0x55390e=_0x182aea,_0x43e2a7=this[_0x55390e(0x1c3)]['t'],{unitId:_0x637799,subUnitId:_0x2c7d17,pivotTableId:_0x5c40cb}=_0xb297cf,_0x49f466={'filter':_0x43e2a7(_0x55390e(0x190)),'row':_0x43e2a7(_0x55390e(0x1b0)),'column':_0x43e2a7('sheets-pivot.emptyPivot.column'),'values':_0x43e2a7(_0x55390e(0x211))},{matrixCache:_0x544bd5,rangesCache:_0x3a2a86}=_0x1405b6(_0x49f466,_0x4e69b6);return _0x544bd5[_0x55390e(0x176)]((_0xef3091,_0x112115,_0x1e21b2)=>{const _0x143fc9=_0x55390e;_0x2f45dd[_0x143fc9(0x11a)](_0xef3091,_0x112115,_0x1e21b2);}),_0x6edaf4[_0x55390e(0x185)]=_0x3a2a86,this[_0x55390e(0x35e)][_0x55390e(0x33f)]({'unitId':_0x637799,'subUnitId':_0x2c7d17,'valueMatrix':_0x2f45dd,'rangesCache':_0x3a2a86,'pivotTableId':_0x5c40cb,'type':_0xb297cf[_0x55390e(0x20b)],'isEmpty':!0x0}),this[_0x55390e(0x266)][_0x55390e(0x26b)](_0x637799,_0x2c7d17,_0x5c40cb,_0x2f45dd,_0x3a2a86),this[_0x55390e(0x30c)][_0x55390e(0x370)](_0x637799,_0x2c7d17,_0x49d791,this[_0x55390e(0xd4)](_0x3a2a86,_0x5c40cb)),{'rangeCache':_0x6edaf4[_0x55390e(0x185)],'matrix':_0x2f45dd};}[_0x182aea(0xd4)](_0x386061,_0x29d8ba){const _0x2d6131=_0x182aea,_0xf33eba=[],_0xaf9ca5=_0x5cae0c(_0x386061);for(const _0x8eaf51 of _0xaf9ca5)_0xf33eba[_0x2d6131(0x2d8)]({'groupId':_0x29d8ba,'range':_0x8eaf51});return _0xf33eba;}[_0x182aea(0x13b)](_0x1c2393){const _0x151665=_0x182aea;var _0x19c2e5,_0x31e569,_0x281c7e,_0x52ae43;const {pivotTableId:_0x18385e,unitId:_0x1e61fa,subUnitId:_0x409f13}=_0x1c2393;if(!_0x18385e||!_0x1e61fa||!_0x409f13)return;const _0x4b6351=this[_0x151665(0x254)](_0x1e61fa,_0x409f13),_0x45ae42=(_0x31e569=(_0x19c2e5=this['_pivotRenderInfoCache'][_0x151665(0x13e)](_0x1e61fa))==null?void 0x0:_0x19c2e5[_0x151665(0x13e)](_0x409f13))==null?void 0x0:_0x31e569['get'](_0x18385e);if(_0x45ae42!=null&&_0x45ae42[_0x151665(0x185)]){for(const _0x20f81c of Object['keys'](_0x45ae42[_0x151665(0x185)]))_0x45ae42['rangesInfo'][_0x20f81c][_0x151665(0x1f1)](_0x1b4a96=>{const _0x2d0f9c=_0x151665;for(let _0x44fc47=_0x1b4a96['startRow'];_0x44fc47<=_0x1b4a96[_0x2d0f9c(0x26e)];_0x44fc47++)for(let _0x19de87=_0x1b4a96[_0x2d0f9c(0x34d)];_0x19de87<=_0x1b4a96[_0x2d0f9c(0x154)];_0x19de87++)_0x4b6351[_0x2d0f9c(0x2e4)](_0x44fc47,_0x19de87);});}_0x45ae42&&((_0x52ae43=(_0x281c7e=this[_0x151665(0x1b4)][_0x151665(0x13e)](_0x1e61fa))==null?void 0x0:_0x281c7e['get'](_0x409f13))==null||_0x52ae43[_0x151665(0x2bc)](_0x18385e)),this['_viewUpdate$'][_0x151665(0x33f)]({'unitId':_0x1e61fa,'subUnitId':_0x409f13,'valueMatrix':_0x4b6351,'pivotTableId':_0x18385e,'rangesCache':void 0x0,'type':_0x1c2393[_0x151665(0x20b)]}),this[_0x151665(0x30c)][_0x151665(0x30f)](_0x1e61fa,_0x409f13,_0x49d791,_0x18385e);}[_0x182aea(0x1e1)](_0x19999a,_0x411c0e,_0x42c358){const _0x2284c5=_0x182aea;var _0x24e143,_0x535673,_0x22bdd9,_0x232fd1,_0x36729c,_0x4f7cec;return this['_pivotRenderInfoCache'][_0x2284c5(0x20f)](_0x19999a)||this['_pivotRenderInfoCache']['set'](_0x19999a,new Map()),(_0x24e143=this[_0x2284c5(0x1b4)][_0x2284c5(0x13e)](_0x19999a))!=null&&_0x24e143[_0x2284c5(0x20f)](_0x411c0e)||(_0x535673=this[_0x2284c5(0x1b4)][_0x2284c5(0x13e)](_0x19999a))==null||_0x535673['set'](_0x411c0e,new Map()),(_0x232fd1=(_0x22bdd9=this[_0x2284c5(0x1b4)]['get'](_0x19999a))==null?void 0x0:_0x22bdd9[_0x2284c5(0x13e)](_0x411c0e))!=null&&_0x232fd1[_0x2284c5(0x20f)](_0x42c358)||(_0x4f7cec=(_0x36729c=this[_0x2284c5(0x1b4)]['get'](_0x19999a))==null?void 0x0:_0x36729c[_0x2284c5(0x13e)](_0x411c0e))==null||_0x4f7cec[_0x2284c5(0x320)](_0x42c358,{}),this[_0x2284c5(0x1b4)]['get'](_0x19999a)[_0x2284c5(0x13e)](_0x411c0e)[_0x2284c5(0x13e)](_0x42c358);}[_0x182aea(0x254)](_0x3f5a67,_0x36fe76){const _0x1f0de7=_0x182aea;var _0xe64d60,_0x39d0a2;return this['_pivotRenderValueMatrixCache'][_0x1f0de7(0x20f)](_0x3f5a67)||this[_0x1f0de7(0x226)]['set'](_0x3f5a67,new Map()),(_0xe64d60=this[_0x1f0de7(0x226)][_0x1f0de7(0x13e)](_0x3f5a67))!=null&&_0xe64d60['has'](_0x36fe76)||(_0x39d0a2=this['_pivotRenderValueMatrixCache']['get'](_0x3f5a67))==null||_0x39d0a2[_0x1f0de7(0x320)](_0x36fe76,new _0x5e852f[(_0x1f0de7(0x2da))]()),this[_0x1f0de7(0x226)][_0x1f0de7(0x13e)](_0x3f5a67)[_0x1f0de7(0x13e)](_0x36fe76);}[_0x182aea(0x1a2)](_0x381d36,_0x4d2809,_0x313ed1,_0x1a6e16){const _0x3d5520=_0x182aea;var _0x4d9ef6,_0x48072c;const _0x20e655=(_0x48072c=(_0x4d9ef6=this[_0x3d5520(0x226)]['get'](_0x381d36))==null?void 0x0:_0x4d9ef6[_0x3d5520(0x13e)](_0x4d2809))==null?void 0x0:_0x48072c[_0x3d5520(0x37c)](_0x313ed1,_0x1a6e16);if(_0x20e655!=null)return _0x20e655;}[_0x182aea(0x32e)](_0x443338,_0x1db5bb,_0x115c1e,_0x95ae59){const _0x11fecd=_0x182aea;var _0x1ecd4f;const _0x27b515=_0x5e852f['cellToRange'](_0x115c1e,_0x95ae59),_0x3a2c9c=(_0x1ecd4f=this['_pivotRenderInfoCache'][_0x11fecd(0x13e)](_0x443338))==null?void 0x0:_0x1ecd4f['get'](_0x1db5bb);return _0x3a2c9c?Array[_0x11fecd(0x1de)](_0x3a2c9c[_0x11fecd(0x2ce)]())['find'](_0x4535c2=>{const _0x452b7b=_0x11fecd,_0x394c1b=_0x3a2c9c[_0x452b7b(0x13e)](_0x4535c2),_0x373f62=_0x394c1b==null?void 0x0:_0x394c1b[_0x452b7b(0x185)];return _0x373f62?Object[_0x452b7b(0x2ce)](_0x373f62)['some'](_0x54c8a6=>_0x373f62[_0x54c8a6][_0x452b7b(0x2f3)](_0x21080f=>_0x5e852f['Rectangle'][_0x452b7b(0x244)](_0x21080f,_0x27b515))):!0x1;}):void 0x0;}['getIntersectsPivotTable'](_0x104f4c,_0x31f361,_0x3c71c0){const _0x55d555=_0x182aea;var _0xdd7a3c;const _0x18ef82=(_0xdd7a3c=this[_0x55d555(0x1b4)][_0x55d555(0x13e)](_0x104f4c))==null?void 0x0:_0xdd7a3c['get'](_0x31f361),_0x3e7194=[];return _0x18ef82&&Array[_0x55d555(0x1de)](_0x18ef82[_0x55d555(0x2ce)]())[_0x55d555(0x1f1)](_0x519ae4=>{const _0x186256=_0x55d555,_0x579164=_0x18ef82[_0x186256(0x13e)](_0x519ae4),_0x3c286e=_0x579164==null?void 0x0:_0x579164[_0x186256(0x185)];if(_0x3c286e)for(const _0x52f15f of Object[_0x186256(0x102)](_0x3c286e)){let _0x132231=!0x1;for(const _0x20706c of _0x52f15f)if(_0x5e852f[_0x186256(0x2a4)]['intersects'](_0x20706c,_0x3c71c0)){_0x3e7194[_0x186256(0x2d8)](_0x519ae4),_0x132231=!0x0;break;}if(_0x132231)break;}}),_0x3e7194;}['getSubUnitPivotMatrix'](_0x46b7a3,_0x574bb3){const _0x31c4b4=_0x182aea;var _0x1e7352,_0x2a04d0;return(_0x2a04d0=(_0x1e7352=this['_pivotRenderValueMatrixCache'][_0x31c4b4(0x13e)](_0x46b7a3))==null?void 0x0:_0x1e7352[_0x31c4b4(0x13e)](_0x574bb3))!=null?_0x2a04d0:new _0x5e852f[(_0x31c4b4(0x2da))]();}[_0x182aea(0x26a)](_0x5531a4,_0x552e1a,_0x4ba503){const _0x3654a2=_0x182aea;var _0x36dcfd,_0x425093;return(_0x425093=(_0x36dcfd=this['_pivotRenderInfoCache']['get'](_0x5531a4))==null?void 0x0:_0x36dcfd[_0x3654a2(0x13e)](_0x552e1a))==null?void 0x0:_0x425093['get'](_0x4ba503);}[_0x182aea(0xf0)](_0x21255a){const _0x25dbfe=_0x182aea;this[_0x25dbfe(0x1b4)]['delete'](_0x21255a),this[_0x25dbfe(0x226)][_0x25dbfe(0x2bc)](_0x21255a);}['markDirty'](_0x269a7e,_0x2e136c){const _0x42beb1=_0x182aea;this[_0x42beb1(0x2ca)]['next']({'unitId':_0x269a7e,'subUnitId':_0x2e136c});}},_0x263ce9[_0x182aea(0x19c)]=_0x29cdac([_0x3acc30(0x0,_0x5e852f[_0x182aea(0x308)](_0x5e852f['LocaleService'])),_0x3acc30(0x1,_0x5e852f['Inject'](_0x5e852f['Injector'])),_0x3acc30(0x2,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0xe7)])),_0x3acc30(0x3,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x194)])),_0x3acc30(0x4,_0x5e852f[_0x182aea(0x308)](_0x114012[_0x182aea(0x2d9)]))],_0x263ce9['SheetsPivotTableAdaptorModel']);var _0x3a92d8=Object[_0x182aea(0xe8)],_0x245810=Object[_0x182aea(0x2ea)],_0x2d69f3=(_0x519ba9,_0x5dd520,_0x38301d,_0x3a6431)=>{const _0x1f3e9a=_0x182aea;for(var _0x8c04db=_0x3a6431>0x1?void 0x0:_0x3a6431?_0x245810(_0x5dd520,_0x38301d):_0x5dd520,_0x36fe50=_0x519ba9[_0x1f3e9a(0x2c9)]-0x1,_0x2bee93;_0x36fe50>=0x0;_0x36fe50--)(_0x2bee93=_0x519ba9[_0x36fe50])&&(_0x8c04db=(_0x3a6431?_0x2bee93(_0x5dd520,_0x38301d,_0x8c04db):_0x2bee93(_0x8c04db))||_0x8c04db);return _0x3a6431&&_0x8c04db&&_0x3a92d8(_0x5dd520,_0x38301d,_0x8c04db),_0x8c04db;},_0x1446a3=(_0x44cd5d,_0x4ea13c)=>(_0x11e72f,_0x5a9eda)=>_0x4ea13c(_0x11e72f,_0x5a9eda,_0x44cd5d);_0x263ce9[_0x182aea(0x1ac)]=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0x3ebfec,_0x5c44b6){const _0x557a7f=_0x182aea;super(),_0x53fb96(this,_0x557a7f(0x28d),new _0x5e852f['AsyncInterceptorManager']({'PIVOT_PERFORM_CHECK':_0x5d2f76})),_0x53fb96(this,_0x557a7f(0x319),new _0x5e852f['InterceptorManager']({'PIVOT_MUTATION_GENERATE':_0x42b52c})),(this['_sheetInterceptorService']=_0x3ebfec,this['_sheetsPivotTableAdaptorModel']=_0x5c44b6,this['_init']());}[_0x182aea(0x184)](){this['_initViewModelBySheetInterceptor']();}[_0x182aea(0x1a3)](_0x536998){const _0x522a67=_0x182aea;return this[_0x522a67(0x28d)][_0x522a67(0x201)](_0x5d2f76)(!0x1,_0x536998);}['_initViewModelBySheetInterceptor'](){const _0x3148a5=_0x182aea;this[_0x3148a5(0x165)](this[_0x3148a5(0x163)][_0x3148a5(0x19b)](_0x114012[_0x3148a5(0x25c)][_0x3148a5(0x136)],{'priority':0xc8,'effect':_0x5e852f[_0x3148a5(0x23f)][_0x3148a5(0x329)]|_0x5e852f[_0x3148a5(0x23f)][_0x3148a5(0x316)],'handler':(_0x10b4ed,_0x48df25,_0x30f86a)=>{const _0x48a035=_0x3148a5,{row:_0x3990ed,col:_0x506bce,unitId:_0x4299dd,subUnitId:_0x8c4e5c,workbook:_0x46f06c}=_0x48df25,_0x46c79a=this['_sheetsPivotTableAdaptorModel'][_0x48a035(0x1a2)](_0x4299dd,_0x8c4e5c,_0x3990ed,_0x506bce);if(!_0x46c79a)return _0x30f86a(_0x10b4ed);const _0x5efcc7={..._0x10b4ed};(_0x46c79a['v']||_0x46c79a['v']===0x0)&&(_0x5efcc7['v']=_0x46c79a['v']),_0x46c79a['t']&&(_0x5efcc7['t']=_0x46c79a['t']);const _0x710801=(typeof(_0x10b4ed==null?void 0x0:_0x10b4ed['s'])==_0x48a035(0x368)?_0x46f06c[_0x48a035(0xd1)]()[_0x48a035(0x13e)](_0x10b4ed==null?void 0x0:_0x10b4ed['s']):_0x10b4ed==null?void 0x0:_0x10b4ed['s'])||{},_0x46761a=_0x46f06c[_0x48a035(0xd1)]()[_0x48a035(0x13e)](_0x46c79a['s']),_0xb35e75={..._0x46761a,..._0x710801};_0x46761a!=null&&_0x46761a['n']&&(_0xb35e75['n']=_0x46761a['n']);const _0x45938e=_0x46f06c[_0x48a035(0xd1)]()['setValue'](_0xb35e75);return _0x5efcc7['s']=_0x45938e,(_0x46c79a[_0x48a035(0x296)]===_0x57400a[_0x48a035(0x217)]['Collapse']||_0x46c79a[_0x48a035(0x296)]===_0x57400a['PivotCellStyleTypeEnum'][_0x48a035(0x33c)])&&(_0x5efcc7[_0x48a035(0x133)]={},_0x5efcc7[_0x48a035(0x133)][_0x48a035(0x22f)]=_0x498f18),_0x30f86a(_0x5efcc7);}}));}},_0x263ce9[_0x182aea(0x1ac)]=_0x2d69f3([_0x1446a3(0x0,_0x5e852f[_0x182aea(0x308)](_0x114012[_0x182aea(0x361)])),_0x1446a3(0x1,_0x5e852f['Inject'](_0x263ce9['SheetsPivotTableAdaptorModel']))],_0x263ce9[_0x182aea(0x1ac)]);function _0x3efc92(_0x498e48,_0x1ea38e){const _0x1c5455=_0x182aea;switch(_0x1ea38e){case _0x57400a[_0x1c5455(0x265)][_0x1c5455(0x329)]:return _0x498e48[_0x1c5455(0x351)];case _0x57400a[_0x1c5455(0x265)][_0x1c5455(0x31f)]:return _0x498e48[_0x1c5455(0x2b1)];case _0x57400a[_0x1c5455(0x265)][_0x1c5455(0x2ed)]:return _0x498e48[_0x1c5455(0x2c6)];case _0x57400a['PivotTableFiledAreaEnum']['Column']:return _0x498e48[_0x1c5455(0x170)];default:return[];}}function _0xaa5dc6(_0x4fab28,_0x29499b){const _0x41f7fa=_0x182aea;return _0x4fab28[_0x41f7fa(0x161)][_0x29499b]||_0x4fab28['dimension'][_0x29499b];}function _0x2f0ff7(_0x4b50f6,_0x2f381c){const _0x12cb97=_0x182aea,{area:_0x92c68d,fieldJson:_0x4b9a57,index:_0x5eb661}=_0x2f381c;_0x92c68d===_0x57400a[_0x12cb97(0x265)][_0x12cb97(0x329)]?_0x4b50f6[_0x12cb97(0x161)][_0x4b9a57['id']]=_0x4b9a57:_0x4b50f6[_0x12cb97(0x1b2)][_0x4b9a57['id']]=_0x4b9a57,_0x3efc92(_0x4b50f6,_0x92c68d)['splice'](_0x5eb661,0x0,_0x4b9a57['id']);}function _0x17a109(_0x2b261b,_0x570ffd){const _0x330c44=_0x182aea,{area:_0x1f34bf,fieldId:_0x253435,index:_0x167352}=_0x570ffd;_0x1f34bf===_0x57400a[_0x330c44(0x265)][_0x330c44(0x329)]?delete _0x2b261b['measure'][_0x253435]:delete _0x2b261b['dimension'][_0x253435],_0x3efc92(_0x2b261b,_0x1f34bf)[_0x330c44(0x2bd)](_0x167352,0x1);}function _0x3959e3(_0x34b5e5,_0xec2c9e){const _0x4a3f06=_0x182aea,{fieldId:_0x44f94c,name:_0x252669}=_0xec2c9e,_0x318a08=_0xaa5dc6(_0x34b5e5,_0x44f94c);_0x318a08&&(_0x318a08[_0x4a3f06(0x2cc)]=_0x252669);}function _0x1b4a80(_0x5301e4,_0x475a8b){const _0x267002=_0x182aea,{fieldId:_0x4b1630,collapse:_0x84fb53,item:_0x17e4ce}=_0x475a8b;_0x17e4ce!==void 0x0?(_0x5301e4[_0x267002(0x36b)][_0x4b1630]=_0x5301e4['collapseInfo'][_0x4b1630]||{},_0x5301e4[_0x267002(0x36b)][_0x4b1630][_0x17e4ce]=_0x84fb53):_0x5301e4['collapseInfo'][_0x4b1630]=_0x84fb53;}function _0x258684(_0x34a73f,_0x38ae62){const _0x2e122d=_0x182aea,{fieldId:_0x2eec3e,format:_0x18f108}=_0x38ae62,_0x391476=_0xaa5dc6(_0x34a73f,_0x2eec3e);_0x391476&&(_0x391476[_0x2e122d(0x250)]=_0x18f108);}function _0x5071a2(_0x55359a,_0x3b4426){const _0x4eb590=_0x182aea,{fieldId:_0x59a782,filterInfo:_0xe47a0a}=_0x3b4426,_0x37e5f6=_0xaa5dc6(_0x55359a,_0x59a782);_0x37e5f6&&(_0x37e5f6[_0x4eb590(0x322)]=_0xe47a0a);}function _0x21d2da(_0x574ee8,_0x143cd8){const _0x14a05f=_0x182aea,{fieldId:_0x3edb57,subtotalType:_0x289f0c}=_0x143cd8,_0x578955=_0xaa5dc6(_0x574ee8,_0x3edb57);_0x578955&&(_0x578955[_0x14a05f(0x238)]=_0x289f0c);}function _0x86910e(_0x469b04,_0x1c53be){const _0x34092d=_0x182aea,{fieldId:_0x580aaf,oldArea:_0x54950b,area:_0x347a1e,oldIndex:_0x3231f8,index:_0x2b99b2}=_0x1c53be,_0x2770dc=_0x54950b!==_0x57400a[_0x34092d(0x265)][_0x34092d(0x329)]&&_0x347a1e===_0x57400a[_0x34092d(0x265)]['Value'],_0x3097ef=_0x54950b===_0x57400a[_0x34092d(0x265)][_0x34092d(0x329)]&&_0x347a1e!==_0x57400a[_0x34092d(0x265)]['Value'];if(_0x2770dc||_0x3097ef){const _0x13fa40=_0xaa5dc6(_0x469b04,_0x580aaf);_0x13fa40&&(_0x2770dc?(delete _0x469b04[_0x34092d(0x1b2)][_0x580aaf],_0x469b04[_0x34092d(0x161)][_0x580aaf]=_0x13fa40):(delete _0x469b04['measure'][_0x580aaf],_0x469b04[_0x34092d(0x1b2)][_0x580aaf]=_0x13fa40));}const _0x6603ed=_0x3efc92(_0x469b04,_0x54950b),_0x14c2f4=_0x3efc92(_0x469b04,_0x347a1e);_0x6603ed['splice'](_0x3231f8,0x1),_0x14c2f4[_0x34092d(0x2bd)](_0x2b99b2,0x0,_0x580aaf);}function _0x537367(_0xd8e6d1,_0x37b655){const {valuePosition:_0x3aa0a1,index:_0x5f2d2a}=_0x37b655;_0xd8e6d1['valuePosition']=_0x3aa0a1,_0xd8e6d1['valueIndex']=_0x5f2d2a;}function _0x2aec1a(_0x1c7bd3,_0x2dd93e){const _0x27dc2b=_0x182aea,{tableFieldId:_0x955c76,sourceName:_0x62d465,dataFieldId:_0x2174ef}=_0x2dd93e,_0x226eaf=_0xaa5dc6(_0x1c7bd3,_0x955c76);_0x226eaf&&(_0x226eaf[_0x27dc2b(0x1f2)]=_0x62d465,_0x226eaf['dataFieldId']=_0x2174ef);}function _0xa613cf(_0x5125a5,_0x3c6211){const _0x442bbf=_0x182aea,{fieldId:_0x52e50f,sortInfo:_0x19c7a1}=_0x3c6211,_0x509c42=_0xaa5dc6(_0x5125a5,_0x52e50f);_0x509c42&&(_0x509c42[_0x442bbf(0x24b)]=_0x19c7a1);}function _0x1a6ce9(_0x78708,_0x3da4e2){const _0x4aeaee=_0x182aea,{options:_0x1e14f3}=_0x3da4e2;_0x78708[_0x4aeaee(0x1d7)]={..._0x78708['options'],..._0x1e14f3};}const _0x25aeea={'type':_0x5e852f[_0x182aea(0x1b3)]['MUTATION'],'id':_0x182aea(0x1bc),'handler'(_0x3ce08d,_0x1a5463){const _0x178300=_0x182aea;if(!_0x1a5463)return!0x1;if(!!_0x3ce08d[_0x178300(0x13e)](_0x5e852f[_0x178300(0x1c1)])[_0x178300(0x327)](_0x543aca))return!0x0;const _0x38d6db=_0x3ce08d[_0x178300(0x13e)](_0x263ce9[_0x178300(0x19f)]),{pivotTableId:_0x42ddca,fieldJson:_0x503179,area:_0x69e927,index:_0x36e833,unitId:_0x2e743c,subUnitId:_0x322564}=_0x1a5463,_0x2bfa10=_0x38d6db['getPivotTableInstance'](_0x42ddca);if(!_0x2bfa10)return!0x1;let _0x57ff60;_0x69e927===_0x57400a[_0x178300(0x265)]['Value']?_0x57ff60=_0x57400a[_0x178300(0x2ee)](_0x503179):_0x57ff60=_0x57400a['createLabelField'](_0x503179),_0x2bfa10[_0x178300(0x1be)](_0x57ff60,_0x69e927,_0x36e833);const _0x372d5b=_0x38d6db[_0x178300(0x369)](_0x2e743c,_0x322564,_0x42ddca);_0x2f0ff7(_0x372d5b,_0x1a5463);const _0x23bd80=_0x38d6db[_0x178300(0x325)](_0x2e743c,_0x322564,_0x42ddca);return _0x38d6db[_0x178300(0x38c)]({'unitId':_0x2e743c,'subUnitId':_0x322564,'token':_0x42ddca,'type':_0x4d6445[_0x178300(0x19d)],'pivotConfig':_0x23bd80}),!0x0;}},_0x28a3ab={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x131),'handler'(_0x4abc71,_0x3cbc13){const _0x55fae7=_0x182aea;if(!_0x3cbc13)return!0x1;if(!!_0x4abc71['get'](_0x5e852f[_0x55fae7(0x1c1)])['getConfig'](_0x543aca))return!0x0;const _0x5c3bae=_0x4abc71[_0x55fae7(0x13e)](_0x263ce9['SheetsPivotDataSourceModel']),{pivotTableId:_0x3805d0,fieldId:_0x3e75db,unitId:_0x4c9e27,subUnitId:_0x4b9414}=_0x3cbc13,_0x2caa77=_0x5c3bae[_0x55fae7(0x1ed)](_0x3805d0);if(!_0x2caa77)return!0x1;_0x2caa77[_0x55fae7(0x20d)](_0x3e75db);const _0x18812e=_0x5c3bae[_0x55fae7(0x369)](_0x4c9e27,_0x4b9414,_0x3805d0);_0x17a109(_0x18812e,_0x3cbc13);const _0x41c76c=_0x5c3bae[_0x55fae7(0x325)](_0x4c9e27,_0x4b9414,_0x3805d0);return _0x5c3bae[_0x55fae7(0x38c)]({'unitId':_0x4c9e27,'subUnitId':_0x4b9414,'token':_0x3805d0,'type':_0x4d6445['Set'],'pivotConfig':_0x41c76c}),!0x0;}},_0x4a7d8b={'type':_0x5e852f['CommandType']['MUTATION'],'id':_0x182aea(0x364),'handler'(_0x366199,_0x53dbed){const _0x18fadd=_0x182aea;if(!_0x53dbed)return!0x1;if(!!_0x366199[_0x18fadd(0x13e)](_0x5e852f[_0x18fadd(0x1c1)])[_0x18fadd(0x327)](_0x543aca))return!0x0;const _0x153dd1=_0x366199[_0x18fadd(0x13e)](_0x263ce9[_0x18fadd(0x19f)]),{unitId:_0x4fdad8,subUnitId:_0x3e8345,pivotTableId:_0x1df4bf,fieldId:_0x45d202,name:_0x369dc8}=_0x53dbed,_0x31c51d=_0x153dd1[_0x18fadd(0x1ed)](_0x1df4bf);if(!_0x31c51d)return!0x1;_0x31c51d[_0x18fadd(0x2d2)](_0x45d202,_0x369dc8);const _0x58fee0=_0x153dd1[_0x18fadd(0x369)](_0x4fdad8,_0x3e8345,_0x1df4bf);return _0x3959e3(_0x58fee0,_0x53dbed),_0x153dd1['addDirtyPivotTable']({'unitId':_0x4fdad8,'subUnitId':_0x3e8345,'token':_0x1df4bf,'type':_0x4d6445[_0x18fadd(0x19d)]}),!0x0;}},_0x4b1215={'type':_0x5e852f['CommandType'][_0x182aea(0x356)],'id':_0x182aea(0x16a),'handler'(_0x2e6aa9,_0x318fa5){const _0xc1674b=_0x182aea;if(!_0x318fa5)return!0x1;if(!!_0x2e6aa9[_0xc1674b(0x13e)](_0x5e852f[_0xc1674b(0x1c1)])[_0xc1674b(0x327)](_0x543aca))return!0x0;const _0x3ae0e3=_0x2e6aa9[_0xc1674b(0x13e)](_0x263ce9[_0xc1674b(0x19f)]),{unitId:_0x3ab90d,subUnitId:_0x3e6e9e,pivotTableId:_0x35c316,fieldId:_0x115829,collapse:_0x13c7f8,item:_0x239053}=_0x318fa5,_0x3fdc9a=_0x3ae0e3[_0xc1674b(0x1ed)](_0x35c316);if(!_0x3fdc9a)return!0x1;_0x3fdc9a[_0xc1674b(0x28b)](_0x115829,_0x13c7f8,_0x239053);const _0x33d05a=_0x3ae0e3['getPivotTableModelConfig'](_0x3ab90d,_0x3e6e9e,_0x35c316);return _0x1b4a80(_0x33d05a,_0x318fa5),_0x3ae0e3['addDirtyPivotTable']({'unitId':_0x3ab90d,'subUnitId':_0x3e6e9e,'token':_0x35c316,'type':_0x4d6445[_0xc1674b(0x19d)]}),!0x0;}},_0x42c7b1={'type':_0x5e852f['CommandType'][_0x182aea(0x356)],'id':_0x182aea(0x342),'handler'(_0x20a22e,_0x410e6b){const _0x5027e6=_0x182aea;if(!_0x410e6b)return!0x1;if(!!_0x20a22e[_0x5027e6(0x13e)](_0x5e852f[_0x5027e6(0x1c1)])[_0x5027e6(0x327)](_0x543aca))return!0x0;const _0x3d9a1a=_0x20a22e['get'](_0x263ce9[_0x5027e6(0x19f)]),{unitId:_0x2e05cf,subUnitId:_0x1e4308,pivotTableId:_0x438c02,fieldId:_0x24c925,format:_0x39ade0}=_0x410e6b,_0x5f3954=_0x3d9a1a[_0x5027e6(0x1ed)](_0x438c02);if(!_0x5f3954)return!0x1;_0x5f3954[_0x5027e6(0x1bb)](_0x24c925,_0x39ade0);const _0x350145=_0x3d9a1a[_0x5027e6(0x369)](_0x2e05cf,_0x1e4308,_0x438c02);return _0x258684(_0x350145,_0x410e6b),_0x3d9a1a[_0x5027e6(0x38c)]({'unitId':_0x2e05cf,'subUnitId':_0x1e4308,'token':_0x438c02,'type':_0x4d6445[_0x5027e6(0x19d)]}),!0x0;}},_0x23659a={'type':_0x5e852f[_0x182aea(0x1b3)]['MUTATION'],'id':_0x182aea(0x215),'handler'(_0x478e94,_0x1cc9a8){const _0x1ae4e3=_0x182aea;if(!_0x1cc9a8)return!0x1;if(!!_0x478e94['get'](_0x5e852f[_0x1ae4e3(0x1c1)])['getConfig'](_0x543aca))return!0x0;const _0x7b5f8f=_0x478e94[_0x1ae4e3(0x13e)](_0x263ce9[_0x1ae4e3(0x19f)]),{unitId:_0x4e5178,subUnitId:_0x154acf,pivotTableId:_0x3bc652,fieldId:_0x6ed9fe,filterInfo:_0x503952}=_0x1cc9a8,_0x55120a=_0x7b5f8f[_0x1ae4e3(0x1ed)](_0x3bc652);if(!_0x55120a)return!0x1;_0x55120a[_0x1ae4e3(0xd3)](_0x6ed9fe,_0x503952);const _0x36fde6=_0x7b5f8f[_0x1ae4e3(0x369)](_0x4e5178,_0x154acf,_0x3bc652);return _0x5071a2(_0x36fde6,_0x1cc9a8),_0x7b5f8f[_0x1ae4e3(0x38c)]({'unitId':_0x4e5178,'subUnitId':_0x154acf,'token':_0x3bc652,'type':_0x4d6445[_0x1ae4e3(0x19d)]}),!0x0;}},_0x4abe2b={'type':_0x5e852f['CommandType']['MUTATION'],'id':_0x182aea(0x28f),'handler'(_0x28c0bb,_0xdb1bdc){const _0x261d3d=_0x182aea;if(!_0xdb1bdc)return!0x1;if(!!_0x28c0bb[_0x261d3d(0x13e)](_0x5e852f[_0x261d3d(0x1c1)])[_0x261d3d(0x327)](_0x543aca))return!0x0;const _0x2bc39c=_0x28c0bb[_0x261d3d(0x13e)](_0x263ce9[_0x261d3d(0x19f)]),{unitId:_0x984a3f,subUnitId:_0x3ee313,pivotTableId:_0x24ce1f,options:_0x355317}=_0xdb1bdc,_0x5af321=_0x2bc39c[_0x261d3d(0x1ed)](_0x24ce1f);if(!_0x5af321)return!0x1;_0x5af321[_0x261d3d(0x1b8)](_0x355317);const _0x26026c=_0x2bc39c[_0x261d3d(0x369)](_0x984a3f,_0x3ee313,_0x24ce1f);return _0x1a6ce9(_0x26026c,_0xdb1bdc),_0x2bc39c[_0x261d3d(0x38c)]({'unitId':_0x984a3f,'subUnitId':_0x3ee313,'token':_0x24ce1f,'type':_0x4d6445[_0x261d3d(0x19d)]}),!0x0;}},_0x57c7ca={'type':_0x5e852f[_0x182aea(0x1b3)]['MUTATION'],'id':_0x182aea(0x27a),'handler'(_0x171acf,_0x58ac71){const _0x3a496c=_0x182aea;if(!_0x58ac71)return!0x1;if(!!_0x171acf[_0x3a496c(0x13e)](_0x5e852f['IConfigService'])[_0x3a496c(0x327)](_0x543aca))return!0x0;const _0x243c03=_0x171acf[_0x3a496c(0x13e)](_0x263ce9['SheetsPivotDataSourceModel']),{unitId:_0x105a14,subUnitId:_0x52241a,pivotTableId:_0x11b9f0,sortInfo:_0xd3862,fieldId:_0x2ece60}=_0x58ac71,_0x39ad07=_0x243c03[_0x3a496c(0x1ed)](_0x11b9f0);if(!_0x39ad07)return!0x1;_0x39ad07[_0x3a496c(0x279)](_0x2ece60,_0xd3862);const _0x3c83c1=_0x243c03['getPivotTableModelConfig'](_0x105a14,_0x52241a,_0x11b9f0);return _0xa613cf(_0x3c83c1,_0x58ac71),_0x243c03[_0x3a496c(0x38c)]({'unitId':_0x105a14,'subUnitId':_0x52241a,'token':_0x11b9f0,'type':_0x4d6445[_0x3a496c(0x19d)]}),!0x0;}},_0x4ce8e4={'type':_0x5e852f['CommandType'][_0x182aea(0x356)],'id':_0x182aea(0x151),'handler'(_0x128ae5,_0x20a51b){const _0x3e3422=_0x182aea;if(!_0x20a51b)return!0x1;if(!!_0x128ae5[_0x3e3422(0x13e)](_0x5e852f['IConfigService'])['getConfig'](_0x543aca))return!0x0;const _0x11e876=_0x128ae5[_0x3e3422(0x13e)](_0x263ce9['SheetsPivotDataSourceModel']),{unitId:_0x40714d,subUnitId:_0x3e0aba,pivotTableId:_0x1e5727,fieldId:_0x11564b,subtotalType:_0xf1ed8d}=_0x20a51b,_0x531f9c=_0x11e876[_0x3e3422(0x1ed)](_0x1e5727);if(!_0x531f9c)return!0x1;_0x531f9c[_0x3e3422(0xef)](_0x11564b,_0xf1ed8d);const _0x43ed06=_0x11e876[_0x3e3422(0x369)](_0x40714d,_0x3e0aba,_0x1e5727);return _0x21d2da(_0x43ed06,_0x20a51b),_0x11e876['addDirtyPivotTable']({'unitId':_0x40714d,'subUnitId':_0x3e0aba,'token':_0x1e5727,'type':_0x4d6445['Set']}),!0x0;}},_0x57b681={'type':_0x5e852f['CommandType'][_0x182aea(0x356)],'id':_0x182aea(0x2cd),'handler'(_0x1adf4d,_0x2a05df){const _0x2b9569=_0x182aea;if(!_0x2a05df)return!0x1;if(!!_0x1adf4d[_0x2b9569(0x13e)](_0x5e852f['IConfigService'])[_0x2b9569(0x327)](_0x543aca))return!0x0;const _0x3b213=_0x1adf4d['get'](_0x263ce9[_0x2b9569(0x19f)]),{unitId:_0x1d630b,subUnitId:_0x15718b,pivotTableId:_0x3e7e63,area:_0x500bf5,index:_0x49e894,fieldId:_0x45548e}=_0x2a05df,_0x3bb887=_0x3b213[_0x2b9569(0x1ed)](_0x3e7e63);if(!_0x3bb887)return!0x1;_0x3bb887['updateFieldPosition'](_0x45548e,_0x500bf5,_0x49e894);const _0x2526f4=_0x3b213[_0x2b9569(0x369)](_0x1d630b,_0x15718b,_0x3e7e63);return _0x86910e(_0x2526f4,_0x2a05df),_0x3b213[_0x2b9569(0x38c)]({'unitId':_0x1d630b,'subUnitId':_0x15718b,'token':_0x3e7e63,'type':_0x4d6445[_0x2b9569(0x19d)]}),!0x0;}},_0x5d1eb5={'type':_0x5e852f[_0x182aea(0x1b3)]['MUTATION'],'id':_0x182aea(0x258),'handler'(_0x1686b7,_0xe0f10e){const _0x1a5bca=_0x182aea;if(!_0xe0f10e)return!0x1;if(!!_0x1686b7[_0x1a5bca(0x13e)](_0x5e852f[_0x1a5bca(0x1c1)])[_0x1a5bca(0x327)](_0x543aca))return!0x0;const _0x49e5de=_0x1686b7[_0x1a5bca(0x13e)](_0x263ce9[_0x1a5bca(0x19f)]),{unitId:_0x54c859,subUnitId:_0x1da5a1,pivotTableId:_0x7d3cdd,sourceName:_0x1a1a8d,dataFieldId:_0x3ec7d6,tableFieldId:_0x54daaf}=_0xe0f10e,_0x36d6ef=_0x49e5de[_0x1a5bca(0x1ed)](_0x7d3cdd);if(!_0x36d6ef)return!0x1;_0x36d6ef[_0x1a5bca(0x1ff)](_0x54daaf,_0x1a1a8d,_0x3ec7d6);const _0x639e6d=_0x49e5de['getPivotTableModelConfig'](_0x54c859,_0x1da5a1,_0x7d3cdd);return _0x2aec1a(_0x639e6d,_0xe0f10e),_0x49e5de[_0x1a5bca(0x38c)]({'unitId':_0x54c859,'subUnitId':_0x1da5a1,'token':_0x7d3cdd,'type':_0x4d6445[_0x1a5bca(0x19d)]}),!0x0;}},_0x49cd61={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0xea),'handler'(_0x1a5263,_0x2cdc3b){const _0x1f5e13=_0x182aea;if(!_0x2cdc3b)return!0x1;if(!!_0x1a5263[_0x1f5e13(0x13e)](_0x5e852f[_0x1f5e13(0x1c1)])['getConfig'](_0x543aca))return!0x0;const _0x33fe20=_0x1a5263[_0x1f5e13(0x13e)](_0x263ce9['SheetsPivotDataSourceModel']),{unitId:_0x1d8b16,subUnitId:_0x13c81f,pivotTableId:_0x405c0c,valuePosition:_0x28c65c,index:_0x4a69c6}=_0x2cdc3b,_0x25a2ea=_0x33fe20[_0x1f5e13(0x1ed)](_0x405c0c);if(!_0x25a2ea)return!0x1;_0x25a2ea['updateValuePosition'](_0x28c65c,_0x4a69c6);const _0x21be14=_0x33fe20[_0x1f5e13(0x369)](_0x1d8b16,_0x13c81f,_0x405c0c);return _0x537367(_0x21be14,_0x2cdc3b),_0x33fe20[_0x1f5e13(0x38c)]({'unitId':_0x1d8b16,'subUnitId':_0x13c81f,'token':_0x405c0c,'type':_0x4d6445[_0x1f5e13(0x19d)]}),!0x0;}};function _0x293314(_0x12c18e,_0x518dff,_0x28b8a6){const _0x444bc6=_0x182aea,{pivotTableId:_0x3ffc67,unitId:_0x1fd80f,subUnitId:_0x1575b}=_0x518dff,_0x16c4e4=[],_0x517aa4=[];for(const _0x108e06 of _0x28b8a6)switch(_0x108e06[_0x444bc6(0x20b)]){case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x1f0)]:{const {fieldJson:_0x2e53db,area:_0x9eb0d9,index:_0x116ed2}=_0x108e06,_0x1e20a1={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldJson':_0x2e53db,'area':_0x9eb0d9,'index':_0x116ed2},_0x9b7c94={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x2e53db['id'],'area':_0x9eb0d9,'index':_0x116ed2};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x25aeea['id'],'params':_0x1e20a1}),_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x28a3ab['id'],'params':_0x9b7c94});}break;case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x2db)]:{const {fieldId:_0x227b28,newSubtotalType:_0x5a7ffe,oldSubtotalType:_0x572a70}=_0x108e06,_0x5b7fd1={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x227b28,'subtotalType':_0x5a7ffe};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x4ce8e4['id'],'params':_0x5b7fd1});const _0x2d869e={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x227b28,'subtotalType':_0x572a70};_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x4ce8e4['id'],'params':_0x2d869e});}break;case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x38b)]:{const {fieldId:_0x3eb276,fieldJson:_0x420122,area:_0x4626da,index:_0x5c29bb}=_0x108e06,_0x4785cd={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x3eb276,'index':_0x5c29bb,'area':_0x4626da};_0x16c4e4['push']({'id':_0x28a3ab['id'],'params':_0x4785cd});const _0x58c03d={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldJson':_0x420122,'area':_0x4626da,'index':_0x5c29bb};_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x25aeea['id'],'params':_0x58c03d});}break;case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x1b7)]:{const {fieldId:_0x923e8e,oldName:_0x291210,newName:_0x46b751}=_0x108e06,_0x2e31e8={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x923e8e,'name':_0x46b751};_0x16c4e4['push']({'id':_0x4a7d8b['id'],'params':_0x2e31e8});const _0x291d11={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x923e8e,'name':_0x291210};_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x4a7d8b['id'],'params':_0x291d11});}break;case _0x57400a['PivotTableChangeTypeEnum']['SetFilterInfo']:{const {fieldId:_0x4f51a8,oldFilterInfo:_0x1f4af8,newFilterInfo:_0x19e33c}=_0x108e06,_0x27ae9f={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x4f51a8,'filterInfo':_0x19e33c};_0x16c4e4['push']({'id':_0x23659a['id'],'params':_0x27ae9f});const _0x31e3f9={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x4f51a8,'filterInfo':_0x1f4af8};_0x517aa4['unshift']({'id':_0x23659a['id'],'params':_0x31e3f9});}break;case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x115)]:{const {fieldId:_0x1f9948,oldSortInfo:_0xebf529,newSortInfo:_0x51945a}=_0x108e06,_0x942be7={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x1f9948,'sortInfo':_0x51945a};_0x16c4e4['push']({'id':_0x57c7ca['id'],'params':_0x942be7});const _0x1442ce={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x1f9948,'sortInfo':_0xebf529};_0x517aa4['unshift']({'id':_0x57c7ca['id'],'params':_0x1442ce});}break;case _0x57400a['PivotTableChangeTypeEnum'][_0x444bc6(0x2f5)]:{const {oldOptions:_0x5c383e,newOptions:_0x1a85f5}=_0x108e06,_0x26ece4={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'options':_0x1a85f5};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x4abe2b['id'],'params':_0x26ece4});const _0x405fa9={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'options':_0x5c383e};_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x4abe2b['id'],'params':_0x405fa9});}break;case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x29a)]:{const {oldArea:_0x53ddc7,newArea:_0x33b881,oldIndex:_0x4ce523,newIndex:_0x948e69,fieldId:_0x34e7cf}=_0x108e06,_0x4cf9ab={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x34e7cf,'area':_0x33b881,'index':_0x948e69,'oldArea':_0x53ddc7,'oldIndex':_0x4ce523};_0x16c4e4['push']({'id':_0x57b681['id'],'params':_0x4cf9ab});const _0x3f1708={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x34e7cf,'area':_0x53ddc7,'index':_0x4ce523,'oldArea':_0x33b881,'oldIndex':_0x948e69};_0x517aa4['unshift']({'id':_0x57b681['id'],'params':_0x3f1708});}break;case _0x57400a[_0x444bc6(0x236)]['UpdateValuePosition']:{const {oldValuePosition:_0x4fa1bd,newValuePosition:_0x8fd2bb,oldIndex:_0x454096,newIndex:_0x3ba03f}=_0x108e06,_0x5bb312={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'valuePosition':_0x8fd2bb,'index':_0x3ba03f};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x49cd61['id'],'params':_0x5bb312});const _0x2b82c4={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'valuePosition':_0x4fa1bd,'index':_0x454096};_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x49cd61['id'],'params':_0x2b82c4});}break;case _0x57400a[_0x444bc6(0x236)]['SetCollapse']:{const {fieldId:_0x16316a,collapse:_0x2b9312,item:_0x91b1f6}=_0x108e06,_0x454198={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x16316a,'collapse':_0x2b9312,'item':_0x91b1f6};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x4b1215['id'],'params':_0x454198});const _0x4dc5ae={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x16316a,'collapse':!_0x2b9312,'item':_0x91b1f6};_0x517aa4['unshift']({'id':_0x4b1215['id'],'params':_0x4dc5ae});}break;case _0x57400a[_0x444bc6(0x236)][_0x444bc6(0x326)]:{const {newFormat:_0x39fa48,oldFormat:_0x16b4f4,fieldId:_0x4a14a8}=_0x108e06,_0x27b2ef={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x4a14a8,'format':_0x39fa48};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x42c7b1['id'],'params':_0x27b2ef});const _0x1e4dec={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'fieldId':_0x4a14a8,'format':_0x16b4f4};_0x517aa4[_0x444bc6(0x2a7)]({'id':_0x42c7b1['id'],'params':_0x1e4dec});}break;case _0x57400a['PivotTableChangeTypeEnum']['UpdateSource']:{const {tableFieldId:_0x48548d,oldSourceName:_0x2c9c90,newSourceName:_0x59a4e6,oldDataFieldId:_0x581de1,newDataFieldId:_0x519e36}=_0x108e06,_0x4ed7b6={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'tableFieldId':_0x48548d,'sourceName':_0x59a4e6,'dataFieldId':_0x519e36};_0x16c4e4[_0x444bc6(0x2d8)]({'id':_0x5d1eb5['id'],'params':_0x4ed7b6});const _0x5df90e={'unitId':_0x1fd80f,'subUnitId':_0x1575b,'pivotTableId':_0x3ffc67,'tableFieldId':_0x48548d,'sourceName':_0x2c9c90,'dataFieldId':_0x581de1};_0x517aa4['unshift']({'id':_0x5d1eb5['id'],'params':_0x5df90e});}break;}return{'redos':_0x16c4e4,'undos':_0x517aa4};}function _0x2ff60f(_0x249507,_0x245517){const _0xd845=_0x182aea;var _0x27b78e;const _0x25f66f=_0x249507[_0xd845(0x13e)](_0x263ce9[_0xd845(0x1ac)]),{cellInfo:_0x4a8bf6,view:_0x3507cc,isEmpty:_0x538d30}=_0x245517;return(_0x27b78e=_0x25f66f[_0xd845(0x319)][_0xd845(0x2af)](_0x42b52c)(_0x562c83,{'cellInfo':_0x4a8bf6,'view':_0x3507cc,'isEmpty':_0x538d30}))!=null?_0x27b78e:_0x562c83;}const _0x317be2=()=>typeof process<'u'&&process[_0x182aea(0x334)]!=null&&process[_0x182aea(0x334)]['node']!=null,_0x25a8dd={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x32c),'handler'(_0x4964fc,_0x241a36){const _0xabde2b=_0x182aea;var _0x162172;if(!_0x241a36)return!0x1;const _0x11375b=_0x4964fc[_0xabde2b(0x13e)](_0x5e852f[_0xabde2b(0x1c1)]);if(!!_0x11375b[_0xabde2b(0x327)](_0x543aca))return!0x0;const _0x9f0819=_0x4964fc[_0xabde2b(0x13e)](_0x5e852f[_0xabde2b(0x194)]),_0xa5c585=_0x4964fc[_0xabde2b(0x13e)](_0x263ce9[_0xabde2b(0x19f)]),{pivotTableId:_0x3065f4,pivotTableConfig:_0xeb244e,collectionConfig:_0x120d84,unitId:_0x271383,subUnitId:_0x18f3bf}=_0x241a36,{sourceRangeInfo:_0x58c363,fieldsConfig:_0x430855,targetCellInfo:_0x3d1354}=_0xeb244e,_0x405c1c=_0x9f0819[_0xabde2b(0x346)](_0x271383);if(!_0x405c1c||!_0x405c1c[_0xabde2b(0x164)](_0x18f3bf))return!0x1;if(!_0x317be2()){let _0x426a87=0x0;_0x405c1c['getSheets']()[_0xabde2b(0x1f1)](_0x5773f0=>{const _0x10e5e2=_0xabde2b;var _0x402ef0,_0x218798;_0x426a87+=(_0x218798=(_0x402ef0=_0xa5c585[_0x10e5e2(0x37a)](_0x271383,_0x5773f0[_0x10e5e2(0x2a8)]()))==null?void 0x0:_0x402ef0['size'])!=null?_0x218798:0x0;});const _0x57257f=(_0x162172=_0x11375b['getConfig'](_0x4c185a[_0xabde2b(0x331)]))!=null?_0x162172:{},{ls:_0x3532f4,pbk:_0x806531}=_0x57257f;if(!_0x42a595(_0x3532f4,_0x806531))throw new _0x5e852f['CustomCommandExecutionError'](_0xabde2b(0x157));const _0x6ba89f=_0x301057(_0x5654ca,_0x3532f4,_0x806531)[_0xabde2b(0x2b4)];if(_0x426a87>=_0x6ba89f)throw new _0x5e852f[(_0xabde2b(0x144))]('limit\x20pivot');}if(!_0x120d84||!_0x430855)return!0x1;const {collection:_0x497b5d,updateDataFieldList:_0x77712a}=_0xa5c585[_0xabde2b(0x347)](_0x3065f4,_0x120d84,_0x58c363,_0x3d1354);_0xa5c585[_0xabde2b(0x277)](_0x497b5d,_0x77712a,_0x58c363);const _0xcb6d2e=new _0x57400a[(_0xabde2b(0x2d0))](_0x497b5d);_0xcb6d2e[_0xabde2b(0x387)](_0x430855);const _0x568bc4=JSON['parse'](JSON['stringify'](_0xeb244e));return _0xa5c585['addPivotTable'](_0x271383,_0x18f3bf,_0x3065f4,_0xcb6d2e,_0x568bc4),_0xa5c585[_0xabde2b(0x38c)]({'unitId':_0x271383,'subUnitId':_0x18f3bf,'token':_0x3065f4,'type':_0x4d6445[_0xabde2b(0x1e7)],'pivotConfig':_0x568bc4}),!0x0;}},_0x2320a4={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x2bf),'handler'(_0x2e2b8f,_0x3d4173){const _0x5292f8=_0x182aea;if(!_0x3d4173)return!0x1;if(!!_0x2e2b8f['get'](_0x5e852f[_0x5292f8(0x1c1)])[_0x5292f8(0x327)](_0x543aca))return!0x0;const {pivotTableId:_0x490555,unitId:_0x3e4020,subUnitId:_0x165c9e}=_0x3d4173,_0x1993bc=_0x2e2b8f[_0x5292f8(0x13e)](_0x263ce9[_0x5292f8(0x19f)]);return _0x1993bc[_0x5292f8(0x325)](_0x3e4020,_0x165c9e,_0x490555)?(_0x1993bc[_0x5292f8(0x38c)]({'unitId':_0x3e4020,'subUnitId':_0x165c9e,'token':_0x490555,'type':_0x4d6445[_0x5292f8(0xe4)]}),_0x1993bc[_0x5292f8(0x340)](_0x3e4020,_0x165c9e,_0x490555),!0x0):!0x1;}},_0x2211c3={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x22b),'handler'(_0x10abae,_0x4c179e){const _0x42fe2f=_0x182aea;if(!_0x4c179e)return!0x1;if(!!_0x10abae[_0x42fe2f(0x13e)](_0x5e852f[_0x42fe2f(0x1c1)])[_0x42fe2f(0x327)](_0x543aca))return!0x0;const {pivotTableId:_0x1f2030,targetCellPosition:_0x13cad7,unitId:_0x3df155,subUnitId:_0x261e54}=_0x4c179e,_0x230ebe=_0x10abae[_0x42fe2f(0x13e)](_0x263ce9[_0x42fe2f(0x19f)]);if(!_0x230ebe[_0x42fe2f(0x1ed)](_0x4c179e['pivotTableId']))return!0x1;const _0x68c67a=_0x230ebe[_0x42fe2f(0x24e)](_0x1f2030);if(!_0x68c67a)return!0x1;const _0x4b2844=_0x230ebe[_0x42fe2f(0x123)](_0x68c67a[_0x42fe2f(0xfd)],_0x4c179e['pivotTableId']);if(!_0x4b2844)return!0x1;const _0x14a3e1=_0x230ebe['getPivotTableConfig'](_0x68c67a[_0x42fe2f(0xfd)],_0x68c67a[_0x42fe2f(0x36f)],_0x1f2030);if(!_0x14a3e1)return!0x1;const _0x3c25c9=_0x5e852f['Tools'][_0x42fe2f(0x206)](_0x14a3e1);_0x3c25c9[_0x42fe2f(0x106)]={'unitId':_0x3df155,'subUnitId':_0x261e54,'row':_0x13cad7[_0x42fe2f(0x2d3)],'col':_0x13cad7[_0x42fe2f(0x103)]};const _0x124ea8=_0x4b2844[_0x42fe2f(0x24c)]();if(_0x68c67a[_0x42fe2f(0x36f)]===_0x261e54&&_0x68c67a[_0x42fe2f(0xfd)]===_0x3df155)_0x230ebe[_0x42fe2f(0x160)](_0x3df155,_0x261e54,_0x1f2030,_0x3c25c9),_0x230ebe['addDirtyPivotTable']({'unitId':_0x3df155,'subUnitId':_0x261e54,'token':_0x1f2030,'type':_0x4d6445['Set']});else{_0x230ebe['addDirtyPivotTable']({'unitId':_0x68c67a[_0x42fe2f(0xfd)],'subUnitId':_0x68c67a[_0x42fe2f(0x36f)],'token':_0x1f2030,'type':_0x4d6445[_0x42fe2f(0xe4)]}),_0x230ebe['removePivotTable'](_0x68c67a[_0x42fe2f(0xfd)],_0x68c67a['subUnitId'],_0x1f2030);const _0x29c8f9=_0x230ebe[_0x42fe2f(0x347)](_0x1f2030,_0x124ea8,_0x14a3e1[_0x42fe2f(0x252)],_0x3c25c9['targetCellInfo']),_0x1fd4c6=new _0x57400a[(_0x42fe2f(0x2d0))](_0x29c8f9[_0x42fe2f(0x352)]);_0x1fd4c6[_0x42fe2f(0x387)](_0x3c25c9[_0x42fe2f(0x21a)]),_0x230ebe[_0x42fe2f(0x246)](_0x3df155,_0x261e54,_0x1f2030,_0x1fd4c6,_0x3c25c9),_0x230ebe[_0x42fe2f(0x38c)]({'unitId':_0x3df155,'subUnitId':_0x261e54,'token':_0x1f2030,'type':_0x4d6445[_0x42fe2f(0x1e7)],'pivotConfig':_0x3c25c9});}return!0x0;}},_0x176159={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x382),'handler'(_0x22269a,_0x22b94a){const _0x2026ba=_0x182aea;if(!_0x22b94a)return!0x1;if(!!_0x22269a[_0x2026ba(0x13e)](_0x5e852f[_0x2026ba(0x1c1)])[_0x2026ba(0x327)](_0x543aca))return!0x0;const _0x52f578=_0x22269a['get'](_0x263ce9[_0x2026ba(0x19f)]),{pivotTableId:_0x462642,deleteIds:_0x2b80b8,collectionJSON:_0x1f0da8,dataRangeInfo:_0x34f209,unitId:_0x2d63e6,subUnitId:_0x520fac}=_0x22b94a,_0x33ea03=_0x52f578[_0x2026ba(0x1ed)](_0x462642),_0x466588=_0x52f578[_0x2026ba(0x325)](_0x2d63e6,_0x520fac,_0x462642);if(!_0x33ea03||!_0x466588)return!0x1;const {collection:_0x363921,updateDataFieldList:_0x545b0b}=_0x52f578[_0x2026ba(0x347)](_0x462642,_0x1f0da8,_0x34f209,_0x466588['targetCellInfo']);_0x52f578[_0x2026ba(0x277)](_0x363921,_0x545b0b,_0x34f209),_0x33ea03['updateDataFieldsCollection'](_0x363921);for(const _0x1cf700 of _0x2b80b8)_0x52f578[_0x2026ba(0x341)](_0x34f209[_0x2026ba(0xfd)],_0x1cf700);const _0x3a5251=_0x52f578[_0x2026ba(0x325)](_0x2d63e6,_0x520fac,_0x462642);return _0x3a5251[_0x2026ba(0x252)]=JSON[_0x2026ba(0x29c)](JSON[_0x2026ba(0x168)](_0x34f209)),_0x52f578[_0x2026ba(0x38c)]({'unitId':_0x2d63e6,'subUnitId':_0x520fac,'token':_0x462642,'type':_0x4d6445[_0x2026ba(0x19d)]}),!0x0;}},_0x4bf581={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x356)],'id':_0x182aea(0x16e),'handler'(){return!0x0;}};var _0x352d4b=Object[_0x182aea(0xe8)],_0x539c12=Object['getOwnPropertyDescriptor'],_0x54ff65=(_0x347109,_0x2a1849,_0x235915,_0x488dd7)=>{const _0x201205=_0x182aea;for(var _0x46c852=_0x488dd7>0x1?void 0x0:_0x488dd7?_0x539c12(_0x2a1849,_0x235915):_0x2a1849,_0x19ecea=_0x347109[_0x201205(0x2c9)]-0x1,_0x56b260;_0x19ecea>=0x0;_0x19ecea--)(_0x56b260=_0x347109[_0x19ecea])&&(_0x46c852=(_0x488dd7?_0x56b260(_0x2a1849,_0x235915,_0x46c852):_0x56b260(_0x46c852))||_0x46c852);return _0x488dd7&&_0x46c852&&_0x352d4b(_0x2a1849,_0x235915,_0x46c852),_0x46c852;},_0x29dd02=(_0x1605ff,_0x3db657)=>(_0x55b367,_0x57793a)=>_0x3db657(_0x55b367,_0x57793a,_0x1605ff);_0x263ce9[_0x182aea(0x275)]=class extends _0x5e852f['Disposable']{constructor(_0x245c37,_0x338f31){const _0x1b8abb=_0x182aea;super(),_0x53fb96(this,_0x1b8abb(0x18e),new Map()),(this['_injector']=_0x245c37,this[_0x1b8abb(0x367)]=_0x338f31);}[_0x182aea(0x1cc)](_0x563732){const _0x9bba4d=_0x182aea,{version:_0x3f3055}=_0x563732,_0x3bae51=this[_0x9bba4d(0x18e)][_0x9bba4d(0x13e)](_0x3f3055);_0x3bae51&&(_0x3bae51(_0x563732),this[_0x9bba4d(0x18e)][_0x9bba4d(0x2bc)](_0x3f3055));}['getPivotDisplayConfig'](_0x17ae78){return new Promise((_0x19ea9e,_0x20319a)=>{const _0x1d0e52=_0x58b3,_0x103025=this[_0x1d0e52(0x15f)]();this[_0x1d0e52(0x18e)]['set'](_0x103025,_0x19ea9e),this['_commandService'][_0x1d0e52(0x119)](_0x46d7ec['id'],{'version':_0x103025,..._0x17ae78},{'onlyLocal':!0x0});});}[_0x182aea(0x15f)](){const _0x3224cc=_0x182aea;return Math[_0x3224cc(0x171)]()[_0x3224cc(0x248)](0x24)[_0x3224cc(0x34a)](0x2,0x10);}},_0x263ce9[_0x182aea(0x275)]=_0x54ff65([_0x29dd02(0x0,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x26d)])),_0x29dd02(0x1,_0x5e852f['Inject'](_0x5e852f[_0x182aea(0x16d)]))],_0x263ce9['SheetsPivotRPCService']);const _0x58df0b={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x1e0),async 'handler'(_0x391b1c,_0x546e2d){const _0x397e83=_0x182aea;if(!_0x546e2d)return!0x1;const _0x18c650=_0x391b1c['get'](_0x5e852f['ICommandService']),_0x277d89=_0x391b1c['get'](_0x263ce9[_0x397e83(0x275)]),_0x2a4bb9=_0x391b1c['get'](_0x5e852f[_0x397e83(0x2d7)]),{pivotTableId:_0x587ca7,dataFieldId:_0x190b50,fieldArea:_0x4b2231,index:_0x1b32a4,unitId:_0x3cff79,subUnitId:_0x313ef5}=_0x546e2d,_0x471b77=(await _0x277d89[_0x397e83(0x16f)]({'unitId':_0x3cff79,'subUnitId':_0x313ef5,'pivotTableId':_0x587ca7,'params':{'type':_0x4b4d23[_0x397e83(0x2c8)],'addPivotField':{'dataFieldId':_0x190b50,'fieldArea':_0x4b2231,'index':_0x1b32a4}}}))[_0x397e83(0x23d)][_0x397e83(0x1b9)];if(!_0x471b77)return!0x1;const {view:_0x410dc7,changesets:_0x1285ed,isEmpty:_0x9357f5,pivotTableConfig:_0x9b629e}=_0x471b77,_0x34dd84=_0x9b629e[_0x397e83(0x106)],_0x15157d=new _0x57400a[(_0x397e83(0x1c5))]();_0x15157d[_0x397e83(0x366)](_0x410dc7);const _0x179b58={'cellInfo':_0x34dd84,'view':_0x15157d,'isEmpty':_0x9357f5};if(!await _0x391b1c['get'](_0x263ce9[_0x397e83(0x1ac)])['asyncInterceptor'][_0x397e83(0x201)](_0x5d2f76)(!0x0,_0x179b58))return!0x1;const _0x3bc99d=_0x14295f(_0x391b1c,_0x15157d,_0x34dd84,_0x9357f5),_0x4c55de=_0x2ff60f(_0x391b1c,_0x179b58),{undos:_0x26ade9,redos:_0x2386b0}=_0x293314(_0x18c650,{'pivotTableId':_0x587ca7,'unitId':_0x3cff79,'subUnitId':_0x313ef5},_0x1285ed);return _0x5e852f['sequenceExecute']([..._0x3bc99d[_0x397e83(0x203)],..._0x4c55de[_0x397e83(0x203)],..._0x2386b0],_0x18c650),_0x2a4bb9[_0x397e83(0x2ff)]({'unitID':_0x3cff79,'redoMutations':[..._0x3bc99d[_0x397e83(0x203)],..._0x4c55de[_0x397e83(0x203)],..._0x2386b0],'undoMutations':[..._0x3bc99d[_0x397e83(0x2d5)],..._0x4c55de[_0x397e83(0x2d5)],..._0x26ade9]}),!0x0;}},_0x405d75={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x28e49f,_0x5653a2){const _0x1e9dc0=_0x182aea;if(!_0x5653a2)return!0x1;const {sourceDataInfo:_0x1c29c,pivotTableConfig:_0x41b3db}=_0x5653a2;if(!_0x1c29c||!_0x41b3db)return!0x1;const {unitId:_0x50c3be,subUnitId:_0x2b5a62,range:_0x55044e}=_0x1c29c,_0x5a0a97=_0x28e49f['get'](_0x5e852f[_0x1e9dc0(0x194)]),_0x399287=_0x28e49f['get'](_0x263ce9[_0x1e9dc0(0x275)]),_0x1ded68=_0x28e49f['get'](_0x5e852f[_0x1e9dc0(0x1a6)]),_0x3b2652=_0x28e49f[_0x1e9dc0(0x13e)](_0x5e852f[_0x1e9dc0(0x16d)]),_0x4fe79b=_0x5a0a97['getUnit'](_0x50c3be);if(!_0x4fe79b)return!0x1;const _0x9b1f60=_0x4fe79b['getSheetBySheetId'](_0x2b5a62);if(!_0x9b1f60)return!0x1;const _0x5d5582=_0x57400a[_0x1e9dc0(0x304)](0x8),_0x4ba511=_0x55044e||{'startRow':0x0,'startColumn':0x0,'endRow':_0x9b1f60[_0x1e9dc0(0x18a)]()-0x1,'endColumn':_0x9b1f60[_0x1e9dc0(0x178)]()-0x1};_0x4ba511['rangeType']=_0x5e852f[_0x1e9dc0(0x233)]['NORMAL'];const _0x3dddc0=(await _0x399287[_0x1e9dc0(0x16f)]({'unitId':_0x50c3be,'subUnitId':_0x2b5a62,'pivotTableId':_0x5d5582,'params':{'type':_0x4b4d23[_0x1e9dc0(0xeb)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x50c3be,'sheetName':_0x9b1f60[_0x1e9dc0(0x23a)](),'subUnitId':_0x2b5a62,'range':_0x4ba511},'pivotTableIndexConfig':_0x41b3db}}}))['result']['addPivotTableWithConfig'];if(!_0x3dddc0)return!0x1;const {isEmpty:_0x2c0396,fieldsConfig:_0x2c196a,collectionConfig:_0x3adcaa,changesets:_0x18f119}=_0x3dddc0,_0x558302=_0x4fe79b[_0x1e9dc0(0x27f)]()[_0x1e9dc0(0x2c9)],_0x5e0f58=_0x5e852f[_0x1e9dc0(0x249)]({'rowCount':_0x9b1f60[_0x1e9dc0(0x18a)]()-0x1,'columnCount':_0x9b1f60['getColumnCount']()-0x1});_0x5e0f58['id']=_0x5e852f[_0x1e9dc0(0xd7)](),_0x5e0f58[_0x1e9dc0(0xf1)]=_0x4fe79b['generateNewSheetName'](''+_0x1ded68['t'](_0x1e9dc0(0x2e7)));const _0x24d69c={'index':_0x558302,'sheet':_0x5e0f58,'unitId':_0x50c3be},{redos:_0xc7c7ab}=_0x293314(_0x3b2652,{'pivotTableId':_0x5d5582,'unitId':_0x50c3be,'subUnitId':_0x5e0f58['id']},_0x18f119),_0x3a32d4=[{'id':_0x114012['InsertSheetCommand']['id'],'params':_0x24d69c},{'id':_0x25a8dd['id'],'params':{'unitId':_0x50c3be,'subUnitId':_0x5e0f58['id'],'pivotTableId':_0x5d5582,'pivotTableConfig':{'isEmpty':_0x2c0396,'fieldsConfig':_0x2c196a,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x50c3be,'subUnitId':_0x5e0f58['id']},'sourceRangeInfo':{'subUnitId':_0x2b5a62,'unitId':_0x50c3be,'range':_0x4ba511,'sheetName':_0x9b1f60[_0x1e9dc0(0x23a)]()}},'collectionConfig':_0x3adcaa}},..._0xc7c7ab];return _0x5e852f[_0x1e9dc0(0x2df)](_0x3a32d4,_0x3b2652),!0x0;}},_0x5f292f={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x34b),async 'handler'(_0x3a3822,_0x95ae89){const _0x4eafa0=_0x182aea;var _0xc91fea,_0x2c105c;const _0x11d190=_0x3a3822['get'](_0x5e852f[_0x4eafa0(0x16d)]),_0x26c166=_0x3a3822[_0x4eafa0(0x13e)](_0x5e852f[_0x4eafa0(0x194)]),_0xfc9976=_0x3a3822['get'](_0x5e852f[_0x4eafa0(0x1a6)]),_0x23c541=_0x3a3822[_0x4eafa0(0x13e)](_0x263ce9['SheetsPivotRPCService']),_0x1f589a=_0x3a3822[_0x4eafa0(0x13e)](_0x5e852f[_0x4eafa0(0x2d7)]),_0x69bf48=_0x3a3822['get'](_0x263ce9[_0x4eafa0(0xe7)]),_0x194766=_0x3a3822[_0x4eafa0(0x13e)](_0x5e852f[_0x4eafa0(0x1c1)]);if(!_0x95ae89)return!0x1;const {pivotTableConfig:_0x51bec3,positionType:_0x91243c}=_0x95ae89,{targetCellInfo:_0x1a9e61,sourceRangeInfo:_0x2cc4e0}=_0x51bec3,{unitId:_0x587178,subUnitId:_0x5b7db1}=_0x1a9e61,_0xec499e=_0x26c166[_0x4eafa0(0x346)](_0x587178);if(!_0xec499e)return!0x1;let _0x2e1304=0x0;_0xec499e['getSheets']()['forEach'](_0x1271ce=>{const _0xbefa8d=_0x4eafa0;var _0x18d06d,_0x2b0cb5;_0x2e1304+=(_0x2b0cb5=(_0x18d06d=_0x69bf48['getSubUnitPivotConfigs'](_0x587178,_0x1271ce['getSheetId']()))==null?void 0x0:_0x18d06d[_0xbefa8d(0x241)])!=null?_0x2b0cb5:0x0;});const _0x5ab5ee=(_0xc91fea=_0x194766[_0x4eafa0(0x327)](_0x4c185a['LS_CONFIG_KEY']))!=null?_0xc91fea:{},{ls:_0x11b6ff,pbk:_0x156250}=_0x5ab5ee;if(!_0x42a595(_0x11b6ff,_0x156250))return!0x1;const _0x8dc55f=_0x301057(_0x5654ca,_0x11b6ff,_0x156250)[_0x4eafa0(0x2b4)];if(_0x2e1304>=_0x8dc55f)return!0x1;const _0x3f01e6=_0x95ae89[_0x4eafa0(0x2fe)]||_0x57400a['generateHexNumber'](0x8),_0x4f3eba=(await _0x23c541[_0x4eafa0(0x16f)]({'unitId':_0x587178,'subUnitId':_0x5b7db1,'pivotTableId':_0x3f01e6,'params':{'type':_0x4b4d23[_0x4eafa0(0x110)],'addPivotTable':{'sourceRangeInfo':_0x2cc4e0}}}))[_0x4eafa0(0x23d)][_0x4eafa0(0x246)];if(!_0x4f3eba)return!0x1;const {view:_0x37dd3a,isEmpty:_0x5b6a2b,fieldsConfig:_0x4b2ae7,collectionConfig:_0x278b0f}=_0x4f3eba,_0x21ddc4=[],_0x3c34b1=[];if(_0x91243c===_0x3f6a00[_0x4eafa0(0xda)]){const _0x4b06be=_0xec499e['getSheets']()[_0x4eafa0(0x2c9)],_0x142b7e=_0x5e852f[_0x4eafa0(0x249)]({});_0x142b7e['id']=_0x51bec3[_0x4eafa0(0x106)][_0x4eafa0(0x36f)],_0x142b7e[_0x4eafa0(0xf1)]=(_0x2c105c=_0x51bec3[_0x4eafa0(0x106)]['sheetName'])!=null?_0x2c105c:_0xec499e['generateNewSheetName'](''+_0xfc9976['t'](_0x4eafa0(0x2e7)));const _0x14aa2a={'index':_0x4b06be,'sheet':_0x142b7e,'unitId':_0x587178},_0x50cd5a=_0x114012[_0x4eafa0(0x344)](_0x3a3822,_0x14aa2a);_0x21ddc4[_0x4eafa0(0x2d8)]({'id':_0x114012[_0x4eafa0(0x213)]['id'],'params':_0x50cd5a}),_0x3c34b1[_0x4eafa0(0x2d8)]({'id':_0x114012['InsertSheetMutation']['id'],'params':_0x14aa2a});}else{if(!_0xec499e[_0x4eafa0(0x164)](_0x5b7db1))return!0x1;const _0x2d9e81=_0x14295f(_0x3a3822,new _0x57400a[(_0x4eafa0(0x1c5))](),_0x1a9e61,!0x0);_0x3c34b1[_0x4eafa0(0x2d8)](..._0x2d9e81[_0x4eafa0(0x203)]),_0x21ddc4[_0x4eafa0(0x2d8)](..._0x2d9e81[_0x4eafa0(0x2d5)]);const _0x468c87={'cellInfo':_0x1a9e61,'view':_0x37dd3a,'isEmpty':_0x5b6a2b};if(!await _0x3a3822[_0x4eafa0(0x13e)](_0x263ce9[_0x4eafa0(0x1ac)])[_0x4eafa0(0x28d)][_0x4eafa0(0x201)](_0x5d2f76)(!0x0,_0x468c87))return!0x1;const _0x4d1cb3=_0x2ff60f(_0x3a3822,_0x468c87);_0x3c34b1[_0x4eafa0(0x2d8)](..._0x4d1cb3['redos']),_0x21ddc4[_0x4eafa0(0x2d8)](..._0x4d1cb3[_0x4eafa0(0x2d5)]);}return _0x3c34b1[_0x4eafa0(0x2d8)]({'id':_0x25a8dd['id'],'params':{'unitId':_0x1a9e61['unitId'],'subUnitId':_0x1a9e61[_0x4eafa0(0x36f)],'pivotTableId':_0x3f01e6,'pivotTableConfig':{'targetCellInfo':_0x1a9e61,'sourceRangeInfo':_0x2cc4e0,'fieldsConfig':_0x4b2ae7},'collectionConfig':_0x278b0f}}),_0x21ddc4[_0x4eafa0(0x2a7)]({'id':_0x2320a4['id'],'params':{'unitId':_0x587178,'subUnitId':_0x5b7db1,'pivotTableId':_0x3f01e6}}),_0x5e852f[_0x4eafa0(0x2df)](_0x3c34b1,_0x11d190)&&_0x1f589a[_0x4eafa0(0x2ff)]({'unitID':_0x587178,'undoMutations':_0x21ddc4,'redoMutations':_0x3c34b1}),!0x0;}},_0xc83e96={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x285),async 'handler'(_0x5cc7a7,_0x310154){const _0x3020ee=_0x182aea;if(!_0x310154)return!0x1;const _0x50b573=_0x5cc7a7[_0x3020ee(0x13e)](_0x5e852f[_0x3020ee(0x16d)]),_0x340020=_0x5cc7a7[_0x3020ee(0x13e)](_0x263ce9[_0x3020ee(0x275)]),_0x2aef80=_0x5cc7a7[_0x3020ee(0x13e)](_0x5e852f[_0x3020ee(0x2d7)]),{pivotTableId:_0x1754d5,fieldId:_0xfc82d8,area:_0x4f4476,index:_0x20099a,unitId:_0x16ed09,subUnitId:_0xfee970}=_0x310154,_0x29c40a=(await _0x340020['getPivotDisplayConfig']({'unitId':_0x16ed09,'subUnitId':_0xfee970,'pivotTableId':_0x1754d5,'params':{'type':_0x4b4d23[_0x3020ee(0x2a0)],'movePivotField':{'fieldId':_0xfc82d8,'area':_0x4f4476,'index':_0x20099a}}}))[_0x3020ee(0x23d)][_0x3020ee(0x386)];if(!_0x29c40a)return!0x1;const {changesets:_0x4998d2,view:_0x764d1b,isEmpty:_0x115c18,pivotTableConfig:_0x3c71e0}=_0x29c40a,_0x1191f6=_0x3c71e0['targetCellInfo'],_0x33fc19=new _0x57400a['PivotView']();_0x33fc19[_0x3020ee(0x366)](_0x764d1b);const _0x565b54={'cellInfo':_0x1191f6,'view':_0x33fc19,'isEmpty':_0x115c18};if(!await _0x5cc7a7[_0x3020ee(0x13e)](_0x263ce9[_0x3020ee(0x1ac)])[_0x3020ee(0x28d)][_0x3020ee(0x201)](_0x5d2f76)(!0x0,_0x565b54))return!0x1;const _0xdd1b01=_0x14295f(_0x5cc7a7,_0x33fc19,_0x1191f6,_0x115c18),_0x264258=_0x2ff60f(_0x5cc7a7,_0x565b54),{redos:_0x36778d,undos:_0xf2c3ef}=_0x293314(_0x50b573,{'pivotTableId':_0x1754d5,'unitId':_0x16ed09,'subUnitId':_0xfee970},_0x4998d2);return _0x5e852f[_0x3020ee(0x2df)]([..._0xdd1b01[_0x3020ee(0x203)],..._0x264258[_0x3020ee(0x203)],..._0x36778d],_0x50b573),_0x2aef80[_0x3020ee(0x2ff)]({'unitID':_0x16ed09,'redoMutations':[..._0xdd1b01[_0x3020ee(0x203)],..._0x264258[_0x3020ee(0x203)],..._0x36778d],'undoMutations':[..._0xdd1b01['undos'],..._0x264258[_0x3020ee(0x2d5)],..._0xf2c3ef]}),!0x0;}},_0x2d8bca={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x148),async 'handler'(_0x1438dd,_0xa2baaf){const _0x4c3c97=_0x182aea;var _0x39c964;if(!_0xa2baaf)return!0x1;const _0x5631a5=_0x1438dd[_0x4c3c97(0x13e)](_0x5e852f['IUniverInstanceService']),_0x59a291=_0x114012[_0x4c3c97(0xd5)](_0x5631a5);if(!_0x59a291)return!0x1;const {unitId:_0x5c304c,subUnitId:_0x1ebb78,workbook:_0x46a3d8}=_0x59a291,{row:_0x3fc041,col:_0x5b175d}=_0xa2baaf,_0x1ebb9b=_0x1438dd[_0x4c3c97(0x13e)](_0x263ce9[_0x4c3c97(0x19c)]),_0x3c21ea=_0x1ebb9b[_0x4c3c97(0x32e)](_0x5c304c,_0x1ebb78,_0x3fc041,_0x5b175d);if(!_0x3c21ea)return!0x1;const _0x5c0f4e=(_0x39c964=_0x1ebb9b['getPivotItemRenderInfoCache'](_0x5c304c,_0x1ebb78,_0x3c21ea))==null?void 0x0:_0x39c964[_0x4c3c97(0x118)];if(!_0x5c0f4e)return!0x1;const _0xfd660b=_0x1438dd['get'](_0x263ce9['SheetsPivotTableConfigModel'])[_0x4c3c97(0x325)](_0x5c304c,_0x1ebb78,_0x3c21ea);if(!_0xfd660b)return!0x1;const {rowInfo:_0x544145,colInfo:_0x3ff087}=_0x5c0f4e,_0x463089=_0x544145[_0x3fc041][_0x4c3c97(0x1da)],_0x4ead8d=_0x3ff087[_0x5b175d]['paths'],_0x81eb85=_0x544145[_0x3fc041]['level'],_0x37a36a=_0x3ff087[_0x5b175d][_0x4c3c97(0x353)],_0x53b040=_0x463089[_0x4c3c97(0x289)](_0x4ead8d),_0x5ebdcc=_0xfd660b[_0x4c3c97(0x21a)][_0x4c3c97(0x2c6)][_0x4c3c97(0x328)](0x0,_0x81eb85),_0x1d6fa3=_0xfd660b[_0x4c3c97(0x21a)][_0x4c3c97(0x170)]['slice'](0x0,_0x37a36a),_0x58c35a=_0x5ebdcc[_0x4c3c97(0x289)](_0x1d6fa3),_0x19d628=_0x53b040[_0x4c3c97(0x208)]((_0x45ff74,_0x15b0f6)=>[_0x45ff74,_0x58c35a[_0x15b0f6]]),_0x37de67=(await _0x1438dd[_0x4c3c97(0x13e)](_0x263ce9[_0x4c3c97(0x275)])[_0x4c3c97(0x16f)]({'unitId':_0x5c304c,'subUnitId':_0x1ebb78,'pivotTableId':_0x3c21ea,'params':{'type':_0x4b4d23[_0x4c3c97(0x21f)],'drillDown':{'tuple':_0x19d628}}}))['result'][_0x4c3c97(0x104)];if(!_0x37de67)return!0x1;const {indexes:_0x350aa2,range:_0x197a13,sourceUnitId:_0x3b3c65,sourceSubUnitId:_0x37c088,formatMap:_0x50822e}=_0x37de67,{startRow:_0x240ea8,endRow:_0x2ce1b1,startColumn:_0x4c076e,endColumn:_0xe5e0f7}=_0x197a13,_0x33a96f=new _0x5e852f[(_0x4c3c97(0x2da))](),_0x6d7fc4=_0x2ce1b1-_0x240ea8,_0x4aae00=_0xe5e0f7-_0x4c076e,_0x569f25={},_0x3e8190=_0x114012['getSheetCommandTarget'](_0x5631a5,{'unitId':_0x3b3c65,'subUnitId':_0x37c088});if(!_0x3e8190)return!0x1;const _0x392d95=_0x4c691c['colStyle'],_0x549953=_0x4c691c[_0x4c3c97(0x12d)],_0x304198=_0x4c691c[_0x4c3c97(0x12d)],_0x32283d=_0x46a3d8['getStyles']()[_0x4c3c97(0x11a)](_0x392d95),_0x246dff=_0x46a3d8[_0x4c3c97(0xd1)]()[_0x4c3c97(0x11a)](_0x549953),_0x43d9dc=_0x46a3d8[_0x4c3c97(0xd1)]()[_0x4c3c97(0x11a)](_0x304198),{worksheet:_0x402ead}=_0x3e8190;let _0x5896fa=0x0;const _0x1e54b1=0x1;_0x350aa2[_0x4c3c97(0x1f1)](_0x55a328=>{const _0x29809f=_0x4c3c97;for(let _0x53f869=0x0;_0x53f869<=_0xe5e0f7-_0x4c076e;_0x53f869++)_0x33a96f[_0x29809f(0x11a)](_0x5896fa,_0x53f869,_0x402ead[_0x29809f(0x230)](_0x55a328+_0x197a13[_0x29809f(0x2a6)]+_0x1e54b1,_0x53f869));_0x5896fa++;});for(let _0x567428=_0x4c076e;_0x567428<=_0xe5e0f7;_0x567428++){const _0x5ef89f=_0x402ead[_0x4c3c97(0x230)](_0x240ea8,_0x567428);_0x569f25[_0x240ea8]||(_0x569f25[_0x240ea8]={}),_0x569f25[_0x240ea8][_0x567428]={..._0x5ef89f,'s':_0x32283d};}let _0x47bba6=0x1;const _0x1de2ae={},_0x33e0dc={};_0x33a96f[_0x4c3c97(0x10b)]((_0x186ecd,_0x208f37)=>{const _0x7085b3=_0x4c3c97;_0x208f37[_0x7085b3(0x1f1)](_0x294c57=>{const _0x3ed02d=_0x7085b3,_0x2d6096=_0x33a96f[_0x3ed02d(0x37c)](_0x186ecd,_0x294c57);if(_0x569f25[_0x47bba6]||(_0x569f25[_0x47bba6]={}),_0x569f25[_0x47bba6][_0x294c57]={..._0x2d6096,'s':_0x47bba6%0x2===0x0?_0x43d9dc:_0x246dff},_0x50822e[_0x294c57]&&_0x186ecd>=0x0){const _0x345c3e=_0x47bba6%0x2===0x0;let _0x514bc6=_0x345c3e?_0x33e0dc[_0x294c57]:_0x1de2ae[_0x294c57];_0x514bc6||(_0x514bc6=_0x46a3d8[_0x3ed02d(0xd1)]()['setValue']({..._0x345c3e?_0x304198:_0x549953,'n':{'pattern':_0x50822e[_0x294c57]}}),_0x345c3e?_0x33e0dc[_0x294c57]=_0x514bc6:_0x1de2ae[_0x294c57]=_0x514bc6),_0x569f25[_0x47bba6][_0x294c57]['s']=_0x514bc6;}}),_0x47bba6++;});const _0xfa7ef8=new _0x5e852f[(_0x4c3c97(0x2da))](_0x569f25),_0xbcd03b={};_0xfa7ef8['forValue']((_0x11cb83,_0x35fd84,_0x1b2ab1)=>{_0xbcd03b[_0x11cb83]||(_0xbcd03b[_0x11cb83]={}),_0xbcd03b[_0x11cb83][_0x35fd84]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x22f507=[],_0x335d06=[],_0x1b242f=_0x46a3d8[_0x4c3c97(0x27f)]()['length'],_0x320985=_0x5e852f[_0x4c3c97(0x249)]({'rowCount':Math[_0x4c3c97(0x2f4)](_0x5e852f[_0x4c3c97(0x113)],_0x6d7fc4+0xa),'columnCount':Math[_0x4c3c97(0x2f4)](_0x5e852f['DEFAULT_WORKSHEET_COLUMN_COUNT'],_0x4aae00+0x5)}),_0x1eac60=_0x1438dd[_0x4c3c97(0x13e)](_0x5e852f['LocaleService']);_0x320985['id']=_0x5e852f[_0x4c3c97(0xd7)](),_0x320985[_0x4c3c97(0xf1)]=_0x46a3d8[_0x4c3c97(0x18d)](''+_0x1eac60['t']('sheets.tabs.sheet'));const _0x285cc2={'index':_0x1b242f,'sheet':_0x320985,'unitId':_0x5c304c},_0x2669ce=_0x114012['InsertSheetUndoMutationFactory'](_0x1438dd,_0x285cc2);_0x335d06[_0x4c3c97(0x2d8)]({'id':_0x114012[_0x4c3c97(0x189)]['id'],'params':_0x285cc2}),_0x22f507[_0x4c3c97(0x2d8)]({'id':_0x114012[_0x4c3c97(0x213)]['id'],'params':_0x2669ce}),_0x335d06[_0x4c3c97(0x2d8)]({'id':_0x114012[_0x4c3c97(0x202)]['id'],'params':{'unitId':_0x5c304c,'subUnitId':_0x320985['id'],'cellValue':_0x569f25}}),_0x22f507[_0x4c3c97(0x2a7)]({'id':_0x114012[_0x4c3c97(0x202)]['id'],'params':{'unitId':_0x5c304c,'subUnitId':_0x320985['id'],'cellValue':_0xbcd03b}});const _0x165a43={'startRow':0x0,'startColumn':0x0,'endRow':_0x47bba6-0x1,'endColumn':_0xe5e0f7};_0x335d06[_0x4c3c97(0x2d8)]({'id':_0x55b710[_0x4c3c97(0x263)]['id'],'params':{'unitId':_0x5c304c,'subUnitId':_0x320985['id'],'range':_0x165a43}}),_0x22f507[_0x4c3c97(0x2a7)]({'id':_0x55b710['RemoveSheetsFilterMutation']['id'],'params':{'unitId':_0x5c304c,'subUnitId':_0x320985['id']}});const _0x5de6e7=_0x1438dd[_0x4c3c97(0x13e)](_0x5e852f[_0x4c3c97(0x16d)]);return _0x5e852f[_0x4c3c97(0x2df)](_0x335d06,_0x5de6e7)&&_0x1438dd[_0x4c3c97(0x13e)](_0x5e852f[_0x4c3c97(0x2d7)])[_0x4c3c97(0x2ff)]({'unitID':_0x5c304c,'undoMutations':_0x22f507,'redoMutations':_0x335d06}),!0x0;}},_0x3ff687={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x2ae),async 'handler'(_0x4548f3,_0x1c2ffe){const _0x262279=_0x182aea;if(!_0x1c2ffe)return!0x1;const _0x46780b=_0x4548f3[_0x262279(0x13e)](_0x5e852f[_0x262279(0x16d)]),_0x48ba27=_0x4548f3[_0x262279(0x13e)](_0x263ce9[_0x262279(0x275)]),_0x25de8e=_0x4548f3[_0x262279(0x13e)](_0x5e852f['IUndoRedoService']),{pivotTableId:_0x152351,fieldIds:_0x1c78db,unitId:_0x5f5422,subUnitId:_0x41d92c}=_0x1c2ffe,_0x51a545=(await _0x48ba27[_0x262279(0x16f)]({'unitId':_0x5f5422,'subUnitId':_0x41d92c,'pivotTableId':_0x152351,'params':{'type':_0x4b4d23[_0x262279(0x2ba)],'removePivotField':{'fieldIds':_0x1c78db}}}))['result'][_0x262279(0x200)];if(!_0x51a545)return!0x1;const {view:_0x58aab5,changesets:_0x1f8815,isEmpty:_0x52113f,pivotTableConfig:_0x53ca83}=_0x51a545,_0x316a0b=_0x53ca83[_0x262279(0x106)],_0x27dc81=new _0x57400a[(_0x262279(0x1c5))]();_0x27dc81['formJSON'](_0x58aab5);const _0x484746={'cellInfo':_0x316a0b,'view':_0x27dc81,'isEmpty':_0x52113f};if(!await _0x4548f3[_0x262279(0x13e)](_0x263ce9[_0x262279(0x1ac)])[_0x262279(0x28d)][_0x262279(0x201)](_0x5d2f76)(!0x0,_0x484746))return!0x1;const _0x10b731=_0x14295f(_0x4548f3,_0x27dc81,_0x316a0b,_0x52113f),_0x466d02=_0x2ff60f(_0x4548f3,_0x484746),{redos:_0x542552,undos:_0x46a4fa}=_0x293314(_0x46780b,{'pivotTableId':_0x152351,'unitId':_0x5f5422,'subUnitId':_0x41d92c},_0x1f8815);return _0x5e852f[_0x262279(0x2df)]([..._0x10b731[_0x262279(0x203)],..._0x466d02[_0x262279(0x203)],..._0x542552],_0x46780b),_0x25de8e['pushUndoRedo']({'unitID':_0x5f5422,'redoMutations':[..._0x10b731[_0x262279(0x203)],..._0x466d02[_0x262279(0x203)],..._0x542552],'undoMutations':[..._0x10b731[_0x262279(0x2d5)],..._0x466d02['undos'],..._0x46a4fa]}),!0x0;}},_0x163851={'type':_0x5e852f[_0x182aea(0x1b3)]['COMMAND'],'id':_0x182aea(0xed),async 'handler'(_0x2fbad6,_0x4ec501){const _0xadd20d=_0x182aea;var _0x4cb980;const _0x274fa5=_0x2fbad6[_0xadd20d(0x13e)](_0x5e852f[_0xadd20d(0x16d)]),_0x2b4ecc=_0x2fbad6[_0xadd20d(0x13e)](_0x263ce9[_0xadd20d(0x275)]),_0x218b8b=_0x2fbad6[_0xadd20d(0x13e)](_0x263ce9[_0xadd20d(0x19c)]),_0x3420b2=_0x2fbad6[_0xadd20d(0x13e)](_0x5e852f[_0xadd20d(0x194)]),_0x91cac7=_0x2fbad6[_0xadd20d(0x13e)](_0x5e852f['IUndoRedoService']);if(!_0x4ec501)return!0x1;const {unitId:_0x1c5bf5,subUnitId:_0x1c2085,row:_0xed2880,col:_0x19a162,collapse:_0x515fb8}=_0x4ec501,_0x2259f7=_0x3420b2['getUnit'](_0x1c5bf5);if(!_0x2259f7||!_0x2259f7['getSheetBySheetId'](_0x1c2085))return!0x1;const _0x28c0e2=_0x218b8b[_0xadd20d(0x32e)](_0x1c5bf5,_0x1c2085,_0xed2880,_0x19a162);if(!_0x28c0e2)return!0x1;const _0x2c4675=_0x218b8b[_0xadd20d(0x26a)](_0x1c5bf5,_0x1c2085,_0x28c0e2);if(!_0x2c4675)return!0x1;const _0x3c86d5=_0x5e852f[_0xadd20d(0x31a)](_0xed2880,_0x19a162),{rangesInfo:_0x1bdc95,areaInfo:_0x50c81e,headerMap:_0x14768a}=_0x2c4675;if(!_0x1bdc95||!_0x50c81e||!_0x14768a)return!0x1;const _0x2f4f95=Object['keys'](_0x1bdc95)[_0xadd20d(0x192)](_0x2d6263=>_0x1bdc95[_0x2d6263][_0xadd20d(0x2f3)](_0x3458f8=>_0x5e852f[_0xadd20d(0x2a4)]['contains'](_0x3458f8,_0x3c86d5)));let _0xe7e3bc;_0x2f4f95===_0xadd20d(0x193)?_0xe7e3bc=_0x14768a[_0xadd20d(0x1c6)][_0x19a162]:_0x2f4f95===_0xadd20d(0x2fd)&&(_0xe7e3bc=_0x14768a[_0xadd20d(0x121)][_0xed2880]);const _0x277260=_0xe7e3bc==null?void 0x0:_0xe7e3bc['tableFieldId'],_0x492f71=(_0x4cb980=_0x218b8b[_0xadd20d(0x1a2)](_0x1c5bf5,_0x1c2085,_0xed2880,_0x19a162))==null?void 0x0:_0x4cb980['v'];if(!_0x492f71||!_0x28c0e2||!_0x277260)return!0x1;const _0x3081f1=await _0x2b4ecc[_0xadd20d(0x16f)]({'unitId':_0x1c5bf5,'subUnitId':_0x1c2085,'pivotTableId':_0x28c0e2,'params':{'type':_0x4b4d23[_0xadd20d(0x1f3)],'setPivotCollapse':{'tableFieldId':_0x277260,'collapse':_0x515fb8,'item':_0x492f71}}}),_0x1b1b94=_0x3081f1==null?void 0x0:_0x3081f1[_0xadd20d(0x23d)][_0xadd20d(0x247)];if(!_0x1b1b94)return!0x1;const {view:_0x45e8a1,pivotTableConfig:_0x217d8b,isEmpty:_0x136957,changesets:_0x5867e4}=_0x1b1b94,_0x38f630=new _0x57400a[(_0xadd20d(0x1c5))]();_0x38f630[_0xadd20d(0x366)](_0x45e8a1);const _0x49175d=_0x217d8b['targetCellInfo'],_0x2aab28={'cellInfo':_0x49175d,'view':_0x38f630,'isEmpty':_0x136957};if(!await _0x2fbad6[_0xadd20d(0x13e)](_0x263ce9[_0xadd20d(0x1ac)])[_0xadd20d(0x28d)]['fetchThroughAsyncInterceptors'](_0x5d2f76)(!0x0,_0x2aab28))return!0x1;const _0x24deb6=_0x14295f(_0x2fbad6,_0x38f630,_0x49175d,_0x136957),_0x22225d=_0x2ff60f(_0x2fbad6,_0x2aab28),{redos:_0x1fe19f,undos:_0x453d7b}=_0x293314(_0x274fa5,{'pivotTableId':_0x28c0e2,'unitId':_0x1c5bf5,'subUnitId':_0x1c2085},_0x5867e4);return _0x5e852f['sequenceExecute']([..._0x24deb6[_0xadd20d(0x203)],..._0x22225d[_0xadd20d(0x203)],..._0x1fe19f],_0x274fa5),_0x91cac7['pushUndoRedo']({'unitID':_0x1c5bf5,'redoMutations':[..._0x24deb6[_0xadd20d(0x203)],..._0x22225d[_0xadd20d(0x203)],..._0x1fe19f],'undoMutations':[..._0x24deb6[_0xadd20d(0x2d5)],..._0x22225d[_0xadd20d(0x2d5)],..._0x453d7b]}),!0x0;}},_0xaf0d0={'type':_0x5e852f['CommandType'][_0x182aea(0x376)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x308996,_0x430294){const _0x418455=_0x182aea;if(!_0x430294)return!0x1;const _0x1e511a=_0x308996[_0x418455(0x13e)](_0x5e852f[_0x418455(0x16d)]),{pivotTableId:_0xdafe9f,tableFieldId:_0x51ee05,items:_0x17aaaf,unitId:_0x524f56,subUnitId:_0x17a170,isAll:_0x49f593}=_0x430294,_0x5f4d92=_0x308996['get'](_0x263ce9[_0x418455(0x275)]),_0x1a3d5d=_0x308996[_0x418455(0x13e)](_0x5e852f[_0x418455(0x2d7)]),_0x1caf23=(await _0x5f4d92[_0x418455(0x16f)]({'unitId':_0x524f56,'subUnitId':_0x17a170,'pivotTableId':_0xdafe9f,'params':{'type':_0x4b4d23['SetPivotFilter'],'setPivotFilter':{'tableFieldId':_0x51ee05,'items':_0x17aaaf,'isAll':_0x49f593}}}))[_0x418455(0x23d)][_0x418455(0x2d4)];if(!_0x1caf23)return!0x1;const {changesets:_0x91a7c3,pivotTableConfig:_0x218652,isEmpty:_0x2a5c9a,view:_0x2c820f}=_0x1caf23,_0x2d25c6=_0x218652[_0x418455(0x106)],_0x429270=new _0x57400a['PivotView']();_0x429270[_0x418455(0x366)](_0x2c820f);const _0x1321b4={'cellInfo':_0x2d25c6,'view':_0x429270,'isEmpty':_0x2a5c9a};if(!await _0x308996[_0x418455(0x13e)](_0x263ce9['SheetsPivotTableService'])[_0x418455(0x28d)][_0x418455(0x201)](_0x5d2f76)(!0x0,_0x1321b4))return!0x1;const _0x36bbda=_0x14295f(_0x308996,_0x429270,_0x2d25c6,_0x2a5c9a),_0x2ff8d3=_0x2ff60f(_0x308996,_0x1321b4),{undos:_0x4225b6,redos:_0x3e5270}=_0x293314(_0x1e511a,{'pivotTableId':_0xdafe9f,'unitId':_0x524f56,'subUnitId':_0x17a170},_0x91a7c3);return _0x5e852f['sequenceExecute']([..._0x36bbda[_0x418455(0x203)],..._0x2ff8d3[_0x418455(0x203)],..._0x3e5270],_0x1e511a),_0x1a3d5d[_0x418455(0x2ff)]({'unitID':_0x524f56,'redoMutations':[..._0x36bbda['redos'],..._0x2ff8d3[_0x418455(0x203)],..._0x3e5270],'undoMutations':[..._0x36bbda['undos'],..._0x2ff8d3[_0x418455(0x2d5)],..._0x4225b6]}),!0x0;}},_0x13299b={'type':_0x5e852f['CommandType'][_0x182aea(0x376)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x4e6c6d,_0x270932){const _0x23cf74=_0x182aea;if(!_0x270932)return!0x1;const _0x119089=_0x4e6c6d[_0x23cf74(0x13e)](_0x5e852f[_0x23cf74(0x16d)]),_0x323184=_0x4e6c6d[_0x23cf74(0x13e)](_0x5e852f[_0x23cf74(0x2d7)]),_0x331171=_0x4e6c6d['get'](_0x263ce9['SheetsPivotRPCService']),{info:_0x5f1b34,tableFieldId:_0x378cb2,pivotTableId:_0x7d3618,unitId:_0x2af52e,subUnitId:_0x108c83}=_0x270932,_0x4fc150=(await _0x331171[_0x23cf74(0x16f)]({'unitId':_0x2af52e,'subUnitId':_0x108c83,'pivotTableId':_0x7d3618,'params':{'type':_0x4b4d23['SetPivotSort'],'setPivotSort':{'tableFieldId':_0x378cb2,'info':_0x5f1b34}}}))[_0x23cf74(0x23d)][_0x23cf74(0x167)];if(!_0x4fc150)return!0x1;const {changesets:_0x2d62e0}=_0x4fc150,{redos:_0x49caa1,undos:_0x122fd4}=_0x293314(_0x119089,{'pivotTableId':_0x7d3618,'unitId':_0x2af52e,'subUnitId':_0x108c83},_0x2d62e0);return _0x5e852f['sequenceExecute'](_0x49caa1,_0x119089),_0x323184[_0x23cf74(0x2ff)]({'unitID':_0x2af52e,'redoMutations':_0x49caa1,'undoMutations':_0x122fd4}),!0x0;}},_0x4cde89={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x1db),async 'handler'(_0x304eaa,_0x808c48){const _0x1da044=_0x182aea;if(!_0x808c48)return!0x1;const _0x306181=_0x304eaa[_0x1da044(0x13e)](_0x5e852f['ICommandService']),_0xae3d54=_0x304eaa['get'](_0x5e852f[_0x1da044(0x2d7)]),_0x2885b6=_0x304eaa[_0x1da044(0x13e)](_0x263ce9[_0x1da044(0x275)]),{displayName:_0x5c4142,subtotalType:_0x1ced1e,format:_0xce60f6,tableFieldId:_0x1a7cdb,pivotTableId:_0x101d40,unitId:_0x3e35af,subUnitId:_0x4283d0}=_0x808c48,_0x52f7b3=(await _0x2885b6[_0x1da044(0x16f)]({'unitId':_0x3e35af,'subUnitId':_0x4283d0,'pivotTableId':_0x101d40,'params':{'type':_0x4b4d23[_0x1da044(0x25d)],'setPivotSetting':{'tableFieldId':_0x1a7cdb,'displayName':_0x5c4142,'subtotalType':_0x1ced1e,'format':_0xce60f6}}}))[_0x1da044(0x23d)][_0x1da044(0x22c)];if(!_0x52f7b3)return!0x1;const {changesets:_0x32b154,view:_0x1002e4,pivotTableConfig:_0x41051f,isEmpty:_0x111fea}=_0x52f7b3,_0x3d8fd4=_0x41051f[_0x1da044(0x106)],_0x4aa229=new _0x57400a[(_0x1da044(0x1c5))]();_0x4aa229[_0x1da044(0x366)](_0x1002e4);const _0x45f0a2={'cellInfo':_0x3d8fd4,'view':_0x4aa229,'isEmpty':_0x111fea};if(!await _0x304eaa[_0x1da044(0x13e)](_0x263ce9['SheetsPivotTableService'])[_0x1da044(0x28d)][_0x1da044(0x201)](_0x5d2f76)(!0x0,_0x45f0a2))return!0x1;const _0x2e1381=_0x14295f(_0x304eaa,_0x4aa229,_0x3d8fd4,_0x111fea),_0x51f01b=_0x2ff60f(_0x304eaa,_0x45f0a2),{undos:_0x2ceee2,redos:_0x492428}=_0x293314(_0x306181,{'pivotTableId':_0x101d40,'unitId':_0x3e35af,'subUnitId':_0x4283d0},_0x32b154);return _0x5e852f[_0x1da044(0x2df)]([..._0x2e1381[_0x1da044(0x203)],..._0x51f01b[_0x1da044(0x203)],..._0x492428],_0x306181),_0xae3d54[_0x1da044(0x2ff)]({'unitID':_0x3e35af,'redoMutations':[..._0x2e1381[_0x1da044(0x203)],..._0x51f01b['redos'],..._0x492428],'undoMutations':[..._0x2e1381['undos'],..._0x51f01b['undos'],..._0x2ceee2]}),!0x0;}},_0x34c1fa={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0xfe),async 'handler'(_0x7064c3,_0x2a79d1){const _0x32dff2=_0x182aea,_0x450201=_0x7064c3[_0x32dff2(0x13e)](_0x5e852f[_0x32dff2(0x16d)]),_0x46f628=_0x7064c3['get'](_0x263ce9[_0x32dff2(0x275)]),_0x430445=_0x7064c3[_0x32dff2(0x13e)](_0x5e852f[_0x32dff2(0x2d7)]);if(!_0x2a79d1)return!0x1;const {token:_0x214c1c,dataRangeInfo:_0x5e3e8f,unitId:_0x35fb3d,subUnitId:_0x814ec}=_0x2a79d1,_0x14414a=[],_0x2dfc27=[],_0x2ec69b=(await _0x46f628['getPivotDisplayConfig']({'unitId':_0x35fb3d,'subUnitId':_0x814ec,'pivotTableId':_0x214c1c,'params':{'type':_0x4b4d23[_0x32dff2(0x321)],'updatePivotSource':{'dataRangeInfo':_0x5e3e8f,'unitId':_0x35fb3d,'subUnitId':_0x814ec}}}))[_0x32dff2(0x23d)][_0x32dff2(0xfb)];if(!_0x2ec69b)return!0x1;const {changesets:_0xf5f251,deleteIds:_0x5a8325,collectionConfig:_0x2a09a6,oldCollectionConfig:_0x315746,view:_0x75667b,isEmpty:_0x5a0ce9,pivotTableConfig:_0x5e45f7}=_0x2ec69b;_0x2dfc27[_0x32dff2(0x2d8)]({'id':_0x176159['id'],'params':{'pivotTableId':_0x214c1c,'deleteIds':_0x5a8325,'collectionJSON':_0x2a09a6,'dataRangeInfo':_0x5e3e8f,'unitId':_0x35fb3d,'subUnitId':_0x814ec}}),_0x14414a[_0x32dff2(0x2a7)]({'id':_0x176159['id'],'params':{'pivotTableId':_0x214c1c,'deleteIds':[],'collectionJSON':_0x315746,'dataRangeInfo':_0x5e45f7[_0x32dff2(0x252)],'unitId':_0x35fb3d,'subUnitId':_0x814ec}});const _0x481086=_0x5e45f7[_0x32dff2(0x106)],_0x13ecc4=new _0x57400a['PivotView']();_0x13ecc4[_0x32dff2(0x366)](_0x75667b);const _0x13ccbe={'cellInfo':_0x481086,'view':_0x13ecc4,'isEmpty':_0x5a0ce9};if(!await _0x7064c3['get'](_0x263ce9[_0x32dff2(0x1ac)])[_0x32dff2(0x28d)][_0x32dff2(0x201)](_0x5d2f76)(!0x0,_0x13ccbe))return!0x1;const _0x258248=_0x14295f(_0x7064c3,_0x13ecc4,_0x481086,_0x5a0ce9),_0x166111=_0x2ff60f(_0x7064c3,_0x13ccbe),{undos:_0xb59509,redos:_0x548fd6}=_0x293314(_0x450201,{'pivotTableId':_0x214c1c,'unitId':_0x35fb3d,'subUnitId':_0x814ec},_0xf5f251);return _0x5e852f[_0x32dff2(0x2df)]([..._0x258248[_0x32dff2(0x203)],..._0x166111[_0x32dff2(0x203)],..._0x2dfc27,..._0xb59509],_0x450201),_0x430445[_0x32dff2(0x2ff)]({'unitID':_0x35fb3d,'redoMutations':[..._0x258248[_0x32dff2(0x203)],..._0x166111[_0x32dff2(0x203)],..._0x2dfc27,..._0xb59509],'undoMutations':[..._0x258248[_0x32dff2(0x2d5)],..._0x166111[_0x32dff2(0x2d5)],..._0x14414a,..._0x548fd6]}),!0x0;}},_0x4e7ed5={'type':_0x5e852f[_0x182aea(0x1b3)][_0x182aea(0x376)],'id':_0x182aea(0x264),async 'handler'(_0x418d9d,_0x1f60e1){const _0x4f7563=_0x182aea;if(!_0x1f60e1)return!0x1;const _0x3a31f8=_0x418d9d[_0x4f7563(0x13e)](_0x5e852f[_0x4f7563(0x16d)]),_0x1ed707=_0x418d9d[_0x4f7563(0x13e)](_0x263ce9[_0x4f7563(0x275)]),_0x57e187=_0x418d9d[_0x4f7563(0x13e)](_0x5e852f[_0x4f7563(0x194)]),_0x26e781=_0x418d9d[_0x4f7563(0x13e)](_0x5e852f[_0x4f7563(0x2d7)]),{pivotTableId:_0x2fb763,position:_0x13e230,index:_0x4cda8e}=_0x1f60e1,_0x181f24=_0x114012['getSheetCommandTarget'](_0x57e187);if(!_0x181f24)return!0x1;const {unitId:_0x362fae,subUnitId:_0x401346}=_0x181f24,_0x262f3b=(await _0x1ed707[_0x4f7563(0x16f)]({'unitId':_0x362fae,'subUnitId':_0x401346,'pivotTableId':_0x2fb763,'params':{'type':_0x4b4d23['UpdateValuePosition'],'updateValuePosition':{'position':_0x13e230,'index':_0x4cda8e}}}))['result'][_0x4f7563(0x29d)];if(!_0x262f3b)return!0x1;const {changesets:_0x1c3b91,view:_0x38db15,isEmpty:_0x30b9ae,pivotTableConfig:_0x25c707}=_0x262f3b,_0x3b2f47=_0x25c707[_0x4f7563(0x106)],_0x4b9722=new _0x57400a['PivotView']();_0x4b9722[_0x4f7563(0x366)](_0x38db15);const _0x200e8b=_0x418d9d[_0x4f7563(0x13e)](_0x263ce9[_0x4f7563(0x1ac)]),_0x5bf85f={'cellInfo':_0x3b2f47,'view':_0x4b9722,'isEmpty':_0x30b9ae};if(!await _0x200e8b[_0x4f7563(0x28d)][_0x4f7563(0x201)](_0x5d2f76)(!0x0,_0x5bf85f))return!0x1;const _0x339aad=_0x14295f(_0x418d9d,_0x4b9722,_0x3b2f47,_0x30b9ae),_0x5227e5=_0x2ff60f(_0x418d9d,_0x5bf85f),{undos:_0x1c8124,redos:_0x2f8f24}=_0x293314(_0x3a31f8,{'pivotTableId':_0x2fb763,'unitId':_0x362fae,'subUnitId':_0x401346},_0x1c3b91);return _0x5e852f[_0x4f7563(0x2df)]([..._0x339aad[_0x4f7563(0x203)],..._0x5227e5[_0x4f7563(0x203)],..._0x2f8f24],_0x3a31f8),_0x26e781[_0x4f7563(0x2ff)]({'unitID':_0x362fae,'redoMutations':[..._0x339aad[_0x4f7563(0x203)],..._0x5227e5[_0x4f7563(0x203)],..._0x2f8f24],'undoMutations':[..._0x339aad[_0x4f7563(0x2d5)],..._0x5227e5[_0x4f7563(0x2d5)],..._0x1c8124]}),!0x0;}},_0x234cab={'type':_0x5e852f[_0x182aea(0x1b3)]['COMMAND'],'id':_0x182aea(0x12f),'handler':(_0x1f812e,_0x48051c)=>{const _0x2e6dea=_0x182aea,_0x7ce548=_0x1f812e[_0x2e6dea(0x13e)](_0x5e852f[_0x2e6dea(0x16d)]),_0x2ab2a5=_0x1f812e[_0x2e6dea(0x13e)](_0x5e852f[_0x2e6dea(0x2d7)]),_0x1c618b=_0x1f812e[_0x2e6dea(0x13e)](_0x263ce9['SheetsPivotTableConfigModel']),_0x5dcbc3=_0x1f812e['get'](_0x5e852f[_0x2e6dea(0x194)]);if(!_0x48051c)return!0x1;const _0x24c638=_0x114012['getSheetCommandTarget'](_0x5dcbc3);if(!_0x24c638)return!0x1;const {unitId:_0x30bde7,subUnitId:_0x36d168,workbook:_0x24bb9a}=_0x24c638,_0x20a220=_0x1c618b[_0x2e6dea(0x325)](_0x48051c[_0x2e6dea(0x1cf)][_0x2e6dea(0xfd)],_0x48051c[_0x2e6dea(0x1cf)]['subUnitId'],_0x48051c[_0x2e6dea(0x2fe)]);if(!_0x20a220)return!0x1;const _0x4a8161=_0x24bb9a[_0x2e6dea(0x164)](_0x48051c[_0x2e6dea(0x106)][_0x2e6dea(0x36f)]);if(!_0x4a8161)throw new Error(_0x2e6dea(0x2d1));const _0x2a9dca=_0x4a8161[_0x2e6dea(0x18a)](),_0x4f8d67=_0x4a8161['getColumnCount']();if(_0x48051c['targetCellInfo'][_0x2e6dea(0x2d3)]>_0x2a9dca||_0x48051c[_0x2e6dea(0x106)][_0x2e6dea(0x103)]>_0x4f8d67)throw new Error(_0x2e6dea(0x1d2));const _0x2a7539=[{'id':_0x2211c3['id'],'params':{'unitId':_0x30bde7,'subUnitId':_0x48051c['targetCellInfo'][_0x2e6dea(0x36f)],'pivotTableId':_0x48051c['pivotTableId'],'targetCellPosition':{'row':_0x48051c[_0x2e6dea(0x106)]['row'],'col':_0x48051c[_0x2e6dea(0x106)]['col']}}}],_0x16ba7e=[{'id':_0x2211c3['id'],'params':{'unitId':_0x30bde7,'subUnitId':_0x36d168,'pivotTableId':_0x48051c[_0x2e6dea(0x2fe)],'targetCellPosition':{'row':_0x20a220['targetCellInfo']['row'],'col':_0x20a220[_0x2e6dea(0x106)][_0x2e6dea(0x103)]}}}];return _0x5e852f[_0x2e6dea(0x2df)](_0x2a7539,_0x7ce548)&&_0x2ab2a5[_0x2e6dea(0x2ff)]({'unitID':_0x30bde7,'undoMutations':_0x16ba7e,'redoMutations':_0x2a7539}),!0x0;}},_0x58a619=_0x182aea(0x30a),_0x4a20d4={};var _0x150bba=Object[_0x182aea(0xe8)],_0x8d16b5=Object[_0x182aea(0x2ea)],_0x32f725=(_0x2471a8,_0x2e43f2,_0x221776,_0x365810)=>{const _0xf5a7eb=_0x182aea;for(var _0x3c0733=_0x365810>0x1?void 0x0:_0x365810?_0x8d16b5(_0x2e43f2,_0x221776):_0x2e43f2,_0x9edda4=_0x2471a8[_0xf5a7eb(0x2c9)]-0x1,_0x42b3a8;_0x9edda4>=0x0;_0x9edda4--)(_0x42b3a8=_0x2471a8[_0x9edda4])&&(_0x3c0733=(_0x365810?_0x42b3a8(_0x2e43f2,_0x221776,_0x3c0733):_0x42b3a8(_0x3c0733))||_0x3c0733);return _0x365810&&_0x3c0733&&_0x150bba(_0x2e43f2,_0x221776,_0x3c0733),_0x3c0733;},_0x1ba1a8=(_0xb7940e,_0xd7e68b)=>(_0x19dd2c,_0xbdbec0)=>_0xd7e68b(_0x19dd2c,_0xbdbec0,_0xb7940e);const _0x237f47=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x2cd17e=(_0x1a2c6c,_0x5d75c0,_0x455832)=>{const _0x3bf005=_0x182aea,_0x53c21a=_0x1a2c6c[_0x3bf005(0x2b7)];_0x1a2c6c[_0x3bf005(0x1df)](_0x59b4a2=>{const _0x378c34=_0x3bf005,_0x58eaec=_0x59b4a2[_0x378c34(0x111)](),_0x455aed=_0x59b4a2[_0x378c34(0x381)](),_0x346eb0=_0x59b4a2[_0x378c34(0x2e9)](),_0x4e6b96=_0x59b4a2['getDisplayName']();_0x5d75c0[_0x455aed]&&_0x5d75c0[_0x455aed]===_0x4e6b96&&_0x346eb0===_0x4e6b96&&(_0x1a2c6c[_0x378c34(0x2d2)](_0x58eaec,_0x53c21a[_0x378c34(0xff)](_0x455aed)),_0x59b4a2[_0x378c34(0x1e8)](_0x53c21a[_0x378c34(0xff)](_0x455aed)));}),_0x1a2c6c['iterateFieldByArea'](_0x57400a[_0x3bf005(0x265)][_0x3bf005(0x329)],_0x329cb9=>{const _0x484221=_0x3bf005,_0x383e2d=_0x329cb9['getId'](),_0x5c5ca5=_0x329cb9[_0x484221(0x381)](),_0x500517=_0x329cb9['getSourceName'](),_0x3d0339=_0x329cb9['getDisplayName'](),_0x4ee53b=_0x329cb9[_0x484221(0x293)](),_0x42e2ba=_0x455832(_0x500517,_0x4ee53b);_0x5d75c0[_0x5c5ca5]&&_0x5d75c0[_0x5c5ca5]===_0x500517&&_0x42e2ba===_0x3d0339&&(_0x1a2c6c['renameField'](_0x383e2d,_0x455832(_0x53c21a[_0x484221(0xff)](_0x5c5ca5),_0x4ee53b)),_0x329cb9[_0x484221(0x1e8)](_0x53c21a[_0x484221(0xff)](_0x5c5ca5)));});},_0x196a02=(_0x39421f,_0x547ffa,_0x4acdee)=>{const _0x3e559d=_0x182aea;var _0x563468,_0x28b151;const {arrayFormulaCellData:_0x2c1317,unitData:_0x20f3a5}=_0x547ffa,{unitId:_0x58f3cf,subUnitId:_0x391600}=_0x4acdee,_0x448239=_0x4acdee[_0x3e559d(0xcb)],{startColumn:_0x2d66d4,endColumn:_0x3d516b}=_0x448239,_0x2cfa7f=(_0x563468=_0x2c1317==null?void 0x0:_0x2c1317[_0x58f3cf])==null?void 0x0:_0x563468[_0x391600],_0x142f96=(_0x28b151=_0x20f3a5==null?void 0x0:_0x20f3a5[_0x58f3cf])==null?void 0x0:_0x28b151[_0x391600],_0x5cdd7a=new Set(),_0x1ebe29=_0x3d516b-_0x2d66d4+0x1,{dirtyRanges:_0x2c5017}=_0x39421f;if(_0x2c5017)for(const {range:_0x35e777,sheetId:_0x2932e2,unitId:_0x210b49}of _0x2c5017){if(_0x2932e2!==_0x391600||_0x58f3cf!==_0x210b49)continue;const _0x4fd8fa=_0x5e852f[_0x3e559d(0x2a4)][_0x3e559d(0x2fc)](_0x35e777,_0x448239);if(_0x4fd8fa){const {startColumn:_0x1c8641,endColumn:_0x3df00c}=_0x4fd8fa;for(let _0x45e3c5=_0x1c8641;_0x45e3c5<=_0x3df00c;_0x45e3c5++)_0x5cdd7a[_0x3e559d(0x33b)](_0x45e3c5);}}if(_0x5cdd7a[_0x3e559d(0x241)]===_0x1ebe29||_0x5cdd7a[_0x3e559d(0x241)]===_0x1ebe29)return Array[_0x3e559d(0x1de)](_0x5cdd7a);if(_0x142f96){const _0x26244f=_0x142f96[_0x3e559d(0x1f9)](),_0x5690a1=Object[_0x3e559d(0x2ce)](_0x26244f);for(const _0x1d32ad of _0x5690a1){const _0xbaa2e5=Number(_0x1d32ad),_0x2a7206=_0x26244f[_0xbaa2e5];if(_0x5cdd7a[_0x3e559d(0x241)]===_0x1ebe29)break;for(const _0x569bfd in _0x2a7206){const _0x12fb29=Number(_0x569bfd);_0x12fb29<_0x2d66d4||_0x12fb29>_0x3d516b||_0x5cdd7a[_0x3e559d(0x33b)](_0x12fb29);}}}if(_0x2cfa7f){const _0x18012e=_0x2cfa7f[_0x3e559d(0x1f9)](),_0x38f0bb=Object[_0x3e559d(0x2ce)](_0x18012e);for(const _0x3f1a59 of _0x38f0bb){const _0x3a1e29=Number(_0x3f1a59),_0x2075e3=_0x18012e[_0x3a1e29];if(_0x5cdd7a[_0x3e559d(0x241)]===_0x1ebe29)break;for(const _0x328a33 in _0x2075e3){const _0x5a32a4=Number(_0x328a33);_0x5a32a4<_0x2d66d4||_0x5a32a4>_0x3d516b||_0x5cdd7a['add'](_0x5a32a4);}}}return Array[_0x3e559d(0x1de)](_0x5cdd7a);},_0xb60a6b=_0x169f9b=>{const _0x4f8177=_0x182aea,_0x3d2171=new Set(),_0x44e0a9=[];for(const _0x16cfb8 of _0x169f9b){const _0x5007f0=_0x16cfb8[_0x4f8177(0x2a6)]+','+_0x16cfb8['endRow']+','+_0x16cfb8[_0x4f8177(0x34d)]+','+_0x16cfb8[_0x4f8177(0x154)];_0x3d2171['has'](_0x5007f0)||(_0x3d2171['add'](_0x5007f0),_0x44e0a9['push'](_0x16cfb8));}return _0x44e0a9;};let _0x5270f3=class extends _0x5e852f['Disposable']{constructor(_0x4d8ba0,_0x46352a,_0x240981,_0x15137d,_0x5e9a49){const _0xc86e6b=_0x182aea;super(),this[_0xc86e6b(0x2ec)]=_0x4d8ba0,this[_0xc86e6b(0x35f)]=_0x46352a,this[_0xc86e6b(0x132)]=_0x240981,this[_0xc86e6b(0x367)]=_0x15137d,this[_0xc86e6b(0x372)]=_0x5e9a49,this[_0xc86e6b(0x184)](),this[_0xc86e6b(0x281)]();}['_init'](){const _0x5dcebf=_0x182aea;this[_0x5dcebf(0x196)](),this[_0x5dcebf(0x140)](),this[_0x5dcebf(0x298)](),this['_subjectFieldsCollectionChange']();}['_initPivotDataGetListener'](){const _0x4bb77c=_0x182aea;this[_0x4bb77c(0x165)](this[_0x4bb77c(0x367)][_0x4bb77c(0x174)](_0x5db22b=>{const _0x50fd86=_0x4bb77c;_0x5db22b['id']===_0x114012[_0x50fd86(0x20c)]['id']&&this[_0x50fd86(0x2ec)][_0x50fd86(0x2a5)](_0x5db22b[_0x50fd86(0x156)]);})),this[_0x4bb77c(0x165)](this[_0x4bb77c(0x367)][_0x4bb77c(0x174)](_0x3ef9a0=>{const _0x50c40e=_0x4bb77c;if(_0x3ef9a0['id']!==_0x46d7ec['id'])return;const _0x1cda34=_0x3ef9a0[_0x50c40e(0x156)],{unitId:_0x30b14e,subUnitId:_0x208aff,pivotTableId:_0x50f2ea}=_0x1cda34,_0x1ddf48=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x20b)],_0x55a06d={};switch(_0x1ddf48){case _0x4b4d23[_0x50c40e(0x31f)]:{const _0x2da3bd=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x240)];if(!_0x2da3bd)return;const {row:_0x232404,col:_0x142247,cellData:_0x399139,pivotItemRenderInfoCache:_0x3561b3,tableFieldId:_0x99e098}=_0x2da3bd,_0x20234b=this['_sheetsPivotDataSourceModel'][_0x50c40e(0x1ed)](_0x1cda34[_0x50c40e(0x2fe)]);if(!_0x20234b||!_0x3561b3)return;if(_0x99e098){const _0x351c1d=_0x20234b[_0x50c40e(0x305)](_0x99e098);if(!_0x351c1d)return;_0x55a06d[_0x50c40e(0x240)]={..._0x20234b[_0x50c40e(0x350)](_0x351c1d),'tableFieldId':_0x99e098,'pivotTableId':_0x1cda34[_0x50c40e(0x2fe)],'filterInfo':_0x20234b[_0x50c40e(0x1e4)](_0x99e098),'sortInfo':_0x20234b[_0x50c40e(0x26f)](_0x99e098),'format':_0x20234b[_0x50c40e(0x337)](_0x99e098)};}else{const _0x4781e0=_0x28b41a(_0x232404,_0x142247,_0x399139,_0x20234b,_0x3561b3),_0x4e059d=_0x4781e0==null?void 0x0:_0x4781e0[_0x50c40e(0x2c2)];if(!_0x4e059d)return;const _0x990a42=_0x20234b[_0x50c40e(0x305)](_0x4e059d);if(!_0x990a42)return;_0x55a06d['filter']={..._0x20234b[_0x50c40e(0x350)](_0x990a42),'tableFieldId':_0x4e059d,'pivotTableId':_0x1cda34[_0x50c40e(0x2fe)],'filterInfo':_0x20234b[_0x50c40e(0x1e4)](_0x4e059d),'sortInfo':_0x20234b['getSortInfo'](_0x4e059d),'format':_0x20234b[_0x50c40e(0x337)](_0x4e059d)};}}break;case _0x4b4d23['Panel']:{const _0x253490=_0x1cda34['params'][_0x50c40e(0x25e)];if(!_0x253490)return;const {pivotTableId:_0x2447c8}=_0x253490,_0x4b6b9b=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x2447c8);if(!_0x4b6b9b)return;const _0x4c466a=this[_0x50c40e(0x2ec)][_0x50c40e(0x325)](_0x30b14e,_0x208aff,_0x2447c8),_0x5023c9=_0x53c54d(_0x4b6b9b,_0x2447c8,_0x4c466a);_0x55a06d['panel']=_0x5023c9;}break;case _0x4b4d23[_0x50c40e(0x2c8)]:{const _0x2b9736=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea),_0x522027=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x30b14e,_0x208aff,_0x50f2ea),_0x137c6e=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x1b9)];if(!_0x2b9736||!_0x522027||!_0x137c6e)return!0x1;const {dataFieldId:_0x3a9589,fieldArea:_0x44ec3b,index:_0x9a6e89}=_0x137c6e;_0x2b9736[_0x50c40e(0x10a)]();const _0x1cb40d=_0x2b9736[_0x50c40e(0x13a)](_0x3a9589,_0x44ec3b,_0x9a6e89);if(_0x1cb40d&&_0x44ec3b===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x329)]){const _0x33756b=_0x1cb40d[_0x50c40e(0x111)](),_0x876a81=_0x2b9736[_0x50c40e(0x305)](_0x33756b);if(_0x876a81){const _0x3ae7d1=_0x876a81==null?void 0x0:_0x876a81[_0x50c40e(0x389)]();_0x2b9736['setSubtotalType'](_0x1cb40d['getId'](),_0x3ae7d1===_0x57400a['PivotDataFieldDataTypeEnum']['number']?_0x57400a['PivotSubtotalTypeEnum'][_0x50c40e(0x20a)]:_0x57400a[_0x50c40e(0x155)][_0x50c40e(0x2b4)]);}const _0x31efc9=_0x2b9736['getValueIndex'](),_0x4cedce=_0x2b9736[_0x50c40e(0x35c)](),_0x1cd848=_0x2b9736[_0x50c40e(0x354)](_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x329)]);if(_0x31efc9===-0x1&&_0x1cd848>0x1){const _0xac2c09=_0x4cedce===_0x57400a[_0x50c40e(0x245)][_0x50c40e(0x2eb)]?_0x57400a[_0x50c40e(0x245)][_0x50c40e(0x10d)]:_0x4cedce,_0x37c946=_0xac2c09===_0x57400a[_0x50c40e(0x245)][_0x50c40e(0x2ed)]?_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x2ed)]:_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x10d)];_0x2b9736[_0x50c40e(0x29d)](_0xac2c09,_0x2b9736[_0x50c40e(0x354)](_0x37c946));}}else{if(_0x1cb40d&&(_0x44ec3b===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x2ed)]||_0x44ec3b===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x10d)])){const _0xe6f3ac=_0x1cb40d['getId'](),_0x44e2cf=_0x2b9736['getDataFieldByTableId'](_0xe6f3ac);if(_0x44e2cf&&(_0x44e2cf==null?void 0x0:_0x44e2cf[_0x50c40e(0x389)]())===_0x57400a[_0x50c40e(0x2d6)][_0x50c40e(0x30d)]){const _0x3d01a0=_0x44e2cf[_0x50c40e(0x141)]();_0x3d01a0&&_0x2b9736[_0x50c40e(0x1bb)](_0x1cb40d['getId'](),_0x3d01a0);}}}const _0x20eac4=_0x2b9736[_0x50c40e(0x371)](),_0x4dab8e=_0x2b9736[_0x50c40e(0x1bd)]()[_0x50c40e(0x24c)](),_0x163865=_0x2b9736[_0x50c40e(0x237)]();_0x55a06d[_0x50c40e(0x1b9)]={'view':_0x4dab8e,'changesets':_0x163865,'isEmpty':_0x20eac4,'pivotTableConfig':_0x522027};}break;case _0x4b4d23[_0x50c40e(0x110)]:{const _0x4be41f=_0x1cda34[_0x50c40e(0x156)]['addPivotTable'];if(!_0x4be41f)return;const _0x25973c=_0x4be41f[_0x50c40e(0x252)],{collection:_0x5aa055}=this[_0x50c40e(0x2ec)][_0x50c40e(0x12b)]({'unitId':_0x25973c[_0x50c40e(0xfd)],'sheetName':_0x25973c[_0x50c40e(0x162)],'subUnitId':_0x25973c[_0x50c40e(0x36f)],'range':_0x25973c[_0x50c40e(0xcb)]}),_0x1166ea=new _0x57400a[(_0x50c40e(0x2d0))](_0x5aa055),_0x1aeb15=_0x1166ea[_0x50c40e(0x1bd)](),_0x59c2f9=_0x1166ea[_0x50c40e(0x24c)](),_0x444cc8=_0x5aa055[_0x50c40e(0x24c)]();_0x55a06d[_0x50c40e(0x246)]={'view':_0x1aeb15,'fieldsConfig':_0x59c2f9,'collectionConfig':_0x444cc8,'isEmpty':_0x1166ea['isEmpty']()};}break;case _0x4b4d23[_0x50c40e(0x2a0)]:{const _0x42fd0d=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x386)];if(!_0x42fd0d)return;const {fieldId:_0x5b2be3,area:_0xd8267a,index:_0x3dd89e}=_0x42fd0d,_0x1aa34a=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x1aa34a)return;const _0xfef74b=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea);if(!_0xfef74b)return;_0xfef74b[_0x50c40e(0x10a)]();const {area:_0x5d5a1e,index:_0x24f4b3}=_0xfef74b[_0x50c40e(0x2e0)](_0x5b2be3);if(_0xfef74b[_0x50c40e(0x262)](_0x5b2be3,_0xd8267a,_0x3dd89e),_0xd8267a===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x329)]&&_0xfef74b['getTableFieldById'](_0x5b2be3)[_0x50c40e(0x293)]()===void 0x0){const _0x3723e4=_0xfef74b[_0x50c40e(0x222)](_0x5b2be3);if(_0x3723e4&&_0x3723e4[_0x50c40e(0x293)]()===void 0x0){const _0x58aec8=_0xfef74b[_0x50c40e(0x305)](_0x5b2be3);if(_0x58aec8){const _0xb0f39e=_0x58aec8==null?void 0x0:_0x58aec8[_0x50c40e(0x389)]();_0xfef74b['setSubtotalType'](_0x5b2be3,_0xb0f39e===_0x57400a[_0x50c40e(0x2d6)][_0x50c40e(0x35a)]?_0x57400a[_0x50c40e(0x155)][_0x50c40e(0x20a)]:_0x57400a['PivotSubtotalTypeEnum']['count']);}}}const _0x40b611=_0xfef74b[_0x50c40e(0x35c)](),_0x1198a4=_0xfef74b['getValueIndex'](),_0x3b167a=_0xfef74b[_0x50c40e(0x354)](_0x57400a[_0x50c40e(0x265)]['Value'])>0x1;if(_0x3b167a&&_0x5d5a1e===_0xd8267a&&(_0xd8267a===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x2ed)]&&_0x40b611===_0x57400a[_0x50c40e(0x245)][_0x50c40e(0x2ed)]||_0xd8267a===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x10d)]&&_0x40b611===_0x57400a[_0x50c40e(0x245)]['Column'])){let _0x58f12e=_0x1198a4;_0x24f4b3<=_0x1198a4&&_0x58f12e--,_0x3dd89e<=_0x1198a4&&_0x58f12e++,_0xfef74b[_0x50c40e(0x29d)](_0x40b611,_0x58f12e);}else _0x3b167a&&(_0x5d5a1e===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x2ed)]&&_0x40b611===_0x57400a[_0x50c40e(0x245)][_0x50c40e(0x2ed)]||_0x5d5a1e===_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x10d)]&&_0x40b611===_0x57400a['PivotTableValuePositionEnum'][_0x50c40e(0x10d)])&&_0x1198a4>=_0x24f4b3&&_0xfef74b[_0x50c40e(0x29d)](_0x40b611,_0x1198a4-0x1),_0x3b167a&&(_0xd8267a===_0x57400a[_0x50c40e(0x265)]['Row']&&_0x40b611===_0x57400a['PivotTableValuePositionEnum'][_0x50c40e(0x2ed)]||_0xd8267a===_0x57400a['PivotTableFiledAreaEnum'][_0x50c40e(0x10d)]&&_0x40b611===_0x57400a[_0x50c40e(0x245)][_0x50c40e(0x10d)])&&_0x1198a4>=_0x3dd89e&&_0xfef74b[_0x50c40e(0x29d)](_0x40b611,_0x1198a4+0x1);const _0x2e3f8c=_0xfef74b[_0x50c40e(0x1bd)](),_0x5c7252=_0xfef74b['isEmpty'](),_0x108dfd=_0xfef74b[_0x50c40e(0x237)]();_0x55a06d[_0x50c40e(0x386)]={'view':_0x2e3f8c[_0x50c40e(0x24c)](),'changesets':_0x108dfd,'isEmpty':_0x5c7252,'pivotTableConfig':_0x1aa34a};}break;case _0x4b4d23[_0x50c40e(0x2ba)]:{const _0x81c6bf=_0x1cda34['params']['removePivotField'];if(!_0x81c6bf)return;const _0x273dc5=_0x81c6bf['fieldIds'],_0x333d8f=this['_sheetsPivotDataSourceModel'][_0x50c40e(0x325)](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x333d8f)return!0x1;const _0xefd664=this[_0x50c40e(0x2ec)]['getPivotTableInstance'](_0x50f2ea);if(!_0xefd664)return!0x1;_0xefd664[_0x50c40e(0x10a)]();for(const _0x2a34ba of _0x273dc5)_0xefd664[_0x50c40e(0x20d)](_0x2a34ba);const _0x31a7cc=_0xefd664[_0x50c40e(0x371)](),_0x38fbda=_0xefd664[_0x50c40e(0x1bd)]()['toJSON'](),_0xec796d=_0xefd664[_0x50c40e(0x237)]();_0x55a06d[_0x50c40e(0x200)]={'changesets':_0xec796d,'pivotTableConfig':_0x333d8f,'isEmpty':_0x31a7cc,'view':_0x38fbda};}break;case _0x4b4d23[_0x50c40e(0x1c0)]:{const _0x5c56ec=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x2d4)];if(!_0x5c56ec)return;const {tableFieldId:_0x4e7200,items:_0x1cfb27,isAll:_0x5693e8}=_0x5c56ec,_0x24c254=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea),_0x62cf6d=this[_0x50c40e(0x2ec)][_0x50c40e(0x325)](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x24c254||!_0x62cf6d)return;_0x24c254[_0x50c40e(0x10a)](),_0x24c254[_0x50c40e(0xd3)](_0x4e7200,{'type':_0x57400a[_0x50c40e(0x379)][_0x50c40e(0x388)],'list':_0x1cfb27,'isAll':_0x5693e8});const _0x14d6df=_0x24c254[_0x50c40e(0x371)](),_0x44fda3=_0x24c254[_0x50c40e(0x1bd)]()[_0x50c40e(0x24c)](),_0xd7e2dc=_0x24c254['endCollectChangeset']();_0x55a06d['setPivotFilter']={'view':_0x44fda3,'changesets':_0xd7e2dc,'isEmpty':_0x14d6df,'pivotTableConfig':_0x62cf6d};}break;case _0x4b4d23[_0x50c40e(0x1c2)]:{const _0x28686d=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x167)];if(!_0x28686d)return;const {tableFieldId:_0xbdf69,info:_0x52bc5a}=_0x28686d,_0x428984=this['_sheetsPivotDataSourceModel'][_0x50c40e(0x1ed)](_0x50f2ea),_0x1b6370=this[_0x50c40e(0x2ec)]['getPivotTableConfig'](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x428984||!_0x1b6370)return;_0x428984[_0x50c40e(0x10a)](),_0x428984['setSortInfo'](_0xbdf69,_0x52bc5a);const _0x19cc32=_0x428984[_0x50c40e(0x371)](),_0x396464=_0x428984[_0x50c40e(0x1bd)]()['toJSON'](),_0x111403=_0x428984['endCollectChangeset']();_0x55a06d['setPivotSort']={'view':_0x396464,'changesets':_0x111403,'isEmpty':_0x19cc32,'pivotTableConfig':_0x1b6370};}break;case _0x4b4d23[_0x50c40e(0x25d)]:{const _0x5cc609=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x22c)];if(!_0x5cc609)return;const {tableFieldId:_0x39f647,displayName:_0x4e1210,subtotalType:_0x1b3c8f,format:_0x49afe6}=_0x5cc609,_0x2a75ac=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea),_0x5f6abe=this[_0x50c40e(0x2ec)][_0x50c40e(0x325)](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x2a75ac||!_0x5f6abe)return;_0x2a75ac[_0x50c40e(0x10a)](),_0x4e1210!==void 0x0&&_0x2a75ac[_0x50c40e(0x2d2)](_0x39f647,_0x4e1210),_0x1b3c8f!==void 0x0&&_0x2a75ac['setSubtotalType'](_0x39f647,_0x1b3c8f),_0x49afe6!==void 0x0&&_0x2a75ac['setFieldFormat'](_0x39f647,_0x49afe6);const _0x3f902e=_0x2a75ac['isEmpty'](),_0x3c23ae=_0x2a75ac['query']()['toJSON'](),_0x231360=_0x2a75ac[_0x50c40e(0x237)]();_0x55a06d[_0x50c40e(0x22c)]={'changesets':_0x231360,'pivotTableConfig':_0x5f6abe,'isEmpty':_0x3f902e,'view':_0x3c23ae};}break;case _0x4b4d23[_0x50c40e(0x321)]:{const _0xc96803=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0xfb)];if(!_0xc96803)return;const {dataRangeInfo:_0x45cd4c,unitId:_0x54fa2b,subUnitId:_0x386abc}=_0xc96803,_0x1650bb=this[_0x50c40e(0x2ec)]['getPivotTableConfig'](_0x54fa2b,_0x386abc,_0x50f2ea),_0x3546cf=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea);if(!this[_0x50c40e(0x2ec)][_0x50c40e(0x123)](_0x54fa2b,_0x50f2ea)||!_0x3546cf||!_0x1650bb)return;const _0x35cca0=this['_sheetsPivotDataSourceModel'][_0x50c40e(0x34c)](_0x54fa2b,_0x50f2ea,_0x45cd4c),_0x3bc993=this[_0x50c40e(0x2ec)]['getCollection'](_0x54fa2b,_0x50f2ea)['toJSON'](),{collection:_0x19c29e}=this[_0x50c40e(0x2ec)][_0x50c40e(0x12b)]({'unitId':_0x45cd4c['unitId'],'sheetName':_0x45cd4c[_0x50c40e(0x162)],'subUnitId':_0x45cd4c[_0x50c40e(0x36f)],'range':_0x45cd4c[_0x50c40e(0xcb)]}),_0x2e1adf=_0x19c29e[_0x50c40e(0x24c)]();_0x3546cf[_0x50c40e(0x10a)]();const _0x3da637=this[_0x50c40e(0x2ec)][_0x50c40e(0xf9)](_0x54fa2b)['getAutoDisplayNameFunction']()||_0x57400a['getAutoDisplayName'];_0x3546cf[_0x50c40e(0x255)](_0x38006e=>{const _0x542483=_0x50c40e,_0x5229d0=_0x38006e['getDataFieldId']();if(!_0x19c29e[_0x542483(0x2f0)](_0x5229d0)){const _0x43e629=_0x19c29e[_0x542483(0x117)](_0x38006e[_0x542483(0x2e9)]());if(_0x43e629){_0x3546cf[_0x542483(0x1ff)](_0x38006e['getId'](),_0x43e629[_0x542483(0x23a)](),_0x43e629['getId']());const {area:_0x13f8bd}=_0x3546cf[_0x542483(0x2e0)](_0x38006e[_0x542483(0x111)]());let _0xeed448=_0x38006e[_0x542483(0x2e9)]();const _0x2e91f2=_0x38006e[_0x542483(0xff)]();if(_0x13f8bd===_0x57400a[_0x542483(0x265)][_0x542483(0x329)]){const _0x1877cb=_0x38006e[_0x542483(0x293)]();_0xeed448=_0x3da637(_0x43e629['getName'](),_0x1877cb);}_0x2e91f2!==_0xeed448&&_0x3546cf[_0x542483(0x2d2)](_0x38006e[_0x542483(0x111)](),_0xeed448);}else _0x3546cf['removeField'](_0x38006e[_0x542483(0x111)]());}});const _0x38d1dc=_0x3546cf[_0x50c40e(0x371)](),_0x539240=_0x3546cf[_0x50c40e(0x1bd)]()[_0x50c40e(0x24c)](),_0x104c06=_0x3546cf[_0x50c40e(0x237)]();_0x55a06d[_0x50c40e(0xfb)]={'view':_0x539240,'changesets':_0x104c06,'isEmpty':_0x38d1dc,'pivotTableConfig':_0x1650bb,'collectionConfig':_0x2e1adf,'oldCollectionConfig':_0x3bc993,'deleteIds':_0x35cca0};}break;case _0x4b4d23[_0x50c40e(0x146)]:{const _0x389c0b=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x29d)];if(!_0x389c0b)return;const {position:_0x8eb3d,index:_0x1a7ca8}=_0x389c0b,_0x3baf31=this[_0x50c40e(0x2ec)][_0x50c40e(0x325)](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x3baf31)return!0x1;const _0x76dd50=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea);if(!_0x76dd50)return!0x1;_0x76dd50['startCollectChangeset'](),_0x76dd50[_0x50c40e(0x29d)](_0x8eb3d,_0x1a7ca8);const _0x335d37=_0x76dd50[_0x50c40e(0x371)](),_0x3f8b3e=_0x76dd50['query']()[_0x50c40e(0x24c)](),_0x2855da=_0x76dd50[_0x50c40e(0x237)]();_0x55a06d['updateValuePosition']={'changesets':_0x2855da,'pivotTableConfig':_0x3baf31,'isEmpty':_0x335d37,'view':_0x3f8b3e};}break;case _0x4b4d23['SetPivotCollapse']:{const _0x5ab936=_0x1cda34['params'][_0x50c40e(0x247)];if(!_0x5ab936)return;const {tableFieldId:_0x36d473,collapse:_0x35763f,item:_0x337048}=_0x5ab936,_0x519478=this[_0x50c40e(0x2ec)][_0x50c40e(0x1ed)](_0x50f2ea),_0x3fb6aa=this[_0x50c40e(0x2ec)][_0x50c40e(0x325)](_0x30b14e,_0x208aff,_0x50f2ea);if(!_0x519478||!_0x3fb6aa)return;_0x519478['startCollectChangeset'](),_0x519478[_0x50c40e(0x28b)](_0x36d473,_0x35763f,_0x337048);const _0x4db4b4=_0x519478[_0x50c40e(0x371)](),_0x271590=_0x519478['query']()[_0x50c40e(0x24c)](),_0x3e79c0=_0x519478[_0x50c40e(0x237)]();_0x55a06d['setPivotCollapse']={'view':_0x271590,'isEmpty':_0x4db4b4,'pivotTableConfig':_0x3fb6aa,'changesets':_0x3e79c0};}break;case _0x4b4d23[_0x50c40e(0xeb)]:{const _0x553133=_0x1cda34[_0x50c40e(0x156)][_0x50c40e(0x17a)];if(!_0x553133)return;const _0x5d34df=_0x553133[_0x50c40e(0x252)],{collection:_0x5cf213}=this[_0x50c40e(0x2ec)][_0x50c40e(0x12b)]({'unitId':_0x5d34df[_0x50c40e(0xfd)],'sheetName':_0x5d34df[_0x50c40e(0x162)],'subUnitId':_0x5d34df[_0x50c40e(0x36f)],'range':_0x5d34df['range']}),_0x429bb5=new _0x57400a[(_0x50c40e(0x2d0))](_0x5cf213),_0x3489b0=_0x5cf213['getFieldIds'](),{rows:_0x4e63af,columns:_0x97d2a5,filters:_0x472295,values:_0x1a0d26}=_0x553133[_0x50c40e(0x383)];_0x429bb5['startCollectChangeset']();for(const {field:_0x2c7abb,selectedItems:_0x5f2d50}of _0x4e63af||[]){const _0x46a206=_0x3489b0[_0x2c7abb];if(_0x46a206){const _0x34add2=_0x429bb5[_0x50c40e(0x13a)](_0x46a206,_0x57400a[_0x50c40e(0x265)]['Row']);_0x5f2d50&&_0x34add2&&_0x429bb5[_0x50c40e(0xd3)](_0x34add2['getId'](),{'type':_0x57400a[_0x50c40e(0x379)][_0x50c40e(0x388)],'list':_0x5f2d50,'isAll':!0x1});}}for(const {field:_0x37e1ed,selectedItems:_0x49ef89}of _0x97d2a5||[]){const _0x5a7dd8=_0x3489b0[_0x37e1ed];if(_0x5a7dd8){const _0x256ea9=_0x429bb5[_0x50c40e(0x13a)](_0x5a7dd8,_0x57400a['PivotTableFiledAreaEnum']['Column']);_0x49ef89&&_0x256ea9&&_0x429bb5[_0x50c40e(0xd3)](_0x256ea9[_0x50c40e(0x111)](),{'type':_0x57400a[_0x50c40e(0x379)][_0x50c40e(0x388)],'list':_0x49ef89,'isAll':!0x1});}}for(const {field:_0x147ed8,selectedItems:_0x3d6790}of _0x472295||[]){const _0x3fdfd7=_0x3489b0[_0x147ed8];if(_0x3fdfd7){const _0x53e52f=_0x429bb5['addFieldWithSourceId'](_0x3fdfd7,_0x57400a[_0x50c40e(0x265)]['Filter']);_0x3d6790&&_0x53e52f&&_0x429bb5['setFilterInfo'](_0x53e52f[_0x50c40e(0x111)](),{'type':_0x57400a[_0x50c40e(0x379)]['ManualFilter'],'list':_0x3d6790,'isAll':!0x1});}}for(const {field:_0x483820,subTotalType:_0x46ff74,formatString:_0x5bbc81}of _0x1a0d26||[]){const _0x47089f=_0x5cf213[_0x50c40e(0x324)](_0x3489b0[_0x483820]);if(!_0x47089f)continue;const _0x28bde9=_0x3489b0[_0x483820];if(_0x28bde9){const _0x311f96=_0x429bb5[_0x50c40e(0x13a)](_0x28bde9,_0x57400a[_0x50c40e(0x265)][_0x50c40e(0x329)]);if(_0x311f96){if(_0x46ff74!==void 0x0){_0x429bb5[_0x50c40e(0xef)](_0x311f96[_0x50c40e(0x111)](),_0x46ff74);const _0x5f3377=this[_0x50c40e(0x2ec)][_0x50c40e(0xf9)](_0x5d34df['unitId'])[_0x50c40e(0x108)]()||_0x57400a[_0x50c40e(0x2c1)],_0x28c6d8=_0x5cf213[_0x50c40e(0xff)](_0x28bde9),_0xc99d6=_0x5f3377(_0x28c6d8,_0x46ff74);_0x429bb5['renameField'](_0x311f96['getId'](),_0xc99d6);}else{if(_0x47089f){const _0x1759fb=_0x47089f==null?void 0x0:_0x47089f['getFieldDataType']();_0x429bb5[_0x50c40e(0xef)](_0x311f96['getId'](),_0x1759fb===_0x57400a[_0x50c40e(0x2d6)][_0x50c40e(0x35a)]?_0x57400a[_0x50c40e(0x155)][_0x50c40e(0x20a)]:_0x57400a[_0x50c40e(0x155)][_0x50c40e(0x2b4)]);}}_0x5bbc81&&_0x429bb5['setFieldFormat'](_0x311f96[_0x50c40e(0x111)](),_0x5bbc81);}}}const _0x1dc06e=_0x429bb5[_0x50c40e(0x1bd)](),_0x8a78c1=_0x429bb5[_0x50c40e(0x24c)](),_0x28453c=_0x429bb5[_0x50c40e(0x371)](),_0xd00479=_0x429bb5['endCollectChangeset'](),_0x322a5e=_0x5cf213[_0x50c40e(0x24c)]();_0x55a06d[_0x50c40e(0x17a)]={'view':_0x1dc06e,'fieldsConfig':_0x8a78c1,'collectionConfig':_0x322a5e,'isEmpty':_0x28453c,'changesets':_0xd00479};}break;case _0x4b4d23['DrillDown']:{const _0x33e3f5=_0x14345d(this['_injector'],_0x1cda34);if(!_0x33e3f5)return;const {range:_0x1240f6,sourceSubUnitId:_0x2d1070,sourceUnitId:_0x145312,formatMap:_0x51d52b,indexes:_0xae8fe5}=_0x33e3f5;_0x55a06d[_0x50c40e(0x104)]={'range':_0x1240f6,'sourceSubUnitId':_0x2d1070,'sourceUnitId':_0x145312,'formatMap':_0x51d52b,'indexes':_0xae8fe5};}break;}this[_0x50c40e(0x367)][_0x50c40e(0x119)](_0x446be6['id'],{'version':_0x1cda34[_0x50c40e(0x14c)],'result':_0x55a06d},{'onlyLocal':!0x0});}));}['_initPivotTextInfo'](){const _0x3a947d=_0x182aea;this[_0x3a947d(0x165)](this[_0x3a947d(0x367)]['onCommandExecuted'](_0xae8fef=>{const _0x4707e9=_0x3a947d;if(_0xae8fef['id']!==_0x13f2fe['id'])return;const _0x240c20=_0xae8fef[_0x4707e9(0x156)];return this[_0x4707e9(0x2ec)][_0x4707e9(0x314)](_0x240c20[_0x4707e9(0x357)]),!0x0;}));}[_0x182aea(0x196)](){const _0x439c97=_0x182aea;this[_0x439c97(0x2ec)]['collectionChange$'][_0x439c97(0x359)](_0x3729b3=>{const _0x4349ca=_0x439c97;switch(_0x3729b3[_0x4349ca(0x20b)]){case _0x29c238[_0x4349ca(0x33b)]:_0x3729b3[_0x4349ca(0x120)]&&_0x3729b3['targetCellInfo']&&this['handleSourceRangeChange'](_0x3729b3[_0x4349ca(0x18c)],_0x3729b3['dataRangeInfo'],_0x3729b3['targetCellInfo']);break;case _0x29c238[_0x4349ca(0x2bc)]:{const {unitId:_0x4e3383,subUnitId:_0x496b96,token:_0x5040cf}=_0x3729b3;_0x4e3383&&_0x496b96&&_0x5040cf&&this['removeSourceRangeChange'](_0x4e3383,_0x496b96,_0x5040cf);}break;case _0x29c238[_0x4349ca(0x385)]:{const {token:_0x45e2bc,oldSourceRangeInfo:_0x2e2070,dataRangeInfo:_0x5ae212,targetCellInfo:_0x27fa0d}=_0x3729b3,{unitId:_0x50721d,subUnitId:_0x563f7f}=_0x2e2070||{};_0x50721d&&_0x563f7f&&_0x45e2bc&&this[_0x4349ca(0x24f)](_0x50721d,_0x563f7f,_0x45e2bc),_0x5ae212&&_0x27fa0d&&this[_0x4349ca(0x20e)](_0x45e2bc,_0x5ae212,_0x27fa0d);}break;}});}['_subjectFieldsCollectionChange'](){const _0x470e60=_0x182aea;this[_0x470e60(0x2ec)]['fieldsCollectionChange$'][_0x470e60(0x359)](_0x34cfbd=>{const _0x1004e6=_0x470e60;Object[_0x1004e6(0x2ce)](_0x34cfbd)[_0x1004e6(0x1f1)](_0x229e35=>{const _0x4716a4=_0x1004e6,_0x295471=this[_0x4716a4(0x2ec)][_0x4716a4(0x24e)](_0x229e35);if(_0x295471){const _0x4e400=this[_0x4716a4(0x2ec)][_0x4716a4(0x325)](_0x295471==null?void 0x0:_0x295471[_0x4716a4(0xfd)],_0x295471==null?void 0x0:_0x295471['subUnitId'],_0x229e35);_0x4e400&&(this['handleSourceRangeChange'](_0x229e35,_0x4e400[_0x4716a4(0x252)],_0x4e400[_0x4716a4(0x106)]),this[_0x4716a4(0x290)]([{'unitId':_0x295471[_0x4716a4(0xfd)],'subUnitId':_0x295471[_0x4716a4(0x36f)],'token':_0x229e35}]));}});});}[_0x182aea(0x140)](){const _0x49046b=_0x182aea;this[_0x49046b(0x2ec)][_0x49046b(0x188)][_0x49046b(0x359)](_0x1ac5bd=>{const _0x255584=_0x49046b,{unitId:_0x5e9dcb,subUnitId:_0x18fa50,pivotTableId:_0x23972a}=_0x1ac5bd;_0x5e9dcb&&_0x18fa50&&_0x23972a&&this[_0x255584(0x290)]([{'unitId':_0x5e9dcb,'subUnitId':_0x18fa50,'token':_0x23972a}]);});}['triggerDirtyFeature'](_0x182ad4){const _0x3fe87f=_0x182aea,_0x235397={};_0x182ad4[_0x3fe87f(0x1f1)](_0x3b7a6a=>{var _0x38ba44,_0x32b23a;const {unitId:_0x251db0,subUnitId:_0xf78101,token:_0x1b9cac}=_0x3b7a6a;_0x235397[_0x251db0]=(_0x38ba44=_0x235397[_0x251db0])!=null?_0x38ba44:{},_0x235397[_0x251db0][_0xf78101]=(_0x32b23a=_0x235397[_0x251db0][_0xf78101])!=null?_0x32b23a:{},_0x235397[_0x251db0][_0xf78101][_0x1b9cac]=!0x0;}),this[_0x3fe87f(0x367)][_0x3fe87f(0x119)](_0x4bf581['id'],_0x235397);}[_0x182aea(0x24f)](_0x63b0ca,_0x41ae17,_0x14053c){const _0x5a9c83=_0x182aea;this['_featureCalculationManagerService'][_0x5a9c83(0x2a3)](_0x63b0ca,_0x41ae17,[_0x14053c]);}[_0x182aea(0x20e)](_0x2402f2,_0x1a74ce,_0x517690){const _0x3c3abb=_0x182aea,{unitId:_0x2ded41,subUnitId:_0x719baf}=_0x1a74ce;this[_0x3c3abb(0x132)]['has'](_0x517690[_0x3c3abb(0xfd)],_0x517690[_0x3c3abb(0x36f)],_0x2402f2)&&this[_0x3c3abb(0x24f)](_0x2ded41,_0x719baf,_0x2402f2);const _0x281de6={'sheetId':_0x719baf,..._0x1a74ce};this[_0x3c3abb(0x132)][_0x3c3abb(0x10f)](_0x517690[_0x3c3abb(0xfd)],_0x517690[_0x3c3abb(0x36f)],_0x2402f2,{'unitId':_0x517690['unitId'],'subUnitId':_0x517690[_0x3c3abb(0x36f)],'dependencyRanges':[_0x281de6],'getDirtyData':(_0x461e55,_0x284469)=>{const _0x3532f5=_0x3c3abb,_0x4503c1=this[_0x3532f5(0x2ec)],_0xcd3702=_0x4503c1['getTargetByPivotId'](_0x2402f2);if(!_0xcd3702)return _0x237f47();const {unitId:_0x515e41,subUnitId:_0x113a82}=_0xcd3702,_0x3fce57=_0x196a02(_0x461e55,_0x284469,_0x1a74ce);if(_0x3fce57[_0x3532f5(0x2c9)]>0x0){const _0x925075=_0x4503c1[_0x3532f5(0x123)](_0x2ded41,_0x2402f2),_0x490f38=_0x925075['getFieldIds'](),_0x3e78d7=this[_0x3532f5(0x2c7)](_0x1a74ce[_0x3532f5(0xfd)],_0x1a74ce[_0x3532f5(0x36f)],_0x284469),_0xcd168d={},_0x2eea8c=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x515e41)[_0x3532f5(0x108)]()||_0x57400a[_0x3532f5(0x2c1)];for(const _0x536907 of _0x3fce57){const _0x2b4333=_0x536907-(_0x1a74ce[_0x3532f5(0xcb)][_0x3532f5(0x34d)]||0x0),_0x406399=_0x490f38[_0x2b4333];_0xcd168d[_0x406399]=_0x925075[_0x3532f5(0x324)](_0x406399)[_0x3532f5(0x23a)](),_0x4503c1['getDataFieldManager'](_0x2ded41)[_0x3532f5(0x35d)](_0x406399,_0x1a74ce,_0x2b4333,_0x3e78d7);}_0x925075['updateAllDisplayName']();const _0x2cd964=_0x4503c1['getPivotTableInstance'](_0x2402f2);if(_0x2cd964){_0x2cd17e(_0x2cd964,_0xcd168d,_0x2eea8c),_0x2cd964['setDirty'](!0x0);const _0x1ffe2b=_0x2cd964[_0x3532f5(0x1bd)](),_0x46f37b=_0x4503c1[_0x3532f5(0x325)](_0x515e41,_0x113a82,_0x2402f2),_0x3736da=_0x4503c1['getDataFieldManager'](_0x2ded41)[_0x3532f5(0x24c)]();_0x4503c1[_0x3532f5(0x139)](_0x515e41,_0x113a82,_0x4d6445['Set'],_0x2402f2,_0x1ffe2b,_0x46f37b,_0x3736da,!0x0);}}return this[_0x3532f5(0xdc)](_0x515e41,_0x113a82,_0x2402f2);}});}['getMatrixFromRunTimeData'](_0x3a5ade,_0x4f995b,_0x4352ed){var _0xcc9849,_0xcdef4d;const {arrayFormulaCellData:_0xf5abd,unitData:_0x5e492e}=_0x4352ed,_0x4aedbd=(_0xcc9849=_0xf5abd==null?void 0x0:_0xf5abd[_0x3a5ade])==null?void 0x0:_0xcc9849[_0x4f995b],_0x113676=(_0xcdef4d=_0x5e492e==null?void 0x0:_0x5e492e[_0x3a5ade])==null?void 0x0:_0xcdef4d[_0x4f995b];return{'arrayFormulaCellDataMatrix':_0x4aedbd,'unitDataMatrix':_0x113676};}[_0x182aea(0xdc)](_0x27a49c,_0x69053a,_0xaa035f){const _0x4db065=_0x182aea,_0x51864b=this['_sheetsPivotDataSourceModel'][_0x4db065(0x294)](_0x27a49c,_0x69053a,_0xaa035f),_0x1cfcb5=[],_0x4956e8=new _0x5e852f[(_0x4db065(0x2da))]();if(_0x51864b){const {rangeCache:_0x2123c3,matrix:_0x5c0b1f,oldRangeCache:_0x54e716,oldMatrix:_0x5261ca}=_0x51864b,_0x1fa7d1=_0x5cae0c(_0x54e716),_0x25e7e7=_0x5cae0c(_0x2123c3);_0x1cfcb5['push'](..._0x25e7e7,..._0x1fa7d1),_0x5261ca&&_0x54e716&&_0x1fa7d1['forEach'](_0x36defa=>{const _0x44623a=_0x4db065;for(let _0x446ee8=_0x36defa['startRow'];_0x446ee8<=_0x36defa[_0x44623a(0x26e)];_0x446ee8++)for(let _0x81370f=_0x36defa[_0x44623a(0x34d)];_0x81370f<=_0x36defa[_0x44623a(0x154)];_0x81370f++)_0x4956e8['realDeleteValue'](_0x446ee8,_0x81370f);}),_0x5c0b1f&&_0x25e7e7&&_0x25e7e7['forEach'](_0x2e808f=>{const _0x1d3cba=_0x4db065;for(let _0x31a1cf=_0x2e808f[_0x1d3cba(0x2a6)];_0x31a1cf<=_0x2e808f['endRow'];_0x31a1cf++)for(let _0x47e399=_0x2e808f[_0x1d3cba(0x34d)];_0x47e399<=_0x2e808f[_0x1d3cba(0x154)];_0x47e399++)_0x4956e8[_0x1d3cba(0x11a)](_0x31a1cf,_0x47e399,_0x5c0b1f['getValue'](_0x31a1cf,_0x47e399));});}const _0x20f0a6={};return _0x20f0a6[_0x27a49c]={[_0x69053a]:_0xb60a6b(_0x1cfcb5)},{'runtimeCellData':{[_0x27a49c]:{[_0x69053a]:_0x4956e8}},'dirtyRanges':_0x20f0a6};}[_0x182aea(0x1f5)](){}};_0x5270f3=_0x32f725([_0x1ba1a8(0x0,_0x5e852f['Inject'](_0x263ce9[_0x182aea(0x19f)])),_0x1ba1a8(0x1,_0x5e852f[_0x182aea(0x1c1)]),_0x1ba1a8(0x2,_0x5e852f[_0x182aea(0x308)](_0x4f0edc['IFeatureCalculationManagerService'])),_0x1ba1a8(0x3,_0x5e852f[_0x182aea(0x308)](_0x5e852f['ICommandService'])),_0x1ba1a8(0x4,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x26d)]))],_0x5270f3);var _0x18ea57=Object[_0x182aea(0xe8)],_0x240531=Object['getOwnPropertyDescriptor'],_0x2d5597=(_0x2ccd2c,_0x12fa93,_0x2bc4ec,_0xcef806)=>{const _0x299016=_0x182aea;for(var _0x4ce53c=_0xcef806>0x1?void 0x0:_0xcef806?_0x240531(_0x12fa93,_0x2bc4ec):_0x12fa93,_0x59560d=_0x2ccd2c[_0x299016(0x2c9)]-0x1,_0x277a40;_0x59560d>=0x0;_0x59560d--)(_0x277a40=_0x2ccd2c[_0x59560d])&&(_0x4ce53c=(_0xcef806?_0x277a40(_0x12fa93,_0x2bc4ec,_0x4ce53c):_0x277a40(_0x4ce53c))||_0x4ce53c);return _0xcef806&&_0x4ce53c&&_0x18ea57(_0x12fa93,_0x2bc4ec,_0x4ce53c),_0x4ce53c;},_0x53212b=(_0xfcd757,_0x3f59a5)=>(_0x21bcbb,_0x545e9c)=>_0x3f59a5(_0x21bcbb,_0x545e9c,_0xfcd757);let _0x588813=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0x2dc529,_0xfa9ddf,_0x1f91b3,_0x1e7bcb){const _0x3c56cc=_0x182aea;super(),_0x53fb96(this,_0x3c56cc(0x259),new _0x5e852f[(_0x3c56cc(0x315))]()),(this['_univerInstanceService']=_0x2dc529,this[_0x3c56cc(0x163)]=_0xfa9ddf,this[_0x3c56cc(0x229)]=_0x1f91b3,this[_0x3c56cc(0x266)]=_0x1e7bcb,this[_0x3c56cc(0x1d9)]());}[_0x182aea(0x1d9)](){this['disposeWithMe'](this['_sheetInterceptorService']['interceptCommand']({'getMutations':_0x5c5719=>{const _0x3a6ef4=_0x58b3;if(_0x5c5719['id']===_0x114012[_0x3a6ef4(0x19e)]['id']||_0x5c5719['id']===_0x114012[_0x3a6ef4(0x339)]['id']){const _0x414a8b=[],_0x191c96=[],_0x1213a8=this[_0x3a6ef4(0x229)]['getCurrentSelections']()['map'](_0x2ac8a7=>_0x2ac8a7['range']),_0x1782fc=_0x114012['getSheetCommandTarget'](this['_univerInstanceService']);if(!_0x1782fc)return{'redos':[],'undos':[]};const {unitId:_0x165179,subUnitId:_0x11fd30}=_0x1782fc,_0xce5311={},_0x5ec502=this['_sheetsPivotTableConfigModel'][_0x3a6ef4(0x37a)](_0x165179,_0x11fd30);if(_0x5ec502!=null&&_0x5ec502['size'])for(const [_0x42ec00,_0x412f50]of _0x5ec502){const {unitId:_0x3fc39a,subUnitId:_0x1beceb,row:_0x383ae9,col:_0x1d6ea7}=_0x412f50[_0x3a6ef4(0x106)];_0x3fc39a===_0x1782fc[_0x3a6ef4(0xfd)]&&_0x1beceb===_0x1782fc[_0x3a6ef4(0x36f)]&&(_0xce5311[_0x383ae9+'-'+_0x1d6ea7]=_0x42ec00);}return _0x1213a8&&_0x1782fc&&_0x1213a8[_0x3a6ef4(0x1f1)](_0x4e7ea9=>{const _0x3988aa=_0x3a6ef4;_0x5e852f[_0x3988aa(0x303)]['foreach'](_0x4e7ea9,(_0xb24ab6,_0x14a18b)=>{const _0x17518c=_0x3988aa,_0x106d37=_0xb24ab6+'-'+_0x14a18b;if(_0xce5311[_0x106d37]){const _0x241bdd=_0xce5311[_0x106d37];_0x414a8b[_0x17518c(0x2d8)]({'id':_0x2320a4['id'],'params':{'unitId':_0x165179,'subUnitId':_0x11fd30,'pivotTableId':_0x241bdd}});const _0x2af97c=this[_0x17518c(0x266)]['getCollection'](_0x165179,_0x241bdd),_0x3ca213=this[_0x17518c(0x266)][_0x17518c(0x325)](_0x165179,_0x11fd30,_0x241bdd);_0x191c96[_0x17518c(0x2d8)]({'id':_0x25a8dd['id'],'params':{'unitId':_0x165179,'subUnitId':_0x11fd30,'pivotTableId':_0x241bdd,'pivotTableConfig':_0x3ca213,'collectionConfig':_0x2af97c}});}});}),{'redos':_0x414a8b,'undos':_0x191c96};}return{'redos':[],'undos':[]};}}));}};_0x588813=_0x2d5597([_0x53212b(0x0,_0x5e852f[_0x182aea(0x194)]),_0x53212b(0x1,_0x5e852f[_0x182aea(0x308)](_0x114012[_0x182aea(0x361)])),_0x53212b(0x2,_0x5e852f[_0x182aea(0x308)](_0x114012['SheetsSelectionsService'])),_0x53212b(0x3,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0xe7)]))],_0x588813);var _0x1c6aa2=Object[_0x182aea(0xe8)],_0x3770ff=Object[_0x182aea(0x2ea)],_0x477736=(_0x1dbf3c,_0x5c2d83,_0x4025b5,_0x53529f)=>{for(var _0x35d882=_0x53529f>0x1?void 0x0:_0x53529f?_0x3770ff(_0x5c2d83,_0x4025b5):_0x5c2d83,_0x57d1d3=_0x1dbf3c['length']-0x1,_0x168688;_0x57d1d3>=0x0;_0x57d1d3--)(_0x168688=_0x1dbf3c[_0x57d1d3])&&(_0x35d882=(_0x53529f?_0x168688(_0x5c2d83,_0x4025b5,_0x35d882):_0x168688(_0x35d882))||_0x35d882);return _0x53529f&&_0x35d882&&_0x1c6aa2(_0x5c2d83,_0x4025b5,_0x35d882),_0x35d882;},_0x2584af=(_0x19e2af,_0x479980)=>(_0x3eecfe,_0x28eebb)=>_0x479980(_0x3eecfe,_0x28eebb,_0x19e2af);let _0x437e80=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0x5080dc,_0x306aa6,_0x1659a1,_0xbe673a,_0x205a8e,_0x18e431){const _0x179e47=_0x182aea;super(),this[_0x179e47(0x1c3)]=_0x5080dc,this['_sheetInterceptorService']=_0x306aa6,this[_0x179e47(0x372)]=_0x1659a1,this['_univerInstanceService']=_0xbe673a,this['_sheetsPivotTableConfigModel']=_0x205a8e,this['_sheetsPivotTableService']=_0x18e431,this['_initCommandInterceptListener']();}['_getPivotAppliedRanges'](_0x1744ff,_0x501d5d,_0x5b92e5){const _0x28bf91=_0x182aea,{pageView:_0x32ce12,cornerView:_0x403cc8,rowView:_0x591760,colView:_0x3c9e79,dataView:_0x354283}=_0x501d5d,_0x3640e0=_0x1744ff;let _0x27c155;if(_0x5b92e5)_0x27c155=[..._0x57cd3b(_0x3640e0)];else{const _0x384a64=_0x59dbf1(_0x3640e0,_0x32ce12,!0x0),_0x424783=_0x32ce12[_0x28bf91(0x15d)]>=0x0?_0x32ce12[_0x28bf91(0x15d)]+0x1:0x0,_0xf17c52=_0x403cc8['rowCount'],_0x4e8cf1=_0x403cc8[_0x28bf91(0x14f)],_0x2e5d57=_0x384a64[_0x28bf91(0x2c9)]>0x0?_0x36909d:0x0,_0xe26513=_0x59dbf1({'row':_0x3640e0['row']+_0x424783+_0x2e5d57,'col':_0x3640e0['col']},_0x403cc8,!0x1,!0x1),_0x84cea4=_0x59dbf1({'row':_0x3640e0[_0x28bf91(0x2d3)]+_0x424783+_0x2e5d57+_0xf17c52,'col':_0x3640e0[_0x28bf91(0x103)]},_0x591760,!0x1,!0x0),_0x420309=_0x59dbf1({'row':_0x3640e0[_0x28bf91(0x2d3)]+_0x424783+_0x2e5d57,'col':_0x3640e0[_0x28bf91(0x103)]+_0x4e8cf1},_0x3c9e79,!0x1,!0x0),_0x5ef443=_0x59dbf1({'row':_0x3640e0[_0x28bf91(0x2d3)]+_0x424783+_0x2e5d57+_0xf17c52,'col':_0x3640e0[_0x28bf91(0x103)]+_0x4e8cf1},_0x354283,!0x1,!0x0);_0x27c155=[..._0x384a64,..._0xe26513,..._0x84cea4,..._0x420309,..._0x5ef443];}return _0x27c155;}[_0x182aea(0x23e)](){const _0x43c4d8=_0x182aea;this[_0x43c4d8(0x165)](this[_0x43c4d8(0x27b)]['interceptor'][_0x43c4d8(0x19b)](this[_0x43c4d8(0x27b)][_0x43c4d8(0x319)][_0x43c4d8(0x278)]()[_0x43c4d8(0x1e2)],{'handler':(_0x15ef5c,_0x2438f1)=>{const _0x47acd8=_0x43c4d8,{cellInfo:_0x2a0e25,view:_0x402fca,isEmpty:_0x2e0be6}=_0x2438f1,_0x4444b2=_0x2a0e25,{unitId:_0x337c24,subUnitId:_0x18cda9}=_0x4444b2,_0x5d6bb0=this[_0x47acd8(0x198)](_0x2a0e25,_0x402fca,_0x2e0be6),_0xe5aa1b=this[_0x47acd8(0x163)][_0x47acd8(0x288)]({'unitId':_0x337c24,'subUnitId':_0x18cda9,'ranges':_0x5d6bb0}),_0x5b1079=_0xca5d5d(this['_injector'],_0x337c24,_0x18cda9,_0x5d6bb0);_0x5b1079[_0x47acd8(0x204)]&&(_0xe5aa1b[_0x47acd8(0x203)][_0x47acd8(0x2d8)](_0x5b1079['setRangeValueRedoMutation']),_0xe5aa1b[_0x47acd8(0x2d5)][_0x47acd8(0x2d8)](_0x5b1079[_0x47acd8(0xf3)]));const _0x399c24=this[_0x47acd8(0x2aa)](_0x402fca,_0x2a0e25);return _0xe5aa1b[_0x47acd8(0x203)]['push'](..._0x399c24[_0x47acd8(0x203)]),_0xe5aa1b['undos'][_0x47acd8(0x2d8)](..._0x399c24['undos']),{'redos':_0xe5aa1b[_0x47acd8(0x203)],'undos':_0xe5aa1b[_0x47acd8(0x2d5)]};}}));}[_0x182aea(0x2aa)](_0x26fd2d,_0x5d7805){const _0x316861=_0x182aea,{col:_0x30dcda,unitId:_0x597d24,subUnitId:_0x5cdc53}=_0x5d7805,_0x445783=[],_0x433d70=[],_0xc4a70a=_0x114012[_0x316861(0xd5)](this[_0x316861(0x1a0)],{'unitId':_0x597d24,'subUnitId':_0x5cdc53});if(!_0x5d7805||!_0x26fd2d||!_0xc4a70a)return{'undos':_0x433d70,'redos':_0x445783};const _0x886786=this[_0x316861(0x266)]['getTextInfo'](),{colView:_0x3384f7,dataView:_0x56f031,cornerView:_0x53f88c,rowView:_0x5e1cf3,formatMap:_0x884a5d}=_0x26fd2d,_0x207414=_0x38b624(_0x3384f7,_0x886786,!0x0,_0x884a5d),_0x5ab424=_0x38b624(_0x5e1cf3,_0x886786,!0x1,_0x884a5d),_0x2df0d4=_0x3acd98(_0x56f031),_0x426016=_0x1da78e(_0x53f88c),{worksheet:_0x48c721}=_0xc4a70a;if(typeof window<'u'&&window[_0x316861(0x253)]){const _0x19c70b=_0x377545[_0x316861(0x34e)]({..._0x4c691c[_0x316861(0x25a)]}),_0xe6c123=_0x377545[_0x316861(0x335)][_0x316861(0x32b)](_0x207414,_0x19c70b)[_0x316861(0x1d5)]+0x10,_0x4d7ebc=_0x377545[_0x316861(0x335)]['getTextSize'](_0x2df0d4,_0x19c70b)['width'],_0x658185=Math[_0x316861(0x345)](Math[_0x316861(0x2f4)](_0xe6c123,_0x4d7ebc))+0x10,_0x149059=Math[_0x316861(0x345)](_0x377545[_0x316861(0x335)]['getTextSize'](_0x5ab424,_0x19c70b)[_0x316861(0x1d5)]),_0x64ab7=Math[_0x316861(0x345)](_0x377545['FontCache'][_0x316861(0x32b)](_0x426016,_0x19c70b)[_0x316861(0x1d5)]),_0x5c325b=Math[_0x316861(0x2f4)](_0x149059,_0x64ab7,0x28)+0xc,_0x22ec78=_0x3384f7[_0x316861(0x14f)]+_0x53f88c[_0x316861(0x14f)],_0x335cd0={},_0x5e8e7a={};for(let _0x1ec214=_0x30dcda;_0x1ec214<_0x30dcda+_0x22ec78;_0x1ec214++){const _0x4e83e1=_0x48c721['getColumnWidth'](_0x1ec214);_0x335cd0[_0x1ec214]=_0x4e83e1,_0x1ec214-_0x30dcda<_0x53f88c[_0x316861(0x14f)]?_0x5e8e7a[_0x1ec214-_0x30dcda]=_0x5c325b:_0x5e8e7a[_0x1ec214-_0x30dcda]=_0x658185;}_0x445783[_0x316861(0x2d8)]({'id':_0x114012[_0x316861(0x25f)]['id'],'params':{'subUnitId':_0x5cdc53,'unitId':_0x597d24,'ranges':[{'startColumn':_0x30dcda,'endColumn':_0x30dcda+_0x22ec78-0x1,'startRow':0x0,'endRow':_0x48c721[_0x316861(0x18a)]()-0x1}],'colWidth':_0x5e8e7a}}),_0x433d70[_0x316861(0x2d8)]({'id':_0x114012[_0x316861(0x25f)]['id'],'params':{'subUnitId':_0x5cdc53,'unitId':_0x597d24,'ranges':[{'startColumn':_0x30dcda,'endColumn':_0x30dcda+_0x22ec78-0x1,'startRow':0x0,'endRow':_0x48c721['getRowCount']()-0x1}],'colWidth':_0x335cd0}});}return{'undos':_0x433d70,'redos':_0x445783};}};_0x437e80=_0x477736([_0x2584af(0x0,_0x5e852f[_0x182aea(0x308)](_0x5e852f['LocaleService'])),_0x2584af(0x1,_0x5e852f[_0x182aea(0x308)](_0x114012[_0x182aea(0x361)])),_0x2584af(0x2,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x26d)])),_0x2584af(0x3,_0x5e852f['Inject'](_0x5e852f[_0x182aea(0x194)])),_0x2584af(0x4,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0xe7)])),_0x2584af(0x5,_0x5e852f[_0x182aea(0x308)](_0x263ce9['SheetsPivotTableService']))],_0x437e80);var _0x371ffa=Object[_0x182aea(0xe8)],_0x1fae91=Object[_0x182aea(0x2ea)],_0xa62fa0=(_0x42f043,_0x37fcd4,_0x278746,_0x197ec9)=>{const _0x18c1a8=_0x182aea;for(var _0x15878c=_0x197ec9>0x1?void 0x0:_0x197ec9?_0x1fae91(_0x37fcd4,_0x278746):_0x37fcd4,_0x1efe1c=_0x42f043[_0x18c1a8(0x2c9)]-0x1,_0x1fbd9c;_0x1efe1c>=0x0;_0x1efe1c--)(_0x1fbd9c=_0x42f043[_0x1efe1c])&&(_0x15878c=(_0x197ec9?_0x1fbd9c(_0x37fcd4,_0x278746,_0x15878c):_0x1fbd9c(_0x15878c))||_0x15878c);return _0x197ec9&&_0x15878c&&_0x371ffa(_0x37fcd4,_0x278746,_0x15878c),_0x15878c;},_0x179327=(_0x5dce16,_0x1593d9)=>(_0x5e5990,_0x5ce5f9)=>_0x1593d9(_0x5e5990,_0x5ce5f9,_0x5dce16);let _0x4940ed=class extends _0x5e852f['Disposable']{constructor(_0x31e785,_0x29e373,_0x131090,_0x26d583,_0xfb4647,_0x4aa2c6,_0x34ce29){const _0x538d08=_0x182aea;super(),_0x53fb96(this,_0x538d08(0x259),new _0x5e852f[(_0x538d08(0x315))]()),(this['_injector']=_0x31e785,this[_0x538d08(0x36a)]=_0x29e373,this[_0x538d08(0x367)]=_0x131090,this['_univerInstanceService']=_0x26d583,this[_0x538d08(0x266)]=_0xfb4647,this[_0x538d08(0x2f8)]=_0x4aa2c6,this[_0x538d08(0x163)]=_0x34ce29,this[_0x538d08(0x210)]());}['_onRefRangeChange'](){const _0x210db2=_0x182aea,_0x1ba460=(_0xabbd84,_0xa615b6)=>{const _0x4cc26b=_0x58b3,_0x33767d=this['_univerInstanceService']['getCurrentUnitForType'](_0x5e852f[_0x4cc26b(0x31e)][_0x4cc26b(0x1ad)]);if(!_0x33767d||!(_0x33767d==null?void 0x0:_0x33767d['getSheetBySheetId'](_0xa615b6)))return;this['disposableCollection'][_0x4cc26b(0x1f5)]();const _0x5e4505=_0x12479c=>this[_0x4cc26b(0x219)](_0x12479c,_0xabbd84,_0xa615b6),_0x3946d8=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0xabbd84,_0xa615b6);if(!(_0x3946d8!=null&&_0x3946d8[_0x4cc26b(0x241)]))return;Array[_0x4cc26b(0x1de)](_0x3946d8['values']())['map'](_0x1f55da=>{const _0x15555a=_0x4cc26b,{row:_0x2975a3,col:_0x2c0dac}=_0x1f55da['targetCellInfo'];return _0x5e852f[_0x15555a(0x31a)](_0x2975a3,_0x2c0dac);})[_0x4cc26b(0x1f1)](_0x3b4ca4=>{const _0x4cd00f=_0x4cc26b;this[_0x4cd00f(0x259)][_0x4cd00f(0x33b)](this[_0x4cd00f(0x36a)]['registerRefRange'](_0x3b4ca4,_0x5e4505,_0xabbd84,_0xa615b6));});},_0x38099f=()=>{const _0x510c00=_0x58b3,_0x25bf18=this[_0x510c00(0x1a0)]['getCurrentUnitForType'](_0x5e852f[_0x510c00(0x31e)][_0x510c00(0x1ad)]);if(_0x25bf18){const _0x385b55=_0x25bf18[_0x510c00(0x286)]();if(!_0x385b55)return;_0x1ba460(_0x25bf18[_0x510c00(0x1a4)](),_0x385b55['getSheetId']());}};this[_0x210db2(0x165)](this[_0x210db2(0x367)][_0x210db2(0x174)](_0x2e8a9f=>{const _0x2ca1ad=_0x210db2;if(_0x2e8a9f['id']===_0x114012[_0x2ca1ad(0x14a)]['id']){const _0x2ec55a=_0x2e8a9f[_0x2ca1ad(0x156)],_0x458f20=_0x2ec55a['subUnitId'],_0x4f383e=_0x2ec55a['unitId'];if(!_0x458f20||!_0x4f383e)return;_0x1ba460(_0x4f383e,_0x458f20);}})),this['disposeWithMe'](this[_0x210db2(0x266)]['pivotInitCompleted$']['subscribe'](_0x234b96=>{_0x234b96&&_0x38099f();})),this[_0x210db2(0x165)](this['_sheetsPivotTableConfigModel'][_0x210db2(0x29b)]['subscribe'](_0x3bb509=>{const _0xe82c92=_0x210db2,_0x2c40d8=_0x114012[_0xe82c92(0xd5)](this['_univerInstanceService']);if(!_0x2c40d8)return;const {unitId:_0x50da11,subUnitId:_0x251b84}=_0x2c40d8,{unitId:_0xa791fb,subUnitId:_0x373325}=_0x3bb509;_0x50da11!==_0xa791fb||_0x251b84!==_0x373325||_0x1ba460(_0x50da11,_0x251b84);})),_0x38099f();}[_0x182aea(0x219)](_0x45ae07,_0x1055e6,_0x2767d4){const _0x170bb5=_0x182aea;switch(_0x45ae07['id']){case _0x114012[_0x170bb5(0x276)]['id']:return this[_0x170bb5(0x2c5)](_0x45ae07['params'],_0x1055e6,_0x2767d4);}return{'redos':[],'undos':[]};}[_0x182aea(0x2c5)](_0x310830,_0x598f11,_0x1cd3fd){const _0x3d3f3e=_0x182aea,{fromRange:_0x3fb028,toRange:_0x16b955}=_0x310830,_0x1253a4=[],_0x4d4687=[],_0x1ea4ca=_0x114012[_0x3d3f3e(0xd5)](this[_0x3d3f3e(0x1a0)]);if(!_0x1ea4ca)return{'undos':_0x4d4687,'redos':_0x1253a4};if(_0x598f11!==_0x1ea4ca['unitId']||_0x1cd3fd!==_0x1ea4ca['subUnitId'])return{'undos':_0x4d4687,'redos':_0x1253a4};const _0x471950=this[_0x3d3f3e(0x266)][_0x3d3f3e(0x37a)](_0x598f11,_0x1cd3fd);if(_0x471950!=null&&_0x471950[_0x3d3f3e(0x241)])for(const [_0x112448,_0x3e24ec]of _0x471950){const {unitId:_0x1b5890,subUnitId:_0x17e09e,row:_0x1b4959,col:_0x5c2a0e}=_0x3e24ec[_0x3d3f3e(0x106)];if(_0x1b5890===_0x1ea4ca['unitId']&&_0x17e09e===_0x1ea4ca[_0x3d3f3e(0x36f)]){const _0x555203=_0x5e852f[_0x3d3f3e(0x31a)](_0x1b4959,_0x5c2a0e);if(_0x5e852f[_0x3d3f3e(0x2a4)][_0x3d3f3e(0x30e)](_0x555203,_0x3fb028)){const _0x107cda=_0x1b4959-_0x3fb028['startRow'],_0x44340c=_0x5c2a0e-_0x3fb028[_0x3d3f3e(0x34d)],_0x2004f2={'row':_0x16b955[_0x3d3f3e(0x2a6)]+_0x107cda,'col':_0x16b955[_0x3d3f3e(0x34d)]+_0x44340c};_0x1253a4[_0x3d3f3e(0x2d8)]({'id':_0x2211c3['id'],'params':{'unitId':_0x1b5890,'subUnitId':_0x17e09e,'pivotTableId':_0x112448,'targetCellPosition':_0x2004f2}}),_0x4d4687['push']({'id':_0x2211c3['id'],'params':{'unitId':_0x1b5890,'subUnitId':_0x17e09e,'pivotTableId':_0x112448,'targetCellPosition':{'row':_0x1b4959,'col':_0x5c2a0e}}});const _0x534b72=_0x2004f2[_0x3d3f3e(0x2d3)]-_0x1b4959,_0x5c053e=_0x2004f2[_0x3d3f3e(0x103)]-_0x5c2a0e,_0x493d1b=[],_0xadbdd4=this[_0x3d3f3e(0x2f8)][_0x3d3f3e(0x26a)](_0x1b5890,_0x17e09e,_0x112448),_0x2a2c11=_0xadbdd4==null?void 0x0:_0xadbdd4[_0x3d3f3e(0x185)];if(_0x2a2c11){Object[_0x3d3f3e(0x2ce)](_0x2a2c11)[_0x3d3f3e(0x1f1)](_0x1eb8cb=>{const _0xecd1f7=_0x3d3f3e;_0x2a2c11[_0x1eb8cb][_0xecd1f7(0x1f1)](_0x431653=>{const _0x514262=_0xecd1f7,_0x1deb9b={..._0x431653};_0x1deb9b[_0x514262(0x2a6)]=_0x431653['startRow']+_0x534b72,_0x1deb9b[_0x514262(0x26e)]=_0x431653[_0x514262(0x26e)]+_0x534b72,_0x1deb9b[_0x514262(0x34d)]=_0x431653[_0x514262(0x34d)]+_0x5c053e,_0x1deb9b[_0x514262(0x154)]=_0x431653['endColumn']+_0x5c053e,_0x493d1b['push'](_0x1deb9b);});});const _0x5b6df6=this[_0x3d3f3e(0x163)][_0x3d3f3e(0x288)]({'unitId':_0x1b5890,'subUnitId':_0x17e09e,'ranges':_0x493d1b});_0x1253a4[_0x3d3f3e(0x2d8)](..._0x5b6df6[_0x3d3f3e(0x203)]),_0x4d4687[_0x3d3f3e(0x2d8)](..._0x5b6df6[_0x3d3f3e(0x2d5)]);const _0x5b2b3c=_0xca5d5d(this[_0x3d3f3e(0x372)],_0x1b5890,_0x17e09e,_0x493d1b);_0x5b2b3c[_0x3d3f3e(0x204)]&&(_0x1253a4[_0x3d3f3e(0x2d8)](_0x5b2b3c['setRangeValueRedoMutation']),_0x4d4687[_0x3d3f3e(0x2d8)](_0x5b2b3c['setRangeValueUndoMutation']));}}}}return{'redos':_0x1253a4,'undos':_0x4d4687};}};_0x4940ed=_0xa62fa0([_0x179327(0x0,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x26d)])),_0x179327(0x1,_0x5e852f['Inject'](_0x114012[_0x182aea(0x358)])),_0x179327(0x2,_0x5e852f['ICommandService']),_0x179327(0x3,_0x5e852f[_0x182aea(0x194)]),_0x179327(0x4,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0xe7)])),_0x179327(0x5,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0x19c)])),_0x179327(0x6,_0x5e852f[_0x182aea(0x308)](_0x114012['SheetInterceptorService']))],_0x4940ed);var _0x1308d2=Object[_0x182aea(0xe8)],_0x55823d=Object[_0x182aea(0x2ea)],_0x393ef6=(_0x248c8a,_0x4a58a1,_0x10d978,_0x41687b)=>{const _0x4c719f=_0x182aea;for(var _0x34e2ae=_0x41687b>0x1?void 0x0:_0x41687b?_0x55823d(_0x4a58a1,_0x10d978):_0x4a58a1,_0x48c79b=_0x248c8a[_0x4c719f(0x2c9)]-0x1,_0x255f56;_0x48c79b>=0x0;_0x48c79b--)(_0x255f56=_0x248c8a[_0x48c79b])&&(_0x34e2ae=(_0x41687b?_0x255f56(_0x4a58a1,_0x10d978,_0x34e2ae):_0x255f56(_0x34e2ae))||_0x34e2ae);return _0x41687b&&_0x34e2ae&&_0x1308d2(_0x4a58a1,_0x10d978,_0x34e2ae),_0x34e2ae;},_0x213fea=(_0x2aa4b5,_0x2f3e06)=>(_0x27d52a,_0x4a1e79)=>_0x2f3e06(_0x27d52a,_0x4a1e79,_0x2aa4b5);let _0x44a85f=class extends _0x5e852f['Disposable']{constructor(_0x5bb633,_0x49149d){const _0x5c4240=_0x182aea;super(),this[_0x5c4240(0x163)]=_0x5bb633,this[_0x5c4240(0x266)]=_0x49149d,this[_0x5c4240(0x15e)]();}['_initRemoveSheetCommandInterceptor'](){const _0x45bd7c=_0x182aea;this[_0x45bd7c(0x165)](this[_0x45bd7c(0x163)][_0x45bd7c(0x33a)]({'getMutations':_0x32d9e5=>{const _0x33cff4=_0x45bd7c;if(_0x32d9e5['id']===_0x114012['RemoveSheetCommand']['id']){const _0x29fe19=[],_0x5662da=[],_0x2da472=_0x32d9e5[_0x33cff4(0x156)],{unitId:_0x3cef20,subUnitId:_0x4c88af}=_0x2da472;if(!_0x3cef20||!_0x4c88af)return{'undos':_0x5662da,'redos':_0x29fe19};const _0x21c054=this[_0x33cff4(0x266)][_0x33cff4(0x37a)](_0x3cef20,_0x4c88af);if(_0x21c054!=null&&_0x21c054['size'])for(const [_0x5ccdce,_0x359916]of _0x21c054){_0x29fe19[_0x33cff4(0x2d8)]({'id':_0x2320a4['id'],'params':{'unitId':_0x3cef20,'subUnitId':_0x4c88af,'pivotTableId':_0x5ccdce}});const _0x5db3d5={...this[_0x33cff4(0x266)][_0x33cff4(0x123)](_0x3cef20,_0x5ccdce)};_0x5662da[_0x33cff4(0x2d8)]({'id':_0x25a8dd['id'],'params':{'unitId':_0x3cef20,'subUnitId':_0x4c88af,'pivotTableId':_0x5ccdce,'pivotTableConfig':_0x359916,'collectionConfig':_0x5db3d5}});}return{'redos':_0x29fe19,'undos':_0x5662da};}return{'redos':[],'undos':[]};}}));}};_0x44a85f=_0x393ef6([_0x213fea(0x0,_0x5e852f[_0x182aea(0x308)](_0x114012[_0x182aea(0x361)])),_0x213fea(0x1,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0xe7)]))],_0x44a85f);var _0x1b7315=Object[_0x182aea(0xe8)],_0x44fac4=Object[_0x182aea(0x2ea)],_0x4d0d10=(_0x2849b5,_0x2bd3f7,_0x2fe4a1,_0x24b5e0)=>{const _0x45a156=_0x182aea;for(var _0x15cbfb=_0x24b5e0>0x1?void 0x0:_0x24b5e0?_0x44fac4(_0x2bd3f7,_0x2fe4a1):_0x2bd3f7,_0x4135fc=_0x2849b5[_0x45a156(0x2c9)]-0x1,_0x105b1f;_0x4135fc>=0x0;_0x4135fc--)(_0x105b1f=_0x2849b5[_0x4135fc])&&(_0x15cbfb=(_0x24b5e0?_0x105b1f(_0x2bd3f7,_0x2fe4a1,_0x15cbfb):_0x105b1f(_0x15cbfb))||_0x15cbfb);return _0x24b5e0&&_0x15cbfb&&_0x1b7315(_0x2bd3f7,_0x2fe4a1,_0x15cbfb),_0x15cbfb;},_0x33e36b=(_0x3f0d62,_0x35f9d9)=>(_0x19cf83,_0x294cc7)=>_0x35f9d9(_0x19cf83,_0x294cc7,_0x3f0d62);let _0x1c6819=class extends _0x5e852f[_0x182aea(0x214)]{constructor(_0x31f426,_0x320baf,_0xae89b3,_0x1b2cc0,_0x3f96fa,_0x4deb50){const _0x10dda6=_0x182aea;super(),this['_commandService']=_0x31f426,this['_sheetsPivotRpcService']=_0x320baf,this[_0x10dda6(0x2f8)]=_0xae89b3,this['_sheetsPivotTableConfigModel']=_0x1b2cc0,this[_0x10dda6(0x1a0)]=_0x3f96fa,this[_0x10dda6(0x223)]=_0x4deb50,this[_0x10dda6(0x384)](),this[_0x10dda6(0x2f2)]();}['_initDataSendListener'](){const _0x245977=_0x182aea;this['disposeWithMe'](this[_0x245977(0x367)]['onCommandExecuted'](_0x2e394f=>{const _0x3360c4=_0x245977;if(_0x2e394f['id']!==_0x446be6['id'])return;const _0xc2a8f0=_0x2e394f[_0x3360c4(0x156)];this[_0x3360c4(0x299)][_0x3360c4(0x1cc)](_0xc2a8f0);})),this[_0x245977(0x165)](this['_commandService'][_0x245977(0x174)](_0x1af0da=>{const _0x3a41bd=_0x245977;if(_0x1af0da['id']===_0x6853d5['id']){const _0x458a41=_0x1af0da[_0x3a41bd(0x156)];if(_0x458a41){const {unitId:_0x4070d6,subUnitId:_0x305d60,oldSubUnitId:_0x4675b,pivotTableId:_0x3d95ad,pivotTableConfig:_0x5ee3cb,collectionConfig:_0xa8850f}=_0x458a41;this['_sheetsPivotTableConfigModel'][_0x3a41bd(0x2e2)](_0x4070d6,_0x4675b,_0x458a41[_0x3a41bd(0x2fe)],null),this[_0x3a41bd(0x266)]['updateConfigCache'](_0x4070d6,_0x305d60,_0x3d95ad,_0x5ee3cb),this[_0x3a41bd(0x266)][_0x3a41bd(0x32d)](_0x4070d6,_0xa8850f);}}})),this[_0x245977(0x165)](this['_commandService']['onCommandExecuted'](_0x2bfe2c=>{const _0x707557=_0x245977;if(_0x2bfe2c['id']!==_0xe83f7f['id'])return;const _0x4ebe32=_0x114012[_0x707557(0xd5)](this['_univerInstanceService']);if(!_0x4ebe32)return;const {unitId:_0x4b641a,subUnitId:_0x348003}=_0x4ebe32,_0x2d189c=_0x2bfe2c['params'];if(_0x2d189c[_0x707557(0x272)]&&Object[_0x707557(0x2ce)](_0x2d189c[_0x707557(0x272)])[_0x707557(0x1f1)](_0x72399f=>{const _0x16630e=_0x707557;var _0x1704d5;(_0x1704d5=_0x2d189c[_0x16630e(0x272)])!=null&&_0x1704d5[_0x72399f]&&this[_0x16630e(0x266)]['updateCollectionConfig'](_0x72399f,_0x2d189c['collectionConfig'][_0x72399f]);}),_0x2d189c[_0x707557(0x17c)]){const _0x32a6e3=_0x2d189c[_0x707557(0x17c)],{unitId:_0x2df934,subUnitId:_0x2b86c4,view:_0x9e6a90,pivotTableId:_0xcbae83,type:_0x3e411c,pivotConfig:_0x164755}=_0x32a6e3;if(_0x3e411c===_0x4d6445[_0x707557(0xe4)])this[_0x707557(0x2f8)][_0x707557(0x13b)]({'unitId':_0x2df934,'subUnitId':_0x2b86c4,'pivotTableId':_0xcbae83,'type':_0x3e411c}),this[_0x707557(0x266)][_0x707557(0x2e2)](_0x2df934,_0x2b86c4,_0xcbae83,null);else{const _0x36ee72=new _0x57400a[(_0x707557(0x1c5))]();_0x36ee72[_0x707557(0x366)](_0x9e6a90),this[_0x707557(0x266)][_0x707557(0x2e2)](_0x2df934,_0x2b86c4,_0xcbae83,_0x164755),this[_0x707557(0x2f8)][_0x707557(0x13b)]({'unitId':_0x2df934,'subUnitId':_0x2b86c4,'pivotTableId':_0xcbae83,'type':_0x3e411c,'view':_0x36ee72}),this[_0x707557(0x2f8)][_0x707557(0x235)]({'unitId':_0x2df934,'subUnitId':_0x2b86c4,'view':_0x36ee72,'pivotTableId':_0xcbae83,'type':_0x3e411c});}}else _0x2d189c[_0x707557(0x284)]&&(_0x2d189c[_0x707557(0x284)][_0x707557(0x1f1)](_0x4ed1b8=>{const _0x36db27=_0x707557,{unitId:_0x346124,subUnitId:_0x3531,view:_0x1afc31,pivotTableId:_0x1e67d5,type:_0x3596b8,pivotConfig:_0x39f6e9}=_0x4ed1b8,_0x13237d=new _0x57400a[(_0x36db27(0x1c5))]();_0x13237d[_0x36db27(0x366)](_0x1afc31),this[_0x36db27(0x266)]['updateConfigCache'](_0x346124,_0x3531,_0x1e67d5,_0x39f6e9),this[_0x36db27(0x2f8)][_0x36db27(0x235)]({'unitId':_0x346124,'subUnitId':_0x3531,'view':_0x13237d,'pivotTableId':_0x1e67d5,'type':_0x3596b8});}),this[_0x707557(0x266)][_0x707557(0xf7)]());this[_0x707557(0x2f8)]['markDirty'](_0x4b641a,_0x348003);}));}[_0x182aea(0x2f2)](){const _0x56cc7a=_0x182aea;this[_0x56cc7a(0x223)][_0x56cc7a(0x10f)](_0x4bf581['id'],{'commandId':_0x4bf581['id'],'getDirtyData'(_0x33d30e){const _0xccc4a4=_0x56cc7a;return{'dirtyUnitFeatureMap':_0x33d30e[_0xccc4a4(0x156)]};}});}};_0x1c6819=_0x4d0d10([_0x33e36b(0x0,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x16d)])),_0x33e36b(0x1,_0x5e852f['Inject'](_0x263ce9[_0x182aea(0x275)])),_0x33e36b(0x2,_0x5e852f[_0x182aea(0x308)](_0x263ce9[_0x182aea(0x19c)])),_0x33e36b(0x3,_0x5e852f[_0x182aea(0x308)](_0x263ce9['SheetsPivotTableConfigModel'])),_0x33e36b(0x4,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x194)])),_0x33e36b(0x5,_0x4f0edc[_0x182aea(0xd8)])],_0x1c6819);var _0x3c34f8=Object[_0x182aea(0xe8)],_0x10da7d=Object[_0x182aea(0x2ea)],_0x468fe9=(_0x4294a3,_0x456db6,_0x347db6)=>_0x456db6 in _0x4294a3?_0x3c34f8(_0x4294a3,_0x456db6,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x347db6}):_0x4294a3[_0x456db6]=_0x347db6,_0x2afca1=(_0xaf59b2,_0x5a0583,_0x3bd59f,_0xce9479)=>{for(var _0x189dc0=_0xce9479>0x1?void 0x0:_0xce9479?_0x10da7d(_0x5a0583,_0x3bd59f):_0x5a0583,_0x2868fb=_0xaf59b2['length']-0x1,_0x4fb80a;_0x2868fb>=0x0;_0x2868fb--)(_0x4fb80a=_0xaf59b2[_0x2868fb])&&(_0x189dc0=(_0xce9479?_0x4fb80a(_0x5a0583,_0x3bd59f,_0x189dc0):_0x4fb80a(_0x189dc0))||_0x189dc0);return _0xce9479&&_0x189dc0&&_0x3c34f8(_0x5a0583,_0x3bd59f,_0x189dc0),_0x189dc0;},_0x39c174=(_0x44ac6a,_0x2da68f)=>(_0x2f6b77,_0x2868bf)=>_0x2da68f(_0x2f6b77,_0x2868bf,_0x44ac6a),_0x3d4aa0=(_0x67909a,_0x31f26b,_0x2e2334)=>_0x468fe9(_0x67909a,typeof _0x31f26b!='symbol'?_0x31f26b+'':_0x31f26b,_0x2e2334);_0x263ce9[_0x182aea(0x36e)]=class extends _0x5e852f[_0x182aea(0xdd)]{constructor(_0x34a46e=_0x4a20d4,_0x84c5be,_0x385eb5,_0x247763,_0x46c351){const _0x444599=_0x182aea;super(),this[_0x444599(0x2b5)]=_0x34a46e,this[_0x444599(0x372)]=_0x84c5be,this[_0x444599(0x367)]=_0x385eb5,this[_0x444599(0x35f)]=_0x247763,this['_dataSyncPrimaryController']=_0x46c351;const {..._0x37e867}=_0x5e852f['merge']({},_0x4a20d4,this[_0x444599(0x2b5)]);this[_0x444599(0x35f)][_0x444599(0x318)](_0x58a619,_0x37e867),this['_initRegisterCommand'](),this[_0x444599(0x283)]();}[_0x182aea(0x283)](){const _0x5152f1=_0x182aea;var _0x5b389a;const _0x416bde=(_0x5b389a=this['_config'])==null?void 0x0:_0x5b389a['notExecuteFormula'];this[_0x5152f1(0x35f)][_0x5152f1(0x318)](_0x543aca,_0x416bde===!0x0);}[_0x182aea(0x2e1)](){const _0x6dbf9d=_0x182aea;var _0x327cf2;let _0x5147eb=[];const _0xc123ef=(_0x327cf2=this['_config'])==null?void 0x0:_0x327cf2[_0x6dbf9d(0x169)];_0xc123ef===!0x0?_0x5147eb=[[_0x263ce9['SheetsPivotTableService']],[_0x263ce9[_0x6dbf9d(0x275)]],[_0x1c6819],[_0x263ce9[_0x6dbf9d(0x19c)]],[_0x263ce9[_0x6dbf9d(0xe7)]],[_0x44a85f],[_0x588813],[_0x4940ed],[_0x437e80]]:_0xc123ef===!0x1?_0x5147eb=[[_0x263ce9['SheetsPivotDataSourceModel']],[_0x5270f3]]:_0xc123ef===void 0x0&&(_0x5147eb=[[_0x263ce9['SheetsPivotDataSourceModel']],[_0x5270f3],[_0x263ce9[_0x6dbf9d(0x1ac)]],[_0x263ce9[_0x6dbf9d(0x275)]],[_0x1c6819],[_0x263ce9[_0x6dbf9d(0x19c)]],[_0x263ce9['SheetsPivotTableConfigModel']],[_0x44a85f],[_0x588813],[_0x4940ed],[_0x437e80]]),_0x5147eb[_0x6dbf9d(0x1f1)](_0x3e39e7=>this[_0x6dbf9d(0x372)][_0x6dbf9d(0x33b)](_0x3e39e7)),[_0x5270f3,_0x1c6819,_0x263ce9[_0x6dbf9d(0x1ac)],_0x588813,_0x44a85f,_0x4940ed,_0x437e80][_0x6dbf9d(0x1f1)](_0x4ed9eb=>{const _0xca6c03=_0x6dbf9d;this[_0xca6c03(0x372)]['has'](_0x4ed9eb)&&this['_injector'][_0xca6c03(0x13e)](_0x4ed9eb);});}['_initRegisterCommand'](){const _0xd27430=_0x182aea;[_0x405d75,_0x5f292f,_0x58df0b,_0xc83e96,_0x3ff687,_0x4e7ed5,_0x163851,_0x13299b,_0xaf0d0,_0x4cde89,_0x34c1fa,_0x234cab,_0x2d8bca,_0x25a8dd,_0x2320a4,_0x25aeea,_0x23659a,_0x28a3ab,_0x4a7d8b,_0x4b1215,_0x57c7ca,_0x4abe2b,_0x2211c3,_0x46d7ec,_0x446be6,_0xe83f7f,_0x57b681,_0x49cd61,_0x4ce8e4,_0x42c7b1,_0x13f2fe,_0x176159,_0x5d1eb5,_0x4bf581,_0x6853d5][_0xd27430(0x1f1)](_0x1a9d48=>{const _0x19c806=_0xd27430;var _0x351c54;(_0x351c54=this[_0x19c806(0x228)])==null||_0x351c54['registerSyncingMutations'](_0x1a9d48),this[_0x19c806(0x367)][_0x19c806(0x2e8)](_0x1a9d48);});}},_0x3d4aa0(_0x263ce9[_0x182aea(0x36e)],_0x182aea(0x292),_0x20b0ef),_0x3d4aa0(_0x263ce9[_0x182aea(0x36e)],_0x182aea(0x20b),_0x5e852f['UniverInstanceType']['UNIVER_SHEET']),_0x263ce9[_0x182aea(0x36e)]=_0x2afca1([_0x5e852f['DependentOn'](_0x4c185a[_0x182aea(0x380)]),_0x39c174(0x1,_0x5e852f['Inject'](_0x5e852f['Injector'])),_0x39c174(0x2,_0x5e852f[_0x182aea(0x308)](_0x5e852f[_0x182aea(0x16d)])),_0x39c174(0x3,_0x5e852f['IConfigService']),_0x39c174(0x4,_0x5e852f[_0x182aea(0xd9)](_0x332bf8[_0x182aea(0x158)]))],_0x263ce9[_0x182aea(0x36e)]),_0x263ce9[_0x182aea(0x297)]=_0x58df0b,_0x263ce9['AddPivotFieldMutation']=_0x25aeea,_0x263ce9[_0x182aea(0x287)]=_0x5f292f,_0x263ce9[_0x182aea(0x1d6)]=_0x25a8dd,_0x263ce9['AddPivotTableWithConfigCommand']=_0x405d75,_0x263ce9['BLANK_ROW_COUNT']=_0x36909d,_0x263ce9[_0x182aea(0x13f)]=_0x5654ca,_0x263ce9[_0x182aea(0x36c)]=_0xc83e96,_0x263ce9[_0x182aea(0x28c)]=_0x234cab,_0x263ce9[_0x182aea(0x181)]=_0x4b4d23,_0x263ce9['PivotDrillDownCommand']=_0x2d8bca,_0x263ce9[_0x182aea(0x317)]=_0x4d6445,_0x263ce9[_0x182aea(0x1fc)]=_0x4bf581,_0x263ce9['PositionType']=_0x3f6a00,_0x263ce9[_0x182aea(0x2e6)]=_0x3ff687,_0x263ce9[_0x182aea(0x16c)]=_0x28a3ab,_0x263ce9[_0x182aea(0x2fb)]=_0x2320a4,_0x263ce9[_0x182aea(0x1ae)]=_0x4a7d8b,_0x263ce9[_0x182aea(0x377)]=_0x58a619,_0x263ce9[_0x182aea(0xe6)]=_0x20b0ef,_0x263ce9[_0x182aea(0x2b6)]=_0x163851,_0x263ce9['SetPivotCollapseMutation']=_0x4b1215,_0x263ce9[_0x182aea(0x2b9)]=_0x42c7b1,_0x263ce9['SetPivotFilterCommand']=_0xaf0d0,_0x263ce9[_0x182aea(0x1d1)]=_0x23659a,_0x263ce9[_0x182aea(0x313)]=_0x4abe2b,_0x263ce9[_0x182aea(0x38a)]=_0x2211c3,_0x263ce9[_0x182aea(0x2c0)]=_0x13299b,_0x263ce9[_0x182aea(0x256)]=_0x57c7ca,_0x263ce9[_0x182aea(0x134)]=_0x4ce8e4,_0x263ce9[_0x182aea(0x2b8)]=_0x57b681,_0x263ce9['UpdatePivotFieldSettingCommand']=_0x4cde89,_0x263ce9[_0x182aea(0x22e)]=_0x5d1eb5,_0x263ce9['UpdatePivotTableSourceRangeCommand']=_0x34c1fa,_0x263ce9[_0x182aea(0x149)]=_0x176159,_0x263ce9[_0x182aea(0x301)]=_0x4e7ed5,_0x263ce9['UpdateValuePositionMutation']=_0x49cd61,_0x263ce9['applyChangeSet']=_0x293314,_0x263ce9[_0x182aea(0x25b)]=_0x42a595,_0x263ce9[_0x182aea(0x191)]=_0x4c691c,_0x263ce9[_0x182aea(0x37f)]=_0xca5d5d,_0x263ce9[_0x182aea(0x2a1)]=_0x59dbf1,_0x263ce9[_0x182aea(0x338)]=_0x57cd3b,_0x263ce9[_0x182aea(0x212)]=_0x3efc92,_0x263ce9['getInsertRowColMutations']=_0x14295f,_0x263ce9[_0x182aea(0x27c)]=_0x28b41a,_0x263ce9[_0x182aea(0x1d8)]=_0x301057,_0x263ce9['getPivotTableInfo']=_0x53c54d,_0x263ce9[_0x182aea(0x143)]=_0x250ad2,_0x263ce9[_0x182aea(0x38d)]=_0x5cae0c,Object[_0x182aea(0xe8)](_0x263ce9,Symbol[_0x182aea(0x31b)],{'value':_0x182aea(0x282)});}));
|
|
1
|
+
function _0x40c0(){const _0x3e51f0=['Div0','RenamePivotFieldMutation','floor','clearExclusiveRangesByGroupId','_collectionConfigModel','UNIVER_SHEET','removeDataField','_config','addPivotTable','getUpdateRangeDeleteIds','_subjectViewChange','_deletePivotTableInstanceCache','Average\x20of\x20','colStyle','SetSubtotalType','RemovePivotField','getLastCol','PivotCellStyleTypeEnum','_exclusiveRangeService','isText','updateAllDisplayName','dataFieldId','collapseInfo','RemoveColMutation','deepClone','_pivotTableInstanceCache','SetPivotOptionMutation','#e6ebfa','varp','_onRefRangeChange','setSubtotalType','UniverCore','RemoveField','updateValuePosition','fromJSON','getSheetId','IExclusiveRangeService','removeCollections','applyChangeSet','valid','isArray','RemoveSheetsFilterMutation','dataStyle','valuePosition','forValue','blank','#FFFFFF','headerMap','sheet.mutation.set-pivot-filter','PivotTableValuePositionEnum','COMMAND','collectionConfig','deleteDataField','single','sum','has','_viewUpdate$','(Blank)','cornerInfo','InterceptorManager','cellValue','cornerRanges','_refRangeService','subTotalStyle','substring','setPivotInitCompleted','isColMultiMeasure','_model','getSheetCommandTarget','pbt','SetPivotSortCommand','addDirtyPivotTable','PivotTableChangeTypeEnum','generateNullCell','AddPivotFieldMutation','Rectangle','format','sheets.tabs.sheet','rowInfo','setDataRecordCount','leafStyle','getUnitId','Plugin','getTargetByPivotId','getCellRaw','updatePivotTableMatrixInfo','_init','SetPivotSubtotalTypeMutation','IFeatureCalculationManagerService','NO_COMMERCIAL','getConfig','PivotDrillDownCommand','10nJlYrk','Expand','sheets-pivot.emptyPivot.filter','countNums','SHEET_PIVOT_EXCLUSIVE_ID','SetWorksheetActiveOperation','queryDirtyPivotTable','3JdWYDQ','dataFieldManagerConfig','52623xiwoNW','createCollectionWithDataRange','redos','getFilterInfo','_sheetsPivotDataSourceModel','delete','Range','sheet.mutation.pivot-update-field-position','getActiveSheet','addRecord','InsertColMutation','_pivotInitCompleted$','_ensureViewDataMap','getEmptyPivotRanges','SetPivotFilterCommand','NotNumber','SHEET_PIVOT_TABLE_PLUGIN','781166qaHBeB','startColumn','fetchThroughInterceptors','_pivotTableRangeInfo','serializeRangeWithSpreadsheet','CellValueType','@univerjs/rpc','info','getMatrixFromRunTimeData','SetPivotCollapseMutation','charCodeAt','stdDevp','updateRenderCache','displayName','Add','sheet.command.add-pivot-field','Grand\x20Total','getDataFieldItemInfo','sheets-pivot.blank','PivotTableViewDirtyMarkOperation','result','PivotDisplayDataType','_refRangeHandle','level','dispose','interceptCommand','endRow','AddPivotField','_generateUniqueVersion','IConfigService','MoveRangeMutation','getRangeStartEndInfo','sheet.mutation.get-pivot-data-local','updateViewData','_configVersion$','InsertSheetMutation','_univerInstanceService','pivotTableIndexConfig','sheets-pivot.grandTotal','Product\x20of\x20','rowRanges','_resourceManagerService','disposeWithMe','min','from','fetchThroughAsyncInterceptors','createAsyncInterceptorKey','hasField','getValueIndex','getDirtyInfo','unshiftString','sheet.command.set-pivot-collapse','limit\x20pivot','Max\x20of\x20','lastRow','matrix','setSortInfo','sheet.mutation.update-pivot-table-source-range','_textInfo','getRangeKey','contains','forEach','SetPivotFilter','call','panel','Row','setSourceName','paths','PivotSubtotalTypeEnum','Sum\x20of\x20','DataFieldManager','params','sheets-pivot.countName','sheet.mutation.pivot-update-value-position','SheetsSelectionsService','getColumnCount','updatePivotSource','name','batch','undos','AddPivotTableWithConfig','UpdatePivotTableSourceRangeMutation','PositionType','setValue','getFilterFieldIdByIndex','addFieldWithSourceId','numberToABC','_queryingMap','_dataSyncPrimaryController','dataRangeInfo','SetCollapse','rangeCache','ClearSelectionContentCommand','interceptor','sideEffectUpdateWorkerCache','PivotMultipleValueId','None','_fieldsCollectionChange$','SetPivotSort','rgb(240,241,243)','PivotView','@univerjs-pro/license','workbook\x20is\x20not\x20found','getAutoDisplayName','ErrorType','query','getLastRow','dataStream','#b2b2b2','uniqueDataFieldName','getStyles','AddField','error','ObjectMatrix','stdDev','update','ptn','getFieldFormat','_initSnapshot','UpdateSource','number','rowHeaderMap','getMatrixValue','getFieldById','custom','areaInfo','size','SheetsPivotTableConfigModel','merge','#e6ebfb','asyncInterceptor','DataField','isDateValue','_sheetsPivotTableConfigModel','_collectionChange$','getDataFieldId','getPivotDisplayConfig','_pivotRenderValueMatrixCache','InsertSheetCommand','AsyncInterceptorManager','Column\x20','UniverSheetsPivotTablePlugin','viewData$','pageStyle','RemoveSheetCommand','UniverEngineFormula','removeCollectionImp','getAutoFitColumnsMutations','count','BadReference','setRange','options','getMatrix','sheets-pivot.minName','FontCache','RefRangeService','unshift','filter','dataFieldsCollection','collectionChange$','symbol','New','SheetsPivotRPCService','UniverSheetsFilter','updateRangeKeyMap','updateDirtyPivotTable','addCollectionByJSON','collections','map','sheet.mutation.set-pivot-field-subtotal-type','PivotErrorTypeEnum','leftOffset','PivotTable','sheets-pivot.varName','STRING','DataSyncPrimaryController','registerDirtyService','DependentOn','Disposable','getPivotItemRenderInfoCache','SetOptions','_pivotRenderInfoCache','PivotTableFiledAreaEnum','isEmpty','pivotPerformCheck','refreshDataField','DrillDown','getFontStyleString','GrandTotal','updateView','_ensurePivotItemRenderInfoCache','_getPivotAppliedRanges','SetFilterInfo','getFieldDataType','addCollection','UniverSheets','markDirty','realDeleteValue','NUMBER','sourceName','_viewData','sheet.mutation.add-pivot-table','initDataRanges','getDataFieldByTableId','var','_initPivotTextInfo','sheets-pivot.config','addExclusiveRange','_subjectCollectionChange','tuple','textInfo','Module','Total','updateConfig','slice','SetPivotSortMutation','node','getFieldCountByArea','stringify','getPivotTableRangeInfo','getSheetFeatureLimit','col','SetRangeValuesMutation','endCollectChangeset','setConfig','splice','numfmt','LocaleService','getUnit','addField','getformat','sheet.command.move-pivot-table','startRow','formJSON','SheetsPivotTableAdaptorModel','IUniverInstanceService','_initCommandInterceptListener','_ensurePivotItemRenderValueMatrixCache','Column','setDirty','onCommandExecuted','pivotInitCompleted$','updateConfigCache','generateNewSheetName','getSubUnitPivotConfigs','width','FieldsCollection','getIntersects','addPivotField','SetPivotCollapse','_sheetInterceptorService','colCount','_pivotTableMatrixInfo','getSheetBySheetId','next','notExecuteFormula','updateDataFieldsCollection','iterateFieldByArea','Subject','sheet.command.set-pivot-field-setting','register','sheets-pivot.emptyPivot.values','iterateFieldDim','RemovePivotTableMutation','version','sheet.command.remove-pivot-field','new','grandTotal','getId','PivotFilterTypeEnum','getPivotTableInfo','setPivotCollapse','function','getHeaderMapItem','368xKwcMb','remove','existing','dimension','isErrorValue','push','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','_initPivotDataGetListener','tableFieldId','getPivotPerformCheck','collection','getTableFieldById','Min\x20of\x20','getPivotTableConfig','sheets-pivot.emptyPivot.column','LifecycleService','sheet.command.add-pivot-table','#f4f4f5','get','generateRandomId','SetPivotFieldFormatMutation','concat','getRangeData','sheet.command.move-pivot-field','getFormat','@univerjs/sheets-filter','sheets-pivot.subTotal','removeSourceRangeChange','SetWorksheetColWidthMutation','_subjectFieldsCollectionChange','sheet.mutation.send-pivot-view-local','getRangeKeyList','_initConfig','Style','Subtotal','adjustSheetCellData','pivotTableId','dataFields','clearRenderCache','getFieldIds','isValue','_initLocale','_deleteModelCache','Collapse','882702rqghQL','_localeService','return\x20','defineProperty','Var\x20of\x20','_injector','Panel','sheet.command.update-pivot-value-position','getPivotTableInstance','intersects','pivotTableConfigs','getRefRangeMutationsByMoveRange','sheet.mutation.add-pivot-field','sheets-pivot.value','_initDataSendListener','document','rowFields','iterateField','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','sheet.command.set-pivot-filter','Existing','SetSheetsFilterRangeMutation','_featureCalculationManagerService','handleMoveRange','sheets-pivot.emptyPivot.row','toStringTag','Values','targetCellInfo','UpdatePivotValuePositionCommand','getTextInfo','_requestResolvers','sheet.command.update-pivot-table-source-range','_sheetsPivotTableAdaptorModel','configVersion$','sheets-pivot.sumName','PIVOT_MUTATION_GENERATE','_sheetsPivotRpcService','UniverProSheetsPivot','data','MAX_SAFE_INTEGER','setFieldFormat','_dataFieldManagerCollection','UpdateValuePosition','Varp\x20of\x20','Inject','StdDevp\x20of\x20','fieldsConfig','_configService','getCollection','row','Delete','3989944uLqdGN','mO5RBkS5\x20poRxfFBkS5(GkRo5Qo,\x20FODGkRsof)\x20{\x20\x20\x20\x20Bxf\x20{\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20GkRo5QoT5mS2NxBMxxNf\x20=\x20GkRo5Qo.QFGkB(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20SxkLk5qoQQNLo\x20=\x20Ke84.FNxQo(NBSD(GkRo5QoT5mS2NxBMxxNf[g]));\x20\x20\x20\x20\x20\x20\x20\x20km\x20(!SxkLk5qoQQNLo.Op)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20SxkLk5qoQQNLo.Op\x20=\x204OJDox(GkRo5QoT5mS2NxBMxxNf[h]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20kQ1SxZox\x20=\x20BfFoSm\x201SxZoxbGSDNGeRSFo\x20!==\x20\x27O5pomk5op\x27\x20&&\x20QoGm\x20k5QBN5RoSm\x201SxZoxbGSDNGeRSFo;\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20RS5BouB\x20=\x20kQ1SxZox\x20?\x20QoGm\x20:\x20rk5pSr;\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20JoQQNLo1Sxp\x20=\x20RS5BouB.__ENQoPh__.FNxQo(GkRo5QoT5mS2NxBMxxNf[g]);\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20JoQQNLo\x20=\x20RS5BouB.__Hou__.QBxk5Lkmf(JoQQNLo1Sxp);\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20QkL5NBOxo1Sxp\x20=\x20RS5BouB.__ENQoPh__.FNxQo(GkRo5QoT5mS2NxBMxxNf[d]);\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20QkL5NBOxo\x20=\x20RS5BouB.__Hou__.QBxk5Lkmf(QkL5NBOxo1Sxp);\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20QkL56NGkp\x20=\x20RS5BouB.__loxkmf__(QkL5NBOxo,\x20JoQQNLo,\x20FODGkRsof);\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20pSJNk5\x20=\x20SxkLk5qoQQNLo.pJ;\x20\x20\x20\x20\x20\x20\x20\x20mO5RBkS5\x20kQVSJNk5qNBRak5L(S2NBBox5,\x20SHSQB)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20FNBBox5\x20=\x20S2NBBox5.xoFGNRo(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20aSQB\x20=\x20SHSQB.xoFGNRo(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20FNBBox52NxBQ\x20=\x20FNBBox5.QFGkB(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20aSQB2NxBQ\x20=\x20aSQB.QFGkB(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20km\x20(!FNBBox5.k5RGOpoQ(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20xoBOx5\x20FNBBox5\x20===\x20aSQB;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20km\x20(FNBBox52NxBQ.Go5LBa\x20<\x20g\x20||\x20FNBBox52NxBQ[i]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20xoBOx5\x20mNGQo;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20FNBBox5eOmmku\x20=\x20FNBBox52NxBQ.QGkRo(W).ISk5(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20aSQBeOmmku\x20=\x20aSQB2NxBQ.QGkRo(-FNBBox52NxBQ.Go5LBa\x20+\x20W).ISk5(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20xoBOx5\x20FNBBox5eOmmku\x20===\x20aSQBeOmmku;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20GoB\x20pSJNk56NGkp\x20=\x20(pSJNk5\x20&&\x20pSJNk5.Go5LBa)\x20?\x20pSJNk5.QSJo((pJTBoJ)\x20=>\x20kQVSJNk5qNBRak5L(pJTBoJ,\x20GSRNBkS5.aSQB5NJo))\x20:\x20BxOo;\x20\x20\x20\x20\x20\x20\x20\x20km\x20(GSRNBkS5.aSQB5NJo\x20===\x20\x27GSRNGaSQB\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pSJNk56NGkp\x20=\x20BxOo;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20RS5QB\x20lNGkp\x20=\x20QkL56NGkp\x20&&\x20pSJNk56NGkp;\x20\x20\x20\x20\x20\x20\x20\x20xoBOx5\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lNGkp,\x20JoQQNLo:\x20SxkLk5qoQQNLo,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20RNBRa\x20(oxxSx)\x20{\x20\x20\x20\x20\x20\x20\x20\x20xoBOx5\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20lNGkp:\x20mNGQo,\x20JoQQNLo:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','setFilterInfo','IActiveDirtyManagerService','unionPivotViewRange','UniverEngineRender','Set','setRangeValueRedoMutation','string','_getAutoName','sheet.command.pivot-drill-down','_markDirty$','@univerjs/core','createInterceptorKey','createLabelField','Injector','_createExclusiveRange','RenameField','isFeatureAuthorizedWithinTime','date','NotFunction','sheet.mutation.rename-pivot-field','valueFields','UpdateFieldPositionMutation','columnFields','getSubtotal','startCollectChangeset','updateCollectionConfig','SheetsPivotTableService','find','Filter','_updateModelCache','getCurrentUnitForType','setPivotFilter','setPivotSort','CommandType','getTargetByPivotTableId','getIntersectsPivotTable','getPivotInfoByLicense','SheetInterceptorService','InterceptorEffectEnum','sheets-pivot.varpName','ΣValue','removePivotField','SheetsPivotDataSourceModel','sheets-pivot.stdDevpName','some','setCollapse','deleteUnitId','SetSortInfo','@univerjs/engine-formula','lastCol','getAdjustRangesPosition','getOwnPropertyDescriptor','hasOwnProperty','_initUnitDisposed','colRanges','ManualFilter','setOptions','getPivotTableCellData','sequenceExecute','sheet.mutation.send-init-pivot-text-local','shouldClear','updatePivotTableRangeInfo','pivotMutationGenerate','getValuePosition','getDataFieldBySourceName','object','INTERCEPTOR_POINT','versions','CustomCommandExecutionError','body','@univerjs-pro/engine-pivot','sheet.mutation.remove-pivot-table','getPivotTableModelConfig','sheet.mutation.pivot-update-field-source-info','getInterceptPoints','_ensurePivotTableRangeInfo','getTextSize','_sheetsPivotTableService','_pivotConfigChange$','updateViewInfo','MovePivotField','MIN_SAFE_INTEGER','Value','StdDev\x20of\x20','fieldsCollectionChange$','UpdatePivotSource','type','length','range','parse','DisposableCollection','_ensurePivotMap','triggerDirtyFeature','fieldIds','createValueField','column','registerCommand','ICommandService','pushUndoRedo','sheets-pivot.productName','refreshData','LS_CONFIG_KEY','IResourceManagerService','RemoveSheetMutation','asObservable','1810qeXdJY','sheets-pivot.columnName','PivotViewCellValueTypeEnum','sortInfo','getDataFieldByRangeKey','MUTATION','generateHexNumber','getInsertRowColMutations','subUnitId','getDataFieldManager','drillDown','AddPivotTable','_initRegisterCommand','rangeKey','NAME','colInfo','filterInfo','getPivotTableIdByCell','entries','forRow','reset','subscribe','_commandService','toString','exports','SetPivotSetting','AddPivotTableCommand','_viewData$','isPrefixValue','colHeaderMap','getRowCount','Tools','InsertRowMutation','sheets-pivot.maxName','AddPivotTableWithConfigCommand','getColCount','_updateRenderEmptyCache','pivotConfigChange$','SHEETS_PIVOT_PLUGIN_CONFIG_KEY','values','PivotDataFieldDataTypeEnum','rgb(255,255,255)','AddPivotTableMutation','UniverInstanceType','toJSON','subtotal','IUndoRedoService','getSheetBySheetName','intercept','#1d32e9','endColumn','unitId','max','UpdatePivotFieldSettingCommand','isBottomTotal','add','executeCommand','random','sheet.mutation.set-pivot-option','generateMutationsByRanges','getCellMatrix','RANGE_TYPE','rangeKeyMap','_initRemoveSheetCommandInterceptor','MoveRangeCommand','_host','DEFAULT_WORKSHEET_COLUMN_COUNT','message','sheet.mutation.set-pivot-position','getTypeOfUnitDisposed$','_updatePivotTableInstanceCache','addPivotTableWithConfig','12864XlNrpf','measure','value','sheets-pivot.averageName','rowCount','getColumnWidth','cornerStyle','updateFieldSourceInfo','setPivotSetting','_sheetsSelectionsService','movePivotField','handleSourceRangeChange','getViewData','needSameDeleteModel','setPivotTable','NORMAL','_initViewModelBySheetInterceptor','getDisplayName','registerRefRange','sheet.mutation.send-pivot-config-local','rangesInfo','keys','COLUMN','getName','setTextInfo','getInfo','UpdateValuePositionMutation','set','setRangeValueUndoMutation','broadcastCollectionChange','removePivotTable','getSourceName','RemoveRowMutation','handleAsyncResponse','getAutoDisplayNameFunction','6878861xhkbVA','8085vyVDvW','_ensurePivotTableMatrixInfo','getSubUnitPivotMatrix','rxjs','sheet.mutation.remove-pivot-field','mergeWorksheetSnapshotWithDefault','cellToRange','amd','getValue','getSheets','CELL_CONTENT','setName','valueIndex','_activeDirtyManagerService','getNoUsedDataFieldIds','sheetName','sourceRangeInfo','NotName','sheet.mutation.set-pivot-collapse','@univerjs/engine-render','getFieldPositionInfoById','renameField','sheet.mutation.send-pivot-data-local','getPivotDirtyViewInfo'];_0x40c0=function(){return _0x3e51f0;};return _0x40c0();}function _0x2015(_0x45d40e,_0x50d1cf){const _0x40c029=_0x40c0();return _0x2015=function(_0x2015c8,_0x5db2ad){_0x2015c8=_0x2015c8-0xb9;let _0x23253a=_0x40c029[_0x2015c8];return _0x23253a;},_0x2015(_0x45d40e,_0x50d1cf);}(function(_0x5e8c79,_0x4f0052){const _0x18e766=_0x2015,_0x2be0e6=_0x5e8c79();while(!![]){try{const _0x28602c=-parseInt(_0x18e766(0x26b))/0x1+-parseInt(_0x18e766(0x27c))/0x2*(parseInt(_0x18e766(0x269))/0x3)+parseInt(_0x18e766(0x117))/0x4+parseInt(_0x18e766(0x182))/0x5*(-parseInt(_0x18e766(0x1ca))/0x6)+parseInt(_0x18e766(0x1ee))/0x7*(parseInt(_0x18e766(0x38e))/0x8)+parseInt(_0x18e766(0xe4))/0x9+parseInt(_0x18e766(0x262))/0xa*(parseInt(_0x18e766(0x1ed))/0xb);if(_0x28602c===_0x4f0052)break;else _0x2be0e6['push'](_0x2be0e6['shift']());}catch(_0xcd8e62){_0x2be0e6['push'](_0x2be0e6['shift']());}}}(_0x40c0,0x876d7),function(_0x594eb8,_0xc7fe6b){const _0x473c27=_0x2015;typeof exports==_0x473c27(0x15a)&&typeof module<'u'?_0xc7fe6b(exports,require(_0x473c27(0x15f)),require(_0x473c27(0x123)),require('@univerjs/engine-formula'),require('@univerjs/sheets'),require('rxjs'),require(_0x473c27(0x2e1)),require(_0x473c27(0xd1)),require(_0x473c27(0x282)),require('@univerjs/engine-render')):typeof define==_0x473c27(0x38c)&&define[_0x473c27(0x1f5)]?define([_0x473c27(0x19a),_0x473c27(0x15f),_0x473c27(0x123),_0x473c27(0x149),'@univerjs/sheets',_0x473c27(0x1f1),_0x473c27(0x2e1),'@univerjs/sheets-filter',_0x473c27(0x282),_0x473c27(0x201)],_0xc7fe6b):(_0x594eb8=typeof globalThis<'u'?globalThis:_0x594eb8||self,_0xc7fe6b(_0x594eb8[_0x473c27(0x109)]={},_0x594eb8['UniverProEnginePivot'],_0x594eb8[_0x473c27(0x225)],_0x594eb8[_0x473c27(0x30d)],_0x594eb8[_0x473c27(0x33f)],_0x594eb8[_0x473c27(0x1f1)],_0x594eb8['UniverProLicense'],_0x594eb8[_0x473c27(0x31f)],_0x594eb8['UniverRpc'],_0x594eb8[_0x473c27(0x11c)]));}(this,function(_0xb4db29,_0x2f3841,_0x21d8ed,_0x2ed881,_0x4cb34f,_0x3f8a1b,_0x271a3b,_0x117e0c,_0x23f2d0,_0x200ff1){'use strict';const _0x4cc141=_0x2015;var _0xb5a52=Object[_0x4cc141(0xe7)],_0xb0481b=(_0x38fc09,_0x500795,_0x474330)=>_0x500795 in _0x38fc09?_0xb5a52(_0x38fc09,_0x500795,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x474330}):_0x38fc09[_0x500795]=_0x474330,_0x128c18=(_0x69273b,_0x29687f,_0x587bd0)=>_0xb0481b(_0x69273b,typeof _0x29687f!=_0x4cc141(0x31c)?_0x29687f+'':_0x29687f,_0x587bd0);const _0x23280f=Number['parseInt'](0x6794dfe9),_0x5a1e80=0x10,_0x3eaceb=0x1,_0x479aae=_0x4cc141(0x27b),_0x4887ec=0x1,_0x4f903c=_0x4cc141(0x2df),_0x46120c=_0x4cc141(0x1ab),_0x3f2dc4=_0x4cc141(0x2e8),_0x5906e5=_0x4cc141(0xc9),_0x1b7f52=_0x4cc141(0xc9),_0x16dafe='#eceeff',_0x2fc1e8=_0x4cc141(0x1b3),_0x2df7ad=_0x4cc141(0x234),_0x130682=_0x4cc141(0x221),_0x1febc8=_0x4cc141(0x1b3),_0x19a314=_0x4cc141(0x234),_0x4ef53c=_0x4cc141(0x2fd),_0x329fdd=0xe,_0x29f0cb=0x6;var _0x4c87ea=(_0x41711c=>(_0x41711c[_0x4cc141(0xf8)]=_0x4cc141(0xba),_0x41711c[_0x4cc141(0x31d)]=_0x4cc141(0x386),_0x41711c))(_0x4c87ea||{});const _0x53c9d6={'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':''}}},_0x54c2a2=0x1e,_0x48f1ba={'b':{'s':0x1,'cl':{'rgb':_0x3f2dc4}},'l':{'s':0x1,'cl':{'rgb':_0x3f2dc4}},'r':{'s':0x1,'cl':{'rgb':_0x3f2dc4}},'t':{'s':0x1,'cl':{'rgb':_0x3f2dc4}}},_0x4a5bda={'bg':{'rgb':_0x4f903c},'ht':0x2,'vt':0x2,'tb':0x1},_0x5573be={'bg':{'rgb':_0x46120c},'ht':0x2,'vt':0x2,'tb':0x1},_0x1114ba={'rowStyle':{'bg':{'rgb':_0x4ef53c},'bd':_0x48f1ba,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':_0x1febc8},'bd':null,'cl':{'rgb':_0x19a314},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':_0x48f1ba,'bg':{'rgb':_0x130682},'vt':0x2},'cornerStyle':{'bd':_0x48f1ba,'bg':{'rgb':_0x16dafe},'bl':0x1,'vt':0x2},'pageStyle':{'bd':_0x48f1ba,'bg':{'rgb':_0x5906e5},'vt':0x2},'leafStyle':{'bd':_0x48f1ba,'bg':{'rgb':_0x1b7f52},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':_0x2fc1e8},'cl':{'rgb':_0x2df7ad},'bl':0x1,'vt':0x2},'dataStyle':{'bd':_0x48f1ba,'vt':0x2}},_0x52b5d1=(_0x126858,_0x37409e,_0x48e8c3)=>{const _0x3c0dd1=_0x4cc141;let _0x573a95;const _0x5f5409=_0x126858[_0x3c0dd1(0xca)](_0x21d8ed['IUniverInstanceService'])[_0x3c0dd1(0x137)](_0x21d8ed[_0x3c0dd1(0x1ad)][_0x3c0dd1(0x20b)]);if(!_0x5f5409)return null;const _0x310b58=_0x5f5409[_0x3c0dd1(0x2ea)]();let _0x32ccc4;if(_0x48e8c3&&(_0x32ccc4=_0x310b58[_0x3c0dd1(0x2cf)](_0x48e8c3)),_0x37409e!=null&&_0x37409e['v']||(_0x37409e==null?void 0x0:_0x37409e['v'])===0x0){_0x573a95||(_0x573a95={});const _0x3fa0e3=_0x51cde0(_0x37409e['v']);typeof _0x3fa0e3==_0x3c0dd1(0x2f4)?_0x573a95['t']=_0x21d8ed[_0x3c0dd1(0x281)][_0x3c0dd1(0x342)]:typeof _0x3fa0e3=='string'&&(_0x573a95['t']=_0x21d8ed[_0x3c0dd1(0x281)][_0x3c0dd1(0x32a)]),_0x573a95['v']=_0x3fa0e3;}return(_0x37409e!=null&&_0x37409e['i']||(_0x37409e==null?void 0x0:_0x37409e['i'])===0x0)&&(_0x573a95||(_0x573a95={}),_0x573a95['fi']=_0x37409e['i']),_0x37409e!=null&&_0x37409e['s']&&(_0x573a95||(_0x573a95={}),_0x573a95[_0x3c0dd1(0x24b)]=_0x37409e['s']),_0x48e8c3&&(_0x573a95||(_0x573a95={}),_0x573a95['s']=_0x32ccc4),_0x573a95;},_0x108f64=(_0x53a26a,_0x28bb5f,_0x5c5365,_0x1b0685)=>{const _0x34759d=_0x4cc141;var _0x3b2103,_0x500c81,_0x2fb268,_0x45d808,_0x21cbaa,_0x282190,_0xa3d1a8,_0x167a38,_0x2864ac,_0x22af55,_0x7ca011,_0xdf5e10,_0x307540,_0xe075d1;const _0x4d31d8=_0x5c5365[_0x34759d(0xff)],{cornerView:_0x6d7af6,rowView:_0x3028d5,colView:_0x4a7657,dataView:_0x539597,pageView:_0x1c1e63,formatMap:_0x44b3d6}=_0x28bb5f,{row:_0x320658,col:_0x262e14}=_0x4d31d8,_0x1d1312=new _0x21d8ed[(_0x34759d(0x2ed))](),_0x445c7b={},_0x283a69={},_0x68c683={},_0x43971a={},_0x2b5b9f={};let _0xf8de27=_0x320658,_0x3bfa2e=_0x262e14;Object[_0x34759d(0x1df)](_0x1c1e63['data'])[_0x34759d(0x2b9)](_0x345c92=>{const _0x2b5564=_0x34759d;Object['keys'](_0x1c1e63[_0x2b5564(0x10a)][Number(_0x345c92)])[_0x2b5564(0x2b9)](_0x3065ef=>{const _0x584914=_0x2b5564,_0x23ecfe={..._0x1c1e63[_0x584914(0x10a)][Number(_0x345c92)][Number(_0x3065ef)]};_0x1d1312[_0x584914(0x2cf)](Number(_0x345c92)+_0xf8de27,Number(_0x3065ef)+_0x3bfa2e,_0x52b5d1(_0x53a26a,_0x23ecfe,_0x1114ba[_0x584914(0x30b)]));});});const _0x3910d5=Object[_0x34759d(0x1df)](_0x1c1e63[_0x34759d(0x10a)])[_0x34759d(0x170)];_0xf8de27+=_0x3910d5+(_0x3910d5?_0x4887ec:0x0);const _0xa01162=_0x6d7af6[_0x34759d(0x1a0)](),_0x206803=_0x6d7af6[_0x34759d(0x1a5)]();for(let _0x1ab9bd=0x0;_0x1ab9bd<_0xa01162;_0x1ab9bd++)for(let _0x1d9e38=0x0;_0x1d9e38<_0x206803;_0x1d9e38++){const _0x4d6f98={...(_0x500c81=(_0x3b2103=_0x6d7af6[_0x34759d(0x10a)])==null?void 0x0:_0x3b2103[_0x1ab9bd])==null?void 0x0:_0x500c81[_0x1d9e38]};((_0x2fb268=_0x3028d5[_0x34759d(0x235)][_0x1d9e38])==null?void 0x0:_0x2fb268['isValue'])&&_0x1d9e38===_0x206803-0x1&&_0x1ab9bd===_0xa01162-0x1&&(_0x4d6f98['v']=''+_0x1b0685[_0x34759d(0xf1)]),_0x1d1312[_0x34759d(0x2cf)](_0x1ab9bd+_0xf8de27,_0x1d9e38+_0x3bfa2e,_0x52b5d1(_0x53a26a,_0x4d6f98,_0x1114ba[_0x34759d(0x1d0)]));}for(let _0x23b323=0x0;_0x23b323<_0x6d7af6[_0x34759d(0x283)]['length'];_0x23b323++)_0x6d7af6[_0x34759d(0x283)][_0x23b323]&&(_0x68c683[''+(_0x23b323+_0x3bfa2e)]=_0x6d7af6[_0x34759d(0x283)][_0x23b323]);_0x3bfa2e+=_0x206803;const _0x5728d7=_0x4a7657[_0x34759d(0x235)],_0xd9f199=_0x4a7657[_0x34759d(0x2e6)]()>=0x0?_0x4a7657[_0x34759d(0x2e6)]()+0x1:0x0,_0x2d3707=_0x4a7657[_0x34759d(0x216)]()>=0x0?_0x4a7657[_0x34759d(0x216)]()+0x1:0x0;for(let _0x418be3=0x0;_0x418be3<_0x2d3707;_0x418be3++){for(let _0x4bc1dd=0x0;_0x4bc1dd<_0xd9f199;_0x4bc1dd++){const _0x4fd4c1={...(_0x21cbaa=(_0x45d808=_0x4a7657[_0x34759d(0x10a)])==null?void 0x0:_0x45d808[_0x4bc1dd])==null?void 0x0:_0x21cbaa[_0x418be3]},_0x23f834=(_0x282190=_0x5728d7[_0x4bc1dd])==null?void 0x0:_0x282190[_0x34759d(0xc0)],_0x5158e7=_0x44b3d6[_0x23f834];_0x4fd4c1['v']=_0xd4a5b0(_0x4fd4c1,_0x4bc1dd===0x0&&((_0xa3d1a8=_0x4a7657[_0x34759d(0x38d)](_0x418be3+0x1))==null?void 0x0:_0xa3d1a8[_0x34759d(0xe0)]),_0x5158e7,_0x1b0685);let _0x546e62;_0x5158e7?_0x546e62={..._0x1114ba['colStyle'],'n':{'pattern':_0x5158e7}}:_0x546e62={..._0x1114ba[_0x34759d(0x213)]},_0x1d1312[_0x34759d(0x2cf)](_0x4bc1dd+_0xf8de27,_0x418be3+_0x3bfa2e,_0x52b5d1(_0x53a26a,_0x4fd4c1,_0x546e62));}_0x4a7657[_0x34759d(0x283)][_0x418be3]&&(_0x283a69[''+(_0x418be3+_0x3bfa2e)]=_0x4a7657[_0x34759d(0x283)][_0x418be3]),_0x4a7657[_0x34759d(0x235)][_0x418be3+0x1]&&(_0x2b5b9f[''+(_0x418be3+_0xf8de27+0x1)]=_0x4a7657[_0x34759d(0x235)][_0x418be3+0x1]);}_0xf8de27+=_0xa01162;const _0x37ddde=_0x3028d5[_0x34759d(0x235)],_0x1ee1bc=_0x3028d5[_0x34759d(0x2e6)]()>=0x0?_0x3028d5[_0x34759d(0x2e6)]()+0x1:0x0,_0x40cfb8=_0x3028d5['getLastCol']()>=0x0?_0x3028d5[_0x34759d(0x216)]()+0x1:0x0;for(let _0x22e9d0=0x0;_0x22e9d0<_0x1ee1bc;_0x22e9d0++){for(let _0x3753ff=0x0;_0x3753ff<_0x40cfb8;_0x3753ff++){const _0x32ae36={...(_0x2864ac=(_0x167a38=_0x3028d5['data'])==null?void 0x0:_0x167a38[_0x22e9d0])==null?void 0x0:_0x2864ac[_0x3753ff]},_0x5173e0=(_0x22af55=_0x37ddde[_0x3753ff])==null?void 0x0:_0x22af55['tableFieldId'],_0x1d4b4e=_0x44b3d6[_0x5173e0];_0x32ae36['v']=_0xd4a5b0(_0x32ae36,!0x1,_0x1d4b4e,_0x1b0685);let _0x312f1a;_0x3028d5[_0x34759d(0x283)][_0x22e9d0][_0x34759d(0x293)]===_0x3028d5[_0x34759d(0x1a5)]()?_0x312f1a=_0x1114ba[_0x34759d(0x256)]:_0x3028d5[_0x34759d(0x283)][_0x22e9d0][_0x34759d(0x1b8)]?_0x312f1a=_0x3028d5[_0x34759d(0x283)][_0x22e9d0][_0x34759d(0x293)]===0x0?_0x1114ba[_0x34759d(0x387)]:_0x1114ba[_0x34759d(0x245)]:_0x312f1a=_0x1114ba['rowStyle'],_0x1d4b4e&&(_0x312f1a={..._0x312f1a,'n':{'pattern':_0x1d4b4e}}),_0x1d1312['setValue'](_0x22e9d0+_0xf8de27,_0x3753ff+_0x262e14,_0x52b5d1(_0x53a26a,_0x32ae36,_0x312f1a));}_0x3028d5[_0x34759d(0x283)][_0x22e9d0]&&(_0x445c7b[''+(_0x22e9d0+_0xf8de27)]=_0x3028d5['info'][_0x22e9d0]),_0x3028d5[_0x34759d(0x235)][_0x22e9d0]&&(_0x43971a[''+(_0x22e9d0+_0x262e14)]=_0x3028d5[_0x34759d(0x235)][_0x22e9d0]);}const _0x1fb843=_0x539597[_0x34759d(0x1a0)](),_0x24ca85=_0x539597[_0x34759d(0x1a5)]();for(let _0x4eea10=0x0;_0x4eea10<_0x1fb843;_0x4eea10++)for(let _0xb4e3ab=0x0;_0xb4e3ab<_0x24ca85;_0xb4e3ab++){const _0x42013d={...(_0xdf5e10=(_0x7ca011=_0x539597['data'])==null?void 0x0:_0x7ca011[_0x4eea10])==null?void 0x0:_0xdf5e10[_0xb4e3ab]};let _0x451e09;_0x3028d5['info'][_0x4eea10][_0x34759d(0x1b8)]?_0x451e09=_0x3028d5[_0x34759d(0x283)][_0x4eea10][_0x34759d(0x293)]===0x0?_0x1114ba[_0x34759d(0x387)]:_0x1114ba[_0x34759d(0x245)]:_0x451e09=_0x1114ba[_0x34759d(0x230)];const _0x415723=_0x3028d5[_0x34759d(0x283)][_0x4eea10][_0x34759d(0x1fa)],_0x507e55=_0x4a7657[_0x34759d(0x283)][_0xb4e3ab][_0x34759d(0x1fa)],_0x2ba11b=Math[_0x34759d(0x1b6)](_0x415723,_0x507e55),_0x1c2cb1=_0x5c5365['fieldsConfig'][_0x34759d(0x12d)][_0x34759d(0xcd)]();let _0x5d5c5d='';_0x2ba11b<0x0?_0x5d5c5d=(_0x307540=_0x1c2cb1[0x0])!=null?_0x307540:'':_0x5d5c5d=(_0xe075d1=_0x1c2cb1[_0x2ba11b])!=null?_0xe075d1:'';const _0x4c0a45=_0x44b3d6[_0x5d5c5d];_0x4c0a45&&(_0x451e09={..._0x451e09,'n':{'pattern':_0x4c0a45}}),_0x1d1312['setValue'](_0x4eea10+_0xf8de27,_0xb4e3ab+_0x3bfa2e,_0x52b5d1(_0x53a26a,_0x42013d,_0x451e09));}return{'valueMatrix':_0x1d1312,'rowInfo':_0x445c7b,'colInfo':_0x283a69,'cornerInfo':_0x68c683,'rowHeaderMap':_0x43971a,'colHeaderMap':_0x2b5b9f};};function _0xd4a5b0(_0x1e186b,_0x47c271,_0x3e8753,_0x691d70){const _0x258d88=_0x4cc141;let _0x43f115=_0x1e186b['v'];_0x47c271&&(_0x43f115=''+_0x691d70[_0x258d88(0xf1)]);const _0x43b8c5=_0x1e186b['t']&&(_0x1e186b['t']&_0x2f3841[_0x258d88(0x184)][_0x258d88(0x233)])>0x0;if(_0x43b8c5&&(_0x43f115=''+_0x691d70[_0x258d88(0x28e)]),_0x1e186b['s']===_0x2f3841['PivotCellStyleTypeEnum'][_0x258d88(0xda)]){let _0x4f01e7=_0x43f115,_0x3d7ef2='';_0x2f3841[_0x258d88(0x19e)](_0x43f115)&&(_0x4f01e7=_0x43f115['prefix'],_0x3d7ef2=_0x43f115[_0x258d88(0x1cc)]);const _0x429e54=_0x3e8753&&!_0x43b8c5?_0x21d8ed['numfmt'][_0x258d88(0x252)](_0x3e8753,Number(_0x4f01e7)):_0x4f01e7;_0x3d7ef2?_0x43f115=_0x429e54+'\x20'+_0x3d7ef2:_0x43f115=_0x429e54+'\x20'+_0x691d70[_0x258d88(0xd2)];}else _0x1e186b['s']===_0x2f3841[_0x258d88(0x217)][_0x258d88(0x338)]&&(_0x43f115=_0x43f115+'\x20'+_0x691d70[_0x258d88(0x2a2)]);return _0x43f115;}function _0x51cde0(_0x458e59){const _0xaa313c=_0x4cc141;if(_0x2f3841[_0xaa313c(0xbc)](_0x458e59)){const {errorType:_0x499d39}=_0x458e59;switch(_0x499d39){case _0x2f3841[_0xaa313c(0x326)][_0xaa313c(0x206)]:return _0x2ed881[_0xaa313c(0x2e4)]['DIV_BY_ZERO'];case _0x2f3841[_0xaa313c(0x326)][_0xaa313c(0x27a)]:return _0x2ed881[_0xaa313c(0x2e4)]['NUM'];case _0x2f3841[_0xaa313c(0x326)][_0xaa313c(0x12b)]:return _0x2ed881[_0xaa313c(0x2e4)][_0xaa313c(0x190)];case _0x2f3841['PivotErrorTypeEnum'][_0xaa313c(0x1ff)]:return _0x2ed881[_0xaa313c(0x2e4)][_0xaa313c(0x190)];case _0x2f3841[_0xaa313c(0x326)][_0xaa313c(0x311)]:return _0x2ed881[_0xaa313c(0x2e4)]['REF'];}}return _0x458e59;}function _0x167a54(_0x210c01,_0x568061,_0x2baca1=!0x1,_0xa43426=!0x1){const _0x51ef1f=_0x4cc141,{data:_0xc47041}=_0x568061,_0x49d894=_0x568061[_0x51ef1f(0x1a0)](),_0x2a6e34=_0x568061[_0x51ef1f(0x1a5)]();if(_0x49d894<=0x0||_0x2a6e34<=0x0)return[];const _0x5b093a=_0x568061['getLastCol'](),_0x57af06=_0x568061[_0x51ef1f(0x2e6)](),_0x33f758=_0xa43426?_0x57af06>=0x0?_0x57af06+0x1:0x0:_0x49d894,_0x29cf5f=_0xa43426?_0x5b093a>=0x0?_0x5b093a+0x1:0x0:_0x2a6e34,{row:_0x342b95,col:_0x4b85f8}=_0x210c01,_0x473e36=_0x342b95,_0x34b568=_0x4b85f8;if(_0x2baca1){const _0x4179d2=[];for(const [_0x5919bc,_0x3da0f2]of Object['entries'](_0xc47041))for(const [_0x33619e,_0x2ef4da]of Object[_0x51ef1f(0x194)](_0x3da0f2))_0x4179d2['push'](_0x21d8ed['cellToRange'](_0x473e36+Number(_0x5919bc),_0x34b568+Number(_0x33619e)));return _0x4179d2;}else{const _0x26c93b=_0xa43426?_0x33f758>0x0?0x1:0x0:0x1,_0x465145=_0xa43426?_0x29cf5f>0x0?0x1:0x0:0x1,_0x2fff33=_0x342b95+_0x33f758-_0x26c93b,_0x1b5096=_0x4b85f8+_0x29cf5f-_0x465145;return[{'startRow':_0x473e36,'startColumn':_0x34b568,'endRow':_0x2fff33,'endColumn':_0x1b5096}];}}const _0x14fdfb='SHEET_PIVOT_IN_MAIN_THREAD',_0x342164=_0x4cc141(0x266);var _0x346a09=(_0x49ea91=>(_0x49ea91[_0x4cc141(0x135)]=_0x4cc141(0x319),_0x49ea91[_0x4cc141(0xea)]=_0x4cc141(0x2bc),_0x49ea91[_0x4cc141(0x297)]=_0x4cc141(0x374),_0x49ea91[_0x4cc141(0x2cc)]='AddPivotTableWithConfig',_0x49ea91[_0x4cc141(0x18d)]='addPivotTable',_0x49ea91['MovePivotField']=_0x4cc141(0x1d4),_0x49ea91[_0x4cc141(0x215)]=_0x4cc141(0x142),_0x49ea91['SetPivotCollapse']=_0x4cc141(0x38b),_0x49ea91['SetPivotFilter']=_0x4cc141(0x138),_0x49ea91[_0x4cc141(0x2de)]=_0x4cc141(0x139),_0x49ea91['SetPivotSetting']=_0x4cc141(0x1d2),_0x49ea91[_0x4cc141(0x16e)]=_0x4cc141(0x2c8),_0x49ea91[_0x4cc141(0x10e)]=_0x4cc141(0x227),_0x49ea91[_0x4cc141(0x336)]=_0x4cc141(0x18c),_0x49ea91))(_0x346a09||{});const _0x2e617c={'sheets-pivot.blankValue':_0x4cc141(0x23f),'sheets-pivot.columnName':_0x4cc141(0x308),'sheets-pivot.subTotalText':_0x4cc141(0x350),'sheets-pivot.grandTotalText':_0x4cc141(0x28c),'sheets-pivot.valueText':_0x4cc141(0x16b),'sheets-pivot.averageName':_0x4cc141(0x212),'sheets-pivot.countName':'Count\x20of\x20','sheets-pivot.countNumsName':'Count\x20of\x20','sheets-pivot.maxName':_0x4cc141(0x2b1),'sheets-pivot.minName':_0x4cc141(0xc4),'sheets-pivot.productName':_0x4cc141(0x2a3),'sheets-pivot.stdDevName':_0x4cc141(0x16c),'sheets-pivot.stdDevpName':_0x4cc141(0x111),'sheets-pivot.sumName':_0x4cc141(0x2c1),'sheets-pivot.varName':_0x4cc141(0xe8),'sheets-pivot.varpName':_0x4cc141(0x10f),'sheets-pivot.subTotal':_0x4cc141(0xda),'sheets-pivot.grandTotal':_0x4cc141(0x28c),'sheets-pivot.value':'value','sheets-pivot.blank':_0x4cc141(0x233),'sheets-pivot.emptyPivot.filter':_0x4cc141(0x135),'sheets-pivot.emptyPivot.row':_0x4cc141(0x2bd),'sheets-pivot.emptyPivot.column':_0x4cc141(0x36a),'sheets-pivot.emptyPivot.values':_0x4cc141(0xfe)},_0x4bcad1={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},_0x460ca6=_0x21d8ed[_0x4cc141(0x2aa)](_0x4cc141(0x334)),_0x3cfc57=_0x21d8ed[_0x4cc141(0x124)](_0x4cc141(0x157));var _0x53c554=(_0x3734c3=>(_0x3734c3['add']=_0x4cc141(0x1b9),_0x3734c3['delete']=_0x4cc141(0x270),_0x3734c3[_0x4cc141(0x2ef)]=_0x4cc141(0x2ef),_0x3734c3))(_0x53c554||{}),_0x2f104b=(_0x278d18=>(_0x278d18['Add']=_0x4cc141(0x1b9),_0x278d18[_0x4cc141(0x11d)]=_0x4cc141(0x1e5),_0x278d18[_0x4cc141(0x116)]=_0x4cc141(0x270),_0x278d18))(_0x2f104b||{});const _0x51cc83={0x0:'C',0x1:'W',0x2:'P',0x3:'5',0x4:'N',0x5:'n',0x6:'V',0x7:'R',0x8:'O',0x9:'q','i':'0','W':'1','g':'2','d':'3','h':'4','P':'6','C':'7','U':'8','Y':'9','N':'a','D':'b','R':'c','p':'d','o':'e','m':'f','L':'g','a':'h','k':'i','I':'j','Z':'k','G':'l','J':'m','S':'o','F':'p','x':'r','Q':'s','B':'t','O':'u','l':'v','r':'w','u':'x','f':'y','t':'z','M':'A','E':'B','V':'D','w':'E','z':'F','b':'G','H':'H','T':'I','K':'J','s':'K','c':'L','q':'M','j':'Q','e':'S','X':'T','v':'U','n':'X','y':'Y','A':'Z'},_0x3e48fa=_0x4cc141(0x118),_0x121547={'type':_0x21d8ed[_0x4cc141(0x13a)]['MUTATION'],'id':_0x4cc141(0x29c),'handler':()=>!0x0},_0x3a27b6={'type':_0x21d8ed['CommandType'][_0x4cc141(0x187)],'id':_0x4cc141(0x204),'handler':()=>!0x0},_0x22622d={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0xd6),'handler':()=>!0x0},_0x2dbb4d={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x1dd),'handler':()=>!0x0},_0xd9a4da={'type':_0x21d8ed[_0x4cc141(0x13a)]['MUTATION'],'id':_0x4cc141(0x154),'handler':()=>!0x0},_0x40364e=_0x50b4e6=>{const _0xc20a11=_0x4cc141;var _0x9f9d21;return((_0x9f9d21=_0x50b4e6[_0xc20a11(0x15e)])==null?void 0x0:_0x9f9d21[_0xc20a11(0x2e7)]['replace'](/\r\n$/,''))||'';};class _0x43e944 extends _0x2f3841[_0x4cc141(0x2c2)]{constructor(_0x2a1fb8,_0x10813f){const _0x33eb86=_0x4cc141;super(),_0x128c18(this,_0x33eb86(0x1c0),{}),_0x128c18(this,_0x33eb86(0x2a0)),_0x128c18(this,'_host'),(this['_univerInstanceService']=_0x10813f,this['_host']=_0x2a1fb8);}['initDataRanges'](){const _0x3c29db=_0x4cc141;for(const _0x223f4a in this[_0x3c29db(0xdd)]){const _0x2a7499=this[_0x3c29db(0xdd)][_0x223f4a],_0x5d3ab5=_0x2a7499[_0x3c29db(0x2b7)]();this[_0x3c29db(0x1c0)][_0x5d3ab5]=_0x2a7499['getId']();}}[_0x4cc141(0x1ec)](){const _0x27e2c5=this['_host'];return _0x15efd3['bind'](_0x27e2c5);}[_0x4cc141(0x23a)](_0x590c55){const _0x469591=_0x4cc141,_0x43b1dd=this['dataFields'][_0x590c55][_0x469591(0x18f)];delete this[_0x469591(0xdd)][_0x590c55],delete this[_0x469591(0x1c0)][_0x43b1dd];}[_0x4cc141(0x30e)](_0x3b18e4){const _0x91043b=_0x4cc141;var _0x52b3be,_0x13603a;const _0x370cd8=this[_0x91043b(0x1c3)][_0x91043b(0x259)](_0x3b18e4);if(_0x370cd8){const {unitId:_0x38cc37,subUnitId:_0x36148b}=_0x370cd8,_0x5d65a7=(_0x52b3be=this[_0x91043b(0x1c3)]['getPivotTableConfig'](_0x38cc37,_0x36148b,_0x3b18e4))==null?void 0x0:_0x52b3be[_0x91043b(0x1fe)];this['_host']['broadcastCollectionChange']({'token':_0x3b18e4,'type':_0x53c554['delete'],'dataRangeInfo':_0x5d65a7});}(_0x13603a=this[_0x91043b(0x114)](_0x3b18e4))==null||_0x13603a[_0x91043b(0x294)](),delete this[_0x91043b(0x323)][_0x3b18e4];}[_0x4cc141(0x2b7)](_0x6abe35,_0x48a010){const _0x22e15b=_0x4cc141,{sheetName:_0x381eeb,unitId:_0x4a2056,range:_0x587167}=_0x6abe35,{startRow:_0x1b3d3a,endRow:_0x4eb647}=_0x587167;return _0x2ed881[_0x22e15b(0x280)](_0x4a2056,_0x381eeb,{'startRow':_0x1b3d3a,'endRow':_0x4eb647,'startColumn':_0x48a010,'endColumn':_0x48a010});}[_0x4cc141(0x186)](_0x2eb5ad){const _0xbf182c=_0x4cc141;return this[_0xbf182c(0xdd)][this[_0xbf182c(0x1c0)][_0x2eb5ad]];}['setRangeKeyMap'](_0x587fa5,_0x27c0e1){const _0x6bbaa4=_0x4cc141;this[_0x6bbaa4(0x1c0)][_0x587fa5]=_0x27c0e1;}['updateRangeKeyMap'](_0x2a496c,_0x5dffeb){const _0x48331e=_0x4cc141;this[_0x48331e(0x1c0)][_0x5dffeb]=this[_0x48331e(0x1c0)][_0x2a496c],delete this[_0x48331e(0x1c0)][_0x2a496c];}[_0x4cc141(0x322)](_0x5a1779,_0x486691,_0x12ea5b,_0x39a44f){const _0xab735c=_0x4cc141,_0x56db11=new _0x2f3841[(_0xab735c(0x372))](this);_0x56db11['fromJSON'](_0x486691);const _0x20ef98=[];let _0x3dd9c9=0x0;for(const _0x298362 of _0x56db11['fieldIds']){const _0x1833c8=this[_0xab735c(0x2b7)](_0x12ea5b,_0x3dd9c9),_0x529f3e=this['dataFields'][_0x298362];_0x529f3e&&(_0x529f3e['rangeKey']=_0x1833c8,this['setRangeKeyMap'](_0x1833c8,_0x298362),_0x20ef98['push']({'index':_0x3dd9c9,'dataField':_0x529f3e})),_0x3dd9c9++;}return this[_0xab735c(0x33e)](_0x5a1779,_0x56db11,_0x12ea5b,_0x39a44f),{'collection':_0x56db11,'updateDataFieldList':_0x20ef98};}[_0x4cc141(0x29b)](_0x1af81e,_0x46540d){const _0x1d93a1=_0x4cc141;return _0x1af81e['rangeType']===_0x21d8ed[_0x1d93a1(0x1bf)][_0x1d93a1(0x1e0)]?{'startRow':0x0,'startColumn':_0x1af81e[_0x1d93a1(0x27d)],'endRow':_0x46540d['getRowCount']()-0x1,'endColumn':_0x1af81e[_0x1d93a1(0x1b4)]}:{'startRow':_0x1af81e[_0x1d93a1(0x364)],'startColumn':_0x1af81e[_0x1d93a1(0x27d)],'endRow':_0x1af81e['endRow'],'endColumn':_0x1af81e[_0x1d93a1(0x1b4)]};}[_0x4cc141(0x26c)](_0x3d71bb){const _0x106051=_0x4cc141,{sheetName:_0x577869,range:_0x218d1e}=_0x3d71bb,_0x4da3ab=this['_univerInstanceService'][_0x106051(0x137)](_0x21d8ed['UniverInstanceType'][_0x106051(0x20b)]),_0x19adcd=_0x4da3ab[_0x106051(0x1b1)](_0x577869),_0x3468af=_0x19adcd['getCellMatrix'](),{startColumn:_0x3d80ad,startRow:_0x594aff,endColumn:_0xb95e3b}=this[_0x106051(0x29b)](_0x218d1e,_0x19adcd),_0x59e3c7=_0x4da3ab[_0x106051(0x2ea)](),_0x24e45b=new _0x2f3841[(_0x106051(0x372))](this);_0x24e45b[_0x106051(0x312)](_0x3d71bb);const _0x10065d=[],_0x3145f6={};for(let _0xcf51a=_0x3d80ad;_0xcf51a<=_0xb95e3b;_0xcf51a++){const _0x56ad47=_0x3468af[_0x106051(0x1f6)](_0x594aff,_0xcf51a),_0x4c14e4=this[_0x106051(0x2b7)](_0x3d71bb,_0xcf51a),_0x19562b=this[_0x106051(0x186)](_0x4c14e4);if(_0x19562b)_0x24e45b['addField'](_0x19562b['getId'](),_0x19562b[_0x106051(0x1e1)]());else{const _0x2c0bf3=this['createDataFieldId']();let _0xd1183a=this[_0x106051(0xdb)](_0x56ad47,_0x59e3c7,_0x3145f6);_0x2f3841[_0x106051(0x300)](_0xd1183a)&&(_0xd1183a=_0x21d8ed[_0x106051(0x35e)][_0x106051(0x252)](_0xd1183a['f'],Number(_0xd1183a['v'])));const _0x6754d1=this[_0x106051(0x2e9)](_0xd1183a,_0xcf51a),_0x431d5b=new _0x2f3841[(_0x106051(0x2ff))](_0x2c0bf3,_0x6754d1,_0x2f3841[_0x106051(0x188)](0x3));_0x431d5b[_0x106051(0x18f)]=_0x4c14e4,this[_0x106051(0xdd)][_0x2c0bf3]=_0x431d5b,_0x24e45b['addField'](_0x2c0bf3,_0x6754d1),_0x10065d[_0x106051(0xbd)]({'index':_0xcf51a,'dataField':_0x431d5b});}}return{'updateDataFieldList':_0x10065d,'collection':_0x24e45b};}['_getAutoName'](_0x25a7bb){const _0x3b160e=_0x4cc141;return this[_0x3b160e(0x1c3)][_0x3b160e(0x101)]()[_0x3b160e(0x183)]+'\x20'+_0x21d8ed[_0x3b160e(0x2d2)](_0x25a7bb);}['uniqueDataFieldName'](_0x37e3ab,_0x2b5e53){const _0x2fcf71=_0x4cc141;return _0x37e3ab==null||_0x37e3ab===''?this[_0x2fcf71(0x120)](_0x2b5e53):String(_0x37e3ab);}[_0x4cc141(0x114)](_0x59a47e){return this['collections'][_0x59a47e];}['addCollection'](_0x177299,_0x1f1b65,_0x477b2a,_0x83f51d){const _0x4913af=_0x4cc141;this[_0x4913af(0x323)][_0x177299]=_0x1f1b65,_0x1f1b65[_0x4913af(0x312)](_0x477b2a),this[_0x4913af(0x1c3)]['broadcastCollectionChange']({'token':_0x177299,'type':_0x53c554[_0x4913af(0x1b9)],'dataRangeInfo':_0x477b2a,'targetCellInfo':_0x83f51d});}[_0x4cc141(0xfb)](_0x3248ce,_0x2dd704){const _0x5e6c63=_0x4cc141,_0x564709=this['getCollection'](_0x3248ce),_0x36f3a3=_0x564709[_0x5e6c63(0xdf)]();let _0x338e26=0x0;for(const _0xf350f7 of _0x36f3a3){const _0x323d12=_0x564709[_0x5e6c63(0x2f7)](_0xf350f7),_0x14008c=this['getRangeKey'](_0x2dd704,_0x338e26);this[_0x5e6c63(0x320)](_0x323d12[_0x5e6c63(0x18f)],_0x14008c),_0x338e26++;}}[_0x4cc141(0x205)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x4cc141(0x20f)](_0x163a80,_0x5cc7d2){const _0x3948ab=_0x4cc141;if(this[_0x3948ab(0x114)](_0x163a80)){const _0x19a456=this[_0x3948ab(0xd7)](_0x5cc7d2),_0xa2f299=[];for(const _0x2c63d2 of _0x19a456)this[_0x3948ab(0x1c0)][_0x2c63d2]!==void 0x0&&_0xa2f299[_0x3948ab(0xbd)](this[_0x3948ab(0x1c0)][_0x2c63d2]);const _0x3dbda4=this['getNoUsedDataFieldIds'](_0x163a80),_0x1073e1=[],_0x3ede70=new Set(_0xa2f299);for(const _0x4a27fd of _0x3dbda4)_0x3ede70[_0x3948ab(0x23d)](_0x4a27fd)||_0x1073e1['push'](_0x4a27fd);return _0x1073e1;}}[_0x4cc141(0x2f6)](_0x37cb43,_0x1fee73,_0x11a12d,_0x1dfe81,_0x3e1100){const _0x63a91d=_0x4cc141;return _0x1fee73&&_0x1fee73[_0x63a91d(0x1f6)](_0x1dfe81,_0x3e1100)?_0x1fee73[_0x63a91d(0x1f6)](_0x1dfe81,_0x3e1100):_0x11a12d&&_0x11a12d['getValue'](_0x1dfe81,_0x3e1100)?_0x11a12d[_0x63a91d(0x1f6)](_0x1dfe81,_0x3e1100):_0x37cb43[_0x63a91d(0x1f6)](_0x1dfe81,_0x3e1100);}[_0x4cc141(0x335)](_0x4ffd83,_0x47af6d,_0x5b74e4,_0x1c5be7){const _0x67f599=_0x4cc141,_0x2ceaf0=this['dataFields'][_0x4ffd83];if(!_0x2ceaf0)return;const {subUnitId:_0x1d7c06,range:_0x5fd9,unitId:_0x367cc1}=_0x47af6d,_0x242f7b=this['_univerInstanceService'][_0x67f599(0x360)](_0x367cc1);if(!_0x242f7b){console['error']('workbook\x20is\x20not\x20found');return;}const _0x2c5c56=_0x242f7b['getSheetBySheetId'](_0x1d7c06),_0x365f68=_0x2c5c56[_0x67f599(0x1be)](),{arrayFormulaCellDataMatrix:_0x2e1f91,unitDataMatrix:_0x456785}=_0x1c5be7||{},{startRow:_0x2421ea,startColumn:_0x591d3e,endRow:_0x29d06f}=this[_0x67f599(0x29b)](_0x5fd9,_0x2c5c56);_0x2ceaf0[_0x67f599(0x196)]();const _0x2f0fee=_0x242f7b[_0x67f599(0x2ea)](),_0x285299={},_0x451be8=this[_0x67f599(0x2f6)](_0x365f68,_0x2e1f91,_0x456785,_0x2421ea,_0x591d3e+_0x5b74e4);let _0x5380c8=this[_0x67f599(0xdb)](_0x451be8,_0x2f0fee,_0x285299);_0x2f3841[_0x67f599(0x300)](_0x5380c8)&&(_0x5380c8=_0x21d8ed[_0x67f599(0x35e)]['format'](_0x5380c8['f'],Number(_0x5380c8['v'])));const _0x3e8b71=this[_0x67f599(0x2e9)](_0x5380c8,_0x591d3e+_0x5b74e4);_0x2ceaf0[_0x67f599(0x1f9)](_0x3e8b71);for(let _0x28dfb2=_0x2421ea+0x1;_0x28dfb2<=_0x29d06f;_0x28dfb2++){const _0x3ce65c=this[_0x67f599(0x2f6)](_0x365f68,_0x2e1f91,_0x456785,_0x28dfb2,_0x591d3e+_0x5b74e4);_0x2ceaf0[_0x67f599(0x274)](this[_0x67f599(0xdb)](_0x3ce65c,_0x2f0fee,_0x285299),_0x28dfb2-0x1-_0x2421ea);}}[_0x4cc141(0x17d)](_0xb8724c,_0x4af0d5,_0x26e6d2){const _0x5ea468=_0x4cc141,{subUnitId:_0x29557b,range:_0x20f5a0,unitId:_0x20c204}=_0x26e6d2,_0x3afe2f=this['_univerInstanceService'][_0x5ea468(0x360)](_0x20c204);if(!_0x3afe2f){console[_0x5ea468(0x2ec)](_0x5ea468(0x2e2));return;}const _0x557d7a=_0x3afe2f['getSheetBySheetId'](_0x29557b),_0x3e314b=_0x557d7a[_0x5ea468(0x1be)](),{startRow:_0x247f91,startColumn:_0x534021,endRow:_0x3f5e02}=this[_0x5ea468(0x29b)](_0x20f5a0,_0x557d7a),_0x671ea2=_0x3afe2f[_0x5ea468(0x2ea)](),_0x4d51a5={};for(const {dataField:_0x51e3b0,index:_0x5e9336}of _0x4af0d5){_0x51e3b0[_0x5ea468(0x196)]();const _0x245c62=this[_0x5ea468(0x2f6)](_0x3e314b,void 0x0,void 0x0,_0x247f91,_0x534021+_0x5e9336);let _0x4d26e2=this['adjustSheetCellData'](_0x245c62,_0x671ea2,_0x4d51a5);_0x2f3841[_0x5ea468(0x300)](_0x4d26e2)&&(_0x4d26e2=_0x21d8ed[_0x5ea468(0x35e)][_0x5ea468(0x252)](_0x4d26e2['f'],Number(_0x4d26e2['v'])));const _0x5cc22a=this[_0x5ea468(0x2e9)](_0x4d26e2,_0x534021+_0x5e9336);_0x51e3b0['setName'](_0x5cc22a);}_0xb8724c['updateAllDisplayName']();for(let _0x518249=_0x247f91+0x1;_0x518249<=_0x3f5e02;_0x518249++)for(const {index:_0x4dbcf4,dataField:_0x1d2354}of _0x4af0d5){const _0x410408=_0x3e314b[_0x5ea468(0x1f6)](_0x518249,_0x534021+_0x4dbcf4);_0x1d2354[_0x5ea468(0x274)](this['adjustSheetCellData'](_0x410408,_0x671ea2,_0x4d51a5),_0x518249-0x1-_0x247f91);}_0xb8724c[_0x5ea468(0x255)](_0x3f5e02-_0x247f91);}[_0x4cc141(0xd7)](_0x1bf941){const _0x48cda9=_0x4cc141,{range:_0xdb78f6}=_0x1bf941,{startColumn:_0x3071c2,endColumn:_0x403584}=_0xdb78f6,_0x24fe99=[];for(let _0x4db17c=_0x3071c2;_0x4db17c<=_0x403584;_0x4db17c++)_0x24fe99[_0x48cda9(0xbd)](this['getRangeKey'](_0x1bf941,_0x4db17c));return _0x24fe99;}[_0x4cc141(0xdb)](_0xf25d9c,_0xd80e82,_0x3c521b){const _0x35c1d8=_0x4cc141;if(_0xf25d9c){const {s:_0x4f6cb7,v:_0xc0ac40,t:_0x6d4d1c,p:_0x43bb79}=_0xf25d9c;if(_0x43bb79)return _0x40364e(_0x43bb79);const _0x4c5ed6=_0xd80e82[_0x35c1d8(0xca)](_0x4f6cb7);if(_0x4c5ed6&&_0x6d4d1c===_0x21d8ed[_0x35c1d8(0x281)]['NUMBER']&&_0x4c5ed6['n']){const {pattern:_0x13ddc7}=_0x4c5ed6['n'];_0x3c521b[_0x13ddc7]||(_0x3c521b[_0x13ddc7]=_0x21d8ed[_0x35c1d8(0x35e)][_0x35c1d8(0x1e3)](_0x13ddc7));const _0x4904f3=_0x3c521b[_0x13ddc7],_0x202f78=_0x4904f3['isDate'];if(_0x4904f3[_0x35c1d8(0x219)])return String(_0xc0ac40);if(_0x202f78)return{'v':_0xc0ac40,'f':_0x13ddc7};}if(_0x6d4d1c===_0x21d8ed['CellValueType'][_0x35c1d8(0x342)])return Number(_0xc0ac40);if(_0x6d4d1c===_0x21d8ed[_0x35c1d8(0x281)][_0x35c1d8(0x32a)]||_0x6d4d1c===_0x21d8ed[_0x35c1d8(0x281)]['FORCE_STRING'])return String(_0xc0ac40);if(_0x6d4d1c===void 0x0){const _0x63611d=Number(_0xc0ac40);if(!Number['isNaN'](_0x63611d)&&String(_0x63611d)===_0xc0ac40)return _0x63611d;}return _0xc0ac40!=null?_0xc0ac40:null;}else return null;}[_0x4cc141(0xce)](_0x427a91){const _0x48f71b=_0x4cc141,{sheetName:_0x3d548f,range:_0x48f7a7,unitId:_0x429288}=_0x427a91,_0x186bad=this[_0x48f71b(0x2a0)][_0x48f71b(0x360)](_0x429288);if(!_0x186bad)return console[_0x48f71b(0x2ec)](_0x48f71b(0x2e2)),{'header':[],'data':[]};const _0x2adfe7=_0x186bad['getSheetBySheetName'](_0x3d548f),_0x374546=_0x2adfe7[_0x48f71b(0x1be)](),{startRow:_0x5310ee,startColumn:_0x5e538a,endRow:_0x3aabf2,endColumn:_0x47fe99}=this[_0x48f71b(0x29b)](_0x48f7a7,_0x2adfe7),_0x5042b1=_0x186bad[_0x48f71b(0x2ea)](),_0x12c298=[],_0x37478d=[],_0x54d046={};for(let _0x4512ad=_0x5310ee;_0x4512ad<=_0x3aabf2;_0x4512ad++){const _0x59b901=[];for(let _0xc7b6fd=_0x5e538a;_0xc7b6fd<=_0x47fe99;_0xc7b6fd++){const _0x442cc0=_0x374546[_0x48f71b(0x1f6)](_0x4512ad,_0xc7b6fd);_0x4512ad===_0x5310ee?_0x12c298[_0x48f71b(0xbd)](_0x442cc0==null?null:String(_0x442cc0['v'])):_0x59b901[_0x48f71b(0xbd)](this['adjustSheetCellData'](_0x442cc0,_0x5042b1,_0x54d046));}_0x37478d['push'](_0x59b901);}return{'header':_0x12c298,'data':_0x37478d};}[_0x4cc141(0x1ae)](){return super['toJSON']();}['fromJSON'](_0x31628e){const _0x1de74f=_0x4cc141;super['fromJSON'](_0x31628e),this[_0x1de74f(0x346)]();}[_0x4cc141(0x294)](){const _0x2e02f1=_0x4cc141;super[_0x2e02f1(0x294)](),this[_0x2e02f1(0x1c0)]={},this[_0x2e02f1(0x1c3)]=null;}}const _0x2516eb=_0x3b6798=>{const _0x2cb9a7=_0x4cc141,{targetCellInfo:_0x166060}=_0x3b6798,{matrixCache:_0x2415bc,rangesCache:_0x519393}=_0x5b71d5({'filter':_0x2cb9a7(0x135),'row':'Row','column':_0x2cb9a7(0x36a),'values':'Values'},_0x166060),_0x47a65c=new _0x21d8ed['ObjectMatrix']();return _0x2415bc[_0x2cb9a7(0x232)]((_0x7c0449,_0x407d72,_0x364eb6)=>{_0x47a65c['setValue'](_0x7c0449,_0x407d72,_0x364eb6);}),{'matrix':_0x47a65c,'rangesCache':_0x519393};},_0xe6c4e8=_0x2f7d25=>{const _0x3e0340=_0x4cc141;let _0x47cc35;if(_0x2f7d25!=null&&_0x2f7d25['v']||(_0x2f7d25==null?void 0x0:_0x2f7d25['v'])===0x0){_0x47cc35||(_0x47cc35={});const _0x174914=_0x51cde0(_0x2f7d25['v']);typeof _0x174914==_0x3e0340(0x2f4)?_0x47cc35['t']=_0x21d8ed[_0x3e0340(0x281)][_0x3e0340(0x342)]:typeof _0x174914=='string'&&(_0x47cc35['t']=_0x21d8ed['CellValueType'][_0x3e0340(0x32a)]),_0x47cc35['v']=_0x174914;}return _0x47cc35;},_0x58c50a=(_0x2b3527,_0x4d4f58,_0x1a0bc2)=>{const _0x15a939=_0x4cc141;var _0x26484a,_0x2248c1,_0x216b47,_0x3ef5a3,_0x312f7d,_0x8f0432,_0x435e6c,_0x99d6e8,_0x440b10,_0xf739d9,_0x5c87c5,_0x5815d5;const {cornerView:_0x20a403,rowView:_0x186862,colView:_0x86ed43,dataView:_0x184c46,pageView:_0x3cba81,formatMap:_0x590843}=_0x2b3527,{row:_0x2edf00,col:_0x1bd667}=_0x4d4f58,_0x14be09=new _0x21d8ed[(_0x15a939(0x2ed))]();let _0x164116=_0x2edf00,_0x32a656=_0x1bd667;Object[_0x15a939(0x1df)](_0x3cba81[_0x15a939(0x10a)])[_0x15a939(0x2b9)](_0x40f19b=>{const _0x4e82a1=_0x15a939;Object['keys'](_0x3cba81[_0x4e82a1(0x10a)][Number(_0x40f19b)])['forEach'](_0x5b1978=>{const _0x2dba65=_0x4e82a1,_0x2543d6={..._0x3cba81[_0x2dba65(0x10a)][Number(_0x40f19b)][Number(_0x5b1978)]};_0x14be09[_0x2dba65(0x2cf)](Number(_0x40f19b)+_0x164116,Number(_0x5b1978)+_0x32a656,_0xe6c4e8(_0x2543d6));});});const _0x911d21=Object[_0x15a939(0x1df)](_0x3cba81[_0x15a939(0x10a)])[_0x15a939(0x170)];_0x164116+=_0x911d21+(_0x911d21?_0x4887ec:0x0);const _0x2cbf22=_0x20a403[_0x15a939(0x1a0)](),_0x5aa102=_0x20a403[_0x15a939(0x1a5)]();for(let _0x498a8e=0x0;_0x498a8e<_0x2cbf22;_0x498a8e++)for(let _0x480be0=0x0;_0x480be0<_0x5aa102;_0x480be0++){const _0x562abd={...(_0x2248c1=(_0x26484a=_0x20a403[_0x15a939(0x10a)])==null?void 0x0:_0x26484a[_0x498a8e])==null?void 0x0:_0x2248c1[_0x480be0]};((_0x216b47=_0x186862[_0x15a939(0x235)][_0x480be0])==null?void 0x0:_0x216b47[_0x15a939(0xe0)])&&_0x480be0===_0x5aa102-0x1&&_0x498a8e===_0x2cbf22-0x1&&(_0x562abd['v']=''+_0x1a0bc2[_0x15a939(0xf1)]),_0x14be09[_0x15a939(0x2cf)](_0x498a8e+_0x164116,_0x480be0+_0x32a656,_0xe6c4e8(_0x562abd));}_0x32a656+=_0x5aa102;const _0xcb31d3=_0x86ed43[_0x15a939(0x235)],_0x3372d9=_0x86ed43[_0x15a939(0x2e6)]()>=0x0?_0x86ed43[_0x15a939(0x2e6)]()+0x1:0x0,_0x40588a=_0x86ed43[_0x15a939(0x216)]()>=0x0?_0x86ed43[_0x15a939(0x216)]()+0x1:0x0;for(let _0x4e2e2d=0x0;_0x4e2e2d<_0x40588a;_0x4e2e2d++)for(let _0x487998=0x0;_0x487998<_0x3372d9;_0x487998++){const _0x539f2a={...(_0x312f7d=(_0x3ef5a3=_0x86ed43[_0x15a939(0x10a)])==null?void 0x0:_0x3ef5a3[_0x4e2e2d])==null?void 0x0:_0x312f7d[_0x487998]},_0xe7d125=(_0x8f0432=_0xcb31d3[_0x4e2e2d])==null?void 0x0:_0x8f0432['tableFieldId'],_0xf7442a=_0x590843[_0xe7d125];_0x539f2a['v']=_0xd4a5b0(_0x539f2a,_0x4e2e2d===0x0&&((_0x435e6c=_0x86ed43[_0x15a939(0x38d)](_0x487998+0x1))==null?void 0x0:_0x435e6c[_0x15a939(0xe0)]),_0xf7442a,_0x1a0bc2),_0x14be09[_0x15a939(0x2cf)](_0x4e2e2d+_0x164116,_0x487998+_0x32a656,_0xe6c4e8(_0x539f2a));}_0x164116+=_0x2cbf22;const _0x1f2418=_0x186862[_0x15a939(0x235)],_0x25f7b6=_0x186862[_0x15a939(0x2e6)]()>=0x0?_0x186862[_0x15a939(0x2e6)]()+0x1:0x0,_0x5a9394=_0x186862[_0x15a939(0x216)]()>=0x0?_0x186862[_0x15a939(0x216)]()+0x1:0x0;for(let _0xc1dd14=0x0;_0xc1dd14<_0x25f7b6;_0xc1dd14++)for(let _0x1b4202=0x0;_0x1b4202<_0x5a9394;_0x1b4202++){const _0x5b9b83={...(_0x440b10=(_0x99d6e8=_0x186862[_0x15a939(0x10a)])==null?void 0x0:_0x99d6e8[_0xc1dd14])==null?void 0x0:_0x440b10[_0x1b4202]},_0x50578f=(_0xf739d9=_0x1f2418[_0x1b4202])==null?void 0x0:_0xf739d9[_0x15a939(0xc0)],_0x3b7647=_0x590843[_0x50578f];_0x5b9b83['v']=_0xd4a5b0(_0x5b9b83,!0x1,_0x3b7647,_0x1a0bc2),_0x14be09['setValue'](_0xc1dd14+_0x164116,_0x1b4202+_0x1bd667,_0xe6c4e8(_0x5b9b83));}const _0x220775=_0x184c46[_0x15a939(0x1a0)](),_0x33054c=_0x184c46[_0x15a939(0x1a5)]();for(let _0x171ec9=0x0;_0x171ec9<_0x220775;_0x171ec9++)for(let _0x933045=0x0;_0x933045<_0x33054c;_0x933045++){const _0x5dd9e9={...(_0x5815d5=(_0x5c87c5=_0x184c46[_0x15a939(0x10a)])==null?void 0x0:_0x5c87c5[_0x171ec9])==null?void 0x0:_0x5815d5[_0x933045]};_0x14be09['setValue'](_0x171ec9+_0x164116,_0x933045+_0x32a656,_0xe6c4e8(_0x5dd9e9));}return _0x14be09;},_0xeba8ad=_0x14af42=>{const _0x534fa2=_0x4cc141,{view:_0x25c40c,targetCellInfo:_0x1eba8f,isEmpty:_0x2ab9c5,textInfo:_0x519778}=_0x14af42;if(_0x2ab9c5)return _0x2516eb(_0x14af42);const {pageView:_0x4789b6,cornerView:_0x3fe7bd,rowView:_0x54fc79,colView:_0x3d3893,dataView:_0x1c0f20}=_0x25c40c,_0xe5a4b=_0x167a54(_0x1eba8f,_0x4789b6,!0x0),_0x328723=_0x4789b6[_0x534fa2(0x2b2)]>=0x0?_0x4789b6[_0x534fa2(0x2b2)]+0x1:0x0,_0x5eba1b=_0x3fe7bd[_0x534fa2(0x1a0)](),_0x2f802a=_0x3fe7bd[_0x534fa2(0x1a5)](),_0x1d668d=_0xe5a4b['length']>0x0?_0x4887ec:0x0,_0x259437=_0x167a54({'row':_0x1eba8f[_0x534fa2(0x115)]+_0x328723+_0x1d668d,'col':_0x1eba8f[_0x534fa2(0x359)]},_0x3fe7bd,!0x1,!0x1),_0x5bd30d=_0x167a54({'row':_0x1eba8f[_0x534fa2(0x115)]+_0x328723+_0x1d668d+_0x5eba1b,'col':_0x1eba8f[_0x534fa2(0x359)]},_0x54fc79,!0x1,!0x0),_0x4a5b2e=_0x167a54({'row':_0x1eba8f['row']+_0x328723+_0x1d668d,'col':_0x1eba8f['col']+_0x2f802a},_0x3d3893,!0x1,!0x0),_0x363229=_0x167a54({'row':_0x1eba8f['row']+_0x328723+_0x1d668d+_0x5eba1b,'col':_0x1eba8f[_0x534fa2(0x359)]+_0x2f802a},_0x1c0f20,!0x1,!0x1),_0x1c9c77={'rowRanges':_0x5bd30d,'colRanges':_0x4a5b2e,'cornerRanges':_0x259437,'dataRanges':_0x363229,'pageRanges':_0xe5a4b};return{'matrix':_0x58c50a(_0x25c40c,_0x1eba8f,_0x519778),'rangesCache':_0x1c9c77};};var _0x4f2444=Object[_0x4cc141(0xe7)],_0x4b4268=Object[_0x4cc141(0x14c)],_0x35f64f=(_0x146835,_0x1800b7,_0x44287c,_0x3b4279)=>{const _0x1ac47d=_0x4cc141;for(var _0x2ff136=_0x3b4279>0x1?void 0x0:_0x3b4279?_0x4b4268(_0x1800b7,_0x44287c):_0x1800b7,_0x5b8e74=_0x146835[_0x1ac47d(0x170)]-0x1,_0x1b2617;_0x5b8e74>=0x0;_0x5b8e74--)(_0x1b2617=_0x146835[_0x5b8e74])&&(_0x2ff136=(_0x3b4279?_0x1b2617(_0x1800b7,_0x44287c,_0x2ff136):_0x1b2617(_0x2ff136))||_0x2ff136);return _0x3b4279&&_0x2ff136&&_0x4f2444(_0x1800b7,_0x44287c,_0x2ff136),_0x2ff136;},_0x4fd8c9=(_0x50d8a7,_0xd585af)=>(_0xf69e04,_0xcdcdb)=>_0xd585af(_0xf69e04,_0xcdcdb,_0x50d8a7);_0xb4db29[_0x4cc141(0x143)]=class extends _0x21d8ed[_0x4cc141(0x32e)]{constructor(_0x169b79,_0x3eab84,_0x5dfccc,_0x27c4a6,_0x4feca8,_0x3d7a2e){const _0x566980=_0x4cc141;super(),_0x128c18(this,_0x566980(0x249),new Map()),_0x128c18(this,'_pivotTableInstanceCache',new Map()),_0x128c18(this,_0x566980(0x344),new Map()),_0x128c18(this,'_textInfo'),_0x128c18(this,_0x566980(0x302),new _0x3f8a1b['Subject']()),_0x128c18(this,_0x566980(0x31b),this['_collectionChange$']['asObservable']()),_0x128c18(this,'_viewData$',new _0x3f8a1b['Subject']()),_0x128c18(this,_0x566980(0x30a),this[_0x566980(0x19d)][_0x566980(0x181)]()),_0x128c18(this,'_fieldsCollectionChange$',new _0x3f8a1b['Subject']()),_0x128c18(this,_0x566980(0x16d),this[_0x566980(0x2dd)][_0x566980(0x181)]()),_0x128c18(this,_0x566980(0x10d),new Map()),_0x128c18(this,'needSameDeleteModel',[]),_0x128c18(this,_0x566980(0x2d3),new Map()),(this[_0x566980(0xe9)]=_0x169b79,this[_0x566980(0x2a0)]=_0x3eab84,this['_lifecycleService']=_0x5dfccc,this[_0x566980(0x113)]=_0x27c4a6,this[_0x566980(0x198)]=_0x4feca8,this[_0x566980(0x2a5)]=_0x3d7a2e,this[_0x566980(0x2f2)]());}[_0x4cc141(0x101)](){const _0x5db8c6=_0x4cc141;return this[_0x5db8c6(0x2b6)]?this[_0x5db8c6(0x2b6)]:_0x2e617c;}[_0x4cc141(0x1e2)](_0xc03459){this['_textInfo']=_0xc03459;}[_0x4cc141(0xfb)](_0x3dffea){const _0x24b8a1=_0x4cc141;var _0x40e25d;const {from:_0x568d20,to:_0x3389a6,unitId:_0x412277,fromRange:_0x46b7a9,toRange:_0x3c06eb}=_0x3dffea;if(_0x568d20&&_0x3389a6){const _0x40c799=this[_0x24b8a1(0x18b)](_0x412277),_0x96fc90=this['_model'][_0x24b8a1(0xca)](_0x412277),_0x43e857=(_0x40e25d=this[_0x24b8a1(0x2a0)]['getUnit'](_0x412277))==null?void 0x0:_0x40e25d['getSheetBySheetId'](_0x3389a6[_0x24b8a1(0x18a)]);if(!_0x96fc90||!_0x43e857)return;const _0x3c8379=_0x43e857==null?void 0x0:_0x43e857[_0x24b8a1(0x1e1)]();for(const [_0x2521cf,_0x2ec8cf]of _0x96fc90['entries']())for(const [_0x5b7ece,_0x1561dd]of _0x2ec8cf[_0x24b8a1(0x194)]()){const {sourceRangeInfo:_0x5d2f6e}=_0x1561dd;if(_0x5d2f6e[_0x24b8a1(0x1b5)]===_0x412277&&_0x5d2f6e[_0x24b8a1(0x18a)]===_0x568d20[_0x24b8a1(0x18a)]&&_0x21d8ed[_0x24b8a1(0x251)]['contains'](_0x46b7a9,_0x5d2f6e[_0x24b8a1(0x171)])){const _0x36e2a3={'row':_0x5d2f6e[_0x24b8a1(0x171)][_0x24b8a1(0x364)]-_0x46b7a9[_0x24b8a1(0x364)],'col':_0x5d2f6e[_0x24b8a1(0x171)][_0x24b8a1(0x27d)]-_0x46b7a9[_0x24b8a1(0x27d)]},_0x12cb7a={'unitId':_0x412277,'subUnitId':_0x3389a6[_0x24b8a1(0x18a)],'sheetName':_0x3c8379,'range':{'startRow':_0x3c06eb['startRow']+_0x36e2a3[_0x24b8a1(0x115)],'endRow':_0x3c06eb[_0x24b8a1(0x364)]+_0x36e2a3['row']+_0x5d2f6e[_0x24b8a1(0x171)]['endRow']-_0x5d2f6e[_0x24b8a1(0x171)][_0x24b8a1(0x364)],'startColumn':_0x3c06eb['startColumn']+_0x36e2a3[_0x24b8a1(0x359)],'endColumn':_0x3c06eb[_0x24b8a1(0x27d)]+_0x36e2a3[_0x24b8a1(0x359)]+_0x5d2f6e[_0x24b8a1(0x171)]['endColumn']-_0x5d2f6e[_0x24b8a1(0x171)][_0x24b8a1(0x27d)]}};_0x40c799['handleMoveRange'](_0x5b7ece,_0x12cb7a);const _0x126aa6={..._0x1561dd,'sourceRangeInfo':_0x12cb7a};this[_0x24b8a1(0x136)](_0x412277,_0x3389a6[_0x24b8a1(0x18a)],_0x5b7ece,_0x126aa6),this[_0x24b8a1(0x1e7)]({'unitId':_0x412277,'token':_0x5b7ece,'type':_0x53c554[_0x24b8a1(0x2ef)],'oldSourceRangeInfo':_0x5d2f6e,'dataRangeInfo':_0x12cb7a,'targetCellInfo':_0x1561dd[_0x24b8a1(0xff)]}),this[_0x24b8a1(0x351)]({'unitId':_0x412277,'subUnitId':_0x3389a6[_0x24b8a1(0x18a)],'oldSubUnitId':_0x2521cf,'pivotTableId':_0x5b7ece,'pivotTableConfig':_0x126aa6,'collectionConfig':_0x40c799[_0x24b8a1(0x1ae)]()});}}}}[_0x4cc141(0x1e7)](_0x211736){const _0x23d6a2=_0x4cc141;this['_collectionChange$'][_0x23d6a2(0x37a)](_0x211736);}[_0x4cc141(0x18b)](_0x9ac82e){const _0x573d0c=_0x4cc141;let _0x211542=this[_0x573d0c(0x10d)][_0x573d0c(0xca)](_0x9ac82e);return _0x211542||(_0x211542=new _0x43e944(this,this[_0x573d0c(0x2a0)]),this[_0x573d0c(0x10d)][_0x573d0c(0x1e5)](_0x9ac82e,_0x211542)),_0x211542;}['getCollection'](_0x193f93,_0x64bf71){const _0x1c3c92=_0x4cc141;return this[_0x1c3c92(0x18b)](_0x193f93)[_0x1c3c92(0x323)][_0x64bf71];}['getUpdateRangeDeleteIds'](_0x2fa5fc,_0x443f19,_0x7229f){const _0x7abcaf=_0x4cc141;return this[_0x7abcaf(0x18b)](_0x2fa5fc)[_0x7abcaf(0x20f)](_0x443f19,_0x7229f);}['_ensurePivotMap'](_0xd07fa9,_0x6bff79){const _0x41eb28=_0x4cc141;let _0x2221df=this['_model'][_0x41eb28(0xca)](_0xd07fa9);_0x2221df||(_0x2221df=new Map(),this[_0x41eb28(0x249)][_0x41eb28(0x1e5)](_0xd07fa9,_0x2221df));let _0x132ca3=_0x2221df[_0x41eb28(0xca)](_0x6bff79);return _0x132ca3||(_0x132ca3=new Map(),_0x2221df[_0x41eb28(0x1e5)](_0x6bff79,_0x132ca3)),_0x132ca3;}[_0x4cc141(0x136)](_0x398b4e,_0xf250f8,_0x1a39c3,_0x4413f2){const _0x45176a=_0x4cc141;this[_0x45176a(0x174)](_0x398b4e,_0xf250f8)[_0x45176a(0x1e5)](_0x1a39c3,_0x4413f2);}[_0x4cc141(0xe2)](_0x28c0cd,_0x41e824,_0x212734){const _0x5c6693=_0x4cc141;var _0x203ca2,_0x37cec9,_0x118345,_0x532d0d;((_0x37cec9=(_0x203ca2=this[_0x5c6693(0x249)][_0x5c6693(0xca)](_0x28c0cd))==null?void 0x0:_0x203ca2[_0x5c6693(0xca)](_0x41e824))==null?void 0x0:_0x37cec9[_0x5c6693(0xca)](_0x212734))&&((_0x532d0d=(_0x118345=this[_0x5c6693(0x249)][_0x5c6693(0xca)](_0x28c0cd))==null?void 0x0:_0x118345[_0x5c6693(0xca)](_0x41e824))==null||_0x532d0d[_0x5c6693(0x270)](_0x212734));}[_0x4cc141(0x1c8)](_0x4becf8,_0xa47d5c){const _0x11ed57=_0x4cc141;this['_pivotTableInstanceCache'][_0x11ed57(0x1e5)](_0x4becf8,_0xa47d5c);}[_0x4cc141(0x211)](_0x1a2d8e){const _0x32486d=_0x4cc141;this['_pivotTableInstanceCache'][_0x32486d(0x270)](_0x1a2d8e);}[_0x4cc141(0x277)](_0xe95c9,_0x5db105){const _0x29d54a=_0x4cc141;let _0x1a3478=this[_0x29d54a(0x344)][_0x29d54a(0xca)](_0xe95c9);_0x1a3478||(_0x1a3478=new Map(),this[_0x29d54a(0x344)]['set'](_0xe95c9,_0x1a3478));let _0x571e3e=_0x1a3478[_0x29d54a(0xca)](_0x5db105);return _0x571e3e||(_0x571e3e=new Map(),_0x1a3478[_0x29d54a(0x1e5)](_0x5db105,_0x571e3e)),_0x571e3e;}[_0x4cc141(0x351)](_0x2ab60b){const _0x33de9d=_0x4cc141,{unitId:_0x266104,subUnitId:_0x1fa508,pivotTableId:_0x3e55c6,pivotTableConfig:_0x52452c,collectionConfig:_0x19525f}=_0x2ab60b,_0x399faf={'unitId':_0x266104,'subUnitId':_0x1fa508,'oldSubUnitId':_0x1fa508,'pivotTableId':_0x3e55c6,'pivotTableConfig':_0x52452c,'collectionConfig':_0x19525f};this[_0x33de9d(0x198)][_0x33de9d(0x1ba)](_0x2dbb4d['id'],_0x399faf,{'onlyLocal':!0x0});}[_0x4cc141(0x339)](_0x2bcfbb,_0x15b32e,_0x36429e,_0x56276b,_0x5eb224,_0x40e09a,_0xf852f3,_0xd3428=!0x1){const _0x3cbc6e=_0x4cc141;var _0x57eb60;this[_0x3cbc6e(0x198)][_0x3cbc6e(0x1ba)](_0x22622d['id'],{'single':{'unitId':_0x2bcfbb,'subUnitId':_0x15b32e,'type':_0x36429e,'pivotTableId':_0x56276b,'view':_0x5eb224,'pivotConfig':_0x40e09a},'collectionConfig':{[_0x2bcfbb]:_0xf852f3}},{'onlyLocal':!0x0});const _0x456bc8=!!((_0x57eb60=this['getPivotTableInstance'](_0x56276b))!=null&&_0x57eb60[_0x3cbc6e(0x333)]()),_0x25a19e=this[_0x3cbc6e(0xc5)](_0x2bcfbb,_0x15b32e,_0x56276b);_0x25a19e&&this[_0x3cbc6e(0x29d)]({'view':_0x5eb224,'pivotTableId':_0x56276b,'textInfo':this[_0x3cbc6e(0x101)](),'isEmpty':_0x456bc8,'targetCellInfo':_0x25a19e[_0x3cbc6e(0xff)]},_0xd3428);}[_0x4cc141(0x29d)](_0x26efbe,_0x1cab87){const _0x51f004=_0x4cc141,{targetCellInfo:_0x5edf13,pivotTableId:_0x3a59a8}=_0x26efbe,{unitId:_0x322f85,subUnitId:_0x1d9ee5}=_0x5edf13,_0x355e07=this[_0x51f004(0x277)](_0x322f85,_0x1d9ee5),_0x2add9=_0x355e07[_0x51f004(0xca)](_0x3a59a8);let _0x302fbc,_0x3bab27;_0x2add9&&(_0x302fbc=_0x2add9[_0x51f004(0x2d7)],_0x3bab27=_0x2add9[_0x51f004(0x2b3)]);const {rangesCache:_0x544d0b,matrix:_0x3f75ba}=_0xeba8ad(_0x26efbe);_0x355e07[_0x51f004(0x1e5)](_0x3a59a8,{'rangeCache':_0x544d0b,'matrix':_0x3f75ba,'oldMatrix':_0x3bab27,'oldRangeCache':_0x302fbc}),_0x1cab87||this[_0x51f004(0x19d)][_0x51f004(0x37a)]({'unitId':_0x322f85,'subUnitId':_0x1d9ee5,'pivotTableId':_0x3a59a8});}[_0x4cc141(0x20e)](_0x519c5d,_0x198ca4,_0x10cc61,_0x1ce000,_0x72d22d){const _0x589bda=_0x4cc141;this['_updateModelCache'](_0x519c5d,_0x198ca4,_0x10cc61,_0x72d22d),this[_0x589bda(0x1c8)](_0x10cc61,_0x1ce000);}[_0x4cc141(0x1e8)](_0x41c4c9,_0x24ecea,_0x45c89c){const _0x3077c2=_0x4cc141,_0x5a2240=this[_0x3077c2(0x18b)](_0x41c4c9);_0x5a2240[_0x3077c2(0x1fc)](_0x45c89c)[_0x3077c2(0x2b9)](_0x25b643=>{const _0x43108a=_0x3077c2;_0x5a2240[_0x43108a(0x23a)](_0x25b643);}),this[_0x3077c2(0x22b)](_0x41c4c9,_0x45c89c),this['_deleteModelCache'](_0x41c4c9,_0x24ecea,_0x45c89c),this[_0x3077c2(0x211)](_0x45c89c);}[_0x4cc141(0x1d8)](_0x12e066,_0x4e88e0,_0x422742,_0xa7e6c){this['_updateModelCache'](_0x12e066,_0x4e88e0,_0x422742,_0xa7e6c);}[_0x4cc141(0xc5)](_0x395727,_0x144753,_0x3771f8){const _0x58a656=_0x4cc141;var _0xf4d983,_0x10c373;const _0xe38b73=(_0x10c373=(_0xf4d983=this[_0x58a656(0x249)][_0x58a656(0xca)](_0x395727))==null?void 0x0:_0xf4d983[_0x58a656(0xca)](_0x144753))==null?void 0x0:_0x10c373[_0x58a656(0xca)](_0x3771f8);if(_0xe38b73)return _0xe38b73;}[_0x4cc141(0x161)](_0x3281bc,_0x44a6a7,_0x249478){const _0x1cca45=_0x4cc141;var _0x22e685,_0x1cbf05;const _0x26816c=(_0x1cbf05=(_0x22e685=this[_0x1cca45(0x249)][_0x1cca45(0xca)](_0x3281bc))==null?void 0x0:_0x22e685['get'](_0x44a6a7))==null?void 0x0:_0x1cbf05[_0x1cca45(0xca)](_0x249478);if(_0x26816c)return _0x26816c['fieldsConfig'];}[_0x4cc141(0xec)](_0x2f3bb5){const _0x350a5a=_0x4cc141;return this[_0x350a5a(0x21f)]['get'](_0x2f3bb5);}[_0x4cc141(0x147)](_0x2859cc){const _0x2d0c73=_0x4cc141;this[_0x2d0c73(0x249)][_0x2d0c73(0x270)](_0x2859cc);const _0x34d32f=this[_0x2d0c73(0x10d)][_0x2d0c73(0xca)](_0x2859cc);_0x34d32f&&(_0x34d32f[_0x2d0c73(0x294)](),this[_0x2d0c73(0x10d)][_0x2d0c73(0x270)](_0x2859cc)),this[_0x2d0c73(0x344)][_0x2d0c73(0x270)](_0x2859cc),this[_0x2d0c73(0x1d7)][_0x2d0c73(0x2b9)](_0x484114=>{const _0x538a88=_0x2d0c73;_0x484114[_0x538a88(0x147)](_0x2859cc);});}[_0x4cc141(0x322)](_0x39b51d,_0x275db8,_0x43ca2e,_0x49b156){const _0xb13ee=_0x4cc141;return this[_0xb13ee(0x18b)](_0x43ca2e['unitId'])[_0xb13ee(0x322)](_0x39b51d,_0x275db8,_0x43ca2e,_0x49b156);}[_0x4cc141(0x26c)](_0x564f70){const _0x16b6be=_0x4cc141;return this[_0x16b6be(0x18b)](_0x564f70[_0x16b6be(0x1b5)])[_0x16b6be(0x26c)](_0x564f70);}['refreshData'](_0xb16c92,_0x1d2267,_0x3f342a){const _0x1c4f67=_0x4cc141;this['getDataFieldManager'](_0x3f342a[_0x1c4f67(0x1b5)])['refreshData'](_0xb16c92,_0x1d2267,_0x3f342a);}[_0x4cc141(0x20c)](_0x5220b3,_0x234438){const _0x5da1a3=_0x4cc141;this['getDataFieldManager'](_0x5220b3)[_0x5da1a3(0x23a)](_0x234438);}[_0x4cc141(0x22b)](_0x1412e2,_0x30b31c){const _0xe9cd31=_0x4cc141;this[_0xe9cd31(0x18b)](_0x1412e2)[_0xe9cd31(0x30e)](_0x30b31c);}[_0x4cc141(0x370)](_0x26bba0,_0x59ede9){const _0x2f9474=_0x4cc141;var _0x83071a;return(_0x83071a=this[_0x2f9474(0x249)][_0x2f9474(0xca)](_0x26bba0))==null?void 0x0:_0x83071a[_0x2f9474(0xca)](_0x59ede9);}['getTargetByPivotId'](_0x32bf7a){const _0x17a187=_0x4cc141;for(const [_0x2613cd,_0x1ab4ff]of this['_model'][_0x17a187(0x194)]())for(const [_0x2117f0,_0x548f6b]of _0x1ab4ff[_0x17a187(0x194)]())if(_0x548f6b[_0x17a187(0x23d)](_0x32bf7a))return{'unitId':_0x2613cd,'subUnitId':_0x2117f0};return null;}[_0x4cc141(0x2da)](_0x1e83ff,_0x4bd684,_0x5a2f37,_0x1a6348){const _0x115b2a=_0x4cc141,_0x42eff4=this['_ensureViewDataMap'](_0x1e83ff,_0x4bd684);_0x1a6348?_0x42eff4[_0x115b2a(0x1e5)](_0x5a2f37,_0x1a6348):_0x42eff4[_0x115b2a(0x270)](_0x5a2f37),this[_0x115b2a(0x19d)]['next']({'unitId':_0x1e83ff,'subUnitId':_0x4bd684,'pivotTableId':_0x5a2f37});}[_0x4cc141(0x294)](){const _0x5f02e3=_0x4cc141;super[_0x5f02e3(0x294)]();}[_0x4cc141(0x1d6)](_0x6dff51,_0x28b989,_0x10f81d){const _0x869ae6=_0x4cc141;var _0x5524ea,_0x596b3b;const _0x54d54b=(_0x596b3b=(_0x5524ea=this[_0x869ae6(0x344)][_0x869ae6(0xca)](_0x6dff51))==null?void 0x0:_0x5524ea[_0x869ae6(0xca)](_0x28b989))==null?void 0x0:_0x596b3b[_0x869ae6(0xca)](_0x10f81d);return _0x54d54b||null;}['addDirtyPivotTable'](_0x1085e7){this['updateDirtyPivotTable'](_0x1085e7);}[_0x4cc141(0x321)](_0x501c0b){const _0xc845e6=_0x4cc141,{token:_0x407c96,unitId:_0x33653c,subUnitId:_0x1dbe5a}=_0x501c0b,_0x446a52=_0x33653c+'-'+_0x1dbe5a+'-'+_0x407c96;this['_queryingMap'][_0xc845e6(0xca)](_0x446a52)&&clearTimeout(this[_0xc845e6(0x2d3)][_0xc845e6(0xca)](_0x446a52));const _0x49c293=setTimeout(()=>{const _0x5def67=_0xc845e6;this[_0x5def67(0x268)](_0x501c0b),this[_0x5def67(0x2d3)][_0x5def67(0x270)](_0x446a52);},_0x54c2a2);this['_queryingMap'][_0xc845e6(0x1e5)](_0x446a52,_0x49c293);}['queryDirtyPivotTable'](_0x41bfe5){const _0xd91d04=_0x4cc141,{unitId:_0x182066,subUnitId:_0xb4c345,token:_0x25ea71,type:_0x90edd4,pivotConfig:_0x41dd7b}=_0x41bfe5,_0x202579=this['getPivotTableInstance'](_0x25ea71),_0x5661ae=_0x202579==null?void 0x0:_0x202579[_0xd91d04(0x2e5)](),_0x1bb3f6=_0x41dd7b!=null?_0x41dd7b:this[_0xd91d04(0xc5)](_0x182066,_0xb4c345,_0x25ea71);_0x1bb3f6&&(_0x1bb3f6['isEmpty']=!!(_0x202579!=null&&_0x202579['isEmpty']())),(_0x5661ae||_0x90edd4===_0x2f104b[_0xd91d04(0x116)])&&this[_0xd91d04(0x339)](_0x182066,_0xb4c345,_0x90edd4,_0x25ea71,_0x5661ae,_0x1bb3f6,this[_0xd91d04(0x18b)](_0x182066)[_0xd91d04(0x1ae)]());}[_0x4cc141(0x1ae)](_0x23c8d4){const _0x52948e=_0x4cc141,_0xcac1bf={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x52948e(0x18b)](_0x23c8d4)&&(_0xcac1bf[_0x52948e(0x26a)][_0x23c8d4]=this[_0x52948e(0x18b)](_0x23c8d4)[_0x52948e(0x1ae)]()),this[_0x52948e(0x249)]['get'](_0x23c8d4)){_0xcac1bf['pivotTableConfigs'][_0x23c8d4]={};const _0x1b0115=this[_0x52948e(0x249)][_0x52948e(0xca)](_0x23c8d4);_0x1b0115!=null&&_0x1b0115[_0x52948e(0x2fa)]&&[..._0x1b0115[_0x52948e(0x1df)]()][_0x52948e(0x2b9)](_0x57e1c4=>{const _0x2e92d1=_0x52948e,_0x91d64f=_0x1b0115[_0x2e92d1(0xca)](_0x57e1c4);_0x91d64f!=null&&_0x91d64f[_0x2e92d1(0x2fa)]&&(_0xcac1bf[_0x2e92d1(0xee)][_0x23c8d4][_0x57e1c4]={},[..._0x91d64f[_0x2e92d1(0x1df)]()][_0x2e92d1(0x2b9)](_0x140d9a=>{const _0x3e7cc7=_0x2e92d1,_0x302b8a=_0x91d64f[_0x3e7cc7(0xca)](_0x140d9a);_0x302b8a&&(_0xcac1bf[_0x3e7cc7(0xee)][_0x23c8d4][_0x57e1c4][_0x140d9a]=_0x302b8a);}));});}return _0xcac1bf;}[_0x4cc141(0x228)](_0x1af757){const _0x5453f9=_0x4cc141;var _0x4e45cf;const {dataFieldManagerConfig:_0x3d1063,pivotTableConfigs:_0xdc9f74}=_0x1af757;_0x3d1063&&Object[_0x5453f9(0x1df)](_0x3d1063)[_0x5453f9(0x2b9)](_0x39d75a=>{const _0x42c51f=_0x5453f9;this[_0x42c51f(0x18b)](_0x39d75a)[_0x42c51f(0x228)](_0x3d1063[_0x39d75a]);});const _0x8d5ef5=[];if(_0xdc9f74){const _0x3c9b08=(_0x4e45cf=this['_injector']['get'](_0x21d8ed[_0x5453f9(0x299)])[_0x5453f9(0x260)](_0x271a3b[_0x5453f9(0x17e)]))!=null?_0x4e45cf:{},{ls:_0x14c734,pbk:_0x2d89a8}=_0x3c9b08,_0x5acc40=_0xac200a(_0x3eaceb,_0x14c734,_0x2d89a8)[_0x5453f9(0x310)];Object['keys'](_0xdc9f74)[_0x5453f9(0x2b9)](_0x10854d=>{const _0x3df350=_0x5453f9;let _0x56f9c9=0x0;const _0x2edfd6=_0xdc9f74[_0x10854d];Object['keys'](_0x2edfd6)[_0x3df350(0x2b9)](_0x2b30fa=>{const _0x202c7b=_0x3df350,_0xd3f8e4=_0x2edfd6[_0x2b30fa];Object[_0x202c7b(0x1df)](_0xd3f8e4)[_0x202c7b(0x2b9)](_0x14f6d7=>{const _0x5edcae=_0x202c7b,_0x5a9dda=_0xd3f8e4[_0x14f6d7];if(_0x5a9dda){if(_0x56f9c9>=_0x5acc40)return;_0x56f9c9++;const _0x189861=this[_0x5edcae(0x18b)](_0x10854d),_0x2e4c03=_0x189861[_0x5edcae(0x323)][_0x14f6d7],_0x760247=_0x2e4c03[_0x5edcae(0xdf)]();let _0x2a3e2a=0x0;for(const _0x3452b6 of _0x760247)_0x189861['refreshDataField'](_0x3452b6,_0x5a9dda[_0x5edcae(0x1fe)],_0x2a3e2a),_0x2a3e2a++;const _0x2c0418=new _0x2f3841[(_0x5edcae(0x328))](_0x2e4c03);_0x2c0418[_0x5edcae(0x228)](_0x5a9dda[_0x5edcae(0x112)]),this[_0x5edcae(0x20e)](_0x10854d,_0x2b30fa,_0x14f6d7,_0x2c0418,_0x5a9dda);const _0x68f3ef=_0x2c0418[_0x5edcae(0x2e5)]();_0x8d5ef5[_0x5edcae(0xbd)]({'unitId':_0x10854d,'subUnitId':_0x2b30fa,'pivotTableId':_0x14f6d7,'view':_0x68f3ef[_0x5edcae(0x1ae)](),'pivotConfig':_0x5a9dda,'type':_0x2f104b[_0x5edcae(0x28a)]});const _0x383d03=!!_0x2c0418[_0x5edcae(0x333)](),_0x2941fd={'view':_0x68f3ef,'pivotTableId':_0x14f6d7,'textInfo':this['getTextInfo'](),'isEmpty':_0x383d03,'targetCellInfo':_0x5a9dda[_0x5edcae(0xff)]};this[_0x5edcae(0x29d)](_0x2941fd,!0x1);}});});});}_0x3d1063&&Object[_0x5453f9(0x1df)](_0x3d1063)[_0x5453f9(0x2b9)](_0x2f0c99=>{const _0x4a5e63=_0x5453f9,_0x8608b1=this[_0x4a5e63(0x18b)](_0x2f0c99);this[_0x4a5e63(0x2dd)]['next'](_0x8608b1[_0x4a5e63(0x323)]);}),this[_0x5453f9(0x198)][_0x5453f9(0x1ba)](_0x22622d['id'],{'batch':_0x8d5ef5,'collectionConfig':_0x3d1063},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x242a2b=_0x4cc141;this['disposeWithMe'](this[_0x242a2b(0x2a5)]['registerPluginResource']({'toJson':_0xdee629=>JSON['stringify'](this[_0x242a2b(0x1ae)](_0xdee629)),'parseJson':_0x15a05b=>{const _0x4906da=_0x242a2b;if(!_0x15a05b)return{};try{return JSON[_0x4906da(0x172)](_0x15a05b);}catch{return{};}},'businesses':[_0x21d8ed['UniverInstanceType']['UNIVER_SHEET']],'pluginName':_0x479aae,'onLoad':(_0x40e620,_0x49ab68)=>{const _0x44f333=_0x242a2b;this[_0x44f333(0x228)](_0x49ab68);},'onUnLoad':_0x591a51=>{const _0x1b2469=_0x242a2b;this[_0x1b2469(0x147)](_0x591a51);}}));}},_0xb4db29[_0x4cc141(0x143)]=_0x35f64f([_0x4fd8c9(0x0,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x126)])),_0x4fd8c9(0x1,_0x21d8ed[_0x4cc141(0x367)]),_0x4fd8c9(0x2,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0xc7)])),_0x4fd8c9(0x3,_0x21d8ed['IConfigService']),_0x4fd8c9(0x4,_0x21d8ed[_0x4cc141(0x17a)]),_0x4fd8c9(0x5,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x17f)]))],_0xb4db29[_0x4cc141(0x143)]);const _0x4f79a5={0x0:{0x0:{'v':_0x4cc141(0x319),'s':_0x4a5bda}},0x2:{0x1:{'v':'','s':_0x4a5bda},0x2:{'v':'','s':_0x4a5bda},0x3:{'v':_0x4cc141(0x178),'s':_0x4a5bda},0x4:{'v':'','s':_0x4a5bda},0x5:{'v':'','s':_0x4a5bda}},0x3:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0x4:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0x5:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0x6:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0x7:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0x8:{0x0:{'v':_0x4cc141(0x115),'s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':_0x4cc141(0x1a9),'s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0x9:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0xa:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0xb:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0xc:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}},0xd:{0x0:{'v':'','s':_0x4a5bda},0x1:{'v':'','s':_0x5573be},0x2:{'v':'','s':_0x5573be},0x3:{'v':'','s':_0x5573be},0x4:{'v':'','s':_0x5573be},0x5:{'v':'','s':_0x5573be}}},_0x49092a={'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':[]},_0x5b71d5=(_0x58380c,_0x5818c8)=>{const _0x55ca7c=_0x4cc141,_0x371688=new _0x21d8ed[(_0x55ca7c(0x2ed))](),_0xb575ec=new _0x21d8ed['ObjectMatrix'](_0x4f79a5),{row:_0x4e1fc7,col:_0x5e2683}=_0x5818c8;_0xb575ec[_0x55ca7c(0x232)]((_0x59dcc3,_0x350c1e,_0x2b5163)=>{const _0x4f1e3d=_0x55ca7c;let _0x35cad3='';_0x2b5163['v']==='filter'?_0x35cad3=_0x58380c[_0x4f1e3d(0x319)]:_0x2b5163['v']===_0x4f1e3d(0x115)?_0x35cad3=_0x58380c[_0x4f1e3d(0x115)]:_0x2b5163['v']==='column'?_0x35cad3=_0x58380c['column']:_0x2b5163['v']==='values'&&(_0x35cad3=_0x58380c[_0x4f1e3d(0x1a9)]),_0x371688[_0x4f1e3d(0x2cf)](_0x59dcc3+_0x4e1fc7,_0x350c1e+_0x5e2683,{..._0x2b5163,'v':_0x35cad3});});const _0x24093e=_0x21d8ed[_0x55ca7c(0x1a1)][_0x55ca7c(0x21e)](_0x49092a);return Object['keys'](_0x49092a)[_0x55ca7c(0x2b9)](_0x3d9203=>{const _0x599dac=_0x55ca7c;_0x24093e[_0x3d9203]=_0x49092a[_0x3d9203][_0x599dac(0x324)](_0x2a6145=>({..._0x2a6145,'startRow':_0x2a6145['startRow']+_0x4e1fc7,'endRow':_0x2a6145[_0x599dac(0x296)]+_0x4e1fc7,'startColumn':_0x2a6145[_0x599dac(0x27d)]+_0x5e2683,'endColumn':_0x2a6145[_0x599dac(0x1b4)]+_0x5e2683}));}),{'matrixCache':_0x371688,'rangesCache':_0x24093e};};function _0x15efd3(_0x2c3037,_0x430456){const _0x12f033=_0x4cc141;let _0x1a1ead='';const _0x557039=this['getTextInfo']();switch(_0x430456){case _0x2f3841['PivotSubtotalTypeEnum']['average']:_0x1a1ead=_0x557039[_0x12f033(0x1cd)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x310)]:_0x1a1ead=_0x557039[_0x12f033(0x2c4)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x265)]:_0x1a1ead=_0x557039['sheets-pivot.countNumsName']+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)]['max']:_0x1a1ead=_0x557039[_0x12f033(0x1a3)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x2a7)]:_0x1a1ead=_0x557039[_0x12f033(0x315)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)]['product']:_0x1a1ead=_0x557039[_0x12f033(0x17c)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x2ee)]:_0x1a1ead=_0x557039['sheets-pivot.stdDevName']+_0x2c3037;break;case _0x2f3841['PivotSubtotalTypeEnum'][_0x12f033(0x287)]:_0x1a1ead=_0x557039[_0x12f033(0x144)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x23c)]:_0x1a1ead=_0x557039[_0x12f033(0x106)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x348)]:_0x1a1ead=_0x557039[_0x12f033(0x329)]+_0x2c3037;break;case _0x2f3841[_0x12f033(0x2c0)][_0x12f033(0x222)]:_0x1a1ead=_0x557039[_0x12f033(0x140)]+_0x2c3037;break;default:_0x1a1ead=_0x2c3037;break;}return _0x1a1ead;}function _0x2167ce(_0xe85b94,_0x40b2f2,_0x3a1bfa,_0x1f20d7,_0x3f03f0){const _0xc6a571=_0x4cc141;var _0x3b812f,_0x11a8ad,_0x433246,_0x2f2bbb,_0x63c9d2;const _0x489a52=_0x21d8ed[_0xc6a571(0x1f4)](_0xe85b94,_0x40b2f2),{rangesInfo:_0x1b20a2,areaInfo:_0x10ac5d,headerMap:_0x3a3ccf}=_0x3f03f0;if(!_0x1b20a2||!_0x10ac5d||!_0x3a3ccf)return;const _0x3378e4=Object['keys'](_0x1b20a2)[_0xc6a571(0x134)](_0xa30e56=>_0x1b20a2[_0xa30e56][_0xc6a571(0x145)](_0xc53a44=>_0x21d8ed[_0xc6a571(0x251)]['contains'](_0xc53a44,_0x489a52))),_0x5a6859=_0x10ac5d;let _0x4b4439,_0x546bea,_0xef0124;if(_0x3378e4===_0xc6a571(0x2a4))_0x4b4439=(_0x3b812f=_0x5a6859==null?void 0x0:_0x5a6859[_0xc6a571(0x254)])==null?void 0x0:_0x3b812f[_0xe85b94],_0x546bea=(_0x11a8ad=_0x3a3ccf==null?void 0x0:_0x3a3ccf['rowHeaderMap'])==null?void 0x0:_0x11a8ad[_0x40b2f2],_0xef0124=_0x546bea==null?void 0x0:_0x546bea[_0xc6a571(0xc0)];else{if(_0x3378e4===_0xc6a571(0x14f))_0x4b4439=(_0x433246=_0x5a6859==null?void 0x0:_0x5a6859[_0xc6a571(0x191)])==null?void 0x0:_0x433246[_0x40b2f2],_0x546bea=(_0x2f2bbb=_0x3a3ccf[_0xc6a571(0x19f)])==null?void 0x0:_0x2f2bbb[_0xe85b94+0x1+_0x40b2f2-_0x1b20a2[_0xc6a571(0x14f)][0x0][_0xc6a571(0x27d)]],_0xef0124=_0x546bea==null?void 0x0:_0x546bea['tableFieldId'];else{if(_0x3378e4===_0xc6a571(0x243))_0x4b4439=(_0x63c9d2=_0x5a6859==null?void 0x0:_0x5a6859[_0xc6a571(0x240)])==null?void 0x0:_0x63c9d2[_0x40b2f2],_0xef0124=_0x4b4439==null?void 0x0:_0x4b4439[_0xc6a571(0xc0)];else{if(_0x3378e4==='pageRanges'){const _0x215460=_0x3a1bfa==null?void 0x0:_0x3a1bfa['fi'];_0x215460!==void 0x0&&(_0xef0124=_0x1f20d7[_0xc6a571(0x2d0)](_0x215460));}}}}return{'filterId':_0xef0124,'info':_0x4b4439,'data':_0x3a1bfa,'headerInfo':_0x546bea};}function _0x127c1c(_0xaecf13,_0x14f8c6,_0x233de2){const _0x4f91f9=_0x4cc141,_0x3768fa=_0xaecf13['dataFieldsCollection'],_0x53c6fd=_0x3768fa[_0x4f91f9(0xdf)](),_0xb44397=new Set();_0xaecf13[_0x4f91f9(0xf5)](_0x15ee20=>{const _0x20e1e2=_0x4f91f9;_0xb44397['add'](_0x15ee20[_0x20e1e2(0x21b)]);});const _0x2a1a10=_0x53c6fd[_0x4f91f9(0x324)](_0x4652da=>{const _0x44c59b=_0x4f91f9,_0x28f75b=_0x3768fa[_0x44c59b(0x2f7)](_0x4652da);return{'checked':_0xb44397[_0x44c59b(0x23d)](_0x4652da),'dataFieldId':_0x28f75b['id'],'id':_0x28f75b['id'],'name':_0x3768fa[_0x44c59b(0x1db)](_0x28f75b['id']),'type':_0x28f75b[_0x44c59b(0x33d)](),'pivotTableId':_0x14f8c6};}),_0x28e053=[];_0xaecf13[_0x4f91f9(0x37d)](_0x2f3841[_0x4f91f9(0x332)][_0x4f91f9(0x2bd)],_0x357a7e=>{const _0x58b4e6=_0x4f91f9;_0x28e053[_0x58b4e6(0xbd)]({'dataFieldId':_0x357a7e['dataFieldId'],'tableFieldId':_0x357a7e[_0x58b4e6(0x388)](),'displayName':_0x357a7e[_0x58b4e6(0x1db)]()});});const _0xb3039f=[];_0xaecf13[_0x4f91f9(0x37d)](_0x2f3841['PivotTableFiledAreaEnum'][_0x4f91f9(0x36a)],_0x1d1062=>{const _0x383037=_0x4f91f9;_0xb3039f[_0x383037(0xbd)]({'dataFieldId':_0x1d1062[_0x383037(0x21b)],'tableFieldId':_0x1d1062['getId'](),'displayName':_0x1d1062[_0x383037(0x1db)]()});});const _0x37e577=[];if(_0xaecf13[_0x4f91f9(0x37d)](_0x2f3841[_0x4f91f9(0x332)][_0x4f91f9(0x16b)],_0x56922f=>{const _0x5dddbc=_0x4f91f9;_0x37e577[_0x5dddbc(0xbd)]({'dataFieldId':_0x56922f[_0x5dddbc(0x21b)],'tableFieldId':_0x56922f[_0x5dddbc(0x388)](),'displayName':_0x56922f[_0x5dddbc(0x1db)](),'format':_0x56922f[_0x5dddbc(0xd0)](),'subTotalType':_0x56922f[_0x5dddbc(0x130)]()});}),_0x37e577['length']>0x1){const _0x2cb483=_0xaecf13[_0x4f91f9(0x2ac)]();(_0xaecf13[_0x4f91f9(0x248)]()?_0xb3039f:_0x28e053)['splice'](_0x2cb483,0x0,{'dataFieldId':'','tableFieldId':_0x4f91f9(0x2db),'displayName':_0x4f91f9(0x141)});}const _0x4128e2=[];_0xaecf13[_0x4f91f9(0x37d)](_0x2f3841['PivotTableFiledAreaEnum'][_0x4f91f9(0x135)],_0x40c050=>{const _0x381371=_0x4f91f9;_0x4128e2[_0x381371(0xbd)]({'dataFieldId':_0x40c050['dataFieldId'],'tableFieldId':_0x40c050[_0x381371(0x388)](),'displayName':_0x40c050[_0x381371(0x1db)]()});});const _0x104cb5=_0x233de2[_0x4f91f9(0x1fe)];return{'sourceList':_0x2a1a10,'sourceRange':_0x104cb5,'rowFields':_0x28e053,'columnFields':_0xb3039f,'valueFields':_0x37e577,'filterFields':_0x4128e2,'positionInfo':_0x233de2[_0x4f91f9(0xff)]};}function _0xcd94b9(_0x53f021,_0x4f7163,_0x4a7696='',_0x52da7b={}){const _0x58b11c=_0x4cc141,_0x20d27e=_0x53f021['get'](_0x21d8ed[_0x58b11c(0x35f)]);for(const _0x37fe22 in _0x4f7163)if(Object['prototype'][_0x58b11c(0x14d)][_0x58b11c(0x2bb)](_0x4f7163,_0x37fe22)){const _0x67f773=_0x4a7696?_0x4a7696+'.'+_0x37fe22:_0x37fe22;typeof _0x4f7163[_0x37fe22]==_0x58b11c(0x15a)&&_0x4f7163[_0x37fe22]!==null&&!Array[_0x58b11c(0x22e)](_0x4f7163[_0x37fe22])?_0xcd94b9(_0x53f021,_0x4f7163[_0x37fe22],_0x67f773,_0x52da7b):_0x52da7b[_0x67f773]=_0x20d27e['t'](_0x67f773);}return _0x52da7b;}const _0x4558e4=_0x260fe8=>{const _0x12e59b=_0x4cc141;if(!_0x260fe8)return[];const {rowRanges:_0x219006,colRanges:_0x4259ff,cornerRanges:_0x118060,dataRanges:_0x1ea2c6,pageRanges:_0x137e27}=_0x260fe8,_0x542417=[..._0x4259ff,..._0x219006,..._0x1ea2c6,..._0x118060][_0x12e59b(0x319)](_0x2ab088=>_0x2ab088[_0x12e59b(0x364)]>=0x0&&_0x2ab088[_0x12e59b(0x27d)]>=0x0&&_0x2ab088[_0x12e59b(0x296)]>=0x0&&_0x2ab088[_0x12e59b(0x1b4)]>=0x0);let _0xe1db03=Number[_0x12e59b(0x10b)],_0x1dbef8=Number[_0x12e59b(0x16a)],_0x1e908b=Number['MAX_SAFE_INTEGER'],_0x91fd8a=Number[_0x12e59b(0x16a)];for(let _0xcfc7b4=0x0;_0xcfc7b4<_0x542417['length'];_0xcfc7b4++)_0xe1db03=Math[_0x12e59b(0x2a7)](_0xe1db03,_0x542417[_0xcfc7b4][_0x12e59b(0x364)]),_0x1dbef8=Math['max'](_0x1dbef8,_0x542417[_0xcfc7b4][_0x12e59b(0x296)]),_0x1e908b=Math[_0x12e59b(0x2a7)](_0x1e908b,_0x542417[_0xcfc7b4][_0x12e59b(0x27d)]),_0x91fd8a=Math['max'](_0x91fd8a,_0x542417[_0xcfc7b4][_0x12e59b(0x1b4)]);return[..._0x137e27,{'startRow':_0xe1db03,'endRow':_0x1dbef8,'startColumn':_0x1e908b,'endColumn':_0x91fd8a}];};function _0x4e9a2f(_0x3e84a2,_0x499b4a){const _0x30798a=_0x4cc141,_0x406bac=_0x499b4a[_0x30798a(0x2c3)][_0x30798a(0x18c)],{pivotTableId:_0x10b2d9,unitId:_0x1f5453,subUnitId:_0x40d95c}=_0x499b4a;if(!_0x406bac)return;const _0x1250dc=_0x3e84a2[_0x30798a(0xca)](_0xb4db29['SheetsPivotDataSourceModel']),_0x7ca31f=_0x1250dc[_0x30798a(0xec)](_0x10b2d9),_0x4f649e=_0x1250dc[_0x30798a(0xc5)](_0x1f5453,_0x40d95c,_0x10b2d9);if(!_0x7ca31f||!_0x4f649e)return;const _0x4fe91b=_0x7ca31f['getIndexesByPathStr'](_0x406bac[_0x30798a(0x34d)]);if(!(_0x4fe91b!=null&&_0x4fe91b['length']))return;const _0xb52e34=_0x4f649e['sourceRangeInfo'],{unitId:_0x44ebea,subUnitId:_0x4a8ce9,range:_0x397103}=_0xb52e34;let _0x58b10c=0x0;const _0x50a094=_0x7ca31f[_0x30798a(0x31a)][_0x30798a(0xdf)]()['reduce']((_0x2ac414,_0x1f0ab5)=>{const _0x34dc03=_0x30798a;var _0x40cc1e;const _0xc9ebd8=(_0x40cc1e=_0x7ca31f['getDataFieldByDataFieldId'](_0x1f0ab5))==null?void 0x0:_0x40cc1e[_0x34dc03(0x362)]();return _0xc9ebd8&&(_0x2ac414[String(_0x58b10c)]=_0xc9ebd8),_0x58b10c++,_0x2ac414;},{});return{'indexes':_0x4fe91b,'range':_0x397103,'sourceUnitId':_0x44ebea,'sourceSubUnitId':_0x4a8ce9,'formatMap':_0x50a094};}function _0x23d23a(_0x175917,_0x6b6ca7){const _0x1fdff0=_0x4cc141;if(!_0x175917||!_0x6b6ca7)return!0x0;const _0x129de4=_0x271a3b[_0x1fdff0(0x2ae)](_0x3e48fa,_0x51cc83),_0x516609=new Function(_0x1fdff0(0xe6)+_0x129de4)()(_0x175917,_0x6b6ca7)[_0x1fdff0(0x1c5)],_0x47373b=_0x271a3b['isFeatureAuthorizedWithinTime'](_0x516609,'sf',_0x23280f);return!((_0x516609==null?void 0x0:_0x516609['rt'])===_0x271a3b['ReleaseType'][_0x1fdff0(0x25f)]&&!_0x47373b);}function _0xac200a(_0x46a820,_0x40402c,_0x4854d0){const _0x2c6f70=_0x4cc141,_0xf5f17d={'count':_0x46a820,'timeValid':!0x1};if(!_0x40402c||!_0x4854d0)return _0xf5f17d;const _0x1ff4c5=_0x271a3b[_0x2c6f70(0x2ae)](_0x3e48fa,_0x51cc83),_0x470582=new Function(_0x2c6f70(0xe6)+_0x1ff4c5)()(_0x40402c,_0x4854d0);if(_0x470582!=null&&_0x470582[_0x2c6f70(0x22d)]){const _0x403247=_0x470582['message'],_0x290801=_0x271a3b[_0x2c6f70(0x129)](_0x403247,'sf',_0x23280f);return{'count':_0x271a3b[_0x2c6f70(0x358)](_0x403247,_0x290801,_0x2c6f70(0x2f0),_0x46a820,_0x46a820,0x0),'timeValid':_0x290801};}return _0xf5f17d;}function _0x5c0094(_0x30421d,_0x4fc1d7,_0x3ca370,_0x1eee50){const _0x2b1255=_0x4cc141,_0x4df735={'subUnitId':_0x3ca370,'unitId':_0x4fc1d7,'cellValue':_0x4cb34f[_0x2b1255(0x24f)](_0x1eee50)},_0x46f360=_0x4cb34f['SetRangeValuesUndoMutationFactory'](_0x30421d,_0x4df735);let _0x182ed0=!0x1;return new _0x21d8ed[(_0x2b1255(0x2ed))](_0x46f360[_0x2b1255(0x242)])['forValue']((_0x104232,_0x147cf8,_0x425966)=>{const _0x180c6f=_0x2b1255;if(!_0x182ed0&&_0x425966&&(_0x425966[_0x180c6f(0x2f8)]||_0x425966['f']||_0x425966['p']||_0x425966['s']||_0x425966['si']||_0x425966['t']||_0x425966['v']))return _0x182ed0=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x4cb34f[_0x2b1255(0x35a)]['id'],'params':_0x46f360},'setRangeValueRedoMutation':{'id':_0x4cb34f[_0x2b1255(0x35a)]['id'],'params':_0x4df735},'shouldClear':_0x182ed0};}function _0x1c25c8(_0x3c27ad){const {row:_0x507e59,col:_0xfdb3fb}=_0x3c27ad,_0x1190c1={'startRow':_0x507e59,'endRow':_0x507e59,'startColumn':_0xfdb3fb,'endColumn':_0xfdb3fb},_0x55f571={'startRow':_0x507e59+0x2,'endRow':_0x507e59+0xe,'startColumn':_0xfdb3fb,'endColumn':_0xfdb3fb+0x6};return[_0x1190c1,_0x55f571];}function _0x53abc2(_0x2ac061,_0x55aa7f,_0x4f591e){const _0x4db0e9=_0x4cc141,{cornerView:_0x7e0486,rowView:_0x27f1a9,colView:_0x582484,pageView:_0x32fbc0}=_0x2ac061,{row:_0x193ca5,col:_0x2295cd}=_0x55aa7f;if(_0x4f591e)return{'rowCount':_0x329fdd+_0x193ca5,'colCount':_0x29f0cb+_0x2295cd};const _0x460ce1=_0x32fbc0[_0x4db0e9(0x2b2)]>-0x1?_0x32fbc0['lastRow']+0x1:0x0,_0x3eadc2=_0x32fbc0[_0x4db0e9(0x14a)]>-0x1?_0x32fbc0[_0x4db0e9(0x14a)]:0x0,_0x39d0a8=_0x193ca5+_0x460ce1+(_0x460ce1?0x1:0x0)+_0x7e0486['rowCount']+_0x27f1a9['rowCount'],_0x178b05=_0x2295cd+_0x3eadc2,_0x1fdfd6=_0x2295cd+_0x7e0486[_0x4db0e9(0x377)]+_0x582484[_0x4db0e9(0x377)],_0x2f87be=Math['max'](_0x178b05,_0x1fdfd6);return{'rowCount':_0x39d0a8,'colCount':_0x2f87be};}function _0x4869f4(_0x2f78e6,_0x133658,_0x5e56c0,_0x2e0cc6){const _0x598a0a=_0x4cc141,{row:_0x254f3e,col:_0x19900e,unitId:_0x5f3612,subUnitId:_0x274708}=_0x5e56c0,_0x45c7aa=_0x53abc2(_0x133658,{'row':_0x254f3e,'col':_0x19900e},_0x2e0cc6),_0x4f70b9=_0x2f78e6[_0x598a0a(0xca)](_0x21d8ed[_0x598a0a(0x367)]),_0x1d5bf1=_0x4cb34f[_0x598a0a(0x24a)](_0x4f70b9,{'unitId':_0x5f3612,'subUnitId':_0x274708}),_0x5b9fb8=[],_0x2287bd=[];if(!_0x1d5bf1)return{'undos':_0x2287bd,'redos':_0x5b9fb8};const {worksheet:_0x3c506c}=_0x1d5bf1,_0x38a81c=_0x3c506c[_0x598a0a(0x1a0)](),_0x55c483=_0x3c506c[_0x598a0a(0x2c7)]();return _0x38a81c<_0x45c7aa['rowCount']&&(_0x5b9fb8[_0x598a0a(0xbd)]({'id':_0x4cb34f[_0x598a0a(0x1a2)]['id'],'params':{'unitId':_0x5f3612,'subUnitId':_0x274708,'range':{'startRow':_0x38a81c,'endRow':_0x45c7aa[_0x598a0a(0x1ce)]-0x1,'startColumn':0x0,'endColumn':_0x55c483-0x1}}}),_0x2287bd[_0x598a0a(0xbd)]({'id':_0x4cb34f[_0x598a0a(0x1ea)]['id'],'params':{'unitId':_0x5f3612,'subUnitId':_0x274708,'range':{'startRow':_0x38a81c,'endRow':_0x45c7aa[_0x598a0a(0x1ce)]-0x1,'startColumn':0x0,'endColumn':_0x55c483-0x1}}})),_0x55c483<_0x45c7aa[_0x598a0a(0x377)]&&(_0x5b9fb8['push']({'id':_0x4cb34f[_0x598a0a(0x275)]['id'],'params':{'unitId':_0x5f3612,'subUnitId':_0x274708,'range':{'startRow':0x0,'endRow':_0x38a81c-0x1,'startColumn':_0x55c483,'endColumn':_0x45c7aa[_0x598a0a(0x377)]-0x1}}}),_0x2287bd['push']({'id':_0x4cb34f[_0x598a0a(0x21d)]['id'],'params':{'unitId':_0x5f3612,'subUnitId':_0x274708,'range':{'startRow':0x0,'endRow':_0x38a81c-0x1,'startColumn':_0x55c483,'endColumn':_0x45c7aa['colCount']-0x1}}})),{'undos':_0x2287bd,'redos':_0x5b9fb8};}function _0xa85076(_0x46d863){const _0x45d4fc=_0x4cc141;let _0x2688ca=0x0;for(let _0x2f9f7b=0x0;_0x2f9f7b<_0x46d863[_0x45d4fc(0x170)];_0x2f9f7b++){const _0x51cebb=_0x46d863[_0x45d4fc(0x286)](_0x2f9f7b);_0x51cebb>=0x4e00&&_0x51cebb<=0x9fff||_0x51cebb>=0x3000&&_0x51cebb<=0x303f||_0x51cebb>=0xff00&&_0x51cebb<=0xffef?_0x2688ca+=0x2:_0x2688ca+=0x1;}return _0x2688ca;}function _0x5a745a(_0x17550f,_0x385507,_0xf89aa7,_0x253620){const _0x2bd65=_0x4cc141;var _0x156bd8,_0x141dcb,_0x299f43,_0x21e3a3;const {rowCount:_0x5f1232,colCount:_0xbc54cf,headerMap:_0x3b76c7}=_0x17550f,_0x76033f=0x64,_0x14e4e6=Math[_0x2bd65(0x2a7)](_0x5f1232,_0x76033f),_0x45c3d7=Math[_0x2bd65(0x2a7)](_0xbc54cf,_0x76033f);let _0x4b7c95='',_0x1e9881=0x0;for(let _0x42b1b2=0x0;_0x42b1b2<_0x14e4e6;_0x42b1b2++)for(let _0x44cb93=0x0;_0x44cb93<_0x45c3d7;_0x44cb93++){const _0x55a153={...(_0x141dcb=(_0x156bd8=_0x17550f[_0x2bd65(0x10a)])==null?void 0x0:_0x156bd8[_0x42b1b2])==null?void 0x0:_0x141dcb[_0x44cb93]},_0x4bfab6=(_0x299f43=_0x3b76c7[_0x42b1b2])==null?void 0x0:_0x299f43['tableFieldId'],_0x2f23cb=_0x253620[_0x4bfab6];let _0x15f5b1=_0x17550f[_0x2bd65(0x1f6)](_0x42b1b2,_0x44cb93);{const _0x1ceadc=_0xf89aa7?_0x44cb93===0x0&&((_0x21e3a3=_0x17550f['getHeaderMapItem'](_0x44cb93+0x1))==null?void 0x0:_0x21e3a3[_0x2bd65(0xe0)]):!0x1;_0x15f5b1=_0xd4a5b0(_0x55a153,_0x1ceadc,_0x2f23cb,_0x385507);}if(_0x15f5b1!==void 0x0){const _0x576236=_0xa85076(String(_0x15f5b1));_0x1e9881<_0x576236&&(_0x4b7c95=String(_0x15f5b1),_0x1e9881=_0x576236);}}return _0x4b7c95;}function _0x4888fa(_0x19eb8a){const _0x297b6a=_0x4cc141,{rowCount:_0x4e3892,colCount:_0x2d29fb}=_0x19eb8a;let _0x32307e='',_0x5cacf5=0x0;for(let _0x57b9e5=_0x4e3892-0x1;_0x57b9e5>0x0&&_0x57b9e5>_0x4e3892-0x3;_0x57b9e5--)for(let _0x1f5a43=0x0;_0x1f5a43<_0x2d29fb;_0x1f5a43++){const _0x2a8c84=_0x19eb8a['getValue'](_0x57b9e5,_0x1f5a43);if(_0x2a8c84!==void 0x0){const _0x413705=String(_0x2a8c84)[_0x297b6a(0x170)];_0x5cacf5<_0x413705&&(_0x32307e=String(_0x2a8c84),_0x5cacf5=_0x413705);}}return _0x32307e;}function _0x4881b8(_0xb3d3b4){const _0x103a8f=_0x4cc141,{rowCount:_0x254a63,colCount:_0x2106a1}=_0xb3d3b4;let _0x2f3579='',_0x96fe4f=0x0;for(let _0x408afc=0x0;_0x408afc<_0x254a63;_0x408afc++)for(let _0x28067f=0x0;_0x28067f<_0x2106a1;_0x28067f++){const _0x2a00d7=_0xb3d3b4[_0x103a8f(0x1f6)](_0x408afc,_0x28067f);if(_0x2a00d7!==void 0x0){const _0x3f750d=String(_0x2a00d7)[_0x103a8f(0x170)];_0x96fe4f<_0x3f750d&&(_0x2f3579=String(_0x2a00d7),_0x96fe4f=_0x3f750d);}}return _0x2f3579;}var _0x559c3a=Object[_0x4cc141(0xe7)],_0x43634a=Object['getOwnPropertyDescriptor'],_0x589e37=(_0x36aa3a,_0x314d9c,_0x49a1c7,_0x17b8c9)=>{const _0x3a1b90=_0x4cc141;for(var _0x2b7131=_0x17b8c9>0x1?void 0x0:_0x17b8c9?_0x43634a(_0x314d9c,_0x49a1c7):_0x314d9c,_0x10ea3c=_0x36aa3a[_0x3a1b90(0x170)]-0x1,_0xca4760;_0x10ea3c>=0x0;_0x10ea3c--)(_0xca4760=_0x36aa3a[_0x10ea3c])&&(_0x2b7131=(_0x17b8c9?_0xca4760(_0x314d9c,_0x49a1c7,_0x2b7131):_0xca4760(_0x2b7131))||_0x2b7131);return _0x17b8c9&&_0x2b7131&&_0x559c3a(_0x314d9c,_0x49a1c7,_0x2b7131),_0x2b7131;},_0x18adba=(_0x24ec94,_0x79d066)=>(_0x17ed86,_0x1d9903)=>_0x79d066(_0x17ed86,_0x1d9903,_0x24ec94);_0xb4db29[_0x4cc141(0x2fb)]=class extends _0x21d8ed['Disposable']{constructor(_0x10f41a,_0x49ce88,_0xae4127){const _0x55c58a=_0x4cc141;super(),_0x128c18(this,_0x55c58a(0x249),new Map()),_0x128c18(this,'_collectionConfigModel',new Map()),_0x128c18(this,_0x55c58a(0x27f),new Map()),_0x128c18(this,_0x55c58a(0x378),new Map()),_0x128c18(this,'_configVersion$',new _0x3f8a1b[(_0x55c58a(0x37e))]()),_0x128c18(this,_0x55c58a(0x276),new _0x3f8a1b[(_0x55c58a(0x37e))]()),_0x128c18(this,_0x55c58a(0x36d),this[_0x55c58a(0x276)][_0x55c58a(0x181)]()),_0x128c18(this,'_pivotConfigChange$',new _0x3f8a1b['Subject']()),_0x128c18(this,'pivotConfigChange$',this['_pivotConfigChange$'][_0x55c58a(0x181)]()),_0x128c18(this,_0x55c58a(0x2b6),{}),_0x128c18(this,_0x55c58a(0x105),this[_0x55c58a(0x29e)][_0x55c58a(0x181)]()),(this['_injector']=_0x10f41a,this['_commandService']=_0x49ce88,this[_0x55c58a(0x2a0)]=_0xae4127,this[_0x55c58a(0xe1)](),this[_0x55c58a(0x14e)]());}[_0x4cc141(0x14e)](){const _0x463f6f=_0x4cc141;this[_0x463f6f(0x2a6)](this['_univerInstanceService'][_0x463f6f(0x1c7)](_0x21d8ed['UniverInstanceType']['UNIVER_SHEET'])[_0x463f6f(0x197)](_0x60e351=>{const _0x31909d=_0x463f6f;this['deleteUnitId'](_0x60e351[_0x31909d(0x257)]());}));}[_0x4cc141(0x247)](){const _0x9f642d=_0x4cc141;this[_0x9f642d(0x276)]['next'](!0x0);}['_initLocale'](){const _0x4459ee=_0x4cc141,_0xde31e6=_0xcd94b9(this[_0x4459ee(0xe9)],_0x53c9d6,'',{});this[_0x4459ee(0x2b6)]=_0xde31e6,this[_0x4459ee(0x198)][_0x4459ee(0x1ba)](_0xd9a4da['id'],{'textInfo':_0xde31e6},{'onlyLocal':!0x0});}[_0x4cc141(0x101)](){const _0x34516f=_0x4cc141;return this[_0x34516f(0x2b6)];}[_0x4cc141(0x168)](_0x5dcb52,_0x343b17,_0x288800,_0x169fda,_0x3fe281){const _0x434181=_0x4cc141;this[_0x434181(0x25b)](_0x5dcb52,_0x343b17,_0x288800,_0x169fda),this[_0x434181(0x156)](_0x5dcb52,_0x343b17,_0x288800,_0x3fe281);}['getPivotTableConfig'](_0x17ea2b,_0x1c2495,_0x50f90f){const _0x15b90f=_0x4cc141;var _0x159027;const _0x1305c1=(_0x159027=this['_model'][_0x15b90f(0xca)](_0x17ea2b))==null?void 0x0:_0x159027[_0x15b90f(0xca)](_0x1c2495);if(_0x1305c1)return _0x1305c1[_0x15b90f(0xca)](_0x50f90f);}[_0x4cc141(0x13b)](_0xbed975,_0x5da3e9){const _0x14047e=_0x4cc141,_0x2b9986=this[_0x14047e(0x249)][_0x14047e(0xca)](_0xbed975);if(_0x2b9986){for(const [_0x390d60,_0x4a686e]of _0x2b9986[_0x14047e(0x194)]())for(const [_0x5a137e,_0x3b3239]of _0x4a686e['entries']())if(_0x5a137e===_0x5da3e9)return _0x3b3239['targetCellInfo'];}}[_0x4cc141(0x259)](_0x19f85f,_0xbf3bc1,_0x424725){const _0x1c6406=_0x4cc141,_0x31fd49=this[_0x1c6406(0xc5)](_0x19f85f,_0xbf3bc1,_0x424725);return _0x31fd49==null?void 0x0:_0x31fd49[_0x1c6406(0xff)];}[_0x4cc141(0x370)](_0x46d402,_0x272663){const _0x3fbc34=_0x4cc141;var _0x351281;return(_0x351281=this[_0x3fbc34(0x249)][_0x3fbc34(0xca)](_0x46d402))==null?void 0x0:_0x351281[_0x3fbc34(0xca)](_0x272663);}[_0x4cc141(0x36e)](_0x2c196f,_0xe1463c,_0x203297,_0x35f519){const _0x1fdf85=_0x4cc141,_0xe6c268=this[_0x1fdf85(0x174)](_0x2c196f,_0xe1463c);_0x35f519?_0xe6c268[_0x1fdf85(0x1e5)](_0x203297,_0x35f519):_0xe6c268[_0x1fdf85(0x270)](_0x203297),this[_0x1fdf85(0x167)][_0x1fdf85(0x37a)]({'unitId':_0x2c196f,'subUnitId':_0xe1463c,'pivotTableId':_0x203297,'pivotTableConfig':_0x35f519});}[_0x4cc141(0x114)](_0x4b7863,_0x48f344){const _0x39ff22=_0x4cc141;var _0x1993f9;return(_0x1993f9=this['_collectionConfigModel'][_0x39ff22(0xca)](_0x4b7863))==null?void 0x0:_0x1993f9[_0x39ff22(0x323)][_0x48f344];}[_0x4cc141(0x132)](_0x45d463,_0x21c52a){const _0x73fc9d=_0x4cc141;this['_collectionConfigModel']['set'](_0x45d463,_0x21c52a),this[_0x73fc9d(0x29e)][_0x73fc9d(0x37a)](Math[_0x73fc9d(0x1bb)]());}[_0x4cc141(0x174)](_0x1d5792,_0x1d4ab7){const _0x18b6ec=_0x4cc141;let _0x20dc3d=this[_0x18b6ec(0x249)][_0x18b6ec(0xca)](_0x1d5792);_0x20dc3d||(_0x20dc3d=new Map(),this['_model'][_0x18b6ec(0x1e5)](_0x1d5792,_0x20dc3d));let _0x51af2b=_0x20dc3d[_0x18b6ec(0xca)](_0x1d4ab7);return _0x51af2b||(_0x51af2b=new Map(),_0x20dc3d[_0x18b6ec(0x1e5)](_0x1d4ab7,_0x51af2b)),_0x51af2b;}[_0x4cc141(0x164)](_0xd671a8,_0x56863){const _0x50491a=_0x4cc141;let _0x5b801f=this[_0x50491a(0x27f)][_0x50491a(0xca)](_0xd671a8);_0x5b801f||(_0x5b801f=new Map(),this[_0x50491a(0x27f)][_0x50491a(0x1e5)](_0xd671a8,_0x5b801f));let _0x4af66f=_0x5b801f[_0x50491a(0xca)](_0x56863);return _0x4af66f||(_0x4af66f=new Map(),_0x5b801f[_0x50491a(0x1e5)](_0x56863,_0x4af66f)),_0x4af66f;}[_0x4cc141(0x1ef)](_0x14a868,_0x2f3e0a){const _0x31d085=_0x4cc141;let _0x250291=this[_0x31d085(0x378)][_0x31d085(0xca)](_0x14a868);_0x250291||(_0x250291=new Map(),this['_pivotTableMatrixInfo']['set'](_0x14a868,_0x250291));let _0x42f323=_0x250291['get'](_0x2f3e0a);return _0x42f323||(_0x42f323=new Map(),_0x250291[_0x31d085(0x1e5)](_0x2f3e0a,_0x42f323)),_0x42f323;}[_0x4cc141(0x156)](_0x1a5cdc,_0x41add4,_0x703b89,_0x2e6173){const _0x5f160c=_0x4cc141;var _0x1482f8;const _0x246b30=this[_0x5f160c(0x164)](_0x1a5cdc,_0x41add4),_0x273ff3=(_0x1482f8=_0x246b30['get'](_0x703b89))==null?void 0x0:_0x1482f8['oldRangeInfo'];_0x246b30[_0x5f160c(0x1e5)](_0x703b89,{'oldRangeInfo':_0x273ff3,'rangeInfo':_0x2e6173});}['updatePivotTableMatrixInfo'](_0x58e919,_0x3cdd97,_0x4cf512,_0x2172ab){const _0x198b41=_0x4cc141;var _0x54dfdb;const _0xdf68cf=this[_0x198b41(0x1ef)](_0x58e919,_0x3cdd97),_0x4d35d1=(_0x54dfdb=_0xdf68cf['get'](_0x4cf512))==null?void 0x0:_0x54dfdb['oldMatrix'];_0xdf68cf['set'](_0x4cf512,{'oldMatrix':_0x4d35d1,'matrix':_0x2172ab});}[_0x4cc141(0x357)](_0xdd1fa8,_0x36fe38,_0x1971cb){const _0x5e5d71=_0x4cc141;var _0x5640dc,_0x594dbf;return(_0x594dbf=(_0x5640dc=this[_0x5e5d71(0x27f)]['get'](_0xdd1fa8))==null?void 0x0:_0x5640dc[_0x5e5d71(0xca)](_0x36fe38))==null?void 0x0:_0x594dbf[_0x5e5d71(0xca)](_0x1971cb);}['getPivotTableMatrixInfo'](_0x525e3b,_0x43c0bb,_0xa56590){const _0x169859=_0x4cc141;var _0x84b67,_0x5b16e9;return(_0x5b16e9=(_0x84b67=this[_0x169859(0x378)][_0x169859(0xca)](_0x525e3b))==null?void 0x0:_0x84b67[_0x169859(0xca)](_0x43c0bb))==null?void 0x0:_0x5b16e9[_0x169859(0xca)](_0xa56590);}[_0x4cc141(0x147)](_0x463437){const _0x1d00fb=_0x4cc141;this[_0x1d00fb(0x249)][_0x1d00fb(0x270)](_0x463437),this[_0x1d00fb(0x20a)][_0x1d00fb(0x270)](_0x463437);}},_0xb4db29[_0x4cc141(0x2fb)]=_0x589e37([_0x18adba(0x0,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x126)])),_0x18adba(0x1,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x17a)])),_0x18adba(0x2,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x367)]))],_0xb4db29[_0x4cc141(0x2fb)]);var _0x10ad64=Object[_0x4cc141(0xe7)],_0x585bf2=Object[_0x4cc141(0x14c)],_0x46ccc0=(_0x182045,_0x2c5619,_0x50d370,_0x28766f)=>{const _0x47b2b4=_0x4cc141;for(var _0xffbf5b=_0x28766f>0x1?void 0x0:_0x28766f?_0x585bf2(_0x2c5619,_0x50d370):_0x2c5619,_0x144fe4=_0x182045[_0x47b2b4(0x170)]-0x1,_0x47833b;_0x144fe4>=0x0;_0x144fe4--)(_0x47833b=_0x182045[_0x144fe4])&&(_0xffbf5b=(_0x28766f?_0x47833b(_0x2c5619,_0x50d370,_0xffbf5b):_0x47833b(_0xffbf5b))||_0xffbf5b);return _0x28766f&&_0xffbf5b&&_0x10ad64(_0x2c5619,_0x50d370,_0xffbf5b),_0xffbf5b;},_0x2634a2=(_0x145559,_0x3ee7f2)=>(_0x43fe70,_0x565be4)=>_0x3ee7f2(_0x43fe70,_0x565be4,_0x145559);_0xb4db29['SheetsPivotTableAdaptorModel']=class extends _0x21d8ed[_0x4cc141(0x32e)]{constructor(_0x21b170,_0x2bffcc,_0x3a2cdf,_0x571cd9,_0x4404d8){const _0xe7198d=_0x4cc141;super(),_0x128c18(this,_0xe7198d(0x331),new Map()),_0x128c18(this,_0xe7198d(0x305),new Map()),_0x128c18(this,_0xe7198d(0x122),new _0x3f8a1b['Subject']()),_0x128c18(this,'markDirty$',this[_0xe7198d(0x122)][_0xe7198d(0x181)]()),_0x128c18(this,_0xe7198d(0x23e),new _0x3f8a1b[(_0xe7198d(0x37e))]()),_0x128c18(this,'viewUpdate$',this[_0xe7198d(0x23e)]['asObservable']()),_0x128c18(this,_0xe7198d(0x2b6)),(this['_localeService']=_0x21b170,this[_0xe7198d(0xe9)]=_0x2bffcc,this[_0xe7198d(0x301)]=_0x3a2cdf,this[_0xe7198d(0x2a0)]=_0x571cd9,this[_0xe7198d(0x218)]=_0x4404d8,this[_0xe7198d(0xe1)](),this[_0xe7198d(0x14e)]());}[_0x4cc141(0x14e)](){const _0x34d982=_0x4cc141;this[_0x34d982(0x2a6)](this[_0x34d982(0x2a0)][_0x34d982(0x1c7)](_0x21d8ed[_0x34d982(0x1ad)][_0x34d982(0x20b)])[_0x34d982(0x197)](_0x525edc=>{this['deleteUnitId'](_0x525edc['getUnitId']());}));}[_0x4cc141(0xe1)](){const _0x49507e=_0x4cc141;this['_textInfo']=_0xcd94b9(this[_0x49507e(0xe9)],_0x53c9d6,'',{});}[_0x4cc141(0x288)](_0x4edaf1){const _0x218491=_0x4cc141,{view:_0x53e6c2,unitId:_0x5417f5,subUnitId:_0x28568f,pivotTableId:_0xb19fbb,type:_0x1e2fce}=_0x4edaf1,_0x436690=this['_sheetsPivotTableConfigModel']['getPivotTableConfig'](_0x5417f5,_0x28568f,_0xb19fbb);if(!_0x53e6c2||!_0x436690||_0x1e2fce===_0x2f104b[_0x218491(0x116)])return;const {pageView:_0x36899b,cornerView:_0x3de99a,rowView:_0x520d1b,colView:_0x162903,dataView:_0x88f698}=_0x53e6c2,_0x4191fe=_0x436690[_0x218491(0xff)],_0x53dd94=_0x436690['isEmpty'],_0x271274=this[_0x218491(0x369)](_0x5417f5,_0x28568f),_0x5d0706=this[_0x218491(0x33a)](_0x5417f5,_0x28568f,_0xb19fbb);if(_0x53dd94)return this[_0x218491(0x1a6)](_0x4edaf1,_0x271274,_0x4191fe,_0x5d0706);{const _0x94c9a3=_0x167a54(_0x4191fe,_0x36899b,!0x0),_0x5ce64e=_0x36899b[_0x218491(0x2b2)]>=0x0?_0x36899b['lastRow']+0x1:0x0,_0x485222=_0x3de99a[_0x218491(0x1a0)](),_0x10022f=_0x3de99a[_0x218491(0x1a5)](),_0x2ceaec=_0x94c9a3[_0x218491(0x170)]>0x0?_0x4887ec:0x0,_0x103a7e=_0x167a54({'row':_0x4191fe[_0x218491(0x115)]+_0x5ce64e+_0x2ceaec,'col':_0x4191fe[_0x218491(0x359)]},_0x3de99a,!0x1,!0x1),_0x26d5bf=_0x167a54({'row':_0x4191fe[_0x218491(0x115)]+_0x5ce64e+_0x2ceaec+_0x485222,'col':_0x4191fe[_0x218491(0x359)]},_0x520d1b,!0x1,!0x0),_0x35f0b0=_0x167a54({'row':_0x4191fe['row']+_0x5ce64e+_0x2ceaec,'col':_0x4191fe[_0x218491(0x359)]+_0x10022f},_0x162903,!0x1,!0x0),_0x258bb9=_0x167a54({'row':_0x4191fe['row']+_0x5ce64e+_0x2ceaec+_0x485222,'col':_0x4191fe['col']+_0x10022f},_0x88f698,!0x1,!0x1);_0x5d0706[_0x218491(0x1de)]={'rowRanges':_0x26d5bf,'colRanges':_0x35f0b0,'cornerRanges':_0x103a7e,'dataRanges':_0x258bb9,'pageRanges':_0x94c9a3};const _0x1c7930=_0x108f64(this[_0x218491(0xe9)],_0x53e6c2,_0x436690,this[_0x218491(0x2b6)]),{valueMatrix:_0x2d0226,rowInfo:_0x38379f,colInfo:_0x1377e1,cornerInfo:_0x44622a,rowHeaderMap:_0x14f2ec,colHeaderMap:_0x3e5b86}=_0x1c7930;return _0x5d0706[_0x218491(0x2f9)]={'rowInfo':_0x38379f,'colInfo':_0x1377e1,'cornerInfo':_0x44622a},_0x5d0706[_0x218491(0x235)]={'rowHeaderMap':_0x14f2ec,'colHeaderMap':_0x3e5b86},_0x2d0226['forEach']((_0x243b70,_0x2d774d)=>{const _0x5f2a67=_0x218491;Object[_0x5f2a67(0x1df)](_0x2d774d)['forEach'](_0x53c26e=>{const _0x464d14=_0x5f2a67,_0xe3a1d7=+_0x53c26e,_0x33a15f=_0x2d0226[_0x464d14(0x1f6)](_0x243b70,_0xe3a1d7);_0x271274[_0x464d14(0x2cf)](_0x243b70,_0xe3a1d7,_0x33a15f);});}),this[_0x218491(0x23e)][_0x218491(0x37a)]({'unitId':_0x5417f5,'subUnitId':_0x28568f,'valueMatrix':_0x271274,'rangesCache':_0x5d0706[_0x218491(0x1de)],'pivotTableId':_0xb19fbb,'type':_0x4edaf1[_0x218491(0x16f)]}),this['_sheetsPivotTableConfigModel'][_0x218491(0x168)](_0x5417f5,_0x28568f,_0xb19fbb,_0x271274,_0x5d0706[_0x218491(0x1de)]),this[_0x218491(0x218)][_0x218491(0x34b)](_0x5417f5,_0x28568f,_0x342164,this[_0x218491(0x127)](_0x5d0706[_0x218491(0x1de)],_0xb19fbb)),{'rangeCache':_0x5d0706[_0x218491(0x1de)],'matrix':_0x271274};}}[_0x4cc141(0x1a6)](_0x542bb9,_0x38c03f,_0x3e4ea9,_0x19a6fa){const _0x2e622b=_0x4cc141,_0x4953c9=this['_localeService']['t'],{unitId:_0x8da4fe,subUnitId:_0x27484b,pivotTableId:_0x360a64}=_0x542bb9,_0x3b9c4d={'filter':_0x4953c9(_0x2e622b(0x264)),'row':_0x4953c9(_0x2e622b(0xfc)),'column':_0x4953c9(_0x2e622b(0xc6)),'values':_0x4953c9(_0x2e622b(0x381))},{matrixCache:_0xde7d3f,rangesCache:_0x1e6893}=_0x5b71d5(_0x3b9c4d,_0x3e4ea9);return _0xde7d3f[_0x2e622b(0x232)]((_0x26ced1,_0x22deae,_0x5e7bc1)=>{const _0x374ae3=_0x2e622b;_0x38c03f[_0x374ae3(0x2cf)](_0x26ced1,_0x22deae,_0x5e7bc1);}),_0x19a6fa[_0x2e622b(0x1de)]=_0x1e6893,this[_0x2e622b(0x23e)][_0x2e622b(0x37a)]({'unitId':_0x8da4fe,'subUnitId':_0x27484b,'valueMatrix':_0x38c03f,'rangesCache':_0x1e6893,'pivotTableId':_0x360a64,'type':_0x542bb9[_0x2e622b(0x16f)],'isEmpty':!0x0}),this[_0x2e622b(0x301)]['updateViewInfo'](_0x8da4fe,_0x27484b,_0x360a64,_0x38c03f,_0x1e6893),this[_0x2e622b(0x218)][_0x2e622b(0x34b)](_0x8da4fe,_0x27484b,_0x342164,this['_createExclusiveRange'](_0x1e6893,_0x360a64)),{'rangeCache':_0x19a6fa[_0x2e622b(0x1de)],'matrix':_0x38c03f};}[_0x4cc141(0x127)](_0x3ec27a,_0x1d4702){const _0x1deac0=_0x4cc141,_0x25d085=[],_0x2ccb5d=_0x4558e4(_0x3ec27a);for(const _0x1eed8f of _0x2ccb5d)_0x25d085[_0x1deac0(0xbd)]({'groupId':_0x1d4702,'range':_0x1eed8f});return _0x25d085;}[_0x4cc141(0xde)](_0x363eee){const _0x538c68=_0x4cc141;var _0x24b56d,_0x525d16,_0x6c4972,_0x449dcd;const {pivotTableId:_0x1a64e7,unitId:_0x1f17c0,subUnitId:_0x2a862b}=_0x363eee;if(!_0x1a64e7||!_0x1f17c0||!_0x2a862b)return;const _0x35f6c9=this[_0x538c68(0x369)](_0x1f17c0,_0x2a862b),_0xe34f3=(_0x525d16=(_0x24b56d=this[_0x538c68(0x331)][_0x538c68(0xca)](_0x1f17c0))==null?void 0x0:_0x24b56d[_0x538c68(0xca)](_0x2a862b))==null?void 0x0:_0x525d16[_0x538c68(0xca)](_0x1a64e7);if(_0xe34f3!=null&&_0xe34f3[_0x538c68(0x1de)]){for(const _0x1b0d99 of Object[_0x538c68(0x1df)](_0xe34f3[_0x538c68(0x1de)]))_0xe34f3['rangesInfo'][_0x1b0d99][_0x538c68(0x2b9)](_0x2f66b0=>{const _0x5cb48b=_0x538c68;for(let _0x2a5473=_0x2f66b0[_0x5cb48b(0x364)];_0x2a5473<=_0x2f66b0['endRow'];_0x2a5473++)for(let _0x180ccb=_0x2f66b0[_0x5cb48b(0x27d)];_0x180ccb<=_0x2f66b0[_0x5cb48b(0x1b4)];_0x180ccb++)_0x35f6c9[_0x5cb48b(0x341)](_0x2a5473,_0x180ccb);});}_0xe34f3&&((_0x449dcd=(_0x6c4972=this[_0x538c68(0x331)][_0x538c68(0xca)](_0x1f17c0))==null?void 0x0:_0x6c4972[_0x538c68(0xca)](_0x2a862b))==null||_0x449dcd[_0x538c68(0x270)](_0x1a64e7)),this[_0x538c68(0x23e)][_0x538c68(0x37a)]({'unitId':_0x1f17c0,'subUnitId':_0x2a862b,'valueMatrix':_0x35f6c9,'pivotTableId':_0x1a64e7,'rangesCache':void 0x0,'type':_0x363eee[_0x538c68(0x16f)]}),this['_exclusiveRangeService'][_0x538c68(0x209)](_0x1f17c0,_0x2a862b,_0x342164,_0x1a64e7);}[_0x4cc141(0x33a)](_0x46cea7,_0x11758c,_0x20048b){const _0x500e63=_0x4cc141;var _0x18093a,_0x4c191c,_0x45db87,_0x10f64b,_0x5e5d6d,_0x141aef;return this['_pivotRenderInfoCache'][_0x500e63(0x23d)](_0x46cea7)||this[_0x500e63(0x331)][_0x500e63(0x1e5)](_0x46cea7,new Map()),(_0x18093a=this[_0x500e63(0x331)]['get'](_0x46cea7))!=null&&_0x18093a[_0x500e63(0x23d)](_0x11758c)||(_0x4c191c=this[_0x500e63(0x331)][_0x500e63(0xca)](_0x46cea7))==null||_0x4c191c['set'](_0x11758c,new Map()),(_0x10f64b=(_0x45db87=this[_0x500e63(0x331)][_0x500e63(0xca)](_0x46cea7))==null?void 0x0:_0x45db87[_0x500e63(0xca)](_0x11758c))!=null&&_0x10f64b[_0x500e63(0x23d)](_0x20048b)||(_0x141aef=(_0x5e5d6d=this[_0x500e63(0x331)]['get'](_0x46cea7))==null?void 0x0:_0x5e5d6d[_0x500e63(0xca)](_0x11758c))==null||_0x141aef['set'](_0x20048b,{}),this[_0x500e63(0x331)][_0x500e63(0xca)](_0x46cea7)[_0x500e63(0xca)](_0x11758c)[_0x500e63(0xca)](_0x20048b);}[_0x4cc141(0x369)](_0x2abc8b,_0x6e5326){const _0x367c30=_0x4cc141;var _0x497b1,_0xec5b2;return this[_0x367c30(0x305)][_0x367c30(0x23d)](_0x2abc8b)||this['_pivotRenderValueMatrixCache'][_0x367c30(0x1e5)](_0x2abc8b,new Map()),(_0x497b1=this[_0x367c30(0x305)][_0x367c30(0xca)](_0x2abc8b))!=null&&_0x497b1[_0x367c30(0x23d)](_0x6e5326)||(_0xec5b2=this['_pivotRenderValueMatrixCache'][_0x367c30(0xca)](_0x2abc8b))==null||_0xec5b2['set'](_0x6e5326,new _0x21d8ed[(_0x367c30(0x2ed))]()),this[_0x367c30(0x305)]['get'](_0x2abc8b)[_0x367c30(0xca)](_0x6e5326);}[_0x4cc141(0x152)](_0x3f4ed4,_0x2a8ab9,_0x25257e,_0xe32806){const _0x2b6372=_0x4cc141;var _0xdbfaba,_0x27a6c0;const _0x2bd099=(_0x27a6c0=(_0xdbfaba=this[_0x2b6372(0x305)][_0x2b6372(0xca)](_0x3f4ed4))==null?void 0x0:_0xdbfaba[_0x2b6372(0xca)](_0x2a8ab9))==null?void 0x0:_0x27a6c0[_0x2b6372(0x1f6)](_0x25257e,_0xe32806);if(_0x2bd099!=null)return _0x2bd099;}[_0x4cc141(0x193)](_0x5e8914,_0x30142a,_0x5d9de1,_0x4f165d){const _0x2867b0=_0x4cc141;var _0x11c0d9;const _0xd2f5d6=_0x21d8ed[_0x2867b0(0x1f4)](_0x5d9de1,_0x4f165d),_0x42f90d=(_0x11c0d9=this['_pivotRenderInfoCache'][_0x2867b0(0xca)](_0x5e8914))==null?void 0x0:_0x11c0d9[_0x2867b0(0xca)](_0x30142a);return _0x42f90d?Array[_0x2867b0(0x2a8)](_0x42f90d['keys']())[_0x2867b0(0x134)](_0x5d6444=>{const _0x1954bf=_0x2867b0,_0xf2d730=_0x42f90d['get'](_0x5d6444),_0xc7d19c=_0xf2d730==null?void 0x0:_0xf2d730[_0x1954bf(0x1de)];return _0xc7d19c?Object['keys'](_0xc7d19c)['some'](_0x59f20c=>_0xc7d19c[_0x59f20c][_0x1954bf(0x145)](_0x39ce99=>_0x21d8ed['Rectangle'][_0x1954bf(0x2b8)](_0x39ce99,_0xd2f5d6))):!0x1;}):void 0x0;}[_0x4cc141(0x13c)](_0x5bcc3c,_0x789ffd,_0x20bf1b){const _0x237f7a=_0x4cc141;var _0x2f4b74;const _0x4f0370=(_0x2f4b74=this[_0x237f7a(0x331)][_0x237f7a(0xca)](_0x5bcc3c))==null?void 0x0:_0x2f4b74[_0x237f7a(0xca)](_0x789ffd),_0x7156ad=[];return _0x4f0370&&Array[_0x237f7a(0x2a8)](_0x4f0370['keys']())[_0x237f7a(0x2b9)](_0x10f85a=>{const _0x1ac010=_0x237f7a,_0x4e7049=_0x4f0370['get'](_0x10f85a),_0x16c3de=_0x4e7049==null?void 0x0:_0x4e7049[_0x1ac010(0x1de)];if(_0x16c3de)for(const _0x1cf274 of Object[_0x1ac010(0x1a9)](_0x16c3de)){let _0x558720=!0x1;for(const _0x40658b of _0x1cf274)if(_0x21d8ed[_0x1ac010(0x251)][_0x1ac010(0xed)](_0x40658b,_0x20bf1b)){_0x7156ad[_0x1ac010(0xbd)](_0x10f85a),_0x558720=!0x0;break;}if(_0x558720)break;}}),_0x7156ad;}[_0x4cc141(0x1f0)](_0x380260,_0x5ac15e){const _0x513754=_0x4cc141;var _0x3b987d,_0x375216;return(_0x375216=(_0x3b987d=this[_0x513754(0x305)]['get'](_0x380260))==null?void 0x0:_0x3b987d[_0x513754(0xca)](_0x5ac15e))!=null?_0x375216:new _0x21d8ed['ObjectMatrix']();}[_0x4cc141(0x32f)](_0x277053,_0x3edc6d,_0x5b84fe){const _0x106f64=_0x4cc141;var _0x453a95,_0x9b36d7;return(_0x9b36d7=(_0x453a95=this[_0x106f64(0x331)][_0x106f64(0xca)](_0x277053))==null?void 0x0:_0x453a95[_0x106f64(0xca)](_0x3edc6d))==null?void 0x0:_0x9b36d7[_0x106f64(0xca)](_0x5b84fe);}[_0x4cc141(0x147)](_0x7d9ab6){const _0xf48e2d=_0x4cc141;this[_0xf48e2d(0x331)][_0xf48e2d(0x270)](_0x7d9ab6),this['_pivotRenderValueMatrixCache'][_0xf48e2d(0x270)](_0x7d9ab6);}[_0x4cc141(0x340)](_0x5760c5,_0x5c7c15){const _0x1749ae=_0x4cc141;this[_0x1749ae(0x122)][_0x1749ae(0x37a)]({'unitId':_0x5760c5,'subUnitId':_0x5c7c15});}},_0xb4db29['SheetsPivotTableAdaptorModel']=_0x46ccc0([_0x2634a2(0x0,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x35f)])),_0x2634a2(0x1,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x126)])),_0x2634a2(0x2,_0x21d8ed['Inject'](_0xb4db29[_0x4cc141(0x2fb)])),_0x2634a2(0x3,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x367)])),_0x2634a2(0x4,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f[_0x4cc141(0x22a)]))],_0xb4db29[_0x4cc141(0x366)]);var _0x47b261=Object[_0x4cc141(0xe7)],_0x3f2f52=Object[_0x4cc141(0x14c)],_0x2c610e=(_0x324378,_0x223136,_0x171e5e,_0xf534b5)=>{for(var _0x1683a2=_0xf534b5>0x1?void 0x0:_0xf534b5?_0x3f2f52(_0x223136,_0x171e5e):_0x223136,_0x18f7b9=_0x324378['length']-0x1,_0x1f1508;_0x18f7b9>=0x0;_0x18f7b9--)(_0x1f1508=_0x324378[_0x18f7b9])&&(_0x1683a2=(_0xf534b5?_0x1f1508(_0x223136,_0x171e5e,_0x1683a2):_0x1f1508(_0x1683a2))||_0x1683a2);return _0xf534b5&&_0x1683a2&&_0x47b261(_0x223136,_0x171e5e,_0x1683a2),_0x1683a2;},_0x3bfe84=(_0x2b6584,_0x25d746)=>(_0x51609e,_0x2b7d4d)=>_0x25d746(_0x51609e,_0x2b7d4d,_0x2b6584);_0xb4db29[_0x4cc141(0x133)]=class extends _0x21d8ed[_0x4cc141(0x32e)]{constructor(_0x291536,_0x37528d){const _0x22396f=_0x4cc141;super(),_0x128c18(this,_0x22396f(0x2fe),new _0x21d8ed[(_0x22396f(0x307))]({'PIVOT_PERFORM_CHECK':_0x460ca6})),_0x128c18(this,_0x22396f(0x2d9),new _0x21d8ed[(_0x22396f(0x241))]({'PIVOT_MUTATION_GENERATE':_0x3cfc57})),(this['_sheetInterceptorService']=_0x291536,this[_0x22396f(0x104)]=_0x37528d,this[_0x22396f(0x25c)]());}[_0x4cc141(0x25c)](){const _0x2151d6=_0x4cc141;this[_0x2151d6(0x1da)]();}[_0x4cc141(0xc1)](_0x43098a){const _0x53363e=_0x4cc141;return this[_0x53363e(0x2fe)][_0x53363e(0x2a9)](_0x460ca6)(!0x1,_0x43098a);}[_0x4cc141(0x1da)](){const _0x45761f=_0x4cc141;this[_0x45761f(0x2a6)](this[_0x45761f(0x376)]['intercept'](_0x4cb34f[_0x45761f(0x15b)][_0x45761f(0x1f8)],{'priority':0xc8,'effect':_0x21d8ed['InterceptorEffectEnum'][_0x45761f(0x16b)]|_0x21d8ed[_0x45761f(0x13f)][_0x45761f(0xd9)],'handler':(_0x5663c4,_0xe9ee3a,_0x3da156)=>{const _0x505388=_0x45761f,{row:_0x39eac6,col:_0x57a0a7,unitId:_0x45cacf,subUnitId:_0x5a05aa,workbook:_0x50d9be}=_0xe9ee3a,_0x25a0b5=this[_0x505388(0x104)][_0x505388(0x152)](_0x45cacf,_0x5a05aa,_0x39eac6,_0x57a0a7);if(!_0x25a0b5)return _0x3da156(_0x5663c4);const _0x22a0a2={..._0x5663c4};(_0x25a0b5['v']||_0x25a0b5['v']===0x0)&&(_0x22a0a2['v']=_0x25a0b5['v']),_0x25a0b5['t']&&(_0x22a0a2['t']=_0x25a0b5['t']);const _0x46b0ea=(typeof(_0x5663c4==null?void 0x0:_0x5663c4['s'])==_0x505388(0x11f)?_0x50d9be[_0x505388(0x2ea)]()[_0x505388(0xca)](_0x5663c4==null?void 0x0:_0x5663c4['s']):_0x5663c4==null?void 0x0:_0x5663c4['s'])||{},_0x5afa44=_0x50d9be[_0x505388(0x2ea)]()[_0x505388(0xca)](_0x25a0b5['s']),_0x9a6a4c={..._0x5afa44,..._0x46b0ea};_0x5afa44!=null&&_0x5afa44['n']&&(_0x9a6a4c['n']=_0x5afa44['n']);const _0x10f358=_0x50d9be[_0x505388(0x2ea)]()[_0x505388(0x2cf)](_0x9a6a4c);return _0x22a0a2['s']=_0x10f358,(_0x25a0b5[_0x505388(0x24b)]===_0x2f3841[_0x505388(0x217)][_0x505388(0xe3)]||_0x25a0b5['pbt']===_0x2f3841['PivotCellStyleTypeEnum'][_0x505388(0x263)])&&(_0x22a0a2['fontRenderExtension']={},_0x22a0a2['fontRenderExtension'][_0x505388(0x327)]=_0x5a1e80),_0x3da156(_0x22a0a2);}}));}},_0xb4db29[_0x4cc141(0x133)]=_0x2c610e([_0x3bfe84(0x0,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f['SheetInterceptorService'])),_0x3bfe84(0x1,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29[_0x4cc141(0x366)]))],_0xb4db29['SheetsPivotTableService']);function _0x40f0f8(_0x4ce99f,_0x1b3d47){const _0x2a8b63=_0x4cc141;switch(_0x1b3d47){case _0x2f3841[_0x2a8b63(0x332)]['Value']:return _0x4ce99f['valueFields'];case _0x2f3841['PivotTableFiledAreaEnum']['Filter']:return _0x4ce99f['filterFields'];case _0x2f3841[_0x2a8b63(0x332)][_0x2a8b63(0x2bd)]:return _0x4ce99f[_0x2a8b63(0xf4)];case _0x2f3841[_0x2a8b63(0x332)][_0x2a8b63(0x36a)]:return _0x4ce99f['columnFields'];default:return[];}}function _0x47de07(_0x1333ca,_0x577b32){const _0x1ada8a=_0x4cc141;return _0x1333ca['measure'][_0x577b32]||_0x1333ca[_0x1ada8a(0xbb)][_0x577b32];}function _0x15ba51(_0x4b836a,_0x3bc662){const _0x4e6429=_0x4cc141,{area:_0x2c8cd,fieldJson:_0x558633,index:_0x4b6eab}=_0x3bc662;_0x2c8cd===_0x2f3841[_0x4e6429(0x332)][_0x4e6429(0x16b)]?_0x4b836a[_0x4e6429(0x1cb)][_0x558633['id']]=_0x558633:_0x4b836a[_0x4e6429(0xbb)][_0x558633['id']]=_0x558633,_0x40f0f8(_0x4b836a,_0x2c8cd)[_0x4e6429(0x35d)](_0x4b6eab,0x0,_0x558633['id']);}function _0x30e281(_0x36fbbf,_0x25e0ba){const _0x385321=_0x4cc141,{area:_0x2eb837,fieldId:_0x410982,index:_0x3e555f}=_0x25e0ba;_0x2eb837===_0x2f3841[_0x385321(0x332)]['Value']?delete _0x36fbbf[_0x385321(0x1cb)][_0x410982]:delete _0x36fbbf[_0x385321(0xbb)][_0x410982],_0x40f0f8(_0x36fbbf,_0x2eb837)[_0x385321(0x35d)](_0x3e555f,0x1);}function _0x53504c(_0x15b1ef,_0x50192d){const _0x5506f0=_0x4cc141,{fieldId:_0x15d5b9,name:_0x43c6fe}=_0x50192d,_0x12179a=_0x47de07(_0x15b1ef,_0x15d5b9);_0x12179a&&(_0x12179a[_0x5506f0(0x289)]=_0x43c6fe);}function _0x21ea4e(_0x2766c3,_0x56b78c){const _0x4c8419=_0x4cc141,{fieldId:_0x4c5e66,collapse:_0x50929a,item:_0x1209f9}=_0x56b78c;_0x1209f9!==void 0x0?(_0x2766c3[_0x4c8419(0x21c)][_0x4c5e66]=_0x2766c3[_0x4c8419(0x21c)][_0x4c5e66]||{},_0x2766c3['collapseInfo'][_0x4c5e66][_0x1209f9]=_0x50929a):_0x2766c3[_0x4c8419(0x21c)][_0x4c5e66]=_0x50929a;}function _0xae829f(_0x442124,_0x73128e){const _0x547f93=_0x4cc141,{fieldId:_0x5d689c,format:_0x50d70b}=_0x73128e,_0x46cc04=_0x47de07(_0x442124,_0x5d689c);_0x46cc04&&(_0x46cc04[_0x547f93(0x252)]=_0x50d70b);}function _0x59c518(_0x1cd13a,_0x458ec9){const _0x5be6da=_0x4cc141,{fieldId:_0x1dc877,filterInfo:_0x1bef54}=_0x458ec9,_0x3ca23b=_0x47de07(_0x1cd13a,_0x1dc877);_0x3ca23b&&(_0x3ca23b[_0x5be6da(0x192)]=_0x1bef54);}function _0x143be4(_0x5f332b,_0x21c82a){const _0x576663=_0x4cc141,{fieldId:_0x52c530,subtotalType:_0x4c3984}=_0x21c82a,_0x50403c=_0x47de07(_0x5f332b,_0x52c530);_0x50403c&&(_0x50403c[_0x576663(0x1af)]=_0x4c3984);}function _0x394d13(_0x5c13fb,_0x3b868d){const _0x3f898c=_0x4cc141,{fieldId:_0x10e2d7,oldArea:_0x30b4c0,area:_0xa5084f,oldIndex:_0x2ba5a2,index:_0x535026}=_0x3b868d,_0x53840c=_0x30b4c0!==_0x2f3841[_0x3f898c(0x332)][_0x3f898c(0x16b)]&&_0xa5084f===_0x2f3841[_0x3f898c(0x332)][_0x3f898c(0x16b)],_0x4ca2b9=_0x30b4c0===_0x2f3841[_0x3f898c(0x332)][_0x3f898c(0x16b)]&&_0xa5084f!==_0x2f3841[_0x3f898c(0x332)][_0x3f898c(0x16b)];if(_0x53840c||_0x4ca2b9){const _0x22ddac=_0x47de07(_0x5c13fb,_0x10e2d7);_0x22ddac&&(_0x53840c?(delete _0x5c13fb[_0x3f898c(0xbb)][_0x10e2d7],_0x5c13fb['measure'][_0x10e2d7]=_0x22ddac):(delete _0x5c13fb['measure'][_0x10e2d7],_0x5c13fb[_0x3f898c(0xbb)][_0x10e2d7]=_0x22ddac));}const _0x48d56f=_0x40f0f8(_0x5c13fb,_0x30b4c0),_0x4993b5=_0x40f0f8(_0x5c13fb,_0xa5084f);_0x48d56f['splice'](_0x2ba5a2,0x1),_0x4993b5[_0x3f898c(0x35d)](_0x535026,0x0,_0x10e2d7);}function _0xd20680(_0x5a16c2,_0x127d91){const _0x46ce81=_0x4cc141,{valuePosition:_0x5825c0,index:_0x6c07ef}=_0x127d91;_0x5a16c2[_0x46ce81(0x231)]=_0x5825c0,_0x5a16c2[_0x46ce81(0x1fa)]=_0x6c07ef;}function _0x4bb53e(_0x29f4a0,_0x574328){const _0x24789b=_0x4cc141,{tableFieldId:_0x53d01d,sourceName:_0x4af02d,dataFieldId:_0x3e45ab}=_0x574328,_0x5c2008=_0x47de07(_0x29f4a0,_0x53d01d);_0x5c2008&&(_0x5c2008[_0x24789b(0x343)]=_0x4af02d,_0x5c2008[_0x24789b(0x21b)]=_0x3e45ab);}function _0x32e921(_0x3de3b7,_0x29c86d){const _0x567a7a=_0x4cc141,{fieldId:_0x27369d,sortInfo:_0x5a98bf}=_0x29c86d,_0x1960e7=_0x47de07(_0x3de3b7,_0x27369d);_0x1960e7&&(_0x1960e7[_0x567a7a(0x185)]=_0x5a98bf);}function _0x278e97(_0x5abaca,_0x53f5bc){const _0x133902=_0x4cc141,{options:_0x592ce1}=_0x53f5bc;_0x5abaca[_0x133902(0x313)]={..._0x5abaca['options'],..._0x592ce1};}const _0x2a33f2={'type':_0x21d8ed[_0x4cc141(0x13a)]['MUTATION'],'id':_0x4cc141(0xf0),'handler'(_0xdebdda,_0x3d3040){const _0x130095=_0x4cc141;if(!_0x3d3040)return!0x1;if(!!_0xdebdda['get'](_0x21d8ed[_0x130095(0x299)])[_0x130095(0x260)](_0x14fdfb))return!0x0;const _0x71ef29=_0xdebdda[_0x130095(0xca)](_0xb4db29[_0x130095(0x143)]),{pivotTableId:_0x14dc6a,fieldJson:_0x5bfc8d,area:_0x100ccc,index:_0x4430d3,unitId:_0x5d9c17,subUnitId:_0x2ca0d8}=_0x3d3040,_0x96f304=_0x71ef29['getPivotTableInstance'](_0x14dc6a);if(!_0x96f304)return!0x1;let _0xf74425;_0x100ccc===_0x2f3841['PivotTableFiledAreaEnum'][_0x130095(0x16b)]?_0xf74425=_0x2f3841[_0x130095(0x177)](_0x5bfc8d):_0xf74425=_0x2f3841[_0x130095(0x125)](_0x5bfc8d),_0x96f304[_0x130095(0x361)](_0xf74425,_0x100ccc,_0x4430d3);const _0x350ee5=_0x71ef29[_0x130095(0x161)](_0x5d9c17,_0x2ca0d8,_0x14dc6a);_0x15ba51(_0x350ee5,_0x3d3040);const _0x41cab3=_0x71ef29[_0x130095(0xc5)](_0x5d9c17,_0x2ca0d8,_0x14dc6a);return _0x71ef29[_0x130095(0x24d)]({'unitId':_0x5d9c17,'subUnitId':_0x2ca0d8,'token':_0x14dc6a,'type':_0x2f104b[_0x130095(0x11d)],'pivotConfig':_0x41cab3}),!0x0;}},_0x481f84={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x1f2),'handler'(_0x372a2b,_0x4c4ca1){const _0x5093fb=_0x4cc141;if(!_0x4c4ca1)return!0x1;if(!!_0x372a2b['get'](_0x21d8ed[_0x5093fb(0x299)])['getConfig'](_0x14fdfb))return!0x0;const _0x5daee4=_0x372a2b[_0x5093fb(0xca)](_0xb4db29['SheetsPivotDataSourceModel']),{pivotTableId:_0xd1442d,fieldId:_0x112124,unitId:_0x11138d,subUnitId:_0x3b931e}=_0x4c4ca1,_0x3b9892=_0x5daee4[_0x5093fb(0xec)](_0xd1442d);if(!_0x3b9892)return!0x1;_0x3b9892['removeField'](_0x112124);const _0xfc3f11=_0x5daee4[_0x5093fb(0x161)](_0x11138d,_0x3b931e,_0xd1442d);_0x30e281(_0xfc3f11,_0x4c4ca1);const _0xac3b9c=_0x5daee4[_0x5093fb(0xc5)](_0x11138d,_0x3b931e,_0xd1442d);return _0x5daee4[_0x5093fb(0x24d)]({'unitId':_0x11138d,'subUnitId':_0x3b931e,'token':_0xd1442d,'type':_0x2f104b[_0x5093fb(0x11d)],'pivotConfig':_0xac3b9c}),!0x0;}},_0xa70dc3={'type':_0x21d8ed['CommandType'][_0x4cc141(0x187)],'id':_0x4cc141(0x12c),'handler'(_0x5dfb67,_0x15e7e5){const _0x865bf9=_0x4cc141;if(!_0x15e7e5)return!0x1;if(!!_0x5dfb67[_0x865bf9(0xca)](_0x21d8ed[_0x865bf9(0x299)])[_0x865bf9(0x260)](_0x14fdfb))return!0x0;const _0x1b0979=_0x5dfb67['get'](_0xb4db29['SheetsPivotDataSourceModel']),{unitId:_0x45ff2f,subUnitId:_0xa9309a,pivotTableId:_0x428d69,fieldId:_0x47f272,name:_0x2aa4dd}=_0x15e7e5,_0x16e1af=_0x1b0979[_0x865bf9(0xec)](_0x428d69);if(!_0x16e1af)return!0x1;_0x16e1af[_0x865bf9(0x203)](_0x47f272,_0x2aa4dd);const _0x6777d0=_0x1b0979[_0x865bf9(0x161)](_0x45ff2f,_0xa9309a,_0x428d69);return _0x53504c(_0x6777d0,_0x15e7e5),_0x1b0979[_0x865bf9(0x24d)]({'unitId':_0x45ff2f,'subUnitId':_0xa9309a,'token':_0x428d69,'type':_0x2f104b[_0x865bf9(0x11d)]}),!0x0;}},_0x2e0fbe={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x200),'handler'(_0x1200a3,_0x57e63d){const _0x166a48=_0x4cc141;if(!_0x57e63d)return!0x1;if(!!_0x1200a3['get'](_0x21d8ed[_0x166a48(0x299)])[_0x166a48(0x260)](_0x14fdfb))return!0x0;const _0x10eb5e=_0x1200a3[_0x166a48(0xca)](_0xb4db29[_0x166a48(0x143)]),{unitId:_0x4a06a7,subUnitId:_0x46f508,pivotTableId:_0x4cf9bf,fieldId:_0x45830f,collapse:_0x26b1c5,item:_0x37bd0e}=_0x57e63d,_0x3bc291=_0x10eb5e[_0x166a48(0xec)](_0x4cf9bf);if(!_0x3bc291)return!0x1;_0x3bc291[_0x166a48(0x146)](_0x45830f,_0x26b1c5,_0x37bd0e);const _0x8d96d2=_0x10eb5e[_0x166a48(0x161)](_0x4a06a7,_0x46f508,_0x4cf9bf);return _0x21ea4e(_0x8d96d2,_0x57e63d),_0x10eb5e['addDirtyPivotTable']({'unitId':_0x4a06a7,'subUnitId':_0x46f508,'token':_0x4cf9bf,'type':_0x2f104b['Set']}),!0x0;}},_0x285527={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':'sheet.mutation.set-pivot-format','handler'(_0x1c5b1c,_0x52d1a3){const _0x400501=_0x4cc141;if(!_0x52d1a3)return!0x1;if(!!_0x1c5b1c[_0x400501(0xca)](_0x21d8ed[_0x400501(0x299)])[_0x400501(0x260)](_0x14fdfb))return!0x0;const _0x50bbeb=_0x1c5b1c[_0x400501(0xca)](_0xb4db29[_0x400501(0x143)]),{unitId:_0x515226,subUnitId:_0x2b859a,pivotTableId:_0x5365d3,fieldId:_0x552aff,format:_0x2b741b}=_0x52d1a3,_0x2260cf=_0x50bbeb['getPivotTableInstance'](_0x5365d3);if(!_0x2260cf)return!0x1;_0x2260cf['setFieldFormat'](_0x552aff,_0x2b741b);const _0x516e24=_0x50bbeb[_0x400501(0x161)](_0x515226,_0x2b859a,_0x5365d3);return _0xae829f(_0x516e24,_0x52d1a3),_0x50bbeb[_0x400501(0x24d)]({'unitId':_0x515226,'subUnitId':_0x2b859a,'token':_0x5365d3,'type':_0x2f104b[_0x400501(0x11d)]}),!0x0;}},_0x192d4f={'type':_0x21d8ed['CommandType'][_0x4cc141(0x187)],'id':_0x4cc141(0x236),'handler'(_0x40143e,_0x4c8676){const _0x3d6bd8=_0x4cc141;if(!_0x4c8676)return!0x1;if(!!_0x40143e[_0x3d6bd8(0xca)](_0x21d8ed[_0x3d6bd8(0x299)])[_0x3d6bd8(0x260)](_0x14fdfb))return!0x0;const _0x4941cd=_0x40143e[_0x3d6bd8(0xca)](_0xb4db29[_0x3d6bd8(0x143)]),{unitId:_0x466e7a,subUnitId:_0x566548,pivotTableId:_0x4c6c83,fieldId:_0xc48991,filterInfo:_0x50ebe2}=_0x4c8676,_0x2262ba=_0x4941cd[_0x3d6bd8(0xec)](_0x4c6c83);if(!_0x2262ba)return!0x1;_0x2262ba[_0x3d6bd8(0x119)](_0xc48991,_0x50ebe2);const _0x58ceda=_0x4941cd[_0x3d6bd8(0x161)](_0x466e7a,_0x566548,_0x4c6c83);return _0x59c518(_0x58ceda,_0x4c8676),_0x4941cd[_0x3d6bd8(0x24d)]({'unitId':_0x466e7a,'subUnitId':_0x566548,'token':_0x4c6c83,'type':_0x2f104b[_0x3d6bd8(0x11d)]}),!0x0;}},_0x5c8eea={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x1bc),'handler'(_0x21f68b,_0x49f7aa){const _0x278873=_0x4cc141;if(!_0x49f7aa)return!0x1;if(!!_0x21f68b[_0x278873(0xca)](_0x21d8ed['IConfigService'])[_0x278873(0x260)](_0x14fdfb))return!0x0;const _0x2f1329=_0x21f68b['get'](_0xb4db29[_0x278873(0x143)]),{unitId:_0xf2ad1,subUnitId:_0x3313c5,pivotTableId:_0x42d025,options:_0x3ac970}=_0x49f7aa,_0x1c6697=_0x2f1329['getPivotTableInstance'](_0x42d025);if(!_0x1c6697)return!0x1;_0x1c6697[_0x278873(0x151)](_0x3ac970);const _0x48b758=_0x2f1329[_0x278873(0x161)](_0xf2ad1,_0x3313c5,_0x42d025);return _0x278e97(_0x48b758,_0x49f7aa),_0x2f1329[_0x278873(0x24d)]({'unitId':_0xf2ad1,'subUnitId':_0x3313c5,'token':_0x42d025,'type':_0x2f104b[_0x278873(0x11d)]}),!0x0;}},_0x503365={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0xe44f7,_0x521139){const _0x355126=_0x4cc141;if(!_0x521139)return!0x1;if(!!_0xe44f7['get'](_0x21d8ed[_0x355126(0x299)])[_0x355126(0x260)](_0x14fdfb))return!0x0;const _0x44c0ed=_0xe44f7[_0x355126(0xca)](_0xb4db29['SheetsPivotDataSourceModel']),{unitId:_0x5e9588,subUnitId:_0x7859e2,pivotTableId:_0xaaf315,sortInfo:_0x2e96bc,fieldId:_0x2e1501}=_0x521139,_0x1d80e0=_0x44c0ed[_0x355126(0xec)](_0xaaf315);if(!_0x1d80e0)return!0x1;_0x1d80e0[_0x355126(0x2b4)](_0x2e1501,_0x2e96bc);const _0x195609=_0x44c0ed[_0x355126(0x161)](_0x5e9588,_0x7859e2,_0xaaf315);return _0x32e921(_0x195609,_0x521139),_0x44c0ed[_0x355126(0x24d)]({'unitId':_0x5e9588,'subUnitId':_0x7859e2,'token':_0xaaf315,'type':_0x2f104b[_0x355126(0x11d)]}),!0x0;}},_0x4f7a20={'type':_0x21d8ed[_0x4cc141(0x13a)]['MUTATION'],'id':_0x4cc141(0x325),'handler'(_0x5de9ad,_0x1d3002){const _0x59813c=_0x4cc141;if(!_0x1d3002)return!0x1;if(!!_0x5de9ad[_0x59813c(0xca)](_0x21d8ed['IConfigService'])[_0x59813c(0x260)](_0x14fdfb))return!0x0;const _0x16f4a1=_0x5de9ad[_0x59813c(0xca)](_0xb4db29[_0x59813c(0x143)]),{unitId:_0x292e0d,subUnitId:_0x543fc6,pivotTableId:_0x325319,fieldId:_0x755066,subtotalType:_0x110158}=_0x1d3002,_0x2aee86=_0x16f4a1['getPivotTableInstance'](_0x325319);if(!_0x2aee86)return!0x1;_0x2aee86['setSubtotalType'](_0x755066,_0x110158);const _0x19cca9=_0x16f4a1[_0x59813c(0x161)](_0x292e0d,_0x543fc6,_0x325319);return _0x143be4(_0x19cca9,_0x1d3002),_0x16f4a1[_0x59813c(0x24d)]({'unitId':_0x292e0d,'subUnitId':_0x543fc6,'token':_0x325319,'type':_0x2f104b['Set']}),!0x0;}},_0x57faf0={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x272),'handler'(_0x58af9d,_0xe27ced){const _0x2be008=_0x4cc141;if(!_0xe27ced)return!0x1;if(!!_0x58af9d[_0x2be008(0xca)](_0x21d8ed['IConfigService'])[_0x2be008(0x260)](_0x14fdfb))return!0x0;const _0x1def12=_0x58af9d[_0x2be008(0xca)](_0xb4db29[_0x2be008(0x143)]),{unitId:_0x385e79,subUnitId:_0x204257,pivotTableId:_0x53e3de,area:_0x5ebe8a,index:_0x3c93ff,fieldId:_0x3bac77}=_0xe27ced,_0x141be9=_0x1def12[_0x2be008(0xec)](_0x53e3de);if(!_0x141be9)return!0x1;_0x141be9['updateFieldPosition'](_0x3bac77,_0x5ebe8a,_0x3c93ff);const _0x3fb7ff=_0x1def12['getPivotTableModelConfig'](_0x385e79,_0x204257,_0x53e3de);return _0x394d13(_0x3fb7ff,_0xe27ced),_0x1def12[_0x2be008(0x24d)]({'unitId':_0x385e79,'subUnitId':_0x204257,'token':_0x53e3de,'type':_0x2f104b['Set']}),!0x0;}},_0x5f1e4e={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x162),'handler'(_0x50c6b4,_0x55d6e3){const _0x32b471=_0x4cc141;if(!_0x55d6e3)return!0x1;if(!!_0x50c6b4[_0x32b471(0xca)](_0x21d8ed[_0x32b471(0x299)])['getConfig'](_0x14fdfb))return!0x0;const _0x217285=_0x50c6b4[_0x32b471(0xca)](_0xb4db29['SheetsPivotDataSourceModel']),{unitId:_0xff49e0,subUnitId:_0x146657,pivotTableId:_0x48d7ca,sourceName:_0x1e2d29,dataFieldId:_0x2b75b0,tableFieldId:_0x4182b5}=_0x55d6e3,_0x1f2f2b=_0x217285[_0x32b471(0xec)](_0x48d7ca);if(!_0x1f2f2b)return!0x1;_0x1f2f2b[_0x32b471(0x1d1)](_0x4182b5,_0x1e2d29,_0x2b75b0);const _0x4b468e=_0x217285[_0x32b471(0x161)](_0xff49e0,_0x146657,_0x48d7ca);return _0x4bb53e(_0x4b468e,_0x55d6e3),_0x217285[_0x32b471(0x24d)]({'unitId':_0xff49e0,'subUnitId':_0x146657,'token':_0x48d7ca,'type':_0x2f104b[_0x32b471(0x11d)]}),!0x0;}},_0x1f96ac={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x2c5),'handler'(_0x11dd27,_0xa5413a){const _0x2d9883=_0x4cc141;if(!_0xa5413a)return!0x1;if(!!_0x11dd27[_0x2d9883(0xca)](_0x21d8ed[_0x2d9883(0x299)])[_0x2d9883(0x260)](_0x14fdfb))return!0x0;const _0x3db1b9=_0x11dd27[_0x2d9883(0xca)](_0xb4db29[_0x2d9883(0x143)]),{unitId:_0x3cc10d,subUnitId:_0x1f3e3b,pivotTableId:_0x53329c,valuePosition:_0x3f0f4b,index:_0x408191}=_0xa5413a,_0x56bef1=_0x3db1b9['getPivotTableInstance'](_0x53329c);if(!_0x56bef1)return!0x1;_0x56bef1[_0x2d9883(0x227)](_0x3f0f4b,_0x408191);const _0x747283=_0x3db1b9[_0x2d9883(0x161)](_0x3cc10d,_0x1f3e3b,_0x53329c);return _0xd20680(_0x747283,_0xa5413a),_0x3db1b9['addDirtyPivotTable']({'unitId':_0x3cc10d,'subUnitId':_0x1f3e3b,'token':_0x53329c,'type':_0x2f104b[_0x2d9883(0x11d)]}),!0x0;}};function _0x4925f7(_0x18071f,_0x3ccc6e,_0x278495){const _0x98f703=_0x4cc141,{pivotTableId:_0x56466d,unitId:_0x5e4bd2,subUnitId:_0x1f6df3}=_0x3ccc6e,_0x40504d=[],_0xd055e1=[];for(const _0x3589ce of _0x278495)switch(_0x3589ce['type']){case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x2eb)]:{const {fieldJson:_0x141544,area:_0x1a2246,index:_0xa54db8}=_0x3589ce,_0x1ac045={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldJson':_0x141544,'area':_0x1a2246,'index':_0xa54db8},_0x3c9740={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x141544['id'],'area':_0x1a2246,'index':_0xa54db8};_0x40504d[_0x98f703(0xbd)]({'id':_0x2a33f2['id'],'params':_0x1ac045}),_0xd055e1[_0x98f703(0x318)]({'id':_0x481f84['id'],'params':_0x3c9740});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x214)]:{const {fieldId:_0x17ba1c,newSubtotalType:_0x20c40b,oldSubtotalType:_0x23bc2e}=_0x3589ce,_0x344c69={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x17ba1c,'subtotalType':_0x20c40b};_0x40504d[_0x98f703(0xbd)]({'id':_0x4f7a20['id'],'params':_0x344c69});const _0x26db80={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x17ba1c,'subtotalType':_0x23bc2e};_0xd055e1[_0x98f703(0x318)]({'id':_0x4f7a20['id'],'params':_0x26db80});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x226)]:{const {fieldId:_0x399567,fieldJson:_0x5aa74d,area:_0x1cf86d,index:_0x5b93c3}=_0x3589ce,_0x2f423f={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x399567,'index':_0x5b93c3,'area':_0x1cf86d};_0x40504d['push']({'id':_0x481f84['id'],'params':_0x2f423f});const _0x1fbcbc={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldJson':_0x5aa74d,'area':_0x1cf86d,'index':_0x5b93c3};_0xd055e1[_0x98f703(0x318)]({'id':_0x2a33f2['id'],'params':_0x1fbcbc});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x128)]:{const {fieldId:_0x31523a,oldName:_0x5d173a,newName:_0x95ccec}=_0x3589ce,_0x369139={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x31523a,'name':_0x95ccec};_0x40504d[_0x98f703(0xbd)]({'id':_0xa70dc3['id'],'params':_0x369139});const _0x303270={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x31523a,'name':_0x5d173a};_0xd055e1[_0x98f703(0x318)]({'id':_0xa70dc3['id'],'params':_0x303270});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x33c)]:{const {fieldId:_0x1c7d2c,oldFilterInfo:_0x592cb9,newFilterInfo:_0x53bcb6}=_0x3589ce,_0xf00d2d={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x1c7d2c,'filterInfo':_0x53bcb6};_0x40504d[_0x98f703(0xbd)]({'id':_0x192d4f['id'],'params':_0xf00d2d});const _0x454396={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x1c7d2c,'filterInfo':_0x592cb9};_0xd055e1['unshift']({'id':_0x192d4f['id'],'params':_0x454396});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x148)]:{const {fieldId:_0x2ccd62,oldSortInfo:_0x29d630,newSortInfo:_0x53befe}=_0x3589ce,_0xe6524b={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x2ccd62,'sortInfo':_0x53befe};_0x40504d[_0x98f703(0xbd)]({'id':_0x503365['id'],'params':_0xe6524b});const _0x496bb4={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x2ccd62,'sortInfo':_0x29d630};_0xd055e1[_0x98f703(0x318)]({'id':_0x503365['id'],'params':_0x496bb4});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x330)]:{const {oldOptions:_0x9fbead,newOptions:_0x38f026}=_0x3589ce,_0x964021={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'options':_0x38f026};_0x40504d[_0x98f703(0xbd)]({'id':_0x5c8eea['id'],'params':_0x964021});const _0x3f8b91={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'options':_0x9fbead};_0xd055e1[_0x98f703(0x318)]({'id':_0x5c8eea['id'],'params':_0x3f8b91});}break;case _0x2f3841[_0x98f703(0x24e)]['UpdateFieldPosition']:{const {oldArea:_0x3a3030,newArea:_0x2ea59b,oldIndex:_0x14b7c6,newIndex:_0x24eb72,fieldId:_0x1df85}=_0x3589ce,_0x1607fc={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x1df85,'area':_0x2ea59b,'index':_0x24eb72,'oldArea':_0x3a3030,'oldIndex':_0x14b7c6};_0x40504d[_0x98f703(0xbd)]({'id':_0x57faf0['id'],'params':_0x1607fc});const _0xcbda80={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x1df85,'area':_0x3a3030,'index':_0x14b7c6,'oldArea':_0x2ea59b,'oldIndex':_0x24eb72};_0xd055e1[_0x98f703(0x318)]({'id':_0x57faf0['id'],'params':_0xcbda80});}break;case _0x2f3841[_0x98f703(0x24e)]['UpdateValuePosition']:{const {oldValuePosition:_0x21edd9,newValuePosition:_0x5853a3,oldIndex:_0xcb2b7e,newIndex:_0x5cf533}=_0x3589ce,_0x3919d9={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'valuePosition':_0x5853a3,'index':_0x5cf533};_0x40504d[_0x98f703(0xbd)]({'id':_0x1f96ac['id'],'params':_0x3919d9});const _0x343c38={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'valuePosition':_0x21edd9,'index':_0xcb2b7e};_0xd055e1[_0x98f703(0x318)]({'id':_0x1f96ac['id'],'params':_0x343c38});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x2d6)]:{const {fieldId:_0x1632d4,collapse:_0x3a3dc8,item:_0x24369f}=_0x3589ce,_0x294a9d={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x1632d4,'collapse':_0x3a3dc8,'item':_0x24369f};_0x40504d[_0x98f703(0xbd)]({'id':_0x2e0fbe['id'],'params':_0x294a9d});const _0x2609f4={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x1632d4,'collapse':!_0x3a3dc8,'item':_0x24369f};_0xd055e1[_0x98f703(0x318)]({'id':_0x2e0fbe['id'],'params':_0x2609f4});}break;case _0x2f3841[_0x98f703(0x24e)]['SetFieldFormat']:{const {newFormat:_0x193196,oldFormat:_0x15726c,fieldId:_0x5a73b5}=_0x3589ce,_0x4e5720={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x5a73b5,'format':_0x193196};_0x40504d[_0x98f703(0xbd)]({'id':_0x285527['id'],'params':_0x4e5720});const _0x5e2255={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'fieldId':_0x5a73b5,'format':_0x15726c};_0xd055e1[_0x98f703(0x318)]({'id':_0x285527['id'],'params':_0x5e2255});}break;case _0x2f3841[_0x98f703(0x24e)][_0x98f703(0x2f3)]:{const {tableFieldId:_0x434a18,oldSourceName:_0x45b2e4,newSourceName:_0x535b74,oldDataFieldId:_0x2400b3,newDataFieldId:_0x2f96f4}=_0x3589ce,_0x270e50={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'tableFieldId':_0x434a18,'sourceName':_0x535b74,'dataFieldId':_0x2f96f4};_0x40504d[_0x98f703(0xbd)]({'id':_0x5f1e4e['id'],'params':_0x270e50});const _0x5546e0={'unitId':_0x5e4bd2,'subUnitId':_0x1f6df3,'pivotTableId':_0x56466d,'tableFieldId':_0x434a18,'sourceName':_0x45b2e4,'dataFieldId':_0x2400b3};_0xd055e1[_0x98f703(0x318)]({'id':_0x5f1e4e['id'],'params':_0x5546e0});}break;}return{'redos':_0x40504d,'undos':_0xd055e1};}function _0x5cb468(_0x30bdf6,_0x14fe90){const _0x52b7ae=_0x4cc141;var _0xe1beba;const _0x53b040=_0x30bdf6[_0x52b7ae(0xca)](_0xb4db29[_0x52b7ae(0x133)]),{cellInfo:_0x427004,view:_0x4068d5,isEmpty:_0x232e3d}=_0x14fe90;return(_0xe1beba=_0x53b040['interceptor'][_0x52b7ae(0x27e)](_0x3cfc57)(_0x4bcad1,{'cellInfo':_0x427004,'view':_0x4068d5,'isEmpty':_0x232e3d}))!=null?_0xe1beba:_0x4bcad1;}const _0x3a38d4=()=>typeof process<'u'&&process['versions']!=null&&process[_0x4cc141(0x15c)][_0x4cc141(0x354)]!=null,_0x7b9428={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x345),'handler'(_0x19ad1d,_0x40fbb1){const _0x22f332=_0x4cc141;var _0x438418;if(!_0x40fbb1)return!0x1;const _0xd3b8e5=_0x19ad1d[_0x22f332(0xca)](_0x21d8ed[_0x22f332(0x299)]);if(!!_0xd3b8e5[_0x22f332(0x260)](_0x14fdfb))return!0x0;const _0x7cee89=_0x19ad1d[_0x22f332(0xca)](_0x21d8ed[_0x22f332(0x367)]),_0xe602f2=_0x19ad1d[_0x22f332(0xca)](_0xb4db29[_0x22f332(0x143)]),{pivotTableId:_0x41415b,pivotTableConfig:_0x31c4dc,collectionConfig:_0x5c3a96,unitId:_0x3a97d3,subUnitId:_0x50813a}=_0x40fbb1,{sourceRangeInfo:_0xb68b22,fieldsConfig:_0x3f000b,targetCellInfo:_0x54b3d5}=_0x31c4dc,_0x467017=_0x7cee89[_0x22f332(0x360)](_0x3a97d3);if(!_0x467017||!_0x467017[_0x22f332(0x379)](_0x50813a))return!0x1;if(!_0x3a38d4()){let _0x368f53=0x0;_0x467017[_0x22f332(0x1f7)]()[_0x22f332(0x2b9)](_0x4d008f=>{const _0x3183f1=_0x22f332;var _0xb244c5,_0x4e9c01;_0x368f53+=(_0x4e9c01=(_0xb244c5=_0xe602f2[_0x3183f1(0x370)](_0x3a97d3,_0x4d008f[_0x3183f1(0x229)]()))==null?void 0x0:_0xb244c5[_0x3183f1(0x2fa)])!=null?_0x4e9c01:0x0;});const _0x596cd3=(_0x438418=_0xd3b8e5[_0x22f332(0x260)](_0x271a3b[_0x22f332(0x17e)]))!=null?_0x438418:{},{ls:_0x105a58,pbk:_0x16777e}=_0x596cd3;if(!_0x23d23a(_0x105a58,_0x16777e))throw new _0x21d8ed['CustomCommandExecutionError'](_0x22f332(0x2b0));const _0xa461cf=_0xac200a(_0x3eaceb,_0x105a58,_0x16777e)[_0x22f332(0x310)];if(_0x368f53>=_0xa461cf)throw new _0x21d8ed[(_0x22f332(0x15d))](_0x22f332(0x2b0));}if(!_0x5c3a96||!_0x3f000b)return!0x1;const {collection:_0x2b9366,updateDataFieldList:_0x1a026d}=_0xe602f2[_0x22f332(0x322)](_0x41415b,_0x5c3a96,_0xb68b22,_0x54b3d5);_0xe602f2[_0x22f332(0x17d)](_0x2b9366,_0x1a026d,_0xb68b22);const _0x56f754=new _0x2f3841[(_0x22f332(0x328))](_0x2b9366);_0x56f754[_0x22f332(0x228)](_0x3f000b);const _0x2e8464=JSON[_0x22f332(0x172)](JSON[_0x22f332(0x356)](_0x31c4dc));return _0xe602f2['addPivotTable'](_0x3a97d3,_0x50813a,_0x41415b,_0x56f754,_0x2e8464),_0xe602f2['addDirtyPivotTable']({'unitId':_0x3a97d3,'subUnitId':_0x50813a,'token':_0x41415b,'type':_0x2f104b[_0x22f332(0x28a)],'pivotConfig':_0x2e8464}),!0x0;}},_0x7f4ffc={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x160),'handler'(_0x407cd9,_0x3ee189){const _0x57bda2=_0x4cc141;if(!_0x3ee189)return!0x1;if(!!_0x407cd9[_0x57bda2(0xca)](_0x21d8ed['IConfigService'])[_0x57bda2(0x260)](_0x14fdfb))return!0x0;const {pivotTableId:_0x4ef972,unitId:_0x275a8c,subUnitId:_0x59a631}=_0x3ee189,_0x480cfc=_0x407cd9[_0x57bda2(0xca)](_0xb4db29[_0x57bda2(0x143)]);return _0x480cfc[_0x57bda2(0xc5)](_0x275a8c,_0x59a631,_0x4ef972)?(_0x480cfc['addDirtyPivotTable']({'unitId':_0x275a8c,'subUnitId':_0x59a631,'token':_0x4ef972,'type':_0x2f104b[_0x57bda2(0x116)]}),_0x480cfc[_0x57bda2(0x1e8)](_0x275a8c,_0x59a631,_0x4ef972),!0x0):!0x1;}},_0x77fe44={'type':_0x21d8ed['CommandType'][_0x4cc141(0x187)],'id':_0x4cc141(0x1c6),'handler'(_0x407daf,_0x558bd7){const _0x509430=_0x4cc141;if(!_0x558bd7)return!0x1;if(!!_0x407daf[_0x509430(0xca)](_0x21d8ed[_0x509430(0x299)])[_0x509430(0x260)](_0x14fdfb))return!0x0;const {pivotTableId:_0x4fc213,targetCellPosition:_0x7ff85c,unitId:_0xcc13b4,subUnitId:_0x4be70}=_0x558bd7,_0x23508e=_0x407daf[_0x509430(0xca)](_0xb4db29[_0x509430(0x143)]);if(!_0x23508e[_0x509430(0xec)](_0x558bd7[_0x509430(0xdc)]))return!0x1;const _0x5115a0=_0x23508e['getTargetByPivotId'](_0x4fc213);if(!_0x5115a0)return!0x1;const _0x2a394c=_0x23508e[_0x509430(0x114)](_0x5115a0['unitId'],_0x558bd7['pivotTableId']);if(!_0x2a394c)return!0x1;const _0x1f7e68=_0x23508e[_0x509430(0xc5)](_0x5115a0['unitId'],_0x5115a0[_0x509430(0x18a)],_0x4fc213);if(!_0x1f7e68)return!0x1;const _0x280b70=_0x21d8ed[_0x509430(0x1a1)][_0x509430(0x21e)](_0x1f7e68);_0x280b70[_0x509430(0xff)]={'unitId':_0xcc13b4,'subUnitId':_0x4be70,'row':_0x7ff85c['row'],'col':_0x7ff85c[_0x509430(0x359)]};const _0x29a58d=_0x2a394c[_0x509430(0x1ae)]();if(_0x5115a0[_0x509430(0x18a)]===_0x4be70&&_0x5115a0['unitId']===_0xcc13b4)_0x23508e[_0x509430(0x1d8)](_0xcc13b4,_0x4be70,_0x4fc213,_0x280b70),_0x23508e[_0x509430(0x24d)]({'unitId':_0xcc13b4,'subUnitId':_0x4be70,'token':_0x4fc213,'type':_0x2f104b['Set']});else{_0x23508e[_0x509430(0x24d)]({'unitId':_0x5115a0['unitId'],'subUnitId':_0x5115a0[_0x509430(0x18a)],'token':_0x4fc213,'type':_0x2f104b[_0x509430(0x116)]}),_0x23508e[_0x509430(0x1e8)](_0x5115a0['unitId'],_0x5115a0[_0x509430(0x18a)],_0x4fc213);const _0x2264c9=_0x23508e['addCollectionByJSON'](_0x4fc213,_0x29a58d,_0x1f7e68[_0x509430(0x1fe)],_0x280b70['targetCellInfo']),_0x4c5747=new _0x2f3841['PivotTable'](_0x2264c9[_0x509430(0xc2)]);_0x4c5747['fromJSON'](_0x280b70[_0x509430(0x112)]),_0x23508e[_0x509430(0x20e)](_0xcc13b4,_0x4be70,_0x4fc213,_0x4c5747,_0x280b70),_0x23508e['addDirtyPivotTable']({'unitId':_0xcc13b4,'subUnitId':_0x4be70,'token':_0x4fc213,'type':_0x2f104b[_0x509430(0x28a)],'pivotConfig':_0x280b70});}return!0x0;}},_0x5aa2a2={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x187)],'id':_0x4cc141(0x2b5),'handler'(_0x247868,_0x54e623){const _0x2d98a5=_0x4cc141;if(!_0x54e623)return!0x1;if(!!_0x247868['get'](_0x21d8ed[_0x2d98a5(0x299)])[_0x2d98a5(0x260)](_0x14fdfb))return!0x0;const _0x3706db=_0x247868['get'](_0xb4db29[_0x2d98a5(0x143)]),{pivotTableId:_0x3fabb9,deleteIds:_0x2a3073,collectionJSON:_0x3551aa,dataRangeInfo:_0x24efd6,unitId:_0x43fed8,subUnitId:_0x2125e8}=_0x54e623,_0x494848=_0x3706db[_0x2d98a5(0xec)](_0x3fabb9),_0x15c7e1=_0x3706db['getPivotTableConfig'](_0x43fed8,_0x2125e8,_0x3fabb9);if(!_0x494848||!_0x15c7e1)return!0x1;const {collection:_0x2f7236,updateDataFieldList:_0x4059a6}=_0x3706db['addCollectionByJSON'](_0x3fabb9,_0x3551aa,_0x24efd6,_0x15c7e1[_0x2d98a5(0xff)]);_0x3706db[_0x2d98a5(0x17d)](_0x2f7236,_0x4059a6,_0x24efd6),_0x494848[_0x2d98a5(0x37c)](_0x2f7236);for(const _0x2b6c27 of _0x2a3073)_0x3706db['removeDataField'](_0x24efd6[_0x2d98a5(0x1b5)],_0x2b6c27);const _0x48b77f=_0x3706db[_0x2d98a5(0xc5)](_0x43fed8,_0x2125e8,_0x3fabb9);return _0x48b77f[_0x2d98a5(0x1fe)]=JSON[_0x2d98a5(0x172)](JSON[_0x2d98a5(0x356)](_0x24efd6)),_0x3706db[_0x2d98a5(0x24d)]({'unitId':_0x43fed8,'subUnitId':_0x2125e8,'token':_0x3fabb9,'type':_0x2f104b[_0x2d98a5(0x11d)]}),!0x0;}},_0x4dbcbe={'type':_0x21d8ed['CommandType']['MUTATION'],'id':'sheet.operation.pivot-table-view-formula-mark-dirty','handler'(){return!0x0;}};var _0x150852=Object[_0x4cc141(0xe7)],_0x1a6805=Object[_0x4cc141(0x14c)],_0x10ce13=(_0x19a9a1,_0x1ae855,_0x55fc57,_0x1884b4)=>{const _0x3446e0=_0x4cc141;for(var _0x19565e=_0x1884b4>0x1?void 0x0:_0x1884b4?_0x1a6805(_0x1ae855,_0x55fc57):_0x1ae855,_0xa851e4=_0x19a9a1[_0x3446e0(0x170)]-0x1,_0x2ef9f9;_0xa851e4>=0x0;_0xa851e4--)(_0x2ef9f9=_0x19a9a1[_0xa851e4])&&(_0x19565e=(_0x1884b4?_0x2ef9f9(_0x1ae855,_0x55fc57,_0x19565e):_0x2ef9f9(_0x19565e))||_0x19565e);return _0x1884b4&&_0x19565e&&_0x150852(_0x1ae855,_0x55fc57,_0x19565e),_0x19565e;},_0x472abb=(_0x2bb235,_0x1e3456)=>(_0x4be316,_0x42fa93)=>_0x1e3456(_0x4be316,_0x42fa93,_0x2bb235);_0xb4db29[_0x4cc141(0x31e)]=class extends _0x21d8ed[_0x4cc141(0x32e)]{constructor(_0x2279c6,_0x825cf8){const _0x27ebc3=_0x4cc141;super(),_0x128c18(this,_0x27ebc3(0x102),new Map()),(this['_injector']=_0x2279c6,this[_0x27ebc3(0x198)]=_0x825cf8);}[_0x4cc141(0x1eb)](_0x138103){const _0x485f50=_0x4cc141,{version:_0x19eb12}=_0x138103,_0x589b0e=this[_0x485f50(0x102)][_0x485f50(0xca)](_0x19eb12);_0x589b0e&&(_0x589b0e(_0x138103),this[_0x485f50(0x102)]['delete'](_0x19eb12));}['getPivotDisplayConfig'](_0x3c94da){return new Promise((_0x56507f,_0x35de5d)=>{const _0x5a380e=_0x2015,_0x25cbfa=this[_0x5a380e(0x298)]();this[_0x5a380e(0x102)][_0x5a380e(0x1e5)](_0x25cbfa,_0x56507f),this[_0x5a380e(0x198)][_0x5a380e(0x1ba)](_0x121547['id'],{'version':_0x25cbfa,..._0x3c94da},{'onlyLocal':!0x0});});}[_0x4cc141(0x298)](){const _0x3439da=_0x4cc141;return Math['random']()[_0x3439da(0x199)](0x24)[_0x3439da(0x246)](0x2,0x10);}},_0xb4db29[_0x4cc141(0x31e)]=_0x10ce13([_0x472abb(0x0,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x126)])),_0x472abb(0x1,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed['ICommandService']))],_0xb4db29['SheetsPivotRPCService']);const _0x4040b9={'type':_0x21d8ed[_0x4cc141(0x13a)]['COMMAND'],'id':_0x4cc141(0x28b),async 'handler'(_0x142863,_0x3a47f0){const _0xf19570=_0x4cc141;if(!_0x3a47f0)return!0x1;const _0x1ebb08=_0x142863[_0xf19570(0xca)](_0x21d8ed[_0xf19570(0x17a)]),_0x307527=_0x142863[_0xf19570(0xca)](_0xb4db29['SheetsPivotRPCService']),_0x90f99a=_0x142863['get'](_0x21d8ed[_0xf19570(0x1b0)]),{pivotTableId:_0x19d35d,dataFieldId:_0x3b6a57,fieldArea:_0xbf911f,index:_0x21cef3,unitId:_0x479a13,subUnitId:_0x246373}=_0x3a47f0,_0x4bbe6b=(await _0x307527['getPivotDisplayConfig']({'unitId':_0x479a13,'subUnitId':_0x246373,'pivotTableId':_0x19d35d,'params':{'type':_0x346a09[_0xf19570(0x297)],'addPivotField':{'dataFieldId':_0x3b6a57,'fieldArea':_0xbf911f,'index':_0x21cef3}}}))['result'][_0xf19570(0x374)];if(!_0x4bbe6b)return!0x1;const {view:_0x187f47,changesets:_0x27700e,isEmpty:_0x2e4da1,pivotTableConfig:_0x2de046}=_0x4bbe6b,_0x18a266=_0x2de046[_0xf19570(0xff)],_0x390f89=new _0x2f3841[(_0xf19570(0x2e0))]();_0x390f89[_0xf19570(0x365)](_0x187f47);const _0x573ed8={'cellInfo':_0x18a266,'view':_0x390f89,'isEmpty':_0x2e4da1};if(!await _0x142863[_0xf19570(0xca)](_0xb4db29['SheetsPivotTableService'])['asyncInterceptor']['fetchThroughAsyncInterceptors'](_0x460ca6)(!0x0,_0x573ed8))return!0x1;const _0x1ced0b=_0x4869f4(_0x142863,_0x390f89,_0x18a266,_0x2e4da1),_0x160af2=_0x5cb468(_0x142863,_0x573ed8),{undos:_0x327490,redos:_0x222019}=_0x4925f7(_0x1ebb08,{'pivotTableId':_0x19d35d,'unitId':_0x479a13,'subUnitId':_0x246373},_0x27700e);return _0x21d8ed[_0xf19570(0x153)]([..._0x1ced0b[_0xf19570(0x26d)],..._0x160af2[_0xf19570(0x26d)],..._0x222019],_0x1ebb08),_0x90f99a[_0xf19570(0x17b)]({'unitID':_0x479a13,'redoMutations':[..._0x1ced0b[_0xf19570(0x26d)],..._0x160af2[_0xf19570(0x26d)],..._0x222019],'undoMutations':[..._0x1ced0b[_0xf19570(0x2cb)],..._0x160af2['undos'],..._0x327490]}),!0x0;}},_0x28faac={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0x579a64,_0x4de241){const _0x194ff6=_0x4cc141;if(!_0x4de241)return!0x1;const {sourceDataInfo:_0x2d7dfc,pivotTableConfig:_0x885812}=_0x4de241;if(!_0x2d7dfc||!_0x885812)return!0x1;const {unitId:_0x2d3019,subUnitId:_0x3a57b7,range:_0x566388}=_0x2d7dfc,_0x53d737=_0x579a64[_0x194ff6(0xca)](_0x21d8ed['IUniverInstanceService']),_0x3282f5=_0x579a64['get'](_0xb4db29['SheetsPivotRPCService']),_0xb65a2c=_0x579a64[_0x194ff6(0xca)](_0x21d8ed[_0x194ff6(0x35f)]),_0x119c10=_0x579a64[_0x194ff6(0xca)](_0x21d8ed['ICommandService']),_0x301d7e=_0x53d737[_0x194ff6(0x360)](_0x2d3019);if(!_0x301d7e)return!0x1;const _0x377adc=_0x301d7e[_0x194ff6(0x379)](_0x3a57b7);if(!_0x377adc)return!0x1;const _0x54a897=_0x2f3841[_0x194ff6(0x188)](0x8),_0x3501a5=_0x566388||{'startRow':0x0,'startColumn':0x0,'endRow':_0x377adc['getRowCount']()-0x1,'endColumn':_0x377adc[_0x194ff6(0x2c7)]()-0x1};_0x3501a5['rangeType']=_0x21d8ed[_0x194ff6(0x1bf)][_0x194ff6(0x1d9)];const _0x354b39=(await _0x3282f5[_0x194ff6(0x304)]({'unitId':_0x2d3019,'subUnitId':_0x3a57b7,'pivotTableId':_0x54a897,'params':{'type':_0x346a09[_0x194ff6(0x2cc)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x2d3019,'sheetName':_0x377adc[_0x194ff6(0x1e1)](),'subUnitId':_0x3a57b7,'range':_0x3501a5},'pivotTableIndexConfig':_0x885812}}}))[_0x194ff6(0x290)][_0x194ff6(0x1c9)];if(!_0x354b39)return!0x1;const {isEmpty:_0x5660f0,fieldsConfig:_0x39c957,collectionConfig:_0x24e2c1,changesets:_0x440bbc}=_0x354b39,_0x35c5e0=_0x301d7e[_0x194ff6(0x1f7)]()[_0x194ff6(0x170)],_0x14a76a=_0x21d8ed[_0x194ff6(0x1f3)]({'rowCount':_0x377adc[_0x194ff6(0x1a0)]()-0x1,'columnCount':_0x377adc[_0x194ff6(0x2c7)]()-0x1});_0x14a76a['id']=_0x21d8ed[_0x194ff6(0xcb)](),_0x14a76a[_0x194ff6(0x2c9)]=_0x301d7e[_0x194ff6(0x36f)](''+_0xb65a2c['t'](_0x194ff6(0x253)));const _0x5e2ee1={'index':_0x35c5e0,'sheet':_0x14a76a,'unitId':_0x2d3019},{redos:_0x277e3e}=_0x4925f7(_0x119c10,{'pivotTableId':_0x54a897,'unitId':_0x2d3019,'subUnitId':_0x14a76a['id']},_0x440bbc),_0x1438aa=[{'id':_0x4cb34f[_0x194ff6(0x306)]['id'],'params':_0x5e2ee1},{'id':_0x7b9428['id'],'params':{'unitId':_0x2d3019,'subUnitId':_0x14a76a['id'],'pivotTableId':_0x54a897,'pivotTableConfig':{'isEmpty':_0x5660f0,'fieldsConfig':_0x39c957,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x2d3019,'subUnitId':_0x14a76a['id']},'sourceRangeInfo':{'subUnitId':_0x3a57b7,'unitId':_0x2d3019,'range':_0x3501a5,'sheetName':_0x377adc[_0x194ff6(0x1e1)]()}},'collectionConfig':_0x24e2c1}},..._0x277e3e];return _0x21d8ed[_0x194ff6(0x153)](_0x1438aa,_0x119c10),!0x0;}},_0x1d62c5={'type':_0x21d8ed['CommandType']['COMMAND'],'id':_0x4cc141(0xc8),async 'handler'(_0x21f2c0,_0x2473c6){const _0x529f02=_0x4cc141;var _0x5ab91e,_0x7f9b02;const _0xaf16ea=_0x21f2c0[_0x529f02(0xca)](_0x21d8ed[_0x529f02(0x17a)]),_0x2a80fb=_0x21f2c0['get'](_0x21d8ed[_0x529f02(0x367)]),_0x28432d=_0x21f2c0[_0x529f02(0xca)](_0x21d8ed[_0x529f02(0x35f)]),_0x122e0f=_0x21f2c0[_0x529f02(0xca)](_0xb4db29[_0x529f02(0x31e)]),_0x50874a=_0x21f2c0[_0x529f02(0xca)](_0x21d8ed[_0x529f02(0x1b0)]),_0x576ed9=_0x21f2c0[_0x529f02(0xca)](_0xb4db29[_0x529f02(0x2fb)]),_0x54d8d4=_0x21f2c0[_0x529f02(0xca)](_0x21d8ed[_0x529f02(0x299)]);if(!_0x2473c6)return!0x1;const {pivotTableConfig:_0x4be184,positionType:_0xe5e4c6}=_0x2473c6,{targetCellInfo:_0x57690e,sourceRangeInfo:_0x2b6679}=_0x4be184,{unitId:_0x362860,subUnitId:_0x1dee43}=_0x57690e,_0xe1893a=_0x2a80fb['getUnit'](_0x362860);if(!_0xe1893a)return!0x1;let _0x104056=0x0;_0xe1893a['getSheets']()[_0x529f02(0x2b9)](_0x2ab2c5=>{const _0x4b4b41=_0x529f02;var _0x3f73ac,_0x2e47b9;_0x104056+=(_0x2e47b9=(_0x3f73ac=_0x576ed9['getSubUnitPivotConfigs'](_0x362860,_0x2ab2c5['getSheetId']()))==null?void 0x0:_0x3f73ac[_0x4b4b41(0x2fa)])!=null?_0x2e47b9:0x0;});const _0x3c0bfc=(_0x5ab91e=_0x54d8d4[_0x529f02(0x260)](_0x271a3b['LS_CONFIG_KEY']))!=null?_0x5ab91e:{},{ls:_0x4a0b02,pbk:_0x22f4a5}=_0x3c0bfc;if(!_0x23d23a(_0x4a0b02,_0x22f4a5))return!0x1;const _0x29750b=_0xac200a(_0x3eaceb,_0x4a0b02,_0x22f4a5)[_0x529f02(0x310)];if(_0x104056>=_0x29750b)return!0x1;const _0x192ba8=_0x2473c6['pivotTableId']||_0x2f3841['generateHexNumber'](0x8),_0x3d7f9a=(await _0x122e0f['getPivotDisplayConfig']({'unitId':_0x362860,'subUnitId':_0x1dee43,'pivotTableId':_0x192ba8,'params':{'type':_0x346a09[_0x529f02(0x18d)],'addPivotTable':{'sourceRangeInfo':_0x2b6679}}}))[_0x529f02(0x290)][_0x529f02(0x20e)];if(!_0x3d7f9a)return!0x1;const {view:_0x488312,isEmpty:_0x297ef3,fieldsConfig:_0x38e2ba,collectionConfig:_0x36afd0}=_0x3d7f9a,_0xa8c821=[],_0x56807f=[];if(_0xe5e4c6===_0x4c87ea['New']){const _0xb05165=_0xe1893a['getSheets']()[_0x529f02(0x170)],_0x721998=_0x21d8ed['mergeWorksheetSnapshotWithDefault']({});_0x721998['id']=_0x4be184[_0x529f02(0xff)][_0x529f02(0x18a)],_0x721998[_0x529f02(0x2c9)]=(_0x7f9b02=_0x4be184[_0x529f02(0xff)][_0x529f02(0x1fd)])!=null?_0x7f9b02:_0xe1893a['generateNewSheetName'](''+_0x28432d['t'](_0x529f02(0x253)));const _0x45c80b={'index':_0xb05165,'sheet':_0x721998,'unitId':_0x362860},_0x4a56c7=_0x4cb34f['InsertSheetUndoMutationFactory'](_0x21f2c0,_0x45c80b);_0xa8c821[_0x529f02(0xbd)]({'id':_0x4cb34f['RemoveSheetMutation']['id'],'params':_0x4a56c7}),_0x56807f[_0x529f02(0xbd)]({'id':_0x4cb34f[_0x529f02(0x29f)]['id'],'params':_0x45c80b});}else{if(!_0xe1893a[_0x529f02(0x379)](_0x1dee43))return!0x1;const _0x430834=_0x4869f4(_0x21f2c0,new _0x2f3841[(_0x529f02(0x2e0))](),_0x57690e,!0x0);_0x56807f[_0x529f02(0xbd)](..._0x430834[_0x529f02(0x26d)]),_0xa8c821[_0x529f02(0xbd)](..._0x430834[_0x529f02(0x2cb)]);const _0x381b8d={'cellInfo':_0x57690e,'view':_0x488312,'isEmpty':_0x297ef3};if(!await _0x21f2c0['get'](_0xb4db29[_0x529f02(0x133)])[_0x529f02(0x2fe)][_0x529f02(0x2a9)](_0x460ca6)(!0x0,_0x381b8d))return!0x1;const _0x22a5b9=_0x5cb468(_0x21f2c0,_0x381b8d);_0x56807f[_0x529f02(0xbd)](..._0x22a5b9[_0x529f02(0x26d)]),_0xa8c821['push'](..._0x22a5b9[_0x529f02(0x2cb)]);}return _0x56807f[_0x529f02(0xbd)]({'id':_0x7b9428['id'],'params':{'unitId':_0x57690e[_0x529f02(0x1b5)],'subUnitId':_0x57690e['subUnitId'],'pivotTableId':_0x192ba8,'pivotTableConfig':{'targetCellInfo':_0x57690e,'sourceRangeInfo':_0x2b6679,'fieldsConfig':_0x38e2ba},'collectionConfig':_0x36afd0}}),_0xa8c821[_0x529f02(0x318)]({'id':_0x7f4ffc['id'],'params':{'unitId':_0x362860,'subUnitId':_0x1dee43,'pivotTableId':_0x192ba8}}),_0x21d8ed[_0x529f02(0x153)](_0x56807f,_0xaf16ea)&&_0x50874a['pushUndoRedo']({'unitID':_0x362860,'undoMutations':_0xa8c821,'redoMutations':_0x56807f}),!0x0;}},_0x357937={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0xcf),async 'handler'(_0x1f8fef,_0x3c7d76){const _0x452284=_0x4cc141;if(!_0x3c7d76)return!0x1;const _0x5361ec=_0x1f8fef[_0x452284(0xca)](_0x21d8ed[_0x452284(0x17a)]),_0x5a296a=_0x1f8fef[_0x452284(0xca)](_0xb4db29[_0x452284(0x31e)]),_0x2783f5=_0x1f8fef['get'](_0x21d8ed['IUndoRedoService']),{pivotTableId:_0x23ed7c,fieldId:_0x4fed24,area:_0x2f0eca,index:_0x109c7f,unitId:_0x168c23,subUnitId:_0x8975eb}=_0x3c7d76,_0x555909=(await _0x5a296a[_0x452284(0x304)]({'unitId':_0x168c23,'subUnitId':_0x8975eb,'pivotTableId':_0x23ed7c,'params':{'type':_0x346a09[_0x452284(0x169)],'movePivotField':{'fieldId':_0x4fed24,'area':_0x2f0eca,'index':_0x109c7f}}}))['result'][_0x452284(0x1d4)];if(!_0x555909)return!0x1;const {changesets:_0x24c04f,view:_0x39b930,isEmpty:_0x113d31,pivotTableConfig:_0x2f9d11}=_0x555909,_0x588e19=_0x2f9d11[_0x452284(0xff)],_0x8d1f9a=new _0x2f3841['PivotView']();_0x8d1f9a[_0x452284(0x365)](_0x39b930);const _0x57be82={'cellInfo':_0x588e19,'view':_0x8d1f9a,'isEmpty':_0x113d31};if(!await _0x1f8fef[_0x452284(0xca)](_0xb4db29[_0x452284(0x133)])[_0x452284(0x2fe)][_0x452284(0x2a9)](_0x460ca6)(!0x0,_0x57be82))return!0x1;const _0x2cc6d3=_0x4869f4(_0x1f8fef,_0x8d1f9a,_0x588e19,_0x113d31),_0x45896e=_0x5cb468(_0x1f8fef,_0x57be82),{redos:_0x15b996,undos:_0x452ce8}=_0x4925f7(_0x5361ec,{'pivotTableId':_0x23ed7c,'unitId':_0x168c23,'subUnitId':_0x8975eb},_0x24c04f);return _0x21d8ed[_0x452284(0x153)]([..._0x2cc6d3[_0x452284(0x26d)],..._0x45896e[_0x452284(0x26d)],..._0x15b996],_0x5361ec),_0x2783f5[_0x452284(0x17b)]({'unitID':_0x168c23,'redoMutations':[..._0x2cc6d3[_0x452284(0x26d)],..._0x45896e['redos'],..._0x15b996],'undoMutations':[..._0x2cc6d3[_0x452284(0x2cb)],..._0x45896e[_0x452284(0x2cb)],..._0x452ce8]}),!0x0;}},_0x38c5f4={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0x121),async 'handler'(_0x3aec6b,_0x4f0bed){const _0x524194=_0x4cc141;var _0x3dd587;if(!_0x4f0bed)return!0x1;const _0x24549f=_0x3aec6b[_0x524194(0xca)](_0x21d8ed['IUniverInstanceService']),_0x1f2707=_0x4cb34f[_0x524194(0x24a)](_0x24549f);if(!_0x1f2707)return!0x1;const {unitId:_0x21a7e7,subUnitId:_0x2baf05,workbook:_0x23e660}=_0x1f2707,{row:_0x42e549,col:_0x319610}=_0x4f0bed,_0x1c769b=_0x3aec6b[_0x524194(0xca)](_0xb4db29[_0x524194(0x366)]),_0xd5aad0=_0x1c769b[_0x524194(0x193)](_0x21a7e7,_0x2baf05,_0x42e549,_0x319610);if(!_0xd5aad0)return!0x1;const _0x563026=(_0x3dd587=_0x1c769b[_0x524194(0x32f)](_0x21a7e7,_0x2baf05,_0xd5aad0))==null?void 0x0:_0x3dd587['areaInfo'];if(!_0x563026)return!0x1;const _0x13a49a=_0x3aec6b[_0x524194(0xca)](_0xb4db29[_0x524194(0x2fb)])[_0x524194(0xc5)](_0x21a7e7,_0x2baf05,_0xd5aad0);if(!_0x13a49a)return!0x1;const {rowInfo:_0xd0f5db,colInfo:_0x4f4107}=_0x563026,_0x2297dc=_0xd0f5db[_0x42e549][_0x524194(0x2bf)],_0x381397=_0x4f4107[_0x319610]['paths'],_0x2eab24=_0xd0f5db[_0x42e549][_0x524194(0x293)],_0x5ea2fc=_0x4f4107[_0x319610][_0x524194(0x293)],_0x3b178f=_0x2297dc['concat'](_0x381397),_0x5b5a15=_0x13a49a[_0x524194(0x112)][_0x524194(0xf4)][_0x524194(0x352)](0x0,_0x2eab24),_0x1a83e8=_0x13a49a[_0x524194(0x112)][_0x524194(0x12f)][_0x524194(0x352)](0x0,_0x5ea2fc),_0x4ea734=_0x5b5a15[_0x524194(0xcd)](_0x1a83e8),_0x20e2d7=_0x3b178f[_0x524194(0x324)]((_0x4a8b85,_0x1ba20d)=>[_0x4a8b85,_0x4ea734[_0x1ba20d]]),_0x757fd9=(await _0x3aec6b[_0x524194(0xca)](_0xb4db29[_0x524194(0x31e)])['getPivotDisplayConfig']({'unitId':_0x21a7e7,'subUnitId':_0x2baf05,'pivotTableId':_0xd5aad0,'params':{'type':_0x346a09[_0x524194(0x336)],'drillDown':{'tuple':_0x20e2d7}}}))[_0x524194(0x290)][_0x524194(0x18c)];if(!_0x757fd9)return!0x1;const {indexes:_0x59c31f,range:_0x12f28e,sourceUnitId:_0x2e3e5f,sourceSubUnitId:_0x5a1b32,formatMap:_0x300212}=_0x757fd9,{startRow:_0x1b8d69,endRow:_0x5000bc,startColumn:_0xa040e4,endColumn:_0x2606d3}=_0x12f28e,_0x462113=new _0x21d8ed[(_0x524194(0x2ed))](),_0x3d9d18=_0x5000bc-_0x1b8d69,_0x3d2899=_0x2606d3-_0xa040e4,_0x4f2e7f={},_0x2f2b36=_0x4cb34f[_0x524194(0x24a)](_0x24549f,{'unitId':_0x2e3e5f,'subUnitId':_0x5a1b32});if(!_0x2f2b36)return!0x1;const _0x30e455=_0x1114ba[_0x524194(0x213)],_0x5ccd79=_0x1114ba[_0x524194(0x245)],_0x2005de=_0x1114ba[_0x524194(0x245)],_0x3b24cd=_0x23e660[_0x524194(0x2ea)]()[_0x524194(0x2cf)](_0x30e455),_0x53cd4e=_0x23e660[_0x524194(0x2ea)]()['setValue'](_0x5ccd79),_0x26055b=_0x23e660['getStyles']()[_0x524194(0x2cf)](_0x2005de),{worksheet:_0x317afa}=_0x2f2b36;let _0x55ebb9=0x0;const _0x2d0a78=0x1;_0x59c31f[_0x524194(0x2b9)](_0x2f46d4=>{const _0x37814e=_0x524194;for(let _0x3024da=0x0;_0x3024da<=_0x2606d3-_0xa040e4;_0x3024da++)_0x462113[_0x37814e(0x2cf)](_0x55ebb9,_0x3024da,_0x317afa['getCellRaw'](_0x2f46d4+_0x12f28e[_0x37814e(0x364)]+_0x2d0a78,_0x3024da));_0x55ebb9++;});for(let _0x42d745=_0xa040e4;_0x42d745<=_0x2606d3;_0x42d745++){const _0x36ac0b=_0x317afa[_0x524194(0x25a)](_0x1b8d69,_0x42d745);_0x4f2e7f[_0x1b8d69]||(_0x4f2e7f[_0x1b8d69]={}),_0x4f2e7f[_0x1b8d69][_0x42d745]={..._0x36ac0b,'s':_0x3b24cd};}let _0x48cc5e=0x1;const _0x168ec1={},_0xa0ef9c={};_0x462113[_0x524194(0x195)]((_0x4c7da6,_0x94ccc9)=>{_0x94ccc9['forEach'](_0x1d97cd=>{const _0x50bd15=_0x2015,_0xf3cdca=_0x462113[_0x50bd15(0x1f6)](_0x4c7da6,_0x1d97cd);if(_0x4f2e7f[_0x48cc5e]||(_0x4f2e7f[_0x48cc5e]={}),_0x4f2e7f[_0x48cc5e][_0x1d97cd]={..._0xf3cdca,'s':_0x48cc5e%0x2===0x0?_0x26055b:_0x53cd4e},_0x300212[_0x1d97cd]&&_0x4c7da6>=0x0){const _0x580e50=_0x48cc5e%0x2===0x0;let _0x4c8cb1=_0x580e50?_0xa0ef9c[_0x1d97cd]:_0x168ec1[_0x1d97cd];_0x4c8cb1||(_0x4c8cb1=_0x23e660[_0x50bd15(0x2ea)]()[_0x50bd15(0x2cf)]({..._0x580e50?_0x2005de:_0x5ccd79,'n':{'pattern':_0x300212[_0x1d97cd]}}),_0x580e50?_0xa0ef9c[_0x1d97cd]=_0x4c8cb1:_0x168ec1[_0x1d97cd]=_0x4c8cb1),_0x4f2e7f[_0x48cc5e][_0x1d97cd]['s']=_0x4c8cb1;}}),_0x48cc5e++;});const _0x320a85=new _0x21d8ed[(_0x524194(0x2ed))](_0x4f2e7f),_0x17bef0={};_0x320a85[_0x524194(0x232)]((_0x4bd8cb,_0x3e180c,_0xb1886e)=>{_0x17bef0[_0x4bd8cb]||(_0x17bef0[_0x4bd8cb]={}),_0x17bef0[_0x4bd8cb][_0x3e180c]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x4a3b07=[],_0x365302=[],_0x20d3d2=_0x23e660[_0x524194(0x1f7)]()['length'],_0x5b87e4=_0x21d8ed['mergeWorksheetSnapshotWithDefault']({'rowCount':Math[_0x524194(0x1b6)](_0x21d8ed['DEFAULT_WORKSHEET_ROW_COUNT'],_0x3d9d18+0xa),'columnCount':Math[_0x524194(0x1b6)](_0x21d8ed[_0x524194(0x1c4)],_0x3d2899+0x5)}),_0x4cf8ee=_0x3aec6b[_0x524194(0xca)](_0x21d8ed[_0x524194(0x35f)]);_0x5b87e4['id']=_0x21d8ed[_0x524194(0xcb)](),_0x5b87e4['name']=_0x23e660[_0x524194(0x36f)](''+_0x4cf8ee['t'](_0x524194(0x253)));const _0x23fa88={'index':_0x20d3d2,'sheet':_0x5b87e4,'unitId':_0x21a7e7},_0x315469=_0x4cb34f['InsertSheetUndoMutationFactory'](_0x3aec6b,_0x23fa88);_0x365302[_0x524194(0xbd)]({'id':_0x4cb34f[_0x524194(0x29f)]['id'],'params':_0x23fa88}),_0x4a3b07['push']({'id':_0x4cb34f[_0x524194(0x180)]['id'],'params':_0x315469}),_0x365302[_0x524194(0xbd)]({'id':_0x4cb34f[_0x524194(0x35a)]['id'],'params':{'unitId':_0x21a7e7,'subUnitId':_0x5b87e4['id'],'cellValue':_0x4f2e7f}}),_0x4a3b07[_0x524194(0x318)]({'id':_0x4cb34f[_0x524194(0x35a)]['id'],'params':{'unitId':_0x21a7e7,'subUnitId':_0x5b87e4['id'],'cellValue':_0x17bef0}});const _0x202b08={'startRow':0x0,'startColumn':0x0,'endRow':_0x48cc5e-0x1,'endColumn':_0x2606d3};_0x365302[_0x524194(0xbd)]({'id':_0x117e0c[_0x524194(0xf9)]['id'],'params':{'unitId':_0x21a7e7,'subUnitId':_0x5b87e4['id'],'range':_0x202b08}}),_0x4a3b07[_0x524194(0x318)]({'id':_0x117e0c[_0x524194(0x22f)]['id'],'params':{'unitId':_0x21a7e7,'subUnitId':_0x5b87e4['id']}});const _0x4737dc=_0x3aec6b[_0x524194(0xca)](_0x21d8ed[_0x524194(0x17a)]);return _0x21d8ed[_0x524194(0x153)](_0x365302,_0x4737dc)&&_0x3aec6b[_0x524194(0xca)](_0x21d8ed['IUndoRedoService'])['pushUndoRedo']({'unitID':_0x21a7e7,'undoMutations':_0x4a3b07,'redoMutations':_0x365302}),!0x0;}},_0x288e45={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0x385),async 'handler'(_0x11cb3f,_0x2f222f){const _0x1860ea=_0x4cc141;if(!_0x2f222f)return!0x1;const _0x357c63=_0x11cb3f[_0x1860ea(0xca)](_0x21d8ed['ICommandService']),_0x2af013=_0x11cb3f[_0x1860ea(0xca)](_0xb4db29[_0x1860ea(0x31e)]),_0x13fa04=_0x11cb3f['get'](_0x21d8ed[_0x1860ea(0x1b0)]),{pivotTableId:_0x49dbb4,fieldIds:_0x74ab3c,unitId:_0x247755,subUnitId:_0x1da5e5}=_0x2f222f,_0x57b5bc=(await _0x2af013[_0x1860ea(0x304)]({'unitId':_0x247755,'subUnitId':_0x1da5e5,'pivotTableId':_0x49dbb4,'params':{'type':_0x346a09['RemovePivotField'],'removePivotField':{'fieldIds':_0x74ab3c}}}))[_0x1860ea(0x290)]['removePivotField'];if(!_0x57b5bc)return!0x1;const {view:_0x20e319,changesets:_0x25e192,isEmpty:_0x15d20c,pivotTableConfig:_0x2082c2}=_0x57b5bc,_0x44b836=_0x2082c2[_0x1860ea(0xff)],_0x28ace8=new _0x2f3841['PivotView']();_0x28ace8[_0x1860ea(0x365)](_0x20e319);const _0x239a61={'cellInfo':_0x44b836,'view':_0x28ace8,'isEmpty':_0x15d20c};if(!await _0x11cb3f[_0x1860ea(0xca)](_0xb4db29['SheetsPivotTableService'])['asyncInterceptor'][_0x1860ea(0x2a9)](_0x460ca6)(!0x0,_0x239a61))return!0x1;const _0x31ab61=_0x4869f4(_0x11cb3f,_0x28ace8,_0x44b836,_0x15d20c),_0x2da7de=_0x5cb468(_0x11cb3f,_0x239a61),{redos:_0x218920,undos:_0x2af4ea}=_0x4925f7(_0x357c63,{'pivotTableId':_0x49dbb4,'unitId':_0x247755,'subUnitId':_0x1da5e5},_0x25e192);return _0x21d8ed[_0x1860ea(0x153)]([..._0x31ab61[_0x1860ea(0x26d)],..._0x2da7de[_0x1860ea(0x26d)],..._0x218920],_0x357c63),_0x13fa04[_0x1860ea(0x17b)]({'unitID':_0x247755,'redoMutations':[..._0x31ab61[_0x1860ea(0x26d)],..._0x2da7de[_0x1860ea(0x26d)],..._0x218920],'undoMutations':[..._0x31ab61['undos'],..._0x2da7de[_0x1860ea(0x2cb)],..._0x2af4ea]}),!0x0;}},_0x44608d={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0x2af),async 'handler'(_0x1f0ba8,_0x12a619){const _0x420062=_0x4cc141;var _0x44729f;const _0x51f763=_0x1f0ba8[_0x420062(0xca)](_0x21d8ed[_0x420062(0x17a)]),_0x50e6d6=_0x1f0ba8[_0x420062(0xca)](_0xb4db29['SheetsPivotRPCService']),_0x42c224=_0x1f0ba8[_0x420062(0xca)](_0xb4db29[_0x420062(0x366)]),_0x36f905=_0x1f0ba8[_0x420062(0xca)](_0x21d8ed[_0x420062(0x367)]),_0x234f1b=_0x1f0ba8[_0x420062(0xca)](_0x21d8ed[_0x420062(0x1b0)]);if(!_0x12a619)return!0x1;const {unitId:_0x2ceea5,subUnitId:_0x13f44d,row:_0x40f1af,col:_0x2ea39d,collapse:_0x2a468d}=_0x12a619,_0x4fda28=_0x36f905[_0x420062(0x360)](_0x2ceea5);if(!_0x4fda28||!_0x4fda28['getSheetBySheetId'](_0x13f44d))return!0x1;const _0x57ea15=_0x42c224['getPivotTableIdByCell'](_0x2ceea5,_0x13f44d,_0x40f1af,_0x2ea39d);if(!_0x57ea15)return!0x1;const _0x59a83e=_0x42c224[_0x420062(0x32f)](_0x2ceea5,_0x13f44d,_0x57ea15);if(!_0x59a83e)return!0x1;const _0x569165=_0x21d8ed[_0x420062(0x1f4)](_0x40f1af,_0x2ea39d),{rangesInfo:_0xb8fc0e,areaInfo:_0x29ae52,headerMap:_0x7fcc01}=_0x59a83e;if(!_0xb8fc0e||!_0x29ae52||!_0x7fcc01)return!0x1;const _0x444446=Object[_0x420062(0x1df)](_0xb8fc0e)['find'](_0x5d9fe4=>_0xb8fc0e[_0x5d9fe4][_0x420062(0x145)](_0x35ea20=>_0x21d8ed[_0x420062(0x251)][_0x420062(0x2b8)](_0x35ea20,_0x569165)));let _0x4e2c61;_0x444446===_0x420062(0x2a4)?_0x4e2c61=_0x7fcc01[_0x420062(0x2f5)][_0x2ea39d]:_0x444446==='colRanges'&&(_0x4e2c61=_0x7fcc01['colHeaderMap'][_0x40f1af]);const _0x31b7c5=_0x4e2c61==null?void 0x0:_0x4e2c61['tableFieldId'],_0x50f854=(_0x44729f=_0x42c224[_0x420062(0x152)](_0x2ceea5,_0x13f44d,_0x40f1af,_0x2ea39d))==null?void 0x0:_0x44729f['v'];if(_0x50f854==null||!_0x57ea15||!_0x31b7c5)return!0x1;const _0x2182c9=await _0x50e6d6[_0x420062(0x304)]({'unitId':_0x2ceea5,'subUnitId':_0x13f44d,'pivotTableId':_0x57ea15,'params':{'type':_0x346a09[_0x420062(0x375)],'setPivotCollapse':{'tableFieldId':_0x31b7c5,'collapse':_0x2a468d,'item':_0x50f854}}}),_0x151821=_0x2182c9==null?void 0x0:_0x2182c9[_0x420062(0x290)][_0x420062(0x38b)];if(!_0x151821)return!0x1;const {view:_0x33b8d7,pivotTableConfig:_0x3670d9,isEmpty:_0x4ad91f,changesets:_0x103596}=_0x151821,_0x5e1adf=new _0x2f3841[(_0x420062(0x2e0))]();_0x5e1adf[_0x420062(0x365)](_0x33b8d7);const _0xb75bc3=_0x3670d9[_0x420062(0xff)],_0x157a6d={'cellInfo':_0xb75bc3,'view':_0x5e1adf,'isEmpty':_0x4ad91f};if(!await _0x1f0ba8['get'](_0xb4db29[_0x420062(0x133)])['asyncInterceptor'][_0x420062(0x2a9)](_0x460ca6)(!0x0,_0x157a6d))return!0x1;const _0x3c3bf0=_0x4869f4(_0x1f0ba8,_0x5e1adf,_0xb75bc3,_0x4ad91f),_0x61dfa6=_0x5cb468(_0x1f0ba8,_0x157a6d),{redos:_0x54220b,undos:_0x47ca1b}=_0x4925f7(_0x51f763,{'pivotTableId':_0x57ea15,'unitId':_0x2ceea5,'subUnitId':_0x13f44d},_0x103596);return _0x21d8ed[_0x420062(0x153)]([..._0x3c3bf0[_0x420062(0x26d)],..._0x61dfa6['redos'],..._0x54220b],_0x51f763),_0x234f1b[_0x420062(0x17b)]({'unitID':_0x2ceea5,'redoMutations':[..._0x3c3bf0[_0x420062(0x26d)],..._0x61dfa6[_0x420062(0x26d)],..._0x54220b],'undoMutations':[..._0x3c3bf0['undos'],..._0x61dfa6[_0x420062(0x2cb)],..._0x47ca1b]}),!0x0;}},_0x451f35={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0xf7),async 'handler'(_0x47cf0a,_0x4282af){const _0x14152d=_0x4cc141;if(!_0x4282af)return!0x1;const _0x4ffe6e=_0x47cf0a[_0x14152d(0xca)](_0x21d8ed['ICommandService']),{pivotTableId:_0x38c14e,tableFieldId:_0xcab601,items:_0x28b9b8,unitId:_0x160489,subUnitId:_0x3391f8,isAll:_0x10b7db}=_0x4282af,_0x1b91ca=_0x47cf0a[_0x14152d(0xca)](_0xb4db29[_0x14152d(0x31e)]),_0x5222d4=_0x47cf0a[_0x14152d(0xca)](_0x21d8ed['IUndoRedoService']),_0x196457=(await _0x1b91ca[_0x14152d(0x304)]({'unitId':_0x160489,'subUnitId':_0x3391f8,'pivotTableId':_0x38c14e,'params':{'type':_0x346a09['SetPivotFilter'],'setPivotFilter':{'tableFieldId':_0xcab601,'items':_0x28b9b8,'isAll':_0x10b7db}}}))[_0x14152d(0x290)][_0x14152d(0x138)];if(!_0x196457)return!0x1;const {changesets:_0x3c8119,pivotTableConfig:_0x16929d,isEmpty:_0x4d1516,view:_0x5de1c7}=_0x196457,_0x1e9e67=_0x16929d[_0x14152d(0xff)],_0x55e664=new _0x2f3841[(_0x14152d(0x2e0))]();_0x55e664[_0x14152d(0x365)](_0x5de1c7);const _0x35d91c={'cellInfo':_0x1e9e67,'view':_0x55e664,'isEmpty':_0x4d1516};if(!await _0x47cf0a[_0x14152d(0xca)](_0xb4db29[_0x14152d(0x133)])[_0x14152d(0x2fe)][_0x14152d(0x2a9)](_0x460ca6)(!0x0,_0x35d91c))return!0x1;const _0x441bb0=_0x4869f4(_0x47cf0a,_0x55e664,_0x1e9e67,_0x4d1516),_0x4ecf48=_0x5cb468(_0x47cf0a,_0x35d91c),{undos:_0x7de74a,redos:_0x10674f}=_0x4925f7(_0x4ffe6e,{'pivotTableId':_0x38c14e,'unitId':_0x160489,'subUnitId':_0x3391f8},_0x3c8119);return _0x21d8ed[_0x14152d(0x153)]([..._0x441bb0[_0x14152d(0x26d)],..._0x4ecf48[_0x14152d(0x26d)],..._0x10674f],_0x4ffe6e),_0x5222d4[_0x14152d(0x17b)]({'unitID':_0x160489,'redoMutations':[..._0x441bb0[_0x14152d(0x26d)],..._0x4ecf48[_0x14152d(0x26d)],..._0x10674f],'undoMutations':[..._0x441bb0[_0x14152d(0x2cb)],..._0x4ecf48[_0x14152d(0x2cb)],..._0x7de74a]}),!0x0;}},_0x2747c2={'type':_0x21d8ed['CommandType'][_0x4cc141(0x238)],'id':'sheet.command.set-pivot-sort',async 'handler'(_0x2c60c5,_0x25d85e){const _0x554f65=_0x4cc141;if(!_0x25d85e)return!0x1;const _0x5d29aa=_0x2c60c5[_0x554f65(0xca)](_0x21d8ed['ICommandService']),_0x41e392=_0x2c60c5['get'](_0x21d8ed[_0x554f65(0x1b0)]),_0x4d526e=_0x2c60c5[_0x554f65(0xca)](_0xb4db29[_0x554f65(0x31e)]),{info:_0x4fe984,tableFieldId:_0x2793cc,pivotTableId:_0x2a2c05,unitId:_0x57ffda,subUnitId:_0x127344}=_0x25d85e,_0x40d781=(await _0x4d526e[_0x554f65(0x304)]({'unitId':_0x57ffda,'subUnitId':_0x127344,'pivotTableId':_0x2a2c05,'params':{'type':_0x346a09[_0x554f65(0x2de)],'setPivotSort':{'tableFieldId':_0x2793cc,'info':_0x4fe984}}}))[_0x554f65(0x290)][_0x554f65(0x139)];if(!_0x40d781)return!0x1;const {changesets:_0x3219ff}=_0x40d781,{redos:_0x43fc5c,undos:_0x544986}=_0x4925f7(_0x5d29aa,{'pivotTableId':_0x2a2c05,'unitId':_0x57ffda,'subUnitId':_0x127344},_0x3219ff);return _0x21d8ed['sequenceExecute'](_0x43fc5c,_0x5d29aa),_0x41e392['pushUndoRedo']({'unitID':_0x57ffda,'redoMutations':_0x43fc5c,'undoMutations':_0x544986}),!0x0;}},_0x584a56={'type':_0x21d8ed['CommandType'][_0x4cc141(0x238)],'id':_0x4cc141(0x37f),async 'handler'(_0x5531e7,_0x1fdc02){const _0x284bc3=_0x4cc141;if(!_0x1fdc02)return!0x1;const _0x2d89c2=_0x5531e7[_0x284bc3(0xca)](_0x21d8ed[_0x284bc3(0x17a)]),_0x2abd67=_0x5531e7[_0x284bc3(0xca)](_0x21d8ed[_0x284bc3(0x1b0)]),_0x2e8f31=_0x5531e7[_0x284bc3(0xca)](_0xb4db29[_0x284bc3(0x31e)]),{displayName:_0x28fbad,subtotalType:_0x1b1090,format:_0x32dd82,tableFieldId:_0x560950,pivotTableId:_0x59c073,unitId:_0x5941de,subUnitId:_0x2bf297}=_0x1fdc02,_0x4bb43f=(await _0x2e8f31[_0x284bc3(0x304)]({'unitId':_0x5941de,'subUnitId':_0x2bf297,'pivotTableId':_0x59c073,'params':{'type':_0x346a09['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x560950,'displayName':_0x28fbad,'subtotalType':_0x1b1090,'format':_0x32dd82}}}))[_0x284bc3(0x290)][_0x284bc3(0x1d2)];if(!_0x4bb43f)return!0x1;const {changesets:_0x1a7f09,view:_0x5763c0,pivotTableConfig:_0x5be5cc,isEmpty:_0x7d78c}=_0x4bb43f,_0xdb5a42=_0x5be5cc[_0x284bc3(0xff)],_0x2e8bf1=new _0x2f3841[(_0x284bc3(0x2e0))]();_0x2e8bf1[_0x284bc3(0x365)](_0x5763c0);const _0x2255f9={'cellInfo':_0xdb5a42,'view':_0x2e8bf1,'isEmpty':_0x7d78c};if(!await _0x5531e7[_0x284bc3(0xca)](_0xb4db29[_0x284bc3(0x133)])[_0x284bc3(0x2fe)][_0x284bc3(0x2a9)](_0x460ca6)(!0x0,_0x2255f9))return!0x1;const _0x3ef260=_0x4869f4(_0x5531e7,_0x2e8bf1,_0xdb5a42,_0x7d78c),_0x23e189=_0x5cb468(_0x5531e7,_0x2255f9),{undos:_0x37b5d2,redos:_0x13fe27}=_0x4925f7(_0x2d89c2,{'pivotTableId':_0x59c073,'unitId':_0x5941de,'subUnitId':_0x2bf297},_0x1a7f09);return _0x21d8ed['sequenceExecute']([..._0x3ef260[_0x284bc3(0x26d)],..._0x23e189[_0x284bc3(0x26d)],..._0x13fe27],_0x2d89c2),_0x2abd67['pushUndoRedo']({'unitID':_0x5941de,'redoMutations':[..._0x3ef260[_0x284bc3(0x26d)],..._0x23e189[_0x284bc3(0x26d)],..._0x13fe27],'undoMutations':[..._0x3ef260['undos'],..._0x23e189['undos'],..._0x37b5d2]}),!0x0;}},_0x15212b={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0x103),async 'handler'(_0x79fb63,_0x41633b){const _0xa3823c=_0x4cc141,_0x1b1335=_0x79fb63[_0xa3823c(0xca)](_0x21d8ed[_0xa3823c(0x17a)]),_0x2bbb35=_0x79fb63[_0xa3823c(0xca)](_0xb4db29[_0xa3823c(0x31e)]),_0xeea083=_0x79fb63['get'](_0x21d8ed[_0xa3823c(0x1b0)]);if(!_0x41633b)return!0x1;const {token:_0x363fb3,dataRangeInfo:_0x185fb6,unitId:_0x15b5c6,subUnitId:_0x5c17f1}=_0x41633b,_0x4e27d5=[],_0x415fe7=[],_0x5b9428=(await _0x2bbb35[_0xa3823c(0x304)]({'unitId':_0x15b5c6,'subUnitId':_0x5c17f1,'pivotTableId':_0x363fb3,'params':{'type':_0x346a09['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0x185fb6,'unitId':_0x15b5c6,'subUnitId':_0x5c17f1}}}))[_0xa3823c(0x290)][_0xa3823c(0x2c8)];if(!_0x5b9428)return!0x1;const {changesets:_0x2e2d56,deleteIds:_0x303164,collectionConfig:_0x3742a7,oldCollectionConfig:_0x184c2b,view:_0x32ae69,isEmpty:_0x48a50d,pivotTableConfig:_0xd1a613}=_0x5b9428;_0x415fe7[_0xa3823c(0xbd)]({'id':_0x5aa2a2['id'],'params':{'pivotTableId':_0x363fb3,'deleteIds':_0x303164,'collectionJSON':_0x3742a7,'dataRangeInfo':_0x185fb6,'unitId':_0x15b5c6,'subUnitId':_0x5c17f1}}),_0x4e27d5[_0xa3823c(0x318)]({'id':_0x5aa2a2['id'],'params':{'pivotTableId':_0x363fb3,'deleteIds':[],'collectionJSON':_0x184c2b,'dataRangeInfo':_0xd1a613['sourceRangeInfo'],'unitId':_0x15b5c6,'subUnitId':_0x5c17f1}});const _0x2cf3ea=_0xd1a613[_0xa3823c(0xff)],_0x94e703=new _0x2f3841[(_0xa3823c(0x2e0))]();_0x94e703[_0xa3823c(0x365)](_0x32ae69);const _0x2faa19={'cellInfo':_0x2cf3ea,'view':_0x94e703,'isEmpty':_0x48a50d};if(!await _0x79fb63[_0xa3823c(0xca)](_0xb4db29[_0xa3823c(0x133)])[_0xa3823c(0x2fe)][_0xa3823c(0x2a9)](_0x460ca6)(!0x0,_0x2faa19))return!0x1;const _0x491b65=_0x4869f4(_0x79fb63,_0x94e703,_0x2cf3ea,_0x48a50d),_0x2b2329=_0x5cb468(_0x79fb63,_0x2faa19),{undos:_0x4b2002,redos:_0x11ebad}=_0x4925f7(_0x1b1335,{'pivotTableId':_0x363fb3,'unitId':_0x15b5c6,'subUnitId':_0x5c17f1},_0x2e2d56);return _0x21d8ed[_0xa3823c(0x153)]([..._0x491b65[_0xa3823c(0x26d)],..._0x2b2329[_0xa3823c(0x26d)],..._0x415fe7,..._0x4b2002],_0x1b1335),_0xeea083['pushUndoRedo']({'unitID':_0x15b5c6,'redoMutations':[..._0x491b65[_0xa3823c(0x26d)],..._0x2b2329[_0xa3823c(0x26d)],..._0x415fe7,..._0x4b2002],'undoMutations':[..._0x491b65[_0xa3823c(0x2cb)],..._0x2b2329[_0xa3823c(0x2cb)],..._0x4e27d5,..._0x11ebad]}),!0x0;}},_0x18f6d9={'type':_0x21d8ed['CommandType'][_0x4cc141(0x238)],'id':_0x4cc141(0xeb),async 'handler'(_0x445d72,_0x2d18b0){const _0xbf4b93=_0x4cc141;if(!_0x2d18b0)return!0x1;const _0x324458=_0x445d72['get'](_0x21d8ed[_0xbf4b93(0x17a)]),_0x38f1d0=_0x445d72['get'](_0xb4db29[_0xbf4b93(0x31e)]),_0x586d11=_0x445d72[_0xbf4b93(0xca)](_0x21d8ed[_0xbf4b93(0x367)]),_0x4a49d7=_0x445d72[_0xbf4b93(0xca)](_0x21d8ed[_0xbf4b93(0x1b0)]),{pivotTableId:_0x58b350,position:_0x3b9b5b,index:_0x285ade}=_0x2d18b0,_0x2e446a=_0x4cb34f[_0xbf4b93(0x24a)](_0x586d11);if(!_0x2e446a)return!0x1;const {unitId:_0x10520e,subUnitId:_0x5e2554}=_0x2e446a,_0x342763=(await _0x38f1d0['getPivotDisplayConfig']({'unitId':_0x10520e,'subUnitId':_0x5e2554,'pivotTableId':_0x58b350,'params':{'type':_0x346a09['UpdateValuePosition'],'updateValuePosition':{'position':_0x3b9b5b,'index':_0x285ade}}}))['result'][_0xbf4b93(0x227)];if(!_0x342763)return!0x1;const {changesets:_0x2b3685,view:_0x81397c,isEmpty:_0x1c1f59,pivotTableConfig:_0x12e007}=_0x342763,_0x3f3448=_0x12e007[_0xbf4b93(0xff)],_0x3c85af=new _0x2f3841[(_0xbf4b93(0x2e0))]();_0x3c85af[_0xbf4b93(0x365)](_0x81397c);const _0x104847=_0x445d72[_0xbf4b93(0xca)](_0xb4db29[_0xbf4b93(0x133)]),_0x16405d={'cellInfo':_0x3f3448,'view':_0x3c85af,'isEmpty':_0x1c1f59};if(!await _0x104847[_0xbf4b93(0x2fe)][_0xbf4b93(0x2a9)](_0x460ca6)(!0x0,_0x16405d))return!0x1;const _0x190f21=_0x4869f4(_0x445d72,_0x3c85af,_0x3f3448,_0x1c1f59),_0x3949ad=_0x5cb468(_0x445d72,_0x16405d),{undos:_0x4fc354,redos:_0x2363f5}=_0x4925f7(_0x324458,{'pivotTableId':_0x58b350,'unitId':_0x10520e,'subUnitId':_0x5e2554},_0x2b3685);return _0x21d8ed[_0xbf4b93(0x153)]([..._0x190f21[_0xbf4b93(0x26d)],..._0x3949ad[_0xbf4b93(0x26d)],..._0x2363f5],_0x324458),_0x4a49d7[_0xbf4b93(0x17b)]({'unitID':_0x10520e,'redoMutations':[..._0x190f21[_0xbf4b93(0x26d)],..._0x3949ad[_0xbf4b93(0x26d)],..._0x2363f5],'undoMutations':[..._0x190f21[_0xbf4b93(0x2cb)],..._0x3949ad[_0xbf4b93(0x2cb)],..._0x4fc354]}),!0x0;}},_0x50084d={'type':_0x21d8ed[_0x4cc141(0x13a)][_0x4cc141(0x238)],'id':_0x4cc141(0x363),'handler':(_0x517463,_0x451f7e)=>{const _0x46c1b4=_0x4cc141,_0x36d756=_0x517463[_0x46c1b4(0xca)](_0x21d8ed[_0x46c1b4(0x17a)]),_0x5b7adf=_0x517463[_0x46c1b4(0xca)](_0x21d8ed[_0x46c1b4(0x1b0)]),_0x42587d=_0x517463[_0x46c1b4(0xca)](_0xb4db29[_0x46c1b4(0x2fb)]),_0x3d5746=_0x517463['get'](_0x21d8ed['IUniverInstanceService']);if(!_0x451f7e)return!0x1;const _0x647c16=_0x4cb34f['getSheetCommandTarget'](_0x3d5746);if(!_0x647c16)return!0x1;const {unitId:_0x327f4d,subUnitId:_0x2ccc95,workbook:_0x4b3af0}=_0x647c16,_0x185fdf=_0x42587d[_0x46c1b4(0xc5)](_0x451f7e['originTargetInfo'][_0x46c1b4(0x1b5)],_0x451f7e['originTargetInfo'][_0x46c1b4(0x18a)],_0x451f7e[_0x46c1b4(0xdc)]);if(!_0x185fdf)return!0x1;const _0x3afc26=_0x4b3af0[_0x46c1b4(0x379)](_0x451f7e[_0x46c1b4(0xff)][_0x46c1b4(0x18a)]);if(!_0x3afc26)throw new Error(_0x46c1b4(0xf6));const _0x5edf9b=_0x3afc26['getRowCount'](),_0x512d06=_0x3afc26[_0x46c1b4(0x2c7)]();if(_0x451f7e[_0x46c1b4(0xff)][_0x46c1b4(0x115)]>_0x5edf9b||_0x451f7e[_0x46c1b4(0xff)][_0x46c1b4(0x359)]>_0x512d06)throw new Error(_0x46c1b4(0xbe));const _0x3a5a86=[{'id':_0x77fe44['id'],'params':{'unitId':_0x327f4d,'subUnitId':_0x451f7e['targetCellInfo'][_0x46c1b4(0x18a)],'pivotTableId':_0x451f7e['pivotTableId'],'targetCellPosition':{'row':_0x451f7e[_0x46c1b4(0xff)][_0x46c1b4(0x115)],'col':_0x451f7e[_0x46c1b4(0xff)]['col']}}}],_0x589ef7=[{'id':_0x77fe44['id'],'params':{'unitId':_0x327f4d,'subUnitId':_0x2ccc95,'pivotTableId':_0x451f7e[_0x46c1b4(0xdc)],'targetCellPosition':{'row':_0x185fdf[_0x46c1b4(0xff)][_0x46c1b4(0x115)],'col':_0x185fdf[_0x46c1b4(0xff)][_0x46c1b4(0x359)]}}}];return _0x21d8ed['sequenceExecute'](_0x3a5a86,_0x36d756)&&_0x5b7adf[_0x46c1b4(0x17b)]({'unitID':_0x327f4d,'undoMutations':_0x589ef7,'redoMutations':_0x3a5a86}),!0x0;}},_0x1e6f6d=_0x4cc141(0x34a),_0x47ece4={};var _0x4a499b=Object[_0x4cc141(0xe7)],_0x5095d7=Object[_0x4cc141(0x14c)],_0x208666=(_0x2d32d3,_0x80cf7c,_0x16e169,_0x322ccc)=>{for(var _0x13704c=_0x322ccc>0x1?void 0x0:_0x322ccc?_0x5095d7(_0x80cf7c,_0x16e169):_0x80cf7c,_0x5cac9f=_0x2d32d3['length']-0x1,_0x22dd81;_0x5cac9f>=0x0;_0x5cac9f--)(_0x22dd81=_0x2d32d3[_0x5cac9f])&&(_0x13704c=(_0x322ccc?_0x22dd81(_0x80cf7c,_0x16e169,_0x13704c):_0x22dd81(_0x13704c))||_0x13704c);return _0x322ccc&&_0x13704c&&_0x4a499b(_0x80cf7c,_0x16e169,_0x13704c),_0x13704c;},_0x4fe3a1=(_0xbf0bd6,_0xea365b)=>(_0x289801,_0x1506f7)=>_0xea365b(_0x289801,_0x1506f7,_0xbf0bd6);const _0xa1e826=()=>({'runtimeCellData':{},'dirtyRanges':{}}),_0x335ab5=(_0x3df06a,_0x4f7049,_0x1728c4)=>{const _0x23c4de=_0x4cc141,_0x4506b9=_0x3df06a[_0x23c4de(0x31a)];_0x3df06a[_0x23c4de(0x382)](_0x3081aa=>{const _0x3831f5=_0x23c4de,_0x52f1cb=_0x3081aa[_0x3831f5(0x388)](),_0x294f43=_0x3081aa[_0x3831f5(0x303)](),_0x5b81b7=_0x3081aa[_0x3831f5(0x1e9)](),_0x3090bd=_0x3081aa[_0x3831f5(0x1db)]();_0x4f7049[_0x294f43]&&_0x4f7049[_0x294f43]===_0x3090bd&&_0x5b81b7===_0x3090bd&&(_0x3df06a[_0x3831f5(0x203)](_0x52f1cb,_0x4506b9['getDisplayName'](_0x294f43)),_0x3081aa['setSourceName'](_0x4506b9[_0x3831f5(0x1db)](_0x294f43)));}),_0x3df06a['iterateFieldByArea'](_0x2f3841[_0x23c4de(0x332)][_0x23c4de(0x16b)],_0x2ed3dd=>{const _0x17774c=_0x23c4de,_0x4f01d6=_0x2ed3dd['getId'](),_0x4babc6=_0x2ed3dd[_0x17774c(0x303)](),_0x52bf48=_0x2ed3dd[_0x17774c(0x1e9)](),_0x594910=_0x2ed3dd[_0x17774c(0x1db)](),_0x2bcfe0=_0x2ed3dd[_0x17774c(0x130)](),_0x1c1b8b=_0x1728c4(_0x52bf48,_0x2bcfe0);_0x4f7049[_0x4babc6]&&_0x4f7049[_0x4babc6]===_0x52bf48&&_0x1c1b8b===_0x594910&&(_0x3df06a[_0x17774c(0x203)](_0x4f01d6,_0x1728c4(_0x4506b9[_0x17774c(0x1db)](_0x4babc6),_0x2bcfe0)),_0x2ed3dd[_0x17774c(0x2be)](_0x4506b9[_0x17774c(0x1db)](_0x4babc6)));});},_0x3895d3=(_0x32eaea,_0x93e73c,_0x200f93)=>{const _0x539825=_0x4cc141;var _0x5c3604,_0x3210fd;const {arrayFormulaCellData:_0x5017e6,unitData:_0x11eb8d}=_0x93e73c,{unitId:_0xcd0c0d,subUnitId:_0x5c70c7}=_0x200f93,_0x2d3eae=_0x200f93[_0x539825(0x171)],{startColumn:_0x8d2ff,endColumn:_0x504395}=_0x2d3eae,_0x4fceb6=(_0x5c3604=_0x5017e6==null?void 0x0:_0x5017e6[_0xcd0c0d])==null?void 0x0:_0x5c3604[_0x5c70c7],_0x1124e3=(_0x3210fd=_0x11eb8d==null?void 0x0:_0x11eb8d[_0xcd0c0d])==null?void 0x0:_0x3210fd[_0x5c70c7],_0x5a403c=new Set(),_0x33a4cc=_0x504395-_0x8d2ff+0x1,{dirtyRanges:_0x57ad43}=_0x32eaea;if(_0x57ad43)for(const {range:_0x2040af,sheetId:_0x26a7ef,unitId:_0x6f9787}of _0x57ad43){if(_0x26a7ef!==_0x5c70c7||_0xcd0c0d!==_0x6f9787)continue;const _0x1f69cc=_0x21d8ed[_0x539825(0x251)][_0x539825(0x373)](_0x2040af,_0x2d3eae);if(_0x1f69cc){const {startColumn:_0x1f781a,endColumn:_0x3047d5}=_0x1f69cc;for(let _0x442265=_0x1f781a;_0x442265<=_0x3047d5;_0x442265++)_0x5a403c[_0x539825(0x1b9)](_0x442265);}}if(_0x5a403c[_0x539825(0x2fa)]===_0x33a4cc||_0x5a403c[_0x539825(0x2fa)]===_0x33a4cc)return Array['from'](_0x5a403c);if(_0x1124e3){const _0x1ba6b3=_0x1124e3['getMatrix'](),_0x40e7a6=Object['keys'](_0x1ba6b3);for(const _0x15e2e6 of _0x40e7a6){const _0x3e3928=Number(_0x15e2e6),_0x4e4e5e=_0x1ba6b3[_0x3e3928];if(_0x5a403c[_0x539825(0x2fa)]===_0x33a4cc)break;for(const _0x55bcfe in _0x4e4e5e){const _0x38fb17=Number(_0x55bcfe);_0x38fb17<_0x8d2ff||_0x38fb17>_0x504395||_0x5a403c[_0x539825(0x1b9)](_0x38fb17);}}}if(_0x4fceb6){const _0x3b0b96=_0x4fceb6[_0x539825(0x314)](),_0x26ca54=Object['keys'](_0x3b0b96);for(const _0x1ee213 of _0x26ca54){const _0x8c196a=Number(_0x1ee213),_0x3490cc=_0x3b0b96[_0x8c196a];if(_0x5a403c['size']===_0x33a4cc)break;for(const _0x2b7a82 in _0x3490cc){const _0xb1d8b4=Number(_0x2b7a82);_0xb1d8b4<_0x8d2ff||_0xb1d8b4>_0x504395||_0x5a403c[_0x539825(0x1b9)](_0xb1d8b4);}}}return Array[_0x539825(0x2a8)](_0x5a403c);},_0x118eb5=_0xb3f29e=>{const _0x4c882f=_0x4cc141,_0x188a26=new Set(),_0x314088=[];for(const _0x455a8b of _0xb3f29e){const _0x13bbe1=_0x455a8b[_0x4c882f(0x364)]+','+_0x455a8b[_0x4c882f(0x296)]+','+_0x455a8b[_0x4c882f(0x27d)]+','+_0x455a8b[_0x4c882f(0x1b4)];_0x188a26[_0x4c882f(0x23d)](_0x13bbe1)||(_0x188a26[_0x4c882f(0x1b9)](_0x13bbe1),_0x314088[_0x4c882f(0xbd)](_0x455a8b));}return _0x314088;};let _0x561c17=class extends _0x21d8ed['Disposable']{constructor(_0x13bca4,_0x2f8a6e,_0x37b718,_0xbfe084,_0x4071dc){const _0x251070=_0x4cc141;super(),this['_sheetsPivotDataSourceModel']=_0x13bca4,this[_0x251070(0x113)]=_0x2f8a6e,this[_0x251070(0xfa)]=_0x37b718,this[_0x251070(0x198)]=_0xbfe084,this[_0x251070(0xe9)]=_0x4071dc,this[_0x251070(0x25c)](),this[_0x251070(0xbf)]();}[_0x4cc141(0x25c)](){const _0x59994c=_0x4cc141;this[_0x59994c(0x34c)](),this[_0x59994c(0x210)](),this[_0x59994c(0x349)](),this[_0x59994c(0xd5)]();}[_0x4cc141(0xbf)](){const _0x480516=_0x4cc141;this[_0x480516(0x2a6)](this[_0x480516(0x198)][_0x480516(0x36c)](_0x5ff201=>{const _0x5bd7c8=_0x480516;_0x5ff201['id']===_0x4cb34f[_0x5bd7c8(0x29a)]['id']&&this['_sheetsPivotDataSourceModel'][_0x5bd7c8(0xfb)](_0x5ff201[_0x5bd7c8(0x2c3)]);})),this[_0x480516(0x2a6)](this[_0x480516(0x198)]['onCommandExecuted'](_0x45ff4a=>{const _0x21c6fc=_0x480516;if(_0x45ff4a['id']!==_0x121547['id'])return;const _0x4ae370=_0x45ff4a[_0x21c6fc(0x2c3)],{unitId:_0x5a6692,subUnitId:_0x50b501,pivotTableId:_0x4b168e}=_0x4ae370,_0x3f9fb6=_0x4ae370[_0x21c6fc(0x2c3)]['type'],_0x139345={};switch(_0x3f9fb6){case _0x346a09['Filter']:{const _0x464015=_0x4ae370[_0x21c6fc(0x2c3)]['filter'];if(!_0x464015)return;const {row:_0x128963,col:_0x41b38d,cellData:_0x2d74a8,pivotItemRenderInfoCache:_0x59f94d,tableFieldId:_0x3ac48}=_0x464015,_0x205c63=this[_0x21c6fc(0x26f)]['getPivotTableInstance'](_0x4ae370['pivotTableId']);if(!_0x205c63||!_0x59f94d)return;if(_0x3ac48){const _0x2d5f2e=_0x205c63[_0x21c6fc(0x347)](_0x3ac48);if(!_0x2d5f2e)return;_0x139345['filter']={..._0x205c63['getDataFieldItemInfo'](_0x2d5f2e),'tableFieldId':_0x3ac48,'pivotTableId':_0x4ae370[_0x21c6fc(0xdc)],'filterInfo':_0x205c63[_0x21c6fc(0x26e)](_0x3ac48),'sortInfo':_0x205c63['getSortInfo'](_0x3ac48),'format':_0x205c63[_0x21c6fc(0x2f1)](_0x3ac48)};}else{const _0x3fcee6=_0x2167ce(_0x128963,_0x41b38d,_0x2d74a8,_0x205c63,_0x59f94d),_0x2fdff4=_0x3fcee6==null?void 0x0:_0x3fcee6['filterId'];if(!_0x2fdff4)return;const _0x113425=_0x205c63[_0x21c6fc(0x347)](_0x2fdff4);if(!_0x113425)return;_0x139345[_0x21c6fc(0x319)]={..._0x205c63[_0x21c6fc(0x28d)](_0x113425),'tableFieldId':_0x2fdff4,'pivotTableId':_0x4ae370[_0x21c6fc(0xdc)],'filterInfo':_0x205c63[_0x21c6fc(0x26e)](_0x2fdff4),'sortInfo':_0x205c63['getSortInfo'](_0x2fdff4),'format':_0x205c63[_0x21c6fc(0x2f1)](_0x2fdff4)};}}break;case _0x346a09[_0x21c6fc(0xea)]:{const _0x180724=_0x4ae370[_0x21c6fc(0x2c3)]['panel'];if(!_0x180724)return;const {pivotTableId:_0x55c045}=_0x180724,_0x5b943d=this[_0x21c6fc(0x26f)][_0x21c6fc(0xec)](_0x55c045);if(!_0x5b943d)return;const _0x43e3e7=this[_0x21c6fc(0x26f)][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x55c045),_0x3cff7c=_0x127c1c(_0x5b943d,_0x55c045,_0x43e3e7);_0x139345[_0x21c6fc(0x2bc)]=_0x3cff7c;}break;case _0x346a09[_0x21c6fc(0x297)]:{const _0xb40107=this[_0x21c6fc(0x26f)]['getPivotTableInstance'](_0x4b168e),_0x54cae2=this['_sheetsPivotDataSourceModel'][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e),_0x5e2a30=_0x4ae370[_0x21c6fc(0x2c3)][_0x21c6fc(0x374)];if(!_0xb40107||!_0x54cae2||!_0x5e2a30)return!0x1;const {dataFieldId:_0xf68092,fieldArea:_0x1fbe18,index:_0x109c82}=_0x5e2a30;_0xb40107[_0x21c6fc(0x131)]();const _0xae7b3d=_0xb40107[_0x21c6fc(0x2d1)](_0xf68092,_0x1fbe18,_0x109c82);if(_0xae7b3d&&_0x1fbe18===_0x2f3841['PivotTableFiledAreaEnum']['Value']){const _0x1a5f5f=_0xae7b3d['getId'](),_0x4df6cd=_0xb40107[_0x21c6fc(0x347)](_0x1a5f5f);if(_0x4df6cd){const _0x292bf2=_0x4df6cd==null?void 0x0:_0x4df6cd[_0x21c6fc(0x33d)]();_0xb40107['setSubtotalType'](_0xae7b3d[_0x21c6fc(0x388)](),_0x292bf2===_0x2f3841[_0x21c6fc(0x1aa)][_0x21c6fc(0x2f4)]?_0x2f3841[_0x21c6fc(0x2c0)][_0x21c6fc(0x23c)]:_0x2f3841[_0x21c6fc(0x2c0)]['count']);}const _0x3ec318=_0xb40107[_0x21c6fc(0x2ac)](),_0x297c6d=_0xb40107['getValuePosition'](),_0x5a8d82=_0xb40107[_0x21c6fc(0x355)](_0x2f3841[_0x21c6fc(0x332)]['Value']);if(_0x3ec318===-0x1&&_0x5a8d82>0x1){const _0x26e0ac=_0x297c6d===_0x2f3841['PivotTableValuePositionEnum'][_0x21c6fc(0x2dc)]?_0x2f3841[_0x21c6fc(0x237)][_0x21c6fc(0x36a)]:_0x297c6d,_0x2d0f39=_0x26e0ac===_0x2f3841[_0x21c6fc(0x237)]['Row']?_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x2bd)]:_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x36a)];_0xb40107[_0x21c6fc(0x227)](_0x26e0ac,_0xb40107[_0x21c6fc(0x355)](_0x2d0f39));}}else{if(_0xae7b3d&&(_0x1fbe18===_0x2f3841[_0x21c6fc(0x332)]['Row']||_0x1fbe18===_0x2f3841[_0x21c6fc(0x332)]['Column'])){const _0x427939=_0xae7b3d[_0x21c6fc(0x388)](),_0x50b840=_0xb40107[_0x21c6fc(0x347)](_0x427939);if(_0x50b840&&(_0x50b840==null?void 0x0:_0x50b840[_0x21c6fc(0x33d)]())===_0x2f3841[_0x21c6fc(0x1aa)][_0x21c6fc(0x12a)]){const _0x432eaf=_0x50b840[_0x21c6fc(0x362)]();_0x432eaf&&_0xb40107['setFieldFormat'](_0xae7b3d[_0x21c6fc(0x388)](),_0x432eaf);}}}const _0x37a12e=_0xb40107[_0x21c6fc(0x333)](),_0xdcec17=_0xb40107[_0x21c6fc(0x2e5)]()['toJSON'](),_0x5a1a91=_0xb40107[_0x21c6fc(0x35b)]();_0x139345['addPivotField']={'view':_0xdcec17,'changesets':_0x5a1a91,'isEmpty':_0x37a12e,'pivotTableConfig':_0x54cae2};}break;case _0x346a09[_0x21c6fc(0x18d)]:{const _0x862a84=_0x4ae370[_0x21c6fc(0x2c3)]['addPivotTable'];if(!_0x862a84)return;const _0x2412b5=_0x862a84[_0x21c6fc(0x1fe)],{collection:_0x2406d3}=this[_0x21c6fc(0x26f)][_0x21c6fc(0x26c)]({'unitId':_0x2412b5[_0x21c6fc(0x1b5)],'sheetName':_0x2412b5[_0x21c6fc(0x1fd)],'subUnitId':_0x2412b5[_0x21c6fc(0x18a)],'range':_0x2412b5['range']}),_0x37e733=new _0x2f3841[(_0x21c6fc(0x328))](_0x2406d3),_0x2b0ca8=_0x37e733[_0x21c6fc(0x2e5)](),_0x70940b=_0x37e733[_0x21c6fc(0x1ae)](),_0x2cf41b=_0x2406d3['toJSON']();_0x139345[_0x21c6fc(0x20e)]={'view':_0x2b0ca8,'fieldsConfig':_0x70940b,'collectionConfig':_0x2cf41b,'isEmpty':_0x37e733[_0x21c6fc(0x333)]()};}break;case _0x346a09[_0x21c6fc(0x169)]:{const _0x248984=_0x4ae370[_0x21c6fc(0x2c3)][_0x21c6fc(0x1d4)];if(!_0x248984)return;const {fieldId:_0x1895c3,area:_0x25f02e,index:_0x4f00e3}=_0x248984,_0x2ce926=this[_0x21c6fc(0x26f)]['getPivotTableConfig'](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x2ce926)return;const _0x5036b0=this[_0x21c6fc(0x26f)]['getPivotTableInstance'](_0x4b168e);if(!_0x5036b0)return;_0x5036b0[_0x21c6fc(0x131)]();const {area:_0x396fdf,index:_0x37ad7e}=_0x5036b0[_0x21c6fc(0x202)](_0x1895c3);if(_0x5036b0['updateFieldPosition'](_0x1895c3,_0x25f02e,_0x4f00e3),_0x25f02e===_0x2f3841['PivotTableFiledAreaEnum']['Value']&&_0x5036b0[_0x21c6fc(0xc3)](_0x1895c3)['getSubtotal']()===void 0x0){const _0x14eeab=_0x5036b0[_0x21c6fc(0xc3)](_0x1895c3);if(_0x14eeab&&_0x14eeab[_0x21c6fc(0x130)]()===void 0x0){const _0x1cc1f4=_0x5036b0[_0x21c6fc(0x347)](_0x1895c3);if(_0x1cc1f4){const _0x183092=_0x1cc1f4==null?void 0x0:_0x1cc1f4[_0x21c6fc(0x33d)]();_0x5036b0[_0x21c6fc(0x224)](_0x1895c3,_0x183092===_0x2f3841[_0x21c6fc(0x1aa)][_0x21c6fc(0x2f4)]?_0x2f3841[_0x21c6fc(0x2c0)]['sum']:_0x2f3841[_0x21c6fc(0x2c0)][_0x21c6fc(0x310)]);}}}const _0x2f5fb7=_0x5036b0[_0x21c6fc(0x158)](),_0x56836f=_0x5036b0['getValueIndex'](),_0x53ac57=_0x5036b0[_0x21c6fc(0x355)](_0x2f3841['PivotTableFiledAreaEnum']['Value'])>0x1;if(_0x53ac57&&_0x396fdf===_0x25f02e&&(_0x25f02e===_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x2bd)]&&_0x2f5fb7===_0x2f3841[_0x21c6fc(0x237)][_0x21c6fc(0x2bd)]||_0x25f02e===_0x2f3841[_0x21c6fc(0x332)]['Column']&&_0x2f5fb7===_0x2f3841[_0x21c6fc(0x237)][_0x21c6fc(0x36a)])){let _0xf905da=_0x56836f;_0x37ad7e<=_0x56836f&&_0xf905da--,_0x4f00e3<=_0x56836f&&_0xf905da++,_0x5036b0[_0x21c6fc(0x227)](_0x2f5fb7,_0xf905da);}else _0x53ac57&&(_0x396fdf===_0x2f3841['PivotTableFiledAreaEnum'][_0x21c6fc(0x2bd)]&&_0x2f5fb7===_0x2f3841[_0x21c6fc(0x237)][_0x21c6fc(0x2bd)]||_0x396fdf===_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x36a)]&&_0x2f5fb7===_0x2f3841[_0x21c6fc(0x237)][_0x21c6fc(0x36a)])&&_0x56836f>=_0x37ad7e&&_0x5036b0[_0x21c6fc(0x227)](_0x2f5fb7,_0x56836f-0x1),_0x53ac57&&(_0x25f02e===_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x2bd)]&&_0x2f5fb7===_0x2f3841['PivotTableValuePositionEnum'][_0x21c6fc(0x2bd)]||_0x25f02e===_0x2f3841['PivotTableFiledAreaEnum'][_0x21c6fc(0x36a)]&&_0x2f5fb7===_0x2f3841['PivotTableValuePositionEnum'][_0x21c6fc(0x36a)])&&_0x56836f>=_0x4f00e3&&_0x5036b0[_0x21c6fc(0x227)](_0x2f5fb7,_0x56836f+0x1);const _0x380f3f=_0x5036b0['query'](),_0x556928=_0x5036b0[_0x21c6fc(0x333)](),_0x1baf04=_0x5036b0['endCollectChangeset']();_0x139345[_0x21c6fc(0x1d4)]={'view':_0x380f3f[_0x21c6fc(0x1ae)](),'changesets':_0x1baf04,'isEmpty':_0x556928,'pivotTableConfig':_0x2ce926};}break;case _0x346a09[_0x21c6fc(0x215)]:{const _0x4312f7=_0x4ae370['params']['removePivotField'];if(!_0x4312f7)return;const _0x406885=_0x4312f7[_0x21c6fc(0x176)],_0x45b475=this[_0x21c6fc(0x26f)][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x45b475)return!0x1;const _0x1b57d8=this['_sheetsPivotDataSourceModel'][_0x21c6fc(0xec)](_0x4b168e);if(!_0x1b57d8)return!0x1;_0x1b57d8[_0x21c6fc(0x131)]();for(const _0x3f9d13 of _0x406885)_0x1b57d8['removeField'](_0x3f9d13);const _0x384f11=_0x1b57d8[_0x21c6fc(0x333)](),_0x4ac882=_0x1b57d8[_0x21c6fc(0x2e5)]()['toJSON'](),_0x12cc0d=_0x1b57d8[_0x21c6fc(0x35b)]();_0x139345[_0x21c6fc(0x142)]={'changesets':_0x12cc0d,'pivotTableConfig':_0x45b475,'isEmpty':_0x384f11,'view':_0x4ac882};}break;case _0x346a09[_0x21c6fc(0x2ba)]:{const _0x5ac584=_0x4ae370['params'][_0x21c6fc(0x138)];if(!_0x5ac584)return;const {tableFieldId:_0x3fc5ac,items:_0x1d41b1,isAll:_0x11884f}=_0x5ac584,_0x16716b=this[_0x21c6fc(0x26f)]['getPivotTableInstance'](_0x4b168e),_0x204b01=this[_0x21c6fc(0x26f)][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x16716b||!_0x204b01)return;_0x16716b[_0x21c6fc(0x131)](),_0x16716b[_0x21c6fc(0x119)](_0x3fc5ac,{'type':_0x2f3841[_0x21c6fc(0x389)]['ManualFilter'],'list':_0x1d41b1,'isAll':_0x11884f});const _0x4f507e=_0x16716b['isEmpty'](),_0x17cba0=_0x16716b[_0x21c6fc(0x2e5)]()[_0x21c6fc(0x1ae)](),_0x13e9ce=_0x16716b[_0x21c6fc(0x35b)]();_0x139345[_0x21c6fc(0x138)]={'view':_0x17cba0,'changesets':_0x13e9ce,'isEmpty':_0x4f507e,'pivotTableConfig':_0x204b01};}break;case _0x346a09[_0x21c6fc(0x2de)]:{const _0x5055dd=_0x4ae370[_0x21c6fc(0x2c3)][_0x21c6fc(0x139)];if(!_0x5055dd)return;const {tableFieldId:_0x1ef428,info:_0x2961d3}=_0x5055dd,_0x588afb=this[_0x21c6fc(0x26f)]['getPivotTableInstance'](_0x4b168e),_0x19347c=this['_sheetsPivotDataSourceModel'][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x588afb||!_0x19347c)return;_0x588afb[_0x21c6fc(0x131)](),_0x588afb[_0x21c6fc(0x2b4)](_0x1ef428,_0x2961d3);const _0x34aae4=_0x588afb[_0x21c6fc(0x333)](),_0x1d28a2=_0x588afb[_0x21c6fc(0x2e5)]()[_0x21c6fc(0x1ae)](),_0x50af88=_0x588afb['endCollectChangeset']();_0x139345[_0x21c6fc(0x139)]={'view':_0x1d28a2,'changesets':_0x50af88,'isEmpty':_0x34aae4,'pivotTableConfig':_0x19347c};}break;case _0x346a09[_0x21c6fc(0x19b)]:{const _0x3df631=_0x4ae370[_0x21c6fc(0x2c3)]['setPivotSetting'];if(!_0x3df631)return;const {tableFieldId:_0x2673f2,displayName:_0x42035a,subtotalType:_0xef8dcc,format:_0x4c8835}=_0x3df631,_0x125692=this[_0x21c6fc(0x26f)][_0x21c6fc(0xec)](_0x4b168e),_0x3829b0=this['_sheetsPivotDataSourceModel'][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x125692||!_0x3829b0)return;_0x125692[_0x21c6fc(0x131)](),_0x42035a!==void 0x0&&_0x125692['renameField'](_0x2673f2,_0x42035a),_0xef8dcc!==void 0x0&&_0x125692[_0x21c6fc(0x224)](_0x2673f2,_0xef8dcc),_0x4c8835!==void 0x0&&_0x125692[_0x21c6fc(0x10c)](_0x2673f2,_0x4c8835);const _0x3200ab=_0x125692[_0x21c6fc(0x333)](),_0x3e5d4b=_0x125692[_0x21c6fc(0x2e5)]()['toJSON'](),_0x386f88=_0x125692[_0x21c6fc(0x35b)]();_0x139345['setPivotSetting']={'changesets':_0x386f88,'pivotTableConfig':_0x3829b0,'isEmpty':_0x3200ab,'view':_0x3e5d4b};}break;case _0x346a09['UpdatePivotSource']:{const _0xba87d=_0x4ae370[_0x21c6fc(0x2c3)]['updatePivotSource'];if(!_0xba87d)return;const {dataRangeInfo:_0x4d506d,unitId:_0x8716f5,subUnitId:_0x4dcc1a}=_0xba87d,_0x25417b=this[_0x21c6fc(0x26f)]['getPivotTableConfig'](_0x8716f5,_0x4dcc1a,_0x4b168e),_0x24f113=this[_0x21c6fc(0x26f)]['getPivotTableInstance'](_0x4b168e);if(!this[_0x21c6fc(0x26f)]['getCollection'](_0x8716f5,_0x4b168e)||!_0x24f113||!_0x25417b)return;const _0x206aef=this[_0x21c6fc(0x26f)][_0x21c6fc(0x20f)](_0x8716f5,_0x4b168e,_0x4d506d),_0x4b0798=this[_0x21c6fc(0x26f)][_0x21c6fc(0x114)](_0x8716f5,_0x4b168e)['toJSON'](),{collection:_0x4c774e}=this['_sheetsPivotDataSourceModel'][_0x21c6fc(0x26c)]({'unitId':_0x4d506d[_0x21c6fc(0x1b5)],'sheetName':_0x4d506d[_0x21c6fc(0x1fd)],'subUnitId':_0x4d506d[_0x21c6fc(0x18a)],'range':_0x4d506d[_0x21c6fc(0x171)]}),_0x144770=_0x4c774e[_0x21c6fc(0x1ae)]();_0x24f113[_0x21c6fc(0x131)]();const _0x50a538=this[_0x21c6fc(0x26f)][_0x21c6fc(0x18b)](_0x8716f5)['getAutoDisplayNameFunction']()||_0x2f3841[_0x21c6fc(0x2e3)];_0x24f113['iterateField'](_0x59b5b2=>{const _0x2eb605=_0x21c6fc,_0x44c7fe=_0x59b5b2[_0x2eb605(0x303)]();if(!_0x4c774e[_0x2eb605(0x2ab)](_0x44c7fe)){const _0x3f25a0=_0x4c774e[_0x2eb605(0x159)](_0x59b5b2[_0x2eb605(0x1e9)]());if(_0x3f25a0){_0x24f113[_0x2eb605(0x1d1)](_0x59b5b2['getId'](),_0x3f25a0[_0x2eb605(0x1e1)](),_0x3f25a0[_0x2eb605(0x388)]());const {area:_0x49ec39}=_0x24f113['getFieldPositionInfoById'](_0x59b5b2['getId']());let _0x12fa94=_0x59b5b2[_0x2eb605(0x1e9)]();const _0x240377=_0x59b5b2['getDisplayName']();if(_0x49ec39===_0x2f3841[_0x2eb605(0x332)]['Value']){const _0x56c2e0=_0x59b5b2['getSubtotal']();_0x12fa94=_0x50a538(_0x3f25a0[_0x2eb605(0x1e1)](),_0x56c2e0);}_0x240377!==_0x12fa94&&_0x24f113[_0x2eb605(0x203)](_0x59b5b2[_0x2eb605(0x388)](),_0x12fa94);}else _0x24f113['removeField'](_0x59b5b2[_0x2eb605(0x388)]());}});const _0x3c30e2=_0x24f113[_0x21c6fc(0x333)](),_0x251fd4=_0x24f113[_0x21c6fc(0x2e5)]()[_0x21c6fc(0x1ae)](),_0x51043b=_0x24f113[_0x21c6fc(0x35b)]();_0x139345[_0x21c6fc(0x2c8)]={'view':_0x251fd4,'changesets':_0x51043b,'isEmpty':_0x3c30e2,'pivotTableConfig':_0x25417b,'collectionConfig':_0x144770,'oldCollectionConfig':_0x4b0798,'deleteIds':_0x206aef};}break;case _0x346a09[_0x21c6fc(0x10e)]:{const _0x330ac0=_0x4ae370[_0x21c6fc(0x2c3)][_0x21c6fc(0x227)];if(!_0x330ac0)return;const {position:_0x389365,index:_0x49be5a}=_0x330ac0,_0x3a4482=this[_0x21c6fc(0x26f)][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x3a4482)return!0x1;const _0x2fc8d1=this[_0x21c6fc(0x26f)][_0x21c6fc(0xec)](_0x4b168e);if(!_0x2fc8d1)return!0x1;_0x2fc8d1[_0x21c6fc(0x131)](),_0x2fc8d1[_0x21c6fc(0x227)](_0x389365,_0x49be5a);const _0x3ec2da=_0x2fc8d1[_0x21c6fc(0x333)](),_0x4c35b9=_0x2fc8d1[_0x21c6fc(0x2e5)]()[_0x21c6fc(0x1ae)](),_0x25f075=_0x2fc8d1[_0x21c6fc(0x35b)]();_0x139345[_0x21c6fc(0x227)]={'changesets':_0x25f075,'pivotTableConfig':_0x3a4482,'isEmpty':_0x3ec2da,'view':_0x4c35b9};}break;case _0x346a09[_0x21c6fc(0x375)]:{const _0x467f67=_0x4ae370['params'][_0x21c6fc(0x38b)];if(!_0x467f67)return;const {tableFieldId:_0x3af2f4,collapse:_0x3da79e,item:_0x4a9ec9}=_0x467f67,_0x577d0a=this[_0x21c6fc(0x26f)][_0x21c6fc(0xec)](_0x4b168e),_0x335be4=this[_0x21c6fc(0x26f)][_0x21c6fc(0xc5)](_0x5a6692,_0x50b501,_0x4b168e);if(!_0x577d0a||!_0x335be4)return;_0x577d0a[_0x21c6fc(0x131)](),_0x577d0a[_0x21c6fc(0x146)](_0x3af2f4,_0x3da79e,_0x4a9ec9);const _0x186c77=_0x577d0a[_0x21c6fc(0x333)](),_0x50d721=_0x577d0a[_0x21c6fc(0x2e5)]()[_0x21c6fc(0x1ae)](),_0xc4aa0b=_0x577d0a[_0x21c6fc(0x35b)]();_0x139345[_0x21c6fc(0x38b)]={'view':_0x50d721,'isEmpty':_0x186c77,'pivotTableConfig':_0x335be4,'changesets':_0xc4aa0b};}break;case _0x346a09[_0x21c6fc(0x2cc)]:{const _0x4aaa99=_0x4ae370[_0x21c6fc(0x2c3)][_0x21c6fc(0x1c9)];if(!_0x4aaa99)return;const _0x3a9de1=_0x4aaa99['sourceRangeInfo'],{collection:_0x249049}=this[_0x21c6fc(0x26f)][_0x21c6fc(0x26c)]({'unitId':_0x3a9de1[_0x21c6fc(0x1b5)],'sheetName':_0x3a9de1[_0x21c6fc(0x1fd)],'subUnitId':_0x3a9de1[_0x21c6fc(0x18a)],'range':_0x3a9de1[_0x21c6fc(0x171)]}),_0x299f86=new _0x2f3841[(_0x21c6fc(0x328))](_0x249049),_0x334185=_0x249049[_0x21c6fc(0xdf)](),{rows:_0x2ebb41,columns:_0x49932,filters:_0x1ba9de,values:_0x21920e}=_0x4aaa99[_0x21c6fc(0x2a1)];_0x299f86[_0x21c6fc(0x131)]();for(const {field:_0x5e0141,selectedItems:_0x547457}of _0x2ebb41||[]){const _0x3194fa=_0x334185[_0x5e0141];if(_0x3194fa){const _0x52d448=_0x299f86[_0x21c6fc(0x2d1)](_0x3194fa,_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x2bd)]);_0x547457&&_0x52d448&&_0x299f86[_0x21c6fc(0x119)](_0x52d448['getId'](),{'type':_0x2f3841[_0x21c6fc(0x389)][_0x21c6fc(0x150)],'list':_0x547457,'isAll':!0x1});}}for(const {field:_0x193024,selectedItems:_0x45ea17}of _0x49932||[]){const _0xb7a5c2=_0x334185[_0x193024];if(_0xb7a5c2){const _0x36effc=_0x299f86[_0x21c6fc(0x2d1)](_0xb7a5c2,_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x36a)]);_0x45ea17&&_0x36effc&&_0x299f86[_0x21c6fc(0x119)](_0x36effc['getId'](),{'type':_0x2f3841['PivotFilterTypeEnum'][_0x21c6fc(0x150)],'list':_0x45ea17,'isAll':!0x1});}}for(const {field:_0x2735de,selectedItems:_0x401dfb}of _0x1ba9de||[]){const _0xde8f17=_0x334185[_0x2735de];if(_0xde8f17){const _0x4c8c1c=_0x299f86[_0x21c6fc(0x2d1)](_0xde8f17,_0x2f3841[_0x21c6fc(0x332)][_0x21c6fc(0x135)]);_0x401dfb&&_0x4c8c1c&&_0x299f86[_0x21c6fc(0x119)](_0x4c8c1c['getId'](),{'type':_0x2f3841[_0x21c6fc(0x389)][_0x21c6fc(0x150)],'list':_0x401dfb,'isAll':!0x1});}}for(const {field:_0x34cbd5,subTotalType:_0x1725e1,formatString:_0x525ad4}of _0x21920e||[]){const _0x1933b6=_0x249049[_0x21c6fc(0x2f7)](_0x334185[_0x34cbd5]);if(!_0x1933b6)continue;const _0x4f458c=_0x334185[_0x34cbd5];if(_0x4f458c){const _0x1223a5=_0x299f86['addFieldWithSourceId'](_0x4f458c,_0x2f3841[_0x21c6fc(0x332)]['Value']);if(_0x1223a5){if(_0x1725e1!==void 0x0){_0x299f86[_0x21c6fc(0x224)](_0x1223a5['getId'](),_0x1725e1);const _0x5b9120=this['_sheetsPivotDataSourceModel'][_0x21c6fc(0x18b)](_0x3a9de1[_0x21c6fc(0x1b5)])[_0x21c6fc(0x1ec)]()||_0x2f3841[_0x21c6fc(0x2e3)],_0x405f7b=_0x249049[_0x21c6fc(0x1db)](_0x4f458c),_0x42bd2f=_0x5b9120(_0x405f7b,_0x1725e1);_0x299f86[_0x21c6fc(0x203)](_0x1223a5['getId'](),_0x42bd2f);}else{if(_0x1933b6){const _0xf86b52=_0x1933b6==null?void 0x0:_0x1933b6['getFieldDataType']();_0x299f86[_0x21c6fc(0x224)](_0x1223a5[_0x21c6fc(0x388)](),_0xf86b52===_0x2f3841[_0x21c6fc(0x1aa)][_0x21c6fc(0x2f4)]?_0x2f3841[_0x21c6fc(0x2c0)][_0x21c6fc(0x23c)]:_0x2f3841['PivotSubtotalTypeEnum']['count']);}}_0x525ad4&&_0x299f86['setFieldFormat'](_0x1223a5['getId'](),_0x525ad4);}}}const _0xfc873=_0x299f86[_0x21c6fc(0x2e5)](),_0x129c4f=_0x299f86[_0x21c6fc(0x1ae)](),_0x56511e=_0x299f86[_0x21c6fc(0x333)](),_0x1bf333=_0x299f86['endCollectChangeset'](),_0x321517=_0x249049[_0x21c6fc(0x1ae)]();_0x139345[_0x21c6fc(0x1c9)]={'view':_0xfc873,'fieldsConfig':_0x129c4f,'collectionConfig':_0x321517,'isEmpty':_0x56511e,'changesets':_0x1bf333};}break;case _0x346a09[_0x21c6fc(0x336)]:{const _0x5484a0=_0x4e9a2f(this[_0x21c6fc(0xe9)],_0x4ae370);if(!_0x5484a0)return;const {range:_0x1df6e1,sourceSubUnitId:_0x582279,sourceUnitId:_0x4eb223,formatMap:_0x2b0f4f,indexes:_0x52000c}=_0x5484a0;_0x139345[_0x21c6fc(0x18c)]={'range':_0x1df6e1,'sourceSubUnitId':_0x582279,'sourceUnitId':_0x4eb223,'formatMap':_0x2b0f4f,'indexes':_0x52000c};}break;}this[_0x21c6fc(0x198)][_0x21c6fc(0x1ba)](_0x3a27b6['id'],{'version':_0x4ae370[_0x21c6fc(0x384)],'result':_0x139345},{'onlyLocal':!0x0});}));}[_0x4cc141(0x349)](){const _0x346b87=_0x4cc141;this[_0x346b87(0x2a6)](this['_commandService'][_0x346b87(0x36c)](_0x37ffba=>{const _0x37e60b=_0x346b87;if(_0x37ffba['id']!==_0xd9a4da['id'])return;const _0x46379d=_0x37ffba[_0x37e60b(0x2c3)];return this[_0x37e60b(0x26f)][_0x37e60b(0x1e2)](_0x46379d[_0x37e60b(0x34e)]),!0x0;}));}['_subjectCollectionChange'](){const _0x30e7ff=_0x4cc141;this[_0x30e7ff(0x26f)][_0x30e7ff(0x31b)][_0x30e7ff(0x197)](_0x1fac43=>{const _0x25d5a2=_0x30e7ff;switch(_0x1fac43[_0x25d5a2(0x16f)]){case _0x53c554[_0x25d5a2(0x1b9)]:_0x1fac43['dataRangeInfo']&&_0x1fac43[_0x25d5a2(0xff)]&&this[_0x25d5a2(0x1d5)](_0x1fac43['token'],_0x1fac43[_0x25d5a2(0x2d5)],_0x1fac43[_0x25d5a2(0xff)]);break;case _0x53c554[_0x25d5a2(0x270)]:{const {unitId:_0x22a24d,subUnitId:_0x16c808,token:_0xdec903}=_0x1fac43;_0x22a24d&&_0x16c808&&_0xdec903&&this[_0x25d5a2(0xd3)](_0x22a24d,_0x16c808,_0xdec903);}break;case _0x53c554[_0x25d5a2(0x2ef)]:{const {token:_0x53b234,oldSourceRangeInfo:_0x2011f2,dataRangeInfo:_0x2ff48b,targetCellInfo:_0x1faecd}=_0x1fac43,{unitId:_0x5e80b1,subUnitId:_0x354a4b}=_0x2011f2||{};_0x5e80b1&&_0x354a4b&&_0x53b234&&this['removeSourceRangeChange'](_0x5e80b1,_0x354a4b,_0x53b234),_0x2ff48b&&_0x1faecd&&this[_0x25d5a2(0x1d5)](_0x53b234,_0x2ff48b,_0x1faecd);}break;}});}[_0x4cc141(0xd5)](){const _0x315c05=_0x4cc141;this[_0x315c05(0x26f)][_0x315c05(0x16d)][_0x315c05(0x197)](_0x4cc1d9=>{const _0xf7941b=_0x315c05;Object[_0xf7941b(0x1df)](_0x4cc1d9)[_0xf7941b(0x2b9)](_0x21a00d=>{const _0x44b2cc=_0xf7941b,_0x240ae1=this[_0x44b2cc(0x26f)][_0x44b2cc(0x259)](_0x21a00d);if(_0x240ae1){const _0x56fcf2=this[_0x44b2cc(0x26f)]['getPivotTableConfig'](_0x240ae1==null?void 0x0:_0x240ae1[_0x44b2cc(0x1b5)],_0x240ae1==null?void 0x0:_0x240ae1[_0x44b2cc(0x18a)],_0x21a00d);_0x56fcf2&&(this[_0x44b2cc(0x1d5)](_0x21a00d,_0x56fcf2['sourceRangeInfo'],_0x56fcf2['targetCellInfo']),this[_0x44b2cc(0x175)]([{'unitId':_0x240ae1[_0x44b2cc(0x1b5)],'subUnitId':_0x240ae1[_0x44b2cc(0x18a)],'token':_0x21a00d}]));}});});}[_0x4cc141(0x210)](){const _0x4c000e=_0x4cc141;this[_0x4c000e(0x26f)]['viewData$']['subscribe'](_0x25a944=>{const _0x196969=_0x4c000e,{unitId:_0x294f51,subUnitId:_0x3d1c60,pivotTableId:_0x4539b8}=_0x25a944;_0x294f51&&_0x3d1c60&&_0x4539b8&&this[_0x196969(0x175)]([{'unitId':_0x294f51,'subUnitId':_0x3d1c60,'token':_0x4539b8}]);});}['triggerDirtyFeature'](_0x4592cf){const _0x62b735=_0x4cc141,_0x401fe0={};_0x4592cf[_0x62b735(0x2b9)](_0x19a4a3=>{var _0x220363,_0x2e8c66;const {unitId:_0x20b887,subUnitId:_0x18e19d,token:_0x81655e}=_0x19a4a3;_0x401fe0[_0x20b887]=(_0x220363=_0x401fe0[_0x20b887])!=null?_0x220363:{},_0x401fe0[_0x20b887][_0x18e19d]=(_0x2e8c66=_0x401fe0[_0x20b887][_0x18e19d])!=null?_0x2e8c66:{},_0x401fe0[_0x20b887][_0x18e19d][_0x81655e]=!0x0;}),this[_0x62b735(0x198)][_0x62b735(0x1ba)](_0x4dbcbe['id'],_0x401fe0);}[_0x4cc141(0xd3)](_0x22c04f,_0x442019,_0x256cad){const _0xe43a88=_0x4cc141;this[_0xe43a88(0xfa)][_0xe43a88(0xb9)](_0x22c04f,_0x442019,[_0x256cad]);}[_0x4cc141(0x1d5)](_0x5428dc,_0x686e13,_0x332413){const _0x363c79=_0x4cc141,{unitId:_0x1f14df,subUnitId:_0x586b97}=_0x686e13;this[_0x363c79(0xfa)][_0x363c79(0x23d)](_0x332413['unitId'],_0x332413['subUnitId'],_0x5428dc)&&this['removeSourceRangeChange'](_0x1f14df,_0x586b97,_0x5428dc);const _0x46b13c={'sheetId':_0x586b97,..._0x686e13};this['_featureCalculationManagerService'][_0x363c79(0x380)](_0x332413['unitId'],_0x332413[_0x363c79(0x18a)],_0x5428dc,{'unitId':_0x332413[_0x363c79(0x1b5)],'subUnitId':_0x332413[_0x363c79(0x18a)],'dependencyRanges':[_0x46b13c],'getDirtyData':(_0x5a8e00,_0x4d0919)=>{const _0x4ed699=_0x363c79,_0x40d65d=this[_0x4ed699(0x26f)],_0x53080a=_0x40d65d['getTargetByPivotId'](_0x5428dc);if(!_0x53080a)return _0xa1e826();const {unitId:_0x190c18,subUnitId:_0x65051a}=_0x53080a,_0x30cd76=_0x3895d3(_0x5a8e00,_0x4d0919,_0x686e13);if(_0x30cd76[_0x4ed699(0x170)]>0x0){const _0x4dfdcc=_0x40d65d[_0x4ed699(0x114)](_0x1f14df,_0x5428dc),_0x4bdaef=_0x4dfdcc[_0x4ed699(0xdf)](),_0x31f672=this[_0x4ed699(0x284)](_0x686e13[_0x4ed699(0x1b5)],_0x686e13['subUnitId'],_0x4d0919),_0x261a57={},_0x2a8375=this[_0x4ed699(0x26f)][_0x4ed699(0x18b)](_0x190c18)[_0x4ed699(0x1ec)]()||_0x2f3841[_0x4ed699(0x2e3)];for(const _0x5a4c66 of _0x30cd76){const _0x135b8b=_0x5a4c66-(_0x686e13[_0x4ed699(0x171)]['startColumn']||0x0),_0x45ff8=_0x4bdaef[_0x135b8b];_0x261a57[_0x45ff8]=_0x4dfdcc[_0x4ed699(0x2f7)](_0x45ff8)[_0x4ed699(0x1e1)](),_0x40d65d['getDataFieldManager'](_0x1f14df)['refreshDataField'](_0x45ff8,_0x686e13,_0x135b8b,_0x31f672);}_0x4dfdcc[_0x4ed699(0x21a)]();const _0x445553=_0x40d65d[_0x4ed699(0xec)](_0x5428dc);if(_0x445553){_0x335ab5(_0x445553,_0x261a57,_0x2a8375),_0x445553[_0x4ed699(0x36b)](!0x0);const _0x4aecbb=_0x445553[_0x4ed699(0x2e5)](),_0x12403d=_0x40d65d[_0x4ed699(0xc5)](_0x190c18,_0x65051a,_0x5428dc),_0x140ead=_0x40d65d[_0x4ed699(0x18b)](_0x1f14df)[_0x4ed699(0x1ae)]();_0x40d65d['updateView'](_0x190c18,_0x65051a,_0x2f104b[_0x4ed699(0x11d)],_0x5428dc,_0x4aecbb,_0x12403d,_0x140ead,!0x0);}}return this[_0x4ed699(0x2ad)](_0x190c18,_0x65051a,_0x5428dc);}});}[_0x4cc141(0x284)](_0xeacba9,_0xff51b4,_0x1ac42b){var _0x51b65d,_0x393cac;const {arrayFormulaCellData:_0x7662b5,unitData:_0x8768c0}=_0x1ac42b,_0xf8e868=(_0x51b65d=_0x7662b5==null?void 0x0:_0x7662b5[_0xeacba9])==null?void 0x0:_0x51b65d[_0xff51b4],_0xb8cf56=(_0x393cac=_0x8768c0==null?void 0x0:_0x8768c0[_0xeacba9])==null?void 0x0:_0x393cac[_0xff51b4];return{'arrayFormulaCellDataMatrix':_0xf8e868,'unitDataMatrix':_0xb8cf56};}['getDirtyInfo'](_0x3de202,_0x161f4b,_0x136897){const _0x2bd4cb=_0x4cc141,_0x3e4237=this[_0x2bd4cb(0x26f)][_0x2bd4cb(0x1d6)](_0x3de202,_0x161f4b,_0x136897),_0x57804e=[],_0x26d798=new _0x21d8ed[(_0x2bd4cb(0x2ed))]();if(_0x3e4237){const {rangeCache:_0x3d1469,matrix:_0x431e95,oldRangeCache:_0x167254,oldMatrix:_0x568e09}=_0x3e4237,_0x47bdbe=_0x4558e4(_0x167254),_0x4c42ee=_0x4558e4(_0x3d1469);_0x57804e[_0x2bd4cb(0xbd)](..._0x4c42ee,..._0x47bdbe),_0x568e09&&_0x167254&&_0x47bdbe[_0x2bd4cb(0x2b9)](_0x5294f4=>{const _0x31a1f4=_0x2bd4cb;for(let _0x6b2e3e=_0x5294f4['startRow'];_0x6b2e3e<=_0x5294f4[_0x31a1f4(0x296)];_0x6b2e3e++)for(let _0x402edc=_0x5294f4[_0x31a1f4(0x27d)];_0x402edc<=_0x5294f4[_0x31a1f4(0x1b4)];_0x402edc++)_0x26d798[_0x31a1f4(0x341)](_0x6b2e3e,_0x402edc);}),_0x431e95&&_0x4c42ee&&_0x4c42ee[_0x2bd4cb(0x2b9)](_0x10625b=>{const _0x57798d=_0x2bd4cb;for(let _0x3dfbc0=_0x10625b[_0x57798d(0x364)];_0x3dfbc0<=_0x10625b[_0x57798d(0x296)];_0x3dfbc0++)for(let _0x6d0871=_0x10625b[_0x57798d(0x27d)];_0x6d0871<=_0x10625b[_0x57798d(0x1b4)];_0x6d0871++)_0x26d798[_0x57798d(0x2cf)](_0x3dfbc0,_0x6d0871,_0x431e95['getValue'](_0x3dfbc0,_0x6d0871));});}const _0x508473={};return _0x508473[_0x3de202]={[_0x161f4b]:_0x118eb5(_0x57804e)},{'runtimeCellData':{[_0x3de202]:{[_0x161f4b]:_0x26d798}},'dirtyRanges':_0x508473};}[_0x4cc141(0x294)](){}};_0x561c17=_0x208666([_0x4fe3a1(0x0,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29['SheetsPivotDataSourceModel'])),_0x4fe3a1(0x1,_0x21d8ed['IConfigService']),_0x4fe3a1(0x2,_0x21d8ed[_0x4cc141(0x110)](_0x2ed881[_0x4cc141(0x25e)])),_0x4fe3a1(0x3,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x17a)])),_0x4fe3a1(0x4,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed['Injector']))],_0x561c17);var _0x3eeb4b=Object[_0x4cc141(0xe7)],_0x5359b1=Object['getOwnPropertyDescriptor'],_0x17fa01=(_0x13dc03,_0x455245,_0x208880,_0x523815)=>{const _0x3cb481=_0x4cc141;for(var _0x42490c=_0x523815>0x1?void 0x0:_0x523815?_0x5359b1(_0x455245,_0x208880):_0x455245,_0x33994d=_0x13dc03[_0x3cb481(0x170)]-0x1,_0x412f21;_0x33994d>=0x0;_0x33994d--)(_0x412f21=_0x13dc03[_0x33994d])&&(_0x42490c=(_0x523815?_0x412f21(_0x455245,_0x208880,_0x42490c):_0x412f21(_0x42490c))||_0x42490c);return _0x523815&&_0x42490c&&_0x3eeb4b(_0x455245,_0x208880,_0x42490c),_0x42490c;},_0x538635=(_0x360654,_0xb435dc)=>(_0x5f1944,_0x55e927)=>_0xb435dc(_0x5f1944,_0x55e927,_0x360654);let _0x2111f5=class extends _0x21d8ed[_0x4cc141(0x32e)]{constructor(_0x712151,_0x52a751,_0x506499,_0xc925d0){const _0x35b8ff=_0x4cc141;super(),_0x128c18(this,'disposableCollection',new _0x21d8ed[(_0x35b8ff(0x173))]()),(this[_0x35b8ff(0x2a0)]=_0x712151,this['_sheetInterceptorService']=_0x52a751,this['_sheetsSelectionsService']=_0x506499,this['_sheetsPivotTableConfigModel']=_0xc925d0,this['_initClearSelectionCommandInterceptor']());}['_initClearSelectionCommandInterceptor'](){const _0x1c705e=_0x4cc141;this[_0x1c705e(0x2a6)](this[_0x1c705e(0x376)][_0x1c705e(0x295)]({'getMutations':_0x466437=>{const _0x4d78ef=_0x1c705e;if(_0x466437['id']===_0x4cb34f[_0x4d78ef(0x2d8)]['id']||_0x466437['id']===_0x4cb34f['ClearSelectionAllCommand']['id']){const _0x4ff62a=[],_0x39c1a6=[],_0x5f2dbc=this[_0x4d78ef(0x1d3)]['getCurrentSelections']()[_0x4d78ef(0x324)](_0x3cf58a=>_0x3cf58a['range']),_0x430c96=_0x4cb34f[_0x4d78ef(0x24a)](this['_univerInstanceService']);if(!_0x430c96)return{'redos':[],'undos':[]};const {unitId:_0xafcc08,subUnitId:_0x2b1c7c}=_0x430c96,_0x43c8c5={},_0x3d07ee=this[_0x4d78ef(0x301)][_0x4d78ef(0x370)](_0xafcc08,_0x2b1c7c);if(_0x3d07ee!=null&&_0x3d07ee[_0x4d78ef(0x2fa)])for(const [_0x43aded,_0x17dd84]of _0x3d07ee){const {unitId:_0x3727e2,subUnitId:_0x4a902b,row:_0x14f244,col:_0x1034c9}=_0x17dd84[_0x4d78ef(0xff)];_0x3727e2===_0x430c96[_0x4d78ef(0x1b5)]&&_0x4a902b===_0x430c96[_0x4d78ef(0x18a)]&&(_0x43c8c5[_0x14f244+'-'+_0x1034c9]=_0x43aded);}return _0x5f2dbc&&_0x430c96&&_0x5f2dbc['forEach'](_0x59a551=>{const _0x4a7fc7=_0x4d78ef;_0x21d8ed[_0x4a7fc7(0x271)]['foreach'](_0x59a551,(_0x1a4559,_0x3947f2)=>{const _0x393e30=_0x4a7fc7,_0x4a39ef=_0x1a4559+'-'+_0x3947f2;if(_0x43c8c5[_0x4a39ef]){const _0xeecce=_0x43c8c5[_0x4a39ef];_0x4ff62a[_0x393e30(0xbd)]({'id':_0x7f4ffc['id'],'params':{'unitId':_0xafcc08,'subUnitId':_0x2b1c7c,'pivotTableId':_0xeecce}});const _0xd4a155=this[_0x393e30(0x301)][_0x393e30(0x114)](_0xafcc08,_0xeecce),_0x4a9616=this[_0x393e30(0x301)][_0x393e30(0xc5)](_0xafcc08,_0x2b1c7c,_0xeecce);_0x39c1a6[_0x393e30(0xbd)]({'id':_0x7b9428['id'],'params':{'unitId':_0xafcc08,'subUnitId':_0x2b1c7c,'pivotTableId':_0xeecce,'pivotTableConfig':_0x4a9616,'collectionConfig':_0xd4a155}});}});}),{'redos':_0x4ff62a,'undos':_0x39c1a6};}return{'redos':[],'undos':[]};}}));}};_0x2111f5=_0x17fa01([_0x538635(0x0,_0x21d8ed['IUniverInstanceService']),_0x538635(0x1,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f[_0x4cc141(0x13e)])),_0x538635(0x2,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f[_0x4cc141(0x2c6)])),_0x538635(0x3,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29['SheetsPivotTableConfigModel']))],_0x2111f5);var _0x3b6994=Object[_0x4cc141(0xe7)],_0x501a9f=Object[_0x4cc141(0x14c)],_0x275961=(_0x2c353,_0x9b6cb6,_0x5e4b0c,_0x1e2d15)=>{const _0x29d9d0=_0x4cc141;for(var _0x27b163=_0x1e2d15>0x1?void 0x0:_0x1e2d15?_0x501a9f(_0x9b6cb6,_0x5e4b0c):_0x9b6cb6,_0x4d4005=_0x2c353[_0x29d9d0(0x170)]-0x1,_0x121750;_0x4d4005>=0x0;_0x4d4005--)(_0x121750=_0x2c353[_0x4d4005])&&(_0x27b163=(_0x1e2d15?_0x121750(_0x9b6cb6,_0x5e4b0c,_0x27b163):_0x121750(_0x27b163))||_0x27b163);return _0x1e2d15&&_0x27b163&&_0x3b6994(_0x9b6cb6,_0x5e4b0c,_0x27b163),_0x27b163;},_0x422081=(_0x15791a,_0x16991e)=>(_0x58c9f8,_0x4a99bc)=>_0x16991e(_0x58c9f8,_0x4a99bc,_0x15791a);let _0x4a11a5=class extends _0x21d8ed['Disposable']{constructor(_0x1ddc46,_0x3a3423,_0x50c11b,_0x556fa0,_0x4e24e3,_0x3fb6cc){const _0xae211f=_0x4cc141;super(),this[_0xae211f(0xe5)]=_0x1ddc46,this['_sheetInterceptorService']=_0x3a3423,this[_0xae211f(0xe9)]=_0x50c11b,this[_0xae211f(0x2a0)]=_0x556fa0,this[_0xae211f(0x301)]=_0x4e24e3,this[_0xae211f(0x166)]=_0x3fb6cc,this['_initCommandInterceptListener']();}[_0x4cc141(0x33b)](_0x521fd6,_0x3a789f,_0x5f4aa2){const _0x4a6e02=_0x4cc141,{pageView:_0x47549a,cornerView:_0x9c8185,rowView:_0x50faf5,colView:_0xff4085,dataView:_0x41d3d1}=_0x3a789f,_0x379534=_0x521fd6;let _0x2ca9f3;if(_0x5f4aa2)_0x2ca9f3=[..._0x1c25c8(_0x379534)];else{const _0x5a0d5c=_0x167a54(_0x379534,_0x47549a,!0x0),_0x240783=_0x47549a[_0x4a6e02(0x2b2)]>=0x0?_0x47549a[_0x4a6e02(0x2b2)]+0x1:0x0,_0xc4192d=_0x9c8185[_0x4a6e02(0x1ce)],_0x3d4384=_0x9c8185[_0x4a6e02(0x377)],_0x34b337=_0x5a0d5c[_0x4a6e02(0x170)]>0x0?_0x4887ec:0x0,_0x4aa226=_0x167a54({'row':_0x379534[_0x4a6e02(0x115)]+_0x240783+_0x34b337,'col':_0x379534[_0x4a6e02(0x359)]},_0x9c8185,!0x1,!0x1),_0x344a41=_0x167a54({'row':_0x379534['row']+_0x240783+_0x34b337+_0xc4192d,'col':_0x379534[_0x4a6e02(0x359)]},_0x50faf5,!0x1,!0x0),_0x1d59c6=_0x167a54({'row':_0x379534[_0x4a6e02(0x115)]+_0x240783+_0x34b337,'col':_0x379534['col']+_0x3d4384},_0xff4085,!0x1,!0x0),_0x3fdc8f=_0x167a54({'row':_0x379534[_0x4a6e02(0x115)]+_0x240783+_0x34b337+_0xc4192d,'col':_0x379534[_0x4a6e02(0x359)]+_0x3d4384},_0x41d3d1,!0x1,!0x0);_0x2ca9f3=[..._0x5a0d5c,..._0x4aa226,..._0x344a41,..._0x1d59c6,..._0x3fdc8f];}return _0x2ca9f3;}[_0x4cc141(0x368)](){const _0x1239e9=_0x4cc141;this[_0x1239e9(0x2a6)](this[_0x1239e9(0x166)][_0x1239e9(0x2d9)][_0x1239e9(0x1b2)](this['_sheetsPivotTableService'][_0x1239e9(0x2d9)][_0x1239e9(0x163)]()[_0x1239e9(0x107)],{'handler':(_0x5f7bda,_0xf99647)=>{const _0x5e2094=_0x1239e9,{cellInfo:_0xd99cc3,view:_0x4625c0,isEmpty:_0x5042c1}=_0xf99647,_0x12cf48=_0xd99cc3,{unitId:_0x16a68e,subUnitId:_0x4680f8}=_0x12cf48,_0x35d2fa=this[_0x5e2094(0x33b)](_0xd99cc3,_0x4625c0,_0x5042c1),_0x5dc9fb=this[_0x5e2094(0x376)][_0x5e2094(0x1bd)]({'unitId':_0x16a68e,'subUnitId':_0x4680f8,'ranges':_0x35d2fa}),_0x4f48a6=_0x5c0094(this['_injector'],_0x16a68e,_0x4680f8,_0x35d2fa);_0x4f48a6[_0x5e2094(0x155)]&&(_0x5dc9fb[_0x5e2094(0x26d)][_0x5e2094(0xbd)](_0x4f48a6[_0x5e2094(0x11e)]),_0x5dc9fb[_0x5e2094(0x2cb)]['push'](_0x4f48a6[_0x5e2094(0x1e6)]));const _0x228fe7=this[_0x5e2094(0x30f)](_0x4625c0,_0xd99cc3);return _0x5dc9fb[_0x5e2094(0x26d)][_0x5e2094(0xbd)](..._0x228fe7[_0x5e2094(0x26d)]),_0x5dc9fb[_0x5e2094(0x2cb)][_0x5e2094(0xbd)](..._0x228fe7[_0x5e2094(0x2cb)]),{'redos':_0x5dc9fb[_0x5e2094(0x26d)],'undos':_0x5dc9fb[_0x5e2094(0x2cb)]};}}));}[_0x4cc141(0x30f)](_0x5c39b4,_0xdb25c5){const _0x418c51=_0x4cc141,{col:_0x2853ef,unitId:_0x208b53,subUnitId:_0x5478fa}=_0xdb25c5,_0x40e98f=[],_0x26ec81=[],_0xbdc535=_0x4cb34f[_0x418c51(0x24a)](this[_0x418c51(0x2a0)],{'unitId':_0x208b53,'subUnitId':_0x5478fa});if(!_0xdb25c5||!_0x5c39b4||!_0xbdc535)return{'undos':_0x26ec81,'redos':_0x40e98f};const _0x2e66e9=this[_0x418c51(0x301)][_0x418c51(0x101)](),{colView:_0x4c22ee,dataView:_0xe692fc,cornerView:_0x1a15c9,rowView:_0x64ea38,formatMap:_0x4a2cae}=_0x5c39b4,_0x459020=_0x5a745a(_0x4c22ee,_0x2e66e9,!0x0,_0x4a2cae),_0x92fd80=_0x5a745a(_0x64ea38,_0x2e66e9,!0x1,_0x4a2cae),_0xa366ce=_0x4888fa(_0xe692fc),_0x2dfca0=_0x4881b8(_0x1a15c9),{worksheet:_0x257781}=_0xbdc535;if(typeof window<'u'&&window[_0x418c51(0xf3)]){const _0x5bd1df=_0x200ff1[_0x418c51(0x337)]({..._0x1114ba[_0x418c51(0x213)]}),_0x4809d8=_0x200ff1[_0x418c51(0x316)][_0x418c51(0x165)](_0x459020,_0x5bd1df)['width']+0x10,_0x1f58e0=_0x200ff1[_0x418c51(0x316)]['getTextSize'](_0xa366ce,_0x5bd1df)[_0x418c51(0x371)],_0x14e762=Math[_0x418c51(0x208)](Math[_0x418c51(0x1b6)](_0x4809d8,_0x1f58e0))+0x10,_0x2a7f04=Math[_0x418c51(0x208)](_0x200ff1[_0x418c51(0x316)]['getTextSize'](_0x92fd80,_0x5bd1df)[_0x418c51(0x371)]),_0x3dbfcb=Math[_0x418c51(0x208)](_0x200ff1['FontCache'][_0x418c51(0x165)](_0x2dfca0,_0x5bd1df)['width']),_0x4f06c3=Math[_0x418c51(0x1b6)](_0x2a7f04,_0x3dbfcb,0x28)+0xc,_0x5a43df=_0x4c22ee[_0x418c51(0x377)]+_0x1a15c9[_0x418c51(0x377)],_0x510803={},_0x5af5bc={};for(let _0x210bcb=_0x2853ef;_0x210bcb<_0x2853ef+_0x5a43df;_0x210bcb++){const _0x23b340=_0x257781[_0x418c51(0x1cf)](_0x210bcb);_0x510803[_0x210bcb]=_0x23b340,_0x210bcb-_0x2853ef<_0x1a15c9[_0x418c51(0x377)]?_0x5af5bc[_0x210bcb-_0x2853ef]=_0x4f06c3:_0x5af5bc[_0x210bcb-_0x2853ef]=_0x14e762;}_0x40e98f[_0x418c51(0xbd)]({'id':_0x4cb34f[_0x418c51(0xd4)]['id'],'params':{'subUnitId':_0x5478fa,'unitId':_0x208b53,'ranges':[{'startColumn':_0x2853ef,'endColumn':_0x2853ef+_0x5a43df-0x1,'startRow':0x0,'endRow':_0x257781['getRowCount']()-0x1}],'colWidth':_0x5af5bc}}),_0x26ec81['push']({'id':_0x4cb34f['SetWorksheetColWidthMutation']['id'],'params':{'subUnitId':_0x5478fa,'unitId':_0x208b53,'ranges':[{'startColumn':_0x2853ef,'endColumn':_0x2853ef+_0x5a43df-0x1,'startRow':0x0,'endRow':_0x257781[_0x418c51(0x1a0)]()-0x1}],'colWidth':_0x510803}});}return{'undos':_0x26ec81,'redos':_0x40e98f};}};_0x4a11a5=_0x275961([_0x422081(0x0,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x35f)])),_0x422081(0x1,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f[_0x4cc141(0x13e)])),_0x422081(0x2,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed['Injector'])),_0x422081(0x3,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x367)])),_0x422081(0x4,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29[_0x4cc141(0x2fb)])),_0x422081(0x5,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29[_0x4cc141(0x133)]))],_0x4a11a5);var _0x23075f=Object[_0x4cc141(0xe7)],_0x1b10d1=Object[_0x4cc141(0x14c)],_0x457902=(_0x2b1522,_0x1fb402,_0x57d98a,_0x2ed384)=>{const _0x44d0cf=_0x4cc141;for(var _0x37227e=_0x2ed384>0x1?void 0x0:_0x2ed384?_0x1b10d1(_0x1fb402,_0x57d98a):_0x1fb402,_0x5498b1=_0x2b1522[_0x44d0cf(0x170)]-0x1,_0x51d669;_0x5498b1>=0x0;_0x5498b1--)(_0x51d669=_0x2b1522[_0x5498b1])&&(_0x37227e=(_0x2ed384?_0x51d669(_0x1fb402,_0x57d98a,_0x37227e):_0x51d669(_0x37227e))||_0x37227e);return _0x2ed384&&_0x37227e&&_0x23075f(_0x1fb402,_0x57d98a,_0x37227e),_0x37227e;},_0xc774c5=(_0x102f3d,_0x2d41df)=>(_0x4ff562,_0x6b6506)=>_0x2d41df(_0x4ff562,_0x6b6506,_0x102f3d);let _0x4d3aad=class extends _0x21d8ed['Disposable']{constructor(_0x325f8e,_0x35eefc,_0xeffcc6,_0x2fa328,_0x151c83,_0x202206,_0x41fd44){const _0x37d73f=_0x4cc141;super(),_0x128c18(this,'disposableCollection',new _0x21d8ed[(_0x37d73f(0x173))]()),(this['_injector']=_0x325f8e,this[_0x37d73f(0x244)]=_0x35eefc,this[_0x37d73f(0x198)]=_0xeffcc6,this['_univerInstanceService']=_0x2fa328,this['_sheetsPivotTableConfigModel']=_0x151c83,this[_0x37d73f(0x104)]=_0x202206,this['_sheetInterceptorService']=_0x41fd44,this[_0x37d73f(0x223)]());}[_0x4cc141(0x223)](){const _0x2fadea=_0x4cc141,_0x146178=(_0x23a82b,_0x125b61)=>{const _0x2c1693=_0x2015,_0x500574=this[_0x2c1693(0x2a0)][_0x2c1693(0x137)](_0x21d8ed[_0x2c1693(0x1ad)][_0x2c1693(0x20b)]);if(!_0x500574||!(_0x500574==null?void 0x0:_0x500574[_0x2c1693(0x379)](_0x125b61)))return;this['disposableCollection'][_0x2c1693(0x294)]();const _0x146772=_0x5a1fdd=>this[_0x2c1693(0x292)](_0x5a1fdd,_0x23a82b,_0x125b61),_0xa67d05=this['_sheetsPivotTableConfigModel'][_0x2c1693(0x370)](_0x23a82b,_0x125b61);if(!(_0xa67d05!=null&&_0xa67d05[_0x2c1693(0x2fa)]))return;Array['from'](_0xa67d05[_0x2c1693(0x1a9)]())['map'](_0x572819=>{const _0xec36f1=_0x2c1693,{row:_0xa9bb8f,col:_0x18a3a4}=_0x572819[_0xec36f1(0xff)];return _0x21d8ed[_0xec36f1(0x1f4)](_0xa9bb8f,_0x18a3a4);})[_0x2c1693(0x2b9)](_0x499102=>{const _0x312709=_0x2c1693;this['disposableCollection']['add'](this[_0x312709(0x244)][_0x312709(0x1dc)](_0x499102,_0x146772,_0x23a82b,_0x125b61));});},_0x54786b=()=>{const _0x270789=_0x2015,_0x2ae984=this['_univerInstanceService'][_0x270789(0x137)](_0x21d8ed['UniverInstanceType'][_0x270789(0x20b)]);if(_0x2ae984){const _0x369ee3=_0x2ae984[_0x270789(0x273)]();if(!_0x369ee3)return;_0x146178(_0x2ae984['getUnitId'](),_0x369ee3[_0x270789(0x229)]());}};this[_0x2fadea(0x2a6)](this[_0x2fadea(0x198)][_0x2fadea(0x36c)](_0x1883c4=>{const _0x4b6a81=_0x2fadea;if(_0x1883c4['id']===_0x4cb34f[_0x4b6a81(0x267)]['id']){const _0x41deed=_0x1883c4[_0x4b6a81(0x2c3)],_0x1db669=_0x41deed[_0x4b6a81(0x18a)],_0x65bac=_0x41deed[_0x4b6a81(0x1b5)];if(!_0x1db669||!_0x65bac)return;_0x146178(_0x65bac,_0x1db669);}})),this[_0x2fadea(0x2a6)](this[_0x2fadea(0x301)][_0x2fadea(0x36d)][_0x2fadea(0x197)](_0x4ab32b=>{_0x4ab32b&&_0x54786b();})),this[_0x2fadea(0x2a6)](this[_0x2fadea(0x301)][_0x2fadea(0x1a7)][_0x2fadea(0x197)](_0x17cf5a=>{const _0x2f234e=_0x2fadea,_0x471feb=_0x4cb34f[_0x2f234e(0x24a)](this[_0x2f234e(0x2a0)]);if(!_0x471feb)return;const {unitId:_0x4844db,subUnitId:_0x28a9b0}=_0x471feb,{unitId:_0x3dcd6a,subUnitId:_0x37f398}=_0x17cf5a;_0x4844db!==_0x3dcd6a||_0x28a9b0!==_0x37f398||_0x146178(_0x4844db,_0x28a9b0);})),_0x54786b();}[_0x4cc141(0x292)](_0xb132d4,_0x55940b,_0x122f31){const _0x487b1a=_0x4cc141;switch(_0xb132d4['id']){case _0x4cb34f[_0x487b1a(0x1c2)]['id']:return this['getRefRangeMutationsByMoveRange'](_0xb132d4[_0x487b1a(0x2c3)],_0x55940b,_0x122f31);}return{'redos':[],'undos':[]};}[_0x4cc141(0xef)](_0x10a4a2,_0x40170e,_0x266943){const _0x59eb36=_0x4cc141,{fromRange:_0x3bd39c,toRange:_0x4cb8a1}=_0x10a4a2,_0xda8081=[],_0x5e7248=[],_0x3abc5b=_0x4cb34f[_0x59eb36(0x24a)](this[_0x59eb36(0x2a0)]);if(!_0x3abc5b)return{'undos':_0x5e7248,'redos':_0xda8081};if(_0x40170e!==_0x3abc5b[_0x59eb36(0x1b5)]||_0x266943!==_0x3abc5b[_0x59eb36(0x18a)])return{'undos':_0x5e7248,'redos':_0xda8081};const _0xad0b44=this['_sheetsPivotTableConfigModel']['getSubUnitPivotConfigs'](_0x40170e,_0x266943);if(_0xad0b44!=null&&_0xad0b44['size'])for(const [_0x4e684d,_0x46235d]of _0xad0b44){const {unitId:_0x1741e8,subUnitId:_0x540002,row:_0x81987b,col:_0x35d74a}=_0x46235d[_0x59eb36(0xff)];if(_0x1741e8===_0x3abc5b[_0x59eb36(0x1b5)]&&_0x540002===_0x3abc5b[_0x59eb36(0x18a)]){const _0x241c85=_0x21d8ed[_0x59eb36(0x1f4)](_0x81987b,_0x35d74a);if(_0x21d8ed[_0x59eb36(0x251)][_0x59eb36(0xed)](_0x241c85,_0x3bd39c)){const _0x23bee1=_0x81987b-_0x3bd39c['startRow'],_0x1dbd37=_0x35d74a-_0x3bd39c[_0x59eb36(0x27d)],_0x1fe4cb={'row':_0x4cb8a1[_0x59eb36(0x364)]+_0x23bee1,'col':_0x4cb8a1[_0x59eb36(0x27d)]+_0x1dbd37};_0xda8081[_0x59eb36(0xbd)]({'id':_0x77fe44['id'],'params':{'unitId':_0x1741e8,'subUnitId':_0x540002,'pivotTableId':_0x4e684d,'targetCellPosition':_0x1fe4cb}}),_0x5e7248[_0x59eb36(0xbd)]({'id':_0x77fe44['id'],'params':{'unitId':_0x1741e8,'subUnitId':_0x540002,'pivotTableId':_0x4e684d,'targetCellPosition':{'row':_0x81987b,'col':_0x35d74a}}});const _0x3338f6=_0x1fe4cb[_0x59eb36(0x115)]-_0x81987b,_0x59dbec=_0x1fe4cb['col']-_0x35d74a,_0x3f4d82=[],_0x319b71=this[_0x59eb36(0x104)][_0x59eb36(0x32f)](_0x1741e8,_0x540002,_0x4e684d),_0x419e53=_0x319b71==null?void 0x0:_0x319b71[_0x59eb36(0x1de)];if(_0x419e53){Object[_0x59eb36(0x1df)](_0x419e53)[_0x59eb36(0x2b9)](_0x2d2552=>{_0x419e53[_0x2d2552]['forEach'](_0x1451ca=>{const _0x4fc679=_0x2015,_0x2385b9={..._0x1451ca};_0x2385b9[_0x4fc679(0x364)]=_0x1451ca[_0x4fc679(0x364)]+_0x3338f6,_0x2385b9[_0x4fc679(0x296)]=_0x1451ca[_0x4fc679(0x296)]+_0x3338f6,_0x2385b9[_0x4fc679(0x27d)]=_0x1451ca[_0x4fc679(0x27d)]+_0x59dbec,_0x2385b9['endColumn']=_0x1451ca[_0x4fc679(0x1b4)]+_0x59dbec,_0x3f4d82[_0x4fc679(0xbd)](_0x2385b9);});});const _0x38076e=this[_0x59eb36(0x376)][_0x59eb36(0x1bd)]({'unitId':_0x1741e8,'subUnitId':_0x540002,'ranges':_0x3f4d82});_0xda8081[_0x59eb36(0xbd)](..._0x38076e['redos']),_0x5e7248[_0x59eb36(0xbd)](..._0x38076e[_0x59eb36(0x2cb)]);const _0x54cf24=_0x5c0094(this[_0x59eb36(0xe9)],_0x1741e8,_0x540002,_0x3f4d82);_0x54cf24[_0x59eb36(0x155)]&&(_0xda8081[_0x59eb36(0xbd)](_0x54cf24[_0x59eb36(0x11e)]),_0x5e7248['push'](_0x54cf24[_0x59eb36(0x1e6)]));}}}}return{'redos':_0xda8081,'undos':_0x5e7248};}};_0x4d3aad=_0x457902([_0xc774c5(0x0,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x126)])),_0xc774c5(0x1,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f[_0x4cc141(0x317)])),_0xc774c5(0x2,_0x21d8ed[_0x4cc141(0x17a)]),_0xc774c5(0x3,_0x21d8ed['IUniverInstanceService']),_0xc774c5(0x4,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29[_0x4cc141(0x2fb)])),_0xc774c5(0x5,_0x21d8ed['Inject'](_0xb4db29['SheetsPivotTableAdaptorModel'])),_0xc774c5(0x6,_0x21d8ed[_0x4cc141(0x110)](_0x4cb34f[_0x4cc141(0x13e)]))],_0x4d3aad);var _0xc605a5=Object[_0x4cc141(0xe7)],_0x3fd048=Object['getOwnPropertyDescriptor'],_0x4b9a74=(_0x4c5d39,_0x1377c0,_0x58e582,_0x4cddcf)=>{const _0x3e2cde=_0x4cc141;for(var _0x3c05ac=_0x4cddcf>0x1?void 0x0:_0x4cddcf?_0x3fd048(_0x1377c0,_0x58e582):_0x1377c0,_0x2ad80d=_0x4c5d39[_0x3e2cde(0x170)]-0x1,_0x251d97;_0x2ad80d>=0x0;_0x2ad80d--)(_0x251d97=_0x4c5d39[_0x2ad80d])&&(_0x3c05ac=(_0x4cddcf?_0x251d97(_0x1377c0,_0x58e582,_0x3c05ac):_0x251d97(_0x3c05ac))||_0x3c05ac);return _0x4cddcf&&_0x3c05ac&&_0xc605a5(_0x1377c0,_0x58e582,_0x3c05ac),_0x3c05ac;},_0x54f20e=(_0x547761,_0xb39912)=>(_0xb7f5b6,_0x9461b2)=>_0xb39912(_0xb7f5b6,_0x9461b2,_0x547761);let _0x1ab900=class extends _0x21d8ed[_0x4cc141(0x32e)]{constructor(_0x445813,_0x5917b0){const _0x65d726=_0x4cc141;super(),this['_sheetInterceptorService']=_0x445813,this[_0x65d726(0x301)]=_0x5917b0,this[_0x65d726(0x1c1)]();}[_0x4cc141(0x1c1)](){const _0x23d254=_0x4cc141;this[_0x23d254(0x2a6)](this[_0x23d254(0x376)]['interceptCommand']({'getMutations':_0x2dfda9=>{const _0x2ec487=_0x23d254;if(_0x2dfda9['id']===_0x4cb34f[_0x2ec487(0x30c)]['id']){const _0x333b93=[],_0x67ba8d=[],_0x5be092=_0x2dfda9[_0x2ec487(0x2c3)],{unitId:_0x375252,subUnitId:_0x283518}=_0x5be092;if(!_0x375252||!_0x283518)return{'undos':_0x67ba8d,'redos':_0x333b93};const _0x16dc40=this[_0x2ec487(0x301)][_0x2ec487(0x370)](_0x375252,_0x283518);if(_0x16dc40!=null&&_0x16dc40[_0x2ec487(0x2fa)])for(const [_0xb06492,_0x153d7e]of _0x16dc40){_0x333b93['push']({'id':_0x7f4ffc['id'],'params':{'unitId':_0x375252,'subUnitId':_0x283518,'pivotTableId':_0xb06492}});const _0x4ac838={...this[_0x2ec487(0x301)][_0x2ec487(0x114)](_0x375252,_0xb06492)};_0x67ba8d[_0x2ec487(0xbd)]({'id':_0x7b9428['id'],'params':{'unitId':_0x375252,'subUnitId':_0x283518,'pivotTableId':_0xb06492,'pivotTableConfig':_0x153d7e,'collectionConfig':_0x4ac838}});}return{'redos':_0x333b93,'undos':_0x67ba8d};}return{'redos':[],'undos':[]};}}));}};_0x1ab900=_0x4b9a74([_0x54f20e(0x0,_0x21d8ed['Inject'](_0x4cb34f['SheetInterceptorService'])),_0x54f20e(0x1,_0x21d8ed['Inject'](_0xb4db29[_0x4cc141(0x2fb)]))],_0x1ab900);var _0x402d7e=Object[_0x4cc141(0xe7)],_0x181acc=Object['getOwnPropertyDescriptor'],_0x15ecdf=(_0x12ceb1,_0x190966,_0x53b33a,_0x24c239)=>{const _0x33e7d9=_0x4cc141;for(var _0x5a9b8b=_0x24c239>0x1?void 0x0:_0x24c239?_0x181acc(_0x190966,_0x53b33a):_0x190966,_0x390c5e=_0x12ceb1[_0x33e7d9(0x170)]-0x1,_0x8898ad;_0x390c5e>=0x0;_0x390c5e--)(_0x8898ad=_0x12ceb1[_0x390c5e])&&(_0x5a9b8b=(_0x24c239?_0x8898ad(_0x190966,_0x53b33a,_0x5a9b8b):_0x8898ad(_0x5a9b8b))||_0x5a9b8b);return _0x24c239&&_0x5a9b8b&&_0x402d7e(_0x190966,_0x53b33a,_0x5a9b8b),_0x5a9b8b;},_0x30bc25=(_0x26bb78,_0x3f51b6)=>(_0x951255,_0x1cac72)=>_0x3f51b6(_0x951255,_0x1cac72,_0x26bb78);let _0x50f991=class extends _0x21d8ed['Disposable']{constructor(_0xf41290,_0x3fd9d9,_0x351685,_0x4c8a88,_0x46ce6a,_0x3c678c){const _0x2b7f15=_0x4cc141;super(),this['_commandService']=_0xf41290,this['_sheetsPivotRpcService']=_0x3fd9d9,this[_0x2b7f15(0x104)]=_0x351685,this[_0x2b7f15(0x301)]=_0x4c8a88,this['_univerInstanceService']=_0x46ce6a,this[_0x2b7f15(0x1fb)]=_0x3c678c,this['_initDataSendListener'](),this[_0x2b7f15(0x32c)]();}[_0x4cc141(0xf2)](){const _0x11319d=_0x4cc141;this[_0x11319d(0x2a6)](this['_commandService'][_0x11319d(0x36c)](_0x5747a4=>{const _0x682de1=_0x11319d;if(_0x5747a4['id']!==_0x3a27b6['id'])return;const _0x1e63f2=_0x5747a4[_0x682de1(0x2c3)];this[_0x682de1(0x108)][_0x682de1(0x1eb)](_0x1e63f2);})),this['disposeWithMe'](this[_0x11319d(0x198)][_0x11319d(0x36c)](_0x5f53e2=>{const _0x5c4b89=_0x11319d;if(_0x5f53e2['id']===_0x2dbb4d['id']){const _0x2c6230=_0x5f53e2[_0x5c4b89(0x2c3)];if(_0x2c6230){const {unitId:_0x510128,subUnitId:_0x2574ec,oldSubUnitId:_0x4ff382,pivotTableId:_0x548662,pivotTableConfig:_0x422892,collectionConfig:_0x5ce628}=_0x2c6230;this[_0x5c4b89(0x301)]['updateConfigCache'](_0x510128,_0x4ff382,_0x2c6230['pivotTableId'],null),this[_0x5c4b89(0x301)][_0x5c4b89(0x36e)](_0x510128,_0x2574ec,_0x548662,_0x422892),this[_0x5c4b89(0x301)][_0x5c4b89(0x132)](_0x510128,_0x5ce628);}}})),this[_0x11319d(0x2a6)](this[_0x11319d(0x198)]['onCommandExecuted'](_0x248635=>{const _0x3b39fe=_0x11319d;if(_0x248635['id']!==_0x22622d['id'])return;const _0x34cb0d=_0x4cb34f[_0x3b39fe(0x24a)](this['_univerInstanceService']);if(!_0x34cb0d)return;const {unitId:_0x3b5b79,subUnitId:_0x47a6b2}=_0x34cb0d,_0x27a6bf=_0x248635[_0x3b39fe(0x2c3)];if(_0x27a6bf[_0x3b39fe(0x239)]&&Object[_0x3b39fe(0x1df)](_0x27a6bf[_0x3b39fe(0x239)])[_0x3b39fe(0x2b9)](_0x346569=>{const _0x4c46a8=_0x3b39fe;var _0x411fe0;(_0x411fe0=_0x27a6bf[_0x4c46a8(0x239)])!=null&&_0x411fe0[_0x346569]&&this['_sheetsPivotTableConfigModel'][_0x4c46a8(0x132)](_0x346569,_0x27a6bf[_0x4c46a8(0x239)][_0x346569]);}),_0x27a6bf[_0x3b39fe(0x23b)]){const _0x21e2cf=_0x27a6bf[_0x3b39fe(0x23b)],{unitId:_0x154dc0,subUnitId:_0x227e1c,view:_0x4ac74b,pivotTableId:_0x411ee2,type:_0x16c3b6,pivotConfig:_0x397efc}=_0x21e2cf;if(_0x16c3b6===_0x2f104b[_0x3b39fe(0x116)])this[_0x3b39fe(0x104)][_0x3b39fe(0xde)]({'unitId':_0x154dc0,'subUnitId':_0x227e1c,'pivotTableId':_0x411ee2,'type':_0x16c3b6}),this[_0x3b39fe(0x301)][_0x3b39fe(0x36e)](_0x154dc0,_0x227e1c,_0x411ee2,null);else{const _0x569f98=new _0x2f3841[(_0x3b39fe(0x2e0))]();_0x569f98[_0x3b39fe(0x365)](_0x4ac74b),this[_0x3b39fe(0x301)][_0x3b39fe(0x36e)](_0x154dc0,_0x227e1c,_0x411ee2,_0x397efc),this['_sheetsPivotTableAdaptorModel'][_0x3b39fe(0xde)]({'unitId':_0x154dc0,'subUnitId':_0x227e1c,'pivotTableId':_0x411ee2,'type':_0x16c3b6,'view':_0x569f98}),this['_sheetsPivotTableAdaptorModel'][_0x3b39fe(0x288)]({'unitId':_0x154dc0,'subUnitId':_0x227e1c,'view':_0x569f98,'pivotTableId':_0x411ee2,'type':_0x16c3b6});}}else _0x27a6bf[_0x3b39fe(0x2ca)]&&(_0x27a6bf[_0x3b39fe(0x2ca)][_0x3b39fe(0x2b9)](_0x50128a=>{const _0x278c9b=_0x3b39fe,{unitId:_0x3713c2,subUnitId:_0x4c62a1,view:_0x3fb75a,pivotTableId:_0x45684f,type:_0x212ffe,pivotConfig:_0x25511e}=_0x50128a,_0x7a846b=new _0x2f3841[(_0x278c9b(0x2e0))]();_0x7a846b[_0x278c9b(0x365)](_0x3fb75a),this['_sheetsPivotTableConfigModel']['updateConfigCache'](_0x3713c2,_0x4c62a1,_0x45684f,_0x25511e),this[_0x278c9b(0x104)]['updateRenderCache']({'unitId':_0x3713c2,'subUnitId':_0x4c62a1,'view':_0x7a846b,'pivotTableId':_0x45684f,'type':_0x212ffe});}),this['_sheetsPivotTableConfigModel'][_0x3b39fe(0x247)]());this['_sheetsPivotTableAdaptorModel'][_0x3b39fe(0x340)](_0x3b5b79,_0x47a6b2);}));}[_0x4cc141(0x32c)](){const _0x3af543=_0x4cc141;this[_0x3af543(0x1fb)][_0x3af543(0x380)](_0x4dbcbe['id'],{'commandId':_0x4dbcbe['id'],'getDirtyData'(_0x63c82b){const _0x3f600a=_0x3af543;return{'dirtyUnitFeatureMap':_0x63c82b[_0x3f600a(0x2c3)]};}});}};_0x50f991=_0x15ecdf([_0x30bc25(0x0,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x17a)])),_0x30bc25(0x1,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29[_0x4cc141(0x31e)])),_0x30bc25(0x2,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29['SheetsPivotTableAdaptorModel'])),_0x30bc25(0x3,_0x21d8ed[_0x4cc141(0x110)](_0xb4db29[_0x4cc141(0x2fb)])),_0x30bc25(0x4,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x367)])),_0x30bc25(0x5,_0x2ed881[_0x4cc141(0x11a)])],_0x50f991);var _0x4edd9b=Object[_0x4cc141(0xe7)],_0x262bc3=Object[_0x4cc141(0x14c)],_0x230677=(_0x1b5237,_0x54976b,_0x5522a8)=>_0x54976b in _0x1b5237?_0x4edd9b(_0x1b5237,_0x54976b,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5522a8}):_0x1b5237[_0x54976b]=_0x5522a8,_0x2aeb47=(_0x4616a9,_0x9a6a09,_0x2436f8,_0x580714)=>{const _0x839ae=_0x4cc141;for(var _0x1e575d=_0x580714>0x1?void 0x0:_0x580714?_0x262bc3(_0x9a6a09,_0x2436f8):_0x9a6a09,_0x38d69e=_0x4616a9[_0x839ae(0x170)]-0x1,_0x2813e2;_0x38d69e>=0x0;_0x38d69e--)(_0x2813e2=_0x4616a9[_0x38d69e])&&(_0x1e575d=(_0x580714?_0x2813e2(_0x9a6a09,_0x2436f8,_0x1e575d):_0x2813e2(_0x1e575d))||_0x1e575d);return _0x580714&&_0x1e575d&&_0x4edd9b(_0x9a6a09,_0x2436f8,_0x1e575d),_0x1e575d;},_0x410c9a=(_0x4952c5,_0x4d24f1)=>(_0x49444a,_0x3bb922)=>_0x4d24f1(_0x49444a,_0x3bb922,_0x4952c5),_0x6b995f=(_0xb933be,_0x3b63b9,_0x37721c)=>_0x230677(_0xb933be,typeof _0x3b63b9!='symbol'?_0x3b63b9+'':_0x3b63b9,_0x37721c);_0xb4db29[_0x4cc141(0x309)]=class extends _0x21d8ed[_0x4cc141(0x258)]{constructor(_0x5c15be=_0x47ece4,_0x53c209,_0x5e712d,_0x44e223,_0xe2e9b0){const _0x5bfb65=_0x4cc141;super(),this[_0x5bfb65(0x20d)]=_0x5c15be,this[_0x5bfb65(0xe9)]=_0x53c209,this[_0x5bfb65(0x198)]=_0x5e712d,this[_0x5bfb65(0x113)]=_0x44e223,this['_dataSyncPrimaryController']=_0xe2e9b0;const {..._0x4b02f0}=_0x21d8ed[_0x5bfb65(0x2fc)]({},_0x47ece4,this['_config']);this[_0x5bfb65(0x113)][_0x5bfb65(0x35c)](_0x1e6f6d,_0x4b02f0),this[_0x5bfb65(0x18e)](),this[_0x5bfb65(0xd8)]();}[_0x4cc141(0xd8)](){const _0x2a8291=_0x4cc141;var _0x1ed2ca;const _0x348c8d=(_0x1ed2ca=this['_config'])==null?void 0x0:_0x1ed2ca['notExecuteFormula'];this[_0x2a8291(0x113)][_0x2a8291(0x35c)](_0x14fdfb,_0x348c8d===!0x0);}['onStarting'](){const _0x5694ee=_0x4cc141;var _0x2a008e;let _0x341031=[];const _0x3a419f=(_0x2a008e=this[_0x5694ee(0x20d)])==null?void 0x0:_0x2a008e[_0x5694ee(0x37b)];_0x3a419f===!0x0?_0x341031=[[_0xb4db29[_0x5694ee(0x133)]],[_0xb4db29[_0x5694ee(0x31e)]],[_0x50f991],[_0xb4db29[_0x5694ee(0x366)]],[_0xb4db29['SheetsPivotTableConfigModel']],[_0x1ab900],[_0x2111f5],[_0x4d3aad],[_0x4a11a5]]:_0x3a419f===!0x1?_0x341031=[[_0xb4db29['SheetsPivotDataSourceModel']],[_0x561c17]]:_0x3a419f===void 0x0&&(_0x341031=[[_0xb4db29['SheetsPivotDataSourceModel']],[_0x561c17],[_0xb4db29[_0x5694ee(0x133)]],[_0xb4db29['SheetsPivotRPCService']],[_0x50f991],[_0xb4db29['SheetsPivotTableAdaptorModel']],[_0xb4db29['SheetsPivotTableConfigModel']],[_0x1ab900],[_0x2111f5],[_0x4d3aad],[_0x4a11a5]]),_0x341031[_0x5694ee(0x2b9)](_0x34b4ed=>this[_0x5694ee(0xe9)][_0x5694ee(0x1b9)](_0x34b4ed)),[_0x561c17,_0x50f991,_0xb4db29['SheetsPivotTableService'],_0x2111f5,_0x1ab900,_0x4d3aad,_0x4a11a5][_0x5694ee(0x2b9)](_0x164d94=>{const _0x405e0b=_0x5694ee;this[_0x405e0b(0xe9)][_0x405e0b(0x23d)](_0x164d94)&&this[_0x405e0b(0xe9)][_0x405e0b(0xca)](_0x164d94);});}['_initRegisterCommand'](){[_0x28faac,_0x1d62c5,_0x4040b9,_0x357937,_0x288e45,_0x18f6d9,_0x44608d,_0x2747c2,_0x451f35,_0x584a56,_0x15212b,_0x50084d,_0x38c5f4,_0x7b9428,_0x7f4ffc,_0x2a33f2,_0x192d4f,_0x481f84,_0xa70dc3,_0x2e0fbe,_0x503365,_0x5c8eea,_0x77fe44,_0x121547,_0x3a27b6,_0x22622d,_0x57faf0,_0x1f96ac,_0x4f7a20,_0x285527,_0xd9a4da,_0x5aa2a2,_0x5f1e4e,_0x4dbcbe,_0x2dbb4d]['forEach'](_0x502c2e=>{const _0x10a605=_0x2015;var _0x4d7629;(_0x4d7629=this[_0x10a605(0x2d4)])==null||_0x4d7629['registerSyncingMutations'](_0x502c2e),this[_0x10a605(0x198)][_0x10a605(0x179)](_0x502c2e);});}},_0x6b995f(_0xb4db29[_0x4cc141(0x309)],'pluginName',_0x479aae),_0x6b995f(_0xb4db29[_0x4cc141(0x309)],_0x4cc141(0x16f),_0x21d8ed['UniverInstanceType'][_0x4cc141(0x20b)]),_0xb4db29[_0x4cc141(0x309)]=_0x2aeb47([_0x21d8ed[_0x4cc141(0x32d)](_0x271a3b['UniverLicensePlugin']),_0x410c9a(0x1,_0x21d8ed[_0x4cc141(0x110)](_0x21d8ed[_0x4cc141(0x126)])),_0x410c9a(0x2,_0x21d8ed['Inject'](_0x21d8ed[_0x4cc141(0x17a)])),_0x410c9a(0x3,_0x21d8ed[_0x4cc141(0x299)]),_0x410c9a(0x4,_0x21d8ed['Optional'](_0x23f2d0[_0x4cc141(0x32b)]))],_0xb4db29[_0x4cc141(0x309)]),_0xb4db29['AddPivotFieldCommand']=_0x4040b9,_0xb4db29[_0x4cc141(0x250)]=_0x2a33f2,_0xb4db29[_0x4cc141(0x19c)]=_0x1d62c5,_0xb4db29[_0x4cc141(0x1ac)]=_0x7b9428,_0xb4db29[_0x4cc141(0x1a4)]=_0x28faac,_0xb4db29['BLANK_ROW_COUNT']=_0x4887ec,_0xb4db29['DEFAULT_PIVOT_NUMBER']=_0x3eaceb,_0xb4db29['MovePivotFieldCommand']=_0x357937,_0xb4db29['MovePivotTableCommand']=_0x50084d,_0xb4db29[_0x4cc141(0x291)]=_0x346a09,_0xb4db29[_0x4cc141(0x261)]=_0x38c5f4,_0xb4db29['PivotTableOperationEnum']=_0x2f104b,_0xb4db29[_0x4cc141(0x28f)]=_0x4dbcbe,_0xb4db29[_0x4cc141(0x2ce)]=_0x4c87ea,_0xb4db29['RemovePivotFieldCommand']=_0x288e45,_0xb4db29['RemovePivotFieldMutation']=_0x481f84,_0xb4db29[_0x4cc141(0x383)]=_0x7f4ffc,_0xb4db29[_0x4cc141(0x207)]=_0xa70dc3,_0xb4db29[_0x4cc141(0x1a8)]=_0x1e6f6d,_0xb4db29['SHEET_PIVOT_TABLE_PLUGIN']=_0x479aae,_0xb4db29['SetPivotCollapseCommand']=_0x44608d,_0xb4db29[_0x4cc141(0x285)]=_0x2e0fbe,_0xb4db29[_0x4cc141(0xcc)]=_0x285527,_0xb4db29[_0x4cc141(0x279)]=_0x451f35,_0xb4db29['SetPivotFilterMutation']=_0x192d4f,_0xb4db29[_0x4cc141(0x220)]=_0x5c8eea,_0xb4db29['SetPivotPositionMutation']=_0x77fe44,_0xb4db29[_0x4cc141(0x24c)]=_0x2747c2,_0xb4db29[_0x4cc141(0x353)]=_0x503365,_0xb4db29[_0x4cc141(0x25d)]=_0x4f7a20,_0xb4db29[_0x4cc141(0x12e)]=_0x57faf0,_0xb4db29[_0x4cc141(0x1b7)]=_0x584a56,_0xb4db29['UpdatePivotFieldSourceInfoMutation']=_0x5f1e4e,_0xb4db29['UpdatePivotTableSourceRangeCommand']=_0x15212b,_0xb4db29[_0x4cc141(0x2cd)]=_0x5aa2a2,_0xb4db29[_0x4cc141(0x100)]=_0x18f6d9,_0xb4db29[_0x4cc141(0x1e4)]=_0x1f96ac,_0xb4db29[_0x4cc141(0x22c)]=_0x4925f7,_0xb4db29['canUsePivot']=_0x23d23a,_0xb4db29['defaultThemeStyle']=_0x1114ba,_0xb4db29['generateSetRangeValueMutations']=_0x5c0094,_0xb4db29[_0x4cc141(0x14b)]=_0x167a54,_0xb4db29[_0x4cc141(0x278)]=_0x1c25c8,_0xb4db29['getFieldListByArea']=_0x40f0f8,_0xb4db29[_0x4cc141(0x189)]=_0x4869f4,_0xb4db29['getPivotCellInfo']=_0x2167ce,_0xb4db29[_0x4cc141(0x13d)]=_0xac200a,_0xb4db29[_0x4cc141(0x38a)]=_0x127c1c,_0xb4db29['transFromCellValue']=_0xd4a5b0,_0xb4db29[_0x4cc141(0x11b)]=_0x4558e4,Object['defineProperty'](_0xb4db29,Symbol[_0x4cc141(0xfd)],{'value':_0x4cc141(0x34f)});}));
|