@univerjs-pro/sheets-pivot-chart 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/README.md +85 -0
  2. package/lib/cjs/facade.js +1 -0
  3. package/lib/cjs/index.js +1 -0
  4. package/lib/es/facade.js +1 -0
  5. package/lib/es/index.js +1 -0
  6. package/lib/facade.js +1 -0
  7. package/lib/index.js +1 -0
  8. package/lib/types/chart-builder/pivot-chart-config-adapter.d.ts +14 -0
  9. package/lib/types/commands/commands/insert-pivot-chart.command.d.ts +15 -0
  10. package/lib/types/commands/commands/pivot-chart.command.d.ts +124 -0
  11. package/lib/types/commands/mutations/pivot-chart-data-communication.mutation.d.ts +11 -0
  12. package/lib/types/commands/mutations/pivot-chart.mutation.d.ts +9 -0
  13. package/lib/types/config/config.d.ts +6 -0
  14. package/lib/types/controllers/pivot-chart-calculation.controller.d.ts +25 -0
  15. package/lib/types/controllers/pivot-chart-drawing.controller.d.ts +14 -0
  16. package/lib/types/controllers/pivot-chart-edit.controller.d.ts +17 -0
  17. package/lib/types/controllers/pivot-chart-runtime.controller.d.ts +26 -0
  18. package/lib/types/facade/f-enum.d.ts +15 -0
  19. package/lib/types/facade/f-event.d.ts +56 -0
  20. package/lib/types/facade/f-pivot-chart-builder.d.ts +73 -0
  21. package/lib/types/facade/f-pivot-chart.d.ts +487 -0
  22. package/lib/types/facade/f-pivot-table.d.ts +41 -0
  23. package/lib/types/facade/f-univer.d.ts +11 -0
  24. package/lib/types/facade/f-workbook.d.ts +28 -0
  25. package/lib/types/facade/f-worksheet.d.ts +61 -0
  26. package/lib/types/facade/index.d.ts +9 -0
  27. package/lib/types/facade/pivot-chart-facade-adapter.d.ts +41 -0
  28. package/lib/types/index.d.ts +15 -0
  29. package/lib/types/models/sheets-pivot-chart.model.d.ts +56 -0
  30. package/lib/types/plugin.d.ts +27 -0
  31. package/lib/types/services/pivot-chart-rpc.service.d.ts +35 -0
  32. package/lib/types/types.d.ts +175 -0
  33. package/lib/umd/facade.js +1 -0
  34. package/lib/umd/index.js +1 -0
  35. package/package.json +93 -0
