@univerjs-pro/sheets-pivot 0.10.13 → 0.10.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/lib/cjs/facade.js +1 -1
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/locale/ca-ES.js +1 -1
  4. package/lib/cjs/locale/en-US.js +1 -1
  5. package/lib/cjs/locale/es-ES.js +1 -1
  6. package/lib/cjs/locale/fa-IR.js +1 -1
  7. package/lib/cjs/locale/fr-FR.js +1 -1
  8. package/lib/cjs/locale/ko-KR.js +1 -1
  9. package/lib/cjs/locale/ru-RU.js +1 -1
  10. package/lib/cjs/locale/vi-VN.js +1 -1
  11. package/lib/cjs/locale/zh-CN.js +1 -1
  12. package/lib/cjs/locale/zh-TW.js +1 -1
  13. package/lib/es/facade.js +1 -1
  14. package/lib/es/index.js +1 -1
  15. package/lib/es/locale/ca-ES.js +1 -1
  16. package/lib/es/locale/en-US.js +1 -1
  17. package/lib/es/locale/es-ES.js +1 -1
  18. package/lib/es/locale/fa-IR.js +1 -1
  19. package/lib/es/locale/fr-FR.js +1 -1
  20. package/lib/es/locale/ko-KR.js +1 -1
  21. package/lib/es/locale/ru-RU.js +1 -1
  22. package/lib/es/locale/vi-VN.js +1 -1
  23. package/lib/es/locale/zh-CN.js +1 -1
  24. package/lib/es/locale/zh-TW.js +1 -1
  25. package/lib/facade.js +1 -1
  26. package/lib/index.js +1 -1
  27. package/lib/locale/ca-ES.js +1 -1
  28. package/lib/locale/en-US.js +1 -1
  29. package/lib/locale/es-ES.js +1 -1
  30. package/lib/locale/fa-IR.js +1 -1
  31. package/lib/locale/fr-FR.js +1 -1
  32. package/lib/locale/ko-KR.js +1 -1
  33. package/lib/locale/ru-RU.js +1 -1
  34. package/lib/locale/vi-VN.js +1 -1
  35. package/lib/locale/zh-CN.js +1 -1
  36. package/lib/locale/zh-TW.js +1 -1
  37. package/lib/types/common/const.d.ts +41 -41
  38. package/lib/types/controllers/const.d.ts +1 -1
  39. package/lib/umd/facade.js +1 -1
  40. package/lib/umd/index.js +1 -1
  41. package/lib/umd/locale/ca-ES.js +1 -1
  42. package/lib/umd/locale/en-US.js +1 -1
  43. package/lib/umd/locale/es-ES.js +1 -1
  44. package/lib/umd/locale/fa-IR.js +1 -1
  45. package/lib/umd/locale/fr-FR.js +1 -1
  46. package/lib/umd/locale/ko-KR.js +1 -1
  47. package/lib/umd/locale/ru-RU.js +1 -1
  48. package/lib/umd/locale/vi-VN.js +1 -1
  49. package/lib/umd/locale/zh-CN.js +1 -1
  50. package/lib/umd/locale/zh-TW.js +1 -1
  51. package/package.json +11 -11
package/lib/es/index.js CHANGED
@@ -1 +1 @@
1
- const _0x91438c=_0x3105;(function(_0x5909bf,_0x37e285){const _0x403270=_0x3105,_0x16bf02=_0x5909bf();while(!![]){try{const _0x54ef1c=-parseInt(_0x403270(0x259))/0x1+parseInt(_0x403270(0x299))/0x2*(parseInt(_0x403270(0x1b1))/0x3)+parseInt(_0x403270(0x33e))/0x4+-parseInt(_0x403270(0x257))/0x5*(-parseInt(_0x403270(0x2dc))/0x6)+-parseInt(_0x403270(0x2c0))/0x7*(-parseInt(_0x403270(0x423))/0x8)+-parseInt(_0x403270(0x37c))/0x9+-parseInt(_0x403270(0x373))/0xa*(parseInt(_0x403270(0x36b))/0xb);if(_0x54ef1c===_0x37e285)break;else _0x16bf02['push'](_0x16bf02['shift']());}catch(_0x2532d1){_0x16bf02['push'](_0x16bf02['shift']());}}}(_0x34f2,0x93916));var rn=Object[_0x91438c(0x332)],ln=(_0x204ef2,_0x3681a3,_0x16caa5)=>_0x3681a3 in _0x204ef2?rn(_0x204ef2,_0x3681a3,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x16caa5}):_0x204ef2[_0x3681a3]=_0x16caa5,N=(_0x13e9aa,_0xd2095c,_0x5335a9)=>ln(_0x13e9aa,typeof _0xd2095c!=_0x91438c(0x3c8)?_0xd2095c+'':_0xd2095c,_0x5335a9);function _0x34f2(){const _0x17b312=['endCollectChangeset','MonthDate','refreshData','_initPivotTextInfo','disposableCollection','Month','sourceName','result','updatePivotSource','getTypeOfUnitDisposed$','entries','subUnitId','getFilterInfo','clearRenderCache','formJSON','_deletePivotTableInstanceCache','getSortInfo','sheets-pivot.cellDateGroupDisplay.minute','Var\x20of\x20','rgb(255,255,255)','AddPivotTableWithConfig','_viewUpdate$','addExclusiveRange','fieldIds','getFieldIds','getTargetByPivotId','COMMAND','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','getFieldById','lastRow','sortInfo','3577945LKUCNX','Year','dimension','updateCollectionConfig','_fieldsCollectionChange$','dateGroupField','fieldsConfig','sheet.command.set-pivot-fields-config','values','rowHeaderMap','getFieldDataType','updateDataFieldsCollection','getPivotDirtyViewInfo','Count\x20of\x20','isDate','ManualFilter','NUMBER','Minute','concat','sheet.command.set-pivot-filter','sheets-pivot.cellDateGroupDisplay.month','getCurrentSelections','subscribe','iterateField','_deleteModelCache','PivotMultipleValueId','sheets-pivot.columnName','pivotInitCompleted$','1473198Fffkjj','sheet.command.add-pivot-field','sheets-pivot.averageName','_getAutoName','_pivotRenderValueMatrixCache','pushComputingStatusSubject','error','toJSON','addCollectionByJSON','setDirty','(Blank)','NotNumber','getInterceptPoints','YearQuarter','removeSourceRangeChange','getFieldPositionInfoById','_sheetsSelectionsService','_queryingMap','startColumn','getTableFieldById','getUnit','setRangeValueUndoMutation','charCodeAt','GrandTotal','getMatrixFromRunTimeData','setPivotSetting','#FFFFFF','leafStyle','Column\x20','handleMoveRange','hasField','getColumnCount','sheets-pivot.maxName','getLastRow','valuePosition','stringify','RemovePivotField','sheet.mutation.remove-pivot-table','isColMultiMeasure','getTextSize','PIVOT_MUTATION_GENERATE','_featureCalculationManagerService','setValueFilterInfo','pivotTableConfigs','SetFieldFormat','sheet.command.set-pivot-collapse','_resourceManagerService','Min\x20of\x20','sheets-pivot.cellDateGroupDisplay.hourMinute','getActiveSheet','getName','getDataFieldId','splice','getPivotTableIdByCell','setTextInfo','rgb(240,241,243)','intercept','sheet.mutation.pivot-update-field-source-info','node','disposeWithMe','MUTATION','removeField','STRING','sheets-pivot.dateGroup.hour','keys','_injector','dataRangeInfo','getPivotTableInstance','filterInfo','iterateFieldDim','Grand\x20Total','addFieldWithSourceId','sheet.command.remove-pivot-field','sheets-pivot.productName','name','initDataRanges','getPivotDisplayConfig','_updatePivotTableInstanceCache','asObservable','updatePivotTableRangeInfo','sheets-pivot.minName','getFormatInfo','setRange','MIN_SAFE_INTEGER','_ensurePivotMap','sheet.mutation.send-pivot-data-local','defineProperty','fetchThroughAsyncInterceptors','getStyles','getLastCol','sheets-pivot.cellDateGroupDisplay.yearMonthDate','min','updateAllDisplayName','message','Add','addPivotField','getDataFieldManager','_initConfig','3441604jORbcv','workbook\x20is\x20not\x20found','sheets-pivot.dateGroup.quarter','getHeaderMapItem','forEach','queryDirtyPivotTable','getValue','lastCol','YearMonth','onCommandExecuted','onQueryEnd','UpdateSource','Row','_pivotConfigChange$','startRow','getDataFieldByTableId','grandTotal','updateFieldPosition','sheet.mutation.pivot-update-value-position','updateValuePosition','getTextInfo','movePivotField','Delete','_sheetsPivotTableAdaptorModel','getFieldFormat','dataStyle','SHEET_PIVOT_TABLE_PLUGIN','registerDirtyService','getSourceName','floor','RenameField','has','paths','cornerInfo','sheets-pivot.cellDateGroupDisplay.year','getOriginFieldId','AddPivotTable','getSheetBySheetName','colInfo','_textInfo','getTargetByPivotTableId','_globalComputedEndHelpFunc','Expand','foreach','setConfig','12529iAXzCw','colCount','Value','deleteField','getIntersects','_pivotTableMatrixInfo','pluginName','#f4f4f5','1980lkaLca','dateType','getRangeStartEndInfo','_sheetInterceptorService','endColumn','col','getDirtyInfo','sheets-pivot.config','setValuePivotFilter','9450324inttrT','limit\x20pivot','sheet.command.update-pivot-table-source-range','createDataFieldId','getSubtotal','addField','version','UpdateFieldPosition','_commandService','registerPluginResource','info','_viewData$','AddPivotField','_getPivotAppliedRanges','_createExclusiveRange','cornerStyle','getIntersectsPivotTable','row','getFullYear','updateFieldSourceInfo','rangeKeyMap','collections','sheet.command.move-pivot-field','sheet.mutation.set-pivot-sort-info','sheet.command.update-date-group','_initRegisterCommand','subTotalStyle','sum','_initGlobalComputed','sheet.mutation.send-pivot-config-local','removeValueFilterInfo','map','parseInt','some','count','NotName','getDisplayName','Sum\x20of\x20','sheet.mutation.send-init-pivot-text-local','options','getFieldInfo','_initLocale','contains','_sheetsPivotRpcService','addDataFieldWithoutUnitInfo','sheets-pivot.dateGroup.monthDate','panel','_updateModelCache','getCellMatrix','filter','colStyle','query','max','_refRangeHandle','_ensureViewDataMap','dispose','SetValueFilter','sheet.command.reset-pivot-fields-config','areaInfo','SetPivotCollapse','_configService','getMonth','executeCommand','removeDataField','set','NUM','setLabelFilterInfo','Max\x20of\x20','rowFields','addPivotTableWithConfig','forRow','MovePivotField','MAX_SAFE_INTEGER','triggerDirtyFeature','Style','collapseInfo','symbol','getDataFieldByDataFieldId','_configVersion$','pivotMutationGenerate','nRVdafIV\x20JXdyNZafIV(lfdXVFX,\x20ZR1lfd4XN)\x20{\x20\x20\x20\x20ayN\x20{\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20lfdXVFXqVnITgya7yygN\x20=\x20lfdXVFX.FZlfa(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20IyfpfVUXFFgpX\x20=\x20jxuM.ZgyFX(gaI1(lfdXVFXqVnITgya7yygN[G]));\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(!IyfpfVUXFFgpX.RJ)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20IyfpfVUXFFgpX.RJ\x20=\x20MRt1Xy(lfdXVFXqVnITgya7yygN[v]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20fF3IyBXy\x20=\x20aNZXIn\x203IyBXyhlI1glxdIZX\x20!==\x20\x27RVJXnfVXJ\x27\x20&&\x20FXln\x20fVFagVdXIn\x203IyBXyhlI1glxdIZX;\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20dIVaXba\x20=\x20fF3IyBXy\x20?\x20FXln\x20:\x20QfVJIQ;\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20tXFFgpX3IyJ\x20=\x20dIVaXba.__5gFXYv__.ZgyFX(lfdXVFXqVnITgya7yygN[G]);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20tXFFgpX\x20=\x20dIVaXba.__rXb__.FayfVpfnN(tXFFgpX3IyJ);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20FfpVgaRyX3IyJ\x20=\x20dIVaXba.__5gFXYv__.ZgyFX(lfdXVFXqVnITgya7yygN[2]);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20FfpVgaRyX\x20=\x20dIVaXba.__rXb__.FayfVpfnN(FfpVgaRyX3IyJ);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20FfpVeglfJ\x20=\x20dIVaXba.__9XyfnN__(FfpVgaRyX,\x20tXFFgpX,\x20ZR1lfd4XN);\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20JItgfV\x20=\x20IyfpfVUXFFgpX.Jt;\x20\x20\x20\x20\x20\x20\x20\x20nRVdafIV\x20fFEItgfVUgadcfVp(ITgaaXyV,\x20IrIFa)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20ZgaaXyV\x20=\x20ITgaaXyV.yXZlgdX(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20cIFa\x20=\x20IrIFa.yXZlgdX(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20ZgaaXyVTgyaF\x20=\x20ZgaaXyV.FZlfa(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20cIFaTgyaF\x20=\x20cIFa.FZlfa(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(!ZgaaXyV.fVdlRJXF(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20ZgaaXyV\x20===\x20cIFa;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(ZgaaXyVTgyaF.lXVpac\x20<\x20G\x20||\x20ZgaaXyVTgyaF[D]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20nglFX;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20ZgaaXyVxRnnfb\x20=\x20ZgaaXyVTgyaF.FlfdX(W).HIfV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x20cIFaxRnnfb\x20=\x20cIFaTgyaF.FlfdX(-ZgaaXyVTgyaF.lXVpac\x20+\x20W).HIfV(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20ZgaaXyVxRnnfb\x20===\x20cIFaxRnnfb;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20lXa\x20JItgfVeglfJ\x20=\x20(JItgfV\x20&&\x20JItgfV.lXVpac)\x20?\x20JItgfV.FItX((JtqaXt)\x20=>\x20fFEItgfVUgadcfVp(JtqaXt,\x20lIdgafIV.cIFaVgtX))\x20:\x20ayRX;\x20\x20\x20\x20\x20\x20\x20\x20fn\x20(lIdgafIV.cIFaVgtX\x20===\x20\x27lIdglcIFa\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20JItgfVeglfJ\x20=\x20ayRX;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20dIVFa\x209glfJ\x20=\x20FfpVeglfJ\x20&&\x20JItgfVeglfJ;\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209glfJ,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tXFFgpX:\x20IyfpfVUXFFgpX,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20dgadc\x20(XyyIy)\x20{\x20\x20\x20\x20\x20\x20\x20\x20yXaRyV\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x209glfJ:\x20nglFX,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20tXFFgpX:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','rangeKey','removePivotField','_pivotTableInstanceCache','getPivotTableRangeInfo','drillDown','getMatrix','maxDate','getConfig','dataFieldManagerConfig','_initUnitDisposed','parse','random','isEmpty','SHEET_PIVOT_IN_MAIN_THREAD','SetSortInfo','split','generateNewSheetName','sheetName','prototype','createCollectionWithDataRange','sheets-pivot.stdDevpName','getNoUsedDataFieldIds','varp','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','getCellRaw','BLANK_PLACEHOLDER','length','dataFieldId','valueFields','fromJSON','_collectionConfigModel','rangeCache','_initClearSelectionCommandInterceptor','rowCount','rangesInfo','getPivotTableMatrixInfo','undos','_dataFieldManagerCollection','existing','average','measure','_subjectViewChange','getRangeKey','setCollapse','_markDirty$','sheet.command.set-pivot-field-setting','_ensurePivotItemRenderInfoCache','rowRanges','handleSourceRangeChange','push','pivotTableId','sheets-pivot.cellDateGroupDisplay.yearQuarter','SetSubtotalType','colRanges','getId','rowStyle','_pivotRenderInfoCache','sheet.mutation.set-pivot-field-subtotal-type','sourceRangeInfo','sheet.command.update-pivot-value-position','StdDev\x20of\x20','SetPivotFilter','addCollection','setPivotInitCompleted','sheet.mutation.set-pivot-filter','resetPivotTable','getValueFilterInfos','sheets-pivot.emptyPivot.filter','setFieldFormat','_sheetsPivotTableService','Div0','return\x20','sheets-pivot.dateGroup.hourMinute','targetCellInfo','getUnitId','_exclusiveRangeService','setDataRecordCount','broadcastCollectionChange','Filter','level','Column','getPivotItemRenderInfoCache','sheet.operation.pivot-table-view-formula-mark-dirty','pivotTableIndexConfig','sheets-pivot.subTotal','updateDirtyPivotTable','8zEQhaO','valueFilter','format','getFieldCountByArea','sheets-pivot.blank','iterateFieldByArea','bind','column','getPivotTableCellData','getformat','_collectionChange$','stdDev','_config','versions','UpdateValuePosition','_initPivotDataGetListener','params','sheet.mutation.add-pivot-table','DrillDown','Values','93CUomkr','sheet.mutation.set-pivot-position','removeCollectionImp','sheets-pivot.other','SHEET_PIVOT_EXCLUSIVE_ID','isBottomTotal','fieldsCollectionChange$','needSameDeleteModel','sheets-pivot.dateGroup.month','setValue','removeCollections','_sheetsPivotTableConfigModel','YearMonthDate','generateMutationsByRanges','NotFunction','setPivotFilter','updateConfig','registerRefRange','headerMap','setDisplayName','data','sheets-pivot.emptyPivot.row','call','getValueIndex','sheet.mutation.rename-pivot-field','addDirtyPivotTable','getDataFieldItemInfo','unitId','tableFieldId','getRowCount','dataStream','getCurrentUnitForType','Hour','FORCE_STRING','_requestResolvers','colHeaderMap','setSortInfo','fontRenderExtension','deleteDataField','sheet.mutation.remove-group-collection','single','includes','next','getUpdateRangeDeleteIds','getAutoDisplayNameFunction','sheets.tabs.sheet','updatePivotTableMatrixInfo','string','Product\x20of\x20','register','getFormat','deepClone','pivotConfigChange$','getAutoFitColumnsMutations','ΣValue','_ensurePivotTableRangeInfo','_ensurePivotItemRenderValueMatrixCache','ptn','add','sheets-pivot.dateGroup.minute','sheet.mutation.set-pivot-value-filter','_host','NAME','sheet.mutation.set-pivot-option','from','UpdatePivotSource','var','oldMatrix','getRefRangeMutationsByMoveRange','addPivotTable','#eceeff','object','blank','type','handleAsyncResponse','sheets-pivot.countNumsName','getPivotTableModelConfig','redos','pbt','sheet.command.move-pivot-table','Subtotal','sheet.command.add-pivot-table','width','asyncInterceptor','sheet.mutation.add-group-collection','setPivotTableConfig','remove','Collapse','NO_COMMERCIAL','getValuePosition','Set','dataFieldsCollection','REF','configVersion$','_toJSON','registerCommand','_globalSubject','getIndexesByPathStr','setSourceName','isText','sheets-pivot.dateGroup.yearQuarter','getSheets','fields','_ensurePivotTableMatrixInfo','pushUndoRedo','renameField','SetValuePivotFilter','range','COLUMN','delete','sheets-pivot.dateGroup.yearMonth','SetFilterInfo','updateViewInfo','getSheetId','_globalComputedStartHelpFunc','setRangeValueRedoMutation','_initCommandInterceptListener','_activeDirtyManagerService','_refRangeService','pageStyle','sheet.mutation.set-pivot-collapse','_sheetsPivotDataSourceModel','leftOffset','updateRenderCache','shouldClear','_univerInstanceService','_subjectCollectionChange','sheets-pivot.value','startCollectChangeset','getCollection','DIV_BY_ZERO','cellValue','updateRangeKeyMap','_globalComputingSrv','isArray','New','getSubUnitPivotConfigs','reset','removePivotTable','new','sheets-pivot.emptyPivot.column','rangeType','_initRemoveSheetCommandInterceptor','displayName','setSubtotalType','number','getSheetBySheetId','size','hasOwnProperty','viewData$','adjustSheetCellData','markDirty','realDeleteValue','sheets-pivot.dateGroup.yearMonthDate','setOptions','Date','value','SetPivotSort','ResetPivotTable','_init','interceptCommand','Existing','slice','originTargetInfo','sheet.mutation.update-date-group','SetPivotSetting','5xSnIMy','tuple','503889xFlUHK','product','deleteUnitId','endRow','getDate','Quarter','_subjectFieldsCollectionChange','uniqueDataFieldName','refreshGroupField','_initSnapshot','find','getRangeData','valueIndex','Average\x20of\x20','filterId','registerCallbackWithEvent','updateView','\x20-\x20','getOwnPropertyDescriptor','sheet.command.set-pivot-sort','sheet.mutation.set-pivot-format','getFilterFieldIdByIndex','getViewData','batch','Total','_dataSyncPrimaryController','unshift','get','other','notExecuteFormula','getPivotPerformCheck','collection','getMatrixValue','setPivotCollapse','Panel','#e6ebfb','forValue','_model','getColCount','isNaN','_lifecycleService','dataFields','SetPivotTableConfig','rowInfo','valid','sheets-pivot.emptyPivot.values','getDataFieldByRangeKey','getRangeKeyList','_pivotInitCompleted$','_onRefRangeChange','intersects','subtotal','collectionConfig','_viewData','_generateUniqueVersion','sideEffectUpdateWorkerCache','updateConfigCache','isValue','columnFields','getPivotTableConfig','sheets-pivot.cellDateGroupDisplay.quarter','_pivotTableRangeInfo','UNIVER_SHEET','_localeService','49472rvOUFq','sheet.mutation.add-pivot-field','_updateRenderEmptyCache','refreshDataField','#b2b2b2','setPivotSort','HourMinute','collectionChange$'];_0x34f2=function(){return _0x17b312;};return _0x34f2();}import{PivotCellStyleTypeEnum as _0x43e39f,PivotViewCellValueTypeEnum as _0x50fec6,isPrefixValue as _0x11acd0,isErrorValue as _0x5a88b1,PivotErrorTypeEnum as _0x18a99e,PivotDateGroupFieldDateTypeEnum as _0x24d87f,DataFieldManager as _0x3fdd5b,FieldsCollection as _0x1a19f2,isDateValue as _0xc79f0b,DataField as _0x7a9bf0,generateHexNumber as _0x387c10,isBaseGroupField as _0x312646,PivotTable as _0x33f1c5,PivotSubtotalTypeEnum as _0x553ee1,PivotTableFiledAreaEnum as _0x48ff8c,excelDateToUnixMilliseconds as _0x885df7,PivotDataFieldTypeEnum as _0x57ced6,DateGroupField as _0x5281df,createValueField as _0xef737d,createLabelField as _0x19d900,PivotTableChangeTypeEnum as _0x1ffd1e,PivotView as _0x296f39,GlobalConfig as _0x3e67cb,isDateGroupFieldJSON as _0x3532a4,PivotCallbackEnum as _0x589062,PivotFilterTypeEnum as _0x491413,getAutoDisplayName as _0x156bd8,PivotDataFieldDataTypeEnum as _0x5b8b2a,PivotTableValuePositionEnum as _0x150bb7,isDateGroupField as _0x375f53}from'@univerjs-pro/engine-pivot';import{cellToRange as _0x540207,ObjectMatrix as _0x17d6f8,IUniverInstanceService as _0x2c885f,UniverInstanceType as _0x102cba,CellValueType as _0x5eab4b,numfmt as _0xc18a5d,LocaleService as _0x3aca7e,createAsyncInterceptorKey as _0x150235,createInterceptorKey as _0x461231,CommandType as _0x2e18c8,Inject as _0x431452,ICommandService as _0xa7b251,Disposable as _0x5353ba,RANGE_TYPE as _0x5692f0,numberToABC as _0x2aaf1c,Injector as _0x4efa5c,LifecycleService as _0x3dbe84,IResourceManagerService as _0x500922,Rectangle as _0x459723,IConfigService as _0x495f63,Tools as _0x4b3148,AsyncInterceptorManager as _0xd0b6d0,InterceptorManager as _0x4c5fb3,InterceptorEffectEnum as _0x4e0a71,IUndoRedoService as _0x4e1a76,sequenceExecute as _0x2fdef8,CustomCommandExecutionError as _0x5b4394,mergeWorksheetSnapshotWithDefault as _0x4fdda5,generateRandomId as _0x23e506,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x310049,DEFAULT_WORKSHEET_ROW_COUNT as _0x3bf4db,DisposableCollection as _0x3e132f,Range as _0x10efc2,DependentOn as _0x43b69a,Optional as _0x2f587c,Plugin as _0x289c56,merge as _0x549d1a}from'@univerjs/core';import{ErrorType as _0x52f7f8,serializeRangeWithSpreadsheet as _0x267cef,IFeatureCalculationManagerService as _0xf8c02c,GlobalComputingStatusService as _0x5ede83,IActiveDirtyManagerService as _0x9d10da}from'@univerjs/engine-formula';import{generateNullCell as _0x4261a2,SetRangeValuesUndoMutationFactory as _0x328d73,SetRangeValuesMutation as _0x24ac46,getSheetCommandTarget as _0x1a5e6f,InsertRowMutation as _0x1b1105,RemoveRowMutation as _0x129cc2,InsertColMutation as _0xfcf79b,RemoveColMutation as _0x2d40d,IExclusiveRangeService as _0x598df4,SheetInterceptorService as _0x3ec024,INTERCEPTOR_POINT as _0x18e6d2,InsertSheetCommand as _0x138b11,InsertSheetUndoMutationFactory as _0x5c1652,RemoveSheetMutation as _0x2ac059,InsertSheetMutation as _0x5c326b,MoveRangeMutation as _0x3d1db8,SheetsSelectionsService as _0xf9b969,ClearSelectionContentCommand as _0x5b0c19,ClearSelectionAllCommand as _0x1e760c,SetWorksheetColWidthMutation as _0xda2656,RefRangeService as _0x38f3f0,SetWorksheetActiveOperation as _0x258e13,MoveRangeCommand as _0x1c72b3,RemoveSheetCommand as _0x5e55d8}from'@univerjs/sheets';function _0x3105(_0x286a3b,_0x7063dd){const _0x34f257=_0x34f2();return _0x3105=function(_0x3105ba,_0x4f4bfa){_0x3105ba=_0x3105ba-0x1b0;let _0x18fbe2=_0x34f257[_0x3105ba];return _0x18fbe2;},_0x3105(_0x286a3b,_0x7063dd);}import{Subject as _0x4aede8,BehaviorSubject as _0x4ac54f}from'rxjs';import{LS_CONFIG_KEY as _0x5f27fd,unshiftString as _0x4fd784,isFeatureAuthorizedWithinTime as _0x24151f,getSheetFeatureLimit as _0x34ec75,ReleaseType as _0x26ce06,UniverLicensePlugin as _0xdd5b1e}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x1a6d57,RemoveSheetsFilterMutation as _0x3a8b22}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x4aed27}from'@univerjs/rpc';import{getFontStyleString as _0x2a9f35,FontCache as _0x5726e4}from'@univerjs/engine-render';const Bo=Number[_0x91438c(0x39c)](0x68fcbdc5),li=0x10,so=0x1,ao=_0x91438c(0x358),mt=0x1,di=_0x91438c(0x313),ci=_0x91438c(0x2b4),Ft=_0x91438c(0x29d),ui='#f4f4f5',fi=_0x91438c(0x372),gi=_0x91438c(0x1f7),vi='#1d32e9',hi='#FFFFFF',pi='#e6ebfa',Ii='#1d32e9',mi=_0x91438c(0x2f6),Ci=_0x91438c(0x27c),bi=0xe,Si=0x6;var Lo=(_0x348628=>(_0x348628[_0x91438c(0x252)]=_0x91438c(0x3f3),_0x348628[_0x91438c(0x238)]=_0x91438c(0x23c),_0x348628))(Lo||{});const Jo={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Pi=0x1e,We={'b':{'s':0x1,'cl':{'rgb':Ft}},'l':{'s':0x1,'cl':{'rgb':Ft}},'r':{'s':0x1,'cl':{'rgb':Ft}},'t':{'s':0x1,'cl':{'rgb':Ft}}},oe={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},w={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':We,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':Ii},'bd':null,'cl':{'rgb':mi},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':We,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':We,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':We,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':We,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':vi},'cl':{'rgb':hi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':We,'vt':0x2}};function yi(_0x34a99b,_0x182f80,_0x4d5002){const _0xe99a55=_0x91438c,_0x13952f=_0x34a99b[_0xe99a55(0x274)](_0x3aca7e),_0x1145e5=_0x4d5002[_0xe99a55(0x3dc)]('_');switch(_0x182f80){case _0x24d87f[_0xe99a55(0x2c1)]:return _0x13952f['t'](_0xe99a55(0x360),..._0x1145e5);case _0x24d87f[_0xe99a55(0x2d1)]:return _0x13952f['t'](_0xe99a55(0x2b2),..._0x1145e5);case _0x24d87f[_0xe99a55(0x1d1)]:return _0x13952f['t']('sheets-pivot.cellDateGroupDisplay.hour',..._0x1145e5);case _0x24d87f[_0xe99a55(0x29f)]:return _0x13952f['t'](_0xe99a55(0x30c),..._0x1145e5);case _0x24d87f[_0xe99a55(0x24c)]:return _0x13952f['t']('sheets-pivot.cellDateGroupDisplay.date',..._0x1145e5);case _0x24d87f['Month']:return _0x13952f['t'](_0xe99a55(0x2d4),..._0x1145e5);case _0x24d87f['Quarter']:return _0x13952f['t'](_0xe99a55(0x295),..._0x1145e5);case _0x24d87f[_0xe99a55(0x346)]:return _0x13952f['t']('sheets-pivot.cellDateGroupDisplay.yearMonth',..._0x1145e5);case _0x24d87f['YearMonthDate']:return _0x13952f['t'](_0xe99a55(0x336),..._0x1145e5);case _0x24d87f[_0xe99a55(0x2e9)]:return _0x13952f['t'](_0xe99a55(0x400),..._0x1145e5);}return'';}const tt=(_0x2b049f,_0x1fbcb4,_0x1e1a66,_0x1663af)=>{const _0x3f4838=_0x91438c;let _0x296741;const _0x13f5f3=_0x2b049f['get'](_0x2c885f)[_0x3f4838(0x1d0)](_0x102cba[_0x3f4838(0x297)]);if(!_0x13f5f3)return null;const _0x24864c=_0x13f5f3['getStyles']();let _0x2b2d1c;if(_0x1e1a66&&(_0x2b2d1c=_0x24864c[_0x3f4838(0x1ba)](_0x1e1a66)),_0x1fbcb4!=null&&_0x1fbcb4['v']||(_0x1fbcb4==null?void 0x0:_0x1fbcb4['v'])===0x0){_0x296741||(_0x296741={});const _0x5012a9=$o(_0x1fbcb4['v']);typeof _0x5012a9==_0x3f4838(0x242)?_0x296741['t']=_0x5eab4b[_0x3f4838(0x2d0)]:typeof _0x5012a9==_0x3f4838(0x1e0)&&(_0x296741['t']=_0x5eab4b['STRING']),_0x296741['v']=_0x5012a9;}if((_0x1fbcb4!=null&&_0x1fbcb4['i']||(_0x1fbcb4==null?void 0x0:_0x1fbcb4['i'])===0x0)&&(_0x296741||(_0x296741={}),_0x296741['fi']=_0x1fbcb4['i']),_0x1fbcb4!=null&&_0x1fbcb4['s']&&(_0x296741||(_0x296741={}),_0x296741[_0x3f4838(0x1ff)]=_0x1fbcb4['s']),_0x1e1a66&&(_0x296741||(_0x296741={}),_0x296741['s']=_0x2b2d1c),_0x1663af&&_0x296741!=null&&_0x296741['v']&&_0x296741[_0x3f4838(0x1ff)]!==_0x43e39f[_0x3f4838(0x2f3)]&&_0x296741['pbt']!==_0x43e39f[_0x3f4838(0x201)]){const _0x1b085c=String(_0x296741['v']),{dateType:_0x3db892}=_0x1663af;_0x296741['v']=yi(_0x2b049f,_0x3db892,_0x1b085c),_0x296741['t']=_0x5eab4b[_0x3f4838(0x31a)];}return _0x296741;},Ti=(_0x3234c5,_0x1d9756,_0x2e2ccd,_0x3ab8ad)=>{const _0x3c5227=_0x91438c;var _0x2d1970,_0x2b8629,_0x269d09,_0x5e6639,_0x4958b3,_0x34c5a9,_0x1279aa,_0x1dbaa7,_0x103477,_0x10f2f6,_0xc0080d,_0x108b4d,_0x17e178,_0x3746a4;const _0x1455cd=_0x2e2ccd[_0x3c5227(0x416)],{cornerView:_0x5c55b7,rowView:_0x549c7d,colView:_0xac5c5,dataView:_0x2b5118,pageView:_0x45f450,formatMap:_0x3d89e2,groupInfo:_0x3a4472}=_0x1d9756,{row:_0x2f9cb4,col:_0x5ec6c9}=_0x1455cd,_0x2bf6de=new _0x17d6f8(),_0x35ccda={},_0x30f7ad={},_0x53f504={},_0x37d5d1={},_0x122b68={};let _0x50147e=_0x2f9cb4,_0x13545f=_0x5ec6c9;Object[_0x3c5227(0x31c)](_0x45f450[_0x3c5227(0x1c5)])[_0x3c5227(0x342)](_0xc8b1d2=>{const _0x25351e=_0x3c5227;Object[_0x25351e(0x31c)](_0x45f450[_0x25351e(0x1c5)][Number(_0xc8b1d2)])[_0x25351e(0x342)](_0x47df49=>{const _0x43b885=_0x25351e,_0x11165d={..._0x45f450[_0x43b885(0x1c5)][Number(_0xc8b1d2)][Number(_0x47df49)]};_0x2bf6de[_0x43b885(0x1ba)](Number(_0xc8b1d2)+_0x50147e,Number(_0x47df49)+_0x13545f,tt(_0x3234c5,_0x11165d,fe[_0x43b885(0x228)]));});});const _0x4608dd=Object[_0x3c5227(0x31c)](_0x45f450['data'])['length'];_0x50147e+=_0x4608dd+(_0x4608dd?mt:0x0);const _0x44eb18=_0x5c55b7[_0x3c5227(0x1ce)](),_0x1e6dba=_0x5c55b7[_0x3c5227(0x27f)]();for(let _0x5a0c3b=0x0;_0x5a0c3b<_0x44eb18;_0x5a0c3b++)for(let _0x5bb2d4=0x0;_0x5bb2d4<_0x1e6dba;_0x5bb2d4++){const _0xa7570f={...(_0x2b8629=(_0x2d1970=_0x5c55b7[_0x3c5227(0x1c5)])==null?void 0x0:_0x2d1970[_0x5a0c3b])==null?void 0x0:_0x2b8629[_0x5bb2d4]};_0xa7570f&&((_0x269d09=_0x549c7d[_0x3c5227(0x1c3)][_0x5bb2d4])!=null&&_0x269d09['isValue'])&&_0x5bb2d4===_0x1e6dba-0x1&&_0x5a0c3b===_0x44eb18-0x1&&(_0xa7570f['v']=''+_0x3ab8ad['sheets-pivot.value']),_0x2bf6de[_0x3c5227(0x1ba)](_0x5a0c3b+_0x50147e,_0x5bb2d4+_0x13545f,tt(_0x3234c5,_0xa7570f,fe[_0x3c5227(0x38b)]));}for(let _0x239b44=0x0;_0x239b44<_0x5c55b7['info'][_0x3c5227(0x3e7)];_0x239b44++)_0x5c55b7[_0x3c5227(0x386)][_0x239b44]&&(_0x53f504[''+(_0x239b44+_0x13545f)]=_0x5c55b7['info'][_0x239b44]);_0x13545f+=_0x1e6dba;const _0x5c7657=_0xac5c5[_0x3c5227(0x1c3)],_0x2a6868=_0xac5c5[_0x3c5227(0x2fd)]()>=0x0?_0xac5c5[_0x3c5227(0x2fd)]()+0x1:0x0,_0x1c8c93=_0xac5c5['getLastCol']()>=0x0?_0xac5c5['getLastCol']()+0x1:0x0;for(let _0x55fcb1=0x0;_0x55fcb1<_0x1c8c93;_0x55fcb1++){for(let _0x5ebbb0=0x0;_0x5ebbb0<_0x2a6868;_0x5ebbb0++){const _0xfd3a11={...(_0x4958b3=(_0x5e6639=_0xac5c5[_0x3c5227(0x1c5)])==null?void 0x0:_0x5e6639[_0x5ebbb0])==null?void 0x0:_0x4958b3[_0x55fcb1]},_0x4316ea=(_0x34c5a9=_0x5c7657[_0x5ebbb0])==null?void 0x0:_0x34c5a9[_0x3c5227(0x1cd)],_0x37a268=_0x3d89e2[_0x4316ea],_0x2385b4=_0x3a4472[_0x4316ea];_0xfd3a11&&(_0xfd3a11['v']=ht(_0xfd3a11,_0x5ebbb0===0x0&&((_0x1279aa=_0xac5c5[_0x3c5227(0x341)](_0x55fcb1+0x1))==null?void 0x0:_0x1279aa[_0x3c5227(0x292)]),_0x37a268,_0x3ab8ad));let _0x5ea8d0;_0x37a268?_0x5ea8d0={...fe[_0x3c5227(0x3ae)],'n':{'pattern':_0x37a268}}:_0x5ea8d0={...fe[_0x3c5227(0x3ae)]},_0x2bf6de[_0x3c5227(0x1ba)](_0x5ebbb0+_0x50147e,_0x55fcb1+_0x13545f,tt(_0x3234c5,_0xfd3a11,_0x5ea8d0,_0x2385b4));}_0xac5c5[_0x3c5227(0x386)][_0x55fcb1]&&(_0x30f7ad[''+(_0x55fcb1+_0x13545f)]=_0xac5c5[_0x3c5227(0x386)][_0x55fcb1]),_0xac5c5[_0x3c5227(0x1c3)][_0x55fcb1+0x1]&&(_0x122b68[''+(_0x55fcb1+_0x50147e+0x1)]=_0xac5c5[_0x3c5227(0x1c3)][_0x55fcb1+0x1]);}_0x50147e+=_0x44eb18;const _0x81f3aa=_0x549c7d[_0x3c5227(0x1c3)],_0x1eddbb=_0x549c7d[_0x3c5227(0x2fd)]()>=0x0?_0x549c7d[_0x3c5227(0x2fd)]()+0x1:0x0,_0x4a137b=_0x549c7d[_0x3c5227(0x335)]()>=0x0?_0x549c7d[_0x3c5227(0x335)]()+0x1:0x0;for(let _0x1c28f5=0x0;_0x1c28f5<_0x1eddbb;_0x1c28f5++){for(let _0x3862f4=0x0;_0x3862f4<_0x4a137b;_0x3862f4++){const _0x3be512={...(_0x103477=(_0x1dbaa7=_0x549c7d[_0x3c5227(0x1c5)])==null?void 0x0:_0x1dbaa7[_0x1c28f5])==null?void 0x0:_0x103477[_0x3862f4]},_0x53ffcf=(_0x10f2f6=_0x81f3aa[_0x3862f4])==null?void 0x0:_0x10f2f6[_0x3c5227(0x1cd)],_0x577427=_0x3d89e2[_0x53ffcf],_0x2fda47=_0x3a4472[_0x53ffcf];_0x3be512&&(_0x3be512['v']=ht(_0x3be512,!0x1,_0x577427,_0x3ab8ad));let _0x4e7374;_0x549c7d[_0x3c5227(0x386)][_0x1c28f5][_0x3c5227(0x41c)]===_0x549c7d[_0x3c5227(0x27f)]()?_0x4e7374=fe[_0x3c5227(0x2f7)]:_0x549c7d[_0x3c5227(0x386)][_0x1c28f5][_0x3c5227(0x1b6)]?_0x4e7374=_0x549c7d['info'][_0x1c28f5]['level']===0x0?fe[_0x3c5227(0x34e)]:fe[_0x3c5227(0x396)]:_0x4e7374=fe[_0x3c5227(0x404)],_0x577427&&(_0x4e7374={..._0x4e7374,'n':{'pattern':_0x577427}}),_0x2bf6de[_0x3c5227(0x1ba)](_0x1c28f5+_0x50147e,_0x3862f4+_0x5ec6c9,tt(_0x3234c5,_0x3be512,_0x4e7374,_0x2fda47));}_0x549c7d[_0x3c5227(0x386)][_0x1c28f5]&&(_0x35ccda[''+(_0x1c28f5+_0x50147e)]=_0x549c7d[_0x3c5227(0x386)][_0x1c28f5]),_0x549c7d[_0x3c5227(0x1c3)][_0x1c28f5]&&(_0x37d5d1[''+(_0x1c28f5+_0x5ec6c9)]=_0x549c7d[_0x3c5227(0x1c3)][_0x1c28f5]);}const _0x51cc6f=_0x2b5118[_0x3c5227(0x1ce)](),_0x131ad2=_0x2b5118[_0x3c5227(0x27f)]();for(let _0x563ca8=0x0;_0x563ca8<_0x51cc6f;_0x563ca8++)for(let _0x21f130=0x0;_0x21f130<_0x131ad2;_0x21f130++){const _0xb3c8b2={...(_0x108b4d=(_0xc0080d=_0x2b5118[_0x3c5227(0x1c5)])==null?void 0x0:_0xc0080d[_0x563ca8])==null?void 0x0:_0x108b4d[_0x21f130]};let _0x53b60d;_0x549c7d[_0x3c5227(0x386)][_0x563ca8]['isBottomTotal']?_0x53b60d=_0x549c7d[_0x3c5227(0x386)][_0x563ca8][_0x3c5227(0x41c)]===0x0?fe['grandTotal']:fe[_0x3c5227(0x396)]:_0x53b60d=fe[_0x3c5227(0x357)];const _0x5da93f=_0x549c7d[_0x3c5227(0x386)][_0x563ca8][_0x3c5227(0x265)],_0x2fa1d8=_0xac5c5['info'][_0x21f130][_0x3c5227(0x265)],_0x7d942e=Math[_0x3c5227(0x3b0)](_0x5da93f,_0x2fa1d8),_0x269e5d=_0x2e2ccd['fieldsConfig']['valueFields'][_0x3c5227(0x2d2)]();let _0x4cf8bf='';_0x7d942e<0x0?_0x4cf8bf=(_0x17e178=_0x269e5d[0x0])!=null?_0x17e178:'':_0x4cf8bf=(_0x3746a4=_0x269e5d[_0x7d942e])!=null?_0x3746a4:'';const _0x4a1d0d=_0x3d89e2[_0x4cf8bf];_0x4a1d0d&&(_0x53b60d={..._0x53b60d,'n':{'pattern':_0x4a1d0d}}),_0x2bf6de[_0x3c5227(0x1ba)](_0x563ca8+_0x50147e,_0x21f130+_0x13545f,tt(_0x3234c5,_0xb3c8b2,_0x53b60d));}return{'valueMatrix':_0x2bf6de,'rowInfo':_0x35ccda,'colInfo':_0x30f7ad,'cornerInfo':_0x53f504,'rowHeaderMap':_0x37d5d1,'colHeaderMap':_0x122b68};};function ht(_0x23fd80,_0x4b6b4f,_0x4172b4,_0x58031e){const _0x4fee92=_0x91438c;let _0x20b30d=_0x23fd80['v'];_0x4b6b4f&&(_0x20b30d=''+_0x58031e[_0x4fee92(0x230)]);const _0x579e36=_0x23fd80['t']&&(_0x23fd80['t']&_0x50fec6['blank'])>0x0;_0x579e36&&(_0x20b30d=''+_0x58031e[_0x4fee92(0x427)]);const _0x80e917=_0x23fd80['t']&&(_0x23fd80['t']&_0x50fec6[_0x4fee92(0x275)])>0x0;if(_0x80e917&&(_0x20b30d=''+_0x58031e[_0x4fee92(0x1b4)]),_0x23fd80['s']===_0x43e39f[_0x4fee92(0x201)]){let _0x5c5698=_0x20b30d,_0x140af6='';_0x11acd0(_0x20b30d)&&(_0x5c5698=_0x20b30d['prefix'],_0x140af6=_0x20b30d['value']);const _0x56bb41=_0x4172b4&&!_0x579e36&&!_0x80e917?_0xc18a5d[_0x4fee92(0x425)](_0x4172b4,Number(_0x5c5698)):_0x5c5698;_0x140af6?_0x20b30d=_0x56bb41+'\x20'+_0x140af6:_0x20b30d=_0x56bb41+'\x20'+_0x58031e[_0x4fee92(0x421)];}else _0x23fd80['s']===_0x43e39f['GrandTotal']&&(_0x20b30d=_0x20b30d+'\x20'+_0x58031e['sheets-pivot.grandTotal']);return _0x20b30d;}function $o(_0x3b3ec5){const _0x420b9b=_0x91438c;if(_0x5a88b1(_0x3b3ec5)){const {errorType:_0x3fb2f6}=_0x3b3ec5;switch(_0x3fb2f6){case _0x18a99e[_0x420b9b(0x413)]:return _0x52f7f8[_0x420b9b(0x233)];case _0x18a99e[_0x420b9b(0x2e7)]:return _0x52f7f8[_0x420b9b(0x3bd)];case _0x18a99e[_0x420b9b(0x1bf)]:return _0x52f7f8[_0x420b9b(0x1ef)];case _0x18a99e[_0x420b9b(0x39f)]:return _0x52f7f8['NAME'];case _0x18a99e['BadReference']:return _0x52f7f8[_0x420b9b(0x20d)];}}return _0x3b3ec5;}function ge(_0x10b576,_0x2aef53,_0x279f57=!0x1,_0x594a00=!0x1){const _0x1f7d08=_0x91438c,{data:_0x1eb939}=_0x2aef53,_0x2287df=_0x2aef53[_0x1f7d08(0x1ce)](),_0x30e0ce=_0x2aef53[_0x1f7d08(0x27f)]();if(_0x2287df<=0x0||_0x30e0ce<=0x0)return[];const _0x478277=_0x2aef53[_0x1f7d08(0x335)](),_0x365049=_0x2aef53['getLastRow'](),_0x32bf44=_0x594a00?_0x365049>=0x0?_0x365049+0x1:0x0:_0x2287df,_0x565a4c=_0x594a00?_0x478277>=0x0?_0x478277+0x1:0x0:_0x30e0ce,{row:_0x544264,col:_0x3fd162}=_0x10b576,_0x5c9be8=_0x544264,_0x3f0ac3=_0x3fd162;if(_0x279f57){const _0x1ff66c=[];for(const [_0x4978c3,_0x1e73bb]of Object['entries'](_0x1eb939))for(const [_0x16e1e0,_0x605736]of Object[_0x1f7d08(0x2ab)](_0x1e73bb))_0x1ff66c[_0x1f7d08(0x3fe)](_0x540207(_0x5c9be8+Number(_0x4978c3),_0x3f0ac3+Number(_0x16e1e0)));return _0x1ff66c;}else{const _0x5d8470=_0x594a00?_0x32bf44>0x0?0x1:0x0:0x1,_0x21d85a=_0x594a00?_0x565a4c>0x0?0x1:0x0:0x1,_0x97052c=_0x544264+_0x32bf44-_0x5d8470,_0x33d81b=_0x3fd162+_0x565a4c-_0x21d85a;return[{'startRow':_0x5c9be8,'startColumn':_0x3f0ac3,'endRow':_0x97052c,'endColumn':_0x33d81b}];}}const Y=_0x91438c(0x3da),Bt=_0x91438c(0x1b5);var k=(_0x28be7e=>(_0x28be7e[_0x91438c(0x41b)]=_0x91438c(0x3ad),_0x28be7e[_0x91438c(0x27b)]=_0x91438c(0x3aa),_0x28be7e[_0x91438c(0x388)]=_0x91438c(0x33b),_0x28be7e[_0x91438c(0x2b5)]='AddPivotTableWithConfig',_0x28be7e['AddPivotTable']=_0x91438c(0x1f6),_0x28be7e[_0x91438c(0x3c3)]=_0x91438c(0x353),_0x28be7e['RemovePivotField']=_0x91438c(0x3ce),_0x28be7e[_0x91438c(0x3b7)]=_0x91438c(0x27a),_0x28be7e[_0x91438c(0x40a)]=_0x91438c(0x1c0),_0x28be7e[_0x91438c(0x24e)]='setPivotSort',_0x28be7e[_0x91438c(0x256)]=_0x91438c(0x2f5),_0x28be7e[_0x91438c(0x1f2)]=_0x91438c(0x2a9),_0x28be7e['UpdateValuePosition']=_0x91438c(0x351),_0x28be7e['DrillDown']='drillDown',_0x28be7e[_0x91438c(0x21b)]=_0x91438c(0x37b),_0x28be7e[_0x91438c(0x283)]='setPivotTableConfig',_0x28be7e['ResetPivotTable']=_0x91438c(0x40e),_0x28be7e))(k||{});const Mi={'sheets-pivot.blankValue':_0x91438c(0x2e6),'sheets-pivot.columnName':_0x91438c(0x2f8),'sheets-pivot.subTotalText':_0x91438c(0x271),'sheets-pivot.grandTotalText':_0x91438c(0x322),'sheets-pivot.valueText':_0x91438c(0x36d),'sheets-pivot.averageName':_0x91438c(0x266),'sheets-pivot.countName':_0x91438c(0x2cd),'sheets-pivot.countNumsName':_0x91438c(0x2cd),'sheets-pivot.maxName':_0x91438c(0x3bf),'sheets-pivot.minName':_0x91438c(0x30b),'sheets-pivot.productName':_0x91438c(0x1e1),'sheets-pivot.stdDevName':_0x91438c(0x409),'sheets-pivot.stdDevpName':'StdDevp\x20of\x20','sheets-pivot.sumName':_0x91438c(0x3a1),'sheets-pivot.varName':_0x91438c(0x2b3),'sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':_0x91438c(0x201),'sheets-pivot.grandTotal':_0x91438c(0x322),'sheets-pivot.value':_0x91438c(0x24d),'sheets-pivot.blank':_0x91438c(0x1f9),'sheets-pivot.other':_0x91438c(0x275),'sheets-pivot.emptyPivot.filter':_0x91438c(0x41b),'sheets-pivot.emptyPivot.row':_0x91438c(0x34a),'sheets-pivot.emptyPivot.column':_0x91438c(0x41d),'sheets-pivot.emptyPivot.values':'Values'},yo={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},be=_0x150235('pivotPerformCheck'),Xo=_0x461231(_0x91438c(0x3cb));var Le=(_0x52c266=>(_0x52c266[_0x91438c(0x1eb)]=_0x91438c(0x1eb),_0x52c266[_0x91438c(0x21e)]='delete',_0x52c266['update']='update',_0x52c266))(Le||{}),J=(_0x21f6e6=>(_0x21f6e6[_0x91438c(0x33a)]=_0x91438c(0x1eb),_0x21f6e6[_0x91438c(0x20b)]=_0x91438c(0x3bc),_0x21f6e6['Delete']=_0x91438c(0x21e),_0x21f6e6))(J||{});const ro={'type':_0x2e18c8[_0x91438c(0x318)],'id':'sheet.mutation.get-pivot-data-local','handler':()=>!0x0},lo={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x331),'handler':()=>!0x0},Dt={'type':_0x2e18c8[_0x91438c(0x318)],'id':'sheet.mutation.send-pivot-view-local','handler':()=>!0x0},co={'type':_0x2e18c8['MUTATION'],'id':_0x91438c(0x399),'handler':()=>!0x0},uo={'type':_0x2e18c8['MUTATION'],'id':_0x91438c(0x3a2),'handler':()=>!0x0};var Fi=Object[_0x91438c(0x26b)],wi=(_0x281fd4,_0x547ee3,_0x415cae,_0x5cfb0a)=>{const _0x442fe1=_0x91438c;for(var _0x59bd67=_0x5cfb0a>0x1?void 0x0:_0x5cfb0a?Fi(_0x547ee3,_0x415cae):_0x547ee3,_0x359a5c=_0x281fd4[_0x442fe1(0x3e7)]-0x1,_0x5121c2;_0x359a5c>=0x0;_0x359a5c--)(_0x5121c2=_0x281fd4[_0x359a5c])&&(_0x59bd67=_0x5121c2(_0x59bd67)||_0x59bd67);return _0x59bd67;},_i=(_0x43be91,_0x103119)=>(_0x59235e,_0xa165b5)=>_0x103119(_0x59235e,_0xa165b5,_0x43be91);let z=class extends _0x5353ba{constructor(_0x519106){const _0x36c5f7=_0x91438c;super(),N(this,_0x36c5f7(0x1d3),new Map()),this[_0x36c5f7(0x384)]=_0x519106;}['handleAsyncResponse'](_0x1ee8bd){const _0x3dd748=_0x91438c,{version:_0x288e8b}=_0x1ee8bd,_0x392c00=this[_0x3dd748(0x1d3)][_0x3dd748(0x274)](_0x288e8b);_0x392c00&&(_0x392c00(_0x1ee8bd),this['_requestResolvers']['delete'](_0x288e8b));}[_0x91438c(0x328)](_0x224148){return new Promise((_0x3f29f7,_0x488d16)=>{const _0x284dd7=_0x3105,_0x9bef46=this[_0x284dd7(0x28f)]();this[_0x284dd7(0x1d3)][_0x284dd7(0x3bc)](_0x9bef46,_0x3f29f7),this[_0x284dd7(0x384)]['executeCommand'](ro['id'],{'version':_0x9bef46,..._0x224148},{'onlyLocal':!0x0});});}[_0x91438c(0x28f)](){return Math['random']()['toString'](0x24)['substring'](0x2,0x10);}};z=wi([_i(0x0,_0x431452(_0xa7b251))],z);const Go={0x0:'R',0x1:'b',0x2:'3',0x3:'W',0x4:'K',0x5:'B',0x6:'z',0x7:'A',0x8:'F',0x9:'v','D':'0','W':'1','G':'2','v':'4','s':'5','Y':'6','C':'7','S':'8','O':'9','g':'a','d':'c','J':'d','X':'e','n':'f','p':'g','c':'h','f':'i','H':'j','B':'k','l':'l','t':'m','V':'n','I':'o','Z':'p','m':'q','y':'r','F':'s','a':'t','R':'u','Q':'w','b':'x','N':'y','P':'C','E':'D','L':'E','h':'G','r':'H','q':'I','j':'J','K':'L','U':'M','M':'N','u':'O','T':'P','i':'Q','x':'S','o':'T','A':'U','e':'V','w':'X','z':'Y','k':'Z'},Wo=_0x91438c(0x3cc),Ri=_0x448a7d=>{const _0x6763da=_0x91438c;var _0x3f1f37;return((_0x3f1f37=_0x448a7d['body'])==null?void 0x0:_0x3f1f37[_0x6763da(0x1cf)]['replace'](/\r\n$/,''))||'';};class Di extends _0x3fdd5b{constructor(_0x28cbc9,_0x1838d8){const _0x480362=_0x91438c;super(),N(this,_0x480362(0x390),{}),N(this,_0x480362(0x22e)),N(this,_0x480362(0x1ee)),(this[_0x480362(0x22e)]=_0x1838d8,this['_host']=_0x28cbc9);}['initDataRanges'](){const _0x1526c1=_0x91438c;for(const _0x56985d in this[_0x1526c1(0x282)]){const _0x4d96fb=this[_0x1526c1(0x282)][_0x56985d],_0x343b0c=_0x4d96fb[_0x1526c1(0x3f7)]();this['rangeKeyMap'][_0x343b0c]=_0x4d96fb[_0x1526c1(0x403)]();}}[_0x91438c(0x1dd)](){const _0x530efb=_0x91438c,_0x46d08f=this[_0x530efb(0x1ee)];return Ai[_0x530efb(0x429)](_0x46d08f);}[_0x91438c(0x1d7)](_0x4c8cf8){const _0x102737=_0x91438c,_0x5f5500=this['dataFields'][_0x4c8cf8]['rangeKey'];delete this[_0x102737(0x282)][_0x4c8cf8],delete this[_0x102737(0x390)][_0x5f5500];}[_0x91438c(0x3a8)](_0x2666f7){const _0x115446=_0x91438c;this[_0x115446(0x282)][_0x2666f7[_0x115446(0x403)]()]=_0x2666f7;}[_0x91438c(0x1b3)](_0x24d177){const _0x378815=_0x91438c;var _0x4db1ae,_0x23761a;const _0x17dc19=this[_0x378815(0x1ee)][_0x378815(0x2ba)](_0x24d177);if(_0x17dc19){const {unitId:_0x57e307,subUnitId:_0x4fd36b}=_0x17dc19,_0x514be2=(_0x4db1ae=this[_0x378815(0x1ee)]['getPivotTableConfig'](_0x57e307,_0x4fd36b,_0x24d177))==null?void 0x0:_0x4db1ae[_0x378815(0x407)];this[_0x378815(0x1ee)][_0x378815(0x41a)]({'token':_0x24d177,'type':Le[_0x378815(0x21e)],'dataRangeInfo':_0x514be2});}(_0x23761a=this[_0x378815(0x232)](_0x24d177))==null||_0x23761a[_0x378815(0x3b3)](),delete this['collections'][_0x24d177];}[_0x91438c(0x3f7)](_0x32ff05,_0x1df196){const {sheetName:_0x4730af,unitId:_0x3baecd,range:_0x29b56b}=_0x32ff05,{startRow:_0x23f960,endRow:_0x3fe008}=_0x29b56b;return _0x267cef(_0x3baecd,_0x4730af,{'startRow':_0x23f960,'endRow':_0x3fe008,'startColumn':_0x1df196,'endColumn':_0x1df196});}['getDataFieldByRangeKey'](_0x2369ed){const _0x5bfe30=_0x91438c;return this['dataFields'][this[_0x5bfe30(0x390)][_0x2369ed]];}['setRangeKeyMap'](_0x2e9f51,_0x32305d){this['rangeKeyMap'][_0x2e9f51]=_0x32305d;}[_0x91438c(0x235)](_0x12c0ea,_0x47c8c2){const _0x3016ea=_0x91438c;this[_0x3016ea(0x390)][_0x47c8c2]=this[_0x3016ea(0x390)][_0x12c0ea],delete this[_0x3016ea(0x390)][_0x12c0ea];}[_0x91438c(0x2e4)](_0x568568,_0x3d3a0b,_0xb7a652,_0x2fd03d){const _0x3f0388=_0x91438c,_0x30d6ce=new _0x1a19f2(this);_0x30d6ce[_0x3f0388(0x3ea)](_0x3d3a0b);const _0x156173=[];let _0x1faebb=0x0;for(const _0x4b4d6d of _0x30d6ce[_0x3f0388(0x2b8)]){const _0x3de4a2=this[_0x3f0388(0x3f7)](_0xb7a652,_0x1faebb),_0x5b6cf2=this[_0x3f0388(0x282)][_0x4b4d6d];_0x5b6cf2&&(_0x5b6cf2[_0x3f0388(0x3cd)]=_0x3de4a2,this['setRangeKeyMap'](_0x3de4a2,_0x4b4d6d),_0x156173[_0x3f0388(0x3fe)]({'index':_0x1faebb,'dataField':_0x5b6cf2})),_0x1faebb++;}return this[_0x3f0388(0x40b)](_0x568568,_0x30d6ce,_0xb7a652,_0x2fd03d),{'collection':_0x30d6ce,'updateDataFieldList':_0x156173};}['getRangeStartEndInfo'](_0x39f7b0,_0x465377){const _0x54e113=_0x91438c;return _0x39f7b0[_0x54e113(0x23e)]===_0x5692f0[_0x54e113(0x21d)]?{'startRow':0x0,'startColumn':_0x39f7b0[_0x54e113(0x2ee)],'endRow':_0x465377[_0x54e113(0x1ce)]()-0x1,'endColumn':_0x39f7b0[_0x54e113(0x377)]}:{'startRow':_0x39f7b0[_0x54e113(0x34c)],'startColumn':_0x39f7b0[_0x54e113(0x2ee)],'endRow':_0x39f7b0[_0x54e113(0x25c)],'endColumn':_0x39f7b0[_0x54e113(0x377)]};}['createCollectionWithDataRange'](_0x1fac7e){const _0x543782=_0x91438c,{sheetName:_0x968ff9,range:_0x3f3292}=_0x1fac7e,_0x4383e7=this[_0x543782(0x22e)][_0x543782(0x1d0)](_0x102cba[_0x543782(0x297)]),_0x429eff=_0x4383e7[_0x543782(0x363)](_0x968ff9),_0x1bcf89=_0x429eff[_0x543782(0x3ac)](),{startColumn:_0x426be8,startRow:_0x4d786f,endColumn:_0x311560}=this[_0x543782(0x375)](_0x3f3292,_0x429eff),_0x466866=_0x4383e7['getStyles'](),_0x2022a5=new _0x1a19f2(this);_0x2022a5[_0x543782(0x32e)](_0x1fac7e);const _0x3f2787=[],_0x2d6802={};for(let _0x71d9cc=_0x426be8;_0x71d9cc<=_0x311560;_0x71d9cc++){const _0x185e8b=_0x1bcf89['getValue'](_0x4d786f,_0x71d9cc),_0x353d91=this[_0x543782(0x3f7)](_0x1fac7e,_0x71d9cc),_0x5cd3dc=this[_0x543782(0x287)](_0x353d91);if(_0x5cd3dc)_0x2022a5['addField'](_0x5cd3dc[_0x543782(0x403)](),_0x5cd3dc[_0x543782(0x30e)]());else{const _0x822a20=this[_0x543782(0x37f)]();let _0x4b718d=this['adjustSheetCellData'](_0x185e8b,_0x466866,_0x2d6802);_0xc79f0b(_0x4b718d)&&(_0x4b718d=_0xc18a5d['format'](_0x4b718d['f'],Number(_0x4b718d['v'])));const _0x14a304=this[_0x543782(0x260)](_0x4b718d,_0x71d9cc),_0x1ead0a=new _0x7a9bf0(_0x822a20,_0x14a304,_0x387c10(0x3));_0x1ead0a[_0x543782(0x3cd)]=_0x353d91,this[_0x543782(0x282)][_0x822a20]=_0x1ead0a,_0x2022a5[_0x543782(0x381)](_0x822a20,_0x14a304),_0x3f2787['push']({'index':_0x71d9cc,'dataField':_0x1ead0a});}}return{'updateDataFieldList':_0x3f2787,'collection':_0x2022a5};}[_0x91438c(0x2df)](_0x1ed19e){const _0x462450=_0x91438c;return this[_0x462450(0x1ee)][_0x462450(0x352)]()[_0x462450(0x2da)]+'\x20'+_0x2aaf1c(_0x1ed19e);}[_0x91438c(0x260)](_0x30dd7a,_0x190a3f){const _0x4625aa=_0x91438c;return _0x30dd7a==null||_0x30dd7a===''?this[_0x4625aa(0x2df)](_0x190a3f):String(_0x30dd7a);}[_0x91438c(0x232)](_0x5530ee){const _0x5c1c83=_0x91438c;return this[_0x5c1c83(0x391)][_0x5530ee];}[_0x91438c(0x40b)](_0x5726f6,_0xf1a5a2,_0x43c8f3,_0x38bae0){const _0x869380=_0x91438c;this[_0x869380(0x391)][_0x5726f6]=_0xf1a5a2,_0xf1a5a2[_0x869380(0x32e)](_0x43c8f3),this[_0x869380(0x1ee)][_0x869380(0x41a)]({'token':_0x5726f6,'type':Le[_0x869380(0x1eb)],'dataRangeInfo':_0x43c8f3,'targetCellInfo':_0x38bae0});}[_0x91438c(0x2f9)](_0x5ccbb7,_0x4ef3e7){const _0x37be30=_0x91438c,_0x20a4ae=this[_0x37be30(0x232)](_0x5ccbb7),_0x158bcf=_0x20a4ae[_0x37be30(0x2b9)]();let _0x556e27=0x0;for(const _0x5f4808 of _0x158bcf){const _0x528778=_0x20a4ae[_0x37be30(0x2bd)](_0x5f4808),_0x390081=this[_0x37be30(0x3f7)](_0x4ef3e7,_0x556e27);this['updateRangeKeyMap'](_0x528778['rangeKey'],_0x390081),_0x556e27++;}}[_0x91438c(0x2cc)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x91438c(0x1dc)](_0x26ae65,_0x4f4cea){const _0x413006=_0x91438c;if(this[_0x413006(0x232)](_0x26ae65)){const _0x2e7878=this[_0x413006(0x288)](_0x4f4cea),_0x5d2126=[];for(const _0x3c8a6d of _0x2e7878)this[_0x413006(0x390)][_0x3c8a6d]!==void 0x0&&_0x5d2126['push'](this[_0x413006(0x390)][_0x3c8a6d]);const _0x2c4e15=this['getNoUsedDataFieldIds'](_0x26ae65),_0xd7f564=[],_0x1a6b60=new Set(_0x5d2126);for(const _0x1e69c0 of _0x2c4e15)_0x1a6b60[_0x413006(0x35d)](_0x1e69c0)||_0xd7f564[_0x413006(0x3fe)](_0x1e69c0);return _0xd7f564;}}[_0x91438c(0x279)](_0x2d602c,_0x2ae484,_0x12b417,_0x5d02e6,_0x3f3daf){const _0x1a86a3=_0x91438c;return _0x2ae484&&_0x2ae484[_0x1a86a3(0x344)](_0x5d02e6,_0x3f3daf)?_0x2ae484[_0x1a86a3(0x344)](_0x5d02e6,_0x3f3daf):_0x12b417&&_0x12b417['getValue'](_0x5d02e6,_0x3f3daf)?_0x12b417['getValue'](_0x5d02e6,_0x3f3daf):_0x2d602c[_0x1a86a3(0x344)](_0x5d02e6,_0x3f3daf);}[_0x91438c(0x29c)](_0x13a85e,_0x2aa785,_0x1ab527,_0x1bd7c1){const _0x131331=_0x91438c,_0x4b1902=this[_0x131331(0x282)][_0x13a85e];if(!_0x4b1902)return;const {subUnitId:_0x2b02f8,range:_0x2955f2,unitId:_0x5c64fb}=_0x2aa785,_0x39e996=this[_0x131331(0x22e)][_0x131331(0x2f0)](_0x5c64fb);if(!_0x39e996){console[_0x131331(0x2e2)](_0x131331(0x33f));return;}const _0x205eb9=_0x39e996['getSheetBySheetId'](_0x2b02f8),_0x3e9a8d=_0x205eb9[_0x131331(0x3ac)](),{arrayFormulaCellDataMatrix:_0x4eca17,unitDataMatrix:_0x33f6f4}=_0x1bd7c1||{},{startRow:_0x5de23c,startColumn:_0x4ba93e,endRow:_0x3b9634}=this[_0x131331(0x375)](_0x2955f2,_0x205eb9);_0x4b1902[_0x131331(0x23a)]();const _0x319ede=_0x39e996[_0x131331(0x334)](),_0x2fc2d8={},_0x369e09=this['getMatrixValue'](_0x3e9a8d,_0x4eca17,_0x33f6f4,_0x5de23c,_0x4ba93e+_0x1ab527);let _0x4bb441=this[_0x131331(0x247)](_0x369e09,_0x319ede,_0x2fc2d8);_0xc79f0b(_0x4bb441)&&(_0x4bb441=_0xc18a5d[_0x131331(0x425)](_0x4bb441['f'],Number(_0x4bb441['v'])));const _0x4aeab8=this['uniqueDataFieldName'](_0x4bb441,_0x4ba93e+_0x1ab527);_0x4b1902['setName'](_0x4aeab8);for(let _0x58adac=_0x5de23c+0x1;_0x58adac<=_0x3b9634;_0x58adac++){const _0x459308=this[_0x131331(0x279)](_0x3e9a8d,_0x4eca17,_0x33f6f4,_0x58adac,_0x4ba93e+_0x1ab527);_0x4b1902['addRecord'](this[_0x131331(0x247)](_0x459308,_0x319ede,_0x2fc2d8),_0x58adac-0x1-_0x5de23c);}}[_0x91438c(0x2a3)](_0x32dfb5,_0x26ab75,_0x586e95){const _0x2d2255=_0x91438c,{subUnitId:_0x41c346,range:_0x213ac3,unitId:_0x3a54ac}=_0x586e95,_0x228431=this[_0x2d2255(0x22e)][_0x2d2255(0x2f0)](_0x3a54ac);if(!_0x228431){console[_0x2d2255(0x2e2)](_0x2d2255(0x33f));return;}const _0x42c714=_0x228431[_0x2d2255(0x243)](_0x41c346),_0x2fa7c2=_0x42c714['getCellMatrix'](),{startRow:_0x4a701f,startColumn:_0x3e58ca,endRow:_0x2898de}=this[_0x2d2255(0x375)](_0x213ac3,_0x42c714),_0x2562a8=_0x228431['getStyles'](),_0x4378b4={};for(const {dataField:_0x1770e9,index:_0x36d4b6}of _0x26ab75){_0x1770e9[_0x2d2255(0x23a)]();const _0x188dba=this['getMatrixValue'](_0x2fa7c2,void 0x0,void 0x0,_0x4a701f,_0x3e58ca+_0x36d4b6);let _0x4dec9f=this[_0x2d2255(0x247)](_0x188dba,_0x2562a8,_0x4378b4);_0xc79f0b(_0x4dec9f)&&(_0x4dec9f=_0xc18a5d[_0x2d2255(0x425)](_0x4dec9f['f'],Number(_0x4dec9f['v'])));const _0x3b6c5c=this[_0x2d2255(0x260)](_0x4dec9f,_0x3e58ca+_0x36d4b6);_0x1770e9['setName'](_0x3b6c5c);}_0x32dfb5['updateAllDisplayName']();for(let _0x63ea2f=_0x4a701f+0x1;_0x63ea2f<=_0x2898de;_0x63ea2f++)for(const {index:_0x2220bc,dataField:_0x39b3d4}of _0x26ab75){const _0x2489e4=_0x2fa7c2[_0x2d2255(0x344)](_0x63ea2f,_0x3e58ca+_0x2220bc);_0x39b3d4['addRecord'](this['adjustSheetCellData'](_0x2489e4,_0x2562a8,_0x4378b4),_0x63ea2f-0x1-_0x4a701f);}_0x32dfb5[_0x2d2255(0x419)](_0x2898de-_0x4a701f);}[_0x91438c(0x288)](_0x41d5ef){const _0x30f330=_0x91438c,{range:_0x412d0d}=_0x41d5ef,{startColumn:_0x5171c5,endColumn:_0x848080}=_0x412d0d,_0x4be803=[];for(let _0x592ff4=_0x5171c5;_0x592ff4<=_0x848080;_0x592ff4++)_0x4be803[_0x30f330(0x3fe)](this[_0x30f330(0x3f7)](_0x41d5ef,_0x592ff4));return _0x4be803;}['adjustSheetCellData'](_0x124c2c,_0x5636ff,_0x447f41){const _0xcbcd48=_0x91438c;if(_0x124c2c){const {s:_0x2d2dc5,v:_0x2745b4,t:_0x19178a,p:_0x4d4310}=_0x124c2c;if(_0x4d4310)return Ri(_0x4d4310);const _0x27e074=_0x5636ff[_0xcbcd48(0x274)](_0x2d2dc5);if(_0x27e074&&_0x19178a===_0x5eab4b[_0xcbcd48(0x2d0)]&&_0x27e074['n']){const {pattern:_0x30b657}=_0x27e074['n'];_0x447f41[_0x30b657]||(_0x447f41[_0x30b657]=_0xc18a5d[_0xcbcd48(0x32d)](_0x30b657));const _0x4350a8=_0x447f41[_0x30b657],_0x1c5c7c=_0x4350a8[_0xcbcd48(0x2ce)];if(_0x4350a8[_0xcbcd48(0x214)])return String(_0x2745b4);if(_0x1c5c7c)return{'v':_0x2745b4,'f':_0x30b657};}if(_0x19178a===_0x5eab4b[_0xcbcd48(0x2d0)])return Number(_0x2745b4);if(_0x19178a===_0x5eab4b[_0xcbcd48(0x31a)]||_0x19178a===_0x5eab4b[_0xcbcd48(0x1d2)])return String(_0x2745b4);if(_0x19178a===void 0x0){const _0x57b0ec=Number(_0x2745b4);if(!Number[_0xcbcd48(0x280)](_0x57b0ec)&&String(_0x57b0ec)===_0x2745b4)return _0x57b0ec;}return _0x2745b4!=null?_0x2745b4:null;}else return null;}[_0x91438c(0x264)](_0x3a7452){const _0x1a30cc=_0x91438c,{sheetName:_0x21863d,range:_0x331a64,unitId:_0x21817e}=_0x3a7452,_0x57531e=this[_0x1a30cc(0x22e)]['getUnit'](_0x21817e);if(!_0x57531e)return console[_0x1a30cc(0x2e2)](_0x1a30cc(0x33f)),{'header':[],'data':[]};const _0x41271a=_0x57531e['getSheetBySheetName'](_0x21863d),_0x13ea99=_0x41271a['getCellMatrix'](),{startRow:_0x3ee0f9,startColumn:_0xcc7d52,endRow:_0x5df73a,endColumn:_0x21967e}=this['getRangeStartEndInfo'](_0x331a64,_0x41271a),_0x62a8=_0x57531e[_0x1a30cc(0x334)](),_0x1e2a6a=[],_0x11ef8d=[],_0x1c4456={};for(let _0x3fbef5=_0x3ee0f9;_0x3fbef5<=_0x5df73a;_0x3fbef5++){const _0x437494=[];for(let _0x5a8c72=_0xcc7d52;_0x5a8c72<=_0x21967e;_0x5a8c72++){const _0x35f2c3=_0x13ea99[_0x1a30cc(0x344)](_0x3fbef5,_0x5a8c72);_0x3fbef5===_0x3ee0f9?_0x1e2a6a['push'](_0x35f2c3==null?null:String(_0x35f2c3['v'])):_0x437494['push'](this[_0x1a30cc(0x247)](_0x35f2c3,_0x62a8,_0x1c4456));}_0x11ef8d[_0x1a30cc(0x3fe)](_0x437494);}return{'header':_0x1e2a6a,'data':_0x11ef8d};}[_0x91438c(0x2e3)](){const _0x28deab=_0x91438c;return super[_0x28deab(0x2e3)]();}['fromJSON'](_0x170732){const _0x348025=_0x91438c;super[_0x348025(0x3ea)](_0x170732),this[_0x348025(0x327)]();}[_0x91438c(0x3b3)](){const _0x394d91=_0x91438c;super['dispose'](),this[_0x394d91(0x390)]={},this[_0x394d91(0x1ee)]=null;}}const Vi=_0x429468=>{const _0x4bd41e=_0x91438c,{targetCellInfo:_0x29e073}=_0x429468,{matrixCache:_0x1c587e,rangesCache:_0x23a20e}=jo({'filter':_0x4bd41e(0x41b),'row':_0x4bd41e(0x34a),'column':_0x4bd41e(0x41d),'values':_0x4bd41e(0x1b0)},_0x29e073),_0x26046a=new _0x17d6f8();return _0x1c587e['forValue']((_0x4f6306,_0x3926cf,_0x8159d6)=>{const _0x55aa02=_0x4bd41e;_0x26046a[_0x55aa02(0x1ba)](_0x4f6306,_0x3926cf,_0x8159d6);}),{'matrix':_0x26046a,'rangesCache':_0x23a20e};},ot=_0x503fb0=>{const _0x11e71f=_0x91438c;let _0x12bea4;if(_0x503fb0!=null&&_0x503fb0['v']||(_0x503fb0==null?void 0x0:_0x503fb0['v'])===0x0){_0x12bea4||(_0x12bea4={});const _0x45cdb8=$o(_0x503fb0['v']);typeof _0x45cdb8==_0x11e71f(0x242)?_0x12bea4['t']=_0x5eab4b[_0x11e71f(0x2d0)]:typeof _0x45cdb8==_0x11e71f(0x1e0)&&(_0x12bea4['t']=_0x5eab4b['STRING']),_0x12bea4['v']=_0x45cdb8;}return _0x12bea4;},Ni=(_0x28dace,_0x4c8740,_0xa5e68c)=>{const _0x4eb83d=_0x91438c;var _0x268a8b,_0x8f28ba,_0xdf85b3,_0x26b909,_0x5a06aa,_0xabd2fa,_0x1d82b6,_0x2ab824,_0x109a96,_0x1c20ad,_0x3b2fad,_0xfd68e;const {cornerView:_0x4ac5bb,rowView:_0x53ead6,colView:_0x30996a,dataView:_0x3ae210,pageView:_0x12cbe3,formatMap:_0x287fe9}=_0x28dace,{row:_0x130b72,col:_0x31783b}=_0x4c8740,_0x3f10ca=new _0x17d6f8();let _0x10778e=_0x130b72,_0x2f3237=_0x31783b;Object[_0x4eb83d(0x31c)](_0x12cbe3[_0x4eb83d(0x1c5)])[_0x4eb83d(0x342)](_0x9cd624=>{const _0x25f38c=_0x4eb83d;Object[_0x25f38c(0x31c)](_0x12cbe3[_0x25f38c(0x1c5)][Number(_0x9cd624)])[_0x25f38c(0x342)](_0x5ad3f4=>{const _0x1e29cc=_0x25f38c,_0x2bdf6e={..._0x12cbe3[_0x1e29cc(0x1c5)][Number(_0x9cd624)][Number(_0x5ad3f4)]};_0x3f10ca[_0x1e29cc(0x1ba)](Number(_0x9cd624)+_0x10778e,Number(_0x5ad3f4)+_0x2f3237,ot(_0x2bdf6e));});});const _0x59736c=Object[_0x4eb83d(0x31c)](_0x12cbe3['data'])[_0x4eb83d(0x3e7)];_0x10778e+=_0x59736c+(_0x59736c?mt:0x0);const _0x5ae7dd=_0x4ac5bb[_0x4eb83d(0x1ce)](),_0x1e8ea8=_0x4ac5bb[_0x4eb83d(0x27f)]();for(let _0x5f087=0x0;_0x5f087<_0x5ae7dd;_0x5f087++)for(let _0x72a05e=0x0;_0x72a05e<_0x1e8ea8;_0x72a05e++){const _0x48403b={...(_0x8f28ba=(_0x268a8b=_0x4ac5bb[_0x4eb83d(0x1c5)])==null?void 0x0:_0x268a8b[_0x5f087])==null?void 0x0:_0x8f28ba[_0x72a05e]};_0x48403b&&((_0xdf85b3=_0x53ead6[_0x4eb83d(0x1c3)][_0x72a05e])!=null&&_0xdf85b3['isValue'])&&_0x72a05e===_0x1e8ea8-0x1&&_0x5f087===_0x5ae7dd-0x1&&(_0x48403b['v']=''+_0xa5e68c['sheets-pivot.value']),_0x3f10ca[_0x4eb83d(0x1ba)](_0x5f087+_0x10778e,_0x72a05e+_0x2f3237,ot(_0x48403b));}_0x2f3237+=_0x1e8ea8;const _0x2dc06c=_0x30996a[_0x4eb83d(0x1c3)],_0x2e312b=_0x30996a['getLastRow']()>=0x0?_0x30996a[_0x4eb83d(0x2fd)]()+0x1:0x0,_0x12eb1a=_0x30996a[_0x4eb83d(0x335)]()>=0x0?_0x30996a[_0x4eb83d(0x335)]()+0x1:0x0;for(let _0x32a57b=0x0;_0x32a57b<_0x12eb1a;_0x32a57b++)for(let _0x4a8210=0x0;_0x4a8210<_0x2e312b;_0x4a8210++){const _0x10f161={...(_0x5a06aa=(_0x26b909=_0x30996a['data'])==null?void 0x0:_0x26b909[_0x32a57b])==null?void 0x0:_0x5a06aa[_0x4a8210]},_0x2c7d69=(_0xabd2fa=_0x2dc06c[_0x32a57b])==null?void 0x0:_0xabd2fa[_0x4eb83d(0x1cd)],_0x1716d8=_0x287fe9[_0x2c7d69];_0x10f161&&(_0x10f161['v']=ht(_0x10f161,_0x32a57b===0x0&&((_0x1d82b6=_0x30996a[_0x4eb83d(0x341)](_0x4a8210+0x1))==null?void 0x0:_0x1d82b6['isValue']),_0x1716d8,_0xa5e68c)),_0x3f10ca[_0x4eb83d(0x1ba)](_0x32a57b+_0x10778e,_0x4a8210+_0x2f3237,ot(_0x10f161));}_0x10778e+=_0x5ae7dd;const _0x1f7020=_0x53ead6[_0x4eb83d(0x1c3)],_0x2712dc=_0x53ead6[_0x4eb83d(0x2fd)]()>=0x0?_0x53ead6['getLastRow']()+0x1:0x0,_0x52d44b=_0x53ead6[_0x4eb83d(0x335)]()>=0x0?_0x53ead6[_0x4eb83d(0x335)]()+0x1:0x0;for(let _0x27e30f=0x0;_0x27e30f<_0x2712dc;_0x27e30f++)for(let _0x4bdb95=0x0;_0x4bdb95<_0x52d44b;_0x4bdb95++){const _0x4a1100={...(_0x109a96=(_0x2ab824=_0x53ead6[_0x4eb83d(0x1c5)])==null?void 0x0:_0x2ab824[_0x27e30f])==null?void 0x0:_0x109a96[_0x4bdb95]},_0x3badee=(_0x1c20ad=_0x1f7020[_0x4bdb95])==null?void 0x0:_0x1c20ad[_0x4eb83d(0x1cd)],_0x44a2a7=_0x287fe9[_0x3badee];_0x4a1100&&(_0x4a1100['v']=ht(_0x4a1100,!0x1,_0x44a2a7,_0xa5e68c)),_0x3f10ca[_0x4eb83d(0x1ba)](_0x27e30f+_0x10778e,_0x4bdb95+_0x31783b,ot(_0x4a1100));}const _0x367e25=_0x3ae210[_0x4eb83d(0x1ce)](),_0x3bf769=_0x3ae210[_0x4eb83d(0x27f)]();for(let _0x256dba=0x0;_0x256dba<_0x367e25;_0x256dba++)for(let _0x438cf6=0x0;_0x438cf6<_0x3bf769;_0x438cf6++){const _0x5523bf={...(_0xfd68e=(_0x3b2fad=_0x3ae210['data'])==null?void 0x0:_0x3b2fad[_0x256dba])==null?void 0x0:_0xfd68e[_0x438cf6]};_0x3f10ca[_0x4eb83d(0x1ba)](_0x256dba+_0x10778e,_0x438cf6+_0x2f3237,ot(_0x5523bf));}return _0x3f10ca;},Ui=_0x3aed1d=>{const _0x4b72c7=_0x91438c,{view:_0x323bf3,targetCellInfo:_0x540042,isEmpty:_0x4773b4,textInfo:_0x2461f5}=_0x3aed1d;if(_0x4773b4)return Vi(_0x3aed1d);const {pageView:_0x323d97,cornerView:_0x2fa079,rowView:_0x69cd1c,colView:_0x3f0784,dataView:_0x27df5a}=_0x323bf3,_0x34ba32=ge(_0x540042,_0x323d97,!0x0),_0x44fc2f=_0x323d97[_0x4b72c7(0x2be)]>=0x0?_0x323d97[_0x4b72c7(0x2be)]+0x1:0x0,_0x2cdaab=_0x2fa079[_0x4b72c7(0x1ce)](),_0x23a177=_0x2fa079[_0x4b72c7(0x27f)](),_0x329eb8=_0x34ba32[_0x4b72c7(0x3e7)]>0x0?mt:0x0,_0x1b3a6b=ge({'row':_0x540042[_0x4b72c7(0x38d)]+_0x44fc2f+_0x329eb8,'col':_0x540042[_0x4b72c7(0x378)]},_0x2fa079,!0x1,!0x1),_0xee405=ge({'row':_0x540042['row']+_0x44fc2f+_0x329eb8+_0x2cdaab,'col':_0x540042[_0x4b72c7(0x378)]},_0x69cd1c,!0x1,!0x0),_0x35297d=ge({'row':_0x540042[_0x4b72c7(0x38d)]+_0x44fc2f+_0x329eb8,'col':_0x540042[_0x4b72c7(0x378)]+_0x23a177},_0x3f0784,!0x1,!0x0),_0x46764f=ge({'row':_0x540042['row']+_0x44fc2f+_0x329eb8+_0x2cdaab,'col':_0x540042[_0x4b72c7(0x378)]+_0x23a177},_0x27df5a,!0x1,!0x1),_0x46cb50={'rowRanges':_0xee405,'colRanges':_0x35297d,'cornerRanges':_0x1b3a6b,'dataRanges':_0x46764f,'pageRanges':_0x34ba32};return{'matrix':Ni(_0x323bf3,_0x540042,_0x2461f5),'rangesCache':_0x46cb50};};var Ei=Object[_0x91438c(0x26b)],xi=(_0xa44bba,_0x45461e,_0xece912,_0x460c7a)=>{const _0x3cb861=_0x91438c;for(var _0x4e4fbf=_0x460c7a>0x1?void 0x0:_0x460c7a?Ei(_0x45461e,_0xece912):_0x45461e,_0x1319ba=_0xa44bba[_0x3cb861(0x3e7)]-0x1,_0x2903e4;_0x1319ba>=0x0;_0x1319ba--)(_0x2903e4=_0xa44bba[_0x1319ba])&&(_0x4e4fbf=_0x2903e4(_0x4e4fbf)||_0x4e4fbf);return _0x4e4fbf;},nt=(_0x33a5ee,_0x5aea75)=>(_0x33a476,_0x25b3a2)=>_0x5aea75(_0x33a476,_0x25b3a2,_0x33a5ee);let $=class extends _0x5353ba{constructor(_0x187d02,_0x1e1a75,_0x4acfba,_0x438e37,_0x28c71d){const _0x5a3ec6=_0x91438c;super(),N(this,_0x5a3ec6(0x27e),new Map()),N(this,'_pivotTableInstanceCache',new Map()),N(this,_0x5a3ec6(0x28e),new Map()),N(this,_0x5a3ec6(0x365)),N(this,_0x5a3ec6(0x42d),new _0x4aede8()),N(this,_0x5a3ec6(0x2a0),this['_collectionChange$']['asObservable']()),N(this,_0x5a3ec6(0x387),new _0x4aede8()),N(this,'viewData$',this['_viewData$'][_0x5a3ec6(0x32a)]()),N(this,_0x5a3ec6(0x2c4),new _0x4aede8()),N(this,_0x5a3ec6(0x1b7),this[_0x5a3ec6(0x2c4)][_0x5a3ec6(0x32a)]()),N(this,_0x5a3ec6(0x3f2),new Map()),N(this,_0x5a3ec6(0x1b8),[]),N(this,_0x5a3ec6(0x2ed),new Map()),(this[_0x5a3ec6(0x31d)]=_0x187d02,this['_univerInstanceService']=_0x1e1a75,this[_0x5a3ec6(0x281)]=_0x4acfba,this[_0x5a3ec6(0x384)]=_0x438e37,this[_0x5a3ec6(0x30a)]=_0x28c71d,this['_initSnapshot']());}[_0x91438c(0x352)](){const _0x4527b6=_0x91438c;return this[_0x4527b6(0x365)]?this[_0x4527b6(0x365)]:Mi;}[_0x91438c(0x312)](_0x5e11c5){const _0x1f974b=_0x91438c;this[_0x1f974b(0x365)]=_0x5e11c5;}[_0x91438c(0x2f9)](_0x3003b6){const _0x2495e8=_0x91438c;var _0x1e4f99;const {from:_0x3657ea,to:_0x12fd5a,unitId:_0x84ca32,fromRange:_0x1441a6,toRange:_0x3e5972}=_0x3003b6;if(_0x3657ea&&_0x12fd5a){const _0xe2e06=this[_0x2495e8(0x33c)](_0x84ca32),_0x5d05e9=this[_0x2495e8(0x27e)][_0x2495e8(0x274)](_0x84ca32),_0x486269=(_0x1e4f99=this[_0x2495e8(0x22e)][_0x2495e8(0x2f0)](_0x84ca32))==null?void 0x0:_0x1e4f99['getSheetBySheetId'](_0x12fd5a[_0x2495e8(0x2ac)]);if(!_0x5d05e9||!_0x486269)return;const _0x58e0fc=_0x486269==null?void 0x0:_0x486269['getName']();for(const [_0x43b217,_0x200ddf]of _0x5d05e9[_0x2495e8(0x2ab)]())for(const [_0x3b5e38,_0x415990]of _0x200ddf[_0x2495e8(0x2ab)]()){const {sourceRangeInfo:_0x9958ef}=_0x415990;if(_0x9958ef[_0x2495e8(0x1cc)]===_0x84ca32&&_0x9958ef[_0x2495e8(0x2ac)]===_0x3657ea[_0x2495e8(0x2ac)]&&_0x459723[_0x2495e8(0x3a6)](_0x1441a6,_0x9958ef[_0x2495e8(0x21c)])){const _0x4536a0={'row':_0x9958ef[_0x2495e8(0x21c)][_0x2495e8(0x34c)]-_0x1441a6[_0x2495e8(0x34c)],'col':_0x9958ef[_0x2495e8(0x21c)][_0x2495e8(0x2ee)]-_0x1441a6[_0x2495e8(0x2ee)]},_0x3bf79b={'unitId':_0x84ca32,'subUnitId':_0x12fd5a[_0x2495e8(0x2ac)],'sheetName':_0x58e0fc,'range':{'startRow':_0x3e5972['startRow']+_0x4536a0[_0x2495e8(0x38d)],'endRow':_0x3e5972[_0x2495e8(0x34c)]+_0x4536a0[_0x2495e8(0x38d)]+_0x9958ef['range']['endRow']-_0x9958ef['range'][_0x2495e8(0x34c)],'startColumn':_0x3e5972[_0x2495e8(0x2ee)]+_0x4536a0[_0x2495e8(0x378)],'endColumn':_0x3e5972['startColumn']+_0x4536a0[_0x2495e8(0x378)]+_0x9958ef['range'][_0x2495e8(0x377)]-_0x9958ef[_0x2495e8(0x21c)][_0x2495e8(0x2ee)]}};_0xe2e06['handleMoveRange'](_0x3b5e38,_0x3bf79b);const _0x1b9750={..._0x415990,'sourceRangeInfo':_0x3bf79b};this[_0x2495e8(0x3ab)](_0x84ca32,_0x12fd5a[_0x2495e8(0x2ac)],_0x3b5e38,_0x1b9750),this['broadcastCollectionChange']({'unitId':_0x84ca32,'token':_0x3b5e38,'type':Le['update'],'oldSourceRangeInfo':_0x9958ef,'dataRangeInfo':_0x3bf79b,'targetCellInfo':_0x415990['targetCellInfo']}),this[_0x2495e8(0x1c1)]({'unitId':_0x84ca32,'subUnitId':_0x12fd5a['subUnitId'],'oldSubUnitId':_0x43b217,'pivotTableId':_0x3b5e38,'pivotTableConfig':_0x1b9750,'collectionConfig':_0xe2e06[_0x2495e8(0x2e3)]()});}}}}[_0x91438c(0x41a)](_0x27856e){const _0x22b227=_0x91438c;this[_0x22b227(0x42d)][_0x22b227(0x1db)](_0x27856e);}['getDataFieldManager'](_0x5bd482){const _0x10a1ef=_0x91438c;let _0xaa6235=this[_0x10a1ef(0x3f2)][_0x10a1ef(0x274)](_0x5bd482);return _0xaa6235||(_0xaa6235=new Di(this,this[_0x10a1ef(0x22e)]),this[_0x10a1ef(0x3f2)][_0x10a1ef(0x3bc)](_0x5bd482,_0xaa6235)),_0xaa6235;}['getCollection'](_0x1548b9,_0x3a7630){const _0x54270c=_0x91438c;return this[_0x54270c(0x33c)](_0x1548b9)[_0x54270c(0x391)][_0x3a7630];}['getUpdateRangeDeleteIds'](_0x318926,_0x6263ec,_0x4af70b){const _0x3d4aad=_0x91438c;return this[_0x3d4aad(0x33c)](_0x318926)[_0x3d4aad(0x1dc)](_0x6263ec,_0x4af70b);}['_ensurePivotMap'](_0x4f31b8,_0x58564c){const _0x496566=_0x91438c;let _0x516fd2=this[_0x496566(0x27e)][_0x496566(0x274)](_0x4f31b8);_0x516fd2||(_0x516fd2=new Map(),this[_0x496566(0x27e)][_0x496566(0x3bc)](_0x4f31b8,_0x516fd2));let _0x27b1dd=_0x516fd2[_0x496566(0x274)](_0x58564c);return _0x27b1dd||(_0x27b1dd=new Map(),_0x516fd2[_0x496566(0x3bc)](_0x58564c,_0x27b1dd)),_0x27b1dd;}[_0x91438c(0x3ab)](_0x73a231,_0x58e7cd,_0x4b1f06,_0x401058){const _0x29286b=_0x91438c;this[_0x29286b(0x330)](_0x73a231,_0x58e7cd)['set'](_0x4b1f06,_0x401058);}['_deleteModelCache'](_0x92f01e,_0x388fa8,_0x1041e1){const _0x53b7f7=_0x91438c;var _0x5e269f,_0x35a98a,_0x59bc44,_0x19a9d6;((_0x35a98a=(_0x5e269f=this[_0x53b7f7(0x27e)][_0x53b7f7(0x274)](_0x92f01e))==null?void 0x0:_0x5e269f[_0x53b7f7(0x274)](_0x388fa8))==null?void 0x0:_0x35a98a[_0x53b7f7(0x274)](_0x1041e1))&&((_0x19a9d6=(_0x59bc44=this[_0x53b7f7(0x27e)][_0x53b7f7(0x274)](_0x92f01e))==null?void 0x0:_0x59bc44[_0x53b7f7(0x274)](_0x388fa8))==null||_0x19a9d6[_0x53b7f7(0x21e)](_0x1041e1));}[_0x91438c(0x329)](_0x2c3dbd,_0x56e078){const _0x5e6ee0=_0x91438c;this[_0x5e6ee0(0x3cf)][_0x5e6ee0(0x3bc)](_0x2c3dbd,_0x56e078);}[_0x91438c(0x2b0)](_0x11e66c){const _0x451adf=_0x91438c;this['_pivotTableInstanceCache'][_0x451adf(0x21e)](_0x11e66c);}[_0x91438c(0x3b2)](_0x49dc1e,_0x41bd3d){const _0x5f341c=_0x91438c;let _0x328309=this['_viewData'][_0x5f341c(0x274)](_0x49dc1e);_0x328309||(_0x328309=new Map(),this[_0x5f341c(0x28e)]['set'](_0x49dc1e,_0x328309));let _0x406626=_0x328309[_0x5f341c(0x274)](_0x41bd3d);return _0x406626||(_0x406626=new Map(),_0x328309[_0x5f341c(0x3bc)](_0x41bd3d,_0x406626)),_0x406626;}[_0x91438c(0x1c1)](_0x5a81c8){const {unitId:_0x360620,subUnitId:_0x2e8f94,pivotTableId:_0x4d3e8a,pivotTableConfig:_0x4fb2d7,collectionConfig:_0x2b36b5}=_0x5a81c8,_0x2a05f0={'unitId':_0x360620,'subUnitId':_0x2e8f94,'oldSubUnitId':_0x2e8f94,'pivotTableId':_0x4d3e8a,'pivotTableConfig':_0x4fb2d7,'collectionConfig':_0x2b36b5};this['_commandService']['executeCommand'](co['id'],_0x2a05f0,{'onlyLocal':!0x0});}['updateView'](_0x3739b7,_0x3b7c74,_0x54c60b,_0x532a8a,_0x31d1d7,_0x3e3a37,_0x4336c9,_0x4286e4=!0x1){const _0x2aa4c9=_0x91438c;var _0x2f9b5d;this['_commandService'][_0x2aa4c9(0x3ba)](Dt['id'],{'single':{'unitId':_0x3739b7,'subUnitId':_0x3b7c74,'type':_0x54c60b,'pivotTableId':_0x532a8a,'view':_0x31d1d7,'pivotConfig':_0x3e3a37},'collectionConfig':{[_0x3739b7]:_0x4336c9}},{'onlyLocal':!0x0});const _0x45b7c0=!!((_0x2f9b5d=this[_0x2aa4c9(0x31f)](_0x532a8a))!=null&&_0x2f9b5d[_0x2aa4c9(0x3d9)]()),_0x1f0d36=this[_0x2aa4c9(0x294)](_0x3739b7,_0x3b7c74,_0x532a8a);_0x1f0d36&&this['updateViewData']({'view':_0x31d1d7,'pivotTableId':_0x532a8a,'textInfo':this['getTextInfo'](),'isEmpty':_0x45b7c0,'targetCellInfo':_0x1f0d36[_0x2aa4c9(0x416)]},_0x4286e4);}['updateViewData'](_0x418a2b,_0x5aaf5b){const _0x3d8b07=_0x91438c,{targetCellInfo:_0x205cd6,pivotTableId:_0x17a68e}=_0x418a2b,{unitId:_0x33fdd6,subUnitId:_0x4688f5}=_0x205cd6,_0x551184=this[_0x3d8b07(0x3b2)](_0x33fdd6,_0x4688f5),_0x3b1a0d=_0x551184[_0x3d8b07(0x274)](_0x17a68e);let _0x3a0ddb,_0x50e1c3;_0x3b1a0d&&(_0x3a0ddb=_0x3b1a0d[_0x3d8b07(0x3ec)],_0x50e1c3=_0x3b1a0d['matrix']);const {rangesCache:_0x1509d,matrix:_0x21946c}=Ui(_0x418a2b);_0x551184[_0x3d8b07(0x3bc)](_0x17a68e,{'rangeCache':_0x1509d,'matrix':_0x21946c,'oldMatrix':_0x50e1c3,'oldRangeCache':_0x3a0ddb}),_0x5aaf5b||this[_0x3d8b07(0x387)][_0x3d8b07(0x1db)]({'unitId':_0x33fdd6,'subUnitId':_0x4688f5,'pivotTableId':_0x17a68e});}['addPivotTable'](_0xe9f4c3,_0x5cdb2b,_0x57c7ff,_0x21dd08,_0x2e58aa){const _0x2bd236=_0x91438c;this[_0x2bd236(0x3ab)](_0xe9f4c3,_0x5cdb2b,_0x57c7ff,_0x2e58aa),this['_updatePivotTableInstanceCache'](_0x57c7ff,_0x21dd08);}[_0x91438c(0x23b)](_0xd6b5d3,_0x412b1e,_0x2e4e61){const _0x546c70=_0x91438c,_0x160627=this[_0x546c70(0x33c)](_0xd6b5d3);_0x160627[_0x546c70(0x3e2)](_0x2e4e61)[_0x546c70(0x342)](_0x4b0d45=>{const _0x30e001=_0x546c70;_0x160627[_0x30e001(0x1d7)](_0x4b0d45);}),this[_0x546c70(0x1bb)](_0xd6b5d3,_0x2e4e61),this[_0x546c70(0x2d8)](_0xd6b5d3,_0x412b1e,_0x2e4e61),this[_0x546c70(0x2b0)](_0x2e4e61);}['setPivotTable'](_0x1c0a47,_0x318ded,_0x48dce3,_0x5943ae){const _0x485a9b=_0x91438c;this[_0x485a9b(0x3ab)](_0x1c0a47,_0x318ded,_0x48dce3,_0x5943ae);}['getPivotTableConfig'](_0x47f0fe,_0x3923a3,_0x151eb3){const _0x5d1de0=_0x91438c;var _0x28b99a,_0x950d92;const _0x105578=(_0x950d92=(_0x28b99a=this[_0x5d1de0(0x27e)][_0x5d1de0(0x274)](_0x47f0fe))==null?void 0x0:_0x28b99a[_0x5d1de0(0x274)](_0x3923a3))==null?void 0x0:_0x950d92['get'](_0x151eb3);if(_0x105578)return _0x105578;}[_0x91438c(0x1fd)](_0x5458c4,_0x3cc7de,_0x4aece2){const _0x22c68a=_0x91438c;var _0x493302,_0x24b270;const _0x55d6a5=(_0x24b270=(_0x493302=this['_model'][_0x22c68a(0x274)](_0x5458c4))==null?void 0x0:_0x493302[_0x22c68a(0x274)](_0x3cc7de))==null?void 0x0:_0x24b270[_0x22c68a(0x274)](_0x4aece2);if(_0x55d6a5)return _0x55d6a5[_0x22c68a(0x2c6)];}[_0x91438c(0x31f)](_0x4b99e2){const _0x16d998=_0x91438c;return this[_0x16d998(0x3cf)][_0x16d998(0x274)](_0x4b99e2);}[_0x91438c(0x25b)](_0x2fb73c){const _0x1ef967=_0x91438c;this['_model'][_0x1ef967(0x21e)](_0x2fb73c);const _0x20fdb8=this['_dataFieldManagerCollection'][_0x1ef967(0x274)](_0x2fb73c);_0x20fdb8&&(_0x20fdb8[_0x1ef967(0x3b3)](),this[_0x1ef967(0x3f2)][_0x1ef967(0x21e)](_0x2fb73c)),this[_0x1ef967(0x28e)][_0x1ef967(0x21e)](_0x2fb73c),this[_0x1ef967(0x1b8)]['forEach'](_0x2adb64=>{_0x2adb64['deleteUnitId'](_0x2fb73c);});}['addCollectionByJSON'](_0x19b294,_0x5d4eb8,_0x16d162,_0x2699f3){const _0x2e09d4=_0x91438c;return this[_0x2e09d4(0x33c)](_0x16d162[_0x2e09d4(0x1cc)])[_0x2e09d4(0x2e4)](_0x19b294,_0x5d4eb8,_0x16d162,_0x2699f3);}[_0x91438c(0x3e0)](_0x1b0cc3){const _0x31a36a=_0x91438c;return this[_0x31a36a(0x33c)](_0x1b0cc3['unitId'])[_0x31a36a(0x3e0)](_0x1b0cc3);}[_0x91438c(0x2a3)](_0x2e3a0c,_0x5def00,_0x2a3cac){const _0x49159b=_0x91438c;this['getDataFieldManager'](_0x2a3cac['unitId'])[_0x49159b(0x2a3)](_0x2e3a0c,_0x5def00,_0x2a3cac);}[_0x91438c(0x3bb)](_0x55bba5,_0xa02bd1){const _0x3a864f=_0x91438c;this[_0x3a864f(0x33c)](_0x55bba5)['deleteDataField'](_0xa02bd1);}['removeCollections'](_0xd9a076,_0x352cfe){const _0x19260d=_0x91438c;this[_0x19260d(0x33c)](_0xd9a076)[_0x19260d(0x1b3)](_0x352cfe);}[_0x91438c(0x239)](_0x1c3e6f,_0x45d254){const _0x2cd651=_0x91438c;var _0x1b9567;return(_0x1b9567=this[_0x2cd651(0x27e)][_0x2cd651(0x274)](_0x1c3e6f))==null?void 0x0:_0x1b9567[_0x2cd651(0x274)](_0x45d254);}[_0x91438c(0x2ba)](_0x2097dd){const _0x5d2047=_0x91438c;for(const [_0x2364fc,_0x133cc4]of this[_0x5d2047(0x27e)][_0x5d2047(0x2ab)]())for(const [_0x29494f,_0x579f2e]of _0x133cc4[_0x5d2047(0x2ab)]())if(_0x579f2e[_0x5d2047(0x35d)](_0x2097dd))return{'unitId':_0x2364fc,'subUnitId':_0x29494f};return null;}[_0x91438c(0x290)](_0x1ed751,_0x5a3089,_0x1d08d1,_0x5961f0){const _0x156e65=_0x91438c,_0x3ec27e=this[_0x156e65(0x3b2)](_0x1ed751,_0x5a3089);_0x5961f0?_0x3ec27e['set'](_0x1d08d1,_0x5961f0):_0x3ec27e[_0x156e65(0x21e)](_0x1d08d1),this[_0x156e65(0x387)][_0x156e65(0x1db)]({'unitId':_0x1ed751,'subUnitId':_0x5a3089,'pivotTableId':_0x1d08d1});}['dispose'](){super['dispose']();}[_0x91438c(0x26f)](_0xab09dc,_0x572bfd,_0x23ba38){const _0xff8e8b=_0x91438c;var _0x1c252d,_0x543d15;const _0x41dea0=(_0x543d15=(_0x1c252d=this[_0xff8e8b(0x28e)]['get'](_0xab09dc))==null?void 0x0:_0x1c252d[_0xff8e8b(0x274)](_0x572bfd))==null?void 0x0:_0x543d15[_0xff8e8b(0x274)](_0x23ba38);return _0x41dea0||null;}[_0x91438c(0x1ca)](_0x34c1ba){const _0x5e1093=_0x91438c;this[_0x5e1093(0x422)](_0x34c1ba);}['updateDirtyPivotTable'](_0x1c6bd2){const _0x18e351=_0x91438c,{token:_0x527ad1,unitId:_0x41d01a,subUnitId:_0x583422}=_0x1c6bd2,_0x543fec=_0x41d01a+'-'+_0x583422+'-'+_0x527ad1;this['_queryingMap'][_0x18e351(0x274)](_0x543fec)&&clearTimeout(this[_0x18e351(0x2ed)][_0x18e351(0x274)](_0x543fec));const _0x301fc1=setTimeout(()=>{const _0x48adfc=_0x18e351;this['queryDirtyPivotTable'](_0x1c6bd2),this[_0x48adfc(0x2ed)][_0x48adfc(0x21e)](_0x543fec);},Pi);this[_0x18e351(0x2ed)][_0x18e351(0x3bc)](_0x543fec,_0x301fc1);}[_0x91438c(0x343)](_0x348c5b){const _0x4c0e7c=_0x91438c,{unitId:_0x21bf69,subUnitId:_0x3596b2,token:_0x27739b,type:_0x32fd30,pivotConfig:_0x8c42fc}=_0x348c5b,_0xa2cb71=this[_0x4c0e7c(0x31f)](_0x27739b),_0x44c97d=_0xa2cb71==null?void 0x0:_0xa2cb71[_0x4c0e7c(0x3af)](),_0x4dabd8=_0x8c42fc!=null?_0x8c42fc:this[_0x4c0e7c(0x294)](_0x21bf69,_0x3596b2,_0x27739b);_0x4dabd8&&(_0x4dabd8['isEmpty']=!!(_0xa2cb71!=null&&_0xa2cb71[_0x4c0e7c(0x3d9)]())),(_0x44c97d||_0x32fd30===J[_0x4c0e7c(0x354)])&&this[_0x4c0e7c(0x269)](_0x21bf69,_0x3596b2,_0x32fd30,_0x27739b,_0x44c97d,_0x4dabd8,this[_0x4c0e7c(0x33c)](_0x21bf69)['toJSON']());}[_0x91438c(0x2e3)](_0x17180f){const _0x380971=_0x91438c,_0xd81dae={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this['getDataFieldManager'](_0x17180f)&&(_0xd81dae[_0x380971(0x3d5)][_0x17180f]=this[_0x380971(0x33c)](_0x17180f)[_0x380971(0x2e3)]()),this['_model']['get'](_0x17180f)){_0xd81dae[_0x380971(0x307)][_0x17180f]={};const _0x342677=this['_model'][_0x380971(0x274)](_0x17180f);_0x342677!=null&&_0x342677['size']&&[..._0x342677['keys']()][_0x380971(0x342)](_0x179b03=>{const _0x2db25a=_0x380971,_0x9d044f=_0x342677[_0x2db25a(0x274)](_0x179b03);_0x9d044f!=null&&_0x9d044f[_0x2db25a(0x244)]&&(_0xd81dae['pivotTableConfigs'][_0x17180f][_0x179b03]={},[..._0x9d044f[_0x2db25a(0x31c)]()][_0x2db25a(0x342)](_0x4b6d02=>{const _0x4d66e2=_0x2db25a,_0xc9e17a=_0x9d044f[_0x4d66e2(0x274)](_0x4b6d02);_0xc9e17a&&(_0xd81dae['pivotTableConfigs'][_0x17180f][_0x179b03][_0x4b6d02]=_0xc9e17a);}));});}return _0xd81dae;}[_0x91438c(0x3ea)](_0x54af83){const _0x1564aa=_0x91438c;var _0x46112b;const {dataFieldManagerConfig:_0x412da9,pivotTableConfigs:_0x281e46}=_0x54af83;_0x412da9&&Object[_0x1564aa(0x31c)](_0x412da9)[_0x1564aa(0x342)](_0x5528ad=>{const _0x35fac1=_0x1564aa;this[_0x35fac1(0x33c)](_0x5528ad)[_0x35fac1(0x3ea)](_0x412da9[_0x5528ad]);});const _0x2b496c=[];if(_0x281e46){const _0x4f1b3a=(_0x46112b=this[_0x1564aa(0x31d)][_0x1564aa(0x274)](_0x495f63)[_0x1564aa(0x3d4)](_0x5f27fd))!=null?_0x46112b:{},{ls:_0x7280dc,pbk:_0x3df73d}=_0x4f1b3a,_0x44acf5=go(so,_0x7280dc,_0x3df73d)[_0x1564aa(0x39e)];Object['keys'](_0x281e46)[_0x1564aa(0x342)](_0x66b930=>{const _0x38f08f=_0x1564aa;let _0x4c4de4=0x0;const _0x3e1860=_0x281e46[_0x66b930];Object[_0x38f08f(0x31c)](_0x3e1860)['forEach'](_0x2708b1=>{const _0x304ea3=_0x38f08f,_0x5b8bd7=_0x3e1860[_0x2708b1];Object['keys'](_0x5b8bd7)[_0x304ea3(0x342)](_0x54c774=>{const _0x410401=_0x304ea3,_0x4f49f0=_0x5b8bd7[_0x54c774];if(_0x4f49f0){if(_0x4c4de4>=_0x44acf5)return;_0x4c4de4++;const _0x3c3382=this[_0x410401(0x33c)](_0x66b930),_0x2b7887=_0x3c3382[_0x410401(0x391)][_0x54c774],_0x4399e6=_0x2b7887[_0x410401(0x2b9)]();let _0x1c0813=0x0;const _0x724044=[];for(const _0x2edd38 of _0x4399e6){const _0x39a406=_0x2b7887[_0x410401(0x2bd)](_0x2edd38);if(_0x312646(_0x39a406)){const _0x18f451=_0x39a406[_0x410401(0x361)](),_0x46a359=_0x2b7887[_0x410401(0x2bd)](_0x18f451);_0x46a359&&_0x724044[_0x410401(0x3fe)]([_0x39a406,_0x46a359]);continue;}_0x3c3382['refreshDataField'](_0x2edd38,_0x4f49f0['sourceRangeInfo'],_0x1c0813),_0x1c0813++;}_0x724044['forEach'](([_0x17c3f4,_0x1d500c])=>{const _0x1e9ad1=_0x410401;_0x17c3f4[_0x1e9ad1(0x261)](_0x1d500c);});const _0x1a76f6=new _0x33f1c5(_0x2b7887);_0x1a76f6[_0x410401(0x3ea)](_0x4f49f0[_0x410401(0x2c6)]),this[_0x410401(0x1f6)](_0x66b930,_0x2708b1,_0x54c774,_0x1a76f6,_0x4f49f0);const _0x25112f=_0x1a76f6[_0x410401(0x3af)]();_0x2b496c[_0x410401(0x3fe)]({'unitId':_0x66b930,'subUnitId':_0x2708b1,'pivotTableId':_0x54c774,'view':_0x25112f[_0x410401(0x2e3)](),'pivotConfig':_0x4f49f0,'type':J['Add']});const _0xf38627=!!_0x1a76f6[_0x410401(0x3d9)](),_0xc273d4={'view':_0x25112f,'pivotTableId':_0x54c774,'textInfo':this[_0x410401(0x352)](),'isEmpty':_0xf38627,'targetCellInfo':_0x4f49f0['targetCellInfo']};this['updateViewData'](_0xc273d4,!0x1);}});});});}_0x412da9&&Object[_0x1564aa(0x31c)](_0x412da9)[_0x1564aa(0x342)](_0x4ae6fa=>{const _0x150156=_0x1564aa,_0x17b4fb=this[_0x150156(0x33c)](_0x4ae6fa);this[_0x150156(0x2c4)][_0x150156(0x1db)](_0x17b4fb[_0x150156(0x391)]);}),this[_0x1564aa(0x384)]['executeCommand'](Dt['id'],{'batch':_0x2b496c,'collectionConfig':_0x412da9},{'onlyLocal':!0x0});}[_0x91438c(0x262)](){const _0x5ef083=_0x91438c;this[_0x5ef083(0x317)](this[_0x5ef083(0x30a)][_0x5ef083(0x385)]({'toJson':_0x50508a=>JSON[_0x5ef083(0x2ff)](this[_0x5ef083(0x2e3)](_0x50508a)),'parseJson':_0x59a0ea=>{if(!_0x59a0ea)return{};try{return JSON['parse'](_0x59a0ea);}catch{return{};}},'businesses':[_0x102cba['UNIVER_SHEET']],'pluginName':ao,'onLoad':(_0xf724c2,_0x96f940)=>{this['fromJSON'](_0x96f940);},'onUnLoad':_0x13c964=>{const _0x162070=_0x5ef083;this[_0x162070(0x25b)](_0x13c964);}}));}};$=xi([nt(0x0,_0x431452(_0x4efa5c)),nt(0x1,_0x2c885f),nt(0x2,_0x431452(_0x3dbe84)),nt(0x3,_0xa7b251),nt(0x4,_0x431452(_0x500922))],$);const Oi={0x0:{0x0:{'v':_0x91438c(0x3ad),'s':oe}},0x2:{0x1:{'v':'','s':oe},0x2:{'v':'','s':oe},0x3:{'v':_0x91438c(0x42a),'s':oe},0x4:{'v':'','s':oe},0x5:{'v':'','s':oe}},0x3:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x4:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x5:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x6:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x7:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x8:{0x0:{'v':_0x91438c(0x38d),'s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':_0x91438c(0x2c8),'s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0x9:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xa:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xb:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xc:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}},0xd:{0x0:{'v':'','s':oe},0x1:{'v':'','s':w},0x2:{'v':'','s':w},0x3:{'v':'','s':w},0x4:{'v':'','s':w},0x5:{'v':'','s':w}}},Lt={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},jo=(_0x460f56,_0x5a36fb)=>{const _0x39ba65=_0x91438c,_0x32617b=new _0x17d6f8(),_0x1e5bdd=new _0x17d6f8(Oi),{row:_0x1f2b10,col:_0x4dd7a7}=_0x5a36fb;_0x1e5bdd[_0x39ba65(0x27d)]((_0x25e110,_0x1652c1,_0x564cd9)=>{const _0x329e02=_0x39ba65;let _0x331034='';_0x564cd9['v']==='filter'?_0x331034=_0x460f56['filter']:_0x564cd9['v']===_0x329e02(0x38d)?_0x331034=_0x460f56[_0x329e02(0x38d)]:_0x564cd9['v']===_0x329e02(0x42a)?_0x331034=_0x460f56[_0x329e02(0x42a)]:_0x564cd9['v']===_0x329e02(0x2c8)&&(_0x331034=_0x460f56['values']),_0x32617b[_0x329e02(0x1ba)](_0x25e110+_0x1f2b10,_0x1652c1+_0x4dd7a7,{..._0x564cd9,'v':_0x331034});});const _0x4a79cb=_0x4b3148[_0x39ba65(0x1e4)](Lt);return Object[_0x39ba65(0x31c)](Lt)[_0x39ba65(0x342)](_0x560161=>{const _0x1f37b6=_0x39ba65;_0x4a79cb[_0x560161]=Lt[_0x560161]['map'](_0x12f230=>({..._0x12f230,'startRow':_0x12f230['startRow']+_0x1f2b10,'endRow':_0x12f230[_0x1f37b6(0x25c)]+_0x1f2b10,'startColumn':_0x12f230[_0x1f37b6(0x2ee)]+_0x4dd7a7,'endColumn':_0x12f230['endColumn']+_0x4dd7a7}));}),{'matrixCache':_0x32617b,'rangesCache':_0x4a79cb};};function Ai(_0x149571,_0x581605){const _0xd45f3f=_0x91438c;let _0x565aa5='';const _0x15bc1d=this[_0xd45f3f(0x352)]();switch(_0x581605){case _0x553ee1[_0xd45f3f(0x3f4)]:_0x565aa5=_0x15bc1d[_0xd45f3f(0x2de)]+_0x149571;break;case _0x553ee1[_0xd45f3f(0x39e)]:_0x565aa5=_0x15bc1d['sheets-pivot.countName']+_0x149571;break;case _0x553ee1['countNums']:_0x565aa5=_0x15bc1d[_0xd45f3f(0x1fc)]+_0x149571;break;case _0x553ee1['max']:_0x565aa5=_0x15bc1d[_0xd45f3f(0x2fc)]+_0x149571;break;case _0x553ee1[_0xd45f3f(0x337)]:_0x565aa5=_0x15bc1d[_0xd45f3f(0x32c)]+_0x149571;break;case _0x553ee1[_0xd45f3f(0x25a)]:_0x565aa5=_0x15bc1d[_0xd45f3f(0x325)]+_0x149571;break;case _0x553ee1[_0xd45f3f(0x42e)]:_0x565aa5=_0x15bc1d['sheets-pivot.stdDevName']+_0x149571;break;case _0x553ee1['stdDevp']:_0x565aa5=_0x15bc1d[_0xd45f3f(0x3e1)]+_0x149571;break;case _0x553ee1[_0xd45f3f(0x397)]:_0x565aa5=_0x15bc1d['sheets-pivot.sumName']+_0x149571;break;case _0x553ee1[_0xd45f3f(0x1f3)]:_0x565aa5=_0x15bc1d['sheets-pivot.varName']+_0x149571;break;case _0x553ee1[_0xd45f3f(0x3e3)]:_0x565aa5=_0x15bc1d['sheets-pivot.varpName']+_0x149571;break;default:_0x565aa5=_0x149571;break;}return _0x565aa5;}function ki(_0x2b8e29,_0x5ed092,_0x24d990,_0x50884f,_0x14f7ab){const _0x23832e=_0x91438c;var _0x1f7e6f,_0x5ad592,_0x1634fd,_0x5d22c9,_0x47776b;const _0x2f0614=_0x540207(_0x2b8e29,_0x5ed092),{rangesInfo:_0x4e9cbf,areaInfo:_0x5cdbc7,headerMap:_0x57ffdc}=_0x14f7ab;if(!_0x4e9cbf||!_0x5cdbc7||!_0x57ffdc)return;const _0x8d92f6=Object[_0x23832e(0x31c)](_0x4e9cbf)[_0x23832e(0x263)](_0xa5311e=>_0x4e9cbf[_0xa5311e]['some'](_0x1e8355=>_0x459723[_0x23832e(0x3a6)](_0x1e8355,_0x2f0614))),_0x396d27=_0x5cdbc7;let _0x1951f8,_0x3b060d,_0x47735e;if(_0x8d92f6===_0x23832e(0x3fc))_0x1951f8=(_0x1f7e6f=_0x396d27==null?void 0x0:_0x396d27[_0x23832e(0x284)])==null?void 0x0:_0x1f7e6f[_0x2b8e29],_0x3b060d=(_0x5ad592=_0x57ffdc==null?void 0x0:_0x57ffdc[_0x23832e(0x2c9)])==null?void 0x0:_0x5ad592[_0x5ed092],_0x47735e=_0x3b060d==null?void 0x0:_0x3b060d[_0x23832e(0x1cd)];else{if(_0x8d92f6===_0x23832e(0x402))_0x1951f8=(_0x1634fd=_0x396d27==null?void 0x0:_0x396d27[_0x23832e(0x364)])==null?void 0x0:_0x1634fd[_0x5ed092],_0x3b060d=(_0x5d22c9=_0x57ffdc[_0x23832e(0x1d4)])==null?void 0x0:_0x5d22c9[_0x2b8e29+0x1+_0x5ed092-_0x4e9cbf[_0x23832e(0x402)][0x0]['startColumn']],_0x47735e=_0x3b060d==null?void 0x0:_0x3b060d['tableFieldId'];else{if(_0x8d92f6==='cornerRanges')_0x1951f8=(_0x47776b=_0x396d27==null?void 0x0:_0x396d27[_0x23832e(0x35f)])==null?void 0x0:_0x47776b[_0x5ed092],_0x47735e=_0x1951f8==null?void 0x0:_0x1951f8[_0x23832e(0x1cd)];else{if(_0x8d92f6==='pageRanges'){const _0x26dba3=_0x24d990==null?void 0x0:_0x24d990['fi'];_0x26dba3!==void 0x0&&(_0x47735e=_0x50884f[_0x23832e(0x26e)](_0x26dba3));}}}}return{'filterId':_0x47735e,'info':_0x1951f8,'data':_0x24d990,'headerInfo':_0x3b060d};}function Bi(_0x36ca67,_0x10c755,_0x1da9bb){const _0x51b248=_0x91438c,_0x51f555=_0x36ca67['dataFieldsCollection'],_0x360c41=_0x51f555[_0x51b248(0x2b9)](),_0x972aa9=new Set();_0x36ca67[_0x51b248(0x2d7)](_0x54f9d9=>{_0x972aa9['add'](_0x54f9d9['dataFieldId']);});const _0x75d824=_0x360c41[_0x51b248(0x39b)](_0x49b2c0=>{const _0x4f55b7=_0x51b248,_0x5d9fa4=_0x51f555[_0x4f55b7(0x2bd)](_0x49b2c0);return{'checked':_0x972aa9['has'](_0x49b2c0),'dataFieldId':_0x5d9fa4['id'],'id':_0x5d9fa4['id'],'name':_0x51f555[_0x4f55b7(0x3a0)](_0x5d9fa4['id']),'type':_0x5d9fa4[_0x4f55b7(0x2ca)](),'pivotTableId':_0x10c755};}),_0x18acfd=[];_0x36ca67[_0x51b248(0x428)](_0x48ff8c['Row'],_0x1f4779=>{const _0x5d546c=_0x51b248;_0x18acfd[_0x5d546c(0x3fe)]({'dataFieldId':_0x1f4779[_0x5d546c(0x3e8)],'tableFieldId':_0x1f4779['getId'](),'displayName':_0x1f4779[_0x5d546c(0x3a0)]()});});const _0x3516e7=[];_0x36ca67[_0x51b248(0x428)](_0x48ff8c['Column'],_0x14a6a1=>{const _0x43961e=_0x51b248;_0x3516e7['push']({'dataFieldId':_0x14a6a1[_0x43961e(0x3e8)],'tableFieldId':_0x14a6a1[_0x43961e(0x403)](),'displayName':_0x14a6a1[_0x43961e(0x3a0)]()});});const _0xca64ee=[];if(_0x36ca67['iterateFieldByArea'](_0x48ff8c[_0x51b248(0x36d)],_0x212998=>{const _0x53c0f6=_0x51b248;_0xca64ee[_0x53c0f6(0x3fe)]({'dataFieldId':_0x212998['dataFieldId'],'tableFieldId':_0x212998[_0x53c0f6(0x403)](),'displayName':_0x212998[_0x53c0f6(0x3a0)](),'format':_0x212998[_0x53c0f6(0x1e3)](),'subTotalType':_0x212998[_0x53c0f6(0x380)]()});}),_0xca64ee['length']>0x1){const _0x3bef43=_0x36ca67[_0x51b248(0x1c8)]();(_0x36ca67[_0x51b248(0x302)]()?_0x3516e7:_0x18acfd)[_0x51b248(0x310)](_0x3bef43,0x0,{'dataFieldId':'','tableFieldId':_0x51b248(0x2d9),'displayName':_0x51b248(0x1e7)});}const _0x545cfd=[];_0x36ca67['iterateFieldByArea'](_0x48ff8c[_0x51b248(0x41b)],_0x36242a=>{const _0x3eeef8=_0x51b248;_0x545cfd[_0x3eeef8(0x3fe)]({'dataFieldId':_0x36242a['dataFieldId'],'tableFieldId':_0x36242a[_0x3eeef8(0x403)](),'displayName':_0x36242a[_0x3eeef8(0x3a0)]()});});const _0x6666f5=_0x1da9bb[_0x51b248(0x407)];return{'sourceList':_0x75d824,'sourceRange':_0x6666f5,'rowFields':_0x18acfd,'columnFields':_0x3516e7,'valueFields':_0xca64ee,'filterFields':_0x545cfd,'positionInfo':_0x1da9bb[_0x51b248(0x416)]};}function fo(_0x1ef655,_0x858fec,_0x52e134='',_0x299f7e={}){const _0x166a84=_0x91438c,_0x332cc1=_0x1ef655['get'](_0x3aca7e);for(const _0x1b22c5 in _0x858fec)if(Object[_0x166a84(0x3df)][_0x166a84(0x245)][_0x166a84(0x1c7)](_0x858fec,_0x1b22c5)){const _0x551125=_0x52e134?_0x52e134+'.'+_0x1b22c5:_0x1b22c5;typeof _0x858fec[_0x1b22c5]==_0x166a84(0x1f8)&&_0x858fec[_0x1b22c5]!==null&&!Array[_0x166a84(0x237)](_0x858fec[_0x1b22c5])?fo(_0x1ef655,_0x858fec[_0x1b22c5],_0x551125,_0x299f7e):_0x299f7e[_0x551125]=_0x332cc1['t'](_0x551125);}return _0x299f7e;}const Jt=_0x4980ad=>{const _0x314508=_0x91438c;if(!_0x4980ad)return[];const {rowRanges:_0x139695,colRanges:_0x57ebd2,cornerRanges:_0x564ca5,dataRanges:_0x2c30d2,pageRanges:_0x5337e6}=_0x4980ad,_0x509722=[..._0x57ebd2,..._0x139695,..._0x2c30d2,..._0x564ca5][_0x314508(0x3ad)](_0xb27808=>_0xb27808[_0x314508(0x34c)]>=0x0&&_0xb27808[_0x314508(0x2ee)]>=0x0&&_0xb27808[_0x314508(0x25c)]>=0x0&&_0xb27808[_0x314508(0x377)]>=0x0);let _0x3d2b95=Number['MAX_SAFE_INTEGER'],_0x25c336=Number[_0x314508(0x32f)],_0xd6e28e=Number[_0x314508(0x3c4)],_0x263c82=Number['MIN_SAFE_INTEGER'];for(let _0x2ca3de=0x0;_0x2ca3de<_0x509722[_0x314508(0x3e7)];_0x2ca3de++)_0x3d2b95=Math['min'](_0x3d2b95,_0x509722[_0x2ca3de][_0x314508(0x34c)]),_0x25c336=Math[_0x314508(0x3b0)](_0x25c336,_0x509722[_0x2ca3de][_0x314508(0x25c)]),_0xd6e28e=Math[_0x314508(0x337)](_0xd6e28e,_0x509722[_0x2ca3de]['startColumn']),_0x263c82=Math[_0x314508(0x3b0)](_0x263c82,_0x509722[_0x2ca3de][_0x314508(0x377)]);return[..._0x5337e6,{'startRow':_0x3d2b95,'endRow':_0x25c336,'startColumn':_0xd6e28e,'endColumn':_0x263c82}];};function Li(_0x35c33d,_0x1e9923){const _0x3841ef=_0x91438c,_0x4451b0=_0x1e9923[_0x3841ef(0x433)][_0x3841ef(0x3d1)],{pivotTableId:_0x53751d,unitId:_0x28e67b,subUnitId:_0x5cc6ba}=_0x1e9923;if(!_0x4451b0)return;const _0x19695e=_0x35c33d[_0x3841ef(0x274)]($),_0x3c4afa=_0x19695e[_0x3841ef(0x31f)](_0x53751d),_0x2a73a6=_0x19695e[_0x3841ef(0x294)](_0x28e67b,_0x5cc6ba,_0x53751d);if(!_0x3c4afa||!_0x2a73a6)return;const _0x212230=_0x3c4afa[_0x3841ef(0x212)](_0x4451b0[_0x3841ef(0x258)]);if(!(_0x212230!=null&&_0x212230[_0x3841ef(0x3e7)]))return;const _0x52afc6=_0x2a73a6['sourceRangeInfo'],{unitId:_0x11f4e5,subUnitId:_0x5545ad,range:_0x3163a3}=_0x52afc6;let _0x1bcb95=0x0;const _0x17926d=_0x3c4afa[_0x3841ef(0x20c)][_0x3841ef(0x2b9)]()['reduce']((_0x19997f,_0x21dda4)=>{const _0x518b9e=_0x3841ef;var _0x46d1a8;const _0x103ab3=(_0x46d1a8=_0x3c4afa[_0x518b9e(0x3c9)](_0x21dda4))==null?void 0x0:_0x46d1a8[_0x518b9e(0x42c)]();return _0x103ab3&&(_0x19997f[String(_0x1bcb95)]=_0x103ab3),_0x1bcb95++,_0x19997f;},{});return{'indexes':_0x212230,'range':_0x3163a3,'sourceUnitId':_0x11f4e5,'sourceSubUnitId':_0x5545ad,'formatMap':_0x17926d};}function Ko(_0x11b9b3,_0x5b1cdd){const _0x383297=_0x91438c;if(!_0x11b9b3||!_0x5b1cdd)return!0x0;const _0x5eba46=_0x4fd784(Wo,Go),_0x3e9d24=new Function(_0x383297(0x414)+_0x5eba46)()(_0x11b9b3,_0x5b1cdd)[_0x383297(0x339)],_0x31948f=_0x24151f(_0x3e9d24,'sf',Bo);return!((_0x3e9d24==null?void 0x0:_0x3e9d24['rt'])===_0x26ce06[_0x383297(0x209)]&&!_0x31948f);}function go(_0x38b49e,_0x1b3c1d,_0x162992){const _0x4adcbd=_0x91438c,_0x1a8cd8={'count':_0x38b49e,'timeValid':!0x1};if(!_0x1b3c1d||!_0x162992)return _0x1a8cd8;const _0x368290=_0x4fd784(Wo,Go),_0x5be162=new Function(_0x4adcbd(0x414)+_0x368290)()(_0x1b3c1d,_0x162992);if(_0x5be162!=null&&_0x5be162[_0x4adcbd(0x285)]){const _0x723b3d=_0x5be162[_0x4adcbd(0x339)],_0x9320d=_0x24151f(_0x723b3d,'sf',Bo);return{'count':_0x34ec75(_0x723b3d,_0x9320d,_0x4adcbd(0x1ea),_0x38b49e,_0x38b49e,0x0),'timeValid':_0x9320d};}return _0x1a8cd8;}function Ho(_0x2ffda6,_0x5073c3,_0x4cf3e3,_0x2907a0){const _0x3360b3=_0x91438c,_0x26a80c={'subUnitId':_0x4cf3e3,'unitId':_0x5073c3,'cellValue':_0x4261a2(_0x2907a0)},_0x48af3e=_0x328d73(_0x2ffda6,_0x26a80c);let _0x25008c=!0x1;return new _0x17d6f8(_0x48af3e[_0x3360b3(0x234)])[_0x3360b3(0x27d)]((_0x97e931,_0x216b18,_0x5c0d8e)=>{if(!_0x25008c&&_0x5c0d8e&&(_0x5c0d8e['custom']||_0x5c0d8e['f']||_0x5c0d8e['p']||_0x5c0d8e['s']||_0x5c0d8e['si']||_0x5c0d8e['t']||_0x5c0d8e['v']))return _0x25008c=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x24ac46['id'],'params':_0x48af3e},'setRangeValueRedoMutation':{'id':_0x24ac46['id'],'params':_0x26a80c},'shouldClear':_0x25008c};}function Ji(_0x5f0e22){const {row:_0x281667,col:_0x58bd19}=_0x5f0e22,_0x2ae40a={'startRow':_0x281667,'endRow':_0x281667,'startColumn':_0x58bd19,'endColumn':_0x58bd19},_0xf197ed={'startRow':_0x281667+0x2,'endRow':_0x281667+0xe,'startColumn':_0x58bd19,'endColumn':_0x58bd19+0x6};return[_0x2ae40a,_0xf197ed];}function $i(_0xabdfc,_0x796ef7,_0x31354a){const _0x3fe4b5=_0x91438c,{cornerView:_0x2b8ece,rowView:_0x93df0c,colView:_0x5fe1e1,pageView:_0x50d181}=_0xabdfc,{row:_0x1f8b71,col:_0x33c5cd}=_0x796ef7;if(_0x31354a)return{'rowCount':bi+_0x1f8b71,'colCount':Si+_0x33c5cd};const _0x274f41=_0x50d181['lastRow']>-0x1?_0x50d181[_0x3fe4b5(0x2be)]+0x1:0x0,_0x3bc07a=_0x50d181[_0x3fe4b5(0x345)]>-0x1?_0x50d181[_0x3fe4b5(0x345)]:0x0,_0x27c39c=_0x1f8b71+_0x274f41+(_0x274f41?0x1:0x0)+_0x2b8ece[_0x3fe4b5(0x3ee)]+_0x93df0c[_0x3fe4b5(0x3ee)],_0x27340f=_0x33c5cd+_0x3bc07a,_0x3ba86a=_0x33c5cd+_0x2b8ece['colCount']+_0x5fe1e1[_0x3fe4b5(0x36c)],_0x30eb81=Math[_0x3fe4b5(0x3b0)](_0x27340f,_0x3ba86a);return{'rowCount':_0x27c39c,'colCount':_0x30eb81};}function Fe(_0x150afa,_0x17c5f0,_0x303564,_0x1542c0){const _0x2b4810=_0x91438c,{row:_0x2aacf1,col:_0x3cf08a,unitId:_0x56cd59,subUnitId:_0x44bb52}=_0x303564,_0x1aaef0=$i(_0x17c5f0,{'row':_0x2aacf1,'col':_0x3cf08a},_0x1542c0),_0xdcd3d6=_0x150afa[_0x2b4810(0x274)](_0x2c885f),_0x56897d=_0x1a5e6f(_0xdcd3d6,{'unitId':_0x56cd59,'subUnitId':_0x44bb52}),_0x1808ca=[],_0x43b304=[];if(!_0x56897d)return{'undos':_0x43b304,'redos':_0x1808ca};const {worksheet:_0x373142}=_0x56897d,_0x5bff6d=_0x373142[_0x2b4810(0x1ce)](),_0x58f7f3=_0x373142['getColumnCount']();return _0x5bff6d<_0x1aaef0[_0x2b4810(0x3ee)]&&(_0x1808ca[_0x2b4810(0x3fe)]({'id':_0x1b1105['id'],'params':{'unitId':_0x56cd59,'subUnitId':_0x44bb52,'range':{'startRow':_0x5bff6d,'endRow':_0x1aaef0[_0x2b4810(0x3ee)]-0x1,'startColumn':0x0,'endColumn':_0x58f7f3-0x1}}}),_0x43b304[_0x2b4810(0x3fe)]({'id':_0x129cc2['id'],'params':{'unitId':_0x56cd59,'subUnitId':_0x44bb52,'range':{'startRow':_0x5bff6d,'endRow':_0x1aaef0['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x58f7f3-0x1}}})),_0x58f7f3<_0x1aaef0['colCount']&&(_0x1808ca[_0x2b4810(0x3fe)]({'id':_0xfcf79b['id'],'params':{'unitId':_0x56cd59,'subUnitId':_0x44bb52,'range':{'startRow':0x0,'endRow':_0x5bff6d-0x1,'startColumn':_0x58f7f3,'endColumn':_0x1aaef0[_0x2b4810(0x36c)]-0x1}}}),_0x43b304[_0x2b4810(0x3fe)]({'id':_0x2d40d['id'],'params':{'unitId':_0x56cd59,'subUnitId':_0x44bb52,'range':{'startRow':0x0,'endRow':_0x5bff6d-0x1,'startColumn':_0x58f7f3,'endColumn':_0x1aaef0['colCount']-0x1}}})),{'undos':_0x43b304,'redos':_0x1808ca};}function Xi(_0x1a765b){const _0x10fed7=_0x91438c;let _0x59f77d=0x0;for(let _0x50f739=0x0;_0x50f739<_0x1a765b[_0x10fed7(0x3e7)];_0x50f739++){const _0x5c1ab7=_0x1a765b[_0x10fed7(0x2f2)](_0x50f739);_0x5c1ab7>=0x4e00&&_0x5c1ab7<=0x9fff||_0x5c1ab7>=0x3000&&_0x5c1ab7<=0x303f||_0x5c1ab7>=0xff00&&_0x5c1ab7<=0xffef?_0x59f77d+=0x2:_0x59f77d+=0x1;}return _0x59f77d;}function To(_0x5e84bb,_0x14160f,_0x49d734,_0x986d6d){const _0x229c1f=_0x91438c;var _0x2e5cdb,_0x2724a8,_0x2cd51a,_0x1aa7ff;const {rowCount:_0x49d88f,colCount:_0x4e1d07,headerMap:_0x486829}=_0x5e84bb,_0x35cd3f=0x64,_0x4c8883=Math[_0x229c1f(0x337)](_0x49d88f,_0x35cd3f),_0x1181a4=Math[_0x229c1f(0x337)](_0x4e1d07,_0x35cd3f);let _0x270712='',_0x20abdf=0x0;for(let _0x6a6dfb=0x0;_0x6a6dfb<_0x4c8883;_0x6a6dfb++)for(let _0x30c7ad=0x0;_0x30c7ad<_0x1181a4;_0x30c7ad++){const _0x567607={...(_0x2724a8=(_0x2e5cdb=_0x5e84bb['data'])==null?void 0x0:_0x2e5cdb[_0x6a6dfb])==null?void 0x0:_0x2724a8[_0x30c7ad]},_0x36ff8e=(_0x2cd51a=_0x486829[_0x6a6dfb])==null?void 0x0:_0x2cd51a[_0x229c1f(0x1cd)],_0x4c2cf3=_0x986d6d[_0x36ff8e];let _0x367407=_0x5e84bb[_0x229c1f(0x344)](_0x6a6dfb,_0x30c7ad);if(_0x567607){const _0x247933=_0x49d734?_0x30c7ad===0x0&&((_0x1aa7ff=_0x5e84bb['getHeaderMapItem'](_0x30c7ad+0x1))==null?void 0x0:_0x1aa7ff[_0x229c1f(0x292)]):!0x1;_0x367407=ht(_0x567607,_0x247933,_0x4c2cf3,_0x14160f);}if(_0x367407!==void 0x0){const _0x3dcb55=Xi(String(_0x367407));_0x20abdf<_0x3dcb55&&(_0x270712=String(_0x367407),_0x20abdf=_0x3dcb55);}}return _0x270712;}function Gi(_0x3cd544){const _0x386525=_0x91438c,{rowCount:_0x5ea7ea,colCount:_0x496ffc}=_0x3cd544;let _0x1d76e5='',_0x3ad708=0x0;for(let _0x24795f=_0x5ea7ea-0x1;_0x24795f>0x0&&_0x24795f>_0x5ea7ea-0x3;_0x24795f--)for(let _0x76ebaa=0x0;_0x76ebaa<_0x496ffc;_0x76ebaa++){const _0x338707=_0x3cd544[_0x386525(0x344)](_0x24795f,_0x76ebaa);if(_0x338707!==void 0x0){const _0x3a1ab3=String(_0x338707)[_0x386525(0x3e7)];_0x3ad708<_0x3a1ab3&&(_0x1d76e5=String(_0x338707),_0x3ad708=_0x3a1ab3);}}return _0x1d76e5;}function Wi(_0x108184){const _0x4c85c0=_0x91438c,{rowCount:_0x15c894,colCount:_0x4cf84c}=_0x108184;let _0x17088e='',_0x12f92f=0x0;for(let _0x48d4bb=0x0;_0x48d4bb<_0x15c894;_0x48d4bb++)for(let _0x49d7e6=0x0;_0x49d7e6<_0x4cf84c;_0x49d7e6++){const _0x41bfbe=_0x108184[_0x4c85c0(0x344)](_0x48d4bb,_0x49d7e6);if(_0x41bfbe!==void 0x0){const _0x1c5b3d=String(_0x41bfbe)[_0x4c85c0(0x3e7)];_0x12f92f<_0x1c5b3d&&(_0x17088e=String(_0x41bfbe),_0x12f92f=_0x1c5b3d);}}return _0x17088e;}function ji(_0xb1d5cf,_0x2786a1){const _0x3ab27c=_0x91438c,{rowFields:_0xe8c147,columnFields:_0x93f4c2,valueFields:_0x1b9598,filterFields:_0x4946c9,dimension:_0x2ae734,measure:_0x5e4ca1}=_0x2786a1;for(const _0x410997 of _0xe8c147){const _0xefd303=_0x2ae734[_0x410997];_0xefd303&&_0xb1d5cf['getDataFieldByDataFieldId'](_0xefd303[_0x3ab27c(0x3e8)])&&(_0xb1d5cf[_0x3ab27c(0x323)](_0xefd303['dataFieldId'],_0x48ff8c[_0x3ab27c(0x34a)],void 0x0,_0x410997),_0xefd303[_0x3ab27c(0x240)]&&_0xb1d5cf[_0x3ab27c(0x21a)](_0xefd303['id'],_0xefd303[_0x3ab27c(0x240)]),_0xefd303[_0x3ab27c(0x2bf)]&&_0xb1d5cf['setSortInfo'](_0xefd303['id'],_0xefd303[_0x3ab27c(0x2bf)]),_0xefd303[_0x3ab27c(0x320)]&&_0xb1d5cf['setLabelFilterInfo'](_0xefd303['id'],_0xefd303[_0x3ab27c(0x320)]));}for(const _0xf1e365 of _0x93f4c2){const _0xdd15c5=_0x2ae734[_0xf1e365];_0xdd15c5&&_0xb1d5cf['getDataFieldByDataFieldId'](_0xdd15c5[_0x3ab27c(0x3e8)])&&(_0xb1d5cf[_0x3ab27c(0x323)](_0xdd15c5[_0x3ab27c(0x3e8)],_0x48ff8c[_0x3ab27c(0x41d)],void 0x0,_0xf1e365),_0xdd15c5[_0x3ab27c(0x2bf)]&&_0xb1d5cf[_0x3ab27c(0x1d5)](_0xdd15c5['id'],_0xdd15c5[_0x3ab27c(0x2bf)]),_0xdd15c5['filterInfo']&&_0xb1d5cf[_0x3ab27c(0x3be)](_0xdd15c5['id'],_0xdd15c5[_0x3ab27c(0x320)]),_0xdd15c5[_0x3ab27c(0x240)]&&_0xb1d5cf[_0x3ab27c(0x21a)](_0xdd15c5['id'],_0xdd15c5[_0x3ab27c(0x240)]));}for(const _0x1b7437 of _0x4946c9){const _0x4f3bf1=_0x2ae734[_0x1b7437];_0x4f3bf1&&_0xb1d5cf[_0x3ab27c(0x3c9)](_0x4f3bf1[_0x3ab27c(0x3e8)])&&(_0xb1d5cf[_0x3ab27c(0x323)](_0x4f3bf1['dataFieldId'],_0x48ff8c[_0x3ab27c(0x41b)],void 0x0,_0x1b7437),_0x4f3bf1[_0x3ab27c(0x2bf)]&&_0xb1d5cf['setSortInfo'](_0x4f3bf1['id'],_0x4f3bf1[_0x3ab27c(0x2bf)]),_0x4f3bf1['filterInfo']&&_0xb1d5cf[_0x3ab27c(0x3be)](_0x4f3bf1['id'],_0x4f3bf1[_0x3ab27c(0x320)]),_0x4f3bf1[_0x3ab27c(0x240)]&&_0xb1d5cf['renameField'](_0x4f3bf1['id'],_0x4f3bf1[_0x3ab27c(0x240)]));}for(const _0x1cbd19 of _0x1b9598){const _0x1d6672=_0x5e4ca1[_0x1cbd19];_0x1d6672&&_0xb1d5cf[_0x3ab27c(0x3c9)](_0x1d6672[_0x3ab27c(0x3e8)])&&(_0xb1d5cf[_0x3ab27c(0x323)](_0x1d6672[_0x3ab27c(0x3e8)],_0x48ff8c[_0x3ab27c(0x36d)],void 0x0,_0x1cbd19),_0x1d6672[_0x3ab27c(0x28c)]!==void 0x0&&_0xb1d5cf[_0x3ab27c(0x241)](_0x1cbd19,_0x1d6672['subtotal']),_0x1d6672[_0x3ab27c(0x425)]&&_0xb1d5cf[_0x3ab27c(0x411)](_0x1cbd19,_0x1d6672[_0x3ab27c(0x425)]),_0x1d6672['displayName']&&_0xb1d5cf[_0x3ab27c(0x21a)](_0x1d6672['id'],_0x1d6672[_0x3ab27c(0x240)]));}const _0xb29db5=_0x2786a1[_0x3ab27c(0x424)];for(const {fieldId:_0x313930,filterInfo:_0x1f17bf}of _0xb29db5)_0xb1d5cf[_0x3ab27c(0x306)](_0x313930,_0x1f17bf);}function Ki(_0x27e632,_0x2c1475){const _0x22e71d=_0x91438c,_0x4b12a4=[];_0x2c1475===_0x48ff8c['Row']&&_0x27e632['iterateFieldByArea'](_0x48ff8c[_0x22e71d(0x34a)],_0x2ac127=>{const _0x171e0c=_0x22e71d;_0x4b12a4['push'](_0x2ac127[_0x171e0c(0x403)]());}),_0x2c1475===_0x48ff8c[_0x22e71d(0x41d)]&&_0x27e632['iterateFieldByArea'](_0x48ff8c[_0x22e71d(0x41d)],_0x58e3df=>{const _0x22afb4=_0x22e71d;_0x4b12a4[_0x22afb4(0x3fe)](_0x58e3df[_0x22afb4(0x403)]());}),_0x2c1475===_0x48ff8c[_0x22e71d(0x41b)]&&_0x27e632['iterateFieldByArea'](_0x48ff8c[_0x22e71d(0x41b)],_0x124529=>{_0x4b12a4['push'](_0x124529['getId']());}),_0x2c1475===_0x48ff8c[_0x22e71d(0x36d)]&&_0x27e632[_0x22e71d(0x428)](_0x48ff8c[_0x22e71d(0x36d)],_0x31ca49=>{const _0x4da13a=_0x22e71d;_0x4b12a4[_0x4da13a(0x3fe)](_0x31ca49['getId']());}),_0x2c1475===void 0x0&&_0x27e632['iterateField'](_0x385ecc=>{const _0x45c090=_0x22e71d;_0x4b12a4['push'](_0x385ecc[_0x45c090(0x403)]());});const _0x349029=_0x4b12a4['length'];for(let _0x1fdd5f=_0x349029-0x1;_0x1fdd5f>=0x0;_0x1fdd5f--)_0x27e632[_0x22e71d(0x319)](_0x4b12a4[_0x1fdd5f]);const _0x2a5faa=_0x27e632[_0x22e71d(0x40f)]();for(const _0xed5c5a in _0x2a5faa)_0x27e632[_0x22e71d(0x39a)](_0xed5c5a);}function Hi(_0x6b65c0,_0x40b929){const _0x2b2d46=_0x91438c,_0x53ca79=new Date(_0x885df7(_0x40b929)),_0xf17cd5=new Date(_0x885df7(_0x6b65c0)),_0x214303=_0x53ca79[_0x2b2d46(0x38e)](),_0x200b69=_0xf17cd5[_0x2b2d46(0x38e)](),_0x1ff49b=_0x53ca79['getMonth'](),_0x5ea802=_0xf17cd5[_0x2b2d46(0x3b9)](),_0x57ef01=_0x53ca79[_0x2b2d46(0x25d)](),_0x574bce=_0xf17cd5[_0x2b2d46(0x25d)](),_0x1a91c2=_0x214303===_0x200b69,_0x3ba43b=_0x1a91c2&&_0x1ff49b===_0x5ea802;return _0x1a91c2&&_0x3ba43b&&!(_0x3ba43b&&_0x57ef01===_0x574bce)?_0x24d87f[_0x2b2d46(0x1bd)]:_0x1a91c2&&!_0x3ba43b?_0x24d87f['YearMonth']:_0x24d87f[_0x2b2d46(0x2c1)];}function qo(_0x5c902c,_0x1003de){const _0x38dd60=_0x91438c,_0x54ea81=_0x5c902c[_0x38dd60(0x274)]($)['getTextInfo']();let _0x866aef='';switch(_0x1003de){case _0x24d87f['YearMonthDate']:_0x866aef=_0x54ea81[_0x38dd60(0x24a)];break;case _0x24d87f[_0x38dd60(0x346)]:_0x866aef=_0x54ea81[_0x38dd60(0x21f)];break;case _0x24d87f[_0x38dd60(0x2c1)]:_0x866aef=_0x54ea81['sheets-pivot.dateGroup.year'];break;case _0x24d87f[_0x38dd60(0x2a6)]:_0x866aef=_0x54ea81[_0x38dd60(0x1b9)];break;case _0x24d87f[_0x38dd60(0x25e)]:_0x866aef=_0x54ea81[_0x38dd60(0x340)];break;case _0x24d87f[_0x38dd60(0x24c)]:_0x866aef=_0x54ea81['sheets-pivot.dateGroup.date'];break;case _0x24d87f[_0x38dd60(0x29f)]:_0x866aef=_0x54ea81[_0x38dd60(0x415)];break;case _0x24d87f[_0x38dd60(0x1d1)]:_0x866aef=_0x54ea81[_0x38dd60(0x31b)];break;case _0x24d87f[_0x38dd60(0x2d1)]:_0x866aef=_0x54ea81[_0x38dd60(0x1ec)];break;case _0x24d87f[_0x38dd60(0x2a2)]:_0x866aef=_0x54ea81[_0x38dd60(0x3a9)];break;case _0x24d87f[_0x38dd60(0x2e9)]:_0x866aef=_0x54ea81[_0x38dd60(0x215)];break;default:_0x866aef='';break;}return _0x866aef;}const Yo=_0x91438c(0x37a),Mo={};var qi=Object[_0x91438c(0x26b)],Yi=(_0x20d7e4,_0x130737,_0x5f2120,_0x58b26f)=>{for(var _0xa67795=_0x58b26f>0x1?void 0x0:_0x58b26f?qi(_0x130737,_0x5f2120):_0x130737,_0xa8b644=_0x20d7e4['length']-0x1,_0x22278a;_0xa8b644>=0x0;_0xa8b644--)(_0x22278a=_0x20d7e4[_0xa8b644])&&(_0xa67795=_0x22278a(_0xa67795)||_0xa67795);return _0xa67795;},it=(_0x5dcbb6,_0x19901f)=>(_0x434620,_0x190f14)=>_0x19901f(_0x434620,_0x190f14,_0x5dcbb6);let he=class extends _0x5353ba{constructor(_0xe6f8b5,_0x283126,_0x19c816,_0x5ed1aa,_0x37b4e0){const _0x427dfa=_0x91438c;super(),N(this,_0x427dfa(0x27e),new Map()),N(this,'_collectionConfigModel',new Map()),N(this,_0x427dfa(0x296),new Map()),N(this,_0x427dfa(0x370),new Map()),N(this,_0x427dfa(0x3ca),new _0x4aede8()),N(this,_0x427dfa(0x289),new _0x4aede8()),N(this,_0x427dfa(0x2db),this['_pivotInitCompleted$'][_0x427dfa(0x32a)]()),N(this,_0x427dfa(0x34b),new _0x4aede8()),N(this,'pivotConfigChange$',this['_pivotConfigChange$'][_0x427dfa(0x32a)]()),N(this,_0x427dfa(0x365),{}),N(this,_0x427dfa(0x20e),this[_0x427dfa(0x3ca)][_0x427dfa(0x32a)]()),(this[_0x427dfa(0x31d)]=_0xe6f8b5,this[_0x427dfa(0x384)]=_0x283126,this[_0x427dfa(0x22e)]=_0x19c816,this[_0x427dfa(0x30a)]=_0x5ed1aa,this[_0x427dfa(0x3b8)]=_0x37b4e0,this[_0x427dfa(0x3a5)](),this[_0x427dfa(0x3d6)]());const _0x557752=this[_0x427dfa(0x3b8)][_0x427dfa(0x3d4)](Yo);(_0x557752==null?void 0x0:_0x557752[_0x427dfa(0x276)])===!0x0&&this[_0x427dfa(0x262)]();}[_0x91438c(0x3d6)](){const _0xde7c36=_0x91438c;this[_0xde7c36(0x317)](this[_0xde7c36(0x22e)][_0xde7c36(0x2aa)](_0x102cba[_0xde7c36(0x297)])[_0xde7c36(0x2d6)](_0x11712a=>{this['deleteUnitId'](_0x11712a['getUnitId']());}));}[_0x91438c(0x40c)](){const _0xe23506=_0x91438c;this[_0xe23506(0x289)]['next'](!0x0);}[_0x91438c(0x3a5)](){const _0x5be518=_0x91438c,_0xedc9b=fo(this['_injector'],Jo,'',{});this['_textInfo']=_0xedc9b,this[_0x5be518(0x384)]['executeCommand'](uo['id'],{'textInfo':_0xedc9b},{'onlyLocal':!0x0});}[_0x91438c(0x352)](){const _0x22f93a=_0x91438c;return this[_0x22f93a(0x365)];}[_0x91438c(0x221)](_0x1f5c19,_0x36251a,_0x551570,_0x3fdc70,_0xa3d416){const _0xd2c05=_0x91438c;this[_0xd2c05(0x1df)](_0x1f5c19,_0x36251a,_0x551570,_0x3fdc70),this['updatePivotTableRangeInfo'](_0x1f5c19,_0x36251a,_0x551570,_0xa3d416);}[_0x91438c(0x294)](_0x4225de,_0x487ae3,_0x1f47ad){const _0x388637=_0x91438c;var _0x5d08a6;const _0x4b0fc0=(_0x5d08a6=this['_model'][_0x388637(0x274)](_0x4225de))==null?void 0x0:_0x5d08a6[_0x388637(0x274)](_0x487ae3);if(_0x4b0fc0)return _0x4b0fc0['get'](_0x1f47ad);}[_0x91438c(0x366)](_0x334a62,_0x211602){const _0x5054ce=_0x91438c,_0x392ab5=this['_model'][_0x5054ce(0x274)](_0x334a62);if(_0x392ab5){for(const [_0x155421,_0x216f61]of _0x392ab5['entries']())for(const [_0x2b885f,_0x4613b1]of _0x216f61['entries']())if(_0x2b885f===_0x211602)return _0x4613b1[_0x5054ce(0x416)];}}[_0x91438c(0x2ba)](_0x36ac37,_0x3b1b88,_0x25d37d){const _0x3bacc5=_0x91438c,_0x5e5543=this['getPivotTableConfig'](_0x36ac37,_0x3b1b88,_0x25d37d);return _0x5e5543==null?void 0x0:_0x5e5543[_0x3bacc5(0x416)];}[_0x91438c(0x239)](_0x160a3d,_0xeedff5){const _0x5dbfd5=_0x91438c;var _0x1ddf32;return(_0x1ddf32=this[_0x5dbfd5(0x27e)]['get'](_0x160a3d))==null?void 0x0:_0x1ddf32[_0x5dbfd5(0x274)](_0xeedff5);}[_0x91438c(0x291)](_0x121514,_0x47e40e,_0x12a1f7,_0xee1817){const _0x292b24=_0x91438c,_0xce9987=this[_0x292b24(0x330)](_0x121514,_0x47e40e);_0xee1817?_0xce9987[_0x292b24(0x3bc)](_0x12a1f7,_0xee1817):_0xce9987[_0x292b24(0x21e)](_0x12a1f7),this[_0x292b24(0x34b)][_0x292b24(0x1db)]({'unitId':_0x121514,'subUnitId':_0x47e40e,'pivotTableId':_0x12a1f7,'pivotTableConfig':_0xee1817});}[_0x91438c(0x232)](_0xd12c87,_0xe9090e){const _0x182499=_0x91438c;var _0x4f8d46;return(_0x4f8d46=this[_0x182499(0x3eb)]['get'](_0xd12c87))==null?void 0x0:_0x4f8d46[_0x182499(0x391)][_0xe9090e];}[_0x91438c(0x2c3)](_0xe75a51,_0x2422aa){const _0x362a48=_0x91438c;this[_0x362a48(0x3eb)][_0x362a48(0x3bc)](_0xe75a51,_0x2422aa),this[_0x362a48(0x3ca)][_0x362a48(0x1db)](Math[_0x362a48(0x3d8)]());}['_ensurePivotMap'](_0xef347,_0x5da2c2){const _0x405a34=_0x91438c;let _0x45a5af=this[_0x405a34(0x27e)][_0x405a34(0x274)](_0xef347);_0x45a5af||(_0x45a5af=new Map(),this[_0x405a34(0x27e)]['set'](_0xef347,_0x45a5af));let _0x436d38=_0x45a5af[_0x405a34(0x274)](_0x5da2c2);return _0x436d38||(_0x436d38=new Map(),_0x45a5af[_0x405a34(0x3bc)](_0x5da2c2,_0x436d38)),_0x436d38;}[_0x91438c(0x1e8)](_0x4f2003,_0xabc47e){const _0x49509c=_0x91438c;let _0x4d1250=this[_0x49509c(0x296)][_0x49509c(0x274)](_0x4f2003);_0x4d1250||(_0x4d1250=new Map(),this[_0x49509c(0x296)]['set'](_0x4f2003,_0x4d1250));let _0x5f5b28=_0x4d1250[_0x49509c(0x274)](_0xabc47e);return _0x5f5b28||(_0x5f5b28=new Map(),_0x4d1250[_0x49509c(0x3bc)](_0xabc47e,_0x5f5b28)),_0x5f5b28;}[_0x91438c(0x218)](_0x591aa8,_0x45aac9){const _0x4b8cc9=_0x91438c;let _0x47bb69=this[_0x4b8cc9(0x370)][_0x4b8cc9(0x274)](_0x591aa8);_0x47bb69||(_0x47bb69=new Map(),this[_0x4b8cc9(0x370)][_0x4b8cc9(0x3bc)](_0x591aa8,_0x47bb69));let _0x3fbd17=_0x47bb69[_0x4b8cc9(0x274)](_0x45aac9);return _0x3fbd17||(_0x3fbd17=new Map(),_0x47bb69[_0x4b8cc9(0x3bc)](_0x45aac9,_0x3fbd17)),_0x3fbd17;}[_0x91438c(0x32b)](_0x5a34d3,_0x58f886,_0x294918,_0x2aad34){var _0x11e191;const _0x115ef1=this['_ensurePivotTableRangeInfo'](_0x5a34d3,_0x58f886),_0x417c41=(_0x11e191=_0x115ef1['get'](_0x294918))==null?void 0x0:_0x11e191['oldRangeInfo'];_0x115ef1['set'](_0x294918,{'oldRangeInfo':_0x417c41,'rangeInfo':_0x2aad34});}[_0x91438c(0x1df)](_0x4e105c,_0x19fec7,_0x4935d4,_0x5fdbcf){const _0x51e5ac=_0x91438c;var _0x1ce69b;const _0x577dd0=this[_0x51e5ac(0x218)](_0x4e105c,_0x19fec7),_0x137473=(_0x1ce69b=_0x577dd0[_0x51e5ac(0x274)](_0x4935d4))==null?void 0x0:_0x1ce69b[_0x51e5ac(0x1f4)];_0x577dd0[_0x51e5ac(0x3bc)](_0x4935d4,{'oldMatrix':_0x137473,'matrix':_0x5fdbcf});}[_0x91438c(0x3d0)](_0x3be9f0,_0x2b1f97,_0x3f0a05){const _0x4642a7=_0x91438c;var _0x34e531,_0x5937aa;return(_0x5937aa=(_0x34e531=this['_pivotTableRangeInfo'][_0x4642a7(0x274)](_0x3be9f0))==null?void 0x0:_0x34e531[_0x4642a7(0x274)](_0x2b1f97))==null?void 0x0:_0x5937aa[_0x4642a7(0x274)](_0x3f0a05);}[_0x91438c(0x3f0)](_0xc5ed2e,_0x153db4,_0x4a2051){const _0x214879=_0x91438c;var _0x22eebb,_0x56ffca;return(_0x56ffca=(_0x22eebb=this['_pivotTableMatrixInfo'][_0x214879(0x274)](_0xc5ed2e))==null?void 0x0:_0x22eebb[_0x214879(0x274)](_0x153db4))==null?void 0x0:_0x56ffca[_0x214879(0x274)](_0x4a2051);}[_0x91438c(0x25b)](_0x539b3a){const _0x1b4b5b=_0x91438c;this['_model'][_0x1b4b5b(0x21e)](_0x539b3a),this[_0x1b4b5b(0x3eb)][_0x1b4b5b(0x21e)](_0x539b3a);}[_0x91438c(0x20f)](_0x32dff2){const _0x205029=_0x91438c,_0x3016c4={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x205029(0x3eb)][_0x205029(0x274)](_0x32dff2)&&(_0x3016c4[_0x205029(0x3d5)][_0x32dff2]=this[_0x205029(0x3eb)][_0x205029(0x274)](_0x32dff2)),this[_0x205029(0x27e)][_0x205029(0x274)](_0x32dff2)){_0x3016c4[_0x205029(0x307)][_0x32dff2]={};const _0x42ce9f=this[_0x205029(0x27e)][_0x205029(0x274)](_0x32dff2);_0x42ce9f!=null&&_0x42ce9f['size']&&[..._0x42ce9f[_0x205029(0x31c)]()][_0x205029(0x342)](_0x1ee80a=>{const _0x5095fa=_0x205029,_0x32cd04=_0x42ce9f[_0x5095fa(0x274)](_0x1ee80a);_0x32cd04!=null&&_0x32cd04['size']&&(_0x3016c4[_0x5095fa(0x307)][_0x32dff2][_0x1ee80a]={},[..._0x32cd04[_0x5095fa(0x31c)]()][_0x5095fa(0x342)](_0x499c7b=>{const _0x31c3a5=_0x5095fa,_0x4df37e=_0x32cd04[_0x31c3a5(0x274)](_0x499c7b);_0x4df37e&&(_0x3016c4[_0x31c3a5(0x307)][_0x32dff2][_0x1ee80a][_0x499c7b]=_0x4df37e);}));});}return _0x3016c4;}[_0x91438c(0x262)](){const _0x41c1e4=_0x91438c;this[_0x41c1e4(0x317)](this[_0x41c1e4(0x30a)][_0x41c1e4(0x385)]({'toJson':_0x1213ff=>JSON['stringify'](this[_0x41c1e4(0x20f)](_0x1213ff)),'parseJson':_0x1826b0=>({}),'businesses':[_0x102cba['UNIVER_SHEET']],'pluginName':ao,'onLoad':(_0x123891,_0x143a2e)=>{},'onUnLoad':_0x20319c=>{const _0x427a0c=_0x41c1e4;this[_0x427a0c(0x25b)](_0x20319c);}}));}};he=Yi([it(0x0,_0x431452(_0x4efa5c)),it(0x1,_0x431452(_0xa7b251)),it(0x2,_0x431452(_0x2c885f)),it(0x3,_0x431452(_0x500922)),it(0x4,_0x431452(_0x495f63))],he);var Zi=Object[_0x91438c(0x26b)],zi=(_0x1fea1e,_0x3aafb8,_0x5d5ea2,_0x28ffd7)=>{const _0x5b4a94=_0x91438c;for(var _0x2e2953=_0x28ffd7>0x1?void 0x0:_0x28ffd7?Zi(_0x3aafb8,_0x5d5ea2):_0x3aafb8,_0x37ae62=_0x1fea1e[_0x5b4a94(0x3e7)]-0x1,_0x19f781;_0x37ae62>=0x0;_0x37ae62--)(_0x19f781=_0x1fea1e[_0x37ae62])&&(_0x2e2953=_0x19f781(_0x2e2953)||_0x2e2953);return _0x2e2953;},st=(_0x4370d9,_0x904415)=>(_0x1de982,_0xd83777)=>_0x904415(_0x1de982,_0xd83777,_0x4370d9);let Ve=class extends _0x5353ba{constructor(_0x2bf4a4,_0xfb8989,_0x5c4105,_0xd8c254,_0x42a6de){const _0x5dac89=_0x91438c;super(),N(this,'_pivotRenderInfoCache',new Map()),N(this,_0x5dac89(0x2e0),new Map()),N(this,_0x5dac89(0x3f9),new _0x4aede8()),N(this,'markDirty$',this[_0x5dac89(0x3f9)][_0x5dac89(0x32a)]()),N(this,'_viewUpdate$',new _0x4aede8()),N(this,'viewUpdate$',this['_viewUpdate$']['asObservable']()),N(this,_0x5dac89(0x365)),(this['_localeService']=_0x2bf4a4,this[_0x5dac89(0x31d)]=_0xfb8989,this['_sheetsPivotTableConfigModel']=_0x5c4105,this['_univerInstanceService']=_0xd8c254,this[_0x5dac89(0x418)]=_0x42a6de,this[_0x5dac89(0x3a5)](),this[_0x5dac89(0x3d6)]());}[_0x91438c(0x3d6)](){const _0x2381f6=_0x91438c;this[_0x2381f6(0x317)](this[_0x2381f6(0x22e)][_0x2381f6(0x2aa)](_0x102cba[_0x2381f6(0x297)])['subscribe'](_0x432e47=>{const _0x4e14ae=_0x2381f6;this[_0x4e14ae(0x25b)](_0x432e47['getUnitId']());}));}[_0x91438c(0x3a5)](){const _0xc164b2=_0x91438c;this[_0xc164b2(0x365)]=fo(this[_0xc164b2(0x31d)],Jo,'',{});}[_0x91438c(0x22c)](_0x12e0b9){const _0x4e4166=_0x91438c,{view:_0x35dd28,unitId:_0x4c2d59,subUnitId:_0x21c5b1,pivotTableId:_0x385656,type:_0x51a309}=_0x12e0b9,_0x369a45=this[_0x4e4166(0x1bc)][_0x4e4166(0x294)](_0x4c2d59,_0x21c5b1,_0x385656);if(!_0x35dd28||!_0x369a45||_0x51a309===J[_0x4e4166(0x354)])return;const {pageView:_0x8c347b,cornerView:_0x228bf0,rowView:_0x258a69,colView:_0x2e825f,dataView:_0x1c71d0}=_0x35dd28,_0x4d602f=_0x369a45[_0x4e4166(0x416)],_0x207449=_0x369a45[_0x4e4166(0x3d9)],_0x46583a=this[_0x4e4166(0x1e9)](_0x4c2d59,_0x21c5b1),_0x33f3f4=this[_0x4e4166(0x3fb)](_0x4c2d59,_0x21c5b1,_0x385656);if(_0x207449)return this[_0x4e4166(0x29b)](_0x12e0b9,_0x46583a,_0x4d602f,_0x33f3f4);{const _0x557397=ge(_0x4d602f,_0x8c347b,!0x0),_0x2ec716=_0x8c347b['lastRow']>=0x0?_0x8c347b[_0x4e4166(0x2be)]+0x1:0x0,_0x5eb344=_0x228bf0['getRowCount'](),_0x16b038=_0x228bf0[_0x4e4166(0x27f)](),_0x3c3824=_0x557397['length']>0x0?mt:0x0,_0xbe60df=ge({'row':_0x4d602f[_0x4e4166(0x38d)]+_0x2ec716+_0x3c3824,'col':_0x4d602f['col']},_0x228bf0,!0x1,!0x1),_0x5ae3f5=ge({'row':_0x4d602f[_0x4e4166(0x38d)]+_0x2ec716+_0x3c3824+_0x5eb344,'col':_0x4d602f[_0x4e4166(0x378)]},_0x258a69,!0x1,!0x0),_0x131dcf=ge({'row':_0x4d602f[_0x4e4166(0x38d)]+_0x2ec716+_0x3c3824,'col':_0x4d602f[_0x4e4166(0x378)]+_0x16b038},_0x2e825f,!0x1,!0x0),_0x51e194=ge({'row':_0x4d602f[_0x4e4166(0x38d)]+_0x2ec716+_0x3c3824+_0x5eb344,'col':_0x4d602f[_0x4e4166(0x378)]+_0x16b038},_0x1c71d0,!0x1,!0x1);_0x33f3f4[_0x4e4166(0x3ef)]={'rowRanges':_0x5ae3f5,'colRanges':_0x131dcf,'cornerRanges':_0xbe60df,'dataRanges':_0x51e194,'pageRanges':_0x557397};const _0x406acd=Ti(this[_0x4e4166(0x31d)],_0x35dd28,_0x369a45,this[_0x4e4166(0x365)]),{valueMatrix:_0x5d5933,rowInfo:_0x10e180,colInfo:_0x3a45c6,cornerInfo:_0x2beeb8,rowHeaderMap:_0xd2c329,colHeaderMap:_0x458c02}=_0x406acd;return _0x33f3f4[_0x4e4166(0x3b6)]={'rowInfo':_0x10e180,'colInfo':_0x3a45c6,'cornerInfo':_0x2beeb8},_0x33f3f4[_0x4e4166(0x1c3)]={'rowHeaderMap':_0xd2c329,'colHeaderMap':_0x458c02},_0x5d5933[_0x4e4166(0x342)]((_0x490283,_0x1b5b12)=>{const _0x34a5ff=_0x4e4166;Object['keys'](_0x1b5b12)[_0x34a5ff(0x342)](_0x418d84=>{const _0x2b4892=_0x34a5ff,_0x29a615=+_0x418d84,_0x57f762=_0x5d5933[_0x2b4892(0x344)](_0x490283,_0x29a615);_0x46583a[_0x2b4892(0x1ba)](_0x490283,_0x29a615,_0x57f762);});}),this['_viewUpdate$']['next']({'unitId':_0x4c2d59,'subUnitId':_0x21c5b1,'valueMatrix':_0x46583a,'rangesCache':_0x33f3f4[_0x4e4166(0x3ef)],'pivotTableId':_0x385656,'type':_0x12e0b9[_0x4e4166(0x1fa)]}),this[_0x4e4166(0x1bc)][_0x4e4166(0x221)](_0x4c2d59,_0x21c5b1,_0x385656,_0x46583a,_0x33f3f4['rangesInfo']),this[_0x4e4166(0x418)][_0x4e4166(0x2b7)](_0x4c2d59,_0x21c5b1,Bt,this['_createExclusiveRange'](_0x33f3f4[_0x4e4166(0x3ef)],_0x385656)),{'rangeCache':_0x33f3f4[_0x4e4166(0x3ef)],'matrix':_0x46583a};}}[_0x91438c(0x29b)](_0x911190,_0x480da0,_0x2c6be0,_0x4cbd7a){const _0x2dd6c3=_0x91438c,_0x53c5a5=this[_0x2dd6c3(0x298)]['t'],{unitId:_0x352b91,subUnitId:_0x2ed2b5,pivotTableId:_0x4e8503}=_0x911190,_0x3cbc5c={'filter':_0x53c5a5(_0x2dd6c3(0x410)),'row':_0x53c5a5(_0x2dd6c3(0x1c6)),'column':_0x53c5a5(_0x2dd6c3(0x23d)),'values':_0x53c5a5(_0x2dd6c3(0x286))},{matrixCache:_0x233c7f,rangesCache:_0x24641f}=jo(_0x3cbc5c,_0x2c6be0);return _0x233c7f[_0x2dd6c3(0x27d)]((_0x4cc618,_0x53fb1b,_0x1af519)=>{_0x480da0['setValue'](_0x4cc618,_0x53fb1b,_0x1af519);}),_0x4cbd7a[_0x2dd6c3(0x3ef)]=_0x24641f,this[_0x2dd6c3(0x2b6)][_0x2dd6c3(0x1db)]({'unitId':_0x352b91,'subUnitId':_0x2ed2b5,'valueMatrix':_0x480da0,'rangesCache':_0x24641f,'pivotTableId':_0x4e8503,'type':_0x911190[_0x2dd6c3(0x1fa)],'isEmpty':!0x0}),this['_sheetsPivotTableConfigModel'][_0x2dd6c3(0x221)](_0x352b91,_0x2ed2b5,_0x4e8503,_0x480da0,_0x24641f),this[_0x2dd6c3(0x418)][_0x2dd6c3(0x2b7)](_0x352b91,_0x2ed2b5,Bt,this[_0x2dd6c3(0x38a)](_0x24641f,_0x4e8503)),{'rangeCache':_0x4cbd7a[_0x2dd6c3(0x3ef)],'matrix':_0x480da0};}[_0x91438c(0x38a)](_0x450b30,_0x1422d1){const _0x310e00=[],_0x139f6f=Jt(_0x450b30);for(const _0x476e2d of _0x139f6f)_0x310e00['push']({'groupId':_0x1422d1,'range':_0x476e2d});return _0x310e00;}[_0x91438c(0x2ae)](_0x3abe18){const _0x34a857=_0x91438c;var _0x3fbfd1,_0x439316,_0x10bdec,_0x16de22;const {pivotTableId:_0x5cebd7,unitId:_0x1f57ca,subUnitId:_0xdf48ef}=_0x3abe18;if(!_0x5cebd7||!_0x1f57ca||!_0xdf48ef)return;const _0xd62a88=this[_0x34a857(0x1e9)](_0x1f57ca,_0xdf48ef),_0x3123e9=(_0x439316=(_0x3fbfd1=this[_0x34a857(0x405)][_0x34a857(0x274)](_0x1f57ca))==null?void 0x0:_0x3fbfd1[_0x34a857(0x274)](_0xdf48ef))==null?void 0x0:_0x439316['get'](_0x5cebd7);if(_0x3123e9!=null&&_0x3123e9[_0x34a857(0x3ef)]){for(const _0x44b70d of Object['keys'](_0x3123e9[_0x34a857(0x3ef)]))_0x3123e9['rangesInfo'][_0x44b70d]['forEach'](_0x35ec5d=>{const _0x3d1164=_0x34a857;for(let _0x6d0598=_0x35ec5d[_0x3d1164(0x34c)];_0x6d0598<=_0x35ec5d[_0x3d1164(0x25c)];_0x6d0598++)for(let _0x39770d=_0x35ec5d['startColumn'];_0x39770d<=_0x35ec5d['endColumn'];_0x39770d++)_0xd62a88[_0x3d1164(0x249)](_0x6d0598,_0x39770d);});}_0x3123e9&&((_0x16de22=(_0x10bdec=this['_pivotRenderInfoCache'][_0x34a857(0x274)](_0x1f57ca))==null?void 0x0:_0x10bdec['get'](_0xdf48ef))==null||_0x16de22['delete'](_0x5cebd7)),this[_0x34a857(0x2b6)][_0x34a857(0x1db)]({'unitId':_0x1f57ca,'subUnitId':_0xdf48ef,'valueMatrix':_0xd62a88,'pivotTableId':_0x5cebd7,'rangesCache':void 0x0,'type':_0x3abe18[_0x34a857(0x1fa)]}),this[_0x34a857(0x418)]['clearExclusiveRangesByGroupId'](_0x1f57ca,_0xdf48ef,Bt,_0x5cebd7);}[_0x91438c(0x3fb)](_0xfcf13c,_0x1a8f88,_0x293629){const _0x3340ff=_0x91438c;var _0x4febc0,_0x388b76,_0x4a76d1,_0x444cf1,_0x22926c,_0x26efc2;return this['_pivotRenderInfoCache'][_0x3340ff(0x35d)](_0xfcf13c)||this[_0x3340ff(0x405)][_0x3340ff(0x3bc)](_0xfcf13c,new Map()),(_0x4febc0=this[_0x3340ff(0x405)][_0x3340ff(0x274)](_0xfcf13c))!=null&&_0x4febc0[_0x3340ff(0x35d)](_0x1a8f88)||(_0x388b76=this[_0x3340ff(0x405)]['get'](_0xfcf13c))==null||_0x388b76['set'](_0x1a8f88,new Map()),(_0x444cf1=(_0x4a76d1=this[_0x3340ff(0x405)][_0x3340ff(0x274)](_0xfcf13c))==null?void 0x0:_0x4a76d1[_0x3340ff(0x274)](_0x1a8f88))!=null&&_0x444cf1['has'](_0x293629)||(_0x26efc2=(_0x22926c=this['_pivotRenderInfoCache']['get'](_0xfcf13c))==null?void 0x0:_0x22926c[_0x3340ff(0x274)](_0x1a8f88))==null||_0x26efc2[_0x3340ff(0x3bc)](_0x293629,{}),this[_0x3340ff(0x405)][_0x3340ff(0x274)](_0xfcf13c)[_0x3340ff(0x274)](_0x1a8f88)['get'](_0x293629);}[_0x91438c(0x1e9)](_0x3143f5,_0x167139){const _0x4195e2=_0x91438c;var _0x23fb08,_0x2629ee;return this[_0x4195e2(0x2e0)][_0x4195e2(0x35d)](_0x3143f5)||this[_0x4195e2(0x2e0)][_0x4195e2(0x3bc)](_0x3143f5,new Map()),(_0x23fb08=this['_pivotRenderValueMatrixCache']['get'](_0x3143f5))!=null&&_0x23fb08[_0x4195e2(0x35d)](_0x167139)||(_0x2629ee=this['_pivotRenderValueMatrixCache']['get'](_0x3143f5))==null||_0x2629ee[_0x4195e2(0x3bc)](_0x167139,new _0x17d6f8()),this[_0x4195e2(0x2e0)][_0x4195e2(0x274)](_0x3143f5)[_0x4195e2(0x274)](_0x167139);}[_0x91438c(0x42b)](_0x4f47ce,_0x41de55,_0x1baa5b,_0xfcd9bd){const _0x3fb45b=_0x91438c;var _0x45607f,_0x3817b6;const _0x466691=(_0x3817b6=(_0x45607f=this['_pivotRenderValueMatrixCache'][_0x3fb45b(0x274)](_0x4f47ce))==null?void 0x0:_0x45607f[_0x3fb45b(0x274)](_0x41de55))==null?void 0x0:_0x3817b6[_0x3fb45b(0x344)](_0x1baa5b,_0xfcd9bd);if(_0x466691!=null)return _0x466691;}[_0x91438c(0x311)](_0x57f7ea,_0x3f41d5,_0x4a5eb3,_0x27fbad){const _0x5a023f=_0x91438c;var _0x75626;const _0x26c2a6=_0x540207(_0x4a5eb3,_0x27fbad),_0x38f816=(_0x75626=this[_0x5a023f(0x405)]['get'](_0x57f7ea))==null?void 0x0:_0x75626[_0x5a023f(0x274)](_0x3f41d5);return _0x38f816?Array['from'](_0x38f816[_0x5a023f(0x31c)]())[_0x5a023f(0x263)](_0x2d1884=>{const _0x18c0d6=_0x5a023f,_0x826d63=_0x38f816[_0x18c0d6(0x274)](_0x2d1884),_0xe125ed=_0x826d63==null?void 0x0:_0x826d63[_0x18c0d6(0x3ef)];return _0xe125ed?Object['keys'](_0xe125ed)['some'](_0x9d4df5=>_0xe125ed[_0x9d4df5][_0x18c0d6(0x39d)](_0x1e219e=>_0x459723['contains'](_0x1e219e,_0x26c2a6))):!0x1;}):void 0x0;}[_0x91438c(0x38c)](_0x3fe0a7,_0x5a95dd,_0xfd0908){const _0xd1a5cd=_0x91438c;var _0x3b0e5c;const _0x3a38c1=(_0x3b0e5c=this[_0xd1a5cd(0x405)][_0xd1a5cd(0x274)](_0x3fe0a7))==null?void 0x0:_0x3b0e5c[_0xd1a5cd(0x274)](_0x5a95dd),_0x1a9ca9=[];return _0x3a38c1&&Array[_0xd1a5cd(0x1f1)](_0x3a38c1[_0xd1a5cd(0x31c)]())['forEach'](_0x4a0c7e=>{const _0x2658ae=_0xd1a5cd,_0x14fa6d=_0x3a38c1[_0x2658ae(0x274)](_0x4a0c7e),_0x46553a=_0x14fa6d==null?void 0x0:_0x14fa6d['rangesInfo'];if(_0x46553a)for(const _0xeeacd4 of Object['values'](_0x46553a)){let _0x39430b=!0x1;for(const _0x3a9841 of _0xeeacd4)if(_0x459723[_0x2658ae(0x28b)](_0x3a9841,_0xfd0908)){_0x1a9ca9[_0x2658ae(0x3fe)](_0x4a0c7e),_0x39430b=!0x0;break;}if(_0x39430b)break;}}),_0x1a9ca9;}['getSubUnitPivotMatrix'](_0x28d697,_0x1a25bd){const _0x46b0ec=_0x91438c;var _0x59df71,_0x4afe59;return(_0x4afe59=(_0x59df71=this[_0x46b0ec(0x2e0)][_0x46b0ec(0x274)](_0x28d697))==null?void 0x0:_0x59df71['get'](_0x1a25bd))!=null?_0x4afe59:new _0x17d6f8();}['getSubUnitPivotRenderCache'](_0x3a8e7d,_0x2e7bb5){const _0x22e422=_0x91438c;var _0x11a3a2;return(_0x11a3a2=this[_0x22e422(0x405)][_0x22e422(0x274)](_0x3a8e7d))==null?void 0x0:_0x11a3a2[_0x22e422(0x274)](_0x2e7bb5);}[_0x91438c(0x41e)](_0xd77e25,_0xa80d25,_0x592f62){const _0x848c5e=_0x91438c;var _0x5ee6e9,_0x47ca71;return(_0x47ca71=(_0x5ee6e9=this[_0x848c5e(0x405)][_0x848c5e(0x274)](_0xd77e25))==null?void 0x0:_0x5ee6e9['get'](_0xa80d25))==null?void 0x0:_0x47ca71['get'](_0x592f62);}[_0x91438c(0x25b)](_0x20ce78){const _0x230799=_0x91438c;this[_0x230799(0x405)][_0x230799(0x21e)](_0x20ce78),this[_0x230799(0x2e0)][_0x230799(0x21e)](_0x20ce78);}[_0x91438c(0x248)](_0x3b4f1f,_0xfccb74){this['_markDirty$']['next']({'unitId':_0x3b4f1f,'subUnitId':_0xfccb74});}};Ve=zi([st(0x0,_0x431452(_0x3aca7e)),st(0x1,_0x431452(_0x4efa5c)),st(0x2,_0x431452(he)),st(0x3,_0x431452(_0x2c885f)),st(0x4,_0x431452(_0x598df4))],Ve);var Qi=Object[_0x91438c(0x26b)],es=(_0x2fdc45,_0x1e183e,_0x2c8556,_0x3c5dde)=>{const _0x319bd9=_0x91438c;for(var _0x40c653=_0x3c5dde>0x1?void 0x0:_0x3c5dde?Qi(_0x1e183e,_0x2c8556):_0x1e183e,_0x1b24ec=_0x2fdc45[_0x319bd9(0x3e7)]-0x1,_0x3de1bb;_0x1b24ec>=0x0;_0x1b24ec--)(_0x3de1bb=_0x2fdc45[_0x1b24ec])&&(_0x40c653=_0x3de1bb(_0x40c653)||_0x40c653);return _0x40c653;},Fo=(_0x193f89,_0x4268b8)=>(_0x542759,_0x1173f1)=>_0x4268b8(_0x542759,_0x1173f1,_0x193f89);let ie=class extends _0x5353ba{constructor(_0x3362af,_0x3e9bf1){const _0x55f502=_0x91438c;super(),N(this,_0x55f502(0x204),new _0xd0b6d0({'PIVOT_PERFORM_CHECK':be})),N(this,'interceptor',new _0x4c5fb3({'PIVOT_MUTATION_GENERATE':Xo})),(this[_0x55f502(0x376)]=_0x3362af,this[_0x55f502(0x355)]=_0x3e9bf1,this[_0x55f502(0x250)]());}[_0x91438c(0x250)](){this['_initViewModelBySheetInterceptor']();}[_0x91438c(0x277)](_0x560a44){const _0x58b309=_0x91438c;return this[_0x58b309(0x204)]['fetchThroughAsyncInterceptors'](be)(!0x1,_0x560a44);}['_initViewModelBySheetInterceptor'](){const _0x599f02=_0x91438c;this['disposeWithMe'](this['_sheetInterceptorService'][_0x599f02(0x314)](_0x18e6d2['CELL_CONTENT'],{'priority':0xc8,'effect':_0x4e0a71[_0x599f02(0x36d)]|_0x4e0a71[_0x599f02(0x3c6)],'handler':(_0x8c4815,_0x24b544,_0x5e4a47)=>{const _0xc486ce=_0x599f02,{row:_0x53885e,col:_0x2f26c7,unitId:_0x53de8d,subUnitId:_0x2d1d2f,workbook:_0x3dfc36}=_0x24b544,_0x78c6c5=this['_sheetsPivotTableAdaptorModel']['getPivotTableCellData'](_0x53de8d,_0x2d1d2f,_0x53885e,_0x2f26c7);if(!_0x78c6c5)return _0x5e4a47(_0x8c4815);const _0x54318f={..._0x8c4815};(_0x78c6c5['v']||_0x78c6c5['v']===0x0)&&(_0x54318f['v']=_0x78c6c5['v']),_0x78c6c5['t']&&(_0x54318f['t']=_0x78c6c5['t']);const _0x9bf857=(typeof(_0x8c4815==null?void 0x0:_0x8c4815['s'])==_0xc486ce(0x1e0)?_0x3dfc36['getStyles']()[_0xc486ce(0x274)](_0x8c4815==null?void 0x0:_0x8c4815['s']):_0x8c4815==null?void 0x0:_0x8c4815['s'])||{},_0x43ed11=_0x3dfc36[_0xc486ce(0x334)]()[_0xc486ce(0x274)](_0x78c6c5['s']),_0x4b286c={..._0x43ed11,..._0x9bf857};_0x43ed11!=null&&_0x43ed11['n']&&(_0x4b286c['n']=_0x43ed11['n']);const _0xb1c1ec=_0x3dfc36['getStyles']()[_0xc486ce(0x1ba)](_0x4b286c);return _0x54318f['s']=_0xb1c1ec,(_0x78c6c5[_0xc486ce(0x1ff)]===_0x43e39f[_0xc486ce(0x208)]||_0x78c6c5[_0xc486ce(0x1ff)]===_0x43e39f[_0xc486ce(0x368)])&&(_0x54318f['fontRenderExtension']={},_0x54318f[_0xc486ce(0x1d6)][_0xc486ce(0x22b)]=li),_0x5e4a47(_0x54318f);}}));}};ie=es([Fo(0x0,_0x431452(_0x3ec024)),Fo(0x1,_0x431452(Ve))],ie);const Zo={'id':_0x91438c(0x205),'type':_0x2e18c8['MUTATION'],'handler':(_0xd84436,_0x36227c)=>{const _0x205ca6=_0x91438c;if(!_0x36227c)return!0x1;if(!!_0xd84436[_0x205ca6(0x274)](_0x495f63)[_0x205ca6(0x3d4)](Y))return!0x0;const {pivotTableId:_0x5c0271,fieldJSON:_0x542936,unitId:_0x34857c,subUnitId:_0x39be6c}=_0x36227c;let _0x382fb1;const {dataFieldType:_0x2c9db2,id:_0x1ac607,name:_0x309822,hexCode:_0x545b88,originalFieldId:_0x2b6b98}=_0x542936;if(_0x2c9db2===_0x57ced6[_0x205ca6(0x2c5)]&&(_0x382fb1=new _0x5281df(_0x1ac607,_0x309822,_0x545b88,_0x2b6b98)),!_0x382fb1)return!0x1;const _0x21052a=_0xd84436[_0x205ca6(0x274)]($),_0x56f5a7=_0x21052a[_0x205ca6(0x33c)](_0x34857c),_0x3a11c2=_0x56f5a7[_0x205ca6(0x232)](_0x5c0271);_0x56f5a7[_0x205ca6(0x3a8)](_0x382fb1),_0x3a11c2[_0x205ca6(0x381)](_0x382fb1[_0x205ca6(0x403)](),_0x382fb1[_0x205ca6(0x30e)]());const _0x244455=_0x3a11c2['getFieldById'](_0x382fb1[_0x205ca6(0x361)]());_0x244455&&_0x382fb1['refreshGroupField'](_0x244455);const _0x25637f=_0x21052a[_0x205ca6(0x294)](_0x34857c,_0x39be6c,_0x5c0271);return _0x21052a[_0x205ca6(0x1ca)]({'unitId':_0x34857c,'subUnitId':_0x39be6c,'token':_0x5c0271,'type':J['Set'],'pivotConfig':_0x25637f}),!0x0;}},zo={'id':_0x91438c(0x1d8),'type':_0x2e18c8[_0x91438c(0x318)],'handler':(_0x52b21b,_0x17713c)=>{const _0x23edbf=_0x91438c;if(!_0x17713c)return!0x1;if(!!_0x52b21b[_0x23edbf(0x274)](_0x495f63)[_0x23edbf(0x3d4)](Y))return!0x0;const {pivotTableId:_0x5816bd,dataFieldId:_0x376bd9,unitId:_0x226e97,subUnitId:_0x40b28e}=_0x17713c,_0x56182c=_0x52b21b[_0x23edbf(0x274)]($),_0x21e8e9=_0x56182c[_0x23edbf(0x33c)](_0x226e97);_0x21e8e9[_0x23edbf(0x232)](_0x5816bd)['deleteField'](_0x376bd9);let _0x2b7a35=!0x0;for(const _0x4e4ffb in _0x21e8e9[_0x23edbf(0x391)])if(_0x21e8e9[_0x23edbf(0x391)][_0x4e4ffb]['getFieldIds']()[_0x23edbf(0x1da)](_0x376bd9)){_0x2b7a35=!0x1;break;}_0x2b7a35&&_0x21e8e9[_0x23edbf(0x1d7)](_0x376bd9);const _0x5b0efb=_0x56182c[_0x23edbf(0x294)](_0x226e97,_0x40b28e,_0x5816bd);return _0x56182c[_0x23edbf(0x1ca)]({'unitId':_0x226e97,'subUnitId':_0x40b28e,'token':_0x5816bd,'type':J[_0x23edbf(0x20b)],'pivotConfig':_0x5b0efb}),!0x0;}};function Vt(_0x22eb0e,_0x3cb937){const _0x188bf0=_0x91438c;switch(_0x3cb937){case _0x48ff8c[_0x188bf0(0x36d)]:return _0x22eb0e[_0x188bf0(0x3e9)];case _0x48ff8c[_0x188bf0(0x41b)]:return _0x22eb0e['filterFields'];case _0x48ff8c[_0x188bf0(0x34a)]:return _0x22eb0e['rowFields'];case _0x48ff8c[_0x188bf0(0x41d)]:return _0x22eb0e['columnFields'];default:return[];}}function Ge(_0x13e9c8,_0x1f33b9){const _0x2978ec=_0x91438c;return _0x13e9c8[_0x2978ec(0x3f5)][_0x1f33b9]||_0x13e9c8[_0x2978ec(0x2c2)][_0x1f33b9];}function ts(_0x5e14e0,_0x3e983e){const _0x5c4fb0=_0x91438c,{area:_0x229fbb,fieldJson:_0x50b538,index:_0x11553a}=_0x3e983e;_0x229fbb===_0x48ff8c['Value']?_0x5e14e0[_0x5c4fb0(0x3f5)][_0x50b538['id']]=_0x50b538:_0x5e14e0['dimension'][_0x50b538['id']]=_0x50b538,Vt(_0x5e14e0,_0x229fbb)[_0x5c4fb0(0x310)](_0x11553a,0x0,_0x50b538['id']);}function os(_0x4446bf,_0x2fe7ba){const _0x471a48=_0x91438c,{area:_0xce03f5,fieldId:_0xf8b2d4,index:_0xac9e2f}=_0x2fe7ba;_0xce03f5===_0x48ff8c[_0x471a48(0x36d)]?delete _0x4446bf[_0x471a48(0x3f5)][_0xf8b2d4]:delete _0x4446bf[_0x471a48(0x2c2)][_0xf8b2d4],Vt(_0x4446bf,_0xce03f5)['splice'](_0xac9e2f,0x1);}function ns(_0x43760d,_0x8705ac){const _0x127f8d=_0x91438c,{fieldId:_0x17d79a,name:_0x793d97}=_0x8705ac,_0x39000d=Ge(_0x43760d,_0x17d79a);_0x39000d&&(_0x39000d[_0x127f8d(0x240)]=_0x793d97);}function is(_0x114736,_0x1a6e59){const _0x4e9ad5=_0x91438c,{fieldId:_0x187715,collapse:_0x1e4879,item:_0x278a98}=_0x1a6e59;_0x278a98!==void 0x0?(_0x114736[_0x4e9ad5(0x3c7)][_0x187715]=_0x114736[_0x4e9ad5(0x3c7)][_0x187715]||{},_0x114736['collapseInfo'][_0x187715][_0x278a98]=_0x1e4879):_0x114736[_0x4e9ad5(0x3c7)][_0x187715]=_0x1e4879;}function ss(_0x2a6e63,_0x16ae80){const {fieldId:_0x3f94f0,format:_0x1bc2ba}=_0x16ae80,_0x41c5bf=Ge(_0x2a6e63,_0x3f94f0);_0x41c5bf&&(_0x41c5bf['format']=_0x1bc2ba);}function as(_0x46e269,_0x5d552f){const _0x5c8ec5=_0x91438c,{fieldId:_0x1bdd84,filterInfo:_0x57adf4}=_0x5d552f,_0x18b968=Ge(_0x46e269,_0x1bdd84);_0x18b968&&(_0x18b968[_0x5c8ec5(0x320)]=_0x57adf4);}function rs(_0x36e91e,_0x38fc40){const _0x2381c4=_0x91438c,{fieldId:_0x4b9310,filterInfo:_0x10fc1d}=_0x38fc40,_0x3f577e=_0x36e91e[_0x2381c4(0x424)][_0x2381c4(0x3ad)](_0xf24577=>_0xf24577['fieldId']!==_0x4b9310);_0x10fc1d&&_0x3f577e['push']({'fieldId':_0x4b9310,'filterInfo':_0x10fc1d}),_0x36e91e[_0x2381c4(0x424)]=_0x3f577e;}function ls(_0xeb3705,_0x265778){const _0x146036=_0x91438c,{fieldId:_0x176c99,subtotalType:_0x1b2bd1}=_0x265778,_0x5ab3ff=Ge(_0xeb3705,_0x176c99);_0x5ab3ff&&(_0x5ab3ff[_0x146036(0x28c)]=_0x1b2bd1);}function ds(_0x252a6e,_0xea8d06){const _0x2eabb7=_0x91438c,{fieldId:_0x400fa0,oldArea:_0x2f0e97,area:_0x444ac3,oldIndex:_0x49a572,index:_0x4bf36c}=_0xea8d06,_0x58bf28=_0x2f0e97!==_0x48ff8c['Value']&&_0x444ac3===_0x48ff8c[_0x2eabb7(0x36d)],_0x4a53e1=_0x2f0e97===_0x48ff8c[_0x2eabb7(0x36d)]&&_0x444ac3!==_0x48ff8c[_0x2eabb7(0x36d)];if(_0x58bf28||_0x4a53e1){const _0x53495e=Ge(_0x252a6e,_0x400fa0);_0x53495e&&(_0x58bf28?(delete _0x252a6e[_0x2eabb7(0x2c2)][_0x400fa0],_0x252a6e[_0x2eabb7(0x3f5)][_0x400fa0]=_0x53495e):(delete _0x252a6e[_0x2eabb7(0x3f5)][_0x400fa0],_0x252a6e[_0x2eabb7(0x2c2)][_0x400fa0]=_0x53495e));}const _0x576676=Vt(_0x252a6e,_0x2f0e97),_0x284253=Vt(_0x252a6e,_0x444ac3);_0x576676[_0x2eabb7(0x310)](_0x49a572,0x1),_0x284253['splice'](_0x4bf36c,0x0,_0x400fa0);}function cs(_0x5b4a33,_0x91eec2){const _0x1e33cf=_0x91438c,{valuePosition:_0x57f00d,index:_0x5a3f90}=_0x91eec2;_0x5b4a33[_0x1e33cf(0x2fe)]=_0x57f00d,_0x5b4a33[_0x1e33cf(0x265)]=_0x5a3f90;}function us(_0x55fd93,_0x3aaca4){const _0x2cad8b=_0x91438c,{tableFieldId:_0x4f410d,sourceName:_0x410a41,dataFieldId:_0x45408a}=_0x3aaca4,_0x1546f8=Ge(_0x55fd93,_0x4f410d);_0x1546f8&&(_0x1546f8[_0x2cad8b(0x2a7)]=_0x410a41,_0x1546f8[_0x2cad8b(0x3e8)]=_0x45408a);}function fs(_0x3f1126,_0x1bf585){const _0x14356e=_0x91438c,{fieldId:_0x50666b,sortInfo:_0x53df28}=_0x1bf585,_0x18f174=Ge(_0x3f1126,_0x50666b);_0x18f174&&(_0x18f174[_0x14356e(0x2bf)]=_0x53df28);}function gs(_0x2f274e,_0x54ee31){const _0x406a3c=_0x91438c,{options:_0xeb4772}=_0x54ee31;_0x2f274e['options']={..._0x2f274e[_0x406a3c(0x3a3)],..._0xeb4772};}const $t={'type':_0x2e18c8['MUTATION'],'id':_0x91438c(0x29a),'handler'(_0x1aa7d3,_0x4c9cdb){const _0x5576f0=_0x91438c;if(!_0x4c9cdb)return!0x1;if(!!_0x1aa7d3[_0x5576f0(0x274)](_0x495f63)[_0x5576f0(0x3d4)](Y))return!0x0;const _0x2c1def=_0x1aa7d3[_0x5576f0(0x274)]($),{pivotTableId:_0xf0754c,fieldJson:_0x105d3c,area:_0x4e75ff,index:_0x537030,unitId:_0x3269c4,subUnitId:_0x3bd794}=_0x4c9cdb,_0xbf6a48=_0x2c1def[_0x5576f0(0x31f)](_0xf0754c);if(!_0xbf6a48)return!0x1;let _0x17ab5b;_0x4e75ff===_0x48ff8c[_0x5576f0(0x36d)]?_0x17ab5b=_0xef737d(_0x105d3c):_0x17ab5b=_0x19d900(_0x105d3c),_0xbf6a48[_0x5576f0(0x381)](_0x17ab5b,_0x4e75ff,_0x537030);const _0x14025f=_0x2c1def[_0x5576f0(0x1fd)](_0x3269c4,_0x3bd794,_0xf0754c);ts(_0x14025f,_0x4c9cdb);const _0x5f15a2=_0x2c1def[_0x5576f0(0x294)](_0x3269c4,_0x3bd794,_0xf0754c);return _0x2c1def[_0x5576f0(0x1ca)]({'unitId':_0x3269c4,'subUnitId':_0x3bd794,'token':_0xf0754c,'type':J[_0x5576f0(0x20b)],'pivotConfig':_0x5f15a2}),!0x0;}},Xt={'type':_0x2e18c8[_0x91438c(0x318)],'id':'sheet.mutation.remove-pivot-field','handler'(_0x6b9156,_0x71a448){const _0x2d1827=_0x91438c;if(!_0x71a448)return!0x1;if(!!_0x6b9156['get'](_0x495f63)[_0x2d1827(0x3d4)](Y))return!0x0;const _0x2a5139=_0x6b9156[_0x2d1827(0x274)]($),{pivotTableId:_0x3e9bb2,fieldId:_0xcae013,unitId:_0x56b1fa,subUnitId:_0x578b21}=_0x71a448,_0x2937b1=_0x2a5139[_0x2d1827(0x31f)](_0x3e9bb2);if(!_0x2937b1)return!0x1;_0x2937b1[_0x2d1827(0x319)](_0xcae013);const _0x4c57f7=_0x2a5139['getPivotTableModelConfig'](_0x56b1fa,_0x578b21,_0x3e9bb2);os(_0x4c57f7,_0x71a448);const _0x2fdea5=_0x2a5139[_0x2d1827(0x294)](_0x56b1fa,_0x578b21,_0x3e9bb2);return _0x2a5139[_0x2d1827(0x1ca)]({'unitId':_0x56b1fa,'subUnitId':_0x578b21,'token':_0x3e9bb2,'type':J[_0x2d1827(0x20b)],'pivotConfig':_0x2fdea5}),!0x0;}},Gt={'type':_0x2e18c8['MUTATION'],'id':_0x91438c(0x1c9),'handler'(_0x2cb6ec,_0x467114){const _0x1ac0a6=_0x91438c;if(!_0x467114)return!0x1;if(!!_0x2cb6ec[_0x1ac0a6(0x274)](_0x495f63)[_0x1ac0a6(0x3d4)](Y))return!0x0;const _0x5b416e=_0x2cb6ec['get']($),{unitId:_0x153379,subUnitId:_0x188c71,pivotTableId:_0x28aadb,fieldId:_0x43a05f,name:_0x23d932}=_0x467114,_0xe927a5=_0x5b416e[_0x1ac0a6(0x31f)](_0x28aadb);if(!_0xe927a5)return!0x1;_0xe927a5[_0x1ac0a6(0x21a)](_0x43a05f,_0x23d932);const _0xa03b8=_0x5b416e['getPivotTableModelConfig'](_0x153379,_0x188c71,_0x28aadb);return ns(_0xa03b8,_0x467114),_0x5b416e['addDirtyPivotTable']({'unitId':_0x153379,'subUnitId':_0x188c71,'token':_0x28aadb,'type':J['Set']}),!0x0;}},Wt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x229),'handler'(_0x48be4a,_0x343a66){const _0x7e014=_0x91438c;if(!_0x343a66)return!0x1;if(!!_0x48be4a[_0x7e014(0x274)](_0x495f63)[_0x7e014(0x3d4)](Y))return!0x0;const _0xf9c4a7=_0x48be4a[_0x7e014(0x274)]($),{unitId:_0x185055,subUnitId:_0x3d1787,pivotTableId:_0x5b5d25,fieldId:_0x25f01e,collapse:_0x562573,item:_0x2fdc18}=_0x343a66,_0xf9f538=_0xf9c4a7['getPivotTableInstance'](_0x5b5d25);if(!_0xf9f538)return!0x1;_0xf9f538[_0x7e014(0x3f8)](_0x25f01e,_0x562573,_0x2fdc18);const _0xbc8539=_0xf9c4a7[_0x7e014(0x1fd)](_0x185055,_0x3d1787,_0x5b5d25);return is(_0xbc8539,_0x343a66),_0xf9c4a7[_0x7e014(0x1ca)]({'unitId':_0x185055,'subUnitId':_0x3d1787,'token':_0x5b5d25,'type':J['Set']}),!0x0;}},jt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x26d),'handler'(_0x41d239,_0x441cc3){const _0x232352=_0x91438c;if(!_0x441cc3)return!0x1;if(!!_0x41d239[_0x232352(0x274)](_0x495f63)[_0x232352(0x3d4)](Y))return!0x0;const _0x4e23c8=_0x41d239[_0x232352(0x274)]($),{unitId:_0x47f994,subUnitId:_0x126d7c,pivotTableId:_0x44fa68,fieldId:_0x2979b3,format:_0x3068ca}=_0x441cc3,_0x282871=_0x4e23c8[_0x232352(0x31f)](_0x44fa68);if(!_0x282871)return!0x1;_0x282871[_0x232352(0x411)](_0x2979b3,_0x3068ca);const _0x5d3e24=_0x4e23c8[_0x232352(0x1fd)](_0x47f994,_0x126d7c,_0x44fa68);return ss(_0x5d3e24,_0x441cc3),_0x4e23c8[_0x232352(0x1ca)]({'unitId':_0x47f994,'subUnitId':_0x126d7c,'token':_0x44fa68,'type':J['Set']}),!0x0;}},Kt={'type':_0x2e18c8['MUTATION'],'id':_0x91438c(0x40d),'handler'(_0x491810,_0x2be368){const _0xfc70e=_0x91438c;if(!_0x2be368)return!0x1;if(!!_0x491810['get'](_0x495f63)['getConfig'](Y))return!0x0;const _0x1acf5b=_0x491810['get']($),{unitId:_0x768cb8,subUnitId:_0x55b1e5,pivotTableId:_0x439056,fieldId:_0x1619a9,filterInfo:_0x4a076d}=_0x2be368,_0x33b4e3=_0x1acf5b[_0xfc70e(0x31f)](_0x439056);if(!_0x33b4e3)return!0x1;_0x33b4e3[_0xfc70e(0x3be)](_0x1619a9,_0x4a076d);const _0x5e0735=_0x1acf5b[_0xfc70e(0x1fd)](_0x768cb8,_0x55b1e5,_0x439056);return as(_0x5e0735,_0x2be368),_0x1acf5b[_0xfc70e(0x1ca)]({'unitId':_0x768cb8,'subUnitId':_0x55b1e5,'token':_0x439056,'type':J[_0xfc70e(0x20b)]}),!0x0;}},Ht={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x1f0),'handler'(_0x1cd29a,_0x562437){const _0x20b513=_0x91438c;if(!_0x562437)return!0x1;if(!!_0x1cd29a[_0x20b513(0x274)](_0x495f63)[_0x20b513(0x3d4)](Y))return!0x0;const _0xc74737=_0x1cd29a['get']($),{unitId:_0xbe4c78,subUnitId:_0x5d86c2,pivotTableId:_0x499c25,options:_0x3ce1af}=_0x562437,_0x3ada04=_0xc74737['getPivotTableInstance'](_0x499c25);if(!_0x3ada04)return!0x1;_0x3ada04[_0x20b513(0x24b)](_0x3ce1af);const _0x3a4346=_0xc74737[_0x20b513(0x1fd)](_0xbe4c78,_0x5d86c2,_0x499c25);return gs(_0x3a4346,_0x562437),_0xc74737['addDirtyPivotTable']({'unitId':_0xbe4c78,'subUnitId':_0x5d86c2,'token':_0x499c25,'type':J[_0x20b513(0x20b)]}),!0x0;}},qt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x393),'handler'(_0x206519,_0x20bf86){const _0x4b410b=_0x91438c;if(!_0x20bf86)return!0x1;if(!!_0x206519['get'](_0x495f63)[_0x4b410b(0x3d4)](Y))return!0x0;const _0x363550=_0x206519[_0x4b410b(0x274)]($),{unitId:_0x5e9f3c,subUnitId:_0x495543,pivotTableId:_0x1ffcb8,sortInfo:_0x3abc3b,fieldId:_0x2dd142}=_0x20bf86,_0x4e96fb=_0x363550[_0x4b410b(0x31f)](_0x1ffcb8);if(!_0x4e96fb)return!0x1;_0x4e96fb[_0x4b410b(0x1d5)](_0x2dd142,_0x3abc3b);const _0x16e5e1=_0x363550[_0x4b410b(0x1fd)](_0x5e9f3c,_0x495543,_0x1ffcb8);return fs(_0x16e5e1,_0x20bf86),_0x363550[_0x4b410b(0x1ca)]({'unitId':_0x5e9f3c,'subUnitId':_0x495543,'token':_0x1ffcb8,'type':J[_0x4b410b(0x20b)]}),!0x0;}},Yt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x406),'handler'(_0x4edbfb,_0x2bcbdd){const _0x11c863=_0x91438c;if(!_0x2bcbdd)return!0x1;if(!!_0x4edbfb[_0x11c863(0x274)](_0x495f63)[_0x11c863(0x3d4)](Y))return!0x0;const _0x2772c8=_0x4edbfb['get']($),{unitId:_0x44dbfc,subUnitId:_0x57776e,pivotTableId:_0x53ea78,fieldId:_0xa3c341,subtotalType:_0x4adfea}=_0x2bcbdd,_0x43b713=_0x2772c8[_0x11c863(0x31f)](_0x53ea78);if(!_0x43b713)return!0x1;_0x43b713[_0x11c863(0x241)](_0xa3c341,_0x4adfea);const _0x2447df=_0x2772c8[_0x11c863(0x1fd)](_0x44dbfc,_0x57776e,_0x53ea78);return ls(_0x2447df,_0x2bcbdd),_0x2772c8[_0x11c863(0x1ca)]({'unitId':_0x44dbfc,'subUnitId':_0x57776e,'token':_0x53ea78,'type':J[_0x11c863(0x20b)]}),!0x0;}},Zt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x1ed),'handler'(_0x2499a5,_0x545305){const _0x1b5418=_0x91438c;if(!_0x545305)return!0x1;if(!!_0x2499a5['get'](_0x495f63)['getConfig'](Y))return!0x0;const _0x5a6b6f=_0x2499a5['get']($),{unitId:_0xfeb051,subUnitId:_0x4f422c,pivotTableId:_0x22014f,fieldId:_0x25a026,filterInfo:_0x44ef49}=_0x545305,_0xc12926=_0x5a6b6f[_0x1b5418(0x31f)](_0x22014f);if(!_0xc12926)return!0x1;_0xc12926[_0x1b5418(0x306)](_0x25a026,_0x44ef49);const _0x535a7c=_0x5a6b6f[_0x1b5418(0x1fd)](_0xfeb051,_0x4f422c,_0x22014f);return rs(_0x535a7c,_0x545305),_0x5a6b6f[_0x1b5418(0x1ca)]({'unitId':_0xfeb051,'subUnitId':_0x4f422c,'token':_0x22014f,'type':J['Set']}),!0x0;}},zt={'type':_0x2e18c8[_0x91438c(0x318)],'id':'sheet.mutation.pivot-update-field-position','handler'(_0x42989e,_0xa16c03){const _0x4fdb13=_0x91438c;if(!_0xa16c03)return!0x1;if(!!_0x42989e[_0x4fdb13(0x274)](_0x495f63)[_0x4fdb13(0x3d4)](Y))return!0x0;const _0x1dd4e3=_0x42989e[_0x4fdb13(0x274)]($),{unitId:_0x3c7511,subUnitId:_0x5a7601,pivotTableId:_0x5df9b8,area:_0x1d9433,index:_0x352e6b,fieldId:_0x41ebf4}=_0xa16c03,_0x5d0f0c=_0x1dd4e3['getPivotTableInstance'](_0x5df9b8);if(!_0x5d0f0c)return!0x1;_0x5d0f0c['updateFieldPosition'](_0x41ebf4,_0x1d9433,_0x352e6b);const _0x4f4e94=_0x1dd4e3[_0x4fdb13(0x1fd)](_0x3c7511,_0x5a7601,_0x5df9b8);return ds(_0x4f4e94,_0xa16c03),_0x1dd4e3[_0x4fdb13(0x1ca)]({'unitId':_0x3c7511,'subUnitId':_0x5a7601,'token':_0x5df9b8,'type':J[_0x4fdb13(0x20b)]}),!0x0;}},Qt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x315),'handler'(_0x1dee29,_0x25a5f3){const _0x168d04=_0x91438c;if(!_0x25a5f3)return!0x1;if(!!_0x1dee29['get'](_0x495f63)[_0x168d04(0x3d4)](Y))return!0x0;const _0x213f33=_0x1dee29['get']($),{unitId:_0x4bd2cc,subUnitId:_0x4715ca,pivotTableId:_0x3bdf10,sourceName:_0x29d010,dataFieldId:_0x452000,tableFieldId:_0x2675b2}=_0x25a5f3,_0xbaf907=_0x213f33[_0x168d04(0x31f)](_0x3bdf10);if(!_0xbaf907)return!0x1;_0xbaf907[_0x168d04(0x38f)](_0x2675b2,_0x29d010,_0x452000);const _0x40d454=_0x213f33[_0x168d04(0x1fd)](_0x4bd2cc,_0x4715ca,_0x3bdf10);return us(_0x40d454,_0x25a5f3),_0x213f33[_0x168d04(0x1ca)]({'unitId':_0x4bd2cc,'subUnitId':_0x4715ca,'token':_0x3bdf10,'type':J[_0x168d04(0x20b)]}),!0x0;}},eo={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x350),'handler'(_0x3d5923,_0x30db50){const _0x583eb6=_0x91438c;if(!_0x30db50)return!0x1;if(!!_0x3d5923[_0x583eb6(0x274)](_0x495f63)['getConfig'](Y))return!0x0;const _0x4214d3=_0x3d5923[_0x583eb6(0x274)]($),{unitId:_0x594a75,subUnitId:_0x842a71,pivotTableId:_0x25b85d,valuePosition:_0x5755aa,index:_0x278627}=_0x30db50,_0x4a5598=_0x4214d3[_0x583eb6(0x31f)](_0x25b85d);if(!_0x4a5598)return!0x1;_0x4a5598['updateValuePosition'](_0x5755aa,_0x278627);const _0x332c63=_0x4214d3['getPivotTableModelConfig'](_0x594a75,_0x842a71,_0x25b85d);return cs(_0x332c63,_0x30db50),_0x4214d3[_0x583eb6(0x1ca)]({'unitId':_0x594a75,'subUnitId':_0x842a71,'token':_0x25b85d,'type':J[_0x583eb6(0x20b)]}),!0x0;}};function Ie(_0x26e48a,_0x57b37a,_0x2c9205){const _0x1cf979=_0x91438c,{pivotTableId:_0x16f39b,unitId:_0xd11278,subUnitId:_0x5d83d3}=_0x57b37a,_0x3aa98e=[],_0x55c6c0=[];for(const _0x3a22e1 of _0x2c9205)switch(_0x3a22e1[_0x1cf979(0x1fa)]){case _0x1ffd1e['AddField']:{const {fieldJson:_0x247344,area:_0x14a30b,index:_0x29750d}=_0x3a22e1,_0x52f581={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldJson':_0x247344,'area':_0x14a30b,'index':_0x29750d},_0x2e139b={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x247344['id'],'area':_0x14a30b,'index':_0x29750d};_0x3aa98e[_0x1cf979(0x3fe)]({'id':$t['id'],'params':_0x52f581}),_0x55c6c0[_0x1cf979(0x273)]({'id':Xt['id'],'params':_0x2e139b});}break;case _0x1ffd1e[_0x1cf979(0x401)]:{const {fieldId:_0x249c2a,newSubtotalType:_0x198a62,oldSubtotalType:_0x5e963c}=_0x3a22e1,_0x146afb={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x249c2a,'subtotalType':_0x198a62};_0x3aa98e[_0x1cf979(0x3fe)]({'id':Yt['id'],'params':_0x146afb});const _0x422a96={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x249c2a,'subtotalType':_0x5e963c};_0x55c6c0[_0x1cf979(0x273)]({'id':Yt['id'],'params':_0x422a96});}break;case _0x1ffd1e['RemoveField']:{const {fieldId:_0xe14681,fieldJson:_0x1ed6b7,area:_0x4e72e2,index:_0xec314d}=_0x3a22e1,_0x55cb1c={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0xe14681,'index':_0xec314d,'area':_0x4e72e2};_0x3aa98e[_0x1cf979(0x3fe)]({'id':Xt['id'],'params':_0x55cb1c});const _0x2b2996={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldJson':_0x1ed6b7,'area':_0x4e72e2,'index':_0xec314d};_0x55c6c0[_0x1cf979(0x273)]({'id':$t['id'],'params':_0x2b2996});}break;case _0x1ffd1e[_0x1cf979(0x35c)]:{const {fieldId:_0x3a91f5,oldName:_0x558c92,newName:_0x2b439b}=_0x3a22e1,_0xf22aae={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x3a91f5,'name':_0x2b439b};_0x3aa98e['push']({'id':Gt['id'],'params':_0xf22aae});const _0x23bcbe={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x3a91f5,'name':_0x558c92};_0x55c6c0[_0x1cf979(0x273)]({'id':Gt['id'],'params':_0x23bcbe});}break;case _0x1ffd1e[_0x1cf979(0x220)]:{const {fieldId:_0x3e851d,oldFilterInfo:_0x2e1289,newFilterInfo:_0x19e099}=_0x3a22e1,_0x27ae46={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x3e851d,'filterInfo':_0x19e099};_0x3aa98e[_0x1cf979(0x3fe)]({'id':Kt['id'],'params':_0x27ae46});const _0x572b6d={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x3e851d,'filterInfo':_0x2e1289};_0x55c6c0[_0x1cf979(0x273)]({'id':Kt['id'],'params':_0x572b6d});}break;case _0x1ffd1e[_0x1cf979(0x3db)]:{const {fieldId:_0x35f506,oldSortInfo:_0xeb1a9e,newSortInfo:_0x1bdfb3}=_0x3a22e1,_0x22e0ce={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x35f506,'sortInfo':_0x1bdfb3};_0x3aa98e[_0x1cf979(0x3fe)]({'id':qt['id'],'params':_0x22e0ce});const _0x4360bd={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x35f506,'sortInfo':_0xeb1a9e};_0x55c6c0[_0x1cf979(0x273)]({'id':qt['id'],'params':_0x4360bd});}break;case _0x1ffd1e['SetOptions']:{const {oldOptions:_0x4d89b8,newOptions:_0x37d81b}=_0x3a22e1,_0x27ca79={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'options':_0x37d81b};_0x3aa98e['push']({'id':Ht['id'],'params':_0x27ca79});const _0x20232b={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'options':_0x4d89b8};_0x55c6c0[_0x1cf979(0x273)]({'id':Ht['id'],'params':_0x20232b});}break;case _0x1ffd1e[_0x1cf979(0x383)]:{const {oldArea:_0x43b6d3,newArea:_0x3197c2,oldIndex:_0x47ba67,newIndex:_0x210b8d,fieldId:_0x55a84a}=_0x3a22e1,_0x32aa04={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x55a84a,'area':_0x3197c2,'index':_0x210b8d,'oldArea':_0x43b6d3,'oldIndex':_0x47ba67};_0x3aa98e[_0x1cf979(0x3fe)]({'id':zt['id'],'params':_0x32aa04});const _0x4ada72={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x55a84a,'area':_0x43b6d3,'index':_0x47ba67,'oldArea':_0x3197c2,'oldIndex':_0x210b8d};_0x55c6c0[_0x1cf979(0x273)]({'id':zt['id'],'params':_0x4ada72});}break;case _0x1ffd1e['UpdateValuePosition']:{const {oldValuePosition:_0x2be10f,newValuePosition:_0x4a06dc,oldIndex:_0x3823e0,newIndex:_0x2b9295}=_0x3a22e1,_0x4aa1fd={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'valuePosition':_0x4a06dc,'index':_0x2b9295};_0x3aa98e[_0x1cf979(0x3fe)]({'id':eo['id'],'params':_0x4aa1fd});const _0x22ada7={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'valuePosition':_0x2be10f,'index':_0x3823e0};_0x55c6c0[_0x1cf979(0x273)]({'id':eo['id'],'params':_0x22ada7});}break;case _0x1ffd1e['SetCollapse']:{const {fieldId:_0x29b59a,collapse:_0x3ee3f8,item:_0x593bde}=_0x3a22e1,_0x57444f={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x29b59a,'collapse':_0x3ee3f8,'item':_0x593bde};_0x3aa98e[_0x1cf979(0x3fe)]({'id':Wt['id'],'params':_0x57444f});const _0x54854a={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x29b59a,'collapse':!_0x3ee3f8,'item':_0x593bde};_0x55c6c0[_0x1cf979(0x273)]({'id':Wt['id'],'params':_0x54854a});}break;case _0x1ffd1e[_0x1cf979(0x308)]:{const {newFormat:_0x3ed2be,oldFormat:_0x156f14,fieldId:_0x1abe0e}=_0x3a22e1,_0x53d2d6={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x1abe0e,'format':_0x3ed2be};_0x3aa98e[_0x1cf979(0x3fe)]({'id':jt['id'],'params':_0x53d2d6});const _0x17302d={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x1abe0e,'format':_0x156f14};_0x55c6c0[_0x1cf979(0x273)]({'id':jt['id'],'params':_0x17302d});}break;case _0x1ffd1e[_0x1cf979(0x349)]:{const {tableFieldId:_0x1e1369,oldSourceName:_0x5cb5e6,newSourceName:_0x3a727f,oldDataFieldId:_0x260d84,newDataFieldId:_0xa5ea62}=_0x3a22e1,_0x3c6058={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'tableFieldId':_0x1e1369,'sourceName':_0x3a727f,'dataFieldId':_0xa5ea62};_0x3aa98e[_0x1cf979(0x3fe)]({'id':Qt['id'],'params':_0x3c6058});const _0x315ffb={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'tableFieldId':_0x1e1369,'sourceName':_0x5cb5e6,'dataFieldId':_0x260d84};_0x55c6c0[_0x1cf979(0x273)]({'id':Qt['id'],'params':_0x315ffb});}break;case _0x1ffd1e[_0x1cf979(0x3b4)]:{const {fieldId:_0x41f959,filterInfo:_0x52a27e,oldFilterInfo:_0x40f9f2}=_0x3a22e1,_0x1948f8={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x41f959,'filterInfo':_0x52a27e};_0x3aa98e['push']({'id':Zt['id'],'params':_0x1948f8});const _0x113da9={'unitId':_0xd11278,'subUnitId':_0x5d83d3,'pivotTableId':_0x16f39b,'fieldId':_0x41f959,'filterInfo':_0x40f9f2};_0x55c6c0['unshift']({'id':Zt['id'],'params':_0x113da9});}}return{'redos':_0x3aa98e,'undos':_0x55c6c0};}function we(_0xcf8a98,_0x1cb757){const _0x31781e=_0x91438c;var _0x33ee61;const _0x2b32ae=_0xcf8a98[_0x31781e(0x274)](ie),{cellInfo:_0x405e6b,view:_0x16e803,isEmpty:_0x30e803}=_0x1cb757;return(_0x33ee61=_0x2b32ae['interceptor']['fetchThroughInterceptors'](Xo)(yo,{'cellInfo':_0x405e6b,'view':_0x16e803,'isEmpty':_0x30e803}))!=null?_0x33ee61:yo;}const vs={'type':_0x2e18c8['COMMAND'],'id':_0x91438c(0x2dd),async 'handler'(_0x294ed1,_0x7570bb){const _0x411729=_0x91438c;if(!_0x7570bb)return!0x1;const _0x42db40=_0x294ed1[_0x411729(0x274)](_0xa7b251),_0x866512=_0x294ed1[_0x411729(0x274)](z),_0x159451=_0x294ed1[_0x411729(0x274)](_0x4e1a76),{pivotTableId:_0x27dd32,dataFieldId:_0x451b3b,fieldArea:_0x264911,index:_0x18a1fb,unitId:_0x247f51,subUnitId:_0x4a14f5}=_0x7570bb,_0x313ff4=(await _0x866512[_0x411729(0x328)]({'unitId':_0x247f51,'subUnitId':_0x4a14f5,'pivotTableId':_0x27dd32,'params':{'type':k[_0x411729(0x388)],'addPivotField':{'dataFieldId':_0x451b3b,'fieldArea':_0x264911,'index':_0x18a1fb}}}))['result'][_0x411729(0x33b)];if(!_0x313ff4)return!0x1;const {view:_0x510204,changesets:_0x1508b6,isEmpty:_0x1ad448,pivotTableConfig:_0x589df9,shouldBeAddedGroupJSON:_0x3bc7bb}=_0x313ff4,_0x1c1dcd=_0x589df9[_0x411729(0x416)],_0x433cd7=new _0x296f39();_0x433cd7[_0x411729(0x2af)](_0x510204);const _0x3237c4={'cellInfo':_0x1c1dcd,'view':_0x433cd7,'isEmpty':_0x1ad448};if(!await _0x294ed1[_0x411729(0x274)](ie)[_0x411729(0x204)][_0x411729(0x333)](be)(!0x0,_0x3237c4))return!0x1;const _0x3b6e0f=Fe(_0x294ed1,_0x433cd7,_0x1c1dcd,_0x1ad448),_0x2547f0=we(_0x294ed1,_0x3237c4),{undos:_0x5920ba,redos:_0x4d4b58}=Ie(_0x42db40,{'pivotTableId':_0x27dd32,'unitId':_0x247f51,'subUnitId':_0x4a14f5},_0x1508b6);return _0x3bc7bb&&(_0x4d4b58[_0x411729(0x273)]({'id':Zo['id'],'params':{'pivotTableId':_0x27dd32,'fieldJSON':_0x3bc7bb,'unitId':_0x247f51,'subUnitId':_0x4a14f5}}),_0x5920ba['push']({'id':zo['id'],'params':{'pivotTableId':_0x27dd32,'dataFieldId':_0x3bc7bb['id'],'unitId':_0x247f51,'subUnitId':_0x4a14f5}})),_0x2fdef8([..._0x3b6e0f[_0x411729(0x1fe)],..._0x2547f0['redos'],..._0x4d4b58],_0x42db40),_0x159451[_0x411729(0x219)]({'unitID':_0x247f51,'redoMutations':[..._0x3b6e0f[_0x411729(0x1fe)],..._0x2547f0[_0x411729(0x1fe)],..._0x4d4b58],'undoMutations':[..._0x3b6e0f[_0x411729(0x3f1)],..._0x2547f0[_0x411729(0x3f1)],..._0x5920ba]}),!0x0;}},hs=()=>typeof process<'u'&&process[_0x91438c(0x430)]!=null&&process[_0x91438c(0x430)][_0x91438c(0x316)]!=null,Ct={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x434),'handler'(_0x577c88,_0x10ff57){const _0x5ae362=_0x91438c;var _0x333d5c;if(!_0x10ff57)return!0x1;const _0x4c577c=_0x577c88[_0x5ae362(0x274)](_0x495f63);if(!!_0x4c577c[_0x5ae362(0x3d4)](Y))return!0x0;const _0x1a2e44=_0x577c88[_0x5ae362(0x274)](_0x2c885f),_0x451b97=_0x577c88[_0x5ae362(0x274)]($),{pivotTableId:_0x340598,pivotTableConfig:_0x30e3d5,collectionConfig:_0x51578a,unitId:_0x5e265c,subUnitId:_0x5806f3}=_0x10ff57,{sourceRangeInfo:_0x2e53cd,fieldsConfig:_0x7ccde,targetCellInfo:_0x195c81}=_0x30e3d5,_0x272c1b=_0x1a2e44[_0x5ae362(0x2f0)](_0x5e265c);if(!_0x272c1b||!_0x272c1b[_0x5ae362(0x243)](_0x5806f3))return!0x1;if(!hs()){let _0xd6ad50=0x0;_0x272c1b[_0x5ae362(0x216)]()[_0x5ae362(0x342)](_0x45d5b9=>{const _0x12c158=_0x5ae362;var _0x5e6fdb,_0x29ad2c;_0xd6ad50+=(_0x29ad2c=(_0x5e6fdb=_0x451b97['getSubUnitPivotConfigs'](_0x5e265c,_0x45d5b9['getSheetId']()))==null?void 0x0:_0x5e6fdb[_0x12c158(0x244)])!=null?_0x29ad2c:0x0;});const _0x191b5a=(_0x333d5c=_0x4c577c[_0x5ae362(0x3d4)](_0x5f27fd))!=null?_0x333d5c:{},{ls:_0x16e5c5,pbk:_0x3c3bec}=_0x191b5a;if(!Ko(_0x16e5c5,_0x3c3bec))throw new _0x5b4394(_0x5ae362(0x37d));const _0x2bf750=go(so,_0x16e5c5,_0x3c3bec)[_0x5ae362(0x39e)];if(_0xd6ad50>=_0x2bf750)throw new _0x5b4394(_0x5ae362(0x37d));}if(!_0x51578a||!_0x7ccde)return!0x1;const {collection:_0x151a9d,updateDataFieldList:_0x38a08e}=_0x451b97[_0x5ae362(0x2e4)](_0x340598,_0x51578a,_0x2e53cd,_0x195c81);_0x451b97['refreshData'](_0x151a9d,_0x38a08e,_0x2e53cd);const _0x3c4c23=new _0x33f1c5(_0x151a9d,void 0x0,_0x340598);_0x3c4c23[_0x5ae362(0x3ea)](_0x7ccde);const _0x223fa5=JSON[_0x5ae362(0x3d7)](JSON[_0x5ae362(0x2ff)](_0x30e3d5));return _0x451b97[_0x5ae362(0x1f6)](_0x5e265c,_0x5806f3,_0x340598,_0x3c4c23,_0x223fa5),_0x451b97['addDirtyPivotTable']({'unitId':_0x5e265c,'subUnitId':_0x5806f3,'token':_0x340598,'type':J['Add'],'pivotConfig':_0x223fa5}),!0x0;}},ps={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':'sheet.command.add-pivot-table-with-config',async 'handler'(_0xb1f966,_0x43affe){const _0x4bdd86=_0x91438c;if(!_0x43affe)return!0x1;const {sourceDataInfo:_0x1d49af,pivotTableConfig:_0x2a2cf8}=_0x43affe;if(!_0x1d49af||!_0x2a2cf8)return!0x1;const {unitId:_0x153be3,subUnitId:_0x1407f7,range:_0x85f826}=_0x1d49af,_0x2f0acb=_0xb1f966[_0x4bdd86(0x274)](_0x2c885f),_0x46d276=_0xb1f966[_0x4bdd86(0x274)](z),_0x238d50=_0xb1f966[_0x4bdd86(0x274)](_0x3aca7e),_0x1aefa0=_0xb1f966[_0x4bdd86(0x274)](_0xa7b251),_0x253b0f=_0x2f0acb['getUnit'](_0x153be3);if(!_0x253b0f)return!0x1;const _0x4b6889=_0x253b0f[_0x4bdd86(0x243)](_0x1407f7);if(!_0x4b6889)return!0x1;const _0x2281ee=_0x387c10(0x8),_0x4e1adc=_0x85f826||{'startRow':0x0,'startColumn':0x0,'endRow':_0x4b6889[_0x4bdd86(0x1ce)]()-0x1,'endColumn':_0x4b6889[_0x4bdd86(0x2fb)]()-0x1};_0x4e1adc[_0x4bdd86(0x23e)]=_0x5692f0['NORMAL'];const _0x14339b=(await _0x46d276[_0x4bdd86(0x328)]({'unitId':_0x153be3,'subUnitId':_0x1407f7,'pivotTableId':_0x2281ee,'params':{'type':k[_0x4bdd86(0x2b5)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x153be3,'sheetName':_0x4b6889[_0x4bdd86(0x30e)](),'subUnitId':_0x1407f7,'range':_0x4e1adc},'pivotTableId':_0x2281ee,'pivotTableIndexConfig':_0x2a2cf8}}}))[_0x4bdd86(0x2a8)][_0x4bdd86(0x3c1)];if(!_0x14339b)return!0x1;const {isEmpty:_0x4b2b98,fieldsConfig:_0x1cb032,collectionConfig:_0x38e646,changesets:_0x3ae020}=_0x14339b,_0x476535=_0x253b0f[_0x4bdd86(0x216)]()[_0x4bdd86(0x3e7)],_0x369843=_0x4fdda5({'rowCount':_0x4b6889['getRowCount']()-0x1,'columnCount':_0x4b6889[_0x4bdd86(0x2fb)]()-0x1});_0x369843['id']=_0x23e506(),_0x369843[_0x4bdd86(0x326)]=_0x253b0f[_0x4bdd86(0x3dd)](''+_0x238d50['t'](_0x4bdd86(0x1de)));const _0x447f8b={'index':_0x476535,'sheet':_0x369843,'unitId':_0x153be3},{redos:_0x3277cd}=Ie(_0x1aefa0,{'pivotTableId':_0x2281ee,'unitId':_0x153be3,'subUnitId':_0x369843['id']},_0x3ae020),_0x466d3c=[{'id':_0x138b11['id'],'params':_0x447f8b},{'id':Ct['id'],'params':{'unitId':_0x153be3,'subUnitId':_0x369843['id'],'pivotTableId':_0x2281ee,'pivotTableConfig':{'isEmpty':_0x4b2b98,'fieldsConfig':_0x1cb032,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x153be3,'subUnitId':_0x369843['id']},'sourceRangeInfo':{'subUnitId':_0x1407f7,'unitId':_0x153be3,'range':_0x4e1adc,'sheetName':_0x4b6889[_0x4bdd86(0x30e)]()}},'collectionConfig':_0x38e646}},..._0x3277cd];return _0x2fdef8(_0x466d3c,_0x1aefa0),!0x0;}},xt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x301),'handler'(_0x59157d,_0x1ef293){const _0x5ab8a7=_0x91438c;if(!_0x1ef293)return!0x1;if(!!_0x59157d[_0x5ab8a7(0x274)](_0x495f63)[_0x5ab8a7(0x3d4)](Y))return!0x0;const {pivotTableId:_0x4cd03a,unitId:_0x4293c2,subUnitId:_0x694322}=_0x1ef293,_0x43a318=_0x59157d['get']($);return _0x43a318[_0x5ab8a7(0x294)](_0x4293c2,_0x694322,_0x4cd03a)?(_0x43a318[_0x5ab8a7(0x1ca)]({'unitId':_0x4293c2,'subUnitId':_0x694322,'token':_0x4cd03a,'type':J[_0x5ab8a7(0x354)]}),_0x43a318[_0x5ab8a7(0x23b)](_0x4293c2,_0x694322,_0x4cd03a),!0x0):!0x1;}},Is={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x202),async 'handler'(_0x5059ba,_0x222713){const _0x4b5314=_0x91438c;var _0x429ae4,_0x1ef46e;const _0x9e99fd=_0x5059ba[_0x4b5314(0x274)](_0xa7b251),_0x2d7a5a=_0x5059ba[_0x4b5314(0x274)](_0x2c885f),_0x47da6f=_0x5059ba[_0x4b5314(0x274)](_0x3aca7e),_0x153dd6=_0x5059ba['get'](z),_0x544035=_0x5059ba[_0x4b5314(0x274)](_0x4e1a76),_0x4f7d1a=_0x5059ba[_0x4b5314(0x274)](he),_0x3406ec=_0x5059ba['get'](_0x495f63);if(!_0x222713)return!0x1;const {pivotTableConfig:_0x57160d,positionType:_0x28306a}=_0x222713,{targetCellInfo:_0x2a53e8,sourceRangeInfo:_0x1324e9}=_0x57160d,{unitId:_0x2150d0,subUnitId:_0x498d0e}=_0x2a53e8,_0x5e3ea9=_0x2d7a5a[_0x4b5314(0x2f0)](_0x2150d0);if(!_0x5e3ea9)return!0x1;let _0x59a199=0x0;_0x5e3ea9[_0x4b5314(0x216)]()[_0x4b5314(0x342)](_0x39710d=>{const _0x382b01=_0x4b5314;var _0x296a0e,_0x257dd1;_0x59a199+=(_0x257dd1=(_0x296a0e=_0x4f7d1a[_0x382b01(0x239)](_0x2150d0,_0x39710d[_0x382b01(0x222)]()))==null?void 0x0:_0x296a0e[_0x382b01(0x244)])!=null?_0x257dd1:0x0;});const _0x2ca650=(_0x429ae4=_0x3406ec[_0x4b5314(0x3d4)](_0x5f27fd))!=null?_0x429ae4:{},{ls:_0x139b82,pbk:_0x1c478c}=_0x2ca650;if(!Ko(_0x139b82,_0x1c478c))return!0x1;const _0x20090e=go(so,_0x139b82,_0x1c478c)[_0x4b5314(0x39e)];if(_0x59a199>=_0x20090e)return!0x1;const _0x58cec4=_0x222713[_0x4b5314(0x3ff)]||_0x387c10(0x8),_0x46eed8=(await _0x153dd6['getPivotDisplayConfig']({'unitId':_0x2150d0,'subUnitId':_0x498d0e,'pivotTableId':_0x58cec4,'params':{'type':k[_0x4b5314(0x362)],'addPivotTable':{'sourceRangeInfo':_0x1324e9,'pivotTableId':_0x58cec4}}}))[_0x4b5314(0x2a8)][_0x4b5314(0x1f6)];if(!_0x46eed8)return!0x1;const {view:_0x2620f0,isEmpty:_0x56cf50,fieldsConfig:_0x56a0f2,collectionConfig:_0x4c3087}=_0x46eed8,_0x878589=[],_0x1fecf2=[];if(_0x28306a===Lo[_0x4b5314(0x238)]){const _0x1d96fd=_0x5e3ea9['getSheets']()[_0x4b5314(0x3e7)],_0x3875bf=_0x4fdda5({});_0x3875bf['id']=_0x57160d[_0x4b5314(0x416)][_0x4b5314(0x2ac)],_0x3875bf['name']=(_0x1ef46e=_0x57160d['targetCellInfo'][_0x4b5314(0x3de)])!=null?_0x1ef46e:_0x5e3ea9[_0x4b5314(0x3dd)](''+_0x47da6f['t'](_0x4b5314(0x1de)));const _0xa3fb75={'index':_0x1d96fd,'sheet':_0x3875bf,'unitId':_0x2150d0},_0x4cc8e8=_0x5c1652(_0x5059ba,_0xa3fb75);_0x878589[_0x4b5314(0x3fe)]({'id':_0x2ac059['id'],'params':_0x4cc8e8}),_0x1fecf2[_0x4b5314(0x3fe)]({'id':_0x5c326b['id'],'params':_0xa3fb75});}else{if(!_0x5e3ea9[_0x4b5314(0x243)](_0x498d0e))return!0x1;const _0x22d0b4=Fe(_0x5059ba,new _0x296f39(),_0x2a53e8,!0x0);_0x1fecf2[_0x4b5314(0x3fe)](..._0x22d0b4['redos']),_0x878589[_0x4b5314(0x3fe)](..._0x22d0b4[_0x4b5314(0x3f1)]);const _0x54af73={'cellInfo':_0x2a53e8,'view':_0x2620f0,'isEmpty':_0x56cf50};if(!await _0x5059ba['get'](ie)[_0x4b5314(0x204)][_0x4b5314(0x333)](be)(!0x0,_0x54af73))return!0x1;const _0xdacdc7=we(_0x5059ba,_0x54af73);_0x1fecf2['push'](..._0xdacdc7[_0x4b5314(0x1fe)]),_0x878589[_0x4b5314(0x3fe)](..._0xdacdc7['undos']);}return _0x1fecf2[_0x4b5314(0x3fe)]({'id':Ct['id'],'params':{'unitId':_0x2a53e8[_0x4b5314(0x1cc)],'subUnitId':_0x2a53e8[_0x4b5314(0x2ac)],'pivotTableId':_0x58cec4,'pivotTableConfig':{'targetCellInfo':_0x2a53e8,'sourceRangeInfo':_0x1324e9,'fieldsConfig':_0x56a0f2},'collectionConfig':_0x4c3087}}),_0x878589['unshift']({'id':xt['id'],'params':{'unitId':_0x2150d0,'subUnitId':_0x498d0e,'pivotTableId':_0x58cec4}}),_0x2fdef8(_0x1fecf2,_0x9e99fd)&&_0x544035['pushUndoRedo']({'unitID':_0x2150d0,'undoMutations':_0x878589,'redoMutations':_0x1fecf2}),!0x0;}},ms={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x392),async 'handler'(_0x296844,_0x2b5470){const _0x21a5af=_0x91438c;if(!_0x2b5470)return!0x1;const _0x22f09f=_0x296844[_0x21a5af(0x274)](_0xa7b251),_0xf5a4a9=_0x296844[_0x21a5af(0x274)](z),_0x4f7e43=_0x296844[_0x21a5af(0x274)](_0x4e1a76),{pivotTableId:_0x32bd3d,fieldId:_0x3f6980,area:_0x1d7e9f,index:_0x542034,unitId:_0x579004,subUnitId:_0x5cdfa8}=_0x2b5470,_0x1926ec=(await _0xf5a4a9['getPivotDisplayConfig']({'unitId':_0x579004,'subUnitId':_0x5cdfa8,'pivotTableId':_0x32bd3d,'params':{'type':k['MovePivotField'],'movePivotField':{'fieldId':_0x3f6980,'area':_0x1d7e9f,'index':_0x542034}}}))[_0x21a5af(0x2a8)][_0x21a5af(0x353)];if(!_0x1926ec)return!0x1;const {changesets:_0x434f4a,view:_0x4aac44,isEmpty:_0x43bbe0,pivotTableConfig:_0xe2eeff}=_0x1926ec,_0x53dbd1=_0xe2eeff[_0x21a5af(0x416)],_0x3157ee=new _0x296f39();_0x3157ee[_0x21a5af(0x2af)](_0x4aac44);const _0x58c0c0={'cellInfo':_0x53dbd1,'view':_0x3157ee,'isEmpty':_0x43bbe0};if(!await _0x296844['get'](ie)[_0x21a5af(0x204)][_0x21a5af(0x333)](be)(!0x0,_0x58c0c0))return!0x1;const _0x4fa47b=Fe(_0x296844,_0x3157ee,_0x53dbd1,_0x43bbe0),_0x4d09ec=we(_0x296844,_0x58c0c0),{redos:_0x1cb7fa,undos:_0x462cb3}=Ie(_0x22f09f,{'pivotTableId':_0x32bd3d,'unitId':_0x579004,'subUnitId':_0x5cdfa8},_0x434f4a);return _0x2fdef8([..._0x4fa47b[_0x21a5af(0x1fe)],..._0x4d09ec['redos'],..._0x1cb7fa],_0x22f09f),_0x4f7e43['pushUndoRedo']({'unitID':_0x579004,'redoMutations':[..._0x4fa47b[_0x21a5af(0x1fe)],..._0x4d09ec[_0x21a5af(0x1fe)],..._0x1cb7fa],'undoMutations':[..._0x4fa47b[_0x21a5af(0x3f1)],..._0x4d09ec['undos'],..._0x462cb3]}),!0x0;}},pt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x1b2),'handler'(_0x3f0b8f,_0x410313){const _0x52ccc6=_0x91438c;if(!_0x410313)return!0x1;if(!!_0x3f0b8f[_0x52ccc6(0x274)](_0x495f63)[_0x52ccc6(0x3d4)](Y))return!0x0;const {pivotTableId:_0x15983d,targetCellPosition:_0x1a4a72,unitId:_0x501171,subUnitId:_0x45a903}=_0x410313,_0x3815f3=_0x3f0b8f[_0x52ccc6(0x274)]($);if(!_0x3815f3[_0x52ccc6(0x31f)](_0x410313[_0x52ccc6(0x3ff)]))return!0x1;const _0x1aaa0c=_0x3815f3[_0x52ccc6(0x2ba)](_0x15983d);if(!_0x1aaa0c)return!0x1;const _0x310189=_0x3815f3[_0x52ccc6(0x232)](_0x1aaa0c[_0x52ccc6(0x1cc)],_0x410313[_0x52ccc6(0x3ff)]);if(!_0x310189)return!0x1;const _0x12dde7=_0x3815f3['getPivotTableConfig'](_0x1aaa0c['unitId'],_0x1aaa0c[_0x52ccc6(0x2ac)],_0x15983d);if(!_0x12dde7)return!0x1;const _0x2731f4=_0x4b3148['deepClone'](_0x12dde7);_0x2731f4[_0x52ccc6(0x416)]={'unitId':_0x501171,'subUnitId':_0x45a903,'row':_0x1a4a72[_0x52ccc6(0x38d)],'col':_0x1a4a72[_0x52ccc6(0x378)]};const _0x1d218e=_0x310189[_0x52ccc6(0x2e3)]();if(_0x1aaa0c['subUnitId']===_0x45a903&&_0x1aaa0c[_0x52ccc6(0x1cc)]===_0x501171)_0x3815f3['setPivotTable'](_0x501171,_0x45a903,_0x15983d,_0x2731f4),_0x3815f3[_0x52ccc6(0x1ca)]({'unitId':_0x501171,'subUnitId':_0x45a903,'token':_0x15983d,'type':J[_0x52ccc6(0x20b)]});else{_0x3815f3['addDirtyPivotTable']({'unitId':_0x1aaa0c[_0x52ccc6(0x1cc)],'subUnitId':_0x1aaa0c['subUnitId'],'token':_0x15983d,'type':J[_0x52ccc6(0x354)]}),_0x3815f3['removePivotTable'](_0x1aaa0c['unitId'],_0x1aaa0c['subUnitId'],_0x15983d);const _0x9e5e49=_0x3815f3[_0x52ccc6(0x2e4)](_0x15983d,_0x1d218e,_0x12dde7[_0x52ccc6(0x407)],_0x2731f4[_0x52ccc6(0x416)]),_0x2efbf7=new _0x33f1c5(_0x9e5e49[_0x52ccc6(0x278)],void 0x0,_0x15983d);_0x2efbf7[_0x52ccc6(0x3ea)](_0x2731f4[_0x52ccc6(0x2c6)]),_0x3815f3[_0x52ccc6(0x1f6)](_0x501171,_0x45a903,_0x15983d,_0x2efbf7,_0x2731f4),_0x3815f3[_0x52ccc6(0x1ca)]({'unitId':_0x501171,'subUnitId':_0x45a903,'token':_0x15983d,'type':J[_0x52ccc6(0x33a)],'pivotConfig':_0x2731f4});}return!0x0;}},Cs={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x200),'handler':(_0x45ad89,_0x16f805)=>{const _0xcf1be7=_0x91438c,_0x4c2cfa=_0x45ad89[_0xcf1be7(0x274)](_0xa7b251),_0x3f62bb=_0x45ad89[_0xcf1be7(0x274)](_0x4e1a76),_0x575a4f=_0x45ad89[_0xcf1be7(0x274)](he),_0x13b1d6=_0x45ad89['get'](_0x2c885f);if(!_0x16f805)return!0x1;const _0xef25b=_0x1a5e6f(_0x13b1d6);if(!_0xef25b)return!0x1;const {unitId:_0x8d2f8c,subUnitId:_0x305b2f,workbook:_0x4a3a89}=_0xef25b,_0x4a8c94=_0x575a4f[_0xcf1be7(0x294)](_0x16f805[_0xcf1be7(0x254)][_0xcf1be7(0x1cc)],_0x16f805[_0xcf1be7(0x254)][_0xcf1be7(0x2ac)],_0x16f805[_0xcf1be7(0x3ff)]);if(!_0x4a8c94)return!0x1;const _0x1fecc7=_0x4a3a89[_0xcf1be7(0x243)](_0x16f805['targetCellInfo']['subUnitId']);if(!_0x1fecc7)throw new Error(_0xcf1be7(0x3e4));const _0x1ffae4=_0x1fecc7[_0xcf1be7(0x1ce)](),_0x5e1c20=_0x1fecc7[_0xcf1be7(0x2fb)]();if(_0x16f805[_0xcf1be7(0x416)][_0xcf1be7(0x38d)]>_0x1ffae4||_0x16f805[_0xcf1be7(0x416)]['col']>_0x5e1c20)throw new Error(_0xcf1be7(0x2bc));const _0x408c4=[{'id':pt['id'],'params':{'unitId':_0x8d2f8c,'subUnitId':_0x16f805['targetCellInfo'][_0xcf1be7(0x2ac)],'pivotTableId':_0x16f805[_0xcf1be7(0x3ff)],'targetCellPosition':{'row':_0x16f805['targetCellInfo'][_0xcf1be7(0x38d)],'col':_0x16f805[_0xcf1be7(0x416)][_0xcf1be7(0x378)]}}}],_0x1ec05a=[{'id':pt['id'],'params':{'unitId':_0x8d2f8c,'subUnitId':_0x305b2f,'pivotTableId':_0x16f805[_0xcf1be7(0x3ff)],'targetCellPosition':{'row':_0x4a8c94['targetCellInfo'][_0xcf1be7(0x38d)],'col':_0x4a8c94['targetCellInfo'][_0xcf1be7(0x378)]}}}];return _0x2fdef8(_0x408c4,_0x4c2cfa)&&_0x3f62bb[_0xcf1be7(0x219)]({'unitID':_0x8d2f8c,'undoMutations':_0x1ec05a,'redoMutations':_0x408c4}),!0x0;}},bs={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':'sheet.command.pivot-drill-down',async 'handler'(_0x32a8b8,_0x481cba){const _0x2e6d44=_0x91438c;var _0x29a48a;if(!_0x481cba)return!0x1;const _0x4d2afa=_0x32a8b8['get'](_0x2c885f),_0x52f7b1=_0x1a5e6f(_0x4d2afa);if(!_0x52f7b1)return!0x1;const {unitId:_0xc05cdb,subUnitId:_0x3555cf,workbook:_0x4a0fe2}=_0x52f7b1,{row:_0x22513a,col:_0x122e8b}=_0x481cba,_0x1c0ddf=_0x32a8b8[_0x2e6d44(0x274)](Ve),_0x422ac6=_0x1c0ddf[_0x2e6d44(0x311)](_0xc05cdb,_0x3555cf,_0x22513a,_0x122e8b);if(!_0x422ac6)return!0x1;const _0x1ffdb8=(_0x29a48a=_0x1c0ddf['getPivotItemRenderInfoCache'](_0xc05cdb,_0x3555cf,_0x422ac6))==null?void 0x0:_0x29a48a['areaInfo'];if(!_0x1ffdb8)return!0x1;const _0x5f1a67=_0x32a8b8['get'](he)[_0x2e6d44(0x294)](_0xc05cdb,_0x3555cf,_0x422ac6);if(!_0x5f1a67)return!0x1;const {rowInfo:_0x18290d,colInfo:_0x134ad9}=_0x1ffdb8,_0x188a39=_0x18290d[_0x22513a][_0x2e6d44(0x35e)],_0x47ad35=_0x134ad9[_0x122e8b][_0x2e6d44(0x35e)],_0xea1c7d=_0x18290d[_0x22513a][_0x2e6d44(0x41c)],_0x389a6e=_0x134ad9[_0x122e8b][_0x2e6d44(0x41c)],_0x583c2b=_0x188a39['concat'](_0x47ad35),_0xa6e38d=_0x5f1a67[_0x2e6d44(0x2c6)][_0x2e6d44(0x3c0)][_0x2e6d44(0x253)](0x0,_0xea1c7d),_0x5e1826=_0x5f1a67[_0x2e6d44(0x2c6)][_0x2e6d44(0x293)][_0x2e6d44(0x253)](0x0,_0x389a6e),_0x380bde=_0xa6e38d[_0x2e6d44(0x2d2)](_0x5e1826),_0x4c460d=_0x583c2b[_0x2e6d44(0x39b)]((_0x52aa8e,_0x2db1b9)=>[_0x52aa8e,_0x380bde[_0x2db1b9]]),_0xc25d14=(await _0x32a8b8['get'](z)['getPivotDisplayConfig']({'unitId':_0xc05cdb,'subUnitId':_0x3555cf,'pivotTableId':_0x422ac6,'params':{'type':k[_0x2e6d44(0x435)],'drillDown':{'tuple':_0x4c460d}}}))['result'][_0x2e6d44(0x3d1)];if(!_0xc25d14)return!0x1;const {indexes:_0x2fa99c,range:_0x1c16f2,sourceUnitId:_0x428145,sourceSubUnitId:_0x3f3a34,formatMap:_0x4765a4}=_0xc25d14,{startRow:_0x6dad62,endRow:_0x301cb0,startColumn:_0x300e36,endColumn:_0x31e920}=_0x1c16f2,_0x393b26=new _0x17d6f8(),_0x147e5f=_0x301cb0-_0x6dad62,_0x2989e2=_0x31e920-_0x300e36,_0x3f812b={},_0x40477d=_0x1a5e6f(_0x4d2afa,{'unitId':_0x428145,'subUnitId':_0x3f3a34});if(!_0x40477d)return!0x1;const _0x3a29b2=fe[_0x2e6d44(0x3ae)],_0x5e5931=fe[_0x2e6d44(0x396)],_0x1a268a=fe['subTotalStyle'],_0x2b7bd0=_0x4a0fe2['getStyles']()[_0x2e6d44(0x1ba)](_0x3a29b2),_0x2b0bfd=_0x4a0fe2['getStyles']()['setValue'](_0x5e5931),_0x11e906=_0x4a0fe2['getStyles']()[_0x2e6d44(0x1ba)](_0x1a268a),{worksheet:_0x29e2c5}=_0x40477d;let _0x2c361f=0x0;const _0x51efc4=0x1;_0x2fa99c[_0x2e6d44(0x342)](_0x1d6841=>{const _0x5d286a=_0x2e6d44;for(let _0xb2126b=0x0;_0xb2126b<=_0x31e920-_0x300e36;_0xb2126b++)_0x393b26[_0x5d286a(0x1ba)](_0x2c361f,_0xb2126b,_0x29e2c5[_0x5d286a(0x3e5)](_0x1d6841+_0x1c16f2[_0x5d286a(0x34c)]+_0x51efc4,_0xb2126b));_0x2c361f++;});for(let _0x1fc0eb=_0x300e36;_0x1fc0eb<=_0x31e920;_0x1fc0eb++){const _0x35a326=_0x29e2c5[_0x2e6d44(0x3e5)](_0x6dad62,_0x1fc0eb);_0x3f812b[_0x6dad62]||(_0x3f812b[_0x6dad62]={}),_0x3f812b[_0x6dad62][_0x1fc0eb]={..._0x35a326,'s':_0x2b7bd0};}let _0x102755=0x1;const _0x7dda1d={},_0x211b2c={};_0x393b26[_0x2e6d44(0x3c2)]((_0x46d16e,_0x54e62b)=>{_0x54e62b['forEach'](_0x2b2030=>{const _0x1e5e02=_0x3105,_0x43afc5=_0x393b26['getValue'](_0x46d16e,_0x2b2030);if(_0x3f812b[_0x102755]||(_0x3f812b[_0x102755]={}),_0x3f812b[_0x102755][_0x2b2030]={..._0x43afc5,'s':_0x102755%0x2===0x0?_0x11e906:_0x2b0bfd},_0x4765a4[_0x2b2030]&&_0x46d16e>=0x0){const _0x303b70=_0x102755%0x2===0x0;let _0x3e16ff=_0x303b70?_0x211b2c[_0x2b2030]:_0x7dda1d[_0x2b2030];_0x3e16ff||(_0x3e16ff=_0x4a0fe2[_0x1e5e02(0x334)]()['setValue']({..._0x303b70?_0x1a268a:_0x5e5931,'n':{'pattern':_0x4765a4[_0x2b2030]}}),_0x303b70?_0x211b2c[_0x2b2030]=_0x3e16ff:_0x7dda1d[_0x2b2030]=_0x3e16ff),_0x3f812b[_0x102755][_0x2b2030]['s']=_0x3e16ff;}}),_0x102755++;});const _0x5b51a6=new _0x17d6f8(_0x3f812b),_0x4b8451={};_0x5b51a6[_0x2e6d44(0x27d)]((_0x43153f,_0x178d86,_0x4f1d2c)=>{_0x4b8451[_0x43153f]||(_0x4b8451[_0x43153f]={}),_0x4b8451[_0x43153f][_0x178d86]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x579b63=[],_0x17a308=[],_0x14aa36=_0x4a0fe2['getSheets']()[_0x2e6d44(0x3e7)],_0x2588c4=_0x4fdda5({'rowCount':Math[_0x2e6d44(0x3b0)](_0x3bf4db,_0x147e5f+0xa),'columnCount':Math[_0x2e6d44(0x3b0)](_0x310049,_0x2989e2+0x5)}),_0x583eaf=_0x32a8b8[_0x2e6d44(0x274)](_0x3aca7e);_0x2588c4['id']=_0x23e506(),_0x2588c4[_0x2e6d44(0x326)]=_0x4a0fe2[_0x2e6d44(0x3dd)](''+_0x583eaf['t'](_0x2e6d44(0x1de)));const _0x52341f={'index':_0x14aa36,'sheet':_0x2588c4,'unitId':_0xc05cdb},_0x273b4a=_0x5c1652(_0x32a8b8,_0x52341f);_0x17a308['push']({'id':_0x5c326b['id'],'params':_0x52341f}),_0x579b63[_0x2e6d44(0x3fe)]({'id':_0x2ac059['id'],'params':_0x273b4a}),_0x17a308[_0x2e6d44(0x3fe)]({'id':_0x24ac46['id'],'params':{'unitId':_0xc05cdb,'subUnitId':_0x2588c4['id'],'cellValue':_0x3f812b}}),_0x579b63['unshift']({'id':_0x24ac46['id'],'params':{'unitId':_0xc05cdb,'subUnitId':_0x2588c4['id'],'cellValue':_0x4b8451}});const _0x320551={'startRow':0x0,'startColumn':0x0,'endRow':_0x102755-0x1,'endColumn':_0x31e920};_0x17a308[_0x2e6d44(0x3fe)]({'id':_0x1a6d57['id'],'params':{'unitId':_0xc05cdb,'subUnitId':_0x2588c4['id'],'range':_0x320551}}),_0x579b63['unshift']({'id':_0x3a8b22['id'],'params':{'unitId':_0xc05cdb,'subUnitId':_0x2588c4['id']}});const _0x1681d6=_0x32a8b8[_0x2e6d44(0x274)](_0xa7b251);return _0x2fdef8(_0x17a308,_0x1681d6)&&_0x32a8b8[_0x2e6d44(0x274)](_0x4e1a76)[_0x2e6d44(0x219)]({'unitID':_0xc05cdb,'undoMutations':_0x579b63,'redoMutations':_0x17a308}),!0x0;}},Ss={'type':_0x2e18c8['COMMAND'],'id':_0x91438c(0x324),async 'handler'(_0x43abed,_0x44f577){const _0x3d3bcf=_0x91438c;if(!_0x44f577)return!0x1;const _0x585558=_0x43abed[_0x3d3bcf(0x274)](_0xa7b251),_0x4f5882=_0x43abed[_0x3d3bcf(0x274)](z),_0x358970=_0x43abed[_0x3d3bcf(0x274)](_0x4e1a76),{pivotTableId:_0x19b591,fieldIds:_0x42b5a6,unitId:_0x458f81,subUnitId:_0x2c6a7e}=_0x44f577,_0x3c39c5=(await _0x4f5882['getPivotDisplayConfig']({'unitId':_0x458f81,'subUnitId':_0x2c6a7e,'pivotTableId':_0x19b591,'params':{'type':k[_0x3d3bcf(0x300)],'removePivotField':{'fieldIds':_0x42b5a6}}}))[_0x3d3bcf(0x2a8)][_0x3d3bcf(0x3ce)];if(!_0x3c39c5)return!0x1;const {view:_0x20c8a5,changesets:_0x1b10f9,isEmpty:_0x2b0e48,pivotTableConfig:_0x590d66}=_0x3c39c5,_0x333201=_0x590d66[_0x3d3bcf(0x416)],_0x3e9ba6=new _0x296f39();_0x3e9ba6[_0x3d3bcf(0x2af)](_0x20c8a5);const _0xb58998={'cellInfo':_0x333201,'view':_0x3e9ba6,'isEmpty':_0x2b0e48};if(!await _0x43abed['get'](ie)[_0x3d3bcf(0x204)][_0x3d3bcf(0x333)](be)(!0x0,_0xb58998))return!0x1;const _0x56c6df=Fe(_0x43abed,_0x3e9ba6,_0x333201,_0x2b0e48),_0x15e038=we(_0x43abed,_0xb58998),{redos:_0x56a3ec,undos:_0x424952}=Ie(_0x585558,{'pivotTableId':_0x19b591,'unitId':_0x458f81,'subUnitId':_0x2c6a7e},_0x1b10f9);return _0x2fdef8([..._0x56c6df[_0x3d3bcf(0x1fe)],..._0x15e038[_0x3d3bcf(0x1fe)],..._0x56a3ec],_0x585558),_0x358970[_0x3d3bcf(0x219)]({'unitID':_0x458f81,'redoMutations':[..._0x56c6df['redos'],..._0x15e038['redos'],..._0x56a3ec],'undoMutations':[..._0x56c6df[_0x3d3bcf(0x3f1)],..._0x15e038[_0x3d3bcf(0x3f1)],..._0x424952]}),!0x0;}},Ps={'type':_0x2e18c8['COMMAND'],'id':_0x91438c(0x3b5),async 'handler'(_0x42f50e,_0x5151cb){const _0x2aeac9=_0x91438c;if(!_0x5151cb)return!0x1;const _0x2315bb=_0x42f50e[_0x2aeac9(0x274)](_0xa7b251),_0x342f5a=_0x42f50e[_0x2aeac9(0x274)](_0x4e1a76),_0x13eb86=_0x42f50e[_0x2aeac9(0x274)](z),{resetArea:_0x31fbad,pivotTableId:_0x1d8092,unitId:_0xfe8575,subUnitId:_0x114fca}=_0x5151cb,_0x5910e4=(await _0x13eb86[_0x2aeac9(0x328)]({'unitId':_0xfe8575,'subUnitId':_0x114fca,'pivotTableId':_0x1d8092,'params':{'type':k[_0x2aeac9(0x24f)],'resetPivotTable':{'pivotTableId':_0x1d8092,'resetArea':_0x31fbad}}}))[_0x2aeac9(0x2a8)]['resetPivotTable'];if(!_0x5910e4)return!0x1;const {changesets:_0x51b524}=_0x5910e4,{redos:_0x90ea53,undos:_0x4e6a5e}=Ie(_0x2315bb,{'pivotTableId':_0x1d8092,'unitId':_0xfe8575,'subUnitId':_0x114fca},_0x51b524);return _0x2fdef8(_0x90ea53,_0x2315bb),_0x342f5a[_0x2aeac9(0x219)]({'unitID':_0xfe8575,'redoMutations':_0x90ea53,'undoMutations':_0x4e6a5e}),!0x0;}},ys={'type':_0x2e18c8['COMMAND'],'id':_0x91438c(0x309),async 'handler'(_0x4ea3a0,_0x1e1a63){const _0x424450=_0x91438c,_0x33fcbe=_0x4ea3a0[_0x424450(0x274)](_0xa7b251),_0x4592b6=_0x4ea3a0[_0x424450(0x274)](z),_0x436407=_0x4ea3a0[_0x424450(0x274)](Ve),_0x335802=_0x4ea3a0['get'](_0x2c885f),_0x14c138=_0x4ea3a0[_0x424450(0x274)](_0x3aca7e),_0x58ad71=_0x4ea3a0[_0x424450(0x274)](_0x4e1a76);if(!_0x1e1a63)return!0x1;const {unitId:_0x274a9b,subUnitId:_0x15ada7,row:_0x21f862,col:_0x1c3829,collapse:_0x36e4e8}=_0x1e1a63,_0x518860=_0x335802['getUnit'](_0x274a9b);if(!_0x518860||!_0x518860[_0x424450(0x243)](_0x15ada7))return!0x1;const _0x3c7b60=_0x436407[_0x424450(0x311)](_0x274a9b,_0x15ada7,_0x21f862,_0x1c3829);if(!_0x3c7b60)return!0x1;const _0x2f8189=_0x436407[_0x424450(0x41e)](_0x274a9b,_0x15ada7,_0x3c7b60);if(!_0x2f8189)return!0x1;const _0x18c54a=_0x540207(_0x21f862,_0x1c3829),{rangesInfo:_0x5218b6,areaInfo:_0x5106d1,headerMap:_0x36f144}=_0x2f8189;if(!_0x5218b6||!_0x5106d1||!_0x36f144)return!0x1;const _0x2835ae=Object[_0x424450(0x31c)](_0x5218b6)['find'](_0x2b5226=>_0x5218b6[_0x2b5226][_0x424450(0x39d)](_0x4ebbf8=>_0x459723[_0x424450(0x3a6)](_0x4ebbf8,_0x18c54a)));let _0x49fd46;_0x2835ae===_0x424450(0x3fc)?_0x49fd46=_0x36f144['rowHeaderMap'][_0x1c3829]:_0x2835ae==='colRanges'&&(_0x49fd46=_0x36f144['colHeaderMap'][_0x21f862]);const _0x5726db=_0x49fd46==null?void 0x0:_0x49fd46['tableFieldId'],_0x3234e5=_0x436407['getPivotTableCellData'](_0x274a9b,_0x15ada7,_0x21f862,_0x1c3829);let _0x5ed815=_0x3234e5==null?void 0x0:_0x3234e5['v'];if(_0x5ed815===_0x14c138['t'](_0x424450(0x427))&&(_0x5ed815=_0x3e67cb[_0x424450(0x3e6)]),_0x5ed815==null||!_0x3c7b60||!_0x5726db)return!0x1;const _0xd8f616=await _0x4592b6[_0x424450(0x328)]({'unitId':_0x274a9b,'subUnitId':_0x15ada7,'pivotTableId':_0x3c7b60,'params':{'type':k[_0x424450(0x3b7)],'setPivotCollapse':{'tableFieldId':_0x5726db,'collapse':_0x36e4e8,'item':_0x5ed815}}}),_0x296bce=_0xd8f616==null?void 0x0:_0xd8f616['result'][_0x424450(0x27a)];if(!_0x296bce)return!0x1;const {view:_0x559da9,pivotTableConfig:_0xa57f9b,isEmpty:_0x32e3bc,changesets:_0x5bfec1}=_0x296bce,_0xe90d47=new _0x296f39();_0xe90d47[_0x424450(0x2af)](_0x559da9);const _0x3dcfce=_0xa57f9b[_0x424450(0x416)],_0x10a495={'cellInfo':_0x3dcfce,'view':_0xe90d47,'isEmpty':_0x32e3bc};if(!await _0x4ea3a0[_0x424450(0x274)](ie)[_0x424450(0x204)][_0x424450(0x333)](be)(!0x0,_0x10a495))return!0x1;const _0x315ddb=Fe(_0x4ea3a0,_0xe90d47,_0x3dcfce,_0x32e3bc),_0x273d22=we(_0x4ea3a0,_0x10a495),{redos:_0x3ca3f2,undos:_0x5f10dc}=Ie(_0x33fcbe,{'pivotTableId':_0x3c7b60,'unitId':_0x274a9b,'subUnitId':_0x15ada7},_0x5bfec1);return _0x2fdef8([..._0x315ddb[_0x424450(0x1fe)],..._0x273d22[_0x424450(0x1fe)],..._0x3ca3f2],_0x33fcbe),_0x58ad71['pushUndoRedo']({'unitID':_0x274a9b,'redoMutations':[..._0x315ddb[_0x424450(0x1fe)],..._0x273d22[_0x424450(0x1fe)],..._0x3ca3f2],'undoMutations':[..._0x315ddb['undos'],..._0x273d22[_0x424450(0x3f1)],..._0x5f10dc]}),!0x0;}},Ts={'type':_0x2e18c8['COMMAND'],'id':_0x91438c(0x2c7),async 'handler'(_0xe16645,_0x2632a3){const _0x1d0398=_0x91438c;if(!_0x2632a3)return!0x1;const _0x2393b9=_0xe16645['get'](_0xa7b251),_0x3ae641=_0xe16645[_0x1d0398(0x274)](_0x4e1a76),_0x173dfa=_0xe16645[_0x1d0398(0x274)](z),{pivotTableConfig:_0x5045db,pivotTableId:_0x3ba277,unitId:_0x75f7d1,subUnitId:_0xc04dac}=_0x2632a3,_0x563911=(await _0x173dfa[_0x1d0398(0x328)]({'unitId':_0x75f7d1,'subUnitId':_0xc04dac,'pivotTableId':_0x3ba277,'params':{'type':k[_0x1d0398(0x283)],'setPivotTableConfig':{'pivotTableId':_0x3ba277,'pivotTableConfig':_0x5045db}}}))[_0x1d0398(0x2a8)]['setPivotTableConfig'];if(!_0x563911)return!0x1;const {changesets:_0x342be0}=_0x563911,{redos:_0x28c682,undos:_0xa3a6c2}=Ie(_0x2393b9,{'pivotTableId':_0x3ba277,'unitId':_0x75f7d1,'subUnitId':_0xc04dac},_0x342be0);return _0x2fdef8(_0x28c682,_0x2393b9),_0x3ae641[_0x1d0398(0x219)]({'unitID':_0x75f7d1,'redoMutations':_0x28c682,'undoMutations':_0xa3a6c2}),!0x0;}},Ms={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x2d3),async 'handler'(_0x3860f9,_0x5b2c4f){const _0x2a249d=_0x91438c;if(!_0x5b2c4f)return!0x1;const _0x5ea50e=_0x3860f9['get'](_0xa7b251),{pivotTableId:_0x24461f,tableFieldId:_0x273039,items:_0x43711b,unitId:_0x133692,subUnitId:_0x52f842,isAll:_0x1f658a}=_0x5b2c4f,_0x12d2a1=_0x3860f9[_0x2a249d(0x274)](z),_0x35f4d5=_0x3860f9[_0x2a249d(0x274)](_0x4e1a76),_0xdc03d=(await _0x12d2a1[_0x2a249d(0x328)]({'unitId':_0x133692,'subUnitId':_0x52f842,'pivotTableId':_0x24461f,'params':{'type':k[_0x2a249d(0x40a)],'setPivotFilter':{'tableFieldId':_0x273039,'items':_0x43711b,'isAll':_0x1f658a}}}))[_0x2a249d(0x2a8)][_0x2a249d(0x1c0)];if(!_0xdc03d)return!0x1;const {changesets:_0x579900,pivotTableConfig:_0x2219a7,isEmpty:_0x159889,view:_0x47d9a7}=_0xdc03d,_0x5943a0=_0x2219a7[_0x2a249d(0x416)],_0x5b35f3=new _0x296f39();_0x5b35f3[_0x2a249d(0x2af)](_0x47d9a7);const _0x43d7ee={'cellInfo':_0x5943a0,'view':_0x5b35f3,'isEmpty':_0x159889};if(!await _0x3860f9[_0x2a249d(0x274)](ie)['asyncInterceptor'][_0x2a249d(0x333)](be)(!0x0,_0x43d7ee))return!0x1;const _0x484e5f=Fe(_0x3860f9,_0x5b35f3,_0x5943a0,_0x159889),_0x52213e=we(_0x3860f9,_0x43d7ee),{undos:_0x2ebe17,redos:_0xa5136b}=Ie(_0x5ea50e,{'pivotTableId':_0x24461f,'unitId':_0x133692,'subUnitId':_0x52f842},_0x579900);return _0x2fdef8([..._0x484e5f[_0x2a249d(0x1fe)],..._0x52213e['redos'],..._0xa5136b],_0x5ea50e),_0x35f4d5[_0x2a249d(0x219)]({'unitID':_0x133692,'redoMutations':[..._0x484e5f[_0x2a249d(0x1fe)],..._0x52213e['redos'],..._0xa5136b],'undoMutations':[..._0x484e5f['undos'],..._0x52213e[_0x2a249d(0x3f1)],..._0x2ebe17]}),!0x0;}},Fs={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x26c),async 'handler'(_0x18d729,_0x1eea9e){const _0x129b5d=_0x91438c;if(!_0x1eea9e)return!0x1;const _0x905178=_0x18d729['get'](_0xa7b251),_0xdb5ee1=_0x18d729[_0x129b5d(0x274)](_0x4e1a76),_0x8ea4fe=_0x18d729[_0x129b5d(0x274)](z),{info:_0x529793,tableFieldId:_0x480355,pivotTableId:_0x1a5d8b,unitId:_0x373daa,subUnitId:_0x31cb08}=_0x1eea9e,_0x4e2489=(await _0x8ea4fe[_0x129b5d(0x328)]({'unitId':_0x373daa,'subUnitId':_0x31cb08,'pivotTableId':_0x1a5d8b,'params':{'type':k[_0x129b5d(0x24e)],'setPivotSort':{'tableFieldId':_0x480355,'info':_0x529793}}}))[_0x129b5d(0x2a8)][_0x129b5d(0x29e)];if(!_0x4e2489)return!0x1;const {changesets:_0x48f620}=_0x4e2489,{redos:_0xa4f0d0,undos:_0x202ce1}=Ie(_0x905178,{'pivotTableId':_0x1a5d8b,'unitId':_0x373daa,'subUnitId':_0x31cb08},_0x48f620);return _0x2fdef8(_0xa4f0d0,_0x905178),_0xdb5ee1[_0x129b5d(0x219)]({'unitID':_0x373daa,'redoMutations':_0xa4f0d0,'undoMutations':_0x202ce1}),!0x0;}},ws={'type':_0x2e18c8['COMMAND'],'id':'sheet.command.set-pivot-value-filter',async 'handler'(_0x42248a,_0x331d21){const _0x3c0dde=_0x91438c;if(!_0x331d21)return!0x1;const _0x58e78d=_0x42248a[_0x3c0dde(0x274)](_0xa7b251),{pivotTableId:_0x91e11,fieldId:_0x32525f,valueFilterInfo:_0x95dedb,unitId:_0x2ff2d2,subUnitId:_0x422808}=_0x331d21,_0x225bf0=_0x42248a[_0x3c0dde(0x274)](z),_0x5beee2=_0x42248a['get'](_0x4e1a76),_0x512815=(await _0x225bf0['getPivotDisplayConfig']({'unitId':_0x2ff2d2,'subUnitId':_0x422808,'pivotTableId':_0x91e11,'params':{'type':k['SetValuePivotFilter'],'setValuePivotFilter':{'tableFieldId':_0x32525f,'filterInfo':_0x95dedb}}}))['result'][_0x3c0dde(0x37b)];if(!_0x512815)return!0x1;const {changesets:_0x357ec0,pivotTableConfig:_0x5c0bdb,isEmpty:_0x2fd29b,view:_0x1cc639}=_0x512815,_0xd6c676=_0x5c0bdb[_0x3c0dde(0x416)],_0x218000=new _0x296f39();_0x218000['formJSON'](_0x1cc639);const _0x3609c4={'cellInfo':_0xd6c676,'view':_0x218000,'isEmpty':_0x2fd29b};if(!await _0x42248a['get'](ie)[_0x3c0dde(0x204)][_0x3c0dde(0x333)](be)(!0x0,_0x3609c4))return!0x1;const _0x504f78=Fe(_0x42248a,_0x218000,_0xd6c676,_0x2fd29b),_0x2ca4c4=we(_0x42248a,_0x3609c4),{undos:_0x527cb5,redos:_0xa96cf4}=Ie(_0x58e78d,{'pivotTableId':_0x91e11,'unitId':_0x2ff2d2,'subUnitId':_0x422808},_0x357ec0);return _0x2fdef8([..._0x504f78['redos'],..._0x2ca4c4[_0x3c0dde(0x1fe)],..._0xa96cf4],_0x58e78d),_0x5beee2[_0x3c0dde(0x219)]({'unitID':_0x2ff2d2,'redoMutations':[..._0x504f78[_0x3c0dde(0x1fe)],..._0x2ca4c4['redos'],..._0xa96cf4],'undoMutations':[..._0x504f78[_0x3c0dde(0x3f1)],..._0x2ca4c4[_0x3c0dde(0x3f1)],..._0x527cb5]}),!0x0;}},to={'id':_0x91438c(0x255),'type':_0x2e18c8[_0x91438c(0x318)],'handler':(_0x2fc4a4,_0x354071)=>{const _0x9a5248=_0x91438c;if(!_0x354071)return!0x1;if(!!_0x2fc4a4['get'](_0x495f63)['getConfig'](Y))return!0x0;const {unitId:_0x36bdbb,subUnitId:_0x2a33ae,pivotTableId:_0x4470ca,tableFieldId:_0x23bc46,dateType:_0x1c6d28}=_0x354071,_0x46c4cf=_0x2fc4a4[_0x9a5248(0x274)]($),_0x5df0a9=_0x46c4cf[_0x9a5248(0x31f)](_0x4470ca);if(!_0x5df0a9)return!0x1;const _0x28c0b6=_0x5df0a9[_0x9a5248(0x34d)](_0x23bc46);if(!_0x28c0b6)return!0x1;const _0x4bb5db=_0x28c0b6[_0x9a5248(0x361)](),_0x15c51e=_0x5df0a9[_0x9a5248(0x3c9)](_0x4bb5db),_0x10b15a=(_0x15c51e==null?void 0x0:_0x15c51e['getName']())+'\x20'+qo(_0x2fc4a4,_0x1c6d28);_0x46c4cf[_0x9a5248(0x232)](_0x36bdbb,_0x4470ca)[_0x9a5248(0x1c4)](_0x28c0b6['id'],_0x10b15a);const _0x269dc2=_0x5df0a9[_0x9a5248(0x2ef)](_0x23bc46);if(!_0x269dc2)return!0x1;_0x5df0a9[_0x9a5248(0x21a)](_0x269dc2[_0x9a5248(0x403)](),_0x10b15a),_0x28c0b6['setDateType'](_0x1c6d28);const _0x5ef53b=_0x46c4cf[_0x9a5248(0x294)](_0x36bdbb,_0x2a33ae,_0x4470ca);return _0x46c4cf['addDirtyPivotTable']({'unitId':_0x36bdbb,'subUnitId':_0x2a33ae,'token':_0x4470ca,'type':J[_0x9a5248(0x20b)],'pivotConfig':_0x5ef53b}),!0x0;}},_s={'id':_0x91438c(0x394),'type':_0x2e18c8[_0x91438c(0x2bb)],'handler':(_0x279e63,_0x50918b)=>{const _0x141504=_0x91438c;if(!_0x50918b)return!0x1;const _0x2113dd=_0x279e63[_0x141504(0x274)](_0x4e1a76),{unitId:_0x500cc6,subUnitId:_0x3e95bd,pivotTableId:_0xdb513b,tableFieldId:_0x19aa38}=_0x50918b,_0x30ea9d=[],_0x5735f1=[],_0x11dc8a=_0x279e63[_0x141504(0x274)](he),_0x2c7e29=_0x11dc8a['getCollection'](_0x500cc6,_0xdb513b),_0x3c8983=_0x11dc8a[_0x141504(0x294)](_0x500cc6,_0x3e95bd,_0xdb513b);if(!(_0x3c8983!=null&&_0x3c8983['fieldsConfig'][_0x141504(0x2c2)]))return!0x1;const _0x9e2457=Object[_0x141504(0x2c8)](_0x3c8983[_0x141504(0x2c6)][_0x141504(0x2c2)])['find'](_0x54ee60=>_0x54ee60['id']===_0x19aa38);if(!_0x9e2457)return!0x1;const _0xdd381c=_0x9e2457[_0x141504(0x3e8)];if(!(_0x2c7e29!=null&&_0x2c7e29[_0x141504(0x217)]))return!0x1;const _0x24e7c1=Object[_0x141504(0x2c8)](_0x2c7e29==null?void 0x0:_0x2c7e29[_0x141504(0x217)])[_0x141504(0x263)](_0x607e57=>_0x607e57['id']===_0xdd381c);if(!_0x24e7c1)return!0x1;_0x3532a4(_0x24e7c1)&&_0x30ea9d[_0x141504(0x3fe)]({'id':to['id'],'params':{..._0x50918b,'dateType':_0x24e7c1[_0x141504(0x374)]}}),_0x5735f1[_0x141504(0x3fe)]({'id':to['id'],'params':{..._0x50918b}});const _0x33b9e8=_0x279e63['get'](_0xa7b251);return _0x2fdef8(_0x5735f1,_0x33b9e8)&&_0x2113dd['pushUndoRedo']({'unitID':_0x500cc6,'undoMutations':_0x30ea9d,'redoMutations':_0x5735f1}),!0x0;}},Rs={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x3fa),async 'handler'(_0x407d1a,_0x3ceee8){const _0x545a6c=_0x91438c;if(!_0x3ceee8)return!0x1;const _0x1fdba6=_0x407d1a['get'](_0xa7b251),_0x197c50=_0x407d1a[_0x545a6c(0x274)](_0x4e1a76),_0x4ac296=_0x407d1a[_0x545a6c(0x274)](z),{displayName:_0x55d782,subtotalType:_0x1f0549,format:_0x2f0936,tableFieldId:_0x3c9afa,pivotTableId:_0x292fa5,unitId:_0x54539c,subUnitId:_0x26a2af}=_0x3ceee8,_0x298d52=(await _0x4ac296['getPivotDisplayConfig']({'unitId':_0x54539c,'subUnitId':_0x26a2af,'pivotTableId':_0x292fa5,'params':{'type':k['SetPivotSetting'],'setPivotSetting':{'tableFieldId':_0x3c9afa,'displayName':_0x55d782,'subtotalType':_0x1f0549,'format':_0x2f0936}}}))[_0x545a6c(0x2a8)]['setPivotSetting'];if(!_0x298d52)return!0x1;const {changesets:_0x50625f,view:_0x5bcae7,pivotTableConfig:_0x1b93c2,isEmpty:_0xf4e0bb}=_0x298d52,_0xee22e3=_0x1b93c2['targetCellInfo'],_0x2122cb=new _0x296f39();_0x2122cb['formJSON'](_0x5bcae7);const _0xe1049b={'cellInfo':_0xee22e3,'view':_0x2122cb,'isEmpty':_0xf4e0bb};if(!await _0x407d1a['get'](ie)[_0x545a6c(0x204)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0xe1049b))return!0x1;const _0x51c38f=Fe(_0x407d1a,_0x2122cb,_0xee22e3,_0xf4e0bb),_0x4c3a89=we(_0x407d1a,_0xe1049b),{undos:_0x2839ca,redos:_0x257aa6}=Ie(_0x1fdba6,{'pivotTableId':_0x292fa5,'unitId':_0x54539c,'subUnitId':_0x26a2af},_0x50625f);return _0x2fdef8([..._0x51c38f[_0x545a6c(0x1fe)],..._0x4c3a89[_0x545a6c(0x1fe)],..._0x257aa6],_0x1fdba6),_0x197c50[_0x545a6c(0x219)]({'unitID':_0x54539c,'redoMutations':[..._0x51c38f[_0x545a6c(0x1fe)],..._0x4c3a89[_0x545a6c(0x1fe)],..._0x257aa6],'undoMutations':[..._0x51c38f[_0x545a6c(0x3f1)],..._0x4c3a89['undos'],..._0x2839ca]}),!0x0;}},oo={'type':_0x2e18c8[_0x91438c(0x318)],'id':'sheet.mutation.update-pivot-table-source-range','handler'(_0xdd5a9b,_0x5240b3){const _0x4f9349=_0x91438c;if(!_0x5240b3)return!0x1;if(!!_0xdd5a9b[_0x4f9349(0x274)](_0x495f63)['getConfig'](Y))return!0x0;const _0x318e04=_0xdd5a9b[_0x4f9349(0x274)]($),{pivotTableId:_0x28f054,deleteIds:_0x5530eb,collectionJSON:_0x2b0bda,dataRangeInfo:_0x1deab5,unitId:_0x5e5f4c,subUnitId:_0x3b5ff1}=_0x5240b3,_0xfb97c3=_0x318e04['getPivotTableInstance'](_0x28f054),_0x103ddd=_0x318e04[_0x4f9349(0x294)](_0x5e5f4c,_0x3b5ff1,_0x28f054);if(!_0xfb97c3||!_0x103ddd)return!0x1;const {collection:_0x59fc68,updateDataFieldList:_0x5da474}=_0x318e04[_0x4f9349(0x2e4)](_0x28f054,_0x2b0bda,_0x1deab5,_0x103ddd['targetCellInfo']);_0x318e04['refreshData'](_0x59fc68,_0x5da474,_0x1deab5),_0xfb97c3[_0x4f9349(0x2cb)](_0x59fc68);for(const _0x4d7650 of _0x5530eb)_0x318e04[_0x4f9349(0x3bb)](_0x1deab5[_0x4f9349(0x1cc)],_0x4d7650);const _0x1c36de=_0x318e04['getPivotTableConfig'](_0x5e5f4c,_0x3b5ff1,_0x28f054);return _0x1c36de['sourceRangeInfo']=JSON['parse'](JSON[_0x4f9349(0x2ff)](_0x1deab5)),_0x318e04[_0x4f9349(0x1ca)]({'unitId':_0x5e5f4c,'subUnitId':_0x3b5ff1,'token':_0x28f054,'type':J[_0x4f9349(0x20b)]}),!0x0;}},Ds={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x37e),async 'handler'(_0x5bf24b,_0x4b5059){const _0x582acb=_0x91438c,_0x262078=_0x5bf24b[_0x582acb(0x274)](_0xa7b251),_0x41a1b2=_0x5bf24b[_0x582acb(0x274)](z),_0x2831c4=_0x5bf24b[_0x582acb(0x274)](_0x4e1a76);if(!_0x4b5059)return!0x1;const {token:_0x33b1c8,dataRangeInfo:_0x58dd0e,unitId:_0x5a9fec,subUnitId:_0x1b712a}=_0x4b5059,_0x4cdc56=[],_0x3ad606=[],_0x575593=(await _0x41a1b2[_0x582acb(0x328)]({'unitId':_0x5a9fec,'subUnitId':_0x1b712a,'pivotTableId':_0x33b1c8,'params':{'type':k['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0x58dd0e,'unitId':_0x5a9fec,'subUnitId':_0x1b712a}}}))['result'][_0x582acb(0x2a9)];if(!_0x575593)return!0x1;const {changesets:_0x44bf75,deleteIds:_0x379eff,collectionConfig:_0x119865,oldCollectionConfig:_0x2c4a5f,view:_0x38eab8,isEmpty:_0x3fac7b,pivotTableConfig:_0x2b5c6e}=_0x575593;_0x3ad606['push']({'id':oo['id'],'params':{'pivotTableId':_0x33b1c8,'deleteIds':_0x379eff,'collectionJSON':_0x119865,'dataRangeInfo':_0x58dd0e,'unitId':_0x5a9fec,'subUnitId':_0x1b712a}}),_0x4cdc56[_0x582acb(0x273)]({'id':oo['id'],'params':{'pivotTableId':_0x33b1c8,'deleteIds':[],'collectionJSON':_0x2c4a5f,'dataRangeInfo':_0x2b5c6e[_0x582acb(0x407)],'unitId':_0x5a9fec,'subUnitId':_0x1b712a}});const _0x57f655=_0x2b5c6e[_0x582acb(0x416)],_0x3f8b91=new _0x296f39();_0x3f8b91[_0x582acb(0x2af)](_0x38eab8);const _0x213e3a={'cellInfo':_0x57f655,'view':_0x3f8b91,'isEmpty':_0x3fac7b};if(!await _0x5bf24b[_0x582acb(0x274)](ie)[_0x582acb(0x204)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x213e3a))return!0x1;const _0x474b55=Fe(_0x5bf24b,_0x3f8b91,_0x57f655,_0x3fac7b),_0x5b779b=we(_0x5bf24b,_0x213e3a),{undos:_0x409f16,redos:_0x3ca664}=Ie(_0x262078,{'pivotTableId':_0x33b1c8,'unitId':_0x5a9fec,'subUnitId':_0x1b712a},_0x44bf75);return _0x2fdef8([..._0x474b55['redos'],..._0x5b779b['redos'],..._0x3ad606,..._0x409f16],_0x262078),_0x2831c4[_0x582acb(0x219)]({'unitID':_0x5a9fec,'redoMutations':[..._0x474b55[_0x582acb(0x1fe)],..._0x5b779b[_0x582acb(0x1fe)],..._0x3ad606,..._0x409f16],'undoMutations':[..._0x474b55[_0x582acb(0x3f1)],..._0x5b779b[_0x582acb(0x3f1)],..._0x4cdc56,..._0x3ca664]}),!0x0;}},Vs={'type':_0x2e18c8[_0x91438c(0x2bb)],'id':_0x91438c(0x408),async 'handler'(_0x5b31fd,_0x547e0c){const _0x15a03a=_0x91438c;if(!_0x547e0c)return!0x1;const _0x53978c=_0x5b31fd['get'](_0xa7b251),_0x4f3390=_0x5b31fd[_0x15a03a(0x274)](z),_0x5aab85=_0x5b31fd[_0x15a03a(0x274)](_0x2c885f),_0x1103d8=_0x5b31fd[_0x15a03a(0x274)](_0x4e1a76),{pivotTableId:_0x590e6a,position:_0x492d69,index:_0x2f1812}=_0x547e0c,_0xbd1c8d=_0x1a5e6f(_0x5aab85);if(!_0xbd1c8d)return!0x1;const {unitId:_0x318cde,subUnitId:_0x112feb}=_0xbd1c8d,_0x29f2c2=(await _0x4f3390[_0x15a03a(0x328)]({'unitId':_0x318cde,'subUnitId':_0x112feb,'pivotTableId':_0x590e6a,'params':{'type':k[_0x15a03a(0x431)],'updateValuePosition':{'position':_0x492d69,'index':_0x2f1812}}}))[_0x15a03a(0x2a8)][_0x15a03a(0x351)];if(!_0x29f2c2)return!0x1;const {changesets:_0x54649a,view:_0x1c901c,isEmpty:_0x30c17b,pivotTableConfig:_0x5a6965}=_0x29f2c2,_0x576d1c=_0x5a6965[_0x15a03a(0x416)],_0xf40aa8=new _0x296f39();_0xf40aa8[_0x15a03a(0x2af)](_0x1c901c);const _0x1524c2=_0x5b31fd[_0x15a03a(0x274)](ie),_0x4f6d5c={'cellInfo':_0x576d1c,'view':_0xf40aa8,'isEmpty':_0x30c17b};if(!await _0x1524c2['asyncInterceptor'][_0x15a03a(0x333)](be)(!0x0,_0x4f6d5c))return!0x1;const _0x7a22ba=Fe(_0x5b31fd,_0xf40aa8,_0x576d1c,_0x30c17b),_0x572a56=we(_0x5b31fd,_0x4f6d5c),{undos:_0x3e2eab,redos:_0x1c1f40}=Ie(_0x53978c,{'pivotTableId':_0x590e6a,'unitId':_0x318cde,'subUnitId':_0x112feb},_0x54649a);return _0x2fdef8([..._0x7a22ba[_0x15a03a(0x1fe)],..._0x572a56['redos'],..._0x1c1f40],_0x53978c),_0x1103d8[_0x15a03a(0x219)]({'unitID':_0x318cde,'redoMutations':[..._0x7a22ba[_0x15a03a(0x1fe)],..._0x572a56[_0x15a03a(0x1fe)],..._0x1c1f40],'undoMutations':[..._0x7a22ba[_0x15a03a(0x3f1)],..._0x572a56[_0x15a03a(0x3f1)],..._0x3e2eab]}),!0x0;}},Nt={'type':_0x2e18c8[_0x91438c(0x318)],'id':_0x91438c(0x41f),'handler'(){return!0x0;}};var Ns=Object[_0x91438c(0x26b)],Us=(_0x19f871,_0x38f660,_0x1ebf96,_0x1751ae)=>{for(var _0x390b8c=_0x1751ae>0x1?void 0x0:_0x1751ae?Ns(_0x38f660,_0x1ebf96):_0x38f660,_0xfc4b6a=_0x19f871['length']-0x1,_0x540a9c;_0xfc4b6a>=0x0;_0xfc4b6a--)(_0x540a9c=_0x19f871[_0xfc4b6a])&&(_0x390b8c=_0x540a9c(_0x390b8c)||_0x390b8c);return _0x390b8c;},at=(_0x3376d4,_0xf6cd5c)=>(_0xedb4fa,_0x27d05d)=>_0xf6cd5c(_0xedb4fa,_0x27d05d,_0x3376d4);const Es=()=>({'runtimeCellData':{},'dirtyRanges':{}}),xs=(_0x3317a5,_0x1396e7,_0x577d32)=>{const _0x22a906=_0x91438c,_0x25bbc9=_0x3317a5['dataFieldsCollection'];_0x3317a5[_0x22a906(0x321)](_0x565369=>{const _0x30a366=_0x22a906,_0x1b2882=_0x565369['getId'](),_0x5998e8=_0x565369[_0x30a366(0x30f)](),_0x37a41d=_0x565369[_0x30a366(0x35a)](),_0x3d92c9=_0x565369[_0x30a366(0x3a0)]();_0x1396e7[_0x5998e8]&&_0x1396e7[_0x5998e8]===_0x3d92c9&&_0x37a41d===_0x3d92c9&&(_0x3317a5[_0x30a366(0x21a)](_0x1b2882,_0x25bbc9['getDisplayName'](_0x5998e8)),_0x565369[_0x30a366(0x213)](_0x25bbc9['getDisplayName'](_0x5998e8)));}),_0x3317a5[_0x22a906(0x428)](_0x48ff8c[_0x22a906(0x36d)],_0x72c745=>{const _0x5640e5=_0x22a906,_0x48bb89=_0x72c745['getId'](),_0x3cdc68=_0x72c745['getDataFieldId'](),_0x2bb112=_0x72c745[_0x5640e5(0x35a)](),_0x5e22e1=_0x72c745[_0x5640e5(0x3a0)](),_0x22b201=_0x72c745['getSubtotal'](),_0x416953=_0x577d32(_0x2bb112,_0x22b201);_0x1396e7[_0x3cdc68]&&_0x1396e7[_0x3cdc68]===_0x2bb112&&_0x416953===_0x5e22e1&&(_0x3317a5[_0x5640e5(0x21a)](_0x48bb89,_0x577d32(_0x25bbc9['getDisplayName'](_0x3cdc68),_0x22b201)),_0x72c745[_0x5640e5(0x213)](_0x25bbc9[_0x5640e5(0x3a0)](_0x3cdc68)));});},Os=(_0x1858df,_0x21cfb7,_0x2e1d7c)=>{const _0x5041a5=_0x91438c;var _0x2b31b7,_0xbbcd84;const {arrayFormulaCellData:_0x2f19c7,unitData:_0x12bb8f}=_0x21cfb7,{unitId:_0x2aba5c,subUnitId:_0x4cc758}=_0x2e1d7c,_0x38c72c=_0x2e1d7c[_0x5041a5(0x21c)],{startColumn:_0x44e528,endColumn:_0x577e7e}=_0x38c72c,_0x3558a5=(_0x2b31b7=_0x2f19c7==null?void 0x0:_0x2f19c7[_0x2aba5c])==null?void 0x0:_0x2b31b7[_0x4cc758],_0x18da92=(_0xbbcd84=_0x12bb8f==null?void 0x0:_0x12bb8f[_0x2aba5c])==null?void 0x0:_0xbbcd84[_0x4cc758],_0x44078a=new Set(),_0x5608e7=_0x577e7e-_0x44e528+0x1,{dirtyRanges:_0x2f240b}=_0x1858df;if(_0x2f240b)for(const {range:_0x53387f,sheetId:_0xedeb1,unitId:_0x56514f}of _0x2f240b){if(_0xedeb1!==_0x4cc758||_0x2aba5c!==_0x56514f)continue;const _0x37189a=_0x459723[_0x5041a5(0x36f)](_0x53387f,_0x38c72c);if(_0x37189a){const {startColumn:_0x2bcde5,endColumn:_0x58f9e7}=_0x37189a;for(let _0x47d372=_0x2bcde5;_0x47d372<=_0x58f9e7;_0x47d372++)_0x44078a[_0x5041a5(0x1eb)](_0x47d372);}}if(_0x44078a[_0x5041a5(0x244)]===_0x5608e7||_0x44078a[_0x5041a5(0x244)]===_0x5608e7)return Array[_0x5041a5(0x1f1)](_0x44078a);if(_0x18da92){const _0x35be23=_0x18da92[_0x5041a5(0x3d2)](),_0x4100dc=Object[_0x5041a5(0x31c)](_0x35be23);for(const _0x1d5ee3 of _0x4100dc){const _0x340709=Number(_0x1d5ee3),_0x198a14=_0x35be23[_0x340709];if(_0x44078a[_0x5041a5(0x244)]===_0x5608e7)break;for(const _0x140d09 in _0x198a14){const _0x4ca566=Number(_0x140d09);_0x4ca566<_0x44e528||_0x4ca566>_0x577e7e||_0x44078a[_0x5041a5(0x1eb)](_0x4ca566);}}}if(_0x3558a5){const _0x3ebbbc=_0x3558a5[_0x5041a5(0x3d2)](),_0x3fb98f=Object[_0x5041a5(0x31c)](_0x3ebbbc);for(const _0x46f769 of _0x3fb98f){const _0x83dead=Number(_0x46f769),_0x5cf796=_0x3ebbbc[_0x83dead];if(_0x44078a[_0x5041a5(0x244)]===_0x5608e7)break;for(const _0x2079b3 in _0x5cf796){const _0x22a8a6=Number(_0x2079b3);_0x22a8a6<_0x44e528||_0x22a8a6>_0x577e7e||_0x44078a[_0x5041a5(0x1eb)](_0x22a8a6);}}}return Array[_0x5041a5(0x1f1)](_0x44078a);},As=_0x3e5931=>{const _0x470e9f=_0x91438c,_0xc36b7d=new Set(),_0x1fe319=[];for(const _0x13cb8c of _0x3e5931){const _0x5e2812=_0x13cb8c[_0x470e9f(0x34c)]+','+_0x13cb8c[_0x470e9f(0x25c)]+','+_0x13cb8c[_0x470e9f(0x2ee)]+','+_0x13cb8c[_0x470e9f(0x377)];_0xc36b7d[_0x470e9f(0x35d)](_0x5e2812)||(_0xc36b7d[_0x470e9f(0x1eb)](_0x5e2812),_0x1fe319['push'](_0x13cb8c));}return _0x1fe319;};let dt=class extends _0x5353ba{constructor(_0x196864,_0x2778e3,_0xcbdc5d,_0x41a08c,_0x349b89){const _0x1e8138=_0x91438c;super(),N(this,_0x1e8138(0x211),new _0x4ac54f(!0x0)),N(this,_0x1e8138(0x223),_0x32e2d1=>{this['_globalSubject']['next'](!0x1);}),N(this,'_globalComputedEndHelpFunc',_0x2985f1=>{const _0xa67ac9=_0x1e8138;this[_0xa67ac9(0x211)][_0xa67ac9(0x1db)](!0x0);}),(this['_sheetsPivotDataSourceModel']=_0x196864,this['_featureCalculationManagerService']=_0x2778e3,this[_0x1e8138(0x384)]=_0xcbdc5d,this[_0x1e8138(0x236)]=_0x41a08c,this[_0x1e8138(0x31d)]=_0x349b89,this[_0x1e8138(0x250)](),this[_0x1e8138(0x432)]());}['_init'](){const _0x244e6a=_0x91438c;this[_0x244e6a(0x22f)](),this['_subjectViewChange'](),this[_0x244e6a(0x2a4)](),this[_0x244e6a(0x25f)]();}[_0x91438c(0x398)](){const _0x2092ac=_0x91438c;this[_0x2092ac(0x236)][_0x2092ac(0x2e1)](this[_0x2092ac(0x211)]),_0x33f1c5[_0x2092ac(0x268)](_0x589062['onQueryStart'],this[_0x2092ac(0x223)]),_0x33f1c5['registerCallbackWithEvent'](_0x589062[_0x2092ac(0x348)],this[_0x2092ac(0x367)]);}[_0x91438c(0x432)](){const _0x40f70c=_0x91438c;this[_0x40f70c(0x317)](this[_0x40f70c(0x384)][_0x40f70c(0x347)](_0x4759ea=>{const _0x4fd302=_0x40f70c;_0x4759ea['id']===_0x3d1db8['id']&&this[_0x4fd302(0x22a)][_0x4fd302(0x2f9)](_0x4759ea[_0x4fd302(0x433)]);})),this[_0x40f70c(0x317)](this[_0x40f70c(0x384)]['onCommandExecuted'](_0x3a0d5b=>{const _0x360645=_0x40f70c;if(_0x3a0d5b['id']!==ro['id'])return;const _0x2ebde4=_0x3a0d5b[_0x360645(0x433)],{unitId:_0x3068d7,subUnitId:_0x1560f3,pivotTableId:_0x16a558}=_0x2ebde4,_0x5d474d=_0x2ebde4[_0x360645(0x433)]['type'],_0x4b255f={};switch(_0x5d474d){case k[_0x360645(0x41b)]:{const _0x1789c0=_0x2ebde4['params']['filter'];if(!_0x1789c0)return;const {row:_0x4aa42a,col:_0xb9dc9b,cellData:_0x130270,pivotItemRenderInfoCache:_0x2e5a7e,tableFieldId:_0x28865}=_0x1789c0,_0x2c310f=this[_0x360645(0x22a)]['getPivotTableInstance'](_0x2ebde4[_0x360645(0x3ff)]);if(!_0x2c310f||!_0x2e5a7e)return;if(_0x28865){const _0x1d5ca3=_0x2c310f['getDataFieldByTableId'](_0x28865);if(!_0x1d5ca3)return;_0x4b255f['filter']={..._0x2c310f['getDataFieldItemInfo'](_0x1d5ca3),'tableFieldId':_0x28865,'pivotTableId':_0x2ebde4[_0x360645(0x3ff)],'filterInfo':_0x2c310f['getFilterInfo'](_0x28865),'sortInfo':_0x2c310f[_0x360645(0x2b1)](_0x28865),'format':_0x2c310f[_0x360645(0x356)](_0x28865)};}else{const _0x35f22a=ki(_0x4aa42a,_0xb9dc9b,_0x130270,_0x2c310f,_0x2e5a7e),_0x1412e7=_0x35f22a==null?void 0x0:_0x35f22a[_0x360645(0x267)];if(!_0x1412e7)return;const _0x131606=_0x2c310f['getDataFieldByTableId'](_0x1412e7);if(!_0x131606)return;_0x4b255f[_0x360645(0x3ad)]={..._0x2c310f[_0x360645(0x1cb)](_0x131606),'tableFieldId':_0x1412e7,'pivotTableId':_0x2ebde4[_0x360645(0x3ff)],'filterInfo':_0x2c310f[_0x360645(0x2ad)](_0x1412e7),'sortInfo':_0x2c310f[_0x360645(0x2b1)](_0x1412e7),'format':_0x2c310f[_0x360645(0x356)](_0x1412e7)};}}break;case k['Panel']:{const _0x589ab2=_0x2ebde4[_0x360645(0x433)][_0x360645(0x3aa)];if(!_0x589ab2)return;const {pivotTableId:_0x595ccc}=_0x589ab2,_0xbfd0e6=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x595ccc);if(!_0xbfd0e6)return;const _0x4f6b38=this[_0x360645(0x22a)]['getPivotTableConfig'](_0x3068d7,_0x1560f3,_0x595ccc),_0x633919=Bi(_0xbfd0e6,_0x595ccc,_0x4f6b38);_0x4b255f[_0x360645(0x3aa)]=_0x633919;}break;case k[_0x360645(0x388)]:{const _0x5aaaae=this['_sheetsPivotDataSourceModel'][_0x360645(0x31f)](_0x16a558),_0x2801be=this['_sheetsPivotDataSourceModel'][_0x360645(0x33c)](_0x3068d7),_0x47b0f9=_0x2801be[_0x360645(0x232)](_0x16a558);let _0x216d57=null;const _0x1ecd66=this[_0x360645(0x22a)][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558),_0x254937=_0x2ebde4['params'][_0x360645(0x33b)];if(!_0x5aaaae||!_0x1ecd66||!_0x254937)return!0x1;const {dataFieldId:_0x43cd02,fieldArea:_0x2f95aa,index:_0x26b8e2}=_0x254937;_0x5aaaae[_0x360645(0x231)]();const _0x594338=_0x5aaaae[_0x360645(0x323)](_0x43cd02,_0x2f95aa,_0x26b8e2);if(_0x594338&&_0x2f95aa===_0x48ff8c[_0x360645(0x36d)]){const _0x2f6ae0=_0x594338[_0x360645(0x403)](),_0x1a443e=_0x5aaaae[_0x360645(0x34d)](_0x2f6ae0);if(_0x1a443e){const _0x4f0f98=_0x1a443e==null?void 0x0:_0x1a443e['getFieldDataType']();_0x5aaaae[_0x360645(0x241)](_0x594338['getId'](),_0x4f0f98===_0x5b8b2a[_0x360645(0x242)]?_0x553ee1[_0x360645(0x397)]:_0x553ee1[_0x360645(0x39e)]);}const _0x55db66=_0x5aaaae[_0x360645(0x1c8)](),_0x57f614=_0x5aaaae[_0x360645(0x20a)](),_0x4620c9=_0x5aaaae['getFieldCountByArea'](_0x48ff8c['Value']);if(_0x55db66===-0x1&&_0x4620c9>0x1){const _0xc12c09=_0x57f614===_0x150bb7['None']?_0x150bb7[_0x360645(0x41d)]:_0x57f614,_0x4598e2=_0xc12c09===_0x150bb7[_0x360645(0x34a)]?_0x48ff8c['Row']:_0x48ff8c[_0x360645(0x41d)];_0x5aaaae['updateValuePosition'](_0xc12c09,_0x5aaaae[_0x360645(0x426)](_0x4598e2));}}else{if(_0x594338&&(_0x2f95aa===_0x48ff8c[_0x360645(0x34a)]||_0x2f95aa===_0x48ff8c['Column'])){const _0x542e6f=_0x594338[_0x360645(0x403)](),_0x526259=_0x5aaaae[_0x360645(0x34d)](_0x542e6f);if(_0x526259&&(_0x526259==null?void 0x0:_0x526259[_0x360645(0x2ca)]())===_0x5b8b2a['date']){const _0x403a7b=_0x526259['getformat']();if(_0x403a7b&&_0x5aaaae[_0x360645(0x411)](_0x594338[_0x360645(0x403)](),_0x403a7b),!_0x47b0f9[_0x360645(0x2b9)]()[_0x360645(0x39d)](_0x1f9a9b=>{const _0x1b7f94=_0x360645,_0x55fc30=_0x47b0f9[_0x1b7f94(0x2bd)](_0x1f9a9b);return _0x375f53(_0x55fc30)?_0x55fc30[_0x1b7f94(0x3a4)]()['originalFieldId']===_0x43cd02:!0x1;})){const _0x4b9f5f=_0x2801be['createDataFieldId'](),_0x544db6=Hi(_0x526259[_0x360645(0x3d3)],_0x526259['minDate']),_0x9afb9b=_0x526259[_0x360645(0x30e)]()+_0x360645(0x26a)+qo(this['_injector'],_0x544db6),_0x55d4cc=new _0x5281df(_0x4b9f5f,_0x9afb9b,_0x387c10(0x3),_0x526259[_0x360645(0x403)](),_0x544db6);_0x2801be[_0x360645(0x3a8)](_0x55d4cc),_0x47b0f9[_0x360645(0x381)](_0x4b9f5f,_0x9afb9b),_0x5aaaae['addFieldWithSourceId'](_0x4b9f5f,_0x2f95aa,(_0x26b8e2!=null?_0x26b8e2:0x0)+0x1),_0x216d57=_0x55d4cc;}}}}const _0x3fcabb=_0x5aaaae[_0x360645(0x3d9)](),_0x2aff44=_0x5aaaae[_0x360645(0x3af)]()[_0x360645(0x2e3)]();let _0x1232a9;if(_0x216d57){_0x1232a9=_0x216d57[_0x360645(0x2e3)]();const _0x5bd849=_0x216d57[_0x360645(0x403)]();_0x47b0f9[_0x360645(0x36e)](_0x5bd849);let _0x554a68=!0x0;for(const _0x4cc966 in _0x2801be[_0x360645(0x391)])if(_0x2801be[_0x360645(0x391)][_0x4cc966][_0x360645(0x2b9)]()[_0x360645(0x1da)](_0x5bd849)){_0x554a68=!0x1;break;}_0x554a68&&_0x2801be[_0x360645(0x1d7)](_0x5bd849);}const _0x109042=_0x5aaaae['endCollectChangeset']();_0x4b255f[_0x360645(0x33b)]={'view':_0x2aff44,'changesets':_0x109042,'isEmpty':_0x3fcabb,'pivotTableConfig':_0x1ecd66,'shouldBeAddedGroupJSON':_0x1232a9};}break;case k['AddPivotTable']:{const _0x168497=_0x2ebde4['params'][_0x360645(0x1f6)];if(!_0x168497)return;const _0x3aa9c7=_0x168497[_0x360645(0x407)],_0x2f7f3f=_0x168497[_0x360645(0x3ff)],{collection:_0x3bdbe3}=this['_sheetsPivotDataSourceModel']['createCollectionWithDataRange']({'unitId':_0x3aa9c7[_0x360645(0x1cc)],'sheetName':_0x3aa9c7[_0x360645(0x3de)],'subUnitId':_0x3aa9c7['subUnitId'],'range':_0x3aa9c7[_0x360645(0x21c)]}),_0xa58f98=new _0x33f1c5(_0x3bdbe3,void 0x0,_0x2f7f3f),_0x347895=_0xa58f98[_0x360645(0x3af)](),_0x54e0dd=_0xa58f98['toJSON'](),_0x40dd67=_0x3bdbe3['toJSON']();_0x4b255f['addPivotTable']={'view':_0x347895,'fieldsConfig':_0x54e0dd,'collectionConfig':_0x40dd67,'isEmpty':_0xa58f98[_0x360645(0x3d9)]()};}break;case k[_0x360645(0x3c3)]:{const _0x532deb=_0x2ebde4[_0x360645(0x433)][_0x360645(0x353)];if(!_0x532deb)return;const {fieldId:_0x9d8ea3,area:_0x3d8e16,index:_0x6e4303}=_0x532deb,_0x31503e=this[_0x360645(0x22a)]['getPivotTableConfig'](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x31503e)return;const _0x8b2b9c=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558);if(!_0x8b2b9c)return;_0x8b2b9c[_0x360645(0x231)]();const {area:_0x2f0582,index:_0x594ea2}=_0x8b2b9c['getFieldPositionInfoById'](_0x9d8ea3);if(_0x8b2b9c[_0x360645(0x34f)](_0x9d8ea3,_0x3d8e16,_0x6e4303),_0x3d8e16===_0x48ff8c[_0x360645(0x36d)]&&_0x8b2b9c[_0x360645(0x2ef)](_0x9d8ea3)[_0x360645(0x380)]()===void 0x0){const _0x8d0188=_0x8b2b9c['getTableFieldById'](_0x9d8ea3);if(_0x8d0188&&_0x8d0188[_0x360645(0x380)]()===void 0x0){const _0x20167a=_0x8b2b9c[_0x360645(0x34d)](_0x9d8ea3);if(_0x20167a){const _0x51e62c=_0x20167a==null?void 0x0:_0x20167a[_0x360645(0x2ca)]();_0x8b2b9c[_0x360645(0x241)](_0x9d8ea3,_0x51e62c===_0x5b8b2a['number']?_0x553ee1[_0x360645(0x397)]:_0x553ee1['count']);}}}const _0x26e081=_0x8b2b9c[_0x360645(0x20a)](),_0x54b863=_0x8b2b9c[_0x360645(0x1c8)](),_0x5db061=_0x8b2b9c[_0x360645(0x426)](_0x48ff8c[_0x360645(0x36d)])>0x1;if(_0x5db061&&_0x2f0582===_0x3d8e16&&(_0x3d8e16===_0x48ff8c[_0x360645(0x34a)]&&_0x26e081===_0x150bb7[_0x360645(0x34a)]||_0x3d8e16===_0x48ff8c['Column']&&_0x26e081===_0x150bb7['Column'])){let _0x4366fe=_0x54b863;_0x594ea2<=_0x54b863&&_0x4366fe--,_0x6e4303<=_0x54b863&&_0x4366fe++,_0x8b2b9c['updateValuePosition'](_0x26e081,_0x4366fe);}else _0x5db061&&(_0x2f0582===_0x48ff8c[_0x360645(0x34a)]&&_0x26e081===_0x150bb7[_0x360645(0x34a)]||_0x2f0582===_0x48ff8c['Column']&&_0x26e081===_0x150bb7[_0x360645(0x41d)])&&_0x54b863>=_0x594ea2&&_0x8b2b9c[_0x360645(0x351)](_0x26e081,_0x54b863-0x1),_0x5db061&&(_0x3d8e16===_0x48ff8c[_0x360645(0x34a)]&&_0x26e081===_0x150bb7['Row']||_0x3d8e16===_0x48ff8c[_0x360645(0x41d)]&&_0x26e081===_0x150bb7[_0x360645(0x41d)])&&_0x54b863>=_0x6e4303&&_0x8b2b9c[_0x360645(0x351)](_0x26e081,_0x54b863+0x1);const _0x5d1d52=_0x8b2b9c['query'](),_0xbab8df=_0x8b2b9c[_0x360645(0x3d9)](),_0xd87998=_0x8b2b9c[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x353)]={'view':_0x5d1d52[_0x360645(0x2e3)](),'changesets':_0xd87998,'isEmpty':_0xbab8df,'pivotTableConfig':_0x31503e};}break;case k[_0x360645(0x300)]:{const _0x2e1586=_0x2ebde4[_0x360645(0x433)][_0x360645(0x3ce)];if(!_0x2e1586)return;const _0x381249=_0x2e1586[_0x360645(0x2b8)],_0x20605b=this[_0x360645(0x22a)]['getPivotTableConfig'](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x20605b)return!0x1;const _0x538f14=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558);if(!_0x538f14)return!0x1;_0x538f14[_0x360645(0x231)]();for(const _0x419a9e of _0x381249){const {area:_0x2dba31}=_0x538f14[_0x360645(0x2eb)](_0x419a9e);_0x2dba31===_0x48ff8c['Value']&&_0x538f14['removeValueFilterInfoByValueFieldId'](_0x419a9e),(_0x2dba31===_0x48ff8c[_0x360645(0x34a)]||_0x2dba31===_0x48ff8c[_0x360645(0x41d)])&&_0x538f14[_0x360645(0x39a)](_0x419a9e),_0x538f14['removeField'](_0x419a9e);}const _0x298f3d=_0x538f14[_0x360645(0x3d9)](),_0x4ce002=_0x538f14['query']()[_0x360645(0x2e3)](),_0x1c6083=_0x538f14[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x3ce)]={'changesets':_0x1c6083,'pivotTableConfig':_0x20605b,'isEmpty':_0x298f3d,'view':_0x4ce002};}break;case k['SetPivotFilter']:{const _0x4b3fd8=_0x2ebde4[_0x360645(0x433)]['setPivotFilter'];if(!_0x4b3fd8)return;const {tableFieldId:_0xa56735,items:_0x1d0cca,isAll:_0x387e7f}=_0x4b3fd8,_0x328aba=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558),_0x24fa6e=this[_0x360645(0x22a)][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x328aba||!_0x24fa6e)return;_0x328aba[_0x360645(0x231)](),_0x328aba[_0x360645(0x3be)](_0xa56735,{'type':_0x491413[_0x360645(0x2cf)],'list':_0x1d0cca,'isAll':_0x387e7f});const _0x39dd76=_0x328aba[_0x360645(0x3d9)](),_0xa210aa=_0x328aba[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x3b41c0=_0x328aba[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x1c0)]={'view':_0xa210aa,'changesets':_0x3b41c0,'isEmpty':_0x39dd76,'pivotTableConfig':_0x24fa6e};}break;case k['SetValuePivotFilter']:{const _0x21bbe9=_0x2ebde4[_0x360645(0x433)]['setValuePivotFilter'];if(!_0x21bbe9)return;const {tableFieldId:_0x2210ff,filterInfo:_0x8af26c}=_0x21bbe9,_0x13f77f=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558),_0x2228ce=this[_0x360645(0x22a)][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x13f77f||!_0x2228ce)return;_0x13f77f[_0x360645(0x231)](),_0x13f77f[_0x360645(0x306)](_0x2210ff,_0x8af26c);const _0x27dcc6=_0x13f77f['isEmpty'](),_0x40a3ad=_0x13f77f['query']()['toJSON'](),_0x7e640f=_0x13f77f[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x37b)]={'view':_0x40a3ad,'changesets':_0x7e640f,'isEmpty':_0x27dcc6,'pivotTableConfig':_0x2228ce};}break;case k[_0x360645(0x24e)]:{const _0x4b81e2=_0x2ebde4[_0x360645(0x433)][_0x360645(0x29e)];if(!_0x4b81e2)return;const {tableFieldId:_0x573815,info:_0x59c6af}=_0x4b81e2,_0x4aa1e6=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558),_0x67055a=this[_0x360645(0x22a)]['getPivotTableConfig'](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x4aa1e6||!_0x67055a)return;_0x4aa1e6[_0x360645(0x231)](),_0x4aa1e6['setSortInfo'](_0x573815,_0x59c6af);const _0x46f0aa=_0x4aa1e6['isEmpty'](),_0x30ef99=_0x4aa1e6[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x6841fd=_0x4aa1e6['endCollectChangeset']();_0x4b255f['setPivotSort']={'view':_0x30ef99,'changesets':_0x6841fd,'isEmpty':_0x46f0aa,'pivotTableConfig':_0x67055a};}break;case k[_0x360645(0x256)]:{const _0x87758a=_0x2ebde4['params'][_0x360645(0x2f5)];if(!_0x87758a)return;const {tableFieldId:_0x228755,displayName:_0x62676d,subtotalType:_0x1d9f4f,format:_0x4c18c9}=_0x87758a,_0x28081d=this['_sheetsPivotDataSourceModel'][_0x360645(0x31f)](_0x16a558),_0x1598e9=this[_0x360645(0x22a)][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x28081d||!_0x1598e9)return;_0x28081d[_0x360645(0x231)](),_0x62676d!==void 0x0&&_0x28081d['renameField'](_0x228755,_0x62676d),_0x1d9f4f!==void 0x0&&_0x28081d['setSubtotalType'](_0x228755,_0x1d9f4f),_0x4c18c9!==void 0x0&&_0x28081d['setFieldFormat'](_0x228755,_0x4c18c9);const _0x596fe2=_0x28081d[_0x360645(0x3d9)](),_0x412892=_0x28081d[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x1d206e=_0x28081d[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x2f5)]={'changesets':_0x1d206e,'pivotTableConfig':_0x1598e9,'isEmpty':_0x596fe2,'view':_0x412892};}break;case k[_0x360645(0x1f2)]:{const _0x11754b=_0x2ebde4[_0x360645(0x433)][_0x360645(0x2a9)];if(!_0x11754b)return;const {dataRangeInfo:_0x2e9b68,unitId:_0x17755b,subUnitId:_0x3263eb}=_0x11754b,_0xe3b923=this[_0x360645(0x22a)][_0x360645(0x294)](_0x17755b,_0x3263eb,_0x16a558),_0x3cf085=this[_0x360645(0x22a)]['getPivotTableInstance'](_0x16a558);if(!this['_sheetsPivotDataSourceModel'][_0x360645(0x232)](_0x17755b,_0x16a558)||!_0x3cf085||!_0xe3b923)return;const _0x4af33b=this[_0x360645(0x22a)][_0x360645(0x1dc)](_0x17755b,_0x16a558,_0x2e9b68),_0xff65ed=this['_sheetsPivotDataSourceModel'][_0x360645(0x232)](_0x17755b,_0x16a558)['toJSON'](),{collection:_0x2c160f}=this[_0x360645(0x22a)]['createCollectionWithDataRange']({'unitId':_0x2e9b68[_0x360645(0x1cc)],'sheetName':_0x2e9b68[_0x360645(0x3de)],'subUnitId':_0x2e9b68['subUnitId'],'range':_0x2e9b68[_0x360645(0x21c)]}),_0xb98ded=_0x2c160f[_0x360645(0x2e3)]();_0x3cf085[_0x360645(0x231)]();const _0x2b5690=this[_0x360645(0x22a)][_0x360645(0x33c)](_0x17755b)['getAutoDisplayNameFunction']()||_0x156bd8;_0x3cf085[_0x360645(0x2d7)](_0x5c547c=>{const _0x51688c=_0x360645,_0x2e63ce=_0x5c547c[_0x51688c(0x30f)]();if(!_0x2c160f[_0x51688c(0x2fa)](_0x2e63ce)){const _0x32d2b5=_0x2c160f['getDataFieldBySourceName'](_0x5c547c['getSourceName']());if(_0x32d2b5){_0x3cf085[_0x51688c(0x38f)](_0x5c547c['getId'](),_0x32d2b5['getName'](),_0x32d2b5[_0x51688c(0x403)]());const {area:_0x3147ff}=_0x3cf085[_0x51688c(0x2eb)](_0x5c547c['getId']());let _0x22a979=_0x5c547c[_0x51688c(0x35a)]();const _0x6ebcee=_0x5c547c[_0x51688c(0x3a0)]();if(_0x3147ff===_0x48ff8c[_0x51688c(0x36d)]){const _0x3b342f=_0x5c547c['getSubtotal']();_0x22a979=_0x2b5690(_0x32d2b5['getName'](),_0x3b342f);}_0x6ebcee!==_0x22a979&&_0x3cf085[_0x51688c(0x21a)](_0x5c547c[_0x51688c(0x403)](),_0x22a979);}else _0x3cf085[_0x51688c(0x319)](_0x5c547c[_0x51688c(0x403)]());}});const _0x2e6a2b=_0x3cf085['isEmpty'](),_0x5af07d=_0x3cf085[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x4202ee=_0x3cf085['endCollectChangeset']();_0x4b255f[_0x360645(0x2a9)]={'view':_0x5af07d,'changesets':_0x4202ee,'isEmpty':_0x2e6a2b,'pivotTableConfig':_0xe3b923,'collectionConfig':_0xb98ded,'oldCollectionConfig':_0xff65ed,'deleteIds':_0x4af33b};}break;case k[_0x360645(0x431)]:{const _0x1a8a9c=_0x2ebde4[_0x360645(0x433)]['updateValuePosition'];if(!_0x1a8a9c)return;const {position:_0x5782ac,index:_0x271c9f}=_0x1a8a9c,_0x3d479b=this[_0x360645(0x22a)][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x3d479b)return!0x1;const _0xe65a1=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558);if(!_0xe65a1)return!0x1;_0xe65a1['startCollectChangeset'](),_0xe65a1['updateValuePosition'](_0x5782ac,_0x271c9f);const _0x5b7374=_0xe65a1[_0x360645(0x3d9)](),_0x375ceb=_0xe65a1[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x261fc9=_0xe65a1[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x351)]={'changesets':_0x261fc9,'pivotTableConfig':_0x3d479b,'isEmpty':_0x5b7374,'view':_0x375ceb};}break;case k[_0x360645(0x3b7)]:{const _0x1cb602=_0x2ebde4['params'][_0x360645(0x27a)];if(!_0x1cb602)return;const {tableFieldId:_0x34aa0a,collapse:_0x59dde6,item:_0x2712d9}=_0x1cb602,_0x5eca6b=this[_0x360645(0x22a)][_0x360645(0x31f)](_0x16a558),_0x2e237c=this['_sheetsPivotDataSourceModel'][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x5eca6b||!_0x2e237c)return;_0x5eca6b[_0x360645(0x231)](),_0x5eca6b['setCollapse'](_0x34aa0a,_0x59dde6,_0x2712d9);const _0x3ffa96=_0x5eca6b[_0x360645(0x3d9)](),_0xd4f63e=_0x5eca6b[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x1b0efb=_0x5eca6b[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x27a)]={'view':_0xd4f63e,'isEmpty':_0x3ffa96,'pivotTableConfig':_0x2e237c,'changesets':_0x1b0efb};}break;case k['SetPivotTableConfig']:{const _0x1e03ad=_0x2ebde4[_0x360645(0x433)][_0x360645(0x206)];if(!_0x1e03ad)return;const {pivotTableConfig:_0x220933}=_0x1e03ad,_0x27e23c=this['_sheetsPivotDataSourceModel'][_0x360645(0x31f)](_0x16a558),_0x272b29=this['_sheetsPivotDataSourceModel'][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x27e23c||!_0x272b29)return;_0x27e23c[_0x360645(0x231)](),ji(_0x27e23c,_0x220933);const _0x4b8f4d=_0x27e23c[_0x360645(0x3d9)](),_0x7184f0=_0x27e23c[_0x360645(0x3af)]()[_0x360645(0x2e3)](),_0x20cdcb=_0x27e23c['endCollectChangeset']();_0x4b255f['setPivotTableConfig']={'view':_0x7184f0,'isEmpty':_0x4b8f4d,'pivotTableConfig':{..._0x272b29,'fieldsConfig':_0x27e23c['toJSON']()},'changesets':_0x20cdcb};}break;case k['ResetPivotTable']:{const _0x4187de=_0x2ebde4[_0x360645(0x433)]['resetPivotTable'];if(!_0x4187de)return;const _0x282b30=this[_0x360645(0x22a)]['getPivotTableInstance'](_0x16a558),_0x3675d4=this[_0x360645(0x22a)][_0x360645(0x294)](_0x3068d7,_0x1560f3,_0x16a558);if(!_0x282b30||!_0x3675d4)return;_0x282b30[_0x360645(0x231)](),Ki(_0x282b30,_0x4187de['resetArea']);const _0x24dbde=_0x282b30['query']()['toJSON'](),_0x2ebd15=_0x282b30[_0x360645(0x2a1)]();_0x4b255f[_0x360645(0x40e)]={'view':_0x24dbde,'isEmpty':!0x0,'pivotTableConfig':{..._0x3675d4,'fieldsConfig':_0x282b30['toJSON']()},'changesets':_0x2ebd15};}break;case k['AddPivotTableWithConfig']:{const _0x2beda9=_0x2ebde4['params']['addPivotTableWithConfig'];if(!_0x2beda9)return;const _0x5f204d=_0x2beda9[_0x360645(0x407)],_0x6db919=_0x2beda9[_0x360645(0x3ff)],{collection:_0xb750a9}=this[_0x360645(0x22a)][_0x360645(0x3e0)]({'unitId':_0x5f204d['unitId'],'sheetName':_0x5f204d['sheetName'],'subUnitId':_0x5f204d[_0x360645(0x2ac)],'range':_0x5f204d['range']}),_0x363b4a=new _0x33f1c5(_0xb750a9,void 0x0,_0x6db919),_0x3bba5a=_0xb750a9[_0x360645(0x2b9)](),{rows:_0x10bcc4,columns:_0x46856b,filters:_0x56e3d1,values:_0x49afde}=_0x2beda9[_0x360645(0x420)];_0x363b4a['startCollectChangeset']();for(const {field:_0x3094cf,selectedItems:_0x18e05b}of _0x10bcc4||[]){const _0x10ccd2=_0x3bba5a[_0x3094cf];if(_0x10ccd2){const _0x107a9d=_0x363b4a['addFieldWithSourceId'](_0x10ccd2,_0x48ff8c['Row']);_0x18e05b&&_0x107a9d&&_0x363b4a[_0x360645(0x3be)](_0x107a9d[_0x360645(0x403)](),{'type':_0x491413[_0x360645(0x2cf)],'list':_0x18e05b,'isAll':!0x1});}}for(const {field:_0x2b9167,selectedItems:_0x218a4a}of _0x46856b||[]){const _0x37ddd8=_0x3bba5a[_0x2b9167];if(_0x37ddd8){const _0x5bacbf=_0x363b4a[_0x360645(0x323)](_0x37ddd8,_0x48ff8c['Column']);_0x218a4a&&_0x5bacbf&&_0x363b4a[_0x360645(0x3be)](_0x5bacbf[_0x360645(0x403)](),{'type':_0x491413['ManualFilter'],'list':_0x218a4a,'isAll':!0x1});}}for(const {field:_0x573a0d,selectedItems:_0x17a535}of _0x56e3d1||[]){const _0x1db094=_0x3bba5a[_0x573a0d];if(_0x1db094){const _0x5df993=_0x363b4a[_0x360645(0x323)](_0x1db094,_0x48ff8c[_0x360645(0x41b)]);_0x17a535&&_0x5df993&&_0x363b4a[_0x360645(0x3be)](_0x5df993[_0x360645(0x403)](),{'type':_0x491413[_0x360645(0x2cf)],'list':_0x17a535,'isAll':!0x1});}}for(const {field:_0x5b452b,subTotalType:_0xddeb33,formatString:_0x2b4b33}of _0x49afde||[]){const _0x46d7d8=_0xb750a9[_0x360645(0x2bd)](_0x3bba5a[_0x5b452b]);if(!_0x46d7d8)continue;const _0x580bc8=_0x3bba5a[_0x5b452b];if(_0x580bc8){const _0xb4507d=_0x363b4a[_0x360645(0x323)](_0x580bc8,_0x48ff8c['Value']);if(_0xb4507d){if(_0xddeb33!==void 0x0){_0x363b4a[_0x360645(0x241)](_0xb4507d[_0x360645(0x403)](),_0xddeb33);const _0x5e01de=this[_0x360645(0x22a)][_0x360645(0x33c)](_0x5f204d[_0x360645(0x1cc)])['getAutoDisplayNameFunction']()||_0x156bd8,_0x28581c=_0xb750a9[_0x360645(0x3a0)](_0x580bc8),_0x6950d=_0x5e01de(_0x28581c,_0xddeb33);_0x363b4a[_0x360645(0x21a)](_0xb4507d[_0x360645(0x403)](),_0x6950d);}else{if(_0x46d7d8){const _0x28a682=_0x46d7d8==null?void 0x0:_0x46d7d8[_0x360645(0x2ca)]();_0x363b4a[_0x360645(0x241)](_0xb4507d['getId'](),_0x28a682===_0x5b8b2a['number']?_0x553ee1[_0x360645(0x397)]:_0x553ee1[_0x360645(0x39e)]);}}_0x2b4b33&&_0x363b4a['setFieldFormat'](_0xb4507d[_0x360645(0x403)](),_0x2b4b33);}}}const _0x3b2a67=_0x363b4a[_0x360645(0x3af)](),_0x498a0a=_0x363b4a[_0x360645(0x2e3)](),_0x4d3d4e=_0x363b4a['isEmpty'](),_0x4581af=_0x363b4a[_0x360645(0x2a1)](),_0x3c5c0c=_0xb750a9[_0x360645(0x2e3)]();_0x4b255f[_0x360645(0x3c1)]={'view':_0x3b2a67,'fieldsConfig':_0x498a0a,'collectionConfig':_0x3c5c0c,'isEmpty':_0x4d3d4e,'changesets':_0x4581af};}break;case k[_0x360645(0x435)]:{const _0x5a34d6=Li(this[_0x360645(0x31d)],_0x2ebde4);if(!_0x5a34d6)return;const {range:_0x335f1c,sourceSubUnitId:_0x229dd9,sourceUnitId:_0x420258,formatMap:_0x36bdf,indexes:_0xfab533}=_0x5a34d6;_0x4b255f[_0x360645(0x3d1)]={'range':_0x335f1c,'sourceSubUnitId':_0x229dd9,'sourceUnitId':_0x420258,'formatMap':_0x36bdf,'indexes':_0xfab533};}break;}this[_0x360645(0x384)][_0x360645(0x3ba)](lo['id'],{'version':_0x2ebde4[_0x360645(0x382)],'result':_0x4b255f},{'onlyLocal':!0x0});}));}[_0x91438c(0x2a4)](){const _0x172498=_0x91438c;this[_0x172498(0x317)](this[_0x172498(0x384)]['onCommandExecuted'](_0x11b2e4=>{const _0x20f2b8=_0x172498;if(_0x11b2e4['id']!==uo['id'])return;const _0x5714f9=_0x11b2e4[_0x20f2b8(0x433)];return this['_sheetsPivotDataSourceModel'][_0x20f2b8(0x312)](_0x5714f9['textInfo']),!0x0;}));}['_subjectCollectionChange'](){const _0x1d1dcb=_0x91438c;this['_sheetsPivotDataSourceModel'][_0x1d1dcb(0x2a0)][_0x1d1dcb(0x2d6)](_0x2b9e13=>{const _0x4f9654=_0x1d1dcb;switch(_0x2b9e13[_0x4f9654(0x1fa)]){case Le[_0x4f9654(0x1eb)]:_0x2b9e13[_0x4f9654(0x31e)]&&_0x2b9e13['targetCellInfo']&&this['handleSourceRangeChange'](_0x2b9e13['token'],_0x2b9e13[_0x4f9654(0x31e)],_0x2b9e13[_0x4f9654(0x416)]);break;case Le[_0x4f9654(0x21e)]:{const {unitId:_0x278ffa,subUnitId:_0x566be2,token:_0x13ead1}=_0x2b9e13;_0x278ffa&&_0x566be2&&_0x13ead1&&this[_0x4f9654(0x2ea)](_0x278ffa,_0x566be2,_0x13ead1);}break;case Le['update']:{const {token:_0x382f1a,oldSourceRangeInfo:_0x5a5236,dataRangeInfo:_0x45b54e,targetCellInfo:_0x58f6a1}=_0x2b9e13,{unitId:_0x4509be,subUnitId:_0x50ade2}=_0x5a5236||{};_0x4509be&&_0x50ade2&&_0x382f1a&&this[_0x4f9654(0x2ea)](_0x4509be,_0x50ade2,_0x382f1a),_0x45b54e&&_0x58f6a1&&this[_0x4f9654(0x3fd)](_0x382f1a,_0x45b54e,_0x58f6a1);}break;}});}['_subjectFieldsCollectionChange'](){const _0x4989df=_0x91438c;this[_0x4989df(0x22a)][_0x4989df(0x1b7)][_0x4989df(0x2d6)](_0x12c822=>{const _0x5c5192=_0x4989df;Object[_0x5c5192(0x31c)](_0x12c822)[_0x5c5192(0x342)](_0x569576=>{const _0xff5ce=_0x5c5192,_0x1925e8=this[_0xff5ce(0x22a)]['getTargetByPivotId'](_0x569576);if(_0x1925e8){const _0x3496bd=this[_0xff5ce(0x22a)][_0xff5ce(0x294)](_0x1925e8==null?void 0x0:_0x1925e8[_0xff5ce(0x1cc)],_0x1925e8==null?void 0x0:_0x1925e8[_0xff5ce(0x2ac)],_0x569576);_0x3496bd&&(this[_0xff5ce(0x3fd)](_0x569576,_0x3496bd[_0xff5ce(0x407)],_0x3496bd[_0xff5ce(0x416)]),this[_0xff5ce(0x3c5)]([{'unitId':_0x1925e8[_0xff5ce(0x1cc)],'subUnitId':_0x1925e8[_0xff5ce(0x2ac)],'token':_0x569576}]));}});});}[_0x91438c(0x3f6)](){const _0x5e44c7=_0x91438c;this[_0x5e44c7(0x22a)][_0x5e44c7(0x246)][_0x5e44c7(0x2d6)](_0x27ee9a=>{const {unitId:_0x17bad4,subUnitId:_0x5a9b69,pivotTableId:_0x1b46c3}=_0x27ee9a;_0x17bad4&&_0x5a9b69&&_0x1b46c3&&this['triggerDirtyFeature']([{'unitId':_0x17bad4,'subUnitId':_0x5a9b69,'token':_0x1b46c3}]);});}[_0x91438c(0x3c5)](_0x3309e5){const _0x17a98f=_0x91438c,_0x4aad1e={};_0x3309e5[_0x17a98f(0x342)](_0x29540a=>{var _0x1794d5,_0x5ee1cf;const {unitId:_0x1e2c67,subUnitId:_0x17ab4f,token:_0x4a3630}=_0x29540a;_0x4aad1e[_0x1e2c67]=(_0x1794d5=_0x4aad1e[_0x1e2c67])!=null?_0x1794d5:{},_0x4aad1e[_0x1e2c67][_0x17ab4f]=(_0x5ee1cf=_0x4aad1e[_0x1e2c67][_0x17ab4f])!=null?_0x5ee1cf:{},_0x4aad1e[_0x1e2c67][_0x17ab4f][_0x4a3630]=!0x0;}),this['_commandService'][_0x17a98f(0x3ba)](Nt['id'],_0x4aad1e);}['removeSourceRangeChange'](_0x524bae,_0x11b62b,_0x5a4c21){const _0x307469=_0x91438c;this[_0x307469(0x305)][_0x307469(0x207)](_0x524bae,_0x11b62b,[_0x5a4c21]);}[_0x91438c(0x3fd)](_0x1b3007,_0x14a10c,_0x2ae79c){const _0x2bd7f4=_0x91438c,{unitId:_0x1a495b,subUnitId:_0x4b0248}=_0x14a10c;this[_0x2bd7f4(0x305)]['has'](_0x2ae79c['unitId'],_0x2ae79c['subUnitId'],_0x1b3007)&&this[_0x2bd7f4(0x2ea)](_0x1a495b,_0x4b0248,_0x1b3007);const _0x4a1c03={'sheetId':_0x4b0248,..._0x14a10c};this['_featureCalculationManagerService'][_0x2bd7f4(0x1e2)](_0x2ae79c[_0x2bd7f4(0x1cc)],_0x2ae79c[_0x2bd7f4(0x2ac)],_0x1b3007,{'unitId':_0x2ae79c['unitId'],'subUnitId':_0x2ae79c[_0x2bd7f4(0x2ac)],'dependencyRanges':[_0x4a1c03],'getDirtyData':(_0x20875f,_0x1ee7ff)=>{const _0x13f573=_0x2bd7f4,_0x1b7b06=this[_0x13f573(0x22a)],_0x67b9d0=_0x1b7b06[_0x13f573(0x2ba)](_0x1b3007);if(!_0x67b9d0)return Es();const {unitId:_0x4846d4,subUnitId:_0xc0f33a}=_0x67b9d0,_0x500bcc=Os(_0x20875f,_0x1ee7ff,_0x14a10c);if(_0x500bcc['length']>0x0){const _0x56e7d7=_0x1b7b06[_0x13f573(0x232)](_0x1a495b,_0x1b3007),_0x2578f8=_0x56e7d7[_0x13f573(0x2b9)](),_0xc1bdb9=this[_0x13f573(0x2f4)](_0x14a10c[_0x13f573(0x1cc)],_0x14a10c[_0x13f573(0x2ac)],_0x1ee7ff),_0x6aded8={},_0x284927=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x4846d4)[_0x13f573(0x1dd)]()||_0x156bd8,_0x31dcc4=[];for(const _0x41c54 of _0x500bcc){const _0x383384=_0x41c54-(_0x14a10c[_0x13f573(0x21c)][_0x13f573(0x2ee)]||0x0),_0x41edeb=_0x2578f8[_0x383384];_0x31dcc4[_0x13f573(0x3fe)](_0x41edeb),_0x6aded8[_0x41edeb]=_0x56e7d7[_0x13f573(0x2bd)](_0x41edeb)[_0x13f573(0x30e)](),_0x1b7b06[_0x13f573(0x33c)](_0x1a495b)['refreshDataField'](_0x41edeb,_0x14a10c,_0x383384,_0xc1bdb9);}_0x56e7d7['getGroupFieldsInfoByIds'](_0x31dcc4)[_0x13f573(0x342)](_0x4f9075=>{const _0x580668=_0x13f573,[_0x2e72a0,_0x1bd8e3]=_0x4f9075,_0x449d5a=_0x56e7d7[_0x580668(0x2bd)](_0x2e72a0),_0x5688c=_0x56e7d7[_0x580668(0x2bd)](_0x1bd8e3);_0x449d5a&&_0x5688c&&_0x449d5a[_0x580668(0x261)](_0x5688c);}),_0x56e7d7[_0x13f573(0x338)]();const _0x34dc66=_0x1b7b06[_0x13f573(0x31f)](_0x1b3007);if(_0x34dc66){xs(_0x34dc66,_0x6aded8,_0x284927),_0x34dc66[_0x13f573(0x2e5)](!0x0);const _0x5a69f3=_0x34dc66['query'](),_0x55cc62=_0x1b7b06[_0x13f573(0x294)](_0x4846d4,_0xc0f33a,_0x1b3007),_0xf654d2=_0x1b7b06[_0x13f573(0x33c)](_0x1a495b)[_0x13f573(0x2e3)]();_0x1b7b06[_0x13f573(0x269)](_0x4846d4,_0xc0f33a,J[_0x13f573(0x20b)],_0x1b3007,_0x5a69f3,_0x55cc62,_0xf654d2,!0x0);}}return this[_0x13f573(0x379)](_0x4846d4,_0xc0f33a,_0x1b3007);}});}[_0x91438c(0x2f4)](_0x3f0810,_0x232bdf,_0x2b9a93){var _0x388887,_0x1a0e21;const {arrayFormulaCellData:_0x4e9769,unitData:_0x16a922}=_0x2b9a93,_0x1a91e6=(_0x388887=_0x4e9769==null?void 0x0:_0x4e9769[_0x3f0810])==null?void 0x0:_0x388887[_0x232bdf],_0x268a5c=(_0x1a0e21=_0x16a922==null?void 0x0:_0x16a922[_0x3f0810])==null?void 0x0:_0x1a0e21[_0x232bdf];return{'arrayFormulaCellDataMatrix':_0x1a91e6,'unitDataMatrix':_0x268a5c};}[_0x91438c(0x379)](_0x4db269,_0x413381,_0x4c3575){const _0x1c95f2=_0x91438c,_0x4667a2=this['_sheetsPivotDataSourceModel']['getViewData'](_0x4db269,_0x413381,_0x4c3575),_0xc10ecf=[],_0x3ec50c=new _0x17d6f8();if(_0x4667a2){const {rangeCache:_0x3098bf,matrix:_0xac8916,oldRangeCache:_0x3209be,oldMatrix:_0x374a98}=_0x4667a2,_0x17703a=Jt(_0x3209be),_0x1b2301=Jt(_0x3098bf);_0xc10ecf[_0x1c95f2(0x3fe)](..._0x1b2301,..._0x17703a),_0x374a98&&_0x3209be&&_0x17703a[_0x1c95f2(0x342)](_0x51fa87=>{const _0x4d7ec8=_0x1c95f2;for(let _0x227206=_0x51fa87[_0x4d7ec8(0x34c)];_0x227206<=_0x51fa87[_0x4d7ec8(0x25c)];_0x227206++)for(let _0x477c69=_0x51fa87[_0x4d7ec8(0x2ee)];_0x477c69<=_0x51fa87[_0x4d7ec8(0x377)];_0x477c69++)_0x3ec50c[_0x4d7ec8(0x249)](_0x227206,_0x477c69);}),_0xac8916&&_0x1b2301&&_0x1b2301['forEach'](_0x2c0869=>{const _0xc6a7ed=_0x1c95f2;for(let _0x5dd4db=_0x2c0869[_0xc6a7ed(0x34c)];_0x5dd4db<=_0x2c0869['endRow'];_0x5dd4db++)for(let _0x356765=_0x2c0869[_0xc6a7ed(0x2ee)];_0x356765<=_0x2c0869[_0xc6a7ed(0x377)];_0x356765++)_0x3ec50c['setValue'](_0x5dd4db,_0x356765,_0xac8916[_0xc6a7ed(0x344)](_0x5dd4db,_0x356765));});}const _0x3cc147={};return _0x3cc147[_0x4db269]={[_0x413381]:As(_0xc10ecf)},{'runtimeCellData':{[_0x4db269]:{[_0x413381]:_0x3ec50c}},'dirtyRanges':_0x3cc147};}[_0x91438c(0x3b3)](){}};dt=Us([at(0x0,_0x431452($)),at(0x1,_0x431452(_0xf8c02c)),at(0x2,_0x431452(_0xa7b251)),at(0x3,_0x431452(_0x5ede83)),at(0x4,_0x431452(_0x4efa5c))],dt);var ks=Object[_0x91438c(0x26b)],Bs=(_0x37ee74,_0x587428,_0x2edca0,_0x2a9e9c)=>{const _0x5f23b2=_0x91438c;for(var _0x17ecdf=_0x2a9e9c>0x1?void 0x0:_0x2a9e9c?ks(_0x587428,_0x2edca0):_0x587428,_0x24cbf8=_0x37ee74[_0x5f23b2(0x3e7)]-0x1,_0x48c41b;_0x24cbf8>=0x0;_0x24cbf8--)(_0x48c41b=_0x37ee74[_0x24cbf8])&&(_0x17ecdf=_0x48c41b(_0x17ecdf)||_0x17ecdf);return _0x17ecdf;},wt=(_0x57ef40,_0xb84e1a)=>(_0x4b522,_0x33a1f8)=>_0xb84e1a(_0x4b522,_0x33a1f8,_0x57ef40);let ct=class extends _0x5353ba{constructor(_0x4896b2,_0x2f7bf1,_0x890c76,_0x4a9d8c){const _0x41d2fd=_0x91438c;super(),N(this,_0x41d2fd(0x2a5),new _0x3e132f()),(this[_0x41d2fd(0x22e)]=_0x4896b2,this[_0x41d2fd(0x376)]=_0x2f7bf1,this[_0x41d2fd(0x2ec)]=_0x890c76,this[_0x41d2fd(0x1bc)]=_0x4a9d8c,this[_0x41d2fd(0x3ed)]());}[_0x91438c(0x3ed)](){const _0x4a7781=_0x91438c;this[_0x4a7781(0x317)](this[_0x4a7781(0x376)][_0x4a7781(0x251)]({'getMutations':_0x390225=>{const _0x2a1502=_0x4a7781;if(_0x390225['id']===_0x5b0c19['id']||_0x390225['id']===_0x1e760c['id']){const _0x5d3e5c=[],_0x228679=[],_0xb3452c=this[_0x2a1502(0x2ec)][_0x2a1502(0x2d5)]()[_0x2a1502(0x39b)](_0x333315=>_0x333315[_0x2a1502(0x21c)]),_0x244516=_0x1a5e6f(this[_0x2a1502(0x22e)]);if(!_0x244516)return{'redos':[],'undos':[]};const {unitId:_0x593e87,subUnitId:_0x4e3d96}=_0x244516,_0x1119fa={},_0x3c12ac=this[_0x2a1502(0x1bc)][_0x2a1502(0x239)](_0x593e87,_0x4e3d96);if(_0x3c12ac!=null&&_0x3c12ac[_0x2a1502(0x244)])for(const [_0x302714,_0x3933b0]of _0x3c12ac){const {unitId:_0x250aa0,subUnitId:_0x415209,row:_0x4deeb2,col:_0x4345dd}=_0x3933b0[_0x2a1502(0x416)];_0x250aa0===_0x244516[_0x2a1502(0x1cc)]&&_0x415209===_0x244516[_0x2a1502(0x2ac)]&&(_0x1119fa[_0x4deeb2+'-'+_0x4345dd]=_0x302714);}return _0xb3452c&&_0x244516&&_0xb3452c[_0x2a1502(0x342)](_0x117247=>{const _0x35dd7c=_0x2a1502;_0x10efc2[_0x35dd7c(0x369)](_0x117247,(_0x5dd787,_0x41d6ca)=>{const _0x22a927=_0x35dd7c,_0x1b2a64=_0x5dd787+'-'+_0x41d6ca;if(_0x1119fa[_0x1b2a64]){const _0x20bfe6=_0x1119fa[_0x1b2a64];_0x5d3e5c[_0x22a927(0x3fe)]({'id':xt['id'],'params':{'unitId':_0x593e87,'subUnitId':_0x4e3d96,'pivotTableId':_0x20bfe6}});const _0x5722ec=this[_0x22a927(0x1bc)][_0x22a927(0x232)](_0x593e87,_0x20bfe6),_0x1d5bbf=this[_0x22a927(0x1bc)][_0x22a927(0x294)](_0x593e87,_0x4e3d96,_0x20bfe6);_0x228679[_0x22a927(0x3fe)]({'id':Ct['id'],'params':{'unitId':_0x593e87,'subUnitId':_0x4e3d96,'pivotTableId':_0x20bfe6,'pivotTableConfig':_0x1d5bbf,'collectionConfig':_0x5722ec}});}});}),{'redos':_0x5d3e5c,'undos':_0x228679};}return{'redos':[],'undos':[]};}}));}};ct=Bs([wt(0x0,_0x2c885f),wt(0x1,_0x431452(_0x3ec024)),wt(0x2,_0x431452(_0xf9b969)),wt(0x3,_0x431452(he))],ct);var Ls=Object['getOwnPropertyDescriptor'],Js=(_0x511ab3,_0x309688,_0x28942d,_0x229f70)=>{const _0x42d436=_0x91438c;for(var _0x355b45=_0x229f70>0x1?void 0x0:_0x229f70?Ls(_0x309688,_0x28942d):_0x309688,_0x24afdc=_0x511ab3[_0x42d436(0x3e7)]-0x1,_0x671f79;_0x24afdc>=0x0;_0x24afdc--)(_0x671f79=_0x511ab3[_0x24afdc])&&(_0x355b45=_0x671f79(_0x355b45)||_0x355b45);return _0x355b45;},rt=(_0x34c1c9,_0x36c025)=>(_0x4bd426,_0x2fd96e)=>_0x36c025(_0x4bd426,_0x2fd96e,_0x34c1c9);let ut=class extends _0x5353ba{constructor(_0x1a4338,_0x5c0e37,_0x4ed691,_0x3a0311,_0x4c96fc){const _0x4926a3=_0x91438c;super(),this[_0x4926a3(0x376)]=_0x1a4338,this['_injector']=_0x5c0e37,this[_0x4926a3(0x22e)]=_0x4ed691,this[_0x4926a3(0x1bc)]=_0x3a0311,this[_0x4926a3(0x412)]=_0x4c96fc,this[_0x4926a3(0x225)]();}[_0x91438c(0x389)](_0x245750,_0x1204dd,_0x5d52ef){const _0x5e97ef=_0x91438c,{pageView:_0x3cf4cc,cornerView:_0x31b9e7,rowView:_0x5cf2ea,colView:_0x496ffe,dataView:_0x510a30}=_0x1204dd,_0x241145=_0x245750;let _0x14721c;if(_0x5d52ef)_0x14721c=[...Ji(_0x241145)];else{const _0x10ea5b=ge(_0x241145,_0x3cf4cc,!0x0),_0xaeb94b=_0x3cf4cc['lastRow']>=0x0?_0x3cf4cc['lastRow']+0x1:0x0,_0x5b71c0=_0x31b9e7['rowCount'],_0x3c3a10=_0x31b9e7[_0x5e97ef(0x36c)],_0x1b505a=_0x10ea5b[_0x5e97ef(0x3e7)]>0x0?mt:0x0,_0x279b0b=ge({'row':_0x241145[_0x5e97ef(0x38d)]+_0xaeb94b+_0x1b505a,'col':_0x241145[_0x5e97ef(0x378)]},_0x31b9e7,!0x1,!0x1),_0xba79d7=ge({'row':_0x241145[_0x5e97ef(0x38d)]+_0xaeb94b+_0x1b505a+_0x5b71c0,'col':_0x241145[_0x5e97ef(0x378)]},_0x5cf2ea,!0x1,!0x0),_0x1eb764=ge({'row':_0x241145[_0x5e97ef(0x38d)]+_0xaeb94b+_0x1b505a,'col':_0x241145[_0x5e97ef(0x378)]+_0x3c3a10},_0x496ffe,!0x1,!0x0),_0x40e104=ge({'row':_0x241145['row']+_0xaeb94b+_0x1b505a+_0x5b71c0,'col':_0x241145[_0x5e97ef(0x378)]+_0x3c3a10},_0x510a30,!0x1,!0x0);_0x14721c=[..._0x10ea5b,..._0x279b0b,..._0xba79d7,..._0x1eb764,..._0x40e104];}return _0x14721c;}['_initCommandInterceptListener'](){const _0x1e86d3=_0x91438c;this[_0x1e86d3(0x317)](this['_sheetsPivotTableService']['interceptor']['intercept'](this[_0x1e86d3(0x412)]['interceptor'][_0x1e86d3(0x2e8)]()[_0x1e86d3(0x304)],{'handler':(_0x342e5c,_0x42c515)=>{const _0x1a75a8=_0x1e86d3,{cellInfo:_0xe9b5a1,view:_0x138b30,isEmpty:_0x32efe3}=_0x42c515,_0x30dfdb=_0xe9b5a1,{unitId:_0x1a14fd,subUnitId:_0x11ffca}=_0x30dfdb,_0x5c1c42=this[_0x1a75a8(0x389)](_0xe9b5a1,_0x138b30,_0x32efe3),_0x3b0fff=this[_0x1a75a8(0x376)][_0x1a75a8(0x1be)]({'unitId':_0x1a14fd,'subUnitId':_0x11ffca,'ranges':_0x5c1c42}),_0xc46386=Ho(this['_injector'],_0x1a14fd,_0x11ffca,_0x5c1c42);_0xc46386[_0x1a75a8(0x22d)]&&(_0x3b0fff[_0x1a75a8(0x1fe)]['push'](_0xc46386[_0x1a75a8(0x224)]),_0x3b0fff[_0x1a75a8(0x3f1)][_0x1a75a8(0x3fe)](_0xc46386[_0x1a75a8(0x2f1)]));const _0x4cbd28=this[_0x1a75a8(0x1e6)](_0x138b30,_0xe9b5a1);return _0x3b0fff[_0x1a75a8(0x1fe)]['push'](..._0x4cbd28['redos']),_0x3b0fff[_0x1a75a8(0x3f1)]['push'](..._0x4cbd28[_0x1a75a8(0x3f1)]),{'redos':_0x3b0fff[_0x1a75a8(0x1fe)],'undos':_0x3b0fff[_0x1a75a8(0x3f1)]};}}));}[_0x91438c(0x1e6)](_0x3dbdce,_0x128010){const _0x474d6a=_0x91438c,{col:_0x188d65,unitId:_0x4f34ba,subUnitId:_0x52e125}=_0x128010,_0x153042=[],_0x446348=[],_0x407218=_0x1a5e6f(this[_0x474d6a(0x22e)],{'unitId':_0x4f34ba,'subUnitId':_0x52e125});if(!_0x128010||!_0x3dbdce||!_0x407218)return{'undos':_0x446348,'redos':_0x153042};const _0x167e95=this[_0x474d6a(0x1bc)][_0x474d6a(0x352)](),{colView:_0x482d42,dataView:_0x192ecf,cornerView:_0x103eb6,rowView:_0x10a7ed,formatMap:_0x4183f4}=_0x3dbdce,_0x40a3c0=To(_0x482d42,_0x167e95,!0x0,_0x4183f4),_0x960291=To(_0x10a7ed,_0x167e95,!0x1,_0x4183f4),_0x14cb65=Gi(_0x192ecf),_0x9e3788=Wi(_0x103eb6),{worksheet:_0x2dc6f0}=_0x407218;if(typeof window<'u'&&window['document']){const _0x191fd=_0x2a9f35({...fe[_0x474d6a(0x3ae)]}),_0x1b0870=_0x5726e4[_0x474d6a(0x303)](_0x40a3c0,_0x191fd)[_0x474d6a(0x203)]+0x10,_0x177f6d=_0x5726e4[_0x474d6a(0x303)](_0x14cb65,_0x191fd)[_0x474d6a(0x203)],_0x40afc6=Math[_0x474d6a(0x35b)](Math[_0x474d6a(0x3b0)](_0x1b0870,_0x177f6d))+0x10,_0x326cc4=Math['floor'](_0x5726e4[_0x474d6a(0x303)](_0x960291,_0x191fd)[_0x474d6a(0x203)]),_0x41b4de=Math[_0x474d6a(0x35b)](_0x5726e4['getTextSize'](_0x9e3788,_0x191fd)['width']),_0xf7882d=Math['max'](_0x326cc4,_0x41b4de,0x28)+0xc,_0x3e60aa=_0x482d42['colCount']+_0x103eb6[_0x474d6a(0x36c)],_0x5ae245={},_0x53ad77={};for(let _0x139797=_0x188d65;_0x139797<_0x188d65+_0x3e60aa;_0x139797++){const _0x43dcef=_0x2dc6f0['getColumnWidth'](_0x139797);_0x5ae245[_0x139797]=_0x43dcef,_0x139797-_0x188d65<_0x103eb6[_0x474d6a(0x36c)]?_0x53ad77[_0x139797-_0x188d65]=_0xf7882d:_0x53ad77[_0x139797-_0x188d65]=_0x40afc6;}_0x153042[_0x474d6a(0x3fe)]({'id':_0xda2656['id'],'params':{'subUnitId':_0x52e125,'unitId':_0x4f34ba,'ranges':[{'startColumn':_0x188d65,'endColumn':_0x188d65+_0x3e60aa-0x1,'startRow':0x0,'endRow':_0x2dc6f0[_0x474d6a(0x1ce)]()-0x1}],'colWidth':_0x53ad77}}),_0x446348['push']({'id':_0xda2656['id'],'params':{'subUnitId':_0x52e125,'unitId':_0x4f34ba,'ranges':[{'startColumn':_0x188d65,'endColumn':_0x188d65+_0x3e60aa-0x1,'startRow':0x0,'endRow':_0x2dc6f0['getRowCount']()-0x1}],'colWidth':_0x5ae245}});}return{'undos':_0x446348,'redos':_0x153042};}};ut=Js([rt(0x0,_0x431452(_0x3ec024)),rt(0x1,_0x431452(_0x4efa5c)),rt(0x2,_0x431452(_0x2c885f)),rt(0x3,_0x431452(he)),rt(0x4,_0x431452(ie))],ut);var $s=Object['getOwnPropertyDescriptor'],Xs=(_0x3408d3,_0x2a2dcf,_0x51bf1a,_0x5b692c)=>{for(var _0x31c86c=_0x5b692c>0x1?void 0x0:_0x5b692c?$s(_0x2a2dcf,_0x51bf1a):_0x2a2dcf,_0x2f946a=_0x3408d3['length']-0x1,_0x32eb9c;_0x2f946a>=0x0;_0x2f946a--)(_0x32eb9c=_0x3408d3[_0x2f946a])&&(_0x31c86c=_0x32eb9c(_0x31c86c)||_0x31c86c);return _0x31c86c;},ke=(_0x681f32,_0xdfe197)=>(_0x4b406c,_0xf6d7ff)=>_0xdfe197(_0x4b406c,_0xf6d7ff,_0x681f32);let ft=class extends _0x5353ba{constructor(_0x43a445,_0x1192e7,_0x5f1011,_0x8c655b,_0x183ab2,_0xa733fd,_0x1ee4a4){const _0x3f75f1=_0x91438c;super(),N(this,_0x3f75f1(0x2a5),new _0x3e132f()),(this[_0x3f75f1(0x31d)]=_0x43a445,this[_0x3f75f1(0x227)]=_0x1192e7,this[_0x3f75f1(0x384)]=_0x5f1011,this[_0x3f75f1(0x22e)]=_0x8c655b,this[_0x3f75f1(0x1bc)]=_0x183ab2,this[_0x3f75f1(0x355)]=_0xa733fd,this['_sheetInterceptorService']=_0x1ee4a4,this[_0x3f75f1(0x28a)]());}[_0x91438c(0x28a)](){const _0x637da4=_0x91438c,_0x1d16a=(_0x58cbb7,_0x4dbffb)=>{const _0x14ed76=_0x3105,_0x7a05a7=this[_0x14ed76(0x22e)][_0x14ed76(0x1d0)](_0x102cba['UNIVER_SHEET']);if(!_0x7a05a7||!(_0x7a05a7==null?void 0x0:_0x7a05a7[_0x14ed76(0x243)](_0x4dbffb)))return;this['disposableCollection'][_0x14ed76(0x3b3)]();const _0x107739=_0x106ca5=>this[_0x14ed76(0x3b1)](_0x106ca5,_0x58cbb7,_0x4dbffb),_0x3d08d0=this[_0x14ed76(0x1bc)][_0x14ed76(0x239)](_0x58cbb7,_0x4dbffb);if(!(_0x3d08d0!=null&&_0x3d08d0[_0x14ed76(0x244)]))return;Array['from'](_0x3d08d0[_0x14ed76(0x2c8)]())['map'](_0x177e3b=>{const _0x25a95a=_0x14ed76,{row:_0x5bcd73,col:_0x322546}=_0x177e3b[_0x25a95a(0x416)];return _0x540207(_0x5bcd73,_0x322546);})[_0x14ed76(0x342)](_0x3be036=>{const _0xf888e8=_0x14ed76;this[_0xf888e8(0x2a5)][_0xf888e8(0x1eb)](this['_refRangeService'][_0xf888e8(0x1c2)](_0x3be036,_0x107739,_0x58cbb7,_0x4dbffb));});},_0x1a4624=()=>{const _0x3439e5=_0x3105,_0x230d8f=this['_univerInstanceService'][_0x3439e5(0x1d0)](_0x102cba[_0x3439e5(0x297)]);if(_0x230d8f){const _0x533311=_0x230d8f[_0x3439e5(0x30d)]();if(!_0x533311)return;_0x1d16a(_0x230d8f[_0x3439e5(0x417)](),_0x533311['getSheetId']());}};this[_0x637da4(0x317)](this[_0x637da4(0x384)][_0x637da4(0x347)](_0x462db9=>{const _0x1c0275=_0x637da4;if(_0x462db9['id']===_0x258e13['id']){const _0x4a4c56=_0x462db9[_0x1c0275(0x433)],_0x18c964=_0x4a4c56[_0x1c0275(0x2ac)],_0x68d1fc=_0x4a4c56[_0x1c0275(0x1cc)];if(!_0x18c964||!_0x68d1fc)return;_0x1d16a(_0x68d1fc,_0x18c964);}})),this[_0x637da4(0x317)](this[_0x637da4(0x1bc)][_0x637da4(0x2db)][_0x637da4(0x2d6)](_0x29978e=>{_0x29978e&&_0x1a4624();})),this[_0x637da4(0x317)](this[_0x637da4(0x1bc)][_0x637da4(0x1e5)][_0x637da4(0x2d6)](_0x4422a7=>{const _0x3a3189=_0x637da4,_0x51d16f=_0x1a5e6f(this[_0x3a3189(0x22e)]);if(!_0x51d16f)return;const {unitId:_0x323d42,subUnitId:_0x2681b8}=_0x51d16f,{unitId:_0x1bd146,subUnitId:_0x4b3dc5}=_0x4422a7;_0x323d42!==_0x1bd146||_0x2681b8!==_0x4b3dc5||_0x1d16a(_0x323d42,_0x2681b8);})),_0x1a4624();}['_refRangeHandle'](_0x5b1289,_0x2408c4,_0x16c856){const _0x3c619f=_0x91438c;switch(_0x5b1289['id']){case _0x1c72b3['id']:return this[_0x3c619f(0x1f5)](_0x5b1289[_0x3c619f(0x433)],_0x2408c4,_0x16c856);}return{'redos':[],'undos':[]};}[_0x91438c(0x1f5)](_0x2f30c9,_0x21185a,_0x10824c){const _0x2184b8=_0x91438c,{fromRange:_0x2b169a,toRange:_0x2269d4}=_0x2f30c9,_0x5d0478=[],_0x4f5880=[],_0xe1ec18=_0x1a5e6f(this[_0x2184b8(0x22e)]);if(!_0xe1ec18)return{'undos':_0x4f5880,'redos':_0x5d0478};if(_0x21185a!==_0xe1ec18['unitId']||_0x10824c!==_0xe1ec18[_0x2184b8(0x2ac)])return{'undos':_0x4f5880,'redos':_0x5d0478};const _0x559893=this[_0x2184b8(0x1bc)][_0x2184b8(0x239)](_0x21185a,_0x10824c);if(_0x559893!=null&&_0x559893[_0x2184b8(0x244)])for(const [_0x33d094,_0xf8cf07]of _0x559893){const {unitId:_0x50b1cc,subUnitId:_0x342de2,row:_0x2aa98d,col:_0x2c642d}=_0xf8cf07[_0x2184b8(0x416)];if(_0x50b1cc===_0xe1ec18[_0x2184b8(0x1cc)]&&_0x342de2===_0xe1ec18[_0x2184b8(0x2ac)]){const _0x419a2d=_0x540207(_0x2aa98d,_0x2c642d);if(_0x459723[_0x2184b8(0x28b)](_0x419a2d,_0x2b169a)){const _0x426082=_0x2aa98d-_0x2b169a[_0x2184b8(0x34c)],_0x10cc26=_0x2c642d-_0x2b169a[_0x2184b8(0x2ee)],_0x3ea7fd={'row':_0x2269d4[_0x2184b8(0x34c)]+_0x426082,'col':_0x2269d4[_0x2184b8(0x2ee)]+_0x10cc26};_0x5d0478[_0x2184b8(0x3fe)]({'id':pt['id'],'params':{'unitId':_0x50b1cc,'subUnitId':_0x342de2,'pivotTableId':_0x33d094,'targetCellPosition':_0x3ea7fd}}),_0x4f5880[_0x2184b8(0x3fe)]({'id':pt['id'],'params':{'unitId':_0x50b1cc,'subUnitId':_0x342de2,'pivotTableId':_0x33d094,'targetCellPosition':{'row':_0x2aa98d,'col':_0x2c642d}}});const _0x13d2f9=_0x3ea7fd[_0x2184b8(0x38d)]-_0x2aa98d,_0xdcc094=_0x3ea7fd[_0x2184b8(0x378)]-_0x2c642d,_0x4fd04c=[],_0x399769=this['_sheetsPivotTableAdaptorModel'][_0x2184b8(0x41e)](_0x50b1cc,_0x342de2,_0x33d094),_0x58d75b=_0x399769==null?void 0x0:_0x399769[_0x2184b8(0x3ef)];if(_0x58d75b){Object[_0x2184b8(0x31c)](_0x58d75b)[_0x2184b8(0x342)](_0xd7a300=>{const _0x5472d1=_0x2184b8;_0x58d75b[_0xd7a300][_0x5472d1(0x342)](_0x541881=>{const _0xce1a6b=_0x5472d1,_0x718f58={..._0x541881};_0x718f58[_0xce1a6b(0x34c)]=_0x541881['startRow']+_0x13d2f9,_0x718f58[_0xce1a6b(0x25c)]=_0x541881[_0xce1a6b(0x25c)]+_0x13d2f9,_0x718f58[_0xce1a6b(0x2ee)]=_0x541881[_0xce1a6b(0x2ee)]+_0xdcc094,_0x718f58['endColumn']=_0x541881[_0xce1a6b(0x377)]+_0xdcc094,_0x4fd04c['push'](_0x718f58);});});const _0x11bad3=this[_0x2184b8(0x376)][_0x2184b8(0x1be)]({'unitId':_0x50b1cc,'subUnitId':_0x342de2,'ranges':_0x4fd04c});_0x5d0478[_0x2184b8(0x3fe)](..._0x11bad3[_0x2184b8(0x1fe)]),_0x4f5880[_0x2184b8(0x3fe)](..._0x11bad3[_0x2184b8(0x3f1)]);const _0x2cd718=Ho(this[_0x2184b8(0x31d)],_0x50b1cc,_0x342de2,_0x4fd04c);_0x2cd718['shouldClear']&&(_0x5d0478['push'](_0x2cd718[_0x2184b8(0x224)]),_0x4f5880[_0x2184b8(0x3fe)](_0x2cd718[_0x2184b8(0x2f1)]));}}}}return{'redos':_0x5d0478,'undos':_0x4f5880};}};ft=Xs([ke(0x0,_0x431452(_0x4efa5c)),ke(0x1,_0x431452(_0x38f3f0)),ke(0x2,_0xa7b251),ke(0x3,_0x2c885f),ke(0x4,_0x431452(he)),ke(0x5,_0x431452(Ve)),ke(0x6,_0x431452(_0x3ec024))],ft);var Gs=Object[_0x91438c(0x26b)],Ws=(_0x41f04f,_0x3766f0,_0x2b20ba,_0x34e89b)=>{const _0x34c280=_0x91438c;for(var _0x3e2d7e=_0x34e89b>0x1?void 0x0:_0x34e89b?Gs(_0x3766f0,_0x2b20ba):_0x3766f0,_0x292ca4=_0x41f04f[_0x34c280(0x3e7)]-0x1,_0x28df75;_0x292ca4>=0x0;_0x292ca4--)(_0x28df75=_0x41f04f[_0x292ca4])&&(_0x3e2d7e=_0x28df75(_0x3e2d7e)||_0x3e2d7e);return _0x3e2d7e;},wo=(_0xc31778,_0x53a54a)=>(_0x2894b1,_0xc2f1a1)=>_0x53a54a(_0x2894b1,_0xc2f1a1,_0xc31778);let gt=class extends _0x5353ba{constructor(_0x533294,_0x36412e){const _0x7e3c04=_0x91438c;super(),this[_0x7e3c04(0x376)]=_0x533294,this['_sheetsPivotTableConfigModel']=_0x36412e,this[_0x7e3c04(0x23f)]();}[_0x91438c(0x23f)](){const _0x25c87d=_0x91438c;this[_0x25c87d(0x317)](this['_sheetInterceptorService'][_0x25c87d(0x251)]({'getMutations':_0x32e39f=>{const _0x5c1be3=_0x25c87d;if(_0x32e39f['id']===_0x5e55d8['id']){const _0x1c65db=[],_0x3ba51c=[],_0x140012=_0x32e39f[_0x5c1be3(0x433)],{unitId:_0x16fa8c,subUnitId:_0x5eeebc}=_0x140012;if(!_0x16fa8c||!_0x5eeebc)return{'undos':_0x3ba51c,'redos':_0x1c65db};const _0x2bec25=this[_0x5c1be3(0x1bc)][_0x5c1be3(0x239)](_0x16fa8c,_0x5eeebc);if(_0x2bec25!=null&&_0x2bec25[_0x5c1be3(0x244)])for(const [_0x3c40e8,_0x599714]of _0x2bec25){_0x1c65db['push']({'id':xt['id'],'params':{'unitId':_0x16fa8c,'subUnitId':_0x5eeebc,'pivotTableId':_0x3c40e8}});const _0x156c32={...this[_0x5c1be3(0x1bc)]['getCollection'](_0x16fa8c,_0x3c40e8)};_0x3ba51c[_0x5c1be3(0x3fe)]({'id':Ct['id'],'params':{'unitId':_0x16fa8c,'subUnitId':_0x5eeebc,'pivotTableId':_0x3c40e8,'pivotTableConfig':_0x599714,'collectionConfig':_0x156c32}});}return{'redos':_0x1c65db,'undos':_0x3ba51c};}return{'redos':[],'undos':[]};}}));}};gt=Ws([wo(0x0,_0x431452(_0x3ec024)),wo(0x1,_0x431452(he))],gt);var js=Object[_0x91438c(0x26b)],Ks=(_0x573273,_0x1bf7b5,_0x24a7c9,_0x423592)=>{for(var _0x31bd03=_0x423592>0x1?void 0x0:_0x423592?js(_0x1bf7b5,_0x24a7c9):_0x1bf7b5,_0x3e7899=_0x573273['length']-0x1,_0x1cfaba;_0x3e7899>=0x0;_0x3e7899--)(_0x1cfaba=_0x573273[_0x3e7899])&&(_0x31bd03=_0x1cfaba(_0x31bd03)||_0x31bd03);return _0x31bd03;},je=(_0x355cd6,_0x44bf40)=>(_0x20c267,_0x5b33a4)=>_0x44bf40(_0x20c267,_0x5b33a4,_0x355cd6);let vt=class extends _0x5353ba{constructor(_0xd596,_0x5ec7b2,_0x18846a,_0x193461,_0x18440c,_0x414976){const _0x125f05=_0x91438c;super(),this[_0x125f05(0x384)]=_0xd596,this[_0x125f05(0x3a7)]=_0x5ec7b2,this[_0x125f05(0x355)]=_0x18846a,this[_0x125f05(0x1bc)]=_0x193461,this[_0x125f05(0x22e)]=_0x18440c,this[_0x125f05(0x226)]=_0x414976,this['_initDataSendListener'](),this[_0x125f05(0x359)]();}['_initDataSendListener'](){const _0x2cbf61=_0x91438c;this[_0x2cbf61(0x317)](this['_commandService']['onCommandExecuted'](_0x32bad8=>{const _0x42ec2a=_0x2cbf61;if(_0x32bad8['id']!==lo['id'])return;const _0x3be06b=_0x32bad8[_0x42ec2a(0x433)];this[_0x42ec2a(0x3a7)][_0x42ec2a(0x1fb)](_0x3be06b);})),this[_0x2cbf61(0x317)](this['_commandService'][_0x2cbf61(0x347)](_0x5968c4=>{const _0x24b331=_0x2cbf61;if(_0x5968c4['id']===co['id']){const _0x540fef=_0x5968c4[_0x24b331(0x433)];if(_0x540fef){const {unitId:_0x5bebb5,subUnitId:_0x56e605,oldSubUnitId:_0x33c7c0,pivotTableId:_0x5d39e4,pivotTableConfig:_0x34de8e,collectionConfig:_0x516cc0}=_0x540fef;this['_sheetsPivotTableConfigModel'][_0x24b331(0x291)](_0x5bebb5,_0x33c7c0,_0x540fef['pivotTableId'],null),this[_0x24b331(0x1bc)]['updateConfigCache'](_0x5bebb5,_0x56e605,_0x5d39e4,_0x34de8e),this[_0x24b331(0x1bc)][_0x24b331(0x2c3)](_0x5bebb5,_0x516cc0);}}})),this['disposeWithMe'](this[_0x2cbf61(0x384)][_0x2cbf61(0x347)](_0x1359b7=>{const _0x5d1104=_0x2cbf61;if(_0x1359b7['id']!==Dt['id'])return;const _0x27e329=_0x1a5e6f(this[_0x5d1104(0x22e)]);if(!_0x27e329)return;const {unitId:_0x182b98,subUnitId:_0x398c4a}=_0x27e329,_0x3f9762=_0x1359b7['params'];if(_0x3f9762[_0x5d1104(0x28d)]&&Object[_0x5d1104(0x31c)](_0x3f9762[_0x5d1104(0x28d)])[_0x5d1104(0x342)](_0x59e090=>{const _0x45105e=_0x5d1104;var _0x20d5a8;(_0x20d5a8=_0x3f9762[_0x45105e(0x28d)])!=null&&_0x20d5a8[_0x59e090]&&this[_0x45105e(0x1bc)][_0x45105e(0x2c3)](_0x59e090,_0x3f9762[_0x45105e(0x28d)][_0x59e090]);}),_0x3f9762[_0x5d1104(0x1d9)]){const _0x197909=_0x3f9762[_0x5d1104(0x1d9)],{unitId:_0x150a39,subUnitId:_0xb6114d,view:_0x30b8e6,pivotTableId:_0x1dee10,type:_0x874745,pivotConfig:_0x10eaca}=_0x197909;if(_0x874745===J[_0x5d1104(0x354)])this[_0x5d1104(0x355)]['clearRenderCache']({'unitId':_0x150a39,'subUnitId':_0xb6114d,'pivotTableId':_0x1dee10,'type':_0x874745}),this[_0x5d1104(0x1bc)]['updateConfigCache'](_0x150a39,_0xb6114d,_0x1dee10,null);else{const _0x4acf7c=new _0x296f39();_0x4acf7c[_0x5d1104(0x2af)](_0x30b8e6),this[_0x5d1104(0x1bc)]['updateConfigCache'](_0x150a39,_0xb6114d,_0x1dee10,_0x10eaca),this[_0x5d1104(0x355)][_0x5d1104(0x2ae)]({'unitId':_0x150a39,'subUnitId':_0xb6114d,'pivotTableId':_0x1dee10,'type':_0x874745,'view':_0x4acf7c}),this[_0x5d1104(0x355)]['updateRenderCache']({'unitId':_0x150a39,'subUnitId':_0xb6114d,'view':_0x4acf7c,'pivotTableId':_0x1dee10,'type':_0x874745});}}else _0x3f9762[_0x5d1104(0x270)]&&(_0x3f9762['batch'][_0x5d1104(0x342)](_0x1ab945=>{const _0xced607=_0x5d1104,{unitId:_0x58caba,subUnitId:_0x4f96ff,view:_0x437ed7,pivotTableId:_0x349377,type:_0x56b6b4,pivotConfig:_0x152c03}=_0x1ab945,_0x4cd159=new _0x296f39();_0x4cd159[_0xced607(0x2af)](_0x437ed7),this[_0xced607(0x1bc)][_0xced607(0x291)](_0x58caba,_0x4f96ff,_0x349377,_0x152c03),this[_0xced607(0x355)]['updateRenderCache']({'unitId':_0x58caba,'subUnitId':_0x4f96ff,'view':_0x4cd159,'pivotTableId':_0x349377,'type':_0x56b6b4});}),this[_0x5d1104(0x1bc)][_0x5d1104(0x40c)]());this[_0x5d1104(0x355)][_0x5d1104(0x248)](_0x182b98,_0x398c4a);}));}[_0x91438c(0x359)](){const _0x488373=_0x91438c;this[_0x488373(0x226)][_0x488373(0x1e2)](Nt['id'],{'commandId':Nt['id'],'getDirtyData'(_0x540179){const _0x694ed9=_0x488373;return{'dirtyUnitFeatureMap':_0x540179[_0x694ed9(0x433)]};}});}};vt=Ks([je(0x0,_0x431452(_0xa7b251)),je(0x1,_0x431452(z)),je(0x2,_0x431452(Ve)),je(0x3,_0x431452(he)),je(0x4,_0x431452(_0x2c885f)),je(0x5,_0x9d10da)],vt);var Hs=Object[_0x91438c(0x332)],qs=Object[_0x91438c(0x26b)],Ys=(_0x4b0f3e,_0x321a0a,_0x5f5498)=>_0x321a0a in _0x4b0f3e?Hs(_0x4b0f3e,_0x321a0a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x5f5498}):_0x4b0f3e[_0x321a0a]=_0x5f5498,Zs=(_0x4cdf8e,_0x5810bb,_0x3e1cfe,_0x1b935b)=>{for(var _0x34eb14=_0x1b935b>0x1?void 0x0:_0x1b935b?qs(_0x5810bb,_0x3e1cfe):_0x5810bb,_0x1b1479=_0x4cdf8e['length']-0x1,_0xb057ed;_0x1b1479>=0x0;_0x1b1479--)(_0xb057ed=_0x4cdf8e[_0x1b1479])&&(_0x34eb14=_0xb057ed(_0x34eb14)||_0x34eb14);return _0x34eb14;},_t=(_0xe1c8b1,_0x476153)=>(_0x58017d,_0x225c12)=>_0x476153(_0x58017d,_0x225c12,_0xe1c8b1),Qo=(_0x2cd723,_0x20029f,_0x302deb)=>Ys(_0x2cd723,typeof _0x20029f!=_0x91438c(0x3c8)?_0x20029f+'':_0x20029f,_0x302deb);let Ut=class extends _0x289c56{constructor(_0x54ef6a=Mo,_0x437a32,_0x23af39,_0x37aa0c,_0x47e1aa){const _0x5750f9=_0x91438c;super(),this[_0x5750f9(0x42f)]=_0x54ef6a,this['_injector']=_0x437a32,this['_commandService']=_0x23af39,this[_0x5750f9(0x3b8)]=_0x37aa0c,this[_0x5750f9(0x272)]=_0x47e1aa;const {..._0x23a675}=_0x549d1a({},Mo,this[_0x5750f9(0x42f)]);this[_0x5750f9(0x3b8)][_0x5750f9(0x36a)](Yo,_0x23a675),this['_initRegisterCommand'](),this[_0x5750f9(0x33d)]();}['_initConfig'](){const _0x5a2f9c=_0x91438c;var _0x57d8f0;const _0x2947f6=(_0x57d8f0=this[_0x5a2f9c(0x42f)])==null?void 0x0:_0x57d8f0[_0x5a2f9c(0x276)];this[_0x5a2f9c(0x3b8)][_0x5a2f9c(0x36a)](Y,_0x2947f6===!0x0);}['onStarting'](){const _0x38b183=_0x91438c;var _0x2085e4;let _0x2fb26f=[];const _0x262bc1=(_0x2085e4=this[_0x38b183(0x42f)])==null?void 0x0:_0x2085e4[_0x38b183(0x276)];_0x262bc1===!0x0?_0x2fb26f=[[ie],[z],[vt],[Ve],[he],[gt],[ct],[ft],[ut]]:_0x262bc1===!0x1?_0x2fb26f=[[$],[dt]]:_0x262bc1===void 0x0&&(_0x2fb26f=[[$],[dt],[ie],[z],[vt],[Ve],[he],[gt],[ct],[ft],[ut]]),_0x2fb26f[_0x38b183(0x342)](_0x2e4614=>this[_0x38b183(0x31d)][_0x38b183(0x1eb)](_0x2e4614)),[dt,vt,ie,ct,gt,ft,ut][_0x38b183(0x342)](_0x39d179=>{const _0x37c294=_0x38b183;this[_0x37c294(0x31d)][_0x37c294(0x35d)](_0x39d179)&&this[_0x37c294(0x31d)][_0x37c294(0x274)](_0x39d179);});}[_0x91438c(0x395)](){const _0x439de=_0x91438c;[ps,Is,vs,ms,Ss,Vs,_s,ys,Fs,Ms,Rs,Ds,Cs,bs,Ct,to,xt,$t,Zo,zo,Kt,Xt,Gt,Wt,qt,Ht,pt,ro,lo,Dt,zt,eo,Yt,jt,uo,oo,Qt,Nt,co,ws,Zt,Ts,Ps][_0x439de(0x342)](_0x3b4d13=>{const _0x87fd49=_0x439de;var _0x3f1548;(_0x3f1548=this[_0x87fd49(0x272)])==null||_0x3f1548['registerSyncingMutations'](_0x3b4d13),this[_0x87fd49(0x384)][_0x87fd49(0x210)](_0x3b4d13);});}};Qo(Ut,_0x91438c(0x371),ao),Qo(Ut,_0x91438c(0x1fa),_0x102cba[_0x91438c(0x297)]),Ut=Zs([_0x43b69a(_0xdd5b1e),_t(0x1,_0x431452(_0x4efa5c)),_t(0x2,_0x431452(_0xa7b251)),_t(0x3,_0x495f63),_t(0x4,_0x2f587c(_0x4aed27))],Ut);export{vs as AddPivotFieldCommand,$t as AddPivotFieldMutation,Is as AddPivotTableCommand,Ct as AddPivotTableMutation,ps as AddPivotTableWithConfigCommand,mt as BLANK_ROW_COUNT,so as DEFAULT_PIVOT_NUMBER,ms as MovePivotFieldCommand,Cs as MovePivotTableCommand,k as PivotDisplayDataType,bs as PivotDrillDownCommand,J as PivotTableOperationEnum,Nt as PivotTableViewDirtyMarkOperation,Lo as PositionType,Ss as RemovePivotFieldCommand,Xt as RemovePivotFieldMutation,xt as RemovePivotTableMutation,Gt as RenamePivotFieldMutation,Ps as ResetPivotFieldsConfigCommand,Yo as SHEETS_PIVOT_PLUGIN_CONFIG_KEY,ao as SHEET_PIVOT_TABLE_PLUGIN,ys as SetPivotCollapseCommand,Wt as SetPivotCollapseMutation,jt as SetPivotFieldFormatMutation,Ts as SetPivotFieldsConfigCommand,Ms as SetPivotFilterCommand,Kt as SetPivotFilterMutation,Ht as SetPivotOptionMutation,pt as SetPivotPositionMutation,Fs as SetPivotSortCommand,qt as SetPivotSortMutation,Yt as SetPivotSubtotalTypeMutation,ws as SetPivotValueFilterCommand,Zt as SetPivotValueFilterMutation,$ as SheetsPivotDataSourceModel,z as SheetsPivotRPCService,Ve as SheetsPivotTableAdaptorModel,he as SheetsPivotTableConfigModel,ie as SheetsPivotTableService,Ut as UniverSheetsPivotTablePlugin,_s as UpdateDateGroupCommand,zt as UpdateFieldPositionMutation,Rs as UpdatePivotFieldSettingCommand,Qt as UpdatePivotFieldSourceInfoMutation,Ds as UpdatePivotTableSourceRangeCommand,oo as UpdatePivotTableSourceRangeMutation,Vs as UpdatePivotValuePositionCommand,eo as UpdateValuePositionMutation,Ie as applyChangeSet,Ko as canUsePivot,fe as defaultThemeStyle,Ho as generateSetRangeValueMutations,ge as getAdjustRangesPosition,Ji as getEmptyPivotRanges,Vt as getFieldListByArea,Fe as getInsertRowColMutations,ki as getPivotCellInfo,go as getPivotInfoByLicense,Bi as getPivotTableInfo,ht as transFromCellValue,Jt as unionPivotViewRange};
1
+ const _0x472c5c=_0x470a;(function(_0x4dd456,_0x4ed778){const _0x5cb08b=_0x470a,_0x164278=_0x4dd456();while(!![]){try{const _0x4f3c31=parseInt(_0x5cb08b(0xbb))/0x1+parseInt(_0x5cb08b(0x1f1))/0x2+-parseInt(_0x5cb08b(0x260))/0x3+parseInt(_0x5cb08b(0xe3))/0x4+parseInt(_0x5cb08b(0x1fc))/0x5+-parseInt(_0x5cb08b(0x89))/0x6*(parseInt(_0x5cb08b(0x1c8))/0x7)+parseInt(_0x5cb08b(0x1dd))/0x8*(-parseInt(_0x5cb08b(0x226))/0x9);if(_0x4f3c31===_0x4ed778)break;else _0x164278['push'](_0x164278['shift']());}catch(_0x5a91d8){_0x164278['push'](_0x164278['shift']());}}}(_0x2f15,0x1be9e));var rn=Object[_0x472c5c(0x2da)],ln=(_0x42f431,_0x27a95a,_0x2a135b)=>_0x27a95a in _0x42f431?rn(_0x42f431,_0x27a95a,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x2a135b}):_0x42f431[_0x27a95a]=_0x2a135b,x=(_0x123355,_0x4005a2,_0x2d2abb)=>ln(_0x123355,typeof _0x4005a2!=_0x472c5c(0x2db)?_0x4005a2+'':_0x4005a2,_0x2d2abb);import{PivotCellStyleTypeEnum as _0x4f6aca,PivotViewCellValueTypeEnum as _0x1d492f,isPrefixValue as _0x5af8e0,isErrorValue as _0x427552,PivotErrorTypeEnum as _0x300420,PivotDateGroupFieldDateTypeEnum as _0x59dfa7,DataFieldManager as _0x48a104,FieldsCollection as _0x26a739,isDateValue as _0x231759,DataField as _0x561ce7,generateHexNumber as _0x5460c5,isBaseGroupField as _0x26ba1b,PivotTable as _0x71cb7e,PivotSubtotalTypeEnum as _0x45d1a0,PivotTableFiledAreaEnum as _0x41d892,excelDateToUnixMilliseconds as _0x19f4b5,PivotDataFieldTypeEnum as _0x14fdcd,DateGroupField as _0x2a6950,createValueField as _0x40c854,createLabelField as _0x29226f,PivotTableChangeTypeEnum as _0x5dfa99,PivotView as _0x2df958,GlobalConfig as _0x1a4a73,isDateGroupFieldJSON as _0x266d1c,PivotCallbackEnum as _0xe14f2a,PivotFilterTypeEnum as _0x20d372,getAutoDisplayName as _0x1f6664,PivotDataFieldDataTypeEnum as _0x4a2d2c,PivotTableValuePositionEnum as _0x43f0a2,isDateGroupField as _0x3b3beb}from'@univerjs-pro/engine-pivot';import{cellToRange as _0x452af2,ObjectMatrix as _0x38f0b5,IUniverInstanceService as _0xcf6c15,UniverInstanceType as _0x5e6e00,CellValueType as _0x4a84db,numfmt as _0x1f737d,LocaleService as _0x175f03,createAsyncInterceptorKey as _0x313d02,createInterceptorKey as _0x627937,CommandType as _0x44b70c,Inject as _0x3af2eb,ICommandService as _0x88b8f4,Disposable as _0x826d73,RANGE_TYPE as _0x127b18,numberToABC as _0x20317d,Injector as _0x53b05b,LifecycleService as _0x3f998b,IResourceManagerService as _0x3b0e89,Rectangle as _0x2776bf,IConfigService as _0x165fcc,Tools as _0x4dd2cd,AsyncInterceptorManager as _0x443375,InterceptorManager as _0x51dd50,InterceptorEffectEnum as _0x28de9f,IUndoRedoService as _0xe44e0e,sequenceExecute as _0x427a5a,CustomCommandExecutionError as _0x3d555a,mergeWorksheetSnapshotWithDefault as _0x327317,generateRandomId as _0x32b281,DEFAULT_WORKSHEET_COLUMN_COUNT as _0x495b36,DEFAULT_WORKSHEET_ROW_COUNT as _0x5923c8,DisposableCollection as _0x222f43,Range as _0x40c608,DependentOn as _0x431dca,Optional as _0x38c12f,Plugin as _0xd337b9,merge as _0x379caa}from'@univerjs/core';import{ErrorType as _0x520fe2,serializeRangeWithSpreadsheet as _0x317001,IFeatureCalculationManagerService as _0x20fc0e,GlobalComputingStatusService as _0x1808f7,IActiveDirtyManagerService as _0x5e463c}from'@univerjs/engine-formula';import{generateNullCell as _0x2574c5,SetRangeValuesUndoMutationFactory as _0x12faf4,SetRangeValuesMutation as _0x4789aa,getSheetCommandTarget as _0x337b5a,InsertRowMutation as _0x138e61,RemoveRowMutation as _0x4c5aa7,InsertColMutation as _0x14c815,RemoveColMutation as _0x452f54,IExclusiveRangeService as _0x50d132,SheetInterceptorService as _0x17fe9b,INTERCEPTOR_POINT as _0x3f1cfd,InsertSheetCommand as _0x2aa444,InsertSheetUndoMutationFactory as _0x3c69a5,RemoveSheetMutation as _0x4f2db5,InsertSheetMutation as _0x42bceb,MoveRangeMutation as _0x32bf16,SheetsSelectionsService as _0x510525,ClearSelectionContentCommand as _0x45098b,ClearSelectionAllCommand as _0x1e25e0,SetWorksheetColWidthMutation as _0xc636e6,RefRangeService as _0x2dac25,SetWorksheetActiveOperation as _0x5c42aa,MoveRangeCommand as _0x2a4901,RemoveSheetCommand as _0x6ac565}from'@univerjs/sheets';import{Subject as _0x1b5669,BehaviorSubject as _0x5f5a4d}from'rxjs';import{LS_CONFIG_KEY as _0x6e1078,unshiftString as _0x295a33,isFeatureAuthorizedWithinTime as _0x148e9f,getSheetFeatureLimit as _0x2ef263,ReleaseType as _0x54e6e6,UniverLicensePlugin as _0x46877b}from'@univerjs-pro/license';import{SetSheetsFilterRangeMutation as _0x11f2bf,RemoveSheetsFilterMutation as _0x3faae0}from'@univerjs/sheets-filter';import{DataSyncPrimaryController as _0x2f769d}from'@univerjs/rpc';import{getFontStyleString as _0x5211e4,FontCache as _0x3444d6}from'@univerjs/engine-render';const Lo=Number[_0x472c5c(0x19e)](0x6901e30d),li=0x10,so=0x1,ao='SHEET_PIVOT_TABLE_PLUGIN',It=0x1,ci='rgb(240,241,243)',di=_0x472c5c(0x1a5),wt=_0x472c5c(0x1b5),ui=_0x472c5c(0x188),fi='#f4f4f5',gi='#eceeff',hi=_0x472c5c(0xfd),vi='#FFFFFF',pi=_0x472c5c(0x1c9),mi=_0x472c5c(0xfd),Ii='#FFFFFF',Ci='#e6ebfb',bi=0xe,Si=0x6;var Bo=(_0x4edb10=>(_0x4edb10[_0x472c5c(0x7d)]=_0x472c5c(0x12d),_0x4edb10[_0x472c5c(0x98)]='new',_0x4edb10))(Bo||{});const jo={'sheets-pivot':{'blankValue':'','otherValue':'','columnName':'','subTotalText':'','grandTotalText':'','valueText':'','averageName':'','countName':'','countNumsName':'','maxName':'','minName':'','productName':'','stdDevName':'','stdDevpName':'','sumName':'','varName':'','varpName':'','value':'','blank':'','other':'','subTotal':'','grandTotal':'','emptyPivot':{'filter':'','row':'','column':'','values':''},'dateGroup':{'year':'','month':'','day':'','hour':'','minute':'','quarter':'','monthDate':'','yearQuarter':'','yearMonth':'','yearMonthDate':''},'cellDateGroupDisplay':{'minute':'','hour':'','hourMinute':'','date':'','month':'','monthDate':'','quarter':'','year':'','yearMonth':'','yearMonthDate':'','yearQuarter':''}}},Ti=0x1e,Ge={'b':{'s':0x1,'cl':{'rgb':wt}},'l':{'s':0x1,'cl':{'rgb':wt}},'r':{'s':0x1,'cl':{'rgb':wt}},'t':{'s':0x1,'cl':{'rgb':wt}}},oe={'bg':{'rgb':ci},'ht':0x2,'vt':0x2,'tb':0x1},_={'bg':{'rgb':di},'ht':0x2,'vt':0x2,'tb':0x1},fe={'rowStyle':{'bg':{'rgb':Ci},'bd':Ge,'bl':0x1,'vt':0x2},'colStyle':{'bg':{'rgb':mi},'bd':null,'cl':{'rgb':Ii},'bl':0x1,'vt':0x2},'subTotalStyle':{'bd':Ge,'bg':{'rgb':pi},'vt':0x2},'cornerStyle':{'bd':Ge,'bg':{'rgb':gi},'bl':0x1,'vt':0x2},'pageStyle':{'bd':Ge,'bg':{'rgb':ui},'vt':0x2},'leafStyle':{'bd':Ge,'bg':{'rgb':fi},'vt':0x2},'grandTotal':{'bd':null,'bg':{'rgb':hi},'cl':{'rgb':vi},'bl':0x1,'vt':0x2},'dataStyle':{'bd':Ge,'vt':0x2}};function Pi(_0x34713c,_0x5c0c0c,_0x52422d){const _0x18d279=_0x472c5c,_0x188ec7=_0x34713c[_0x18d279(0x1b7)](_0x175f03),_0x41a817=_0x52422d[_0x18d279(0xc4)]('_');switch(_0x5c0c0c){case _0x59dfa7[_0x18d279(0x2d2)]:return _0x188ec7['t'](_0x18d279(0x2cf),..._0x41a817);case _0x59dfa7[_0x18d279(0x136)]:return _0x188ec7['t'](_0x18d279(0x175),..._0x41a817);case _0x59dfa7[_0x18d279(0xe1)]:return _0x188ec7['t'](_0x18d279(0x13f),..._0x41a817);case _0x59dfa7[_0x18d279(0x259)]:return _0x188ec7['t'](_0x18d279(0x19b),..._0x41a817);case _0x59dfa7[_0x18d279(0x1fb)]:return _0x188ec7['t']('sheets-pivot.cellDateGroupDisplay.date',..._0x41a817);case _0x59dfa7[_0x18d279(0x2ff)]:return _0x188ec7['t'](_0x18d279(0x106),..._0x41a817);case _0x59dfa7[_0x18d279(0x135)]:return _0x188ec7['t'](_0x18d279(0x28b),..._0x41a817);case _0x59dfa7[_0x18d279(0x85)]:return _0x188ec7['t'](_0x18d279(0x26d),..._0x41a817);case _0x59dfa7['YearMonthDate']:return _0x188ec7['t']('sheets-pivot.cellDateGroupDisplay.yearMonthDate',..._0x41a817);case _0x59dfa7[_0x18d279(0x2e2)]:return _0x188ec7['t']('sheets-pivot.cellDateGroupDisplay.yearQuarter',..._0x41a817);}return'';}const tt=(_0x4d8193,_0x23e9fa,_0x9d3750,_0x29969c)=>{const _0x3f5e71=_0x472c5c;let _0x290e1f;const _0x56b30f=_0x4d8193[_0x3f5e71(0x1b7)](_0xcf6c15)['getCurrentUnitForType'](_0x5e6e00['UNIVER_SHEET']);if(!_0x56b30f)return null;const _0xed8963=_0x56b30f[_0x3f5e71(0x16b)]();let _0x1cedba;if(_0x9d3750&&(_0x1cedba=_0xed8963['setValue'](_0x9d3750)),_0x23e9fa!=null&&_0x23e9fa['v']||(_0x23e9fa==null?void 0x0:_0x23e9fa['v'])===0x0){_0x290e1f||(_0x290e1f={});const _0x3541d7=$o(_0x23e9fa['v']);typeof _0x3541d7==_0x3f5e71(0x11d)?_0x290e1f['t']=_0x4a84db['NUMBER']:typeof _0x3541d7==_0x3f5e71(0xeb)&&(_0x290e1f['t']=_0x4a84db[_0x3f5e71(0x11a)]),_0x290e1f['v']=_0x3541d7;}if((_0x23e9fa!=null&&_0x23e9fa['i']||(_0x23e9fa==null?void 0x0:_0x23e9fa['i'])===0x0)&&(_0x290e1f||(_0x290e1f={}),_0x290e1f['fi']=_0x23e9fa['i']),_0x23e9fa!=null&&_0x23e9fa['s']&&(_0x290e1f||(_0x290e1f={}),_0x290e1f[_0x3f5e71(0x1ce)]=_0x23e9fa['s']),_0x9d3750&&(_0x290e1f||(_0x290e1f={}),_0x290e1f['s']=_0x1cedba),_0x29969c&&_0x290e1f!=null&&_0x290e1f['v']&&_0x290e1f[_0x3f5e71(0x1ce)]!==_0x4f6aca[_0x3f5e71(0x179)]&&_0x290e1f[_0x3f5e71(0x1ce)]!==_0x4f6aca['Subtotal']){const _0x3d6b9e=String(_0x290e1f['v']),{dateType:_0x16a50b}=_0x29969c;_0x290e1f['v']=Pi(_0x4d8193,_0x16a50b,_0x3d6b9e),_0x290e1f['t']=_0x4a84db[_0x3f5e71(0x11a)];}return _0x290e1f;},yi=(_0x3d7453,_0x18cd0,_0x83c480,_0x538d5e)=>{const _0x34140d=_0x472c5c;var _0x2797b5,_0x4e6cad,_0x2bc663,_0xfa5623,_0x3a4c10,_0x2f62c8,_0x2e0b7b,_0x5aa87f,_0x42983f,_0x3f49fc,_0x4bca58,_0x38aac9,_0x66351a,_0x173134;const _0x1e9360=_0x83c480[_0x34140d(0x26a)],{cornerView:_0x489504,rowView:_0x501044,colView:_0x574731,dataView:_0x556fa9,pageView:_0x4cb546,formatMap:_0x48550d,groupInfo:_0xfd6208}=_0x18cd0,{row:_0x30439c,col:_0x4871c5}=_0x1e9360,_0x56d1a6=new _0x38f0b5(),_0x52962a={},_0x408fcb={},_0x48a903={},_0x256ffd={},_0x161a99={};let _0x5bbc76=_0x30439c,_0x1ad89f=_0x4871c5;Object[_0x34140d(0x118)](_0x4cb546[_0x34140d(0x276)])['forEach'](_0x4771f6=>{const _0x18fbf0=_0x34140d;Object[_0x18fbf0(0x118)](_0x4cb546['data'][Number(_0x4771f6)])[_0x18fbf0(0xaf)](_0x59e0a2=>{const _0x5be238=_0x18fbf0,_0x1ac991={..._0x4cb546[_0x5be238(0x276)][Number(_0x4771f6)][Number(_0x59e0a2)]};_0x56d1a6['setValue'](Number(_0x4771f6)+_0x5bbc76,Number(_0x59e0a2)+_0x1ad89f,tt(_0x3d7453,_0x1ac991,fe[_0x5be238(0x2e0)]));});});const _0x54ac62=Object[_0x34140d(0x118)](_0x4cb546[_0x34140d(0x276)])['length'];_0x5bbc76+=_0x54ac62+(_0x54ac62?It:0x0);const _0x3647a4=_0x489504[_0x34140d(0xd3)](),_0x37d57d=_0x489504['getColCount']();for(let _0x482268=0x0;_0x482268<_0x3647a4;_0x482268++)for(let _0x4426f7=0x0;_0x4426f7<_0x37d57d;_0x4426f7++){const _0x5e442={...(_0x4e6cad=(_0x2797b5=_0x489504[_0x34140d(0x276)])==null?void 0x0:_0x2797b5[_0x482268])==null?void 0x0:_0x4e6cad[_0x4426f7]};_0x5e442&&((_0x2bc663=_0x501044[_0x34140d(0x21b)][_0x4426f7])!=null&&_0x2bc663[_0x34140d(0x22e)])&&_0x4426f7===_0x37d57d-0x1&&_0x482268===_0x3647a4-0x1&&(_0x5e442['v']=''+_0x538d5e[_0x34140d(0x13a)]),_0x56d1a6['setValue'](_0x482268+_0x5bbc76,_0x4426f7+_0x1ad89f,tt(_0x3d7453,_0x5e442,fe['cornerStyle']));}for(let _0x4bec08=0x0;_0x4bec08<_0x489504[_0x34140d(0x237)]['length'];_0x4bec08++)_0x489504['info'][_0x4bec08]&&(_0x48a903[''+(_0x4bec08+_0x1ad89f)]=_0x489504[_0x34140d(0x237)][_0x4bec08]);_0x1ad89f+=_0x37d57d;const _0x1da419=_0x574731[_0x34140d(0x21b)],_0x513621=_0x574731[_0x34140d(0x254)]()>=0x0?_0x574731[_0x34140d(0x254)]()+0x1:0x0,_0x222193=_0x574731[_0x34140d(0x23a)]()>=0x0?_0x574731[_0x34140d(0x23a)]()+0x1:0x0;for(let _0x60885b=0x0;_0x60885b<_0x222193;_0x60885b++){for(let _0x55bde2=0x0;_0x55bde2<_0x513621;_0x55bde2++){const _0x1af9d3={...(_0x3a4c10=(_0xfa5623=_0x574731['data'])==null?void 0x0:_0xfa5623[_0x55bde2])==null?void 0x0:_0x3a4c10[_0x60885b]},_0x1eece0=(_0x2f62c8=_0x1da419[_0x55bde2])==null?void 0x0:_0x2f62c8[_0x34140d(0x227)],_0x2d90ce=_0x48550d[_0x1eece0],_0x4e66e2=_0xfd6208[_0x1eece0];_0x1af9d3&&(_0x1af9d3['v']=vt(_0x1af9d3,_0x55bde2===0x0&&((_0x2e0b7b=_0x574731[_0x34140d(0x191)](_0x60885b+0x1))==null?void 0x0:_0x2e0b7b[_0x34140d(0x22e)]),_0x2d90ce,_0x538d5e));let _0x321d62;_0x2d90ce?_0x321d62={...fe[_0x34140d(0x1ee)],'n':{'pattern':_0x2d90ce}}:_0x321d62={...fe['colStyle']},_0x56d1a6[_0x34140d(0xdc)](_0x55bde2+_0x5bbc76,_0x60885b+_0x1ad89f,tt(_0x3d7453,_0x1af9d3,_0x321d62,_0x4e66e2));}_0x574731[_0x34140d(0x237)][_0x60885b]&&(_0x408fcb[''+(_0x60885b+_0x1ad89f)]=_0x574731[_0x34140d(0x237)][_0x60885b]),_0x574731[_0x34140d(0x21b)][_0x60885b+0x1]&&(_0x161a99[''+(_0x60885b+_0x5bbc76+0x1)]=_0x574731['headerMap'][_0x60885b+0x1]);}_0x5bbc76+=_0x3647a4;const _0x4b9ee8=_0x501044['headerMap'],_0xe2856c=_0x501044['getLastRow']()>=0x0?_0x501044['getLastRow']()+0x1:0x0,_0x16029a=_0x501044[_0x34140d(0x23a)]()>=0x0?_0x501044['getLastCol']()+0x1:0x0;for(let _0xf63347=0x0;_0xf63347<_0xe2856c;_0xf63347++){for(let _0x1c8f73=0x0;_0x1c8f73<_0x16029a;_0x1c8f73++){const _0x2d6848={...(_0x42983f=(_0x5aa87f=_0x501044[_0x34140d(0x276)])==null?void 0x0:_0x5aa87f[_0xf63347])==null?void 0x0:_0x42983f[_0x1c8f73]},_0x4bbb7f=(_0x3f49fc=_0x4b9ee8[_0x1c8f73])==null?void 0x0:_0x3f49fc['tableFieldId'],_0x47366d=_0x48550d[_0x4bbb7f],_0x495cd5=_0xfd6208[_0x4bbb7f];_0x2d6848&&(_0x2d6848['v']=vt(_0x2d6848,!0x1,_0x47366d,_0x538d5e));let _0x3880cc;_0x501044['info'][_0xf63347][_0x34140d(0x20d)]===_0x501044['getColCount']()?_0x3880cc=fe[_0x34140d(0x308)]:_0x501044['info'][_0xf63347]['isBottomTotal']?_0x3880cc=_0x501044[_0x34140d(0x237)][_0xf63347][_0x34140d(0x20d)]===0x0?fe[_0x34140d(0x25d)]:fe[_0x34140d(0x159)]:_0x3880cc=fe[_0x34140d(0x250)],_0x47366d&&(_0x3880cc={..._0x3880cc,'n':{'pattern':_0x47366d}}),_0x56d1a6[_0x34140d(0xdc)](_0xf63347+_0x5bbc76,_0x1c8f73+_0x4871c5,tt(_0x3d7453,_0x2d6848,_0x3880cc,_0x495cd5));}_0x501044[_0x34140d(0x237)][_0xf63347]&&(_0x52962a[''+(_0xf63347+_0x5bbc76)]=_0x501044[_0x34140d(0x237)][_0xf63347]),_0x501044[_0x34140d(0x21b)][_0xf63347]&&(_0x256ffd[''+(_0xf63347+_0x4871c5)]=_0x501044[_0x34140d(0x21b)][_0xf63347]);}const _0x19db6c=_0x556fa9['getRowCount'](),_0x4ecc07=_0x556fa9['getColCount']();for(let _0x3607c8=0x0;_0x3607c8<_0x19db6c;_0x3607c8++)for(let _0xf0bbeb=0x0;_0xf0bbeb<_0x4ecc07;_0xf0bbeb++){const _0x2e078d={...(_0x38aac9=(_0x4bca58=_0x556fa9[_0x34140d(0x276)])==null?void 0x0:_0x4bca58[_0x3607c8])==null?void 0x0:_0x38aac9[_0xf0bbeb]};let _0xf627b;_0x501044[_0x34140d(0x237)][_0x3607c8][_0x34140d(0x116)]?_0xf627b=_0x501044[_0x34140d(0x237)][_0x3607c8]['level']===0x0?fe[_0x34140d(0x25d)]:fe[_0x34140d(0x159)]:_0xf627b=fe['dataStyle'];const _0x35921f=_0x501044[_0x34140d(0x237)][_0x3607c8][_0x34140d(0x261)],_0x328844=_0x574731[_0x34140d(0x237)][_0xf0bbeb][_0x34140d(0x261)],_0x371462=Math['max'](_0x35921f,_0x328844),_0x5b5fce=_0x83c480['fieldsConfig'][_0x34140d(0x2c6)]['concat']();let _0x452bb7='';_0x371462<0x0?_0x452bb7=(_0x66351a=_0x5b5fce[0x0])!=null?_0x66351a:'':_0x452bb7=(_0x173134=_0x5b5fce[_0x371462])!=null?_0x173134:'';const _0x6d45ef=_0x48550d[_0x452bb7];_0x6d45ef&&(_0xf627b={..._0xf627b,'n':{'pattern':_0x6d45ef}}),_0x56d1a6[_0x34140d(0xdc)](_0x3607c8+_0x5bbc76,_0xf0bbeb+_0x1ad89f,tt(_0x3d7453,_0x2e078d,_0xf627b));}return{'valueMatrix':_0x56d1a6,'rowInfo':_0x52962a,'colInfo':_0x408fcb,'cornerInfo':_0x48a903,'rowHeaderMap':_0x256ffd,'colHeaderMap':_0x161a99};};function vt(_0x541682,_0x426bc5,_0x1bf8fb,_0x21af5f){const _0x490730=_0x472c5c;let _0x12e3ed=_0x541682['v'];_0x426bc5&&(_0x12e3ed=''+_0x21af5f[_0x490730(0x13a)]);const _0x260f05=_0x541682['t']&&(_0x541682['t']&_0x1d492f[_0x490730(0x2b3)])>0x0;_0x260f05&&(_0x12e3ed=''+_0x21af5f[_0x490730(0x245)]);const _0x61a94c=_0x541682['t']&&(_0x541682['t']&_0x1d492f['other'])>0x0;if(_0x61a94c&&(_0x12e3ed=''+_0x21af5f['sheets-pivot.other']),_0x541682['s']===_0x4f6aca[_0x490730(0x164)]){let _0x49749f=_0x12e3ed,_0x171fdb='';_0x5af8e0(_0x12e3ed)&&(_0x49749f=_0x12e3ed[_0x490730(0x215)],_0x171fdb=_0x12e3ed['value']);const _0x30ca25=_0x1bf8fb&&!_0x260f05&&!_0x61a94c?_0x1f737d[_0x490730(0x2b2)](_0x1bf8fb,Number(_0x49749f)):_0x49749f;_0x171fdb?_0x12e3ed=_0x30ca25+'\x20'+_0x171fdb:_0x12e3ed=_0x30ca25+'\x20'+_0x21af5f[_0x490730(0xe5)];}else _0x541682['s']===_0x4f6aca['GrandTotal']&&(_0x12e3ed=_0x12e3ed+'\x20'+_0x21af5f[_0x490730(0x104)]);return _0x12e3ed;}function $o(_0x43d421){const _0x25c5d1=_0x472c5c;if(_0x427552(_0x43d421)){const {errorType:_0x42bfc5}=_0x43d421;switch(_0x42bfc5){case _0x300420[_0x25c5d1(0x1e6)]:return _0x520fe2[_0x25c5d1(0x184)];case _0x300420[_0x25c5d1(0x24a)]:return _0x520fe2[_0x25c5d1(0x112)];case _0x300420[_0x25c5d1(0x90)]:return _0x520fe2[_0x25c5d1(0x1c2)];case _0x300420[_0x25c5d1(0x2cb)]:return _0x520fe2[_0x25c5d1(0x1c2)];case _0x300420['BadReference']:return _0x520fe2[_0x25c5d1(0x93)];}}return _0x43d421;}function ge(_0x1e75c0,_0xfd49b1,_0x23c242=!0x1,_0x26ede7=!0x1){const _0x1c3f12=_0x472c5c,{data:_0x10503c}=_0xfd49b1,_0x5e05c6=_0xfd49b1[_0x1c3f12(0xd3)](),_0x186211=_0xfd49b1[_0x1c3f12(0x15a)]();if(_0x5e05c6<=0x0||_0x186211<=0x0)return[];const _0x3dc728=_0xfd49b1['getLastCol'](),_0x52b4a6=_0xfd49b1[_0x1c3f12(0x254)](),_0x11eccc=_0x26ede7?_0x52b4a6>=0x0?_0x52b4a6+0x1:0x0:_0x5e05c6,_0x511a5f=_0x26ede7?_0x3dc728>=0x0?_0x3dc728+0x1:0x0:_0x186211,{row:_0x4c318a,col:_0x471d64}=_0x1e75c0,_0x143896=_0x4c318a,_0x5078ab=_0x471d64;if(_0x23c242){const _0x15e872=[];for(const [_0xbbfeb3,_0x286335]of Object['entries'](_0x10503c))for(const [_0x818076,_0x451169]of Object[_0x1c3f12(0x196)](_0x286335))_0x15e872['push'](_0x452af2(_0x143896+Number(_0xbbfeb3),_0x5078ab+Number(_0x818076)));return _0x15e872;}else{const _0x45a6ec=_0x26ede7?_0x11eccc>0x0?0x1:0x0:0x1,_0x2cb8ab=_0x26ede7?_0x511a5f>0x0?0x1:0x0:0x1,_0xd0a049=_0x4c318a+_0x11eccc-_0x45a6ec,_0x1d5881=_0x471d64+_0x511a5f-_0x2cb8ab;return[{'startRow':_0x143896,'startColumn':_0x5078ab,'endRow':_0xd0a049,'endColumn':_0x1d5881}];}}const z=_0x472c5c(0x194),Lt=_0x472c5c(0x1d6);var k=(_0x5de9f0=>(_0x5de9f0[_0x472c5c(0xc6)]='filter',_0x5de9f0[_0x472c5c(0x1b6)]='panel',_0x5de9f0['AddPivotField']='addPivotField',_0x5de9f0['AddPivotTableWithConfig']=_0x472c5c(0x284),_0x5de9f0[_0x472c5c(0x204)]=_0x472c5c(0x279),_0x5de9f0['MovePivotField']=_0x472c5c(0x2bd),_0x5de9f0[_0x472c5c(0x29c)]=_0x472c5c(0xd4),_0x5de9f0[_0x472c5c(0x181)]='setPivotCollapse',_0x5de9f0[_0x472c5c(0x209)]='setPivotFilter',_0x5de9f0['SetPivotSort']=_0x472c5c(0x156),_0x5de9f0['SetPivotSetting']=_0x472c5c(0xcc),_0x5de9f0[_0x472c5c(0x292)]=_0x472c5c(0x17a),_0x5de9f0[_0x472c5c(0x20a)]=_0x472c5c(0x298),_0x5de9f0[_0x472c5c(0x2c1)]='drillDown',_0x5de9f0[_0x472c5c(0x257)]=_0x472c5c(0x170),_0x5de9f0[_0x472c5c(0x1b0)]=_0x472c5c(0x255),_0x5de9f0['ResetPivotTable']=_0x472c5c(0x300),_0x5de9f0))(k||{});const Mi={'sheets-pivot.blankValue':_0x472c5c(0x195),'sheets-pivot.columnName':_0x472c5c(0x110),'sheets-pivot.subTotalText':_0x472c5c(0x2df),'sheets-pivot.grandTotalText':_0x472c5c(0x100),'sheets-pivot.valueText':_0x472c5c(0x192),'sheets-pivot.averageName':_0x472c5c(0x131),'sheets-pivot.countName':_0x472c5c(0x8a),'sheets-pivot.countNumsName':_0x472c5c(0x8a),'sheets-pivot.maxName':'Max\x20of\x20','sheets-pivot.minName':_0x472c5c(0x1d0),'sheets-pivot.productName':_0x472c5c(0x174),'sheets-pivot.stdDevName':_0x472c5c(0x283),'sheets-pivot.stdDevpName':_0x472c5c(0x15c),'sheets-pivot.sumName':_0x472c5c(0x306),'sheets-pivot.varName':'Var\x20of\x20','sheets-pivot.varpName':'Varp\x20of\x20','sheets-pivot.subTotal':_0x472c5c(0x164),'sheets-pivot.grandTotal':'Grand\x20Total','sheets-pivot.value':_0x472c5c(0x220),'sheets-pivot.blank':'blank','sheets-pivot.other':'other','sheets-pivot.emptyPivot.filter':_0x472c5c(0xc6),'sheets-pivot.emptyPivot.row':_0x472c5c(0x2f7),'sheets-pivot.emptyPivot.column':'Column','sheets-pivot.emptyPivot.values':_0x472c5c(0x1cb)},Po={'undos':[],'redos':[],'preUndos':[],'preRedos':[]},be=_0x313d02('pivotPerformCheck'),Jo=_0x627937('pivotMutationGenerate');var Be=(_0x523a30=>(_0x523a30[_0x472c5c(0x2f0)]=_0x472c5c(0x2f0),_0x523a30['delete']=_0x472c5c(0x1b4),_0x523a30[_0x472c5c(0x246)]=_0x472c5c(0x246),_0x523a30))(Be||{}),j=(_0x19e07f=>(_0x19e07f['Add']=_0x472c5c(0x2f0),_0x19e07f[_0x472c5c(0x1a7)]='set',_0x19e07f[_0x472c5c(0x2f1)]=_0x472c5c(0x1b4),_0x19e07f))(j||{});const ro={'type':_0x44b70c['MUTATION'],'id':_0x472c5c(0x307),'handler':()=>!0x0},lo={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x26c),'handler':()=>!0x0},Dt={'type':_0x44b70c['MUTATION'],'id':_0x472c5c(0x234),'handler':()=>!0x0},co={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x272),'handler':()=>!0x0},uo={'type':_0x44b70c['MUTATION'],'id':_0x472c5c(0x10f),'handler':()=>!0x0};var wi=Object[_0x472c5c(0x13d)],_i=(_0x421a9c,_0x28685e,_0x1a5e43,_0x18cb98)=>{for(var _0x40bc7e=_0x18cb98>0x1?void 0x0:_0x18cb98?wi(_0x28685e,_0x1a5e43):_0x28685e,_0x3c75c6=_0x421a9c['length']-0x1,_0x15b2e4;_0x3c75c6>=0x0;_0x3c75c6--)(_0x15b2e4=_0x421a9c[_0x3c75c6])&&(_0x40bc7e=_0x15b2e4(_0x40bc7e)||_0x40bc7e);return _0x40bc7e;},Fi=(_0x248f51,_0x216ab5)=>(_0xe733f2,_0x77dad7)=>_0x216ab5(_0xe733f2,_0x77dad7,_0x248f51);let Q=class extends _0x826d73{constructor(_0x53b9be){const _0x8d2673=_0x472c5c;super(),x(this,'_requestResolvers',new Map()),this[_0x8d2673(0x9a)]=_0x53b9be;}[_0x472c5c(0x18c)](_0x257fb6){const _0x1b8152=_0x472c5c,{version:_0x1e6e56}=_0x257fb6,_0x4d524a=this['_requestResolvers']['get'](_0x1e6e56);_0x4d524a&&(_0x4d524a(_0x257fb6),this[_0x1b8152(0x25a)][_0x1b8152(0x1b4)](_0x1e6e56));}[_0x472c5c(0x1a0)](_0x1c8424){return new Promise((_0x19d8b0,_0x3cdf6e)=>{const _0x2bb286=_0x470a,_0x5aceae=this[_0x2bb286(0xb9)]();this[_0x2bb286(0x25a)]['set'](_0x5aceae,_0x19d8b0),this['_commandService'][_0x2bb286(0x22f)](ro['id'],{'version':_0x5aceae,..._0x1c8424},{'onlyLocal':!0x0});});}['_generateUniqueVersion'](){const _0x1ab8a0=_0x472c5c;return Math[_0x1ab8a0(0x18d)]()[_0x1ab8a0(0x1ec)](0x24)[_0x1ab8a0(0xdf)](0x2,0x10);}};Q=_i([Fi(0x0,_0x3af2eb(_0x88b8f4))],Q);const Wo={0x0:'R',0x1:'K',0x2:'2',0x3:'F',0x4:'s',0x5:'z',0x6:'S',0x7:'n',0x8:'P',0x9:'3','q':'0','v':'1','Z':'4','G':'5','V':'6','K':'7','C':'8','Q':'9','T':'a','c':'b','j':'c','O':'d','i':'e','y':'f','A':'g','k':'h','r':'i','L':'j','m':'k','u':'l','l':'m','x':'o','U':'p','d':'q','X':'r','n':'t','P':'u','p':'v','b':'w','z':'x','h':'y','F':'A','N':'B','W':'C','s':'D','w':'E','a':'G','J':'H','S':'I','o':'J','Y':'L','M':'M','I':'N','H':'O','t':'Q','R':'T','f':'U','g':'V','D':'W','B':'X','e':'Y','E':'Z'},Go=_0x472c5c(0x1bb),Ri=_0x195613=>{const _0x2a3007=_0x472c5c;var _0x8151ba;return((_0x8151ba=_0x195613[_0x2a3007(0x102)])==null?void 0x0:_0x8151ba[_0x2a3007(0x190)][_0x2a3007(0x1e0)](/\r\n$/,''))||'';};class Di extends _0x48a104{constructor(_0x2a9758,_0x456d37){const _0x67dd92=_0x472c5c;super(),x(this,_0x67dd92(0x178),{}),x(this,_0x67dd92(0x208)),x(this,_0x67dd92(0x235)),(this[_0x67dd92(0x208)]=_0x456d37,this[_0x67dd92(0x235)]=_0x2a9758);}[_0x472c5c(0x23e)](){const _0x3d81ef=_0x472c5c;for(const _0x1790d1 in this['dataFields']){const _0x4f4c90=this[_0x3d81ef(0x205)][_0x1790d1],_0x2254d5=_0x4f4c90[_0x3d81ef(0x2ae)]();this[_0x3d81ef(0x178)][_0x2254d5]=_0x4f4c90[_0x3d81ef(0x21f)]();}}[_0x472c5c(0x21c)](){const _0x2cd9e1=_0x472c5c,_0x4accef=this[_0x2cd9e1(0x235)];return Ai['bind'](_0x4accef);}['deleteDataField'](_0x52a44e){const _0x301d9f=_0x472c5c,_0x37ab41=this['dataFields'][_0x52a44e]['rangeKey'];delete this[_0x301d9f(0x205)][_0x52a44e],delete this[_0x301d9f(0x178)][_0x37ab41];}[_0x472c5c(0x2f4)](_0x1048db){const _0x4d8092=_0x472c5c;this[_0x4d8092(0x205)][_0x1048db[_0x4d8092(0x21f)]()]=_0x1048db;}[_0x472c5c(0x27d)](_0x7eecd0){const _0x4d5cc3=_0x472c5c;var _0x167a93,_0x18253d;const _0x213a41=this[_0x4d5cc3(0x235)]['getTargetByPivotId'](_0x7eecd0);if(_0x213a41){const {unitId:_0x1dea6f,subUnitId:_0x3d5ba0}=_0x213a41,_0x2243a6=(_0x167a93=this[_0x4d5cc3(0x235)][_0x4d5cc3(0x17d)](_0x1dea6f,_0x3d5ba0,_0x7eecd0))==null?void 0x0:_0x167a93['sourceRangeInfo'];this['_host'][_0x4d5cc3(0x2bc)]({'token':_0x7eecd0,'type':Be[_0x4d5cc3(0x1b4)],'dataRangeInfo':_0x2243a6});}(_0x18253d=this['getCollection'](_0x7eecd0))==null||_0x18253d[_0x4d5cc3(0xf4)](),delete this[_0x4d5cc3(0xa9)][_0x7eecd0];}[_0x472c5c(0x2ae)](_0x2ba79d,_0x1b18b9){const {sheetName:_0x314199,unitId:_0x2cef2e,range:_0x213e7e}=_0x2ba79d,{startRow:_0x142f60,endRow:_0xffb72}=_0x213e7e;return _0x317001(_0x2cef2e,_0x314199,{'startRow':_0x142f60,'endRow':_0xffb72,'startColumn':_0x1b18b9,'endColumn':_0x1b18b9});}[_0x472c5c(0x232)](_0x1622cd){const _0x2c47de=_0x472c5c;return this[_0x2c47de(0x205)][this[_0x2c47de(0x178)][_0x1622cd]];}['setRangeKeyMap'](_0x205c56,_0x1a376d){const _0x36fc75=_0x472c5c;this[_0x36fc75(0x178)][_0x205c56]=_0x1a376d;}[_0x472c5c(0x219)](_0x330275,_0x3de81e){const _0x114a39=_0x472c5c;this[_0x114a39(0x178)][_0x3de81e]=this[_0x114a39(0x178)][_0x330275],delete this[_0x114a39(0x178)][_0x330275];}[_0x472c5c(0x2f2)](_0x3a7d4b,_0x3c1451,_0x57da07,_0x39b4e3){const _0x57b474=_0x472c5c,_0x19c3fb=new _0x26a739(this);_0x19c3fb['fromJSON'](_0x3c1451);const _0x56f233=[];let _0x33f05f=0x0;for(const _0x1a9299 of _0x19c3fb['fieldIds']){const _0x20f450=this[_0x57b474(0x2ae)](_0x57da07,_0x33f05f),_0x306fa4=this[_0x57b474(0x205)][_0x1a9299];_0x306fa4&&(_0x306fa4[_0x57b474(0x2c0)]=_0x20f450,this[_0x57b474(0x1de)](_0x20f450,_0x1a9299),_0x56f233[_0x57b474(0x2b1)]({'index':_0x33f05f,'dataField':_0x306fa4})),_0x33f05f++;}return this['addCollection'](_0x3a7d4b,_0x19c3fb,_0x57da07,_0x39b4e3),{'collection':_0x19c3fb,'updateDataFieldList':_0x56f233};}[_0x472c5c(0x1f9)](_0x13d94e,_0x487374){const _0x8feed1=_0x472c5c;return _0x13d94e['rangeType']===_0x127b18[_0x8feed1(0x11c)]?{'startRow':0x0,'startColumn':_0x13d94e[_0x8feed1(0x24c)],'endRow':_0x487374[_0x8feed1(0xd3)]()-0x1,'endColumn':_0x13d94e[_0x8feed1(0xfc)]}:{'startRow':_0x13d94e[_0x8feed1(0x157)],'startColumn':_0x13d94e['startColumn'],'endRow':_0x13d94e[_0x8feed1(0x2c9)],'endColumn':_0x13d94e[_0x8feed1(0xfc)]};}[_0x472c5c(0x1da)](_0x51f908){const _0x16d8f6=_0x472c5c,{sheetName:_0xa9da7d,range:_0x4cd75a}=_0x51f908,_0x2b6955=this['_univerInstanceService'][_0x16d8f6(0x1ff)](_0x5e6e00[_0x16d8f6(0x2e5)]),_0x176bf1=_0x2b6955['getSheetBySheetName'](_0xa9da7d),_0x5dd602=_0x176bf1[_0x16d8f6(0x1fa)](),{startColumn:_0x29f8fc,startRow:_0x1b5aa3,endColumn:_0x145a21}=this[_0x16d8f6(0x1f9)](_0x4cd75a,_0x176bf1),_0x3eff66=_0x2b6955[_0x16d8f6(0x16b)](),_0x42d0f3=new _0x26a739(this);_0x42d0f3['setRange'](_0x51f908);const _0x4ff848=[],_0x12c703={};for(let _0x26eb2b=_0x29f8fc;_0x26eb2b<=_0x145a21;_0x26eb2b++){const _0xa758f7=_0x5dd602[_0x16d8f6(0x187)](_0x1b5aa3,_0x26eb2b),_0x21c198=this['getRangeKey'](_0x51f908,_0x26eb2b),_0x3d1c7f=this[_0x16d8f6(0x232)](_0x21c198);if(_0x3d1c7f)_0x42d0f3[_0x16d8f6(0x1ba)](_0x3d1c7f[_0x16d8f6(0x21f)](),_0x3d1c7f[_0x16d8f6(0x1fe)]());else{const _0x1043ff=this[_0x16d8f6(0xea)]();let _0x19521b=this[_0x16d8f6(0x161)](_0xa758f7,_0x3eff66,_0x12c703);_0x231759(_0x19521b)&&(_0x19521b=_0x1f737d[_0x16d8f6(0x2b2)](_0x19521b['f'],Number(_0x19521b['v'])));const _0x4a138e=this[_0x16d8f6(0xa5)](_0x19521b,_0x26eb2b),_0x536eab=new _0x561ce7(_0x1043ff,_0x4a138e,_0x5460c5(0x3));_0x536eab[_0x16d8f6(0x2c0)]=_0x21c198,this[_0x16d8f6(0x205)][_0x1043ff]=_0x536eab,_0x42d0f3['addField'](_0x1043ff,_0x4a138e),_0x4ff848[_0x16d8f6(0x2b1)]({'index':_0x26eb2b,'dataField':_0x536eab});}}return{'updateDataFieldList':_0x4ff848,'collection':_0x42d0f3};}[_0x472c5c(0x24b)](_0x2a4b12){const _0x4da38a=_0x472c5c;return this[_0x4da38a(0x235)][_0x4da38a(0x166)]()[_0x4da38a(0x1a4)]+'\x20'+_0x20317d(_0x2a4b12);}['uniqueDataFieldName'](_0x462a4f,_0x262ba8){const _0x5764b5=_0x472c5c;return _0x462a4f==null||_0x462a4f===''?this[_0x5764b5(0x24b)](_0x262ba8):String(_0x462a4f);}[_0x472c5c(0x14f)](_0x44521a){const _0x5d6fd1=_0x472c5c;return this[_0x5d6fd1(0xa9)][_0x44521a];}[_0x472c5c(0x1be)](_0x2610e2,_0x155d7a,_0x25c645,_0x574455){const _0xf5cdff=_0x472c5c;this[_0xf5cdff(0xa9)][_0x2610e2]=_0x155d7a,_0x155d7a[_0xf5cdff(0x23c)](_0x25c645),this[_0xf5cdff(0x235)][_0xf5cdff(0x2bc)]({'token':_0x2610e2,'type':Be[_0xf5cdff(0x2f0)],'dataRangeInfo':_0x25c645,'targetCellInfo':_0x574455});}['handleMoveRange'](_0x4104ea,_0x367136){const _0x3997c5=_0x472c5c,_0x11f334=this[_0x3997c5(0x14f)](_0x4104ea),_0x482523=_0x11f334['getFieldIds']();let _0x55536c=0x0;for(const _0x337d04 of _0x482523){const _0x1680f7=_0x11f334[_0x3997c5(0x16d)](_0x337d04),_0x332902=this[_0x3997c5(0x2ae)](_0x367136,_0x55536c);this[_0x3997c5(0x219)](_0x1680f7[_0x3997c5(0x2c0)],_0x332902),_0x55536c++;}}[_0x472c5c(0x228)](){return{'runtimeCellData':{},'dirtyRanges':{}};}[_0x472c5c(0x212)](_0x37cae2,_0x588dd0){const _0x53b306=_0x472c5c;if(this['getCollection'](_0x37cae2)){const _0x389246=this[_0x53b306(0x180)](_0x588dd0),_0x55f6fc=[];for(const _0x28f604 of _0x389246)this[_0x53b306(0x178)][_0x28f604]!==void 0x0&&_0x55f6fc[_0x53b306(0x2b1)](this[_0x53b306(0x178)][_0x28f604]);const _0x2b3f1b=this[_0x53b306(0x2ac)](_0x37cae2),_0x130bc9=[],_0x4be2f3=new Set(_0x55f6fc);for(const _0x540c16 of _0x2b3f1b)_0x4be2f3[_0x53b306(0x155)](_0x540c16)||_0x130bc9[_0x53b306(0x2b1)](_0x540c16);return _0x130bc9;}}['getMatrixValue'](_0x44002e,_0x16ae22,_0x3695a5,_0x5d5137,_0x25426c){const _0x14d202=_0x472c5c;return _0x16ae22&&_0x16ae22['getValue'](_0x5d5137,_0x25426c)?_0x16ae22['getValue'](_0x5d5137,_0x25426c):_0x3695a5&&_0x3695a5['getValue'](_0x5d5137,_0x25426c)?_0x3695a5['getValue'](_0x5d5137,_0x25426c):_0x44002e[_0x14d202(0x187)](_0x5d5137,_0x25426c);}[_0x472c5c(0x8e)](_0xb0770d,_0x10cfd6,_0x591c6b,_0x58e68f){const _0x2a3827=_0x472c5c,_0xb14993=this[_0x2a3827(0x205)][_0xb0770d];if(!_0xb14993)return;const {subUnitId:_0x2adc73,range:_0x49ad00,unitId:_0x184864}=_0x10cfd6,_0x4f2051=this[_0x2a3827(0x208)][_0x2a3827(0x236)](_0x184864);if(!_0x4f2051){console[_0x2a3827(0xd6)](_0x2a3827(0x13e));return;}const _0x36a467=_0x4f2051['getSheetBySheetId'](_0x2adc73),_0x2484dd=_0x36a467['getCellMatrix'](),{arrayFormulaCellDataMatrix:_0x5c9c0f,unitDataMatrix:_0x53aedb}=_0x58e68f||{},{startRow:_0x2a1e6e,startColumn:_0x871a2c,endRow:_0x419b3c}=this['getRangeStartEndInfo'](_0x49ad00,_0x36a467);_0xb14993[_0x2a3827(0x2aa)]();const _0x230e27=_0x4f2051[_0x2a3827(0x16b)](),_0x3c88c1={},_0x30c232=this['getMatrixValue'](_0x2484dd,_0x5c9c0f,_0x53aedb,_0x2a1e6e,_0x871a2c+_0x591c6b);let _0xd954c2=this[_0x2a3827(0x161)](_0x30c232,_0x230e27,_0x3c88c1);_0x231759(_0xd954c2)&&(_0xd954c2=_0x1f737d['format'](_0xd954c2['f'],Number(_0xd954c2['v'])));const _0x59bf40=this[_0x2a3827(0xa5)](_0xd954c2,_0x871a2c+_0x591c6b);_0xb14993['setName'](_0x59bf40);for(let _0x2805dc=_0x2a1e6e+0x1;_0x2805dc<=_0x419b3c;_0x2805dc++){const _0x1a9765=this['getMatrixValue'](_0x2484dd,_0x5c9c0f,_0x53aedb,_0x2805dc,_0x871a2c+_0x591c6b);_0xb14993[_0x2a3827(0xbf)](this[_0x2a3827(0x161)](_0x1a9765,_0x230e27,_0x3c88c1),_0x2805dc-0x1-_0x2a1e6e);}}[_0x472c5c(0x299)](_0x2f7ed8,_0x517637,_0x1b843c){const _0x3fdaab=_0x472c5c,{subUnitId:_0x1ef111,range:_0x1f8bff,unitId:_0x550068}=_0x1b843c,_0x993f16=this['_univerInstanceService']['getUnit'](_0x550068);if(!_0x993f16){console[_0x3fdaab(0xd6)](_0x3fdaab(0x13e));return;}const _0x320506=_0x993f16[_0x3fdaab(0x177)](_0x1ef111),_0x23ce11=_0x320506['getCellMatrix'](),{startRow:_0x19078f,startColumn:_0x1dd88d,endRow:_0x322bb5}=this[_0x3fdaab(0x1f9)](_0x1f8bff,_0x320506),_0x44c008=_0x993f16[_0x3fdaab(0x16b)](),_0x132494={};for(const {dataField:_0x3eddfa,index:_0x5266e5}of _0x517637){_0x3eddfa[_0x3fdaab(0x2aa)]();const _0x39ccd1=this[_0x3fdaab(0x8b)](_0x23ce11,void 0x0,void 0x0,_0x19078f,_0x1dd88d+_0x5266e5);let _0x384ecd=this[_0x3fdaab(0x161)](_0x39ccd1,_0x44c008,_0x132494);_0x231759(_0x384ecd)&&(_0x384ecd=_0x1f737d[_0x3fdaab(0x2b2)](_0x384ecd['f'],Number(_0x384ecd['v'])));const _0x51f56a=this[_0x3fdaab(0xa5)](_0x384ecd,_0x1dd88d+_0x5266e5);_0x3eddfa[_0x3fdaab(0x1a8)](_0x51f56a);}_0x2f7ed8['updateAllDisplayName']();for(let _0x5701a3=_0x19078f+0x1;_0x5701a3<=_0x322bb5;_0x5701a3++)for(const {index:_0x451066,dataField:_0x489bcc}of _0x517637){const _0x249ab6=_0x23ce11[_0x3fdaab(0x187)](_0x5701a3,_0x1dd88d+_0x451066);_0x489bcc[_0x3fdaab(0xbf)](this[_0x3fdaab(0x161)](_0x249ab6,_0x44c008,_0x132494),_0x5701a3-0x1-_0x19078f);}_0x2f7ed8[_0x3fdaab(0xb6)](_0x322bb5-_0x19078f);}[_0x472c5c(0x180)](_0x448f0e){const _0x122b40=_0x472c5c,{range:_0x1a31b1}=_0x448f0e,{startColumn:_0x501e3f,endColumn:_0x5acff1}=_0x1a31b1,_0xec6a95=[];for(let _0x6a72d1=_0x501e3f;_0x6a72d1<=_0x5acff1;_0x6a72d1++)_0xec6a95[_0x122b40(0x2b1)](this['getRangeKey'](_0x448f0e,_0x6a72d1));return _0xec6a95;}[_0x472c5c(0x161)](_0x57e430,_0x54ff5c,_0x4d3f51){const _0x4c010c=_0x472c5c;if(_0x57e430){const {s:_0x4bb1d0,v:_0x2a8b5c,t:_0x527a61,p:_0x443283}=_0x57e430;if(_0x443283)return Ri(_0x443283);const _0x2afda2=_0x54ff5c[_0x4c010c(0x1b7)](_0x4bb1d0);if(_0x2afda2&&_0x527a61===_0x4a84db[_0x4c010c(0x282)]&&_0x2afda2['n']){const {pattern:_0x5b53e1}=_0x2afda2['n'];_0x4d3f51[_0x5b53e1]||(_0x4d3f51[_0x5b53e1]=_0x1f737d[_0x4c010c(0x29a)](_0x5b53e1));const _0x26d013=_0x4d3f51[_0x5b53e1],_0x4d72aa=_0x26d013[_0x4c010c(0x9f)];if(_0x26d013[_0x4c010c(0x21e)])return String(_0x2a8b5c);if(_0x4d72aa)return{'v':_0x2a8b5c,'f':_0x5b53e1};}if(_0x527a61===_0x4a84db[_0x4c010c(0x282)])return Number(_0x2a8b5c);if(_0x527a61===_0x4a84db[_0x4c010c(0x11a)]||_0x527a61===_0x4a84db['FORCE_STRING'])return String(_0x2a8b5c);if(_0x527a61===void 0x0){const _0x183d00=Number(_0x2a8b5c);if(!Number[_0x4c010c(0x2fc)](_0x183d00)&&String(_0x183d00)===_0x2a8b5c)return _0x183d00;}return _0x2a8b5c!=null?_0x2a8b5c:null;}else return null;}[_0x472c5c(0x290)](_0x6ce708){const _0x21daa1=_0x472c5c,{sheetName:_0x3add75,range:_0x4ff525,unitId:_0xd15368}=_0x6ce708,_0x54b2b3=this['_univerInstanceService'][_0x21daa1(0x236)](_0xd15368);if(!_0x54b2b3)return console[_0x21daa1(0xd6)](_0x21daa1(0x13e)),{'header':[],'data':[]};const _0x32ce02=_0x54b2b3[_0x21daa1(0xf7)](_0x3add75),_0x1928bc=_0x32ce02[_0x21daa1(0x1fa)](),{startRow:_0x5c339a,startColumn:_0x23e937,endRow:_0x520ef5,endColumn:_0x4b30fc}=this[_0x21daa1(0x1f9)](_0x4ff525,_0x32ce02),_0x574066=_0x54b2b3[_0x21daa1(0x16b)](),_0x556ffa=[],_0x11ebb0=[],_0x141ca4={};for(let _0x37ce84=_0x5c339a;_0x37ce84<=_0x520ef5;_0x37ce84++){const _0x23d3c0=[];for(let _0x681ee2=_0x23e937;_0x681ee2<=_0x4b30fc;_0x681ee2++){const _0x3fb7bd=_0x1928bc['getValue'](_0x37ce84,_0x681ee2);_0x37ce84===_0x5c339a?_0x556ffa['push'](_0x3fb7bd==null?null:String(_0x3fb7bd['v'])):_0x23d3c0[_0x21daa1(0x2b1)](this['adjustSheetCellData'](_0x3fb7bd,_0x574066,_0x141ca4));}_0x11ebb0['push'](_0x23d3c0);}return{'header':_0x556ffa,'data':_0x11ebb0};}[_0x472c5c(0x9e)](){const _0x2bb8cb=_0x472c5c;return super[_0x2bb8cb(0x9e)]();}[_0x472c5c(0xcf)](_0x570835){const _0x5d6ee8=_0x472c5c;super[_0x5d6ee8(0xcf)](_0x570835),this[_0x5d6ee8(0x23e)]();}[_0x472c5c(0xf4)](){const _0x2ce193=_0x472c5c;super[_0x2ce193(0xf4)](),this[_0x2ce193(0x178)]={},this[_0x2ce193(0x235)]=null;}}const Ni=_0x233f34=>{const _0x47a732=_0x472c5c,{targetCellInfo:_0x2d6fc0}=_0x233f34,{matrixCache:_0x11ae8f,rangesCache:_0x481977}=Xo({'filter':_0x47a732(0xc6),'row':_0x47a732(0x2f7),'column':'Column','values':'Values'},_0x2d6fc0),_0x22353a=new _0x38f0b5();return _0x11ae8f['forValue']((_0x49c028,_0x1db20d,_0x595bee)=>{_0x22353a['setValue'](_0x49c028,_0x1db20d,_0x595bee);}),{'matrix':_0x22353a,'rangesCache':_0x481977};},ot=_0x25c008=>{const _0x212f6e=_0x472c5c;let _0x3f7582;if(_0x25c008!=null&&_0x25c008['v']||(_0x25c008==null?void 0x0:_0x25c008['v'])===0x0){_0x3f7582||(_0x3f7582={});const _0x4d684e=$o(_0x25c008['v']);typeof _0x4d684e==_0x212f6e(0x11d)?_0x3f7582['t']=_0x4a84db[_0x212f6e(0x282)]:typeof _0x4d684e=='string'&&(_0x3f7582['t']=_0x4a84db[_0x212f6e(0x11a)]),_0x3f7582['v']=_0x4d684e;}return _0x3f7582;},xi=(_0x126ed3,_0x19eb76,_0x5190fe)=>{const _0x1b3dfc=_0x472c5c;var _0x98705b,_0x470e50,_0x34574f,_0x5827ad,_0x52471a,_0x3a53d8,_0x5a0f52,_0x577b39,_0x37a7f6,_0x145e4f,_0x15f8d1,_0x4d096a;const {cornerView:_0x2df2c5,rowView:_0x77f6b2,colView:_0x5e7c00,dataView:_0x58b2dc,pageView:_0x601c0a,formatMap:_0x236a25}=_0x126ed3,{row:_0x25e29c,col:_0x747c67}=_0x19eb76,_0x68d496=new _0x38f0b5();let _0x158c2a=_0x25e29c,_0x371207=_0x747c67;Object[_0x1b3dfc(0x118)](_0x601c0a[_0x1b3dfc(0x276)])[_0x1b3dfc(0xaf)](_0x515f17=>{const _0x31c5aa=_0x1b3dfc;Object['keys'](_0x601c0a[_0x31c5aa(0x276)][Number(_0x515f17)])['forEach'](_0x57b6b3=>{const _0x10ca5f=_0x31c5aa,_0xaca1e9={..._0x601c0a[_0x10ca5f(0x276)][Number(_0x515f17)][Number(_0x57b6b3)]};_0x68d496[_0x10ca5f(0xdc)](Number(_0x515f17)+_0x158c2a,Number(_0x57b6b3)+_0x371207,ot(_0xaca1e9));});});const _0x189ab5=Object[_0x1b3dfc(0x118)](_0x601c0a['data'])[_0x1b3dfc(0x238)];_0x158c2a+=_0x189ab5+(_0x189ab5?It:0x0);const _0x9b4e16=_0x2df2c5['getRowCount'](),_0x236da4=_0x2df2c5[_0x1b3dfc(0x15a)]();for(let _0x491707=0x0;_0x491707<_0x9b4e16;_0x491707++)for(let _0x2e03bd=0x0;_0x2e03bd<_0x236da4;_0x2e03bd++){const _0x28e98c={...(_0x470e50=(_0x98705b=_0x2df2c5[_0x1b3dfc(0x276)])==null?void 0x0:_0x98705b[_0x491707])==null?void 0x0:_0x470e50[_0x2e03bd]};_0x28e98c&&((_0x34574f=_0x77f6b2['headerMap'][_0x2e03bd])!=null&&_0x34574f['isValue'])&&_0x2e03bd===_0x236da4-0x1&&_0x491707===_0x9b4e16-0x1&&(_0x28e98c['v']=''+_0x5190fe['sheets-pivot.value']),_0x68d496[_0x1b3dfc(0xdc)](_0x491707+_0x158c2a,_0x2e03bd+_0x371207,ot(_0x28e98c));}_0x371207+=_0x236da4;const _0x29af78=_0x5e7c00[_0x1b3dfc(0x21b)],_0x4d01c7=_0x5e7c00[_0x1b3dfc(0x254)]()>=0x0?_0x5e7c00[_0x1b3dfc(0x254)]()+0x1:0x0,_0x342b16=_0x5e7c00[_0x1b3dfc(0x23a)]()>=0x0?_0x5e7c00[_0x1b3dfc(0x23a)]()+0x1:0x0;for(let _0x2dd97f=0x0;_0x2dd97f<_0x342b16;_0x2dd97f++)for(let _0x37f16b=0x0;_0x37f16b<_0x4d01c7;_0x37f16b++){const _0x397f9b={...(_0x52471a=(_0x5827ad=_0x5e7c00[_0x1b3dfc(0x276)])==null?void 0x0:_0x5827ad[_0x2dd97f])==null?void 0x0:_0x52471a[_0x37f16b]},_0x3358d4=(_0x3a53d8=_0x29af78[_0x2dd97f])==null?void 0x0:_0x3a53d8[_0x1b3dfc(0x227)],_0x4e1360=_0x236a25[_0x3358d4];_0x397f9b&&(_0x397f9b['v']=vt(_0x397f9b,_0x2dd97f===0x0&&((_0x5a0f52=_0x5e7c00['getHeaderMapItem'](_0x37f16b+0x1))==null?void 0x0:_0x5a0f52[_0x1b3dfc(0x22e)]),_0x4e1360,_0x5190fe)),_0x68d496[_0x1b3dfc(0xdc)](_0x2dd97f+_0x158c2a,_0x37f16b+_0x371207,ot(_0x397f9b));}_0x158c2a+=_0x9b4e16;const _0x420a1f=_0x77f6b2[_0x1b3dfc(0x21b)],_0x37ba0d=_0x77f6b2[_0x1b3dfc(0x254)]()>=0x0?_0x77f6b2[_0x1b3dfc(0x254)]()+0x1:0x0,_0x42b00d=_0x77f6b2[_0x1b3dfc(0x23a)]()>=0x0?_0x77f6b2[_0x1b3dfc(0x23a)]()+0x1:0x0;for(let _0x9d60e7=0x0;_0x9d60e7<_0x37ba0d;_0x9d60e7++)for(let _0x54e10a=0x0;_0x54e10a<_0x42b00d;_0x54e10a++){const _0x20090e={...(_0x37a7f6=(_0x577b39=_0x77f6b2[_0x1b3dfc(0x276)])==null?void 0x0:_0x577b39[_0x9d60e7])==null?void 0x0:_0x37a7f6[_0x54e10a]},_0xbb22b7=(_0x145e4f=_0x420a1f[_0x54e10a])==null?void 0x0:_0x145e4f[_0x1b3dfc(0x227)],_0x45d426=_0x236a25[_0xbb22b7];_0x20090e&&(_0x20090e['v']=vt(_0x20090e,!0x1,_0x45d426,_0x5190fe)),_0x68d496[_0x1b3dfc(0xdc)](_0x9d60e7+_0x158c2a,_0x54e10a+_0x747c67,ot(_0x20090e));}const _0x278e5b=_0x58b2dc[_0x1b3dfc(0xd3)](),_0x1ecd06=_0x58b2dc[_0x1b3dfc(0x15a)]();for(let _0x3ab5b8=0x0;_0x3ab5b8<_0x278e5b;_0x3ab5b8++)for(let _0x16dac8=0x0;_0x16dac8<_0x1ecd06;_0x16dac8++){const _0x55f8b9={...(_0x4d096a=(_0x15f8d1=_0x58b2dc[_0x1b3dfc(0x276)])==null?void 0x0:_0x15f8d1[_0x3ab5b8])==null?void 0x0:_0x4d096a[_0x16dac8]};_0x68d496[_0x1b3dfc(0xdc)](_0x3ab5b8+_0x158c2a,_0x16dac8+_0x371207,ot(_0x55f8b9));}return _0x68d496;},Ui=_0x5830c7=>{const _0x33e92e=_0x472c5c,{view:_0x5cb3ce,targetCellInfo:_0x1016ba,isEmpty:_0x747759,textInfo:_0x5d9b5f}=_0x5830c7;if(_0x747759)return Ni(_0x5830c7);const {pageView:_0x16c514,cornerView:_0x49e781,rowView:_0x17241d,colView:_0x337a90,dataView:_0x384cb5}=_0x5cb3ce,_0x32c127=ge(_0x1016ba,_0x16c514,!0x0),_0xbe55f7=_0x16c514[_0x33e92e(0x203)]>=0x0?_0x16c514['lastRow']+0x1:0x0,_0x410f17=_0x49e781[_0x33e92e(0xd3)](),_0x47b5c1=_0x49e781[_0x33e92e(0x15a)](),_0x24d448=_0x32c127[_0x33e92e(0x238)]>0x0?It:0x0,_0x49376d=ge({'row':_0x1016ba[_0x33e92e(0x2e1)]+_0xbe55f7+_0x24d448,'col':_0x1016ba[_0x33e92e(0x2e3)]},_0x49e781,!0x1,!0x1),_0x2a3c3c=ge({'row':_0x1016ba[_0x33e92e(0x2e1)]+_0xbe55f7+_0x24d448+_0x410f17,'col':_0x1016ba[_0x33e92e(0x2e3)]},_0x17241d,!0x1,!0x0),_0x517505=ge({'row':_0x1016ba[_0x33e92e(0x2e1)]+_0xbe55f7+_0x24d448,'col':_0x1016ba[_0x33e92e(0x2e3)]+_0x47b5c1},_0x337a90,!0x1,!0x0),_0x442bd1=ge({'row':_0x1016ba['row']+_0xbe55f7+_0x24d448+_0x410f17,'col':_0x1016ba[_0x33e92e(0x2e3)]+_0x47b5c1},_0x384cb5,!0x1,!0x1),_0x43993f={'rowRanges':_0x2a3c3c,'colRanges':_0x517505,'cornerRanges':_0x49376d,'dataRanges':_0x442bd1,'pageRanges':_0x32c127};return{'matrix':xi(_0x5cb3ce,_0x1016ba,_0x5d9b5f),'rangesCache':_0x43993f};};var Vi=Object[_0x472c5c(0x13d)],Oi=(_0x5888fd,_0xff1abe,_0x559087,_0x46240b)=>{const _0x264f68=_0x472c5c;for(var _0x411a1b=_0x46240b>0x1?void 0x0:_0x46240b?Vi(_0xff1abe,_0x559087):_0xff1abe,_0x4d30c9=_0x5888fd[_0x264f68(0x238)]-0x1,_0x588630;_0x4d30c9>=0x0;_0x4d30c9--)(_0x588630=_0x5888fd[_0x4d30c9])&&(_0x411a1b=_0x588630(_0x411a1b)||_0x411a1b);return _0x411a1b;},nt=(_0x539ba6,_0x1c5d01)=>(_0x405399,_0x39727a)=>_0x1c5d01(_0x405399,_0x39727a,_0x539ba6);let $=class extends _0x826d73{constructor(_0x2cb95d,_0x5c96f9,_0x4c3409,_0x1bf25d,_0x2b8bbd){const _0x3e5e1a=_0x472c5c;super(),x(this,_0x3e5e1a(0x221),new Map()),x(this,'_pivotTableInstanceCache',new Map()),x(this,_0x3e5e1a(0xc8),new Map()),x(this,_0x3e5e1a(0x2c2)),x(this,_0x3e5e1a(0x8d),new _0x1b5669()),x(this,_0x3e5e1a(0x289),this[_0x3e5e1a(0x8d)][_0x3e5e1a(0x223)]()),x(this,'_viewData$',new _0x1b5669()),x(this,_0x3e5e1a(0x15b),this[_0x3e5e1a(0x94)]['asObservable']()),x(this,_0x3e5e1a(0x2a3),new _0x1b5669()),x(this,_0x3e5e1a(0x84),this[_0x3e5e1a(0x2a3)][_0x3e5e1a(0x223)]()),x(this,_0x3e5e1a(0x1b2),new Map()),x(this,'needSameDeleteModel',[]),x(this,_0x3e5e1a(0x124),new Map()),(this['_injector']=_0x2cb95d,this[_0x3e5e1a(0x208)]=_0x5c96f9,this['_lifecycleService']=_0x4c3409,this[_0x3e5e1a(0x9a)]=_0x1bf25d,this['_resourceManagerService']=_0x2b8bbd,this[_0x3e5e1a(0x16c)]());}['getTextInfo'](){const _0x23a318=_0x472c5c;return this[_0x23a318(0x2c2)]?this[_0x23a318(0x2c2)]:Mi;}[_0x472c5c(0x216)](_0x452af0){const _0x514ac8=_0x472c5c;this[_0x514ac8(0x2c2)]=_0x452af0;}[_0x472c5c(0xbc)](_0xd6e248){const _0x44a9b9=_0x472c5c;var _0x5b23f0;const {from:_0x2ddb5e,to:_0x2cc43e,unitId:_0x56c4af,fromRange:_0x46b368,toRange:_0x37c7c8}=_0xd6e248;if(_0x2ddb5e&&_0x2cc43e){const _0x4eedf4=this['getDataFieldManager'](_0x56c4af),_0x5309e1=this['_model'][_0x44a9b9(0x1b7)](_0x56c4af),_0x407cd0=(_0x5b23f0=this['_univerInstanceService'][_0x44a9b9(0x236)](_0x56c4af))==null?void 0x0:_0x5b23f0[_0x44a9b9(0x177)](_0x2cc43e['subUnitId']);if(!_0x5309e1||!_0x407cd0)return;const _0x478239=_0x407cd0==null?void 0x0:_0x407cd0[_0x44a9b9(0x1fe)]();for(const [_0x111007,_0x266a16]of _0x5309e1[_0x44a9b9(0x196)]())for(const [_0x146495,_0x191336]of _0x266a16[_0x44a9b9(0x196)]()){const {sourceRangeInfo:_0x56a894}=_0x191336;if(_0x56a894[_0x44a9b9(0x218)]===_0x56c4af&&_0x56a894[_0x44a9b9(0x1dc)]===_0x2ddb5e[_0x44a9b9(0x1dc)]&&_0x2776bf[_0x44a9b9(0x121)](_0x46b368,_0x56a894[_0x44a9b9(0x213)])){const _0xa4ab52={'row':_0x56a894[_0x44a9b9(0x213)][_0x44a9b9(0x157)]-_0x46b368[_0x44a9b9(0x157)],'col':_0x56a894['range'][_0x44a9b9(0x24c)]-_0x46b368[_0x44a9b9(0x24c)]},_0x3cf1c1={'unitId':_0x56c4af,'subUnitId':_0x2cc43e['subUnitId'],'sheetName':_0x478239,'range':{'startRow':_0x37c7c8['startRow']+_0xa4ab52[_0x44a9b9(0x2e1)],'endRow':_0x37c7c8['startRow']+_0xa4ab52['row']+_0x56a894[_0x44a9b9(0x213)][_0x44a9b9(0x2c9)]-_0x56a894[_0x44a9b9(0x213)]['startRow'],'startColumn':_0x37c7c8['startColumn']+_0xa4ab52[_0x44a9b9(0x2e3)],'endColumn':_0x37c7c8[_0x44a9b9(0x24c)]+_0xa4ab52[_0x44a9b9(0x2e3)]+_0x56a894[_0x44a9b9(0x213)][_0x44a9b9(0xfc)]-_0x56a894['range']['startColumn']}};_0x4eedf4[_0x44a9b9(0xbc)](_0x146495,_0x3cf1c1);const _0x92487a={..._0x191336,'sourceRangeInfo':_0x3cf1c1};this[_0x44a9b9(0x2ab)](_0x56c4af,_0x2cc43e[_0x44a9b9(0x1dc)],_0x146495,_0x92487a),this['broadcastCollectionChange']({'unitId':_0x56c4af,'token':_0x146495,'type':Be['update'],'oldSourceRangeInfo':_0x56a894,'dataRangeInfo':_0x3cf1c1,'targetCellInfo':_0x191336[_0x44a9b9(0x26a)]}),this[_0x44a9b9(0x1f8)]({'unitId':_0x56c4af,'subUnitId':_0x2cc43e[_0x44a9b9(0x1dc)],'oldSubUnitId':_0x111007,'pivotTableId':_0x146495,'pivotTableConfig':_0x92487a,'collectionConfig':_0x4eedf4[_0x44a9b9(0x9e)]()});}}}}['broadcastCollectionChange'](_0x77b64f){this['_collectionChange$']['next'](_0x77b64f);}[_0x472c5c(0x266)](_0x6c6bfb){const _0x4fb870=_0x472c5c;let _0x30e6d8=this[_0x4fb870(0x1b2)]['get'](_0x6c6bfb);return _0x30e6d8||(_0x30e6d8=new Di(this,this[_0x4fb870(0x208)]),this[_0x4fb870(0x1b2)]['set'](_0x6c6bfb,_0x30e6d8)),_0x30e6d8;}[_0x472c5c(0x14f)](_0x1a6470,_0x564ab5){const _0x3f27ad=_0x472c5c;return this['getDataFieldManager'](_0x1a6470)[_0x3f27ad(0xa9)][_0x564ab5];}[_0x472c5c(0x212)](_0x283134,_0x2a1389,_0x34651e){const _0x39f4a2=_0x472c5c;return this['getDataFieldManager'](_0x283134)[_0x39f4a2(0x212)](_0x2a1389,_0x34651e);}[_0x472c5c(0x296)](_0x2a67da,_0x4102bc){const _0x47ad38=_0x472c5c;let _0x45fa4c=this[_0x47ad38(0x221)][_0x47ad38(0x1b7)](_0x2a67da);_0x45fa4c||(_0x45fa4c=new Map(),this[_0x47ad38(0x221)]['set'](_0x2a67da,_0x45fa4c));let _0x1b1380=_0x45fa4c['get'](_0x4102bc);return _0x1b1380||(_0x1b1380=new Map(),_0x45fa4c[_0x47ad38(0x1d5)](_0x4102bc,_0x1b1380)),_0x1b1380;}[_0x472c5c(0x2ab)](_0x3802a9,_0x4a3075,_0x1c0d21,_0xd870c9){const _0x587d30=_0x472c5c;this[_0x587d30(0x296)](_0x3802a9,_0x4a3075)[_0x587d30(0x1d5)](_0x1c0d21,_0xd870c9);}[_0x472c5c(0xe0)](_0x3c9ff2,_0x49d6f3,_0x277fae){const _0x118494=_0x472c5c;var _0x47872b,_0x576cac,_0x3cb080,_0x3669a6;((_0x576cac=(_0x47872b=this['_model'][_0x118494(0x1b7)](_0x3c9ff2))==null?void 0x0:_0x47872b[_0x118494(0x1b7)](_0x49d6f3))==null?void 0x0:_0x576cac[_0x118494(0x1b7)](_0x277fae))&&((_0x3669a6=(_0x3cb080=this[_0x118494(0x221)][_0x118494(0x1b7)](_0x3c9ff2))==null?void 0x0:_0x3cb080[_0x118494(0x1b7)](_0x49d6f3))==null||_0x3669a6[_0x118494(0x1b4)](_0x277fae));}[_0x472c5c(0x17e)](_0x2cd224,_0x1bb593){const _0x293fd7=_0x472c5c;this[_0x293fd7(0xdd)][_0x293fd7(0x1d5)](_0x2cd224,_0x1bb593);}[_0x472c5c(0xae)](_0x55b591){const _0x3629c1=_0x472c5c;this['_pivotTableInstanceCache'][_0x3629c1(0x1b4)](_0x55b591);}['_ensureViewDataMap'](_0x2b5c34,_0x147fb0){const _0x470b4f=_0x472c5c;let _0x4a624b=this[_0x470b4f(0xc8)][_0x470b4f(0x1b7)](_0x2b5c34);_0x4a624b||(_0x4a624b=new Map(),this[_0x470b4f(0xc8)][_0x470b4f(0x1d5)](_0x2b5c34,_0x4a624b));let _0x3ce92a=_0x4a624b[_0x470b4f(0x1b7)](_0x147fb0);return _0x3ce92a||(_0x3ce92a=new Map(),_0x4a624b[_0x470b4f(0x1d5)](_0x147fb0,_0x3ce92a)),_0x3ce92a;}[_0x472c5c(0x1f8)](_0x6f5530){const _0x2d86d4=_0x472c5c,{unitId:_0x187fa1,subUnitId:_0x5b2f26,pivotTableId:_0xd92996,pivotTableConfig:_0x39a85d,collectionConfig:_0x4ad0be}=_0x6f5530,_0x15629c={'unitId':_0x187fa1,'subUnitId':_0x5b2f26,'oldSubUnitId':_0x5b2f26,'pivotTableId':_0xd92996,'pivotTableConfig':_0x39a85d,'collectionConfig':_0x4ad0be};this[_0x2d86d4(0x9a)][_0x2d86d4(0x22f)](co['id'],_0x15629c,{'onlyLocal':!0x0});}[_0x472c5c(0xd2)](_0x548b4f,_0x34ec9c,_0x1c7db4,_0x87195f,_0x56695c,_0x834cd9,_0x325f47,_0x46d49b=!0x1){const _0x4f1d72=_0x472c5c;var _0x1cdfc5;this[_0x4f1d72(0x9a)][_0x4f1d72(0x22f)](Dt['id'],{'single':{'unitId':_0x548b4f,'subUnitId':_0x34ec9c,'type':_0x1c7db4,'pivotTableId':_0x87195f,'view':_0x56695c,'pivotConfig':_0x834cd9},'collectionConfig':{[_0x548b4f]:_0x325f47}},{'onlyLocal':!0x0});const _0x32b9f0=!!((_0x1cdfc5=this['getPivotTableInstance'](_0x87195f))!=null&&_0x1cdfc5[_0x4f1d72(0x229)]()),_0x3feaac=this[_0x4f1d72(0x17d)](_0x548b4f,_0x34ec9c,_0x87195f);_0x3feaac&&this['updateViewData']({'view':_0x56695c,'pivotTableId':_0x87195f,'textInfo':this[_0x4f1d72(0x166)](),'isEmpty':_0x32b9f0,'targetCellInfo':_0x3feaac[_0x4f1d72(0x26a)]},_0x46d49b);}[_0x472c5c(0x168)](_0x5363af,_0x2948f1){const _0x1da32e=_0x472c5c,{targetCellInfo:_0x5e10b5,pivotTableId:_0x3308a9}=_0x5363af,{unitId:_0xa01627,subUnitId:_0x5ed83f}=_0x5e10b5,_0xede9b5=this[_0x1da32e(0xcd)](_0xa01627,_0x5ed83f),_0x486b25=_0xede9b5[_0x1da32e(0x1b7)](_0x3308a9);let _0x21399b,_0x47b678;_0x486b25&&(_0x21399b=_0x486b25[_0x1da32e(0xe8)],_0x47b678=_0x486b25[_0x1da32e(0x294)]);const {rangesCache:_0x115d79,matrix:_0xf2d56e}=Ui(_0x5363af);_0xede9b5[_0x1da32e(0x1d5)](_0x3308a9,{'rangeCache':_0x115d79,'matrix':_0xf2d56e,'oldMatrix':_0x47b678,'oldRangeCache':_0x21399b}),_0x2948f1||this['_viewData$'][_0x1da32e(0x303)]({'unitId':_0xa01627,'subUnitId':_0x5ed83f,'pivotTableId':_0x3308a9});}['addPivotTable'](_0xd7ffee,_0x4da674,_0x4379d6,_0x32938c,_0x4a0123){const _0xcb11ce=_0x472c5c;this[_0xcb11ce(0x2ab)](_0xd7ffee,_0x4da674,_0x4379d6,_0x4a0123),this[_0xcb11ce(0x17e)](_0x4379d6,_0x32938c);}[_0x472c5c(0x280)](_0x3aa8fa,_0x4e4444,_0x3a8bac){const _0x36eac2=_0x472c5c,_0x239710=this['getDataFieldManager'](_0x3aa8fa);_0x239710['getNoUsedDataFieldIds'](_0x3a8bac)['forEach'](_0x1e106a=>{const _0x45d041=_0x470a;_0x239710[_0x45d041(0x82)](_0x1e106a);}),this[_0x36eac2(0x18f)](_0x3aa8fa,_0x3a8bac),this[_0x36eac2(0xe0)](_0x3aa8fa,_0x4e4444,_0x3a8bac),this[_0x36eac2(0xae)](_0x3a8bac);}['setPivotTable'](_0x1234cf,_0x536cfc,_0x463910,_0x5b9c4f){const _0x52616c=_0x472c5c;this[_0x52616c(0x2ab)](_0x1234cf,_0x536cfc,_0x463910,_0x5b9c4f);}[_0x472c5c(0x17d)](_0x2c3782,_0x423191,_0x5717b8){const _0x161841=_0x472c5c;var _0x268b34,_0x1d40d0;const _0x56877b=(_0x1d40d0=(_0x268b34=this[_0x161841(0x221)][_0x161841(0x1b7)](_0x2c3782))==null?void 0x0:_0x268b34[_0x161841(0x1b7)](_0x423191))==null?void 0x0:_0x1d40d0['get'](_0x5717b8);if(_0x56877b)return _0x56877b;}[_0x472c5c(0x1ca)](_0x596c70,_0x20990a,_0xe785ad){const _0x1aa4d8=_0x472c5c;var _0x4d8ff4,_0x123e26;const _0x3d6578=(_0x123e26=(_0x4d8ff4=this[_0x1aa4d8(0x221)]['get'](_0x596c70))==null?void 0x0:_0x4d8ff4[_0x1aa4d8(0x1b7)](_0x20990a))==null?void 0x0:_0x123e26[_0x1aa4d8(0x1b7)](_0xe785ad);if(_0x3d6578)return _0x3d6578[_0x1aa4d8(0x107)];}[_0x472c5c(0x2ca)](_0x575766){const _0x2798d8=_0x472c5c;return this[_0x2798d8(0xdd)][_0x2798d8(0x1b7)](_0x575766);}[_0x472c5c(0x2a0)](_0x54f538){const _0x441047=_0x472c5c;this[_0x441047(0x221)]['delete'](_0x54f538);const _0x39a9be=this[_0x441047(0x1b2)][_0x441047(0x1b7)](_0x54f538);_0x39a9be&&(_0x39a9be[_0x441047(0xf4)](),this[_0x441047(0x1b2)][_0x441047(0x1b4)](_0x54f538)),this[_0x441047(0xc8)][_0x441047(0x1b4)](_0x54f538),this['needSameDeleteModel'][_0x441047(0xaf)](_0x5c9779=>{const _0x4c27f7=_0x441047;_0x5c9779[_0x4c27f7(0x2a0)](_0x54f538);});}[_0x472c5c(0x2f2)](_0x1204d9,_0x4ccf26,_0x5c8488,_0x45f32b){const _0xb6d347=_0x472c5c;return this[_0xb6d347(0x266)](_0x5c8488[_0xb6d347(0x218)])[_0xb6d347(0x2f2)](_0x1204d9,_0x4ccf26,_0x5c8488,_0x45f32b);}['createCollectionWithDataRange'](_0x11ecf5){const _0x314e94=_0x472c5c;return this[_0x314e94(0x266)](_0x11ecf5['unitId'])['createCollectionWithDataRange'](_0x11ecf5);}[_0x472c5c(0x299)](_0x465618,_0x19e5d3,_0xc5f507){const _0x48253e=_0x472c5c;this[_0x48253e(0x266)](_0xc5f507[_0x48253e(0x218)])[_0x48253e(0x299)](_0x465618,_0x19e5d3,_0xc5f507);}[_0x472c5c(0x233)](_0x9f03a2,_0x2b72a7){const _0x499c0e=_0x472c5c;this[_0x499c0e(0x266)](_0x9f03a2)[_0x499c0e(0x82)](_0x2b72a7);}[_0x472c5c(0x18f)](_0x5f7899,_0x2c7139){this['getDataFieldManager'](_0x5f7899)['removeCollectionImp'](_0x2c7139);}[_0x472c5c(0x252)](_0x50bf5b,_0x180e14){const _0x2aafd2=_0x472c5c;var _0x43e570;return(_0x43e570=this[_0x2aafd2(0x221)][_0x2aafd2(0x1b7)](_0x50bf5b))==null?void 0x0:_0x43e570['get'](_0x180e14);}['getTargetByPivotId'](_0x499910){const _0x265a12=_0x472c5c;for(const [_0x1f6817,_0x7b168]of this[_0x265a12(0x221)][_0x265a12(0x196)]())for(const [_0x4427b9,_0x5a063e]of _0x7b168[_0x265a12(0x196)]())if(_0x5a063e[_0x265a12(0x155)](_0x499910))return{'unitId':_0x1f6817,'subUnitId':_0x4427b9};return null;}[_0x472c5c(0x1c0)](_0x35910b,_0x7185ef,_0x31853c,_0xdf346f){const _0x39ec8f=_0x472c5c,_0x34cdde=this[_0x39ec8f(0xcd)](_0x35910b,_0x7185ef);_0xdf346f?_0x34cdde['set'](_0x31853c,_0xdf346f):_0x34cdde[_0x39ec8f(0x1b4)](_0x31853c),this[_0x39ec8f(0x94)][_0x39ec8f(0x303)]({'unitId':_0x35910b,'subUnitId':_0x7185ef,'pivotTableId':_0x31853c});}[_0x472c5c(0xf4)](){super['dispose']();}[_0x472c5c(0x1e1)](_0x19da60,_0x1add9f,_0x20eaaf){const _0x149838=_0x472c5c;var _0x282670,_0x51c024;const _0x482585=(_0x51c024=(_0x282670=this[_0x149838(0xc8)][_0x149838(0x1b7)](_0x19da60))==null?void 0x0:_0x282670[_0x149838(0x1b7)](_0x1add9f))==null?void 0x0:_0x51c024['get'](_0x20eaaf);return _0x482585||null;}[_0x472c5c(0x10c)](_0x21d9e5){const _0x46894d=_0x472c5c;this[_0x46894d(0x20f)](_0x21d9e5);}[_0x472c5c(0x20f)](_0x16c925){const _0x16d6bd=_0x472c5c,{token:_0x109f48,unitId:_0x2b6528,subUnitId:_0x3b845f}=_0x16c925,_0x3c3bb3=_0x2b6528+'-'+_0x3b845f+'-'+_0x109f48;this[_0x16d6bd(0x124)][_0x16d6bd(0x1b7)](_0x3c3bb3)&&clearTimeout(this[_0x16d6bd(0x124)][_0x16d6bd(0x1b7)](_0x3c3bb3));const _0xdc0af=setTimeout(()=>{const _0x2727b7=_0x16d6bd;this['queryDirtyPivotTable'](_0x16c925),this[_0x2727b7(0x124)][_0x2727b7(0x1b4)](_0x3c3bb3);},Ti);this[_0x16d6bd(0x124)][_0x16d6bd(0x1d5)](_0x3c3bb3,_0xdc0af);}['queryDirtyPivotTable'](_0x4d3a33){const _0x3da71b=_0x472c5c,{unitId:_0x2fdc41,subUnitId:_0x3d1659,token:_0x532b57,type:_0x23048a,pivotConfig:_0x3ccc0f}=_0x4d3a33,_0x940a5d=this[_0x3da71b(0x2ca)](_0x532b57),_0x35a7d4=_0x940a5d==null?void 0x0:_0x940a5d[_0x3da71b(0x1d8)](),_0x27a0cf=_0x3ccc0f!=null?_0x3ccc0f:this['getPivotTableConfig'](_0x2fdc41,_0x3d1659,_0x532b57);_0x27a0cf&&(_0x27a0cf['isEmpty']=!!(_0x940a5d!=null&&_0x940a5d[_0x3da71b(0x229)]())),(_0x35a7d4||_0x23048a===j[_0x3da71b(0x2f1)])&&this[_0x3da71b(0xd2)](_0x2fdc41,_0x3d1659,_0x23048a,_0x532b57,_0x35a7d4,_0x27a0cf,this['getDataFieldManager'](_0x2fdc41)['toJSON']());}[_0x472c5c(0x9e)](_0x50ff3c){const _0x29269f=_0x472c5c,_0x47948e={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x29269f(0x266)](_0x50ff3c)&&(_0x47948e[_0x29269f(0x1f7)][_0x50ff3c]=this['getDataFieldManager'](_0x50ff3c)['toJSON']()),this['_model']['get'](_0x50ff3c)){_0x47948e[_0x29269f(0x2f5)][_0x50ff3c]={};const _0x1bcaf9=this['_model'][_0x29269f(0x1b7)](_0x50ff3c);_0x1bcaf9!=null&&_0x1bcaf9[_0x29269f(0x2e9)]&&[..._0x1bcaf9[_0x29269f(0x118)]()][_0x29269f(0xaf)](_0x445835=>{const _0x1317b7=_0x29269f,_0x2774df=_0x1bcaf9[_0x1317b7(0x1b7)](_0x445835);_0x2774df!=null&&_0x2774df[_0x1317b7(0x2e9)]&&(_0x47948e[_0x1317b7(0x2f5)][_0x50ff3c][_0x445835]={},[..._0x2774df[_0x1317b7(0x118)]()][_0x1317b7(0xaf)](_0x10802d=>{const _0x10f48e=_0x1317b7,_0x12296d=_0x2774df['get'](_0x10802d);_0x12296d&&(_0x47948e[_0x10f48e(0x2f5)][_0x50ff3c][_0x445835][_0x10802d]=_0x12296d);}));});}return _0x47948e;}[_0x472c5c(0xcf)](_0xfb1a0){const _0x4d0c16=_0x472c5c;var _0x209b87;const {dataFieldManagerConfig:_0x43fb22,pivotTableConfigs:_0x4c3e6e}=_0xfb1a0;_0x43fb22&&Object['keys'](_0x43fb22)[_0x4d0c16(0xaf)](_0x27ced0=>{const _0x447c25=_0x4d0c16;this[_0x447c25(0x266)](_0x27ced0)[_0x447c25(0xcf)](_0x43fb22[_0x27ced0]);});const _0x2f47d9=[];if(_0x4c3e6e){const _0x5d81b3=(_0x209b87=this[_0x4d0c16(0x305)][_0x4d0c16(0x1b7)](_0x165fcc)[_0x4d0c16(0x27c)](_0x6e1078))!=null?_0x209b87:{},{ls:_0x55f73a,pbk:_0x549a2c}=_0x5d81b3,_0x464d17=go(so,_0x55f73a,_0x549a2c)[_0x4d0c16(0x2a1)];Object[_0x4d0c16(0x118)](_0x4c3e6e)[_0x4d0c16(0xaf)](_0x3abd16=>{const _0x1b2edf=_0x4d0c16;let _0x388afa=0x0;const _0x470c6a=_0x4c3e6e[_0x3abd16];Object[_0x1b2edf(0x118)](_0x470c6a)[_0x1b2edf(0xaf)](_0x5cc7a0=>{const _0x2e31f6=_0x1b2edf,_0x56758=_0x470c6a[_0x5cc7a0];Object[_0x2e31f6(0x118)](_0x56758)[_0x2e31f6(0xaf)](_0x512475=>{const _0x485c43=_0x2e31f6,_0x34060d=_0x56758[_0x512475];if(_0x34060d){if(_0x388afa>=_0x464d17)return;_0x388afa++;const _0x3d9bdc=this[_0x485c43(0x266)](_0x3abd16),_0x12ee24=_0x3d9bdc[_0x485c43(0xa9)][_0x512475],_0x36c584=_0x12ee24[_0x485c43(0x183)]();let _0xc68acd=0x0;const _0x201837=[];for(const _0x1d162b of _0x36c584){const _0x1f0c66=_0x12ee24['getFieldById'](_0x1d162b);if(_0x26ba1b(_0x1f0c66)){const _0x380aba=_0x1f0c66[_0x485c43(0x21d)](),_0x2a97dd=_0x12ee24[_0x485c43(0x16d)](_0x380aba);_0x2a97dd&&_0x201837['push']([_0x1f0c66,_0x2a97dd]);continue;}_0x3d9bdc[_0x485c43(0x8e)](_0x1d162b,_0x34060d['sourceRangeInfo'],_0xc68acd),_0xc68acd++;}_0x201837['forEach'](([_0x255e9d,_0x14725e])=>{const _0x6bb476=_0x485c43;_0x255e9d[_0x6bb476(0x262)](_0x14725e);});const _0x4c5390=new _0x71cb7e(_0x12ee24);_0x4c5390[_0x485c43(0xcf)](_0x34060d['fieldsConfig']),this[_0x485c43(0x279)](_0x3abd16,_0x5cc7a0,_0x512475,_0x4c5390,_0x34060d);const _0x4bdff5=_0x4c5390['query']();_0x2f47d9[_0x485c43(0x2b1)]({'unitId':_0x3abd16,'subUnitId':_0x5cc7a0,'pivotTableId':_0x512475,'view':_0x4bdff5[_0x485c43(0x9e)](),'pivotConfig':_0x34060d,'type':j[_0x485c43(0x2d8)]});const _0x251a1f=!!_0x4c5390[_0x485c43(0x229)](),_0x42a159={'view':_0x4bdff5,'pivotTableId':_0x512475,'textInfo':this[_0x485c43(0x166)](),'isEmpty':_0x251a1f,'targetCellInfo':_0x34060d[_0x485c43(0x26a)]};this[_0x485c43(0x168)](_0x42a159,!0x1);}});});});}_0x43fb22&&Object[_0x4d0c16(0x118)](_0x43fb22)[_0x4d0c16(0xaf)](_0x49c58e=>{const _0xb63acf=_0x4d0c16,_0x5776a2=this[_0xb63acf(0x266)](_0x49c58e);this['_fieldsCollectionChange$']['next'](_0x5776a2[_0xb63acf(0xa9)]);}),this[_0x4d0c16(0x9a)][_0x4d0c16(0x22f)](Dt['id'],{'batch':_0x2f47d9,'collectionConfig':_0x43fb22},{'onlyLocal':!0x0});}['_initSnapshot'](){const _0x55fbc2=_0x472c5c;this[_0x55fbc2(0x286)](this[_0x55fbc2(0x19d)][_0x55fbc2(0x1a6)]({'toJson':_0x26e7e8=>JSON[_0x55fbc2(0x1ef)](this[_0x55fbc2(0x9e)](_0x26e7e8)),'parseJson':_0x309a4d=>{const _0x21f027=_0x55fbc2;if(!_0x309a4d)return{};try{return JSON[_0x21f027(0xf8)](_0x309a4d);}catch{return{};}},'businesses':[_0x5e6e00[_0x55fbc2(0x2e5)]],'pluginName':ao,'onLoad':(_0x8a39ab,_0x3a1f99)=>{const _0x48313e=_0x55fbc2;this[_0x48313e(0xcf)](_0x3a1f99);},'onUnLoad':_0x1386b1=>{const _0x46f07f=_0x55fbc2;this[_0x46f07f(0x2a0)](_0x1386b1);}}));}};$=Oi([nt(0x0,_0x3af2eb(_0x53b05b)),nt(0x1,_0xcf6c15),nt(0x2,_0x3af2eb(_0x3f998b)),nt(0x3,_0x88b8f4),nt(0x4,_0x3af2eb(_0x3b0e89))],$);const Ei={0x0:{0x0:{'v':'filter','s':oe}},0x2:{0x1:{'v':'','s':oe},0x2:{'v':'','s':oe},0x3:{'v':_0x472c5c(0x15f),'s':oe},0x4:{'v':'','s':oe},0x5:{'v':'','s':oe}},0x3:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x4:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x5:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x6:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x7:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x8:{0x0:{'v':_0x472c5c(0x2e1),'s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':_0x472c5c(0xa6),'s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0x9:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xa:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xb:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xc:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}},0xd:{0x0:{'v':'','s':oe},0x1:{'v':'','s':_},0x2:{'v':'','s':_},0x3:{'v':'','s':_},0x4:{'v':'','s':_},0x5:{'v':'','s':_}}},Bt={'rowRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x0,'endColumn':0x0}],'colRanges':[{'startRow':0x2,'endRow':0x2,'startColumn':0x1,'endColumn':0x5}],'dataRanges':[{'startRow':0x3,'endRow':0xd,'startColumn':0x1,'endColumn':0x5}],'pageRanges':[{'startRow':0x0,'endRow':0x0,'startColumn':0x0,'endColumn':0x0}],'cornerRanges':[]},Xo=(_0x3cd995,_0x1f734a)=>{const _0x2e9adb=_0x472c5c,_0x40456d=new _0x38f0b5(),_0x111315=new _0x38f0b5(Ei),{row:_0x1f121c,col:_0x5c6e68}=_0x1f734a;_0x111315[_0x2e9adb(0x1c7)]((_0x2cfe07,_0x333ab3,_0x49e22e)=>{const _0x54c49f=_0x2e9adb;let _0x175671='';_0x49e22e['v']==='filter'?_0x175671=_0x3cd995['filter']:_0x49e22e['v']===_0x54c49f(0x2e1)?_0x175671=_0x3cd995[_0x54c49f(0x2e1)]:_0x49e22e['v']===_0x54c49f(0x15f)?_0x175671=_0x3cd995[_0x54c49f(0x15f)]:_0x49e22e['v']==='values'&&(_0x175671=_0x3cd995[_0x54c49f(0xa6)]),_0x40456d[_0x54c49f(0xdc)](_0x2cfe07+_0x1f121c,_0x333ab3+_0x5c6e68,{..._0x49e22e,'v':_0x175671});});const _0x41dbd1=_0x4dd2cd[_0x2e9adb(0x140)](Bt);return Object['keys'](Bt)[_0x2e9adb(0xaf)](_0x37da7c=>{const _0x3a279a=_0x2e9adb;_0x41dbd1[_0x37da7c]=Bt[_0x37da7c]['map'](_0x2d5ba1=>({..._0x2d5ba1,'startRow':_0x2d5ba1[_0x3a279a(0x157)]+_0x1f121c,'endRow':_0x2d5ba1[_0x3a279a(0x2c9)]+_0x1f121c,'startColumn':_0x2d5ba1[_0x3a279a(0x24c)]+_0x5c6e68,'endColumn':_0x2d5ba1[_0x3a279a(0xfc)]+_0x5c6e68}));}),{'matrixCache':_0x40456d,'rangesCache':_0x41dbd1};};function Ai(_0x3b890b,_0x32ac58){const _0x2d277e=_0x472c5c;let _0x2c378f='';const _0x5c52a5=this[_0x2d277e(0x166)]();switch(_0x32ac58){case _0x45d1a0[_0x2d277e(0x1ad)]:_0x2c378f=_0x5c52a5[_0x2d277e(0x2f6)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x2a1)]:_0x2c378f=_0x5c52a5['sheets-pivot.countName']+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x1c5)]:_0x2c378f=_0x5c52a5[_0x2d277e(0xa0)]+_0x3b890b;break;case _0x45d1a0['max']:_0x2c378f=_0x5c52a5[_0x2d277e(0x2f9)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x269)]:_0x2c378f=_0x5c52a5[_0x2d277e(0x210)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x2d5)]:_0x2c378f=_0x5c52a5[_0x2d277e(0x17b)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x27b)]:_0x2c378f=_0x5c52a5['sheets-pivot.stdDevName']+_0x3b890b;break;case _0x45d1a0['stdDevp']:_0x2c378f=_0x5c52a5[_0x2d277e(0xc5)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x244)]:_0x2c378f=_0x5c52a5[_0x2d277e(0x2a8)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x1bd)]:_0x2c378f=_0x5c52a5[_0x2d277e(0x144)]+_0x3b890b;break;case _0x45d1a0[_0x2d277e(0x240)]:_0x2c378f=_0x5c52a5['sheets-pivot.varpName']+_0x3b890b;break;default:_0x2c378f=_0x3b890b;break;}return _0x2c378f;}function ki(_0x35933e,_0x3508fc,_0x2fbe1f,_0x27f14f,_0x13a363){const _0x4ed47d=_0x472c5c;var _0x30c54d,_0x3433d4,_0x5a11e6,_0x56533,_0x3da938;const _0x4aa0cb=_0x452af2(_0x35933e,_0x3508fc),{rangesInfo:_0x12dcaa,areaInfo:_0x16bf65,headerMap:_0x3d68a9}=_0x13a363;if(!_0x12dcaa||!_0x16bf65||!_0x3d68a9)return;const _0x282d46=Object['keys'](_0x12dcaa)[_0x4ed47d(0xb0)](_0x33dd86=>_0x12dcaa[_0x33dd86]['some'](_0x364b86=>_0x2776bf['contains'](_0x364b86,_0x4aa0cb))),_0x2a66b2=_0x16bf65;let _0xc11404,_0xd1e340,_0x45c64e;if(_0x282d46===_0x4ed47d(0x2f8))_0xc11404=(_0x30c54d=_0x2a66b2==null?void 0x0:_0x2a66b2[_0x4ed47d(0x17c)])==null?void 0x0:_0x30c54d[_0x35933e],_0xd1e340=(_0x3433d4=_0x3d68a9==null?void 0x0:_0x3d68a9[_0x4ed47d(0x1a2)])==null?void 0x0:_0x3433d4[_0x3508fc],_0x45c64e=_0xd1e340==null?void 0x0:_0xd1e340['tableFieldId'];else{if(_0x282d46==='colRanges')_0xc11404=(_0x5a11e6=_0x2a66b2==null?void 0x0:_0x2a66b2[_0x4ed47d(0x147)])==null?void 0x0:_0x5a11e6[_0x3508fc],_0xd1e340=(_0x56533=_0x3d68a9[_0x4ed47d(0xc9)])==null?void 0x0:_0x56533[_0x35933e+0x1+_0x3508fc-_0x12dcaa[_0x4ed47d(0x22d)][0x0]['startColumn']],_0x45c64e=_0xd1e340==null?void 0x0:_0xd1e340['tableFieldId'];else{if(_0x282d46===_0x4ed47d(0x141))_0xc11404=(_0x3da938=_0x2a66b2==null?void 0x0:_0x2a66b2['cornerInfo'])==null?void 0x0:_0x3da938[_0x3508fc],_0x45c64e=_0xc11404==null?void 0x0:_0xc11404[_0x4ed47d(0x227)];else{if(_0x282d46===_0x4ed47d(0x19c)){const _0x5640c4=_0x2fbe1f==null?void 0x0:_0x2fbe1f['fi'];_0x5640c4!==void 0x0&&(_0x45c64e=_0x27f14f[_0x4ed47d(0xd5)](_0x5640c4));}}}}return{'filterId':_0x45c64e,'info':_0xc11404,'data':_0x2fbe1f,'headerInfo':_0xd1e340};}function Li(_0x9c784c,_0x1cde22,_0x20325c){const _0x51f43c=_0x472c5c,_0x1fc4ae=_0x9c784c[_0x51f43c(0x193)],_0x43380d=_0x1fc4ae[_0x51f43c(0x183)](),_0x1fb5a4=new Set();_0x9c784c[_0x51f43c(0x11e)](_0xfdd96c=>{const _0x5a63bd=_0x51f43c;_0x1fb5a4[_0x5a63bd(0x2f0)](_0xfdd96c['dataFieldId']);});const _0x4abd4d=_0x43380d[_0x51f43c(0xff)](_0x6bbf29=>{const _0x48ea6a=_0x51f43c,_0x2a3e37=_0x1fc4ae['getFieldById'](_0x6bbf29);return{'checked':_0x1fb5a4[_0x48ea6a(0x155)](_0x6bbf29),'dataFieldId':_0x2a3e37['id'],'id':_0x2a3e37['id'],'name':_0x1fc4ae[_0x48ea6a(0x2e8)](_0x2a3e37['id']),'type':_0x2a3e37[_0x48ea6a(0xe4)](),'pivotTableId':_0x1cde22};}),_0x1a781e=[];_0x9c784c['iterateFieldByArea'](_0x41d892[_0x51f43c(0x2f7)],_0x43ea13=>{const _0xea54d5=_0x51f43c;_0x1a781e['push']({'dataFieldId':_0x43ea13['dataFieldId'],'tableFieldId':_0x43ea13[_0xea54d5(0x21f)](),'displayName':_0x43ea13[_0xea54d5(0x2e8)]()});});const _0x4c0d98=[];_0x9c784c[_0x51f43c(0x28a)](_0x41d892[_0x51f43c(0x249)],_0x1e64a2=>{const _0x45bcca=_0x51f43c;_0x4c0d98[_0x45bcca(0x2b1)]({'dataFieldId':_0x1e64a2[_0x45bcca(0x123)],'tableFieldId':_0x1e64a2[_0x45bcca(0x21f)](),'displayName':_0x1e64a2[_0x45bcca(0x2e8)]()});});const _0xb62623=[];if(_0x9c784c[_0x51f43c(0x28a)](_0x41d892['Value'],_0x137e32=>{const _0x438a8f=_0x51f43c;_0xb62623[_0x438a8f(0x2b1)]({'dataFieldId':_0x137e32['dataFieldId'],'tableFieldId':_0x137e32['getId'](),'displayName':_0x137e32[_0x438a8f(0x2e8)](),'format':_0x137e32['getFormat'](),'subTotalType':_0x137e32[_0x438a8f(0x12c)]()});}),_0xb62623[_0x51f43c(0x238)]>0x1){const _0x4c12b9=_0x9c784c['getValueIndex']();(_0x9c784c[_0x51f43c(0xa2)]()?_0x4c0d98:_0x1a781e)[_0x51f43c(0x1e7)](_0x4c12b9,0x0,{'dataFieldId':'','tableFieldId':_0x51f43c(0x1df),'displayName':_0x51f43c(0x1c1)});}const _0x6d7b26=[];_0x9c784c['iterateFieldByArea'](_0x41d892[_0x51f43c(0xc6)],_0x996db9=>{const _0x538da7=_0x51f43c;_0x6d7b26[_0x538da7(0x2b1)]({'dataFieldId':_0x996db9['dataFieldId'],'tableFieldId':_0x996db9['getId'](),'displayName':_0x996db9[_0x538da7(0x2e8)]()});});const _0xda30a7=_0x20325c[_0x51f43c(0xde)];return{'sourceList':_0x4abd4d,'sourceRange':_0xda30a7,'rowFields':_0x1a781e,'columnFields':_0x4c0d98,'valueFields':_0xb62623,'filterFields':_0x6d7b26,'positionInfo':_0x20325c[_0x51f43c(0x26a)]};}function fo(_0x57e9c0,_0xa3fc90,_0x35e45b='',_0xc24537={}){const _0x3b2f6b=_0x472c5c,_0xf4bddf=_0x57e9c0[_0x3b2f6b(0x1b7)](_0x175f03);for(const _0x140c26 in _0xa3fc90)if(Object[_0x3b2f6b(0x19a)]['hasOwnProperty'][_0x3b2f6b(0x25f)](_0xa3fc90,_0x140c26)){const _0x25da8b=_0x35e45b?_0x35e45b+'.'+_0x140c26:_0x140c26;typeof _0xa3fc90[_0x140c26]==_0x3b2f6b(0xca)&&_0xa3fc90[_0x140c26]!==null&&!Array[_0x3b2f6b(0x297)](_0xa3fc90[_0x140c26])?fo(_0x57e9c0,_0xa3fc90[_0x140c26],_0x25da8b,_0xc24537):_0xc24537[_0x25da8b]=_0xf4bddf['t'](_0x25da8b);}return _0xc24537;}const jt=_0x11cd5a=>{const _0x4ce3c1=_0x472c5c;if(!_0x11cd5a)return[];const {rowRanges:_0x1ca92e,colRanges:_0x2df09f,cornerRanges:_0x3a0860,dataRanges:_0x19c14f,pageRanges:_0x49270b}=_0x11cd5a,_0x32b837=[..._0x2df09f,..._0x1ca92e,..._0x19c14f,..._0x3a0860][_0x4ce3c1(0x1e2)](_0xb3f9bf=>_0xb3f9bf[_0x4ce3c1(0x157)]>=0x0&&_0xb3f9bf[_0x4ce3c1(0x24c)]>=0x0&&_0xb3f9bf[_0x4ce3c1(0x2c9)]>=0x0&&_0xb3f9bf[_0x4ce3c1(0xfc)]>=0x0);let _0x19d77e=Number[_0x4ce3c1(0x200)],_0x52fd4d=Number['MIN_SAFE_INTEGER'],_0x29c677=Number[_0x4ce3c1(0x200)],_0x3bd48b=Number[_0x4ce3c1(0x171)];for(let _0x4a53b3=0x0;_0x4a53b3<_0x32b837[_0x4ce3c1(0x238)];_0x4a53b3++)_0x19d77e=Math['min'](_0x19d77e,_0x32b837[_0x4a53b3]['startRow']),_0x52fd4d=Math[_0x4ce3c1(0x29d)](_0x52fd4d,_0x32b837[_0x4a53b3][_0x4ce3c1(0x2c9)]),_0x29c677=Math[_0x4ce3c1(0x269)](_0x29c677,_0x32b837[_0x4a53b3][_0x4ce3c1(0x24c)]),_0x3bd48b=Math[_0x4ce3c1(0x29d)](_0x3bd48b,_0x32b837[_0x4a53b3][_0x4ce3c1(0xfc)]);return[..._0x49270b,{'startRow':_0x19d77e,'endRow':_0x52fd4d,'startColumn':_0x29c677,'endColumn':_0x3bd48b}];};function Bi(_0xe5720f,_0x48b54d){const _0x9cb684=_0x472c5c,_0x46b3f5=_0x48b54d[_0x9cb684(0xbd)][_0x9cb684(0x1cd)],{pivotTableId:_0x5d64fe,unitId:_0xdb5288,subUnitId:_0x457312}=_0x48b54d;if(!_0x46b3f5)return;const _0x30938b=_0xe5720f[_0x9cb684(0x1b7)]($),_0x3ac5d9=_0x30938b['getPivotTableInstance'](_0x5d64fe),_0x370f69=_0x30938b[_0x9cb684(0x17d)](_0xdb5288,_0x457312,_0x5d64fe);if(!_0x3ac5d9||!_0x370f69)return;const _0x2261b9=_0x3ac5d9[_0x9cb684(0x2d1)](_0x46b3f5[_0x9cb684(0x2ba)]);if(!(_0x2261b9!=null&&_0x2261b9[_0x9cb684(0x238)]))return;const _0x2609fb=_0x370f69[_0x9cb684(0xde)],{unitId:_0x3c8f20,subUnitId:_0x2e1587,range:_0x5d6e08}=_0x2609fb;let _0x236cf3=0x0;const _0xa3697=_0x3ac5d9[_0x9cb684(0x193)]['getFieldIds']()['reduce']((_0x8db14f,_0x499732)=>{const _0x266041=_0x9cb684;var _0x155aed;const _0x5d8d37=(_0x155aed=_0x3ac5d9[_0x266041(0x1b1)](_0x499732))==null?void 0x0:_0x155aed[_0x266041(0xd1)]();return _0x5d8d37&&(_0x8db14f[String(_0x236cf3)]=_0x5d8d37),_0x236cf3++,_0x8db14f;},{});return{'indexes':_0x2261b9,'range':_0x5d6e08,'sourceUnitId':_0x3c8f20,'sourceSubUnitId':_0x2e1587,'formatMap':_0xa3697};}function Ko(_0x5f26b0,_0x38da10){const _0x1dc82e=_0x472c5c;if(!_0x5f26b0||!_0x38da10)return!0x0;const _0x8e1ee8=_0x295a33(Go,Wo),_0x15d5e2=new Function(_0x1dc82e(0xb8)+_0x8e1ee8)()(_0x5f26b0,_0x38da10)[_0x1dc82e(0x22a)],_0x1c2f16=_0x148e9f(_0x15d5e2,'sf',Lo);return!((_0x15d5e2==null?void 0x0:_0x15d5e2['rt'])===_0x54e6e6[_0x1dc82e(0x2a9)]&&!_0x1c2f16);}function go(_0x1ea9f1,_0x21ee6c,_0x35a294){const _0x3d647b=_0x472c5c,_0x36381b={'count':_0x1ea9f1,'timeValid':!0x1};if(!_0x21ee6c||!_0x35a294)return _0x36381b;const _0x2aae5b=_0x295a33(Go,Wo),_0x39f578=new Function(_0x3d647b(0xb8)+_0x2aae5b)()(_0x21ee6c,_0x35a294);if(_0x39f578!=null&&_0x39f578[_0x3d647b(0x222)]){const _0x20ce1c=_0x39f578[_0x3d647b(0x22a)],_0x391ad4=_0x148e9f(_0x20ce1c,'sf',Lo);return{'count':_0x2ef263(_0x20ce1c,_0x391ad4,'ptn',_0x1ea9f1,_0x1ea9f1,0x0),'timeValid':_0x391ad4};}return _0x36381b;}function Ho(_0x5edbf8,_0x60db9f,_0x4791f5,_0x4d1ff0){const _0x3373da=_0x472c5c,_0x31944f={'subUnitId':_0x4791f5,'unitId':_0x60db9f,'cellValue':_0x2574c5(_0x4d1ff0)},_0x172c93=_0x12faf4(_0x5edbf8,_0x31944f);let _0x5105e9=!0x1;return new _0x38f0b5(_0x172c93[_0x3373da(0x27a)])['forValue']((_0x9e194b,_0x4f5445,_0x4da926)=>{const _0x57db0a=_0x3373da;if(!_0x5105e9&&_0x4da926&&(_0x4da926[_0x57db0a(0xc1)]||_0x4da926['f']||_0x4da926['p']||_0x4da926['s']||_0x4da926['si']||_0x4da926['t']||_0x4da926['v']))return _0x5105e9=!0x0,!0x1;}),{'setRangeValueUndoMutation':{'id':_0x4789aa['id'],'params':_0x172c93},'setRangeValueRedoMutation':{'id':_0x4789aa['id'],'params':_0x31944f},'shouldClear':_0x5105e9};}function ji(_0x5d482e){const {row:_0x23a06c,col:_0x36c80a}=_0x5d482e,_0x58f87f={'startRow':_0x23a06c,'endRow':_0x23a06c,'startColumn':_0x36c80a,'endColumn':_0x36c80a},_0x23ac94={'startRow':_0x23a06c+0x2,'endRow':_0x23a06c+0xe,'startColumn':_0x36c80a,'endColumn':_0x36c80a+0x6};return[_0x58f87f,_0x23ac94];}function $i(_0x3facf6,_0x46fedb,_0x13cdc2){const _0x42edde=_0x472c5c,{cornerView:_0x1b22fe,rowView:_0x3121bb,colView:_0x1bf74a,pageView:_0x63ad5f}=_0x3facf6,{row:_0x155c54,col:_0x11e869}=_0x46fedb;if(_0x13cdc2)return{'rowCount':bi+_0x155c54,'colCount':Si+_0x11e869};const _0x18e679=_0x63ad5f[_0x42edde(0x203)]>-0x1?_0x63ad5f[_0x42edde(0x203)]+0x1:0x0,_0x39f873=_0x63ad5f[_0x42edde(0x23d)]>-0x1?_0x63ad5f[_0x42edde(0x23d)]:0x0,_0x5356a9=_0x155c54+_0x18e679+(_0x18e679?0x1:0x0)+_0x1b22fe[_0x42edde(0xf1)]+_0x3121bb['rowCount'],_0xd1b85a=_0x11e869+_0x39f873,_0x138456=_0x11e869+_0x1b22fe['colCount']+_0x1bf74a['colCount'],_0x2e001f=Math[_0x42edde(0x29d)](_0xd1b85a,_0x138456);return{'rowCount':_0x5356a9,'colCount':_0x2e001f};}function we(_0x39752b,_0x5c13f4,_0x55fd6e,_0x52394e){const _0x18096f=_0x472c5c,{row:_0x1e1dca,col:_0x26f017,unitId:_0x2972c4,subUnitId:_0x4f389e}=_0x55fd6e,_0x537aed=$i(_0x5c13f4,{'row':_0x1e1dca,'col':_0x26f017},_0x52394e),_0x49a303=_0x39752b['get'](_0xcf6c15),_0x40c417=_0x337b5a(_0x49a303,{'unitId':_0x2972c4,'subUnitId':_0x4f389e}),_0x3b32de=[],_0xae966b=[];if(!_0x40c417)return{'undos':_0xae966b,'redos':_0x3b32de};const {worksheet:_0x56c65d}=_0x40c417,_0x411f07=_0x56c65d['getRowCount'](),_0x48925d=_0x56c65d[_0x18096f(0x230)]();return _0x411f07<_0x537aed[_0x18096f(0xf1)]&&(_0x3b32de[_0x18096f(0x2b1)]({'id':_0x138e61['id'],'params':{'unitId':_0x2972c4,'subUnitId':_0x4f389e,'range':{'startRow':_0x411f07,'endRow':_0x537aed['rowCount']-0x1,'startColumn':0x0,'endColumn':_0x48925d-0x1}}}),_0xae966b[_0x18096f(0x2b1)]({'id':_0x4c5aa7['id'],'params':{'unitId':_0x2972c4,'subUnitId':_0x4f389e,'range':{'startRow':_0x411f07,'endRow':_0x537aed[_0x18096f(0xf1)]-0x1,'startColumn':0x0,'endColumn':_0x48925d-0x1}}})),_0x48925d<_0x537aed['colCount']&&(_0x3b32de[_0x18096f(0x2b1)]({'id':_0x14c815['id'],'params':{'unitId':_0x2972c4,'subUnitId':_0x4f389e,'range':{'startRow':0x0,'endRow':_0x411f07-0x1,'startColumn':_0x48925d,'endColumn':_0x537aed[_0x18096f(0x2ef)]-0x1}}}),_0xae966b[_0x18096f(0x2b1)]({'id':_0x452f54['id'],'params':{'unitId':_0x2972c4,'subUnitId':_0x4f389e,'range':{'startRow':0x0,'endRow':_0x411f07-0x1,'startColumn':_0x48925d,'endColumn':_0x537aed[_0x18096f(0x2ef)]-0x1}}})),{'undos':_0xae966b,'redos':_0x3b32de};}function Ji(_0x44dfbd){const _0x488087=_0x472c5c;let _0x356047=0x0;for(let _0x23aa13=0x0;_0x23aa13<_0x44dfbd[_0x488087(0x238)];_0x23aa13++){const _0x3fc318=_0x44dfbd[_0x488087(0x214)](_0x23aa13);_0x3fc318>=0x4e00&&_0x3fc318<=0x9fff||_0x3fc318>=0x3000&&_0x3fc318<=0x303f||_0x3fc318>=0xff00&&_0x3fc318<=0xffef?_0x356047+=0x2:_0x356047+=0x1;}return _0x356047;}function yo(_0x5a7760,_0x3e6722,_0x4e7772,_0xa83c48){const _0x470010=_0x472c5c;var _0x5a4b60,_0x23b231,_0x22ecb7,_0x4614d7;const {rowCount:_0x140648,colCount:_0x501a30,headerMap:_0x4a9b58}=_0x5a7760,_0x3f6e3a=0x64,_0x219fdc=Math[_0x470010(0x269)](_0x140648,_0x3f6e3a),_0x283e3b=Math[_0x470010(0x269)](_0x501a30,_0x3f6e3a);let _0x2896b5='',_0x14673b=0x0;for(let _0x4ba44f=0x0;_0x4ba44f<_0x219fdc;_0x4ba44f++)for(let _0x2ed7c9=0x0;_0x2ed7c9<_0x283e3b;_0x2ed7c9++){const _0x2a12af={...(_0x23b231=(_0x5a4b60=_0x5a7760[_0x470010(0x276)])==null?void 0x0:_0x5a4b60[_0x4ba44f])==null?void 0x0:_0x23b231[_0x2ed7c9]},_0x1eb3e3=(_0x22ecb7=_0x4a9b58[_0x4ba44f])==null?void 0x0:_0x22ecb7[_0x470010(0x227)],_0x1fe808=_0xa83c48[_0x1eb3e3];let _0x40ec22=_0x5a7760[_0x470010(0x187)](_0x4ba44f,_0x2ed7c9);if(_0x2a12af){const _0x2480c9=_0x4e7772?_0x2ed7c9===0x0&&((_0x4614d7=_0x5a7760['getHeaderMapItem'](_0x2ed7c9+0x1))==null?void 0x0:_0x4614d7[_0x470010(0x22e)]):!0x1;_0x40ec22=vt(_0x2a12af,_0x2480c9,_0x1fe808,_0x3e6722);}if(_0x40ec22!==void 0x0){const _0x5b7d2b=Ji(String(_0x40ec22));_0x14673b<_0x5b7d2b&&(_0x2896b5=String(_0x40ec22),_0x14673b=_0x5b7d2b);}}return _0x2896b5;}function Wi(_0xa51c5d){const _0x48ad0d=_0x472c5c,{rowCount:_0xd5061e,colCount:_0x376be3}=_0xa51c5d;let _0x448699='',_0x45867d=0x0;for(let _0x527592=_0xd5061e-0x1;_0x527592>0x0&&_0x527592>_0xd5061e-0x3;_0x527592--)for(let _0x2ee941=0x0;_0x2ee941<_0x376be3;_0x2ee941++){const _0x3d88dc=_0xa51c5d[_0x48ad0d(0x187)](_0x527592,_0x2ee941);if(_0x3d88dc!==void 0x0){const _0x4911fa=String(_0x3d88dc)['length'];_0x45867d<_0x4911fa&&(_0x448699=String(_0x3d88dc),_0x45867d=_0x4911fa);}}return _0x448699;}function Gi(_0x1458a7){const _0x4d5944=_0x472c5c,{rowCount:_0x50c1f0,colCount:_0x505fbc}=_0x1458a7;let _0x389421='',_0x39e4b7=0x0;for(let _0x5aad2e=0x0;_0x5aad2e<_0x50c1f0;_0x5aad2e++)for(let _0x3a610d=0x0;_0x3a610d<_0x505fbc;_0x3a610d++){const _0x144873=_0x1458a7[_0x4d5944(0x187)](_0x5aad2e,_0x3a610d);if(_0x144873!==void 0x0){const _0x19ae14=String(_0x144873)[_0x4d5944(0x238)];_0x39e4b7<_0x19ae14&&(_0x389421=String(_0x144873),_0x39e4b7=_0x19ae14);}}return _0x389421;}function Xi(_0xb92356,_0x4cb87c){const _0x4a78de=_0x472c5c,{rowFields:_0x438c03,columnFields:_0x12a480,valueFields:_0x5eae57,filterFields:_0x2099be,dimension:_0x23fd46,measure:_0x17a018}=_0x4cb87c;for(const _0x53facc of _0x438c03){const _0x2491ac=_0x23fd46[_0x53facc];_0x2491ac&&_0xb92356[_0x4a78de(0x1b1)](_0x2491ac[_0x4a78de(0x123)])&&(_0xb92356[_0x4a78de(0x18b)](_0x2491ac[_0x4a78de(0x123)],_0x41d892[_0x4a78de(0x2f7)],void 0x0,_0x53facc),_0x2491ac['displayName']&&_0xb92356[_0x4a78de(0x206)](_0x2491ac['id'],_0x2491ac[_0x4a78de(0xb2)]),_0x2491ac[_0x4a78de(0x2b9)]&&_0xb92356[_0x4a78de(0x2b7)](_0x2491ac['id'],_0x2491ac[_0x4a78de(0x2b9)]),_0x2491ac['filterInfo']&&_0xb92356[_0x4a78de(0x2eb)](_0x2491ac['id'],_0x2491ac[_0x4a78de(0x143)]));}for(const _0x21727c of _0x12a480){const _0x3bbec5=_0x23fd46[_0x21727c];_0x3bbec5&&_0xb92356[_0x4a78de(0x1b1)](_0x3bbec5['dataFieldId'])&&(_0xb92356['addFieldWithSourceId'](_0x3bbec5['dataFieldId'],_0x41d892['Column'],void 0x0,_0x21727c),_0x3bbec5[_0x4a78de(0x2b9)]&&_0xb92356[_0x4a78de(0x2b7)](_0x3bbec5['id'],_0x3bbec5[_0x4a78de(0x2b9)]),_0x3bbec5[_0x4a78de(0x143)]&&_0xb92356[_0x4a78de(0x2eb)](_0x3bbec5['id'],_0x3bbec5[_0x4a78de(0x143)]),_0x3bbec5['displayName']&&_0xb92356[_0x4a78de(0x206)](_0x3bbec5['id'],_0x3bbec5[_0x4a78de(0xb2)]));}for(const _0xbd9011 of _0x2099be){const _0x1d5ec9=_0x23fd46[_0xbd9011];_0x1d5ec9&&_0xb92356[_0x4a78de(0x1b1)](_0x1d5ec9[_0x4a78de(0x123)])&&(_0xb92356[_0x4a78de(0x18b)](_0x1d5ec9['dataFieldId'],_0x41d892[_0x4a78de(0xc6)],void 0x0,_0xbd9011),_0x1d5ec9['sortInfo']&&_0xb92356[_0x4a78de(0x2b7)](_0x1d5ec9['id'],_0x1d5ec9[_0x4a78de(0x2b9)]),_0x1d5ec9[_0x4a78de(0x143)]&&_0xb92356['setLabelFilterInfo'](_0x1d5ec9['id'],_0x1d5ec9[_0x4a78de(0x143)]),_0x1d5ec9[_0x4a78de(0xb2)]&&_0xb92356['renameField'](_0x1d5ec9['id'],_0x1d5ec9[_0x4a78de(0xb2)]));}for(const _0x224637 of _0x5eae57){const _0x4a0ca5=_0x17a018[_0x224637];_0x4a0ca5&&_0xb92356['getDataFieldByDataFieldId'](_0x4a0ca5[_0x4a78de(0x123)])&&(_0xb92356['addFieldWithSourceId'](_0x4a0ca5[_0x4a78de(0x123)],_0x41d892[_0x4a78de(0x192)],void 0x0,_0x224637),_0x4a0ca5['subtotal']!==void 0x0&&_0xb92356[_0x4a78de(0xe2)](_0x224637,_0x4a0ca5[_0x4a78de(0x114)]),_0x4a0ca5[_0x4a78de(0x2b2)]&&_0xb92356['setFieldFormat'](_0x224637,_0x4a0ca5[_0x4a78de(0x2b2)]),_0x4a0ca5[_0x4a78de(0xb2)]&&_0xb92356['renameField'](_0x4a0ca5['id'],_0x4a0ca5['displayName']));}const _0x572a5c=_0x4cb87c[_0x4a78de(0x145)];for(const {fieldId:_0x362e99,filterInfo:_0x231720}of _0x572a5c)_0xb92356[_0x4a78de(0x2fe)](_0x362e99,_0x231720);}function Ki(_0x14d695,_0x14601a){const _0x59d367=_0x472c5c,_0x525174=[];_0x14601a===_0x41d892[_0x59d367(0x2f7)]&&_0x14d695[_0x59d367(0x28a)](_0x41d892[_0x59d367(0x2f7)],_0x1e08c5=>{const _0x474f35=_0x59d367;_0x525174[_0x474f35(0x2b1)](_0x1e08c5[_0x474f35(0x21f)]());}),_0x14601a===_0x41d892[_0x59d367(0x249)]&&_0x14d695[_0x59d367(0x28a)](_0x41d892[_0x59d367(0x249)],_0x562086=>{const _0x5dadb2=_0x59d367;_0x525174[_0x5dadb2(0x2b1)](_0x562086[_0x5dadb2(0x21f)]());}),_0x14601a===_0x41d892[_0x59d367(0xc6)]&&_0x14d695[_0x59d367(0x28a)](_0x41d892[_0x59d367(0xc6)],_0x304a3e=>{const _0x4d17a4=_0x59d367;_0x525174['push'](_0x304a3e[_0x4d17a4(0x21f)]());}),_0x14601a===_0x41d892[_0x59d367(0x192)]&&_0x14d695[_0x59d367(0x28a)](_0x41d892[_0x59d367(0x192)],_0x4df3f5=>{const _0xc2475d=_0x59d367;_0x525174['push'](_0x4df3f5[_0xc2475d(0x21f)]());}),_0x14601a===void 0x0&&_0x14d695[_0x59d367(0x11e)](_0x51737c=>{const _0x431308=_0x59d367;_0x525174[_0x431308(0x2b1)](_0x51737c[_0x431308(0x21f)]());});const _0x350289=_0x525174[_0x59d367(0x238)];for(let _0x5f1396=_0x350289-0x1;_0x5f1396>=0x0;_0x5f1396--)_0x14d695[_0x59d367(0x11b)](_0x525174[_0x5f1396]);const _0x4322ce=_0x14d695[_0x59d367(0x281)]();for(const _0x242cd8 in _0x4322ce)_0x14d695[_0x59d367(0xc0)](_0x242cd8);}function Hi(_0x350e0b,_0x18496f){const _0x41092c=_0x472c5c,_0x5e9aa1=new Date(_0x19f4b5(_0x18496f)),_0x1d1f23=new Date(_0x19f4b5(_0x350e0b)),_0x4cfcb3=_0x5e9aa1[_0x41092c(0x2e6)](),_0x53743e=_0x1d1f23[_0x41092c(0x2e6)](),_0x1420d7=_0x5e9aa1[_0x41092c(0x9c)](),_0x281d24=_0x1d1f23['getMonth'](),_0x550605=_0x5e9aa1[_0x41092c(0x268)](),_0x382801=_0x1d1f23[_0x41092c(0x268)](),_0x5226fd=_0x4cfcb3===_0x53743e,_0x103f86=_0x5226fd&&_0x1420d7===_0x281d24;return _0x5226fd&&_0x103f86&&!(_0x103f86&&_0x550605===_0x382801)?_0x59dfa7[_0x41092c(0x2c4)]:_0x5226fd&&!_0x103f86?_0x59dfa7['YearMonth']:_0x59dfa7[_0x41092c(0x2d2)];}function qo(_0x393820,_0x1a71de){const _0x48fe7f=_0x472c5c,_0x28464a=_0x393820['get']($)[_0x48fe7f(0x166)]();let _0x48e776='';switch(_0x1a71de){case _0x59dfa7[_0x48fe7f(0x2c4)]:_0x48e776=_0x28464a[_0x48fe7f(0x2fa)];break;case _0x59dfa7[_0x48fe7f(0x85)]:_0x48e776=_0x28464a[_0x48fe7f(0x2bb)];break;case _0x59dfa7['Year']:_0x48e776=_0x28464a[_0x48fe7f(0x10e)];break;case _0x59dfa7[_0x48fe7f(0x2ff)]:_0x48e776=_0x28464a[_0x48fe7f(0x16a)];break;case _0x59dfa7['Quarter']:_0x48e776=_0x28464a[_0x48fe7f(0xb3)];break;case _0x59dfa7[_0x48fe7f(0x1fb)]:_0x48e776=_0x28464a[_0x48fe7f(0x2b8)];break;case _0x59dfa7['HourMinute']:_0x48e776=_0x28464a[_0x48fe7f(0x173)];break;case _0x59dfa7[_0x48fe7f(0xe1)]:_0x48e776=_0x28464a[_0x48fe7f(0xa3)];break;case _0x59dfa7['Minute']:_0x48e776=_0x28464a[_0x48fe7f(0x1d2)];break;case _0x59dfa7[_0x48fe7f(0x153)]:_0x48e776=_0x28464a[_0x48fe7f(0xb7)];break;case _0x59dfa7['YearQuarter']:_0x48e776=_0x28464a[_0x48fe7f(0x295)];break;default:_0x48e776='';break;}return _0x48e776;}const zo=_0x472c5c(0x176),Mo={};var qi=Object[_0x472c5c(0x13d)],zi=(_0x58a88d,_0x99d00a,_0x365d62,_0x183d98)=>{const _0x4df201=_0x472c5c;for(var _0x428b0b=_0x183d98>0x1?void 0x0:_0x183d98?qi(_0x99d00a,_0x365d62):_0x99d00a,_0x3200c7=_0x58a88d[_0x4df201(0x238)]-0x1,_0x494b28;_0x3200c7>=0x0;_0x3200c7--)(_0x494b28=_0x58a88d[_0x3200c7])&&(_0x428b0b=_0x494b28(_0x428b0b)||_0x428b0b);return _0x428b0b;},it=(_0x2e5608,_0x11ef0f)=>(_0x44686f,_0x3600f0)=>_0x11ef0f(_0x44686f,_0x3600f0,_0x2e5608);let ve=class extends _0x826d73{constructor(_0x4a15b3,_0x3b14b3,_0x8e5943,_0x31746b,_0x5517db){const _0x3ca252=_0x472c5c;super(),x(this,'_model',new Map()),x(this,'_collectionConfigModel',new Map()),x(this,'_pivotTableRangeInfo',new Map()),x(this,'_pivotTableMatrixInfo',new Map()),x(this,_0x3ca252(0x13b),new _0x1b5669()),x(this,_0x3ca252(0x2d0),new _0x1b5669()),x(this,_0x3ca252(0xf2),this['_pivotInitCompleted$'][_0x3ca252(0x223)]()),x(this,'_pivotConfigChange$',new _0x1b5669()),x(this,_0x3ca252(0x28f),this[_0x3ca252(0x152)][_0x3ca252(0x223)]()),x(this,'_textInfo',{}),x(this,'configVersion$',this[_0x3ca252(0x13b)]['asObservable']()),(this[_0x3ca252(0x305)]=_0x4a15b3,this[_0x3ca252(0x9a)]=_0x3b14b3,this[_0x3ca252(0x208)]=_0x8e5943,this['_resourceManagerService']=_0x31746b,this[_0x3ca252(0xe7)]=_0x5517db,this['_initLocale'](),this[_0x3ca252(0x2ea)]());const _0x303e25=this[_0x3ca252(0xe7)][_0x3ca252(0x27c)](zo);(_0x303e25==null?void 0x0:_0x303e25[_0x3ca252(0x189)])===!0x0&&this[_0x3ca252(0x16c)]();}['_initUnitDisposed'](){const _0x416d6f=_0x472c5c;this[_0x416d6f(0x286)](this[_0x416d6f(0x208)][_0x416d6f(0xc7)](_0x5e6e00[_0x416d6f(0x2e5)])['subscribe'](_0x445265=>{const _0xdcfd68=_0x416d6f;this[_0xdcfd68(0x2a0)](_0x445265[_0xdcfd68(0x239)]());}));}[_0x472c5c(0x1db)](){const _0x3e5228=_0x472c5c;this['_pivotInitCompleted$'][_0x3e5228(0x303)](!0x0);}['_initLocale'](){const _0x105727=_0x472c5c,_0x3c06ce=fo(this[_0x105727(0x305)],jo,'',{});this[_0x105727(0x2c2)]=_0x3c06ce,this['_commandService'][_0x105727(0x22f)](uo['id'],{'textInfo':_0x3c06ce},{'onlyLocal':!0x0});}[_0x472c5c(0x166)](){return this['_textInfo'];}['updateViewInfo'](_0x8f63e9,_0x27e5db,_0x33e01d,_0x2e5b32,_0x18b4ae){const _0x359780=_0x472c5c;this[_0x359780(0x15e)](_0x8f63e9,_0x27e5db,_0x33e01d,_0x2e5b32),this[_0x359780(0x2d3)](_0x8f63e9,_0x27e5db,_0x33e01d,_0x18b4ae);}[_0x472c5c(0x17d)](_0x1afe0,_0x3412e2,_0x27545d){const _0x3fe9d3=_0x472c5c;var _0x4520bd;const _0x50443e=(_0x4520bd=this['_model']['get'](_0x1afe0))==null?void 0x0:_0x4520bd[_0x3fe9d3(0x1b7)](_0x3412e2);if(_0x50443e)return _0x50443e[_0x3fe9d3(0x1b7)](_0x27545d);}[_0x472c5c(0xb4)](_0x16e697,_0x536640){const _0x1c60b1=_0x472c5c,_0x5c256f=this[_0x1c60b1(0x221)][_0x1c60b1(0x1b7)](_0x16e697);if(_0x5c256f){for(const [_0x27fa2d,_0x2043f5]of _0x5c256f[_0x1c60b1(0x196)]())for(const [_0x1b6750,_0x1bc04a]of _0x2043f5[_0x1c60b1(0x196)]())if(_0x1b6750===_0x536640)return _0x1bc04a[_0x1c60b1(0x26a)];}}['getTargetByPivotId'](_0x4e1ff8,_0x2bcd85,_0x2cb14c){const _0x1ce3a9=_0x472c5c,_0x121a99=this['getPivotTableConfig'](_0x4e1ff8,_0x2bcd85,_0x2cb14c);return _0x121a99==null?void 0x0:_0x121a99[_0x1ce3a9(0x26a)];}[_0x472c5c(0x252)](_0x8b5dd2,_0x32ba02){const _0x1e11ad=_0x472c5c;var _0x2070a2;return(_0x2070a2=this['_model'][_0x1e11ad(0x1b7)](_0x8b5dd2))==null?void 0x0:_0x2070a2['get'](_0x32ba02);}[_0x472c5c(0x2b6)](_0x2167a8,_0x208540,_0x51b708,_0x43b24f){const _0x1839e5=_0x472c5c,_0x38dee7=this[_0x1839e5(0x296)](_0x2167a8,_0x208540);_0x43b24f?_0x38dee7[_0x1839e5(0x1d5)](_0x51b708,_0x43b24f):_0x38dee7['delete'](_0x51b708),this[_0x1839e5(0x152)][_0x1839e5(0x303)]({'unitId':_0x2167a8,'subUnitId':_0x208540,'pivotTableId':_0x51b708,'pivotTableConfig':_0x43b24f});}[_0x472c5c(0x14f)](_0x2b7fe3,_0xee8397){const _0x5914ad=_0x472c5c;var _0xd0755e;return(_0xd0755e=this[_0x5914ad(0x142)][_0x5914ad(0x1b7)](_0x2b7fe3))==null?void 0x0:_0xd0755e[_0x5914ad(0xa9)][_0xee8397];}[_0x472c5c(0x197)](_0x49b0b3,_0x21df88){const _0x25af4c=_0x472c5c;this[_0x25af4c(0x142)][_0x25af4c(0x1d5)](_0x49b0b3,_0x21df88),this[_0x25af4c(0x13b)][_0x25af4c(0x303)](Math[_0x25af4c(0x18d)]());}[_0x472c5c(0x296)](_0x8a529d,_0x408dc7){const _0xe2aa94=_0x472c5c;let _0x1d23e0=this[_0xe2aa94(0x221)][_0xe2aa94(0x1b7)](_0x8a529d);_0x1d23e0||(_0x1d23e0=new Map(),this[_0xe2aa94(0x221)][_0xe2aa94(0x1d5)](_0x8a529d,_0x1d23e0));let _0x21f81d=_0x1d23e0['get'](_0x408dc7);return _0x21f81d||(_0x21f81d=new Map(),_0x1d23e0[_0xe2aa94(0x1d5)](_0x408dc7,_0x21f81d)),_0x21f81d;}[_0x472c5c(0x128)](_0xfd3344,_0x37d0e6){const _0x17f52b=_0x472c5c;let _0x349921=this[_0x17f52b(0x2ce)][_0x17f52b(0x1b7)](_0xfd3344);_0x349921||(_0x349921=new Map(),this[_0x17f52b(0x2ce)]['set'](_0xfd3344,_0x349921));let _0x1ed9ad=_0x349921[_0x17f52b(0x1b7)](_0x37d0e6);return _0x1ed9ad||(_0x1ed9ad=new Map(),_0x349921[_0x17f52b(0x1d5)](_0x37d0e6,_0x1ed9ad)),_0x1ed9ad;}[_0x472c5c(0x241)](_0xa47e84,_0x326f9b){const _0x5cf1b2=_0x472c5c;let _0x3416b9=this[_0x5cf1b2(0x23b)]['get'](_0xa47e84);_0x3416b9||(_0x3416b9=new Map(),this[_0x5cf1b2(0x23b)][_0x5cf1b2(0x1d5)](_0xa47e84,_0x3416b9));let _0x54e465=_0x3416b9[_0x5cf1b2(0x1b7)](_0x326f9b);return _0x54e465||(_0x54e465=new Map(),_0x3416b9[_0x5cf1b2(0x1d5)](_0x326f9b,_0x54e465)),_0x54e465;}[_0x472c5c(0x2d3)](_0x7bd3c4,_0x17f45c,_0x32a69b,_0x242c8b){const _0x12e622=_0x472c5c;var _0x4e196a;const _0x5353ae=this[_0x12e622(0x128)](_0x7bd3c4,_0x17f45c),_0x2ae4d1=(_0x4e196a=_0x5353ae[_0x12e622(0x1b7)](_0x32a69b))==null?void 0x0:_0x4e196a['oldRangeInfo'];_0x5353ae[_0x12e622(0x1d5)](_0x32a69b,{'oldRangeInfo':_0x2ae4d1,'rangeInfo':_0x242c8b});}[_0x472c5c(0x15e)](_0x83f99f,_0x105077,_0x5f4087,_0x16fb05){const _0x31f6aa=_0x472c5c;var _0x58c8be;const _0x3abb39=this[_0x31f6aa(0x241)](_0x83f99f,_0x105077),_0x28f035=(_0x58c8be=_0x3abb39['get'](_0x5f4087))==null?void 0x0:_0x58c8be[_0x31f6aa(0xb5)];_0x3abb39['set'](_0x5f4087,{'oldMatrix':_0x28f035,'matrix':_0x16fb05});}[_0x472c5c(0x2e4)](_0x1e1659,_0x25eece,_0x3fd88b){const _0x319870=_0x472c5c;var _0x146686,_0x14c84a;return(_0x14c84a=(_0x146686=this['_pivotTableRangeInfo'][_0x319870(0x1b7)](_0x1e1659))==null?void 0x0:_0x146686['get'](_0x25eece))==null?void 0x0:_0x14c84a[_0x319870(0x1b7)](_0x3fd88b);}[_0x472c5c(0x149)](_0x296cb3,_0x1c02ee,_0x496a64){const _0x46afe5=_0x472c5c;var _0x2449e5,_0x4f3ae5;return(_0x4f3ae5=(_0x2449e5=this[_0x46afe5(0x23b)][_0x46afe5(0x1b7)](_0x296cb3))==null?void 0x0:_0x2449e5[_0x46afe5(0x1b7)](_0x1c02ee))==null?void 0x0:_0x4f3ae5[_0x46afe5(0x1b7)](_0x496a64);}[_0x472c5c(0x2a0)](_0x804b97){const _0x166d1e=_0x472c5c;this[_0x166d1e(0x221)][_0x166d1e(0x1b4)](_0x804b97),this['_collectionConfigModel'][_0x166d1e(0x1b4)](_0x804b97);}[_0x472c5c(0x88)](_0x3beda6){const _0x23c29e=_0x472c5c,_0x2c741d={'dataFieldManagerConfig':{},'pivotTableConfigs':{}};if(this[_0x23c29e(0x142)]['get'](_0x3beda6)&&(_0x2c741d[_0x23c29e(0x1f7)][_0x3beda6]=this[_0x23c29e(0x142)][_0x23c29e(0x1b7)](_0x3beda6)),this['_model'][_0x23c29e(0x1b7)](_0x3beda6)){_0x2c741d[_0x23c29e(0x2f5)][_0x3beda6]={};const _0x1762b6=this[_0x23c29e(0x221)]['get'](_0x3beda6);_0x1762b6!=null&&_0x1762b6[_0x23c29e(0x2e9)]&&[..._0x1762b6['keys']()][_0x23c29e(0xaf)](_0x1d6c23=>{const _0xacfa0=_0x23c29e,_0x457168=_0x1762b6[_0xacfa0(0x1b7)](_0x1d6c23);_0x457168!=null&&_0x457168[_0xacfa0(0x2e9)]&&(_0x2c741d[_0xacfa0(0x2f5)][_0x3beda6][_0x1d6c23]={},[..._0x457168[_0xacfa0(0x118)]()][_0xacfa0(0xaf)](_0x2abc4b=>{const _0x6daf98=_0xacfa0,_0x2b6c11=_0x457168[_0x6daf98(0x1b7)](_0x2abc4b);_0x2b6c11&&(_0x2c741d['pivotTableConfigs'][_0x3beda6][_0x1d6c23][_0x2abc4b]=_0x2b6c11);}));});}return _0x2c741d;}[_0x472c5c(0x16c)](){const _0xc2bc0e=_0x472c5c;this[_0xc2bc0e(0x286)](this[_0xc2bc0e(0x19d)][_0xc2bc0e(0x1a6)]({'toJson':_0x293f81=>JSON[_0xc2bc0e(0x1ef)](this[_0xc2bc0e(0x88)](_0x293f81)),'parseJson':_0x46eea0=>({}),'businesses':[_0x5e6e00[_0xc2bc0e(0x2e5)]],'pluginName':ao,'onLoad':(_0x2cb146,_0x14e670)=>{},'onUnLoad':_0x4f1346=>{const _0x271c3f=_0xc2bc0e;this[_0x271c3f(0x2a0)](_0x4f1346);}}));}};ve=zi([it(0x0,_0x3af2eb(_0x53b05b)),it(0x1,_0x3af2eb(_0x88b8f4)),it(0x2,_0x3af2eb(_0xcf6c15)),it(0x3,_0x3af2eb(_0x3b0e89)),it(0x4,_0x3af2eb(_0x165fcc))],ve);var Yi=Object[_0x472c5c(0x13d)],Qi=(_0x19edf2,_0x18d2a3,_0x1a4ba9,_0x5286ed)=>{const _0x5bd1e4=_0x472c5c;for(var _0xb14b95=_0x5286ed>0x1?void 0x0:_0x5286ed?Yi(_0x18d2a3,_0x1a4ba9):_0x18d2a3,_0x24c27f=_0x19edf2[_0x5bd1e4(0x238)]-0x1,_0x3515a6;_0x24c27f>=0x0;_0x24c27f--)(_0x3515a6=_0x19edf2[_0x24c27f])&&(_0xb14b95=_0x3515a6(_0xb14b95)||_0xb14b95);return _0xb14b95;},st=(_0x418001,_0x474394)=>(_0x5aad79,_0x212130)=>_0x474394(_0x5aad79,_0x212130,_0x418001);let Ne=class extends _0x826d73{constructor(_0x395033,_0x11d483,_0x2d0869,_0x2e4797,_0x200460){const _0x4427b0=_0x472c5c;super(),x(this,_0x4427b0(0x277),new Map()),x(this,_0x4427b0(0x273),new Map()),x(this,_0x4427b0(0x111),new _0x1b5669()),x(this,_0x4427b0(0x293),this[_0x4427b0(0x111)][_0x4427b0(0x223)]()),x(this,'_viewUpdate$',new _0x1b5669()),x(this,_0x4427b0(0x265),this[_0x4427b0(0x1ac)][_0x4427b0(0x223)]()),x(this,_0x4427b0(0x2c2)),(this[_0x4427b0(0x1f0)]=_0x395033,this[_0x4427b0(0x305)]=_0x11d483,this['_sheetsPivotTableConfigModel']=_0x2d0869,this[_0x4427b0(0x208)]=_0x2e4797,this[_0x4427b0(0xce)]=_0x200460,this[_0x4427b0(0x150)](),this['_initUnitDisposed']());}[_0x472c5c(0x2ea)](){const _0x501525=_0x472c5c;this[_0x501525(0x286)](this[_0x501525(0x208)][_0x501525(0xc7)](_0x5e6e00[_0x501525(0x2e5)])[_0x501525(0x101)](_0x3fa432=>{const _0x17cf25=_0x501525;this['deleteUnitId'](_0x3fa432[_0x17cf25(0x239)]());}));}[_0x472c5c(0x150)](){const _0x487a20=_0x472c5c;this[_0x487a20(0x2c2)]=fo(this[_0x487a20(0x305)],jo,'',{});}[_0x472c5c(0x256)](_0x4d41af){const _0x26af31=_0x472c5c,{view:_0x29bc27,unitId:_0x25675f,subUnitId:_0x10560c,pivotTableId:_0x4bfcf0,type:_0x4760de}=_0x4d41af,_0x4cb76b=this[_0x26af31(0x2c5)][_0x26af31(0x17d)](_0x25675f,_0x10560c,_0x4bfcf0);if(!_0x29bc27||!_0x4cb76b||_0x4760de===j[_0x26af31(0x2f1)])return;const {pageView:_0x1047d4,cornerView:_0x528359,rowView:_0x4c1e39,colView:_0x28ff1,dataView:_0x238bc7}=_0x29bc27,_0x39dec7=_0x4cb76b[_0x26af31(0x26a)],_0x400dd5=_0x4cb76b[_0x26af31(0x229)],_0xf04ebe=this[_0x26af31(0x243)](_0x25675f,_0x10560c),_0x50230b=this[_0x26af31(0x2ad)](_0x25675f,_0x10560c,_0x4bfcf0);if(_0x400dd5)return this[_0x26af31(0x2d6)](_0x4d41af,_0xf04ebe,_0x39dec7,_0x50230b);{const _0x47e14d=ge(_0x39dec7,_0x1047d4,!0x0),_0x13ec68=_0x1047d4['lastRow']>=0x0?_0x1047d4[_0x26af31(0x203)]+0x1:0x0,_0x183ea8=_0x528359[_0x26af31(0xd3)](),_0x244443=_0x528359[_0x26af31(0x15a)](),_0x343aa4=_0x47e14d[_0x26af31(0x238)]>0x0?It:0x0,_0x10be4a=ge({'row':_0x39dec7[_0x26af31(0x2e1)]+_0x13ec68+_0x343aa4,'col':_0x39dec7[_0x26af31(0x2e3)]},_0x528359,!0x1,!0x1),_0x59d4b9=ge({'row':_0x39dec7['row']+_0x13ec68+_0x343aa4+_0x183ea8,'col':_0x39dec7[_0x26af31(0x2e3)]},_0x4c1e39,!0x1,!0x0),_0x427539=ge({'row':_0x39dec7[_0x26af31(0x2e1)]+_0x13ec68+_0x343aa4,'col':_0x39dec7[_0x26af31(0x2e3)]+_0x244443},_0x28ff1,!0x1,!0x0),_0x23a4c4=ge({'row':_0x39dec7['row']+_0x13ec68+_0x343aa4+_0x183ea8,'col':_0x39dec7[_0x26af31(0x2e3)]+_0x244443},_0x238bc7,!0x1,!0x1);_0x50230b['rangesInfo']={'rowRanges':_0x59d4b9,'colRanges':_0x427539,'cornerRanges':_0x10be4a,'dataRanges':_0x23a4c4,'pageRanges':_0x47e14d};const _0x453901=yi(this['_injector'],_0x29bc27,_0x4cb76b,this['_textInfo']),{valueMatrix:_0x293576,rowInfo:_0x39643a,colInfo:_0x475ef8,cornerInfo:_0x6fcd7,rowHeaderMap:_0x2c7150,colHeaderMap:_0xdf52d6}=_0x453901;return _0x50230b[_0x26af31(0x270)]={'rowInfo':_0x39643a,'colInfo':_0x475ef8,'cornerInfo':_0x6fcd7},_0x50230b['headerMap']={'rowHeaderMap':_0x2c7150,'colHeaderMap':_0xdf52d6},_0x293576[_0x26af31(0xaf)]((_0x35b182,_0x15c5ca)=>{const _0x42d7d0=_0x26af31;Object[_0x42d7d0(0x118)](_0x15c5ca)[_0x42d7d0(0xaf)](_0x1c1326=>{const _0xfd13a2=_0x42d7d0,_0x37327c=+_0x1c1326,_0x559499=_0x293576['getValue'](_0x35b182,_0x37327c);_0xf04ebe[_0xfd13a2(0xdc)](_0x35b182,_0x37327c,_0x559499);});}),this[_0x26af31(0x1ac)][_0x26af31(0x303)]({'unitId':_0x25675f,'subUnitId':_0x10560c,'valueMatrix':_0xf04ebe,'rangesCache':_0x50230b['rangesInfo'],'pivotTableId':_0x4bfcf0,'type':_0x4d41af['type']}),this['_sheetsPivotTableConfigModel'][_0x26af31(0x253)](_0x25675f,_0x10560c,_0x4bfcf0,_0xf04ebe,_0x50230b['rangesInfo']),this['_exclusiveRangeService'][_0x26af31(0x134)](_0x25675f,_0x10560c,Lt,this['_createExclusiveRange'](_0x50230b[_0x26af31(0xed)],_0x4bfcf0)),{'rangeCache':_0x50230b[_0x26af31(0xed)],'matrix':_0xf04ebe};}}['_updateRenderEmptyCache'](_0x744427,_0x456b28,_0x4e3c39,_0x34267b){const _0x3438ba=_0x472c5c,_0xe92ae8=this[_0x3438ba(0x1f0)]['t'],{unitId:_0x42dadb,subUnitId:_0x35bd09,pivotTableId:_0x30da77}=_0x744427,_0x280d83={'filter':_0xe92ae8('sheets-pivot.emptyPivot.filter'),'row':_0xe92ae8('sheets-pivot.emptyPivot.row'),'column':_0xe92ae8(_0x3438ba(0xfe)),'values':_0xe92ae8(_0x3438ba(0x198))},{matrixCache:_0x13b71b,rangesCache:_0x27f5e6}=Xo(_0x280d83,_0x4e3c39);return _0x13b71b['forValue']((_0x1e3d69,_0x21fc91,_0x3d6b85)=>{const _0x1f2c12=_0x3438ba;_0x456b28[_0x1f2c12(0xdc)](_0x1e3d69,_0x21fc91,_0x3d6b85);}),_0x34267b['rangesInfo']=_0x27f5e6,this[_0x3438ba(0x1ac)][_0x3438ba(0x303)]({'unitId':_0x42dadb,'subUnitId':_0x35bd09,'valueMatrix':_0x456b28,'rangesCache':_0x27f5e6,'pivotTableId':_0x30da77,'type':_0x744427[_0x3438ba(0x18a)],'isEmpty':!0x0}),this[_0x3438ba(0x2c5)]['updateViewInfo'](_0x42dadb,_0x35bd09,_0x30da77,_0x456b28,_0x27f5e6),this[_0x3438ba(0xce)][_0x3438ba(0x134)](_0x42dadb,_0x35bd09,Lt,this[_0x3438ba(0x9b)](_0x27f5e6,_0x30da77)),{'rangeCache':_0x34267b[_0x3438ba(0xed)],'matrix':_0x456b28};}[_0x472c5c(0x9b)](_0x43ae38,_0x445dc9){const _0x10b01d=[],_0x4cd28c=jt(_0x43ae38);for(const _0x227b94 of _0x4cd28c)_0x10b01d['push']({'groupId':_0x445dc9,'range':_0x227b94});return _0x10b01d;}['clearRenderCache'](_0x57aa64){const _0x1e4f02=_0x472c5c;var _0x589df6,_0x184ba4,_0x37ca02,_0x3f9f77;const {pivotTableId:_0x3db73d,unitId:_0x198b16,subUnitId:_0xc97758}=_0x57aa64;if(!_0x3db73d||!_0x198b16||!_0xc97758)return;const _0x551d59=this[_0x1e4f02(0x243)](_0x198b16,_0xc97758),_0xc1e3e7=(_0x184ba4=(_0x589df6=this[_0x1e4f02(0x277)]['get'](_0x198b16))==null?void 0x0:_0x589df6[_0x1e4f02(0x1b7)](_0xc97758))==null?void 0x0:_0x184ba4[_0x1e4f02(0x1b7)](_0x3db73d);if(_0xc1e3e7!=null&&_0xc1e3e7[_0x1e4f02(0xed)]){for(const _0x5bafd2 of Object['keys'](_0xc1e3e7[_0x1e4f02(0xed)]))_0xc1e3e7['rangesInfo'][_0x5bafd2][_0x1e4f02(0xaf)](_0x85f9c9=>{const _0x29dc01=_0x1e4f02;for(let _0x148ee4=_0x85f9c9[_0x29dc01(0x157)];_0x148ee4<=_0x85f9c9['endRow'];_0x148ee4++)for(let _0x22b57d=_0x85f9c9[_0x29dc01(0x24c)];_0x22b57d<=_0x85f9c9['endColumn'];_0x22b57d++)_0x551d59[_0x29dc01(0x2ec)](_0x148ee4,_0x22b57d);});}_0xc1e3e7&&((_0x3f9f77=(_0x37ca02=this[_0x1e4f02(0x277)]['get'](_0x198b16))==null?void 0x0:_0x37ca02[_0x1e4f02(0x1b7)](_0xc97758))==null||_0x3f9f77[_0x1e4f02(0x1b4)](_0x3db73d)),this[_0x1e4f02(0x1ac)][_0x1e4f02(0x303)]({'unitId':_0x198b16,'subUnitId':_0xc97758,'valueMatrix':_0x551d59,'pivotTableId':_0x3db73d,'rangesCache':void 0x0,'type':_0x57aa64[_0x1e4f02(0x18a)]}),this[_0x1e4f02(0xce)][_0x1e4f02(0xf0)](_0x198b16,_0xc97758,Lt,_0x3db73d);}[_0x472c5c(0x2ad)](_0x402a44,_0x2a386a,_0x532d2b){const _0x36410c=_0x472c5c;var _0x1db7f0,_0x1dcd33,_0x34ba53,_0x2ebed4,_0x3ebeb5,_0x6b3f22;return this[_0x36410c(0x277)][_0x36410c(0x155)](_0x402a44)||this[_0x36410c(0x277)][_0x36410c(0x1d5)](_0x402a44,new Map()),(_0x1db7f0=this[_0x36410c(0x277)][_0x36410c(0x1b7)](_0x402a44))!=null&&_0x1db7f0[_0x36410c(0x155)](_0x2a386a)||(_0x1dcd33=this['_pivotRenderInfoCache']['get'](_0x402a44))==null||_0x1dcd33[_0x36410c(0x1d5)](_0x2a386a,new Map()),(_0x2ebed4=(_0x34ba53=this[_0x36410c(0x277)][_0x36410c(0x1b7)](_0x402a44))==null?void 0x0:_0x34ba53[_0x36410c(0x1b7)](_0x2a386a))!=null&&_0x2ebed4[_0x36410c(0x155)](_0x532d2b)||(_0x6b3f22=(_0x3ebeb5=this[_0x36410c(0x277)][_0x36410c(0x1b7)](_0x402a44))==null?void 0x0:_0x3ebeb5[_0x36410c(0x1b7)](_0x2a386a))==null||_0x6b3f22[_0x36410c(0x1d5)](_0x532d2b,{}),this[_0x36410c(0x277)][_0x36410c(0x1b7)](_0x402a44)[_0x36410c(0x1b7)](_0x2a386a)[_0x36410c(0x1b7)](_0x532d2b);}[_0x472c5c(0x243)](_0x186728,_0x5ea3d7){const _0x1145c0=_0x472c5c;var _0x119658,_0x3d889d;return this[_0x1145c0(0x273)][_0x1145c0(0x155)](_0x186728)||this[_0x1145c0(0x273)][_0x1145c0(0x1d5)](_0x186728,new Map()),(_0x119658=this[_0x1145c0(0x273)][_0x1145c0(0x1b7)](_0x186728))!=null&&_0x119658[_0x1145c0(0x155)](_0x5ea3d7)||(_0x3d889d=this[_0x1145c0(0x273)][_0x1145c0(0x1b7)](_0x186728))==null||_0x3d889d[_0x1145c0(0x1d5)](_0x5ea3d7,new _0x38f0b5()),this[_0x1145c0(0x273)][_0x1145c0(0x1b7)](_0x186728)[_0x1145c0(0x1b7)](_0x5ea3d7);}[_0x472c5c(0x285)](_0x472090,_0x365a82,_0x163ffc,_0x5b38d8){const _0x225296=_0x472c5c;var _0xbe0a95,_0x4fe241;const _0x3c9541=(_0x4fe241=(_0xbe0a95=this[_0x225296(0x273)][_0x225296(0x1b7)](_0x472090))==null?void 0x0:_0xbe0a95[_0x225296(0x1b7)](_0x365a82))==null?void 0x0:_0x4fe241[_0x225296(0x187)](_0x163ffc,_0x5b38d8);if(_0x3c9541!=null)return _0x3c9541;}['getPivotTableIdByCell'](_0x129b5f,_0x37bd75,_0x1c0d60,_0x179bb6){const _0x2e6117=_0x472c5c;var _0x1677b0;const _0x27fd18=_0x452af2(_0x1c0d60,_0x179bb6),_0x1d542f=(_0x1677b0=this['_pivotRenderInfoCache'][_0x2e6117(0x1b7)](_0x129b5f))==null?void 0x0:_0x1677b0[_0x2e6117(0x1b7)](_0x37bd75);return _0x1d542f?Array[_0x2e6117(0x28d)](_0x1d542f[_0x2e6117(0x118)]())['find'](_0x4caed0=>{const _0x3907ca=_0x2e6117,_0x3235cc=_0x1d542f[_0x3907ca(0x1b7)](_0x4caed0),_0x4f18a5=_0x3235cc==null?void 0x0:_0x3235cc[_0x3907ca(0xed)];return _0x4f18a5?Object[_0x3907ca(0x118)](_0x4f18a5)[_0x3907ca(0x20b)](_0x24ab21=>_0x4f18a5[_0x24ab21][_0x3907ca(0x20b)](_0x1b28c0=>_0x2776bf[_0x3907ca(0x121)](_0x1b28c0,_0x27fd18))):!0x1;}):void 0x0;}[_0x472c5c(0x129)](_0x510a08,_0x2fd7e5,_0xae7215){const _0x1c67ab=_0x472c5c;var _0x131775;const _0x4df915=(_0x131775=this[_0x1c67ab(0x277)][_0x1c67ab(0x1b7)](_0x510a08))==null?void 0x0:_0x131775[_0x1c67ab(0x1b7)](_0x2fd7e5),_0x35bd79=[];return _0x4df915&&Array[_0x1c67ab(0x28d)](_0x4df915[_0x1c67ab(0x118)]())['forEach'](_0x3715e9=>{const _0x35277f=_0x1c67ab,_0x598e0e=_0x4df915[_0x35277f(0x1b7)](_0x3715e9),_0x11a30c=_0x598e0e==null?void 0x0:_0x598e0e[_0x35277f(0xed)];if(_0x11a30c)for(const _0x40c9ed of Object[_0x35277f(0xa6)](_0x11a30c)){let _0x48d7d6=!0x1;for(const _0x3e43a3 of _0x40c9ed)if(_0x2776bf[_0x35277f(0x2a5)](_0x3e43a3,_0xae7215)){_0x35bd79[_0x35277f(0x2b1)](_0x3715e9),_0x48d7d6=!0x0;break;}if(_0x48d7d6)break;}}),_0x35bd79;}['getSubUnitPivotMatrix'](_0x576853,_0x18cf5f){const _0x1e7e4f=_0x472c5c;var _0xf2a16c,_0x1d7809;return(_0x1d7809=(_0xf2a16c=this['_pivotRenderValueMatrixCache'][_0x1e7e4f(0x1b7)](_0x576853))==null?void 0x0:_0xf2a16c[_0x1e7e4f(0x1b7)](_0x18cf5f))!=null?_0x1d7809:new _0x38f0b5();}[_0x472c5c(0x248)](_0x47f81b,_0x466861){const _0x92003d=_0x472c5c;var _0x3f6564;return(_0x3f6564=this[_0x92003d(0x277)]['get'](_0x47f81b))==null?void 0x0:_0x3f6564[_0x92003d(0x1b7)](_0x466861);}[_0x472c5c(0x122)](_0x49fdbd,_0x215ae9,_0x418add){const _0x4be652=_0x472c5c;var _0x4c2253,_0x446019;return(_0x446019=(_0x4c2253=this[_0x4be652(0x277)][_0x4be652(0x1b7)](_0x49fdbd))==null?void 0x0:_0x4c2253[_0x4be652(0x1b7)](_0x215ae9))==null?void 0x0:_0x446019[_0x4be652(0x1b7)](_0x418add);}['deleteUnitId'](_0x5544d8){const _0x5b3146=_0x472c5c;this['_pivotRenderInfoCache'][_0x5b3146(0x1b4)](_0x5544d8),this[_0x5b3146(0x273)]['delete'](_0x5544d8);}[_0x472c5c(0xad)](_0x414b9b,_0x5dd107){const _0x3538f1=_0x472c5c;this[_0x3538f1(0x111)][_0x3538f1(0x303)]({'unitId':_0x414b9b,'subUnitId':_0x5dd107});}};Ne=Qi([st(0x0,_0x3af2eb(_0x175f03)),st(0x1,_0x3af2eb(_0x53b05b)),st(0x2,_0x3af2eb(ve)),st(0x3,_0x3af2eb(_0xcf6c15)),st(0x4,_0x3af2eb(_0x50d132))],Ne);var Zi=Object[_0x472c5c(0x13d)],es=(_0x3d1298,_0x3f9dea,_0x800270,_0x61149e)=>{for(var _0x454def=_0x61149e>0x1?void 0x0:_0x61149e?Zi(_0x3f9dea,_0x800270):_0x3f9dea,_0x57ae50=_0x3d1298['length']-0x1,_0xc940a1;_0x57ae50>=0x0;_0x57ae50--)(_0xc940a1=_0x3d1298[_0x57ae50])&&(_0x454def=_0xc940a1(_0x454def)||_0x454def);return _0x454def;},wo=(_0x1ccdfd,_0x6a36e4)=>(_0x22e5eb,_0x16d520)=>_0x6a36e4(_0x22e5eb,_0x16d520,_0x1ccdfd);let ie=class extends _0x826d73{constructor(_0x5e4338,_0xf6dbca){const _0x4ca4b9=_0x472c5c;super(),x(this,_0x4ca4b9(0x1ab),new _0x443375({'PIVOT_PERFORM_CHECK':be})),x(this,'interceptor',new _0x51dd50({'PIVOT_MUTATION_GENERATE':Jo})),(this[_0x4ca4b9(0x139)]=_0x5e4338,this[_0x4ca4b9(0x1e8)]=_0xf6dbca,this[_0x4ca4b9(0xf3)]());}['_init'](){this['_initViewModelBySheetInterceptor']();}[_0x472c5c(0xbe)](_0xd59aa5){const _0x2329e5=_0x472c5c;return this[_0x2329e5(0x1ab)][_0x2329e5(0x2be)](be)(!0x1,_0xd59aa5);}[_0x472c5c(0xd0)](){const _0x231236=_0x472c5c;this[_0x231236(0x286)](this[_0x231236(0x139)]['intercept'](_0x3f1cfd[_0x231236(0x2a7)],{'priority':0xc8,'effect':_0x28de9f[_0x231236(0x192)]|_0x28de9f[_0x231236(0xd8)],'handler':(_0x7c5b74,_0x4bc588,_0x24ee36)=>{const _0x45c51d=_0x231236,{row:_0x53a50e,col:_0x485cd7,unitId:_0x1182b9,subUnitId:_0x1d8fe3,workbook:_0x45c2c1}=_0x4bc588,_0x17326e=this[_0x45c51d(0x1e8)]['getPivotTableCellData'](_0x1182b9,_0x1d8fe3,_0x53a50e,_0x485cd7);if(!_0x17326e)return _0x24ee36(_0x7c5b74);const _0x1dd9e9={..._0x7c5b74};(_0x17326e['v']||_0x17326e['v']===0x0)&&(_0x1dd9e9['v']=_0x17326e['v']),_0x17326e['t']&&(_0x1dd9e9['t']=_0x17326e['t']);const _0x762e9f=(typeof(_0x7c5b74==null?void 0x0:_0x7c5b74['s'])==_0x45c51d(0xeb)?_0x45c2c1[_0x45c51d(0x16b)]()[_0x45c51d(0x1b7)](_0x7c5b74==null?void 0x0:_0x7c5b74['s']):_0x7c5b74==null?void 0x0:_0x7c5b74['s'])||{},_0x1a4fda=_0x45c2c1[_0x45c51d(0x16b)]()[_0x45c51d(0x1b7)](_0x17326e['s']),_0x12c6db={..._0x1a4fda,..._0x762e9f};_0x1a4fda!=null&&_0x1a4fda['n']&&(_0x12c6db['n']=_0x1a4fda['n']);const _0x76fa96=_0x45c2c1[_0x45c51d(0x16b)]()[_0x45c51d(0xdc)](_0x12c6db);return _0x1dd9e9['s']=_0x76fa96,(_0x17326e['pbt']===_0x4f6aca[_0x45c51d(0x16f)]||_0x17326e['pbt']===_0x4f6aca[_0x45c51d(0x182)])&&(_0x1dd9e9[_0x45c51d(0x207)]={},_0x1dd9e9[_0x45c51d(0x207)][_0x45c51d(0xab)]=li),_0x24ee36(_0x1dd9e9);}}));}};ie=es([wo(0x0,_0x3af2eb(_0x17fe9b)),wo(0x1,_0x3af2eb(Ne))],ie);const Yo={'id':'sheet.mutation.add-group-collection','type':_0x44b70c['MUTATION'],'handler':(_0x404d6d,_0x42ffb7)=>{const _0x1a678a=_0x472c5c;if(!_0x42ffb7)return!0x1;if(!!_0x404d6d[_0x1a678a(0x1b7)](_0x165fcc)['getConfig'](z))return!0x0;const {pivotTableId:_0xdb87bf,fieldJSON:_0x350b45,unitId:_0x3a3c8e,subUnitId:_0x4201fd}=_0x42ffb7;let _0x1ae2ad;const {dataFieldType:_0x3e11b0,id:_0x133a0b,name:_0x1d3808,hexCode:_0x48bdb7,originalFieldId:_0x4fc933}=_0x350b45;if(_0x3e11b0===_0x14fdcd[_0x1a678a(0x133)]&&(_0x1ae2ad=new _0x2a6950(_0x133a0b,_0x1d3808,_0x48bdb7,_0x4fc933)),!_0x1ae2ad)return!0x1;const _0x5548fe=_0x404d6d[_0x1a678a(0x1b7)]($),_0x3c7266=_0x5548fe[_0x1a678a(0x266)](_0x3a3c8e),_0x2eeefc=_0x3c7266[_0x1a678a(0x14f)](_0xdb87bf);_0x3c7266[_0x1a678a(0x2f4)](_0x1ae2ad),_0x2eeefc['addField'](_0x1ae2ad[_0x1a678a(0x21f)](),_0x1ae2ad[_0x1a678a(0x1fe)]());const _0x29b00b=_0x2eeefc[_0x1a678a(0x16d)](_0x1ae2ad[_0x1a678a(0x21d)]());_0x29b00b&&_0x1ae2ad['refreshGroupField'](_0x29b00b);const _0x420d7e=_0x5548fe[_0x1a678a(0x17d)](_0x3a3c8e,_0x4201fd,_0xdb87bf);return _0x5548fe[_0x1a678a(0x10c)]({'unitId':_0x3a3c8e,'subUnitId':_0x4201fd,'token':_0xdb87bf,'type':j[_0x1a678a(0x1a7)],'pivotConfig':_0x420d7e}),!0x0;}},Qo={'id':_0x472c5c(0x115),'type':_0x44b70c[_0x472c5c(0x301)],'handler':(_0x3e04d9,_0x3c3084)=>{const _0x354700=_0x472c5c;if(!_0x3c3084)return!0x1;if(!!_0x3e04d9['get'](_0x165fcc)[_0x354700(0x27c)](z))return!0x0;const {pivotTableId:_0x1eb8b6,dataFieldId:_0x6f5c2c,unitId:_0x36f72a,subUnitId:_0x59cd69}=_0x3c3084,_0x30a090=_0x3e04d9['get']($),_0x18a7c3=_0x30a090[_0x354700(0x266)](_0x36f72a);_0x18a7c3[_0x354700(0x14f)](_0x1eb8b6)[_0x354700(0x2cc)](_0x6f5c2c);let _0x45d06d=!0x0;for(const _0x915cb4 in _0x18a7c3['collections'])if(_0x18a7c3[_0x354700(0xa9)][_0x915cb4][_0x354700(0x183)]()[_0x354700(0x2c7)](_0x6f5c2c)){_0x45d06d=!0x1;break;}_0x45d06d&&_0x18a7c3[_0x354700(0x82)](_0x6f5c2c);const _0x3dca11=_0x30a090[_0x354700(0x17d)](_0x36f72a,_0x59cd69,_0x1eb8b6);return _0x30a090[_0x354700(0x10c)]({'unitId':_0x36f72a,'subUnitId':_0x59cd69,'token':_0x1eb8b6,'type':j[_0x354700(0x1a7)],'pivotConfig':_0x3dca11}),!0x0;}};function Nt(_0x43aa49,_0xb8919c){const _0x3e692b=_0x472c5c;switch(_0xb8919c){case _0x41d892[_0x3e692b(0x192)]:return _0x43aa49['valueFields'];case _0x41d892[_0x3e692b(0xc6)]:return _0x43aa49[_0x3e692b(0x211)];case _0x41d892[_0x3e692b(0x2f7)]:return _0x43aa49[_0x3e692b(0x1d4)];case _0x41d892[_0x3e692b(0x249)]:return _0x43aa49[_0x3e692b(0x130)];default:return[];}}function We(_0xfe78e1,_0x37acab){return _0xfe78e1['measure'][_0x37acab]||_0xfe78e1['dimension'][_0x37acab];}function ts(_0x40ad74,_0x38594f){const _0x2b856a=_0x472c5c,{area:_0x315f96,fieldJson:_0x58bdc0,index:_0x46aee6}=_0x38594f;_0x315f96===_0x41d892[_0x2b856a(0x192)]?_0x40ad74[_0x2b856a(0x148)][_0x58bdc0['id']]=_0x58bdc0:_0x40ad74['dimension'][_0x58bdc0['id']]=_0x58bdc0,Nt(_0x40ad74,_0x315f96)[_0x2b856a(0x1e7)](_0x46aee6,0x0,_0x58bdc0['id']);}function os(_0x5cd040,_0x16cbd1){const _0x5a7edc=_0x472c5c,{area:_0x259b5f,fieldId:_0x6df56a,index:_0x2c7c5c}=_0x16cbd1;_0x259b5f===_0x41d892[_0x5a7edc(0x192)]?delete _0x5cd040[_0x5a7edc(0x148)][_0x6df56a]:delete _0x5cd040[_0x5a7edc(0x28e)][_0x6df56a],Nt(_0x5cd040,_0x259b5f)[_0x5a7edc(0x1e7)](_0x2c7c5c,0x1);}function _0x470a(_0x2ce12c,_0x545cb5){const _0x2f157b=_0x2f15();return _0x470a=function(_0x470afd,_0x1427ff){_0x470afd=_0x470afd-0x7d;let _0x3c2fce=_0x2f157b[_0x470afd];return _0x3c2fce;},_0x470a(_0x2ce12c,_0x545cb5);}function ns(_0x494bf0,_0x2bdddd){const {fieldId:_0x5a6226,name:_0xd025dd}=_0x2bdddd,_0x3340a5=We(_0x494bf0,_0x5a6226);_0x3340a5&&(_0x3340a5['displayName']=_0xd025dd);}function is(_0x58d8a7,_0x554d1d){const _0x1ba2af=_0x472c5c,{fieldId:_0xabc19a,collapse:_0x3b71a2,item:_0x42fda7}=_0x554d1d;_0x42fda7!==void 0x0?(_0x58d8a7[_0x1ba2af(0x302)][_0xabc19a]=_0x58d8a7[_0x1ba2af(0x302)][_0xabc19a]||{},_0x58d8a7[_0x1ba2af(0x302)][_0xabc19a][_0x42fda7]=_0x3b71a2):_0x58d8a7[_0x1ba2af(0x302)][_0xabc19a]=_0x3b71a2;}function ss(_0x27a735,_0x15fb73){const _0xf82930=_0x472c5c,{fieldId:_0x241028,format:_0x2b2363}=_0x15fb73,_0x4260d4=We(_0x27a735,_0x241028);_0x4260d4&&(_0x4260d4[_0xf82930(0x2b2)]=_0x2b2363);}function as(_0x3ebd1c,_0x51eebe){const _0x18dffd=_0x472c5c,{fieldId:_0x47ff8b,filterInfo:_0x1e4716}=_0x51eebe,_0x125694=We(_0x3ebd1c,_0x47ff8b);_0x125694&&(_0x125694[_0x18dffd(0x143)]=_0x1e4716);}function _0x2f15(){const _0xfbc50c=['MIN_SAFE_INTEGER','collection','sheets-pivot.dateGroup.hourMinute','Product\x20of\x20','sheets-pivot.cellDateGroupDisplay.minute','sheets-pivot.config','getSheetBySheetId','rangeKeyMap','GrandTotal','updatePivotSource','sheets-pivot.productName','rowInfo','getPivotTableConfig','_updatePivotTableInstanceCache','fetchThroughInterceptors','getRangeKeyList','SetPivotCollapse','Expand','getFieldIds','DIV_BY_ZERO','sheetName','[Pivot\x20Table]:\x20Target\x20sheet\x20is\x20not\x20valid','getValue','#f4f4f5','notExecuteFormula','type','addFieldWithSourceId','handleAsyncResponse','random','generateNewSheetName','removeCollections','dataStream','getHeaderMapItem','Value','dataFieldsCollection','SHEET_PIVOT_IN_MAIN_THREAD','(Blank)','entries','updateCollectionConfig','sheets-pivot.emptyPivot.values','sourceName','prototype','sheets-pivot.cellDateGroupDisplay.hourMinute','pageRanges','_resourceManagerService','parseInt','updateFieldPosition','getPivotDisplayConfig','getActiveSheet','rowHeaderMap','pluginName','sheets-pivot.columnName','rgb(255,255,255)','registerPluginResource','Set','setName','_config','disposableCollection','asyncInterceptor','_viewUpdate$','average','sheet.command.update-date-group','onStarting','SetPivotTableConfig','getDataFieldByDataFieldId','_dataFieldManagerCollection','_initPivotDataGetListener','delete','#b2b2b2','Panel','get','iterateFieldDim','floor','addField','yP7jnrx7\x20OijXhUnrx7(urji74i,\x20UPcurj1ih)\x20{\x20\x20\x20\x20nXh\x20{\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20urji74iS7yx8TXnFXXTh\x20=\x20urji74i.4Uurn(\x27-\x27);\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20xXrAr7Mi44TAi\x20=\x20o6HI.UTX4i(Tnxc(urji74iS7yx8TXnFXXTh[2]));\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(!xXrAr7Mi44TAi.PO)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20xXrAr7Mi44TAi.PO\x20=\x20IPlciX(urji74iS7yx8TXnFXXTh[Z]);\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20r4DxXmiX\x20=\x20nhUixy\x20DxXmiXauxcTu6jxUi\x20!==\x20\x27P7Oiyr7iO\x27\x20&&\x204iuy\x20r74nT7jixy\x20DxXmiXauxcTu6jxUi;\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20jx7nizn\x20=\x20r4DxXmiX\x20?\x204iuy\x20:\x20br7Oxb;\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20li44TAiDxXO\x20=\x20jx7nizn.__NT4iVZ__.UTX4i(urji74iS7yx8TXnFXXTh[2]);\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20li44TAi\x20=\x20jx7nizn.__Jiz__.4nXr7Aryh(li44TAiDxXO);\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x204rA7TnPXiDxXO\x20=\x20jx7nizn.__NT4iVZ__.UTX4i(urji74iS7yx8TXnFXXTh[9]);\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x204rA7TnPXi\x20=\x20jx7nizn.__Jiz__.4nXr7Aryh(4rA7TnPXiDxXO);\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x204rA7gTurO\x20=\x20jx7nizn.__piXryh__(4rA7TnPXi,\x20li44TAi,\x20UPcurj1ih);\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20OxlTr7\x20=\x20xXrAr7Mi44TAi.Ol;\x20\x20\x20\x20\x20\x20\x20\x20yP7jnrx7\x20r4sxlTr7MTnjkr7A(x8TnniX7,\x20xJx4n)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20UTnniX7\x20=\x20x8TnniX7.XiUuTji(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20kx4n\x20=\x20xJx4n.XiUuTji(/^.+/,\x20\x27\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20UTnniX78TXn4\x20=\x20UTnniX7.4Uurn(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20kx4n8TXn4\x20=\x20kx4n.4Uurn(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(!UTnniX7.r7juPOi4(\x27*\x27))\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XinPX7\x20UTnniX7\x20===\x20kx4n;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(UTnniX78TXn4.ui7Ank\x20<\x202\x20||\x20UTnniX78TXn4[q]\x20!==\x20\x27*\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XinPX7\x20yTu4i;\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20UTnniX76Pyyrz\x20=\x20UTnniX78TXn4.4urji(v).Lxr7(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20kx4n6Pyyrz\x20=\x20kx4n8TXn4.4urji(-UTnniX78TXn4.ui7Ank\x20+\x20v).Lxr7(\x27.\x27);\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20XinPX7\x20UTnniX76Pyyrz\x20===\x20kx4n6Pyyrz;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20uin\x20OxlTr7gTurO\x20=\x20(OxlTr7\x20&&\x20OxlTr7.ui7Ank)\x20?\x20OxlTr7.4xli((OlSnil)\x20=>\x20r4sxlTr7MTnjkr7A(OlSnil,\x20uxjTnrx7.kx4n7Tli))\x20:\x20nXPi;\x20\x20\x20\x20\x20\x20\x20\x20ry\x20(uxjTnrx7.kx4n7Tli\x20===\x20\x27uxjTukx4n\x27)\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20OxlTr7gTurO\x20=\x20nXPi;\x20\x20\x20\x20\x20\x20\x20\x20}\x20\x20\x20\x20\x20\x20\x20\x20jx74n\x20pTurO\x20=\x204rA7gTurO\x20&&\x20OxlTr7gTurO;\x20\x20\x20\x20\x20\x20\x20\x20XinPX7\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pTurO,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20li44TAi:\x20xXrAr7Mi44TAi,\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}\x20jTnjk\x20(iXXxX)\x20{\x20\x20\x20\x20\x20\x20\x20\x20XinPX7\x20{\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20pTurO:\x20yTu4i,\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20li44TAi:\x20{},\x20\x20\x20\x20\x20\x20\x20\x20};\x20\x20\x20\x20}}','sheet.command.remove-pivot-field','var','addCollection','_initPivotTextInfo','sideEffectUpdateWorkerCache','ΣValue','NAME','SetCollapse','_initRemoveSheetCommandInterceptor','countNums','addPivotTableWithConfig','forValue','7406VmBdUD','#e6ebfa','getPivotTableModelConfig','Values','UpdateFieldPosition','drillDown','pbt','fieldIds','Min\x20of\x20','getValueIndex','sheets-pivot.dateGroup.minute','_getPivotAppliedRanges','rowFields','set','SHEET_PIVOT_EXCLUSIVE_ID','node','query','sheet.command.set-pivot-value-filter','createCollectionWithDataRange','setPivotInitCompleted','subUnitId','1414504zNmivc','setRangeKeyMap','PivotMultipleValueId','replace','getViewData','filter','resetArea','versions','_activeDirtyManagerService','Div0','splice','_sheetsPivotTableAdaptorModel','maxDate','getColumnWidth','sheet.mutation.update-date-group','toString','minDate','colStyle','stringify','_localeService','149440JugKeR','sheet.mutation.set-pivot-format','setOptions','onCommandExecuted','_initGlobalComputed','fieldId','dataFieldManagerConfig','updateConfig','getRangeStartEndInfo','getCellMatrix','Date','272895tpvhkK','concat','getName','getCurrentUnitForType','MAX_SAFE_INTEGER','BLANK_PLACEHOLDER','sheet.mutation.remove-pivot-table','lastRow','AddPivotTable','dataFields','renameField','fontRenderExtension','_univerInstanceService','SetPivotFilter','UpdateValuePosition','some','getSheetId','level','sheet.mutation.rename-pivot-field','updateDirtyPivotTable','sheets-pivot.minName','filterFields','getUpdateRangeDeleteIds','range','charCodeAt','prefix','setTextInfo','_globalComputingSrv','unitId','updateRangeKeyMap','_sheetsPivotDataSourceModel','headerMap','getAutoDisplayNameFunction','getOriginFieldId','isText','getId','value','_model','valid','asObservable','getAutoFitColumnsMutations','sheet.mutation.add-pivot-field','9FghWhl','tableFieldId','getPivotDirtyViewInfo','isEmpty','message','SetOptions','pivotTableId','colRanges','isValue','executeCommand','getColumnCount','updateFieldSourceInfo','getDataFieldByRangeKey','removeDataField','sheet.mutation.send-pivot-view-local','_host','getUnit','info','length','getUnitId','getLastCol','_pivotTableMatrixInfo','setRange','lastCol','initDataRanges','getDataFieldId','varp','_ensurePivotTableMatrixInfo','onQueryStart','_ensurePivotItemRenderValueMatrixCache','sum','sheets-pivot.blank','update','_refRangeHandle','getSubUnitPivotRenderCache','Column','NotNumber','_getAutoName','startColumn','_featureCalculationManagerService','sheet.mutation.set-pivot-field-subtotal-type','UpdateSource','rowStyle','token','getSubUnitPivotConfigs','updateViewInfo','getLastRow','setPivotTableConfig','updateRenderCache','SetValuePivotFilter','sheet.command.move-pivot-field','HourMinute','_requestResolvers','COMMAND','SetValueFilter','grandTotal','date','call','315300MQsOwn','valueIndex','refreshGroupField','getFieldPositionInfoById','generateMutationsByRanges','viewUpdate$','getDataFieldManager','setRangeValueRedoMutation','getDate','min','targetCellInfo','getSheets','sheet.mutation.send-pivot-data-local','sheets-pivot.cellDateGroupDisplay.yearMonth','removeSourceRangeChange','setPivotTable','areaInfo','SetSortInfo','sheet.mutation.send-pivot-config-local','_pivotRenderValueMatrixCache','_subjectCollectionChange','fields','data','_pivotRenderInfoCache','sheet.command.add-pivot-table-with-config','addPivotTable','cellValue','stdDev','getConfig','removeCollectionImp','sheet.command.update-pivot-table-source-range','sheet.operation.pivot-table-view-formula-mark-dirty','removePivotTable','getValueFilterInfos','NUMBER','StdDev\x20of\x20','AddPivotTableWithConfig','getPivotTableCellData','disposeWithMe','MovePivotField','undos','collectionChange$','iterateFieldByArea','sheets-pivot.cellDateGroupDisplay.quarter','_initRegisterCommand','from','dimension','pivotConfigChange$','getRangeData','getDataFieldBySourceName','UpdatePivotSource','markDirty$','matrix','sheets-pivot.dateGroup.yearQuarter','_ensurePivotMap','isArray','updateValuePosition','refreshData','getFormatInfo','sheet.mutation.pivot-update-value-position','RemovePivotField','max','getMatrix','sheet.command.set-pivot-fields-config','deleteUnitId','count','sheet.mutation.update-pivot-table-source-range','_fieldsCollectionChange$','sheet.mutation.set-pivot-filter','intersects','sheet.mutation.set-pivot-option','CELL_CONTENT','sheets-pivot.sumName','NO_COMMERCIAL','reset','_updateModelCache','getNoUsedDataFieldIds','_ensurePivotItemRenderInfoCache','getRangeKey','removeValueFilterInfoByValueFieldId','collectionConfig','push','format','blank','setDateType','SetPivotSetting','updateConfigCache','setSortInfo','sheets-pivot.dateGroup.date','sortInfo','tuple','sheets-pivot.dateGroup.yearMonth','broadcastCollectionChange','movePivotField','fetchThroughAsyncInterceptors','None','rangeKey','DrillDown','_textInfo','ResetPivotTable','YearMonthDate','_sheetsPivotTableConfigModel','valueFields','includes','options','endRow','getPivotTableInstance','NotName','deleteField','shouldClear','_pivotTableRangeInfo','sheets-pivot.cellDateGroupDisplay.year','_pivotInitCompleted$','getIndexesByPathStr','Year','updatePivotTableRangeInfo','\x20-\x20','product','_updateRenderEmptyCache','_globalComputedEndHelpFunc','Add','getSourceName','defineProperty','symbol','pushComputingStatusSubject','RenameField','_sheetsSelectionsService','Total','pageStyle','row','YearQuarter','col','getPivotTableRangeInfo','UNIVER_SHEET','getFullYear','sheet.mutation.set-pivot-collapse','getDisplayName','size','_initUnitDisposed','setLabelFilterInfo','realDeleteValue','AddPivotField','_globalComputedStartHelpFunc','colCount','add','Delete','addCollectionByJSON','sheet.mutation.pivot-update-field-source-info','addDataFieldWithoutUnitInfo','pivotTableConfigs','sheets-pivot.averageName','Row','rowRanges','sheets-pivot.maxName','sheets-pivot.dateGroup.yearMonthDate','formJSON','isNaN','AddField','setValueFilterInfo','Month','resetPivotTable','MUTATION','collapseInfo','next','_subjectFieldsCollectionChange','_injector','Sum\x20of\x20','sheet.mutation.get-pivot-data-local','leafStyle','setPivotFilter','sheet.command.move-pivot-table','Existing','name','onQueryEnd','dataRangeInfo','hasField','deleteDataField','_dataSyncPrimaryController','fieldsCollectionChange$','YearMonth','getCurrentSelections','addPivotField','_toJSON','138YeZXqS','Count\x20of\x20','getMatrixValue','clearRenderCache','_collectionChange$','refreshDataField','endCollectChangeset','NotFunction','startCollectChangeset','triggerDirtyFeature','REF','_viewData$','filterId','getTableFieldById','sheet.mutation.set-pivot-value-filter','New','redos','_commandService','_createExclusiveRange','getMonth','single','toJSON','isDate','sheets-pivot.countNumsName','setDisplayName','isColMultiMeasure','sheets-pivot.dateGroup.hour','_sheetsPivotTableService','uniqueDataFieldName','values','getCellRaw','sheet.command.set-pivot-collapse','collections','originTargetInfo','leftOffset','setCollapse','markDirty','_deletePivotTableInstanceCache','forEach','find','_globalSubject','displayName','sheets-pivot.dateGroup.quarter','getTargetByPivotTableId','oldMatrix','setDataRecordCount','sheets-pivot.dateGroup.monthDate','return\x20','_generateUniqueVersion','getDataFieldItemInfo','220074hfebJe','handleMoveRange','params','getPivotPerformCheck','addRecord','removeValueFilterInfo','custom','registerDirtyService','_initCommandInterceptListener','split','sheets-pivot.stdDevpName','Filter','getTypeOfUnitDisposed$','_viewData','colHeaderMap','object','unshift','setPivotSetting','_ensureViewDataMap','_exclusiveRangeService','fromJSON','_initViewModelBySheetInterceptor','getformat','updateView','getRowCount','removePivotField','getFilterFieldIdByIndex','error','getDirtyInfo','Style','_initDataSendListener','foreach','sheet.mutation.pivot-update-field-position','setValue','_pivotTableInstanceCache','sourceRangeInfo','substring','_deleteModelCache','Hour','setSubtotalType','284832AnyjZw','getFieldDataType','sheets-pivot.subTotal','getDataFieldByTableId','_configService','rangeCache','getTargetByPivotId','createDataFieldId','string','SetPivotSort','rangesInfo','setSourceName','interceptor','clearExclusiveRangesByGroupId','rowCount','pivotInitCompleted$','_init','dispose','textInfo','getValuePosition','getSheetBySheetName','parse','pivotTableIndexConfig','result','width','endColumn','#1d32e9','sheets-pivot.emptyPivot.column','map','Grand\x20Total','subscribe','body','sheet.command.set-pivot-sort','sheets-pivot.grandTotal','_refRangeService','sheets-pivot.cellDateGroupDisplay.month','fieldsConfig','RemoveField','pushUndoRedo','_subjectViewChange','paths','addDirtyPivotTable','[Pivot\x20Table]:\x20Target\x20cell\x20is\x20out\x20of\x20range','sheets-pivot.dateGroup.year','sheet.mutation.send-init-pivot-text-local','Column\x20','_markDirty$','NUM','panel','subtotal','sheet.mutation.remove-group-collection','isBottomTotal','slice','keys','document','STRING','removeField','COLUMN','number','iterateField','_onRefRangeChange','sheet.command.pivot-drill-down','contains','getPivotItemRenderInfoCache','dataFieldId','_queryingMap','setConfig','handleSourceRangeChange','registerRefRange','_ensurePivotTableRangeInfo','getIntersectsPivotTable','sheets.tabs.sheet','limit\x20pivot','getSubtotal','existing','sheet.mutation.set-pivot-position','interceptCommand','columnFields','Average\x20of\x20','setPivotCollapse','dateGroupField','addExclusiveRange','Quarter','Minute','ManualFilter','valuePosition','_sheetInterceptorService','sheets-pivot.value','_configVersion$','originalFieldId','getOwnPropertyDescriptor','workbook\x20is\x20not\x20found','sheets-pivot.cellDateGroupDisplay.hour','deepClone','cornerRanges','_collectionConfigModel','filterInfo','sheets-pivot.varName','valueFilter','_initClearSelectionCommandInterceptor','colInfo','measure','getPivotTableMatrixInfo','getFieldCountByArea','getInterceptPoints','getFilterInfo','getSortInfo','SetFieldFormat','getCollection','_initLocale','getGroupFieldsInfoByIds','_pivotConfigChange$','MonthDate','registerCallbackWithEvent','has','setPivotSort','startRow','getTextSize','subTotalStyle','getColCount','viewData$','StdDevp\x20of\x20','_initConfig','updatePivotTableMatrixInfo','column','registerCommand','adjustSheetCellData','sheet.mutation.add-pivot-table','PIVOT_MUTATION_GENERATE','Subtotal','getMatrixFromRunTimeData','getTextInfo','getPivotTableIdByCell','updateViewData','setFieldFormat','sheets-pivot.dateGroup.month','getStyles','_initSnapshot','getFieldById','getFieldFormat','Collapse','setValuePivotFilter'];_0x2f15=function(){return _0xfbc50c;};return _0x2f15();}function rs(_0x10bde3,_0x35d061){const _0xf31b6c=_0x472c5c,{fieldId:_0x4dba16,filterInfo:_0x1b88a5}=_0x35d061,_0x1be591=_0x10bde3['valueFilter'][_0xf31b6c(0x1e2)](_0x12fb86=>_0x12fb86[_0xf31b6c(0x1f6)]!==_0x4dba16);_0x1b88a5&&_0x1be591[_0xf31b6c(0x2b1)]({'fieldId':_0x4dba16,'filterInfo':_0x1b88a5}),_0x10bde3[_0xf31b6c(0x145)]=_0x1be591;}function ls(_0x49fec8,_0x7082d4){const _0x2d1be9=_0x472c5c,{fieldId:_0x221c05,subtotalType:_0x57aec8}=_0x7082d4,_0x392829=We(_0x49fec8,_0x221c05);_0x392829&&(_0x392829[_0x2d1be9(0x114)]=_0x57aec8);}function cs(_0x1bfad4,_0x42a41b){const _0x3b1126=_0x472c5c,{fieldId:_0xa93acd,oldArea:_0x17f152,area:_0x15f70a,oldIndex:_0x370754,index:_0x2500c3}=_0x42a41b,_0x21aecd=_0x17f152!==_0x41d892[_0x3b1126(0x192)]&&_0x15f70a===_0x41d892[_0x3b1126(0x192)],_0x3f48a4=_0x17f152===_0x41d892[_0x3b1126(0x192)]&&_0x15f70a!==_0x41d892[_0x3b1126(0x192)];if(_0x21aecd||_0x3f48a4){const _0x4418a9=We(_0x1bfad4,_0xa93acd);_0x4418a9&&(_0x21aecd?(delete _0x1bfad4[_0x3b1126(0x28e)][_0xa93acd],_0x1bfad4[_0x3b1126(0x148)][_0xa93acd]=_0x4418a9):(delete _0x1bfad4[_0x3b1126(0x148)][_0xa93acd],_0x1bfad4[_0x3b1126(0x28e)][_0xa93acd]=_0x4418a9));}const _0x1bedbb=Nt(_0x1bfad4,_0x17f152),_0x4f88d6=Nt(_0x1bfad4,_0x15f70a);_0x1bedbb['splice'](_0x370754,0x1),_0x4f88d6[_0x3b1126(0x1e7)](_0x2500c3,0x0,_0xa93acd);}function ds(_0x5074f7,_0x30ef97){const _0x2261be=_0x472c5c,{valuePosition:_0x3fe23b,index:_0x40401c}=_0x30ef97;_0x5074f7[_0x2261be(0x138)]=_0x3fe23b,_0x5074f7['valueIndex']=_0x40401c;}function us(_0xb4a432,_0x2a005b){const _0x2f3219=_0x472c5c,{tableFieldId:_0x3411a8,sourceName:_0x24d3c7,dataFieldId:_0x35424e}=_0x2a005b,_0xa90170=We(_0xb4a432,_0x3411a8);_0xa90170&&(_0xa90170[_0x2f3219(0x199)]=_0x24d3c7,_0xa90170[_0x2f3219(0x123)]=_0x35424e);}function fs(_0x3fdb49,_0x2c03e1){const _0x1fdfd6=_0x472c5c,{fieldId:_0x6b460b,sortInfo:_0x18d709}=_0x2c03e1,_0x22c8a9=We(_0x3fdb49,_0x6b460b);_0x22c8a9&&(_0x22c8a9[_0x1fdfd6(0x2b9)]=_0x18d709);}function gs(_0x1f6cc8,_0x361f47){const _0x1926fc=_0x472c5c,{options:_0x1674fb}=_0x361f47;_0x1f6cc8[_0x1926fc(0x2c8)]={..._0x1f6cc8['options'],..._0x1674fb};}const $t={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x225),'handler'(_0x412867,_0x2a2d59){const _0x549eac=_0x472c5c;if(!_0x2a2d59)return!0x1;if(!!_0x412867[_0x549eac(0x1b7)](_0x165fcc)[_0x549eac(0x27c)](z))return!0x0;const _0x1c9e21=_0x412867[_0x549eac(0x1b7)]($),{pivotTableId:_0xf6a763,fieldJson:_0x47b559,area:_0x5d65e9,index:_0x2dbcc0,unitId:_0x45785b,subUnitId:_0xbddc97}=_0x2a2d59,_0x4da5af=_0x1c9e21[_0x549eac(0x2ca)](_0xf6a763);if(!_0x4da5af)return!0x1;let _0x7aaeb9;_0x5d65e9===_0x41d892[_0x549eac(0x192)]?_0x7aaeb9=_0x40c854(_0x47b559):_0x7aaeb9=_0x29226f(_0x47b559),_0x4da5af[_0x549eac(0x1ba)](_0x7aaeb9,_0x5d65e9,_0x2dbcc0);const _0x5f54f6=_0x1c9e21[_0x549eac(0x1ca)](_0x45785b,_0xbddc97,_0xf6a763);ts(_0x5f54f6,_0x2a2d59);const _0x19165b=_0x1c9e21['getPivotTableConfig'](_0x45785b,_0xbddc97,_0xf6a763);return _0x1c9e21['addDirtyPivotTable']({'unitId':_0x45785b,'subUnitId':_0xbddc97,'token':_0xf6a763,'type':j[_0x549eac(0x1a7)],'pivotConfig':_0x19165b}),!0x0;}},Jt={'type':_0x44b70c['MUTATION'],'id':'sheet.mutation.remove-pivot-field','handler'(_0x4e176b,_0x4cb689){const _0x2c34b9=_0x472c5c;if(!_0x4cb689)return!0x1;if(!!_0x4e176b[_0x2c34b9(0x1b7)](_0x165fcc)[_0x2c34b9(0x27c)](z))return!0x0;const _0x1826be=_0x4e176b[_0x2c34b9(0x1b7)]($),{pivotTableId:_0xdf8ab,fieldId:_0x4c461c,unitId:_0x3ca1e5,subUnitId:_0x4aeea0}=_0x4cb689,_0x399da7=_0x1826be[_0x2c34b9(0x2ca)](_0xdf8ab);if(!_0x399da7)return!0x1;_0x399da7[_0x2c34b9(0x11b)](_0x4c461c);const _0x523447=_0x1826be[_0x2c34b9(0x1ca)](_0x3ca1e5,_0x4aeea0,_0xdf8ab);os(_0x523447,_0x4cb689);const _0x2cfcd9=_0x1826be[_0x2c34b9(0x17d)](_0x3ca1e5,_0x4aeea0,_0xdf8ab);return _0x1826be[_0x2c34b9(0x10c)]({'unitId':_0x3ca1e5,'subUnitId':_0x4aeea0,'token':_0xdf8ab,'type':j[_0x2c34b9(0x1a7)],'pivotConfig':_0x2cfcd9}),!0x0;}},Wt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x20e),'handler'(_0x1ea2b3,_0x409c8c){const _0x331ff3=_0x472c5c;if(!_0x409c8c)return!0x1;if(!!_0x1ea2b3[_0x331ff3(0x1b7)](_0x165fcc)[_0x331ff3(0x27c)](z))return!0x0;const _0x59f45b=_0x1ea2b3['get']($),{unitId:_0x5f0820,subUnitId:_0x36c266,pivotTableId:_0x5e1ece,fieldId:_0x16ca22,name:_0x249990}=_0x409c8c,_0x32fee1=_0x59f45b[_0x331ff3(0x2ca)](_0x5e1ece);if(!_0x32fee1)return!0x1;_0x32fee1[_0x331ff3(0x206)](_0x16ca22,_0x249990);const _0x5e1d27=_0x59f45b['getPivotTableModelConfig'](_0x5f0820,_0x36c266,_0x5e1ece);return ns(_0x5e1d27,_0x409c8c),_0x59f45b[_0x331ff3(0x10c)]({'unitId':_0x5f0820,'subUnitId':_0x36c266,'token':_0x5e1ece,'type':j[_0x331ff3(0x1a7)]}),!0x0;}},Gt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x2e7),'handler'(_0x503d5c,_0x41a390){const _0x51bbdd=_0x472c5c;if(!_0x41a390)return!0x1;if(!!_0x503d5c[_0x51bbdd(0x1b7)](_0x165fcc)[_0x51bbdd(0x27c)](z))return!0x0;const _0x441276=_0x503d5c['get']($),{unitId:_0x39c683,subUnitId:_0x364cf5,pivotTableId:_0x56b1a7,fieldId:_0x4db49e,collapse:_0x3e680f,item:_0x25c8f6}=_0x41a390,_0x588235=_0x441276[_0x51bbdd(0x2ca)](_0x56b1a7);if(!_0x588235)return!0x1;_0x588235['setCollapse'](_0x4db49e,_0x3e680f,_0x25c8f6);const _0x85c454=_0x441276['getPivotTableModelConfig'](_0x39c683,_0x364cf5,_0x56b1a7);return is(_0x85c454,_0x41a390),_0x441276['addDirtyPivotTable']({'unitId':_0x39c683,'subUnitId':_0x364cf5,'token':_0x56b1a7,'type':j[_0x51bbdd(0x1a7)]}),!0x0;}},Xt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x1f2),'handler'(_0x17d2ec,_0x5d3378){const _0x1abbc6=_0x472c5c;if(!_0x5d3378)return!0x1;if(!!_0x17d2ec['get'](_0x165fcc)['getConfig'](z))return!0x0;const _0x5c3c9e=_0x17d2ec[_0x1abbc6(0x1b7)]($),{unitId:_0x302004,subUnitId:_0x5b28e7,pivotTableId:_0x7a719e,fieldId:_0x15da8f,format:_0x15b9b4}=_0x5d3378,_0x22eb34=_0x5c3c9e[_0x1abbc6(0x2ca)](_0x7a719e);if(!_0x22eb34)return!0x1;_0x22eb34['setFieldFormat'](_0x15da8f,_0x15b9b4);const _0x521b16=_0x5c3c9e['getPivotTableModelConfig'](_0x302004,_0x5b28e7,_0x7a719e);return ss(_0x521b16,_0x5d3378),_0x5c3c9e[_0x1abbc6(0x10c)]({'unitId':_0x302004,'subUnitId':_0x5b28e7,'token':_0x7a719e,'type':j[_0x1abbc6(0x1a7)]}),!0x0;}},Kt={'type':_0x44b70c['MUTATION'],'id':_0x472c5c(0x2a4),'handler'(_0x6e6229,_0x3515f8){const _0x14ed97=_0x472c5c;if(!_0x3515f8)return!0x1;if(!!_0x6e6229[_0x14ed97(0x1b7)](_0x165fcc)[_0x14ed97(0x27c)](z))return!0x0;const _0x3ed511=_0x6e6229['get']($),{unitId:_0x1c0907,subUnitId:_0x13f3f6,pivotTableId:_0x31d29a,fieldId:_0x52113a,filterInfo:_0x367ea3}=_0x3515f8,_0x313e35=_0x3ed511[_0x14ed97(0x2ca)](_0x31d29a);if(!_0x313e35)return!0x1;_0x313e35[_0x14ed97(0x2eb)](_0x52113a,_0x367ea3);const _0x3d97a2=_0x3ed511['getPivotTableModelConfig'](_0x1c0907,_0x13f3f6,_0x31d29a);return as(_0x3d97a2,_0x3515f8),_0x3ed511[_0x14ed97(0x10c)]({'unitId':_0x1c0907,'subUnitId':_0x13f3f6,'token':_0x31d29a,'type':j[_0x14ed97(0x1a7)]}),!0x0;}},Ht={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x2a6),'handler'(_0x5a9796,_0x2546a4){const _0x40a522=_0x472c5c;if(!_0x2546a4)return!0x1;if(!!_0x5a9796[_0x40a522(0x1b7)](_0x165fcc)['getConfig'](z))return!0x0;const _0x22eb35=_0x5a9796[_0x40a522(0x1b7)]($),{unitId:_0x282ef7,subUnitId:_0x3827fb,pivotTableId:_0xf62a18,options:_0x2a1f27}=_0x2546a4,_0x571afb=_0x22eb35['getPivotTableInstance'](_0xf62a18);if(!_0x571afb)return!0x1;_0x571afb[_0x40a522(0x1f3)](_0x2a1f27);const _0x519e41=_0x22eb35[_0x40a522(0x1ca)](_0x282ef7,_0x3827fb,_0xf62a18);return gs(_0x519e41,_0x2546a4),_0x22eb35['addDirtyPivotTable']({'unitId':_0x282ef7,'subUnitId':_0x3827fb,'token':_0xf62a18,'type':j[_0x40a522(0x1a7)]}),!0x0;}},qt={'type':_0x44b70c[_0x472c5c(0x301)],'id':'sheet.mutation.set-pivot-sort-info','handler'(_0x3054dc,_0x5549c1){const _0x45252f=_0x472c5c;if(!_0x5549c1)return!0x1;if(!!_0x3054dc[_0x45252f(0x1b7)](_0x165fcc)['getConfig'](z))return!0x0;const _0x551af5=_0x3054dc[_0x45252f(0x1b7)]($),{unitId:_0x5a505b,subUnitId:_0x226a42,pivotTableId:_0x139f31,sortInfo:_0xa84443,fieldId:_0x576f84}=_0x5549c1,_0x9b4651=_0x551af5['getPivotTableInstance'](_0x139f31);if(!_0x9b4651)return!0x1;_0x9b4651[_0x45252f(0x2b7)](_0x576f84,_0xa84443);const _0x335a3b=_0x551af5[_0x45252f(0x1ca)](_0x5a505b,_0x226a42,_0x139f31);return fs(_0x335a3b,_0x5549c1),_0x551af5[_0x45252f(0x10c)]({'unitId':_0x5a505b,'subUnitId':_0x226a42,'token':_0x139f31,'type':j['Set']}),!0x0;}},zt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x24e),'handler'(_0xa83fc1,_0x364954){const _0x7cfca1=_0x472c5c;if(!_0x364954)return!0x1;if(!!_0xa83fc1['get'](_0x165fcc)[_0x7cfca1(0x27c)](z))return!0x0;const _0x1f29d6=_0xa83fc1[_0x7cfca1(0x1b7)]($),{unitId:_0x370bcc,subUnitId:_0x5f1244,pivotTableId:_0x25f767,fieldId:_0x5dcb94,subtotalType:_0x46265d}=_0x364954,_0x2f057f=_0x1f29d6[_0x7cfca1(0x2ca)](_0x25f767);if(!_0x2f057f)return!0x1;_0x2f057f['setSubtotalType'](_0x5dcb94,_0x46265d);const _0x184283=_0x1f29d6[_0x7cfca1(0x1ca)](_0x370bcc,_0x5f1244,_0x25f767);return ls(_0x184283,_0x364954),_0x1f29d6[_0x7cfca1(0x10c)]({'unitId':_0x370bcc,'subUnitId':_0x5f1244,'token':_0x25f767,'type':j[_0x7cfca1(0x1a7)]}),!0x0;}},Yt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x97),'handler'(_0x113295,_0x17dad5){const _0x475fc2=_0x472c5c;if(!_0x17dad5)return!0x1;if(!!_0x113295[_0x475fc2(0x1b7)](_0x165fcc)['getConfig'](z))return!0x0;const _0x294b97=_0x113295[_0x475fc2(0x1b7)]($),{unitId:_0x402e23,subUnitId:_0xd43692,pivotTableId:_0x4f2ca5,fieldId:_0x5a914f,filterInfo:_0x615425}=_0x17dad5,_0x156f4a=_0x294b97['getPivotTableInstance'](_0x4f2ca5);if(!_0x156f4a)return!0x1;_0x156f4a['setValueFilterInfo'](_0x5a914f,_0x615425);const _0x43aa96=_0x294b97[_0x475fc2(0x1ca)](_0x402e23,_0xd43692,_0x4f2ca5);return rs(_0x43aa96,_0x17dad5),_0x294b97['addDirtyPivotTable']({'unitId':_0x402e23,'subUnitId':_0xd43692,'token':_0x4f2ca5,'type':j[_0x475fc2(0x1a7)]}),!0x0;}},Qt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0xdb),'handler'(_0xaf58f,_0x432e6b){const _0x1a9cab=_0x472c5c;if(!_0x432e6b)return!0x1;if(!!_0xaf58f[_0x1a9cab(0x1b7)](_0x165fcc)[_0x1a9cab(0x27c)](z))return!0x0;const _0x161eca=_0xaf58f[_0x1a9cab(0x1b7)]($),{unitId:_0x55bfcc,subUnitId:_0x1988e0,pivotTableId:_0xe6b36e,area:_0x51114b,index:_0x6711b3,fieldId:_0xbb1bf8}=_0x432e6b,_0x4897af=_0x161eca[_0x1a9cab(0x2ca)](_0xe6b36e);if(!_0x4897af)return!0x1;_0x4897af[_0x1a9cab(0x19f)](_0xbb1bf8,_0x51114b,_0x6711b3);const _0xb6232b=_0x161eca[_0x1a9cab(0x1ca)](_0x55bfcc,_0x1988e0,_0xe6b36e);return cs(_0xb6232b,_0x432e6b),_0x161eca[_0x1a9cab(0x10c)]({'unitId':_0x55bfcc,'subUnitId':_0x1988e0,'token':_0xe6b36e,'type':j[_0x1a9cab(0x1a7)]}),!0x0;}},Zt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x2f3),'handler'(_0x1876c0,_0x3f47a6){const _0x3b5563=_0x472c5c;if(!_0x3f47a6)return!0x1;if(!!_0x1876c0[_0x3b5563(0x1b7)](_0x165fcc)[_0x3b5563(0x27c)](z))return!0x0;const _0x2b36c1=_0x1876c0['get']($),{unitId:_0x509bb0,subUnitId:_0x3d888c,pivotTableId:_0x4503a3,sourceName:_0x465dc7,dataFieldId:_0xd907f8,tableFieldId:_0x4f00e1}=_0x3f47a6,_0x5c6852=_0x2b36c1[_0x3b5563(0x2ca)](_0x4503a3);if(!_0x5c6852)return!0x1;_0x5c6852[_0x3b5563(0x231)](_0x4f00e1,_0x465dc7,_0xd907f8);const _0x2d0b6b=_0x2b36c1[_0x3b5563(0x1ca)](_0x509bb0,_0x3d888c,_0x4503a3);return us(_0x2d0b6b,_0x3f47a6),_0x2b36c1[_0x3b5563(0x10c)]({'unitId':_0x509bb0,'subUnitId':_0x3d888c,'token':_0x4503a3,'type':j[_0x3b5563(0x1a7)]}),!0x0;}},eo={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x29b),'handler'(_0x1cfbbb,_0xc6fb03){const _0x428509=_0x472c5c;if(!_0xc6fb03)return!0x1;if(!!_0x1cfbbb[_0x428509(0x1b7)](_0x165fcc)[_0x428509(0x27c)](z))return!0x0;const _0xba6ad2=_0x1cfbbb[_0x428509(0x1b7)]($),{unitId:_0x1fbb8c,subUnitId:_0x12dbc2,pivotTableId:_0x4c58fd,valuePosition:_0x344480,index:_0x299a8a}=_0xc6fb03,_0x48e717=_0xba6ad2['getPivotTableInstance'](_0x4c58fd);if(!_0x48e717)return!0x1;_0x48e717['updateValuePosition'](_0x344480,_0x299a8a);const _0x332c57=_0xba6ad2[_0x428509(0x1ca)](_0x1fbb8c,_0x12dbc2,_0x4c58fd);return ds(_0x332c57,_0xc6fb03),_0xba6ad2[_0x428509(0x10c)]({'unitId':_0x1fbb8c,'subUnitId':_0x12dbc2,'token':_0x4c58fd,'type':j[_0x428509(0x1a7)]}),!0x0;}};function me(_0x1e713b,_0x1abb6d,_0x3a4529){const _0x1901b6=_0x472c5c,{pivotTableId:_0x346ee0,unitId:_0x490584,subUnitId:_0x4b2ff1}=_0x1abb6d,_0x167ddb=[],_0x3ad4fe=[];for(const _0x548538 of _0x3a4529)switch(_0x548538[_0x1901b6(0x18a)]){case _0x5dfa99[_0x1901b6(0x2fd)]:{const {fieldJson:_0x462cea,area:_0x553e80,index:_0x5d8092}=_0x548538,_0xb6bd96={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldJson':_0x462cea,'area':_0x553e80,'index':_0x5d8092},_0x24c7d2={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x462cea['id'],'area':_0x553e80,'index':_0x5d8092};_0x167ddb[_0x1901b6(0x2b1)]({'id':$t['id'],'params':_0xb6bd96}),_0x3ad4fe['unshift']({'id':Jt['id'],'params':_0x24c7d2});}break;case _0x5dfa99['SetSubtotalType']:{const {fieldId:_0x1b57bd,newSubtotalType:_0x5db695,oldSubtotalType:_0x412957}=_0x548538,_0x45cee6={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x1b57bd,'subtotalType':_0x5db695};_0x167ddb[_0x1901b6(0x2b1)]({'id':zt['id'],'params':_0x45cee6});const _0x43d826={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x1b57bd,'subtotalType':_0x412957};_0x3ad4fe['unshift']({'id':zt['id'],'params':_0x43d826});}break;case _0x5dfa99[_0x1901b6(0x108)]:{const {fieldId:_0x557559,fieldJson:_0x33220e,area:_0x276100,index:_0x57e6cd}=_0x548538,_0x5e8d11={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x557559,'index':_0x57e6cd,'area':_0x276100};_0x167ddb['push']({'id':Jt['id'],'params':_0x5e8d11});const _0x2d745e={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldJson':_0x33220e,'area':_0x276100,'index':_0x57e6cd};_0x3ad4fe[_0x1901b6(0xcb)]({'id':$t['id'],'params':_0x2d745e});}break;case _0x5dfa99[_0x1901b6(0x2dd)]:{const {fieldId:_0x49f1d0,oldName:_0x3bf621,newName:_0xad8b5a}=_0x548538,_0x4f6683={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x49f1d0,'name':_0xad8b5a};_0x167ddb['push']({'id':Wt['id'],'params':_0x4f6683});const _0x256f6e={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x49f1d0,'name':_0x3bf621};_0x3ad4fe[_0x1901b6(0xcb)]({'id':Wt['id'],'params':_0x256f6e});}break;case _0x5dfa99['SetFilterInfo']:{const {fieldId:_0x47499f,oldFilterInfo:_0x5271dc,newFilterInfo:_0x536b20}=_0x548538,_0x259bf9={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x47499f,'filterInfo':_0x536b20};_0x167ddb[_0x1901b6(0x2b1)]({'id':Kt['id'],'params':_0x259bf9});const _0x253cb5={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x47499f,'filterInfo':_0x5271dc};_0x3ad4fe[_0x1901b6(0xcb)]({'id':Kt['id'],'params':_0x253cb5});}break;case _0x5dfa99[_0x1901b6(0x271)]:{const {fieldId:_0x48077e,oldSortInfo:_0x1a2e61,newSortInfo:_0xbd3448}=_0x548538,_0x2c665d={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x48077e,'sortInfo':_0xbd3448};_0x167ddb[_0x1901b6(0x2b1)]({'id':qt['id'],'params':_0x2c665d});const _0x162dfb={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x48077e,'sortInfo':_0x1a2e61};_0x3ad4fe['unshift']({'id':qt['id'],'params':_0x162dfb});}break;case _0x5dfa99[_0x1901b6(0x22b)]:{const {oldOptions:_0x52c995,newOptions:_0x55d2f7}=_0x548538,_0xfa0a4a={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'options':_0x55d2f7};_0x167ddb['push']({'id':Ht['id'],'params':_0xfa0a4a});const _0x2b9913={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'options':_0x52c995};_0x3ad4fe[_0x1901b6(0xcb)]({'id':Ht['id'],'params':_0x2b9913});}break;case _0x5dfa99[_0x1901b6(0x1cc)]:{const {oldArea:_0x248572,newArea:_0x57aef4,oldIndex:_0x503982,newIndex:_0x358c69,fieldId:_0x298b6f}=_0x548538,_0x2b970c={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x298b6f,'area':_0x57aef4,'index':_0x358c69,'oldArea':_0x248572,'oldIndex':_0x503982};_0x167ddb['push']({'id':Qt['id'],'params':_0x2b970c});const _0x3a94b8={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x298b6f,'area':_0x248572,'index':_0x503982,'oldArea':_0x57aef4,'oldIndex':_0x358c69};_0x3ad4fe[_0x1901b6(0xcb)]({'id':Qt['id'],'params':_0x3a94b8});}break;case _0x5dfa99[_0x1901b6(0x20a)]:{const {oldValuePosition:_0x5c84cb,newValuePosition:_0x4b6edb,oldIndex:_0x3333b6,newIndex:_0x5ae844}=_0x548538,_0xba1db5={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'valuePosition':_0x4b6edb,'index':_0x5ae844};_0x167ddb[_0x1901b6(0x2b1)]({'id':eo['id'],'params':_0xba1db5});const _0x158683={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'valuePosition':_0x5c84cb,'index':_0x3333b6};_0x3ad4fe['unshift']({'id':eo['id'],'params':_0x158683});}break;case _0x5dfa99[_0x1901b6(0x1c3)]:{const {fieldId:_0x192d46,collapse:_0x2ae972,item:_0x29b0d4}=_0x548538,_0x33bcd9={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x192d46,'collapse':_0x2ae972,'item':_0x29b0d4};_0x167ddb[_0x1901b6(0x2b1)]({'id':Gt['id'],'params':_0x33bcd9});const _0x306a26={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x192d46,'collapse':!_0x2ae972,'item':_0x29b0d4};_0x3ad4fe[_0x1901b6(0xcb)]({'id':Gt['id'],'params':_0x306a26});}break;case _0x5dfa99[_0x1901b6(0x14e)]:{const {newFormat:_0x3781a8,oldFormat:_0x3ad740,fieldId:_0x23d129}=_0x548538,_0x113cb3={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x23d129,'format':_0x3781a8};_0x167ddb[_0x1901b6(0x2b1)]({'id':Xt['id'],'params':_0x113cb3});const _0x3257f0={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x23d129,'format':_0x3ad740};_0x3ad4fe['unshift']({'id':Xt['id'],'params':_0x3257f0});}break;case _0x5dfa99[_0x1901b6(0x24f)]:{const {tableFieldId:_0x37bc5e,oldSourceName:_0x1947b3,newSourceName:_0x4fcb05,oldDataFieldId:_0x97b68c,newDataFieldId:_0x4ef5d4}=_0x548538,_0x12f3bb={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'tableFieldId':_0x37bc5e,'sourceName':_0x4fcb05,'dataFieldId':_0x4ef5d4};_0x167ddb[_0x1901b6(0x2b1)]({'id':Zt['id'],'params':_0x12f3bb});const _0xfa26f8={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'tableFieldId':_0x37bc5e,'sourceName':_0x1947b3,'dataFieldId':_0x97b68c};_0x3ad4fe[_0x1901b6(0xcb)]({'id':Zt['id'],'params':_0xfa26f8});}break;case _0x5dfa99[_0x1901b6(0x25c)]:{const {fieldId:_0x1ac613,filterInfo:_0xc2a67d,oldFilterInfo:_0x18ab4b}=_0x548538,_0x4baac5={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x1ac613,'filterInfo':_0xc2a67d};_0x167ddb['push']({'id':Yt['id'],'params':_0x4baac5});const _0x49d20c={'unitId':_0x490584,'subUnitId':_0x4b2ff1,'pivotTableId':_0x346ee0,'fieldId':_0x1ac613,'filterInfo':_0x18ab4b};_0x3ad4fe['unshift']({'id':Yt['id'],'params':_0x49d20c});}}return{'redos':_0x167ddb,'undos':_0x3ad4fe};}function _e(_0xd7895c,_0x3ccb33){const _0x29c181=_0x472c5c;var _0x27dfd0;const _0xa7d7e9=_0xd7895c[_0x29c181(0x1b7)](ie),{cellInfo:_0x4c6ecd,view:_0x4b8aca,isEmpty:_0x3894ba}=_0x3ccb33;return(_0x27dfd0=_0xa7d7e9[_0x29c181(0xef)][_0x29c181(0x17f)](Jo)(Po,{'cellInfo':_0x4c6ecd,'view':_0x4b8aca,'isEmpty':_0x3894ba}))!=null?_0x27dfd0:Po;}const hs={'type':_0x44b70c['COMMAND'],'id':'sheet.command.add-pivot-field',async 'handler'(_0x2c8886,_0x38f592){const _0x178e1d=_0x472c5c;if(!_0x38f592)return!0x1;const _0x4d0fa3=_0x2c8886['get'](_0x88b8f4),_0x445c64=_0x2c8886[_0x178e1d(0x1b7)](Q),_0x564cce=_0x2c8886[_0x178e1d(0x1b7)](_0xe44e0e),{pivotTableId:_0xee9e48,dataFieldId:_0x183c0f,fieldArea:_0x1d688b,index:_0x5b1dd6,unitId:_0xe94e19,subUnitId:_0x57c30c}=_0x38f592,_0x5f7caf=(await _0x445c64[_0x178e1d(0x1a0)]({'unitId':_0xe94e19,'subUnitId':_0x57c30c,'pivotTableId':_0xee9e48,'params':{'type':k[_0x178e1d(0x2ed)],'addPivotField':{'dataFieldId':_0x183c0f,'fieldArea':_0x1d688b,'index':_0x5b1dd6}}}))[_0x178e1d(0xfa)]['addPivotField'];if(!_0x5f7caf)return!0x1;const {view:_0x2c86f6,changesets:_0x411a33,isEmpty:_0x466cea,pivotTableConfig:_0x362cc5,shouldBeAddedGroupJSON:_0x24c344}=_0x5f7caf,_0x1ee0fb=_0x362cc5['targetCellInfo'],_0x531f0a=new _0x2df958();_0x531f0a[_0x178e1d(0x2fb)](_0x2c86f6);const _0x4d7bb3={'cellInfo':_0x1ee0fb,'view':_0x531f0a,'isEmpty':_0x466cea};if(!await _0x2c8886[_0x178e1d(0x1b7)](ie)[_0x178e1d(0x1ab)][_0x178e1d(0x2be)](be)(!0x0,_0x4d7bb3))return!0x1;const _0x556116=we(_0x2c8886,_0x531f0a,_0x1ee0fb,_0x466cea),_0x470a33=_e(_0x2c8886,_0x4d7bb3),{undos:_0x3f1cf4,redos:_0x57a3d7}=me(_0x4d0fa3,{'pivotTableId':_0xee9e48,'unitId':_0xe94e19,'subUnitId':_0x57c30c},_0x411a33);return _0x24c344&&(_0x57a3d7[_0x178e1d(0xcb)]({'id':Yo['id'],'params':{'pivotTableId':_0xee9e48,'fieldJSON':_0x24c344,'unitId':_0xe94e19,'subUnitId':_0x57c30c}}),_0x3f1cf4[_0x178e1d(0x2b1)]({'id':Qo['id'],'params':{'pivotTableId':_0xee9e48,'dataFieldId':_0x24c344['id'],'unitId':_0xe94e19,'subUnitId':_0x57c30c}})),_0x427a5a([..._0x556116[_0x178e1d(0x99)],..._0x470a33[_0x178e1d(0x99)],..._0x57a3d7],_0x4d0fa3),_0x564cce[_0x178e1d(0x109)]({'unitID':_0xe94e19,'redoMutations':[..._0x556116[_0x178e1d(0x99)],..._0x470a33[_0x178e1d(0x99)],..._0x57a3d7],'undoMutations':[..._0x556116[_0x178e1d(0x288)],..._0x470a33[_0x178e1d(0x288)],..._0x3f1cf4]}),!0x0;}},vs=()=>typeof process<'u'&&process[_0x472c5c(0x1e4)]!=null&&process['versions'][_0x472c5c(0x1d7)]!=null,Ct={'type':_0x44b70c['MUTATION'],'id':_0x472c5c(0x162),'handler'(_0x1d109e,_0x89dc32){const _0x249c04=_0x472c5c;var _0x19b29c;if(!_0x89dc32)return!0x1;const _0x53ba55=_0x1d109e[_0x249c04(0x1b7)](_0x165fcc);if(!!_0x53ba55['getConfig'](z))return!0x0;const _0x134177=_0x1d109e[_0x249c04(0x1b7)](_0xcf6c15),_0xff9da2=_0x1d109e[_0x249c04(0x1b7)]($),{pivotTableId:_0x47e646,pivotTableConfig:_0x4c49df,collectionConfig:_0x911a8,unitId:_0x3fe3b2,subUnitId:_0x5e6792}=_0x89dc32,{sourceRangeInfo:_0x72e983,fieldsConfig:_0x2f13cc,targetCellInfo:_0x45953d}=_0x4c49df,_0x134034=_0x134177[_0x249c04(0x236)](_0x3fe3b2);if(!_0x134034||!_0x134034[_0x249c04(0x177)](_0x5e6792))return!0x1;if(!vs()){let _0x41092b=0x0;_0x134034['getSheets']()[_0x249c04(0xaf)](_0x1393d9=>{const _0x56c5d8=_0x249c04;var _0x5f58a1,_0x56a8e8;_0x41092b+=(_0x56a8e8=(_0x5f58a1=_0xff9da2[_0x56c5d8(0x252)](_0x3fe3b2,_0x1393d9[_0x56c5d8(0x20c)]()))==null?void 0x0:_0x5f58a1[_0x56c5d8(0x2e9)])!=null?_0x56a8e8:0x0;});const _0xe10de4=(_0x19b29c=_0x53ba55[_0x249c04(0x27c)](_0x6e1078))!=null?_0x19b29c:{},{ls:_0xc586f4,pbk:_0x38dcfb}=_0xe10de4;if(!Ko(_0xc586f4,_0x38dcfb))throw new _0x3d555a(_0x249c04(0x12b));const _0x1429f0=go(so,_0xc586f4,_0x38dcfb)[_0x249c04(0x2a1)];if(_0x41092b>=_0x1429f0)throw new _0x3d555a(_0x249c04(0x12b));}if(!_0x911a8||!_0x2f13cc)return!0x1;const {collection:_0xba6fba,updateDataFieldList:_0x59a5c5}=_0xff9da2[_0x249c04(0x2f2)](_0x47e646,_0x911a8,_0x72e983,_0x45953d);_0xff9da2[_0x249c04(0x299)](_0xba6fba,_0x59a5c5,_0x72e983);const _0x5350d2=new _0x71cb7e(_0xba6fba,void 0x0,_0x47e646);_0x5350d2[_0x249c04(0xcf)](_0x2f13cc);const _0x4d23eb=JSON[_0x249c04(0xf8)](JSON[_0x249c04(0x1ef)](_0x4c49df));return _0xff9da2[_0x249c04(0x279)](_0x3fe3b2,_0x5e6792,_0x47e646,_0x5350d2,_0x4d23eb),_0xff9da2[_0x249c04(0x10c)]({'unitId':_0x3fe3b2,'subUnitId':_0x5e6792,'token':_0x47e646,'type':j['Add'],'pivotConfig':_0x4d23eb}),!0x0;}},ps={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0x278),async 'handler'(_0x3acc8e,_0x4ccb44){const _0x4858c8=_0x472c5c;if(!_0x4ccb44)return!0x1;const {sourceDataInfo:_0x5cb87f,pivotTableConfig:_0x2e51f2}=_0x4ccb44;if(!_0x5cb87f||!_0x2e51f2)return!0x1;const {unitId:_0x4ce45e,subUnitId:_0x548cea,range:_0x57d78f}=_0x5cb87f,_0x380164=_0x3acc8e[_0x4858c8(0x1b7)](_0xcf6c15),_0x92fdad=_0x3acc8e[_0x4858c8(0x1b7)](Q),_0x3ccb88=_0x3acc8e[_0x4858c8(0x1b7)](_0x175f03),_0x4fbe4a=_0x3acc8e[_0x4858c8(0x1b7)](_0x88b8f4),_0x5cc4d0=_0x380164[_0x4858c8(0x236)](_0x4ce45e);if(!_0x5cc4d0)return!0x1;const _0x5d86af=_0x5cc4d0['getSheetBySheetId'](_0x548cea);if(!_0x5d86af)return!0x1;const _0x291383=_0x5460c5(0x8),_0x54121b=_0x57d78f||{'startRow':0x0,'startColumn':0x0,'endRow':_0x5d86af[_0x4858c8(0xd3)]()-0x1,'endColumn':_0x5d86af[_0x4858c8(0x230)]()-0x1};_0x54121b['rangeType']=_0x127b18['NORMAL'];const _0x3714f4=(await _0x92fdad[_0x4858c8(0x1a0)]({'unitId':_0x4ce45e,'subUnitId':_0x548cea,'pivotTableId':_0x291383,'params':{'type':k[_0x4858c8(0x284)],'addPivotTableWithConfig':{'sourceRangeInfo':{'unitId':_0x4ce45e,'sheetName':_0x5d86af[_0x4858c8(0x1fe)](),'subUnitId':_0x548cea,'range':_0x54121b},'pivotTableId':_0x291383,'pivotTableIndexConfig':_0x2e51f2}}}))['result'][_0x4858c8(0x1c6)];if(!_0x3714f4)return!0x1;const {isEmpty:_0x34de25,fieldsConfig:_0x2a1508,collectionConfig:_0x296d56,changesets:_0x5bca06}=_0x3714f4,_0x5f1f27=_0x5cc4d0[_0x4858c8(0x26b)]()['length'],_0x3d405e=_0x327317({'rowCount':_0x5d86af['getRowCount']()-0x1,'columnCount':_0x5d86af['getColumnCount']()-0x1});_0x3d405e['id']=_0x32b281(),_0x3d405e[_0x4858c8(0x7e)]=_0x5cc4d0[_0x4858c8(0x18e)](''+_0x3ccb88['t'](_0x4858c8(0x12a)));const _0x3f5899={'index':_0x5f1f27,'sheet':_0x3d405e,'unitId':_0x4ce45e},{redos:_0x26a473}=me(_0x4fbe4a,{'pivotTableId':_0x291383,'unitId':_0x4ce45e,'subUnitId':_0x3d405e['id']},_0x5bca06),_0x187b0b=[{'id':_0x2aa444['id'],'params':_0x3f5899},{'id':Ct['id'],'params':{'unitId':_0x4ce45e,'subUnitId':_0x3d405e['id'],'pivotTableId':_0x291383,'pivotTableConfig':{'isEmpty':_0x34de25,'fieldsConfig':_0x2a1508,'targetCellInfo':{'row':0x0,'col':0x0,'unitId':_0x4ce45e,'subUnitId':_0x3d405e['id']},'sourceRangeInfo':{'subUnitId':_0x548cea,'unitId':_0x4ce45e,'range':_0x54121b,'sheetName':_0x5d86af[_0x4858c8(0x1fe)]()}},'collectionConfig':_0x296d56}},..._0x26a473];return _0x427a5a(_0x187b0b,_0x4fbe4a),!0x0;}},Ot={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x202),'handler'(_0x1b415b,_0x5bf765){const _0x5139d2=_0x472c5c;if(!_0x5bf765)return!0x1;if(!!_0x1b415b['get'](_0x165fcc)[_0x5139d2(0x27c)](z))return!0x0;const {pivotTableId:_0x367b57,unitId:_0x2044a3,subUnitId:_0x355088}=_0x5bf765,_0x59120c=_0x1b415b[_0x5139d2(0x1b7)]($);return _0x59120c[_0x5139d2(0x17d)](_0x2044a3,_0x355088,_0x367b57)?(_0x59120c[_0x5139d2(0x10c)]({'unitId':_0x2044a3,'subUnitId':_0x355088,'token':_0x367b57,'type':j[_0x5139d2(0x2f1)]}),_0x59120c[_0x5139d2(0x280)](_0x2044a3,_0x355088,_0x367b57),!0x0):!0x1;}},ms={'type':_0x44b70c[_0x472c5c(0x25b)],'id':'sheet.command.add-pivot-table',async 'handler'(_0x4b94a1,_0x491713){const _0x30dae2=_0x472c5c;var _0x3c25df,_0x16d3c3;const _0x1cfe7d=_0x4b94a1[_0x30dae2(0x1b7)](_0x88b8f4),_0x261c14=_0x4b94a1[_0x30dae2(0x1b7)](_0xcf6c15),_0x5dd000=_0x4b94a1['get'](_0x175f03),_0x9a7467=_0x4b94a1[_0x30dae2(0x1b7)](Q),_0x56f0d3=_0x4b94a1[_0x30dae2(0x1b7)](_0xe44e0e),_0x45b34e=_0x4b94a1[_0x30dae2(0x1b7)](ve),_0x2001b8=_0x4b94a1[_0x30dae2(0x1b7)](_0x165fcc);if(!_0x491713)return!0x1;const {pivotTableConfig:_0x5484a5,positionType:_0x2fff2c}=_0x491713,{targetCellInfo:_0x5e6ff4,sourceRangeInfo:_0x55a4bf}=_0x5484a5,{unitId:_0x2fa4e4,subUnitId:_0xd46d90}=_0x5e6ff4,_0x3db5b0=_0x261c14[_0x30dae2(0x236)](_0x2fa4e4);if(!_0x3db5b0)return!0x1;let _0x2f1cf8=0x0;_0x3db5b0['getSheets']()[_0x30dae2(0xaf)](_0x18beb0=>{const _0x5b7574=_0x30dae2;var _0x3d3bbc,_0x5dbae0;_0x2f1cf8+=(_0x5dbae0=(_0x3d3bbc=_0x45b34e['getSubUnitPivotConfigs'](_0x2fa4e4,_0x18beb0[_0x5b7574(0x20c)]()))==null?void 0x0:_0x3d3bbc[_0x5b7574(0x2e9)])!=null?_0x5dbae0:0x0;});const _0x3ccb4b=(_0x3c25df=_0x2001b8[_0x30dae2(0x27c)](_0x6e1078))!=null?_0x3c25df:{},{ls:_0x2e8155,pbk:_0x441471}=_0x3ccb4b;if(!Ko(_0x2e8155,_0x441471))return!0x1;const _0xe163d4=go(so,_0x2e8155,_0x441471)[_0x30dae2(0x2a1)];if(_0x2f1cf8>=_0xe163d4)return!0x1;const _0xd14af=_0x491713[_0x30dae2(0x22c)]||_0x5460c5(0x8),_0x49058e=(await _0x9a7467[_0x30dae2(0x1a0)]({'unitId':_0x2fa4e4,'subUnitId':_0xd46d90,'pivotTableId':_0xd14af,'params':{'type':k[_0x30dae2(0x204)],'addPivotTable':{'sourceRangeInfo':_0x55a4bf,'pivotTableId':_0xd14af}}}))['result']['addPivotTable'];if(!_0x49058e)return!0x1;const {view:_0x4be2be,isEmpty:_0xcc3097,fieldsConfig:_0x34d9fe,collectionConfig:_0x4ac61a}=_0x49058e,_0x438207=[],_0xfb06ea=[];if(_0x2fff2c===Bo['New']){const _0x30f891=_0x3db5b0[_0x30dae2(0x26b)]()[_0x30dae2(0x238)],_0x32fa2a=_0x327317({});_0x32fa2a['id']=_0x5484a5[_0x30dae2(0x26a)][_0x30dae2(0x1dc)],_0x32fa2a[_0x30dae2(0x7e)]=(_0x16d3c3=_0x5484a5['targetCellInfo'][_0x30dae2(0x185)])!=null?_0x16d3c3:_0x3db5b0[_0x30dae2(0x18e)](''+_0x5dd000['t'](_0x30dae2(0x12a)));const _0x4cc7a1={'index':_0x30f891,'sheet':_0x32fa2a,'unitId':_0x2fa4e4},_0x48a7f2=_0x3c69a5(_0x4b94a1,_0x4cc7a1);_0x438207[_0x30dae2(0x2b1)]({'id':_0x4f2db5['id'],'params':_0x48a7f2}),_0xfb06ea['push']({'id':_0x42bceb['id'],'params':_0x4cc7a1});}else{if(!_0x3db5b0[_0x30dae2(0x177)](_0xd46d90))return!0x1;const _0x5bbc46=we(_0x4b94a1,new _0x2df958(),_0x5e6ff4,!0x0);_0xfb06ea[_0x30dae2(0x2b1)](..._0x5bbc46[_0x30dae2(0x99)]),_0x438207[_0x30dae2(0x2b1)](..._0x5bbc46[_0x30dae2(0x288)]);const _0x1162a4={'cellInfo':_0x5e6ff4,'view':_0x4be2be,'isEmpty':_0xcc3097};if(!await _0x4b94a1['get'](ie)['asyncInterceptor'][_0x30dae2(0x2be)](be)(!0x0,_0x1162a4))return!0x1;const _0x594103=_e(_0x4b94a1,_0x1162a4);_0xfb06ea[_0x30dae2(0x2b1)](..._0x594103[_0x30dae2(0x99)]),_0x438207['push'](..._0x594103[_0x30dae2(0x288)]);}return _0xfb06ea[_0x30dae2(0x2b1)]({'id':Ct['id'],'params':{'unitId':_0x5e6ff4[_0x30dae2(0x218)],'subUnitId':_0x5e6ff4[_0x30dae2(0x1dc)],'pivotTableId':_0xd14af,'pivotTableConfig':{'targetCellInfo':_0x5e6ff4,'sourceRangeInfo':_0x55a4bf,'fieldsConfig':_0x34d9fe},'collectionConfig':_0x4ac61a}}),_0x438207[_0x30dae2(0xcb)]({'id':Ot['id'],'params':{'unitId':_0x2fa4e4,'subUnitId':_0xd46d90,'pivotTableId':_0xd14af}}),_0x427a5a(_0xfb06ea,_0x1cfe7d)&&_0x56f0d3[_0x30dae2(0x109)]({'unitID':_0x2fa4e4,'undoMutations':_0x438207,'redoMutations':_0xfb06ea}),!0x0;}},Is={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0x258),async 'handler'(_0x2c48a5,_0x5db800){const _0x2d97b6=_0x472c5c;if(!_0x5db800)return!0x1;const _0x9eee=_0x2c48a5[_0x2d97b6(0x1b7)](_0x88b8f4),_0x2f1bef=_0x2c48a5[_0x2d97b6(0x1b7)](Q),_0x5ed59c=_0x2c48a5['get'](_0xe44e0e),{pivotTableId:_0x3af088,fieldId:_0x21b45d,area:_0x55b011,index:_0x28989b,unitId:_0x5ec576,subUnitId:_0x57fae0}=_0x5db800,_0x2c68a1=(await _0x2f1bef['getPivotDisplayConfig']({'unitId':_0x5ec576,'subUnitId':_0x57fae0,'pivotTableId':_0x3af088,'params':{'type':k[_0x2d97b6(0x287)],'movePivotField':{'fieldId':_0x21b45d,'area':_0x55b011,'index':_0x28989b}}}))[_0x2d97b6(0xfa)][_0x2d97b6(0x2bd)];if(!_0x2c68a1)return!0x1;const {changesets:_0x218bb4,view:_0xbf6136,isEmpty:_0x17bd8e,pivotTableConfig:_0x52ee4e}=_0x2c68a1,_0x27e243=_0x52ee4e[_0x2d97b6(0x26a)],_0x5251c1=new _0x2df958();_0x5251c1[_0x2d97b6(0x2fb)](_0xbf6136);const _0x42922d={'cellInfo':_0x27e243,'view':_0x5251c1,'isEmpty':_0x17bd8e};if(!await _0x2c48a5['get'](ie)[_0x2d97b6(0x1ab)][_0x2d97b6(0x2be)](be)(!0x0,_0x42922d))return!0x1;const _0x2a83fa=we(_0x2c48a5,_0x5251c1,_0x27e243,_0x17bd8e),_0x4bf4da=_e(_0x2c48a5,_0x42922d),{redos:_0x2c71a8,undos:_0x4d85b7}=me(_0x9eee,{'pivotTableId':_0x3af088,'unitId':_0x5ec576,'subUnitId':_0x57fae0},_0x218bb4);return _0x427a5a([..._0x2a83fa[_0x2d97b6(0x99)],..._0x4bf4da[_0x2d97b6(0x99)],..._0x2c71a8],_0x9eee),_0x5ed59c['pushUndoRedo']({'unitID':_0x5ec576,'redoMutations':[..._0x2a83fa[_0x2d97b6(0x99)],..._0x4bf4da[_0x2d97b6(0x99)],..._0x2c71a8],'undoMutations':[..._0x2a83fa[_0x2d97b6(0x288)],..._0x4bf4da[_0x2d97b6(0x288)],..._0x4d85b7]}),!0x0;}},pt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x12e),'handler'(_0x4a6c25,_0x16fa17){const _0x2af07e=_0x472c5c;if(!_0x16fa17)return!0x1;if(!!_0x4a6c25[_0x2af07e(0x1b7)](_0x165fcc)[_0x2af07e(0x27c)](z))return!0x0;const {pivotTableId:_0x526672,targetCellPosition:_0x17c255,unitId:_0x200517,subUnitId:_0x29a978}=_0x16fa17,_0xec4cdc=_0x4a6c25[_0x2af07e(0x1b7)]($);if(!_0xec4cdc[_0x2af07e(0x2ca)](_0x16fa17[_0x2af07e(0x22c)]))return!0x1;const _0xd3026a=_0xec4cdc[_0x2af07e(0xe9)](_0x526672);if(!_0xd3026a)return!0x1;const _0x4e1684=_0xec4cdc[_0x2af07e(0x14f)](_0xd3026a[_0x2af07e(0x218)],_0x16fa17[_0x2af07e(0x22c)]);if(!_0x4e1684)return!0x1;const _0x49cfc8=_0xec4cdc['getPivotTableConfig'](_0xd3026a[_0x2af07e(0x218)],_0xd3026a[_0x2af07e(0x1dc)],_0x526672);if(!_0x49cfc8)return!0x1;const _0x40cea2=_0x4dd2cd[_0x2af07e(0x140)](_0x49cfc8);_0x40cea2[_0x2af07e(0x26a)]={'unitId':_0x200517,'subUnitId':_0x29a978,'row':_0x17c255[_0x2af07e(0x2e1)],'col':_0x17c255[_0x2af07e(0x2e3)]};const _0x4e68a9=_0x4e1684[_0x2af07e(0x9e)]();if(_0xd3026a[_0x2af07e(0x1dc)]===_0x29a978&&_0xd3026a[_0x2af07e(0x218)]===_0x200517)_0xec4cdc[_0x2af07e(0x26f)](_0x200517,_0x29a978,_0x526672,_0x40cea2),_0xec4cdc[_0x2af07e(0x10c)]({'unitId':_0x200517,'subUnitId':_0x29a978,'token':_0x526672,'type':j[_0x2af07e(0x1a7)]});else{_0xec4cdc[_0x2af07e(0x10c)]({'unitId':_0xd3026a['unitId'],'subUnitId':_0xd3026a[_0x2af07e(0x1dc)],'token':_0x526672,'type':j[_0x2af07e(0x2f1)]}),_0xec4cdc[_0x2af07e(0x280)](_0xd3026a[_0x2af07e(0x218)],_0xd3026a[_0x2af07e(0x1dc)],_0x526672);const _0x53677f=_0xec4cdc[_0x2af07e(0x2f2)](_0x526672,_0x4e68a9,_0x49cfc8[_0x2af07e(0xde)],_0x40cea2[_0x2af07e(0x26a)]),_0x5d987f=new _0x71cb7e(_0x53677f[_0x2af07e(0x172)],void 0x0,_0x526672);_0x5d987f[_0x2af07e(0xcf)](_0x40cea2['fieldsConfig']),_0xec4cdc[_0x2af07e(0x279)](_0x200517,_0x29a978,_0x526672,_0x5d987f,_0x40cea2),_0xec4cdc[_0x2af07e(0x10c)]({'unitId':_0x200517,'subUnitId':_0x29a978,'token':_0x526672,'type':j[_0x2af07e(0x2d8)],'pivotConfig':_0x40cea2});}return!0x0;}},Cs={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0x30a),'handler':(_0xe3910a,_0x277a34)=>{const _0x445bbd=_0x472c5c,_0x17eab6=_0xe3910a[_0x445bbd(0x1b7)](_0x88b8f4),_0x51c7b9=_0xe3910a['get'](_0xe44e0e),_0x20004b=_0xe3910a['get'](ve),_0x85a8c1=_0xe3910a[_0x445bbd(0x1b7)](_0xcf6c15);if(!_0x277a34)return!0x1;const _0x31bf0a=_0x337b5a(_0x85a8c1);if(!_0x31bf0a)return!0x1;const {unitId:_0xe0085,subUnitId:_0x5ce415,workbook:_0x3f3b82}=_0x31bf0a,_0x2bb6f2=_0x20004b[_0x445bbd(0x17d)](_0x277a34[_0x445bbd(0xaa)][_0x445bbd(0x218)],_0x277a34[_0x445bbd(0xaa)][_0x445bbd(0x1dc)],_0x277a34[_0x445bbd(0x22c)]);if(!_0x2bb6f2)return!0x1;const _0x3eaec1=_0x3f3b82[_0x445bbd(0x177)](_0x277a34[_0x445bbd(0x26a)][_0x445bbd(0x1dc)]);if(!_0x3eaec1)throw new Error(_0x445bbd(0x186));const _0x176000=_0x3eaec1[_0x445bbd(0xd3)](),_0xdaef3e=_0x3eaec1[_0x445bbd(0x230)]();if(_0x277a34[_0x445bbd(0x26a)]['row']>_0x176000||_0x277a34[_0x445bbd(0x26a)][_0x445bbd(0x2e3)]>_0xdaef3e)throw new Error(_0x445bbd(0x10d));const _0x149c69=[{'id':pt['id'],'params':{'unitId':_0xe0085,'subUnitId':_0x277a34[_0x445bbd(0x26a)][_0x445bbd(0x1dc)],'pivotTableId':_0x277a34[_0x445bbd(0x22c)],'targetCellPosition':{'row':_0x277a34[_0x445bbd(0x26a)][_0x445bbd(0x2e1)],'col':_0x277a34[_0x445bbd(0x26a)][_0x445bbd(0x2e3)]}}}],_0x52b71c=[{'id':pt['id'],'params':{'unitId':_0xe0085,'subUnitId':_0x5ce415,'pivotTableId':_0x277a34['pivotTableId'],'targetCellPosition':{'row':_0x2bb6f2['targetCellInfo']['row'],'col':_0x2bb6f2[_0x445bbd(0x26a)]['col']}}}];return _0x427a5a(_0x149c69,_0x17eab6)&&_0x51c7b9[_0x445bbd(0x109)]({'unitID':_0xe0085,'undoMutations':_0x52b71c,'redoMutations':_0x149c69}),!0x0;}},bs={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0x120),async 'handler'(_0x1dd6fd,_0x36a723){const _0x238328=_0x472c5c;var _0x256bad;if(!_0x36a723)return!0x1;const _0x517d8e=_0x1dd6fd[_0x238328(0x1b7)](_0xcf6c15),_0x14bb24=_0x337b5a(_0x517d8e);if(!_0x14bb24)return!0x1;const {unitId:_0x5e59f9,subUnitId:_0x3728ef,workbook:_0x5a98fe}=_0x14bb24,{row:_0x138722,col:_0x59f393}=_0x36a723,_0x2e2168=_0x1dd6fd[_0x238328(0x1b7)](Ne),_0x45d60f=_0x2e2168['getPivotTableIdByCell'](_0x5e59f9,_0x3728ef,_0x138722,_0x59f393);if(!_0x45d60f)return!0x1;const _0x443a33=(_0x256bad=_0x2e2168['getPivotItemRenderInfoCache'](_0x5e59f9,_0x3728ef,_0x45d60f))==null?void 0x0:_0x256bad[_0x238328(0x270)];if(!_0x443a33)return!0x1;const _0x1a2510=_0x1dd6fd[_0x238328(0x1b7)](ve)['getPivotTableConfig'](_0x5e59f9,_0x3728ef,_0x45d60f);if(!_0x1a2510)return!0x1;const {rowInfo:_0x5e25dc,colInfo:_0x5b7578}=_0x443a33,_0x2641c9=_0x5e25dc[_0x138722][_0x238328(0x10b)],_0x2cbbd7=_0x5b7578[_0x59f393][_0x238328(0x10b)],_0x247e99=_0x5e25dc[_0x138722][_0x238328(0x20d)],_0x2221b5=_0x5b7578[_0x59f393][_0x238328(0x20d)],_0x36b106=_0x2641c9[_0x238328(0x1fd)](_0x2cbbd7),_0x2e0536=_0x1a2510[_0x238328(0x107)][_0x238328(0x1d4)]['slice'](0x0,_0x247e99),_0x3e147d=_0x1a2510[_0x238328(0x107)]['columnFields'][_0x238328(0x117)](0x0,_0x2221b5),_0xc25d37=_0x2e0536[_0x238328(0x1fd)](_0x3e147d),_0x52e8ae=_0x36b106[_0x238328(0xff)]((_0xc4e561,_0x37c30f)=>[_0xc4e561,_0xc25d37[_0x37c30f]]),_0x578904=(await _0x1dd6fd[_0x238328(0x1b7)](Q)[_0x238328(0x1a0)]({'unitId':_0x5e59f9,'subUnitId':_0x3728ef,'pivotTableId':_0x45d60f,'params':{'type':k[_0x238328(0x2c1)],'drillDown':{'tuple':_0x52e8ae}}}))[_0x238328(0xfa)][_0x238328(0x1cd)];if(!_0x578904)return!0x1;const {indexes:_0x20f7a3,range:_0x38d127,sourceUnitId:_0x323315,sourceSubUnitId:_0x253bb3,formatMap:_0x11aa09}=_0x578904,{startRow:_0x51e4c4,endRow:_0x2fe5ae,startColumn:_0x38bc11,endColumn:_0x30154c}=_0x38d127,_0x22685f=new _0x38f0b5(),_0x22c9ce=_0x2fe5ae-_0x51e4c4,_0x45c79c=_0x30154c-_0x38bc11,_0x29e071={},_0x5c1a28=_0x337b5a(_0x517d8e,{'unitId':_0x323315,'subUnitId':_0x253bb3});if(!_0x5c1a28)return!0x1;const _0x1409e9=fe[_0x238328(0x1ee)],_0x47e12a=fe[_0x238328(0x159)],_0x23286d=fe[_0x238328(0x159)],_0x4ab358=_0x5a98fe[_0x238328(0x16b)]()[_0x238328(0xdc)](_0x1409e9),_0x297e9f=_0x5a98fe[_0x238328(0x16b)]()[_0x238328(0xdc)](_0x47e12a),_0x381fd6=_0x5a98fe[_0x238328(0x16b)]()[_0x238328(0xdc)](_0x23286d),{worksheet:_0x51d9aa}=_0x5c1a28;let _0x4e5e50=0x0;const _0x27d150=0x1;_0x20f7a3['forEach'](_0x49e2f6=>{const _0x3bd613=_0x238328;for(let _0x1c67a9=0x0;_0x1c67a9<=_0x30154c-_0x38bc11;_0x1c67a9++)_0x22685f['setValue'](_0x4e5e50,_0x1c67a9,_0x51d9aa['getCellRaw'](_0x49e2f6+_0x38d127[_0x3bd613(0x157)]+_0x27d150,_0x1c67a9));_0x4e5e50++;});for(let _0x2134a7=_0x38bc11;_0x2134a7<=_0x30154c;_0x2134a7++){const _0x450fcc=_0x51d9aa[_0x238328(0xa7)](_0x51e4c4,_0x2134a7);_0x29e071[_0x51e4c4]||(_0x29e071[_0x51e4c4]={}),_0x29e071[_0x51e4c4][_0x2134a7]={..._0x450fcc,'s':_0x4ab358};}let _0x208b60=0x1;const _0x2de6f8={},_0x5b1912={};_0x22685f['forRow']((_0xc0279a,_0x103979)=>{const _0xad6a88=_0x238328;_0x103979[_0xad6a88(0xaf)](_0x3ea64e=>{const _0x5c2850=_0xad6a88,_0x54d4c6=_0x22685f[_0x5c2850(0x187)](_0xc0279a,_0x3ea64e);if(_0x29e071[_0x208b60]||(_0x29e071[_0x208b60]={}),_0x29e071[_0x208b60][_0x3ea64e]={..._0x54d4c6,'s':_0x208b60%0x2===0x0?_0x381fd6:_0x297e9f},_0x11aa09[_0x3ea64e]&&_0xc0279a>=0x0){const _0x5ad81f=_0x208b60%0x2===0x0;let _0x3e396b=_0x5ad81f?_0x5b1912[_0x3ea64e]:_0x2de6f8[_0x3ea64e];_0x3e396b||(_0x3e396b=_0x5a98fe['getStyles']()[_0x5c2850(0xdc)]({..._0x5ad81f?_0x23286d:_0x47e12a,'n':{'pattern':_0x11aa09[_0x3ea64e]}}),_0x5ad81f?_0x5b1912[_0x3ea64e]=_0x3e396b:_0x2de6f8[_0x3ea64e]=_0x3e396b),_0x29e071[_0x208b60][_0x3ea64e]['s']=_0x3e396b;}}),_0x208b60++;});const _0x5a3049=new _0x38f0b5(_0x29e071),_0x31f945={};_0x5a3049['forValue']((_0xb57892,_0x1e75eb,_0x513d72)=>{_0x31f945[_0xb57892]||(_0x31f945[_0xb57892]={}),_0x31f945[_0xb57892][_0x1e75eb]={'s':null,'f':null,'si':null,'p':null,'v':null,'t':null,'custom':null};});const _0x1fac95=[],_0x851812=[],_0x4cae1f=_0x5a98fe[_0x238328(0x26b)]()[_0x238328(0x238)],_0x38eea5=_0x327317({'rowCount':Math[_0x238328(0x29d)](_0x5923c8,_0x22c9ce+0xa),'columnCount':Math['max'](_0x495b36,_0x45c79c+0x5)}),_0x2ce6b0=_0x1dd6fd[_0x238328(0x1b7)](_0x175f03);_0x38eea5['id']=_0x32b281(),_0x38eea5[_0x238328(0x7e)]=_0x5a98fe[_0x238328(0x18e)](''+_0x2ce6b0['t'](_0x238328(0x12a)));const _0x4b1bf2={'index':_0x4cae1f,'sheet':_0x38eea5,'unitId':_0x5e59f9},_0x1fabfd=_0x3c69a5(_0x1dd6fd,_0x4b1bf2);_0x851812[_0x238328(0x2b1)]({'id':_0x42bceb['id'],'params':_0x4b1bf2}),_0x1fac95['push']({'id':_0x4f2db5['id'],'params':_0x1fabfd}),_0x851812[_0x238328(0x2b1)]({'id':_0x4789aa['id'],'params':{'unitId':_0x5e59f9,'subUnitId':_0x38eea5['id'],'cellValue':_0x29e071}}),_0x1fac95['unshift']({'id':_0x4789aa['id'],'params':{'unitId':_0x5e59f9,'subUnitId':_0x38eea5['id'],'cellValue':_0x31f945}});const _0x2afd06={'startRow':0x0,'startColumn':0x0,'endRow':_0x208b60-0x1,'endColumn':_0x30154c};_0x851812[_0x238328(0x2b1)]({'id':_0x11f2bf['id'],'params':{'unitId':_0x5e59f9,'subUnitId':_0x38eea5['id'],'range':_0x2afd06}}),_0x1fac95[_0x238328(0xcb)]({'id':_0x3faae0['id'],'params':{'unitId':_0x5e59f9,'subUnitId':_0x38eea5['id']}});const _0x5ae16e=_0x1dd6fd[_0x238328(0x1b7)](_0x88b8f4);return _0x427a5a(_0x851812,_0x5ae16e)&&_0x1dd6fd['get'](_0xe44e0e)[_0x238328(0x109)]({'unitID':_0x5e59f9,'undoMutations':_0x1fac95,'redoMutations':_0x851812}),!0x0;}},Ss={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0x1bc),async 'handler'(_0x29ff71,_0xbf234c){const _0x14014b=_0x472c5c;if(!_0xbf234c)return!0x1;const _0x35a969=_0x29ff71[_0x14014b(0x1b7)](_0x88b8f4),_0x523ad8=_0x29ff71[_0x14014b(0x1b7)](Q),_0x2a9a2c=_0x29ff71[_0x14014b(0x1b7)](_0xe44e0e),{pivotTableId:_0x588a14,fieldIds:_0x679b72,unitId:_0x1bc1ff,subUnitId:_0x126661}=_0xbf234c,_0xedbed=(await _0x523ad8['getPivotDisplayConfig']({'unitId':_0x1bc1ff,'subUnitId':_0x126661,'pivotTableId':_0x588a14,'params':{'type':k[_0x14014b(0x29c)],'removePivotField':{'fieldIds':_0x679b72}}}))[_0x14014b(0xfa)][_0x14014b(0xd4)];if(!_0xedbed)return!0x1;const {view:_0x1afcc4,changesets:_0x1cc413,isEmpty:_0x4fd78c,pivotTableConfig:_0x4302e9}=_0xedbed,_0x3facd8=_0x4302e9[_0x14014b(0x26a)],_0x325861=new _0x2df958();_0x325861[_0x14014b(0x2fb)](_0x1afcc4);const _0x467972={'cellInfo':_0x3facd8,'view':_0x325861,'isEmpty':_0x4fd78c};if(!await _0x29ff71[_0x14014b(0x1b7)](ie)[_0x14014b(0x1ab)][_0x14014b(0x2be)](be)(!0x0,_0x467972))return!0x1;const _0x4f845c=we(_0x29ff71,_0x325861,_0x3facd8,_0x4fd78c),_0x2880fc=_e(_0x29ff71,_0x467972),{redos:_0x973fa9,undos:_0x1e3475}=me(_0x35a969,{'pivotTableId':_0x588a14,'unitId':_0x1bc1ff,'subUnitId':_0x126661},_0x1cc413);return _0x427a5a([..._0x4f845c[_0x14014b(0x99)],..._0x2880fc[_0x14014b(0x99)],..._0x973fa9],_0x35a969),_0x2a9a2c['pushUndoRedo']({'unitID':_0x1bc1ff,'redoMutations':[..._0x4f845c[_0x14014b(0x99)],..._0x2880fc[_0x14014b(0x99)],..._0x973fa9],'undoMutations':[..._0x4f845c[_0x14014b(0x288)],..._0x2880fc[_0x14014b(0x288)],..._0x1e3475]}),!0x0;}},Ts={'type':_0x44b70c[_0x472c5c(0x25b)],'id':'sheet.command.reset-pivot-fields-config',async 'handler'(_0x338910,_0xd61a51){const _0x4dca6f=_0x472c5c;if(!_0xd61a51)return!0x1;const _0x2e40ff=_0x338910[_0x4dca6f(0x1b7)](_0x88b8f4),_0x192420=_0x338910[_0x4dca6f(0x1b7)](_0xe44e0e),_0x3fe92c=_0x338910[_0x4dca6f(0x1b7)](Q),{resetArea:_0x4373e8,pivotTableId:_0x411a68,unitId:_0x106b20,subUnitId:_0x28feeb}=_0xd61a51,_0x7007cf=(await _0x3fe92c[_0x4dca6f(0x1a0)]({'unitId':_0x106b20,'subUnitId':_0x28feeb,'pivotTableId':_0x411a68,'params':{'type':k[_0x4dca6f(0x2c3)],'resetPivotTable':{'pivotTableId':_0x411a68,'resetArea':_0x4373e8}}}))[_0x4dca6f(0xfa)][_0x4dca6f(0x300)];if(!_0x7007cf)return!0x1;const {changesets:_0x150336}=_0x7007cf,{redos:_0x4600a8,undos:_0x5bf80b}=me(_0x2e40ff,{'pivotTableId':_0x411a68,'unitId':_0x106b20,'subUnitId':_0x28feeb},_0x150336);return _0x427a5a(_0x4600a8,_0x2e40ff),_0x192420[_0x4dca6f(0x109)]({'unitID':_0x106b20,'redoMutations':_0x4600a8,'undoMutations':_0x5bf80b}),!0x0;}},Ps={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0xa8),async 'handler'(_0x20a380,_0x13aa1f){const _0x2c1d25=_0x472c5c,_0x513e25=_0x20a380[_0x2c1d25(0x1b7)](_0x88b8f4),_0x826294=_0x20a380['get'](Q),_0x367fe0=_0x20a380[_0x2c1d25(0x1b7)](Ne),_0x9f30c8=_0x20a380[_0x2c1d25(0x1b7)](_0xcf6c15),_0xee6e92=_0x20a380[_0x2c1d25(0x1b7)](_0x175f03),_0x266f42=_0x20a380[_0x2c1d25(0x1b7)](_0xe44e0e);if(!_0x13aa1f)return!0x1;const {unitId:_0x73d9bc,subUnitId:_0x26fd0a,row:_0x3f729d,col:_0x9edc80,collapse:_0x36bbc0}=_0x13aa1f,_0x22c864=_0x9f30c8[_0x2c1d25(0x236)](_0x73d9bc);if(!_0x22c864||!_0x22c864[_0x2c1d25(0x177)](_0x26fd0a))return!0x1;const _0x5ea342=_0x367fe0[_0x2c1d25(0x167)](_0x73d9bc,_0x26fd0a,_0x3f729d,_0x9edc80);if(!_0x5ea342)return!0x1;const _0x2d035e=_0x367fe0[_0x2c1d25(0x122)](_0x73d9bc,_0x26fd0a,_0x5ea342);if(!_0x2d035e)return!0x1;const _0x1c9b61=_0x452af2(_0x3f729d,_0x9edc80),{rangesInfo:_0x39d7ac,areaInfo:_0x210f40,headerMap:_0x3cb363}=_0x2d035e;if(!_0x39d7ac||!_0x210f40||!_0x3cb363)return!0x1;const _0x32aa12=Object[_0x2c1d25(0x118)](_0x39d7ac)[_0x2c1d25(0xb0)](_0x5d2573=>_0x39d7ac[_0x5d2573]['some'](_0x3d3e96=>_0x2776bf['contains'](_0x3d3e96,_0x1c9b61)));let _0x51ba98;_0x32aa12===_0x2c1d25(0x2f8)?_0x51ba98=_0x3cb363[_0x2c1d25(0x1a2)][_0x9edc80]:_0x32aa12==='colRanges'&&(_0x51ba98=_0x3cb363[_0x2c1d25(0xc9)][_0x3f729d]);const _0x553d3d=_0x51ba98==null?void 0x0:_0x51ba98[_0x2c1d25(0x227)],_0x57b204=_0x367fe0[_0x2c1d25(0x285)](_0x73d9bc,_0x26fd0a,_0x3f729d,_0x9edc80);let _0x13b8c0=_0x57b204==null?void 0x0:_0x57b204['v'];if(_0x13b8c0===_0xee6e92['t'](_0x2c1d25(0x245))&&(_0x13b8c0=_0x1a4a73[_0x2c1d25(0x201)]),_0x13b8c0==null||!_0x5ea342||!_0x553d3d)return!0x1;const _0x115623=await _0x826294[_0x2c1d25(0x1a0)]({'unitId':_0x73d9bc,'subUnitId':_0x26fd0a,'pivotTableId':_0x5ea342,'params':{'type':k[_0x2c1d25(0x181)],'setPivotCollapse':{'tableFieldId':_0x553d3d,'collapse':_0x36bbc0,'item':_0x13b8c0}}}),_0x202c0b=_0x115623==null?void 0x0:_0x115623[_0x2c1d25(0xfa)][_0x2c1d25(0x132)];if(!_0x202c0b)return!0x1;const {view:_0xbc494e,pivotTableConfig:_0x44669f,isEmpty:_0x3d6932,changesets:_0x46f28e}=_0x202c0b,_0x1baa9a=new _0x2df958();_0x1baa9a['formJSON'](_0xbc494e);const _0x4a62b8=_0x44669f[_0x2c1d25(0x26a)],_0x36b378={'cellInfo':_0x4a62b8,'view':_0x1baa9a,'isEmpty':_0x3d6932};if(!await _0x20a380[_0x2c1d25(0x1b7)](ie)['asyncInterceptor'][_0x2c1d25(0x2be)](be)(!0x0,_0x36b378))return!0x1;const _0x5d6a4a=we(_0x20a380,_0x1baa9a,_0x4a62b8,_0x3d6932),_0x565e80=_e(_0x20a380,_0x36b378),{redos:_0x13cf59,undos:_0x4e0a9a}=me(_0x513e25,{'pivotTableId':_0x5ea342,'unitId':_0x73d9bc,'subUnitId':_0x26fd0a},_0x46f28e);return _0x427a5a([..._0x5d6a4a[_0x2c1d25(0x99)],..._0x565e80[_0x2c1d25(0x99)],..._0x13cf59],_0x513e25),_0x266f42[_0x2c1d25(0x109)]({'unitID':_0x73d9bc,'redoMutations':[..._0x5d6a4a[_0x2c1d25(0x99)],..._0x565e80[_0x2c1d25(0x99)],..._0x13cf59],'undoMutations':[..._0x5d6a4a[_0x2c1d25(0x288)],..._0x565e80[_0x2c1d25(0x288)],..._0x4e0a9a]}),!0x0;}},ys={'type':_0x44b70c['COMMAND'],'id':_0x472c5c(0x29f),async 'handler'(_0xe0a190,_0x3f6215){const _0x2659f5=_0x472c5c;if(!_0x3f6215)return!0x1;const _0x1d4be2=_0xe0a190[_0x2659f5(0x1b7)](_0x88b8f4),_0x3b13db=_0xe0a190['get'](_0xe44e0e),_0x4e9684=_0xe0a190[_0x2659f5(0x1b7)](Q),{pivotTableConfig:_0x9e0ec,pivotTableId:_0x48829f,unitId:_0x1be5c3,subUnitId:_0x2c3645}=_0x3f6215,_0x410ef3=(await _0x4e9684[_0x2659f5(0x1a0)]({'unitId':_0x1be5c3,'subUnitId':_0x2c3645,'pivotTableId':_0x48829f,'params':{'type':k['SetPivotTableConfig'],'setPivotTableConfig':{'pivotTableId':_0x48829f,'pivotTableConfig':_0x9e0ec}}}))[_0x2659f5(0xfa)][_0x2659f5(0x255)];if(!_0x410ef3)return!0x1;const {changesets:_0x51760a}=_0x410ef3,{redos:_0x479502,undos:_0x2aea04}=me(_0x1d4be2,{'pivotTableId':_0x48829f,'unitId':_0x1be5c3,'subUnitId':_0x2c3645},_0x51760a);return _0x427a5a(_0x479502,_0x1d4be2),_0x3b13db[_0x2659f5(0x109)]({'unitID':_0x1be5c3,'redoMutations':_0x479502,'undoMutations':_0x2aea04}),!0x0;}},Ms={'type':_0x44b70c[_0x472c5c(0x25b)],'id':'sheet.command.set-pivot-filter',async 'handler'(_0x5e8df0,_0x395550){const _0x3e29d3=_0x472c5c;if(!_0x395550)return!0x1;const _0x54354d=_0x5e8df0[_0x3e29d3(0x1b7)](_0x88b8f4),{pivotTableId:_0x3e5e6a,tableFieldId:_0x17cbcb,items:_0x4b055a,unitId:_0x261124,subUnitId:_0x1ce459,isAll:_0x353493}=_0x395550,_0x189642=_0x5e8df0['get'](Q),_0x151926=_0x5e8df0[_0x3e29d3(0x1b7)](_0xe44e0e),_0x5d657e=(await _0x189642[_0x3e29d3(0x1a0)]({'unitId':_0x261124,'subUnitId':_0x1ce459,'pivotTableId':_0x3e5e6a,'params':{'type':k[_0x3e29d3(0x209)],'setPivotFilter':{'tableFieldId':_0x17cbcb,'items':_0x4b055a,'isAll':_0x353493}}}))['result'][_0x3e29d3(0x309)];if(!_0x5d657e)return!0x1;const {changesets:_0x276e33,pivotTableConfig:_0x44fa61,isEmpty:_0x77e3e9,view:_0x5e380f}=_0x5d657e,_0x55db4f=_0x44fa61[_0x3e29d3(0x26a)],_0x47899c=new _0x2df958();_0x47899c[_0x3e29d3(0x2fb)](_0x5e380f);const _0x42ea2d={'cellInfo':_0x55db4f,'view':_0x47899c,'isEmpty':_0x77e3e9};if(!await _0x5e8df0[_0x3e29d3(0x1b7)](ie)[_0x3e29d3(0x1ab)][_0x3e29d3(0x2be)](be)(!0x0,_0x42ea2d))return!0x1;const _0xbbb046=we(_0x5e8df0,_0x47899c,_0x55db4f,_0x77e3e9),_0x5b633a=_e(_0x5e8df0,_0x42ea2d),{undos:_0xce47c3,redos:_0x356c2c}=me(_0x54354d,{'pivotTableId':_0x3e5e6a,'unitId':_0x261124,'subUnitId':_0x1ce459},_0x276e33);return _0x427a5a([..._0xbbb046[_0x3e29d3(0x99)],..._0x5b633a[_0x3e29d3(0x99)],..._0x356c2c],_0x54354d),_0x151926['pushUndoRedo']({'unitID':_0x261124,'redoMutations':[..._0xbbb046[_0x3e29d3(0x99)],..._0x5b633a[_0x3e29d3(0x99)],..._0x356c2c],'undoMutations':[..._0xbbb046[_0x3e29d3(0x288)],..._0x5b633a[_0x3e29d3(0x288)],..._0xce47c3]}),!0x0;}},ws={'type':_0x44b70c[_0x472c5c(0x25b)],'id':_0x472c5c(0x103),async 'handler'(_0x1fd082,_0xdc2271){const _0x59ec73=_0x472c5c;if(!_0xdc2271)return!0x1;const _0xbabbe8=_0x1fd082['get'](_0x88b8f4),_0xa295ac=_0x1fd082[_0x59ec73(0x1b7)](_0xe44e0e),_0x1b2fb3=_0x1fd082[_0x59ec73(0x1b7)](Q),{info:_0x38cafe,tableFieldId:_0x138c0d,pivotTableId:_0x73f246,unitId:_0x5bfbd3,subUnitId:_0x5752ef}=_0xdc2271,_0x1ae3b7=(await _0x1b2fb3[_0x59ec73(0x1a0)]({'unitId':_0x5bfbd3,'subUnitId':_0x5752ef,'pivotTableId':_0x73f246,'params':{'type':k[_0x59ec73(0xec)],'setPivotSort':{'tableFieldId':_0x138c0d,'info':_0x38cafe}}}))[_0x59ec73(0xfa)][_0x59ec73(0x156)];if(!_0x1ae3b7)return!0x1;const {changesets:_0x39544b}=_0x1ae3b7,{redos:_0x560145,undos:_0x302169}=me(_0xbabbe8,{'pivotTableId':_0x73f246,'unitId':_0x5bfbd3,'subUnitId':_0x5752ef},_0x39544b);return _0x427a5a(_0x560145,_0xbabbe8),_0xa295ac[_0x59ec73(0x109)]({'unitID':_0x5bfbd3,'redoMutations':_0x560145,'undoMutations':_0x302169}),!0x0;}},_s={'type':_0x44b70c['COMMAND'],'id':_0x472c5c(0x1d9),async 'handler'(_0x2e20ee,_0x3aadd8){const _0x52061c=_0x472c5c;if(!_0x3aadd8)return!0x1;const _0x5f0d9c=_0x2e20ee['get'](_0x88b8f4),{pivotTableId:_0xcdbae,fieldId:_0x266998,valueFilterInfo:_0x2a3c90,unitId:_0x4f6eb4,subUnitId:_0x467256}=_0x3aadd8,_0x45c0de=_0x2e20ee[_0x52061c(0x1b7)](Q),_0x19bc58=_0x2e20ee[_0x52061c(0x1b7)](_0xe44e0e),_0x2b194b=(await _0x45c0de[_0x52061c(0x1a0)]({'unitId':_0x4f6eb4,'subUnitId':_0x467256,'pivotTableId':_0xcdbae,'params':{'type':k[_0x52061c(0x257)],'setValuePivotFilter':{'tableFieldId':_0x266998,'filterInfo':_0x2a3c90}}}))[_0x52061c(0xfa)][_0x52061c(0x170)];if(!_0x2b194b)return!0x1;const {changesets:_0x5da9c6,pivotTableConfig:_0x513065,isEmpty:_0x5e12d1,view:_0x5e05a9}=_0x2b194b,_0x35c5f7=_0x513065['targetCellInfo'],_0x178d7a=new _0x2df958();_0x178d7a[_0x52061c(0x2fb)](_0x5e05a9);const _0xa20c57={'cellInfo':_0x35c5f7,'view':_0x178d7a,'isEmpty':_0x5e12d1};if(!await _0x2e20ee[_0x52061c(0x1b7)](ie)[_0x52061c(0x1ab)][_0x52061c(0x2be)](be)(!0x0,_0xa20c57))return!0x1;const _0x2c11fb=we(_0x2e20ee,_0x178d7a,_0x35c5f7,_0x5e12d1),_0x18dd24=_e(_0x2e20ee,_0xa20c57),{undos:_0x19cbd1,redos:_0x1afb13}=me(_0x5f0d9c,{'pivotTableId':_0xcdbae,'unitId':_0x4f6eb4,'subUnitId':_0x467256},_0x5da9c6);return _0x427a5a([..._0x2c11fb[_0x52061c(0x99)],..._0x18dd24[_0x52061c(0x99)],..._0x1afb13],_0x5f0d9c),_0x19bc58['pushUndoRedo']({'unitID':_0x4f6eb4,'redoMutations':[..._0x2c11fb[_0x52061c(0x99)],..._0x18dd24['redos'],..._0x1afb13],'undoMutations':[..._0x2c11fb[_0x52061c(0x288)],..._0x18dd24[_0x52061c(0x288)],..._0x19cbd1]}),!0x0;}},to={'id':_0x472c5c(0x1eb),'type':_0x44b70c[_0x472c5c(0x301)],'handler':(_0x246363,_0x1ee5d1)=>{const _0x5aae1b=_0x472c5c;if(!_0x1ee5d1)return!0x1;if(!!_0x246363[_0x5aae1b(0x1b7)](_0x165fcc)['getConfig'](z))return!0x0;const {unitId:_0x16a807,subUnitId:_0x5d323a,pivotTableId:_0x29cb71,tableFieldId:_0x47404c,dateType:_0x15252d}=_0x1ee5d1,_0xb805e7=_0x246363[_0x5aae1b(0x1b7)]($),_0x2d92e9=_0xb805e7[_0x5aae1b(0x2ca)](_0x29cb71);if(!_0x2d92e9)return!0x1;const _0x321f9e=_0x2d92e9[_0x5aae1b(0xe6)](_0x47404c);if(!_0x321f9e)return!0x1;const _0x5ebf02=_0x321f9e[_0x5aae1b(0x21d)](),_0x3e0f08=_0x2d92e9['getDataFieldByDataFieldId'](_0x5ebf02),_0x3afb6f=(_0x3e0f08==null?void 0x0:_0x3e0f08['getName']())+'\x20'+qo(_0x246363,_0x15252d);_0xb805e7[_0x5aae1b(0x14f)](_0x16a807,_0x29cb71)[_0x5aae1b(0xa1)](_0x321f9e['id'],_0x3afb6f);const _0x3e1846=_0x2d92e9[_0x5aae1b(0x96)](_0x47404c);if(!_0x3e1846)return!0x1;_0x2d92e9[_0x5aae1b(0x206)](_0x3e1846[_0x5aae1b(0x21f)](),_0x3afb6f),_0x321f9e[_0x5aae1b(0x2b4)](_0x15252d);const _0x53aa75=_0xb805e7[_0x5aae1b(0x17d)](_0x16a807,_0x5d323a,_0x29cb71);return _0xb805e7[_0x5aae1b(0x10c)]({'unitId':_0x16a807,'subUnitId':_0x5d323a,'token':_0x29cb71,'type':j[_0x5aae1b(0x1a7)],'pivotConfig':_0x53aa75}),!0x0;}},Fs={'id':_0x472c5c(0x1ae),'type':_0x44b70c['COMMAND'],'handler':(_0x4c9f66,_0x429a28)=>{const _0x320790=_0x472c5c;if(!_0x429a28)return!0x1;const _0x2136bd=_0x4c9f66[_0x320790(0x1b7)](_0xe44e0e),{unitId:_0x458c9e,subUnitId:_0x55e689,pivotTableId:_0x37e35d,tableFieldId:_0x470b98}=_0x429a28,_0xd6f073=[],_0x525052=[],_0x10284c=_0x4c9f66[_0x320790(0x1b7)](ve),_0xb4127f=_0x10284c[_0x320790(0x14f)](_0x458c9e,_0x37e35d),_0x31ba5e=_0x10284c[_0x320790(0x17d)](_0x458c9e,_0x55e689,_0x37e35d);if(!(_0x31ba5e!=null&&_0x31ba5e[_0x320790(0x107)][_0x320790(0x28e)]))return!0x1;const _0x48f023=Object[_0x320790(0xa6)](_0x31ba5e[_0x320790(0x107)][_0x320790(0x28e)])['find'](_0x149c7c=>_0x149c7c['id']===_0x470b98);if(!_0x48f023)return!0x1;const _0x518e0e=_0x48f023[_0x320790(0x123)];if(!(_0xb4127f!=null&&_0xb4127f[_0x320790(0x275)]))return!0x1;const _0x3b1860=Object[_0x320790(0xa6)](_0xb4127f==null?void 0x0:_0xb4127f[_0x320790(0x275)])[_0x320790(0xb0)](_0xc87218=>_0xc87218['id']===_0x518e0e);if(!_0x3b1860)return!0x1;_0x266d1c(_0x3b1860)&&_0xd6f073[_0x320790(0x2b1)]({'id':to['id'],'params':{..._0x429a28,'dateType':_0x3b1860['dateType']}}),_0x525052[_0x320790(0x2b1)]({'id':to['id'],'params':{..._0x429a28}});const _0x312ea8=_0x4c9f66[_0x320790(0x1b7)](_0x88b8f4);return _0x427a5a(_0x525052,_0x312ea8)&&_0x2136bd['pushUndoRedo']({'unitID':_0x458c9e,'undoMutations':_0xd6f073,'redoMutations':_0x525052}),!0x0;}},Rs={'type':_0x44b70c[_0x472c5c(0x25b)],'id':'sheet.command.set-pivot-field-setting',async 'handler'(_0x364af8,_0x15f838){const _0x4c1603=_0x472c5c;if(!_0x15f838)return!0x1;const _0x5478d6=_0x364af8['get'](_0x88b8f4),_0x71155b=_0x364af8[_0x4c1603(0x1b7)](_0xe44e0e),_0x5f1774=_0x364af8[_0x4c1603(0x1b7)](Q),{displayName:_0x14006e,subtotalType:_0x21819c,format:_0x120ef3,tableFieldId:_0x659c2b,pivotTableId:_0x286283,unitId:_0x4061f2,subUnitId:_0x3591c6}=_0x15f838,_0x511641=(await _0x5f1774['getPivotDisplayConfig']({'unitId':_0x4061f2,'subUnitId':_0x3591c6,'pivotTableId':_0x286283,'params':{'type':k[_0x4c1603(0x2b5)],'setPivotSetting':{'tableFieldId':_0x659c2b,'displayName':_0x14006e,'subtotalType':_0x21819c,'format':_0x120ef3}}}))['result'][_0x4c1603(0xcc)];if(!_0x511641)return!0x1;const {changesets:_0x41871a,view:_0x463802,pivotTableConfig:_0x13b424,isEmpty:_0xae2855}=_0x511641,_0x28b510=_0x13b424[_0x4c1603(0x26a)],_0x45ad13=new _0x2df958();_0x45ad13['formJSON'](_0x463802);const _0x2d2d59={'cellInfo':_0x28b510,'view':_0x45ad13,'isEmpty':_0xae2855};if(!await _0x364af8['get'](ie)['asyncInterceptor'][_0x4c1603(0x2be)](be)(!0x0,_0x2d2d59))return!0x1;const _0x207ff5=we(_0x364af8,_0x45ad13,_0x28b510,_0xae2855),_0x289159=_e(_0x364af8,_0x2d2d59),{undos:_0xbcc368,redos:_0x1ed833}=me(_0x5478d6,{'pivotTableId':_0x286283,'unitId':_0x4061f2,'subUnitId':_0x3591c6},_0x41871a);return _0x427a5a([..._0x207ff5[_0x4c1603(0x99)],..._0x289159[_0x4c1603(0x99)],..._0x1ed833],_0x5478d6),_0x71155b['pushUndoRedo']({'unitID':_0x4061f2,'redoMutations':[..._0x207ff5[_0x4c1603(0x99)],..._0x289159[_0x4c1603(0x99)],..._0x1ed833],'undoMutations':[..._0x207ff5[_0x4c1603(0x288)],..._0x289159['undos'],..._0xbcc368]}),!0x0;}},oo={'type':_0x44b70c['MUTATION'],'id':_0x472c5c(0x2a2),'handler'(_0x2cee92,_0x5ef37a){const _0x349c7a=_0x472c5c;if(!_0x5ef37a)return!0x1;if(!!_0x2cee92[_0x349c7a(0x1b7)](_0x165fcc)[_0x349c7a(0x27c)](z))return!0x0;const _0x138726=_0x2cee92[_0x349c7a(0x1b7)]($),{pivotTableId:_0x547553,deleteIds:_0x54c29d,collectionJSON:_0x4d2f55,dataRangeInfo:_0x2163cf,unitId:_0x1061ba,subUnitId:_0x3bc1b6}=_0x5ef37a,_0x21f32c=_0x138726[_0x349c7a(0x2ca)](_0x547553),_0x213ebf=_0x138726['getPivotTableConfig'](_0x1061ba,_0x3bc1b6,_0x547553);if(!_0x21f32c||!_0x213ebf)return!0x1;const {collection:_0x40ef75,updateDataFieldList:_0xa04c9e}=_0x138726[_0x349c7a(0x2f2)](_0x547553,_0x4d2f55,_0x2163cf,_0x213ebf[_0x349c7a(0x26a)]);_0x138726['refreshData'](_0x40ef75,_0xa04c9e,_0x2163cf),_0x21f32c['updateDataFieldsCollection'](_0x40ef75);for(const _0x27b8f0 of _0x54c29d)_0x138726[_0x349c7a(0x233)](_0x2163cf['unitId'],_0x27b8f0);const _0x1382b8=_0x138726[_0x349c7a(0x17d)](_0x1061ba,_0x3bc1b6,_0x547553);return _0x1382b8['sourceRangeInfo']=JSON['parse'](JSON[_0x349c7a(0x1ef)](_0x2163cf)),_0x138726[_0x349c7a(0x10c)]({'unitId':_0x1061ba,'subUnitId':_0x3bc1b6,'token':_0x547553,'type':j[_0x349c7a(0x1a7)]}),!0x0;}},Ds={'type':_0x44b70c['COMMAND'],'id':_0x472c5c(0x27e),async 'handler'(_0x1bf227,_0x5a1ed7){const _0x1bf58a=_0x472c5c,_0x4c40e0=_0x1bf227['get'](_0x88b8f4),_0x49d24f=_0x1bf227[_0x1bf58a(0x1b7)](Q),_0xe73f48=_0x1bf227[_0x1bf58a(0x1b7)](_0xe44e0e);if(!_0x5a1ed7)return!0x1;const {token:_0xb40a09,dataRangeInfo:_0x3d0d9f,unitId:_0x5f504b,subUnitId:_0x2a3649}=_0x5a1ed7,_0x5d43dc=[],_0x4b1786=[],_0x4aa0fe=(await _0x49d24f[_0x1bf58a(0x1a0)]({'unitId':_0x5f504b,'subUnitId':_0x2a3649,'pivotTableId':_0xb40a09,'params':{'type':k['UpdatePivotSource'],'updatePivotSource':{'dataRangeInfo':_0x3d0d9f,'unitId':_0x5f504b,'subUnitId':_0x2a3649}}}))[_0x1bf58a(0xfa)][_0x1bf58a(0x17a)];if(!_0x4aa0fe)return!0x1;const {changesets:_0x27d019,deleteIds:_0x20a7f6,collectionConfig:_0x1e3226,oldCollectionConfig:_0x4768fd,view:_0x467313,isEmpty:_0x295786,pivotTableConfig:_0x313933}=_0x4aa0fe;_0x4b1786[_0x1bf58a(0x2b1)]({'id':oo['id'],'params':{'pivotTableId':_0xb40a09,'deleteIds':_0x20a7f6,'collectionJSON':_0x1e3226,'dataRangeInfo':_0x3d0d9f,'unitId':_0x5f504b,'subUnitId':_0x2a3649}}),_0x5d43dc[_0x1bf58a(0xcb)]({'id':oo['id'],'params':{'pivotTableId':_0xb40a09,'deleteIds':[],'collectionJSON':_0x4768fd,'dataRangeInfo':_0x313933['sourceRangeInfo'],'unitId':_0x5f504b,'subUnitId':_0x2a3649}});const _0x569de1=_0x313933[_0x1bf58a(0x26a)],_0xb56c7d=new _0x2df958();_0xb56c7d[_0x1bf58a(0x2fb)](_0x467313);const _0x1781e4={'cellInfo':_0x569de1,'view':_0xb56c7d,'isEmpty':_0x295786};if(!await _0x1bf227['get'](ie)[_0x1bf58a(0x1ab)][_0x1bf58a(0x2be)](be)(!0x0,_0x1781e4))return!0x1;const _0x454f92=we(_0x1bf227,_0xb56c7d,_0x569de1,_0x295786),_0x1410e2=_e(_0x1bf227,_0x1781e4),{undos:_0x504a7c,redos:_0x1491cb}=me(_0x4c40e0,{'pivotTableId':_0xb40a09,'unitId':_0x5f504b,'subUnitId':_0x2a3649},_0x27d019);return _0x427a5a([..._0x454f92[_0x1bf58a(0x99)],..._0x1410e2[_0x1bf58a(0x99)],..._0x4b1786,..._0x504a7c],_0x4c40e0),_0xe73f48[_0x1bf58a(0x109)]({'unitID':_0x5f504b,'redoMutations':[..._0x454f92[_0x1bf58a(0x99)],..._0x1410e2[_0x1bf58a(0x99)],..._0x4b1786,..._0x504a7c],'undoMutations':[..._0x454f92[_0x1bf58a(0x288)],..._0x1410e2[_0x1bf58a(0x288)],..._0x5d43dc,..._0x1491cb]}),!0x0;}},Ns={'type':_0x44b70c[_0x472c5c(0x25b)],'id':'sheet.command.update-pivot-value-position',async 'handler'(_0x3fcf38,_0x14b681){const _0x3fa1aa=_0x472c5c;if(!_0x14b681)return!0x1;const _0x3890bb=_0x3fcf38[_0x3fa1aa(0x1b7)](_0x88b8f4),_0x436103=_0x3fcf38[_0x3fa1aa(0x1b7)](Q),_0x39c97c=_0x3fcf38[_0x3fa1aa(0x1b7)](_0xcf6c15),_0x295e67=_0x3fcf38[_0x3fa1aa(0x1b7)](_0xe44e0e),{pivotTableId:_0xd34a8d,position:_0x500520,index:_0x4c708e}=_0x14b681,_0x5d124d=_0x337b5a(_0x39c97c);if(!_0x5d124d)return!0x1;const {unitId:_0x431669,subUnitId:_0x33bdc8}=_0x5d124d,_0x2be7ca=(await _0x436103['getPivotDisplayConfig']({'unitId':_0x431669,'subUnitId':_0x33bdc8,'pivotTableId':_0xd34a8d,'params':{'type':k[_0x3fa1aa(0x20a)],'updateValuePosition':{'position':_0x500520,'index':_0x4c708e}}}))[_0x3fa1aa(0xfa)][_0x3fa1aa(0x298)];if(!_0x2be7ca)return!0x1;const {changesets:_0x2366d7,view:_0x4224ee,isEmpty:_0xee5017,pivotTableConfig:_0x57581d}=_0x2be7ca,_0x338b00=_0x57581d['targetCellInfo'],_0x30fd39=new _0x2df958();_0x30fd39[_0x3fa1aa(0x2fb)](_0x4224ee);const _0x5b8177=_0x3fcf38[_0x3fa1aa(0x1b7)](ie),_0x4aa099={'cellInfo':_0x338b00,'view':_0x30fd39,'isEmpty':_0xee5017};if(!await _0x5b8177[_0x3fa1aa(0x1ab)]['fetchThroughAsyncInterceptors'](be)(!0x0,_0x4aa099))return!0x1;const _0x47899f=we(_0x3fcf38,_0x30fd39,_0x338b00,_0xee5017),_0x356782=_e(_0x3fcf38,_0x4aa099),{undos:_0x33b6e7,redos:_0x1bfec5}=me(_0x3890bb,{'pivotTableId':_0xd34a8d,'unitId':_0x431669,'subUnitId':_0x33bdc8},_0x2366d7);return _0x427a5a([..._0x47899f[_0x3fa1aa(0x99)],..._0x356782['redos'],..._0x1bfec5],_0x3890bb),_0x295e67[_0x3fa1aa(0x109)]({'unitID':_0x431669,'redoMutations':[..._0x47899f[_0x3fa1aa(0x99)],..._0x356782[_0x3fa1aa(0x99)],..._0x1bfec5],'undoMutations':[..._0x47899f[_0x3fa1aa(0x288)],..._0x356782['undos'],..._0x33b6e7]}),!0x0;}},xt={'type':_0x44b70c[_0x472c5c(0x301)],'id':_0x472c5c(0x27f),'handler'(){return!0x0;}};var xs=Object[_0x472c5c(0x13d)],Us=(_0x439be8,_0x4600f2,_0x596985,_0x31fb5c)=>{const _0x1fe4c0=_0x472c5c;for(var _0x493fde=_0x31fb5c>0x1?void 0x0:_0x31fb5c?xs(_0x4600f2,_0x596985):_0x4600f2,_0x284054=_0x439be8[_0x1fe4c0(0x238)]-0x1,_0x25626c;_0x284054>=0x0;_0x284054--)(_0x25626c=_0x439be8[_0x284054])&&(_0x493fde=_0x25626c(_0x493fde)||_0x493fde);return _0x493fde;},at=(_0x4b9b5a,_0x4689e1)=>(_0x383443,_0x1e5cce)=>_0x4689e1(_0x383443,_0x1e5cce,_0x4b9b5a);const Vs=()=>({'runtimeCellData':{},'dirtyRanges':{}}),Os=(_0x45295d,_0x44ee67,_0x57d0dd)=>{const _0x373bb2=_0x472c5c,_0x2372e3=_0x45295d[_0x373bb2(0x193)];_0x45295d[_0x373bb2(0x1b8)](_0x3296fa=>{const _0x943f93=_0x373bb2,_0x1144e4=_0x3296fa[_0x943f93(0x21f)](),_0xa5317f=_0x3296fa[_0x943f93(0x23f)](),_0x28755b=_0x3296fa[_0x943f93(0x2d9)](),_0x5beb12=_0x3296fa['getDisplayName']();_0x44ee67[_0xa5317f]&&_0x44ee67[_0xa5317f]===_0x5beb12&&_0x28755b===_0x5beb12&&(_0x45295d[_0x943f93(0x206)](_0x1144e4,_0x2372e3['getDisplayName'](_0xa5317f)),_0x3296fa[_0x943f93(0xee)](_0x2372e3['getDisplayName'](_0xa5317f)));}),_0x45295d['iterateFieldByArea'](_0x41d892[_0x373bb2(0x192)],_0x2f676a=>{const _0x355668=_0x373bb2,_0x2999f6=_0x2f676a['getId'](),_0x245c8f=_0x2f676a['getDataFieldId'](),_0x2ccca3=_0x2f676a[_0x355668(0x2d9)](),_0x3ca786=_0x2f676a['getDisplayName'](),_0x4e05fc=_0x2f676a['getSubtotal'](),_0x177b1d=_0x57d0dd(_0x2ccca3,_0x4e05fc);_0x44ee67[_0x245c8f]&&_0x44ee67[_0x245c8f]===_0x2ccca3&&_0x177b1d===_0x3ca786&&(_0x45295d[_0x355668(0x206)](_0x2999f6,_0x57d0dd(_0x2372e3[_0x355668(0x2e8)](_0x245c8f),_0x4e05fc)),_0x2f676a[_0x355668(0xee)](_0x2372e3['getDisplayName'](_0x245c8f)));});},Es=(_0x407598,_0xefac9d,_0x5c625b)=>{const _0x430d60=_0x472c5c;var _0x32430e,_0x3b6a14;const {arrayFormulaCellData:_0x41c23a,unitData:_0x9cd07d}=_0xefac9d,{unitId:_0x223782,subUnitId:_0x3e1c26}=_0x5c625b,_0x2671fe=_0x5c625b[_0x430d60(0x213)],{startColumn:_0x169742,endColumn:_0x847946}=_0x2671fe,_0x5b5028=(_0x32430e=_0x41c23a==null?void 0x0:_0x41c23a[_0x223782])==null?void 0x0:_0x32430e[_0x3e1c26],_0x1a6267=(_0x3b6a14=_0x9cd07d==null?void 0x0:_0x9cd07d[_0x223782])==null?void 0x0:_0x3b6a14[_0x3e1c26],_0x491dbf=new Set(),_0x2aaebe=_0x847946-_0x169742+0x1,{dirtyRanges:_0x56a43e}=_0x407598;if(_0x56a43e)for(const {range:_0x3da1b4,sheetId:_0x1a880e,unitId:_0x9298e}of _0x56a43e){if(_0x1a880e!==_0x3e1c26||_0x223782!==_0x9298e)continue;const _0x3fe2b3=_0x2776bf['getIntersects'](_0x3da1b4,_0x2671fe);if(_0x3fe2b3){const {startColumn:_0x1ea6ed,endColumn:_0x2703e4}=_0x3fe2b3;for(let _0x31225b=_0x1ea6ed;_0x31225b<=_0x2703e4;_0x31225b++)_0x491dbf[_0x430d60(0x2f0)](_0x31225b);}}if(_0x491dbf[_0x430d60(0x2e9)]===_0x2aaebe||_0x491dbf[_0x430d60(0x2e9)]===_0x2aaebe)return Array[_0x430d60(0x28d)](_0x491dbf);if(_0x1a6267){const _0x5de73b=_0x1a6267[_0x430d60(0x29e)](),_0x2a3d17=Object[_0x430d60(0x118)](_0x5de73b);for(const _0x297b63 of _0x2a3d17){const _0x26b224=Number(_0x297b63),_0x1ae0c9=_0x5de73b[_0x26b224];if(_0x491dbf[_0x430d60(0x2e9)]===_0x2aaebe)break;for(const _0x281bd5 in _0x1ae0c9){const _0x1de3df=Number(_0x281bd5);_0x1de3df<_0x169742||_0x1de3df>_0x847946||_0x491dbf[_0x430d60(0x2f0)](_0x1de3df);}}}if(_0x5b5028){const _0x31b911=_0x5b5028['getMatrix'](),_0x1164a9=Object['keys'](_0x31b911);for(const _0x9c45e1 of _0x1164a9){const _0xfe40c4=Number(_0x9c45e1),_0x253553=_0x31b911[_0xfe40c4];if(_0x491dbf[_0x430d60(0x2e9)]===_0x2aaebe)break;for(const _0x1650a7 in _0x253553){const _0x4f36df=Number(_0x1650a7);_0x4f36df<_0x169742||_0x4f36df>_0x847946||_0x491dbf[_0x430d60(0x2f0)](_0x4f36df);}}}return Array[_0x430d60(0x28d)](_0x491dbf);},As=_0xdfc6aa=>{const _0x3f498c=_0x472c5c,_0x4ae572=new Set(),_0x201b17=[];for(const _0xcc3336 of _0xdfc6aa){const _0x3369b8=_0xcc3336[_0x3f498c(0x157)]+','+_0xcc3336[_0x3f498c(0x2c9)]+','+_0xcc3336['startColumn']+','+_0xcc3336[_0x3f498c(0xfc)];_0x4ae572[_0x3f498c(0x155)](_0x3369b8)||(_0x4ae572[_0x3f498c(0x2f0)](_0x3369b8),_0x201b17[_0x3f498c(0x2b1)](_0xcc3336));}return _0x201b17;};let ct=class extends _0x826d73{constructor(_0x49e233,_0x362117,_0x27c610,_0x1bcfdf,_0x3e5b28){const _0x27edcf=_0x472c5c;super(),x(this,_0x27edcf(0xb1),new _0x5f5a4d(!0x0)),x(this,_0x27edcf(0x2ee),_0x32682c=>{const _0x79d81f=_0x27edcf;this[_0x79d81f(0xb1)][_0x79d81f(0x303)](!0x1);}),x(this,'_globalComputedEndHelpFunc',_0x5c9f1e=>{this['_globalSubject']['next'](!0x0);}),(this[_0x27edcf(0x21a)]=_0x49e233,this[_0x27edcf(0x24d)]=_0x362117,this['_commandService']=_0x27c610,this[_0x27edcf(0x217)]=_0x1bcfdf,this[_0x27edcf(0x305)]=_0x3e5b28,this[_0x27edcf(0xf3)](),this[_0x27edcf(0x1b3)]());}[_0x472c5c(0xf3)](){const _0x29d89=_0x472c5c;this[_0x29d89(0x274)](),this[_0x29d89(0x10a)](),this['_initPivotTextInfo'](),this[_0x29d89(0x304)]();}[_0x472c5c(0x1f5)](){const _0x1212b3=_0x472c5c;this['_globalComputingSrv'][_0x1212b3(0x2dc)](this['_globalSubject']),_0x71cb7e[_0x1212b3(0x154)](_0xe14f2a[_0x1212b3(0x242)],this[_0x1212b3(0x2ee)]),_0x71cb7e[_0x1212b3(0x154)](_0xe14f2a[_0x1212b3(0x7f)],this[_0x1212b3(0x2d7)]);}[_0x472c5c(0x1b3)](){const _0x2f78e8=_0x472c5c;this[_0x2f78e8(0x286)](this[_0x2f78e8(0x9a)][_0x2f78e8(0x1f4)](_0x41019d=>{const _0x1d2b46=_0x2f78e8;_0x41019d['id']===_0x32bf16['id']&&this[_0x1d2b46(0x21a)]['handleMoveRange'](_0x41019d[_0x1d2b46(0xbd)]);})),this['disposeWithMe'](this[_0x2f78e8(0x9a)][_0x2f78e8(0x1f4)](_0x777ede=>{const _0x2a8c62=_0x2f78e8;if(_0x777ede['id']!==ro['id'])return;const _0x2b973d=_0x777ede[_0x2a8c62(0xbd)],{unitId:_0x5b48c7,subUnitId:_0xcb0b34,pivotTableId:_0x18ce16}=_0x2b973d,_0x506136=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x18a)],_0x37f71f={};switch(_0x506136){case k[_0x2a8c62(0xc6)]:{const _0x4d100d=_0x2b973d[_0x2a8c62(0xbd)]['filter'];if(!_0x4d100d)return;const {row:_0x134621,col:_0x2410ac,cellData:_0xe1ed14,pivotItemRenderInfoCache:_0x21174a,tableFieldId:_0x50012d}=_0x4d100d,_0x250071=this[_0x2a8c62(0x21a)][_0x2a8c62(0x2ca)](_0x2b973d[_0x2a8c62(0x22c)]);if(!_0x250071||!_0x21174a)return;if(_0x50012d){const _0x28b400=_0x250071[_0x2a8c62(0xe6)](_0x50012d);if(!_0x28b400)return;_0x37f71f['filter']={..._0x250071[_0x2a8c62(0xba)](_0x28b400),'tableFieldId':_0x50012d,'pivotTableId':_0x2b973d[_0x2a8c62(0x22c)],'filterInfo':_0x250071[_0x2a8c62(0x14c)](_0x50012d),'sortInfo':_0x250071[_0x2a8c62(0x14d)](_0x50012d),'format':_0x250071[_0x2a8c62(0x16e)](_0x50012d)};}else{const _0x274a36=ki(_0x134621,_0x2410ac,_0xe1ed14,_0x250071,_0x21174a),_0x201d3d=_0x274a36==null?void 0x0:_0x274a36[_0x2a8c62(0x95)];if(!_0x201d3d)return;const _0x2170b0=_0x250071[_0x2a8c62(0xe6)](_0x201d3d);if(!_0x2170b0)return;_0x37f71f[_0x2a8c62(0x1e2)]={..._0x250071['getDataFieldItemInfo'](_0x2170b0),'tableFieldId':_0x201d3d,'pivotTableId':_0x2b973d[_0x2a8c62(0x22c)],'filterInfo':_0x250071[_0x2a8c62(0x14c)](_0x201d3d),'sortInfo':_0x250071[_0x2a8c62(0x14d)](_0x201d3d),'format':_0x250071[_0x2a8c62(0x16e)](_0x201d3d)};}}break;case k[_0x2a8c62(0x1b6)]:{const _0xf6eae=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x113)];if(!_0xf6eae)return;const {pivotTableId:_0x4f9565}=_0xf6eae,_0x404727=this[_0x2a8c62(0x21a)]['getPivotTableInstance'](_0x4f9565);if(!_0x404727)return;const _0xedb731=this[_0x2a8c62(0x21a)]['getPivotTableConfig'](_0x5b48c7,_0xcb0b34,_0x4f9565),_0x428f39=Li(_0x404727,_0x4f9565,_0xedb731);_0x37f71f[_0x2a8c62(0x113)]=_0x428f39;}break;case k[_0x2a8c62(0x2ed)]:{const _0x3f8c9f=this[_0x2a8c62(0x21a)][_0x2a8c62(0x2ca)](_0x18ce16),_0x48cb15=this['_sheetsPivotDataSourceModel']['getDataFieldManager'](_0x5b48c7),_0x3e67b3=_0x48cb15[_0x2a8c62(0x14f)](_0x18ce16);let _0x3859a0=null;const _0x4a0ae7=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16),_0x54cfe4=_0x2b973d[_0x2a8c62(0xbd)]['addPivotField'];if(!_0x3f8c9f||!_0x4a0ae7||!_0x54cfe4)return!0x1;const {dataFieldId:_0x12e57f,fieldArea:_0x4f9cd0,index:_0x987c00}=_0x54cfe4;_0x3f8c9f['startCollectChangeset']();const _0x150977=_0x3f8c9f[_0x2a8c62(0x18b)](_0x12e57f,_0x4f9cd0,_0x987c00);if(_0x150977&&_0x4f9cd0===_0x41d892[_0x2a8c62(0x192)]){const _0x6841e8=_0x150977[_0x2a8c62(0x21f)](),_0x43ed7c=_0x3f8c9f[_0x2a8c62(0xe6)](_0x6841e8);if(_0x43ed7c){const _0x27c1ea=_0x43ed7c==null?void 0x0:_0x43ed7c[_0x2a8c62(0xe4)]();_0x3f8c9f[_0x2a8c62(0xe2)](_0x150977[_0x2a8c62(0x21f)](),_0x27c1ea===_0x4a2d2c[_0x2a8c62(0x11d)]?_0x45d1a0[_0x2a8c62(0x244)]:_0x45d1a0[_0x2a8c62(0x2a1)]);}const _0x5005b6=_0x3f8c9f[_0x2a8c62(0x1d1)](),_0x23cb80=_0x3f8c9f[_0x2a8c62(0xf6)](),_0x29adbc=_0x3f8c9f['getFieldCountByArea'](_0x41d892[_0x2a8c62(0x192)]);if(_0x5005b6===-0x1&&_0x29adbc>0x1){const _0x363290=_0x23cb80===_0x43f0a2[_0x2a8c62(0x2bf)]?_0x43f0a2[_0x2a8c62(0x249)]:_0x23cb80,_0x58839f=_0x363290===_0x43f0a2[_0x2a8c62(0x2f7)]?_0x41d892[_0x2a8c62(0x2f7)]:_0x41d892['Column'];_0x3f8c9f['updateValuePosition'](_0x363290,_0x3f8c9f[_0x2a8c62(0x14a)](_0x58839f));}}else{if(_0x150977&&(_0x4f9cd0===_0x41d892[_0x2a8c62(0x2f7)]||_0x4f9cd0===_0x41d892[_0x2a8c62(0x249)])){const _0x3ce7bd=_0x150977[_0x2a8c62(0x21f)](),_0x43fde3=_0x3f8c9f['getDataFieldByTableId'](_0x3ce7bd);if(_0x43fde3&&(_0x43fde3==null?void 0x0:_0x43fde3[_0x2a8c62(0xe4)]())===_0x4a2d2c[_0x2a8c62(0x25e)]){const _0x12ad9d=_0x43fde3[_0x2a8c62(0xd1)]();if(_0x12ad9d&&_0x3f8c9f[_0x2a8c62(0x169)](_0x150977['getId'](),_0x12ad9d),!_0x3e67b3['getFieldIds']()[_0x2a8c62(0x20b)](_0x5a8681=>{const _0x1cd714=_0x2a8c62,_0x245e5c=_0x3e67b3['getFieldById'](_0x5a8681);return _0x3b3beb(_0x245e5c)?_0x245e5c['getFieldInfo']()[_0x1cd714(0x13c)]===_0x12e57f:!0x1;})){const _0x8d6f28=_0x48cb15[_0x2a8c62(0xea)](),_0x4a48f4=Hi(_0x43fde3[_0x2a8c62(0x1e9)],_0x43fde3[_0x2a8c62(0x1ed)]),_0x3338a8=_0x43fde3[_0x2a8c62(0x1fe)]()+_0x2a8c62(0x2d4)+qo(this[_0x2a8c62(0x305)],_0x4a48f4),_0x4d61b4=new _0x2a6950(_0x8d6f28,_0x3338a8,_0x5460c5(0x3),_0x43fde3[_0x2a8c62(0x21f)](),_0x4a48f4);_0x48cb15[_0x2a8c62(0x2f4)](_0x4d61b4),_0x3e67b3[_0x2a8c62(0x1ba)](_0x8d6f28,_0x3338a8),_0x3f8c9f['addFieldWithSourceId'](_0x8d6f28,_0x4f9cd0,(_0x987c00!=null?_0x987c00:0x0)+0x1),_0x3859a0=_0x4d61b4;}}}}const _0x3a3567=_0x3f8c9f[_0x2a8c62(0x229)](),_0x365bf6=_0x3f8c9f[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)]();let _0x5d25b0;if(_0x3859a0){_0x5d25b0=_0x3859a0['toJSON']();const _0x1c3f8c=_0x3859a0[_0x2a8c62(0x21f)]();_0x3e67b3[_0x2a8c62(0x2cc)](_0x1c3f8c);let _0x35890d=!0x0;for(const _0x20a53f in _0x48cb15['collections'])if(_0x48cb15[_0x2a8c62(0xa9)][_0x20a53f][_0x2a8c62(0x183)]()[_0x2a8c62(0x2c7)](_0x1c3f8c)){_0x35890d=!0x1;break;}_0x35890d&&_0x48cb15[_0x2a8c62(0x82)](_0x1c3f8c);}const _0x36df0c=_0x3f8c9f[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0x87)]={'view':_0x365bf6,'changesets':_0x36df0c,'isEmpty':_0x3a3567,'pivotTableConfig':_0x4a0ae7,'shouldBeAddedGroupJSON':_0x5d25b0};}break;case k[_0x2a8c62(0x204)]:{const _0x4ab5dc=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x279)];if(!_0x4ab5dc)return;const _0x1af72b=_0x4ab5dc[_0x2a8c62(0xde)],_0x5e13ea=_0x4ab5dc['pivotTableId'],{collection:_0x396fb0}=this[_0x2a8c62(0x21a)][_0x2a8c62(0x1da)]({'unitId':_0x1af72b[_0x2a8c62(0x218)],'sheetName':_0x1af72b[_0x2a8c62(0x185)],'subUnitId':_0x1af72b[_0x2a8c62(0x1dc)],'range':_0x1af72b[_0x2a8c62(0x213)]}),_0x267d67=new _0x71cb7e(_0x396fb0,void 0x0,_0x5e13ea),_0x284848=_0x267d67[_0x2a8c62(0x1d8)](),_0x4a5de2=_0x267d67[_0x2a8c62(0x9e)](),_0x50b1c6=_0x396fb0['toJSON']();_0x37f71f[_0x2a8c62(0x279)]={'view':_0x284848,'fieldsConfig':_0x4a5de2,'collectionConfig':_0x50b1c6,'isEmpty':_0x267d67[_0x2a8c62(0x229)]()};}break;case k[_0x2a8c62(0x287)]:{const _0x4b0c42=_0x2b973d[_0x2a8c62(0xbd)]['movePivotField'];if(!_0x4b0c42)return;const {fieldId:_0x3c9449,area:_0x2ff38b,index:_0x1c8e08}=_0x4b0c42,_0x3063cd=this['_sheetsPivotDataSourceModel'][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x3063cd)return;const _0x3c0e14=this[_0x2a8c62(0x21a)]['getPivotTableInstance'](_0x18ce16);if(!_0x3c0e14)return;_0x3c0e14[_0x2a8c62(0x91)]();const {area:_0x1e55c0,index:_0x4a32e0}=_0x3c0e14[_0x2a8c62(0x263)](_0x3c9449);if(_0x3c0e14[_0x2a8c62(0x19f)](_0x3c9449,_0x2ff38b,_0x1c8e08),_0x2ff38b===_0x41d892[_0x2a8c62(0x192)]&&_0x3c0e14[_0x2a8c62(0x96)](_0x3c9449)[_0x2a8c62(0x12c)]()===void 0x0){const _0x4577a9=_0x3c0e14[_0x2a8c62(0x96)](_0x3c9449);if(_0x4577a9&&_0x4577a9[_0x2a8c62(0x12c)]()===void 0x0){const _0x5fda17=_0x3c0e14[_0x2a8c62(0xe6)](_0x3c9449);if(_0x5fda17){const _0x48d31b=_0x5fda17==null?void 0x0:_0x5fda17['getFieldDataType']();_0x3c0e14[_0x2a8c62(0xe2)](_0x3c9449,_0x48d31b===_0x4a2d2c[_0x2a8c62(0x11d)]?_0x45d1a0[_0x2a8c62(0x244)]:_0x45d1a0[_0x2a8c62(0x2a1)]);}}}const _0x571110=_0x3c0e14[_0x2a8c62(0xf6)](),_0x251dd1=_0x3c0e14['getValueIndex'](),_0x4eb4a9=_0x3c0e14[_0x2a8c62(0x14a)](_0x41d892[_0x2a8c62(0x192)])>0x1;if(_0x4eb4a9&&_0x1e55c0===_0x2ff38b&&(_0x2ff38b===_0x41d892[_0x2a8c62(0x2f7)]&&_0x571110===_0x43f0a2[_0x2a8c62(0x2f7)]||_0x2ff38b===_0x41d892[_0x2a8c62(0x249)]&&_0x571110===_0x43f0a2[_0x2a8c62(0x249)])){let _0x187a43=_0x251dd1;_0x4a32e0<=_0x251dd1&&_0x187a43--,_0x1c8e08<=_0x251dd1&&_0x187a43++,_0x3c0e14['updateValuePosition'](_0x571110,_0x187a43);}else _0x4eb4a9&&(_0x1e55c0===_0x41d892[_0x2a8c62(0x2f7)]&&_0x571110===_0x43f0a2[_0x2a8c62(0x2f7)]||_0x1e55c0===_0x41d892['Column']&&_0x571110===_0x43f0a2['Column'])&&_0x251dd1>=_0x4a32e0&&_0x3c0e14[_0x2a8c62(0x298)](_0x571110,_0x251dd1-0x1),_0x4eb4a9&&(_0x2ff38b===_0x41d892[_0x2a8c62(0x2f7)]&&_0x571110===_0x43f0a2[_0x2a8c62(0x2f7)]||_0x2ff38b===_0x41d892[_0x2a8c62(0x249)]&&_0x571110===_0x43f0a2[_0x2a8c62(0x249)])&&_0x251dd1>=_0x1c8e08&&_0x3c0e14['updateValuePosition'](_0x571110,_0x251dd1+0x1);const _0x26de10=_0x3c0e14['query'](),_0x14c613=_0x3c0e14[_0x2a8c62(0x229)](),_0x534610=_0x3c0e14[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0x2bd)]={'view':_0x26de10[_0x2a8c62(0x9e)](),'changesets':_0x534610,'isEmpty':_0x14c613,'pivotTableConfig':_0x3063cd};}break;case k[_0x2a8c62(0x29c)]:{const _0xef6801=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0xd4)];if(!_0xef6801)return;const _0x3a4f63=_0xef6801[_0x2a8c62(0x1cf)],_0x1025e5=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x1025e5)return!0x1;const _0x4bb7bf=this[_0x2a8c62(0x21a)]['getPivotTableInstance'](_0x18ce16);if(!_0x4bb7bf)return!0x1;_0x4bb7bf['startCollectChangeset']();for(const _0x184793 of _0x3a4f63){const {area:_0x3ca31c}=_0x4bb7bf['getFieldPositionInfoById'](_0x184793);_0x3ca31c===_0x41d892['Value']&&_0x4bb7bf[_0x2a8c62(0x2af)](_0x184793),(_0x3ca31c===_0x41d892[_0x2a8c62(0x2f7)]||_0x3ca31c===_0x41d892[_0x2a8c62(0x249)])&&_0x4bb7bf[_0x2a8c62(0xc0)](_0x184793),_0x4bb7bf['removeField'](_0x184793);}const _0x5eb81a=_0x4bb7bf[_0x2a8c62(0x229)](),_0x41911c=_0x4bb7bf[_0x2a8c62(0x1d8)]()['toJSON'](),_0x27d156=_0x4bb7bf[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0xd4)]={'changesets':_0x27d156,'pivotTableConfig':_0x1025e5,'isEmpty':_0x5eb81a,'view':_0x41911c};}break;case k[_0x2a8c62(0x209)]:{const _0x19f6b2=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x309)];if(!_0x19f6b2)return;const {tableFieldId:_0x5c075e,items:_0x4969d1,isAll:_0x2b7cd3}=_0x19f6b2,_0x2e8548=this[_0x2a8c62(0x21a)][_0x2a8c62(0x2ca)](_0x18ce16),_0x2b1f41=this[_0x2a8c62(0x21a)]['getPivotTableConfig'](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x2e8548||!_0x2b1f41)return;_0x2e8548[_0x2a8c62(0x91)](),_0x2e8548['setLabelFilterInfo'](_0x5c075e,{'type':_0x20d372[_0x2a8c62(0x137)],'list':_0x4969d1,'isAll':_0x2b7cd3});const _0xda1563=_0x2e8548[_0x2a8c62(0x229)](),_0x29e8b7=_0x2e8548['query']()[_0x2a8c62(0x9e)](),_0x31949e=_0x2e8548['endCollectChangeset']();_0x37f71f['setPivotFilter']={'view':_0x29e8b7,'changesets':_0x31949e,'isEmpty':_0xda1563,'pivotTableConfig':_0x2b1f41};}break;case k[_0x2a8c62(0x257)]:{const _0x33bf96=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x170)];if(!_0x33bf96)return;const {tableFieldId:_0x3f1690,filterInfo:_0x58e4c4}=_0x33bf96,_0x562f0d=this[_0x2a8c62(0x21a)]['getPivotTableInstance'](_0x18ce16),_0x21e81d=this['_sheetsPivotDataSourceModel'][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x562f0d||!_0x21e81d)return;_0x562f0d[_0x2a8c62(0x91)](),_0x562f0d[_0x2a8c62(0x2fe)](_0x3f1690,_0x58e4c4);const _0x164e5f=_0x562f0d['isEmpty'](),_0x4626ef=_0x562f0d[_0x2a8c62(0x1d8)]()['toJSON'](),_0x22f46b=_0x562f0d['endCollectChangeset']();_0x37f71f['setValuePivotFilter']={'view':_0x4626ef,'changesets':_0x22f46b,'isEmpty':_0x164e5f,'pivotTableConfig':_0x21e81d};}break;case k[_0x2a8c62(0xec)]:{const _0x1405a7=_0x2b973d[_0x2a8c62(0xbd)]['setPivotSort'];if(!_0x1405a7)return;const {tableFieldId:_0x524fff,info:_0x424d50}=_0x1405a7,_0xd2d22a=this[_0x2a8c62(0x21a)]['getPivotTableInstance'](_0x18ce16),_0x1da66d=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0xd2d22a||!_0x1da66d)return;_0xd2d22a['startCollectChangeset'](),_0xd2d22a['setSortInfo'](_0x524fff,_0x424d50);const _0x5e55df=_0xd2d22a[_0x2a8c62(0x229)](),_0x28e7c8=_0xd2d22a[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)](),_0x35ce90=_0xd2d22a['endCollectChangeset']();_0x37f71f[_0x2a8c62(0x156)]={'view':_0x28e7c8,'changesets':_0x35ce90,'isEmpty':_0x5e55df,'pivotTableConfig':_0x1da66d};}break;case k[_0x2a8c62(0x2b5)]:{const _0xbcd340=_0x2b973d['params']['setPivotSetting'];if(!_0xbcd340)return;const {tableFieldId:_0x56541f,displayName:_0x2aad43,subtotalType:_0x33febf,format:_0x2029ee}=_0xbcd340,_0x1a77bd=this[_0x2a8c62(0x21a)][_0x2a8c62(0x2ca)](_0x18ce16),_0x4c173a=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x1a77bd||!_0x4c173a)return;_0x1a77bd['startCollectChangeset'](),_0x2aad43!==void 0x0&&_0x1a77bd[_0x2a8c62(0x206)](_0x56541f,_0x2aad43),_0x33febf!==void 0x0&&_0x1a77bd[_0x2a8c62(0xe2)](_0x56541f,_0x33febf),_0x2029ee!==void 0x0&&_0x1a77bd[_0x2a8c62(0x169)](_0x56541f,_0x2029ee);const _0x191aaf=_0x1a77bd['isEmpty'](),_0x228f65=_0x1a77bd[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)](),_0x4a0102=_0x1a77bd[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0xcc)]={'changesets':_0x4a0102,'pivotTableConfig':_0x4c173a,'isEmpty':_0x191aaf,'view':_0x228f65};}break;case k[_0x2a8c62(0x292)]:{const _0x2fce95=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x17a)];if(!_0x2fce95)return;const {dataRangeInfo:_0x38e045,unitId:_0x559167,subUnitId:_0x16a942}=_0x2fce95,_0x1ca741=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x559167,_0x16a942,_0x18ce16),_0x4fe443=this['_sheetsPivotDataSourceModel'][_0x2a8c62(0x2ca)](_0x18ce16);if(!this['_sheetsPivotDataSourceModel']['getCollection'](_0x559167,_0x18ce16)||!_0x4fe443||!_0x1ca741)return;const _0x367561=this[_0x2a8c62(0x21a)][_0x2a8c62(0x212)](_0x559167,_0x18ce16,_0x38e045),_0x265d47=this[_0x2a8c62(0x21a)][_0x2a8c62(0x14f)](_0x559167,_0x18ce16)[_0x2a8c62(0x9e)](),{collection:_0x13b553}=this[_0x2a8c62(0x21a)][_0x2a8c62(0x1da)]({'unitId':_0x38e045[_0x2a8c62(0x218)],'sheetName':_0x38e045[_0x2a8c62(0x185)],'subUnitId':_0x38e045['subUnitId'],'range':_0x38e045[_0x2a8c62(0x213)]}),_0x5a2014=_0x13b553[_0x2a8c62(0x9e)]();_0x4fe443[_0x2a8c62(0x91)]();const _0x1a9f5d=this[_0x2a8c62(0x21a)][_0x2a8c62(0x266)](_0x559167)[_0x2a8c62(0x21c)]()||_0x1f6664;_0x4fe443[_0x2a8c62(0x11e)](_0x34540e=>{const _0x19e552=_0x2a8c62,_0x1e3807=_0x34540e[_0x19e552(0x23f)]();if(!_0x13b553[_0x19e552(0x81)](_0x1e3807)){const _0x372b84=_0x13b553[_0x19e552(0x291)](_0x34540e[_0x19e552(0x2d9)]());if(_0x372b84){_0x4fe443['updateFieldSourceInfo'](_0x34540e['getId'](),_0x372b84[_0x19e552(0x1fe)](),_0x372b84['getId']());const {area:_0x139698}=_0x4fe443['getFieldPositionInfoById'](_0x34540e[_0x19e552(0x21f)]());let _0x40bc6f=_0x34540e[_0x19e552(0x2d9)]();const _0x2742cb=_0x34540e['getDisplayName']();if(_0x139698===_0x41d892[_0x19e552(0x192)]){const _0x1f3442=_0x34540e[_0x19e552(0x12c)]();_0x40bc6f=_0x1a9f5d(_0x372b84[_0x19e552(0x1fe)](),_0x1f3442);}_0x2742cb!==_0x40bc6f&&_0x4fe443[_0x19e552(0x206)](_0x34540e['getId'](),_0x40bc6f);}else _0x4fe443[_0x19e552(0x11b)](_0x34540e['getId']());}});const _0x1f621e=_0x4fe443[_0x2a8c62(0x229)](),_0x436ebf=_0x4fe443['query']()[_0x2a8c62(0x9e)](),_0x20f250=_0x4fe443[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0x17a)]={'view':_0x436ebf,'changesets':_0x20f250,'isEmpty':_0x1f621e,'pivotTableConfig':_0x1ca741,'collectionConfig':_0x5a2014,'oldCollectionConfig':_0x265d47,'deleteIds':_0x367561};}break;case k[_0x2a8c62(0x20a)]:{const _0x3421=_0x2b973d['params']['updateValuePosition'];if(!_0x3421)return;const {position:_0x2fed5b,index:_0x5bdec6}=_0x3421,_0x3f5836=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x3f5836)return!0x1;const _0xb7e086=this['_sheetsPivotDataSourceModel'][_0x2a8c62(0x2ca)](_0x18ce16);if(!_0xb7e086)return!0x1;_0xb7e086[_0x2a8c62(0x91)](),_0xb7e086[_0x2a8c62(0x298)](_0x2fed5b,_0x5bdec6);const _0x588332=_0xb7e086[_0x2a8c62(0x229)](),_0x224b8e=_0xb7e086[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)](),_0x61ce33=_0xb7e086[_0x2a8c62(0x8f)]();_0x37f71f['updateValuePosition']={'changesets':_0x61ce33,'pivotTableConfig':_0x3f5836,'isEmpty':_0x588332,'view':_0x224b8e};}break;case k[_0x2a8c62(0x181)]:{const _0x506a70=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x132)];if(!_0x506a70)return;const {tableFieldId:_0x44140b,collapse:_0x1cd800,item:_0x49ed42}=_0x506a70,_0x41afab=this['_sheetsPivotDataSourceModel']['getPivotTableInstance'](_0x18ce16),_0x595c15=this[_0x2a8c62(0x21a)][_0x2a8c62(0x17d)](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x41afab||!_0x595c15)return;_0x41afab[_0x2a8c62(0x91)](),_0x41afab[_0x2a8c62(0xac)](_0x44140b,_0x1cd800,_0x49ed42);const _0x411da0=_0x41afab[_0x2a8c62(0x229)](),_0x3d7422=_0x41afab[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)](),_0x113f0a=_0x41afab[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0x132)]={'view':_0x3d7422,'isEmpty':_0x411da0,'pivotTableConfig':_0x595c15,'changesets':_0x113f0a};}break;case k['SetPivotTableConfig']:{const _0x2871f1=_0x2b973d[_0x2a8c62(0xbd)]['setPivotTableConfig'];if(!_0x2871f1)return;const {pivotTableConfig:_0x263cf3}=_0x2871f1,_0x230466=this[_0x2a8c62(0x21a)][_0x2a8c62(0x2ca)](_0x18ce16),_0xc13b80=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x230466||!_0xc13b80)return;_0x230466['startCollectChangeset'](),Xi(_0x230466,_0x263cf3);const _0x327b90=_0x230466[_0x2a8c62(0x229)](),_0x59af9c=_0x230466[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)](),_0x1b5080=_0x230466[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0x255)]={'view':_0x59af9c,'isEmpty':_0x327b90,'pivotTableConfig':{..._0xc13b80,'fieldsConfig':_0x230466[_0x2a8c62(0x9e)]()},'changesets':_0x1b5080};}break;case k['ResetPivotTable']:{const _0x1dd06e=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x300)];if(!_0x1dd06e)return;const _0x139558=this[_0x2a8c62(0x21a)][_0x2a8c62(0x2ca)](_0x18ce16),_0x1b115a=this['_sheetsPivotDataSourceModel']['getPivotTableConfig'](_0x5b48c7,_0xcb0b34,_0x18ce16);if(!_0x139558||!_0x1b115a)return;_0x139558['startCollectChangeset'](),Ki(_0x139558,_0x1dd06e[_0x2a8c62(0x1e3)]);const _0x49b221=_0x139558[_0x2a8c62(0x1d8)]()[_0x2a8c62(0x9e)](),_0x1f3f1e=_0x139558[_0x2a8c62(0x8f)]();_0x37f71f[_0x2a8c62(0x300)]={'view':_0x49b221,'isEmpty':!0x0,'pivotTableConfig':{..._0x1b115a,'fieldsConfig':_0x139558[_0x2a8c62(0x9e)]()},'changesets':_0x1f3f1e};}break;case k[_0x2a8c62(0x284)]:{const _0x4b97f8=_0x2b973d[_0x2a8c62(0xbd)][_0x2a8c62(0x1c6)];if(!_0x4b97f8)return;const _0x481e90=_0x4b97f8['sourceRangeInfo'],_0x4b88ed=_0x4b97f8[_0x2a8c62(0x22c)],{collection:_0x3c7587}=this['_sheetsPivotDataSourceModel'][_0x2a8c62(0x1da)]({'unitId':_0x481e90[_0x2a8c62(0x218)],'sheetName':_0x481e90[_0x2a8c62(0x185)],'subUnitId':_0x481e90[_0x2a8c62(0x1dc)],'range':_0x481e90[_0x2a8c62(0x213)]}),_0x2e592d=new _0x71cb7e(_0x3c7587,void 0x0,_0x4b88ed),_0x2c3a66=_0x3c7587['getFieldIds'](),{rows:_0x52e8c2,columns:_0x5c8f53,filters:_0x12b041,values:_0x2aa844}=_0x4b97f8[_0x2a8c62(0xf9)];_0x2e592d[_0x2a8c62(0x91)]();for(const {field:_0x552b26,selectedItems:_0x1a26b4}of _0x52e8c2||[]){const _0xef9b40=_0x2c3a66[_0x552b26];if(_0xef9b40){const _0x2e9d69=_0x2e592d[_0x2a8c62(0x18b)](_0xef9b40,_0x41d892[_0x2a8c62(0x2f7)]);_0x1a26b4&&_0x2e9d69&&_0x2e592d[_0x2a8c62(0x2eb)](_0x2e9d69[_0x2a8c62(0x21f)](),{'type':_0x20d372[_0x2a8c62(0x137)],'list':_0x1a26b4,'isAll':!0x1});}}for(const {field:_0x6f7c59,selectedItems:_0x5e1090}of _0x5c8f53||[]){const _0x4e31c6=_0x2c3a66[_0x6f7c59];if(_0x4e31c6){const _0x126e26=_0x2e592d[_0x2a8c62(0x18b)](_0x4e31c6,_0x41d892[_0x2a8c62(0x249)]);_0x5e1090&&_0x126e26&&_0x2e592d['setLabelFilterInfo'](_0x126e26[_0x2a8c62(0x21f)](),{'type':_0x20d372[_0x2a8c62(0x137)],'list':_0x5e1090,'isAll':!0x1});}}for(const {field:_0x5b5b0e,selectedItems:_0x13093c}of _0x12b041||[]){const _0x555114=_0x2c3a66[_0x5b5b0e];if(_0x555114){const _0x171ce0=_0x2e592d[_0x2a8c62(0x18b)](_0x555114,_0x41d892['Filter']);_0x13093c&&_0x171ce0&&_0x2e592d['setLabelFilterInfo'](_0x171ce0[_0x2a8c62(0x21f)](),{'type':_0x20d372['ManualFilter'],'list':_0x13093c,'isAll':!0x1});}}for(const {field:_0x5710f2,subTotalType:_0x589f37,formatString:_0x3c04d6}of _0x2aa844||[]){const _0x575c37=_0x3c7587[_0x2a8c62(0x16d)](_0x2c3a66[_0x5710f2]);if(!_0x575c37)continue;const _0x2c78fb=_0x2c3a66[_0x5710f2];if(_0x2c78fb){const _0x1e49e9=_0x2e592d[_0x2a8c62(0x18b)](_0x2c78fb,_0x41d892['Value']);if(_0x1e49e9){if(_0x589f37!==void 0x0){_0x2e592d[_0x2a8c62(0xe2)](_0x1e49e9[_0x2a8c62(0x21f)](),_0x589f37);const _0x11a444=this[_0x2a8c62(0x21a)][_0x2a8c62(0x266)](_0x481e90[_0x2a8c62(0x218)])[_0x2a8c62(0x21c)]()||_0x1f6664,_0x4b893d=_0x3c7587[_0x2a8c62(0x2e8)](_0x2c78fb),_0x2e7f57=_0x11a444(_0x4b893d,_0x589f37);_0x2e592d['renameField'](_0x1e49e9[_0x2a8c62(0x21f)](),_0x2e7f57);}else{if(_0x575c37){const _0x4b09ec=_0x575c37==null?void 0x0:_0x575c37['getFieldDataType']();_0x2e592d['setSubtotalType'](_0x1e49e9[_0x2a8c62(0x21f)](),_0x4b09ec===_0x4a2d2c['number']?_0x45d1a0[_0x2a8c62(0x244)]:_0x45d1a0[_0x2a8c62(0x2a1)]);}}_0x3c04d6&&_0x2e592d[_0x2a8c62(0x169)](_0x1e49e9[_0x2a8c62(0x21f)](),_0x3c04d6);}}}const _0x31d1e8=_0x2e592d[_0x2a8c62(0x1d8)](),_0x3bd0fb=_0x2e592d[_0x2a8c62(0x9e)](),_0x45790e=_0x2e592d[_0x2a8c62(0x229)](),_0x420a51=_0x2e592d[_0x2a8c62(0x8f)](),_0x229b44=_0x3c7587[_0x2a8c62(0x9e)]();_0x37f71f[_0x2a8c62(0x1c6)]={'view':_0x31d1e8,'fieldsConfig':_0x3bd0fb,'collectionConfig':_0x229b44,'isEmpty':_0x45790e,'changesets':_0x420a51};}break;case k[_0x2a8c62(0x2c1)]:{const _0x426d1e=Bi(this['_injector'],_0x2b973d);if(!_0x426d1e)return;const {range:_0x3eefe2,sourceSubUnitId:_0xf82c45,sourceUnitId:_0x17d311,formatMap:_0x5b1843,indexes:_0x45bfd5}=_0x426d1e;_0x37f71f[_0x2a8c62(0x1cd)]={'range':_0x3eefe2,'sourceSubUnitId':_0xf82c45,'sourceUnitId':_0x17d311,'formatMap':_0x5b1843,'indexes':_0x45bfd5};}break;}this[_0x2a8c62(0x9a)][_0x2a8c62(0x22f)](lo['id'],{'version':_0x2b973d['version'],'result':_0x37f71f},{'onlyLocal':!0x0});}));}[_0x472c5c(0x1bf)](){const _0x26c99c=_0x472c5c;this[_0x26c99c(0x286)](this['_commandService'][_0x26c99c(0x1f4)](_0x442d52=>{const _0x3cd6de=_0x26c99c;if(_0x442d52['id']!==uo['id'])return;const _0x22d06b=_0x442d52[_0x3cd6de(0xbd)];return this[_0x3cd6de(0x21a)][_0x3cd6de(0x216)](_0x22d06b[_0x3cd6de(0xf5)]),!0x0;}));}['_subjectCollectionChange'](){const _0x21eb5c=_0x472c5c;this[_0x21eb5c(0x21a)][_0x21eb5c(0x289)][_0x21eb5c(0x101)](_0x55005c=>{const _0xb5ada9=_0x21eb5c;switch(_0x55005c[_0xb5ada9(0x18a)]){case Be[_0xb5ada9(0x2f0)]:_0x55005c[_0xb5ada9(0x80)]&&_0x55005c[_0xb5ada9(0x26a)]&&this['handleSourceRangeChange'](_0x55005c[_0xb5ada9(0x251)],_0x55005c[_0xb5ada9(0x80)],_0x55005c[_0xb5ada9(0x26a)]);break;case Be[_0xb5ada9(0x1b4)]:{const {unitId:_0x3c1e2e,subUnitId:_0x570bda,token:_0xf4a918}=_0x55005c;_0x3c1e2e&&_0x570bda&&_0xf4a918&&this[_0xb5ada9(0x26e)](_0x3c1e2e,_0x570bda,_0xf4a918);}break;case Be[_0xb5ada9(0x246)]:{const {token:_0x319fca,oldSourceRangeInfo:_0xd7b80b,dataRangeInfo:_0x362989,targetCellInfo:_0x47bb30}=_0x55005c,{unitId:_0x49252f,subUnitId:_0x5aa92e}=_0xd7b80b||{};_0x49252f&&_0x5aa92e&&_0x319fca&&this[_0xb5ada9(0x26e)](_0x49252f,_0x5aa92e,_0x319fca),_0x362989&&_0x47bb30&&this[_0xb5ada9(0x126)](_0x319fca,_0x362989,_0x47bb30);}break;}});}[_0x472c5c(0x304)](){const _0x58c29a=_0x472c5c;this[_0x58c29a(0x21a)][_0x58c29a(0x84)][_0x58c29a(0x101)](_0x4fd7c5=>{const _0x1690aa=_0x58c29a;Object[_0x1690aa(0x118)](_0x4fd7c5)['forEach'](_0x135b4c=>{const _0x5b03e7=_0x1690aa,_0xb4bed=this['_sheetsPivotDataSourceModel']['getTargetByPivotId'](_0x135b4c);if(_0xb4bed){const _0x22a577=this[_0x5b03e7(0x21a)][_0x5b03e7(0x17d)](_0xb4bed==null?void 0x0:_0xb4bed[_0x5b03e7(0x218)],_0xb4bed==null?void 0x0:_0xb4bed[_0x5b03e7(0x1dc)],_0x135b4c);_0x22a577&&(this[_0x5b03e7(0x126)](_0x135b4c,_0x22a577[_0x5b03e7(0xde)],_0x22a577[_0x5b03e7(0x26a)]),this[_0x5b03e7(0x92)]([{'unitId':_0xb4bed['unitId'],'subUnitId':_0xb4bed[_0x5b03e7(0x1dc)],'token':_0x135b4c}]));}});});}['_subjectViewChange'](){const _0x52948f=_0x472c5c;this[_0x52948f(0x21a)][_0x52948f(0x15b)][_0x52948f(0x101)](_0x129088=>{const {unitId:_0x5153c4,subUnitId:_0x2cbc37,pivotTableId:_0x486f16}=_0x129088;_0x5153c4&&_0x2cbc37&&_0x486f16&&this['triggerDirtyFeature']([{'unitId':_0x5153c4,'subUnitId':_0x2cbc37,'token':_0x486f16}]);});}[_0x472c5c(0x92)](_0x58c8f9){const _0x397810=_0x472c5c,_0x2ac87e={};_0x58c8f9[_0x397810(0xaf)](_0x100735=>{var _0x4e98c3,_0x1823b1;const {unitId:_0x4dd1a9,subUnitId:_0x118c7e,token:_0x1ad6fe}=_0x100735;_0x2ac87e[_0x4dd1a9]=(_0x4e98c3=_0x2ac87e[_0x4dd1a9])!=null?_0x4e98c3:{},_0x2ac87e[_0x4dd1a9][_0x118c7e]=(_0x1823b1=_0x2ac87e[_0x4dd1a9][_0x118c7e])!=null?_0x1823b1:{},_0x2ac87e[_0x4dd1a9][_0x118c7e][_0x1ad6fe]=!0x0;}),this[_0x397810(0x9a)][_0x397810(0x22f)](xt['id'],_0x2ac87e);}[_0x472c5c(0x26e)](_0x1047e1,_0x21ea3f,_0x521ccd){const _0x486bb9=_0x472c5c;this[_0x486bb9(0x24d)]['remove'](_0x1047e1,_0x21ea3f,[_0x521ccd]);}[_0x472c5c(0x126)](_0x527155,_0xd73c84,_0x4de4ef){const _0xe4a889=_0x472c5c,{unitId:_0x1a2fc0,subUnitId:_0x56eca9}=_0xd73c84;this[_0xe4a889(0x24d)]['has'](_0x4de4ef[_0xe4a889(0x218)],_0x4de4ef['subUnitId'],_0x527155)&&this[_0xe4a889(0x26e)](_0x1a2fc0,_0x56eca9,_0x527155);const _0x1cd86c={'sheetId':_0x56eca9,..._0xd73c84};this['_featureCalculationManagerService']['register'](_0x4de4ef['unitId'],_0x4de4ef['subUnitId'],_0x527155,{'unitId':_0x4de4ef[_0xe4a889(0x218)],'subUnitId':_0x4de4ef[_0xe4a889(0x1dc)],'dependencyRanges':[_0x1cd86c],'getDirtyData':(_0x13369b,_0x3ef054)=>{const _0x217197=_0xe4a889,_0x3ea406=this['_sheetsPivotDataSourceModel'],_0x1e8383=_0x3ea406['getTargetByPivotId'](_0x527155);if(!_0x1e8383)return Vs();const {unitId:_0x46b9cd,subUnitId:_0x17d50f}=_0x1e8383,_0x345559=Es(_0x13369b,_0x3ef054,_0xd73c84);if(_0x345559[_0x217197(0x238)]>0x0){const _0x3b82e5=_0x3ea406[_0x217197(0x14f)](_0x1a2fc0,_0x527155),_0x51c728=_0x3b82e5[_0x217197(0x183)](),_0x64425f=this[_0x217197(0x165)](_0xd73c84[_0x217197(0x218)],_0xd73c84['subUnitId'],_0x3ef054),_0x1b4548={},_0x42e9b8=this[_0x217197(0x21a)]['getDataFieldManager'](_0x46b9cd)[_0x217197(0x21c)]()||_0x1f6664,_0x2911e9=[];for(const _0x5eb40d of _0x345559){const _0x1c9981=_0x5eb40d-(_0xd73c84[_0x217197(0x213)][_0x217197(0x24c)]||0x0),_0x1b6691=_0x51c728[_0x1c9981];_0x2911e9[_0x217197(0x2b1)](_0x1b6691),_0x1b4548[_0x1b6691]=_0x3b82e5[_0x217197(0x16d)](_0x1b6691)['getName'](),_0x3ea406[_0x217197(0x266)](_0x1a2fc0)['refreshDataField'](_0x1b6691,_0xd73c84,_0x1c9981,_0x64425f);}_0x3b82e5[_0x217197(0x151)](_0x2911e9)[_0x217197(0xaf)](_0x4c2613=>{const _0x1e4a00=_0x217197,[_0x2b4e4c,_0x121eb7]=_0x4c2613,_0x4b818b=_0x3b82e5['getFieldById'](_0x2b4e4c),_0x2228c0=_0x3b82e5['getFieldById'](_0x121eb7);_0x4b818b&&_0x2228c0&&_0x4b818b[_0x1e4a00(0x262)](_0x2228c0);}),_0x3b82e5['updateAllDisplayName']();const _0x55d9a1=_0x3ea406[_0x217197(0x2ca)](_0x527155);if(_0x55d9a1){Os(_0x55d9a1,_0x1b4548,_0x42e9b8),_0x55d9a1['setDirty'](!0x0);const _0x3eeb46=_0x55d9a1[_0x217197(0x1d8)](),_0x5df954=_0x3ea406['getPivotTableConfig'](_0x46b9cd,_0x17d50f,_0x527155),_0x49339d=_0x3ea406[_0x217197(0x266)](_0x1a2fc0)['toJSON']();_0x3ea406[_0x217197(0xd2)](_0x46b9cd,_0x17d50f,j[_0x217197(0x1a7)],_0x527155,_0x3eeb46,_0x5df954,_0x49339d,!0x0);}}return this['getDirtyInfo'](_0x46b9cd,_0x17d50f,_0x527155);}});}['getMatrixFromRunTimeData'](_0x3c9b3a,_0x13d5eb,_0x2501e7){var _0x2abc4e,_0x31d486;const {arrayFormulaCellData:_0x3dbeb4,unitData:_0x55355c}=_0x2501e7,_0x26ee2c=(_0x2abc4e=_0x3dbeb4==null?void 0x0:_0x3dbeb4[_0x3c9b3a])==null?void 0x0:_0x2abc4e[_0x13d5eb],_0x5599c1=(_0x31d486=_0x55355c==null?void 0x0:_0x55355c[_0x3c9b3a])==null?void 0x0:_0x31d486[_0x13d5eb];return{'arrayFormulaCellDataMatrix':_0x26ee2c,'unitDataMatrix':_0x5599c1};}[_0x472c5c(0xd7)](_0x3bc64f,_0x22d2f9,_0x6c59b6){const _0x4d11d8=_0x472c5c,_0x2f91c6=this['_sheetsPivotDataSourceModel'][_0x4d11d8(0x1e1)](_0x3bc64f,_0x22d2f9,_0x6c59b6),_0x5b4931=[],_0x338e0e=new _0x38f0b5();if(_0x2f91c6){const {rangeCache:_0x1f02cf,matrix:_0x3ee4a5,oldRangeCache:_0x139e55,oldMatrix:_0x63f625}=_0x2f91c6,_0x19e699=jt(_0x139e55),_0x5b864f=jt(_0x1f02cf);_0x5b4931[_0x4d11d8(0x2b1)](..._0x5b864f,..._0x19e699),_0x63f625&&_0x139e55&&_0x19e699['forEach'](_0x5f0833=>{const _0x2f8256=_0x4d11d8;for(let _0x2f1c4c=_0x5f0833['startRow'];_0x2f1c4c<=_0x5f0833['endRow'];_0x2f1c4c++)for(let _0x4bb7b7=_0x5f0833[_0x2f8256(0x24c)];_0x4bb7b7<=_0x5f0833[_0x2f8256(0xfc)];_0x4bb7b7++)_0x338e0e[_0x2f8256(0x2ec)](_0x2f1c4c,_0x4bb7b7);}),_0x3ee4a5&&_0x5b864f&&_0x5b864f[_0x4d11d8(0xaf)](_0x330d8d=>{const _0x23f90a=_0x4d11d8;for(let _0xa07389=_0x330d8d[_0x23f90a(0x157)];_0xa07389<=_0x330d8d['endRow'];_0xa07389++)for(let _0x380f86=_0x330d8d[_0x23f90a(0x24c)];_0x380f86<=_0x330d8d[_0x23f90a(0xfc)];_0x380f86++)_0x338e0e['setValue'](_0xa07389,_0x380f86,_0x3ee4a5[_0x23f90a(0x187)](_0xa07389,_0x380f86));});}const _0x2c8664={};return _0x2c8664[_0x3bc64f]={[_0x22d2f9]:As(_0x5b4931)},{'runtimeCellData':{[_0x3bc64f]:{[_0x22d2f9]:_0x338e0e}},'dirtyRanges':_0x2c8664};}[_0x472c5c(0xf4)](){}};ct=Us([at(0x0,_0x3af2eb($)),at(0x1,_0x3af2eb(_0x20fc0e)),at(0x2,_0x3af2eb(_0x88b8f4)),at(0x3,_0x3af2eb(_0x1808f7)),at(0x4,_0x3af2eb(_0x53b05b))],ct);var ks=Object[_0x472c5c(0x13d)],Ls=(_0xe0c871,_0x2bf560,_0x1ded50,_0x278ff1)=>{const _0x405162=_0x472c5c;for(var _0x41b23b=_0x278ff1>0x1?void 0x0:_0x278ff1?ks(_0x2bf560,_0x1ded50):_0x2bf560,_0x527dd8=_0xe0c871[_0x405162(0x238)]-0x1,_0x45e2b3;_0x527dd8>=0x0;_0x527dd8--)(_0x45e2b3=_0xe0c871[_0x527dd8])&&(_0x41b23b=_0x45e2b3(_0x41b23b)||_0x41b23b);return _0x41b23b;},_t=(_0x11fe3e,_0x9bb429)=>(_0x2c5d03,_0x17b13e)=>_0x9bb429(_0x2c5d03,_0x17b13e,_0x11fe3e);let dt=class extends _0x826d73{constructor(_0x54499e,_0x2ac196,_0x57c313,_0x1938d5){const _0x5f1379=_0x472c5c;super(),x(this,'disposableCollection',new _0x222f43()),(this[_0x5f1379(0x208)]=_0x54499e,this[_0x5f1379(0x139)]=_0x2ac196,this[_0x5f1379(0x2de)]=_0x57c313,this[_0x5f1379(0x2c5)]=_0x1938d5,this[_0x5f1379(0x146)]());}[_0x472c5c(0x146)](){const _0x52217e=_0x472c5c;this[_0x52217e(0x286)](this[_0x52217e(0x139)][_0x52217e(0x12f)]({'getMutations':_0x26d2dd=>{const _0x401d12=_0x52217e;if(_0x26d2dd['id']===_0x45098b['id']||_0x26d2dd['id']===_0x1e25e0['id']){const _0x568993=[],_0x1248fe=[],_0x191ed9=this[_0x401d12(0x2de)][_0x401d12(0x86)]()[_0x401d12(0xff)](_0x3d4a3f=>_0x3d4a3f[_0x401d12(0x213)]),_0x3ff504=_0x337b5a(this[_0x401d12(0x208)]);if(!_0x3ff504)return{'redos':[],'undos':[]};const {unitId:_0x1ad3bd,subUnitId:_0x31b317}=_0x3ff504,_0x16b849={},_0x187f73=this[_0x401d12(0x2c5)][_0x401d12(0x252)](_0x1ad3bd,_0x31b317);if(_0x187f73!=null&&_0x187f73[_0x401d12(0x2e9)])for(const [_0x432d28,_0x5408ec]of _0x187f73){const {unitId:_0x48b089,subUnitId:_0x529c8c,row:_0x1352ff,col:_0xcb7b0b}=_0x5408ec[_0x401d12(0x26a)];_0x48b089===_0x3ff504['unitId']&&_0x529c8c===_0x3ff504[_0x401d12(0x1dc)]&&(_0x16b849[_0x1352ff+'-'+_0xcb7b0b]=_0x432d28);}return _0x191ed9&&_0x3ff504&&_0x191ed9[_0x401d12(0xaf)](_0x3184a4=>{const _0x4cfdd9=_0x401d12;_0x40c608[_0x4cfdd9(0xda)](_0x3184a4,(_0x4abaf5,_0x1f768c)=>{const _0x313247=_0x4cfdd9,_0xaa605c=_0x4abaf5+'-'+_0x1f768c;if(_0x16b849[_0xaa605c]){const _0x16dfe7=_0x16b849[_0xaa605c];_0x568993[_0x313247(0x2b1)]({'id':Ot['id'],'params':{'unitId':_0x1ad3bd,'subUnitId':_0x31b317,'pivotTableId':_0x16dfe7}});const _0x3d8142=this[_0x313247(0x2c5)][_0x313247(0x14f)](_0x1ad3bd,_0x16dfe7),_0x3ab3de=this[_0x313247(0x2c5)][_0x313247(0x17d)](_0x1ad3bd,_0x31b317,_0x16dfe7);_0x1248fe[_0x313247(0x2b1)]({'id':Ct['id'],'params':{'unitId':_0x1ad3bd,'subUnitId':_0x31b317,'pivotTableId':_0x16dfe7,'pivotTableConfig':_0x3ab3de,'collectionConfig':_0x3d8142}});}});}),{'redos':_0x568993,'undos':_0x1248fe};}return{'redos':[],'undos':[]};}}));}};dt=Ls([_t(0x0,_0xcf6c15),_t(0x1,_0x3af2eb(_0x17fe9b)),_t(0x2,_0x3af2eb(_0x510525)),_t(0x3,_0x3af2eb(ve))],dt);var Bs=Object[_0x472c5c(0x13d)],js=(_0x408059,_0x15e76c,_0x1d04ef,_0x58151d)=>{for(var _0xaaed1e=_0x58151d>0x1?void 0x0:_0x58151d?Bs(_0x15e76c,_0x1d04ef):_0x15e76c,_0xd34b3c=_0x408059['length']-0x1,_0x3dd29e;_0xd34b3c>=0x0;_0xd34b3c--)(_0x3dd29e=_0x408059[_0xd34b3c])&&(_0xaaed1e=_0x3dd29e(_0xaaed1e)||_0xaaed1e);return _0xaaed1e;},rt=(_0x4dc4c9,_0x5bfc27)=>(_0x348cf2,_0x50238e)=>_0x5bfc27(_0x348cf2,_0x50238e,_0x4dc4c9);let ut=class extends _0x826d73{constructor(_0x338bb6,_0x3bdaa8,_0x412934,_0x1c21ef,_0x55331e){const _0x4f0e32=_0x472c5c;super(),this[_0x4f0e32(0x139)]=_0x338bb6,this['_injector']=_0x3bdaa8,this[_0x4f0e32(0x208)]=_0x412934,this[_0x4f0e32(0x2c5)]=_0x1c21ef,this[_0x4f0e32(0xa4)]=_0x55331e,this['_initCommandInterceptListener']();}['_getPivotAppliedRanges'](_0x4c5261,_0x49305e,_0x1a6bcf){const _0x307528=_0x472c5c,{pageView:_0x4b4873,cornerView:_0xc6171c,rowView:_0xb7fb02,colView:_0x5732c1,dataView:_0x6219a5}=_0x49305e,_0x5b87c3=_0x4c5261;let _0x4a5bd0;if(_0x1a6bcf)_0x4a5bd0=[...ji(_0x5b87c3)];else{const _0x5f406c=ge(_0x5b87c3,_0x4b4873,!0x0),_0x3036fb=_0x4b4873[_0x307528(0x203)]>=0x0?_0x4b4873[_0x307528(0x203)]+0x1:0x0,_0x17cb6e=_0xc6171c[_0x307528(0xf1)],_0x3a5fd8=_0xc6171c[_0x307528(0x2ef)],_0x2bba70=_0x5f406c['length']>0x0?It:0x0,_0x236078=ge({'row':_0x5b87c3[_0x307528(0x2e1)]+_0x3036fb+_0x2bba70,'col':_0x5b87c3['col']},_0xc6171c,!0x1,!0x1),_0x4e8093=ge({'row':_0x5b87c3[_0x307528(0x2e1)]+_0x3036fb+_0x2bba70+_0x17cb6e,'col':_0x5b87c3[_0x307528(0x2e3)]},_0xb7fb02,!0x1,!0x0),_0x29cdfa=ge({'row':_0x5b87c3[_0x307528(0x2e1)]+_0x3036fb+_0x2bba70,'col':_0x5b87c3[_0x307528(0x2e3)]+_0x3a5fd8},_0x5732c1,!0x1,!0x0),_0x20bfbc=ge({'row':_0x5b87c3[_0x307528(0x2e1)]+_0x3036fb+_0x2bba70+_0x17cb6e,'col':_0x5b87c3[_0x307528(0x2e3)]+_0x3a5fd8},_0x6219a5,!0x1,!0x0);_0x4a5bd0=[..._0x5f406c,..._0x236078,..._0x4e8093,..._0x29cdfa,..._0x20bfbc];}return _0x4a5bd0;}[_0x472c5c(0xc3)](){const _0x39c50d=_0x472c5c;this[_0x39c50d(0x286)](this[_0x39c50d(0xa4)][_0x39c50d(0xef)]['intercept'](this[_0x39c50d(0xa4)][_0x39c50d(0xef)][_0x39c50d(0x14b)]()[_0x39c50d(0x163)],{'handler':(_0x143214,_0x1f6e17)=>{const _0x5293f3=_0x39c50d,{cellInfo:_0x9c357c,view:_0x5c890e,isEmpty:_0x44573a}=_0x1f6e17,_0x3bdb73=_0x9c357c,{unitId:_0x370d9b,subUnitId:_0x28a937}=_0x3bdb73,_0x297b14=this[_0x5293f3(0x1d3)](_0x9c357c,_0x5c890e,_0x44573a),_0x25a991=this['_sheetInterceptorService'][_0x5293f3(0x264)]({'unitId':_0x370d9b,'subUnitId':_0x28a937,'ranges':_0x297b14}),_0x319b0c=Ho(this[_0x5293f3(0x305)],_0x370d9b,_0x28a937,_0x297b14);_0x319b0c['shouldClear']&&(_0x25a991[_0x5293f3(0x99)]['push'](_0x319b0c[_0x5293f3(0x267)]),_0x25a991['undos']['push'](_0x319b0c['setRangeValueUndoMutation']));const _0x56107c=this[_0x5293f3(0x224)](_0x5c890e,_0x9c357c);return _0x25a991[_0x5293f3(0x99)][_0x5293f3(0x2b1)](..._0x56107c[_0x5293f3(0x99)]),_0x25a991['undos'][_0x5293f3(0x2b1)](..._0x56107c[_0x5293f3(0x288)]),{'redos':_0x25a991[_0x5293f3(0x99)],'undos':_0x25a991[_0x5293f3(0x288)]};}}));}[_0x472c5c(0x224)](_0x3b1429,_0x354d77){const _0x2bc52f=_0x472c5c,{col:_0x17c4e0,unitId:_0x3c73d9,subUnitId:_0x3477db}=_0x354d77,_0x512eda=[],_0x4aa7ee=[],_0x50bdd4=_0x337b5a(this[_0x2bc52f(0x208)],{'unitId':_0x3c73d9,'subUnitId':_0x3477db});if(!_0x354d77||!_0x3b1429||!_0x50bdd4)return{'undos':_0x4aa7ee,'redos':_0x512eda};const _0x12d028=this[_0x2bc52f(0x2c5)][_0x2bc52f(0x166)](),{colView:_0x786073,dataView:_0x2c1352,cornerView:_0x3b937e,rowView:_0x9c6047,formatMap:_0x155992}=_0x3b1429,_0x25c676=yo(_0x786073,_0x12d028,!0x0,_0x155992),_0x1606a2=yo(_0x9c6047,_0x12d028,!0x1,_0x155992),_0x3ac293=Wi(_0x2c1352),_0x31d61e=Gi(_0x3b937e),{worksheet:_0x138151}=_0x50bdd4;if(typeof window<'u'&&window[_0x2bc52f(0x119)]){const _0x1bdcf4=_0x5211e4({...fe[_0x2bc52f(0x1ee)]}),_0x1677f7=_0x3444d6['getTextSize'](_0x25c676,_0x1bdcf4)[_0x2bc52f(0xfb)]+0x10,_0x207418=_0x3444d6['getTextSize'](_0x3ac293,_0x1bdcf4)[_0x2bc52f(0xfb)],_0x165484=Math['floor'](Math[_0x2bc52f(0x29d)](_0x1677f7,_0x207418))+0x10,_0x58d653=Math[_0x2bc52f(0x1b9)](_0x3444d6[_0x2bc52f(0x158)](_0x1606a2,_0x1bdcf4)[_0x2bc52f(0xfb)]),_0x536551=Math[_0x2bc52f(0x1b9)](_0x3444d6[_0x2bc52f(0x158)](_0x31d61e,_0x1bdcf4)['width']),_0x472691=Math['max'](_0x58d653,_0x536551,0x28)+0xc,_0x6c8e87=_0x786073['colCount']+_0x3b937e['colCount'],_0x1ee314={},_0x1c5b9d={};for(let _0x2c5128=_0x17c4e0;_0x2c5128<_0x17c4e0+_0x6c8e87;_0x2c5128++){const _0x1d9800=_0x138151[_0x2bc52f(0x1ea)](_0x2c5128);_0x1ee314[_0x2c5128]=_0x1d9800,_0x2c5128-_0x17c4e0<_0x3b937e[_0x2bc52f(0x2ef)]?_0x1c5b9d[_0x2c5128-_0x17c4e0]=_0x472691:_0x1c5b9d[_0x2c5128-_0x17c4e0]=_0x165484;}_0x512eda[_0x2bc52f(0x2b1)]({'id':_0xc636e6['id'],'params':{'subUnitId':_0x3477db,'unitId':_0x3c73d9,'ranges':[{'startColumn':_0x17c4e0,'endColumn':_0x17c4e0+_0x6c8e87-0x1,'startRow':0x0,'endRow':_0x138151['getRowCount']()-0x1}],'colWidth':_0x1c5b9d}}),_0x4aa7ee[_0x2bc52f(0x2b1)]({'id':_0xc636e6['id'],'params':{'subUnitId':_0x3477db,'unitId':_0x3c73d9,'ranges':[{'startColumn':_0x17c4e0,'endColumn':_0x17c4e0+_0x6c8e87-0x1,'startRow':0x0,'endRow':_0x138151[_0x2bc52f(0xd3)]()-0x1}],'colWidth':_0x1ee314}});}return{'undos':_0x4aa7ee,'redos':_0x512eda};}};ut=js([rt(0x0,_0x3af2eb(_0x17fe9b)),rt(0x1,_0x3af2eb(_0x53b05b)),rt(0x2,_0x3af2eb(_0xcf6c15)),rt(0x3,_0x3af2eb(ve)),rt(0x4,_0x3af2eb(ie))],ut);var $s=Object[_0x472c5c(0x13d)],Js=(_0x4b8833,_0x403035,_0x4b6282,_0x1564bf)=>{for(var _0x12af9f=_0x1564bf>0x1?void 0x0:_0x1564bf?$s(_0x403035,_0x4b6282):_0x403035,_0x4ad23c=_0x4b8833['length']-0x1,_0x3ee15f;_0x4ad23c>=0x0;_0x4ad23c--)(_0x3ee15f=_0x4b8833[_0x4ad23c])&&(_0x12af9f=_0x3ee15f(_0x12af9f)||_0x12af9f);return _0x12af9f;},ke=(_0x57989e,_0x21154e)=>(_0x7945,_0x4c0b22)=>_0x21154e(_0x7945,_0x4c0b22,_0x57989e);let ft=class extends _0x826d73{constructor(_0x3bbb99,_0x176592,_0x511720,_0x50c813,_0x498d54,_0x27c1c4,_0x508e61){const _0x5c6d18=_0x472c5c;super(),x(this,_0x5c6d18(0x1aa),new _0x222f43()),(this[_0x5c6d18(0x305)]=_0x3bbb99,this[_0x5c6d18(0x105)]=_0x176592,this[_0x5c6d18(0x9a)]=_0x511720,this[_0x5c6d18(0x208)]=_0x50c813,this['_sheetsPivotTableConfigModel']=_0x498d54,this['_sheetsPivotTableAdaptorModel']=_0x27c1c4,this['_sheetInterceptorService']=_0x508e61,this['_onRefRangeChange']());}[_0x472c5c(0x11f)](){const _0x3c182e=_0x472c5c,_0x5e06cb=(_0x496784,_0x700fe1)=>{const _0x219c15=_0x470a,_0x5e6e22=this[_0x219c15(0x208)][_0x219c15(0x1ff)](_0x5e6e00[_0x219c15(0x2e5)]);if(!_0x5e6e22||!(_0x5e6e22==null?void 0x0:_0x5e6e22['getSheetBySheetId'](_0x700fe1)))return;this['disposableCollection'][_0x219c15(0xf4)]();const _0x26b5ae=_0x2f8b06=>this[_0x219c15(0x247)](_0x2f8b06,_0x496784,_0x700fe1),_0x4de42d=this[_0x219c15(0x2c5)]['getSubUnitPivotConfigs'](_0x496784,_0x700fe1);if(!(_0x4de42d!=null&&_0x4de42d[_0x219c15(0x2e9)]))return;Array[_0x219c15(0x28d)](_0x4de42d[_0x219c15(0xa6)]())[_0x219c15(0xff)](_0x47556b=>{const _0x116238=_0x219c15,{row:_0x4009df,col:_0x217f5c}=_0x47556b[_0x116238(0x26a)];return _0x452af2(_0x4009df,_0x217f5c);})['forEach'](_0x4733bf=>{const _0x16633e=_0x219c15;this[_0x16633e(0x1aa)][_0x16633e(0x2f0)](this['_refRangeService'][_0x16633e(0x127)](_0x4733bf,_0x26b5ae,_0x496784,_0x700fe1));});},_0x5ea7a0=()=>{const _0x15d278=_0x470a,_0x268e42=this['_univerInstanceService']['getCurrentUnitForType'](_0x5e6e00['UNIVER_SHEET']);if(_0x268e42){const _0x2f808c=_0x268e42[_0x15d278(0x1a1)]();if(!_0x2f808c)return;_0x5e06cb(_0x268e42[_0x15d278(0x239)](),_0x2f808c['getSheetId']());}};this[_0x3c182e(0x286)](this['_commandService'][_0x3c182e(0x1f4)](_0x4e880f=>{const _0x4f33e7=_0x3c182e;if(_0x4e880f['id']===_0x5c42aa['id']){const _0x9b3ebd=_0x4e880f[_0x4f33e7(0xbd)],_0x572f78=_0x9b3ebd['subUnitId'],_0x1447b4=_0x9b3ebd['unitId'];if(!_0x572f78||!_0x1447b4)return;_0x5e06cb(_0x1447b4,_0x572f78);}})),this[_0x3c182e(0x286)](this[_0x3c182e(0x2c5)][_0x3c182e(0xf2)][_0x3c182e(0x101)](_0xbd35a3=>{_0xbd35a3&&_0x5ea7a0();})),this['disposeWithMe'](this[_0x3c182e(0x2c5)]['pivotConfigChange$'][_0x3c182e(0x101)](_0x1addd0=>{const _0x5ae928=_0x3c182e,_0x5e93db=_0x337b5a(this[_0x5ae928(0x208)]);if(!_0x5e93db)return;const {unitId:_0xd3c82a,subUnitId:_0x52887e}=_0x5e93db,{unitId:_0x352a3c,subUnitId:_0x5ae292}=_0x1addd0;_0xd3c82a!==_0x352a3c||_0x52887e!==_0x5ae292||_0x5e06cb(_0xd3c82a,_0x52887e);})),_0x5ea7a0();}[_0x472c5c(0x247)](_0x17299e,_0x5d459a,_0x25f1f6){const _0x84e72d=_0x472c5c;switch(_0x17299e['id']){case _0x2a4901['id']:return this['getRefRangeMutationsByMoveRange'](_0x17299e[_0x84e72d(0xbd)],_0x5d459a,_0x25f1f6);}return{'redos':[],'undos':[]};}['getRefRangeMutationsByMoveRange'](_0x6dff3b,_0x34476a,_0x5d2d3f){const _0x2ca273=_0x472c5c,{fromRange:_0x18796b,toRange:_0x393e97}=_0x6dff3b,_0x20f8e2=[],_0x4de9cf=[],_0x324f45=_0x337b5a(this[_0x2ca273(0x208)]);if(!_0x324f45)return{'undos':_0x4de9cf,'redos':_0x20f8e2};if(_0x34476a!==_0x324f45['unitId']||_0x5d2d3f!==_0x324f45[_0x2ca273(0x1dc)])return{'undos':_0x4de9cf,'redos':_0x20f8e2};const _0x369962=this[_0x2ca273(0x2c5)][_0x2ca273(0x252)](_0x34476a,_0x5d2d3f);if(_0x369962!=null&&_0x369962['size'])for(const [_0x378def,_0x16b32e]of _0x369962){const {unitId:_0x152982,subUnitId:_0x30541b,row:_0xfce433,col:_0x23009f}=_0x16b32e['targetCellInfo'];if(_0x152982===_0x324f45[_0x2ca273(0x218)]&&_0x30541b===_0x324f45[_0x2ca273(0x1dc)]){const _0x2f6982=_0x452af2(_0xfce433,_0x23009f);if(_0x2776bf[_0x2ca273(0x2a5)](_0x2f6982,_0x18796b)){const _0x409cb7=_0xfce433-_0x18796b[_0x2ca273(0x157)],_0x42cc80=_0x23009f-_0x18796b[_0x2ca273(0x24c)],_0x5b3223={'row':_0x393e97[_0x2ca273(0x157)]+_0x409cb7,'col':_0x393e97[_0x2ca273(0x24c)]+_0x42cc80};_0x20f8e2[_0x2ca273(0x2b1)]({'id':pt['id'],'params':{'unitId':_0x152982,'subUnitId':_0x30541b,'pivotTableId':_0x378def,'targetCellPosition':_0x5b3223}}),_0x4de9cf[_0x2ca273(0x2b1)]({'id':pt['id'],'params':{'unitId':_0x152982,'subUnitId':_0x30541b,'pivotTableId':_0x378def,'targetCellPosition':{'row':_0xfce433,'col':_0x23009f}}});const _0x2a3fad=_0x5b3223[_0x2ca273(0x2e1)]-_0xfce433,_0x5d1886=_0x5b3223[_0x2ca273(0x2e3)]-_0x23009f,_0x2e10b6=[],_0x4e57a7=this[_0x2ca273(0x1e8)][_0x2ca273(0x122)](_0x152982,_0x30541b,_0x378def),_0x37f680=_0x4e57a7==null?void 0x0:_0x4e57a7[_0x2ca273(0xed)];if(_0x37f680){Object[_0x2ca273(0x118)](_0x37f680)['forEach'](_0x1ffa14=>{_0x37f680[_0x1ffa14]['forEach'](_0xb67100=>{const _0x2d3547=_0x470a,_0x56b5ed={..._0xb67100};_0x56b5ed[_0x2d3547(0x157)]=_0xb67100[_0x2d3547(0x157)]+_0x2a3fad,_0x56b5ed[_0x2d3547(0x2c9)]=_0xb67100[_0x2d3547(0x2c9)]+_0x2a3fad,_0x56b5ed[_0x2d3547(0x24c)]=_0xb67100[_0x2d3547(0x24c)]+_0x5d1886,_0x56b5ed['endColumn']=_0xb67100['endColumn']+_0x5d1886,_0x2e10b6[_0x2d3547(0x2b1)](_0x56b5ed);});});const _0x2433e6=this[_0x2ca273(0x139)][_0x2ca273(0x264)]({'unitId':_0x152982,'subUnitId':_0x30541b,'ranges':_0x2e10b6});_0x20f8e2[_0x2ca273(0x2b1)](..._0x2433e6[_0x2ca273(0x99)]),_0x4de9cf['push'](..._0x2433e6[_0x2ca273(0x288)]);const _0x4d2084=Ho(this[_0x2ca273(0x305)],_0x152982,_0x30541b,_0x2e10b6);_0x4d2084[_0x2ca273(0x2cd)]&&(_0x20f8e2['push'](_0x4d2084[_0x2ca273(0x267)]),_0x4de9cf[_0x2ca273(0x2b1)](_0x4d2084['setRangeValueUndoMutation']));}}}}return{'redos':_0x20f8e2,'undos':_0x4de9cf};}};ft=Js([ke(0x0,_0x3af2eb(_0x53b05b)),ke(0x1,_0x3af2eb(_0x2dac25)),ke(0x2,_0x88b8f4),ke(0x3,_0xcf6c15),ke(0x4,_0x3af2eb(ve)),ke(0x5,_0x3af2eb(Ne)),ke(0x6,_0x3af2eb(_0x17fe9b))],ft);var Ws=Object['getOwnPropertyDescriptor'],Gs=(_0x1318d9,_0x333e95,_0x18dd8e,_0x209c5f)=>{const _0x3eb083=_0x472c5c;for(var _0x57accf=_0x209c5f>0x1?void 0x0:_0x209c5f?Ws(_0x333e95,_0x18dd8e):_0x333e95,_0xbd26d5=_0x1318d9[_0x3eb083(0x238)]-0x1,_0x1b31cb;_0xbd26d5>=0x0;_0xbd26d5--)(_0x1b31cb=_0x1318d9[_0xbd26d5])&&(_0x57accf=_0x1b31cb(_0x57accf)||_0x57accf);return _0x57accf;},_o=(_0x4ed433,_0x373c9f)=>(_0x12c13a,_0x4618c0)=>_0x373c9f(_0x12c13a,_0x4618c0,_0x4ed433);let gt=class extends _0x826d73{constructor(_0x263e30,_0x103fd8){const _0x3b6c85=_0x472c5c;super(),this[_0x3b6c85(0x139)]=_0x263e30,this[_0x3b6c85(0x2c5)]=_0x103fd8,this[_0x3b6c85(0x1c4)]();}[_0x472c5c(0x1c4)](){const _0x208201=_0x472c5c;this['disposeWithMe'](this[_0x208201(0x139)][_0x208201(0x12f)]({'getMutations':_0x2c1aec=>{const _0x7b77d0=_0x208201;if(_0x2c1aec['id']===_0x6ac565['id']){const _0x468e32=[],_0x3b53b8=[],_0xcd9288=_0x2c1aec[_0x7b77d0(0xbd)],{unitId:_0x34ab72,subUnitId:_0x5d5f07}=_0xcd9288;if(!_0x34ab72||!_0x5d5f07)return{'undos':_0x3b53b8,'redos':_0x468e32};const _0xdc1547=this[_0x7b77d0(0x2c5)][_0x7b77d0(0x252)](_0x34ab72,_0x5d5f07);if(_0xdc1547!=null&&_0xdc1547[_0x7b77d0(0x2e9)])for(const [_0x3bb6a6,_0x166137]of _0xdc1547){_0x468e32[_0x7b77d0(0x2b1)]({'id':Ot['id'],'params':{'unitId':_0x34ab72,'subUnitId':_0x5d5f07,'pivotTableId':_0x3bb6a6}});const _0x15fef6={...this['_sheetsPivotTableConfigModel'][_0x7b77d0(0x14f)](_0x34ab72,_0x3bb6a6)};_0x3b53b8[_0x7b77d0(0x2b1)]({'id':Ct['id'],'params':{'unitId':_0x34ab72,'subUnitId':_0x5d5f07,'pivotTableId':_0x3bb6a6,'pivotTableConfig':_0x166137,'collectionConfig':_0x15fef6}});}return{'redos':_0x468e32,'undos':_0x3b53b8};}return{'redos':[],'undos':[]};}}));}};gt=Gs([_o(0x0,_0x3af2eb(_0x17fe9b)),_o(0x1,_0x3af2eb(ve))],gt);var Xs=Object[_0x472c5c(0x13d)],Ks=(_0x2bc3fa,_0x590014,_0x316876,_0x1adaf5)=>{for(var _0x1017ca=_0x1adaf5>0x1?void 0x0:_0x1adaf5?Xs(_0x590014,_0x316876):_0x590014,_0x3560d1=_0x2bc3fa['length']-0x1,_0x2b26e6;_0x3560d1>=0x0;_0x3560d1--)(_0x2b26e6=_0x2bc3fa[_0x3560d1])&&(_0x1017ca=_0x2b26e6(_0x1017ca)||_0x1017ca);return _0x1017ca;},Xe=(_0x534534,_0x3db571)=>(_0x59a5da,_0x3ae7af)=>_0x3db571(_0x59a5da,_0x3ae7af,_0x534534);let ht=class extends _0x826d73{constructor(_0x78083,_0x3ffcc3,_0x4e8bc7,_0x4a0755,_0x481573,_0x203830){const _0x5a501b=_0x472c5c;super(),this['_commandService']=_0x78083,this['_sheetsPivotRpcService']=_0x3ffcc3,this[_0x5a501b(0x1e8)]=_0x4e8bc7,this['_sheetsPivotTableConfigModel']=_0x4a0755,this[_0x5a501b(0x208)]=_0x481573,this[_0x5a501b(0x1e5)]=_0x203830,this[_0x5a501b(0xd9)](),this[_0x5a501b(0xc2)]();}[_0x472c5c(0xd9)](){const _0x35790f=_0x472c5c;this[_0x35790f(0x286)](this[_0x35790f(0x9a)][_0x35790f(0x1f4)](_0x2d6caa=>{const _0x3d3bb2=_0x35790f;if(_0x2d6caa['id']!==lo['id'])return;const _0x1a0039=_0x2d6caa[_0x3d3bb2(0xbd)];this['_sheetsPivotRpcService']['handleAsyncResponse'](_0x1a0039);})),this[_0x35790f(0x286)](this[_0x35790f(0x9a)]['onCommandExecuted'](_0x2743b5=>{const _0xc63b3c=_0x35790f;if(_0x2743b5['id']===co['id']){const _0x1ead76=_0x2743b5[_0xc63b3c(0xbd)];if(_0x1ead76){const {unitId:_0x10fa27,subUnitId:_0x18773c,oldSubUnitId:_0x2ea740,pivotTableId:_0x512074,pivotTableConfig:_0x3ad65e,collectionConfig:_0x8d5c9e}=_0x1ead76;this[_0xc63b3c(0x2c5)][_0xc63b3c(0x2b6)](_0x10fa27,_0x2ea740,_0x1ead76['pivotTableId'],null),this[_0xc63b3c(0x2c5)]['updateConfigCache'](_0x10fa27,_0x18773c,_0x512074,_0x3ad65e),this[_0xc63b3c(0x2c5)][_0xc63b3c(0x197)](_0x10fa27,_0x8d5c9e);}}})),this[_0x35790f(0x286)](this['_commandService'][_0x35790f(0x1f4)](_0x4c87c1=>{const _0x2219c8=_0x35790f;if(_0x4c87c1['id']!==Dt['id'])return;const _0x5df8c3=_0x337b5a(this[_0x2219c8(0x208)]);if(!_0x5df8c3)return;const {unitId:_0x2abcc1,subUnitId:_0x3b6c99}=_0x5df8c3,_0x378a81=_0x4c87c1[_0x2219c8(0xbd)];if(_0x378a81['collectionConfig']&&Object['keys'](_0x378a81[_0x2219c8(0x2b0)])[_0x2219c8(0xaf)](_0x2c7978=>{const _0x562328=_0x2219c8;var _0x20f440;(_0x20f440=_0x378a81[_0x562328(0x2b0)])!=null&&_0x20f440[_0x2c7978]&&this[_0x562328(0x2c5)][_0x562328(0x197)](_0x2c7978,_0x378a81[_0x562328(0x2b0)][_0x2c7978]);}),_0x378a81[_0x2219c8(0x9d)]){const _0x5e08e0=_0x378a81['single'],{unitId:_0x319715,subUnitId:_0x596d03,view:_0x22bedd,pivotTableId:_0x369610,type:_0x499108,pivotConfig:_0x15c955}=_0x5e08e0;if(_0x499108===j[_0x2219c8(0x2f1)])this[_0x2219c8(0x1e8)][_0x2219c8(0x8c)]({'unitId':_0x319715,'subUnitId':_0x596d03,'pivotTableId':_0x369610,'type':_0x499108}),this['_sheetsPivotTableConfigModel'][_0x2219c8(0x2b6)](_0x319715,_0x596d03,_0x369610,null);else{const _0x2b49c1=new _0x2df958();_0x2b49c1[_0x2219c8(0x2fb)](_0x22bedd),this[_0x2219c8(0x2c5)][_0x2219c8(0x2b6)](_0x319715,_0x596d03,_0x369610,_0x15c955),this['_sheetsPivotTableAdaptorModel'][_0x2219c8(0x8c)]({'unitId':_0x319715,'subUnitId':_0x596d03,'pivotTableId':_0x369610,'type':_0x499108,'view':_0x2b49c1}),this['_sheetsPivotTableAdaptorModel'][_0x2219c8(0x256)]({'unitId':_0x319715,'subUnitId':_0x596d03,'view':_0x2b49c1,'pivotTableId':_0x369610,'type':_0x499108});}}else _0x378a81['batch']&&(_0x378a81['batch'][_0x2219c8(0xaf)](_0x49197b=>{const _0x4ad874=_0x2219c8,{unitId:_0x58e8e1,subUnitId:_0x3ffc83,view:_0x5e9ac5,pivotTableId:_0x31a2ba,type:_0x1f6cda,pivotConfig:_0x5628ec}=_0x49197b,_0xb7cd30=new _0x2df958();_0xb7cd30[_0x4ad874(0x2fb)](_0x5e9ac5),this[_0x4ad874(0x2c5)]['updateConfigCache'](_0x58e8e1,_0x3ffc83,_0x31a2ba,_0x5628ec),this['_sheetsPivotTableAdaptorModel'][_0x4ad874(0x256)]({'unitId':_0x58e8e1,'subUnitId':_0x3ffc83,'view':_0xb7cd30,'pivotTableId':_0x31a2ba,'type':_0x1f6cda});}),this[_0x2219c8(0x2c5)]['setPivotInitCompleted']());this['_sheetsPivotTableAdaptorModel'][_0x2219c8(0xad)](_0x2abcc1,_0x3b6c99);}));}[_0x472c5c(0xc2)](){const _0x5cab13=_0x472c5c;this[_0x5cab13(0x1e5)]['register'](xt['id'],{'commandId':xt['id'],'getDirtyData'(_0x30485){const _0xdf513d=_0x5cab13;return{'dirtyUnitFeatureMap':_0x30485[_0xdf513d(0xbd)]};}});}};ht=Ks([Xe(0x0,_0x3af2eb(_0x88b8f4)),Xe(0x1,_0x3af2eb(Q)),Xe(0x2,_0x3af2eb(Ne)),Xe(0x3,_0x3af2eb(ve)),Xe(0x4,_0x3af2eb(_0xcf6c15)),Xe(0x5,_0x5e463c)],ht);var Hs=Object[_0x472c5c(0x2da)],qs=Object[_0x472c5c(0x13d)],zs=(_0x4c06ce,_0x11e636,_0x1f7a4f)=>_0x11e636 in _0x4c06ce?Hs(_0x4c06ce,_0x11e636,{'enumerable':!0x0,'configurable':!0x0,'writable':!0x0,'value':_0x1f7a4f}):_0x4c06ce[_0x11e636]=_0x1f7a4f,Ys=(_0x15f71a,_0x54a589,_0x1ab46b,_0x27d897)=>{for(var _0x43f6a1=_0x27d897>0x1?void 0x0:_0x27d897?qs(_0x54a589,_0x1ab46b):_0x54a589,_0x44f409=_0x15f71a['length']-0x1,_0x5c66e3;_0x44f409>=0x0;_0x44f409--)(_0x5c66e3=_0x15f71a[_0x44f409])&&(_0x43f6a1=_0x5c66e3(_0x43f6a1)||_0x43f6a1);return _0x43f6a1;},Ft=(_0x28668a,_0x2524d4)=>(_0xfbea35,_0x498088)=>_0x2524d4(_0xfbea35,_0x498088,_0x28668a),Zo=(_0x38fb89,_0x1583b7,_0xed994c)=>zs(_0x38fb89,typeof _0x1583b7!=_0x472c5c(0x2db)?_0x1583b7+'':_0x1583b7,_0xed994c);let Ut=class extends _0xd337b9{constructor(_0x25c7a2=Mo,_0xd2cc98,_0x15cf20,_0x1da94d,_0x25fd34){const _0x3e1abc=_0x472c5c;super(),this[_0x3e1abc(0x1a9)]=_0x25c7a2,this[_0x3e1abc(0x305)]=_0xd2cc98,this[_0x3e1abc(0x9a)]=_0x15cf20,this['_configService']=_0x1da94d,this[_0x3e1abc(0x83)]=_0x25fd34;const {..._0x1ff3fa}=_0x379caa({},Mo,this['_config']);this[_0x3e1abc(0xe7)][_0x3e1abc(0x125)](zo,_0x1ff3fa),this[_0x3e1abc(0x28c)](),this[_0x3e1abc(0x15d)]();}[_0x472c5c(0x15d)](){const _0x5c0a15=_0x472c5c;var _0x2e62cf;const _0xb3c9e=(_0x2e62cf=this['_config'])==null?void 0x0:_0x2e62cf['notExecuteFormula'];this[_0x5c0a15(0xe7)]['setConfig'](z,_0xb3c9e===!0x0);}[_0x472c5c(0x1af)](){const _0x422f1f=_0x472c5c;var _0x5015b4;let _0x57327a=[];const _0x348d05=(_0x5015b4=this[_0x422f1f(0x1a9)])==null?void 0x0:_0x5015b4[_0x422f1f(0x189)];_0x348d05===!0x0?_0x57327a=[[ie],[Q],[ht],[Ne],[ve],[gt],[dt],[ft],[ut]]:_0x348d05===!0x1?_0x57327a=[[$],[ct]]:_0x348d05===void 0x0&&(_0x57327a=[[$],[ct],[ie],[Q],[ht],[Ne],[ve],[gt],[dt],[ft],[ut]]),_0x57327a[_0x422f1f(0xaf)](_0xdfde4=>this[_0x422f1f(0x305)][_0x422f1f(0x2f0)](_0xdfde4)),[ct,ht,ie,dt,gt,ft,ut]['forEach'](_0x2ad200=>{const _0x2bbc25=_0x422f1f;this['_injector'][_0x2bbc25(0x155)](_0x2ad200)&&this[_0x2bbc25(0x305)][_0x2bbc25(0x1b7)](_0x2ad200);});}['_initRegisterCommand'](){const _0x505410=_0x472c5c;[ps,ms,hs,Is,Ss,Ns,Fs,Ps,ws,Ms,Rs,Ds,Cs,bs,Ct,to,Ot,$t,Yo,Qo,Kt,Jt,Wt,Gt,qt,Ht,pt,ro,lo,Dt,Qt,eo,zt,Xt,uo,oo,Zt,xt,co,_s,Yt,ys,Ts][_0x505410(0xaf)](_0x2309b9=>{const _0x5abc0d=_0x505410;var _0x1fb213;(_0x1fb213=this['_dataSyncPrimaryController'])==null||_0x1fb213['registerSyncingMutations'](_0x2309b9),this[_0x5abc0d(0x9a)][_0x5abc0d(0x160)](_0x2309b9);});}};Zo(Ut,_0x472c5c(0x1a3),ao),Zo(Ut,_0x472c5c(0x18a),_0x5e6e00['UNIVER_SHEET']),Ut=Ys([_0x431dca(_0x46877b),Ft(0x1,_0x3af2eb(_0x53b05b)),Ft(0x2,_0x3af2eb(_0x88b8f4)),Ft(0x3,_0x165fcc),Ft(0x4,_0x38c12f(_0x2f769d))],Ut);export{hs as AddPivotFieldCommand,$t as AddPivotFieldMutation,ms as AddPivotTableCommand,Ct as AddPivotTableMutation,ps as AddPivotTableWithConfigCommand,It as BLANK_ROW_COUNT,so as DEFAULT_PIVOT_NUMBER,Is as MovePivotFieldCommand,Cs as MovePivotTableCommand,k as PivotDisplayDataType,bs as PivotDrillDownCommand,j as PivotTableOperationEnum,xt as PivotTableViewDirtyMarkOperation,Bo as PositionType,Ss as RemovePivotFieldCommand,Jt as RemovePivotFieldMutation,Ot as RemovePivotTableMutation,Wt as RenamePivotFieldMutation,Ts as ResetPivotFieldsConfigCommand,zo as SHEETS_PIVOT_PLUGIN_CONFIG_KEY,ao as SHEET_PIVOT_TABLE_PLUGIN,Ps as SetPivotCollapseCommand,Gt as SetPivotCollapseMutation,Xt as SetPivotFieldFormatMutation,ys as SetPivotFieldsConfigCommand,Ms as SetPivotFilterCommand,Kt as SetPivotFilterMutation,Ht as SetPivotOptionMutation,pt as SetPivotPositionMutation,ws as SetPivotSortCommand,qt as SetPivotSortMutation,zt as SetPivotSubtotalTypeMutation,_s as SetPivotValueFilterCommand,Yt as SetPivotValueFilterMutation,$ as SheetsPivotDataSourceModel,Q as SheetsPivotRPCService,Ne as SheetsPivotTableAdaptorModel,ve as SheetsPivotTableConfigModel,ie as SheetsPivotTableService,Ut as UniverSheetsPivotTablePlugin,Fs as UpdateDateGroupCommand,Qt as UpdateFieldPositionMutation,Rs as UpdatePivotFieldSettingCommand,Zt as UpdatePivotFieldSourceInfoMutation,Ds as UpdatePivotTableSourceRangeCommand,oo as UpdatePivotTableSourceRangeMutation,Ns as UpdatePivotValuePositionCommand,eo as UpdateValuePositionMutation,me as applyChangeSet,Ko as canUsePivot,fe as defaultThemeStyle,Ho as generateSetRangeValueMutations,ge as getAdjustRangesPosition,ji as getEmptyPivotRanges,Nt as getFieldListByArea,we as getInsertRowColMutations,ki as getPivotCellInfo,go as getPivotInfoByLicense,Li as getPivotTableInfo,vt as transFromCellValue,jt as unionPivotViewRange};