@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
@@ -0,0 +1,28 @@
1
+ import { FWorkbook } from '@univerjs/sheets/facade';
2
+ import { FSheetPivotChart } from './f-pivot-chart';
3
+ /** @ignore */
4
+ export interface IFWorkbookPivotChartMixin {
5
+ /**
6
+ * Returns a PivotChart in this workbook by its stable identifier.
7
+ *
8
+ * @param {string} pivotChartId The identifier returned by `FSheetPivotChart.getId()`.
9
+ * @returns {FSheetPivotChart | null} A live facade, or `null` if it is absent from this workbook.
10
+ * @example
11
+ * ```ts
12
+ * import '@univerjs-pro/sheets-pivot-chart/facade';
13
+ *
14
+ * const fWorkbook = univerAPI.getActiveWorkbook();
15
+ * const fPivotChart = fWorkbook.getPivotChartById('pivot-chart-1');
16
+ * console.log(fPivotChart?.getInfo());
17
+ * ```
18
+ */
19
+ getPivotChartById(pivotChartId: string): FSheetPivotChart | null;
20
+ }
21
+ /** @ignore */
22
+ export declare class FWorkbookPivotChartMixin extends FWorkbook implements IFWorkbookPivotChartMixin {
23
+ getPivotChartById(pivotChartId: string): FSheetPivotChart | null;
24
+ }
25
+ declare module '@univerjs/sheets/facade' {
26
+ interface FWorkbook extends IFWorkbookPivotChartMixin {
27
+ }
28
+ }
@@ -0,0 +1,61 @@
1
+ import type { PivotChartTypeString } from '@univerjs-pro/pivot-chart';
2
+ import type { ISheetPivotChartInfo } from '@univerjs-pro/sheets-pivot-chart';
3
+ import type { FSheetPivotChartBuilderOf } from './f-pivot-chart-builder';
4
+ import { FWorksheet } from '@univerjs/sheets/facade';
5
+ import { FSheetPivotChart } from './f-pivot-chart';
6
+ /** @ignore */
7
+ export interface IFWorksheetPivotChartMixin {
8
+ /**
9
+ * Creates a detached, type-specific PivotChart Builder for this worksheet.
10
+ *
11
+ * @param {T} type The supported Chart type.
12
+ * @returns {FSheetPivotChartBuilderOf<T>} A detached Builder that produces insertable PivotChart information.
13
+ * @example
14
+ * ```ts
15
+ * import '@univerjs-pro/sheets-pivot-chart/facade';
16
+ *
17
+ * const fWorkbook = univerAPI.getActiveWorkbook();
18
+ * const fWorksheet = fWorkbook.getSheetByName('Sales');
19
+ * const info = fWorksheet
20
+ * .newPivotChart(univerAPI.Enum.ChartTypeString.Column)
21
+ * .setSource('A1:G100')
22
+ * .setPosition('J2')
23
+ * .setSize(640, 360)
24
+ * .build();
25
+ * const fPivotChart = await fWorksheet.insertPivotChart(info);
26
+ * console.log(fPivotChart.getId());
27
+ * ```
28
+ */
29
+ newPivotChart<T extends PivotChartTypeString>(type: T): FSheetPivotChartBuilderOf<T>;
30
+ /**
31
+ * Inserts a PivotChart from detached Builder information.
32
+ *
33
+ * @param {ISheetPivotChartInfo} info The PivotChart configuration, source, controls, and placement.
34
+ * @returns {Promise<FSheetPivotChart>} A live facade after the model and Drawing are created.
35
+ * @throws If the source, type, placement, or insertion is invalid.
36
+ */
37
+ insertPivotChart(info: ISheetPivotChartInfo): Promise<FSheetPivotChart>;
38
+ /**
39
+ * Returns a PivotChart on this worksheet by its stable identifier.
40
+ * @param {string} pivotChartId The identifier returned by {@link FSheetPivotChart.getId}.
41
+ * @returns {FSheetPivotChart | null} A live facade, or `null` if it is absent from this worksheet.
42
+ */
43
+ getPivotChart(pivotChartId: string): FSheetPivotChart | null;
44
+ /**
45
+ * Returns every PivotChart hosted by this worksheet.
46
+ * @returns {FSheetPivotChart[]} Live PivotChart facades in model order.
47
+ */
48
+ getPivotCharts(): FSheetPivotChart[];
49
+ }
50
+ /** @ignore */
51
+ export declare class FWorksheetPivotChartMixin extends FWorksheet implements IFWorksheetPivotChartMixin {
52
+ newPivotChart<T extends PivotChartTypeString>(type: T): FSheetPivotChartBuilderOf<T>;
53
+ insertPivotChart(info: ISheetPivotChartInfo): Promise<FSheetPivotChart>;
54
+ getPivotChart(pivotChartId: string): FSheetPivotChart | null;
55
+ getPivotCharts(): FSheetPivotChart[];
56
+ private _normalizePivotChartRange;
57
+ }
58
+ declare module '@univerjs/sheets/facade' {
59
+ interface FWorksheet extends IFWorksheetPivotChartMixin {
60
+ }
61
+ }
@@ -0,0 +1,9 @@
1
+ import './f-enum';
2
+ import './f-event';
3
+ import './f-pivot-table';
4
+ import './f-univer';
5
+ import './f-workbook';
6
+ import './f-worksheet';
7
+ export type { IPivotChartChangedEventParams, IPivotChartDataStateChangedEventParams, IPivotChartEventParams, IPivotChartRenderedEventParams, } from './f-event';
8
+ export { FSheetPivotChart } from './f-pivot-chart';
9
+ export type { FLinkedSheetPivotChartBuilderOf, FSheetPivotChartBuilderOf, ISheetPivotChartBuilderMethods, } from './f-pivot-chart-builder';
@@ -0,0 +1,41 @@
1
+ import type { ChartPendingConfig, IChartDescription } from '@univerjs-pro/engine-chart';
2
+ import type { IPivotTableSnapshot, PivotTable } from '@univerjs-pro/engine-pivot';
3
+ import type { IPivotChartControls, IPivotChartDefinition, IPivotChartPivotTableReference } from '@univerjs-pro/pivot-chart';
4
+ import type { ChartAnchorSpec } from '@univerjs-pro/sheets-chart';
5
+ import type { IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
6
+ import type { IPivotChartDataFieldInfo, ISheetPivotChartInfo, PivotChartSourceSpec } from '@univerjs-pro/sheets-pivot-chart';
7
+ import type { ArrangeTypeEnum, Injector } from '@univerjs/core';
8
+ export interface IPivotChartFacadeAdapterContext {
9
+ unitId: string;
10
+ subUnitId: string;
11
+ pivotChartId: string;
12
+ injector: Injector;
13
+ }
14
+ /** Resolves current PivotChart and shared report state without retaining a second report model. */
15
+ export declare class PivotChartFacadeAdapter {
16
+ private readonly _context;
17
+ constructor(_context: IPivotChartFacadeAdapterContext);
18
+ getDefinition(): IPivotChartDefinition;
19
+ getSource(): PivotChartSourceSpec | undefined;
20
+ getSourceRangeInfo(): IUnitRangeNameWithSubUnitId | undefined;
21
+ getFieldsConfig(): IPivotTableSnapshot | undefined;
22
+ getSourceFieldsInfo(): IPivotChartDataFieldInfo[];
23
+ getPivotTableReference(): IPivotChartPivotTableReference | undefined;
24
+ getPivotTableInstance(): PivotTable | undefined;
25
+ getControls(): IPivotChartControls;
26
+ getInfo(): ISheetPivotChartInfo;
27
+ describe(): IChartDescription;
28
+ update(info: ISheetPivotChartInfo): Promise<void>;
29
+ commitVisual(config: ChartPendingConfig): void;
30
+ commitControls(controls: Partial<ReturnType<PivotChartFacadeAdapter['getControls']>>): void;
31
+ setPosition(anchor: ChartAnchorSpec): void;
32
+ setAbsolutePosition(x: number, y: number): void;
33
+ setSize(width: number, height: number): void;
34
+ arrange(type: ArrangeTypeEnum): void;
35
+ setZOrder(index: number): void;
36
+ remove(): Promise<boolean>;
37
+ private _getDefinition;
38
+ private _getOwnedSourceRange;
39
+ private _getReportCollection;
40
+ private _sheetChartAdapter;
41
+ }
@@ -0,0 +1,15 @@
1
+ export { PivotChartConfigAdapter } from './chart-builder/pivot-chart-config-adapter';
2
+ export type { IPivotChartConfigAdapterContext } from './chart-builder/pivot-chart-config-adapter';
3
+ export { InsertPivotChartCommand } from './commands/commands/insert-pivot-chart.command';
4
+ export type { IInsertPivotChartCommandParams } from './commands/commands/insert-pivot-chart.command';
5
+ export { AddPivotChartCommand, AddPivotChartFieldCommand, MovePivotChartFieldCommand, PIVOT_CHART_VALUES_FIELD_ID, RemovePivotChartCommand, RemovePivotChartFieldCommand, SetPivotChartCategoryLevelCommand, SetPivotChartCollapseCommand, SetPivotChartDateGroupCommand, SetPivotChartFieldsConfigCommand, SetPivotChartFieldSettingCommand, SetPivotChartFilterCommand, SetPivotChartSortCommand, SetPivotChartValueFilterCommand, StepPivotChartCategoryLevelCommand, UpdatePivotChartCommand, UpdatePivotChartControlsCommand, UpdatePivotChartPresentationCommand, UpdatePivotChartSourceRangeCommand, UpdatePivotChartValuePositionCommand, UpdatePivotChartVisualCommand, } from './commands/commands/pivot-chart.command';
6
+ export type { IAddPivotChartCommandParams, IAddPivotChartFieldCommandParams, IMovePivotChartFieldCommandParams, IRemovePivotChartCommandParams, IRemovePivotChartFieldCommandParams, ISetPivotChartCollapseCommandParams, ISetPivotChartDateGroupCommandParams, ISetPivotChartFieldsConfigCommandParams, ISetPivotChartFieldSettingCommandParams, ISetPivotChartFilterCommandParams, ISetPivotChartSortCommandParams, ISetPivotChartValueFilterCommandParams, IStepPivotChartCategoryLevelCommandParams, IUpdatePivotChartCommandParams, IUpdatePivotChartControlsCommandParams, IUpdatePivotChartPresentationCommandParams, IUpdatePivotChartSourceRangeCommandParams, IUpdatePivotChartValuePositionCommandParams, IUpdatePivotChartVisualCommandParams, } from './commands/commands/pivot-chart.command';
7
+ export { RequestPivotChartSourceLocalMutation, SendPivotChartResultLocalMutation, SendPivotChartSourceLocalMutation, SendPivotChartStateLocalMutation, } from './commands/mutations/pivot-chart-data-communication.mutation';
8
+ export { AddPivotChartMutation, RemovePivotChartMutation, UpdatePivotChartControlsMutation, UpdatePivotChartMutation, UpdatePivotChartPresentationMutation, UpdatePivotChartVisualMutation, } from './commands/mutations/pivot-chart.mutation';
9
+ export { SHEETS_PIVOT_CHART_PLUGIN_CONFIG_KEY } from './config/config';
10
+ export type { IUniverSheetsPivotChartConfig } from './config/config';
11
+ export { SHEET_PIVOT_CHART_PLUGIN, SheetsPivotChartModel, SheetsPivotChartModelChangeType, } from './models/sheets-pivot-chart.model';
12
+ export type { IPivotChartScope, ISheetsPivotChartModelChange, ISheetsPivotChartModelEntry, ISheetsPivotChartResource, } from './models/sheets-pivot-chart.model';
13
+ export { UniverSheetsPivotChartPlugin, UniverSheetsPivotChartWorkerPlugin } from './plugin';
14
+ export { PivotChartRPCService } from './services/pivot-chart-rpc.service';
15
+ export type { IAddPivotChartMutationParams, IPivotChartDataFieldInfo, IPivotChartFieldSettingOptions, IPivotChartRangeSourceSpec, IPivotChartSourcePayload, IPivotChartTableSourceSpec, IRemovePivotChartMutationParams, IRequestPivotChartSourceLocalMutationParams, ISendPivotChartResultLocalMutationParams, ISendPivotChartSourceLocalMutationParams, ISendPivotChartStateLocalMutationParams, ISheetPivotChartInfo, IUpdatePivotChartControlsMutationParams, IUpdatePivotChartMutationParams, IUpdatePivotChartPresentationMutationParams, IUpdatePivotChartVisualMutationParams, PivotChartRangeInput, PivotChartSourceSpec, } from './types';
@@ -0,0 +1,56 @@
1
+ import type { IPivotChartDefinition } from '@univerjs-pro/pivot-chart';
2
+ import type { Observable } from 'rxjs';
3
+ import { PivotChartModel } from '@univerjs-pro/pivot-chart';
4
+ import { Disposable, ILogService, IResourceManagerService } from '@univerjs/core';
5
+ export declare const SHEET_PIVOT_CHART_PLUGIN = "SHEET_PIVOT_CHART_PLUGIN";
6
+ export declare enum SheetsPivotChartModelChangeType {
7
+ Add = "add",
8
+ Remove = "remove",
9
+ Cache = "cache",
10
+ Pivot = "pivot",
11
+ Chart = "chart",
12
+ Controls = "controls"
13
+ }
14
+ export interface ISheetsPivotChartModelChange {
15
+ type: SheetsPivotChartModelChangeType;
16
+ unitId: string;
17
+ subUnitId: string;
18
+ pivotChartId: string;
19
+ previous?: IPivotChartDefinition;
20
+ current?: IPivotChartDefinition;
21
+ }
22
+ export interface ISheetsPivotChartResource {
23
+ charts: Record<string, IPivotChartDefinition[]>;
24
+ }
25
+ export interface IPivotChartScope {
26
+ unitId: string;
27
+ subUnitId: string;
28
+ }
29
+ export interface ISheetsPivotChartModelEntry extends IPivotChartScope {
30
+ model: PivotChartModel;
31
+ }
32
+ export declare class SheetsPivotChartModel extends Disposable {
33
+ private readonly _resourceManagerService;
34
+ private readonly _logService;
35
+ private readonly _units;
36
+ private readonly _scopeById;
37
+ private readonly _changed$;
38
+ readonly changed$: Observable<ISheetsPivotChartModelChange>;
39
+ constructor(_resourceManagerService: IResourceManagerService, _logService: ILogService);
40
+ add(unitId: string, subUnitId: string, definition: IPivotChartDefinition): boolean;
41
+ get(unitId: string, subUnitId: string, pivotChartId: string): PivotChartModel | undefined;
42
+ getById(pivotChartId: string): PivotChartModel | undefined;
43
+ getScope(pivotChartId: string): IPivotChartScope | undefined;
44
+ getSubUnitModels(unitId: string, subUnitId: string): PivotChartModel[];
45
+ getAllModels(): ISheetsPivotChartModelEntry[];
46
+ remove(unitId: string, subUnitId: string, pivotChartId: string): boolean;
47
+ deleteUnit(unitId: string): void;
48
+ dispose(): void;
49
+ private _ensureModels;
50
+ private _mapModelChange;
51
+ private _serializeUnit;
52
+ private _loadUnit;
53
+ private _parseResource;
54
+ private _normalizeResourceCharts;
55
+ private _initResource;
56
+ }
@@ -0,0 +1,27 @@
1
+ import type { IUniverSheetsPivotChartConfig } from './config/config';
2
+ import { ICommandService, IConfigService, Injector, Plugin, UniverInstanceType } from '@univerjs/core';
3
+ import { DataSyncPrimaryController } from '@univerjs/rpc';
4
+ export declare class UniverSheetsPivotChartPlugin extends Plugin {
5
+ private readonly _config;
6
+ readonly _injector: Injector;
7
+ private readonly _commandService;
8
+ private readonly _configService;
9
+ private readonly _dataSyncPrimaryController?;
10
+ static pluginName: string;
11
+ static packageName: string;
12
+ static version: string;
13
+ static type: UniverInstanceType;
14
+ constructor(_config: IUniverSheetsPivotChartConfig | undefined, _injector: Injector, _commandService: ICommandService, _configService: IConfigService, _dataSyncPrimaryController?: DataSyncPrimaryController | undefined);
15
+ onStarting(): void;
16
+ private _registerCommands;
17
+ }
18
+ export declare class UniverSheetsPivotChartWorkerPlugin extends Plugin {
19
+ readonly _injector: Injector;
20
+ private readonly _commandService;
21
+ static pluginName: string;
22
+ static packageName: string;
23
+ static version: string;
24
+ static type: UniverInstanceType;
25
+ constructor(_config: undefined, _injector: Injector, _commandService: ICommandService);
26
+ onStarting(): void;
27
+ }
@@ -0,0 +1,35 @@
1
+ import type { IPivotChartEdit, IPivotChartFilterInfo, IPivotChartSourcePayload, IRequestPivotChartEditLocalMutationParams, IRequestPivotChartFilterInfoLocalMutationParams, IRequestPivotChartSourceLocalMutationParams } from '../types';
2
+ import { Disposable, ICommandService } from '@univerjs/core';
3
+ import { SheetsPivotChartModel } from '../models/sheets-pivot-chart.model';
4
+ export declare class PivotChartRPCService extends Disposable {
5
+ private readonly _commandService;
6
+ private readonly _pivotChartModel;
7
+ private readonly _requests;
8
+ private readonly _sourceCache;
9
+ private readonly _editRequests;
10
+ private readonly _filterInfoRequests;
11
+ private readonly _editQueues;
12
+ private _isDisposed;
13
+ private readonly _sourceChanged$;
14
+ readonly sourceChanged$: import("rxjs").Observable<{
15
+ unitId: string;
16
+ subUnitId: string;
17
+ pivotChartId: string;
18
+ }>;
19
+ constructor(_commandService: ICommandService, _pivotChartModel: SheetsPivotChartModel);
20
+ editAndApply(params: Omit<IRequestPivotChartEditLocalMutationParams, 'requestId' | 'edit'>, edit: IPivotChartEdit): Promise<boolean>;
21
+ private _dispatchEdit;
22
+ getFilterInfo(params: Omit<IRequestPivotChartFilterInfoLocalMutationParams, 'requestId'>): Promise<IPivotChartFilterInfo>;
23
+ getSource(params: Omit<IRequestPivotChartSourceLocalMutationParams, 'requestId'>): Promise<IPivotChartSourcePayload>;
24
+ rememberSource(params: Omit<IRequestPivotChartSourceLocalMutationParams, 'requestId'>, source: IPivotChartSourcePayload): void;
25
+ getRememberedSource(params: Omit<IRequestPivotChartSourceLocalMutationParams, 'requestId'>): IPivotChartSourcePayload | undefined;
26
+ dispose(): void;
27
+ private _handleEditResponse;
28
+ private _handleFilterInfoResponse;
29
+ private _handleResponse;
30
+ private _reject;
31
+ private _cancelRequests;
32
+ private _assertSameModel;
33
+ private _rejectEdit;
34
+ private _rejectFilterInfo;
35
+ }
@@ -0,0 +1,175 @@
1
+ import type { IChartInfo, IChartSnapshot } from '@univerjs-pro/engine-chart';
2
+ import type { IFieldsCollectionJSON, IPivotTableFilterInfo, IPivotTableShowDataAsInfo, IPivotTableSnapshot, IPivotTableSortInfo, IPivotTableValueFilter, PivotDataFieldDataTypeEnum, PivotDateGroupFieldDateTypeEnum, PivotSubtotalTypeEnum, PivotTableFiledAreaEnum, PivotTableValuePositionEnum } from '@univerjs-pro/engine-pivot';
3
+ import type { ILinkedPivotChartDefinition, IOwnedPivotChartDefinition, IPivotChartCalculationResult, IPivotChartControls, IPivotChartPivotTableReference, IPivotChartRuntimeState, PivotChartSourceKind } from '@univerjs-pro/pivot-chart';
4
+ import type { ChartAnchorSpec } from '@univerjs-pro/sheets-chart';
5
+ import type { IUnitRangeNameWithSubUnitId } from '@univerjs-pro/sheets-pivot';
6
+ import type { IRange } from '@univerjs/core';
7
+ import type { ISheetCommandSharedParams } from '@univerjs/sheets';
8
+ export interface IPivotChartSourcePayload {
9
+ sourceRangeInfo: IUnitRangeNameWithSubUnitId;
10
+ collectionConfig: IFieldsCollectionJSON;
11
+ }
12
+ /** A local A1 range, zero-based range, or fully qualified Pivot source range. */
13
+ export type PivotChartRangeInput = string | IRange | IUnitRangeNameWithSubUnitId;
14
+ /** A detached PivotChart source that creates an independently owned PivotModel. */
15
+ export interface IPivotChartRangeSourceSpec {
16
+ kind: PivotChartSourceKind.Range;
17
+ sourceRangeInfo: IUnitRangeNameWithSubUnitId;
18
+ }
19
+ /** A detached PivotChart source linked to an existing PivotTable-owned PivotModel. */
20
+ export interface IPivotChartTableSourceSpec {
21
+ kind: PivotChartSourceKind.PivotTable;
22
+ pivotTableRef: IPivotChartPivotTableReference;
23
+ }
24
+ /** Exactly one report source used by a detached Sheet PivotChart. */
25
+ export type PivotChartSourceSpec = IPivotChartRangeSourceSpec | IPivotChartTableSourceSpec;
26
+ /** Detached Sheet PivotChart information produced by the Facade builder. */
27
+ export interface ISheetPivotChartInfo extends IChartInfo<PivotChartSourceSpec> {
28
+ anchor?: ChartAnchorSpec;
29
+ name?: string;
30
+ controls?: Partial<IPivotChartControls>;
31
+ initialFieldsConfig?: IPivotTableSnapshot;
32
+ }
33
+ /** Editable settings shared by PivotTable and PivotChart report fields. */
34
+ export interface IPivotChartFieldSettingOptions {
35
+ displayName?: string;
36
+ format?: string;
37
+ subtotalType?: PivotSubtotalTypeEnum;
38
+ showDataAs?: IPivotTableShowDataAsInfo;
39
+ }
40
+ /** Source field metadata available for configuring a PivotChart report. */
41
+ export interface IPivotChartDataFieldInfo {
42
+ id: string;
43
+ name: string;
44
+ fieldDataType: PivotDataFieldDataTypeEnum;
45
+ displayName?: string;
46
+ }
47
+ interface IAddOwnedPivotChartMutationParams extends ISheetCommandSharedParams {
48
+ definition: IOwnedPivotChartDefinition;
49
+ source?: IPivotChartSourcePayload;
50
+ }
51
+ interface IAddLinkedPivotChartMutationParams extends ISheetCommandSharedParams {
52
+ definition: ILinkedPivotChartDefinition;
53
+ source?: never;
54
+ }
55
+ export type IAddPivotChartMutationParams = IAddOwnedPivotChartMutationParams | IAddLinkedPivotChartMutationParams;
56
+ export interface IRemovePivotChartMutationParams extends ISheetCommandSharedParams {
57
+ pivotChartId: string;
58
+ }
59
+ export interface IUpdatePivotChartMutationParams extends IRemovePivotChartMutationParams {
60
+ pivotModel: IPivotTableSnapshot;
61
+ }
62
+ export interface IUpdatePivotChartCacheReferenceMutationParams extends IRemovePivotChartMutationParams {
63
+ pivotCacheId: string;
64
+ }
65
+ export interface IUpdatePivotChartVisualMutationParams extends IRemovePivotChartMutationParams {
66
+ chart: IChartSnapshot;
67
+ }
68
+ export interface IUpdatePivotChartControlsMutationParams extends IRemovePivotChartMutationParams {
69
+ controls: IPivotChartControls;
70
+ }
71
+ export interface IUpdatePivotChartPresentationMutationParams extends IRemovePivotChartMutationParams {
72
+ chart: IChartSnapshot;
73
+ controls: IPivotChartControls;
74
+ name: string | undefined;
75
+ }
76
+ export interface ISendPivotChartResultLocalMutationParams extends ISheetCommandSharedParams {
77
+ result: IPivotChartCalculationResult;
78
+ }
79
+ export interface ISendPivotChartStateLocalMutationParams extends ISheetCommandSharedParams {
80
+ pivotChartId: string;
81
+ state: Omit<IPivotChartRuntimeState, 'error'> & {
82
+ error?: string;
83
+ };
84
+ }
85
+ export interface IRequestPivotChartSourceLocalMutationParams extends ISheetCommandSharedParams {
86
+ requestId: string;
87
+ pivotChartId: string;
88
+ }
89
+ export interface ISendPivotChartSourceLocalMutationParams {
90
+ requestId: string;
91
+ source?: IPivotChartSourcePayload;
92
+ error?: string;
93
+ }
94
+ export interface ISendPivotChartSourceMetadataLocalMutationParams extends IRemovePivotChartMutationParams {
95
+ source: IPivotChartSourcePayload;
96
+ }
97
+ export type IPivotChartEdit = {
98
+ type: 'setFieldsConfig';
99
+ config: IPivotTableSnapshot;
100
+ } | {
101
+ type: 'addField';
102
+ dataFieldId: string;
103
+ fieldArea: PivotTableFiledAreaEnum;
104
+ index: number;
105
+ } | {
106
+ type: 'moveField';
107
+ fieldId: string;
108
+ fieldArea: PivotTableFiledAreaEnum;
109
+ index: number;
110
+ } | {
111
+ type: 'removeFields';
112
+ fieldIds: string[];
113
+ } | {
114
+ type: 'updateValuePosition';
115
+ position: PivotTableValuePositionEnum;
116
+ index: number;
117
+ } | {
118
+ type: 'setFieldSetting';
119
+ fieldId: string;
120
+ setting: IPivotChartFieldSettingOptions;
121
+ } | {
122
+ type: 'setFilter';
123
+ fieldId: string;
124
+ items: string[];
125
+ isAll?: boolean;
126
+ } | {
127
+ type: 'setValueFilter';
128
+ fieldId: string;
129
+ filterInfo?: IPivotTableValueFilter;
130
+ } | {
131
+ type: 'setCollapse';
132
+ fieldId: string;
133
+ collapse: boolean;
134
+ item?: string;
135
+ } | {
136
+ type: 'setCategoryLevel';
137
+ fieldId: string;
138
+ } | {
139
+ type: 'setDateGroup';
140
+ fieldId: string;
141
+ dateType: PivotDateGroupFieldDateTypeEnum;
142
+ } | {
143
+ type: 'setSort';
144
+ fieldId: string;
145
+ info?: IPivotTableSortInfo;
146
+ };
147
+ export interface IRequestPivotChartEditLocalMutationParams extends IRemovePivotChartMutationParams {
148
+ requestId: string;
149
+ edit: IPivotChartEdit;
150
+ }
151
+ export interface ISendPivotChartEditLocalMutationParams {
152
+ requestId: string;
153
+ pivotModel?: IPivotTableSnapshot;
154
+ source?: IPivotChartSourcePayload;
155
+ error?: string;
156
+ }
157
+ export interface IPivotChartFilterInfo {
158
+ tableFieldId: string;
159
+ pivotTableId: string;
160
+ items: string[];
161
+ itemTypes: PivotDataFieldDataTypeEnum[];
162
+ format?: string;
163
+ filterInfo: IPivotTableFilterInfo | undefined;
164
+ sortInfo: IPivotTableSortInfo | undefined;
165
+ }
166
+ export interface IRequestPivotChartFilterInfoLocalMutationParams extends IRemovePivotChartMutationParams {
167
+ requestId: string;
168
+ fieldId: string;
169
+ }
170
+ export interface ISendPivotChartFilterInfoLocalMutationParams {
171
+ requestId: string;
172
+ filterInfo?: IPivotChartFilterInfo;
173
+ error?: string;
174
+ }
175
+ export {};
@@ -0,0 +1 @@
1
+ function _0x546a(){const _0x427132=['arrange','@univerjs-pro/engine-chart','initialFieldsConfig','ownerUnitId','_getReportCollection','Invalid\x20PivotChart\x20position.','488krMuKt','generateRandomId','3973965pQWlxr','get','update','_registerChangedEvent','clearAppearance','setSourceRange','_createAdapter','rowFields','UniverProSheetsPivotChartFacade','5116896YFgyxk','clearLegend','getSubUnitModels','clearLabelSort','UpdatePivotChartValuePositionCommand','FWorkbook','amd','PivotTable','getFieldIdsByArea','join','SetPivotChartDateGroupCommand','_sheetChartAdapter','bringToFront','result','isLinkedPivotChartDefinition','SetPivotChartValueFilterCommand','pivotModel','SheetsPivotTableConfigModel','_normalizePivotChartRange','onCommandExecuted','remove','@univerjs-pro/sheets-pivot/facade','getSourceKind','order$','getPivotTableReference','addField','setPivotTableReference','valuePosition','PivotShowAsTypeEnum','SendPivotChartResultLocalMutation','info','PivotChartRendered','_getDefinition','filter','setFieldsConfig','valueFieldId','dataAggregation','commitHost','_fireCommandEvent','Event','find','clearPalette','FSheetPivotChart','newPivotChart','SetPivotChartCollapseCommand','width','setTheme','FEventName','bringForward','type','height','commitControls','map','executeCommand','rowOffset','clearTheme','keys','setAppearance','clearSubtitle','updateValuePosition','@univerjs-pro/pivot-cache','Row','Module','getSheetName','Add','FPivotTable','_arrange','ChartModelService','unitId','Unit','left','pivotTableRef','valueFilter','setPalette','setTitle','Failed\x20to\x20update\x20PivotChart\x20presentation.','getDrawingByParam','getPivotChart','FBase','getFieldIds','Range','PivotChart\x20runtime\x20not\x20found:\x20','@univerjs-pro/sheets-chart','ArrangeTypeEnum','clearTitle','disposeWithMe','forEach','pivotChartId','SetPivotChartFilterCommand','fireEvent','Insert\x20the\x20Sheet\x20PivotChart\x20before\x20updating\x20it.','diffValue','range','@univerjs-pro/sheets-pivot','setSubtitle','FUniver','drawing','UniverProSheetsPivotChart','measure','UniverProSheetsPivotFacade','setInvalidValueStrategy','sendToBack','resetAutoGradientFill','update$','sendBackward','UniverProSheetsChart','RemovePivotChartFieldCommand','unsubscribe','getDefinition','insertPivotChart','controls','PivotChartSourceKind','SheetsPivotChartModel','describeChartModel','filterFields','None','2601198GmaUhv','setAbsolutePosition','state','FWorksheet','Quantity','subscribe','resolvePivotChartControls','PivotChart\x20source\x20not\x20found:\x20','getUnitId','definition','showDataAs','hiddenFields','Hidden','620900fGpBNz','UniverProPivotCache','_registerCommandEvent','PivotChartDataStateChanged','normal','UpdatePivotChartPresentationCommand','subUnitId','Remove','sheetTransform','backward','UniverCore','fieldsConfig','4AQEhsB','style','setControls','PivotChartAdded','28399Hkymsi','getValueFilter','_fireDrawingChanged','UniverProSheetsPivot','FEnum','kind','defineProperty','resetFields','PivotCacheReferenceKindEnum','pivotTableId','toBuilder','syncExecuteCommand','number','from','892979bmvLgX','renameField','toDisposable','getSource','getChartModel','size','setPosition','DisposableCollection','setFieldButtonsVisible','Value','setFieldSetting','InsertPivotChartCommand','setType','Failed\x20to\x20create\x20Sheet\x20PivotChart.','PivotTableFiledAreaEnum','setLabelManualFilter','getId','getScope','resetShowDataAs','getType','updateFieldPosition','add','SheetsPivotDataSourceModel','setExpandCollapseButtonsVisible','UpdatePivotChartControlsCommand','getSheetId','commitVisual','UniverSheetsDrawing','position','setLegend','getName','_apply','@univerjs/core/facade','@univerjs-pro/sheets-pivot-chart','columnFields','registerEventHandler','getPivotTableInstance','getCollection','PivotFilterTypeEnum','SetPivotChartSortCommand','columnOffset','normalizeRange','transform','column','PivotChartRemoved','setSize','getRange','commit','sourceRangeInfo','anchor','A\x20PivotTable-linked\x20PivotChart\x20cannot\x20replace\x20its\x20source.','SheetsPivotChartModelChangeType','getControls','setAutoGradientFill','getSourceRangeInfo','removeField','PivotChartChanged','Invalid\x20PivotChart\x20layout.','newChart','_registerModelEvent','PivotChartConfigAdapter','changed$','ICommandService','getValueFilters','6015SUMOQf','getInfo','_workbook','valueFields','AddPivotChartFieldCommand','object','MovePivotChartFieldCommand','isLinkedToPivotTable','deepClone','getFieldsConfig','top','exports','fieldId','isPivotChartTypeString','injector','name','setLabelSort','getFieldSetting','@univerjs/sheets-drawing','getFieldById','toChartCreateConfigSnapshot','valueIndex','ISheetDrawingService','setZOrder','Filter','@univerjs-pro/engine-chart/facade','A\x20source-locked\x20PivotChart\x20Builder\x20cannot\x20replace\x20its\x20source.','toChartModelConfig','row','context','front','setCategoryLevel','Tools','_injector','Unsupported\x20PivotChart\x20type:\x20','cacheRef','setCollapse','OPTIONAL','UniverProEngineChartFacade','describe','extend','concat','Column','patch','config','26idVQIc','UniverCoreFacade','params','filterInfo','dataSource','setShowDataAs','length','collapseInfo','PivotChart\x20update\x20cannot\x20replace\x20its\x20report\x20fields.','_context','dimension','PivotChart\x20not\x20found:\x20','resetInvalidValueStrategy','_executeReportCommand','forward','UpdatePivotChartSourceRangeCommand','description','getSourceFieldsInfo','setValueFilter','pivot-chart-','has','_commit'];_0x546a=function(){return _0x427132;};return _0x546a();}function _0x3296(_0x341fa2,_0x12cc43){_0x341fa2=_0x341fa2-0xf0;const _0x546a47=_0x546a();let _0x32966a=_0x546a47[_0x341fa2];return _0x32966a;}(function(_0x5c26e8,_0x4ed37b){const _0x564c68=_0x3296,_0x34b83f=_0x5c26e8();while(!![]){try{const _0x1d57a1=parseInt(_0x564c68(0xfd))/0x1+parseInt(_0x564c68(0x16a))/0x2*(-parseInt(_0x564c68(0x13d))/0x3)+parseInt(_0x564c68(0x21e))/0x4*(parseInt(_0x564c68(0x188))/0x5)+-parseInt(_0x564c68(0x205))/0x6+parseInt(_0x564c68(0x222))/0x7*(-parseInt(_0x564c68(0x186))/0x8)+-parseInt(_0x564c68(0x191))/0x9+parseInt(_0x564c68(0x212))/0xa;if(_0x1d57a1===_0x4ed37b)break;else _0x34b83f['push'](_0x34b83f['shift']());}catch(_0x567f12){_0x34b83f['push'](_0x34b83f['shift']());}}}(_0x546a,0x73c83),function(_0x146d98,_0x53aeae){const _0x43750d=_0x3296;typeof exports==_0x43750d(0x142)&&typeof module<'u'?_0x53aeae(exports,require('@univerjs-pro/pivot-chart'),require('@univerjs/core/facade'),require('@univerjs-pro/sheets-pivot/facade'),require('@univerjs-pro/engine-chart/facade'),require('@univerjs-pro/sheets-pivot-chart'),require('@univerjs/core'),require('@univerjs/sheets-drawing'),require('@univerjs/sheets/facade'),require('@univerjs-pro/engine-chart'),require('@univerjs-pro/engine-pivot'),require('@univerjs-pro/pivot-cache'),require('@univerjs-pro/sheets-chart'),require('@univerjs-pro/sheets-pivot')):typeof define=='function'&&define[_0x43750d(0x197)]?define([_0x43750d(0x148),'@univerjs-pro/pivot-chart',_0x43750d(0x11d),_0x43750d(0x1a6),_0x43750d(0x156),_0x43750d(0x11e),'@univerjs/core',_0x43750d(0x14f),'@univerjs/sheets/facade',_0x43750d(0x181),'@univerjs-pro/engine-pivot',_0x43750d(0x1cd),_0x43750d(0x1e3),_0x43750d(0x1ee)],_0x53aeae):(_0x146d98=typeof globalThis<'u'?globalThis:_0x146d98||self,_0x53aeae(_0x146d98[_0x43750d(0x190)]={},_0x146d98['UniverProPivotChart'],_0x146d98[_0x43750d(0x16b)],_0x146d98[_0x43750d(0x1f4)],_0x146d98[_0x43750d(0x163)],_0x146d98[_0x43750d(0x1f2)],_0x146d98[_0x43750d(0x21c)],_0x146d98[_0x43750d(0x118)],_0x146d98['UniverSheetsFacade'],_0x146d98['UniverProEngineChart'],_0x146d98['UniverProEnginePivot'],_0x146d98[_0x43750d(0x213)],_0x146d98[_0x43750d(0x1fa)],_0x146d98[_0x43750d(0xf2)]));}(this,function(_0x41cef6,_0x5f5616,_0x5586fd,_0x41a1c3,_0x2bde03,_0x530e35,_0x1d4cfa,_0x33c49b,_0x16b2bd,_0x3feb7a,_0xf0aa57,_0x32dabd,_0x270bfe,_0x2e298c){const _0x85c7d5=_0x3296;Object[_0x85c7d5(0xf5)](_0x41cef6,Symbol['toStringTag'],{'value':_0x85c7d5(0x1cf)});var _0x2188b9=class extends _0x5586fd[_0x85c7d5(0xf3)]{get[_0x85c7d5(0x200)](){const _0x316fb7=_0x85c7d5;return _0x5f5616[_0x316fb7(0x200)];}};_0x5586fd['FEnum'][_0x85c7d5(0x165)](_0x2188b9);var _0x4f538a=class extends _0x5586fd[_0x85c7d5(0x1c0)]{get['PivotChartAdded'](){return'PivotChartAdded';}get[_0x85c7d5(0x129)](){const _0x55e582=_0x85c7d5;return _0x55e582(0x129);}get['PivotChartChanged'](){const _0x5624c1=_0x85c7d5;return _0x5624c1(0x135);}get[_0x85c7d5(0x1b0)](){const _0x127798=_0x85c7d5;return _0x127798(0x1b0);}get[_0x85c7d5(0x215)](){const _0x1da776=_0x85c7d5;return _0x1da776(0x215);}};_0x5586fd[_0x85c7d5(0x1c0)][_0x85c7d5(0x165)](_0x4f538a);function _0x140d38(_0x2a217f){const _0x29c747=_0x85c7d5;if(!(0x0,_0x5f5616[_0x29c747(0x14a)])(_0x2a217f[_0x29c747(0x1c2)]))throw Error(_0x29c747(0x15f)+_0x2a217f[_0x29c747(0x1c2)]);return(0x0,_0x2bde03['createChartBuilder'])({'type':_0x2a217f['type'],'injector':_0x2a217f[_0x29c747(0x14b)],'commitError':_0x29c747(0x1eb),'normalizeSource':_0x4d0294=>({'kind':_0x5f5616[_0x29c747(0x200)][_0x29c747(0x1e1)],'sourceRangeInfo':_0x2a217f[_0x29c747(0x126)](_0x4d0294)}),'createInfo':()=>({'anchor':void 0x0,'name':void 0x0,'controls':void 0x0,'initialFieldsConfig':void 0x0}),'extension':({getInfo:_0x143a19,setInfo:_0x3a9dcd})=>({'setPivotTable'(_0x25f3aa){const _0x1bda2e=_0x29c747;return this[_0x1bda2e(0x1ab)]({'unitId':_0x25f3aa[_0x1bda2e(0x1d5)],'subUnitId':_0x25f3aa[_0x1bda2e(0x218)],'pivotTableId':_0x25f3aa[_0x1bda2e(0x10d)]()});},'setPivotTableReference'(_0x2983b7){const _0x522df2=_0x29c747;return _0x3a9dcd('dataSource',{'kind':_0x5f5616[_0x522df2(0x200)][_0x522df2(0x198)],'pivotTableRef':_0x2983b7}),this;},'setPosition'(_0x3b797b){return _0x3a9dcd('anchor',_0x3b797b),this;},'setName'(_0x3a7092){const _0x404695=_0x29c747;return _0x3a9dcd(_0x404695(0x14c),_0x3a7092),this;},'setControls'(_0x26936e){const _0x232919=_0x29c747;return _0x3a9dcd(_0x232919(0x1ff),{..._0x143a19('controls'),..._0x26936e}),this;},'setFieldButtonsVisible'(_0x25fc71){const _0xab7209=_0x29c747;return this[_0xab7209(0x220)]({'showFieldButtons':_0x25fc71});},'setExpandCollapseButtonsVisible'(_0x219f26){const _0x3e3f32=_0x29c747;return this[_0x3e3f32(0x220)]({'showExpandCollapseButtons':_0x219f26});}})});}function _0x438a03(_0x2a78d5){const _0x2f6b35=_0x85c7d5;let _0x4692db=_0x140d38(_0x2a78d5);return _0x4692db[_0x2f6b35(0x1ab)](_0x2a78d5[_0x2f6b35(0x1d8)]),_0x4692db;}function _0x3417e0(_0x5d7ebe){const _0x158388=_0x85c7d5;if(!(0x0,_0x5f5616['isPivotChartTypeString'])(_0x5d7ebe[_0x158388(0x1c2)]))throw Error(_0x158388(0x15f)+_0x5d7ebe['type']);return(0x0,_0x2bde03['createChartBuilder'])({'type':_0x5d7ebe[_0x158388(0x1c2)],'info':_0x5d7ebe[_0x158388(0x1af)],'description':_0x5d7ebe[_0x158388(0x17a)],'normalizeSource':()=>{const _0x1be22c=_0x158388;throw Error(_0x1be22c(0x157));},'extension':({getInfo:_0x4479d7,setInfo:_0x54a5eb})=>({'setPivotTable'(_0x19a70c){const _0x2b6180=_0x158388;return this[_0x2b6180(0x1ab)]({'unitId':_0x19a70c['unitId'],'subUnitId':_0x19a70c[_0x2b6180(0x218)],'pivotTableId':_0x19a70c[_0x2b6180(0x10d)]()});},'setPivotTableReference'(_0xd1e661){const _0x6bc17c=_0x158388;return _0x54a5eb(_0x6bc17c(0x16e),{'kind':_0x5f5616['PivotChartSourceKind'][_0x6bc17c(0x198)],'pivotTableRef':_0xd1e661}),this;},'setPosition'(_0x556b18){const _0x29ec35=_0x158388;return _0x54a5eb(_0x29ec35(0x12e),_0x556b18),this;},'setName'(_0x48d681){const _0x45245f=_0x158388;return _0x54a5eb(_0x45245f(0x14c),_0x48d681),this;},'setControls'(_0x3ebe57){const _0x22b1fc=_0x158388;return _0x54a5eb(_0x22b1fc(0x1ff),{..._0x4479d7(_0x22b1fc(0x1ff)),..._0x3ebe57}),this;},'setFieldButtonsVisible'(_0x48ce60){const _0x2c9380=_0x158388;return this[_0x2c9380(0x220)]({'showFieldButtons':_0x48ce60});},'setExpandCollapseButtonsVisible'(_0x15924f){const _0x1dfecc=_0x158388;return this[_0x1dfecc(0x220)]({'showExpandCollapseButtons':_0x15924f});}})});}var _0x164183=class extends _0x41a1c3[_0x85c7d5(0x1d2)]{[_0x85c7d5(0x137)](_0x15e667){const _0x26d77f=_0x85c7d5;return _0x438a03({'type':_0x15e667,'injector':this[_0x26d77f(0x15e)],'normalizeRange':()=>{const _0x7dfa64=_0x26d77f;throw Error(_0x7dfa64(0x12f));},'pivotTableRef':{'unitId':this[_0x26d77f(0x1d5)],'subUnitId':this['subUnitId'],'pivotTableId':this[_0x26d77f(0x10d)]()}});}};_0x41a1c3[_0x85c7d5(0x1d2)][_0x85c7d5(0x165)](_0x164183);var _0x1341d4=class extends _0x5586fd[_0x85c7d5(0x1f0)]{['_initialize'](_0x3e07c7){const _0x41fe5e=_0x85c7d5;this[_0x41fe5e(0x1e6)](this[_0x41fe5e(0x120)](this[_0x41fe5e(0x1b8)][_0x41fe5e(0x221)],()=>this[_0x41fe5e(0x138)](_0x3e07c7,_0x530e35[_0x41fe5e(0x130)][_0x41fe5e(0x1d1)],this[_0x41fe5e(0x1b8)][_0x41fe5e(0x221)]))),this['disposeWithMe'](this['registerEventHandler'](this[_0x41fe5e(0x1b8)][_0x41fe5e(0x129)],()=>this['_registerModelEvent'](_0x3e07c7,_0x530e35[_0x41fe5e(0x130)][_0x41fe5e(0x219)],this[_0x41fe5e(0x1b8)][_0x41fe5e(0x129)]))),this['disposeWithMe'](this['registerEventHandler'](this['Event']['PivotChartChanged'],()=>this[_0x41fe5e(0x18b)](_0x3e07c7))),this[_0x41fe5e(0x1e6)](this['registerEventHandler'](this[_0x41fe5e(0x1b8)]['PivotChartRendered'],()=>this[_0x41fe5e(0x214)](_0x3e07c7,_0x530e35[_0x41fe5e(0x1ae)]['id']))),this['disposeWithMe'](this['registerEventHandler'](this[_0x41fe5e(0x1b8)][_0x41fe5e(0x215)],()=>this[_0x41fe5e(0x214)](_0x3e07c7,_0x530e35['SendPivotChartStateLocalMutation']['id'])));}[_0x85c7d5(0x138)](_0x4903e,_0x34c49d,_0x57dfc8){const _0xc32434=_0x85c7d5;if(!_0x4903e[_0xc32434(0x17e)](_0x530e35[_0xc32434(0x201)]))return(0x0,_0x1d4cfa[_0xc32434(0xff)])(()=>void 0x0);let _0x453680=_0x4903e[_0xc32434(0x189)](_0x530e35[_0xc32434(0x201)])['changed$'][_0xc32434(0x20a)](_0x475635=>{const _0x467f38=_0xc32434;_0x475635[_0x467f38(0x1c2)]===_0x34c49d&&this[_0x467f38(0x1ea)](_0x57dfc8,_0x280f0e(_0x475635));});return(0x0,_0x1d4cfa[_0xc32434(0xff)])(()=>_0x453680[_0xc32434(0x1fc)]());}[_0x85c7d5(0x18b)](_0x2a4114){const _0x1bafd2=_0x85c7d5;if(!_0x2a4114['has'](_0x530e35[_0x1bafd2(0x201)]))return(0x0,_0x1d4cfa[_0x1bafd2(0xff)])(()=>void 0x0);let _0x5bb375=_0x2a4114[_0x1bafd2(0x189)](_0x530e35[_0x1bafd2(0x201)]),_0x33c059=new _0x1d4cfa[(_0x1bafd2(0x104))]();if(_0x33c059[_0x1bafd2(0x112)](_0x5bb375[_0x1bafd2(0x13a)][_0x1bafd2(0x20a)](_0x130d19=>{const _0x2641d9=_0x1bafd2;_0x130d19[_0x2641d9(0x1c2)]!==_0x530e35['SheetsPivotChartModelChangeType'][_0x2641d9(0x1d1)]&&_0x130d19[_0x2641d9(0x1c2)]!==_0x530e35[_0x2641d9(0x130)][_0x2641d9(0x219)]&&this[_0x2641d9(0x1ea)](this[_0x2641d9(0x1b8)][_0x2641d9(0x135)],{..._0x280f0e(_0x130d19),'kind':_0x2641d9(0x20e),'change':_0x130d19});})),_0x2a4114[_0x1bafd2(0x17e)](_0x33c49b[_0x1bafd2(0x153)])){let _0x57fab1=_0x2a4114[_0x1bafd2(0x189)](_0x33c49b[_0x1bafd2(0x153)]);_0x33c059[_0x1bafd2(0x112)](_0x57fab1[_0x1bafd2(0x1f8)][_0x1bafd2(0x20a)](_0x4d0588=>{const _0x2245b8=_0x1bafd2;this[_0x2245b8(0xf1)](_0x5bb375,_0x4d0588[_0x2245b8(0x1c5)](({unitId:_0x236eb4,subUnitId:_0xfbb9e9,drawingId:_0x34b936})=>({'unitId':_0x236eb4,'subUnitId':_0xfbb9e9,'drawingId':_0x34b936})));})),_0x33c059[_0x1bafd2(0x112)](_0x57fab1[_0x1bafd2(0x1a8)][_0x1bafd2(0x20a)](({unitId:_0x5ba0f6,subUnitId:_0x92bee3,drawingIds:_0x33ff31})=>{const _0x58b1a3=_0x1bafd2;this[_0x58b1a3(0xf1)](_0x5bb375,_0x33ff31[_0x58b1a3(0x1c5)](_0x10dbfc=>({'unitId':_0x5ba0f6,'subUnitId':_0x92bee3,'drawingId':_0x10dbfc})));}));}return _0x33c059;}['_fireDrawingChanged'](_0x420e2b,_0x110354){const _0x4e05a4=_0x85c7d5;let _0x204379=new Set();_0x110354[_0x4e05a4(0x1e7)](({unitId:_0x5296c7,subUnitId:_0xfe18aa,drawingId:_0x33a1d1})=>{const _0x5ed97a=_0x4e05a4;let _0x3c2aec=_0x5296c7+':'+_0xfe18aa+':'+_0x33a1d1;!_0x204379[_0x5ed97a(0x17e)](_0x3c2aec)&&_0x420e2b[_0x5ed97a(0x189)](_0x5296c7,_0xfe18aa,_0x33a1d1)&&(_0x204379[_0x5ed97a(0x112)](_0x3c2aec),this[_0x5ed97a(0x1ea)](this[_0x5ed97a(0x1b8)]['PivotChartChanged'],{'unitId':_0x5296c7,'subUnitId':_0xfe18aa,'pivotChartId':_0x33a1d1,'kind':_0x5ed97a(0x1f1)}));});}[_0x85c7d5(0x214)](_0x4b94e8,_0x2960ff){const _0x274d47=_0x85c7d5;return _0x4b94e8[_0x274d47(0x17e)](_0x1d4cfa[_0x274d47(0x13b)])?_0x4b94e8[_0x274d47(0x189)](_0x1d4cfa[_0x274d47(0x13b)])[_0x274d47(0x1a4)](_0x7ad3e5=>{const _0x3297cf=_0x274d47;_0x7ad3e5['id']===_0x2960ff&&this[_0x3297cf(0x1b7)](_0x7ad3e5);}):(0x0,_0x1d4cfa[_0x274d47(0xff)])(()=>void 0x0);}['_fireCommandEvent'](_0x1381b8){const _0x3092e6=_0x85c7d5;if(_0x1381b8['id']===_0x530e35[_0x3092e6(0x1ae)]['id']){let _0x13e578=_0x1381b8['params'];this[_0x3092e6(0x1ea)](this['Event'][_0x3092e6(0x1b0)],{'unitId':_0x13e578[_0x3092e6(0x1d5)],'subUnitId':_0x13e578[_0x3092e6(0x218)],'pivotChartId':_0x13e578[_0x3092e6(0x19e)][_0x3092e6(0x1e8)],'result':_0x13e578[_0x3092e6(0x19e)]});}else{if(_0x1381b8['id']===_0x530e35['SendPivotChartStateLocalMutation']['id']){let _0x27982b=_0x1381b8[_0x3092e6(0x16c)];this[_0x3092e6(0x1ea)](this[_0x3092e6(0x1b8)]['PivotChartDataStateChanged'],{'unitId':_0x27982b['unitId'],'subUnitId':_0x27982b[_0x3092e6(0x218)],'pivotChartId':_0x27982b[_0x3092e6(0x1e8)],'state':_0x27982b[_0x3092e6(0x207)]});}}}};function _0x280f0e(_0x3aba73){const _0x30c068=_0x85c7d5;return{'unitId':_0x3aba73[_0x30c068(0x1d5)],'subUnitId':_0x3aba73[_0x30c068(0x218)],'pivotChartId':_0x3aba73['pivotChartId']};}_0x5586fd[_0x85c7d5(0x1f0)][_0x85c7d5(0x165)](_0x1341d4);var _0x1724c9=class{constructor(_0x47a969){const _0x3a489a=_0x85c7d5;this[_0x3a489a(0x173)]=_0x47a969;}[_0x85c7d5(0x1fd)](){const _0x2bdd8e=_0x85c7d5;return _0x1d4cfa[_0x2bdd8e(0x15d)][_0x2bdd8e(0x145)](this[_0x2bdd8e(0x1b1)]());}[_0x85c7d5(0x100)](){const _0x5b8307=_0x85c7d5;let _0x24885e=this[_0x5b8307(0x1b1)]();if((0x0,_0x5f5616[_0x5b8307(0x19f)])(_0x24885e))return{'kind':_0x5f5616['PivotChartSourceKind']['PivotTable'],'pivotTableRef':_0x1d4cfa[_0x5b8307(0x15d)][_0x5b8307(0x145)](_0x24885e[_0x5b8307(0x1d8)])};let _0x46a27a=this['_getOwnedSourceRange'](_0x24885e['id']);return _0x46a27a?{'kind':_0x5f5616[_0x5b8307(0x200)][_0x5b8307(0x1e1)],'sourceRangeInfo':_0x1d4cfa[_0x5b8307(0x15d)][_0x5b8307(0x145)](_0x46a27a)}:void 0x0;}[_0x85c7d5(0x133)](){const _0x2d0fdf=_0x85c7d5;var _0x941344;let _0xfd1d66=this['_getDefinition']();if(!(0x0,_0x5f5616[_0x2d0fdf(0x19f)])(_0xfd1d66)){let _0xb48726=this['getSource']();return(_0xb48726==null?void 0x0:_0xb48726['kind'])===_0x5f5616[_0x2d0fdf(0x200)][_0x2d0fdf(0x1e1)]?_0x1d4cfa[_0x2d0fdf(0x15d)][_0x2d0fdf(0x145)](_0xb48726['sourceRangeInfo']):void 0x0;}let {pivotTableId:_0xfbbb35,subUnitId:_0x25aed1,unitId:_0x5be05c}=_0xfd1d66[_0x2d0fdf(0x1d8)],_0x5829d8=(_0x941344=this[_0x2d0fdf(0x173)][_0x2d0fdf(0x14b)][_0x2d0fdf(0x189)](_0x2e298c['SheetsPivotTableConfigModel'],_0x1d4cfa[_0x2d0fdf(0x209)]['OPTIONAL']))==null||(_0x941344=_0x941344['getPivotTableConfig'](_0x5be05c,_0x25aed1,_0xfbbb35))==null?void 0x0:_0x941344[_0x2d0fdf(0x12d)];return _0x5829d8?_0x1d4cfa['Tools'][_0x2d0fdf(0x145)](_0x5829d8):void 0x0;}[_0x85c7d5(0x146)](){const _0x179c76=_0x85c7d5;var _0x19a6bf;let _0x59c7a3=this['_getDefinition']();if(!(0x0,_0x5f5616[_0x179c76(0x19f)])(_0x59c7a3))return _0x1d4cfa[_0x179c76(0x15d)][_0x179c76(0x145)](_0x59c7a3['pivotModel']);let {pivotTableId:_0x5dec8b,subUnitId:_0x2ef186,unitId:_0x9bc6dd}=_0x59c7a3[_0x179c76(0x1d8)],_0x43cb45=this[_0x179c76(0x173)]['injector']['get'](_0x2e298c['SheetsPivotDataSourceModel'],_0x1d4cfa[_0x179c76(0x209)][_0x179c76(0x162)]),_0x47a507=(_0x43cb45==null?void 0x0:_0x43cb45['getPivotTableModelConfig'](_0x9bc6dd,_0x2ef186,_0x5dec8b))??((_0x19a6bf=this['_context'][_0x179c76(0x14b)][_0x179c76(0x189)](_0x2e298c[_0x179c76(0x1a2)],_0x1d4cfa[_0x179c76(0x209)][_0x179c76(0x162)]))==null||(_0x19a6bf=_0x19a6bf['getPivotTableConfig'](_0x9bc6dd,_0x2ef186,_0x5dec8b))==null?void 0x0:_0x19a6bf[_0x179c76(0x21d)]);return _0x47a507?_0x1d4cfa[_0x179c76(0x15d)][_0x179c76(0x145)](_0x47a507):void 0x0;}['getSourceFieldsInfo'](){const _0x52a40b=_0x85c7d5;let _0x15b12e=this[_0x52a40b(0x184)]();return _0x15b12e?_0x15b12e[_0x52a40b(0x1e0)]()['map'](_0x261542=>{const _0x1d65a5=_0x52a40b;let _0x361fb1=_0x15b12e[_0x1d65a5(0x150)](_0x261542),_0x1031a6=_0x15b12e['displayNameRecord'][_0x261542];return{'id':_0x261542,'name':_0x361fb1[_0x1d65a5(0x11b)](),'fieldDataType':_0x361fb1['getFieldDataType'](),..._0x1031a6===void 0x0?{}:{'displayName':_0x1031a6}};}):[];}[_0x85c7d5(0x1a9)](){const _0x31364c=_0x85c7d5;let _0x15feb6=this[_0x31364c(0x1b1)]();return(0x0,_0x5f5616[_0x31364c(0x19f)])(_0x15feb6)?_0x1d4cfa[_0x31364c(0x15d)]['deepClone'](_0x15feb6[_0x31364c(0x1d8)]):void 0x0;}[_0x85c7d5(0x121)](){const _0x920b4f=_0x85c7d5;var _0x306020;let _0x37833d=this[_0x920b4f(0x1a9)]();return _0x37833d?(_0x306020=this[_0x920b4f(0x173)][_0x920b4f(0x14b)][_0x920b4f(0x189)](_0x2e298c[_0x920b4f(0x113)],_0x1d4cfa[_0x920b4f(0x209)][_0x920b4f(0x162)]))==null?void 0x0:_0x306020[_0x920b4f(0x121)](_0x37833d[_0x920b4f(0xf8)]):void 0x0;}[_0x85c7d5(0x131)](){const _0x126175=_0x85c7d5;return(0x0,_0x5f5616[_0x126175(0x20b)])(this[_0x126175(0x1b1)]()[_0x126175(0x1ff)]);}[_0x85c7d5(0x13e)](){const _0xc9a6ae=_0x85c7d5;var _0x117f3c,_0xa4e8b4,_0x25e54d;let _0x3570bd=this[_0xc9a6ae(0x100)]();if(!_0x3570bd)throw Error(_0xc9a6ae(0x20c)+this[_0xc9a6ae(0x173)][_0xc9a6ae(0x1e8)]);let _0x255056=this['_context'][_0xc9a6ae(0x14b)][_0xc9a6ae(0x189)](_0x270bfe[_0xc9a6ae(0x1d4)])[_0xc9a6ae(0x101)](this[_0xc9a6ae(0x173)][_0xc9a6ae(0x1e8)]);if(!_0x255056)throw Error(_0xc9a6ae(0x1e2)+this[_0xc9a6ae(0x173)][_0xc9a6ae(0x1e8)]);let _0x34282b=this[_0xc9a6ae(0x1b1)](),_0x15ec1c=(_0x117f3c=this[_0xc9a6ae(0x173)][_0xc9a6ae(0x14b)]['get'](_0x33c49b[_0xc9a6ae(0x153)],_0x1d4cfa[_0xc9a6ae(0x209)][_0xc9a6ae(0x162)]))==null?void 0x0:_0x117f3c[_0xc9a6ae(0x1dd)]({'unitId':this[_0xc9a6ae(0x173)][_0xc9a6ae(0x1d5)],'subUnitId':this[_0xc9a6ae(0x173)][_0xc9a6ae(0x218)],'drawingId':this['_context'][_0xc9a6ae(0x1e8)]}),_0x25bf88=_0x15ec1c!=null&&(_0xa4e8b4=_0x15ec1c[_0xc9a6ae(0x21a)])!=null&&_0xa4e8b4[_0xc9a6ae(0xfc)]?{'row':_0x15ec1c['sheetTransform'][_0xc9a6ae(0xfc)][_0xc9a6ae(0x159)],'column':_0x15ec1c[_0xc9a6ae(0x21a)][_0xc9a6ae(0xfc)][_0xc9a6ae(0x128)],'rowOffset':_0x15ec1c['sheetTransform'][_0xc9a6ae(0xfc)][_0xc9a6ae(0x1c7)],'columnOffset':_0x15ec1c[_0xc9a6ae(0x21a)]['from'][_0xc9a6ae(0x125)]}:void 0x0;return _0x1d4cfa[_0xc9a6ae(0x15d)][_0xc9a6ae(0x145)]({'config':(0x0,_0x3feb7a[_0xc9a6ae(0x151)])((0x0,_0x3feb7a[_0xc9a6ae(0x202)])(_0x255056)),'dataSource':_0x3570bd,'name':_0x34282b[_0xc9a6ae(0x14c)],'controls':_0x34282b[_0xc9a6ae(0x1ff)],'position':_0x15ec1c!=null&&_0x15ec1c[_0xc9a6ae(0x127)]?{'x':_0x15ec1c[_0xc9a6ae(0x127)][_0xc9a6ae(0x1d7)]??0x0,'y':_0x15ec1c[_0xc9a6ae(0x127)][_0xc9a6ae(0x147)]??0x0}:void 0x0,'size':(_0x15ec1c==null||(_0x25e54d=_0x15ec1c['transform'])==null?void 0x0:_0x25e54d[_0xc9a6ae(0x1be)])===void 0x0||_0x15ec1c['transform']['height']===void 0x0?void 0x0:{'width':_0x15ec1c[_0xc9a6ae(0x127)][_0xc9a6ae(0x1be)],'height':_0x15ec1c[_0xc9a6ae(0x127)][_0xc9a6ae(0x1c3)]},'anchor':_0x25bf88,'initialFieldsConfig':(0x0,_0x5f5616['isLinkedPivotChartDefinition'])(_0x34282b)?void 0x0:_0x34282b[_0xc9a6ae(0x1a1)]});}[_0x85c7d5(0x164)](){const _0x3a5bbf=_0x85c7d5;let _0x17c4ca=this[_0x3a5bbf(0x173)][_0x3a5bbf(0x14b)][_0x3a5bbf(0x189)](_0x270bfe[_0x3a5bbf(0x1d4)])['getChartModel'](this[_0x3a5bbf(0x173)][_0x3a5bbf(0x1e8)]);if(!_0x17c4ca)throw Error(_0x3a5bbf(0x1e2)+this[_0x3a5bbf(0x173)][_0x3a5bbf(0x1e8)]);return(0x0,_0x3feb7a[_0x3a5bbf(0x202)])(_0x17c4ca);}async['update'](_0x36bf21){const _0x2bb23c=_0x85c7d5;let _0x104d34=(0x0,_0x3feb7a[_0x2bb23c(0x158)])(_0x36bf21[_0x2bb23c(0x169)]),_0x962f3d=this['_context'][_0x2bb23c(0x14b)][_0x2bb23c(0x189)](_0x1d4cfa[_0x2bb23c(0x13b)]),_0x43ce2b={'unitId':this[_0x2bb23c(0x173)][_0x2bb23c(0x1d5)],'subUnitId':this[_0x2bb23c(0x173)][_0x2bb23c(0x218)],'pivotChartId':this['_context']['pivotChartId']},_0x47e5f0={..._0x36bf21[_0x2bb23c(0x12e)]===void 0x0?{}:{'anchor':_0x36bf21[_0x2bb23c(0x12e)]},..._0x36bf21[_0x2bb23c(0x119)]===void 0x0?{}:{'position':_0x36bf21[_0x2bb23c(0x119)]},..._0x36bf21[_0x2bb23c(0x102)]===void 0x0?{}:{'size':_0x36bf21[_0x2bb23c(0x102)]}},_0x25c68e=[],_0x3a1f6c=Object[_0x2bb23c(0x1c9)](_0x47e5f0)['length']?(0x0,_0x270bfe['buildLayoutDrawingPatch'])({'unitId':this['_context'][_0x2bb23c(0x1d5)],'subUnitId':this[_0x2bb23c(0x173)][_0x2bb23c(0x218)],'chartId':this[_0x2bb23c(0x173)][_0x2bb23c(0x1e8)],'injector':this[_0x2bb23c(0x173)]['injector']},_0x47e5f0,_0x25c68e):void 0x0;if(Object[_0x2bb23c(0x1c9)](_0x47e5f0)[_0x2bb23c(0x170)]&&!_0x3a1f6c)throw Error(_0x25c68e[_0x2bb23c(0x1c5)](({message:_0x119c61})=>_0x119c61)['join'](';\x20')||_0x2bb23c(0x136));if(!_0x962f3d[_0x2bb23c(0xfa)](_0x530e35[_0x2bb23c(0x217)]['id'],{..._0x43ce2b,'chart':{'id':this[_0x2bb23c(0x173)][_0x2bb23c(0x1e8)],'chartType':_0x104d34['chartType'],'context':_0x104d34[_0x2bb23c(0x15a)],'style':_0x104d34[_0x2bb23c(0x21f)],'dataAggregation':_0x104d34[_0x2bb23c(0x1b5)]},'controls':{...this[_0x2bb23c(0x131)](),..._0x36bf21['controls']},'name':_0x36bf21['name'],..._0x3a1f6c?{'drawing':_0x3a1f6c}:{}}))throw Error(_0x2bb23c(0x1dc));}[_0x85c7d5(0x117)](_0x1654fa){const _0x2f9e32=_0x85c7d5;new _0x530e35[(_0x2f9e32(0x139))](this[_0x2f9e32(0x173)])[_0x2f9e32(0x12c)](_0x1654fa);}[_0x85c7d5(0x1c4)](_0x448a6e){const _0x5afd08=_0x85c7d5;if(!this[_0x5afd08(0x173)]['injector'][_0x5afd08(0x189)](_0x1d4cfa[_0x5afd08(0x13b)])[_0x5afd08(0xfa)](_0x530e35[_0x5afd08(0x115)]['id'],{'unitId':this[_0x5afd08(0x173)][_0x5afd08(0x1d5)],'subUnitId':this['_context'][_0x5afd08(0x218)],'pivotChartId':this[_0x5afd08(0x173)][_0x5afd08(0x1e8)],'controls':{...this[_0x5afd08(0x131)](),..._0x448a6e}}))throw Error('Failed\x20to\x20update\x20PivotChart\x20controls.');}[_0x85c7d5(0x103)](_0xfa7088){const _0x4ed268=_0x85c7d5;this['_sheetChartAdapter']()[_0x4ed268(0x1b6)]({'layout':{'anchor':_0xfa7088}});}['setAbsolutePosition'](_0x6c5d44,_0x2ce82d){const _0x4fac82=_0x85c7d5;this[_0x4fac82(0x19c)]()[_0x4fac82(0x206)](_0x6c5d44,_0x2ce82d);}[_0x85c7d5(0x12a)](_0x4c009c,_0x11916f){const _0xebebec=_0x85c7d5;this[_0xebebec(0x19c)]()[_0xebebec(0x12a)](_0x4c009c,_0x11916f);}[_0x85c7d5(0x180)](_0x7c37b5){const _0x620c7a=_0x85c7d5;this[_0x620c7a(0x19c)]()[_0x620c7a(0x180)](_0x7c37b5);}[_0x85c7d5(0x154)](_0xf2dce){const _0x1457bb=_0x85c7d5;this[_0x1457bb(0x19c)]()[_0x1457bb(0x154)](_0xf2dce);}['remove'](){const _0x263689=_0x85c7d5;return this['_sheetChartAdapter']()[_0x263689(0x1a5)]();}['_getDefinition'](){const _0x32c785=_0x85c7d5;var _0x3d24a8;let {injector:_0xaf7b28,pivotChartId:_0x3ee894,subUnitId:_0x1b5d4c,unitId:_0x192430}=this[_0x32c785(0x173)],_0x34a8b2=(_0x3d24a8=_0xaf7b28['get'](_0x530e35[_0x32c785(0x201)])[_0x32c785(0x189)](_0x192430,_0x1b5d4c,_0x3ee894))==null?void 0x0:_0x3d24a8['snapshot'];if(!_0x34a8b2)throw Error(_0x32c785(0x175)+_0x3ee894);return _0x34a8b2;}['_getOwnedSourceRange'](_0x40602e){const _0x312d2b=_0x85c7d5;var _0x21346b,_0xeaca14;let _0x4af096=this[_0x312d2b(0x1b1)]();if((0x0,_0x5f5616[_0x312d2b(0x19f)])(_0x4af096)||_0x4af096[_0x312d2b(0x160)]['kind']!==_0x32dabd['PivotCacheReferenceKindEnum']['Unit'])return;let _0x2f38cb=(_0x21346b=this[_0x312d2b(0x173)][_0x312d2b(0x14b)][_0x312d2b(0x189)](_0x2e298c[_0x312d2b(0x113)],_0x1d4cfa[_0x312d2b(0x209)][_0x312d2b(0x162)]))==null?void 0x0:_0x21346b[_0x312d2b(0x122)](_0x4af096[_0x312d2b(0x160)]['ownerUnitId'],_0x40602e);return(_0x2f38cb==null?void 0x0:_0x2f38cb[_0x312d2b(0x1ed)])??((_0xeaca14=this['_context'][_0x312d2b(0x14b)][_0x312d2b(0x189)](_0x2e298c[_0x312d2b(0x1a2)],_0x1d4cfa[_0x312d2b(0x209)]['OPTIONAL']))==null||(_0xeaca14=_0xeaca14[_0x312d2b(0x122)](_0x4af096[_0x312d2b(0x160)][_0x312d2b(0x183)],_0x40602e))==null?void 0x0:_0xeaca14[_0x312d2b(0x1ed)]);}['_getReportCollection'](){const _0x53e328=_0x85c7d5;let _0x1b754a=this[_0x53e328(0x1b1)](),_0x1a1a1c=this[_0x53e328(0x173)][_0x53e328(0x14b)]['get'](_0x2e298c[_0x53e328(0x113)],_0x1d4cfa[_0x53e328(0x209)][_0x53e328(0x162)]);if((0x0,_0x5f5616['isLinkedPivotChartDefinition'])(_0x1b754a)){let {pivotTableId:_0x5288b4,unitId:_0x1fb127}=_0x1b754a['pivotTableRef'];return _0x1a1a1c==null?void 0x0:_0x1a1a1c['getCollection'](_0x1fb127,_0x5288b4);}if(_0x1b754a['cacheRef'][_0x53e328(0xf4)]===_0x32dabd[_0x53e328(0xf7)][_0x53e328(0x1d6)])return _0x1a1a1c==null?void 0x0:_0x1a1a1c[_0x53e328(0x122)](_0x1b754a[_0x53e328(0x160)][_0x53e328(0x183)],_0x1b754a['id']);}[_0x85c7d5(0x19c)](){const _0x240ccd=_0x85c7d5;return new _0x270bfe['SheetChartConfigAdapter']({'unitId':this[_0x240ccd(0x173)][_0x240ccd(0x1d5)],'subUnitId':this['_context'][_0x240ccd(0x218)],'chartId':this[_0x240ccd(0x173)][_0x240ccd(0x1e8)],'injector':this[_0x240ccd(0x173)]['injector']});}};let _0x1668ee={'type':_0xf0aa57[_0x85c7d5(0x1ad)][_0x85c7d5(0x216)],'baseFieldId':'','baseItem':''};var _0xb9dae4=class extends _0x5586fd[_0x85c7d5(0x1df)]{constructor(_0x2c3a27,_0x57849d,_0x5166d2,_0x4b9a49){const _0x55a76d=_0x85c7d5;super(),this[_0x55a76d(0x1d5)]=_0x2c3a27,this[_0x55a76d(0x218)]=_0x57849d,this[_0x55a76d(0x1e8)]=_0x5166d2,this[_0x55a76d(0x15e)]=_0x4b9a49;}[_0x85c7d5(0x10d)](){const _0x17185f=_0x85c7d5;return this[_0x17185f(0x1e8)];}[_0x85c7d5(0x110)](){const _0x160e23=_0x85c7d5;return this['_createAdapter']()[_0x160e23(0x13e)]()[_0x160e23(0x169)][_0x160e23(0x1c2)];}[_0x85c7d5(0x13e)](){const _0x15c875=_0x85c7d5;return _0x1d4cfa[_0x15c875(0x15d)][_0x15c875(0x145)](this[_0x15c875(0x18e)]()[_0x15c875(0x13e)]());}[_0x85c7d5(0xf9)](_0x2baaab){const _0x105dc1=_0x85c7d5;let _0x3e9ced=this[_0x105dc1(0x18e)](),_0x29b0c2=_0x3e9ced[_0x105dc1(0x164)](),_0xfe2ecb=_0x2baaab??_0x29b0c2['type'];if(!(0x0,_0x5f5616[_0x105dc1(0x14a)])(_0xfe2ecb))throw Error('Unsupported\x20PivotChart\x20type:\x20'+_0xfe2ecb);return _0x3417e0({'type':_0xfe2ecb,'info':_0x3e9ced['getInfo'](),'description':_0x29b0c2});}async[_0x85c7d5(0x18a)](_0x1c9142){const _0x183d64=_0x85c7d5;let _0x7bb16=this[_0x183d64(0x18e)](),_0x344c56=_0x7bb16[_0x183d64(0x13e)]();if(!_0xc2ad96(_0x344c56[_0x183d64(0x16e)],_0x1c9142['dataSource']))throw Error('PivotChart\x20update\x20cannot\x20replace\x20its\x20source.');if(_0x1c9142[_0x183d64(0x182)]!==void 0x0&&(_0x1c9142[_0x183d64(0x16e)][_0x183d64(0xf4)]===_0x5f5616[_0x183d64(0x200)][_0x183d64(0x198)]||!_0x1d4cfa[_0x183d64(0x15d)]['diffValue'](_0x344c56['initialFieldsConfig'],_0x1c9142['initialFieldsConfig'])))throw Error(_0x183d64(0x172));if(!(0x0,_0x5f5616[_0x183d64(0x14a)])(_0x1c9142[_0x183d64(0x169)][_0x183d64(0x1c2)]))throw Error(_0x183d64(0x15f)+_0x1c9142[_0x183d64(0x169)][_0x183d64(0x1c2)]);return await _0x7bb16[_0x183d64(0x18a)](_0x1d4cfa[_0x183d64(0x15d)]['deepClone'](_0x1c9142)),this;}[_0x85c7d5(0x1a7)](){const _0x227334=_0x85c7d5;var _0x167bc7;return((_0x167bc7=this[_0x227334(0x18e)]()[_0x227334(0x100)]())==null?void 0x0:_0x167bc7[_0x227334(0xf4)])??_0x5f5616[_0x227334(0x200)][_0x227334(0x1e1)];}[_0x85c7d5(0x144)](){const _0x34c51f=_0x85c7d5;return this[_0x34c51f(0x1a7)]()===_0x5f5616['PivotChartSourceKind'][_0x34c51f(0x198)];}[_0x85c7d5(0x133)](){const _0xe22035=_0x85c7d5;return this[_0xe22035(0x18e)]()[_0xe22035(0x133)]();}[_0x85c7d5(0x18d)](_0x3f18a7){const _0x1d5fce=_0x85c7d5;return this['_executeReportCommand'](_0x530e35[_0x1d5fce(0x179)]['id'],{'dataRangeInfo':_0x1d4cfa['Tools'][_0x1d5fce(0x145)](_0x3f18a7)});}['getPivotTableReference'](){const _0x13d344=_0x85c7d5;return _0x1d4cfa[_0x13d344(0x15d)][_0x13d344(0x145)](this[_0x13d344(0x18e)]()[_0x13d344(0x1a9)]());}['getPivotTable'](){const _0x2b8743=_0x85c7d5;let _0xa61873=this[_0x2b8743(0x18e)]()[_0x2b8743(0x1a9)]();return!_0xa61873||!this[_0x2b8743(0x18e)]()[_0x2b8743(0x121)]()?null:new _0x41a1c3[(_0x2b8743(0x1d2))](_0xa61873[_0x2b8743(0x1d5)],_0xa61873['subUnitId'],_0xa61873[_0x2b8743(0xf8)],this[_0x2b8743(0x15e)]);}[_0x85c7d5(0x146)](){const _0x70a749=_0x85c7d5;return _0x1d4cfa['Tools'][_0x70a749(0x145)](this[_0x70a749(0x18e)]()[_0x70a749(0x146)]());}[_0x85c7d5(0x17b)](){const _0x473c4b=_0x85c7d5;return _0x1d4cfa['Tools'][_0x473c4b(0x145)](this[_0x473c4b(0x18e)]()[_0x473c4b(0x17b)]());}[_0x85c7d5(0x14e)](_0x45382a){const _0x359272=_0x85c7d5;let _0x55262e=this[_0x359272(0x18e)]()['getFieldsConfig'](),_0x2e0359=(_0x55262e==null?void 0x0:_0x55262e[_0x359272(0x174)][_0x45382a])??(_0x55262e==null?void 0x0:_0x55262e['measure'][_0x45382a]);return _0x2e0359?_0x1d4cfa[_0x359272(0x15d)][_0x359272(0x145)](_0x2e0359):void 0x0;}[_0x85c7d5(0x199)](_0x1b3eaa){const _0xc8db37=_0x85c7d5;let _0x52f50d=this['_createAdapter']()['getFieldsConfig']();if(!_0x52f50d)return[];switch(_0x1b3eaa){case _0xf0aa57[_0xc8db37(0x10b)][_0xc8db37(0x1ce)]:return _0x52f50d[_0xc8db37(0x18f)][_0xc8db37(0x166)]();case _0xf0aa57[_0xc8db37(0x10b)][_0xc8db37(0x167)]:return _0x52f50d['columnFields'][_0xc8db37(0x166)]();case _0xf0aa57[_0xc8db37(0x10b)]['Value']:return _0x52f50d['valueFields']['concat']();case _0xf0aa57['PivotTableFiledAreaEnum'][_0xc8db37(0x155)]:return _0x52f50d[_0xc8db37(0x203)][_0xc8db37(0x166)]();case _0xf0aa57[_0xc8db37(0x10b)][_0xc8db37(0x211)]:return _0x52f50d[_0xc8db37(0x210)]['concat']();default:return[];}}[_0x85c7d5(0x1b3)](_0x3290ba){const _0x2d0112=_0x85c7d5;return this['_executeReportCommand'](_0x530e35['SetPivotChartFieldsConfigCommand']['id'],{'pivotTableConfig':_0x1d4cfa['Tools'][_0x2d0112(0x145)](_0x3290ba)});}[_0x85c7d5(0xf6)](_0x198afd){const _0x50cb46=_0x85c7d5;let _0x75b468=this[_0x50cb46(0x18e)]()[_0x50cb46(0x146)]();return _0x75b468?this['setFieldsConfig'](_0xad1357(_0x75b468,_0x198afd)):Promise['resolve'](!0x1);}[_0x85c7d5(0x1aa)](_0x31db26,_0x3bbfe7,_0x484237){const _0xef2c90=_0x85c7d5;var _0xe55a62;let _0x59e2f5=this['_createAdapter']()['getSourceFieldsInfo'](),_0x320fa7=typeof _0x31db26==_0xef2c90(0xfb)?(_0xe55a62=_0x59e2f5[_0x31db26])==null?void 0x0:_0xe55a62['id']:_0x31db26;return _0x320fa7?this[_0xef2c90(0x177)](_0x530e35[_0xef2c90(0x141)]['id'],{'dataFieldId':_0x320fa7,'fieldArea':_0x3bbfe7,'index':_0x484237}):Promise['resolve'](!0x1);}[_0x85c7d5(0x134)](_0xb2584f){const _0x4ffb78=_0x85c7d5;return this['_executeReportCommand'](_0x530e35[_0x4ffb78(0x1fb)]['id'],{'fieldIds':_0xb2584f[_0x4ffb78(0x166)]()});}[_0x85c7d5(0x111)](_0xfecdb6,_0x40d115,_0x2b9216){const _0x2787c3=_0x85c7d5;return this[_0x2787c3(0x177)](_0x530e35[_0x2787c3(0x143)]['id'],{'fieldId':_0xfecdb6,'fieldArea':_0x40d115,'index':_0x2b9216});}[_0x85c7d5(0x1cc)](_0x34d199,_0x380919){const _0x17173b=_0x85c7d5;return this['_executeReportCommand'](_0x530e35[_0x17173b(0x195)]['id'],{'position':_0x34d199,'index':_0x380919});}['setFieldSetting'](_0x4ba9fa,_0x2e7fa4){const _0x503688=_0x85c7d5;return this[_0x503688(0x177)](_0x530e35['SetPivotChartFieldSettingCommand']['id'],{'fieldId':_0x4ba9fa,'setting':_0x1d4cfa[_0x503688(0x15d)][_0x503688(0x145)](_0x2e7fa4)});}[_0x85c7d5(0xfe)](_0x328913,_0x3c820e){const _0x168f9f=_0x85c7d5;return this[_0x168f9f(0x107)](_0x328913,{'displayName':_0x3c820e});}['getShowDataAs'](_0x4c57cd){const _0x116614=_0x85c7d5;var _0x5d4757;let _0x51feaa=this[_0x116614(0x14e)](_0x4c57cd);if(_0x51feaa&&'subtotal'in _0x51feaa)return((_0x5d4757=_0x51feaa[_0x116614(0x20f)])==null?void 0x0:_0x5d4757[_0x116614(0x1c2)])===void 0x0?{..._0x1668ee}:_0x1d4cfa[_0x116614(0x15d)]['deepClone'](_0x51feaa[_0x116614(0x20f)]);}[_0x85c7d5(0x16f)](_0xa4333b,_0x2381cc){const _0x454692=_0x85c7d5;return this['setFieldSetting'](_0xa4333b,{'showDataAs':_0x1d4cfa['Tools'][_0x454692(0x145)](_0x2381cc)});}[_0x85c7d5(0x10f)](_0x19b37d){const _0x366668=_0x85c7d5;return this[_0x366668(0x16f)](_0x19b37d,{..._0x1668ee});}[_0x85c7d5(0x14d)](_0x507aa2,_0x57e876){const _0x5772f2=_0x85c7d5;return this[_0x5772f2(0x177)](_0x530e35[_0x5772f2(0x124)]['id'],{'fieldId':_0x507aa2,'info':_0x1d4cfa[_0x5772f2(0x15d)][_0x5772f2(0x145)](_0x57e876)});}[_0x85c7d5(0x194)](_0x4ca743){const _0xc13cd6=_0x85c7d5;return this[_0xc13cd6(0x177)](_0x530e35[_0xc13cd6(0x124)]['id'],{'fieldId':_0x4ca743,'info':void 0x0});}[_0x85c7d5(0x10c)](_0x15a1ae,_0x49f685,_0x30fbc7){const _0x33636d=_0x85c7d5;return this[_0x33636d(0x177)](_0x530e35[_0x33636d(0x1e9)]['id'],{'fieldId':_0x15a1ae,'items':_0x49f685[_0x33636d(0x166)](),'isAll':_0x30fbc7});}[_0x85c7d5(0xf0)](_0x21a0c1){const _0x431320=_0x85c7d5;var _0x17b0b5;let _0x571fda=(_0x17b0b5=this[_0x431320(0x18e)]()['getFieldsConfig']())==null||(_0x17b0b5=_0x17b0b5[_0x431320(0x1d9)])==null||(_0x17b0b5=_0x17b0b5[_0x431320(0x1b9)](_0x2b94e3=>_0x2b94e3[_0x431320(0x149)]===_0x21a0c1))==null?void 0x0:_0x17b0b5[_0x431320(0x16d)];return _0x571fda?_0x1d4cfa['Tools']['deepClone'](_0x571fda):void 0x0;}[_0x85c7d5(0x13c)](){const _0x59fb9c=_0x85c7d5;var _0x3a4368;return _0x1d4cfa['Tools']['deepClone'](((_0x3a4368=this[_0x59fb9c(0x18e)]()[_0x59fb9c(0x146)]())==null?void 0x0:_0x3a4368['valueFilter'])??[]);}['setValueFilter'](_0x110fc7,_0x2995e8){const _0x39f72b=_0x85c7d5;return this[_0x39f72b(0x177)](_0x530e35[_0x39f72b(0x1a0)]['id'],{'fieldId':_0x110fc7,'valueFilterInfo':_0x2995e8?{..._0x1d4cfa[_0x39f72b(0x15d)][_0x39f72b(0x145)](_0x2995e8),'type':_0xf0aa57[_0x39f72b(0x123)]['ValueFilter']}:void 0x0});}['clearValueFilter'](_0x53ed0b){const _0x49496a=_0x85c7d5;return this[_0x49496a(0x17c)](_0x53ed0b,void 0x0);}['setDateGroupType'](_0x328cb9,_0xa3aa9b){const _0x164f49=_0x85c7d5;return this[_0x164f49(0x177)](_0x530e35[_0x164f49(0x19b)]['id'],{'fieldId':_0x328cb9,'dateType':_0xa3aa9b});}[_0x85c7d5(0x161)](_0x48db7d,_0x5e84b6,_0x522a00){const _0x4b3ca8=_0x85c7d5;return this[_0x4b3ca8(0x177)](_0x530e35[_0x4b3ca8(0x1bd)]['id'],{'fieldId':_0x48db7d,'collapse':_0x5e84b6,'item':_0x522a00});}[_0x85c7d5(0x15c)](_0x26274d){const _0x2d5ba0=_0x85c7d5;return this[_0x2d5ba0(0x177)](_0x530e35['SetPivotChartCategoryLevelCommand']['id'],{'fieldId':_0x26274d});}[_0x85c7d5(0x131)](){const _0x382dfd=_0x85c7d5;return _0x1d4cfa[_0x382dfd(0x15d)][_0x382dfd(0x145)](this[_0x382dfd(0x18e)]()['getControls']());}[_0x85c7d5(0x109)](_0x2f408d){const _0x170d69=_0x85c7d5;if(!(0x0,_0x5f5616['isPivotChartTypeString'])(_0x2f408d))throw Error(_0x170d69(0x15f)+_0x2f408d);return this[_0x170d69(0x17f)]({'type':_0x2f408d});}['setTitle'](_0x242294){const _0x324cb4=_0x85c7d5;return this[_0x324cb4(0x11c)]((0x0,_0x3feb7a[_0x324cb4(0x1db)])(_0x242294));}[_0x85c7d5(0x1e5)](){const _0x509f7a=_0x85c7d5;return this[_0x509f7a(0x11c)]((0x0,_0x3feb7a[_0x509f7a(0x1e5)])());}['setSubtitle'](_0x44c5d3){const _0x2d4faf=_0x85c7d5;return this[_0x2d4faf(0x11c)]((0x0,_0x3feb7a[_0x2d4faf(0x1ef)])(_0x44c5d3));}[_0x85c7d5(0x1cb)](){const _0x307efe=_0x85c7d5;return this[_0x307efe(0x11c)]((0x0,_0x3feb7a['clearSubtitle'])());}['setLegend'](_0x43ca20){const _0x145e69=_0x85c7d5;return this['_apply']((0x0,_0x3feb7a[_0x145e69(0x11a)])(_0x43ca20));}[_0x85c7d5(0x192)](){const _0x30a686=_0x85c7d5;return this[_0x30a686(0x11c)]((0x0,_0x3feb7a[_0x30a686(0x192)])());}[_0x85c7d5(0x1bf)](_0xf79fec){const _0x53c088=_0x85c7d5;return this['_apply']((0x0,_0x3feb7a[_0x53c088(0x1bf)])(_0xf79fec));}[_0x85c7d5(0x1c8)](){const _0x25f2d9=_0x85c7d5;return this['_apply']((0x0,_0x3feb7a[_0x25f2d9(0x1c8)])());}[_0x85c7d5(0x1da)](_0x248479){const _0x4847ec=_0x85c7d5;return this['_apply']((0x0,_0x3feb7a[_0x4847ec(0x1da)])(_0x248479));}[_0x85c7d5(0x1ba)](){const _0x4d93c1=_0x85c7d5;return this['_apply']((0x0,_0x3feb7a[_0x4d93c1(0x1ba)])());}[_0x85c7d5(0x1ca)](_0x53c042){const _0x496cd4=_0x85c7d5;return this[_0x496cd4(0x11c)]((0x0,_0x3feb7a['setAppearance'])(_0x53c042));}['clearAppearance'](_0x47cbd7){const _0xb52e93=_0x85c7d5;return this[_0xb52e93(0x11c)]((0x0,_0x3feb7a[_0xb52e93(0x18c)])(_0x47cbd7));}[_0x85c7d5(0x132)](_0x119d1c){const _0x31d5f6=_0x85c7d5;return this[_0x31d5f6(0x11c)]((0x0,_0x3feb7a[_0x31d5f6(0x132)])(_0x119d1c));}['resetAutoGradientFill'](){const _0x3d113d=_0x85c7d5;return this[_0x3d113d(0x11c)]((0x0,_0x3feb7a[_0x3d113d(0x1f7)])());}[_0x85c7d5(0x1f5)](_0x468dad){const _0x120eae=_0x85c7d5;return this[_0x120eae(0x11c)]((0x0,_0x3feb7a[_0x120eae(0x1f5)])(_0x468dad));}[_0x85c7d5(0x176)](){const _0xdb968f=_0x85c7d5;return this[_0xdb968f(0x11c)]((0x0,_0x3feb7a[_0xdb968f(0x176)])());}[_0x85c7d5(0x220)](_0x5ae369){const _0x58ea11=_0x85c7d5;return this[_0x58ea11(0x18e)]()[_0x58ea11(0x1c4)](_0x5ae369),this;}[_0x85c7d5(0x105)](_0x2c3bd2){const _0x27cc86=_0x85c7d5;return this[_0x27cc86(0x220)]({'showFieldButtons':_0x2c3bd2});}[_0x85c7d5(0x114)](_0xdd8a25){const _0x730294=_0x85c7d5;return this[_0x730294(0x220)]({'showExpandCollapseButtons':_0xdd8a25});}['setPosition'](_0x3e2731){const _0x1f73ca=_0x85c7d5;return this['_createAdapter']()[_0x1f73ca(0x103)](_0x3e2731),this;}['setAbsolutePosition'](_0x387c13,_0x2147bb){const _0x21e697=_0x85c7d5;return this['_createAdapter']()[_0x21e697(0x206)](_0x387c13,_0x2147bb),this;}[_0x85c7d5(0x12a)](_0x41f812,_0x1697cc){const _0x1866d9=_0x85c7d5;return this[_0x1866d9(0x18e)]()['setSize'](_0x41f812,_0x1697cc),this;}[_0x85c7d5(0x19d)](){const _0x4f0064=_0x85c7d5;return this[_0x4f0064(0x1d3)](_0x1d4cfa['ArrangeTypeEnum'][_0x4f0064(0x15b)]);}[_0x85c7d5(0x1c1)](){const _0x416502=_0x85c7d5;return this['_arrange'](_0x1d4cfa['ArrangeTypeEnum'][_0x416502(0x178)]);}[_0x85c7d5(0x1f9)](){const _0x1df643=_0x85c7d5;return this[_0x1df643(0x1d3)](_0x1d4cfa['ArrangeTypeEnum'][_0x1df643(0x21b)]);}[_0x85c7d5(0x1f6)](){const _0x4e0d74=_0x85c7d5;return this[_0x4e0d74(0x1d3)](_0x1d4cfa[_0x4e0d74(0x1e4)]['back']);}[_0x85c7d5(0x154)](_0x6b66bf){const _0x43c975=_0x85c7d5;return this[_0x43c975(0x18e)]()['setZOrder'](_0x6b66bf),this;}[_0x85c7d5(0x1a5)](){const _0x26e48e=_0x85c7d5;return this[_0x26e48e(0x18e)]()['remove']();}['_createAdapter'](){const _0x395372=_0x85c7d5;return new _0x1724c9({'unitId':this['unitId'],'subUnitId':this[_0x395372(0x218)],'pivotChartId':this['pivotChartId'],'injector':this[_0x395372(0x15e)]});}[_0x85c7d5(0x177)](_0xa30585,_0x2d281b){const _0x573628=_0x85c7d5;return this[_0x573628(0x15e)][_0x573628(0x189)](_0x1d4cfa[_0x573628(0x13b)])[_0x573628(0x1c6)](_0xa30585,{'unitId':this['unitId'],'subUnitId':this[_0x573628(0x218)],'pivotChartId':this['pivotChartId'],..._0x2d281b});}['_arrange'](_0x2c4235){const _0x33093c=_0x85c7d5;return this[_0x33093c(0x18e)]()[_0x33093c(0x180)](_0x2c4235),this;}[_0x85c7d5(0x11c)](_0x76c0ca){const _0x1a5f44=_0x85c7d5;return this[_0x1a5f44(0x17f)](_0x76c0ca[_0x1a5f44(0x168)]);}[_0x85c7d5(0x17f)](_0x322553){const _0xbc869d=_0x85c7d5;return this['_createAdapter']()[_0xbc869d(0x117)](_0x322553),this;}};function _0xad1357(_0x25a218,_0x508c44){const _0x3e2dde=_0x85c7d5;var _0x1d173f;let _0xb9d786=_0x1d4cfa['Tools'][_0x3e2dde(0x145)](_0x25a218),_0x246347=_0x508c44===void 0x0?_0xb9d786[_0x3e2dde(0x18f)]['concat'](_0xb9d786[_0x3e2dde(0x11f)],_0xb9d786[_0x3e2dde(0x140)],_0xb9d786[_0x3e2dde(0x203)],_0xb9d786[_0x3e2dde(0x210)]):_0xac1f75(_0xb9d786,_0x508c44),_0x43b45f=new Set(_0x246347);return _0xb9d786['rowFields']=_0xb9d786['rowFields']['filter'](_0x51dc82=>!_0x43b45f[_0x3e2dde(0x17e)](_0x51dc82)),_0xb9d786['columnFields']=_0xb9d786[_0x3e2dde(0x11f)][_0x3e2dde(0x1b2)](_0xa0a1a=>!_0x43b45f[_0x3e2dde(0x17e)](_0xa0a1a)),_0xb9d786[_0x3e2dde(0x140)]=_0xb9d786['valueFields'][_0x3e2dde(0x1b2)](_0x1c6131=>!_0x43b45f[_0x3e2dde(0x17e)](_0x1c6131)),_0xb9d786[_0x3e2dde(0x203)]=_0xb9d786[_0x3e2dde(0x203)][_0x3e2dde(0x1b2)](_0x5b057e=>!_0x43b45f['has'](_0x5b057e)),_0xb9d786[_0x3e2dde(0x210)]=_0xb9d786[_0x3e2dde(0x210)][_0x3e2dde(0x1b2)](_0x54ff79=>!_0x43b45f[_0x3e2dde(0x17e)](_0x54ff79)),_0x246347[_0x3e2dde(0x1e7)](_0x4c4318=>{const _0x688df4=_0x3e2dde;delete _0xb9d786['dimension'][_0x4c4318],delete _0xb9d786[_0x688df4(0x1f3)][_0x4c4318],delete _0xb9d786[_0x688df4(0x171)][_0x4c4318];}),_0xb9d786[_0x3e2dde(0x1d9)]=(_0x1d173f=_0xb9d786[_0x3e2dde(0x1d9)])==null?void 0x0:_0x1d173f[_0x3e2dde(0x1b2)](({fieldId:_0x23b9cd,filterInfo:_0x1a95d1})=>!_0x43b45f[_0x3e2dde(0x17e)](_0x23b9cd)&&!_0x43b45f[_0x3e2dde(0x17e)](_0x1a95d1[_0x3e2dde(0x1b4)])),_0xb9d786['valueFields'][_0x3e2dde(0x170)]<0x2&&(_0xb9d786[_0x3e2dde(0x1ac)]=_0xf0aa57['PivotTableValuePositionEnum'][_0x3e2dde(0x204)],_0xb9d786[_0x3e2dde(0x152)]=-0x1),_0xb9d786;}function _0xac1f75(_0x1f6f08,_0x178cb0){const _0x8cf35=_0x85c7d5;switch(_0x178cb0){case _0xf0aa57[_0x8cf35(0x10b)]['Row']:return _0x1f6f08[_0x8cf35(0x18f)][_0x8cf35(0x166)]();case _0xf0aa57[_0x8cf35(0x10b)][_0x8cf35(0x167)]:return _0x1f6f08[_0x8cf35(0x11f)][_0x8cf35(0x166)]();case _0xf0aa57[_0x8cf35(0x10b)][_0x8cf35(0x106)]:return _0x1f6f08[_0x8cf35(0x140)][_0x8cf35(0x166)]();case _0xf0aa57[_0x8cf35(0x10b)][_0x8cf35(0x155)]:return _0x1f6f08[_0x8cf35(0x203)][_0x8cf35(0x166)]();case _0xf0aa57[_0x8cf35(0x10b)]['Hidden']:return _0x1f6f08[_0x8cf35(0x210)][_0x8cf35(0x166)]();default:return[];}}function _0xc2ad96(_0x270cb2,_0xd9ec9b){const _0x14a805=_0x85c7d5;return _0x270cb2[_0x14a805(0xf4)]===_0xd9ec9b[_0x14a805(0xf4)]?_0x270cb2[_0x14a805(0xf4)]===_0x5f5616[_0x14a805(0x200)][_0x14a805(0x198)]&&_0xd9ec9b[_0x14a805(0xf4)]===_0x5f5616[_0x14a805(0x200)][_0x14a805(0x198)]?_0x270cb2['pivotTableRef'][_0x14a805(0x1d5)]===_0xd9ec9b[_0x14a805(0x1d8)]['unitId']&&_0x270cb2[_0x14a805(0x1d8)][_0x14a805(0x218)]===_0xd9ec9b[_0x14a805(0x1d8)][_0x14a805(0x218)]&&_0x270cb2[_0x14a805(0x1d8)]['pivotTableId']===_0xd9ec9b[_0x14a805(0x1d8)][_0x14a805(0xf8)]:_0x270cb2[_0x14a805(0xf4)]===_0x5f5616[_0x14a805(0x200)][_0x14a805(0x1e1)]&&_0xd9ec9b[_0x14a805(0xf4)]===_0x5f5616[_0x14a805(0x200)][_0x14a805(0x1e1)]&&_0x1d4cfa['Tools'][_0x14a805(0x1ec)](_0x270cb2[_0x14a805(0x12d)],_0xd9ec9b['sourceRangeInfo']):!0x1;}var _0x57eb2c=class extends _0x16b2bd[_0x85c7d5(0x196)]{['getPivotChartById'](_0x514284){const _0x25dbb3=_0x85c7d5;let _0x545cb5=this['_injector'][_0x25dbb3(0x189)](_0x530e35[_0x25dbb3(0x201)])[_0x25dbb3(0x10e)](_0x514284);return(_0x545cb5==null?void 0x0:_0x545cb5[_0x25dbb3(0x1d5)])===this[_0x25dbb3(0x10d)]()?new _0xb9dae4(_0x545cb5['unitId'],_0x545cb5[_0x25dbb3(0x218)],_0x514284,this[_0x25dbb3(0x15e)]):null;}};_0x16b2bd[_0x85c7d5(0x196)][_0x85c7d5(0x165)](_0x57eb2c);var _0x34954a=class extends _0x16b2bd[_0x85c7d5(0x208)]{[_0x85c7d5(0x1bc)](_0x18ed5d){const _0x357da1=_0x85c7d5;return _0x140d38({'type':_0x18ed5d,'injector':this['_injector'],'normalizeRange':_0x57bc43=>this[_0x357da1(0x1a3)](_0x57bc43)});}async[_0x85c7d5(0x1fe)](_0x57c731){const _0x1c73cc=_0x85c7d5;var _0x27be96,_0x55f8ea;let _0xfb3544=this['_workbook'][_0x1c73cc(0x20d)](),_0x3b29af=this[_0x1c73cc(0x116)](),_0x6ab17=_0x1c73cc(0x17d)+(0x0,_0x1d4cfa[_0x1c73cc(0x187)])(0x8),_0x4ee243=(0x0,_0x3feb7a[_0x1c73cc(0x158)])(_0x57c731[_0x1c73cc(0x169)]),_0x56643a=[],_0x4ce6a3=(0x0,_0x270bfe['resolveInitialChartPosition'])({'unitId':_0xfb3544,'subUnitId':_0x3b29af,'injector':this[_0x1c73cc(0x15e)]},_0x57c731,_0x56643a);if((_0x57c731[_0x1c73cc(0x12e)]||_0x57c731['position'])&&!_0x4ce6a3)throw Error(_0x56643a[_0x1c73cc(0x1c5)](({message:_0x58d7af})=>_0x58d7af)[_0x1c73cc(0x19a)](';\x20')||_0x1c73cc(0x185));let _0x27e53f={'unitId':_0xfb3544,'subUnitId':_0x3b29af,'pivotChartId':_0x6ab17,'name':_0x57c731[_0x1c73cc(0x14c)],'controls':_0x1d4cfa[_0x1c73cc(0x15d)][_0x1c73cc(0x145)](_0x57c731['controls']),'chart':{'chartType':_0x4ee243['chartType'],'context':_0x4ee243[_0x1c73cc(0x15a)],'style':_0x4ee243[_0x1c73cc(0x21f)],'dataAggregation':_0x4ee243['dataAggregation']},'position':_0x4ce6a3,'width':(_0x27be96=_0x57c731[_0x1c73cc(0x102)])==null?void 0x0:_0x27be96[_0x1c73cc(0x1be)],'height':(_0x55f8ea=_0x57c731[_0x1c73cc(0x102)])==null?void 0x0:_0x55f8ea['height'],..._0x57c731[_0x1c73cc(0x16e)][_0x1c73cc(0xf4)]===_0x5f5616[_0x1c73cc(0x200)]['PivotTable']?{'pivotTableRef':_0x1d4cfa['Tools'][_0x1c73cc(0x145)](_0x57c731[_0x1c73cc(0x16e)]['pivotTableRef'])}:{'sourceRangeInfo':_0x1d4cfa[_0x1c73cc(0x15d)][_0x1c73cc(0x145)](_0x57c731[_0x1c73cc(0x16e)][_0x1c73cc(0x12d)]),'pivotModel':_0x1d4cfa[_0x1c73cc(0x15d)][_0x1c73cc(0x145)](_0x57c731[_0x1c73cc(0x182)])}};if(!await this[_0x1c73cc(0x15e)][_0x1c73cc(0x189)](_0x1d4cfa[_0x1c73cc(0x13b)])['executeCommand'](_0x530e35[_0x1c73cc(0x108)]['id'],_0x27e53f)||!this[_0x1c73cc(0x15e)]['get'](_0x530e35[_0x1c73cc(0x201)])[_0x1c73cc(0x189)](_0xfb3544,_0x3b29af,_0x6ab17))throw Error(_0x1c73cc(0x10a));return new _0xb9dae4(_0xfb3544,_0x3b29af,_0x6ab17,this[_0x1c73cc(0x15e)]);}[_0x85c7d5(0x1de)](_0x5a8b15){const _0x2ee31a=_0x85c7d5;let _0x26f511=this[_0x2ee31a(0x13f)][_0x2ee31a(0x20d)](),_0x1a92a8=this[_0x2ee31a(0x116)]();return this[_0x2ee31a(0x15e)][_0x2ee31a(0x189)](_0x530e35[_0x2ee31a(0x201)])[_0x2ee31a(0x189)](_0x26f511,_0x1a92a8,_0x5a8b15)?new _0xb9dae4(_0x26f511,_0x1a92a8,_0x5a8b15,this[_0x2ee31a(0x15e)]):null;}['getPivotCharts'](){const _0x38bc81=_0x85c7d5;let _0x5c73b5=this[_0x38bc81(0x13f)]['getUnitId'](),_0x565458=this[_0x38bc81(0x116)]();return this[_0x38bc81(0x15e)][_0x38bc81(0x189)](_0x530e35[_0x38bc81(0x201)])[_0x38bc81(0x193)](_0x5c73b5,_0x565458)[_0x38bc81(0x1c5)](({id:_0x113439})=>new _0xb9dae4(_0x5c73b5,_0x565458,_0x113439,this[_0x38bc81(0x15e)]));}['_normalizePivotChartRange'](_0x3df393){const _0x2cc7e2=_0x85c7d5;return typeof _0x3df393=='object'&&_0x2cc7e2(0x1d5)in _0x3df393&&_0x2cc7e2(0x218)in _0x3df393&&'sheetName'in _0x3df393?_0x1d4cfa[_0x2cc7e2(0x15d)][_0x2cc7e2(0x145)](_0x3df393):{'unitId':this['_workbook'][_0x2cc7e2(0x20d)](),'subUnitId':this['getSheetId'](),'sheetName':this[_0x2cc7e2(0x1d0)](),'range':typeof _0x3df393=='string'?this[_0x2cc7e2(0x12b)](_0x3df393)['getRange']():_0x1d4cfa[_0x2cc7e2(0x15d)][_0x2cc7e2(0x145)](_0x3df393)};}};_0x16b2bd[_0x85c7d5(0x208)][_0x85c7d5(0x165)](_0x34954a),_0x41cef6[_0x85c7d5(0x1bb)]=_0xb9dae4;}));