package/lib/index.js ADDED
@@ -0,0 +1 @@
1
+ const _0x3bff99=_0x3cc4;(function(_0x128e32,_0x488f8b){const _0xb7d29b=_0x3cc4,_0x406025=_0x128e32();while(!![]){try{const _0x499c23=-parseInt(_0xb7d29b(0x3bf))/0x1*(parseInt(_0xb7d29b(0x27d))/0x2)+-parseInt(_0xb7d29b(0x20d))/0x3*(parseInt(_0xb7d29b(0x362))/0x4)+-parseInt(_0xb7d29b(0x2be))/0x5*(-parseInt(_0xb7d29b(0x233))/0x6)+parseInt(_0xb7d29b(0x301))/0x7+-parseInt(_0xb7d29b(0x312))/0x8+-parseInt(_0xb7d29b(0x241))/0x9+-parseInt(_0xb7d29b(0x26c))/0xa;if(_0x499c23===_0x488f8b)break;else _0x406025['push'](_0x406025['shift']());}catch(_0x2cb204){_0x406025['push'](_0x406025['shift']());}}}(_0x3016,0xd5a6e));import{ChartDataSourceRuntimeStatus as _0x27ca02,ChartThemeService as _0x5e47d5,ChartTypeBits as _0x3959a1,LabelContentType as _0x1b83a2,LegendPositionEnum as _0xf78ba2,defaultChartHeight as _0x275f74,defaultChartWidth as _0xff9e61,generateChartContext as _0x364767,mergeChartConfig as _0x11e03d,resolveChartStyleBackgroundColor as _0xe7689c,toChartModelUpdate as _0x5a057f}from'@univerjs-pro/engine-chart';import{ChartModelService as _0x256b8d,UniverSheetsChartPlugin as _0x133fb2,resolveDefaultChartPosition as _0x171a84}from'@univerjs-pro/sheets-chart';import{CommandType as _0x31f546,DependentOn as _0x3478f6,Disposable as _0x16bb26,DrawingTypeEnum as _0x357641,ICommandService as _0x3d27ba,IConfigService as _0x3b855f,ILogService as _0x1a9f32,IResourceManagerService as _0x24754f,IUndoRedoService as _0x48d72c,IUniverInstanceService as _0x2f2411,Inject as _0x1ae7ee,Injector as _0x591ca1,LOCALE_META as _0x33f7f9,LocaleService as _0x2531fd,Optional as _0x27a100,Plugin as _0x2f2cfb,Tools as _0x2c5c8a,UniverInstanceType as _0x53e042,generateRandomId as _0x574d73,merge as _0x12d688,sequenceExecute as _0x1d501e}from'@univerjs/core';import{DataFieldManager as _0x275f8a,DateGroupField as _0x8536b2,FieldsCollection as _0x346936,PivotDataFieldSortOperatorEnum as _0x27f4fb,PivotFilterTypeEnum as _0x331f69,PivotTable as _0x1f0647,PivotTableFiledAreaEnum as _0x154463,PivotTableValuePositionEnum as _0x3e4cd7,generateHexNumber as _0xc80f2f,isBaseGroupField as _0x5c9690,isDateGroupField as _0x391148,isDateGroupFieldJSON as _0x37f690,isValueFilterOperator as _0x5cb0cf}from'@univerjs-pro/engine-pivot';import{PivotCacheReferenceKindEnum as _0x525a0e}from'@univerjs-pro/pivot-cache';import{PivotChartDataSource as _0x353f52,PivotChartModel as _0x2f7d64,PivotChartModelChangeType as _0x5bd3a0,PivotChartRuntime as _0x59f971,PivotChartTypeSupportStatus as _0x48872b,adaptPivotViewToChartDataSet as _0x32ef4f,getPivotChartFieldButtons as _0x2b79b4,getPivotChartTypeSupportStatus as _0x51e4fa,isLinkedPivotChartDefinition as _0x53aac2,isOwnedPivotChartDefinition as _0x3b1bb7,resolvePivotChartControls as _0x246b73}from'@univerjs-pro/pivot-chart';import{AddPivotFieldCommand as _0x454c52,MovePivotFieldCommand as _0x5871ce,PivotCalculatorController as _0x1a346b,PivotDisplayDataType as _0x1d0c45,RemovePivotFieldCommand as _0x5823c9,SendPivotViewLocalMutation as _0x5e514a,SetPivotCollapseByFieldCommand as _0x720895,SetPivotDateGroupCommand as _0x12eade,SetPivotFieldsConfigCommand as _0x370bc5,SetPivotFilterCommand as _0x1e3aa0,SetPivotSortCommand as _0x5644f0,SetPivotValueFilterCommand as _0x49f2ed,SheetsPivotCacheService as _0x58f041,SheetsPivotDataSourceModel as _0x54080a,SheetsPivotRPCService as _0x2e878a,SheetsPivotTableConfigModel as _0x222738,UniverSheetsPivotTablePlugin as _0x10178b,UpdatePivotFieldSettingCommand as _0x478245,UpdatePivotTableSourceRangeCommand as _0x169a8e,UpdatePivotValuePositionCommand as _0x4b62f2,getDateGroupName as _0x3c48a5,getPivotDateGroupContext as _0x370661,isPivotDateGroupTypeDisabled as _0x28ac32,setPivotDateSystem as _0x2c809f}from'@univerjs-pro/sheets-pivot';import{SheetInterceptorService as _0x3d5658,SheetSkeletonService as _0xe9298a,getSheetCommandTarget as _0x5e74cf}from'@univerjs/sheets';import{ClearSheetDrawingTransformerOperation as _0x1b3283,DrawingApplyType as _0x1c0c7d,ISheetDrawingService as _0x37cef7,InsertSheetDrawingCommand as _0x323cf3,RemoveSheetDrawingCommand as _0x2fdf67,SetDrawingApplyMutation as _0x4d66d9,SetSheetDrawingCommand as _0x2b6a54}from'@univerjs/sheets-drawing';import{Subject as _0x3f4378}from'rxjs';import{DataSyncPrimaryController as _0x3a9afd}from'@univerjs/rpc';function N(_0x2825ac){'@babel/helpers - typeof';const _0xad84a2=_0x3cc4;return N=typeof Symbol==_0xad84a2(0x205)&&typeof Symbol[_0xad84a2(0x216)]==_0xad84a2(0x2e4)?function(_0x5a778f){return typeof _0x5a778f;}:function(_0x27a778){const _0xfa5e91=_0xad84a2;return _0x27a778&&typeof Symbol=='function'&&_0x27a778[_0xfa5e91(0x2ed)]===Symbol&&_0x27a778!==Symbol[_0xfa5e91(0x259)]?_0xfa5e91(0x2e4):typeof _0x27a778;},N(_0x2825ac);}function lt(_0x1fa6fa,_0xe2951a){const _0x5c6972=_0x3cc4;if(N(_0x1fa6fa)!=_0x5c6972(0x2f4)||!_0x1fa6fa)return _0x1fa6fa;var _0x139079=_0x1fa6fa[Symbol[_0x5c6972(0x24a)]];if(_0x139079!==void 0x0){var _0x5ec9be=_0x139079['call'](_0x1fa6fa,_0xe2951a||'default');if(N(_0x5ec9be)!=_0x5c6972(0x2f4))return _0x5ec9be;throw TypeError(_0x5c6972(0x38f));}return(_0xe2951a===_0x5c6972(0x245)?String:Number)(_0x1fa6fa);}function ut(_0x492a3b){const _0x4e9f9c=_0x3cc4;var _0x1a6d91=lt(_0x492a3b,_0x4e9f9c(0x245));return N(_0x1a6d91)=='symbol'?_0x1a6d91:_0x1a6d91+'';}function P(_0x5c1a3a,_0x8b3372,_0x275e85){const _0x26f273=_0x3cc4;return(_0x8b3372=ut(_0x8b3372))in _0x5c1a3a?Object[_0x26f273(0x2a3)](_0x5c1a3a,_0x8b3372,{'value':_0x275e85,'enumerable':!0x0,'configurable':!0x0,'writable':!0x0}):_0x5c1a3a[_0x8b3372]=_0x275e85,_0x5c1a3a;}function F(_0xb092ae,_0x4e4119){return function(_0x1717de,_0x56288d){_0x4e4119(_0x1717de,_0x56288d,_0xb092ae);};}function I(_0x40faf6,_0xe0eeec,_0x5dfaf8,_0x4640a7){const _0x598373=_0x3cc4;var _0x2ba4e3=arguments[_0x598373(0x25d)],_0x407f07=_0x2ba4e3<0x3?_0xe0eeec:_0x4640a7===null?_0x4640a7=Object[_0x598373(0x288)](_0xe0eeec,_0x5dfaf8):_0x4640a7,_0x3f2cad;if(typeof Reflect==_0x598373(0x2f4)&&typeof Reflect[_0x598373(0x2ae)]==_0x598373(0x205))_0x407f07=Reflect['decorate'](_0x40faf6,_0xe0eeec,_0x5dfaf8,_0x4640a7);else{for(var _0x3054c4=_0x40faf6[_0x598373(0x25d)]-0x1;_0x3054c4>=0x0;_0x3054c4--)(_0x3f2cad=_0x40faf6[_0x3054c4])&&(_0x407f07=(_0x2ba4e3<0x3?_0x3f2cad(_0x407f07):_0x2ba4e3>0x3?_0x3f2cad(_0xe0eeec,_0x5dfaf8,_0x407f07):_0x3f2cad(_0xe0eeec,_0x5dfaf8))||_0x407f07);}return _0x2ba4e3>0x3&&_0x407f07&&Object[_0x598373(0x2a3)](_0xe0eeec,_0x5dfaf8,_0x407f07),_0x407f07;}const dt='SHEET_PIVOT_CHART_PLUGIN';function _0x3016(){const _0x3a08b9=['sheet.command.update-pivot-chart-value-position','getFieldIds','chart','pivotConfig','Cache','_commandService','_createRuntime','dateType','getName','measure','_sendEditError','_changed$','sheet.command.update-pivot-chart','setCategoryLevel','message','resultSubscription','Chart','pivot-chart-','refreshGroupField','tag','getPivotTableConfig','_filterInfoRequests','valueFieldId','_sourceChanged$','_consumeState','settled','getUnit','custom','8538kesnTr','1.0.0','acquireForReport','createDataFieldId','editAndApply','size','token','sheet.command.set-pivot-chart-date-group','removeSourceRangeChange','slice','setSortInfo','values','getDateSystem','getDataFieldManager','602163hjVcOA','_publishSource','_serializeUnit','context','string','deleteUnit','state$','pivot-cache-','onCommandExecuted','toPrimitive','addField','_edit','manager','_rejectEdit','_consumeResult','valueFilterInfo','date-group','\x20-\x20','batch','map','reconcileChartModelContext','sheet.command.set-pivot-chart-sort','disposeWithMe','version','prototype','concat','pivotModel','drawings','length','forEach','_chartModelService','_editQueues','unitId','onStarting','sheet.command.update-pivot-chart-presentation','getDefaultTheme','subscribe','cacheRef','params','Right','_isCollectionHydrated','parse','_dataSyncPrimaryController','5079930PzFTdg','getDataFieldByTableId','setSort','subtotalType','dataRecordCount','find','Invalid\x20pivot\x20chart\x20resource\x20root.','removeFields','linked','[PivotChartRPCService]:\x20source\x20request\x20dispatch\x20failed','_requests','preUndos','Row','_units','entries','set','setConfig','6UHJXbb','push','has','drawing','Unsupported','info','sheet.command.update-pivot-chart-visual','@univerjs-pro/sheets-pivot-chart','_normalizeResourceCharts','_syncOwnedCacheReference','subtotal','getOwnPropertyDescriptor','charts','getFilterInfo','getDataFieldByDataFieldId','filterFields','resourceId','_scopeById','_context','setSubtotalType','every','PIVOT_CHART_FILTER_INFO_UNAVAILABLE','getFieldCountByArea','_rejectFilterInfo','getOriginFieldId','_disposeRuntime','[SheetsPivotChartModel]','sheet.command.remove-pivot-chart-field','_publishLinkedResult','getFieldById','_pendingResults','cacheRevision','undo','addDataFieldWithoutUnitInfo','redo','Controls','sheet.command.update-pivot-chart-controls','refreshData','defineProperty','Pivot\x20chart\x20not\x20found:\x20','setStyle','sheets-pivot-chart.config','width','getById','_removeBinding','current','complete','_registerCommands','dimension','decorate','runtime','sheet.command.update-pivot-chart-source-range','sheet.mutation.request-pivot-chart-filter-info-local','registerPluginResource','PivotMultipleValueId','setFieldSetting','_hydrateRestoredCollection','getTableFieldById','warn','getValueIndex','sheet.command.add-pivot-chart-field','sourceName','fieldsConfig','setLoading','unsubscribe','2920HlzoNq','sheet.command.set-pivot-chart-category-level','ownerUnitId','Pivot','categoryHierarchyInteraction','sheet.command.set-pivot-chart-filter','fromJSON','model','ensureSkeleton','dataFieldId','UNIVER_SHEET','setDirty','publishResult','getBatchUpdateOp','setFieldsConfig','result$','sortLocale','result','stringify','state','notExecuteFormula','pivotCacheId','then','host','collapse','error','getId','item','includes','_pivotCalculatorController','controls','format','_getFilterInfo','UPDATE','subUnitId','_updateChartContext','setChartType','series','symbol','cache','[PivotChartRPCService]:\x20filter\x20info\x20response\x20is\x20empty','getTargetByPivotId','reportRevision','options','setDataAggregation','requestId','hasCommand','constructor','_sendSource','valueFields','LOADING','moveField','_bindings','getTargetByPivotTableId','object','_handleFilterInfoResponse','None','removeDataField','displayName','style','remove','status','_rpcService','_pivotConfigModel','pushUndoRedo','sheet.mutation.add-pivot-chart','filterInfo','9585352eQjofg','sheet.mutation.send-pivot-chart-source-local','sheet.command.insert-pivot-chart','add','_loadUnit','getAllModels','sheet.command.step-pivot-chart-category-level','_applyChartSnapshot','_sourceCache','pivotTableConfig','legend','PIVOT_CHART_RPC_DISPOSED','isArray','addPivotTable','undos','theme','isAll','1113704hovczA','sheet.mutation.send-pivot-chart-source-metadata-local','range','_mapModelChange','Malformed\x20pivot\x20chart\x20resource.','onCommandExecute','INSERT','dataFields','getSortInfo','_logService','_cancelRequests','removeChartModel','position','filter','init','height','fieldsCollectionChange$','setFilter','_editRequests','sheet.command.remove-pivot-chart','getPivotCacheHandle','_sendFilterError','catch','borderColor','chartType','rowFieldCount','syncExecuteCommand','fieldArea','Chart\x20model\x20id\x20already\x20exists.','_injector','setting','updateFieldPosition','_createPivotTable','REFRESH_ERROR','Add','Embedded','Invalid\x20pivot\x20chart\x20resource\x20JSON.','setChartContext','getBatchAddOp','Column','_pivotChartModel','sheet.mutation.request-pivot-chart-edit-local','number','getSubUnitModels','getPivotTableModelConfig','pivotTable','name','dataSource','ref','registerSyncingMutations','COMMAND','Unit','source','getRememberedSource','_createBinding','boolean','kind','revision','valueFieldCount','releaseReport','query','sheet.mutation.send-pivot-chart-edit-local','sheet.mutation.send-pivot-chart-filter-info-local','fieldIds','reject','_dataSourceModel','edit','_publishLinkedUnavailable','records','rememberSource','ManualFilter','dispose','expected','area','getDataFieldItemInfo','valueIndex','_init','getFieldFormat','registerCommand','sheet.mutation.remove-pivot-chart','96836rYHtlS','dataFieldsCollection','_isDisposed','replaceControls','pluginName','getNoUsedDataFieldIds','PIVOT_CHART_REMOVED','_handleEditResponse','sheet.mutation.send-pivot-chart-state-local','unshift','READY','UNAVAILABLE','setRowCollapseLevel','keys','get','AddPivotTable','refresh','delete','executeCommand','_createLinkedRuntime','collapseInfo','snapshot','setValueFilterInfo','_dispatchEdit','Pivot\x20chart\x20collection\x20is\x20unavailable.','_runtimes','sheet.mutation.update-pivot-chart-cache-reference','SheetsChartComponent','sheet.command.update-owned-pivot-chart-report','getChartModel','[PivotChartRPCService]:\x20edit\x20request\x20dispatch\x20failed','categoryFieldCount','publishError','DRAWING_CHART','sourceRangeInfo','pivotTableRef','backgroundColor','valueFilter','Skipped\x20an\x20invalid\x20pivot\x20chart\x20definition.','showDataAs','index','toJSON','addCollectionByJSON','sheet.command.set-pivot-chart-collapse','syncCollectionConfig','@@toPrimitive\x20must\x20return\x20a\x20primitive\x20value.','operator','valuePosition','originalFieldId','_resourceManagerService','config','pivotChartId','setCollapse','setShowDataAs','removeField','setDateGroup','updateValuePosition','owned','some','getReportHandle','direction','Percentage','getPivotTableInstance','asObservable','deepClone','dataRangeInfo','view','collections','_handleResponse','The\x20referenced\x20PivotTable\x20is\x20unavailable.','_pendingStates','MUTATION','displayNameRecord','collectionConfig','dataAggregation','items','replacePresentation','_config','sheet.command.set-pivot-chart-fields-config','ValueFilter','_linkedChartsByPivotTable','setDateType','showFieldButtons','fieldButtons','changed$','[PivotChartRPCService]:\x20filter\x20info\x20request\x20dispatch\x20failed','clear','_parseResource','hexCode','preRedos','subscription','sourceChanged$','_keepLatestResult','163364LITvyM','fieldId','getCellIndexAndOffsetByPosition','single','sheet.mutation.update-pivot-chart-presentation','dataSet','previous','Skipped\x20an\x20invalid\x20pivot\x20chart\x20resource\x20group.','Value','rowFields','_isExpectedScope','pivotTableId','from','_cacheService','REMOVE','_getDrawingMutations','_reject','setFieldFormat','type','sheet.command.set-pivot-chart-field-setting','setValueFilter','packageName','redos','_handlePivotTableView','showExpandCollapseButtons','function','addFieldWithSourceId','renameField','next','definition','resolve','Remove','createChartModel','15xlOueh','replaceChart','getScope','_assertSameModel','getCollection','CategoryName','getSource','_createDetachedPivotTable','hiddenFields','iterator'];_0x3016=function(){return _0x3a08b9;};return _0x3016();}let ft=function(_0x4d9405){const _0x1f922c=_0x3cc4;return _0x4d9405[_0x1f922c(0x334)]=_0x1f922c(0x304),_0x4d9405[_0x1f922c(0x20b)]='remove',_0x4d9405[_0x1f922c(0x21b)]=_0x1f922c(0x2e5),_0x4d9405['Pivot']='pivot',_0x4d9405[_0x1f922c(0x227)]=_0x1f922c(0x219),_0x4d9405[_0x1f922c(0x2a0)]=_0x1f922c(0x2dc),_0x4d9405;}({}),L=class extends _0x16bb26{constructor(_0x381cfa,_0x14c382){const _0x57a130=_0x3cc4;super(),this[_0x57a130(0x393)]=_0x381cfa,this[_0x57a130(0x31b)]=_0x14c382,P(this,_0x57a130(0x279),new Map()),P(this,'_scopeById',new Map()),P(this,_0x57a130(0x222),new _0x3f4378()),P(this,_0x57a130(0x3b6),this[_0x57a130(0x222)][_0x57a130(0x3a1)]()),this['_initResource']();}[_0x3bff99(0x304)](_0x4905a0,_0x26d6fc,_0x726fb4){const _0x2323ad=_0x3bff99;if(!mt(_0x726fb4)||this[_0x2323ad(0x28e)][_0x2323ad(0x27f)](_0x726fb4['id']))return!0x1;let _0x4fd76b=this['_ensureModels'](_0x4905a0,_0x26d6fc),_0xa108ba=new _0x2f7d64(_0x726fb4),_0x1f6b83=_0xa108ba[_0x2323ad(0x3b6)][_0x2323ad(0x265)](_0x5d902d=>{const _0x5c7ccf=_0x2323ad;this[_0x5c7ccf(0x222)][_0x5c7ccf(0x208)](this[_0x5c7ccf(0x315)](_0x4905a0,_0x26d6fc,_0xa108ba['id'],_0x5d902d));});return _0x4fd76b[_0x2323ad(0x27b)](_0xa108ba['id'],{'model':_0xa108ba,'subscription':_0x1f6b83}),this[_0x2323ad(0x28e)][_0x2323ad(0x27b)](_0xa108ba['id'],{'unitId':_0x4905a0,'subUnitId':_0x26d6fc}),this[_0x2323ad(0x222)][_0x2323ad(0x208)]({'type':_0x2323ad(0x304),'unitId':_0x4905a0,'subUnitId':_0x26d6fc,'pivotChartId':_0xa108ba['id'],'current':_0xa108ba['snapshot']}),!0x0;}[_0x3bff99(0x370)](_0x4d1b72,_0x350607,_0x29ea97){const _0x5403bc=_0x3bff99;var _0x40e934;return(_0x40e934=this[_0x5403bc(0x279)][_0x5403bc(0x370)](_0x4d1b72))==null||(_0x40e934=_0x40e934['get'](_0x350607))==null||(_0x40e934=_0x40e934['get'](_0x29ea97))==null?void 0x0:_0x40e934[_0x5403bc(0x2c5)];}['getById'](_0x3865aa){const _0x1af685=_0x3bff99;let _0x2f8171=this[_0x1af685(0x28e)][_0x1af685(0x370)](_0x3865aa);return _0x2f8171?this[_0x1af685(0x370)](_0x2f8171['unitId'],_0x2f8171[_0x1af685(0x2e0)],_0x3865aa):void 0x0;}[_0x3bff99(0x20f)](_0x231581){const _0x1d8d3e=_0x3bff99;let _0x15d1c7=this[_0x1d8d3e(0x28e)][_0x1d8d3e(0x370)](_0x231581);return _0x15d1c7?{..._0x15d1c7}:void 0x0;}[_0x3bff99(0x33d)](_0x5e2208,_0xca8b95){const _0x20bf93=_0x3bff99;var _0x3919b0;let _0x330a46=(_0x3919b0=this[_0x20bf93(0x279)][_0x20bf93(0x370)](_0x5e2208))==null?void 0x0:_0x3919b0['get'](_0xca8b95);return _0x330a46?Array['from'](_0x330a46[_0x20bf93(0x23e)](),({model:_0x10b813})=>_0x10b813):[];}[_0x3bff99(0x306)](){const _0x3a0507=_0x3bff99;return Array[_0x3a0507(0x1f8)](this[_0x3a0507(0x28e)][_0x3a0507(0x27a)](),([_0x528226,_0x560ced])=>({..._0x560ced,'model':this[_0x3a0507(0x370)](_0x560ced[_0x3a0507(0x261)],_0x560ced['subUnitId'],_0x528226)}));}[_0x3bff99(0x2fa)](_0x72d810,_0x36dfc3,_0x15c639){const _0x12332e=_0x3bff99;let _0x1e02d3=this[_0x12332e(0x279)]['get'](_0x72d810),_0x5d77ed=_0x1e02d3==null?void 0x0:_0x1e02d3['get'](_0x36dfc3),_0x830955=_0x5d77ed==null?void 0x0:_0x5d77ed[_0x12332e(0x370)](_0x15c639);if(!_0x1e02d3||!_0x5d77ed||!_0x830955)return!0x1;let _0x1a54e7=_0x830955[_0x12332e(0x2c5)]['snapshot'];return _0x830955[_0x12332e(0x3bc)][_0x12332e(0x2bd)](),_0x830955[_0x12332e(0x2c5)][_0x12332e(0x359)](),_0x5d77ed[_0x12332e(0x373)](_0x15c639),this[_0x12332e(0x28e)]['delete'](_0x15c639),_0x5d77ed[_0x12332e(0x238)]===0x0&&_0x1e02d3['delete'](_0x36dfc3),_0x1e02d3[_0x12332e(0x238)]===0x0&&this[_0x12332e(0x279)]['delete'](_0x72d810),this['_changed$'][_0x12332e(0x208)]({'type':_0x12332e(0x2fa),'unitId':_0x72d810,'subUnitId':_0x36dfc3,'pivotChartId':_0x15c639,'previous':_0x1a54e7}),!0x0;}[_0x3bff99(0x246)](_0x5dd863){const _0x2a18f2=_0x3bff99;let _0x191fea=this[_0x2a18f2(0x279)][_0x2a18f2(0x370)](_0x5dd863);if(_0x191fea){for(let [_0x1b55d2,_0x36ae01]of _0x191fea)for(let _0x3982b6 of Array[_0x2a18f2(0x1f8)](_0x36ae01[_0x2a18f2(0x36f)]()))this[_0x2a18f2(0x2fa)](_0x5dd863,_0x1b55d2,_0x3982b6);}}[_0x3bff99(0x359)](){const _0xe14309=_0x3bff99;for(let _0x5d13d5 of Array[_0xe14309(0x1f8)](this[_0xe14309(0x279)]['keys']()))this[_0xe14309(0x246)](_0x5d13d5);this[_0xe14309(0x222)]['complete'](),super['dispose']();}['_ensureModels'](_0x2732c3,_0x44849c){const _0x584648=_0x3bff99;let _0x1ac026=this[_0x584648(0x279)][_0x584648(0x370)](_0x2732c3);_0x1ac026||(_0x1ac026=new Map(),this[_0x584648(0x279)][_0x584648(0x27b)](_0x2732c3,_0x1ac026));let _0x288327=_0x1ac026[_0x584648(0x370)](_0x44849c);return _0x288327||(_0x288327=new Map(),_0x1ac026['set'](_0x44849c,_0x288327)),_0x288327;}[_0x3bff99(0x315)](_0x4c4e3e,_0x207325,_0x31bf36,_0x19b489){const _0x2e4ec3=_0x3bff99;let _0x80c3f0=_0x2e4ec3(0x219);return _0x19b489['type']===_0x5bd3a0[_0x2e4ec3(0x21b)]?_0x80c3f0=_0x2e4ec3(0x2e5):_0x19b489[_0x2e4ec3(0x1fe)]===_0x5bd3a0[_0x2e4ec3(0x2c1)]?_0x80c3f0='pivot':_0x19b489[_0x2e4ec3(0x1fe)]===_0x5bd3a0['Controls']&&(_0x80c3f0=_0x2e4ec3(0x2dc)),{'type':_0x80c3f0,'unitId':_0x4c4e3e,'subUnitId':_0x207325,'pivotChartId':_0x31bf36,'previous':_0x19b489['previous'],'current':_0x19b489[_0x2e4ec3(0x2aa)]};}[_0x3bff99(0x243)](_0x600f80){const _0x249aa7=_0x3bff99;let _0x2ccbee={'charts':{}},_0x174be2=this['_units'][_0x249aa7(0x370)](_0x600f80);if(!_0x174be2)return JSON[_0x249aa7(0x2d0)](_0x2ccbee);for(let [_0x4732b9,_0x1854a9]of _0x174be2)_0x2ccbee[_0x249aa7(0x289)][_0x4732b9]=Array[_0x249aa7(0x1f8)](_0x1854a9[_0x249aa7(0x23e)](),({model:_0x35f91e})=>_0x35f91e[_0x249aa7(0x377)]);return JSON['stringify'](_0x2ccbee);}[_0x3bff99(0x305)](_0xc416e5,_0x14fbd5){const _0x1cc998=_0x3bff99;this[_0x1cc998(0x246)](_0xc416e5);for(let [_0x1a4365,_0x4eeac4]of Object[_0x1cc998(0x27a)](_0x14fbd5[_0x1cc998(0x289)]))for(let _0x33ef3c of _0x4eeac4)this[_0x1cc998(0x304)](_0xc416e5,_0x1a4365,_0x33ef3c);}[_0x3bff99(0x3b9)](_0x211e40){const _0x5897f7=_0x3bff99;let _0x34954f;try{_0x34954f=JSON[_0x5897f7(0x26a)](_0x211e40);}catch(_0x409362){return this[_0x5897f7(0x31b)][_0x5897f7(0x2b7)](_0x5897f7(0x297),_0x5897f7(0x336),_0x409362),pt();}return B(_0x34954f)?B(_0x34954f[_0x5897f7(0x289)])?this[_0x5897f7(0x285)](_0x34954f[_0x5897f7(0x289)]):(this[_0x5897f7(0x31b)][_0x5897f7(0x2b7)](_0x5897f7(0x297),_0x5897f7(0x316)),pt()):(this[_0x5897f7(0x31b)][_0x5897f7(0x2b7)](_0x5897f7(0x297),_0x5897f7(0x272)),pt());}['_normalizeResourceCharts'](_0x7804a6){const _0x254235=_0x3bff99;let _0x35500e=pt();for(let [_0x36c74e,_0xfa7c14]of Object[_0x254235(0x27a)](_0x7804a6)){if(!_0x36c74e||!Array[_0x254235(0x30d)](_0xfa7c14)){this[_0x254235(0x31b)][_0x254235(0x2b7)]('[SheetsPivotChartModel]',_0x254235(0x1f3),{'subUnitId':_0x36c74e});continue;}let _0x447f3e=[];_0xfa7c14[_0x254235(0x25e)]((_0x5b9f15,_0x36d024)=>{const _0x117ce0=_0x254235;mt(_0x5b9f15)?_0x447f3e['push'](_0x5b9f15):this[_0x117ce0(0x31b)]['warn'](_0x117ce0(0x297),_0x117ce0(0x388),{'subUnitId':_0x36c74e,'index':_0x36d024});}),_0x35500e['charts'][_0x36c74e]=_0x447f3e;}return _0x35500e;}['_initResource'](){const _0x3cbdb6=_0x3bff99;this[_0x3cbdb6(0x257)](this[_0x3cbdb6(0x393)][_0x3cbdb6(0x2b2)]({'pluginName':dt,'businesses':[_0x53e042[_0x3cbdb6(0x2c8)]],'toJson':_0x2b1769=>this[_0x3cbdb6(0x243)](_0x2b1769),'parseJson':_0xc16e54=>this['_parseResource'](_0xc16e54),'onLoad':(_0xc058eb,_0x3d43b2)=>this[_0x3cbdb6(0x305)](_0xc058eb,_0x3d43b2),'onUnLoad':_0x233218=>this[_0x3cbdb6(0x246)](_0x233218)}));}};L=I([F(0x0,_0x1ae7ee(_0x24754f)),F(0x1,_0x1a9f32)],L);function pt(){return{'charts':{}};}function mt(_0x2a45f3){const _0x46350f=_0x3bff99;if(!B(_0x2a45f3)||typeof _0x2a45f3['id']!=_0x46350f(0x245)||_0x2a45f3['id'][_0x46350f(0x25d)]===0x0||!ht(_0x2a45f3[_0x46350f(0x219)],_0x2a45f3['id'])||_0x2a45f3[_0x46350f(0x340)]!==void 0x0&&typeof _0x2a45f3[_0x46350f(0x340)]!='string'||!gt(_0x2a45f3[_0x46350f(0x2dc)]))return!0x1;let _0x5c92b9=_0x2a45f3[_0x46350f(0x385)]!==void 0x0;return _0x5c92b9===(_0x2a45f3[_0x46350f(0x266)]!==void 0x0||_0x2a45f3['pivotModel']!==void 0x0)?!0x1:_0x5c92b9?_t(_0x2a45f3[_0x46350f(0x385)]):vt(_0x2a45f3[_0x46350f(0x266)])&&yt(_0x2a45f3[_0x46350f(0x25b)]);}function ht(_0x10087a,_0xf20930){const _0x1810b3=_0x3bff99;return B(_0x10087a)&&_0x10087a['id']===_0xf20930&&typeof _0x10087a[_0x1810b3(0x32a)]==_0x1810b3(0x33c);}function gt(_0x22a191){const _0x33e33d=_0x3bff99;return _0x22a191===void 0x0||B(_0x22a191)&&(_0x22a191[_0x33e33d(0x3b4)]===void 0x0||typeof _0x22a191['showFieldButtons']==_0x33e33d(0x349))&&(_0x22a191[_0x33e33d(0x204)]===void 0x0||typeof _0x22a191[_0x33e33d(0x204)]==_0x33e33d(0x349));}function _t(_0x46daae){const _0x1736c1=_0x3bff99;return B(_0x46daae)&&z(_0x46daae[_0x1736c1(0x261)])&&z(_0x46daae[_0x1736c1(0x2e0)])&&z(_0x46daae[_0x1736c1(0x1f7)]);}function vt(_0x38e7a8){const _0x3713ce=_0x3bff99;if(!B(_0x38e7a8))return!0x1;switch(_0x38e7a8[_0x3713ce(0x34a)]){case _0x525a0e[_0x3713ce(0x345)]:return z(_0x38e7a8['ownerUnitId'])&&z(_0x38e7a8[_0x3713ce(0x2d3)]);case _0x525a0e[_0x3713ce(0x335)]:return z(_0x38e7a8[_0x3713ce(0x28d)]);case _0x525a0e['Resource']:return B(_0x38e7a8[_0x3713ce(0x342)])&&(_0x38e7a8['pivotCacheId']===void 0x0||z(_0x38e7a8[_0x3713ce(0x2d3)]));default:return!0x1;}}function yt(_0x1a461a){const _0x2b2894=_0x3bff99;return!B(_0x1a461a)||!B(_0x1a461a[_0x2b2894(0x2ad)])||!B(_0x1a461a[_0x2b2894(0x220)])||!R(_0x1a461a[_0x2b2894(0x2ef)])||!R(_0x1a461a[_0x2b2894(0x28c)])||!R(_0x1a461a[_0x2b2894(0x1f5)])||!R(_0x1a461a['columnFields'])||!R(_0x1a461a[_0x2b2894(0x215)])||typeof _0x1a461a[_0x2b2894(0x35d)]!=_0x2b2894(0x33c)||typeof _0x1a461a[_0x2b2894(0x391)]!=_0x2b2894(0x33c)||typeof _0x1a461a['layout']!=_0x2b2894(0x33c)||!B(_0x1a461a[_0x2b2894(0x376)])||!B(_0x1a461a[_0x2b2894(0x2e9)])||!Array[_0x2b2894(0x30d)](_0x1a461a[_0x2b2894(0x387)])?!0x1:Object[_0x2b2894(0x27a)](_0x1a461a[_0x2b2894(0x2ad)])['every'](([_0x578f64,_0x36af1c])=>bt(_0x578f64,_0x36af1c))&&Object[_0x2b2894(0x27a)](_0x1a461a['measure'])[_0x2b2894(0x291)](([_0x3f5178,_0x1bca28])=>bt(_0x3f5178,_0x1bca28));}function bt(_0x5d59bb,_0x1bfb4b){const _0x242210=_0x3bff99;return B(_0x1bfb4b)&&_0x1bfb4b['id']===_0x5d59bb&&z(_0x1bfb4b[_0x242210(0x2c7)])&&typeof _0x1bfb4b[_0x242210(0x2ba)]=='string'&&typeof _0x1bfb4b['displayName']==_0x242210(0x245);}function R(_0x406a5e){const _0x4e7357=_0x3bff99;return Array[_0x4e7357(0x30d)](_0x406a5e)&&_0x406a5e[_0x4e7357(0x291)](_0x3fc6ba=>typeof _0x3fc6ba==_0x4e7357(0x245));}function z(_0x55799f){const _0x110263=_0x3bff99;return typeof _0x55799f==_0x110263(0x245)&&_0x55799f[_0x110263(0x25d)]>0x0;}function B(_0x22f5ce){const _0x276c16=_0x3bff99;return typeof _0x22f5ce==_0x276c16(0x2f4)&&!!_0x22f5ce&&!Array[_0x276c16(0x30d)](_0x22f5ce);}const V={'id':'sheet.mutation.send-pivot-chart-result-local','type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},H={'id':_0x3bff99(0x36a),'type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},U={'id':'sheet.mutation.request-pivot-chart-source-local','type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},W={'id':_0x3bff99(0x302),'type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},xt={'id':_0x3bff99(0x313),'type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},St={'id':_0x3bff99(0x33b),'type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},Ct={'id':_0x3bff99(0x34f),'type':_0x31f546['MUTATION'],'handler':()=>!0x0},wt={'id':_0x3bff99(0x2b1),'type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0},Tt={'id':_0x3bff99(0x350),'type':_0x31f546[_0x3bff99(0x3a9)],'handler':()=>!0x0};let G=class extends _0x16bb26{constructor(_0x15c6ad,_0x334094){const _0x190424=_0x3bff99;super(),this[_0x190424(0x21c)]=_0x15c6ad,this[_0x190424(0x33a)]=_0x334094,P(this,_0x190424(0x276),new Map()),P(this,_0x190424(0x309),new Map()),P(this,_0x190424(0x324),new Map()),P(this,_0x190424(0x22c),new Map()),P(this,_0x190424(0x260),new Map()),P(this,_0x190424(0x364),!0x1),P(this,_0x190424(0x22e),new _0x3f4378()),P(this,_0x190424(0x3bd),this[_0x190424(0x22e)][_0x190424(0x3a1)]());let _0x3796c3=this[_0x190424(0x21c)]['onCommandExecuted'](_0x29e09c=>{const _0x2dc1dc=_0x190424;if(_0x29e09c['id']===W['id'])this['_handleResponse'](_0x29e09c[_0x2dc1dc(0x267)]);else{if(_0x29e09c['id']===Ct['id'])this['_handleEditResponse'](_0x29e09c['params']);else{if(_0x29e09c['id']===Tt['id'])this[_0x2dc1dc(0x2f5)](_0x29e09c['params']);else{if(_0x29e09c['id']===xt['id']){let _0xa74f8c=_0x29e09c[_0x2dc1dc(0x267)];this[_0x2dc1dc(0x357)](_0xa74f8c,_0xa74f8c[_0x2dc1dc(0x346)]);}}}}});this['disposeWithMe'](_0x3796c3),this[_0x190424(0x257)](this[_0x190424(0x33a)][_0x190424(0x3b6)]['subscribe'](_0x2eb706=>{const _0x1b3b08=_0x190424;if(_0x2eb706['type']==='remove'){let _0xd2ddd2=K(_0x2eb706);this[_0x1b3b08(0x309)]['delete'](_0xd2ddd2),this[_0x1b3b08(0x260)][_0x1b3b08(0x373)](_0xd2ddd2),this[_0x1b3b08(0x31c)](_0x2eb706),this[_0x1b3b08(0x22e)][_0x1b3b08(0x208)](_0x2eb706);}}));}['editAndApply'](_0xc95d08,_0x423d63){const _0x20bb2c=_0x3bff99;if(this[_0x20bb2c(0x364)])return Promise[_0x20bb2c(0x352)](Error(_0x20bb2c(0x30c)));let _0x13679f=this[_0x20bb2c(0x33a)][_0x20bb2c(0x370)](_0xc95d08['unitId'],_0xc95d08[_0x20bb2c(0x2e0)],_0xc95d08[_0x20bb2c(0x395)]);if(!_0x13679f)return Promise[_0x20bb2c(0x352)](Error(_0x20bb2c(0x368)));let _0x489d25=K(_0xc95d08),_0x3d3c21=(this['_editQueues'][_0x20bb2c(0x370)](_0x489d25)??Promise[_0x20bb2c(0x20a)]())[_0x20bb2c(0x2d4)](()=>(this['_assertSameModel'](_0xc95d08,_0x13679f),this[_0x20bb2c(0x379)](_0xc95d08,_0x423d63)))['then'](_0x4540f3=>(this['_assertSameModel'](_0xc95d08,_0x13679f),this[_0x20bb2c(0x21c)][_0x20bb2c(0x374)](_0x4540f3[_0x20bb2c(0x346)]?_0x20bb2c(0x37e):_0x20bb2c(0x223),{..._0xc95d08,..._0x4540f3}))),_0x153d00={},_0x3ed77f=()=>{const _0x2a0743=_0x20bb2c;_0x153d00[_0x2a0743(0x230)]&&this['_editQueues'][_0x2a0743(0x370)](_0x489d25)===_0x153d00[_0x2a0743(0x230)]&&this[_0x2a0743(0x260)][_0x2a0743(0x373)](_0x489d25);},_0x446883=_0x3d3c21[_0x20bb2c(0x2d4)](_0x3ed77f,_0x3ed77f);return _0x153d00['settled']=_0x446883,this[_0x20bb2c(0x260)][_0x20bb2c(0x27b)](_0x489d25,_0x446883),_0x3d3c21;}['_dispatchEdit'](_0x89b531,_0x5cf3ff){const _0x38f66a=_0x3bff99;if(this['_isDisposed'])return Promise[_0x38f66a(0x352)](Error(_0x38f66a(0x30c)));let _0x5ac86d=_0x574d73(),_0x40ff47=new Promise((_0xca47c8,_0x1899f6)=>{const _0x44368f=_0x38f66a;this[_0x44368f(0x324)][_0x44368f(0x27b)](_0x5ac86d,{'params':_0x89b531,'resolve':_0xca47c8,'reject':_0x1899f6});});return this[_0x38f66a(0x21c)]['executeCommand'](St['id'],{..._0x89b531,'requestId':_0x5ac86d,'edit':_0x5cf3ff},{'onlyLocal':!0x0})[_0x38f66a(0x2d4)](_0x194416=>{const _0x14d819=_0x38f66a;_0x194416||this[_0x14d819(0x24e)](_0x5ac86d,Error(_0x14d819(0x380)));})['catch'](_0x3be790=>this[_0x38f66a(0x24e)](_0x5ac86d,_0x3be790)),_0x40ff47;}[_0x3bff99(0x28a)](_0x54b311){const _0x44776e=_0x3bff99;if(this[_0x44776e(0x364)])return Promise[_0x44776e(0x352)](Error(_0x44776e(0x30c)));let _0x95cfd3=_0x574d73(),_0x3c6fa7=new Promise((_0x57ac36,_0x49fa8e)=>{const _0x517b2b=_0x44776e;this[_0x517b2b(0x22c)][_0x517b2b(0x27b)](_0x95cfd3,{'params':_0x54b311,'resolve':_0x57ac36,'reject':_0x49fa8e});});return this[_0x44776e(0x21c)][_0x44776e(0x374)](wt['id'],{..._0x54b311,'requestId':_0x95cfd3},{'onlyLocal':!0x0})[_0x44776e(0x2d4)](_0x175e9e=>{const _0x485b21=_0x44776e;_0x175e9e||this['_rejectFilterInfo'](_0x95cfd3,Error(_0x485b21(0x3b7)));})[_0x44776e(0x328)](_0x23bed9=>this['_rejectFilterInfo'](_0x95cfd3,_0x23bed9)),_0x3c6fa7;}[_0x3bff99(0x213)](_0x14b710){const _0x9992d7=_0x3bff99;if(this['_isDisposed'])return Promise[_0x9992d7(0x352)](Error(_0x9992d7(0x30c)));let _0x56a495=_0x574d73(),_0x11d5eb=new Promise((_0x5ea6b1,_0x395342)=>{const _0x3c4c79=_0x9992d7;this[_0x3c4c79(0x276)][_0x3c4c79(0x27b)](_0x56a495,{'params':_0x14b710,'resolve':_0x5ea6b1,'reject':_0x395342});});return this[_0x9992d7(0x21c)]['executeCommand'](U['id'],{..._0x14b710,'requestId':_0x56a495},{'onlyLocal':!0x0})[_0x9992d7(0x2d4)](_0x15a12a=>{const _0x4ac8b7=_0x9992d7;_0x15a12a||this[_0x4ac8b7(0x1fc)](_0x56a495,Error(_0x4ac8b7(0x275)));})[_0x9992d7(0x328)](_0x353b0b=>this['_reject'](_0x56a495,_0x353b0b)),_0x11d5eb;}[_0x3bff99(0x357)](_0x541648,_0x63ca78){const _0x1275d6=_0x3bff99;let _0x5ec929=K(_0x541648);!this[_0x1275d6(0x364)]&&this[_0x1275d6(0x33a)][_0x1275d6(0x370)](_0x541648['unitId'],_0x541648[_0x1275d6(0x2e0)],_0x541648['pivotChartId'])&&(this['_sourceCache'][_0x1275d6(0x27b)](_0x5ec929,_0x2c5c8a[_0x1275d6(0x3a2)](_0x63ca78)),this[_0x1275d6(0x22e)][_0x1275d6(0x208)](_0x541648));}['getRememberedSource'](_0xb46fbd){const _0x43ad63=_0x3bff99;if(this[_0x43ad63(0x364)]||!this[_0x43ad63(0x33a)][_0x43ad63(0x370)](_0xb46fbd['unitId'],_0xb46fbd[_0x43ad63(0x2e0)],_0xb46fbd[_0x43ad63(0x395)]))return;let _0x33d31c=this[_0x43ad63(0x309)]['get'](K(_0xb46fbd));return _0x33d31c?_0x2c5c8a['deepClone'](_0x33d31c):void 0x0;}[_0x3bff99(0x359)](){const _0x148879=_0x3bff99;this[_0x148879(0x364)]=!0x0;let _0x359932=Error('[PivotChartRPCService]:\x20disposed\x20with\x20pending\x20source\x20requests');this[_0x148879(0x276)]['forEach'](({reject:_0x3e2459})=>_0x3e2459(_0x359932)),this[_0x148879(0x276)]['clear'](),this[_0x148879(0x324)]['forEach'](({reject:_0x5c263f})=>_0x5c263f(_0x359932)),this[_0x148879(0x324)]['clear'](),this[_0x148879(0x22c)]['forEach'](({reject:_0x463744})=>_0x463744(_0x359932)),this[_0x148879(0x22c)][_0x148879(0x3b8)](),this[_0x148879(0x260)][_0x148879(0x3b8)](),this['_sourceCache'][_0x148879(0x3b8)](),this[_0x148879(0x22e)][_0x148879(0x2ab)](),super['dispose']();}[_0x3bff99(0x369)](_0x20468a){const _0x405999=_0x3bff99;let _0x1020df=this[_0x405999(0x324)][_0x405999(0x370)](_0x20468a[_0x405999(0x2eb)]);_0x1020df&&(this[_0x405999(0x324)][_0x405999(0x373)](_0x20468a[_0x405999(0x2eb)]),_0x20468a[_0x405999(0x2d7)]!==void 0x0||!_0x20468a[_0x405999(0x25b)]?_0x1020df[_0x405999(0x352)](Error(_0x20468a[_0x405999(0x2d7)]??'[PivotChartRPCService]:\x20edit\x20response\x20is\x20empty')):_0x1020df[_0x405999(0x20a)]({'pivotModel':_0x20468a[_0x405999(0x25b)],..._0x20468a[_0x405999(0x346)]?{'source':_0x20468a['source']}:{}}));}[_0x3bff99(0x2f5)](_0x50db5c){const _0x4cb510=_0x3bff99;let _0x42ae4b=this['_filterInfoRequests'][_0x4cb510(0x370)](_0x50db5c[_0x4cb510(0x2eb)]);_0x42ae4b&&(this[_0x4cb510(0x22c)][_0x4cb510(0x373)](_0x50db5c[_0x4cb510(0x2eb)]),_0x50db5c['error']!==void 0x0||!_0x50db5c[_0x4cb510(0x300)]?_0x42ae4b[_0x4cb510(0x352)](Error(_0x50db5c[_0x4cb510(0x2d7)]??_0x4cb510(0x2e6))):_0x42ae4b[_0x4cb510(0x20a)](_0x50db5c['filterInfo']));}[_0x3bff99(0x3a6)](_0x4fe5f9){const _0xaeb963=_0x3bff99;let _0x543794=this['_requests'][_0xaeb963(0x370)](_0x4fe5f9[_0xaeb963(0x2eb)]);_0x543794&&(this[_0xaeb963(0x276)][_0xaeb963(0x373)](_0x4fe5f9['requestId']),_0x4fe5f9[_0xaeb963(0x2d7)]!==void 0x0||!_0x4fe5f9[_0xaeb963(0x346)]?_0x543794[_0xaeb963(0x352)](Error(_0x4fe5f9[_0xaeb963(0x2d7)]??'[PivotChartRPCService]:\x20source\x20response\x20is\x20empty')):(this[_0xaeb963(0x357)](_0x543794[_0xaeb963(0x267)],_0x4fe5f9[_0xaeb963(0x346)]),_0x543794[_0xaeb963(0x20a)](_0x4fe5f9[_0xaeb963(0x346)])));}[_0x3bff99(0x1fc)](_0x10d8b4,_0x4f09d0){const _0x12d2db=_0x3bff99;let _0x5af200=this['_requests'][_0x12d2db(0x370)](_0x10d8b4);_0x5af200&&(this[_0x12d2db(0x276)][_0x12d2db(0x373)](_0x10d8b4),_0x5af200['reject'](_0x4f09d0));}[_0x3bff99(0x31c)](_0x327324){const _0x578957=_0x3bff99;let _0x978b33=K(_0x327324),_0x2e05c3=Error(_0x578957(0x368));this['_requests'][_0x578957(0x25e)]((_0x4097db,_0x43fc37)=>{const _0x5688fd=_0x578957;K(_0x4097db['params'])===_0x978b33&&(this[_0x5688fd(0x276)][_0x5688fd(0x373)](_0x43fc37),_0x4097db[_0x5688fd(0x352)](_0x2e05c3));}),this[_0x578957(0x324)]['forEach']((_0xb2f381,_0x20a7f6)=>{const _0x5d2538=_0x578957;K(_0xb2f381[_0x5d2538(0x267)])===_0x978b33&&(this[_0x5d2538(0x324)][_0x5d2538(0x373)](_0x20a7f6),_0xb2f381[_0x5d2538(0x352)](_0x2e05c3));}),this['_filterInfoRequests'][_0x578957(0x25e)]((_0x283644,_0x51bfac)=>{const _0x3ac217=_0x578957;K(_0x283644[_0x3ac217(0x267)])===_0x978b33&&(this['_filterInfoRequests'][_0x3ac217(0x373)](_0x51bfac),_0x283644[_0x3ac217(0x352)](_0x2e05c3));});}[_0x3bff99(0x210)](_0x5a27dd,_0x578b1d){const _0x2afbda=_0x3bff99;if(this[_0x2afbda(0x364)])throw Error('PIVOT_CHART_RPC_DISPOSED');if(this[_0x2afbda(0x33a)]['get'](_0x5a27dd[_0x2afbda(0x261)],_0x5a27dd[_0x2afbda(0x2e0)],_0x5a27dd['pivotChartId'])!==_0x578b1d)throw Error(_0x2afbda(0x368));}[_0x3bff99(0x24e)](_0x117b1b,_0x498f5){const _0xa77c4d=_0x3bff99;let _0xa6d9de=this[_0xa77c4d(0x324)][_0xa77c4d(0x370)](_0x117b1b);_0xa6d9de&&(this[_0xa77c4d(0x324)][_0xa77c4d(0x373)](_0x117b1b),_0xa6d9de[_0xa77c4d(0x352)](_0x498f5));}[_0x3bff99(0x294)](_0x4799e4,_0x4318a9){const _0xc793dd=_0x3bff99;let _0x403255=this[_0xc793dd(0x22c)]['get'](_0x4799e4);_0x403255&&(this['_filterInfoRequests'][_0xc793dd(0x373)](_0x4799e4),_0x403255['reject'](_0x4318a9));}};G=I([F(0x0,_0x1ae7ee(_0x3d27ba)),F(0x1,_0x1ae7ee(L))],G);function K(_0x307d45){const _0x38122f=_0x3bff99;return JSON[_0x38122f(0x2d0)]([_0x307d45[_0x38122f(0x261)],_0x307d45['subUnitId'],_0x307d45[_0x38122f(0x395)]]);}const q={'id':_0x3bff99(0x2ff),'type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0x3f4d4d,_0x1556ac){const _0x480160=_0x3bff99;if(!_0x1556ac||_0x1556ac[_0x480160(0x209)]['id']!==_0x1556ac['definition'][_0x480160(0x219)]['id'])return!0x1;let _0x49abff=_0x3f4d4d[_0x480160(0x370)](L);if(_0x49abff[_0x480160(0x2a8)](_0x1556ac[_0x480160(0x209)]['id']))return!0x1;let _0x14d0d7=_0x3f4d4d[_0x480160(0x370)](_0x591ca1),_0x2f2610=jt(_0x14d0d7,_0x1556ac);if(!_0x2f2610)return!0x1;let _0x472117=_0x49abff['add'](_0x1556ac['unitId'],_0x1556ac[_0x480160(0x2e0)],_0x2f2610);return!_0x472117&&_0x3b1bb7(_0x2f2610)?Nt(_0x14d0d7,_0x1556ac,_0x2f2610):_0x472117&&_0x1556ac[_0x480160(0x346)]&&_0x14d0d7[_0x480160(0x27f)](G)&&_0x14d0d7[_0x480160(0x370)](G)[_0x480160(0x357)]({'unitId':_0x1556ac[_0x480160(0x261)],'subUnitId':_0x1556ac[_0x480160(0x2e0)],'pivotChartId':_0x2f2610['id']},_0x1556ac[_0x480160(0x346)]),_0x472117;}},J={'id':_0x3bff99(0x361),'type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0x1682bd,_0x49aa23){const _0x3a652c=_0x3bff99;var _0x3df7f0;if(!_0x49aa23)return!0x1;let _0x4e1127=_0x1682bd[_0x3a652c(0x370)](L),_0x1a44bc=(_0x3df7f0=_0x4e1127[_0x3a652c(0x370)](_0x49aa23['unitId'],_0x49aa23['subUnitId'],_0x49aa23[_0x3a652c(0x395)]))==null?void 0x0:_0x3df7f0[_0x3a652c(0x377)];if(!_0x4e1127[_0x3a652c(0x2fa)](_0x49aa23[_0x3a652c(0x261)],_0x49aa23[_0x3a652c(0x2e0)],_0x49aa23['pivotChartId']))return!0x1;let _0x32c1bb=_0x1682bd[_0x3a652c(0x370)](_0x591ca1);if(_0x1a44bc&&!_0x53aac2(_0x1a44bc)&&_0x32c1bb[_0x3a652c(0x27f)](_0x54080a)&&_0x32c1bb[_0x3a652c(0x27f)](_0x58f041)){let _0x2abaf9=_0x32c1bb[_0x3a652c(0x370)](_0x54080a),_0xced912=_0x32c1bb[_0x3a652c(0x370)](_0x58f041),_0x16c014=(_0x1a44bc==null?void 0x0:_0x1a44bc['cacheRef'][_0x3a652c(0x34a)])===_0x525a0e[_0x3a652c(0x345)]?_0x1a44bc[_0x3a652c(0x266)][_0x3a652c(0x2c0)]:_0x49aa23['unitId'],_0x402944=_0x2abaf9[_0x3a652c(0x211)](_0x16c014,_0x49aa23[_0x3a652c(0x395)]);_0xced912[_0x3a652c(0x34d)](_0x49aa23[_0x3a652c(0x261)],_0x49aa23[_0x3a652c(0x395)]),_0x402944&&Pt(_0x2abaf9,_0x16c014,_0x49aa23['pivotChartId']);}return!0x0;}},Et={'id':'sheet.mutation.update-pivot-chart','type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0x5c057e,_0x38fc4f){const _0x1e156f=_0x3bff99;if(!_0x38fc4f)return!0x1;let _0x45b3aa=_0x5c057e[_0x1e156f(0x370)](L)['get'](_0x38fc4f[_0x1e156f(0x261)],_0x38fc4f[_0x1e156f(0x2e0)],_0x38fc4f[_0x1e156f(0x395)]);return _0x45b3aa?_0x45b3aa['replacePivotModel'](_0x38fc4f[_0x1e156f(0x25b)]):!0x1;}},Dt={'id':_0x3bff99(0x37c),'type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0x42782f,_0x4d0c72){const _0x35e6cd=_0x3bff99;if(!_0x4d0c72)return!0x1;let _0x13d641=_0x42782f['get'](L)[_0x35e6cd(0x370)](_0x4d0c72[_0x35e6cd(0x261)],_0x4d0c72[_0x35e6cd(0x2e0)],_0x4d0c72[_0x35e6cd(0x395)]),_0x29814c=_0x13d641==null?void 0x0:_0x13d641['snapshot'];return!_0x13d641||!_0x29814c||!_0x3b1bb7(_0x29814c)||_0x29814c[_0x35e6cd(0x266)]['kind']!==_0x525a0e['Unit']?!0x1:_0x13d641['replaceCacheReference']({..._0x29814c[_0x35e6cd(0x266)],'pivotCacheId':_0x4d0c72[_0x35e6cd(0x2d3)]});}},Ot={'id':'sheet.mutation.update-pivot-chart-visual','type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0xb1e305,_0x289347){const _0xcbbb0=_0x3bff99;if(!_0x289347||_0x289347['pivotChartId']!==_0x289347[_0xcbbb0(0x219)]['id'])return!0x1;let _0x1f49d8=_0xb1e305['get'](L)[_0xcbbb0(0x370)](_0x289347[_0xcbbb0(0x261)],_0x289347[_0xcbbb0(0x2e0)],_0x289347[_0xcbbb0(0x395)]);return _0x1f49d8?(_0x1f49d8[_0xcbbb0(0x20e)](_0x289347[_0xcbbb0(0x219)]),!0x0):!0x1;}},kt={'id':'sheet.mutation.update-pivot-chart-controls','type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0x508558,_0x387528){const _0x3a6802=_0x3bff99;if(!_0x387528)return!0x1;let _0x37a87c=_0x508558['get'](L)['get'](_0x387528[_0x3a6802(0x261)],_0x387528[_0x3a6802(0x2e0)],_0x387528[_0x3a6802(0x395)]);return _0x37a87c?(_0x37a87c[_0x3a6802(0x365)](_0x387528[_0x3a6802(0x2dc)]),!0x0):!0x1;}},At={'id':_0x3bff99(0x1f0),'type':_0x31f546[_0x3bff99(0x3a9)],'handler'(_0x399fc7,_0x29d90b){const _0x62f286=_0x3bff99;if(!_0x29d90b||_0x29d90b['pivotChartId']!==_0x29d90b[_0x62f286(0x219)]['id'])return!0x1;let _0x2323b5=_0x399fc7[_0x62f286(0x370)](L)[_0x62f286(0x370)](_0x29d90b['unitId'],_0x29d90b[_0x62f286(0x2e0)],_0x29d90b[_0x62f286(0x395)]);return _0x2323b5?(_0x2323b5[_0x62f286(0x3ae)](_0x29d90b[_0x62f286(0x219)],_0x29d90b[_0x62f286(0x2dc)],_0x29d90b[_0x62f286(0x340)]),!0x0):!0x1;}};function jt(_0x550096,_0x4365bd){const _0x27131b=_0x3bff99;let _0xac3ad4=_0x4365bd[_0x27131b(0x209)];if(!_0x3b1bb7(_0xac3ad4)||!_0x550096[_0x27131b(0x27f)](_0x54080a)||!_0x550096[_0x27131b(0x27f)](_0x58f041)||!_0x4365bd['source'])return _0xac3ad4;let _0x174a0e=_0x550096['get'](_0x54080a),_0x550332=_0x550096[_0x27131b(0x370)](_0x58f041),_0x3ee96a=_0x4365bd[_0x27131b(0x346)][_0x27131b(0x384)][_0x27131b(0x261)];if(!_0x174a0e[_0x27131b(0x211)](_0x3ee96a,_0xac3ad4['id']))try{let {collection:_0x339f3a,updateDataFieldList:_0x2c02ed}=_0x174a0e[_0x27131b(0x38c)](_0xac3ad4['id'],_0x4365bd[_0x27131b(0x346)]['collectionConfig'],_0x4365bd[_0x27131b(0x346)]['sourceRangeInfo'],void 0x0,{'unitId':_0x4365bd[_0x27131b(0x261)],'subUnitId':_0x4365bd[_0x27131b(0x2e0)]}),_0x20e1ab=Mt(_0x550096,_0x4365bd['source'][_0x27131b(0x3ab)],_0x3ee96a,_0x339f3a,_0x174a0e),_0x1d3ef9=new Set(_0x20e1ab[_0x27131b(0x254)](_0x432a97=>_0x432a97['id']));_0x174a0e[_0x27131b(0x2a2)](_0x339f3a,_0x2c02ed[_0x27131b(0x31f)](({dataField:_0x1a247a})=>!_0x1d3ef9[_0x27131b(0x27f)](_0x1a247a['id'])),_0x4365bd['source'][_0x27131b(0x384)]),_0x20e1ab[_0x27131b(0x25e)](_0x57166a=>{const _0x57b1d8=_0x27131b;let _0x578ac8=_0x339f3a[_0x57b1d8(0x29a)](_0x57166a['getOriginFieldId']());_0x578ac8&&_0x57166a[_0x57b1d8(0x229)](_0x578ac8);}),_0x174a0e[_0x27131b(0x38e)](_0x3ee96a);let _0x45dd71=_0xac3ad4['cacheRef'][_0x27131b(0x34a)]===_0x525a0e['Unit']&&_0xac3ad4['cacheRef'][_0x27131b(0x2c0)]===_0x3ee96a?_0xac3ad4['cacheRef'][_0x27131b(0x2d3)]:void 0x0,_0x83774d=_0x550332[_0x27131b(0x235)](_0x4365bd[_0x27131b(0x261)],_0xac3ad4['id'],_0x4365bd[_0x27131b(0x346)][_0x27131b(0x384)],_0x174a0e[_0x27131b(0x240)](_0x3ee96a),_0x45dd71);return{..._0xac3ad4,'cacheRef':{'kind':_0x525a0e[_0x27131b(0x345)],'ownerUnitId':_0x3ee96a,'pivotCacheId':_0x83774d['pivotCacheId']}};}catch{Nt(_0x550096,_0x4365bd,_0xac3ad4);return;}}function Mt(_0x22a650,_0x4b067b,_0x1a77f3,_0x3a2f23,_0x3a28f6){const _0x3ddd16=_0x3bff99;let _0x51bf12=_0x3a28f6[_0x3ddd16(0x240)](_0x1a77f3),_0x43d836=Object[_0x3ddd16(0x23e)](_0x4b067b['fields'])['filter'](_0x37f690);if(!_0x43d836[_0x3ddd16(0x25d)])return[];let _0x9d53ef=_0x22a650[_0x3ddd16(0x370)](_0x2f2411)['getUnit'](_0x1a77f3,_0x53e042[_0x3ddd16(0x2c8)]);return _0x2c809f(_0x9d53ef==null?void 0x0:_0x9d53ef['getDateSystem']()),_0x43d836['map'](_0x1b7bcf=>{const _0x3a3374=_0x3ddd16;let _0x5ce030=new _0x8536b2(_0x1b7bcf['id'],_0x1b7bcf[_0x3a3374(0x340)],_0x1b7bcf[_0x3a3374(0x3ba)],_0x1b7bcf['originalFieldId'],_0x1b7bcf['dateType']);return _0x51bf12[_0x3a3374(0x29e)](_0x5ce030),_0x5ce030;});}function Nt(_0x19719d,_0x4c6167,_0x5ce48f){const _0x498fed=_0x3bff99;if(!_0x4c6167['source']||!_0x19719d[_0x498fed(0x27f)](_0x54080a)||!_0x19719d['has'](_0x58f041))return;let _0x327216=_0x19719d['get'](_0x54080a);_0x19719d['get'](_0x58f041)[_0x498fed(0x34d)](_0x4c6167[_0x498fed(0x261)],_0x5ce48f['id']),Pt(_0x327216,_0x4c6167['source'][_0x498fed(0x384)][_0x498fed(0x261)],_0x5ce48f['id']);}function Pt(_0x34ad85,_0x2258ce,_0x2cc007){const _0x37092a=_0x3bff99;if(!_0x34ad85[_0x37092a(0x211)](_0x2258ce,_0x2cc007))return;let _0x19d600=_0x34ad85[_0x37092a(0x240)](_0x2258ce)[_0x37092a(0x367)](_0x2cc007);_0x34ad85['removeCollections'](_0x2258ce,_0x2cc007),_0x19d600['forEach'](_0x3bba19=>_0x34ad85[_0x37092a(0x2f7)](_0x2258ce,_0x3bba19)),_0x34ad85[_0x37092a(0x38e)](_0x2258ce);}const Ft='PivotMultipleValueId',It={'id':'sheet.command.add-pivot-chart','type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0xd79380,_0x3c3299){const _0x1fd801=_0x3bff99;if(!_0x3c3299)return!0x1;let _0x3471db=_0xd79380[_0x1fd801(0x370)](_0x3d27ba),_0x1cc6cf=_0xd79380['get'](_0x48d72c),_0x1302a2=await Rt(_0xd79380,_0x3c3299);if(!_0x1302a2)return!0x1;let _0x21dd19={'id':q['id'],'params':_0x1302a2},_0x130fba={'id':J['id'],'params':{'unitId':_0x3c3299[_0x1fd801(0x261)],'subUnitId':_0x3c3299[_0x1fd801(0x2e0)],'pivotChartId':_0x1302a2[_0x1fd801(0x209)]['id']}};return _0x3471db[_0x1fd801(0x32c)](_0x21dd19['id'],_0x21dd19['params'])?(_0x1cc6cf[_0x1fd801(0x2fe)]({'unitID':_0x3c3299[_0x1fd801(0x261)],'redoMutations':[_0x21dd19],'undoMutations':[_0x130fba]}),!0x0):!0x1;}};function Lt(_0x355b0b,_0x2dc779){const _0x3f722f=_0x3bff99;var _0x4ef238;return{'chartType':_0x3959a1[_0x3f722f(0x339)],..._0x2dc779,'style':{..._0x2dc779==null?void 0x0:_0x2dc779[_0x3f722f(0x2f9)],'legend':{'position':_0xf78ba2[_0x3f722f(0x268)],..._0x2dc779==null||(_0x4ef238=_0x2dc779[_0x3f722f(0x2f9)])==null?void 0x0:_0x4ef238[_0x3f722f(0x30b)]}},'id':_0x355b0b};}async function Rt(_0x5f52e5,_0x366c9a){const _0x3998a4=_0x3bff99;let _0xe49aa=_0x366c9a[_0x3998a4(0x395)]??_0x3998a4(0x228)+_0x574d73(0x8);if(_0x5f52e5[_0x3998a4(0x370)](L)[_0x3998a4(0x2a8)](_0xe49aa))return;if(_0x366c9a[_0x3998a4(0x385)]){let {unitId:_0x567717,subUnitId:_0x3c4a31,pivotTableId:_0x2c27f0}=_0x366c9a['pivotTableRef'],_0x4366c3=_0x5f52e5[_0x3998a4(0x370)](_0x591ca1);return _0x4366c3[_0x3998a4(0x27f)](_0x54080a)&&_0x4366c3['get'](_0x54080a)[_0x3998a4(0x33e)](_0x567717,_0x3c4a31,_0x2c27f0)||_0x4366c3[_0x3998a4(0x27f)](_0x222738)&&_0x4366c3['get'](_0x222738)['getPivotTableConfig'](_0x567717,_0x3c4a31,_0x2c27f0)?{'unitId':_0x366c9a[_0x3998a4(0x261)],'subUnitId':_0x366c9a[_0x3998a4(0x2e0)],'definition':{'id':_0xe49aa,'name':_0x366c9a[_0x3998a4(0x340)],'controls':_0x366c9a[_0x3998a4(0x2dc)],'pivotTableRef':_0x366c9a[_0x3998a4(0x385)],'chart':Lt(_0xe49aa,_0x366c9a[_0x3998a4(0x219)])}}:void 0x0;}let _0x5bcf63=(await _0x5f52e5[_0x3998a4(0x370)](_0x2e878a)['getPivotDisplayConfig']({'unitId':_0x366c9a[_0x3998a4(0x384)][_0x3998a4(0x261)],'subUnitId':_0x366c9a['sourceRangeInfo'][_0x3998a4(0x2e0)],'pivotTableId':_0xe49aa,'params':{'type':_0x1d0c45[_0x3998a4(0x371)],'addPivotTable':{'sourceRangeInfo':_0x366c9a[_0x3998a4(0x384)],'pivotTableId':_0xe49aa}}}))[_0x3998a4(0x2cf)][_0x3998a4(0x30e)];if(!_0x5bcf63)return;let _0x5869de={'id':_0xe49aa,'name':_0x366c9a[_0x3998a4(0x340)],'controls':_0x366c9a[_0x3998a4(0x2dc)],'cacheRef':{'kind':_0x525a0e[_0x3998a4(0x345)],'ownerUnitId':_0x366c9a[_0x3998a4(0x384)][_0x3998a4(0x261)],'pivotCacheId':_0x3998a4(0x248)+_0x574d73(0x8)},'pivotModel':_0x366c9a[_0x3998a4(0x25b)]??_0x5bcf63[_0x3998a4(0x2bb)],'chart':Lt(_0xe49aa,_0x366c9a[_0x3998a4(0x219)])};return{'unitId':_0x366c9a['unitId'],'subUnitId':_0x366c9a[_0x3998a4(0x2e0)],'definition':_0x5869de,'source':{'sourceRangeInfo':_0x366c9a[_0x3998a4(0x384)],'collectionConfig':_0x5bcf63[_0x3998a4(0x3ab)]}};}const zt={'id':_0x3bff99(0x325),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x156224,_0x1736e1){const _0x5973fe=_0x3bff99;if(!_0x1736e1)return!0x1;let _0x7471a0=_0x156224['get'](L)['get'](_0x1736e1['unitId'],_0x1736e1[_0x5973fe(0x2e0)],_0x1736e1[_0x5973fe(0x395)]);if(!_0x7471a0)return!0x1;let _0x13c135=_0x7471a0[_0x5973fe(0x377)],_0x31dce8;if(!_0x53aac2(_0x13c135)){let _0x4fa6c5=_0x156224[_0x5973fe(0x370)](G);if(_0x31dce8=_0x4fa6c5['getRememberedSource'](_0x1736e1),!_0x31dce8)try{_0x31dce8=await _0x4fa6c5[_0x5973fe(0x213)](_0x1736e1);}catch{return!0x1;}}let _0x30e795={'id':J['id'],'params':_0x1736e1},_0x185477={'id':q['id'],'params':{'unitId':_0x1736e1[_0x5973fe(0x261)],'subUnitId':_0x1736e1[_0x5973fe(0x2e0)],'definition':_0x13c135,..._0x31dce8?{'source':_0x31dce8}:{}}};return _0x156224[_0x5973fe(0x370)](_0x3d27ba)[_0x5973fe(0x32c)](_0x30e795['id'],_0x30e795['params'])?(_0x156224[_0x5973fe(0x370)](_0x48d72c)['pushUndoRedo']({'unitID':_0x1736e1[_0x5973fe(0x261)],'redoMutations':[_0x30e795],'undoMutations':[_0x185477]}),!0x0):!0x1;}},Bt={'id':_0x3bff99(0x223),'type':_0x31f546['COMMAND'],'handler'(_0x39416d,_0x225200){const _0x40cac8=_0x3bff99;if(!_0x225200)return!0x1;let _0x1d7a7e=_0x39416d[_0x40cac8(0x370)](L)[_0x40cac8(0x370)](_0x225200[_0x40cac8(0x261)],_0x225200[_0x40cac8(0x2e0)],_0x225200['pivotChartId']);if(!_0x1d7a7e||_0x53aac2(_0x1d7a7e[_0x40cac8(0x377)]))return!0x1;let _0x14813a=_0x1d7a7e[_0x40cac8(0x377)][_0x40cac8(0x25b)],_0x458fd9={'id':Et['id'],'params':_0x225200},_0x42b496={'id':Et['id'],'params':{..._0x225200,'pivotModel':_0x14813a}};return dn(_0x39416d,_0x225200[_0x40cac8(0x261)],_0x458fd9,_0x42b496);}},Vt={'id':_0x3bff99(0x283),'type':_0x31f546[_0x3bff99(0x344)],'handler'(_0x1caeb3,_0x559c58){const _0x3557d8=_0x3bff99;if(!_0x559c58)return!0x1;let _0x154c06=_0x1caeb3[_0x3557d8(0x370)](L)[_0x3557d8(0x370)](_0x559c58[_0x3557d8(0x261)],_0x559c58[_0x3557d8(0x2e0)],_0x559c58['pivotChartId']);if(!_0x154c06)return!0x1;let _0xd374de=_0x154c06[_0x3557d8(0x377)][_0x3557d8(0x219)],_0x40f809={'id':Ot['id'],'params':_0x559c58},_0x32c030={'id':Ot['id'],'params':{..._0x559c58,'chart':_0xd374de}};return dn(_0x1caeb3,_0x559c58['unitId'],_0x40f809,_0x32c030);}},Ht={'id':_0x3bff99(0x2a1),'type':_0x31f546[_0x3bff99(0x344)],'handler'(_0xeafdce,_0x3c4980){const _0x604100=_0x3bff99;if(!_0x3c4980)return!0x1;let _0xbdfe44=_0xeafdce[_0x604100(0x370)](L)[_0x604100(0x370)](_0x3c4980[_0x604100(0x261)],_0x3c4980['subUnitId'],_0x3c4980[_0x604100(0x395)]);if(!_0xbdfe44)return!0x1;let _0x37e956={'id':kt['id'],'params':_0x3c4980},_0x24a4da={'id':kt['id'],'params':{..._0x3c4980,'controls':_0xbdfe44[_0x604100(0x2dc)]}};return dn(_0xeafdce,_0x3c4980[_0x604100(0x261)],_0x37e956,_0x24a4da);}},Ut={'id':_0x3bff99(0x2b9),'type':_0x31f546['COMMAND'],async 'handler'(_0x4903d7,_0x259fe3){const _0x2574be=_0x3bff99;if(!_0x259fe3)return!0x1;let _0x4e0a0c=Y(_0x4903d7,_0x259fe3);if(_0x4e0a0c)return _0x4903d7[_0x2574be(0x370)](_0x3d27ba)[_0x2574be(0x374)](_0x454c52['id'],{..._0x4e0a0c,'dataFieldId':_0x259fe3['dataFieldId'],'fieldArea':_0x259fe3['fieldArea'],'index':_0x259fe3[_0x2574be(0x38a)]});try{return await _0x4903d7[_0x2574be(0x370)](G)['editAndApply'](_0x259fe3,{'type':_0x2574be(0x24b),'dataFieldId':_0x259fe3[_0x2574be(0x2c7)],'fieldArea':_0x259fe3[_0x2574be(0x32d)],'index':_0x259fe3['index']});}catch{return!0x1;}}},Wt={'id':'sheet.command.move-pivot-chart-field','type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x339658,_0x580a06){const _0x1af5ff=_0x3bff99;if(!_0x580a06)return!0x1;let _0x2e42dc=Y(_0x339658,_0x580a06);if(_0x2e42dc)return _0x580a06[_0x1af5ff(0x3c0)]===_0x1af5ff(0x2b3)?_0x339658[_0x1af5ff(0x370)](_0x3d27ba)[_0x1af5ff(0x374)](_0x4b62f2['id'],{..._0x2e42dc,'position':_0x580a06['fieldArea']===_0x154463[_0x1af5ff(0x278)]?_0x3e4cd7[_0x1af5ff(0x278)]:_0x3e4cd7[_0x1af5ff(0x339)],'index':_0x580a06[_0x1af5ff(0x38a)]}):_0x339658[_0x1af5ff(0x370)](_0x3d27ba)[_0x1af5ff(0x374)](_0x5871ce['id'],{..._0x2e42dc,'fieldId':_0x580a06[_0x1af5ff(0x3c0)],'area':_0x580a06[_0x1af5ff(0x32d)],'index':_0x580a06[_0x1af5ff(0x38a)]});try{return await _0x339658[_0x1af5ff(0x370)](G)['editAndApply'](_0x580a06,{'type':_0x1af5ff(0x2f1),'fieldId':_0x580a06[_0x1af5ff(0x3c0)],'fieldArea':_0x580a06[_0x1af5ff(0x32d)],'index':_0x580a06[_0x1af5ff(0x38a)]});}catch{return!0x1;}}},Gt={'id':_0x3bff99(0x298),'type':_0x31f546['COMMAND'],async 'handler'(_0x31afc7,_0x4c4ec0){const _0x3ab137=_0x3bff99;if(!(_0x4c4ec0!=null&&_0x4c4ec0[_0x3ab137(0x351)][_0x3ab137(0x25d)]))return!0x1;let _0x44f0e4=Y(_0x31afc7,_0x4c4ec0);if(_0x44f0e4)return _0x31afc7[_0x3ab137(0x370)](_0x3d27ba)[_0x3ab137(0x374)](_0x5823c9['id'],{..._0x44f0e4,'fieldIds':_0x4c4ec0['fieldIds']});try{return await _0x31afc7[_0x3ab137(0x370)](G)[_0x3ab137(0x237)](_0x4c4ec0,{'type':_0x3ab137(0x273),'fieldIds':_0x4c4ec0[_0x3ab137(0x351)]});}catch{return!0x1;}}},Kt={'id':_0x3bff99(0x38d),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x17cb88,_0x108249){const _0x179caa=_0x3bff99;var _0x5aa0f4;if(!_0x108249)return!0x1;let _0x337d4f=(_0x5aa0f4=_0x17cb88[_0x179caa(0x370)](L)['get'](_0x108249[_0x179caa(0x261)],_0x108249['subUnitId'],_0x108249[_0x179caa(0x395)]))==null?void 0x0:_0x5aa0f4['snapshot'];if(!_0x337d4f)return!0x1;let _0x1350b0=Y(_0x17cb88,_0x108249);if(_0x1350b0){let _0x47409d=ln(_0x17cb88,_0x1350b0);return _0x47409d!=null&&_0x47409d['rowFields'][_0x179caa(0x2da)](_0x108249['fieldId'])?_0x17cb88[_0x179caa(0x370)](_0x3d27ba)[_0x179caa(0x374)](_0x720895['id'],{..._0x1350b0,'tableFieldId':_0x108249[_0x179caa(0x3c0)],'collapse':_0x108249['collapse'],'item':_0x108249['item']}):!0x1;}if(!_0x53aac2(_0x337d4f)&&_0x337d4f[_0x179caa(0x25b)][_0x179caa(0x1f5)]['includes'](_0x108249[_0x179caa(0x3c0)]))try{return await _0x17cb88[_0x179caa(0x370)](G)[_0x179caa(0x237)](_0x108249,{'type':_0x179caa(0x396),'fieldId':_0x108249[_0x179caa(0x3c0)],'collapse':_0x108249[_0x179caa(0x2d6)],'item':_0x108249[_0x179caa(0x2d9)]});}catch{return!0x1;}return!0x1;}},qt={'id':_0x3bff99(0x2c3),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x2a97a6,_0x349866){const _0x526673=_0x3bff99;if(!_0x349866)return!0x1;let _0x20acd5=Y(_0x2a97a6,_0x349866);if(_0x20acd5)return _0x2a97a6[_0x526673(0x370)](_0x3d27ba)[_0x526673(0x374)](_0x1e3aa0['id'],{..._0x20acd5,'tableFieldId':_0x349866['fieldId'],'items':_0x349866[_0x526673(0x3ad)],'isAll':_0x349866[_0x526673(0x311)]});try{return await _0x2a97a6[_0x526673(0x370)](G)[_0x526673(0x237)](_0x349866,{'type':_0x526673(0x323),'fieldId':_0x349866[_0x526673(0x3c0)],'items':_0x349866[_0x526673(0x3ad)],'isAll':_0x349866[_0x526673(0x311)]});}catch{return!0x1;}}},Jt={'id':_0x3bff99(0x256),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x5b5eaf,_0x9ebbc0){const _0xf6e04f=_0x3bff99;if(!_0x9ebbc0)return!0x1;let _0x45cb88=Y(_0x5b5eaf,_0x9ebbc0);if(_0x45cb88)return _0x5b5eaf[_0xf6e04f(0x370)](_0x3d27ba)['executeCommand'](_0x5644f0['id'],{..._0x45cb88,'tableFieldId':_0x9ebbc0['fieldId'],'info':_0x9ebbc0['info']});let _0x2c7fda=_0x9ebbc0['info']===void 0x0||_0x9ebbc0[_0xf6e04f(0x282)][_0xf6e04f(0x1fe)]===_0x27f4fb[_0xf6e04f(0x232)]?_0x9ebbc0[_0xf6e04f(0x282)]:{..._0x9ebbc0[_0xf6e04f(0x282)],'sortLocale':_0x9ebbc0[_0xf6e04f(0x282)][_0xf6e04f(0x2ce)]??_0x33f7f9[_0x5b5eaf[_0xf6e04f(0x370)](_0x2531fd)['getCurrentLocale']()][_0xf6e04f(0x22a)]};try{return await _0x5b5eaf[_0xf6e04f(0x370)](G)[_0xf6e04f(0x237)](_0x9ebbc0,{'type':_0xf6e04f(0x26e),'fieldId':_0x9ebbc0[_0xf6e04f(0x3c0)],'info':_0x2c7fda});}catch{return!0x1;}}},Yt={'id':_0x3bff99(0x263),'type':_0x31f546[_0x3bff99(0x344)],'handler'(_0x427365,_0x17232a){const _0x4b3e7f=_0x3bff99;if(!_0x17232a)return!0x1;let _0x2f582b=_0x427365['get'](L)[_0x4b3e7f(0x370)](_0x17232a[_0x4b3e7f(0x261)],_0x17232a['subUnitId'],_0x17232a[_0x4b3e7f(0x395)]);if(!_0x2f582b)return!0x1;let _0x503389=_0x2f582b[_0x4b3e7f(0x377)],_0x4f6461=[{'id':At['id'],'params':_0x17232a}],_0x5bd069=[{'id':At['id'],'params':{'unitId':_0x17232a[_0x4b3e7f(0x261)],'subUnitId':_0x17232a['subUnitId'],'pivotChartId':_0x17232a[_0x4b3e7f(0x395)],'chart':_0x503389[_0x4b3e7f(0x219)],'controls':_0x2f582b['controls'],'name':_0x503389[_0x4b3e7f(0x340)]}}];if(_0x17232a[_0x4b3e7f(0x280)]){let _0x979850=_0x427365['get'](_0x3d27ba),_0xf6e0e0=_0x427365[_0x4b3e7f(0x370)](_0x37cef7)[_0x4b3e7f(0x2cb)]([_0x17232a[_0x4b3e7f(0x280)]]),_0x273fde=_0x427365[_0x4b3e7f(0x370)](_0x3d5658)[_0x4b3e7f(0x317)]({'id':_0x2b6a54['id'],'params':{'unitId':_0x17232a['unitId'],'drawings':[_0x17232a['drawing']]}});_0x4f6461[_0x4b3e7f(0x27e)](..._0x273fde[_0x4b3e7f(0x3bb)]??[],fn(_0xf6e0e0,_0xf6e0e0[_0x4b3e7f(0x29f)]),...pn(_0x979850,_0x17232a[_0x4b3e7f(0x261)]),..._0x273fde[_0x4b3e7f(0x202)]),_0x5bd069[_0x4b3e7f(0x36b)](..._0x273fde[_0x4b3e7f(0x277)]??[],fn(_0xf6e0e0,_0xf6e0e0[_0x4b3e7f(0x29d)]),...pn(_0x979850,_0x17232a['unitId']),..._0x273fde[_0x4b3e7f(0x30f)]);}return _0x1d501e(_0x4f6461,_0x427365[_0x4b3e7f(0x370)](_0x3d27ba))[_0x4b3e7f(0x2cf)]?(_0x427365[_0x4b3e7f(0x370)](_0x48d72c)[_0x4b3e7f(0x2fe)]({'unitID':_0x17232a['unitId'],'redoMutations':_0x4f6461,'undoMutations':_0x5bd069}),!0x0):!0x1;}},Xt={'id':_0x3bff99(0x3b0),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x33eaf7,_0x9ebdc6){const _0x375817=_0x3bff99;if(!_0x9ebdc6)return!0x1;let _0x30e2b5=Y(_0x33eaf7,_0x9ebdc6);if(_0x30e2b5)return _0x33eaf7[_0x375817(0x370)](_0x3d27ba)[_0x375817(0x374)](_0x370bc5['id'],{..._0x30e2b5,'pivotTableConfig':_0x9ebdc6[_0x375817(0x30a)]});try{return await _0x33eaf7[_0x375817(0x370)](G)[_0x375817(0x237)](_0x9ebdc6,{'type':_0x375817(0x2cc),'config':_0x9ebdc6[_0x375817(0x30a)]});}catch{return!0x1;}}},Zt={'id':_0x3bff99(0x217),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x3fcdc7,_0x44296d){const _0x17e707=_0x3bff99;if(!_0x44296d)return!0x1;let _0x383581=Y(_0x3fcdc7,_0x44296d);if(_0x383581)return _0x3fcdc7['get'](_0x3d27ba)['executeCommand'](_0x4b62f2['id'],{..._0x383581,'position':_0x44296d[_0x17e707(0x31e)],'index':_0x44296d[_0x17e707(0x38a)]});try{return await _0x3fcdc7[_0x17e707(0x370)](G)[_0x17e707(0x237)](_0x44296d,{'type':_0x17e707(0x39a),'position':_0x44296d[_0x17e707(0x31e)],'index':_0x44296d[_0x17e707(0x38a)]});}catch{return!0x1;}}},Qt={'id':_0x3bff99(0x1ff),'type':_0x31f546['COMMAND'],async 'handler'(_0x31ea39,_0x223ebd){const _0x596507=_0x3bff99;if(!_0x223ebd)return!0x1;let _0x236fca=Y(_0x31ea39,_0x223ebd);if(_0x236fca){let _0x362af5=sn(_0x31ea39,_0x236fca,_0x223ebd);return _0x362af5?_0x31ea39['get'](_0x3d27ba)[_0x596507(0x374)](_0x478245['id'],_0x362af5):!0x1;}try{return await _0x31ea39[_0x596507(0x370)](G)['editAndApply'](_0x223ebd,{'type':_0x596507(0x2b4),'fieldId':_0x223ebd[_0x596507(0x3c0)],'setting':_0x223ebd[_0x596507(0x330)]});}catch{return!0x1;}}},$t={'id':'sheet.command.set-pivot-chart-value-filter','type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x13d5f0,_0x7ec545){const _0x1fa775=_0x3bff99;if(!_0x7ec545)return!0x1;let _0x4d4aab=Y(_0x13d5f0,_0x7ec545);if(_0x4d4aab)return _0x13d5f0[_0x1fa775(0x370)](_0x3d27ba)[_0x1fa775(0x374)](_0x49f2ed['id'],{..._0x4d4aab,'fieldId':_0x7ec545[_0x1fa775(0x3c0)],'valueFilterInfo':_0x7ec545[_0x1fa775(0x250)]});try{return await _0x13d5f0['get'](G)['editAndApply'](_0x7ec545,{'type':'setValueFilter','fieldId':_0x7ec545['fieldId'],'filterInfo':_0x7ec545[_0x1fa775(0x250)]});}catch{return!0x1;}}},en={'id':_0x3bff99(0x23a),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x54efcb,_0x5acc3c){const _0x1db0ac=_0x3bff99;if(!_0x5acc3c)return!0x1;let _0x40048a=Y(_0x54efcb,_0x5acc3c);if(_0x40048a)return _0x54efcb['get'](_0x3d27ba)['executeCommand'](_0x12eade['id'],{..._0x40048a,'tableFieldId':_0x5acc3c[_0x1db0ac(0x3c0)],'dateType':_0x5acc3c[_0x1db0ac(0x21e)]});try{return await _0x54efcb['get'](G)[_0x1db0ac(0x237)](_0x5acc3c,{'type':_0x1db0ac(0x399),'fieldId':_0x5acc3c[_0x1db0ac(0x3c0)],'dateType':_0x5acc3c[_0x1db0ac(0x21e)]});}catch{return!0x1;}}},tn={'id':_0x3bff99(0x37e),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x1e30c8,_0x338994){const _0x1e6cb4=_0x3bff99;if(!_0x338994)return!0x1;let _0x1e51f2=_0x1e30c8['get'](L)['get'](_0x338994[_0x1e6cb4(0x261)],_0x338994[_0x1e6cb4(0x2e0)],_0x338994[_0x1e6cb4(0x395)]),_0x57a058=_0x1e51f2==null?void 0x0:_0x1e51f2[_0x1e6cb4(0x377)];if(!_0x57a058||_0x53aac2(_0x57a058))return!0x1;let _0x22740c=_0x1e30c8[_0x1e6cb4(0x370)](G)[_0x1e6cb4(0x347)](_0x338994);if(!_0x22740c)try{_0x22740c=await _0x1e30c8[_0x1e6cb4(0x370)](G)[_0x1e6cb4(0x213)](_0x338994);}catch{return!0x1;}let _0x4c843a={'unitId':_0x338994[_0x1e6cb4(0x261)],'subUnitId':_0x338994[_0x1e6cb4(0x2e0)],'pivotChartId':_0x338994['pivotChartId']},_0xccb5fc=[{'id':J['id'],'params':_0x4c843a},{'id':q['id'],'params':{'unitId':_0x338994['unitId'],'subUnitId':_0x338994['subUnitId'],'definition':{..._0x57a058,'pivotModel':_0x338994[_0x1e6cb4(0x25b)]},'source':_0x338994[_0x1e6cb4(0x346)]}}],_0x3b97ca=[{'id':J['id'],'params':_0x4c843a},{'id':q['id'],'params':{'unitId':_0x338994[_0x1e6cb4(0x261)],'subUnitId':_0x338994[_0x1e6cb4(0x2e0)],'definition':_0x57a058,'source':_0x22740c}}];return _0x1d501e(_0xccb5fc,_0x1e30c8[_0x1e6cb4(0x370)](_0x3d27ba))[_0x1e6cb4(0x2cf)]?(_0x1e30c8[_0x1e6cb4(0x370)](_0x48d72c)[_0x1e6cb4(0x2fe)]({'unitID':_0x338994[_0x1e6cb4(0x261)],'redoMutations':_0xccb5fc,'undoMutations':_0x3b97ca}),!0x0):!0x1;}},nn={'id':_0x3bff99(0x2b0),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x1e296d,_0x3cf2ce){const _0x2d14b5=_0x3bff99;if(!_0x3cf2ce)return!0x1;let _0x53ca00=Y(_0x1e296d,_0x3cf2ce);return _0x53ca00?_0x1e296d[_0x2d14b5(0x370)](_0x3d27ba)['executeCommand'](_0x169a8e['id'],{'unitId':_0x53ca00[_0x2d14b5(0x261)],'subUnitId':_0x53ca00[_0x2d14b5(0x2e0)],'token':_0x53ca00[_0x2d14b5(0x1f7)],'dataRangeInfo':_0x3cf2ce[_0x2d14b5(0x3a3)]}):rn(_0x1e296d,_0x3cf2ce);}};async function rn(_0x71e84e,_0x2153da){const _0x1c8bab=_0x3bff99;let _0x5f4c46=_0x71e84e['get'](L)[_0x1c8bab(0x370)](_0x2153da[_0x1c8bab(0x261)],_0x2153da['subUnitId'],_0x2153da['pivotChartId']),_0x23f653=_0x5f4c46==null?void 0x0:_0x5f4c46[_0x1c8bab(0x377)];if(!_0x23f653||_0x53aac2(_0x23f653))return!0x1;let _0x3aab81;try{_0x3aab81=await _0x71e84e[_0x1c8bab(0x370)](G)[_0x1c8bab(0x213)](_0x2153da);}catch{return!0x1;}let _0x18e882=(await _0x71e84e['get'](_0x2e878a)['getPivotDisplayConfig']({'unitId':_0x2153da[_0x1c8bab(0x3a3)][_0x1c8bab(0x261)],'subUnitId':_0x2153da[_0x1c8bab(0x3a3)][_0x1c8bab(0x2e0)],'pivotTableId':_0x2153da[_0x1c8bab(0x395)],'params':{'type':_0x1d0c45[_0x1c8bab(0x371)],'addPivotTable':{'sourceRangeInfo':_0x2153da['dataRangeInfo'],'pivotTableId':_0x2153da[_0x1c8bab(0x395)],'fieldsConfig':_0x23f653[_0x1c8bab(0x25b)]}}}))[_0x1c8bab(0x2cf)][_0x1c8bab(0x30e)];if(!_0x18e882)return!0x1;let _0x1b025c={'unitId':_0x2153da['unitId'],'subUnitId':_0x2153da[_0x1c8bab(0x2e0)],'pivotChartId':_0x2153da[_0x1c8bab(0x395)]},_0x3b46bf={'sourceRangeInfo':_0x2153da['dataRangeInfo'],'collectionConfig':_0x18e882[_0x1c8bab(0x3ab)]},_0x54b9a8=[{'id':J['id'],'params':_0x1b025c},{'id':q['id'],'params':{'unitId':_0x2153da[_0x1c8bab(0x261)],'subUnitId':_0x2153da[_0x1c8bab(0x2e0)],'definition':{..._0x23f653,'pivotModel':_0x18e882[_0x1c8bab(0x2bb)]},'source':_0x3b46bf}}],_0x163aba=[{'id':J['id'],'params':_0x1b025c},{'id':q['id'],'params':{'unitId':_0x2153da[_0x1c8bab(0x261)],'subUnitId':_0x2153da[_0x1c8bab(0x2e0)],'definition':_0x23f653,'source':_0x3aab81}}];return _0x1d501e(_0x54b9a8,_0x71e84e['get'](_0x3d27ba))[_0x1c8bab(0x2cf)]?(_0x71e84e[_0x1c8bab(0x370)](_0x48d72c)[_0x1c8bab(0x2fe)]({'unitID':_0x2153da[_0x1c8bab(0x261)],'redoMutations':_0x54b9a8,'undoMutations':_0x163aba}),!0x0):!0x1;}const an={'id':_0x3bff99(0x2bf),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x3e7f33,_0x1ac7b1){const _0x7fa2ec=_0x3bff99;var _0x406c5a;if(!_0x1ac7b1||!((_0x406c5a=cn(_0x3e7f33,_0x1ac7b1))!=null&&_0x406c5a[_0x7fa2ec(0x1f5)][_0x7fa2ec(0x2da)](_0x1ac7b1[_0x7fa2ec(0x3c0)])))return!0x1;let _0x5a80bd=Y(_0x3e7f33,_0x1ac7b1);if(_0x5a80bd)return _0x3e7f33['get'](_0x3d27ba)[_0x7fa2ec(0x374)](_0x720895['id'],{..._0x5a80bd,'rowLevelFieldId':_0x1ac7b1[_0x7fa2ec(0x3c0)]});try{return await _0x3e7f33['get'](G)[_0x7fa2ec(0x237)](_0x1ac7b1,{'type':_0x7fa2ec(0x224),'fieldId':_0x1ac7b1[_0x7fa2ec(0x3c0)]});}catch{return!0x1;}}},on={'id':_0x3bff99(0x307),'type':_0x31f546['COMMAND'],'handler'(_0x4212dd,_0x456fd4){const _0x4eed35=_0x3bff99;if(!_0x456fd4)return!0x1;let _0x580e75=cn(_0x4212dd,_0x456fd4);if(!_0x580e75||_0x580e75[_0x4eed35(0x1f5)]['length']<0x2)return!0x1;let _0x5244ca=_0x580e75[_0x4eed35(0x1f5)][_0x4eed35(0x23c)](0x0,-0x1),_0x3fbd49=_0x456fd4[_0x4eed35(0x39e)]==='expand'?_0x5244ca[_0x4eed35(0x271)](_0x2d50e7=>un(_0x580e75[_0x4eed35(0x376)][_0x2d50e7])):_0x5244ca[_0x4eed35(0x23c)]()['reverse']()['find'](_0x5d78bd=>_0x580e75[_0x4eed35(0x376)][_0x5d78bd]!==!0x0);return _0x3fbd49?_0x4212dd[_0x4eed35(0x370)](_0x3d27ba)['executeCommand'](Kt['id'],{'unitId':_0x456fd4[_0x4eed35(0x261)],'subUnitId':_0x456fd4[_0x4eed35(0x2e0)],'pivotChartId':_0x456fd4[_0x4eed35(0x395)],'fieldId':_0x3fbd49,'collapse':_0x456fd4[_0x4eed35(0x39e)]===_0x4eed35(0x2d6)}):!0x1;}};function _0x3cc4(_0x199fd7,_0x3e2108){_0x199fd7=_0x199fd7-0x1f0;const _0x30165c=_0x3016();let _0x3cc472=_0x30165c[_0x199fd7];return _0x3cc472;}function Y(_0x6c35ee,_0x3bd427){const _0x510bf9=_0x3bff99;var _0x2dc3fb;let _0x388f42=(_0x2dc3fb=_0x6c35ee[_0x510bf9(0x370)](L)['get'](_0x3bd427['unitId'],_0x3bd427[_0x510bf9(0x2e0)],_0x3bd427[_0x510bf9(0x395)]))==null?void 0x0:_0x2dc3fb[_0x510bf9(0x377)];if(!_0x388f42||!_0x53aac2(_0x388f42))return;let _0x24e994=_0x388f42['pivotTableRef'],_0x499093=_0x6c35ee[_0x510bf9(0x370)](_0x591ca1),_0x465b77=_0x499093[_0x510bf9(0x27f)](_0x222738)?_0x499093['get'](_0x222738)[_0x510bf9(0x2f3)](_0x24e994['unitId'],_0x24e994[_0x510bf9(0x1f7)]):void 0x0,_0x27af75=_0x499093['has'](_0x54080a)?_0x499093[_0x510bf9(0x370)](_0x54080a)[_0x510bf9(0x2e7)](_0x24e994['pivotTableId']):void 0x0,_0x32911e=_0x465b77??((_0x27af75==null?void 0x0:_0x27af75[_0x510bf9(0x261)])===_0x24e994[_0x510bf9(0x261)]?_0x27af75:void 0x0);return _0x32911e?{'unitId':_0x32911e['unitId'],'subUnitId':_0x32911e[_0x510bf9(0x2e0)],'pivotTableId':_0x24e994[_0x510bf9(0x1f7)]}:_0x24e994;}function sn(_0x33aed0,_0x1d1297,_0x32040e){const _0x573bf9=_0x3bff99;let _0x48b5f3=ln(_0x33aed0,_0x1d1297),_0x1c5550=(_0x48b5f3==null?void 0x0:_0x48b5f3[_0x573bf9(0x2ad)][_0x32040e[_0x573bf9(0x3c0)]])??(_0x48b5f3==null?void 0x0:_0x48b5f3[_0x573bf9(0x220)][_0x32040e['fieldId']]),_0x7b41bd=_0x33aed0[_0x573bf9(0x370)](_0x54080a)[_0x573bf9(0x211)](_0x1d1297['unitId'],_0x1d1297[_0x573bf9(0x1f7)])??_0x33aed0[_0x573bf9(0x370)](_0x222738)[_0x573bf9(0x211)](_0x1d1297[_0x573bf9(0x261)],_0x1d1297[_0x573bf9(0x1f7)]),_0x6e58b7=_0x1c5550&&(_0x7b41bd==null?void 0x0:_0x7b41bd[_0x573bf9(0x29a)](_0x1c5550[_0x573bf9(0x2c7)]));if(_0x1c5550&&_0x6e58b7&&(_0x32040e[_0x573bf9(0x330)][_0x573bf9(0x389)]===void 0x0||(_0x48b5f3==null?void 0x0:_0x48b5f3[_0x573bf9(0x220)][_0x32040e[_0x573bf9(0x3c0)]])!==void 0x0))return{..._0x1d1297,'tableFieldId':_0x32040e[_0x573bf9(0x3c0)],'displayName':_0x32040e[_0x573bf9(0x330)][_0x573bf9(0x2f8)],'format':_0x32040e['setting'][_0x573bf9(0x2dd)],'subtotalType':_0x32040e[_0x573bf9(0x330)][_0x573bf9(0x26f)],'showDataAs':_0x32040e[_0x573bf9(0x330)][_0x573bf9(0x389)],'tableFieldInfo':{'tableFieldId':_0x32040e[_0x573bf9(0x3c0)],'displayName':_0x1c5550['displayName'],'dataFieldId':_0x1c5550[_0x573bf9(0x2c7)],'format':_0x1c5550[_0x573bf9(0x2dd)],..._0x573bf9(0x287)in _0x1c5550?{'subTotalType':_0x1c5550[_0x573bf9(0x287)],'showDataAs':{..._0x1c5550['showDataAs']}}:{}},'dataFieldInfo':{'id':_0x6e58b7['id'],'dataFieldId':_0x6e58b7['id'],'name':(_0x7b41bd==null?void 0x0:_0x7b41bd[_0x573bf9(0x3aa)][_0x6e58b7['id']])??_0x6e58b7[_0x573bf9(0x21f)](),'type':_0x6e58b7['getFieldDataType'](),'checked':!0x0,'pivotTableId':_0x1d1297['pivotTableId']}};}function cn(_0x140274,_0xa9fdf){const _0x9bc3a5=_0x3bff99;var _0x472b2d;let _0x131735=(_0x472b2d=_0x140274['get'](L)[_0x9bc3a5(0x370)](_0xa9fdf['unitId'],_0xa9fdf[_0x9bc3a5(0x2e0)],_0xa9fdf['pivotChartId']))==null?void 0x0:_0x472b2d[_0x9bc3a5(0x377)];if(!_0x131735)return;if(!_0x53aac2(_0x131735))return _0x131735[_0x9bc3a5(0x25b)];let _0x522111=Y(_0x140274,_0xa9fdf);return _0x522111?ln(_0x140274,_0x522111):void 0x0;}function ln(_0x678685,_0x1cb57c){const _0x121b9c=_0x3bff99;var _0x40e3ef;let _0xaa2d08=(_0x40e3ef=_0x678685[_0x121b9c(0x370)](_0x222738)[_0x121b9c(0x22b)](_0x1cb57c[_0x121b9c(0x261)],_0x1cb57c['subUnitId'],_0x1cb57c['pivotTableId']))==null?void 0x0:_0x40e3ef[_0x121b9c(0x2bb)];if(_0xaa2d08)return _0xaa2d08;let _0x27a45e=_0x678685[_0x121b9c(0x370)](_0x591ca1);return _0x27a45e[_0x121b9c(0x27f)](_0x54080a)?_0x27a45e[_0x121b9c(0x370)](_0x54080a)[_0x121b9c(0x33e)](_0x1cb57c[_0x121b9c(0x261)],_0x1cb57c[_0x121b9c(0x2e0)],_0x1cb57c[_0x121b9c(0x1f7)]):void 0x0;}function un(_0x3c84d9){const _0x17ab01=_0x3bff99;return _0x3c84d9===!0x0||typeof _0x3c84d9==_0x17ab01(0x2f4)&&!!_0x3c84d9&&Object[_0x17ab01(0x23e)](_0x3c84d9)[_0x17ab01(0x39c)](Boolean);}function dn(_0x1e5656,_0x22b92a,_0x5ccf6e,_0x3e9586){const _0x5db8e4=_0x3bff99;return _0x1e5656['get'](_0x3d27ba)[_0x5db8e4(0x32c)](_0x5ccf6e['id'],_0x5ccf6e[_0x5db8e4(0x267)])?(_0x1e5656[_0x5db8e4(0x370)](_0x48d72c)['pushUndoRedo']({'unitID':_0x22b92a,'redoMutations':[_0x5ccf6e],'undoMutations':[_0x3e9586]}),!0x0):!0x1;}function fn(_0x44a8e3,_0x22b830){const _0x564a20=_0x3bff99;return{'id':_0x4d66d9['id'],'params':{'unitId':_0x44a8e3[_0x564a20(0x261)],'subUnitId':_0x44a8e3['subUnitId'],'op':_0x22b830,'objects':_0x44a8e3['objects'],'type':_0x1c0c7d[_0x564a20(0x2df)]}};}function pn(_0x3c42f5,_0x3553f0){const _0x50f142=_0x3bff99;return _0x3c42f5[_0x50f142(0x2ec)](_0x1b3283['id'])?[{'id':_0x1b3283['id'],'params':[_0x3553f0]}]:[];}var mn=class{constructor(_0x20972e){const _0x21fd84=_0x3bff99;this[_0x21fd84(0x28f)]=_0x20972e;}['commit'](_0x28d1cf){const _0x113a7b=_0x3bff99;var _0x369af0,_0x31f2e2;let {injector:_0x257977,pivotChartId:_0x7854dc,subUnitId:_0x333159,unitId:_0x14d20f}=this[_0x113a7b(0x28f)],_0x5cbcc9=_0x257977[_0x113a7b(0x370)](_0x256b8d)[_0x113a7b(0x37f)](_0x7854dc),_0x4578ef=(_0x369af0=_0x257977[_0x113a7b(0x370)](L)[_0x113a7b(0x370)](_0x14d20f,_0x333159,_0x7854dc))==null?void 0x0:_0x369af0[_0x113a7b(0x377)];if(!_0x5cbcc9||!_0x4578ef)throw Error(_0x113a7b(0x2a4)+_0x7854dc);let _0x1db9e6=_0x5a057f(_0x28d1cf,{'series':(_0x31f2e2=_0x5cbcc9['config'])==null?void 0x0:_0x31f2e2[_0x113a7b(0x2e3)],'currentChartType':_0x5cbcc9[_0x113a7b(0x32a)],'currentStyle':_0x5cbcc9[_0x113a7b(0x2f9)],'currentContext':_0x5cbcc9[_0x113a7b(0x244)],'currentDataAggregation':_0x5cbcc9['dataAggregation']}),_0x37230c={..._0x4578ef[_0x113a7b(0x219)],..._0x1db9e6[_0x113a7b(0x32a)]===void 0x0?{}:{'chartType':_0x1db9e6[_0x113a7b(0x32a)]},..._0x1db9e6[_0x113a7b(0x244)]===void 0x0?{}:{'context':_0x1db9e6[_0x113a7b(0x244)]},..._0x1db9e6[_0x113a7b(0x2f9)]===void 0x0?{}:{'style':_0x1db9e6[_0x113a7b(0x2f9)]},..._0x1db9e6[_0x113a7b(0x3ac)]===void 0x0?{}:{'dataAggregation':_0x1db9e6[_0x113a7b(0x3ac)]},'id':_0x7854dc};if(!_0x257977[_0x113a7b(0x370)](_0x3d27ba)[_0x113a7b(0x32c)](Vt['id'],{'unitId':_0x14d20f,'subUnitId':_0x333159,'pivotChartId':_0x7854dc,'chart':_0x37230c}))throw Error('Failed\x20to\x20update\x20PivotChart\x20configuration.');}};const hn={'id':_0x3bff99(0x303),'type':_0x31f546[_0x3bff99(0x344)],async 'handler'(_0x56bfe8,_0x34ca55){const _0x32f600=_0x3bff99;if(!_0x34ca55)return!0x1;let _0x1078a6=_0x56bfe8[_0x32f600(0x370)](_0x2f2411),_0x4f960a=_0x5e74cf(_0x1078a6,_0x34ca55);if(!_0x4f960a)return!0x1;let {unitId:_0x3bbd56,subUnitId:_0x2a9bbc,workbook:_0x41d944}=_0x4f960a,_0x43a5d8=_0x56bfe8[_0x32f600(0x370)](_0xe9298a)[_0x32f600(0x2c6)](_0x3bbd56,_0x2a9bbc);if(!_0x43a5d8)return!0x1;let _0x1e3e32=await Rt(_0x56bfe8,{..._0x34ca55,'unitId':_0x3bbd56,'subUnitId':_0x2a9bbc});if(!_0x1e3e32)return!0x1;let _0x4259f4=_0x1e3e32[_0x32f600(0x209)]['id'],_0x10446d=_0x34ca55[_0x32f600(0x2a7)]??_0xff9e61,_0xf741=_0x34ca55[_0x32f600(0x321)]??_0x275f74,_0x38a2b1=_0x34ca55['position']??_0x171a84(_0x56bfe8,_0x1078a6,_0x41d944,_0x3bbd56,_0x2a9bbc,_0x10446d,_0xf741),_0x530132={'from':_0x43a5d8[_0x32f600(0x3c1)](_0x38a2b1['x'],_0x38a2b1['y']),'to':_0x43a5d8[_0x32f600(0x3c1)](_0x38a2b1['x']+_0x10446d,_0x38a2b1['y']+_0xf741)},_0x9cece4=_0x56bfe8[_0x32f600(0x370)](_0x5e47d5)[_0x32f600(0x264)]()[_0x32f600(0x310)],{redoMutations:_0x3a098d,undoMutations:_0x33b206}=gn(_0x56bfe8,_n(_0x34ca55,_0x3bbd56,_0x2a9bbc,_0x4259f4,_0x38a2b1,_0x10446d,_0xf741,_0x530132,_0x9cece4[_0x32f600(0x329)]),_0x1e3e32,_0x3bbd56,_0x2a9bbc,_0x4259f4);return _0x1d501e(_0x3a098d,_0x56bfe8[_0x32f600(0x370)](_0x3d27ba))['result']?(_0x56bfe8['get'](_0x48d72c)[_0x32f600(0x2fe)]({'unitID':_0x3bbd56,'redoMutations':_0x3a098d,'undoMutations':_0x33b206}),!0x0):!0x1;}};function gn(_0xda616d,_0x463281,_0x513d7b,_0x44a92a,_0x185218,_0x2bbb61){const _0xda956a=_0x3bff99;let {undo:_0x4d5e59,redo:_0x446970,objects:_0x3fe7f7}=_0xda616d[_0xda956a(0x370)](_0x37cef7)[_0xda956a(0x338)]([_0x463281]),_0xea43ad=_0xda616d[_0xda956a(0x370)](_0x3d5658)[_0xda956a(0x317)]({'id':_0x323cf3['id'],'params':{'unitId':_0x44a92a,'drawings':[_0x463281]}});return{'redoMutations':[..._0xea43ad[_0xda956a(0x3bb)]??[],{'id':_0x4d66d9['id'],'params':{'unitId':_0x44a92a,'subUnitId':_0x185218,'op':_0x446970,'objects':_0x3fe7f7,'type':_0x1c0c7d[_0xda956a(0x318)]}},{'id':_0x1b3283['id'],'params':[_0x44a92a]},..._0xea43ad[_0xda956a(0x202)],{'id':q['id'],'params':_0x513d7b}],'undoMutations':[{'id':J['id'],'params':{'unitId':_0x44a92a,'subUnitId':_0x185218,'pivotChartId':_0x2bbb61}},..._0xea43ad[_0xda956a(0x277)]??[],{'id':_0x4d66d9['id'],'params':{'unitId':_0x44a92a,'subUnitId':_0x185218,'op':_0x4d5e59,'objects':_0x3fe7f7,'type':_0x1c0c7d[_0xda956a(0x1fa)]}},{'id':_0x1b3283['id'],'params':[_0x44a92a]},..._0xea43ad[_0xda956a(0x30f)]]};}function _n(_0x40e9c2,_0x41d07d,_0x5a0282,_0x45e45b,_0x1cef1b,_0x51a210,_0x3dc9e1,_0x445696,_0x59e948){const _0x45d5a7=_0x3bff99;var _0x480397;let _0xa39449=(_0x480397=_0x40e9c2[_0x45d5a7(0x219)])==null||(_0x480397=_0x480397[_0x45d5a7(0x2f9)])==null?void 0x0:_0x480397[_0x45d5a7(0x386)],_0x3e478c=_0xe7689c({'backgroundColor':_0xa39449===void 0x0?_0x40e9c2[_0x45d5a7(0x386)]??null:_0xa39449});return{'unitId':_0x41d07d,'subUnitId':_0x5a0282,'drawingId':_0x45e45b,'drawingType':_0x357641[_0x45d5a7(0x383)],'componentKey':_0x45d5a7(0x37d),'sheetTransform':_0x445696,'transform':{'left':_0x1cef1b['x'],'top':_0x1cef1b['y'],'width':_0x51a210,'height':_0x3dc9e1},'axisAlignSheetTransform':_0x445696,'data':{'border':_0x40e9c2[_0x45d5a7(0x329)]??_0x59e948,'background':_0x3e478c},'allowTransform':!0x0};}const vn=_0x3bff99(0x2a6),yn={};var bn=_0x3bff99(0x284),xn=_0x3bff99(0x234);let X=class extends _0x16bb26{constructor(_0x2505ac,_0x29e988,_0x4f6a28,_0xa380ea,_0x3af5da,_0x3f1977){const _0x55a662=_0x3bff99;super(),this['_pivotChartModel']=_0x2505ac,this[_0x55a662(0x353)]=_0x29e988,this[_0x55a662(0x1f9)]=_0x4f6a28,this[_0x55a662(0x21c)]=_0xa380ea,this['_logService']=_0x3af5da,this[_0x55a662(0x2db)]=_0x3f1977,P(this,'_runtimes',new Map()),P(this,_0x55a662(0x3b2),new Map()),this[_0x55a662(0x35e)]();}[_0x3bff99(0x359)](){const _0x2585ba=_0x3bff99;for(let _0x2e4bd8 of Array['from'](this[_0x2585ba(0x37b)]['keys']()))this[_0x2585ba(0x296)](_0x2e4bd8);this[_0x2585ba(0x3b2)][_0x2585ba(0x3b8)](),super['dispose']();}[_0x3bff99(0x35e)](){const _0x5b250e=_0x3bff99;this[_0x5b250e(0x257)](this[_0x5b250e(0x33a)]['changed$'][_0x5b250e(0x265)](_0xcb22cb=>{const _0x567d96=_0x5b250e;_0xcb22cb[_0x567d96(0x1fe)]===_0x567d96(0x304)&&_0xcb22cb[_0x567d96(0x2aa)]?this[_0x567d96(0x21d)](_0xcb22cb[_0x567d96(0x261)],_0xcb22cb['subUnitId'],this[_0x567d96(0x33a)]['getById'](_0xcb22cb[_0x567d96(0x395)])):_0xcb22cb['type']===_0x567d96(0x2fa)?this['_disposeRuntime'](_0xcb22cb[_0x567d96(0x395)]):(_0xcb22cb[_0x567d96(0x1fe)]==='cache'||_0xcb22cb[_0x567d96(0x1fe)]===_0x567d96(0x219)&&_0xcb22cb[_0x567d96(0x1f2)]&&_0xcb22cb['current']&&_0x51e4fa(_0xcb22cb[_0x567d96(0x1f2)]['chart'][_0x567d96(0x32a)])!==_0x51e4fa(_0xcb22cb[_0x567d96(0x2aa)]['chart']['chartType']))&&(this[_0x567d96(0x296)](_0xcb22cb[_0x567d96(0x395)]),this[_0x567d96(0x21d)](_0xcb22cb[_0x567d96(0x261)],_0xcb22cb[_0x567d96(0x2e0)],this[_0x567d96(0x33a)]['getById'](_0xcb22cb[_0x567d96(0x395)])));})),this[_0x5b250e(0x257)](this[_0x5b250e(0x353)]['collectionChange$'][_0x5b250e(0x265)](_0x4b3177=>{const _0x1c4a9b=_0x5b250e;if(_0x4b3177['type']===_0x1c4a9b(0x304)&&!this[_0x1c4a9b(0x37b)][_0x1c4a9b(0x27f)](_0x4b3177[_0x1c4a9b(0x239)])){let _0x342800=this[_0x1c4a9b(0x33a)][_0x1c4a9b(0x20f)](_0x4b3177[_0x1c4a9b(0x239)]);_0x342800&&this['_createRuntime'](_0x342800[_0x1c4a9b(0x261)],_0x342800[_0x1c4a9b(0x2e0)],this[_0x1c4a9b(0x33a)]['getById'](_0x4b3177[_0x1c4a9b(0x239)]));}})),this[_0x5b250e(0x257)](this[_0x5b250e(0x353)][_0x5b250e(0x322)][_0x5b250e(0x265)](_0x9317ff=>{const _0x5bbd9a=_0x5b250e;Object[_0x5bbd9a(0x36f)](_0x9317ff)[_0x5bbd9a(0x25e)](_0x5f39a6=>{const _0x279755=_0x5bbd9a;let _0x51b60e=this[_0x279755(0x33a)]['getScope'](_0x5f39a6);if(!_0x51b60e)return;let _0x791ebe=this[_0x279755(0x2b5)](_0x9317ff[_0x5f39a6]),_0x3d1a3f=this[_0x279755(0x37b)][_0x279755(0x370)](_0x5f39a6);if(_0x3d1a3f){_0x3d1a3f[_0x279755(0x34a)]===_0x279755(0x39b)&&_0x791ebe&&_0x3d1a3f[_0x279755(0x2af)][_0x279755(0x372)]();return;}this['_createRuntime'](_0x51b60e[_0x279755(0x261)],_0x51b60e['subUnitId'],this[_0x279755(0x33a)][_0x279755(0x2a8)](_0x5f39a6));});})),this[_0x5b250e(0x257)](this['_commandService'][_0x5b250e(0x249)](_0x1218fc=>{const _0x545d96=_0x5b250e;_0x1218fc['id']===U['id']?this['_sendSource'](_0x1218fc[_0x545d96(0x267)]):_0x1218fc['id']===_0x5e514a['id']&&this['_handlePivotTableView'](_0x1218fc['params']);}));for(let {unitId:_0x2ee66c,subUnitId:_0x140ced,model:_0x59aefc}of this[_0x5b250e(0x33a)][_0x5b250e(0x306)]())this[_0x5b250e(0x21d)](_0x2ee66c,_0x140ced,_0x59aefc);}[_0x3bff99(0x2ee)](_0x48de52){const _0x35171a=_0x3bff99;let _0x54cb8a=this[_0x35171a(0x33a)][_0x35171a(0x20f)](_0x48de52[_0x35171a(0x395)]),_0x1883e2=this[_0x35171a(0x33a)][_0x35171a(0x2a8)](_0x48de52[_0x35171a(0x395)]),_0x300ecc=_0x1883e2==null?void 0x0:_0x1883e2[_0x35171a(0x377)],_0xef3f8a=_0x300ecc&&!_0x53aac2(_0x300ecc)?_0x300ecc[_0x35171a(0x266)]:void 0x0;if((_0x54cb8a==null?void 0x0:_0x54cb8a[_0x35171a(0x261)])!==_0x48de52[_0x35171a(0x261)]||_0x54cb8a[_0x35171a(0x2e0)]!==_0x48de52['subUnitId']||(_0xef3f8a==null?void 0x0:_0xef3f8a['kind'])!==_0x525a0e['Unit']){this['_commandService'][_0x35171a(0x32c)](W['id'],{'requestId':_0x48de52['requestId'],'error':'Pivot\x20chart\x20source\x20is\x20unavailable.'},{'onlyLocal':!0x0});return;}let _0x45349f=this[_0x35171a(0x353)][_0x35171a(0x211)](_0xef3f8a['ownerUnitId'],_0x48de52[_0x35171a(0x395)]);if(!_0x45349f){this[_0x35171a(0x21c)][_0x35171a(0x32c)](W['id'],{'requestId':_0x48de52[_0x35171a(0x2eb)],'error':_0x35171a(0x37a)},{'onlyLocal':!0x0});return;}this['_commandService']['syncExecuteCommand'](W['id'],{'requestId':_0x48de52[_0x35171a(0x2eb)],'source':{'sourceRangeInfo':_0x2c5c8a[_0x35171a(0x3a2)](_0x45349f[_0x35171a(0x314)]),'collectionConfig':_0x45349f['toJSON']()}},{'onlyLocal':!0x0});}[_0x3bff99(0x21d)](_0x30b753,_0x50949b,_0xf8835d){const _0x4d0825=_0x3bff99;if(!_0xf8835d||this[_0x4d0825(0x37b)][_0x4d0825(0x27f)](_0xf8835d['id']))return;let _0x2f6abf=_0xf8835d['snapshot'];if(_0x51e4fa(_0x2f6abf[_0x4d0825(0x219)][_0x4d0825(0x32a)])===_0x48872b[_0x4d0825(0x281)])return;if(_0x53aac2(_0x2f6abf)){this[_0x4d0825(0x375)](_0x30b753,_0x50949b,_0xf8835d['id'],_0x2f6abf['pivotTableRef']);return;}if(_0x2f6abf['cacheRef'][_0x4d0825(0x34a)]!==_0x525a0e[_0x4d0825(0x345)])return;let _0x4362c4=_0x2f6abf['cacheRef']['ownerUnitId'],_0x2c9409=this[_0x4d0825(0x353)][_0x4d0825(0x211)](_0x4362c4,_0xf8835d['id']);if(_0x2c9409&&this[_0x4d0825(0x269)](_0x2c9409))try{var _0x4e1b1a;let _0x1e72d8=this[_0x4d0825(0x1f9)][_0x4d0825(0x39d)](_0x30b753,_0xf8835d['id'])??this['_cacheService'][_0x4d0825(0x235)](_0x30b753,_0xf8835d['id'],_0x2c9409[_0x4d0825(0x314)],this[_0x4d0825(0x353)][_0x4d0825(0x240)](_0x4362c4),_0x2f6abf[_0x4d0825(0x266)][_0x4d0825(0x2d3)]);(_0x4e1b1a=this[_0x4d0825(0x2db)])==null||_0x4e1b1a['handleReportSourceRangeChange'](_0xf8835d['id'],_0x2c9409[_0x4d0825(0x314)],_0x30b753,_0x50949b);let _0x2fcc8f=new _0x59f971(_0xf8835d,_0x1e72d8,_0x2c9409),_0xa28338=_0x2fcc8f[_0x4d0825(0x2cd)]['subscribe'](_0x20c05a=>{const _0x15938e=_0x4d0825;this[_0x15938e(0x21c)][_0x15938e(0x32c)](V['id'],{'unitId':_0x30b753,'subUnitId':_0x50949b,'result':_0x20c05a},{'onlyLocal':!0x0});}),_0x4eb055=_0x2fcc8f[_0x4d0825(0x247)][_0x4d0825(0x265)](_0x57be8a=>{const _0x110d14=_0x4d0825;this[_0x110d14(0x21c)][_0x110d14(0x32c)](H['id'],{'unitId':_0x30b753,'subUnitId':_0x50949b,'pivotChartId':_0xf8835d['id'],'state':_0x57be8a[_0x110d14(0x2d7)]===void 0x0?_0x57be8a:{..._0x57be8a,'error':Cn(_0x57be8a[_0x110d14(0x2d7)])}},{'onlyLocal':!0x0});});this[_0x4d0825(0x37b)][_0x4d0825(0x27b)](_0xf8835d['id'],{'kind':_0x4d0825(0x39b),'runtime':_0x2fcc8f,'resultSubscription':_0xa28338,'stateSubscription':_0x4eb055,'unitId':_0x30b753,'subUnitId':_0x50949b}),_0x2fcc8f[_0x4d0825(0x320)]();}catch(_0x3ec495){this[_0x4d0825(0x31b)][_0x4d0825(0x2d7)]('[PivotChartCalculationController]',{'pivotChartId':_0xf8835d['id'],'error':_0x3ec495});}}[_0x3bff99(0x375)](_0x525765,_0xf13af9,_0x15ab70,_0x373dcf){const _0x313db4=_0x3bff99;let _0x575742={'kind':_0x313db4(0x274),'pivotChartId':_0x15ab70,'pivotTableRef':_0x373dcf,'unitId':_0x525765,'subUnitId':_0xf13af9,'requestId':0x0,'reportRevision':0x0};this[_0x313db4(0x37b)][_0x313db4(0x27b)](_0x15ab70,_0x575742);let _0x4332df=Sn(_0x373dcf),_0x3cfe4e=this[_0x313db4(0x3b2)][_0x313db4(0x370)](_0x4332df)??new Set();_0x3cfe4e[_0x313db4(0x304)](_0x15ab70),this[_0x313db4(0x3b2)][_0x313db4(0x27b)](_0x4332df,_0x3cfe4e);let _0x5d823c=this['_dataSourceModel'][_0x313db4(0x2e7)](_0x373dcf['pivotTableId']);(_0x5d823c==null?void 0x0:_0x5d823c[_0x313db4(0x261)])===_0x373dcf[_0x313db4(0x261)]&&(_0x575742['pivotTableRef']={..._0x373dcf,'subUnitId':_0x5d823c['subUnitId']});let _0x311eb7=this['_dataSourceModel'][_0x313db4(0x3a0)](_0x373dcf[_0x313db4(0x1f7)]),_0x4585cb=this[_0x313db4(0x353)][_0x313db4(0x33e)](_0x575742[_0x313db4(0x385)][_0x313db4(0x261)],_0x575742[_0x313db4(0x385)][_0x313db4(0x2e0)],_0x575742['pivotTableRef'][_0x313db4(0x1f7)]);_0x311eb7&&_0x4585cb&&this[_0x313db4(0x299)](_0x575742,_0x311eb7[_0x313db4(0x34e)]()[_0x313db4(0x38b)](),_0x4585cb);}[_0x3bff99(0x203)](_0x135cd5){const _0x1f7b50=_0x3bff99;(_0x135cd5[_0x1f7b50(0x3c2)]?[_0x135cd5[_0x1f7b50(0x3c2)]]:_0x135cd5[_0x1f7b50(0x253)]??[])[_0x1f7b50(0x25e)](_0x3ff56c=>{const _0x147ff9=_0x1f7b50;let _0x13c5b7=Sn({'unitId':_0x3ff56c[_0x147ff9(0x261)],'subUnitId':_0x3ff56c[_0x147ff9(0x2e0)],'pivotTableId':_0x3ff56c[_0x147ff9(0x1f7)]}),_0x53a08c=this[_0x147ff9(0x3b2)][_0x147ff9(0x370)](_0x13c5b7);_0x53a08c&&_0x53a08c[_0x147ff9(0x25e)](_0x1a73ae=>{const _0x51bb68=_0x147ff9;let _0x487480=this[_0x51bb68(0x37b)][_0x51bb68(0x370)](_0x1a73ae);_0x487480&&_0x487480[_0x51bb68(0x34a)]===_0x51bb68(0x274)&&(_0x487480[_0x51bb68(0x385)]={'unitId':_0x3ff56c[_0x51bb68(0x261)],'subUnitId':_0x3ff56c[_0x51bb68(0x2e0)],'pivotTableId':_0x3ff56c[_0x51bb68(0x1f7)]},_0x487480['reportRevision']++,_0x3ff56c[_0x51bb68(0x1fe)]===_0x51bb68(0x373)?this['_publishLinkedUnavailable'](_0x487480):this['_publishLinkedResult'](_0x487480,_0x3ff56c[_0x51bb68(0x3a4)],_0x3ff56c[_0x51bb68(0x21a)][_0x51bb68(0x2bb)]));});});}['_publishLinkedResult'](_0x23b775,_0x29b17d,_0x109d14){const _0x3157b0=_0x3bff99;let _0x3ffdab=this['_dataSourceModel'][_0x3157b0(0x326)](_0x23b775[_0x3157b0(0x385)][_0x3157b0(0x261)],_0x23b775[_0x3157b0(0x385)][_0x3157b0(0x1f7)]);if(!_0x3ffdab)return;_0x23b775[_0x3157b0(0x2d3)]=_0x3ffdab[_0x3157b0(0x2d3)],_0x23b775[_0x3157b0(0x29c)]=_0x3ffdab[_0x3157b0(0x34b)];let _0xd31da4={'requestId':++_0x23b775[_0x3157b0(0x2eb)],'reportRevision':_0x23b775['reportRevision'],'pivotCacheId':_0x3ffdab[_0x3157b0(0x2d3)],'cacheRevision':_0x3ffdab[_0x3157b0(0x34b)]};this['_commandService'][_0x3157b0(0x32c)](H['id'],{'unitId':_0x23b775[_0x3157b0(0x261)],'subUnitId':_0x23b775[_0x3157b0(0x2e0)],'pivotChartId':_0x23b775['pivotChartId'],'state':{'status':_0x27ca02[_0x3157b0(0x2f0)],..._0xd31da4}},{'onlyLocal':!0x0}),this[_0x3157b0(0x21c)]['syncExecuteCommand'](V['id'],{'unitId':_0x23b775[_0x3157b0(0x261)],'subUnitId':_0x23b775[_0x3157b0(0x2e0)],'result':{'pivotChartId':_0x23b775[_0x3157b0(0x395)],'rowFieldCount':_0x109d14[_0x3157b0(0x1f5)][_0x3157b0(0x25d)],'categoryFieldCount':_0x109d14[_0x3157b0(0x1f5)][_0x3157b0(0x25d)]+ +(_0x109d14['valueFields']['length']>0x1&&_0x109d14[_0x3157b0(0x391)]===_0x3e4cd7[_0x3157b0(0x278)]),'valueFieldCount':_0x109d14[_0x3157b0(0x2ef)][_0x3157b0(0x25d)],'fieldButtons':_0x2b79b4(_0x109d14,_0x29b17d),..._0xd31da4,'view':_0x29b17d,'dataSet':_0x32ef4f(_0x29b17d,_0x109d14)}},{'onlyLocal':!0x0}),this['_commandService'][_0x3157b0(0x32c)](H['id'],{'unitId':_0x23b775['unitId'],'subUnitId':_0x23b775[_0x3157b0(0x2e0)],'pivotChartId':_0x23b775[_0x3157b0(0x395)],'state':{'status':_0x27ca02[_0x3157b0(0x36c)],..._0xd31da4}},{'onlyLocal':!0x0});}[_0x3bff99(0x355)](_0x50529e){const _0xd0a52c=_0x3bff99;_0x50529e['pivotCacheId']!==void 0x0&&_0x50529e[_0xd0a52c(0x29c)]!==void 0x0&&this[_0xd0a52c(0x21c)][_0xd0a52c(0x32c)](H['id'],{'unitId':_0x50529e['unitId'],'subUnitId':_0x50529e[_0xd0a52c(0x2e0)],'pivotChartId':_0x50529e['pivotChartId'],'state':{'status':_0x27ca02[_0xd0a52c(0x36d)],'requestId':++_0x50529e[_0xd0a52c(0x2eb)],'reportRevision':_0x50529e[_0xd0a52c(0x2e8)],'pivotCacheId':_0x50529e[_0xd0a52c(0x2d3)],'cacheRevision':_0x50529e[_0xd0a52c(0x29c)],'error':_0xd0a52c(0x3a7)}},{'onlyLocal':!0x0});}[_0x3bff99(0x2b5)](_0x2e6148){const _0x1aaa82=_0x3bff99;if(this[_0x1aaa82(0x269)](_0x2e6148))return!0x1;let _0x5d0fa2=_0x2e6148[_0x1aaa82(0x314)];if(!(_0x5d0fa2!=null&&_0x5d0fa2[_0x1aaa82(0x261)])||!_0x5d0fa2[_0x1aaa82(0x2e0)]||!_0x5d0fa2['range'])return!0x1;let _0x1ab397=[],_0x13823a=[],_0x2e76ca=0x0;return _0x2e6148[_0x1aaa82(0x218)]()[_0x1aaa82(0x25e)](_0xb9aae6=>{const _0x5985e5=_0x1aaa82;let _0x5175be=_0x2e6148[_0x5985e5(0x29a)](_0xb9aae6);if(_0x5175be){if(_0x5c9690(_0x5175be)){let _0x5b7dd2=_0x2e6148[_0x5985e5(0x29a)](_0x5175be[_0x5985e5(0x295)]());_0x5b7dd2&&_0x13823a[_0x5985e5(0x27e)]([_0x5175be,_0x5b7dd2]);return;}_0x1ab397[_0x5985e5(0x27e)]({'index':_0x2e76ca,'dataField':_0x5175be}),_0x2e76ca++;}}),this[_0x1aaa82(0x353)][_0x1aaa82(0x2a2)](_0x2e6148,_0x1ab397,_0x5d0fa2),_0x13823a['forEach'](([_0x4a0b1a,_0x55a9e4])=>_0x4a0b1a['refreshGroupField'](_0x55a9e4)),this['_isCollectionHydrated'](_0x2e6148);}['_isCollectionHydrated'](_0x1d76a4){const _0x3cc361=_0x3bff99;return _0x1d76a4[_0x3cc361(0x218)]()[_0x3cc361(0x291)](_0x11a17e=>{const _0x11ba40=_0x3cc361;var _0x1f4b70;return((_0x1f4b70=_0x1d76a4[_0x11ba40(0x29a)](_0x11a17e))==null?void 0x0:_0x1f4b70[_0x11ba40(0x356)][_0x11ba40(0x25d)])===_0x1d76a4[_0x11ba40(0x270)];});}[_0x3bff99(0x296)](_0x529139){const _0x5dcd34=_0x3bff99;var _0x5d9105;let _0x13d3c1=this[_0x5dcd34(0x37b)]['get'](_0x529139);if(_0x13d3c1){if(this['_runtimes'][_0x5dcd34(0x373)](_0x529139),_0x13d3c1['kind']===_0x5dcd34(0x274)){let _0x50a4b8=Sn(_0x13d3c1['pivotTableRef']),_0x36d17a=this['_linkedChartsByPivotTable'][_0x5dcd34(0x370)](_0x50a4b8);_0x36d17a==null||_0x36d17a['delete'](_0x529139),(_0x36d17a==null?void 0x0:_0x36d17a[_0x5dcd34(0x238)])===0x0&&this[_0x5dcd34(0x3b2)][_0x5dcd34(0x373)](_0x50a4b8);return;}(_0x5d9105=this[_0x5dcd34(0x2db)])==null||_0x5d9105[_0x5dcd34(0x23b)](_0x13d3c1['unitId'],_0x13d3c1[_0x5dcd34(0x2e0)],_0x529139),_0x13d3c1[_0x5dcd34(0x226)]['unsubscribe'](),_0x13d3c1['stateSubscription'][_0x5dcd34(0x2bd)](),_0x13d3c1[_0x5dcd34(0x2af)][_0x5dcd34(0x359)]();}}};X=I([F(0x0,_0x1ae7ee(L)),F(0x1,_0x1ae7ee(_0x54080a)),F(0x2,_0x1ae7ee(_0x58f041)),F(0x3,_0x3d27ba),F(0x4,_0x1a9f32),F(0x5,_0x27a100(_0x1a346b))],X);function Sn(_0x2e6f42){const _0x32c743=_0x3bff99;return JSON[_0x32c743(0x2d0)]([_0x2e6f42[_0x32c743(0x261)],_0x2e6f42[_0x32c743(0x1f7)]]);}function Cn(_0x43cd36){const _0x2c9437=_0x3bff99;return _0x43cd36 instanceof Error?_0x43cd36[_0x2c9437(0x225)]:String(_0x43cd36);}let wn=class extends _0x16bb26{constructor(_0x575752,_0x3b364b,_0x34a970,_0x2fe881,_0x21b64a){const _0x14c1b6=_0x3bff99;super(),this[_0x14c1b6(0x33a)]=_0x3b364b,this[_0x14c1b6(0x2fd)]=_0x34a970,this[_0x14c1b6(0x2fc)]=_0x2fe881,this[_0x14c1b6(0x353)]=_0x21b64a,this[_0x14c1b6(0x257)](_0x575752['interceptCommand']({'getMutations':_0x233ab0=>this[_0x14c1b6(0x1fb)](_0x233ab0)}));}[_0x3bff99(0x1fb)](_0x94cb75){const _0x6dfd1c=_0x3bff99;if(_0x94cb75['id']!==_0x2fdf67['id'])return{'redos':[],'undos':[]};let _0x2b81f9=_0x94cb75[_0x6dfd1c(0x267)],_0x5f193b=[],_0x5a2e98=[];for(let _0x58361d of _0x2b81f9[_0x6dfd1c(0x25c)]){let _0xa8b48=this[_0x6dfd1c(0x33a)][_0x6dfd1c(0x370)](_0x58361d['unitId'],_0x58361d['subUnitId'],_0x58361d['drawingId']),_0x106ff0=_0xa8b48==null?void 0x0:_0xa8b48[_0x6dfd1c(0x377)];if(!_0x106ff0)continue;if(_0x53aac2(_0x106ff0)){_0x5f193b['push']({'id':J['id'],'params':{'unitId':_0x58361d[_0x6dfd1c(0x261)],'subUnitId':_0x58361d['subUnitId'],'pivotChartId':_0x106ff0['id']}}),_0x5a2e98['push']({'id':q['id'],'params':{'unitId':_0x58361d[_0x6dfd1c(0x261)],'subUnitId':_0x58361d[_0x6dfd1c(0x2e0)],'definition':_0x106ff0}});continue;}let _0x241d36;if(_0x106ff0['cacheRef'][_0x6dfd1c(0x34a)]===_0x525a0e[_0x6dfd1c(0x345)]){var _0x14938f;let _0x391ac7=(_0x14938f=this[_0x6dfd1c(0x353)])==null?void 0x0:_0x14938f[_0x6dfd1c(0x211)](_0x106ff0['cacheRef'][_0x6dfd1c(0x2c0)],_0x106ff0['id']);_0x241d36=Tn((_0x391ac7==null?void 0x0:_0x391ac7[_0x6dfd1c(0x38b)]())??this['_pivotConfigModel']['getCollection'](_0x106ff0[_0x6dfd1c(0x266)]['ownerUnitId'],_0x106ff0['id']));}_0x241d36||=this[_0x6dfd1c(0x2fc)][_0x6dfd1c(0x347)]({'unitId':_0x58361d['unitId'],'subUnitId':_0x58361d['subUnitId'],'pivotChartId':_0x106ff0['id']}),_0x5f193b[_0x6dfd1c(0x27e)]({'id':J['id'],'params':{'unitId':_0x58361d[_0x6dfd1c(0x261)],'subUnitId':_0x58361d[_0x6dfd1c(0x2e0)],'pivotChartId':_0x106ff0['id']}}),_0x5a2e98['push']({'id':q['id'],'params':{'unitId':_0x58361d[_0x6dfd1c(0x261)],'subUnitId':_0x58361d['subUnitId'],'definition':_0x106ff0,..._0x241d36?{'source':_0x2c5c8a[_0x6dfd1c(0x3a2)](_0x241d36)}:{}}});}return{'redos':_0x5f193b,'undos':_0x5a2e98};}};wn=I([F(0x0,_0x1ae7ee(_0x3d5658)),F(0x1,_0x1ae7ee(L)),F(0x2,_0x1ae7ee(_0x222738)),F(0x3,_0x1ae7ee(G)),F(0x4,_0x27a100(_0x54080a))],wn);function Tn(_0x54d949){const _0x1f42e2=_0x3bff99;let _0x571e29=_0x54d949==null?void 0x0:_0x54d949[_0x1f42e2(0x314)];return _0x571e29!=null&&_0x571e29[_0x1f42e2(0x261)]&&_0x571e29[_0x1f42e2(0x2e0)]&&_0x571e29[_0x1f42e2(0x314)]?{'sourceRangeInfo':_0x571e29,'collectionConfig':_0x54d949}:void 0x0;}let Z=class extends _0x16bb26{constructor(_0x308577,_0x11b9db,_0x3c3806,_0x9100a2){const _0x1f550f=_0x3bff99;super(),this[_0x1f550f(0x33a)]=_0x308577,this[_0x1f550f(0x353)]=_0x11b9db,this[_0x1f550f(0x32f)]=_0x3c3806,this[_0x1f550f(0x21c)]=_0x9100a2,this['disposeWithMe'](this[_0x1f550f(0x21c)][_0x1f550f(0x249)](_0x26118a=>{const _0x401384=_0x1f550f;_0x26118a['id']===St['id']?this[_0x401384(0x24c)](_0x26118a[_0x401384(0x267)]):_0x26118a['id']===wt['id']&&this[_0x401384(0x2de)](_0x26118a['params']);})),this[_0x1f550f(0x257)](this['_dataSourceModel']['collectionChange$'][_0x1f550f(0x265)](_0x11ecdd=>{const _0x51bf56=_0x1f550f;let _0x340938=this[_0x51bf56(0x33a)][_0x51bf56(0x20f)](_0x11ecdd[_0x51bf56(0x239)]);_0x340938&&this[_0x51bf56(0x242)](_0x340938[_0x51bf56(0x261)],_0x340938[_0x51bf56(0x2e0)],_0x11ecdd[_0x51bf56(0x239)]);})),this[_0x1f550f(0x257)](this['_dataSourceModel'][_0x1f550f(0x322)]['subscribe'](_0x5445f6=>{const _0x1b6af4=_0x1f550f;Object[_0x1b6af4(0x36f)](_0x5445f6)['forEach'](_0x81e246=>{const _0xa52c49=_0x1b6af4;let _0x2d824a=this[_0xa52c49(0x33a)][_0xa52c49(0x20f)](_0x81e246);_0x2d824a&&this['_publishSource'](_0x2d824a[_0xa52c49(0x261)],_0x2d824a[_0xa52c49(0x2e0)],_0x81e246);});})),this[_0x1f550f(0x33a)][_0x1f550f(0x306)]()['forEach'](({unitId:_0x5e20fc,subUnitId:_0x2f8141,model:_0x4e1599})=>{const _0x221841=_0x1f550f;this[_0x221841(0x242)](_0x5e20fc,_0x2f8141,_0x4e1599['id']);});}[_0x3bff99(0x24c)](_0x493234){const _0x2d53bd=_0x3bff99;let _0x9b8a1c,_0x1973a2;try{if(_0x493234['edit'][_0x2d53bd(0x1fe)]===_0x2d53bd(0x399)){let _0x4dc33d=this[_0x2d53bd(0x214)](_0x493234);_0x9b8a1c=_0x4dc33d==null?void 0x0:_0x4dc33d[_0x2d53bd(0x33f)],_0x1973a2=_0x4dc33d==null?void 0x0:_0x4dc33d[_0x2d53bd(0x24d)];}else _0x9b8a1c=this[_0x2d53bd(0x332)](_0x493234);}catch(_0x6c434b){this['_sendEditError'](_0x493234[_0x2d53bd(0x2eb)],_0x6c434b);return;}if(!_0x9b8a1c){this[_0x2d53bd(0x221)](_0x493234[_0x2d53bd(0x2eb)]);return;}try{let _0xa0bc1f=_0x493234[_0x2d53bd(0x354)][_0x2d53bd(0x1fe)]===_0x2d53bd(0x399)?On(this[_0x2d53bd(0x32f)],_0x9b8a1c,_0x493234[_0x2d53bd(0x354)]):void 0x0;if(_0x493234[_0x2d53bd(0x354)][_0x2d53bd(0x1fe)]===_0x2d53bd(0x399)?!_0xa0bc1f:!Dn(_0x9b8a1c,_0x493234[_0x2d53bd(0x354)])){this[_0x2d53bd(0x221)](_0x493234[_0x2d53bd(0x2eb)]);return;}this[_0x2d53bd(0x21c)][_0x2d53bd(0x32c)](Ct['id'],{'requestId':_0x493234[_0x2d53bd(0x2eb)],'pivotModel':_0x9b8a1c[_0x2d53bd(0x38b)](),..._0xa0bc1f?{'source':_0xa0bc1f}:{}},{'onlyLocal':!0x0});}catch(_0xeb2626){this['_sendEditError'](_0x493234[_0x2d53bd(0x2eb)],_0xeb2626);}finally{_0x9b8a1c[_0x2d53bd(0x359)](),_0x1973a2==null||_0x1973a2[_0x2d53bd(0x359)]();}}[_0x3bff99(0x2de)](_0xb0c48d){const _0x24cc4d=_0x3bff99;let _0x301ad8,_0x4bbd62=!0x1;try{var _0x55381a;let _0x17c1ba=(_0x55381a=this[_0x24cc4d(0x33a)][_0x24cc4d(0x370)](_0xb0c48d[_0x24cc4d(0x261)],_0xb0c48d['subUnitId'],_0xb0c48d[_0x24cc4d(0x395)]))==null?void 0x0:_0x55381a[_0x24cc4d(0x377)];_0x17c1ba&&_0x53aac2(_0x17c1ba)?_0x301ad8=this[_0x24cc4d(0x353)][_0x24cc4d(0x3a0)](_0x17c1ba[_0x24cc4d(0x385)][_0x24cc4d(0x1f7)]):(_0x301ad8=this['_createPivotTable'](_0xb0c48d),_0x4bbd62=_0x301ad8!==void 0x0);}catch(_0x4ce27c){this[_0x24cc4d(0x327)](_0xb0c48d[_0x24cc4d(0x2eb)],_0x4ce27c);return;}if(!_0x301ad8){this[_0x24cc4d(0x327)](_0xb0c48d['requestId']);return;}try{let _0x34cf46=_0x301ad8[_0x24cc4d(0x26d)](_0xb0c48d[_0x24cc4d(0x3c0)]);if(!_0x34cf46){this['_sendFilterError'](_0xb0c48d[_0x24cc4d(0x2eb)]);return;}this[_0x24cc4d(0x21c)]['syncExecuteCommand'](Tt['id'],{'requestId':_0xb0c48d[_0x24cc4d(0x2eb)],'filterInfo':{..._0x301ad8[_0x24cc4d(0x35c)](_0x34cf46),'tableFieldId':_0xb0c48d[_0x24cc4d(0x3c0)],'pivotTableId':_0xb0c48d['pivotChartId'],'filterInfo':_0x301ad8[_0x24cc4d(0x28a)](_0xb0c48d[_0x24cc4d(0x3c0)]),'sortInfo':_0x301ad8[_0x24cc4d(0x31a)](_0xb0c48d['fieldId']),'format':_0x301ad8[_0x24cc4d(0x35f)](_0xb0c48d[_0x24cc4d(0x3c0)])}},{'onlyLocal':!0x0});}catch(_0x40e3bc){this[_0x24cc4d(0x327)](_0xb0c48d[_0x24cc4d(0x2eb)],_0x40e3bc);}finally{_0x4bbd62&&_0x301ad8[_0x24cc4d(0x359)]();}}[_0x3bff99(0x332)](_0x5b2478){const _0x3d3cd5=_0x3bff99;var _0x312daa;let _0x34202c=(_0x312daa=this['_pivotChartModel'][_0x3d3cd5(0x370)](_0x5b2478[_0x3d3cd5(0x261)],_0x5b2478[_0x3d3cd5(0x2e0)],_0x5b2478['pivotChartId']))==null?void 0x0:_0x312daa[_0x3d3cd5(0x377)];if(!_0x34202c||_0x53aac2(_0x34202c)||_0x34202c[_0x3d3cd5(0x266)]['kind']!==_0x525a0e[_0x3d3cd5(0x345)])return;let _0x1e9325=this[_0x3d3cd5(0x353)][_0x3d3cd5(0x211)](_0x34202c[_0x3d3cd5(0x266)][_0x3d3cd5(0x2c0)],_0x5b2478[_0x3d3cd5(0x395)]);if(!_0x1e9325)return;let _0x583b2e=new _0x1f0647(_0x1e9325);return _0x583b2e[_0x3d3cd5(0x2c4)](_0x34202c[_0x3d3cd5(0x25b)]),_0x583b2e;}['_createDetachedPivotTable'](_0x4a4911){const _0x3707fb=_0x3bff99;var _0x539569;let _0x13a49c=(_0x539569=this[_0x3707fb(0x33a)][_0x3707fb(0x370)](_0x4a4911['unitId'],_0x4a4911[_0x3707fb(0x2e0)],_0x4a4911[_0x3707fb(0x395)]))==null?void 0x0:_0x539569[_0x3707fb(0x377)];if(!_0x13a49c||_0x53aac2(_0x13a49c)||_0x13a49c[_0x3707fb(0x266)]['kind']!==_0x525a0e[_0x3707fb(0x345)])return;let _0x2ac1f6=this[_0x3707fb(0x353)]['getCollection'](_0x13a49c[_0x3707fb(0x266)][_0x3707fb(0x2c0)],_0x4a4911['pivotChartId']);if(!_0x2ac1f6)return;let _0x30e118=An(this[_0x3707fb(0x32f)],_0x2ac1f6,_0x4a4911[_0x3707fb(0x395)]),_0x53d286=new _0x1f0647(_0x30e118[_0x3707fb(0x3a5)][_0x4a4911['pivotChartId']]);return _0x53d286[_0x3707fb(0x2c4)](_0x13a49c[_0x3707fb(0x25b)]),{'manager':_0x30e118,'pivotTable':_0x53d286};}[_0x3bff99(0x242)](_0x10364e,_0x253779,_0x56bc4b){const _0xd3b9ea=_0x3bff99;var _0x2c9222;let _0x36ef2c=(_0x2c9222=this[_0xd3b9ea(0x33a)][_0xd3b9ea(0x370)](_0x10364e,_0x253779,_0x56bc4b))==null?void 0x0:_0x2c9222[_0xd3b9ea(0x377)];if(!_0x36ef2c||_0x53aac2(_0x36ef2c)||_0x36ef2c['cacheRef'][_0xd3b9ea(0x34a)]!==_0x525a0e[_0xd3b9ea(0x345)])return;let _0x783323=this[_0xd3b9ea(0x353)][_0xd3b9ea(0x211)](_0x36ef2c[_0xd3b9ea(0x266)][_0xd3b9ea(0x2c0)],_0x56bc4b),_0x4da11a=_0x783323==null?void 0x0:_0x783323['range'];_0x783323&&_0x4da11a!=null&&_0x4da11a['unitId']&&_0x4da11a['subUnitId']&&_0x4da11a[_0xd3b9ea(0x314)]&&this[_0xd3b9ea(0x21c)][_0xd3b9ea(0x32c)](xt['id'],{'unitId':_0x10364e,'subUnitId':_0x253779,'pivotChartId':_0x56bc4b,'source':{'sourceRangeInfo':_0x2c5c8a[_0xd3b9ea(0x3a2)](_0x4da11a),'collectionConfig':_0x783323['toJSON']()}},{'onlyLocal':!0x0});}[_0x3bff99(0x221)](_0x5a508f,_0x4bc9c1){const _0x345008=_0x3bff99;this[_0x345008(0x21c)][_0x345008(0x32c)](Ct['id'],{'requestId':_0x5a508f,'error':En(_0x4bc9c1,'PIVOT_CHART_EDIT_UNAVAILABLE')},{'onlyLocal':!0x0});}['_sendFilterError'](_0x55dc42,_0x16ffbd){const _0x564cdf=_0x3bff99;this[_0x564cdf(0x21c)]['syncExecuteCommand'](Tt['id'],{'requestId':_0x55dc42,'error':En(_0x16ffbd,_0x564cdf(0x292))},{'onlyLocal':!0x0});}};Z=I([F(0x0,_0x1ae7ee(L)),F(0x1,_0x1ae7ee(_0x54080a)),F(0x2,_0x1ae7ee(_0x591ca1)),F(0x3,_0x3d27ba)],Z);function En(_0x4dd27b,_0x4bc6cc){return _0x4dd27b instanceof Error?_0x4dd27b['message']:_0x4bc6cc;}function Dn(_0x340c5a,_0x1cf5ec){const _0x7d4ad1=_0x3bff99;if(_0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x2cc))return _0x340c5a[_0x7d4ad1(0x2c4)](_0x2c5c8a[_0x7d4ad1(0x3a2)](_0x1cf5ec[_0x7d4ad1(0x394)])),!0x0;if(_0x1cf5ec[_0x7d4ad1(0x1fe)]==='addField')return Pn(_0x340c5a,_0x1cf5ec);if(_0x1cf5ec['type']===_0x7d4ad1(0x2f1))return Fn(_0x340c5a,_0x1cf5ec);if(_0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x273))return In(_0x340c5a,_0x1cf5ec[_0x7d4ad1(0x351)]);if(_0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x224))return _0x340c5a[_0x7d4ad1(0x36e)](_0x1cf5ec[_0x7d4ad1(0x3c0)]);if(_0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x39a))return _0x1cf5ec[_0x7d4ad1(0x31e)]!==_0x3e4cd7[_0x7d4ad1(0x2f6)]&&_0x340c5a[_0x7d4ad1(0x293)](_0x154463['Value'])<0x2?!0x1:(_0x340c5a['updateValuePosition'](_0x1cf5ec[_0x7d4ad1(0x31e)],_0x1cf5ec[_0x7d4ad1(0x38a)]),!0x0);if(!_0x340c5a[_0x7d4ad1(0x26d)](_0x1cf5ec[_0x7d4ad1(0x3c0)]))return!0x1;if(_0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x2b4))return Mn(_0x340c5a,_0x1cf5ec);if(_0x1cf5ec['type']===_0x7d4ad1(0x200))return Nn(_0x340c5a,_0x1cf5ec);if(_0x1cf5ec[_0x7d4ad1(0x1fe)]==='setDateGroup')return!0x1;if(_0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x396)){if(_0x340c5a['getFieldPositionInfoById'](_0x1cf5ec['fieldId'])['area']!==_0x154463[_0x7d4ad1(0x278)])return!0x1;_0x340c5a['setCollapse'](_0x1cf5ec[_0x7d4ad1(0x3c0)],_0x1cf5ec[_0x7d4ad1(0x2d6)],_0x1cf5ec[_0x7d4ad1(0x2d9)]);}else _0x1cf5ec[_0x7d4ad1(0x1fe)]===_0x7d4ad1(0x323)?_0x340c5a['setLabelFilterInfo'](_0x1cf5ec[_0x7d4ad1(0x3c0)],{'type':_0x331f69[_0x7d4ad1(0x358)],'list':_0x1cf5ec[_0x7d4ad1(0x3ad)],'isAll':_0x1cf5ec['isAll']}):_0x340c5a[_0x7d4ad1(0x23d)](_0x1cf5ec[_0x7d4ad1(0x3c0)],_0x1cf5ec['info']);return!0x0;}function On(_0xbfb6dc,_0x16a22f,_0x3c2da3){const _0x19cd1d=_0x3bff99;let _0x28f468=_0x16a22f[_0x19cd1d(0x363)],_0x17a9a4=_0x370661(_0x16a22f[_0x19cd1d(0x38b)](),_0x28f468[_0x19cd1d(0x38b)](),_0x3c2da3[_0x19cd1d(0x3c0)]);if(!_0x17a9a4||_0x28ac32(_0x17a9a4,_0x3c2da3[_0x19cd1d(0x21e)]))return;jn(_0xbfb6dc,_0x28f468);let _0x20e585=_0x28f468[_0x19cd1d(0x314)];if(_0x20e585!=null&&_0x20e585[_0x19cd1d(0x261)]&&_0x20e585[_0x19cd1d(0x2e0)]&&_0x20e585['range']){if(_0x17a9a4[_0x19cd1d(0x34a)]===_0x19cd1d(0x251)){let _0x2e7c24=_0x16a22f[_0x19cd1d(0x26d)](_0x3c2da3[_0x19cd1d(0x3c0)]),_0x335a21=_0x2e7c24&&_0x391148(_0x2e7c24)?_0x16a22f[_0x19cd1d(0x28b)](_0x2e7c24[_0x19cd1d(0x295)]()):void 0x0,_0xb835af=_0x16a22f[_0x19cd1d(0x2b6)](_0x3c2da3[_0x19cd1d(0x3c0)]);if(!_0x2e7c24||!_0x391148(_0x2e7c24)||!_0x335a21||!_0xb835af)return;let _0x1ea0f3=_0x335a21[_0x19cd1d(0x21f)]()+_0x19cd1d(0x252)+_0x3c48a5(_0xbfb6dc,_0x3c2da3[_0x19cd1d(0x21e)]);_0x28f468['setDisplayName'](_0x2e7c24[_0x19cd1d(0x2d8)](),_0x1ea0f3),_0x16a22f[_0x19cd1d(0x207)](_0xb835af[_0x19cd1d(0x2d8)](),_0x1ea0f3),_0x2e7c24[_0x19cd1d(0x3b3)](_0x3c2da3['dateType']),_0x2e7c24[_0x19cd1d(0x229)](_0x335a21),_0x16a22f[_0x19cd1d(0x2c9)](!0x0);}else{let _0x4e3007=_0x16a22f['getDataFieldByTableId'](_0x3c2da3[_0x19cd1d(0x3c0)]);if(!_0x4e3007)return;let _0x4a8256=_0x28f468[_0x19cd1d(0x2d5)][_0x19cd1d(0x236)](),_0x324a32=_0x4e3007[_0x19cd1d(0x21f)]()+_0x19cd1d(0x252)+_0x3c48a5(_0xbfb6dc,_0x3c2da3[_0x19cd1d(0x21e)]),_0xc6c0f1=new _0x8536b2(_0x4a8256,_0x324a32,_0xc80f2f(0x3),_0x4e3007['getId'](),_0x3c2da3[_0x19cd1d(0x21e)]);if(_0x28f468['host'][_0x19cd1d(0x319)][_0x4a8256]=_0xc6c0f1,_0x28f468[_0x19cd1d(0x24b)](_0x4a8256,_0x324a32),_0xc6c0f1[_0x19cd1d(0x229)](_0x4e3007),!_0x16a22f[_0x19cd1d(0x206)](_0x4a8256,_0x17a9a4[_0x19cd1d(0x35b)],_0x17a9a4['insertIndex']))return;_0x16a22f['setCollapse'](_0x3c2da3['fieldId'],!0x0);}return{'sourceRangeInfo':_0x2c5c8a['deepClone'](_0x20e585),'collectionConfig':_0x28f468[_0x19cd1d(0x38b)]()};}}var kn=class extends _0x275f8a{['getRangeData'](){return{'header':[],'data':[]};}};function An(_0x236cef,_0x5d0fad,_0x2156b2){const _0x218cd3=_0x3bff99;let _0x389eac=new kn(),_0x3ec802=new _0x346936(_0x389eac);_0x3ec802['fieldIds']=_0x5d0fad[_0x218cd3(0x218)](),_0x3ec802['displayNameRecord']={..._0x5d0fad[_0x218cd3(0x3aa)]},_0x3ec802[_0x218cd3(0x270)]=_0x5d0fad[_0x218cd3(0x270)],_0x3ec802[_0x218cd3(0x314)]=_0x2c5c8a['deepClone'](_0x5d0fad[_0x218cd3(0x314)]);let _0x22bfe4=[];return _0x3ec802[_0x218cd3(0x351)][_0x218cd3(0x25e)](_0x8163fb=>{const _0x102eeb=_0x218cd3;let _0x33b456=_0x5d0fad[_0x102eeb(0x29a)](_0x8163fb);if(_0x391148(_0x33b456)){let _0x26a5c7=_0x33b456[_0x102eeb(0x38b)](),_0x45cb4b=new _0x8536b2(_0x26a5c7['id'],_0x26a5c7[_0x102eeb(0x340)],_0x26a5c7['hexCode'],_0x26a5c7[_0x102eeb(0x392)],_0x26a5c7[_0x102eeb(0x21e)]);_0x389eac[_0x102eeb(0x319)][_0x8163fb]=_0x45cb4b,_0x22bfe4[_0x102eeb(0x27e)]({'field':_0x45cb4b,'originalFieldId':_0x26a5c7[_0x102eeb(0x392)]});}else _0x389eac[_0x102eeb(0x319)][_0x8163fb]=_0x33b456;}),_0x389eac[_0x218cd3(0x3a5)][_0x2156b2]=_0x3ec802,jn(_0x236cef,_0x3ec802),_0x22bfe4[_0x218cd3(0x25e)](({field:_0x81f324,originalFieldId:_0x389a41})=>{const _0x14423f=_0x218cd3;let _0x4ff404=_0x389eac[_0x14423f(0x319)][_0x389a41];_0x4ff404&&_0x81f324[_0x14423f(0x229)](_0x4ff404);}),_0x389eac;}function jn(_0x49b77e,_0x5c74ba){const _0x4c8fb3=_0x3bff99;var _0x10a243;let _0x5c79e7=(_0x10a243=_0x5c74ba[_0x4c8fb3(0x314)])==null?void 0x0:_0x10a243[_0x4c8fb3(0x261)],_0x47fe30=_0x5c79e7?_0x49b77e[_0x4c8fb3(0x370)](_0x2f2411)[_0x4c8fb3(0x231)](_0x5c79e7,_0x53e042[_0x4c8fb3(0x2c8)]):void 0x0;_0x2c809f(_0x47fe30==null?void 0x0:_0x47fe30[_0x4c8fb3(0x23f)]());}function Mn(_0x323d44,_0x53cd7f){const _0x2f5d1e=_0x3bff99;let _0x30191b=_0x323d44[_0x2f5d1e(0x38b)]()[_0x2f5d1e(0x220)][_0x53cd7f[_0x2f5d1e(0x3c0)]]!==void 0x0;return(_0x53cd7f[_0x2f5d1e(0x330)][_0x2f5d1e(0x26f)]!==void 0x0||_0x53cd7f[_0x2f5d1e(0x330)]['showDataAs']!==void 0x0)&&!_0x30191b?!0x1:(_0x53cd7f['setting'][_0x2f5d1e(0x2f8)]!==void 0x0&&_0x323d44[_0x2f5d1e(0x207)](_0x53cd7f['fieldId'],_0x53cd7f[_0x2f5d1e(0x330)]['displayName']),_0x53cd7f['setting'][_0x2f5d1e(0x2dd)]!==void 0x0&&_0x323d44[_0x2f5d1e(0x1fd)](_0x53cd7f['fieldId'],_0x53cd7f['setting'][_0x2f5d1e(0x2dd)]),_0x53cd7f[_0x2f5d1e(0x330)][_0x2f5d1e(0x26f)]!==void 0x0&&_0x323d44[_0x2f5d1e(0x290)](_0x53cd7f[_0x2f5d1e(0x3c0)],_0x53cd7f['setting'][_0x2f5d1e(0x26f)]),_0x53cd7f[_0x2f5d1e(0x330)][_0x2f5d1e(0x389)]!==void 0x0&&_0x323d44[_0x2f5d1e(0x397)](_0x53cd7f['fieldId'],{..._0x53cd7f[_0x2f5d1e(0x330)][_0x2f5d1e(0x389)]}),!0x0);}function Nn(_0x265804,_0x3ab6e7){const _0x1abcce=_0x3bff99;let _0x4c44cf=_0x265804['toJSON']();if(!(_0x4c44cf[_0x1abcce(0x1f5)][_0x1abcce(0x2da)](_0x3ab6e7[_0x1abcce(0x3c0)])||_0x4c44cf['columnFields']['includes'](_0x3ab6e7['fieldId'])))return!0x1;let _0x2b158d=_0x3ab6e7[_0x1abcce(0x300)];return _0x2b158d&&(_0x2b158d[_0x1abcce(0x1fe)]!==_0x331f69[_0x1abcce(0x3b1)]||_0x4c44cf[_0x1abcce(0x220)][_0x2b158d[_0x1abcce(0x22d)]]===void 0x0||!_0x5cb0cf(_0x2b158d[_0x1abcce(0x390)]))?!0x1:(_0x265804[_0x1abcce(0x378)](_0x3ab6e7[_0x1abcce(0x3c0)],_0x2b158d?{..._0x2b158d,'expected':Array[_0x1abcce(0x30d)](_0x2b158d['expected'])?_0x2b158d[_0x1abcce(0x35a)][_0x1abcce(0x25a)]():_0x2b158d[_0x1abcce(0x35a)]}:void 0x0),!0x0);}function Pn(_0xf45894,_0x3e85c8){const _0x5e7d26=_0x3bff99;return _0xf45894[_0x5e7d26(0x206)](_0x3e85c8[_0x5e7d26(0x2c7)],_0x3e85c8[_0x5e7d26(0x32d)],_0x3e85c8['index'])?(_0x3e85c8['fieldArea']===_0x154463[_0x5e7d26(0x1f4)]&&_0xf45894[_0x5e7d26(0x293)](_0x154463[_0x5e7d26(0x1f4)])>0x1&&_0xf45894[_0x5e7d26(0x2b8)]()===-0x1&&_0xf45894['updateValuePosition'](_0x3e4cd7['Column'],_0xf45894[_0x5e7d26(0x293)](_0x154463[_0x5e7d26(0x339)])),!0x0):!0x1;}function Fn(_0xfcf2d8,_0x3a4482){const _0x28542c=_0x3bff99;return _0x3a4482[_0x28542c(0x3c0)]==='PivotMultipleValueId'?_0xfcf2d8[_0x28542c(0x293)](_0x154463[_0x28542c(0x1f4)])<0x2||_0x3a4482['fieldArea']!==_0x154463[_0x28542c(0x278)]&&_0x3a4482[_0x28542c(0x32d)]!==_0x154463[_0x28542c(0x339)]?!0x1:(_0xfcf2d8[_0x28542c(0x39a)](_0x3a4482[_0x28542c(0x32d)]===_0x154463[_0x28542c(0x278)]?_0x3e4cd7[_0x28542c(0x278)]:_0x3e4cd7[_0x28542c(0x339)],_0x3a4482[_0x28542c(0x38a)]),!0x0):_0xfcf2d8['isExistField'](_0x3a4482[_0x28542c(0x3c0)])?(_0xfcf2d8[_0x28542c(0x331)](_0x3a4482[_0x28542c(0x3c0)],_0x3a4482[_0x28542c(0x32d)],_0x3a4482[_0x28542c(0x38a)]),!0x0):!0x1;}function In(_0x523427,_0x2c9b89){const _0x4f8230=_0x3bff99;return!_0x2c9b89[_0x4f8230(0x39c)](_0x203df5=>!_0x523427['isExistField'](_0x203df5))&&(_0x2c9b89['forEach'](_0x84067a=>_0x523427[_0x4f8230(0x398)](_0x84067a)),_0x523427[_0x4f8230(0x293)](_0x154463[_0x4f8230(0x1f4)])<0x2&&_0x523427[_0x4f8230(0x2b8)]()!==-0x1&&_0x523427[_0x4f8230(0x39a)](_0x3e4cd7[_0x4f8230(0x2f6)],-0x1),!0x0);}const Ln={'pie':{'labelStyle':{'contentType':_0x1b83a2[_0x3bff99(0x212)]|_0x1b83a2[_0x3bff99(0x39f)]}}};let Rn=class extends _0x16bb26{constructor(_0x1cd5a,_0x3b571,_0x5272f1,_0x4b3a25){const _0xd84a60=_0x3bff99;super(),this[_0xd84a60(0x33a)]=_0x1cd5a,this['_chartModelService']=_0x3b571,this['_commandService']=_0x5272f1,this['_logService']=_0x4b3a25,P(this,'_bindings',new Map()),P(this,'_pendingResults',new Map()),P(this,_0xd84a60(0x3a8),new Map()),this[_0xd84a60(0x35e)]();}[_0x3bff99(0x359)](){const _0xcb1594=_0x3bff99;for(let _0xd5d2b2 of Array['from'](this[_0xcb1594(0x2f2)][_0xcb1594(0x36f)]()))this['_removeBinding'](_0xd5d2b2);this[_0xcb1594(0x29b)][_0xcb1594(0x3b8)](),this['_pendingStates'][_0xcb1594(0x3b8)](),super['dispose']();}[_0x3bff99(0x35e)](){const _0x11dded=_0x3bff99;this['disposeWithMe'](this[_0x11dded(0x33a)][_0x11dded(0x3b6)]['subscribe'](_0x47a2d4=>{const _0x5b4f11=_0x11dded;if(_0x47a2d4[_0x5b4f11(0x1fe)]===_0x5b4f11(0x304)&&_0x47a2d4[_0x5b4f11(0x2aa)])this[_0x5b4f11(0x348)](_0x47a2d4[_0x5b4f11(0x2aa)]['chart']);else{if(_0x47a2d4['type']===_0x5b4f11(0x2fa))this[_0x5b4f11(0x2a9)](_0x47a2d4[_0x5b4f11(0x395)]);else{if(_0x47a2d4['type']===_0x5b4f11(0x219)&&_0x47a2d4['current']){var _0x9d6b72;this[_0x5b4f11(0x308)](_0x47a2d4[_0x5b4f11(0x2aa)][_0x5b4f11(0x219)]);let _0x392443=(_0x9d6b72=this['_bindings'][_0x5b4f11(0x370)](_0x47a2d4[_0x5b4f11(0x395)]))==null?void 0x0:_0x9d6b72['latestResult'];_0x392443&&this[_0x5b4f11(0x2e1)](_0x392443);}else{if(_0x47a2d4['type']===_0x5b4f11(0x2dc)&&_0x47a2d4[_0x5b4f11(0x2aa)]){var _0x222361;let _0x3acf9e=(_0x222361=this['_bindings']['get'](_0x47a2d4[_0x5b4f11(0x395)]))==null?void 0x0:_0x222361['latestResult'];_0x3acf9e&&this['_updateChartContext'](_0x3acf9e);}}}}})),this[_0x11dded(0x257)](this[_0x11dded(0x21c)]['onCommandExecuted'](_0x59e95d=>this['_handleCommand'](_0x59e95d)));for(let {model:_0x1894eb}of this[_0x11dded(0x33a)][_0x11dded(0x306)]())this['_createBinding'](_0x1894eb['snapshot'][_0x11dded(0x219)]);}['_handleCommand'](_0x32ea36){const _0x56acb8=_0x3bff99;_0x32ea36['id']===V['id']?this[_0x56acb8(0x24f)](_0x32ea36[_0x56acb8(0x267)]):_0x32ea36['id']===H['id']&&this['_consumeState'](_0x32ea36[_0x56acb8(0x267)]);}[_0x3bff99(0x348)](_0x31c8c2){const _0x5f0b9b=_0x3bff99;if(this[_0x5f0b9b(0x2f2)][_0x5f0b9b(0x27f)](_0x31c8c2['id'])||_0x51e4fa(_0x31c8c2['chartType'])===_0x48872b['Unsupported'])return;if(this['_chartModelService'][_0x5f0b9b(0x37f)](_0x31c8c2['id'])){this[_0x5f0b9b(0x31b)][_0x5f0b9b(0x2d7)]('[PivotChartRuntimeController]',{'pivotChartId':_0x31c8c2['id'],'error':_0x5f0b9b(0x32e)});return;}let _0x2ebe93=new _0x353f52();this[_0x5f0b9b(0x25f)][_0x5f0b9b(0x20c)](_0x31c8c2['id'],{'dataSource':_0x2ebe93,'chartType':_0x31c8c2[_0x5f0b9b(0x32a)],'context':_0x31c8c2[_0x5f0b9b(0x244)],'style':Bn(_0x31c8c2[_0x5f0b9b(0x2f9)]),'dataAggregation':_0x31c8c2['dataAggregation']}),this[_0x5f0b9b(0x2f2)][_0x5f0b9b(0x27b)](_0x31c8c2['id'],{'dataSource':_0x2ebe93});let _0x4cbff4=this[_0x5f0b9b(0x3a8)][_0x5f0b9b(0x370)](_0x31c8c2['id']);_0x4cbff4&&(this[_0x5f0b9b(0x3a8)]['delete'](_0x31c8c2['id']),this[_0x5f0b9b(0x22f)](_0x4cbff4));let _0x3c0add=this['_pendingResults'][_0x5f0b9b(0x370)](_0x31c8c2['id']);_0x3c0add&&(this[_0x5f0b9b(0x29b)][_0x5f0b9b(0x373)](_0x31c8c2['id']),this[_0x5f0b9b(0x24f)](_0x3c0add));}[_0x3bff99(0x2a9)](_0x5288fa){const _0x8da6e3=_0x3bff99;let _0x13fa50=this[_0x8da6e3(0x2f2)][_0x8da6e3(0x370)](_0x5288fa);this[_0x8da6e3(0x2f2)][_0x8da6e3(0x373)](_0x5288fa),this[_0x8da6e3(0x29b)][_0x8da6e3(0x373)](_0x5288fa),this[_0x8da6e3(0x3a8)][_0x8da6e3(0x373)](_0x5288fa),_0x13fa50&&(this[_0x8da6e3(0x25f)][_0x8da6e3(0x31d)](_0x5288fa),_0x13fa50['dataSource'][_0x8da6e3(0x359)]());}['_applyChartSnapshot'](_0xa874){const _0x167776=_0x3bff99;if(_0x51e4fa(_0xa874['chartType'])===_0x48872b['Unsupported']){this[_0x167776(0x2a9)](_0xa874['id']);return;}let _0x41b896=this['_chartModelService'][_0x167776(0x37f)](_0xa874['id']);if(!_0x41b896){this['_createBinding'](_0xa874);return;}_0x41b896[_0x167776(0x2e2)](_0xa874['chartType']),_0xa874[_0x167776(0x244)]!==void 0x0&&_0x41b896[_0x167776(0x337)]({..._0xa874['context'],'categoryHierarchyInteraction':_0x41b896[_0x167776(0x244)][_0x167776(0x2c2)],'categoryHierarchyControls':_0x41b896[_0x167776(0x244)]['categoryHierarchyControls'],'fieldButtons':_0x41b896[_0x167776(0x244)][_0x167776(0x3b5)]}),_0x41b896[_0x167776(0x2a5)](Bn(_0xa874[_0x167776(0x2f9)])),_0x41b896[_0x167776(0x2ea)](_0xa874['dataAggregation']??{});}[_0x3bff99(0x24f)](_0x932957){const _0x3a85e0=_0x3bff99;let {result:_0x5ed562}=_0x932957;if(!this[_0x3a85e0(0x1f6)](_0x932957['unitId'],_0x932957[_0x3a85e0(0x2e0)],_0x5ed562[_0x3a85e0(0x395)]))return;let _0x164a55=this['_bindings']['get'](_0x5ed562[_0x3a85e0(0x395)]);if(!_0x164a55){this[_0x3a85e0(0x3be)](_0x932957);return;}_0x164a55[_0x3a85e0(0x341)][_0x3a85e0(0x2ca)](_0x5ed562)&&(_0x164a55['latestResult']=_0x5ed562,this[_0x3a85e0(0x286)](_0x5ed562[_0x3a85e0(0x395)],_0x5ed562[_0x3a85e0(0x2d3)]),this[_0x3a85e0(0x2e1)](_0x5ed562));}['_syncOwnedCacheReference'](_0x300c85,_0x3086e5){const _0x2cd0d4=_0x3bff99;var _0x3e30f5;let _0x4269cb=(_0x3e30f5=this['_pivotChartModel'][_0x2cd0d4(0x2a8)](_0x300c85))==null?void 0x0:_0x3e30f5[_0x2cd0d4(0x377)],_0x2b4d01=this[_0x2cd0d4(0x33a)][_0x2cd0d4(0x20f)](_0x300c85);_0x4269cb&&_0x3b1bb7(_0x4269cb)&&_0x4269cb['cacheRef'][_0x2cd0d4(0x34a)]===_0x525a0e[_0x2cd0d4(0x345)]&&_0x2b4d01&&_0x4269cb[_0x2cd0d4(0x266)]['pivotCacheId']!==_0x3086e5&&this[_0x2cd0d4(0x21c)][_0x2cd0d4(0x32c)](Dt['id'],{'unitId':_0x2b4d01['unitId'],'subUnitId':_0x2b4d01[_0x2cd0d4(0x2e0)],'pivotChartId':_0x300c85,'pivotCacheId':_0x3086e5});}[_0x3bff99(0x2e1)](_0x142bcd){const _0x133ea6=_0x3bff99;var _0xc5096f;let _0x4e4ad0=(_0xc5096f=this[_0x133ea6(0x33a)][_0x133ea6(0x2a8)](_0x142bcd[_0x133ea6(0x395)]))==null?void 0x0:_0xc5096f[_0x133ea6(0x377)],_0x501e62=this['_chartModelService'][_0x133ea6(0x37f)](_0x142bcd['pivotChartId']),_0x307e75=_0x4e4ad0&&_0x3b1bb7(_0x4e4ad0)?_0x4e4ad0[_0x133ea6(0x25b)]:void 0x0,_0x18d451=_0x142bcd[_0x133ea6(0x32b)]??(_0x307e75==null?void 0x0:_0x307e75['rowFields'][_0x133ea6(0x25d)]),_0x9d3886=_0x142bcd[_0x133ea6(0x34c)]??(_0x307e75==null?void 0x0:_0x307e75[_0x133ea6(0x2ef)][_0x133ea6(0x25d)]),_0xfa5a37=zn(_0x142bcd[_0x133ea6(0x381)],_0x18d451,_0x9d3886),_0x350a05=_0x246b73(_0x4e4ad0==null?void 0x0:_0x4e4ad0[_0x133ea6(0x2dc)]),_0x4640ad=_0x142bcd[_0x133ea6(0x1f1)]['source'][_0x133ea6(0x254)]((_0x5e95b1,_0x4b0430)=>_0x4b0430),_0x39dcfa=_0x501e62&&_0xfa5a37!==void 0x0?_0x364767(_0x142bcd[_0x133ea6(0x1f1)],{..._0x501e62[_0x133ea6(0x244)],'categoryIndexes':_0x4640ad['slice'](0x0,_0xfa5a37),'categoryHierarchyInteraction':_0x18d451>0x1,'categoryHierarchyControls':_0x350a05[_0x133ea6(0x204)]&&_0x18d451>0x1,'fieldButtons':_0x350a05[_0x133ea6(0x3b4)]?_0x142bcd[_0x133ea6(0x3b5)]:void 0x0,'multiLevelCategoryAxis':_0xfa5a37>0x1,'seriesIndexes':_0x4640ad[_0x133ea6(0x23c)](_0xfa5a37)},!0x1):this[_0x133ea6(0x25f)][_0x133ea6(0x255)](_0x142bcd[_0x133ea6(0x395)]);_0x501e62&&_0x39dcfa&&_0x501e62[_0x133ea6(0x337)]({..._0x39dcfa,'categoryHierarchyInteraction':_0x18d451!==void 0x0&&_0x18d451>0x1,'categoryHierarchyControls':_0x350a05[_0x133ea6(0x204)]&&_0x18d451!==void 0x0&&_0x18d451>0x1,'fieldButtons':_0x350a05[_0x133ea6(0x3b4)]?_0x142bcd[_0x133ea6(0x3b5)]:void 0x0});}[_0x3bff99(0x22f)](_0xa7e8e9){const _0x3a416a=_0x3bff99;if(!this['_isExpectedScope'](_0xa7e8e9[_0x3a416a(0x261)],_0xa7e8e9['subUnitId'],_0xa7e8e9['pivotChartId']))return;let _0x214e66=this[_0x3a416a(0x2f2)][_0x3a416a(0x370)](_0xa7e8e9[_0x3a416a(0x395)]);if(!_0x214e66){this['_keepLatestState'](_0xa7e8e9);return;}let _0x1db56e=Vn(_0xa7e8e9[_0x3a416a(0x2d1)]);_0x1db56e&&(_0xa7e8e9[_0x3a416a(0x2d1)][_0x3a416a(0x2fb)]===_0x27ca02['LOADING']?_0x214e66[_0x3a416a(0x341)][_0x3a416a(0x2bc)](_0x1db56e):(_0xa7e8e9['state']['status']===_0x27ca02[_0x3a416a(0x36d)]||_0xa7e8e9[_0x3a416a(0x2d1)][_0x3a416a(0x2fb)]===_0x27ca02[_0x3a416a(0x333)])&&_0x214e66[_0x3a416a(0x341)][_0x3a416a(0x382)](_0x1db56e,_0xa7e8e9[_0x3a416a(0x2d1)]['error']));}[_0x3bff99(0x3be)](_0x21ddf7){const _0xbb5054=_0x3bff99;let _0x2162e3=this[_0xbb5054(0x29b)][_0xbb5054(0x370)](_0x21ddf7[_0xbb5054(0x2cf)][_0xbb5054(0x395)]);(!_0x2162e3||_0x2162e3[_0xbb5054(0x2cf)]['requestId']<=_0x21ddf7[_0xbb5054(0x2cf)][_0xbb5054(0x2eb)])&&this[_0xbb5054(0x29b)]['set'](_0x21ddf7['result'][_0xbb5054(0x395)],_0x21ddf7);}['_keepLatestState'](_0x251762){const _0xb94c39=_0x3bff99;let _0x31f524=this[_0xb94c39(0x3a8)][_0xb94c39(0x370)](_0x251762['pivotChartId']),_0x5ecc4a=(_0x31f524==null?void 0x0:_0x31f524['state']['requestId'])??-0x1,_0x72aa59=_0x251762[_0xb94c39(0x2d1)][_0xb94c39(0x2eb)]??-0x1;(!_0x31f524||_0x5ecc4a<=_0x72aa59)&&this[_0xb94c39(0x3a8)][_0xb94c39(0x27b)](_0x251762[_0xb94c39(0x395)],_0x251762);}['_isExpectedScope'](_0xe4a627,_0x145114,_0x2cd95d){const _0x5b61f3=_0x3bff99;let _0x5c409d=this['_pivotChartModel'][_0x5b61f3(0x20f)](_0x2cd95d);return(_0x5c409d==null?void 0x0:_0x5c409d[_0x5b61f3(0x261)])===_0xe4a627&&_0x5c409d[_0x5b61f3(0x2e0)]===_0x145114;}};Rn=I([F(0x0,_0x1ae7ee(L)),F(0x1,_0x1ae7ee(_0x256b8d)),F(0x2,_0x3d27ba),F(0x3,_0x1a9f32)],Rn);function zn(_0x48ddfd,_0x3f5375,_0x3f576b){return _0x48ddfd??(_0x3f576b===0x1?_0x3f5375:void 0x0);}function Bn(_0x4c814d){return _0x11e03d(Ln,_0x4c814d??{});}function Vn(_0x16d176){let {requestId:_0x4fb6d4,reportRevision:_0x3fca39,pivotCacheId:_0x1aa411,cacheRevision:_0x49d4a0}=_0x16d176;if(_0x4fb6d4!==void 0x0&&_0x3fca39!==void 0x0&&_0x1aa411!==void 0x0&&_0x49d4a0!==void 0x0)return{'requestId':_0x4fb6d4,'reportRevision':_0x3fca39,'pivotCacheId':_0x1aa411,'cacheRevision':_0x49d4a0};}const Hn=[It,hn,Ut,Wt,Gt,an,en,Qt,Xt,qt,zt,Kt,Jt,$t,on,tn,Bt,Ht,Yt,nn,Zt,Vt],Un=[q,J,Et,Dt,kt,At,Ot,V,H,U,W,xt,St,Ct,wt,Tt];let Q=class extends _0x2f2cfb{constructor(_0x4f0bfa=yn,_0x3260d8,_0x1dfaa7,_0x27781d,_0x339ec0){const _0x23abc5=_0x3bff99;super(),this['_config']=_0x4f0bfa,this['_injector']=_0x3260d8,this[_0x23abc5(0x21c)]=_0x1dfaa7,this['_configService']=_0x27781d,this[_0x23abc5(0x26b)]=_0x339ec0;let {..._0x255524}=_0x12d688({},yn,this[_0x23abc5(0x3af)]);this['_configService'][_0x23abc5(0x27c)](vn,_0x255524),this[_0x23abc5(0x2ac)]();}[_0x3bff99(0x262)](){const _0x19ec11=_0x3bff99;let _0x584149=[[L],[G],[wn],[Rn]],_0x34b70e=this[_0x19ec11(0x3af)][_0x19ec11(0x2d2)]!==!0x0&&this[_0x19ec11(0x32f)][_0x19ec11(0x27f)](_0x54080a)&&this[_0x19ec11(0x32f)][_0x19ec11(0x27f)](_0x58f041);_0x34b70e&&_0x584149['push']([X],[Z]),_0x584149[_0x19ec11(0x25e)](_0x2a26d0=>this[_0x19ec11(0x32f)][_0x19ec11(0x304)](_0x2a26d0)),this[_0x19ec11(0x32f)][_0x19ec11(0x370)](L),this[_0x19ec11(0x32f)][_0x19ec11(0x370)](G),this['_injector'][_0x19ec11(0x370)](wn),this[_0x19ec11(0x32f)][_0x19ec11(0x370)](Rn),_0x34b70e&&(this[_0x19ec11(0x32f)][_0x19ec11(0x370)](X),this[_0x19ec11(0x32f)][_0x19ec11(0x370)](Z));}[_0x3bff99(0x2ac)](){const _0x44da05=_0x3bff99;[...Hn,...Un][_0x44da05(0x25e)](_0x2ccd0d=>{this['disposeWithMe'](this['_commandService']['registerCommand'](_0x2ccd0d));}),Un[_0x44da05(0x25e)](_0x5e9700=>{const _0x53dd1f=_0x44da05;var _0x42a1ef;(_0x42a1ef=this[_0x53dd1f(0x26b)])==null||_0x42a1ef[_0x53dd1f(0x343)](_0x5e9700);});}};P(Q,_0x3bff99(0x366),dt),P(Q,_0x3bff99(0x201),bn),P(Q,_0x3bff99(0x258),xn),P(Q,_0x3bff99(0x1fe),_0x53e042['UNIVER_SHEET']),Q=I([_0x3478f6(_0x133fb2,_0x10178b),F(0x1,_0x1ae7ee(_0x591ca1)),F(0x2,_0x3d27ba),F(0x3,_0x3b855f),F(0x4,_0x27a100(_0x3a9afd))],Q);let $=class extends _0x2f2cfb{constructor(_0x208c4c,_0x565473,_0x44de82){const _0x586bdc=_0x3bff99;super(),this[_0x586bdc(0x32f)]=_0x565473,this['_commandService']=_0x44de82,Un[_0x586bdc(0x25e)](_0x4e51b3=>{const _0x1ce1f0=_0x586bdc;this[_0x1ce1f0(0x257)](this[_0x1ce1f0(0x21c)][_0x1ce1f0(0x360)](_0x4e51b3));});}[_0x3bff99(0x262)](){const _0x112fcc=_0x3bff99;[[L],[X],[Z]][_0x112fcc(0x25e)](_0x35afad=>this[_0x112fcc(0x32f)][_0x112fcc(0x304)](_0x35afad)),this[_0x112fcc(0x32f)][_0x112fcc(0x370)](L),this[_0x112fcc(0x32f)][_0x112fcc(0x370)](X),this[_0x112fcc(0x32f)]['get'](Z);}};P($,_0x3bff99(0x366),dt+'_WORKER'),P($,_0x3bff99(0x201),bn),P($,_0x3bff99(0x258),xn),P($,'type',_0x53e042[_0x3bff99(0x2c8)]),$=I([_0x3478f6(_0x10178b),F(0x1,_0x1ae7ee(_0x591ca1)),F(0x2,_0x3d27ba)],$);export{It as AddPivotChartCommand,Ut as AddPivotChartFieldCommand,q as AddPivotChartMutation,hn as InsertPivotChartCommand,Wt as MovePivotChartFieldCommand,Ft as PIVOT_CHART_VALUES_FIELD_ID,mn as PivotChartConfigAdapter,G as PivotChartRPCService,zt as RemovePivotChartCommand,Gt as RemovePivotChartFieldCommand,J as RemovePivotChartMutation,U as RequestPivotChartSourceLocalMutation,vn as SHEETS_PIVOT_CHART_PLUGIN_CONFIG_KEY,dt as SHEET_PIVOT_CHART_PLUGIN,V as SendPivotChartResultLocalMutation,W as SendPivotChartSourceLocalMutation,H as SendPivotChartStateLocalMutation,an as SetPivotChartCategoryLevelCommand,Kt as SetPivotChartCollapseCommand,en as SetPivotChartDateGroupCommand,Qt as SetPivotChartFieldSettingCommand,Xt as SetPivotChartFieldsConfigCommand,qt as SetPivotChartFilterCommand,Jt as SetPivotChartSortCommand,$t as SetPivotChartValueFilterCommand,L as SheetsPivotChartModel,ft as SheetsPivotChartModelChangeType,on as StepPivotChartCategoryLevelCommand,Q as UniverSheetsPivotChartPlugin,$ as UniverSheetsPivotChartWorkerPlugin,Bt as UpdatePivotChartCommand,Ht as UpdatePivotChartControlsCommand,kt as UpdatePivotChartControlsMutation,Et as UpdatePivotChartMutation,Yt as UpdatePivotChartPresentationCommand,At as UpdatePivotChartPresentationMutation,nn as UpdatePivotChartSourceRangeCommand,Zt as UpdatePivotChartValuePositionCommand,Vt as UpdatePivotChartVisualCommand,Ot as UpdatePivotChartVisualMutation};
@@ -0,0 +1,14 @@
1
+ import type { ChartPendingConfig, IChartBuilderAdapter } from '@univerjs-pro/engine-chart';
2
+ import type { Injector } from '@univerjs/core';
3
+ export interface IPivotChartConfigAdapterContext {
4
+ unitId: string;
5
+ subUnitId: string;
6
+ pivotChartId: string;
7
+ injector: Injector;
8
+ }
9
+ /** Commits Chart editor updates to the persisted PivotChart definition. */
10
+ export declare class PivotChartConfigAdapter implements Pick<IChartBuilderAdapter, 'commit'> {
11
+ private readonly _context;
12
+ constructor(_context: IPivotChartConfigAdapterContext);
13
+ commit(pending: ChartPendingConfig): void;
14
+ }
@@ -0,0 +1,15 @@
1
+ import type { ICommand } from '@univerjs/core';
2
+ import type { IAddPivotChartCommandParams } from './pivot-chart.command';
3
+ interface IPivotChartPosition {
4
+ x: number;
5
+ y: number;
6
+ }
7
+ export type IInsertPivotChartCommandParams = IAddPivotChartCommandParams & {
8
+ position?: IPivotChartPosition;
9
+ width?: number;
10
+ height?: number;
11
+ backgroundColor?: string;
12
+ borderColor?: string;
13
+ };
14
+ export declare const InsertPivotChartCommand: ICommand<IInsertPivotChartCommandParams>;
15
+ export {};
@@ -0,0 +1,124 @@
1
+ import type { IChartSnapshot } from '@univerjs-pro/engine-chart';
2
+ import type { IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFilter, PivotDateGroupFieldDateTypeEnum } from '@univerjs-pro/engine-pivot';
3
+ import type { IPivotChartControls, IPivotChartPivotTableReference } from '@univerjs-pro/pivot-chart';
4
+ import type { IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
5
+ import type { IAccessor, ICommand } from '@univerjs/core';
6
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
7
+ import type { ISheetDrawing } from '@univerjs/sheets-drawing';
8
+ import type { IAddPivotChartMutationParams, IPivotChartFieldSettingOptions, IPivotChartSourcePayload } from '../../types';
9
+ import { PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
10
+ interface IAddPivotChartCommandBaseParams extends ISheetCommandSharedParams {
11
+ pivotChartId?: string;
12
+ chart?: Omit<IChartSnapshot, 'id'>;
13
+ name?: string;
14
+ controls?: Partial<IPivotChartControls>;
15
+ }
16
+ export type IAddPivotChartCommandParams = IAddPivotChartCommandBaseParams & ({
17
+ sourceRangeInfo: IUnitRangeNameWithSubUnitId;
18
+ pivotTableRef?: never;
19
+ pivotModel?: IPivotTableSnapshot;
20
+ } | {
21
+ sourceRangeInfo?: never;
22
+ pivotTableRef: IPivotChartPivotTableReference;
23
+ pivotModel?: never;
24
+ });
25
+ export interface IRemovePivotChartCommandParams extends ISheetCommandSharedParams {
26
+ pivotChartId: string;
27
+ }
28
+ export interface IUpdatePivotChartCommandParams extends IRemovePivotChartCommandParams {
29
+ pivotModel: IPivotTableSnapshot;
30
+ }
31
+ export interface IUpdatePivotChartVisualCommandParams extends IRemovePivotChartCommandParams {
32
+ chart: IChartSnapshot;
33
+ }
34
+ export interface IUpdatePivotChartControlsCommandParams extends IRemovePivotChartCommandParams {
35
+ controls: IPivotChartControls;
36
+ }
37
+ export interface IUpdatePivotChartPresentationCommandParams extends IUpdatePivotChartControlsCommandParams {
38
+ chart: IChartSnapshot;
39
+ name: string | undefined;
40
+ drawing?: ISheetDrawing;
41
+ }
42
+ export interface IAddPivotChartFieldCommandParams extends IRemovePivotChartCommandParams {
43
+ dataFieldId: string;
44
+ fieldArea: PivotTableFiledAreaEnum;
45
+ index: number;
46
+ }
47
+ export interface IMovePivotChartFieldCommandParams extends IRemovePivotChartCommandParams {
48
+ fieldId: string;
49
+ fieldArea: PivotTableFiledAreaEnum;
50
+ index: number;
51
+ }
52
+ export interface IRemovePivotChartFieldCommandParams extends IRemovePivotChartCommandParams {
53
+ fieldIds: string[];
54
+ }
55
+ export interface ISetPivotChartCollapseCommandParams extends IRemovePivotChartCommandParams {
56
+ fieldId: string;
57
+ collapse: boolean;
58
+ item?: string;
59
+ }
60
+ export interface ISetPivotChartFilterCommandParams extends IRemovePivotChartCommandParams {
61
+ fieldId: string;
62
+ items: string[];
63
+ isAll?: boolean;
64
+ }
65
+ export interface ISetPivotChartSortCommandParams extends IRemovePivotChartCommandParams {
66
+ fieldId: string;
67
+ info?: IPivotTableSortInfo;
68
+ }
69
+ export interface ISetPivotChartFieldsConfigCommandParams extends IRemovePivotChartCommandParams {
70
+ pivotTableConfig: IPivotTableSnapshot;
71
+ }
72
+ export interface IUpdatePivotChartValuePositionCommandParams extends IRemovePivotChartCommandParams {
73
+ position: PivotTableValuePositionEnum;
74
+ index: number;
75
+ }
76
+ export interface ISetPivotChartFieldSettingCommandParams extends IRemovePivotChartCommandParams {
77
+ fieldId: string;
78
+ setting: IPivotChartFieldSettingOptions;
79
+ }
80
+ export interface ISetPivotChartValueFilterCommandParams extends IRemovePivotChartCommandParams {
81
+ fieldId: string;
82
+ valueFilterInfo?: IPivotTableValueFilter;
83
+ }
84
+ export interface ISetPivotChartDateGroupCommandParams extends IRemovePivotChartCommandParams {
85
+ fieldId: string;
86
+ dateType: PivotDateGroupFieldDateTypeEnum;
87
+ }
88
+ export interface IUpdatePivotChartSourceRangeCommandParams extends IRemovePivotChartCommandParams {
89
+ dataRangeInfo: IUnitRangeNameWithSubUnitId;
90
+ }
91
+ interface IUpdateOwnedPivotChartReportCommandParams extends IRemovePivotChartCommandParams {
92
+ pivotModel: IPivotTableSnapshot;
93
+ source: IPivotChartSourcePayload;
94
+ }
95
+ export interface IStepPivotChartCategoryLevelCommandParams extends IRemovePivotChartCommandParams {
96
+ direction: 'expand' | 'collapse';
97
+ }
98
+ export interface ISetPivotChartCategoryLevelCommandParams extends IRemovePivotChartCommandParams {
99
+ fieldId: string;
100
+ }
101
+ export declare const PIVOT_CHART_VALUES_FIELD_ID = "PivotMultipleValueId";
102
+ export declare const AddPivotChartCommand: ICommand<IAddPivotChartCommandParams>;
103
+ export declare function prepareAddPivotChartMutationParams(accessor: IAccessor, params: IAddPivotChartCommandParams): Promise<IAddPivotChartMutationParams | undefined>;
104
+ export declare const RemovePivotChartCommand: ICommand<IRemovePivotChartCommandParams>;
105
+ export declare const UpdatePivotChartCommand: ICommand<IUpdatePivotChartCommandParams>;
106
+ export declare const UpdatePivotChartVisualCommand: ICommand<IUpdatePivotChartVisualCommandParams>;
107
+ export declare const UpdatePivotChartControlsCommand: ICommand<IUpdatePivotChartControlsCommandParams>;
108
+ export declare const AddPivotChartFieldCommand: ICommand<IAddPivotChartFieldCommandParams>;
109
+ export declare const MovePivotChartFieldCommand: ICommand<IMovePivotChartFieldCommandParams>;
110
+ export declare const RemovePivotChartFieldCommand: ICommand<IRemovePivotChartFieldCommandParams>;
111
+ export declare const SetPivotChartCollapseCommand: ICommand<ISetPivotChartCollapseCommandParams>;
112
+ export declare const SetPivotChartFilterCommand: ICommand<ISetPivotChartFilterCommandParams>;
113
+ export declare const SetPivotChartSortCommand: ICommand<ISetPivotChartSortCommandParams>;
114
+ export declare const UpdatePivotChartPresentationCommand: ICommand<IUpdatePivotChartPresentationCommandParams>;
115
+ export declare const SetPivotChartFieldsConfigCommand: ICommand<ISetPivotChartFieldsConfigCommandParams>;
116
+ export declare const UpdatePivotChartValuePositionCommand: ICommand<IUpdatePivotChartValuePositionCommandParams>;
117
+ export declare const SetPivotChartFieldSettingCommand: ICommand<ISetPivotChartFieldSettingCommandParams>;
118
+ export declare const SetPivotChartValueFilterCommand: ICommand<ISetPivotChartValueFilterCommandParams>;
119
+ export declare const SetPivotChartDateGroupCommand: ICommand<ISetPivotChartDateGroupCommandParams>;
120
+ export declare const UpdateOwnedPivotChartReportCommand: ICommand<IUpdateOwnedPivotChartReportCommandParams>;
121
+ export declare const UpdatePivotChartSourceRangeCommand: ICommand<IUpdatePivotChartSourceRangeCommandParams>;
122
+ export declare const SetPivotChartCategoryLevelCommand: ICommand<ISetPivotChartCategoryLevelCommandParams>;
123
+ export declare const StepPivotChartCategoryLevelCommand: ICommand<IStepPivotChartCategoryLevelCommandParams>;
124
+ export {};
@@ -0,0 +1,11 @@
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IRequestPivotChartEditLocalMutationParams, IRequestPivotChartFilterInfoLocalMutationParams, IRequestPivotChartSourceLocalMutationParams, ISendPivotChartEditLocalMutationParams, ISendPivotChartFilterInfoLocalMutationParams, ISendPivotChartResultLocalMutationParams, ISendPivotChartSourceLocalMutationParams, ISendPivotChartSourceMetadataLocalMutationParams, ISendPivotChartStateLocalMutationParams } from '../../types';
3
+ export declare const SendPivotChartResultLocalMutation: IMutation<ISendPivotChartResultLocalMutationParams>;
4
+ export declare const SendPivotChartStateLocalMutation: IMutation<ISendPivotChartStateLocalMutationParams>;
5
+ export declare const RequestPivotChartSourceLocalMutation: IMutation<IRequestPivotChartSourceLocalMutationParams>;
6
+ export declare const SendPivotChartSourceLocalMutation: IMutation<ISendPivotChartSourceLocalMutationParams>;
7
+ export declare const SendPivotChartSourceMetadataLocalMutation: IMutation<ISendPivotChartSourceMetadataLocalMutationParams>;
8
+ export declare const RequestPivotChartEditLocalMutation: IMutation<IRequestPivotChartEditLocalMutationParams>;
9
+ export declare const SendPivotChartEditLocalMutation: IMutation<ISendPivotChartEditLocalMutationParams>;
10
+ export declare const RequestPivotChartFilterInfoLocalMutation: IMutation<IRequestPivotChartFilterInfoLocalMutationParams>;
11
+ export declare const SendPivotChartFilterInfoLocalMutation: IMutation<ISendPivotChartFilterInfoLocalMutationParams>;
@@ -0,0 +1,9 @@
1
+ import type { IMutation } from '@univerjs/core';
2
+ import type { IAddPivotChartMutationParams, IRemovePivotChartMutationParams, IUpdatePivotChartCacheReferenceMutationParams, IUpdatePivotChartControlsMutationParams, IUpdatePivotChartMutationParams, IUpdatePivotChartPresentationMutationParams, IUpdatePivotChartVisualMutationParams } from '../../types';
3
+ export declare const AddPivotChartMutation: IMutation<IAddPivotChartMutationParams>;
4
+ export declare const RemovePivotChartMutation: IMutation<IRemovePivotChartMutationParams>;
5
+ export declare const UpdatePivotChartMutation: IMutation<IUpdatePivotChartMutationParams>;
6
+ export declare const UpdatePivotChartCacheReferenceMutation: IMutation<IUpdatePivotChartCacheReferenceMutationParams>;
7
+ export declare const UpdatePivotChartVisualMutation: IMutation<IUpdatePivotChartVisualMutationParams>;
8
+ export declare const UpdatePivotChartControlsMutation: IMutation<IUpdatePivotChartControlsMutationParams>;
9
+ export declare const UpdatePivotChartPresentationMutation: IMutation<IUpdatePivotChartPresentationMutationParams>;
@@ -0,0 +1,6 @@
1
+ export declare const SHEETS_PIVOT_CHART_PLUGIN_CONFIG_KEY = "sheets-pivot-chart.config";
2
+ export declare const configSymbol: unique symbol;
3
+ export interface IUniverSheetsPivotChartConfig {
4
+ notExecuteFormula?: boolean;
5
+ }
6
+ export declare const defaultPluginConfig: IUniverSheetsPivotChartConfig;
@@ -0,0 +1,25 @@
1
+ import { PivotCalculatorController, SheetsPivotCacheService, SheetsPivotDataSourceModel } from '@univerjs-pro/sheets-pivot';
2
+ import { Disposable, ICommandService, ILogService } from '@univerjs/core';
3
+ import { SheetsPivotChartModel } from '../models/sheets-pivot-chart.model';
4
+ export declare class PivotChartCalculationController extends Disposable {
5
+ private readonly _pivotChartModel;
6
+ private readonly _dataSourceModel;
7
+ private readonly _cacheService;
8
+ private readonly _commandService;
9
+ private readonly _logService;
10
+ private readonly _pivotCalculatorController?;
11
+ private readonly _runtimes;
12
+ private readonly _linkedChartsByPivotTable;
13
+ constructor(_pivotChartModel: SheetsPivotChartModel, _dataSourceModel: SheetsPivotDataSourceModel, _cacheService: SheetsPivotCacheService, _commandService: ICommandService, _logService: ILogService, _pivotCalculatorController?: PivotCalculatorController | undefined);
14
+ dispose(): void;
15
+ private _init;
16
+ private _sendSource;
17
+ private _createRuntime;
18
+ private _createLinkedRuntime;
19
+ private _handlePivotTableView;
20
+ private _publishLinkedResult;
21
+ private _publishLinkedUnavailable;
22
+ private _hydrateRestoredCollection;
23
+ private _isCollectionHydrated;
24
+ private _disposeRuntime;
25
+ }
@@ -0,0 +1,14 @@
1
+ import { SheetsPivotDataSourceModel, SheetsPivotTableConfigModel } from '@univerjs-pro/sheets-pivot';
2
+ import { Disposable } from '@univerjs/core';
3
+ import { SheetInterceptorService } from '@univerjs/sheets';
4
+ import { SheetsPivotChartModel } from '../models/sheets-pivot-chart.model';
5
+ import { PivotChartRPCService } from '../services/pivot-chart-rpc.service';
6
+ /** Keeps PivotChart definitions and their Sheet Drawing host in the same delete undo/redo transaction. */
7
+ export declare class PivotChartDrawingController extends Disposable {
8
+ private readonly _pivotChartModel;
9
+ private readonly _pivotConfigModel;
10
+ private readonly _rpcService;
11
+ private readonly _dataSourceModel?;
12
+ constructor(sheetInterceptorService: SheetInterceptorService, _pivotChartModel: SheetsPivotChartModel, _pivotConfigModel: SheetsPivotTableConfigModel, _rpcService: PivotChartRPCService, _dataSourceModel?: SheetsPivotDataSourceModel | undefined);
13
+ private _getDrawingMutations;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { SheetsPivotDataSourceModel } from '@univerjs-pro/sheets-pivot';
2
+ import { Disposable, ICommandService, Injector } from '@univerjs/core';
3
+ import { SheetsPivotChartModel } from '../models/sheets-pivot-chart.model';
4
+ export declare class PivotChartEditController extends Disposable {
5
+ private readonly _pivotChartModel;
6
+ private readonly _dataSourceModel;
7
+ private readonly _injector;
8
+ private readonly _commandService;
9
+ constructor(_pivotChartModel: SheetsPivotChartModel, _dataSourceModel: SheetsPivotDataSourceModel, _injector: Injector, _commandService: ICommandService);
10
+ private _edit;
11
+ private _getFilterInfo;
12
+ private _createPivotTable;
13
+ private _createDetachedPivotTable;
14
+ private _publishSource;
15
+ private _sendEditError;
16
+ private _sendFilterError;
17
+ }
@@ -0,0 +1,26 @@
1
+ import { ChartModelService } from '@univerjs-pro/sheets-chart';
2
+ import { Disposable, ICommandService, ILogService } from '@univerjs/core';
3
+ import { SheetsPivotChartModel } from '../models/sheets-pivot-chart.model';
4
+ export declare class PivotChartRuntimeController extends Disposable {
5
+ private readonly _pivotChartModel;
6
+ private readonly _chartModelService;
7
+ private readonly _commandService;
8
+ private readonly _logService;
9
+ private readonly _bindings;
10
+ private readonly _pendingResults;
11
+ private readonly _pendingStates;
12
+ constructor(_pivotChartModel: SheetsPivotChartModel, _chartModelService: ChartModelService, _commandService: ICommandService, _logService: ILogService);
13
+ dispose(): void;
14
+ private _init;
15
+ private _handleCommand;
16
+ private _createBinding;
17
+ private _removeBinding;
18
+ private _applyChartSnapshot;
19
+ private _consumeResult;
20
+ private _syncOwnedCacheReference;
21
+ private _updateChartContext;
22
+ private _consumeState;
23
+ private _keepLatestResult;
24
+ private _keepLatestState;
25
+ private _isExpectedScope;
26
+ }
@@ -0,0 +1,15 @@
1
+ import { PivotChartSourceKind } from '@univerjs-pro/pivot-chart';
2
+ import { FEnum } from '@univerjs/core/facade';
3
+ /** @ignore */
4
+ export interface IFSheetsPivotChartEnumMixin {
5
+ /** Identifies whether a PivotChart owns a range report or references a PivotTable report. */
6
+ PivotChartSourceKind: typeof PivotChartSourceKind;
7
+ }
8
+ /** @ignore */
9
+ export declare class FSheetsPivotChartEnumMixin extends FEnum implements IFSheetsPivotChartEnumMixin {
10
+ get PivotChartSourceKind(): typeof PivotChartSourceKind;
11
+ }
12
+ declare module '@univerjs/core/facade' {
13
+ interface FEnum extends IFSheetsPivotChartEnumMixin {
14
+ }
15
+ }