From a7ad611626dbd93370cd9f7e605184ec4e8a0fa8 Mon Sep 17 00:00:00 2001 From: Yagizhan Yakali Date: Fri, 27 Sep 2024 21:11:31 +0200 Subject: [PATCH 01/15] Refactor some components and helpers. --- SiemensIXBlazor.Tests/AGGrid/AGGridTests.cs | 10 +- .../Helper/EnumParserTests.cs | 41 ++++++ .../Components/AGGrid/AGGrid.razor.cs | 6 +- .../Components/ActionCard/ActionCard.razor | 12 +- .../BasicNavigation/BasicNavigation.razor | 11 +- SiemensIXBlazor/Components/Blind/Blind.razor | 6 +- .../Components/Button/Button.razor | 21 +-- .../Components/CardList/CardList.razor | 15 +-- SiemensIXBlazor/Components/Chip/Chip.razor | 17 +-- .../ContentHeader/ContentHeader.razor | 13 +- .../Components/DatePicker/DatePicker.razor | 20 +-- .../DropdownButton/DropdownButton.razor | 19 +-- .../Components/ECharts/ECharts.razor.cs | 2 +- SiemensIXBlazor/Components/KPI/KPI.razor | 16 +-- .../Components/LinkButton/LinkButton.razor | 11 +- .../Components/MessageBar/MessageBar.razor | 11 +- SiemensIXBlazor/Components/Pane/Pane.razor | 22 +--- SiemensIXBlazor/Components/Pill/Pill.razor | 15 +-- .../Components/PushCard/PushCard.razor | 15 +-- .../Components/Select/Select.razor | 24 +--- .../Components/Spinner/Spinner.razor | 9 +- .../Components/SplitButton/SplitButton.razor | 18 +-- SiemensIXBlazor/Components/Tabs/Tabs.razor | 15 +-- .../Components/Theme/Theme.razor.cs | 6 +- SiemensIXBlazor/Components/Tile/Tile.razor | 8 +- .../Components/TimePicker/TimePicker.razor | 19 +-- .../Components/Toast/Toast.razor.cs | 2 +- .../ToggleButton/IconToggleButton.razor | 17 +-- .../ToggleButton/ToggleButton.razor | 16 +-- .../Components/Typography/Typography.razor | 14 +- .../Components/Workflow/WorkflowStep.razor | 15 +-- SiemensIXBlazor/Helpers/EnumParser.cs | 10 +- SiemensIXBlazor/Interops/BaseInterop.cs | 15 ++- SiemensIXBlazor/Interops/FileUploadInterop.cs | 15 ++- SiemensIXBlazor/Interops/TabsInterop.cs | 15 ++- .../SiemensIXBlazor_NpmJS/src/index.js | 122 +++++++++--------- .../wwwroot/js/interops/aboutMenuInterop.js | 16 +-- .../wwwroot/js/interops/applicationInterop.js | 13 +- .../wwwroot/js/interops/baseJsInterop.js | 15 ++- .../js/interops/categoryFilterInterop.js | 69 +++++----- .../js/interops/dateDropdownInterop.js | 16 ++- .../wwwroot/js/interops/fileUploadInterop.js | 67 +++++++--- .../js/interops/settingsMenuInterop.js | 17 +-- .../wwwroot/js/interops/tabsInterop.js | 71 ++++++---- .../wwwroot/js/interops/treeInterop.js | 31 +++-- 45 files changed, 459 insertions(+), 479 deletions(-) create mode 100644 SiemensIXBlazor.Tests/Helper/EnumParserTests.cs diff --git a/SiemensIXBlazor.Tests/AGGrid/AGGridTests.cs b/SiemensIXBlazor.Tests/AGGrid/AGGridTests.cs index 591c9e6..693237c 100644 --- a/SiemensIXBlazor.Tests/AGGrid/AGGridTests.cs +++ b/SiemensIXBlazor.Tests/AGGrid/AGGridTests.cs @@ -75,7 +75,7 @@ public async Task CreateGrid_ReturnsJSObjectReference_WhenIdIsNotEmpty() Mock jsObjectReferenceMock = new(); // Mock of module import for JSRuntime - jsRuntimeMock.Setup(x => x.InvokeAsync("agGridInterop.createGrid", It.IsAny())) + jsRuntimeMock.Setup(x => x.InvokeAsync("siemensIXInterop.agGridInterop.createGrid", It.IsAny())) .Returns(new ValueTask(jsObjectReferenceMock.Object)); Services.AddSingleton(jsRuntimeMock.Object); @@ -86,7 +86,7 @@ public async Task CreateGrid_ReturnsJSObjectReference_WhenIdIsNotEmpty() // Assert Assert.NotNull(result); - jsRuntimeMock.Verify(x => x.InvokeAsync("agGridInterop.createGrid", It.IsAny()), Times.Once); + jsRuntimeMock.Verify(x => x.InvokeAsync("siemensIXInterop.agGridInterop.createGrid", It.IsAny()), Times.Once); } [Fact] @@ -97,16 +97,16 @@ public async Task GetSelectedRows_ReturnsObject() Services.AddSingleton(jsRuntimeMock.Object); var cut = RenderComponent(parameters => parameters.Add(p => p.Id, "testId")); var jsObjectReferenceMock = new Mock(); - jsRuntimeMock.Setup(x => x.InvokeAsync("agGridInterop.getSelectedRows", It.IsAny())) + jsRuntimeMock.Setup(x => x.InvokeAsync("siemensIXInterop.agGridInterop.getSelectedRows", It.IsAny())) .ReturnsAsync(new object()); - + // Act var result = await cut.Instance.GetSelectedRows(jsObjectReferenceMock.Object); // Assert Assert.NotNull(result); - jsRuntimeMock.Verify(x => x.InvokeAsync("agGridInterop.getSelectedRows", It.IsAny()), Times.Once); + jsRuntimeMock.Verify(x => x.InvokeAsync("siemensIXInterop.agGridInterop.getSelectedRows", It.IsAny()), Times.Once); } } } \ No newline at end of file diff --git a/SiemensIXBlazor.Tests/Helper/EnumParserTests.cs b/SiemensIXBlazor.Tests/Helper/EnumParserTests.cs new file mode 100644 index 0000000..2ec4350 --- /dev/null +++ b/SiemensIXBlazor.Tests/Helper/EnumParserTests.cs @@ -0,0 +1,41 @@ +using SiemensIXBlazor.Enums.PushCard; +using SiemensIXBlazor.Helpers; + +namespace SiemensIXBlazor.Tests.Helpers +{ + public class EnumParserTests + { + [Theory] + [InlineData(PushCardVariant.alarm, "alarm")] + [InlineData(PushCardVariant.insight, "insight")] + public void EnumToString_ShouldReturnCorrectLowercaseString_ForValidEnum(PushCardVariant variant, string expected) + { + // Act + var result = EnumParser.EnumToString(variant); + + // Assert + Assert.Equal(expected, result); + } + + [Fact] + public void EnumToString_ShouldReturnEmptyString_ForInvalidEnum() + { + // Arrange + var invalidEnumValue = (PushCardVariant)999; + + // Act & Assert + Assert.Throws(() => EnumParser.EnumToString(invalidEnumValue)); + } + + [Fact] + public void EnumToString_ShouldReturnEmptyString_ForNullEnum() + { + // Arrange + PushCardVariant? nullableEnum = null; + + // Act & Assert + // You need to handle nullable enums outside the method if using EnumParser + Assert.Throws(() => EnumParser.EnumToString(nullableEnum!.Value)); + } + } +} \ No newline at end of file diff --git a/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs b/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs index a8bf2f5..10596d8 100644 --- a/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs +++ b/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs @@ -32,13 +32,13 @@ public partial class AGGrid dotNetHelper = DotNetObjectReference.Create(this); - return await JSRuntime.InvokeAsync("agGridInterop.createGrid", dotNetHelper, Id, JsonConvert.SerializeObject(options)); + return await JSRuntime.InvokeAsync("siemensIXInterop.agGridInterop.createGrid", dotNetHelper, Id, JsonConvert.SerializeObject(options)); } public async Task GetSelectedRows(IJSObjectReference grid) { - return await JSRuntime.InvokeAsync("agGridInterop.getSelectedRows", grid); - + return await JSRuntime.InvokeAsync("siemensIXInterop.agGridInterop.getSelectedRows", grid); + } [JSInvokable] diff --git a/SiemensIXBlazor/Components/ActionCard/ActionCard.razor b/SiemensIXBlazor/Components/ActionCard/ActionCard.razor index 6de90f4..7601e86 100644 --- a/SiemensIXBlazor/Components/ActionCard/ActionCard.razor +++ b/SiemensIXBlazor/Components/ActionCard/ActionCard.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,12 +13,6 @@ @using SiemensIXBlazor.Enums.PushCard @inherits IXBaseComponent - + - diff --git a/SiemensIXBlazor/Components/BasicNavigation/BasicNavigation.razor b/SiemensIXBlazor/Components/BasicNavigation/BasicNavigation.razor index 11ecd21..cf36c8f 100644 --- a/SiemensIXBlazor/Components/BasicNavigation/BasicNavigation.razor +++ b/SiemensIXBlazor/Components/BasicNavigation/BasicNavigation.razor @@ -5,18 +5,15 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using SiemensIXBlazor.Enums.BasicNavigation @using SiemensIXBlazor.Helpers @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/Blind/Blind.razor b/SiemensIXBlazor/Components/Blind/Blind.razor index d2dcfd8..934f79a 100644 --- a/SiemensIXBlazor/Components/Blind/Blind.razor +++ b/SiemensIXBlazor/Components/Blind/Blind.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -16,7 +16,7 @@ @namespace SiemensIXBlazor.Components - + @ChildContent diff --git a/SiemensIXBlazor/Components/Button/Button.razor b/SiemensIXBlazor/Components/Button/Button.razor index b2b901d..e5bf5c3 100644 --- a/SiemensIXBlazor/Components/Button/Button.razor +++ b/SiemensIXBlazor/Components/Button/Button.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,20 +13,9 @@ @using SiemensIXBlazor.Enums.Button; @using SiemensIXBlazor.Helpers - + @ChildContent diff --git a/SiemensIXBlazor/Components/CardList/CardList.razor b/SiemensIXBlazor/Components/CardList/CardList.razor index e33e0b6..de68fd1 100644 --- a/SiemensIXBlazor/Components/CardList/CardList.razor +++ b/SiemensIXBlazor/Components/CardList/CardList.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -15,14 +15,9 @@ @inherits IXBaseComponent @inject IJSRuntime JSRuntime - + @ChildContent diff --git a/SiemensIXBlazor/Components/Chip/Chip.razor b/SiemensIXBlazor/Components/Chip/Chip.razor index e1460f1..bbf3388 100644 --- a/SiemensIXBlazor/Components/Chip/Chip.razor +++ b/SiemensIXBlazor/Components/Chip/Chip.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,15 +15,6 @@ @inherits IXBaseComponent @inject IJSRuntime JSRuntime -@ChildContent +@ChildContent diff --git a/SiemensIXBlazor/Components/ContentHeader/ContentHeader.razor b/SiemensIXBlazor/Components/ContentHeader/ContentHeader.razor index 79e5ad0..6666d55 100644 --- a/SiemensIXBlazor/Components/ContentHeader/ContentHeader.razor +++ b/SiemensIXBlazor/Components/ContentHeader/ContentHeader.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -15,13 +15,8 @@ @inherits IXBaseComponent @inject IJSRuntime JSRuntime - + @ChildContent diff --git a/SiemensIXBlazor/Components/DatePicker/DatePicker.razor b/SiemensIXBlazor/Components/DatePicker/DatePicker.razor index 2a70a09..f5a39bc 100644 --- a/SiemensIXBlazor/Components/DatePicker/DatePicker.razor +++ b/SiemensIXBlazor/Components/DatePicker/DatePicker.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,17 +15,7 @@ @inject IJSRuntime JSRuntime @inherits IXBaseComponent - + diff --git a/SiemensIXBlazor/Components/DropdownButton/DropdownButton.razor b/SiemensIXBlazor/Components/DropdownButton/DropdownButton.razor index b50fc49..5e0414b 100644 --- a/SiemensIXBlazor/Components/DropdownButton/DropdownButton.razor +++ b/SiemensIXBlazor/Components/DropdownButton/DropdownButton.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -14,17 +14,10 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/ECharts/ECharts.razor.cs b/SiemensIXBlazor/Components/ECharts/ECharts.razor.cs index 4cb49b2..ec2c28b 100644 --- a/SiemensIXBlazor/Components/ECharts/ECharts.razor.cs +++ b/SiemensIXBlazor/Components/ECharts/ECharts.razor.cs @@ -22,7 +22,7 @@ public async void InitialChart(dynamic options) { string serializedOptions = JsonConvert.SerializeObject(options); - await JSRuntime.InvokeVoidAsync("initializeChart", Id, serializedOptions); + await JSRuntime.InvokeVoidAsync("siemensIXInterop.initializeChart", Id, serializedOptions); } } } diff --git a/SiemensIXBlazor/Components/KPI/KPI.razor b/SiemensIXBlazor/Components/KPI/KPI.razor index 30f019c..4edfc05 100644 --- a/SiemensIXBlazor/Components/KPI/KPI.razor +++ b/SiemensIXBlazor/Components/KPI/KPI.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,13 +13,7 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + diff --git a/SiemensIXBlazor/Components/LinkButton/LinkButton.razor b/SiemensIXBlazor/Components/LinkButton/LinkButton.razor index d21df16..ad0ed08 100644 --- a/SiemensIXBlazor/Components/LinkButton/LinkButton.razor +++ b/SiemensIXBlazor/Components/LinkButton/LinkButton.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,12 +13,7 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/MessageBar/MessageBar.razor b/SiemensIXBlazor/Components/MessageBar/MessageBar.razor index a5bbb83..b0b2926 100644 --- a/SiemensIXBlazor/Components/MessageBar/MessageBar.razor +++ b/SiemensIXBlazor/Components/MessageBar/MessageBar.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,12 +15,7 @@ @namespace SiemensIXBlazor.Components @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/Pane/Pane.razor b/SiemensIXBlazor/Components/Pane/Pane.razor index d5095f0..79080e0 100644 --- a/SiemensIXBlazor/Components/Pane/Pane.razor +++ b/SiemensIXBlazor/Components/Pane/Pane.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -18,19 +18,9 @@ @inject IJSRuntime JSRuntime - - @ChildContent + + @ChildContent \ No newline at end of file diff --git a/SiemensIXBlazor/Components/Pill/Pill.razor b/SiemensIXBlazor/Components/Pill/Pill.razor index 6b2bc31..4fa52a8 100644 --- a/SiemensIXBlazor/Components/Pill/Pill.razor +++ b/SiemensIXBlazor/Components/Pill/Pill.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,16 +13,7 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + @ChildContent - diff --git a/SiemensIXBlazor/Components/PushCard/PushCard.razor b/SiemensIXBlazor/Components/PushCard/PushCard.razor index c30f31b..8281695 100644 --- a/SiemensIXBlazor/Components/PushCard/PushCard.razor +++ b/SiemensIXBlazor/Components/PushCard/PushCard.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,14 +13,7 @@ @using SiemensIXBlazor.Enums.PushCard @inherits IXBaseComponent - + - diff --git a/SiemensIXBlazor/Components/Select/Select.razor b/SiemensIXBlazor/Components/Select/Select.razor index 0d75af8..3a46343 100644 --- a/SiemensIXBlazor/Components/Select/Select.razor +++ b/SiemensIXBlazor/Components/Select/Select.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,22 +15,10 @@ @namespace SiemensIXBlazor.Components @inherits IXBaseComponent - + @ChildContent - diff --git a/SiemensIXBlazor/Components/Spinner/Spinner.razor b/SiemensIXBlazor/Components/Spinner/Spinner.razor index 5335152..8b60ba9 100644 --- a/SiemensIXBlazor/Components/Spinner/Spinner.razor +++ b/SiemensIXBlazor/Components/Spinner/Spinner.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,8 +13,5 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + diff --git a/SiemensIXBlazor/Components/SplitButton/SplitButton.razor b/SiemensIXBlazor/Components/SplitButton/SplitButton.razor index 7d74cde..5ff10d7 100644 --- a/SiemensIXBlazor/Components/SplitButton/SplitButton.razor +++ b/SiemensIXBlazor/Components/SplitButton/SplitButton.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,18 +15,8 @@ @namespace SiemensIXBlazor.Components @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/Tabs/Tabs.razor b/SiemensIXBlazor/Components/Tabs/Tabs.razor index 65575c4..aff7d12 100644 --- a/SiemensIXBlazor/Components/Tabs/Tabs.razor +++ b/SiemensIXBlazor/Components/Tabs/Tabs.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,15 +15,8 @@ @namespace SiemensIXBlazor.Components @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/Theme/Theme.razor.cs b/SiemensIXBlazor/Components/Theme/Theme.razor.cs index 3fcb15a..123dc29 100644 --- a/SiemensIXBlazor/Components/Theme/Theme.razor.cs +++ b/SiemensIXBlazor/Components/Theme/Theme.razor.cs @@ -15,17 +15,17 @@ public partial class Theme { public async Task SetTheme(string theme) { - await JSRuntime.InvokeVoidAsync("setTheme", theme); + await JSRuntime.InvokeVoidAsync("siemensIXInterop.setTheme", theme); } public async Task ToggleTheme() { - await JSRuntime.InvokeVoidAsync("toggleTheme"); + await JSRuntime.InvokeVoidAsync("siemensIXInterop.toggleTheme"); } public async Task ToggleSystemTheme(bool useSystemTheme) { - await JSRuntime.InvokeVoidAsync("toggleSystemTheme", useSystemTheme); + await JSRuntime.InvokeVoidAsync("siemensIXInterop.toggleSystemTheme", useSystemTheme); } } } diff --git a/SiemensIXBlazor/Components/Tile/Tile.razor b/SiemensIXBlazor/Components/Tile/Tile.razor index 197fb4b..606c552 100644 --- a/SiemensIXBlazor/Components/Tile/Tile.razor +++ b/SiemensIXBlazor/Components/Tile/Tile.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,10 +13,6 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/TimePicker/TimePicker.razor b/SiemensIXBlazor/Components/TimePicker/TimePicker.razor index c7c93af..a030e13 100644 --- a/SiemensIXBlazor/Components/TimePicker/TimePicker.razor +++ b/SiemensIXBlazor/Components/TimePicker/TimePicker.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -15,16 +15,7 @@ @namespace SiemensIXBlazor.Components @inherits IXBaseComponent - + diff --git a/SiemensIXBlazor/Components/Toast/Toast.razor.cs b/SiemensIXBlazor/Components/Toast/Toast.razor.cs index 5616910..590be80 100644 --- a/SiemensIXBlazor/Components/Toast/Toast.razor.cs +++ b/SiemensIXBlazor/Components/Toast/Toast.razor.cs @@ -17,7 +17,7 @@ public partial class Toast { public async void ShowToast(ToastConfig config) { - await JSRuntime.InvokeVoidAsync("showMessage", JsonConvert.SerializeObject(config)); + await JSRuntime.InvokeVoidAsync("siemensIXInterop.showMessage", JsonConvert.SerializeObject(config)); } } } diff --git a/SiemensIXBlazor/Components/ToggleButton/IconToggleButton.razor b/SiemensIXBlazor/Components/ToggleButton/IconToggleButton.razor index 01276be..5a86d39 100644 --- a/SiemensIXBlazor/Components/ToggleButton/IconToggleButton.razor +++ b/SiemensIXBlazor/Components/ToggleButton/IconToggleButton.razor @@ -5,23 +5,14 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @using SiemensIXBlazor.Enums.Button; @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + diff --git a/SiemensIXBlazor/Components/ToggleButton/ToggleButton.razor b/SiemensIXBlazor/Components/ToggleButton/ToggleButton.razor index 45fde46..5ef0fcf 100644 --- a/SiemensIXBlazor/Components/ToggleButton/ToggleButton.razor +++ b/SiemensIXBlazor/Components/ToggleButton/ToggleButton.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using Microsoft.JSInterop; @@ -14,14 +14,6 @@ @inject IJSRuntime JSRuntime @inherits IXBaseComponent -@ChildContent +@ChildContent diff --git a/SiemensIXBlazor/Components/Typography/Typography.razor b/SiemensIXBlazor/Components/Typography/Typography.razor index 238d3c6..08b710c 100644 --- a/SiemensIXBlazor/Components/Typography/Typography.razor +++ b/SiemensIXBlazor/Components/Typography/Typography.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @using SiemensIXBlazor.Enums.Typography; @@ -14,13 +14,9 @@ @namespace SiemensIXBlazor.Components @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Components/Workflow/WorkflowStep.razor b/SiemensIXBlazor/Components/Workflow/WorkflowStep.razor index 68c4731..7d2ab4b 100644 --- a/SiemensIXBlazor/Components/Workflow/WorkflowStep.razor +++ b/SiemensIXBlazor/Components/Workflow/WorkflowStep.razor @@ -5,7 +5,7 @@ // // This source code is licensed under the MIT license found in the // LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- +// ----------------------------------------------------------------------- *@ @namespace SiemensIXBlazor.Components @@ -13,15 +13,8 @@ @using SiemensIXBlazor.Helpers; @inherits IXBaseComponent - + @ChildContent diff --git a/SiemensIXBlazor/Helpers/EnumParser.cs b/SiemensIXBlazor/Helpers/EnumParser.cs index a108b58..44aeb25 100644 --- a/SiemensIXBlazor/Helpers/EnumParser.cs +++ b/SiemensIXBlazor/Helpers/EnumParser.cs @@ -11,11 +11,15 @@ namespace SiemensIXBlazor.Helpers { public static class EnumParser where TEnum : Enum { - public static string ParseEnumToString(object enumValue) + public static string EnumToString(TEnum enumValue, bool toLowerCase = true) { + if (!Enum.IsDefined(typeof(TEnum), enumValue)) + { + throw new ArgumentException($"The value '{enumValue}' is not a valid enum value for type '{typeof(TEnum).Name}'"); + } + var enumName = Enum.GetName(typeof(TEnum), enumValue); - return enumName != null ? enumName.ToLowerInvariant() : string.Empty; + return toLowerCase ? enumName?.ToLowerInvariant() ?? string.Empty : enumName ?? string.Empty; } - } } diff --git a/SiemensIXBlazor/Interops/BaseInterop.cs b/SiemensIXBlazor/Interops/BaseInterop.cs index 42e1c26..358ae6b 100644 --- a/SiemensIXBlazor/Interops/BaseInterop.cs +++ b/SiemensIXBlazor/Interops/BaseInterop.cs @@ -24,15 +24,24 @@ public BaseInterop(IJSRuntime jsRuntime) public async Task AddEventListener(object classObject, string id, string eventName, string callbackFunctionName) { var module = await moduleTask.Value; - await module.InvokeAsync("listenEvent", DotNetObjectReference.Create(classObject), id, eventName, callbackFunctionName); + var objectReference = DotNetObjectReference.Create(classObject); + await module.InvokeAsync("listenEvent", objectReference, id, eventName, callbackFunctionName); + objectReference.Dispose(); } public async ValueTask DisposeAsync() { if (moduleTask.IsValueCreated) { - var module = await moduleTask.Value; - await module.DisposeAsync(); + try + { + var module = await moduleTask.Value; + await module.DisposeAsync(); + } + catch (Exception ex) + { + Console.Error.WriteLine($"Failed to dispose module: {ex.Message}"); + } } } } diff --git a/SiemensIXBlazor/Interops/FileUploadInterop.cs b/SiemensIXBlazor/Interops/FileUploadInterop.cs index ff32b2d..f211984 100644 --- a/SiemensIXBlazor/Interops/FileUploadInterop.cs +++ b/SiemensIXBlazor/Interops/FileUploadInterop.cs @@ -24,15 +24,24 @@ public FileUploadInterop(IJSRuntime jsRuntime) public async Task AddEventListener(object classObject, string id, string eventName, string callbackFunctionName) { var module = await moduleTask.Value; - await module.InvokeAsync("fileUploadEventHandler", DotNetObjectReference.Create(classObject), id, eventName, callbackFunctionName); + var objectReference = DotNetObjectReference.Create(classObject); + await module.InvokeAsync("fileUploadEventHandler", objectReference, id, eventName, callbackFunctionName); + objectReference.Dispose(); } public async ValueTask DisposeAsync() { if (moduleTask.IsValueCreated) { - var module = await moduleTask.Value; - await module.DisposeAsync(); + try + { + var module = await moduleTask.Value; + await module.DisposeAsync(); + } + catch (Exception ex) + { + Console.Error.WriteLine($"Failed to dispose module: {ex.Message}"); + } } } } diff --git a/SiemensIXBlazor/Interops/TabsInterop.cs b/SiemensIXBlazor/Interops/TabsInterop.cs index cb788c0..0b28afc 100644 --- a/SiemensIXBlazor/Interops/TabsInterop.cs +++ b/SiemensIXBlazor/Interops/TabsInterop.cs @@ -30,15 +30,24 @@ public async Task InitialComponent(string id) public async Task SubscribeEvents(object classObject, string id, string eventName, string methodName) { var module = await moduleTask.Value; - await module.InvokeVoidAsync("subscribeEvents", DotNetObjectReference.Create(classObject), id, eventName, methodName); + var objectReference = DotNetObjectReference.Create(classObject); + await module.InvokeVoidAsync("subscribeEvents", objectReference, id, eventName, methodName); + objectReference.Dispose(); } public async ValueTask DisposeAsync() { if (moduleTask.IsValueCreated) { - var module = await moduleTask.Value; - await module.DisposeAsync(); + try + { + var module = await moduleTask.Value; + await module.DisposeAsync(); + } + catch (Exception ex) + { + Console.Error.WriteLine($"Failed to dispose module: {ex.Message}"); + } } } } diff --git a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js index bdbf039..11219b9 100644 --- a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js +++ b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js @@ -1,74 +1,76 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - -import { defineCustomElements, applyPolyfills } from '@siemens/ix/loader/index' -import { toast } from "@siemens/ix" -import '@siemens/ix-echarts'; -import { registerTheme } from '@siemens/ix-echarts'; -import * as echarts from 'echarts'; -import { themeSwitcher } from '@siemens/ix'; -import { Grid } from 'ag-grid-community'; -import { defineCustomElements as ixIconsDefineCustomElements } from '@siemens/ix-icons/loader'; - -(async () => { +window.siemensIXInterop = { + async initialize() { await applyPolyfills(); await ixIconsDefineCustomElements(); await defineCustomElements(); -})(); + }, + + showMessage(config) { + try { + const toastConfig = JSON.parse(config); + toast(toastConfig); + } catch (error) { + console.error("Failed to display toast message:", error); + } + }, + + initializeChart(id, options) { + try { + const element = document.getElementById(id); + if (!element) throw new Error(`Element with ID ${id} not found`); -// toast -window.showMessage = (config) => { - const toastConfig = JSON.parse(config); - toast(toastConfig); -} -// chart -window.initializeChart = (id, options) => { - registerTheme(echarts); - var myChart = echarts.init( - document.getElementById(id), - window.demoTheme // brand-dark, brand-light, classic-dark or classic-light - ); - // Draw the chart - myChart.setOption(JSON.parse(options)); -} -// set theme -window.setTheme = (theme) => { + registerTheme(echarts); + const myChart = echarts.init(element, window.demoTheme); + myChart.setOption(JSON.parse(options)); + } catch (error) { + console.error("Failed to initialize chart:", error); + } + }, + + setTheme(theme) { themeSwitcher.setTheme(theme); -} -// toggle theme -window.toggleTheme = () => { + }, + + toggleTheme() { themeSwitcher.toggleMode(); -} -// toggle system theme -window.toggleSystemTheme = (useSystemTheme) => { - if (useSystemTheme === true) { - themeSwitcher.setVariant(); + }, + + toggleSystemTheme(useSystemTheme) { + if (useSystemTheme) { + themeSwitcher.setVariant(); + } else { + console.warn("System theme switching is disabled."); } -} + }, -// AGGrid -window.agGridInterop = { + agGridInterop: { dotnetReference: null, - createGrid: function (dotnetRef, elementId, gridOptions) { - let parsedOption = JSON.parse(gridOptions); - window.agGridInterop.dotnetReference = dotnetRef; - parsedOption.onCellClicked = function (event) { - dotnetRef.invokeMethodAsync('OnCellClickedCallback'); - }; + createGrid(dotnetRef, elementId, gridOptions) { + const parsedOption = JSON.parse(gridOptions); + this.dotnetReference = dotnetRef; + + parsedOption.onCellClicked = (event) => { + dotnetRef.invokeMethodAsync("OnCellClickedCallback", event.data); + }; - return new Grid(document.getElementById(elementId), parsedOption); + return new Grid(document.getElementById(elementId), parsedOption); }, - setData: function (grid, data) { - grid.gridOptions.api.setRowData(data); + + setData(grid, data) { + grid.gridOptions.api.setRowData(data); }, - getSelectedRows: function (grid) { - return grid.gridOptions.api.getSelectedRows(); + + getSelectedRows(grid) { + return grid.gridOptions.api.getSelectedRows(); }, -} + + dispose() { + this.dotnetReference = null; + }, + }, +}; + +(async () => { + await siemensIXInterop.initialize(); +})(); diff --git a/SiemensIXBlazor/wwwroot/js/interops/aboutMenuInterop.js b/SiemensIXBlazor/wwwroot/js/interops/aboutMenuInterop.js index dbd063f..6cf2af4 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/aboutMenuInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/aboutMenuInterop.js @@ -8,12 +8,10 @@ // ----------------------------------------------------------------------- export async function toggleAbout(id, status) { - try { - const element = document.getElementById(id); - await element.toggleAbout(status) - } - catch { - - } - -} \ No newline at end of file + try { + const element = document.getElementById(id); + await element.toggleAbout(status); + } catch { + console.error("Failed to toggle about:", error); + } +} diff --git a/SiemensIXBlazor/wwwroot/js/interops/applicationInterop.js b/SiemensIXBlazor/wwwroot/js/interops/applicationInterop.js index e1d026c..f9a9de5 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/applicationInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/applicationInterop.js @@ -8,6 +8,15 @@ // ----------------------------------------------------------------------- export const setApplicationConfig = (id, config) => { - const element = document.getElementById(id); + const element = document.getElementById(id); + + if (!element) { + throw new Error(`Element with ID ${id} not found`); + } + + try { element.appSwitchConfig = JSON.parse(config); -} \ No newline at end of file + } catch (error) { + console.error("Failed to set application config:", error); + } +}; diff --git a/SiemensIXBlazor/wwwroot/js/interops/baseJsInterop.js b/SiemensIXBlazor/wwwroot/js/interops/baseJsInterop.js index 1f0f531..6fc39dd 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/baseJsInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/baseJsInterop.js @@ -8,8 +8,13 @@ // ----------------------------------------------------------------------- export function listenEvent(caller, elementId, eventName, funtionName) { - const element = document.getElementById(elementId); - element.addEventListener(eventName, (e) => { - caller.invokeMethodAsync(funtionName, e.detail); - }) -} \ No newline at end of file + const element = document.getElementById(elementId); + + if (!element) { + throw new Error(`Element with ID ${elementId} not found`); + } + + element.addEventListener(eventName, (e) => { + caller.invokeMethodAsync(funtionName, e.detail); + }); +} diff --git a/SiemensIXBlazor/wwwroot/js/interops/categoryFilterInterop.js b/SiemensIXBlazor/wwwroot/js/interops/categoryFilterInterop.js index d346af6..e8f519c 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/categoryFilterInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/categoryFilterInterop.js @@ -8,44 +8,49 @@ // ----------------------------------------------------------------------- export function setCategories(id, categories) { - try { - const element = document.getElementById(id); - element.categories = JSON.parse(categories); - } - catch { - - } - + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); + } + element.categories = JSON.parse(categories); + } catch (err) { + console.error("Failed to set categories:", err); + } } export function setFilterState(id, filterState) { - try { - const element = document.getElementById(id); - element.filterState = JSON.parse(filterState); - } - catch { - - } - + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); + } + element.filterState = JSON.parse(filterState); + } catch (err) { + console.error("Failed to set filter state:", err); + } } export function setNonSelectableCategories(id, nonSelectableCategories) { - try { - const element = document.getElementById(id); - element.nonSelectableCategories = JSON.parse(nonSelectableCategories); - } - catch { - - } - + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); + } + element.nonSelectableCategories = JSON.parse(nonSelectableCategories); + } catch { + console.error("Failed to set non-selectable categories:", error); + } } export function setSuggestions(id, suggestionsObject) { - try { - const element = document.getElementById(id); - element.suggestions = JSON.parse(suggestionsObject).suggestions; - } - catch { - - } -} \ No newline at end of file + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); + } + element.suggestions = JSON.parse(suggestionsObject).suggestions; + } catch { + console.error("Failed to set suggestions:", error); + } +} diff --git a/SiemensIXBlazor/wwwroot/js/interops/dateDropdownInterop.js b/SiemensIXBlazor/wwwroot/js/interops/dateDropdownInterop.js index 9a811ed..14fe0db 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/dateDropdownInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/dateDropdownInterop.js @@ -8,11 +8,13 @@ // ----------------------------------------------------------------------- export function setDateRangeOptions(id, dateRangeOptions) { - try { - const element = document.getElementById(id); - element.dateRangeOptions = JSON.parse(dateRangeOptions); + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); } - catch (err) { - console.error(err) - } -} \ No newline at end of file + element.dateRangeOptions = JSON.parse(dateRangeOptions); + } catch (err) { + console.error("Failed to set date range options:", err); + } +} diff --git a/SiemensIXBlazor/wwwroot/js/interops/fileUploadInterop.js b/SiemensIXBlazor/wwwroot/js/interops/fileUploadInterop.js index 7512e6e..43320a3 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/fileUploadInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/fileUploadInterop.js @@ -7,24 +7,53 @@ // LICENSE file in the root directory of this source tree. // ----------------------------------------------------------------------- -export function fileUploadEventHandler(caller, elementId, eventName, funtionName) { - const element = document.getElementById(elementId); - element.addEventListener(eventName, (e) => { - const files = e.detail; +export function fileUploadEventHandler( + caller, + elementId, + eventName, + functionName +) { + const element = document.getElementById(elementId); - const fileDataArray = []; - for (let i = 0; i < files.length; i++) { - const file = files[i]; - const reader = new FileReader(); - reader.onloadend = function () { - const base64Data = reader.result.split(',')[1]; - fileDataArray.push({ name: file.name, size: file.size, type: file.type, data: base64Data }); + if (!element) { + console.error(`Element with id ${elementId} not found.`); + return; + } - if (fileDataArray.length === files.length) { - caller.invokeMethodAsync(funtionName, fileDataArray); - } - }; - reader.readAsDataURL(file); - } - }) -} \ No newline at end of file + element.addEventListener(eventName, (e) => { + const files = e.detail; + if (!files || files.length === 0) return; // Early exit if no files selected + + const filePromises = Array.from(files).map((file) => { + return new Promise((resolve, reject) => { + const reader = new FileReader(); + reader.onloadend = () => { + try { + const base64Data = reader.result.split(",")[1]; + resolve({ + name: file.name, + size: file.size, + type: file.type, + data: base64Data, + }); + } catch (error) { + reject(error); + } + }; + reader.onerror = (error) => { + console.error(`Error reading file ${file.name}:`, error); + reject(error); + }; + reader.readAsDataURL(file); + }); + }); + + Promise.all(filePromises) + .then((fileDataArray) => { + caller.invokeMethodAsync(functionName, fileDataArray); + }) + .catch((error) => { + console.error("Error processing files:", error); + }); + }); +} diff --git a/SiemensIXBlazor/wwwroot/js/interops/settingsMenuInterop.js b/SiemensIXBlazor/wwwroot/js/interops/settingsMenuInterop.js index 154a8b8..990f7ff 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/settingsMenuInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/settingsMenuInterop.js @@ -8,12 +8,13 @@ // ----------------------------------------------------------------------- export async function toggleSettings(id, status) { - try { - const element = document.getElementById(id); - await element.toggleSettings(status) + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); } - catch { - - } - -} \ No newline at end of file + await element.toggleSettings(status); + } catch { + console.error("Failed to toggle settings:", error); + } +} diff --git a/SiemensIXBlazor/wwwroot/js/interops/tabsInterop.js b/SiemensIXBlazor/wwwroot/js/interops/tabsInterop.js index c8528e9..ba631fb 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/tabsInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/tabsInterop.js @@ -7,30 +7,55 @@ // LICENSE file in the root directory of this source tree. // ----------------------------------------------------------------------- -export const initalTable = async (id) => { - await window.customElements.whenDefined('ix-tabs'); - const tabsElement = document.getElementById(id); - const tabs = tabsElement.querySelectorAll('ix-tab-item[data-tab-id]'); - - function registerClickListener(tab) { - tab.addEventListener('click', (tabContent) => { - const contentList = tabsElement.parentElement.querySelectorAll('[data-tab-content]'); - contentList.forEach((content) => { - if (content.dataset.tabContent === tab.dataset.tabId) { - content.classList.add('show'); - } else { - content.classList.remove('show'); - } - }); - }); - } +export const initializeTabs = async (id) => { + // Ensure that the custom element 'ix-tabs' is defined before proceeding + await window.customElements.whenDefined("ix-tabs"); + + const tabsElement = document.getElementById(id); + if (!tabsElement) { + console.error(`Element with ID ${id} not found.`); + return; + } + + const tabs = tabsElement.querySelectorAll("ix-tab-item[data-tab-id]"); + if (tabs.length === 0) { + console.warn(`No tabs found within element with ID ${id}.`); + return; + } + + // Register tab click listeners + tabs.forEach(registerTabClickListener); - tabs.forEach(registerClickListener); + function registerTabClickListener(tab) { + tab.addEventListener("click", () => handleTabClick(tab, tabsElement)); + } + + function handleTabClick(clickedTab, containerElement) { + const contentList = + containerElement.parentElement.querySelectorAll("[data-tab-content]"); + contentList.forEach((content) => { + content.classList.toggle( + "show", + content.dataset.tabContent === clickedTab.dataset.tabId + ); + }); + } }; export const subscribeEvents = (caller, id, eventName, functionName) => { - const element = document.getElementById(id); - element.addEventListener(eventName, (e) => { - caller.invokeMethodAsync(functionName, e.detail); - }) -} \ No newline at end of file + const element = document.getElementById(id); + if (!element) { + console.error(`Element with ID ${id} not found.`); + return; + } + + element.addEventListener(eventName, (e) => { + if (caller && typeof caller.invokeMethodAsync === "function") { + caller.invokeMethodAsync(functionName, e.detail).catch((error) => { + console.error(`Error invoking method '${functionName}':`, error); + }); + } else { + console.error("Invalid caller or missing invokeMethodAsync function."); + } + }); +}; diff --git a/SiemensIXBlazor/wwwroot/js/interops/treeInterop.js b/SiemensIXBlazor/wwwroot/js/interops/treeInterop.js index 32d1d22..6816c00 100644 --- a/SiemensIXBlazor/wwwroot/js/interops/treeInterop.js +++ b/SiemensIXBlazor/wwwroot/js/interops/treeInterop.js @@ -8,22 +8,25 @@ // ----------------------------------------------------------------------- export function setTreeModel(id, treeModel) { - try { - const element = document.getElementById(id); - element.model = JSON.parse(treeModel); - console.log(element, JSON.parse(treeModel)); - } - catch { - + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); } + element.model = JSON.parse(treeModel); + } catch { + console.error("Failed to set tree model:", error); + } } export function setTreeContext(id, treeContext) { - try { - const element = document.getElementById(id); - element.context = JSON.parse(treeContext); + try { + const element = document.getElementById(id); + if (!element) { + throw new Error(`Element with ID ${id} not found`); } - catch { - - } -} \ No newline at end of file + element.context = JSON.parse(treeContext); + } catch { + console.error("Failed to set tree context:", error); + } +} From 4ff0440025bcdea3b6b22122c15c6a9dbe6b38a3 Mon Sep 17 00:00:00 2001 From: Yagizhan Yakali Date: Fri, 27 Sep 2024 21:14:29 +0200 Subject: [PATCH 02/15] Build javascript packages. --- SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js index 1c79a7d..803d26c 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - -(()=>{var t,e,o,n,i={1864:(t,e,o)=>{"use strict";o.d(e,{H:()=>d,b:()=>N,h:()=>c,p:()=>K,r:()=>G});let n,i,r=!1,a=!1;const s={},l=t=>"object"==(t=typeof t)||"function"===t;function u(t){var e,o,n;return null!==(n=null===(o=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===o?void 0:o.getAttribute("content"))&&void 0!==n?n:void 0}const c=(t,e,...o)=>{let n=null,i=!1,r=!1;const a=[],s=e=>{for(let o=0;ot[e])).join(" "))}const u=p(t,null);return u.$attrs$=e,a.length>0&&(u.$children$=a),u},p=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null}),d={},h=new WeakMap,f=(t,e)=>"sc-"+t.$tagName$,g=(t,e,o,n,i,r)=>{if(o!==n){let a=H(t,e);if(e.toLowerCase(),"class"===e){const e=t.classList,i=y(o),r=y(n);e.remove(...i.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!i.includes(t))))}else if("style"===e){for(const e in o)n&&null!=n[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in n)o&&n[e]===o[e]||(e.includes("-")?t.style.setProperty(e,n[e]):t.style[e]=n[e])}else{const s=l(n);if((a||s&&null!==n)&&!i)try{if(t.tagName.includes("-"))t[e]=n;else{const i=null==n?"":n;"list"===e?a=!1:null!=o&&t[e]==i||(t[e]=i)}}catch(t){}null==n||!1===n?!1===n&&""!==t.getAttribute(e)||t.removeAttribute(e):(!a||4&r||i)&&!s&&(n=!0===n?"":n,t.setAttribute(e,n))}}},v=/\s/,y=t=>t?t.split(v):[],m=(t,e,o,n)=>{const i=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||s,a=e.$attrs$||s;for(n in r)n in a||g(i,n,r[n],void 0,o,e.$flags$);for(n in a)g(i,n,r[n],a[n],o,e.$flags$)},C=(t,e,o,i)=>{const a=e.$children$[o];let s,l,u=0;if(r||(r="svg"===a.$tag$),s=a.$elm$=$.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a.$tag$),r&&"foreignObject"===a.$tag$&&(r=!1),m(null,a,r),null!=n&&s["s-si"]!==n&&s.classList.add(s["s-si"]=n),a.$children$)for(u=0;u{let s,l=t;for(l.shadowRoot&&l.tagName===i&&(l=l.shadowRoot);r<=a;++r)n[r]&&(s=C(null,o,r),s&&(n[r].$elm$=s,l.insertBefore(s,e)))},S=(t,e,o,n,i)=>{for(;e<=o;++e)(n=t[e])&&n.$elm$.remove()},b=(t,e)=>t.$tag$===e.$tag$,_=(t,e)=>{const o=e.$elm$=t.$elm$,n=t.$children$,i=e.$children$,a=e.$tag$;r="svg"===a||"foreignObject"!==a&&r,m(t,e,r),null!==n&&null!==i?((t,e,o,n)=>{let i,r=0,a=0,s=e.length-1,l=e[0],u=e[s],c=n.length-1,p=n[0],d=n[c];for(;r<=s&&a<=c;)null==l?l=e[++r]:null==u?u=e[--s]:null==p?p=n[++a]:null==d?d=n[--c]:b(l,p)?(_(l,p),l=e[++r],p=n[++a]):b(u,d)?(_(u,d),u=e[--s],d=n[--c]):b(l,d)?(_(l,d),t.insertBefore(l.$elm$,u.$elm$.nextSibling),l=e[++r],d=n[--c]):b(u,p)?(_(u,p),t.insertBefore(u.$elm$,l.$elm$),u=e[--s],p=n[++a]):(i=C(e&&e[a],o,a),p=n[++a],i&&l.$elm$.parentNode.insertBefore(i,l.$elm$));r>s?w(t,null==n[c+1]?null:n[c+1].$elm$,o,n,a,c):a>c&&S(e,r,s)})(o,n,e,i):null!==i?w(o,null,e,i,0,i.length-1):null!==n&&S(n,0,n.length-1),r&&"svg"===a&&(r=!1)},x=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},E=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return x(t,t.$ancestorComponent$),ot((()=>T(t,e)));t.$flags$|=512},T=(t,e)=>{const o=(t.$cmpMeta$.$tagName$,()=>{}),n=t.$lazyInstance$;return o(),A(void 0,(()=>D(t,n,e)))},D=async(t,e,o)=>{const n=t.$hostElement$,i=(t.$cmpMeta$.$tagName$,()=>{}),r=n["s-rc"];o&&(t=>{const e=t.$cmpMeta$,o=t.$hostElement$,n=e.$flags$,i=(e.$tagName$,()=>{}),r=((t,e,o,n)=>{var i;let r=f(e);const a=j.get(r);if(t=11===t.nodeType?t:$,a)if("string"==typeof a){t=t.head||t;let e,o=h.get(t);if(o||h.set(t,o=new Set),!o.has(r)){{e=$.createElement("style"),e.innerHTML=a;const o=null!==(i=Y.$nonce$)&&void 0!==i?i:u($);null!=o&&e.setAttribute("nonce",o),t.insertBefore(e,t.querySelector("link"))}o&&o.add(r)}}else t.adoptedStyleSheets.includes(a)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,a]);return r})(o.shadowRoot?o.shadowRoot:o.getRootNode(),e);10&n&&(o["s-sc"]=r,o.classList.add(r+"-h")),i()})(t);const a=(t.$cmpMeta$.$tagName$,()=>{});R(t,e),r&&(r.map((t=>t())),n["s-rc"]=void 0),a(),i();{const e=n["s-p"],o=()=>O(t);0===e.length?o():(Promise.all(e).then(o),t.$flags$|=4,e.length=0)}},R=(t,e,o)=>{try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e)=>{const o=t.$hostElement$,r=t.$vnode$||p(null,null),a=(s=e)&&s.$tag$===d?e:c(null,null,e);var s;i=o.tagName,a.$tag$=null,a.$flags$|=4,t.$vnode$=a,a.$elm$=r.$elm$=o.shadowRoot||o,n=o["s-sc"],_(r,a)})(t,e)}catch(e){B(e,t.$hostElement$)}return null},O=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,o=t.$ancestorComponent$;64&t.$flags$||(t.$flags$|=64,I(e),t.$onReadyResolve$(e),o||M()),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&et((()=>E(t,!1))),t.$flags$&=-517},M=t=>{I($.documentElement),et((()=>((t,e,o)=>{const n=Y.ce("appload",{detail:{namespace:"ix-icons"}});return t.dispatchEvent(n),n})(U)))},A=(t,e)=>t&&t.then?t.then(e):e(),I=t=>t.classList.add("hydrated"),P=(t,e,o)=>{if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const n=Object.entries(e.$members$),i=t.prototype;if(n.map((([t,[n]])=>{(31&n||2&o&&32&n)&&Object.defineProperty(i,t,{get(){return e=t,k(this).$instanceValues$.get(e);var e},set(o){((t,e,o,n)=>{const i=k(t),r=i.$hostElement$,a=i.$instanceValues$.get(e),s=i.$flags$,u=i.$lazyInstance$;var c,p;c=o,p=n.$members$[e][0],o=null==c||l(c)?c:1&p?String(c):c;const d=Number.isNaN(a)&&Number.isNaN(o);if((!(8&s)||void 0===a)&&o!==a&&!d&&(i.$instanceValues$.set(e,o),u)){if(n.$watchers$&&128&s){const t=n.$watchers$[e];t&&t.map((t=>{try{u[t](o,a,e)}catch(t){B(t,r)}}))}2==(18&s)&&E(i,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0})})),1&o){const e=new Map;i.attributeChangedCallback=function(t,o,n){Y.jmp((()=>{const o=e.get(t);if(this.hasOwnProperty(o))n=this[o],delete this[o];else if(i.hasOwnProperty(o)&&"number"==typeof this[o]&&this[o]==n)return;this[o]=(null!==n||"boolean"!=typeof this[o])&&n}))},t.observedAttributes=n.filter((([t,e])=>15&e[0])).map((([t,o])=>{const n=o[1]||t;return e.set(n,t),n}))}}return t},L=t=>{((t,e,o)=>{if(t&&t[e])try{return t[e](void 0)}catch(t){B(t)}})(t,"connectedCallback")},N=(t,e={})=>{var o;const n=[],i=e.exclude||[],r=U.customElements,a=$.head,s=a.querySelector("meta[charset]"),l=$.createElement("style"),c=[];let p,d=!0;Object.assign(Y,e),Y.$resourcesUrl$=new URL(e.resourcesUrl||"./",$.baseURI).href,t.map((t=>{t[1].map((e=>{const o={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};o.$members$=e[2],o.$watchers$={};const a=o.$tagName$,s=class extends HTMLElement{constructor(t){super(t),V(t=this,o),1&o.$flags$&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),d?c.push(this):Y.jmp((()=>(t=>{if(0==(1&Y.$flags$)){const e=k(t),o=e.$cmpMeta$,n=(o.$tagName$,()=>{});if(1&e.$flags$)L(e.$lazyInstance$);else{e.$flags$|=1;{let o=t;for(;o=o.parentNode||o.host;)if(o["s-p"]){x(e,e.$ancestorComponent$=o);break}}o.$members$&&Object.entries(o.$members$).map((([e,[o]])=>{if(31&o&&t.hasOwnProperty(e)){const o=t[e];delete t[e],t[e]=o}})),(async(t,e,o,n,i)=>{if(0==(32&e.$flags$)){{if(e.$flags$|=32,(i=z(o)).then){const t=()=>{};i=await i,t()}i.isProxied||(o.$watchers$=i.watchers,P(i,o,2),i.isProxied=!0);const t=(o.$tagName$,()=>{});e.$flags$|=8;try{new i(e)}catch(t){B(t)}e.$flags$&=-9,e.$flags$|=128,t(),L(e.$lazyInstance$)}if(i.style){let t=i.style;const e=f(o);if(!j.has(e)){const n=(o.$tagName$,()=>{});((t,e,o)=>{let n=j.get(t);X&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=e:n.replaceSync(e)):n=e,j.set(t,n)})(e,t,!!(1&o.$flags$)),n()}}}const r=e.$ancestorComponent$,a=()=>E(e,!0);r&&r["s-rc"]?r["s-rc"].push(a):a()})(0,e,o)}n()}})(this)))}disconnectedCallback(){Y.jmp((()=>(this,void(0==(1&Y.$flags$)&&k(this)))))}componentOnReady(){return k(this).$onReadyPromise$}};o.$lazyBundleId$=t[0],i.includes(a)||r.get(a)||(n.push(a),r.define(a,P(s,o,1)))}))}));{l.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles","");const t=null!==(o=Y.$nonce$)&&void 0!==o?o:u($);null!=t&&l.setAttribute("nonce",t),a.insertBefore(l,s?s.nextSibling:a.firstChild)}d=!1,c.length?c.map((t=>t.connectedCallback())):Y.jmp((()=>p=setTimeout(M,30)))},F=new WeakMap,k=t=>F.get(t),G=(t,e)=>F.set(e.$lazyInstance$=t,e),V=(t,e)=>{const o={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return o.$onReadyPromise$=new Promise((t=>o.$onReadyResolve$=t)),t["s-p"]=[],t["s-rc"]=[],F.set(t,o)},H=(t,e)=>e in t,B=(t,e)=>(0,console.error)(t,e),W=new Map,z=(t,e,n)=>{const i=t.$tagName$.replace(/-/g,"_"),r=t.$lazyBundleId$,a=W.get(r);if(a)return a[i];if(!n||!BUILD.hotModuleReplacement){const t=t=>(W.set(r,t),t[i]);if("ix-icon"===r)return o.e(6699).then(o.bind(o,6699)).then(t,B)}return o(7179)(`./${r}.entry.js`).then((t=>(W.set(r,t),t[i])),B)},j=new Map,U="undefined"!=typeof window?window:{},$=U.document||{head:{}},Y={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,o,n)=>t.addEventListener(e,o,n),rel:(t,e,o,n)=>t.removeEventListener(e,o,n),ce:(t,e)=>new CustomEvent(t,e)},K=t=>Promise.resolve(t),X=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),q=[],Z=[],Q=(t,e)=>o=>{t.push(o),a||(a=!0,e&&4&Y.$flags$?et(tt):Y.raf(tt))},J=t=>{for(let e=0;e{J(q),J(Z),(a=q.length>0)&&Y.raf(tt)},et=t=>K().then(t),ot=Q(Z,!0)},7179:(t,e,o)=>{var n={"./ix-icon.entry.js":[6699,6699]};function i(t){if(!o.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],i=e[0];return o.e(e[1]).then((()=>o(i)))}i.keys=()=>Object.keys(n),i.id=7179,t.exports=i},5272:(t,e,o)=>{"use strict";o.d(e,{A:()=>n});class n{}n.shortTime=0,n.defaultTime=150,n.mediumTime=300,n.slowTime=500,n.xSlowTime=1e3},6200:(t,e,o)=>{"use strict";var n;o.d(e,{F:()=>n}),function(t){t.None="none",t.Info="info",t.Warning="warning",t.Alarm="alarm",t.Primary="primary"}(n||(n={}))},6969:(t,e,o)=>{"use strict";o.d(e,{F:()=>rt,H:()=>g,a:()=>Mt,b:()=>it,c:()=>w,f:()=>U,g:()=>C,h:()=>h,r:()=>dt});let n,i,r=!1,a=!1,s=!1;const l="slot-fb{display:contents}slot-fb[hidden]{display:none}",u="http://www.w3.org/1999/xlink",c={},p=t=>"object"==(t=typeof t)||"function"===t;function d(t){var e,o,n;return null!==(n=null===(o=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===o?void 0:o.getAttribute("content"))&&void 0!==n?n:void 0}const h=(t,e,...o)=>{let n=null,i=null,r=!1,a=!1;const s=[],l=e=>{for(let o=0;ot[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,s,v);const u=f(t,null);return u.$attrs$=e,s.length>0&&(u.$children$=s),u.$key$=i,u},f=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null}),g={},v={forEach:(t,e)=>t.map(y).forEach(e),map:(t,e)=>t.map(y).map(e).map(m)},y=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),m=t=>{if("function"==typeof t.vtag){const e=Object.assign({},t.vattrs);return t.vkey&&(e.key=t.vkey),t.vname&&(e.name=t.vname),h(t.vtag,e,...t.vchildren||[])}const e=f(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},C=t=>pt(t).$hostElement$,w=(t,e,o)=>{const n=C(t);return{emit:t=>S(n,e,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t})}},S=(t,e,o)=>{const n=St.ce(e,o);return t.dispatchEvent(n),n},b=new WeakMap,_=(t,e)=>"sc-"+t.$tagName$,x=(t,e,o,n,i,r)=>{if(o!==n){let a=ft(t,e),s=e.toLowerCase();if("class"===e){const e=t.classList,i=T(o),r=T(n);e.remove(...i.filter((t=>t&&!r.includes(t)))),e.add(...r.filter((t=>t&&!i.includes(t))))}else if("style"===e){for(const e in o)n&&null!=n[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in n)o&&n[e]===o[e]||(e.includes("-")?t.style.setProperty(e,n[e]):t.style[e]=n[e])}else if("key"===e);else if("ref"===e)n&&n(t);else if(a||"o"!==e[0]||"n"!==e[1]){const l=p(n);if((a||l&&null!==n)&&!i)try{if(t.tagName.includes("-"))t[e]=n;else{const i=null==n?"":n;"list"===e?a=!1:null!=o&&t[e]==i||(t[e]=i)}}catch(t){}let c=!1;s!==(s=s.replace(/^xlink\:?/,""))&&(e=s,c=!0),null==n||!1===n?!1===n&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(u,e):t.removeAttribute(e)):(!a||4&r||i)&&!l&&(n=!0===n?"":n,c?t.setAttributeNS(u,e,n):t.setAttribute(e,n))}else if(e="-"===e[2]?e.slice(3):ft(Ct,s)?s.slice(2):s[2]+e.slice(3),o||n){const i=e.endsWith(D);e=e.replace(R,""),o&&St.rel(t,e,o,i),n&&St.ael(t,e,n,i)}}},E=/\s/,T=t=>t?t.split(E):[],D="Capture",R=new RegExp(D+"$"),O=(t,e,o,n)=>{const i=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||c,a=e.$attrs$||c;for(n in r)n in a||x(i,n,r[n],void 0,o,e.$flags$);for(n in a)x(i,n,r[n],a[n],o,e.$flags$)},M=(t,e,o,r)=>{const s=e.$children$[o];let l,u,c=0;if(null!==s.$text$)l=s.$elm$=wt.createTextNode(s.$text$);else{if(a||(a="svg"===s.$tag$),l=s.$elm$=wt.createElementNS(a?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.$tag$),a&&"foreignObject"===s.$tag$&&(a=!1),O(null,s,a),null!=n&&l["s-si"]!==n&&l.classList.add(l["s-si"]=n),s.$children$)for(c=0;c{let s,l=t;for(l.shadowRoot&&l.tagName===i&&(l=l.shadowRoot);r<=a;++r)n[r]&&(s=M(null,o,r),s&&(n[r].$elm$=s,l.insertBefore(s,e)))},I=(t,e,o)=>{for(let n=e;n<=o;++n){const e=t[n];if(e){const t=e.$elm$;F(e),t&&t.remove()}}},P=(t,e,o=!1)=>t.$tag$===e.$tag$&&(!!o||t.$key$===e.$key$),L=(t,e,o=!1)=>{const n=e.$elm$=t.$elm$,i=t.$children$,s=e.$children$,l=e.$tag$,u=e.$text$;null===u?(a="svg"===l||"foreignObject"!==l&&a,("slot"!==l||r)&&O(t,e,a),null!==i&&null!==s?((t,e,o,n,i=!1)=>{let r,a,s=0,l=0,u=0,c=0,p=e.length-1,d=e[0],h=e[p],f=n.length-1,g=n[0],v=n[f];for(;s<=p&&l<=f;)if(null==d)d=e[++s];else if(null==h)h=e[--p];else if(null==g)g=n[++l];else if(null==v)v=n[--f];else if(P(d,g,i))L(d,g,i),d=e[++s],g=n[++l];else if(P(h,v,i))L(h,v,i),h=e[--p],v=n[--f];else if(P(d,v,i))L(d,v,i),t.insertBefore(d.$elm$,h.$elm$.nextSibling),d=e[++s],v=n[--f];else if(P(h,g,i))L(h,g,i),t.insertBefore(h.$elm$,d.$elm$),h=e[--p],g=n[++l];else{for(u=-1,c=s;c<=p;++c)if(e[c]&&null!==e[c].$key$&&e[c].$key$===g.$key$){u=c;break}u>=0?(a=e[u],a.$tag$!==g.$tag$?r=M(e&&e[l],o,u):(L(a,g,i),e[u]=void 0,r=a.$elm$),g=n[++l]):(r=M(e&&e[l],o,l),g=n[++l]),r&&d.$elm$.parentNode.insertBefore(r,d.$elm$)}s>p?A(t,null==n[f+1]?null:n[f+1].$elm$,o,n,l,f):l>f&&I(e,s,p)})(n,i,e,s,o):null!==s?(null!==t.$text$&&(n.textContent=""),A(n,null,e,s,0,s.length-1)):null!==i&&I(i,0,i.length-1),a&&"svg"===l&&(a=!1)):t.$text$!==u&&(n.data=u)},N=t=>{const e=t.childNodes;for(const t of e)if(1===t.nodeType){if(t["s-sr"]){const o=t["s-sn"];t.hidden=!1;for(const n of e)if(n!==t)if(n["s-hn"]!==t["s-hn"]||""!==o){if(1===n.nodeType&&(o===n.getAttribute("slot")||o===n["s-sn"])){t.hidden=!0;break}}else if(1===n.nodeType||3===n.nodeType&&""!==n.textContent.trim()){t.hidden=!0;break}}N(t)}},F=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(F)},k=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},G=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return k(t,t.$ancestorComponent$),At((()=>V(t,e)));t.$flags$|=512},V=(t,e)=>{const o=(t.$cmpMeta$.$tagName$,()=>{}),n=t.$lazyInstance$;let i;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map((([t,e])=>Y(n,t,e))),t.$queuedListeners$=void 0),i=Y(n,"componentWillLoad")),i=H(i,(()=>Y(n,"componentWillRender"))),o(),H(i,(()=>W(t,n,e)))},H=(t,e)=>B(t)?t.then(e):e(),B=t=>t instanceof Promise||t&&t.then&&"function"==typeof t.then,W=async(t,e,o)=>{var n;const i=t.$hostElement$,r=(t.$cmpMeta$.$tagName$,()=>{}),a=i["s-rc"];o&&(t=>{const e=t.$cmpMeta$,o=t.$hostElement$,n=e.$flags$,i=(e.$tagName$,()=>{}),r=((t,e,o)=>{var n;const i=_(e),r=mt.get(i);if(t=11===t.nodeType?t:wt,r)if("string"==typeof r){t=t.head||t;let o,a=b.get(t);if(a||b.set(t,a=new Set),!a.has(i)){{o=wt.createElement("style"),o.innerHTML=r;const e=null!==(n=St.$nonce$)&&void 0!==n?n:d(wt);null!=e&&o.setAttribute("nonce",e),t.insertBefore(o,t.querySelector("link"))}4&e.$flags$&&(o.innerHTML+=l),a&&a.add(i)}}else t.adoptedStyleSheets.includes(r)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,r]);return i})(o.shadowRoot?o.shadowRoot:o.getRootNode(),e);10&n&&(o["s-sc"]=r,o.classList.add(r+"-h"),2&n&&o.classList.add(r+"-s")),i()})(t);const s=(t.$cmpMeta$.$tagName$,()=>{});z(t,e,i,o),a&&(a.map((t=>t())),i["s-rc"]=void 0),s(),r();{const e=null!==(n=i["s-p"])&&void 0!==n?n:[],o=()=>j(t);0===e.length?o():(Promise.all(e).then(o),t.$flags$|=4,e.length=0)}},z=(t,e,o,a)=>{try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e,o=!1)=>{const a=t.$hostElement$,s=t.$cmpMeta$,l=t.$vnode$||f(null,null),u=(c=e)&&c.$tag$===g?e:h(null,null,e);var c;if(i=a.tagName,s.$attrsToReflect$&&(u.$attrs$=u.$attrs$||{},s.$attrsToReflect$.map((([t,e])=>u.$attrs$[e]=a[t]))),o&&u.$attrs$)for(const t of Object.keys(u.$attrs$))a.hasAttribute(t)&&!["key","ref","style","class"].includes(t)&&(u.$attrs$[t]=a[t]);u.$tag$=null,u.$flags$|=4,t.$vnode$=u,u.$elm$=l.$elm$=a.shadowRoot||a,n=a["s-sc"],r=0!=(1&s.$flags$),L(l,u,o)})(t,e,a)}catch(e){gt(e,t.$hostElement$)}return null},j=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,o=t.$lazyInstance$,n=t.$ancestorComponent$;Y(o,"componentDidRender"),64&t.$flags$||(t.$flags$|=64,K(e),Y(o,"componentDidLoad"),t.$onReadyResolve$(e),n||$()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&Ot((()=>G(t,!1))),t.$flags$&=-517},U=t=>{{const e=pt(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.$flags$)&&G(e,!1),o}},$=t=>{K(wt.documentElement),Ot((()=>S(Ct,"appload",{detail:{namespace:"siemens-ix"}})))},Y=(t,e,o)=>{if(t&&t[e])try{return t[e](o)}catch(t){gt(t)}},K=t=>t.classList.add("hydrated"),X=(t,e,o)=>{var n;const i=t.prototype;if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const r=Object.entries(e.$members$);if(r.map((([t,[n]])=>{31&n||2&o&&32&n?Object.defineProperty(i,t,{get(){return e=t,pt(this).$instanceValues$.get(e);var e},set(o){((t,e,o,n)=>{const i=pt(t),r=i.$hostElement$,a=i.$instanceValues$.get(e),s=i.$flags$,l=i.$lazyInstance$;var u,c;u=o,c=n.$members$[e][0],o=null==u||p(u)?u:4&c?"false"!==u&&(""===u||!!u):2&c?parseFloat(u):1&c?String(u):u;const d=Number.isNaN(a)&&Number.isNaN(o);if((!(8&s)||void 0===a)&&o!==a&&!d&&(i.$instanceValues$.set(e,o),l)){if(n.$watchers$&&128&s){const t=n.$watchers$[e];t&&t.map((t=>{try{l[t](o,a,e)}catch(t){gt(t,r)}}))}2==(18&s)&&G(i,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&n&&Object.defineProperty(i,t,{value(...e){var o;const n=pt(this);return null===(o=null==n?void 0:n.$onInstancePromise$)||void 0===o?void 0:o.then((()=>{var o;return null===(o=n.$lazyInstance$)||void 0===o?void 0:o[t](...e)}))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,n,r){St.jmp((()=>{var a;const s=o.get(t);if(this.hasOwnProperty(s))r=this[s],delete this[s];else{if(i.hasOwnProperty(s)&&"number"==typeof this[s]&&this[s]==r)return;if(null==s){const o=pt(this),i=null==o?void 0:o.$flags$;if(i&&!(8&i)&&128&i&&r!==n){const i=o.$lazyInstance$,s=null===(a=e.$watchers$)||void 0===a?void 0:a[t];null==s||s.forEach((e=>{null!=i[e]&&i[e].call(i,r,n,t)}))}return}}this[s]=(null!==r||"boolean"!=typeof this[s])&&r}))},t.observedAttributes=Array.from(new Set([...Object.keys(null!==(n=e.$watchers$)&&void 0!==n?n:{}),...r.filter((([t,e])=>15&e[0])).map((([t,n])=>{var i;const r=n[1]||t;return o.set(r,t),512&n[0]&&(null===(i=e.$attrsToReflect$)||void 0===i||i.push([t,r])),r}))]))}}return t},q=t=>{Y(t,"connectedCallback")},Z=t=>{Y(t,"disconnectedCallback")},Q=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=et(t),o=ot(this.childNodes,e);if(o){const n=nt(o,e),i=n[n.length-1],r=i.parentNode.insertBefore(t,i.nextSibling);return N(this),U(this),r}return this.__appendChild(t)}},J=t=>{const e=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(t,"__textContent",e),Object.defineProperty(t,"textContent",{get(){var t;const e=ot(this.childNodes,"");return 3===(null===(t=null==e?void 0:e.nextSibling)||void 0===t?void 0:t.nodeType)?e.nextSibling.textContent:e?e.textContent:this.__textContent},set(t){var e;const o=ot(this.childNodes,"");if(3===(null===(e=null==o?void 0:o.nextSibling)||void 0===e?void 0:e.nodeType))o.nextSibling.textContent=t;else if(o)o.textContent=t;else{this.__textContent=t;const e=this["s-cr"];e&&this.insertBefore(e,this.firstChild)}}})},tt=(t,e)=>{class o extends Array{item(t){return this[t]}}if(8&e.$flags$){const e=t.__lookupGetter__("childNodes");Object.defineProperty(t,"children",{get(){return this.childNodes.map((t=>1===t.nodeType))}}),Object.defineProperty(t,"childElementCount",{get:()=>t.children.length}),Object.defineProperty(t,"childNodes",{get(){const t=e.call(this);if(0==(1&St.$flags$)&&2&pt(this).$flags$){const e=new o;for(let o=0;ot["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",ot=(t,e)=>{let o,n=0;for(;n{const o=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)o.push(t);return o},it=(t,e={})=>{var o;const n=[],i=e.exclude||[],r=Ct.customElements,a=wt.head,s=a.querySelector("meta[charset]"),u=wt.createElement("style"),c=[];let p,h=!0;Object.assign(St,e),St.$resourcesUrl$=new URL(e.resourcesUrl||"./",wt.baseURI).href;let f=!1;if(t.map((t=>{t[1].map((e=>{var o;const a={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};4&a.$flags$&&(f=!0),a.$members$=e[2],a.$listeners$=e[3],a.$attrsToReflect$=[],a.$watchers$=null!==(o=e[4])&&void 0!==o?o:{};const s=a.$tagName$,l=class extends HTMLElement{constructor(t){super(t),ht(t=this,a),1&a.$flags$&&t.attachShadow({mode:"open"})}connectedCallback(){p&&(clearTimeout(p),p=null),h?c.push(this):St.jmp((()=>(t=>{if(0==(1&St.$flags$)){const e=pt(t),o=e.$cmpMeta$,n=(o.$tagName$,()=>{});if(1&e.$flags$)at(t,e,o.$listeners$),(null==e?void 0:e.$lazyInstance$)?q(e.$lazyInstance$):(null==e?void 0:e.$onReadyPromise$)&&e.$onReadyPromise$.then((()=>q(e.$lazyInstance$)));else{e.$flags$|=1;{let o=t;for(;o=o.parentNode||o.host;)if(o["s-p"]){k(e,e.$ancestorComponent$=o);break}}o.$members$&&Object.entries(o.$members$).map((([e,[o]])=>{if(31&o&&t.hasOwnProperty(e)){const o=t[e];delete t[e],t[e]=o}})),(async(t,e,o,n)=>{let i;if(0==(32&e.$flags$)){e.$flags$|=32;{if(i=yt(o),i.then){const t=()=>{};i=await i,t()}i.isProxied||(o.$watchers$=i.watchers,X(i,o,2),i.isProxied=!0);const t=(o.$tagName$,()=>{});e.$flags$|=8;try{new i(e)}catch(t){gt(t)}e.$flags$&=-9,e.$flags$|=128,t(),q(e.$lazyInstance$)}if(i.style){let t=i.style;const e=_(o);if(!mt.has(e)){const n=(o.$tagName$,()=>{});((t,e,o)=>{let n=mt.get(t);_t&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=e:n.replaceSync(e)):n=e,mt.set(t,n)})(e,t,!!(1&o.$flags$)),n()}}}const r=e.$ancestorComponent$,a=()=>G(e,!0);r&&r["s-rc"]?r["s-rc"].push(a):a()})(0,e,o)}n()}})(this)))}disconnectedCallback(){St.jmp((()=>(async t=>{if(0==(1&St.$flags$)){const e=pt(t);e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0),(null==e?void 0:e.$lazyInstance$)?Z(e.$lazyInstance$):(null==e?void 0:e.$onReadyPromise$)&&e.$onReadyPromise$.then((()=>Z(e.$lazyInstance$)))}})(this)))}componentOnReady(){return pt(this).$onReadyPromise$}};tt(l.prototype,a),Q(l.prototype),2&a.$flags$&&J(l.prototype),a.$lazyBundleId$=t[0],i.includes(s)||r.get(s)||(n.push(s),r.define(s,X(l,a,1)))}))})),n.length>0&&(f&&(u.textContent+=l),u.textContent+=n+"{visibility:hidden}.hydrated{visibility:inherit}",u.innerHTML.length)){u.setAttribute("data-styles","");const t=null!==(o=St.$nonce$)&&void 0!==o?o:d(wt);null!=t&&u.setAttribute("nonce",t),a.insertBefore(u,s?s.nextSibling:a.firstChild)}h=!1,c.length?c.map((t=>t.connectedCallback())):St.jmp((()=>p=setTimeout($,30)))},rt=(t,e)=>e,at=(t,e,o,n)=>{o&&o.map((([o,n,i])=>{const r=lt(t,o),a=st(e,i),s=ut(o);St.ael(r,n,a,s),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>St.rel(r,n,a,s)))}))},st=(t,e)=>o=>{try{256&t.$flags$?t.$lazyInstance$[e](o):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,o])}catch(t){gt(t)}},lt=(t,e)=>8&e?Ct:t,ut=t=>bt?{passive:0!=(1&t),capture:0!=(2&t)}:0!=(2&t),ct=new WeakMap,pt=t=>ct.get(t),dt=(t,e)=>ct.set(e.$lazyInstance$=t,e),ht=(t,e)=>{const o={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return o.$onInstancePromise$=new Promise((t=>o.$onInstanceResolve$=t)),o.$onReadyPromise$=new Promise((t=>o.$onReadyResolve$=t)),t["s-p"]=[],t["s-rc"]=[],at(t,o,e.$listeners$),ct.set(t,o)},ft=(t,e)=>e in t,gt=(t,e)=>(0,console.error)(t,e),vt=new Map,yt=(t,e,n)=>{const i=t.$tagName$.replace(/-/g,"_"),r=t.$lazyBundleId$,a=vt.get(r);if(a)return a[i];if(!n||!BUILD.hotModuleReplacement){const t=t=>(vt.set(r,t),t[i]);switch(r){case"ix-playground-internal":return o.e(4153).then(o.bind(o,4153)).then(t,gt);case"ix-action-card":return o.e(670).then(o.bind(o,670)).then(t,gt);case"ix-application":return o.e(3492).then(o.bind(o,3492)).then(t,gt);case"ix-application-sidebar":return Promise.all([o.e(8137),o.e(5179)]).then(o.bind(o,5179)).then(t,gt);case"ix-application-switch-modal":return o.e(3684).then(o.bind(o,3684)).then(t,gt);case"ix-basic-navigation":return o.e(2216).then(o.bind(o,2216)).then(t,gt);case"ix-blind":return Promise.all([o.e(8137),o.e(2654)]).then(o.bind(o,2654)).then(t,gt);case"ix-breadcrumb":return o.e(3170).then(o.bind(o,3170)).then(t,gt);case"ix-card-list":return o.e(4369).then(o.bind(o,4369)).then(t,gt);case"ix-category-filter":return o.e(9478).then(o.bind(o,9478)).then(t,gt);case"ix-chip":return o.e(6954).then(o.bind(o,6954)).then(t,gt);case"ix-content":return o.e(1394).then(o.bind(o,1394)).then(t,gt);case"ix-content-header":return o.e(1422).then(o.bind(o,1422)).then(t,gt);case"ix-css-grid":return o.e(7085).then(o.bind(o,7085)).then(t,gt);case"ix-css-grid-item":return o.e(753).then(o.bind(o,753)).then(t,gt);case"ix-date-dropdown":return Promise.all([o.e(3650),o.e(8281)]).then(o.bind(o,8281)).then(t,gt);case"ix-datetime-picker":return o.e(9829).then(o.bind(o,9829)).then(t,gt);case"ix-drawer":return Promise.all([o.e(8137),o.e(6114)]).then(o.bind(o,6114)).then(t,gt);case"ix-dropdown-button":return o.e(9880).then(o.bind(o,9880)).then(t,gt);case"ix-dropdown-header":return o.e(2907).then(o.bind(o,2907)).then(t,gt);case"ix-dropdown-quick-actions":return o.e(1719).then(o.bind(o,1719)).then(t,gt);case"ix-empty-state":return o.e(4596).then(o.bind(o,4596)).then(t,gt);case"ix-event-list":return o.e(3169).then(o.bind(o,3169)).then(t,gt);case"ix-event-list-item":return o.e(7541).then(o.bind(o,7541)).then(t,gt);case"ix-expanding-search":return o.e(8865).then(o.bind(o,8865)).then(t,gt);case"ix-flip-tile":return o.e(1606).then(o.bind(o,1606)).then(t,gt);case"ix-flip-tile-content":return o.e(7262).then(o.bind(o,7262)).then(t,gt);case"ix-form-field":return o.e(3052).then(o.bind(o,3052)).then(t,gt);case"ix-group":return o.e(5374).then(o.bind(o,5374)).then(t,gt);case"ix-icon-toggle-button":return o.e(2632).then(o.bind(o,2632)).then(t,gt);case"ix-input-group":return o.e(6083).then(o.bind(o,6083)).then(t,gt);case"ix-key-value":return o.e(7510).then(o.bind(o,7510)).then(t,gt);case"ix-key-value-list":return o.e(4776).then(o.bind(o,4776)).then(t,gt);case"ix-kpi":return o.e(1985).then(o.bind(o,1985)).then(t,gt);case"ix-link-button":return o.e(1993).then(o.bind(o,1993)).then(t,gt);case"ix-map-navigation":return Promise.all([o.e(8137),o.e(9929)]).then(o.bind(o,9929)).then(t,gt);case"ix-menu":return Promise.all([o.e(8137),o.e(8926)]).then(o.bind(o,8926)).then(t,gt);case"ix-menu-about":return o.e(8670).then(o.bind(o,8670)).then(t,gt);case"ix-menu-about-item":return o.e(8683).then(o.bind(o,8683)).then(t,gt);case"ix-menu-about-news":return o.e(9148).then(o.bind(o,9148)).then(t,gt);case"ix-menu-avatar":return o.e(7537).then(o.bind(o,7537)).then(t,gt);case"ix-menu-category":return Promise.all([o.e(8137),o.e(1952)]).then(o.bind(o,7027)).then(t,gt);case"ix-menu-settings":return o.e(5840).then(o.bind(o,5840)).then(t,gt);case"ix-menu-settings-item":return o.e(2668).then(o.bind(o,2668)).then(t,gt);case"ix-message-bar":return Promise.all([o.e(8137),o.e(4895)]).then(o.bind(o,4895)).then(t,gt);case"ix-modal":return Promise.all([o.e(8137),o.e(6802)]).then(o.bind(o,6802)).then(t,gt);case"ix-modal-example":return o.e(9700).then(o.bind(o,9700)).then(t,gt);case"ix-modal-footer":return o.e(5266).then(o.bind(o,5266)).then(t,gt);case"ix-modal-loading":return o.e(5592).then(o.bind(o,5592)).then(t,gt);case"ix-pagination":return o.e(5359).then(o.bind(o,5359)).then(t,gt);case"ix-pane":return Promise.all([o.e(8137),o.e(6112)]).then(o.bind(o,6112)).then(t,gt);case"ix-pane-layout":return o.e(9676).then(o.bind(o,9676)).then(t,gt);case"ix-pill":return o.e(8835).then(o.bind(o,8835)).then(t,gt);case"ix-push-card":return o.e(1051).then(o.bind(o,1051)).then(t,gt);case"ix-slider":return o.e(6155).then(o.bind(o,6155)).then(t,gt);case"ix-split-button":return o.e(5075).then(o.bind(o,5075)).then(t,gt);case"ix-split-button-item":return o.e(1791).then(o.bind(o,1791)).then(t,gt);case"ix-tile":return o.e(6599).then(o.bind(o,6599)).then(t,gt);case"ix-toast-container":return o.e(4154).then(o.bind(o,4154)).then(t,gt);case"ix-toggle":return o.e(7731).then(o.bind(o,7731)).then(t,gt);case"ix-toggle-button":return o.e(1646).then(o.bind(o,1646)).then(t,gt);case"ix-tree":return o.e(2775).then(o.bind(o,2775)).then(t,gt);case"ix-upload":return o.e(2478).then(o.bind(o,2478)).then(t,gt);case"ix-validation-tooltip":return Promise.all([o.e(5297),o.e(7628)]).then(o.bind(o,7628)).then(t,gt);case"ix-workflow-step":return o.e(4707).then(o.bind(o,4707)).then(t,gt);case"ix-workflow-steps":return o.e(8005).then(o.bind(o,8005)).then(t,gt);case"ix-avatar_2":return o.e(9941).then(o.bind(o,9941)).then(t,gt);case"ix-breadcrumb-item":return Promise.all([o.e(8137),o.e(2643)]).then(o.bind(o,2643)).then(t,gt);case"ix-card-accordion_2":return o.e(2263).then(o.bind(o,2263)).then(t,gt);case"ix-group-context-menu_2":return o.e(4094).then(o.bind(o,4094)).then(t,gt);case"ix-map-navigation-overlay":return Promise.all([o.e(8137),o.e(5982)]).then(o.bind(o,5982)).then(t,gt);case"ix-modal-content_2":return o.e(3903).then(o.bind(o,3903)).then(t,gt);case"ix-select":return o.e(5465).then(o.bind(o,5465)).then(t,gt);case"ix-time-picker":return Promise.all([o.e(3650),o.e(6942)]).then(o.bind(o,2214)).then(t,gt);case"ix-toast":return o.e(7292).then(o.bind(o,7292)).then(t,gt);case"ix-tooltip":return Promise.all([o.e(5297),o.e(6006)]).then(o.bind(o,6006)).then(t,gt);case"ix-tree-item":return o.e(6268).then(o.bind(o,6268)).then(t,gt);case"ix-application-header":return o.e(7585).then(o.bind(o,7585)).then(t,gt);case"ix-col_4":return Promise.all([o.e(3650),o.e(2920)]).then(o.bind(o,2920)).then(t,gt);case"ix-menu-item":return o.e(2653).then(o.bind(o,2653)).then(t,gt);case"ix-filter-chip_2":return o.e(3675).then(o.bind(o,3675)).then(t,gt);case"ix-tab-item_2":return o.e(8590).then(o.bind(o,8590)).then(t,gt);case"ix-card_2":return o.e(1754).then(o.bind(o,1754)).then(t,gt);case"ix-divider":return o.e(4120).then(o.bind(o,4120)).then(t,gt);case"ix-burger-menu":return o.e(3691).then(o.bind(o,3691)).then(t,gt);case"ix-date-time-card":return o.e(2979).then(o.bind(o,2979)).then(t,gt);case"ix-dropdown-item":return o.e(6857).then(o.bind(o,6857)).then(t,gt);case"ix-button":return o.e(6150).then(o.bind(o,6150)).then(t,gt);case"ix-dropdown":return Promise.all([o.e(5297),o.e(9451)]).then(o.bind(o,9451)).then(t,gt);case"ix-typography":return o.e(7744).then(o.bind(o,7744)).then(t,gt);case"ix-icon-button_2":return o.e(5207).then(o.bind(o,5207)).then(t,gt)}}return o(1073)(`./${r}.entry.js`).then((t=>(vt.set(r,t),t[i])),gt)},mt=new Map,Ct="undefined"!=typeof window?window:{},wt=Ct.document||{head:{}},St={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,o,n)=>t.addEventListener(e,o,n),rel:(t,e,o,n)=>t.removeEventListener(e,o,n),ce:(t,e)=>new CustomEvent(t,e)},bt=(()=>{let t=!1;try{wt.addEventListener("e",null,Object.defineProperty({},"passive",{get(){t=!0}}))}catch(t){}return t})(),_t=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),xt=[],Et=[],Tt=(t,e)=>o=>{t.push(o),s||(s=!0,e&&4&St.$flags$?Ot(Rt):St.raf(Rt))},Dt=t=>{for(let e=0;e{Dt(xt),Dt(Et),(s=xt.length>0)&&St.raf(Rt)},Ot=t=>Promise.resolve(undefined).then(t),Mt=Tt(xt,!1),At=Tt(Et,!0)},1952:(t,e,o)=>{"use strict";o.d(e,{I:()=>n,L:()=>i});class n{hasCategory(){return void 0!==this.category}constructor(t,e){this.token=t,this.category=e}}var i;!function(t){t.EQUAL="Equal",t.NOT_EQUAL="Not equal"}(i||(i={}))},8934:(t,e,o)=>{"use strict";o.d(e,{b:()=>h,c:()=>p,d:()=>d});var n=o(2483);const i=new class{async attachView(t,e){var o;return(null!==(o=null==e?void 0:e.parentElement)&&void 0!==o?o:document.body).appendChild(t),t}async removeView(t){t.remove()}};let r=i;const a=()=>r,s=()=>i;function l(t,e,o,n){let i=[];return void 0!==e&&(i=[...i,{id:"cancel",text:e,type:"cancel",payload:n}]),[...i,{id:"okay",text:t,type:"okay",payload:o}]}async function u(t){const e=new n.T,o=document.createElement("ix-modal"),i=document.createElement("ix-modal-header"),r=document.createElement("ix-modal-content"),a=document.createElement("ix-modal-footer");!function(t,e){const o=e.ariaDescribedby,n=e.ariaLabelledby;delete e.ariaDescribedby,delete e.ariaLabelledby,o&&t.setAttribute("aria-describedby",o),n&&t.setAttribute("aria-labelledby",n)}(o,t),Object.assign(i,t),Object.assign(r,t),Object.assign(a,t),i.innerText=t.messageTitle,r.innerText=t.message,t.actions.forEach((({id:t,text:e,type:n,payload:i})=>{const r=document.createElement("ix-button");return r.innerText=e,a.appendChild(r),"okay"===n?(r.variant="primary",void r.addEventListener("click",(()=>o.closeModal({actionId:t,payload:i})))):"cancel"===n?(r.variant="primary",r.outline=!0,void r.addEventListener("click",(()=>o.dismissModal({actionId:t,payload:i})))):void 0})),o.appendChild(i),o.appendChild(r),o.appendChild(a);const l=await s().attachView(o);return l.addEventListener("dialogClose",(t=>{e.emit(t.detail),l.remove()})),l.addEventListener("dialogDismiss",(t=>{e.emit(t.detail),l.remove()})),l.showModal(),e}function c(t){return t.closest("ix-modal")}function p(t,e){const o=c(t);o&&o.closeModal(e)}function d(t,e){const o=c(t);o&&o.dismissModal(e)}async function h(t){const e=a();let o;const i=new n.T,r=new n.T;if("string"==typeof t.content){const e=document.createElement("ix-modal");e.innerText=t.content,o=await s().attachView(e)}if(t.content instanceof HTMLElement&&"IX-MODAL"!==t.content.tagName){const e=document.createElement("ix-modal");e.appendChild(t.content),o=await s().attachView(e)}return o||(o=await e.attachView(t.content)),function(t,e){const o=e.ariaDescribedby,n=e.ariaLabelledby;delete e.ariaDescribedby,delete e.ariaLabelledby,o&&t.setAttribute("aria-describedby",o),n&&t.setAttribute("aria-labelledby",n)}(o,t),Object.assign(o,t),await o.showModal(),o.addEventListener("dialogClose",(async({detail:t})=>{i.emit(t),await e.removeView(o)})),o.addEventListener("dialogDismiss",(async({detail:t})=>{r.emit(t),await e.removeView(o)})),{htmlElement:o,onClose:i,onDismiss:r}}u.info=(t,e,o,n,i,r)=>u({message:e,messageTitle:t,icon:"info",actions:l(o,n,i,r)}),u.warning=(t,e,o,n,i,r)=>u({message:e,messageTitle:t,icon:"warning",iconColor:"color-warning",actions:l(o,n,i,r)}),u.error=(t,e,o,n,i,r)=>u({message:e,messageTitle:t,icon:"error",iconColor:"color-alarm",actions:l(o,n,i,r)}),u.success=(t,e,o,n,i,r)=>u({message:e,messageTitle:t,icon:"success",iconColor:"color-success",actions:l(o,n,i,r)}),u.question=(t,e,o,n,i,r)=>u({message:e,messageTitle:t,icon:"question",actions:l(o,n,i,r)})},2230:(t,e,o)=>{"use strict";o.d(e,{t:()=>r});var n=o(2483);const i=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",r=new class{get themeChanged(){return this._themeChanged}hasVariantSuffix(t){return t.endsWith(this.suffixDark)||t.endsWith(this.suffixLight)}isThemeClass(t){return t.startsWith(this.prefixTheme)&&this.hasVariantSuffix(t)}setTheme(t,e=!1){if(!this.isThemeClass(t)&&!1===e)throw Error(`Provided theme name ${t} does not match our naming conventions. (theme--(dark,light))`);if(e){const e=i();return this.replaceBodyThemeClass(t),void this.setVariant(e)}this.replaceBodyThemeClass(t)}replaceBodyThemeClass(t){const e=[];document.body.classList.forEach((t=>{this.isThemeClass(t)&&e.push(t)})),document.body.classList.remove(...e),document.body.classList.add(t)}toggleMode(){const t=[];document.body.classList.forEach((e=>{this.isThemeClass(e)&&t.push(e)})),0!==t.length?t.forEach((t=>{document.body.classList.replace(t,this.getOppositeMode(t))})):document.body.classList.add(this.getOppositeMode(this.defaultTheme))}getCurrentTheme(){var t;return null!==(t=Array.from(document.body.classList).find((t=>this.isThemeClass(t))))&&void 0!==t?t:`theme-${window.getComputedStyle(document.body).getPropertyValue("--ix-theme-name")}`}setVariant(t=i()){const e=this.getCurrentTheme();document.body.classList.remove(e),e.endsWith(this.suffixDark)&&document.body.classList.add(e.replace(/-dark$/g,`-${t}`)),e.endsWith(this.suffixLight)&&document.body.classList.add(e.replace(/-light$/g,`-${t}`))}getOppositeMode(t){return t.endsWith(this.suffixDark)?t.replace(/-dark$/g,this.suffixLight):t.endsWith(this.suffixLight)?t.replace(/-light$/g,this.suffixDark):void 0}handleMutations(t){return t.forEach((t=>{const{target:e}=t;e.classList.forEach((e=>{var o;this.isThemeClass(e)&&!(null===(o=t.oldValue)||void 0===o?void 0:o.includes(e))&&this._themeChanged.emit(e)}))}))}registerMutationObserver(){"undefined"!=typeof window&&("MutationObserver"in window?(this.mutationObserver=new MutationObserver((t=>{this.handleMutations(t)})),this.mutationObserver.observe(document.body,{attributeFilter:["class"],attributeOldValue:!0})):console.warn("ThemeSwitcher not supported by your browser. Missing MutationObserver API"))}constructor(){this.prefixTheme="theme-",this.suffixLight="-light",this.suffixDark="-dark",this.defaultTheme="theme-classic-dark",this._themeChanged=new n.T,this.registerMutationObserver()}}},2483:(t,e,o)=>{"use strict";o.d(e,{T:()=>n});class n{constructor(){this.listeners=[],this.listenersOncer=[],this.on=t=>(this.listeners.push(t),{dispose:()=>this.off(t)}),this.once=t=>{this.listenersOncer.push(t)},this.off=t=>{const e=this.listeners.indexOf(t);e>-1&&this.listeners.splice(e,1)},this.emit=t=>{if(this.listeners.forEach((e=>e(t))),this.listenersOncer.length>0){const e=this.listenersOncer;this.listenersOncer=[],e.forEach((e=>e(t)))}},this.pipe=t=>this.on((e=>t.emit(e)))}}},431:(t,e,o)=>{"use strict";var n;o.d(e,{U:()=>n}),function(t){t.SELECT_FILE="SELECT_FILE",t.LOADING="LOADING",t.UPLOAD_FAILED="UPLOAD_FAILED",t.UPLOAD_SUCCESSED="UPLOAD_SUCCESSED"}(n||(n={}))},1073:(t,e,o)=>{var n={"./ix-action-card.entry.js":[670,670],"./ix-application-header.entry.js":[7585,7585],"./ix-application-sidebar.entry.js":[5179,8137,5179],"./ix-application-switch-modal.entry.js":[3684,3684],"./ix-application.entry.js":[3492,3492],"./ix-avatar_2.entry.js":[9941,9941],"./ix-basic-navigation.entry.js":[2216,2216],"./ix-blind.entry.js":[2654,8137,2654],"./ix-breadcrumb-item.entry.js":[2643,8137,2643],"./ix-breadcrumb.entry.js":[3170,3170],"./ix-burger-menu.entry.js":[3691,3691],"./ix-button.entry.js":[6150,6150],"./ix-card-accordion_2.entry.js":[2263,2263],"./ix-card-list.entry.js":[4369,4369],"./ix-card_2.entry.js":[1754,1754],"./ix-category-filter.entry.js":[9478,9478],"./ix-chip.entry.js":[6954,6954],"./ix-col_4.entry.js":[2920,3650,2920],"./ix-content-header.entry.js":[1422,1422],"./ix-content.entry.js":[1394,1394],"./ix-css-grid-item.entry.js":[753,753],"./ix-css-grid.entry.js":[7085,7085],"./ix-date-dropdown.entry.js":[8281,3650,8281],"./ix-date-time-card.entry.js":[2979,2979],"./ix-datetime-picker.entry.js":[9829,9829],"./ix-divider.entry.js":[4120,4120],"./ix-drawer.entry.js":[6114,8137,6114],"./ix-dropdown-button.entry.js":[9880,9880],"./ix-dropdown-header.entry.js":[2907,2907],"./ix-dropdown-item.entry.js":[6857,6857],"./ix-dropdown-quick-actions.entry.js":[1719,1719],"./ix-dropdown.entry.js":[9451,5297,9451],"./ix-empty-state.entry.js":[4596,4596],"./ix-event-list-item.entry.js":[7541,7541],"./ix-event-list.entry.js":[3169,3169],"./ix-expanding-search.entry.js":[8865,8865],"./ix-filter-chip_2.entry.js":[3675,3675],"./ix-flip-tile-content.entry.js":[7262,7262],"./ix-flip-tile.entry.js":[1606,1606],"./ix-form-field.entry.js":[3052,3052],"./ix-group-context-menu_2.entry.js":[4094,4094],"./ix-group.entry.js":[5374,5374],"./ix-icon-button_2.entry.js":[5207,5207],"./ix-icon-toggle-button.entry.js":[2632,2632],"./ix-input-group.entry.js":[6083,6083],"./ix-key-value-list.entry.js":[4776,4776],"./ix-key-value.entry.js":[7510,7510],"./ix-kpi.entry.js":[1985,1985],"./ix-link-button.entry.js":[1993,1993],"./ix-map-navigation-overlay.entry.js":[5982,8137,5982],"./ix-map-navigation.entry.js":[9929,8137,9929],"./ix-menu-about-item.entry.js":[8683,8683],"./ix-menu-about-news.entry.js":[9148,9148],"./ix-menu-about.entry.js":[8670,8670],"./ix-menu-avatar.entry.js":[7537,7537],"./ix-menu-category.entry.js":[7027,8137,1952],"./ix-menu-item.entry.js":[2653,2653],"./ix-menu-settings-item.entry.js":[2668,2668],"./ix-menu-settings.entry.js":[5840,5840],"./ix-menu.entry.js":[8926,8137,8926],"./ix-message-bar.entry.js":[4895,8137,4895],"./ix-modal-content_2.entry.js":[3903,3903],"./ix-modal-example.entry.js":[9700,9700],"./ix-modal-footer.entry.js":[5266,5266],"./ix-modal-loading.entry.js":[5592,5592],"./ix-modal.entry.js":[6802,8137,6802],"./ix-pagination.entry.js":[5359,5359],"./ix-pane-layout.entry.js":[9676,9676],"./ix-pane.entry.js":[6112,8137,6112],"./ix-pill.entry.js":[8835,8835],"./ix-playground-internal.entry.js":[4153,4153],"./ix-push-card.entry.js":[1051,1051],"./ix-select.entry.js":[5465,5465],"./ix-slider.entry.js":[6155,6155],"./ix-split-button-item.entry.js":[1791,1791],"./ix-split-button.entry.js":[5075,5075],"./ix-tab-item_2.entry.js":[8590,8590],"./ix-tile.entry.js":[6599,6599],"./ix-time-picker.entry.js":[2214,3650,6942],"./ix-toast-container.entry.js":[4154,4154],"./ix-toast.entry.js":[7292,7292],"./ix-toggle-button.entry.js":[1646,1646],"./ix-toggle.entry.js":[7731,7731],"./ix-tooltip.entry.js":[6006,5297,6006],"./ix-tree-item.entry.js":[6268,6268],"./ix-tree.entry.js":[2775,2775],"./ix-typography.entry.js":[7744,7744],"./ix-upload.entry.js":[2478,2478],"./ix-validation-tooltip.entry.js":[7628,5297,7628],"./ix-workflow-step.entry.js":[4707,4707],"./ix-workflow-steps.entry.js":[8005,8005]};function i(t){if(!o.o(n,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=n[t],i=e[0];return Promise.all(e.slice(1).map(o.e)).then((()=>o(i)))}i.keys=()=>Object.keys(n),i.id=1073,t.exports=i}},r={};function a(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return i[t](o,o.exports,a),o.exports}a.m=i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(o,n){if(1&n&&(o=this(o)),8&n)return o;if("object"==typeof o&&o){if(4&n&&o.__esModule)return o;if(16&n&&"function"==typeof o.then)return o}var i=Object.create(null);a.r(i);var r={};t=t||[null,e({}),e([]),e(e)];for(var s=2&n&&o;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>r[t]=()=>o[t]));return r.default=()=>o,a.d(i,r),i},a.d=(t,e)=>{for(var o in e)a.o(e,o)&&!a.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,o)=>(a.f[o](t,e),e)),[])),a.u=t=>t+".index.bundle.js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),a.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},n="npmjs:",a.l=(t,e,i,r)=>{if(o[t])o[t].push(e);else{var s,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c{s.onerror=s.onload=null,clearTimeout(h);var i=o[t];if(delete o[t],s.parentNode&&s.parentNode.removeChild(s),i&&i.forEach((t=>t(n))),e)return e(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=d.bind(null,s.onerror),s.onload=d.bind(null,s.onload),l&&document.head.appendChild(s)}},a.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;a.g.importScripts&&(t=a.g.location+"");var e=a.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&!t;)t=o[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=t})(),(()=>{var t={179:0};a.f.j=(e,o)=>{var n=a.o(t,e)?t[e]:void 0;if(0!==n)if(n)o.push(n[2]);else{var i=new Promise(((o,i)=>n=t[e]=[o,i]));o.push(n[2]=i);var r=a.p+a.u(e),s=new Error;a.l(r,(o=>{if(a.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=o&&("load"===o.type?"missing":o.type),r=o&&o.target&&o.target.src;s.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",s.name="ChunkLoadError",s.type=i,s.request=r,n[1](s)}}),"chunk-"+e,e)}};var e=(e,o)=>{var n,i,[r,s,l]=o,u=0;if(r.some((e=>0!==t[e]))){for(n in s)a.o(s,n)&&(a.m[n]=s[n]);l&&l(a)}for(e&&e(o);u{"use strict";var t={};a.r(t),a.d(t,{HashMap:()=>Pt,RADIAN_TO_DEGREE:()=>Ht,assert:()=>Tt,bind:()=>at,clone:()=>j,concatArray:()=>Nt,createCanvas:()=>X,createHashMap:()=>Lt,createObject:()=>Ft,curry:()=>st,defaults:()=>K,disableUserSelect:()=>kt,each:()=>tt,eqNaN:()=>wt,extend:()=>Y,filter:()=>nt,find:()=>it,guid:()=>W,hasOwn:()=>Gt,indexOf:()=>q,inherits:()=>Z,isArray:()=>lt,isArrayLike:()=>J,isBuiltInObject:()=>ft,isDom:()=>vt,isFunction:()=>ut,isGradientObject:()=>yt,isImagePatternObject:()=>mt,isNumber:()=>dt,isObject:()=>ht,isPrimitive:()=>Mt,isRegExp:()=>Ct,isString:()=>ct,isStringSafe:()=>pt,isTypedArray:()=>gt,keys:()=>rt,logError:()=>z,map:()=>et,merge:()=>U,mergeAll:()=>$,mixin:()=>Q,noop:()=>Vt,normalizeCssArray:()=>Et,reduce:()=>ot,retrieve:()=>St,retrieve2:()=>bt,retrieve3:()=>_t,setAsPrimitive:()=>Ot,slice:()=>xt,trim:()=>Dt});var e={};a.r(e),a.d(e,{add:()=>Ut,applyTransform:()=>ue,clone:()=>zt,copy:()=>Wt,create:()=>Bt,dist:()=>ie,distSquare:()=>ae,distance:()=>ne,distanceSquare:()=>re,div:()=>Jt,dot:()=>te,len:()=>Kt,lenSquare:()=>qt,length:()=>Xt,lengthSquare:()=>Zt,lerp:()=>le,max:()=>pe,min:()=>ce,mul:()=>Qt,negate:()=>se,normalize:()=>oe,scale:()=>ee,scaleAndAdd:()=>$t,set:()=>jt,sub:()=>Yt});var o={};a.r(o),a.d(o,{clone:()=>Ke,copy:()=>We,create:()=>He,identity:()=>Be,invert:()=>Ye,mul:()=>ze,rotate:()=>Ue,scale:()=>$e,translate:()=>je});var n={};a.r(n),a.d(n,{fastLerp:()=>On,fastMapToColor:()=>Mn,lerp:()=>An,lift:()=>Dn,lum:()=>Fn,mapToColor:()=>In,modifyAlpha:()=>Ln,modifyHSL:()=>Pn,parse:()=>En,random:()=>kn,stringify:()=>Nn,toHex:()=>Rn});var i={};a.r(i),a.d(i,{dispose:()=>Sr,disposeAll:()=>br,getInstance:()=>_r,init:()=>wr,registerPainter:()=>xr,version:()=>Er});var r={};a.r(r),a.d(r,{Arc:()=>Xg,BezierCurve:()=>$g,BoundingRect:()=>ao,Circle:()=>ug,CompoundPath:()=>Zg,Ellipse:()=>dg,Group:()=>vr,Image:()=>yl,IncrementalDisplayable:()=>uv,Line:()=>Bg,LinearGradient:()=>Jg,OrientedBoundingRect:()=>av,Path:()=>cl,Point:()=>qe,Polygon:()=>Lg,Polyline:()=>kg,RadialGradient:()=>tv,Rect:()=>El,Ring:()=>Mg,Sector:()=>Dg,Text:()=>Bl,applyTransform:()=>Dv,clipPointsByRect:()=>Av,clipRectByRect:()=>Iv,createIcon:()=>Pv,extendPath:()=>gv,extendShape:()=>hv,getShapeClass:()=>yv,getTransform:()=>Tv,groupTransition:()=>Mv,initProps:()=>qu,isElementRemoved:()=>Zu,lineLineIntersect:()=>Nv,linePolygonIntersect:()=>Lv,makeImage:()=>Cv,makePath:()=>mv,mergePath:()=>Sv,registerShape:()=>vv,removeElement:()=>Qu,removeElementWithFadeOut:()=>tc,resizePath:()=>bv,setTooltipConfig:()=>kv,subPixelOptimize:()=>Ev,subPixelOptimizeLine:()=>_v,subPixelOptimizeRect:()=>xv,transformDirection:()=>Rv,traverseElements:()=>Vv,updateProps:()=>Xu});var s={};a.r(s),a.d(s,{createDimensions:()=>jw,createList:()=>pb,createScale:()=>hb,createSymbol:()=>im,createTextStyle:()=>gb,dataStack:()=>db,enableHoverEmphasis:()=>Fu,getECData:()=>Wl,getLayoutRect:()=>Np,mixinAxisModelCommonMethods:()=>fb});var l={};a.r(l),a.d(l,{MAX_SAFE_INTEGER:()=>Gr,asc:()=>Ar,getPercentWithPrecision:()=>Nr,getPixelPrecision:()=>Lr,getPrecision:()=>Ir,getPrecisionSafe:()=>Pr,isNumeric:()=>Xr,isRadianAroundZero:()=>Hr,linearMap:()=>Rr,nice:()=>Ur,numericToNumber:()=>Kr,parseDate:()=>Wr,quantile:()=>$r,quantity:()=>zr,quantityExponent:()=>jr,reformIntervals:()=>Yr,remRadian:()=>Vr,round:()=>Mr});var u={};a.r(u),a.d(u,{format:()=>ep,parse:()=>Wr});var c={};a.r(c),a.d(c,{Arc:()=>Xg,BezierCurve:()=>$g,BoundingRect:()=>ao,Circle:()=>ug,CompoundPath:()=>Zg,Ellipse:()=>dg,Group:()=>vr,Image:()=>yl,IncrementalDisplayable:()=>uv,Line:()=>Bg,LinearGradient:()=>Jg,Polygon:()=>Lg,Polyline:()=>kg,RadialGradient:()=>tv,Rect:()=>El,Ring:()=>Mg,Sector:()=>Dg,Text:()=>Bl,clipPointsByRect:()=>Av,clipRectByRect:()=>Iv,createIcon:()=>Pv,extendPath:()=>gv,extendShape:()=>hv,getShapeClass:()=>yv,getTransform:()=>Tv,initProps:()=>qu,makeImage:()=>Cv,makePath:()=>mv,mergePath:()=>Sv,registerShape:()=>vv,resizePath:()=>bv,updateProps:()=>Xu});var p={};a.r(p),a.d(p,{addCommas:()=>mp,capitalFirst:()=>Dp,encodeHTML:()=>Te,formatTime:()=>Tp,formatTpl:()=>xp,getTextRect:()=>Mb,getTooltipMarker:()=>Ep,normalizeCssArray:()=>wp,toCamelCase:()=>Cp,truncateText:()=>za});var d={};a.r(d),a.d(d,{bind:()=>at,clone:()=>j,curry:()=>st,defaults:()=>K,each:()=>tt,extend:()=>Y,filter:()=>nt,indexOf:()=>q,inherits:()=>Z,isArray:()=>lt,isFunction:()=>ut,isObject:()=>ht,isString:()=>ct,map:()=>et,merge:()=>U,reduce:()=>ot});var h={};a.r(h),a.d(h,{Axis:()=>Bb,ChartView:()=>Kv,ComponentModel:()=>zp,ComponentView:()=>Vf,List:()=>zw,Model:()=>Ac,PRIORITY:()=>Xm,SeriesModel:()=>kf,color:()=>n,connect:()=>BC,dataTool:()=>pw,dependencies:()=>zm,disConnect:()=>WC,disconnect:()=>zC,dispose:()=>jC,env:()=>S,extendChartView:()=>Ub,extendComponentModel:()=>Wb,extendComponentView:()=>zb,extendSeriesModel:()=>jb,format:()=>p,getCoordinateSystemDimensions:()=>ew,getInstanceByDom:()=>UC,getInstanceById:()=>$C,getMap:()=>uw,graphic:()=>c,helper:()=>s,init:()=>HC,innerDrawElementOnCanvas:()=>Mm,matrix:()=>o,number:()=>l,parseGeoJSON:()=>Ob,parseGeoJson:()=>Ob,registerAction:()=>JC,registerCoordinateSystem:()=>tw,registerLayout:()=>ow,registerLoading:()=>aw,registerLocale:()=>Bc,registerMap:()=>lw,registerPostInit:()=>qC,registerPostUpdate:()=>ZC,registerPreprocessor:()=>KC,registerProcessor:()=>XC,registerTheme:()=>YC,registerTransform:()=>cw,registerUpdateLifecycle:()=>QC,registerVisual:()=>nw,setCanvasCreator:()=>sw,setPlatformAPI:()=>O,throttle:()=>Qv,time:()=>u,use:()=>fw,util:()=>d,vector:()=>e,version:()=>Wm,zrUtil:()=>t,zrender:()=>i});var f=a(6969);!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),a(1952),a(6200),a(431),a(8934),a(5272);var g=a(2230);async function v(t){const e=function(){const t=Array.from(document.querySelectorAll("ix-toast-container")),[e]=t;if(t.length>1)return console.warn("Multiple toast containers were found. Only the first one will be used."),e;if(!e){const t=document.createElement("ix-toast-container");return document.body.appendChild(t),t}return e}();return await e.showToast(t)}v.info=t=>v(Object.assign(Object.assign({},t),{type:"info"})),v.error=t=>v(Object.assign(Object.assign({},t),{type:"error"})),v.success=t=>v(Object.assign(Object.assign({},t),{type:"success"})),v.warning=t=>v(Object.assign(Object.assign({},t),{type:"warning"}));var y=function(t,e){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},y(t,e)};function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function o(){this.constructor=t}y(t,e),t.prototype=null===e?Object.create(e):(o.prototype=e.prototype,new o)}Object.create,Object.create;var C=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},w=new function(){this.browser=new C,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(w.wxa=!0,w.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?w.worker=!0:"undefined"==typeof navigator?(w.node=!0,w.svgSupported=!0):function(t,e){var o=e.browser,n=t.match(/Firefox\/([\d.]+)/),i=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),r=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);n&&(o.firefox=!0,o.version=n[1]),i&&(o.ie=!0,o.version=i[1]),r&&(o.edge=!0,o.version=r[1],o.newEdge=+r[1].split(".")[0]>18),a&&(o.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!o.ie&&!o.edge,e.pointerEventsSupported="onpointerdown"in window&&(o.edge||o.ie&&+o.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(o.ie&&"transition"in s||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||o.ie&&+o.version>=9}(navigator.userAgent,w);const S=w;var b,_,x=12,E="sans-serif",T=x+"px "+E,D=function(t){var e={};if("undefined"==typeof JSON)return e;for(var o=0;o<95;o++){var n=String.fromCharCode(o+32),i=(t.charCodeAt(o)-20)/100;e[n]=i}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),R={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!b){var o=R.createCanvas();b=o&&o.getContext("2d")}if(b)return _!==e&&(_=b.font=e||T),b.measureText(t);t=t||"";var n=/(\d+)px/.exec(e=e||T),i=n&&+n[1]||x,r=0;if(e.indexOf("mono")>=0)r=i*t.length;else for(var a=0;a>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[s]+":0",i[l]+":0",n[1-s]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(a),o.push(a)}return o}(e,r),s=function(t,e,o){for(var n=o?"invTrans":"trans",i=e[n],r=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),p=2*u,d=c.left,h=c.top;a.push(d,h),l=l&&r&&d===r[p]&&h===r[p+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=a,e[n]=o?Ce(s,a):Ce(a,s))}(a,r,i);if(s)return s(t,o,n),!0}return!1}function _e(t){return"CANVAS"===t.nodeName.toUpperCase()}var xe=/([&<>"'])/g,Ee={"&":"&","<":"<",">":">",'"':""","'":"'"};function Te(t){return null==t?"":(t+"").replace(xe,(function(t,e){return Ee[e]}))}var De=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Re=[],Oe=S.browser.firefox&&+S.browser.version.split(".")[0]<39;function Me(t,e,o,n){return o=o||{},n?Ae(t,e,o):Oe&&null!=e.layerX&&e.layerX!==e.offsetX?(o.zrX=e.layerX,o.zrY=e.layerY):null!=e.offsetX?(o.zrX=e.offsetX,o.zrY=e.offsetY):Ae(t,e,o),o}function Ae(t,e,o){if(S.domSupported&&t.getBoundingClientRect){var n=e.clientX,i=e.clientY;if(_e(t)){var r=t.getBoundingClientRect();return o.zrX=n-r.left,void(o.zrY=i-r.top)}if(be(Re,t,n,i))return o.zrX=Re[0],void(o.zrY=Re[1])}o.zrX=o.zrY=0}function Ie(t){return t||window.event}function Pe(t,e,o){if(null!=(e=Ie(e)).zrX)return e;var n=e.type;if(n&&n.indexOf("touch")>=0){var i="touchend"!==n?e.targetTouches[0]:e.changedTouches[0];i&&Me(t,i,e,o)}else{Me(t,e,e,o);var r=function(t){var e=t.wheelDelta;if(e)return e;var o=t.deltaX,n=t.deltaY;return null==o||null==n?e:3*(0!==n?Math.abs(n):Math.abs(o))*(n>0?-1:n<0?1:o>0?-1:1)}(e);e.zrDelta=r?r/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&De.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Le(t,e,o,n){t.addEventListener(e,o,n)}var Ne=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Fe(t){return 2===t.which||3===t.which}var ke=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,o){return this._doTrack(t,e,o),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,o){var n=t.touches;if(n){for(var i={points:[],touches:[],target:e,event:t},r=0,a=n.length;r1&&i&&i.length>1){var a=Ge(i)/Ge(r);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((n=i)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function He(){return[1,0,0,1,0,0]}function Be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function We(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function ze(t,e,o){var n=e[0]*o[0]+e[2]*o[1],i=e[1]*o[0]+e[3]*o[1],r=e[0]*o[2]+e[2]*o[3],a=e[1]*o[2]+e[3]*o[3],s=e[0]*o[4]+e[2]*o[5]+e[4],l=e[1]*o[4]+e[3]*o[5]+e[5];return t[0]=n,t[1]=i,t[2]=r,t[3]=a,t[4]=s,t[5]=l,t}function je(t,e,o){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+o[0],t[5]=e[5]+o[1],t}function Ue(t,e,o){var n=e[0],i=e[2],r=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(o),c=Math.cos(o);return t[0]=n*c+a*u,t[1]=-n*u+a*c,t[2]=i*c+s*u,t[3]=-i*u+c*s,t[4]=c*r+u*l,t[5]=c*l-u*r,t}function $e(t,e,o){var n=o[0],i=o[1];return t[0]=e[0]*n,t[1]=e[1]*i,t[2]=e[2]*n,t[3]=e[3]*i,t[4]=e[4]*n,t[5]=e[5]*i,t}function Ye(t,e){var o=e[0],n=e[2],i=e[4],r=e[1],a=e[3],s=e[5],l=o*a-r*n;return l?(l=1/l,t[0]=a*l,t[1]=-r*l,t[2]=-n*l,t[3]=o*l,t[4]=(n*s-a*i)*l,t[5]=(r*i-o*s)*l,t):null}function Ke(t){var e=[1,0,0,1,0,0];return We(e,t),e}var Xe=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,o=this.y-t.y;return Math.sqrt(e*e+o*o)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,o=this.y-t.y;return e*e+o*o},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,o=this.y;return this.x=t[0]*e+t[2]*o+t[4],this.y=t[1]*e+t[3]*o+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,o){t.x=e,t.y=o},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,o){t.x=e.x+o.x,t.y=e.y+o.y},t.sub=function(t,e,o){t.x=e.x-o.x,t.y=e.y-o.y},t.scale=function(t,e,o){t.x=e.x*o,t.y=e.y*o},t.scaleAndAdd=function(t,e,o,n){t.x=e.x+o.x*n,t.y=e.y+o.y*n},t.lerp=function(t,e,o,n){var i=1-n;t.x=i*e.x+n*o.x,t.y=i*e.y+n*o.y},t}();const qe=Xe;var Ze=Math.min,Qe=Math.max,Je=new qe,to=new qe,eo=new qe,oo=new qe,no=new qe,io=new qe,ro=function(){function t(t,e,o,n){o<0&&(t+=o,o=-o),n<0&&(e+=n,n=-n),this.x=t,this.y=e,this.width=o,this.height=n}return t.prototype.union=function(t){var e=Ze(t.x,this.x),o=Ze(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Qe(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Qe(t.y+t.height,this.y+this.height)-o:this.height=t.height,this.x=e,this.y=o},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,o=t.width/e.width,n=t.height/e.height,i=[1,0,0,1,0,0];return je(i,i,[-e.x,-e.y]),$e(i,i,[o,n]),je(i,i,[t.x,t.y]),i},t.prototype.intersect=function(e,o){if(!e)return!1;e instanceof t||(e=t.create(e));var n=this,i=n.x,r=n.x+n.width,a=n.y,s=n.y+n.height,l=e.x,u=e.x+e.width,c=e.y,p=e.y+e.height,d=!(rf&&(f=C,gf&&(f=w,y=o.x&&t<=o.x+o.width&&e>=o.y&&e<=o.y+o.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,o,n){if(n){if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],r=n[3],a=n[4],s=n[5];return e.x=o.x*i+a,e.y=o.y*r+s,e.width=o.width*i,e.height=o.height*r,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Je.x=eo.x=o.x,Je.y=oo.y=o.y,to.x=oo.x=o.x+o.width,to.y=eo.y=o.y+o.height,Je.transform(n),oo.transform(n),to.transform(n),eo.transform(n),e.x=Ze(Je.x,to.x,eo.x,oo.x),e.y=Ze(Je.y,to.y,eo.y,oo.y);var l=Qe(Je.x,to.x,eo.x,oo.x),u=Qe(Je.y,to.y,eo.y,oo.y);e.width=l-e.x,e.height=u-e.y}else e!==o&&t.copy(e,o)},t}();const ao=ro;var so="silent";function lo(){Ne(this.event)}var uo=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return m(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(ve),co=function(t,e){this.x=t,this.y=e},po=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ho=new ao(0,0,0,0),fo=function(t){function e(e,o,n,i,r){var a=t.call(this)||this;return a._hovered=new co(0,0),a.storage=e,a.painter=o,a.painterRoot=i,a._pointerSize=r,n=n||new uo,a.proxy=null,a.setHandlerProxy(n),a._draggingMgr=new fe(a),a}return m(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tt(po,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,o=t.zrY,n=yo(this,e,o),i=this._hovered,r=i.target;r&&!r.__zr&&(r=(i=this.findHover(i.x,i.y)).target);var a=this._hovered=n?new co(e,o):this.findHover(e,o),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),r&&s!==r&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==r&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new co(0,0)},e.prototype.dispatch=function(t,e){var o=this[t];o&&o.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,o){var n=(t=t||{}).target;if(!n||!n.silent){for(var i="on"+e,r=function(t,e,o){return{type:t,event:o,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:o.zrX,offsetY:o.zrY,gestureEvent:o.gestureEvent,pinchX:o.pinchX,pinchY:o.pinchY,pinchScale:o.pinchScale,wheelDelta:o.zrDelta,zrByTouch:o.zrByTouch,which:o.which,stop:lo}}(e,t,o);n&&(n[i]&&(r.cancelBubble=!!n[i].call(n,r)),n.trigger(e,r),n=n.__hostTarget?n.__hostTarget:n.parent,!r.cancelBubble););r.cancelBubble||(this.trigger(e,r),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[i]&&t[i].call(t,r),t.trigger&&t.trigger(e,r)})))}},e.prototype.findHover=function(t,e,o){var n=this.storage.getDisplayList(),i=new co(t,e);if(vo(n,i,t,e,o),this._pointerSize&&!i.target){for(var r=[],a=this._pointerSize,s=a/2,l=new ao(t-s,e-s,a,a),u=n.length-1;u>=0;u--){var c=n[u];c===o||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(ho.copy(c.getBoundingRect()),c.transform&&ho.applyTransform(c.transform),ho.intersect(l)&&r.push(c))}if(r.length)for(var p=Math.PI/12,d=2*Math.PI,h=0;h=0;r--){var a=t[r],s=void 0;if(a!==i&&!a.ignore&&(s=go(a,o,n))&&(!e.topTarget&&(e.topTarget=a),s!==so)){e.target=a;break}}}function yo(t,e,o){var n=t.painter;return e<0||e>n.getWidth()||o<0||o>n.getHeight()}tt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){fo.prototype[t]=function(e){var o,n,i=e.zrX,r=e.zrY,a=yo(this,i,r);if("mouseup"===t&&a||(n=(o=this.findHover(i,r)).target),"mousedown"===t)this._downEl=n,this._downPoint=[e.zrX,e.zrY],this._upEl=n;else if("mouseup"===t)this._upEl=n;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ie(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(o,t,e)}}));const mo=fo;var Co=7;function wo(t,e,o,n){var i=e+1;if(i===o)return 1;if(n(t[i++],t[e])<0){for(;i=0;)i++;return i-e}function So(t,e,o,n,i){for(n===e&&n++;n>>1])<0?l=r:s=r+1;var u=n-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function bo(t,e,o,n,i,r){var a=0,s=0,l=1;if(r(t,e[o+i])>0){for(s=n-i;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}for(a++;a>>1);r(t,e[o+c])>0?a=c+1:l=c}return l}function _o(t,e,o,n,i,r){var a=0,s=0,l=1;if(r(t,e[o+i])<0){for(s=i+1;ls&&(l=s);var u=a;a=i-l,l=i-u}else{for(s=n-i;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}for(a++;a>>1);r(t,e[o+c])<0?l=c:a=c+1}return l}function xo(t,e,o,n){o||(o=0),n||(n=t.length);var i=n-o;if(!(i<2)){var r=0;if(i<32)So(t,o,n,o+(r=wo(t,o,n,e)),e);else{var a=function(t,e){var o,n,i=Co,r=0;t.length;var a=[];function s(s){var l=o[s],u=n[s],c=o[s+1],p=n[s+1];n[s]=u+p,s===r-3&&(o[s+1]=o[s+2],n[s+1]=n[s+2]),r--;var d=_o(t[c],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(p=bo(t[l+u-1],t,c,p,p-1,e))&&(u<=p?function(o,n,r,s){var l=0;for(l=0;l=Co||h>=Co);if(f)break;g<0&&(g=0),g+=2}if((i=g)<1&&(i=1),1===n){for(l=0;l=0;l--)t[h+l]=t[d+l];if(0===n){y=!0;break}}if(t[p--]=a[c--],1==--s){y=!0;break}if(0!=(v=s-bo(t[u],a,0,s,s-1,e))){for(s-=v,h=1+(p-=v),d=1+(c-=v),l=0;l=Co||v>=Co);if(y)break;f<0&&(f=0),f+=2}if((i=f)<1&&(i=1),1===s){for(h=1+(p-=n),d=1+(u-=n),l=n-1;l>=0;l--)t[h+l]=t[d+l];t[p]=a[c]}else{if(0===s)throw new Error;for(d=p-(s-1),l=0;l=0;l--)t[h+l]=t[d+l];t[p]=a[c]}else for(d=p-(s-1),l=0;l1;){var t=r-2;if(t>=1&&n[t-1]<=n[t]+n[t+1]||t>=2&&n[t-2]<=n[t]+n[t-1])n[t-1]n[t+1])break;s(t)}},forceMergeRuns:function(){for(;r>1;){var t=r-2;t>0&&n[t-1]=32;)e|=1&t,t>>=1;return t+e}(i);do{if((r=wo(t,o,n,e))s&&(l=s),So(t,o,o+l,o+r,e),r=l}a.pushRun(o,r),a.mergeRuns(),i-=r,o+=r}while(0!==i);a.forceMergeRuns()}}}var Eo=1,To=4,Do=!1;function Ro(){Do||(Do=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Oo(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Mo=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Oo}return t.prototype.traverse=function(t,e){for(var o=0;o0&&(u.__clipPaths=[]),isNaN(u.z)&&(Ro(),u.z=0),isNaN(u.z2)&&(Ro(),u.z2=0),isNaN(u.zlevel)&&(Ro(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,o);var p=t.getTextGuideLine();p&&this._updateAndAddDisplayable(p,e,o);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,o)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,o=t.length;e=0&&this._roots.splice(n,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}();const Ao=Mo,Io=S.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var Po={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),-o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),o*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,o=.1;return 0===t?0:1===t?1:(!o||o<1?(o=1,e=.1):e=.4*Math.asin(1/o)/(2*Math.PI),(t*=2)<1?o*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:o*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Po.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Po.bounceIn(2*t):.5*Po.bounceOut(2*t-1)+.5}};const Lo=Po;var No=Math.pow,Fo=Math.sqrt,ko=1e-8,Go=1e-4,Vo=Fo(3),Ho=1/3,Bo=Bt(),Wo=Bt(),zo=Bt();function jo(t){return t>-ko&&tko||t<-ko}function $o(t,e,o,n,i){var r=1-i;return r*r*(r*t+3*i*e)+i*i*(i*n+3*r*o)}function Yo(t,e,o,n,i){var r=1-i;return 3*(((e-t)*r+2*(o-e)*i)*r+(n-o)*i*i)}function Ko(t,e,o,n,i,r){var a=n+3*(e-o)-t,s=3*(o-2*e+t),l=3*(e-t),u=t-i,c=s*s-3*a*l,p=s*l-9*a*u,d=l*l-3*s*u,h=0;if(jo(c)&&jo(p))jo(s)?r[0]=0:(x=-l/s)>=0&&x<=1&&(r[h++]=x);else{var f=p*p-4*c*d;if(jo(f)){var g=p/c,v=-g/2;(x=-s/a+g)>=0&&x<=1&&(r[h++]=x),v>=0&&v<=1&&(r[h++]=v)}else if(f>0){var y=Fo(f),m=c*s+1.5*a*(-p+y),C=c*s+1.5*a*(-p-y);(x=(-s-((m=m<0?-No(-m,Ho):No(m,Ho))+(C=C<0?-No(-C,Ho):No(C,Ho))))/(3*a))>=0&&x<=1&&(r[h++]=x)}else{var w=(2*c*s-3*a*p)/(2*Fo(c*c*c)),S=Math.acos(w)/3,b=Fo(c),_=Math.cos(S),x=(-s-2*b*_)/(3*a),E=(v=(-s+b*(_+Vo*Math.sin(S)))/(3*a),(-s+b*(_-Vo*Math.sin(S)))/(3*a));x>=0&&x<=1&&(r[h++]=x),v>=0&&v<=1&&(r[h++]=v),E>=0&&E<=1&&(r[h++]=E)}}return h}function Xo(t,e,o,n,i){var r=6*o-12*e+6*t,a=9*e+3*n-3*t-9*o,s=3*e-3*t,l=0;if(jo(a))Uo(r)&&(c=-s/r)>=0&&c<=1&&(i[l++]=c);else{var u=r*r-4*a*s;if(jo(u))i[0]=-r/(2*a);else if(u>0){var c,p=Fo(u),d=(-r-p)/(2*a);(c=(-r+p)/(2*a))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function qo(t,e,o,n,i,r){var a=(e-t)*i+t,s=(o-e)*i+e,l=(n-o)*i+o,u=(s-a)*i+a,c=(l-s)*i+s,p=(c-u)*i+u;r[0]=t,r[1]=a,r[2]=u,r[3]=p,r[4]=p,r[5]=c,r[6]=l,r[7]=n}function Zo(t,e,o,n,i,r,a,s,l,u,c){var p,d,h,f,g,v=.005,y=1/0;Bo[0]=l,Bo[1]=u;for(var m=0;m<1;m+=.05)Wo[0]=$o(t,o,i,a,m),Wo[1]=$o(e,n,r,s,m),(f=ae(Bo,Wo))=0&&f=0&&v=1?1:Ko(0,n,r,1,t,s)&&$o(0,i,a,1,s[0])}}}const ln=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||Vt,this.ondestroy=t.ondestroy||Vt,this.onrestart=t.onrestart||Vt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var o=this._life,n=t-this._startTime-this._pausedTime,i=n/o;i<0&&(i=0),i=Math.min(i,1);var r=this.easingFunc,a=r?r(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=n%o;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=ut(t)?t:Lo[t]||sn(t)},t}();var un=function(t){this.value=t},cn=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new un(t);return this.insertEntry(e),e},t.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},t.prototype.remove=function(t){var e=t.prev,o=t.next;e?e.next=o:this.head=o,o?o.prev=e:this.tail=e,t.next=t.prev=null,this._len--},t.prototype.len=function(){return this._len},t.prototype.clear=function(){this.head=this.tail=null,this._len=0},t}(),pn=function(){function t(t){this._list=new cn,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var o=this._list,n=this._map,i=null;if(null==n[t]){var r=o.len(),a=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var s=o.head;o.remove(s),delete n[s.key],i=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new un(e),a.key=t,o.insertEntry(a),n[t]=a}return i},t.prototype.get=function(t){var e=this._map[t],o=this._list;if(null!=e)return e!==o.tail&&(o.remove(e),o.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const dn=pn;var hn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function fn(t){return(t=Math.round(t))<0?0:t>255?255:t}function gn(t){return t<0?0:t>1?1:t}function vn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?fn(parseFloat(e)/100*255):fn(parseInt(e,10))}function yn(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?gn(parseFloat(e)/100):gn(parseFloat(e))}function mn(t,e,o){return o<0?o+=1:o>1&&(o-=1),6*o<1?t+(e-t)*o*6:2*o<1?e:3*o<2?t+(e-t)*(2/3-o)*6:t}function Cn(t,e,o){return t+(e-t)*o}function wn(t,e,o,n,i){return t[0]=e,t[1]=o,t[2]=n,t[3]=i,t}function Sn(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var bn=new dn(20),_n=null;function xn(t,e){_n&&Sn(_n,e),_n=bn.put(t,_n||e.slice())}function En(t,e){if(t){e=e||[];var o=bn.get(t);if(o)return Sn(e,o);var n=(t+="").replace(/ /g,"").toLowerCase();if(n in hn)return Sn(e,hn[n]),xn(t,e),e;var i,r=n.length;if("#"===n.charAt(0))return 4===r||5===r?(i=parseInt(n.slice(1,4),16))>=0&&i<=4095?(wn(e,(3840&i)>>4|(3840&i)>>8,240&i|(240&i)>>4,15&i|(15&i)<<4,5===r?parseInt(n.slice(4),16)/15:1),xn(t,e),e):void wn(e,0,0,0,1):7===r||9===r?(i=parseInt(n.slice(1,7),16))>=0&&i<=16777215?(wn(e,(16711680&i)>>16,(65280&i)>>8,255&i,9===r?parseInt(n.slice(7),16)/255:1),xn(t,e),e):void wn(e,0,0,0,1):void 0;var a=n.indexOf("("),s=n.indexOf(")");if(-1!==a&&s+1===r){var l=n.substr(0,a),u=n.substr(a+1,s-(a+1)).split(","),c=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?wn(e,+u[0],+u[1],+u[2],1):wn(e,0,0,0,1);c=yn(u.pop());case"rgb":return u.length>=3?(wn(e,vn(u[0]),vn(u[1]),vn(u[2]),3===u.length?c:yn(u[3])),xn(t,e),e):void wn(e,0,0,0,1);case"hsla":return 4!==u.length?void wn(e,0,0,0,1):(u[3]=yn(u[3]),Tn(u,e),xn(t,e),e);case"hsl":return 3!==u.length?void wn(e,0,0,0,1):(Tn(u,e),xn(t,e),e);default:return}}wn(e,0,0,0,1)}}function Tn(t,e){var o=(parseFloat(t[0])%360+360)%360/360,n=yn(t[1]),i=yn(t[2]),r=i<=.5?i*(n+1):i+n-i*n,a=2*i-r;return wn(e=e||[],fn(255*mn(a,r,o+1/3)),fn(255*mn(a,r,o)),fn(255*mn(a,r,o-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Dn(t,e){var o=En(t);if(o){for(var n=0;n<3;n++)o[n]=e<0?o[n]*(1-e)|0:(255-o[n])*e+o[n]|0,o[n]>255?o[n]=255:o[n]<0&&(o[n]=0);return Nn(o,4===o.length?"rgba":"rgb")}}function Rn(t){var e=En(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function On(t,e,o){if(e&&e.length&&t>=0&&t<=1){o=o||[];var n=t*(e.length-1),i=Math.floor(n),r=Math.ceil(n),a=e[i],s=e[r],l=n-i;return o[0]=fn(Cn(a[0],s[0],l)),o[1]=fn(Cn(a[1],s[1],l)),o[2]=fn(Cn(a[2],s[2],l)),o[3]=gn(Cn(a[3],s[3],l)),o}}var Mn=On;function An(t,e,o){if(e&&e.length&&t>=0&&t<=1){var n=t*(e.length-1),i=Math.floor(n),r=Math.ceil(n),a=En(e[i]),s=En(e[r]),l=n-i,u=Nn([fn(Cn(a[0],s[0],l)),fn(Cn(a[1],s[1],l)),fn(Cn(a[2],s[2],l)),gn(Cn(a[3],s[3],l))],"rgba");return o?{color:u,leftIndex:i,rightIndex:r,value:n}:u}}var In=An;function Pn(t,e,o,n){var i=En(t);if(t)return i=function(t){if(t){var e,o,n=t[0]/255,i=t[1]/255,r=t[2]/255,a=Math.min(n,i,r),s=Math.max(n,i,r),l=s-a,u=(s+a)/2;if(0===l)e=0,o=0;else{o=u<.5?l/(s+a):l/(2-s-a);var c=((s-n)/6+l/2)/l,p=((s-i)/6+l/2)/l,d=((s-r)/6+l/2)/l;n===s?e=d-p:i===s?e=1/3+c-d:r===s&&(e=2/3+p-c),e<0&&(e+=1),e>1&&(e-=1)}var h=[360*e,o,u];return null!=t[3]&&h.push(t[3]),h}}(i),null!=e&&(i[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=o&&(i[1]=yn(o)),null!=n&&(i[2]=yn(n)),Nn(Tn(i),"rgba")}function Ln(t,e){var o=En(t);if(o&&null!=e)return o[3]=gn(e),Nn(o,"rgba")}function Nn(t,e){if(t&&t.length){var o=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(o+=","+t[3]),e+"("+o+")"}}function Fn(t,e){var o=En(t);return o?(.299*o[0]+.587*o[1]+.114*o[2])*o[3]/255+(1-o[3])*e:0}function kn(){return Nn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var Gn=Math.round;function Vn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var o=En(t);o&&(t="rgb("+o[0]+","+o[1]+","+o[2]+")",e=o[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Hn=1e-4;function Bn(t){return t-Hn}function Wn(t){return Gn(1e3*t)/1e3}function zn(t){return Gn(1e4*t)/1e4}var jn={left:"start",right:"end",center:"middle",middle:"middle"};function Un(t){return t&&!!t.image}function $n(t){return Un(t)||function(t){return t&&!!t.svgElement}(t)}function Yn(t){return"linear"===t.type}function Kn(t){return"radial"===t.type}function Xn(t){return t&&("linear"===t.type||"radial"===t.type)}function qn(t){return"url(#"+t+")"}function Zn(t){var e=t.getGlobalScale(),o=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(o)/Math.log(10)),1)}function Qn(t){var e=t.x||0,o=t.y||0,n=(t.rotation||0)*Ht,i=bt(t.scaleX,1),r=bt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||o)&&l.push("translate("+e+"px,"+o+"px)"),n&&l.push("rotate("+n+")"),1===i&&1===r||l.push("scale("+i+","+r+")"),(a||s)&&l.push("skew("+Gn(a*Ht)+"deg, "+Gn(s*Ht)+"deg)"),l.join(" ")}var Jn=S.hasGlobalWindow&&ut(window.btoa)?function(t){return window.btoa(unescape(encodeURIComponent(t)))}:"undefined"!=typeof Buffer?function(t){return Buffer.from(t).toString("base64")}:function(t){return null},ti=Array.prototype.slice;function ei(t,e,o){return(e-t)*o+t}function oi(t,e,o,n){for(var i=e.length,r=0;rn?e:t,r=Math.min(o,n),a=i[r-1]||{color:[0,0,0,0],offset:0},s=r;sa)n.length=a;else for(var s=r;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,o){this._needsSort=!0;var n=this.keyframes,i=n.length,r=!1,a=6,s=e;if(J(e)){var l=function(t){return J(t&&t[0])?2:1}(e);a=l,(1===l&&!dt(e[0])||2===l&&!dt(e[0][0]))&&(r=!0)}else if(dt(e)&&!wt(e))a=0;else if(ct(e))if(isNaN(+e)){var u=En(e);u&&(s=u,a=3)}else a=0;else if(yt(e)){var c=Y({},s);c.colorStops=et(e.colorStops,(function(t){return{offset:t.offset,color:En(t.color)}})),Yn(e)?a=4:Kn(e)&&(a=5),s=c}0===i?this.valType=a:a===this.valType&&6!==a||(r=!0),this.discrete=this.discrete||r;var p={time:t,value:s,rawValue:e,percent:0};return o&&(p.easing=o,p.easingFunc=ut(o)?o:Lo[o]||sn(o)),n.push(p),p},t.prototype.prepare=function(t,e){var o=this.keyframes;this._needsSort&&o.sort((function(t,e){return t.time-e.time}));for(var n=this.valType,i=o.length,r=o[i-1],a=this.discrete,s=ci(n),l=ui(n),u=0;u=0&&!(l[o].percent<=e);o--);o=h(o,u-2)}else{for(o=d;oe);o++);o=h(o-1,u-2)}i=l[o+1],n=l[o]}if(n&&i){this._lastFr=o,this._lastFrP=e;var f=i.percent-n.percent,g=0===f?1:h((e-n.percent)/f,1);i.easingFunc&&(g=i.easingFunc(g));var v=r?this._additiveValue:p?pi:t[c];if(!ci(s)&&!p||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?n.rawValue:i.rawValue;else if(ci(s))1===s?oi(v,n[a],i[a],g):function(t,e,o,n){for(var i=e.length,r=i&&e[0].length,a=0;a0&&s.addKeyframe(0,si(l),n),this._trackKeys.push(a)}s.addKeyframe(t,si(e[a]),n)}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,o=0;o0)){this._started=1;for(var e=this,o=[],n=this._maxTime||0,i=0;i1){var a=r.pop();i.addKeyframe(a.time,t[n]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},t}();const fi=hi;function gi(){return(new Date).getTime()}var vi=function(t){function e(e){var o=t.call(this)||this;return o._running=!1,o._time=0,o._pausedTime=0,o._pauseStart=0,o._paused=!1,e=e||{},o.stage=e.stage||{},o}return m(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,o=t.next;e?e.next=o:this._head=o,o?o.prev=e:this._tail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){for(var e=gi()-this._pausedTime,o=e-this._time,n=this._head;n;){var i=n.next;n.step(e,o)?(n.ondestroy(),this.removeClip(n),n=i):n=i}this._time=e,t||(this.trigger("frame",o),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Io((function e(){t._running&&(Io(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=gi(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=gi(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=gi()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){for(var t=this._head;t;){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var o=new fi(t,e.loop);return this.addAnimator(o),o},e}(ve);const yi=vi;var mi,Ci,wi=S.domSupported,Si=(Ci={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:mi=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:et(mi,(function(t){var e=t.replace("mouse","pointer");return Ci.hasOwnProperty(e)?e:t}))}),bi=["mousemove","mouseup"],_i=["pointermove","pointerup"],xi=!1;function Ei(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ti(t){t&&(t.zrByTouch=!0)}function Di(t,e){for(var o=e,n=!1;o&&9!==o.nodeType&&!(n=o.domBelongToZr||o!==e&&o===t.painterRoot);)o=o.parentNode;return n}var Ri=function(t,e){this.stopPropagation=Vt,this.stopImmediatePropagation=Vt,this.preventDefault=Vt,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY},Oi={mousedown:function(t){t=Pe(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Pe(this.dom,t);var e=this.__mayPointerCapture;!e||t.zrX===e[0]&&t.zrY===e[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",t)},mouseup:function(t){t=Pe(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Di(this,(t=Pe(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){xi=!0,t=Pe(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){xi||(t=Pe(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ti(t=Pe(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Oi.mousemove.call(this,t),Oi.mousedown.call(this,t)},touchmove:function(t){Ti(t=Pe(this.dom,t)),this.handler.processGesture(t,"change"),Oi.mousemove.call(this,t)},touchend:function(t){Ti(t=Pe(this.dom,t)),this.handler.processGesture(t,"end"),Oi.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Oi.click.call(this,t)},pointerdown:function(t){Oi.mousedown.call(this,t)},pointermove:function(t){Ei(t)||Oi.mousemove.call(this,t)},pointerup:function(t){Oi.mouseup.call(this,t)},pointerout:function(t){Ei(t)||Oi.mouseout.call(this,t)}};tt(["click","dblclick","contextmenu"],(function(t){Oi[t]=function(e){e=Pe(this.dom,e),this.trigger(t,e)}}));var Mi={pointermove:function(t){Ei(t)||Mi.mousemove.call(this,t)},pointerup:function(t){Mi.mouseup.call(this,t)},mousemove:function(t){this.trigger("mousemove",t)},mouseup:function(t){var e=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",t),e&&(t.zrEventControl="only_globalout",this.trigger("mouseout",t))}};function Ai(t,e,o,n){t.mounted[e]=o,t.listenerOpts[e]=n,Le(t.domTarget,e,o,n)}function Ii(t){var e,o,n,i,r=t.mounted;for(var a in r)r.hasOwnProperty(a)&&(e=t.domTarget,o=a,n=r[a],i=t.listenerOpts[a],e.removeEventListener(o,n,i));t.mounted={}}var Pi=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Li=function(t){function e(e,o){var n,i,r,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=o,a._localHandlerScope=new Pi(e,Oi),wi&&(a._globalHandlerScope=new Pi(document,Mi)),n=a,i=a._localHandlerScope,r=i.domHandlers,S.pointerEventsSupported?tt(Si.pointer,(function(t){Ai(i,t,(function(e){r[t].call(n,e)}))})):(S.touchEventsSupported&&tt(Si.touch,(function(t){Ai(i,t,(function(e){r[t].call(n,e),function(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setTimeout((function(){t.touching=!1,t.touchTimer=null}),700)}(i)}))})),tt(Si.mouse,(function(t){Ai(i,t,(function(e){e=Ie(e),i.touching||r[t].call(n,e)}))}))),a}return m(e,t),e.prototype.dispose=function(){Ii(this._localHandlerScope),wi&&Ii(this._globalHandlerScope)},e.prototype.setCursor=function(t){this.dom.style&&(this.dom.style.cursor=t||"default")},e.prototype.__togglePointerCapture=function(t){if(this.__mayPointerCapture=null,wi&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function o(o){Ai(e,o,(function(n){n=Ie(n),Di(t,n.target)||(n=function(t,e){return Pe(t.dom,new Ri(t,e),!0)}(t,n),e.domHandlers[o].call(t,n))}),{capture:!0})}S.pointerEventsSupported?tt(_i,o):S.touchEventsSupported||tt(bi,o)}(this,e):Ii(e)}},e}(ve);var Ni=1;S.hasGlobalWindow&&(Ni=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Fi=Ni,ki="#333",Gi="#ccc",Vi=Be;function Hi(t){return t>5e-5||t<-5e-5}var Bi=[],Wi=[],zi=[1,0,0,1,0,0],ji=Math.abs,Ui=function(){function t(){}return t.prototype.getLocalTransform=function(e){return t.getLocalTransform(this,e)},t.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},t.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},t.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},t.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},t.prototype.needLocalTransform=function(){return Hi(this.rotation)||Hi(this.x)||Hi(this.y)||Hi(this.scaleX-1)||Hi(this.scaleY-1)||Hi(this.skewX)||Hi(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),o=this.transform;e||t?(o=o||[1,0,0,1,0,0],e?this.getLocalTransform(o):Vi(o),t&&(e?ze(o,t,o):We(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&Vi(o)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Bi);var o=Bi[0]<0?-1:1,n=Bi[1]<0?-1:1,i=((Bi[0]-o)*e+o)/Bi[0]||0,r=((Bi[1]-n)*e+n)/Bi[1]||0;t[0]*=i,t[1]*=i,t[2]*=r,t[3]*=r}this.invTransform=this.invTransform||[1,0,0,1,0,0],Ye(this.invTransform,t)},t.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},t.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],o=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),i=Math.PI/2+n-Math.atan2(t[3],t[2]);o=Math.sqrt(o)*Math.cos(i),e=Math.sqrt(e),this.skewX=i,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=o,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(ze(Wi,t.invTransform,e),e=Wi);var o=this.originX,n=this.originY;(o||n)&&(zi[4]=o,zi[5]=n,ze(Wi,e,zi),Wi[4]-=o,Wi[5]-=n,e=Wi),this.setLocalTransform(e)}},t.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},t.prototype.transformCoordToLocal=function(t,e){var o=[t,e],n=this.invTransform;return n&&ue(o,o,n),o},t.prototype.transformCoordToGlobal=function(t,e){var o=[t,e],n=this.transform;return n&&ue(o,o,n),o},t.prototype.getLineScale=function(){var t=this.transform;return t&&ji(t[0]-1)>1e-10&&ji(t[3]-1)>1e-10?Math.sqrt(ji(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Yi(this,t)},t.getLocalTransform=function(t,e){e=e||[];var o=t.originX||0,n=t.originY||0,i=t.scaleX,r=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,c=t.y,p=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(o||n||a||s){var h=o+a,f=n+s;e[4]=-h*i-p*f*r,e[5]=-f*r-d*h*i}else e[4]=e[5]=0;return e[0]=i,e[3]=r,e[1]=d*i,e[2]=p*r,l&&Ue(e,e,l),e[4]+=o+u,e[5]+=n+c,e},t.initDefaultProps=function(){var e=t.prototype;e.scaleX=e.scaleY=e.globalScaleRatio=1,e.x=e.y=e.originX=e.originY=e.skewX=e.skewY=e.rotation=e.anchorX=e.anchorY=0}(),t}(),$i=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yi(t,e){for(var o=0;o<$i.length;o++){var n=$i[o];t[n]=e[n]}}const Ki=Ui;var Xi={};function qi(t,e){var o=Xi[e=e||T];o||(o=Xi[e]=new dn(500));var n=o.get(t);return null==n&&(n=R.measureText(t,e).width,o.put(t,n)),n}function Zi(t,e,o,n){var i=qi(t,e),r=er(e),a=Ji(0,i,o),s=tr(0,r,n);return new ao(a,s,i,r)}function Qi(t,e,o,n){var i=((t||"")+"").split("\n");if(1===i.length)return Zi(i[0],e,o,n);for(var r=new ao(0,0,0,0),a=0;a=0?parseFloat(t)/100*e:parseFloat(t):t}function nr(t,e,o){var n=e.position||"inside",i=null!=e.distance?e.distance:5,r=o.height,a=o.width,s=r/2,l=o.x,u=o.y,c="left",p="top";if(n instanceof Array)l+=or(n[0],o.width),u+=or(n[1],o.height),c=null,p=null;else switch(n){case"left":l-=i,u+=s,c="right",p="middle";break;case"right":l+=i+a,u+=s,p="middle";break;case"top":l+=a/2,u-=i,c="center",p="bottom";break;case"bottom":l+=a/2,u+=r+i,c="center";break;case"inside":l+=a/2,u+=s,c="center",p="middle";break;case"insideLeft":l+=i,u+=s,p="middle";break;case"insideRight":l+=a-i,u+=s,c="right",p="middle";break;case"insideTop":l+=a/2,u+=i,c="center";break;case"insideBottom":l+=a/2,u+=r-i,c="center",p="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=a-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=r-i,p="bottom";break;case"insideBottomRight":l+=a-i,u+=r-i,c="right",p="bottom"}return(t=t||{}).x=l,t.y=u,t.align=c,t.verticalAlign=p,t}var ir="__zr_normal__",rr=$i.concat(["ignore"]),ar=ot($i,(function(t,e){return t[e]=!0,t}),{ignore:!1}),sr={},lr=new ao(0,0,0,0),ur=function(){function t(t){this.id=W(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,o){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var o=this.textConfig,n=o.local,i=e.innerTransformable,r=void 0,a=void 0,s=!1;i.parent=n?this:null;var l=!1;if(i.copyTransform(e),null!=o.position){var u=lr;o.layoutRect?u.copy(o.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(sr,o,u):nr(sr,o,u),i.x=sr.x,i.y=sr.y,r=sr.align,a=sr.verticalAlign;var c=o.origin;if(c&&null!=o.rotation){var p=void 0,d=void 0;"center"===c?(p=.5*u.width,d=.5*u.height):(p=or(c[0],u.width),d=or(c[1],u.height)),l=!0,i.originX=-i.x+p+(n?0:u.x),i.originY=-i.y+d+(n?0:u.y)}}null!=o.rotation&&(i.rotation=o.rotation);var h=o.offset;h&&(i.x+=h[0],i.y+=h[1],l||(i.originX=-h[0],i.originY=-h[1]));var f=null==o.inside?"string"==typeof o.position&&o.position.indexOf("inside")>=0:o.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),v=void 0,y=void 0,m=void 0;f&&this.canBeInsideText()?(v=o.insideFill,y=o.insideStroke,null!=v&&"auto"!==v||(v=this.getInsideTextFill()),null!=y&&"auto"!==y||(y=this.getInsideTextStroke(v),m=!0)):(v=o.outsideFill,y=o.outsideStroke,null!=v&&"auto"!==v||(v=this.getOutsideFill()),null!=y&&"auto"!==y||(y=this.getOutsideStroke(v),m=!0)),(v=v||"#000")===g.fill&&y===g.stroke&&m===g.autoStroke&&r===g.align&&a===g.verticalAlign||(s=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=r,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=Eo,s&&e.dirtyStyle(!0)}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Gi:ki},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof e&&En(e);o||(o=[255,255,255,1]);for(var n=o[3],i=this.__zr.isDarkMode(),r=0;r<3;r++)o[r]=o[r]*n+(i?0:255)*(1-n);return o[3]=1,Nn(o,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Y(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"==typeof t)this.attrKV(t,e);else if(ht(t))for(var o=rt(t),n=0;n0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(ir,!1,t)},t.prototype.useState=function(t,e,o,n){var i=t===ir;if(this.hasState()||!i){var r=this.currentStates,a=this.stateTransition;if(!(q(r,t)>=0)||!e&&1!==r.length){var s;if(this.stateProxy&&!i&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||i){i||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||n);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!o&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,c=this._textGuide;return u&&u.useState(t,e,o,l),c&&c.useState(t,e,o,l),i?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Eo),s}z("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,o){if(t.length){var n=[],i=this.currentStates,r=t.length,a=r===i.length;if(a)for(var s=0;s0,h);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,p),g&&g.useStates(t,e,p),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!p&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~Eo)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var o=this.currentStates.slice();o.splice(e,1),this.useStates(o)}},t.prototype.replaceState=function(t,e,o){var n=this.currentStates.slice(),i=q(n,t),r=q(n,e)>=0;i>=0?r?n.splice(i,1):n[i]=e:o&&!r&&n.push(e),this.useStates(n)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,o={},n=0;n=0&&e.splice(o,1)})),this.animators.push(t),o&&o.animation.addAnimator(t),o&&o.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var o=this.animators,n=o.length,i=[],r=0;r0&&o.during&&r[0].during((function(t,e){o.during(e)}));for(var d=0;d0||i.force&&!a.length){var b,_=void 0,x=void 0,E=void 0;if(s)for(x={},d&&(_={}),w=0;w=0&&(o.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var o=q(this._children,t);return o>=0&&this.replaceAt(e,o),this},e.prototype.replaceAt=function(t,e){var o=this._children,n=o[e];if(t&&t!==this&&t.parent!==this&&t!==n){o[e]=t,n.parent=null;var i=this.__zr;i&&n.removeSelfFromZr(i),this._doAdd(t)}return this},e.prototype._doAdd=function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__zr;e&&e!==t.__zr&&t.addSelfToZr(e),e&&e.refresh()},e.prototype.remove=function(t){var e=this.__zr,o=this._children,n=q(o,t);return n<0||(o.splice(n,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,o=0;o0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},t.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},t.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},t.prototype.refreshHover=function(){this._needsRefreshHover=!0},t.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},t.prototype.resize=function(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},t.prototype.clearAnimation=function(){this.animation.clear()},t.prototype.getWidth=function(){return this.painter.getWidth()},t.prototype.getHeight=function(){return this.painter.getHeight()},t.prototype.setCursorStyle=function(t){this.handler.setCursorStyle(t)},t.prototype.findHover=function(t,e){return this.handler.findHover(t,e)},t.prototype.on=function(t,e,o){return this.handler.on(t,e,o),this},t.prototype.off=function(t,e){this.handler.off(t,e)},t.prototype.trigger=function(t,e){this.handler.trigger(t,e)},t.prototype.clear=function(){for(var t=this.storage.getRoots(),e=0;e0){if(t<=i)return a;if(t>=r)return s}else{if(t>=i)return a;if(t<=r)return s}else{if(t===i)return a;if(t===r)return s}return(t-i)/l*u+a}function Or(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return ct(t)?(o=t,o.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var o}function Mr(t,e,o){return null==e&&(e=10),e=Math.min(Math.max(0,e),Dr),t=(+t).toFixed(e),o?t:+t}function Ar(t){return t.sort((function(t,e){return t-e})),t}function Ir(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,o=0;o<15;o++,e*=10)if(Math.round(t*e)/e===t)return o;return Pr(t)}function Pr(t){var e=t.toString().toLowerCase(),o=e.indexOf("e"),n=o>0?+e.slice(o+1):0,i=o>0?o:e.length,r=e.indexOf("."),a=r<0?0:i-1-r;return Math.max(0,a-n)}function Lr(t,e){var o=Math.log,n=Math.LN10,i=Math.floor(o(t[1]-t[0])/n),r=Math.round(o(Math.abs(e[1]-e[0]))/n),a=Math.min(Math.max(-i+r,0),20);return isFinite(a)?a:20}function Nr(t,e,o){return t[e]&&Fr(t,o)[e]||0}function Fr(t,e){var o=ot(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===o)return[];for(var n=Math.pow(10,e),i=et(t,(function(t){return(isNaN(t)?0:t)/o*n*100})),r=100*n,a=et(i,(function(t){return Math.floor(t)})),s=ot(a,(function(t,e){return t+e}),0),l=et(i,(function(t,e){return t-a[e]}));su&&(u=l[p],c=p);++a[c],l[c]=0,++s}return et(a,(function(t){return t/n}))}function kr(t,e){var o=Math.max(Ir(t),Ir(e)),n=t+e;return o>Dr?n:Mr(n,o)}var Gr=9007199254740991;function Vr(t){var e=2*Math.PI;return(t%e+e)%e}function Hr(t){return t>-Tr&&t=10&&e++,e}function Ur(t,e){var o=jr(t),n=Math.pow(10,o),i=t/n;return t=(e?i<1.5?1:i<2.5?2:i<4?3:i<7?5:10:i<1?1:i<2?2:i<3?3:i<5?5:10)*n,o>=-20?+t.toFixed(o<0?-o:0):t}function $r(t,e){var o=(t.length-1)*e+1,n=Math.floor(o),i=+t[n-1],r=o-n;return r?i+r*(t[n]-i):i}function Yr(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,o=1,n=0;n=0||i&&q(i,s)<0)){var l=o.getShallow(s,e);null!=l&&(r[t[a][0]]=l)}}return r}}var Na=La([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Fa=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Na(this,t,e)},t}(),ka=new dn(50);function Ga(t){if("string"==typeof t){var e=ka.get(t);return e&&e.image}return t}function Va(t,e,o,n,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!o)return e;var r=ka.get(t),a={hostEl:o,cb:n,cbPayload:i};return r?!Ba(e=r.image)&&r.pending.push(a):((e=R.loadImage(t,Ha,Ha)).__zrImageSrc=t,ka.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Ha(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=qi(o,e);return u>s&&(o="",u=0),s=t-u,i.ellipsis=o,i.ellipsisWidth=u,i.contentWidth=s,i.containerWidth=t,i}function Ua(t,e){var o=e.containerWidth,n=e.font,i=e.contentWidth;if(!o)return"";var r=qi(t,n);if(r<=o)return t;for(var a=0;;a++){if(r<=i||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?$a(t,i,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*i/r):0;r=qi(t=t.substr(0,s),n)}return""===t&&(t=e.placeholder),t}function $a(t,e,o,n){for(var i=0,r=0,a=t.length;r0&&f+n.accumWidth>n.width&&(r=e.split("\n"),p=!0),n.accumWidth=f}else{var g=Ja(e,c,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,a=g.linesWidths,r=g.lines}}else r=e.split("\n");for(var v=0;v=33&&e<=383}(t)||!!Za[t]}function Ja(t,e,o,n,i){for(var r=[],a=[],s="",l="",u=0,c=0,p=0;po:i+c+h>o)?c?(s||l)&&(f?(s||(s=l,l="",c=u=0),r.push(s),a.push(c-u),l+=d,s="",c=u+=h):(l&&(s+=l,l="",u=0),r.push(s),a.push(c),s=d,c=h)):f?(r.push(l),a.push(u),l=d,u=h):(r.push(d),a.push(h)):(c+=h,f?(l+=d,u+=h):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,c+=u),r.push(s),a.push(c),s="",l="",u=0,c=0}return r.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(r.push(s),a.push(c)),1===r.length&&(c+=i),{accumWidth:c,lines:r,linesWidths:a}}var ts="__zr_style_"+Math.round(10*Math.random()),es={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},os={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};es[ts]=!0;var ns=["z","z2","invisible"],is=["invisible"],rs=function(t){function e(e){return t.call(this,e)||this}var o;return m(e,t),e.prototype._init=function(e){for(var o=rt(e),n=0;n1e-4)return s[0]=t-o,s[1]=e-n,l[0]=t+o,void(l[1]=e+n);if(fs[0]=ds(i)*o+t,fs[1]=ps(i)*n+e,gs[0]=ds(r)*o+t,gs[1]=ps(r)*n+e,u(s,fs,gs),c(l,fs,gs),(i%=hs)<0&&(i+=hs),(r%=hs)<0&&(r+=hs),i>r&&!a?r+=hs:ii&&(vs[0]=ds(h)*o+t,vs[1]=ps(h)*n+e,u(s,vs,s),c(l,vs,l))}var xs={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Es=[],Ts=[],Ds=[],Rs=[],Os=[],Ms=[],As=Math.min,Is=Math.max,Ps=Math.cos,Ls=Math.sin,Ns=Math.abs,Fs=Math.PI,ks=2*Fs,Gs="undefined"!=typeof Float32Array,Vs=[];function Hs(t){return Math.round(t/Fs*1e8)/1e8%2*Fs}function Bs(t,e){var o=Hs(t[0]);o<0&&(o+=ks);var n=o-t[0],i=t[1];i+=n,!e&&i-o>=ks?i=o+ks:e&&o-i>=ks?i=o-ks:!e&&o>i?i=o+(ks-Hs(o-i)):e&&o0&&(this._ux=Ns(o/Fi/t)||0,this._uy=Ns(o/Fi/e)||0)},t.prototype.setDPR=function(t){this.dpr=t},t.prototype.setContext=function(t){this._ctx=t},t.prototype.getContext=function(){return this._ctx},t.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},t.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},t.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(xs.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},t.prototype.lineTo=function(t,e){var o=Ns(t-this._xi),n=Ns(e-this._yi),i=o>this._ux||n>this._uy;if(this.addData(xs.L,t,e),this._ctx&&i&&this._ctx.lineTo(t,e),i)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var r=o*o+n*n;r>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=r)}return this},t.prototype.bezierCurveTo=function(t,e,o,n,i,r){return this._drawPendingPt(),this.addData(xs.C,t,e,o,n,i,r),this._ctx&&this._ctx.bezierCurveTo(t,e,o,n,i,r),this._xi=i,this._yi=r,this},t.prototype.quadraticCurveTo=function(t,e,o,n){return this._drawPendingPt(),this.addData(xs.Q,t,e,o,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,o,n),this._xi=o,this._yi=n,this},t.prototype.arc=function(t,e,o,n,i,r){this._drawPendingPt(),Vs[0]=n,Vs[1]=i,Bs(Vs,r),n=Vs[0];var a=(i=Vs[1])-n;return this.addData(xs.A,t,e,o,o,n,a,0,r?0:1),this._ctx&&this._ctx.arc(t,e,o,n,i,r),this._xi=Ps(i)*o+t,this._yi=Ls(i)*o+e,this},t.prototype.arcTo=function(t,e,o,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,o,n,i),this},t.prototype.rect=function(t,e,o,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,o,n),this.addData(xs.R,t,e,o,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(xs.Z);var t=this._ctx,e=this._x0,o=this._y0;return t&&t.closePath(),this._xi=e,this._yi=o,this},t.prototype.fill=function(t){t&&t.fill(),this.toStatic()},t.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},t.prototype.len=function(){return this._len},t.prototype.setData=function(t){var e=t.length;this.data&&this.data.length===e||!Gs||(this.data=new Float32Array(e));for(var o=0;ou.length&&(this._expandData(),u=this.data);for(var c=0;c0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},t.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e11&&(this.data=new Float32Array(t)))}},t.prototype.getBoundingRect=function(){Ds[0]=Ds[1]=Os[0]=Os[1]=Number.MAX_VALUE,Rs[0]=Rs[1]=Ms[0]=Ms[1]=-Number.MAX_VALUE;var t,e=this.data,o=0,n=0,i=0,r=0;for(t=0;to||Ns(v)>n||p===e-1)&&(f=Math.sqrt(O*O+v*v),i=g,r=C);break;case xs.C:var y=t[p++],m=t[p++],C=(g=t[p++],t[p++]),w=t[p++],S=t[p++];f=Qo(i,r,y,m,g,C,w,S,10),i=w,r=S;break;case xs.Q:f=rn(i,r,y=t[p++],m=t[p++],g=t[p++],C=t[p++],10),i=g,r=C;break;case xs.A:var b=t[p++],_=t[p++],x=t[p++],E=t[p++],T=t[p++],D=t[p++],R=D+T;p+=1,t[p++],h&&(a=Ps(T)*x+b,s=Ls(T)*E+_),f=Is(x,E)*As(ks,Math.abs(D)),i=Ps(R)*x+b,r=Ls(R)*E+_;break;case xs.R:a=i=t[p++],s=r=t[p++],f=2*t[p++]+2*t[p++];break;case xs.Z:var O=a-i;v=s-r,f=Math.sqrt(O*O+v*v),i=a,r=s}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var o,n,i,r,a,s,l,u,c,p,d=this.data,h=this._ux,f=this._uy,g=this._len,v=e<1,y=0,m=0,C=0;if(!v||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var w=0;w0&&(t.lineTo(c,p),C=0),S){case xs.M:o=i=d[w++],n=r=d[w++],t.moveTo(i,r);break;case xs.L:a=d[w++],s=d[w++];var _=Ns(a-i),x=Ns(s-r);if(_>h||x>f){if(v){if(y+(K=l[m++])>u){var E=(u-y)/K;t.lineTo(i*(1-E)+a*E,r*(1-E)+s*E);break t}y+=K}t.lineTo(a,s),i=a,r=s,C=0}else{var T=_*_+x*x;T>C&&(c=a,p=s,C=T)}break;case xs.C:var D=d[w++],R=d[w++],O=d[w++],M=d[w++],A=d[w++],I=d[w++];if(v){if(y+(K=l[m++])>u){qo(i,D,O,A,E=(u-y)/K,Es),qo(r,R,M,I,E,Ts),t.bezierCurveTo(Es[1],Ts[1],Es[2],Ts[2],Es[3],Ts[3]);break t}y+=K}t.bezierCurveTo(D,R,O,M,A,I),i=A,r=I;break;case xs.Q:if(D=d[w++],R=d[w++],O=d[w++],M=d[w++],v){if(y+(K=l[m++])>u){on(i,D,O,E=(u-y)/K,Es),on(r,R,M,E,Ts),t.quadraticCurveTo(Es[1],Ts[1],Es[2],Ts[2]);break t}y+=K}t.quadraticCurveTo(D,R,O,M),i=O,r=M;break;case xs.A:var P=d[w++],L=d[w++],N=d[w++],F=d[w++],k=d[w++],G=d[w++],V=d[w++],H=!d[w++],B=N>F?N:F,W=Ns(N-F)>.001,z=k+G,j=!1;if(v&&(y+(K=l[m++])>u&&(z=k+G*(u-y)/K,j=!0),y+=K),W&&t.ellipse?t.ellipse(P,L,N,F,V,k,z,H):t.arc(P,L,B,k,z,H),j)break t;b&&(o=Ps(k)*N+P,n=Ls(k)*F+L),i=Ps(z)*N+P,r=Ls(z)*F+L;break;case xs.R:o=i=d[w],n=r=d[w+1],a=d[w++],s=d[w++];var U=d[w++],$=d[w++];if(v){if(y+(K=l[m++])>u){var Y=u-y;t.moveTo(a,s),t.lineTo(a+As(Y,U),s),(Y-=U)>0&&t.lineTo(a+U,s+As(Y,$)),(Y-=$)>0&&t.lineTo(a+Is(U-Y,0),s+$),(Y-=U)>0&&t.lineTo(a,s+Is($-Y,0));break t}y+=K}t.rect(a,s,U,$);break;case xs.Z:if(v){var K;if(y+(K=l[m++])>u){E=(u-y)/K,t.lineTo(i*(1-E)+o*E,r*(1-E)+n*E);break t}y+=K}t.closePath(),i=o,r=n}}},t.prototype.clone=function(){var e=new t,o=this.data;return e.data=o.slice?o.slice():Array.prototype.slice.call(o),e._len=this._len,e},t.CMD=xs,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const zs=Ws;function js(t,e,o,n,i,r,a){if(0===i)return!1;var s,l=i;if(a>e+l&&a>n+l||at+l&&r>o+l||re+p&&c>n+p&&c>r+p&&c>s+p||ct+p&&u>o+p&&u>i+p&&u>a+p||ue+u&&l>n+u&&l>r+u||lt+u&&s>o+u&&s>i+u||so||c+ui&&(i+=Xs);var d=Math.atan2(l,s);return d<0&&(d+=Xs),d>=n&&d<=i||d+Xs>=n&&d+Xs<=i}function Zs(t,e,o,n,i,r){if(r>e&&r>n||ri?s:0}var Qs=zs.CMD,Js=2*Math.PI,tl=[-1,-1,-1],el=[-1,-1];function ol(t,e,o,n,i,r,a,s,l,u){if(u>e&&u>n&&u>r&&u>s||u1&&(void 0,c=el[0],el[0]=el[1],el[1]=c),f=$o(e,n,r,s,el[0]),h>1&&(g=$o(e,n,r,s,el[1]))),2===h?ye&&s>n&&s>r||s=0&&c<=1&&(i[l++]=c);else{var u=a*a-4*r*s;if(jo(u))(c=-a/(2*r))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,p=Fo(u),d=(-a-p)/(2*r);(c=(-a+p)/(2*r))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,n,r,s,tl);if(0===l)return 0;var u=en(e,n,r);if(u>=0&&u<=1){for(var c=0,p=Jo(e,n,r,u),d=0;do||s<-o)return 0;var l=Math.sqrt(o*o-s*s);tl[0]=-l,tl[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Js-1e-4){n=0,i=Js;var c=r?1:-1;return a>=tl[0]+t&&a<=tl[1]+t?c:0}if(n>i){var p=n;n=i,i=p}n<0&&(n+=Js,i+=Js);for(var d=0,h=0;h<2;h++){var f=tl[h];if(f+t>a){var g=Math.atan2(s,f);c=r?1:-1,g<0&&(g=Js+g),(g>=n&&g<=i||g+Js>=n&&g+Js<=i)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),d+=c)}}return d}function rl(t,e,o,n,i){for(var r,a,s,l,u=t.data,c=t.len(),p=0,d=0,h=0,f=0,g=0,v=0;v1&&(o||(p+=Zs(d,h,f,g,n,i))),m&&(f=d=u[v],g=h=u[v+1]),y){case Qs.M:d=f=u[v++],h=g=u[v++];break;case Qs.L:if(o){if(js(d,h,u[v],u[v+1],e,n,i))return!0}else p+=Zs(d,h,u[v],u[v+1],n,i)||0;d=u[v++],h=u[v++];break;case Qs.C:if(o){if(Us(d,h,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],e,n,i))return!0}else p+=ol(d,h,u[v++],u[v++],u[v++],u[v++],u[v],u[v+1],n,i)||0;d=u[v++],h=u[v++];break;case Qs.Q:if(o){if($s(d,h,u[v++],u[v++],u[v],u[v+1],e,n,i))return!0}else p+=nl(d,h,u[v++],u[v++],u[v],u[v+1],n,i)||0;d=u[v++],h=u[v++];break;case Qs.A:var C=u[v++],w=u[v++],S=u[v++],b=u[v++],_=u[v++],x=u[v++];v+=1;var E=!!(1-u[v++]);r=Math.cos(_)*S+C,a=Math.sin(_)*b+w,m?(f=r,g=a):p+=Zs(d,h,r,a,n,i);var T=(n-C)*b/S+C;if(o){if(qs(C,w,b,_,_+x,E,e,T,i))return!0}else p+=il(C,w,b,_,_+x,E,T,i);d=Math.cos(_+x)*S+C,h=Math.sin(_+x)*b+w;break;case Qs.R:if(f=d=u[v++],g=h=u[v++],r=f+u[v++],a=g+u[v++],o){if(js(f,g,r,g,e,n,i)||js(r,g,r,a,e,n,i)||js(r,a,f,a,e,n,i)||js(f,a,f,g,e,n,i))return!0}else p+=Zs(r,g,r,a,n,i),p+=Zs(f,a,f,g,n,i);break;case Qs.Z:if(o){if(js(d,h,f,g,e,n,i))return!0}else p+=Zs(d,h,f,g,n,i);d=f,h=g}}return o||(s=h,l=g,Math.abs(s-l)<1e-4)||(p+=Zs(d,h,f,g,n,i)||0),0!==p}var al=K({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},es),sl={style:K({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},os.style)},ll=$i.concat(["invisible","culling","z","z2","zlevel","parent"]),ul=function(t){function e(e){return t.call(this,e)||this}var o;return m(e,t),e.prototype.update=function(){var o=this;t.prototype.update.call(this);var n=this.style;if(n.decal){var i=this._decalEl=this._decalEl||new e;i.buildPath===e.prototype.buildPath&&(i.buildPath=function(t){o.buildPath(t,o.shape)}),i.silent=!0;var r=i.style;for(var a in n)r[a]!==n[a]&&(r[a]=n[a]);r.fill=n.fill?n.decal:null,r.decal=null,r.shadowColor=null,n.strokeFirst&&(r.stroke=null);for(var s=0;s.5?ki:e>.2?"#eee":Gi}if(t)return Gi}return ki},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(ct(e)){var o=this.__zr;if(!(!o||!o.isDarkMode())==Fn(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,o){},e.prototype.pathUpdated=function(){this.__dirty&=~To},e.prototype.getUpdatedPathProxy=function(t){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,t),this.path},e.prototype.createPathProxy=function(){this.path=new zs(!1)},e.prototype.hasStroke=function(){var t=this.style,e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.getBoundingRect=function(){var t=this._rect,e=this.style,o=!t;if(o){var n=!1;this.path||(n=!0,this.createPathProxy());var i=this.path;(n||this.__dirty&To)&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),t=i.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var r=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||o){r.copy(t);var a=e.strokeNoScale?this.getLineScale():1,s=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(r.width+=s/a,r.height+=s/a,r.x-=s/a/2,r.y-=s/a/2)}return r}return t},e.prototype.contain=function(t,e){var o=this.transformCoordToLocal(t,e),n=this.getBoundingRect(),i=this.style;if(t=o[0],e=o[1],n.contain(t,e)){var r=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,o,n){return rl(t,e,!0,o,n)}(r,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,o){return rl(t,0,!1,e,o)}(r,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=To,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},e.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},e.prototype.animateShape=function(t){return this.animate("shape",t)},e.prototype.updateDuringAnimation=function(t){"style"===t?this.dirtyStyle():"shape"===t?this.dirtyShape():this.markRedraw()},e.prototype.attrKV=function(e,o){"shape"===e?this.setShape(o):t.prototype.attrKV.call(this,e,o)},e.prototype.setShape=function(t,e){var o=this.shape;return o||(o=this.shape={}),"string"==typeof t?o[t]=e:Y(o,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&To)},e.prototype.createStyle=function(t){return Ft(al,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var o=this._normalState;e.shape&&!o.shape&&(o.shape=Y({},this.shape))},e.prototype._applyStateObj=function(e,o,n,i,r,a){t.prototype._applyStateObj.call(this,e,o,n,i,r,a);var s,l=!(o&&i);if(o&&o.shape?r?i?s=o.shape:(s=Y({},n.shape),Y(s,o.shape)):(s=Y({},i?this.shape:n.shape),Y(s,o.shape)):l&&(s=n.shape),s)if(r){this.shape=Y({},this.shape);for(var u={},c=rt(s),p=0;p0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Ft(pl,t)},e.prototype.setBoundingRect=function(t){this._rect=t},e.prototype.getBoundingRect=function(){var t=this.style;if(!this._rect){var e=t.text;null!=e?e+="":e="";var o=Qi(e,t.font,t.textAlign,t.textBaseline);if(o.x+=t.x||0,o.y+=t.y||0,this.hasStroke()){var n=t.lineWidth;o.x-=n/2,o.y-=n/2,o.width+=n,o.height+=n}this._rect=o}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ls);dl.prototype.type="tspan";const hl=dl;var fl=K({x:0,y:0},es),gl={style:K({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},os.style)},vl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.createStyle=function(t){return Ft(fl,t)},e.prototype._getSize=function(t){var e=this.style,o=e[t];if(null!=o)return o;var n,i=(n=e.image)&&"string"!=typeof n&&n.width&&n.height?e.image:this.__image;if(!i)return 0;var r="width"===t?"height":"width",a=e[r];return null==a?i[t]:i[t]/i[r]*a},e.prototype.getWidth=function(){return this._getSize("width")},e.prototype.getHeight=function(){return this._getSize("height")},e.prototype.getAnimationStyleProps=function(){return gl},e.prototype.getBoundingRect=function(){var t=this.style;return this._rect||(this._rect=new ao(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ls);vl.prototype.type="image";const yl=vl;var ml=Math.round;function Cl(t,e,o){if(e){var n=e.x1,i=e.x2,r=e.y1,a=e.y2;t.x1=n,t.x2=i,t.y1=r,t.y2=a;var s=o&&o.lineWidth;return s?(ml(2*n)===ml(2*i)&&(t.x1=t.x2=Sl(n,s,!0)),ml(2*r)===ml(2*a)&&(t.y1=t.y2=Sl(r,s,!0)),t):t}}function wl(t,e,o){if(e){var n=e.x,i=e.y,r=e.width,a=e.height;t.x=n,t.y=i,t.width=r,t.height=a;var s=o&&o.lineWidth;return s?(t.x=Sl(n,s,!0),t.y=Sl(i,s,!0),t.width=Math.max(Sl(n+r,s,!1)-t.x,0===r?0:1),t.height=Math.max(Sl(i+a,s,!1)-t.y,0===a?0:1),t):t}}function Sl(t,e,o){if(!e)return t;var n=ml(2*t);return(n+ml(e))%2==0?n/2:(n+(o?1:-1))/2}var bl=function(){this.x=0,this.y=0,this.width=0,this.height=0},_l={},xl=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new bl},e.prototype.buildPath=function(t,e){var o,n,i,r;if(this.subPixelOptimize){var a=wl(_l,e,this.style);o=a.x,n=a.y,i=a.width,r=a.height,a.r=e.r,e=a}else o=e.x,n=e.y,i=e.width,r=e.height;e.r?function(t,e){var o,n,i,r,a,s=e.x,l=e.y,u=e.width,c=e.height,p=e.r;u<0&&(s+=u,u=-u),c<0&&(l+=c,c=-c),"number"==typeof p?o=n=i=r=p:p instanceof Array?1===p.length?o=n=i=r=p[0]:2===p.length?(o=i=p[0],n=r=p[1]):3===p.length?(o=p[0],n=r=p[1],i=p[2]):(o=p[0],n=p[1],i=p[2],r=p[3]):o=n=i=r=0,o+n>u&&(o*=u/(a=o+n),n*=u/a),i+r>u&&(i*=u/(a=i+r),r*=u/a),n+i>c&&(n*=c/(a=n+i),i*=c/a),o+r>c&&(o*=c/(a=o+r),r*=c/a),t.moveTo(s+o,l),t.lineTo(s+u-n,l),0!==n&&t.arc(s+u-n,l+n,n,-Math.PI/2,0),t.lineTo(s+u,l+c-i),0!==i&&t.arc(s+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(s+r,l+c),0!==r&&t.arc(s+r,l+c-r,r,Math.PI/2,Math.PI),t.lineTo(s,l+o),0!==o&&t.arc(s+o,l+o,o,Math.PI,1.5*Math.PI)}(t,e):t.rect(o,n,i,r)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(cl);xl.prototype.type="rect";const El=xl;var Tl={fill:"#000"},Dl={style:K({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},os.style)},Rl=function(t){function e(e){var o=t.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=Tl,o.attr(e),o}return m(e,t),e.prototype.childrenRef=function(){return this._children},e.prototype.update=function(){t.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;eh&&c){var f=Math.floor(h/l);o=o.slice(0,f)}if(t&&a&&null!=p)for(var g=ja(p,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,E=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),D=n.calculatedLineHeight,R=0;Rl&&qa(o,t.substring(l,u),e,s),qa(o,n[2],e,s,n[1]),l=Wa.lastIndex}lr){S>0?(m.tokens=m.tokens.slice(0,S),v(m,w,C),o.lines=o.lines.slice(0,y+1)):o.lines=o.lines.slice(0,y);break t}var D=b.width,R=null==D||"auto"===D;if("string"==typeof D&&"%"===D.charAt(D.length-1))I.percentWidth=D,c.push(I),I.contentWidth=qi(I.text,E);else{if(R){var O=b.backgroundColor,M=O&&O.image;M&&Ba(M=Ga(M))&&(I.width=Math.max(I.width,M.width*T/M.height))}var A=f&&null!=i?i-w:null;null!=A&&A=0&&"right"===(D=C[T]).align;)this._placeToken(D,t,S,f,E,"right",v),b-=D.width,E-=D.width,T--;for(x+=(o-(x-h)-(g-E)-b)/2;_<=T;)D=C[_],this._placeToken(D,t,S,f,x+D.width/2,"center",v),x+=D.width,_++;f+=S}},e.prototype._placeToken=function(t,e,o,n,i,r,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=n+o/2;"top"===l?u=n+t.height/2:"bottom"===l&&(u=n+o-t.height/2),!t.isLineHolder&&Hl(s)&&this._renderBackground(s,e,"right"===r?i-t.width:"center"===r?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!s.backgroundColor,p=t.textPadding;p&&(i=Gl(i,r,p),u-=t.height/2-p[0]-t.innerHeight/2);var d=this._getOrCreateChild(hl),h=d.createStyle();d.useStyle(h);var f=this._defaultStyle,g=!1,v=0,y=kl("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=Fl("stroke"in s?s.stroke:"stroke"in e?e.stroke:c||a||f.autoStroke&&!g?null:(v=2,f.stroke)),C=s.textShadowBlur>0||e.textShadowBlur>0;h.text=t.text,h.x=i,h.y=u,C&&(h.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,h.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",h.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,h.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),h.textAlign=r,h.textBaseline="middle",h.font=t.font||T,h.opacity=_t(s.opacity,e.opacity,1),Pl(h,s),m&&(h.lineWidth=_t(s.lineWidth,e.lineWidth,v),h.lineDash=bt(s.lineDash,e.lineDash),h.lineDashOffset=e.lineDashOffset||0,h.stroke=m),y&&(h.fill=y);var w=t.contentWidth,S=t.contentHeight;d.setBoundingRect(new ao(Ji(h.x,w,h.textAlign),tr(h.y,S,h.textBaseline),w,S))},e.prototype._renderBackground=function(t,e,o,n,i,r){var a,s,l,u=t.backgroundColor,c=t.borderWidth,p=t.borderColor,d=u&&u.image,h=u&&!d,f=t.borderRadius,g=this;if(h||t.lineHeight||c&&p){(a=this._getOrCreateChild(El)).useStyle(a.createStyle()),a.style.fill=null;var v=a.shape;v.x=o,v.y=n,v.width=i,v.height=r,v.r=f,a.dirtyShape()}if(h)(l=a.style).fill=u||null,l.fillOpacity=bt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(yl)).onload=function(){g.dirtyStyle()};var y=s.style;y.image=u.image,y.x=o,y.y=n,y.width=i,y.height=r}c&&p&&((l=a.style).lineWidth=c,l.stroke=p,l.strokeOpacity=bt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,a.strokeContainThreshold=0,a.hasFill()&&a.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(a||s).style;m.shadowBlur=t.shadowBlur||0,m.shadowColor=t.shadowColor||"transparent",m.shadowOffsetX=t.shadowOffsetX||0,m.shadowOffsetY=t.shadowOffsetY||0,m.opacity=_t(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Ll(t)&&(e=[t.fontStyle,t.fontWeight,Il(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Dt(e)||t.textFont||t.font},e}(ls),Ol={left:!0,right:1,center:1},Ml={top:1,bottom:1,middle:1},Al=["fontStyle","fontWeight","fontSize","fontFamily"];function Il(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?x+"px":t+"px":t}function Pl(t,e){for(var o=0;o=0,r=!1;if(t instanceof cl){var a=$l(t),s=i&&a.selectFill||a.normalFill,l=i&&a.selectStroke||a.normalStroke;if(au(s)||au(l)){var u=(n=n||{}).style||{};"inherit"===u.fill?(r=!0,n=Y({},n),(u=Y({},u)).fill=s):!au(u.fill)&&au(s)?(r=!0,n=Y({},n),(u=Y({},u)).fill=lu(s)):!au(u.stroke)&&au(l)&&(r||(n=Y({},n),u=Y({},u)),u.stroke=lu(l)),n.style=u}}if(n&&null==n.z2){r||(n=Y({},n));var c=t.z2EmphasisLift;n.z2=t.z2+(null!=c?c:Jl)}return n}(this,0,e,o);if("blur"===t)return function(t,e,o){var n=q(t.currentStates,e)>=0,i=t.style.opacity,r=n?null:function(t,e,o,n){for(var i=t.style,r={},a=0;a0){var r={dataIndex:i,seriesIndex:t.seriesIndex};null!=n&&(r.dataType=n),e.push(r)}}))})),e}function Fu(t,e,o){Wu(t,!0),yu(t,wu),Gu(t,e,o)}function ku(t,e,o,n){n?function(t){Wu(t,!1)}(t):Fu(t,e,o)}function Gu(t,e,o){var n=Wl(t);null!=e?(n.focus=e,n.blurScope=o):n.focus&&(n.focus=null)}var Vu=["emphasis","blur","select"],Hu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Bu(t,e,o,n){o=o||"itemStyle";for(var i=0;i0){var p={duration:c.duration,delay:c.delay||0,easing:c.easing,done:r,force:!!r||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(o,p):e.animateTo(o,p)}else e.stopAnimation(),!l&&e.attr(o),a&&a(1),r&&r()}function Xu(t,e,o,n,i,r){Ku("update",t,e,o,n,i,r)}function qu(t,e,o,n,i,r){Ku("enter",t,e,o,n,i,r)}function Zu(t){if(!t.__zr)return!0;for(var e=0;e-1?Nc:kc;function Bc(t,e){t=t.toUpperCase(),Vc[t]=new Ac(e),Gc[t]=e}function Wc(t){return Vc[t]}Bc(Fc,{time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}}),Bc(Nc,{time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}});var zc=1e3,jc=6e4,Uc=36e5,$c=864e5,Yc=31536e6,Kc={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},Xc="{yyyy}-{MM}-{dd}",qc={year:"{yyyy}",month:"{yyyy}-{MM}",day:Xc,hour:Xc+" "+Kc.hour,minute:Xc+" "+Kc.minute,second:Xc+" "+Kc.second,millisecond:Kc.none},Zc=["year","month","day","hour","minute","second","millisecond"],Qc=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Jc(t,e){return"0000".substr(0,e-(t+="").length)+t}function tp(t){switch(t){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return t}}function ep(t,e,o,n){var i=Wr(t),r=i[ip(o)](),a=i[rp(o)]()+1,s=Math.floor((a-1)/3)+1,l=i[ap(o)](),u=i["get"+(o?"UTC":"")+"Day"](),c=i[sp(o)](),p=(c-1)%12+1,d=i[lp(o)](),h=i[up(o)](),f=i[cp(o)](),g=(n instanceof Ac?n:Wc(n||Hc)||Vc[kc]).getModel("time"),v=g.get("month"),y=g.get("monthAbbr"),m=g.get("dayOfWeek"),C=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,r+"").replace(/{yy}/g,r%100+"").replace(/{Q}/g,s+"").replace(/{MMMM}/g,v[a-1]).replace(/{MMM}/g,y[a-1]).replace(/{MM}/g,Jc(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Jc(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,C[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Jc(c,2)).replace(/{H}/g,c+"").replace(/{hh}/g,Jc(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Jc(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Jc(h,2)).replace(/{s}/g,h+"").replace(/{SSS}/g,Jc(f,3)).replace(/{S}/g,f+"")}function op(t,e){var o=Wr(t),n=o[rp(e)]()+1,i=o[ap(e)](),r=o[sp(e)](),a=o[lp(e)](),s=o[up(e)](),l=0===o[cp(e)](),u=l&&0===s,c=u&&0===a,p=c&&0===r,d=p&&1===i;return d&&1===n?"year":d?"month":p?"day":c?"hour":u?"minute":l?"second":"millisecond"}function np(t,e,o){var n=dt(t)?Wr(t):t;switch(e=e||op(t,o)){case"year":return n[ip(o)]();case"half-year":return n[rp(o)]()>=6?1:0;case"quarter":return Math.floor((n[rp(o)]()+1)/4);case"month":return n[rp(o)]();case"day":return n[ap(o)]();case"half-day":return n[sp(o)]()/24;case"hour":return n[sp(o)]();case"minute":return n[lp(o)]();case"second":return n[up(o)]();case"millisecond":return n[cp(o)]()}}function ip(t){return t?"getUTCFullYear":"getFullYear"}function rp(t){return t?"getUTCMonth":"getMonth"}function ap(t){return t?"getUTCDate":"getDate"}function sp(t){return t?"getUTCHours":"getHours"}function lp(t){return t?"getUTCMinutes":"getMinutes"}function up(t){return t?"getUTCSeconds":"getSeconds"}function cp(t){return t?"getUTCMilliseconds":"getMilliseconds"}function pp(t){return t?"setUTCFullYear":"setFullYear"}function dp(t){return t?"setUTCMonth":"setMonth"}function hp(t){return t?"setUTCDate":"setDate"}function fp(t){return t?"setUTCHours":"setHours"}function gp(t){return t?"setUTCMinutes":"setMinutes"}function vp(t){return t?"setUTCSeconds":"setSeconds"}function yp(t){return t?"setUTCMilliseconds":"setMilliseconds"}function mp(t){if(!Xr(t))return ct(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function Cp(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,(function(t,e){return e.toUpperCase()})),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t}var wp=Et;function Sp(t,e,o){function n(t){return t&&Dt(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var r="time"===e,a=t instanceof Date;if(r||a){var s=r?Wr(t):t;if(!isNaN(+s))return ep(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",o);if(a)return"-"}if("ordinal"===e)return pt(t)?n(t):dt(t)&&i(t)?t+"":"-";var l=Kr(t);return i(l)?mp(l):pt(t)?n(t):"boolean"==typeof t?t+"":"-"}var bp=["a","b","c","d","e","f","g"],_p=function(t,e){return"{"+t+(null==e?"":e)+"}"};function xp(t,e,o){lt(e)||(e=[e]);var n=e.length;if(!n)return"";for(var i=e[0].$vars||[],r=0;r':'':{renderMode:r,content:"{"+(o.markerId||"markerX")+"|} ",style:"subItem"===i?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}:""}function Tp(t,e,o){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var n=Wr(e),i=o?"getUTC":"get",r=n[i+"FullYear"](),a=n[i+"Month"]()+1,s=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),p=n[i+"Milliseconds"]();return t.replace("MM",Jc(a,2)).replace("M",a).replace("yyyy",r).replace("yy",Jc(r%100+"",2)).replace("dd",Jc(s,2)).replace("d",s).replace("hh",Jc(l,2)).replace("h",l).replace("mm",Jc(u,2)).replace("m",u).replace("ss",Jc(c,2)).replace("s",c).replace("SSS",Jc(p,3))}function Dp(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Rp(t,e){return e=e||"transparent",ct(t)?t:ht(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Op(t,e){if("_blank"===e||"blank"===e){var o=window.open();o.opener=null,o.location.href=t}else window.open(t,e)}var Mp=tt,Ap=["left","right","top","bottom","width","height"],Ip=[["width","left","right"],["height","top","bottom"]];function Pp(t,e,o,n,i){var r=0,a=0;null==n&&(n=1/0),null==i&&(i=1/0);var s=0;e.eachChild((function(l,u){var c,p,d=l.getBoundingRect(),h=e.childAt(u+1),f=h&&h.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(c=r+g)>n||l.newline?(r=0,c=g,a+=s+o,s=d.height):s=Math.max(s,d.height)}else{var v=d.height+(f?-f.y+d.y:0);(p=a+v)>i||l.newline?(r+=s+o,a=0,p=v,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=r,l.y=a,l.markRedraw(),"horizontal"===t?r=c+o:a=p+o)}))}var Lp=Pp;function Np(t,e,o){o=wp(o||0);var n=e.width,i=e.height,r=Or(t.left,n),a=Or(t.top,i),s=Or(t.right,n),l=Or(t.bottom,i),u=Or(t.width,n),c=Or(t.height,i),p=o[2]+o[0],d=o[1]+o[3],h=t.aspect;switch(isNaN(u)&&(u=n-s-d-r),isNaN(c)&&(c=i-l-p-a),null!=h&&(isNaN(u)&&isNaN(c)&&(h>n/i?u=.8*n:c=.8*i),isNaN(u)&&(u=h*c),isNaN(c)&&(c=u/h)),isNaN(r)&&(r=n-s-u-d),isNaN(a)&&(a=i-l-c-p),t.left||t.right){case"center":r=n/2-u/2-o[3];break;case"right":r=n-u-d}switch(t.top||t.bottom){case"middle":case"center":a=i/2-c/2-o[0];break;case"bottom":a=i-c-p}r=r||0,a=a||0,isNaN(u)&&(u=n-d-r-(s||0)),isNaN(c)&&(c=i-p-a-(l||0));var f=new ao(r+o[3],a+o[0],u,c);return f.margin=o,f}function Fp(t,e,o,n,i,r){var a,s=!i||!i.hv||i.hv[0],l=!i||!i.hv||i.hv[1],u=i&&i.boundingMode||"all";if((r=r||t).x=t.x,r.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new ao(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(a=a.clone()).applyTransform(c)}var p=Np(K({width:a.width,height:a.height},e),o,n),d=s?p.x-a.x:0,h=l?p.y-a.y:0;return"raw"===u?(r.x=d,r.y=h):(r.x+=d,r.y+=h),r===t&&t.markRedraw(),!0}function kp(t){var e=t.layoutMode||t.constructor.layoutMode;return ht(e)?e:e?{type:e}:null}function Gp(t,e,o){var n=o&&o.ignoreSize;!lt(n)&&(n=[n,n]);var i=a(Ip[0],0),r=a(Ip[1],1);function a(o,i){var r={},a=0,u={},c=0;if(Mp(o,(function(e){u[e]=t[e]})),Mp(o,(function(t){s(e,t)&&(r[t]=u[t]=e[t]),l(r,t)&&a++,l(u,t)&&c++})),n[i])return l(e,o[1])?u[o[2]]=null:l(e,o[2])&&(u[o[1]]=null),u;if(2!==c&&a){if(a>=2)return r;for(var p=0;p=0;a--)r=U(r,o[a],!0);e.defaultOption=r}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var o=t+"Index",n=t+"Id";return wa(this.ecModel,t,{index:this.get(o,!0),id:this.get(n,!0)},e)},e.prototype.getBoxLayoutParams=function(){var t=this;return{left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")}},e.prototype.getZLevelKey=function(){return""},e.prototype.setZLevel=function(t){this.option.zlevel=t},e.protoInitialize=function(){var t=e.prototype;t.type="component",t.id="",t.name="",t.mainType="",t.subType="",t.componentIndex=0}(),e}(Ac);Oa(Wp,Ac),Pa(Wp),function(t){var e={};t.registerSubTypeDefaulter=function(t,o){var n=Da(t);e[n.main]=o},t.determineSubType=function(o,n){var i=n.type;if(!i){var r=Da(o).main;t.hasSubTypes(o)&&e[r]&&(i=e[r](n))}return i}}(Wp),function(t,e){function o(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,n,i){if(t.length){var r=function(t){var e={},n=[];return tt(t,(function(i){var r,a,s=o(e,i),l=function(t,e){var o=[];return tt(t,(function(t){q(e,t)>=0&&o.push(t)})),o}(s.originalDeps=(r=i,a=[],tt(Wp.getClassesByMainType(r),(function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])})),a=et(a,(function(t){return Da(t).main})),"dataset"!==r&&q(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&n.push(i),tt(l,(function(t){q(s.predecessor,t)<0&&s.predecessor.push(t);var n=o(e,t);q(n.successor,t)<0&&n.successor.push(i)}))})),{graph:e,noEntryList:n}}(e),a=r.graph,s=r.noEntryList,l={};for(tt(t,(function(t){l[t]=!0}));s.length;){var u=s.pop(),c=a[u],p=!!l[u];p&&(n.call(i,u,c.originalDeps.slice()),delete l[u]),tt(c.successor,p?h:d)}tt(l,(function(){throw new Error("")}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function h(t){l[t]=!0,d(t)}}}(Wp);const zp=Wp;var jp="";"undefined"!=typeof navigator&&(jp=navigator.platform||"");var Up="rgba(0, 0, 0, 0.2)";const $p={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:Up,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:Up,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:Up,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:Up,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:Up,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:Up,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:jp.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Yp=Lt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Kp="original",Xp="arrayRows",qp="objectRows",Zp="keyedColumns",Qp="typedArray",Jp="unknown",td="column",ed="row",od={Must:1,Might:2,Not:3},nd=fa();function id(t,e,o){var n={},i=ad(e);if(!i||!t)return n;var r,a,s=[],l=[],u=e.ecModel,c=nd(u).datasetMap,p=i.uid+"_"+o.seriesLayoutBy;tt(t=t.slice(),(function(e,o){var i=ht(e)?e:t[o]={name:e};"ordinal"===i.type&&null==r&&(r=o,a=f(i)),n[i.name]=[]}));var d=c.get(p)||c.set(p,{categoryWayDim:a,valueWayDim:0});function h(t,e,o){for(var n=0;ne)return t[n];return t[o-1]}(n,a):o;if((c=c||o)&&c.length){var p=c[l];return i&&(u[i]=p),s.paletteIdx=(l+1)%c.length,p}}var md="\0_ec_inner",Cd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,o,n,i,r){n=n||{},this.option=null,this._theme=new Ac(n),this._locale=new Ac(i),this._optionManager=r},e.prototype.setOption=function(t,e,o){var n=bd(e);this._optionManager.setOption(t,o,n),this._resetOption(null,n)},e.prototype.resetOption=function(t,e){return this._resetOption(t,bd(e))},e.prototype._resetOption=function(t,e){var o=!1,n=this._optionManager;if(!t||"recreate"===t){var i=n.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(i,e)):pd(this,i),o=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var r=n.getTimelineOption(this);r&&(o=!0,this._mergeOption(r,e))}if(!t||"recreate"===t||"media"===t){var a=n.getMediaOption(this);a.length&&tt(a,(function(t){o=!0,this._mergeOption(t,e)}),this)}return o},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var o=this.option,n=this._componentsMap,i=this._componentsCount,r=[],a=Lt(),s=e&&e.replaceMergeMainTypeMap;nd(this).datasetMap=Lt(),tt(t,(function(t,e){null!=t&&(zp.hasClass(e)?e&&(r.push(e),a.set(e,!0)):o[e]=null==o[e]?j(t):U(o[e],t,!0))})),s&&s.each((function(t,e){zp.hasClass(e)&&!a.get(e)&&(r.push(e),a.set(e,!0))})),zp.topologicalTravel(r,zp.getAllClassMainTypes(),(function(e){var r=function(t,e,o){var n=dd.get(e);if(!n)return o;var i=n(t);return i?o.concat(i):o}(this,e,oa(t[e])),a=n.get(e),l=sa(a,r,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,o){tt(t,(function(t){var n=t.newOption;ht(n)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,o,n){return e.type?e.type:o?o.subType:n.determineSubType(t,e)}(e,n,t.existing,o))}))})(l,e,zp),o[e]=null,n.set(e,null),i.set(e,0);var u,c=[],p=[],d=0;tt(l,(function(t,o){var n=t.existing,i=t.newOption;if(i){var r="series"===e,a=zp.getClass(e,t.keyInfo.subType,!r);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(n&&n.constructor===a)n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1);else{var s=Y({componentIndex:o},t.keyInfo);Y(n=new a(i,this,this,s),s),t.brandNew&&(n.__requireNewView=!0),n.init(i,this,this),n.optionUpdated(null,!0)}}else n&&(n.mergeOption({},this),n.optionUpdated({},!1));n?(c.push(n.option),p.push(n),d++):(c.push(void 0),p.push(void 0))}),this),o[e]=c,n.set(e,p),i.set(e,d),"series"===e&&ud(this)}),this),this._seriesIndices||ud(this)},e.prototype.getOption=function(){var t=j(this.option);return tt(t,(function(e,o){if(zp.hasClass(o)){for(var n=oa(e),i=n.length,r=!1,a=i-1;a>=0;a--)n[a]&&!da(n[a])?r=!0:(n[a]=null,!r&&i--);n.length=i,t[o]=n}})),delete t[md],t},e.prototype.getTheme=function(){return this._theme},e.prototype.getLocaleModel=function(){return this._locale},e.prototype.setUpdatePayload=function(t){this._payload=t},e.prototype.getUpdatePayload=function(){return this._payload},e.prototype.getComponent=function(t,e){var o=this._componentsMap.get(t);if(o){var n=o[e||0];if(n)return n;if(null==e)for(var i=0;i=e:"max"===o?t<=e:t===e})(n[a],t,r)||(i=!1)}})),i}const Id=Md;var Pd=tt,Ld=ht,Nd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Fd(t){var e=t&&t.itemStyle;if(e)for(var o=0,n=Nd.length;o=0;g--){var v=t[g];if(s||(d=v.data.rawIndexOf(v.stackedByDimension,p)),d>=0){var y=v.data.getByRawIndex(v.stackResultDimension,d);if("all"===l||"positive"===l&&y>0||"negative"===l&&y<0||"samesign"===l&&h>=0&&y>0||"samesign"===l&&h<=0&&y<0){h=kr(h,y),f=y;break}}}return n[0]=h,n[1]=f,n}))}))}var Jd,th,eh,oh,nh,ih=function(t){this.data=t.data||(t.sourceFormat===Zp?{}:[]),this.sourceFormat=t.sourceFormat||Jp,this.seriesLayoutBy=t.seriesLayoutBy||td,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var o=0;ou&&(u=h)}s[0]=l,s[1]=u}},n=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(s=r.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return _h(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,o){},t}();function Th(t){var e,o;return ht(t)?t.type&&(o=t):e=t,{text:e,frag:o}}function Dh(t){return new Rh(t)}var Rh=function(){function t(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return t.prototype.perform=function(t){var e,o=this._upstream,n=t&&t.skip;if(this._dirty&&o){var i=this.context;i.data=i.outputData=o.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!n&&(e=this._plan(this.context));var r,a=c(this._modBy),s=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,r=this._doReset(n)),this._modBy=l,this._modDataCount=u;var p=t&&t.step;if(this._dueEnd=o?o._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,h=Math.min(null!=p?this._dueIndex+p:1/0,this._dueEnd);if(!n&&(r||d1&&n>0?s:a}};return r;function a(){return e=t?null:re},gte:function(t,e){return t>=e}},Nh=function(){function t(t,e){dt(e)||Mh(""),this._opFn=Lh[t],this._rvalFloat=Kr(e)}return t.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(Kr(t),this._rvalFloat)},t}(),Fh=function(){function t(t,e){var o="desc"===t;this._resultLT=o?1:-1,null==e&&(e=o?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var o=dt(t)?t:Kr(t),n=dt(e)?e:Kr(e),i=isNaN(o),r=isNaN(n);if(i&&(o=this._incomparable),r&&(n=this._incomparable),i&&r){var a=ct(t),s=ct(e);a&&(o=s?t:0),s&&(n=a?e:0)}return on?-this._resultLT:0},t}(),kh=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Kr(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var o=typeof t;o===this._rvalTypeof||"number"!==o&&"number"!==this._rvalTypeof||(e=Kr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Gh(t,e){return"eq"===t||"ne"===t?new kh("eq"===t,e):Gt(Lh,t)?new Nh(t,e):null}var Vh=function(){function t(){}return t.prototype.getRawData=function(){throw new Error("not supported")},t.prototype.getRawDataItem=function(t){throw new Error("not supported")},t.prototype.cloneRawData=function(){},t.prototype.getDimensionInfo=function(t){},t.prototype.cloneAllDimensionInfo=function(){},t.prototype.count=function(){},t.prototype.retrieveValue=function(t,e){},t.prototype.retrieveValueFromItem=function(t,e){},t.prototype.convertValue=function(t,e){return Ah(t,e)},t}();function Hh(t){return $h(t.sourceFormat)||Mh(""),t.data}function Bh(t){var e=t.sourceFormat,o=t.data;if($h(e)||Mh(""),e===Xp){for(var n=[],i=0,r=o.length;i65535?Xh:qh}function ef(t,e,o,n,i){var r=Jh[o||"float"];if(i){var a=t[e],s=a&&a.length;if(s!==n){for(var l=new r(n),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,o){for(var n=this._provider,i=this._chunks,r=this._dimensions,a=r.length,s=this._rawExtent,l=et(r,(function(t){return t.property})),u=0;uv[1]&&(v[1]=g)}}!n.persistent&&n.clean&&n.clean(),this._rawCount=this._count=e,this._extent=[]},t.prototype.count=function(){return this._count},t.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,o=e[t];if(null!=o&&ot))return r;i=r-1}}return-1},t.prototype.indicesOfNearest=function(t,e,o){var n=this._chunks[t],i=[];if(!n)return i;null==o&&(o=1/0);for(var r=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(r=p,a=c,s=0),c===a&&(i[s++]=l))}return i.length=s,i},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var o=e.constructor,n=this._count;if(o===Array){t=new o(n);for(var i=0;i=u&&C<=c||isNaN(C))&&(a[s++]=h),h++;d=!0}else if(2===i){f=p[n[0]];var v=p[n[1]],y=t[n[1]][0],m=t[n[1]][1];for(g=0;g=u&&C<=c||isNaN(C))&&(w>=y&&w<=m||isNaN(w))&&(a[s++]=h),h++}d=!0}}if(!d)if(1===i)for(g=0;g=u&&C<=c||isNaN(C))&&(a[s++]=S)}else for(g=0;gt[x][1])&&(b=!1)}b&&(a[s++]=e.getRawIndex(g))}return sv[1]&&(v[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var o,n,i,r=this.clone([t],!0),a=r._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),p=new(tf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));p[l++]=c;for(var d=1;do&&(o=n,i=E)}x>0&&xu-h&&(s=u-h,a.length=s);for(var f=0;fc[1]&&(c[1]=v),p[d++]=y}return i._count=d,i._indices=p,i._updateGetRawIdx(),i},t.prototype.each=function(t,e){if(this._count)for(var o=t.length,n=this._chunks,i=0,r=this.count();ia&&(a=l)}return n=[r,a],this._extent[t]=n,n},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var o=[],n=this._chunks,i=0;i=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,o,n){return Ah(t[n],this._dimensions[n])}Yh={arrayRows:t,objectRows:function(t,e,o,n){return Ah(t[e],this._dimensions[n])},keyedColumns:t,original:function(t,e,o,n){var i=t&&(null==t.value?t:t.value);return Ah(i instanceof Array?i[n]:i,this._dimensions[n])},typedArray:function(t,e,o,n){return t[n]}}}(),t}();const nf=of;var rf=function(){function t(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return t.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},t.prototype._setLocalSource=function(t,e){this._sourceList=t,this._upstreamSignList=e,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},t.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},t.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},t.prototype._createSource=function(){this._setLocalSource([],[]);var t,e,o=this._sourceHost,n=this._getUpstreamSourceManagers(),i=!!n.length;if(sf(o)){var r=o,a=void 0,s=void 0,l=void 0;if(i){var u=n[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=gt(a=r.get("data",!0))?Qp:Kp,e=[];var c=this._getSourceMetaRawOption()||{},p=l&&l.metaRawOption||{},d=bt(c.seriesLayoutBy,p.seriesLayoutBy)||null,h=bt(c.sourceHeader,p.sourceHeader),f=bt(c.dimensions,p.dimensions);t=d!==p.seriesLayoutBy||!!h!=!!p.sourceHeader||f?[ah(a,{seriesLayoutBy:d,sourceHeader:h,dimensions:f},s)]:[]}else{var g=o;if(i){var v=this._applyTransform(n);t=v.sourceList,e=v.upstreamSignList}else t=[ah(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,o=this._sourceHost,n=o.get("transform",!0),i=o.get("fromTransformResult",!0);null!=i&&1!==t.length&&lf("");var r,a=[],s=[];return tt(t,(function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||lf(""),a.push(e),s.push(t._getVersionSign())})),n?e=function(t,e,o){var n=oa(t),i=n.length;i||Mh("");for(var r=0,a=i;r1||o>0&&!t.noHeader;return tt(t.blocks,(function(t){var o=vf(t);o>=e&&(e=o+ +(n&&(!o||ff(t)&&!t.noHeader)))})),e}return 0}function yf(t,e,o,n){var i,r=e.noHeader,a=(i=vf(e),{html:pf[i],richText:df[i]}),s=[],l=e.blocks||[];Tt(!l||lt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(Gt(c,u)){var p=new Fh(c[u],null);l.sort((function(t,e){return p.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}tt(l,(function(o,i){var r=e.valueFormatter,l=gf(o)(r?Y(Y({},t),{valueFormatter:r}):t,o,i>0?a.html:0,n);null!=l&&s.push(l)}));var d="richText"===t.renderMode?s.join(a.richText):wf(s.join(""),r?o:a.html);if(r)return d;var h=Sp(e.header,"ordinal",t.useUTC),f=cf(n,t.renderMode).nameStyle;return"richText"===t.renderMode?Sf(t,h,f)+a.richText+d:wf('
'+Te(h)+"
"+d,o)}function mf(t,e,o,n){var i=t.renderMode,r=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,c=e.valueFormatter||t.valueFormatter||function(t){return et(t=lt(t)?t:[t],(function(t,e){return Sp(t,lt(h)?h[e]:h,u)}))};if(!r||!a){var p=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=r?"":Sp(l,"ordinal",u),h=e.valueType,f=a?[]:c(e.value),g=!s||!r,v=!s&&r,y=cf(n,i),m=y.nameStyle,C=y.valueStyle;return"richText"===i?(s?"":p)+(r?"":Sf(t,d,m))+(a?"":function(t,e,o,n,i){var r=[i],a=n?10:20;return o&&r.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(lt(e)?e.join(" "):e,r)}(t,f,g,v,C)):wf((s?"":p)+(r?"":function(t,e,o){return''+Te(t)+""}(d,!s,m))+(a?"":function(t,e,o,n){return''+et(t=lt(t)?t:[t],(function(t){return Te(t)})).join("  ")+""}(f,g,v,C)),o)}}function Cf(t,e,o,n,i,r){if(t)return gf(t)({useUTC:i,renderMode:o,orderMode:n,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,r)}function wf(t,e){return'
'+t+'
'}function Sf(t,e,o){return t.markupStyleCreator.wrapRichTextStyle(e,o)}function bf(t,e){return Rp(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function _f(t,e){var o=t.get("padding");return null!=o?o:"richText"===e?[8,10]:10}var xf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=qr()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,o){var n="richText"===o?this._generateStyleName():null,i=Ep({color:e,type:t,renderMode:o,markerId:n});return ct(i)?i:(this.richTextStyles[n]=i.style,i.content)},t.prototype.wrapRichTextStyle=function(t,e){var o={};lt(e)?tt(e,(function(t){return Y(o,t)})):Y(o,e);var n=this._generateStyleName();return this.richTextStyles[n]=o,"{"+n+"|"+t+"}"},t}();function Ef(t){var e,o,n,i,r=t.series,a=t.dataIndex,s=t.multipleSeries,l=r.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,p=r.getRawValue(a),d=lt(p),h=bf(r,a);if(c>1||d&&!c){var f=function(t,e,o,n,i){var r=e.getData(),a=ot(t,(function(t,e,o){var n=r.getDimensionInfo(o);return t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),s=[],l=[],u=[];function c(t,e){var o=r.getDimensionInfo(e);o&&!1!==o.otherDims.tooltip&&(a?u.push(hf("nameValue",{markerType:"subItem",markerColor:i,name:o.displayName,value:t,valueType:o.type})):(s.push(t),l.push(o.type)))}return n.length?tt(n,(function(t){c(_h(r,o,t),t)})):tt(t,c),{inlineValues:s,inlineValueTypes:l,blocks:u}}(p,r,a,u,h);e=f.inlineValues,o=f.inlineValueTypes,n=f.blocks,i=f.inlineValues[0]}else if(c){var g=l.getDimensionInfo(u[0]);i=e=_h(l,a,u[0]),o=g.type}else i=e=d?p[0]:p;var v=pa(r),y=v&&r.name||"",m=l.getName(a),C=s?y:m;return hf("section",{header:y,noHeader:s||!v,sortParam:i,blocks:[hf("nameValue",{markerType:"item",markerColor:h,name:C,noName:!Dt(C),value:e,valueType:o})].concat(n||[])})}var Tf=fa();function Df(t,e){return t.getName(e)||t.getId(e)}var Rf="__universalTransitionEnabled",Of=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._selectedDataIndicesMap={},e}return m(e,t),e.prototype.init=function(t,e,o){this.seriesIndex=this.componentIndex,this.dataTask=Dh({count:Af,reset:If}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o),(Tf(this).sourceManager=new rf(this)).prepareSource();var n=this.getInitialData(t,o);Lf(n,this),this.dataTask.context.data=n,Tf(this).dataBeforeProcessed=n,Mf(this),this._initSelectedMapFromData(n)},e.prototype.mergeDefaultAndTheme=function(t,e){var o=kp(this),n=o?Vp(t):{},i=this.subType;zp.hasClass(i)&&(i+="Series"),U(t,e.getTheme().get(this.subType)),U(t,this.getDefaultOption()),na(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&Gp(t,n,o)},e.prototype.mergeOption=function(t,e){t=U(this.option,t,!0),this.fillDataTextStyle(t.data);var o=kp(this);o&&Gp(this.option,t,o);var n=Tf(this).sourceManager;n.dirty(),n.prepareSource();var i=this.getInitialData(t,e);Lf(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,Tf(this).dataBeforeProcessed=i,Mf(this),this._initSelectedMapFromData(i)},e.prototype.fillDataTextStyle=function(t){if(t&&!gt(t))for(var e=["show"],o=0;othis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,o){var n=this.ecModel,i=gd.prototype.getColorFromPalette.call(this,t,e,o);return i||(i=n.getColorFromPalette(t,e,o)),i},e.prototype.coordDimToDataDim=function(t){return this.getRawData().mapDimensionsAll(t)},e.prototype.getProgressive=function(){return this.get("progressive")},e.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},e.prototype.select=function(t,e){this._innerSelect(this.getData(e),t)},e.prototype.unselect=function(t,e){var o=this.option.selectedMap;if(o){var n=this.option.selectedMode,i=this.getData(e);if("series"===n||"all"===o)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var r=0;r=0&&o.push(i)}return o},e.prototype.isSelected=function(t,e){var o=this.option.selectedMap;if(!o)return!1;var n=this.getData(e);return("all"===o||o[Df(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Rf])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var o,n,i=this.option,r=i.selectedMode,a=e.length;if(r&&a)if("series"===r)i.selectedMap="all";else if("multiple"===r){ht(i.selectedMap)||(i.selectedMap={});for(var s=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return zp.registerClass(t)},e.protoInitialize=function(){var t=e.prototype;t.type="series.__base__",t.seriesIndex=0,t.ignoreStyleOnData=!1,t.hasSymbolVisual=!1,t.defaultSymbol="circle",t.visualStyleAccessPath="itemStyle",t.visualDrawType="fill"}(),e}(zp);function Mf(t){var e=t.name;pa(t)||(t.name=function(t){var e=t.getRawData(),o=e.mapDimensionsAll("seriesName"),n=[];return tt(o,(function(t){var o=e.getDimensionInfo(t);o.displayName&&n.push(o.displayName)})),n.join(" ")}(t)||e)}function Af(t){return t.model.getRawData().count()}function If(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Pf}function Pf(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Lf(t,e){tt(Nt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(o){t.wrapMethod(o,st(Nf,e))}))}function Nf(t,e){var o=Ff(t);return o&&o.setOutputEnd((e||this).count()),e}function Ff(t){var e=(t.ecModel||{}).scheduler,o=e&&e.getPipeline(t.uid);if(o){var n=o.currentTask;if(n){var i=n.agentStubMap;i&&(n=i.get(t.uid))}return n}}Q(Of,Eh),Q(Of,gd),Oa(Of,zp);const kf=Of;var Gf=function(){function t(){this.group=new vr,this.uid=Pc("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,o,n){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,o,n){},t.prototype.updateLayout=function(t,e,o,n){},t.prototype.updateVisual=function(t,e,o,n){},t.prototype.toggleBlurSeries=function(t,e,o){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Ra(Gf),Pa(Gf);const Vf=Gf;function Hf(){var t=fa();return function(e){var o=t(e),n=e.pipelineContext,i=!!o.large,r=!!o.progressiveRender,a=o.large=!(!n||!n.large),s=o.progressiveRender=!(!n||!n.progressiveRender);return!(i===a&&r===s)&&"reset"}}var Bf=zs.CMD,Wf=[[],[],[]],zf=Math.sqrt,jf=Math.atan2;function Uf(t,e){if(e){var o,n,i,r,a,s,l=t.data,u=t.len(),c=Bf.M,p=Bf.C,d=Bf.L,h=Bf.R,f=Bf.A,g=Bf.Q;for(i=0,r=0;i1&&(a*=$f(f),s*=$f(f));var g=(i===r?-1:1)*$f((a*a*(s*s)-a*a*(h*h)-s*s*(d*d))/(a*a*(h*h)+s*s*(d*d)))||0,v=g*a*h/s,y=g*-s*d/a,m=(t+o)/2+Kf(p)*v-Yf(p)*y,C=(e+n)/2+Yf(p)*v+Kf(p)*y,w=Qf([1,0],[(d-v)/a,(h-y)/s]),S=[(d-v)/a,(h-y)/s],b=[(-1*d-v)/a,(-1*h-y)/s],_=Qf(S,b);if(Zf(S,b)<=-1&&(_=Xf),Zf(S,b)>=1&&(_=0),_<0){var x=Math.round(_/Xf*1e6)/1e6;_=2*Xf+x%2*Xf}c.addData(u,m,C,a,s,w,_,p,r)}var tg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,eg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,og=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.applyTransform=function(t){},e}(cl);function ng(t){return null!=t.setData}function ig(t,e){var o=function(t){var e=new zs;if(!t)return e;var o,n=0,i=0,r=n,a=i,s=zs.CMD,l=t.match(tg);if(!l)return e;for(var u=0;uM*M+A*A&&(x=T,E=D),{cx:x,cy:E,x0:-c,y0:-p,x1:x*(i/S-1),y1:E*(i/S-1)}}var Eg=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0},Tg=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Eg},e.prototype.buildPath=function(t,e){!function(t,e){var o,n=Sg(e.r,0),i=Sg(e.r0||0,0),r=n>0;if(r||i>0){if(r||(n=i,i=0),i>n){var a=n;n=i,i=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,c=e.cy,p=!!e.clockwise,d=Cg(l-s),h=d>fg&&d%fg;if(h>_g&&(d=h),n>_g)if(d>fg-_g)t.moveTo(u+n*vg(s),c+n*gg(s)),t.arc(u,c,n,s,l,!p),i>_g&&(t.moveTo(u+i*vg(l),c+i*gg(l)),t.arc(u,c,i,l,s,p));else{var f=void 0,g=void 0,v=void 0,y=void 0,m=void 0,C=void 0,w=void 0,S=void 0,b=void 0,_=void 0,x=void 0,E=void 0,T=void 0,D=void 0,R=void 0,O=void 0,M=n*vg(s),A=n*gg(s),I=i*vg(l),P=i*gg(l),L=d>_g;if(L){var N=e.cornerRadius;N&&(o=function(t){var e;if(lt(t)){var o=t.length;if(!o)return t;e=1===o?[t[0],t[0],0,0]:2===o?[t[0],t[0],t[1],t[1]]:3===o?t.concat(t[2]):t}else e=[t,t,t,t];return e}(N),f=o[0],g=o[1],v=o[2],y=o[3]);var F=Cg(n-i)/2;if(m=bg(F,v),C=bg(F,y),w=bg(F,f),S=bg(F,g),x=b=Sg(m,C),E=_=Sg(w,S),(b>_g||_>_g)&&(T=n*vg(l),D=n*gg(l),R=i*vg(s),O=i*gg(s),d_g){var j=bg(v,x),U=bg(y,x),$=xg(R,O,M,A,n,j,p),Y=xg(T,D,I,P,n,U,p);t.moveTo(u+$.cx+$.x0,c+$.cy+$.y0),x0&&t.arc(u+$.cx,c+$.cy,j,mg($.y0,$.x0),mg($.y1,$.x1),!p),t.arc(u,c,n,mg($.cy+$.y1,$.cx+$.x1),mg(Y.cy+Y.y1,Y.cx+Y.x1),!p),U>0&&t.arc(u+Y.cx,c+Y.cy,U,mg(Y.y1,Y.x1),mg(Y.y0,Y.x0),!p))}else t.moveTo(u+M,c+A),t.arc(u,c,n,s,l,!p);else t.moveTo(u+M,c+A);i>_g&&L?E>_g?(j=bg(f,E),$=xg(I,P,T,D,i,-(U=bg(g,E)),p),Y=xg(M,A,R,O,i,-j,p),t.lineTo(u+$.cx+$.x0,c+$.cy+$.y0),E<_&&j===U?t.arc(u+$.cx,c+$.cy,E,mg($.y0,$.x0),mg(Y.y0,Y.x0),!p):(U>0&&t.arc(u+$.cx,c+$.cy,U,mg($.y0,$.x0),mg($.y1,$.x1),!p),t.arc(u,c,i,mg($.cy+$.y1,$.cx+$.x1),mg(Y.cy+Y.y1,Y.cx+Y.x1),p),j>0&&t.arc(u+Y.cx,c+Y.cy,j,mg(Y.y1,Y.x1),mg(Y.y0,Y.x0),!p))):(t.lineTo(u+I,c+P),t.arc(u,c,i,l,s,p)):t.lineTo(u+I,c+P)}else t.moveTo(u,c);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(cl);Tg.prototype.type="sector";const Dg=Tg;var Rg=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Og=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Rg},e.prototype.buildPath=function(t,e){var o=e.cx,n=e.cy,i=2*Math.PI;t.moveTo(o+e.r,n),t.arc(o,n,e.r,0,i,!1),t.moveTo(o+e.r0,n),t.arc(o,n,e.r0,0,i,!0)},e}(cl);Og.prototype.type="ring";const Mg=Og;function Ag(t,e,o){var n=e.smooth,i=e.points;if(i&&i.length>=2){if(n){var r=function(t,e,o,n){var i,r,a,s,l=[],u=[],c=[],p=[];if(n){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,h=t.length;dov[1]){if(a=!1,i)return a;var u=Math.abs(ov[0]-ev[1]),c=Math.abs(ev[0]-ov[1]);Math.min(u,c)>n.len()&&(uMath.abs(r[1])?r[0]>0?"right":"left":r[1]>0?"bottom":"top"}function Ov(t){return!t.isGroup}function Mv(t,e,o){if(t&&e){var n,i=(n={},t.traverse((function(t){Ov(t)&&t.anid&&(n[t.anid]=t)})),n);e.traverse((function(t){if(Ov(t)&&t.anid){var e=i[t.anid];if(e){var n=r(t);t.attr(r(e)),Xu(t,n,o,Wl(t).dataIndex)}}}))}function r(t){var e={x:t.x,y:t.y,rotation:t.rotation};return function(t){return null!=t.shape}(t)&&(e.shape=Y({},t.shape)),e}}function Av(t,e){return et(t,(function(t){var o=t[0];o=cv(o,e.x),o=pv(o,e.x+e.width);var n=t[1];return n=cv(n,e.y),[o,n=pv(n,e.y+e.height)]}))}function Iv(t,e){var o=cv(t.x,e.x),n=pv(t.x+t.width,e.x+e.width),i=cv(t.y,e.y),r=pv(t.y+t.height,e.y+e.height);if(n>=o&&r>=i)return{x:o,y:i,width:n-o,height:r-i}}function Pv(t,e,o){var n=Y({rectHover:!0},e),i=n.style={strokeNoScale:!0};if(o=o||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(i.image=t.slice(8),K(i,o),new yl(n)):mv(t.replace("path://",""),n,o,"center")}function Lv(t,e,o,n,i){for(var r=0,a=i[i.length-1];r=-1e-6)return!1;var f=t-i,g=e-r,v=Fv(f,g,u,c)/h;if(v<0||v>1)return!1;var y=Fv(f,g,p,d)/h;return!(y<0||y>1)}function Fv(t,e,o,n){return t*n-o*e}function kv(t){var e=t.itemTooltipOption,o=t.componentModel,n=t.itemName,i=ct(e)?{formatter:e}:e,r=o.mainType,a=o.componentIndex,s={componentType:r,name:n,$vars:["name"]};s[r+"Index"]=a;var l=t.formatterParamsExtra;l&&tt(rt(l),(function(t){Gt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Wl(t.el);u.componentMainType=r,u.componentIndex=a,u.tooltipConfig={name:n,option:K({content:n,formatterParams:s},i)}}function Gv(t,e){var o;t.isGroup&&(o=e(t)),o||t.traverse(e)}function Vv(t,e){if(t)if(lt(t))for(var o=0;o=0?p():c=setTimeout(p,-i),l=n};return d.clear=function(){c&&(clearTimeout(c),c=null)},d.debounceNextCall=function(t){s=t},d}function Jv(t,e,o,n){var i=t[e];if(i){var r=i[Xv]||i,a=i[Zv];if(i[qv]!==o||a!==n){if(null==o||!n)return t[e]=r;(i=t[e]=Qv(r,o,"debounce"===n))[Xv]=r,i[Zv]=n,i[qv]=o}return i}}function ty(t,e){var o=t[e];o&&o[Xv]&&(o.clear&&o.clear(),t[e]=o[Xv])}var ey=fa(),oy={itemStyle:La(Dc,!0),lineStyle:La(xc,!0)},ny={lineStyle:"stroke",itemStyle:"fill"};function iy(t,e){return t.visualStyleMapper||oy[e]||(console.warn("Unknown style type '"+e+"'."),oy.itemStyle)}function ry(t,e){return t.visualDrawType||ny[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var ay={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var o=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=t.getModel(n),r=iy(t,n)(i),a=i.getShallow("decal");a&&(o.setVisual("decal",a),a.dirty=!0);var s=ry(t,n),l=r[s],u=ut(l)?l:null,c="auto"===r.fill||"auto"===r.stroke;if(!r[s]||u||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());r[s]||(r[s]=p,o.setVisual("colorFromPalette",!0)),r.fill="auto"===r.fill||ut(r.fill)?p:r.fill,r.stroke="auto"===r.stroke||ut(r.stroke)?p:r.stroke}if(o.setVisual("style",r),o.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return o.setVisual("colorFromPalette",!1),{dataEach:function(e,o){var n=t.getDataParams(o),i=Y({},r);i[s]=u(n),e.setItemVisual(o,"style",i)}}}},sy=new Ac,ly={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var o=t.getData(),n=t.visualStyleAccessPath||"itemStyle",i=iy(t,n),r=o.getVisual("drawType");return{dataEach:o.hasItemOption?function(t,e){var o=t.getRawDataItem(e);if(o&&o[n]){sy.option=o[n];var a=i(sy);Y(t.ensureUniqueItemVisual(e,"style"),a),sy.option.decal&&(t.setItemVisual(e,"decal",sy.option.decal),sy.option.decal.dirty=!0),r in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},uy={performRawSeries:!0,overallReset:function(t){var e=Lt();t.eachSeries((function(t){var o=t.getColorBy();if(!t.isColorBySeries()){var n=t.type+"-"+o,i=e.get(n);i||(i={},e.set(n,i)),ey(t).scope=i}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var o=e.getRawData(),n={},i=e.getData(),r=ey(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=ry(e,a);i.each((function(t){var e=i.getRawIndex(t);n[e]=t})),o.each((function(t){var a=n[t];if(i.getItemVisual(a,"colorFromPalette")){var l=i.ensureUniqueItemVisual(a,"style"),u=o.getName(t)||t+"",c=o.count();l[s]=e.getColorFromPalette(u,r,c)}}))}}))}},cy=Math.PI,py=function(){function t(t,e,o,n){this._stageTaskMap=Lt(),this.ecInstance=t,this.api=e,o=this._dataProcessorHandlers=o.slice(),n=this._visualHandlers=n.slice(),this._allHandlers=o.concat(n)}return t.prototype.restoreData=function(t,e){t.restoreData(e),this._stageTaskMap.each((function(t){var e=t.overallTask;e&&e.dirty()}))},t.prototype.getPerformArgs=function(t,e){if(t.__pipeline){var o=this._pipelineMap.get(t.__pipeline.id),n=o.context,i=!e&&o.progressiveEnabled&&(!n||n.progressiveRender)&&t.__idxInPipeline>o.blockIndex?o.step:null,r=n&&n.modDataCount;return{step:i,modBy:null!=r?Math.ceil(r/i):null,modDataCount:r}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var o=this._pipelineMap.get(t.uid),n=t.getData().count(),i=o.progressiveEnabled&&e.incrementalPrepareRender&&n>=o.threshold,r=t.get("large")&&n>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=o.context={progressiveRender:i,modDataCount:a,large:r}},t.prototype.restorePipelines=function(t){var e=this,o=e._pipelineMap=Lt();t.eachSeries((function(t){var n=t.getProgressive(),i=t.uid;o.set(i,{id:i,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:n&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(n||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),o=this.api;tt(this._allHandlers,(function(n){var i=t.get(n.uid)||t.set(n.uid,{});Tt(!(n.reset&&n.overallReset),""),n.reset&&this._createSeriesStageTask(n,i,e,o),n.overallReset&&this._createOverallStageTask(n,i,e,o)}),this)},t.prototype.prepareView=function(t,e,o,n){var i=t.renderTask,r=i.context;r.model=e,r.ecModel=o,r.api=n,i.__block=!t.incrementalPrepareRender,this._pipe(e,i)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,o){this._performStageTasks(this._visualHandlers,t,e,o)},t.prototype._performStageTasks=function(t,e,o,n){n=n||{};var i=!1,r=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tt(t,(function(t,s){if(!n.visualType||n.visualType===t.visualType){var l=r._stageTaskMap.get(t.uid),u=l.seriesTaskMap,c=l.overallTask;if(c){var p,d=c.agentStubMap;d.each((function(t){a(n,t)&&(t.dirty(),p=!0)})),p&&c.dirty(),r.updatePayload(c,o);var h=r.getPerformArgs(c,n.block);d.each((function(t){t.perform(h)})),c.perform(h)&&(i=!0)}else u&&u.each((function(s,l){a(n,s)&&s.dirty();var u=r.getPerformArgs(s,n.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),r.updatePayload(s,o),s.perform(u)&&(i=!0)}))}})),this.unfinished=i||this.unfinished},t.prototype.performSeriesTasks=function(t){var e;t.eachSeries((function(t){e=t.dataTask.perform()||e})),this.unfinished=e||this.unfinished},t.prototype.plan=function(){this._pipelineMap.each((function(t){var e=t.tail;do{if(e.__block){t.blockIndex=e.__idxInPipeline;break}e=e.getUpstream()}while(e)}))},t.prototype.updatePayload=function(t,e){"remain"!==e&&(t.context.payload=e)},t.prototype._createSeriesStageTask=function(t,e,o,n){var i=this,r=e.seriesTaskMap,a=e.seriesTaskMap=Lt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,r&&r.get(s)||Dh({plan:vy,reset:yy,count:wy}));l.context={model:e,ecModel:o,api:n,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:i},i._pipe(e,l)}t.createOnAllSeries?o.eachRawSeries(u):s?o.eachRawSeriesByType(s,u):l&&l(o,n).each(u)},t.prototype._createOverallStageTask=function(t,e,o,n){var i=this,r=e.overallTask=e.overallTask||Dh({reset:dy});r.context={ecModel:o,api:n,overallReset:t.overallReset,scheduler:i};var a=r.agentStubMap,s=r.agentStubMap=Lt(),l=t.seriesType,u=t.getTargetSeries,c=!0,p=!1;function d(t){var e=t.uid,o=s.set(e,a&&a.get(e)||(p=!0,Dh({reset:hy,onDirty:gy})));o.context={model:t,overallProgress:c},o.agent=r,o.__block=c,i._pipe(t,o)}Tt(!t.createOnAllSeries,""),l?o.eachRawSeriesByType(l,d):u?u(o,n).each(d):(c=!1,tt(o.getSeries(),d)),p&&r.dirty()},t.prototype._pipe=function(t,e){var o=t.uid,n=this._pipelineMap.get(o);!n.head&&(n.head=e),n.tail&&n.tail.pipe(e),n.tail=e,e.__idxInPipeline=n.count++,e.__pipeline=n},t.wrapStageHandler=function(t,e){return ut(t)&&(t={overallReset:t,seriesType:Sy(t)}),t.uid=Pc("stageHandler"),e&&(t.visualType=e),t},t}();function dy(t){t.overallReset(t.ecModel,t.api,t.payload)}function hy(t){return t.overallProgress&&fy}function fy(){this.agent.dirty(),this.getDownstream().dirty()}function gy(){this.agent&&this.agent.dirty()}function vy(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function yy(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=oa(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?et(e,(function(t,e){return Cy(e)})):my}var my=Cy(0);function Cy(t){return function(e,o){var n=o.data,i=o.resetDefines[t];if(i&&i.dataEach)for(var r=e.start;r0&&c===i.length-u.length){var p=i.slice(0,c);"data"!==p&&(e.mainType=p,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(i)&&(o[i]=t,s=!0),s||(n[i]=t)}))}return{cptQuery:e,dataQuery:o,otherQuery:n}},t.prototype.filter=function(t,e){var o=this.eventInfo;if(!o)return!0;var n=o.targetEl,i=o.packedEvent,r=o.model,a=o.view;if(!r||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,r,"mainType")&&u(s,r,"subType")&&u(s,r,"index","componentIndex")&&u(s,r,"name")&&u(s,r,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,n,i));function u(t,e,o,n){return null==t[o]||e[n||o]===t[o]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Fy=["symbol","symbolSize","symbolRotate","symbolOffset"],ky=Fy.concat(["symbolKeepAspect"]),Gy={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var o=t.getData();if(t.legendIcon&&o.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var n={},i={},r=!1,a=0;a=0&&sm(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,o):function(t,e,o){var n=null==e.x?0:e.x,i=null==e.x2?1:e.x2,r=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(n=n*o.width+o.x,i=i*o.width+o.x,r=r*o.height+o.y,a=a*o.height+o.y),n=sm(n)?n:0,i=sm(i)?i:1,r=sm(r)?r:0,a=sm(a)?a:0,t.createLinearGradient(n,r,i,a)}(t,e,o),i=e.colorStops,r=0;r0&&(e=n.lineDash,o=n.lineWidth,e&&"solid"!==e&&o>0?"dashed"===e?[4*o,2*o]:"dotted"===e?[o]:dt(e)?[e]:lt(e)?e:null:null),r=n.lineDashOffset;if(i){var a=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(i=et(i,(function(t){return t/a})),r/=a)}return[i,r]}var dm=new zs(!0);function hm(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function fm(t){return"string"==typeof t&&"none"!==t}function gm(t){var e=t.fill;return null!=e&&"none"!==e}function vm(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var o=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=o}else t.fill()}function ym(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var o=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=o}else t.stroke()}function mm(t,e,o){var n=Va(e.image,e.__image,o);if(Ba(n)){var i=t.createPattern(n,e.repeat||"repeat");if("function"==typeof DOMMatrix&&i&&i.setTransform){var r=new DOMMatrix;r.translateSelf(e.x||0,e.y||0),r.rotateSelf(0,0,(e.rotation||0)*Ht),r.scaleSelf(e.scaleX||1,e.scaleY||1),i.setTransform(r)}return i}}var Cm=["shadowBlur","shadowOffsetX","shadowOffsetY"],wm=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Sm(t,e,o,n,i){var r=!1;if(!n&&e===(o=o||{}))return!1;if(n||e.opacity!==o.opacity){Rm(t,i),r=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?es.opacity:a}(n||e.blend!==o.blend)&&(r||(Rm(t,i),r=!0),t.globalCompositeOperation=e.blend||es.blend);for(var s=0;s0&&t.unfinished);t.unfinished||this._zr.flush()}}},e.prototype.getDom=function(){return this._dom},e.prototype.getId=function(){return this.id},e.prototype.getZr=function(){return this._zr},e.prototype.isSSR=function(){return this._ssr},e.prototype.setOption=function(t,e,o){if(!this[qm])if(this._disposed)DC(this.id);else{var n,i,r;if(ht(e)&&(o=e.lazyUpdate,n=e.silent,i=e.replaceMerge,r=e.transition,e=e.notMerge),this[qm]=!0,!this._model||e){var a=new Id(this._api),s=this._theme,l=this._model=new _d;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:i},AC);var u={seriesTransition:r,optionChanged:!0};if(o)this[Zm]={silent:n,updateParams:u},this[qm]=!1,this.getZr().wakeUp();else{try{iC(this),sC.update.call(this,null,u)}catch(t){throw this[Zm]=null,this[qm]=!1,t}this._ssr||this._zr.flush(),this[Zm]=null,this[qm]=!1,pC.call(this,n),dC.call(this,n)}}},e.prototype.setTheme=function(){},e.prototype.getModel=function(){return this._model},e.prototype.getOption=function(){return this._model&&this._model.getOption()},e.prototype.getWidth=function(){return this._zr.getWidth()},e.prototype.getHeight=function(){return this._zr.getHeight()},e.prototype.getDevicePixelRatio=function(){return this._zr.painter.dpr||S.hasGlobalWindow&&window.devicePixelRatio||1},e.prototype.getRenderedCanvas=function(t){return this.renderToCanvas(t)},e.prototype.renderToCanvas=function(t){return t=t||{},this._zr.painter.getRenderedCanvas({backgroundColor:t.backgroundColor||this._model.get("backgroundColor"),pixelRatio:t.pixelRatio||this.getDevicePixelRatio()})},e.prototype.renderToSVGString=function(t){return t=t||{},this._zr.painter.renderToString({useViewBox:t.useViewBox})},e.prototype.getSvgDataURL=function(){if(S.svgSupported){var t=this._zr;return tt(t.storage.getDisplayList(),(function(t){t.stopAnimation(null,!0)})),t.painter.toDataURL()}},e.prototype.getDataURL=function(t){if(!this._disposed){var e=(t=t||{}).excludeComponents,o=this._model,n=[],i=this;tt(e,(function(t){o.eachComponent({mainType:t},(function(t){var e=i._componentsMap[t.__viewId];e.group.ignore||(n.push(e),e.group.ignore=!0)}))}));var r="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tt(n,(function(t){t.group.ignore=!1})),r}DC(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,o=this.group,n=Math.min,i=Math.max,r=1/0;if(FC[o]){var a=r,s=r,l=-1/0,u=-1/0,c=[],p=t&&t.pixelRatio||this.getDevicePixelRatio();tt(NC,(function(r,p){if(r.group===o){var d=e?r.getZr().painter.getSvgDom().innerHTML:r.renderToCanvas(j(t)),h=r.getDom().getBoundingClientRect();a=n(h.left,a),s=n(h.top,s),l=i(h.right,l),u=i(h.bottom,u),c.push({dom:d,left:h.left,top:h.top})}}));var d=(l*=p)-(a*=p),h=(u*=p)-(s*=p),f=R.createCanvas(),g=wr(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:h}),e){var v="";return tt(c,(function(t){var e=t.left-a,o=t.top-s;v+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=v,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new El({shape:{x:0,y:0,width:d,height:h},style:{fill:t.connectedBackgroundColor}})),tt(c,(function(t){var e=new yl({style:{x:t.left*p-a,y:t.top*p-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}DC(this.id)},e.prototype.convertToPixel=function(t,e){return lC(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return lC(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var o;if(!this._disposed)return tt(va(this._model,t),(function(t,n){n.indexOf("Models")>=0&&tt(t,(function(t){var i=t.coordinateSystem;if(i&&i.containPoint)o=o||!!i.containPoint(e);else if("seriesModels"===n){var r=this._chartsMap[t.__viewId];r&&r.containPoint&&(o=o||r.containPoint(e,t))}}),this)}),this),!!o;DC(this.id)},e.prototype.getVisual=function(t,e){var o=va(this._model,t,{defaultMainType:"series"}),n=o.seriesModel.getData(),i=o.hasOwnProperty("dataIndexInside")?o.dataIndexInside:o.hasOwnProperty("dataIndex")?n.indexOfRawIndex(o.dataIndex):null;return null!=i?Hy(n,i,e):By(n,e)},e.prototype.getViewOfComponentModel=function(t){return this._componentsMap[t.__viewId]},e.prototype.getViewOfSeriesModel=function(t){return this._chartsMap[t.__viewId]},e.prototype._initEvents=function(){var t,e,o,n=this;tt(TC,(function(t){var e=function(e){var o,i=n.getModel(),r=e.target;if("globalout"===t?o={}:r&&Uy(r,(function(t){var e=Wl(t);if(e&&null!=e.dataIndex){var n=e.dataModel||i.getSeriesByIndex(e.seriesIndex);return o=n&&n.getDataParams(e.dataIndex,e.dataType)||{},!0}if(e.eventData)return o=Y({},e.eventData),!0}),!0),o){var a=o.componentType,s=o.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=o.seriesIndex);var l=a&&null!=s&&i.getComponent(a,s),u=l&&n["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];o.event=e,o.type=t,n._$eventProcessor.eventInfo={targetEl:r,packedEvent:o,model:l,view:u},n.trigger(t,o)}};e.zrEventfulCallAtLast=!0,n._zr.on(t,e,n)})),tt(OC,(function(t,e){n._messageCenter.on(e,(function(t){this.trigger(e,t)}),n)})),tt(["selectchanged"],(function(t){n._messageCenter.on(t,(function(e){this.trigger(t,e)}),n)})),t=this._messageCenter,e=this,o=this._api,t.on("selectchanged",(function(t){var n=o.getModel();t.isFromClick?(jy("map","selectchanged",e,n,t),jy("pie","selectchanged",e,n,t)):"select"===t.fromAction?(jy("map","selected",e,n,t),jy("pie","selected",e,n,t)):"unselect"===t.fromAction&&(jy("map","unselected",e,n,t),jy("pie","unselected",e,n,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?DC(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)DC(this.id);else{this._disposed=!0,this.getDom()&&Sa(this.getDom(),VC,"");var t=this,e=t._api,o=t._model;tt(t._componentsViews,(function(t){t.dispose(o,e)})),tt(t._chartsViews,(function(t){t.dispose(o,e)})),t._zr.dispose(),t._dom=t._model=t._chartsMap=t._componentsMap=t._chartsViews=t._componentsViews=t._scheduler=t._api=t._zr=t._throttledZrFlush=t._theme=t._coordSysMgr=t._messageCenter=null,delete NC[t.id]}},e.prototype.resize=function(t){if(!this[qm])if(this._disposed)DC(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var o=e.resetOption("media"),n=t&&t.silent;this[Zm]&&(null==n&&(n=this[Zm].silent),o=!0,this[Zm]=null),this[qm]=!0;try{o&&iC(this),sC.update.call(this,{type:"resize",animation:Y({duration:0},t&&t.animation)})}catch(t){throw this[qm]=!1,t}this[qm]=!1,pC.call(this,n),dC.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)DC(this.id);else if(ht(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),LC[t]){var o=LC[t](this._api,e),n=this._zr;this._loadingFX=o,n.add(o)}},e.prototype.hideLoading=function(){this._disposed?DC(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Y({},t);return e.type=OC[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)DC(this.id);else if(ht(e)||(e={silent:!!e}),RC[t.type]&&this._model)if(this[qm])this._pendingActions.push(t);else{var o=e.silent;cC.call(this,t,o);var n=e.flush;n?this._zr.flush():!1!==n&&S.browser.weChat&&this._throttledZrFlush(),pC.call(this,o),dC.call(this,o)}},e.prototype.updateLabelLayout=function(){Vm.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)DC(this.id);else{var e=t.seriesIndex;this.getModel().getSeriesByIndex(e).appendData(t),this._scheduler.unfinished=!0,this.getZr().wakeUp()}},e.internalField=function(){function t(t){t.clearColorPalette(),t.eachSeries((function(t){t.clearColorPalette()}))}function e(t){for(var e=[],o=t.currentStates,n=0;n0?{duration:r,delay:n.get("delay"),easing:n.get("easing")}:null;o.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Zu(t))return;if(t instanceof cl&&function(t){var e=$l(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var o=t.states.select||{};e.selectFill=o.style&&o.style.fill||null,e.selectStroke=o.style&&o.style.stroke||null}(t),t.__dirty){var o=t.prevStates;o&&t.useStates(o)}if(i){t.stateTransition=a;var n=t.getTextContent(),r=t.getTextGuideLine();n&&(n.stateTransition=a),r&&(r.stateTransition=a)}t.__dirty&&e(t)}}))}iC=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),rC(t,!0),rC(t,!1),e.plan()},rC=function(t,e){for(var o=t._model,n=t._scheduler,i=e?t._componentsViews:t._chartsViews,r=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!S.node&&!S.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var o=t._chartsMap[e.__viewId];o.__alive&&o.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Vm.trigger("series:afterupdate",e,n,s)},wC=function(t){t[Qm]=!0,t.getZr().wakeUp()},SC=function(t){t[Qm]&&(t.getZr().storage.traverse((function(t){Zu(t)||e(t)})),t[Qm]=!1)},mC=function(t){return new(function(e){function o(){return null!==e&&e.apply(this,arguments)||this}return m(o,e),o.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},o.prototype.getComponentByElement=function(e){for(;e;){var o=e.__ecComponentInfo;if(null!=o)return t._model.getComponent(o.mainType,o.index);e=e.parent}},o.prototype.enterEmphasis=function(e,o){_u(e,o),wC(t)},o.prototype.leaveEmphasis=function(e,o){xu(e,o),wC(t)},o.prototype.enterBlur=function(e){Eu(e),wC(t)},o.prototype.leaveBlur=function(e){Tu(e),wC(t)},o.prototype.enterSelect=function(e){Du(e),wC(t)},o.prototype.leaveSelect=function(e){Ru(e),wC(t)},o.prototype.getModel=function(){return t.getModel()},o.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},o.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},o}(Ed))(t)},CC=function(t){function e(t,e){for(var o=0;o=0)){iw.push(o);var r=Ty.wrapStageHandler(o,i);r.__prio=e,r.__raw=o,t.push(r)}}function aw(t,e){LC[t]=e}function sw(t){O({createCanvas:t})}function lw(t,e,o){var n=Bm("registerMap");n&&n(t,e,o)}function uw(t){var e=Bm("getMap");return e&&e(t)}var cw=function(t){var e=(t=j(t)).type;e||Mh("");var o=e.split(":");2!==o.length&&Mh("");var n=!1;"echarts"===o[0]&&(e=o[1],n=!0),t.__isBuiltIn=n,jh.set(e,t)};nw($m,ay),nw(Km,ly),nw(Km,uy),nw($m,Gy),nw(Km,Vy),nw(7e3,(function(t,e){t.eachRawSeries((function(o){if(!t.isSeriesFiltered(o)){var n=o.getData();n.hasItemVisual()&&n.each((function(t){var o=n.getItemVisual(t,"decal");o&&(n.ensureUniqueItemVisual(t,"style").decal=Nm(o,e))}));var i=n.getVisual("decal");i&&(n.getVisual("style").decal=Nm(i,e))}}))})),KC(Zd),XC(900,(function(t){var e=Lt();t.eachSeries((function(t){var o=t.get("stack");if(o){var n=e.get(o)||e.set(o,[]),i=t.getData(),r={stackResultDimension:i.getCalculationInfo("stackResultDimension"),stackedOverDimension:i.getCalculationInfo("stackedOverDimension"),stackedDimension:i.getCalculationInfo("stackedDimension"),stackedByDimension:i.getCalculationInfo("stackedByDimension"),isStackedByIndex:i.getCalculationInfo("isStackedByIndex"),data:i,seriesModel:t};if(!r.stackedDimension||!r.isStackedByIndex&&!r.stackedByDimension)return;n.length&&i.setCalculationInfo("stackedOnSeries",n[n.length-1].seriesModel),n.push(r)}})),e.each(Qd)})),aw("default",(function(t,e){K(e=e||{},{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var o=new vr,n=new El({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});o.add(n);var i,r=new Bl({style:{text:e.text,fill:e.textColor,fontSize:e.fontSize,fontWeight:e.fontWeight,fontStyle:e.fontStyle,fontFamily:e.fontFamily},zlevel:e.zlevel,z:10001}),a=new El({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return o.add(a),e.showSpinner&&((i=new Xg({shape:{startAngle:-cy/2,endAngle:-cy/2+.1,r:e.spinnerRadius},style:{stroke:e.color,lineCap:"round",lineWidth:e.lineWidth},zlevel:e.zlevel,z:10001})).animateShape(!0).when(1e3,{endAngle:3*cy/2}).start("circularInOut"),i.animateShape(!0).when(1e3,{startAngle:3*cy/2}).delay(300).start("circularInOut"),o.add(i)),o.resize=function(){var o=r.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&o?10:0)-o)/2-(e.showSpinner&&o?0:5+o/2)+(e.showSpinner?0:o/2)+(o?0:s),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),n.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},o.resize(),o})),JC({type:eu,event:eu,update:eu},Vt),JC({type:ou,event:ou,update:ou},Vt),JC({type:nu,event:nu,update:nu},Vt),JC({type:iu,event:iu,update:iu},Vt),JC({type:ru,event:ru,update:ru},Vt),YC("light",Ry),YC("dark",Ly);var pw={},dw=[],hw={registerPreprocessor:KC,registerProcessor:XC,registerPostInit:qC,registerPostUpdate:ZC,registerUpdateLifecycle:QC,registerAction:JC,registerCoordinateSystem:tw,registerLayout:ow,registerVisual:nw,registerTransform:cw,registerLoading:aw,registerMap:lw,registerImpl:function(t,e){Hm[t]=e},PRIORITY:Xm,ComponentModel:zp,ComponentView:Vf,SeriesModel:kf,ChartView:Kv,registerComponentModel:function(t){zp.registerClass(t)},registerComponentView:function(t){Vf.registerClass(t)},registerSeriesModel:function(t){kf.registerClass(t)},registerChartView:function(t){Kv.registerClass(t)},registerSubTypeDefaulter:function(t,e){zp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){xr(t,e)}};function fw(t){lt(t)?tt(t,(function(t){fw(t)})):q(dw,t)>=0||(dw.push(t),ut(t)&&(t={install:t}),t.install(hw))}function gw(t){return null==t?0:t.length||1}function vw(t){return t}var yw=function(){function t(t,e,o,n,i,r){this._old=t,this._new=e,this._oldKeyGetter=o||vw,this._newKeyGetter=n||vw,this.context=i,this._diffModeMultiple="multiple"===r}return t.prototype.add=function(t){return this._add=t,this},t.prototype.update=function(t){return this._update=t,this},t.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},t.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},t.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},t.prototype.remove=function(t){return this._remove=t,this},t.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},t.prototype._executeOneToOne=function(){var t=this._old,e=this._new,o={},n=new Array(t.length),i=new Array(e.length);this._initIndexMap(t,null,n,"_oldKeyGetter"),this._initIndexMap(e,o,i,"_newKeyGetter");for(var r=0;r1){var u=s.shift();1===s.length&&(o[a]=s[0]),this._update&&this._update(u,r)}else 1===l?(o[a]=null,this._update&&this._update(s,r)):this._remove&&this._remove(r)}this._performRestAdd(i,o)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,o={},n={},i=[],r=[];this._initIndexMap(t,o,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var a=0;a1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,l),n[s]=null;else if(1===c&&p>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[s]=null;else if(1===c&&1===p)this._update&&this._update(u,l),n[s]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[s]=null;else if(c>1)for(var d=0;d1)for(var a=0;a30}var Mw,Aw,Iw,Pw,Lw,Nw,Fw,kw=ht,Gw=et,Vw="undefined"==typeof Int32Array?Array:Int32Array,Hw=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Bw=["_approximateExtent"],Ww=function(){function t(t,e){var o;this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","lttbDownSample"];var n=!1;Tw(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,o=t),o=o||["x","y"];for(var i={},r=[],a={},s=!1,l={},u=0;u=e)){var o=this._store.getProvider();this._updateOrdinalMeta();var n=this._nameList,i=this._idList;if(o.getSource().sourceFormat===Kp&&!o.pure)for(var r=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var o=this._itemVisuals,n=o[t];n||(n=o[t]={});var i=n[e];return null==i&&(lt(i=this.getVisual(e))?i=i.slice():kw(i)&&(i=Y({},i)),n[e]=i),i},t.prototype.setItemVisual=function(t,e,o){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,kw(e)?Y(n,e):n[e]=o},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){kw(t)?Y(this._layout,t):this._layout[t]=e},t.prototype.getLayout=function(t){return this._layout[t]},t.prototype.getItemLayout=function(t){return this._itemLayouts[t]},t.prototype.setItemLayout=function(t,e,o){this._itemLayouts[t]=o?Y(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var o=this.hostModel&&this.hostModel.seriesIndex;zl(o,this.dataType,t,e),this._graphicEls[t]=e},t.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},t.prototype.eachItemGraphicEl=function(t,e){tt(this._graphicEls,(function(o,n){o&&t&&t.call(e,o,n)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:Gw(this.dimensions,this._getDimInfo,this),this.hostModel)),Lw(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var o=this[t];ut(o)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=o.apply(this,arguments);return e.apply(this,[t].concat(xt(arguments)))})},t.internalField=(Mw=function(t){var e=t._invertedIndicesMap;tt(e,(function(o,n){var i=t._dimInfos[n],r=i.ordinalMeta,a=t._store;if(r){o=e[n]=new Vw(r.categories.length);for(var s=0;s1&&(s+="__ec__"+u),n[e]=s}})),t}();const zw=Ww;function jw(t,e){return Uw(t,e).dimensions}function Uw(t,e){rh(t)||(t=sh(t));var o=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=Lt(),r=[],a=function(t,e,o,n){var i=Math.max(t.dimensionsDetectedCount||1,e.length,o.length,n||0);return tt(e,(function(t){var e;ht(t)&&(e=t.dimsDef)&&(i=Math.max(i,e.length))})),i}(t,o,n,e.dimensionsCount),s=e.canOmitUnusedDimensions&&Ow(a),l=n===t.dimensionsDefine,u=l?Rw(t):Dw(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,a));for(var p=Lt(c),d=new Zh(a),h=0;h0&&(n.name=i+(r-1)),r++,e.set(i,r)}}(r),new Ew({source:t,dimensions:r,fullDimensionCount:a,dimensionOmitted:s})}function $w(t,e,o){if(o||e.hasKey(t)){for(var n=0;e.hasKey(t+n);)n++;t+=n}return e.set(t,!0),t}var Yw=function(t){this.coordSysDims=[],this.axisMap=Lt(),this.categoryAxisMap=Lt(),this.coordSysName=t},Kw={cartesian2d:function(t,e,o,n){var i=t.getReferringComponents("xAxis",ma).models[0],r=t.getReferringComponents("yAxis",ma).models[0];e.coordSysDims=["x","y"],o.set("x",i),o.set("y",r),Xw(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),Xw(r)&&(n.set("y",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,o,n){var i=t.getReferringComponents("singleAxis",ma).models[0];e.coordSysDims=["single"],o.set("single",i),Xw(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,o,n){var i=t.getReferringComponents("polar",ma).models[0],r=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],o.set("radius",r),o.set("angle",a),Xw(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),Xw(a)&&(n.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,o,n){e.coordSysDims=["lng","lat"]},parallel:function(t,e,o,n){var i=t.ecModel,r=i.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=r.dimensions.slice();tt(r.parallelAxisIndex,(function(t,r){var s=i.getComponent("parallelAxis",t),l=a[r];o.set(l,s),Xw(s)&&(n.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function Xw(t){return"category"===t.get("type")}function qw(t,e,o){var n,i,r,a=(o=o||{}).byIndex,s=o.stackedCoordDimension;!function(t){return!Tw(t.schema)}(e)?(i=e.schema,n=i.dimensions,r=e.store):n=e;var l,u,c,p,d=!(!t||!t.get("stack"));if(tt(n,(function(t,e){ct(t)&&(n[e]=t={name:t}),d&&!t.isExtraCoord&&(a||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||s&&s!==t.coordDim||(u=t))})),!u||a||l||(a=!0),u){c="__\0ecstackresult_"+t.id,p="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var h=u.coordDim,f=u.type,g=0;tt(n,(function(t){t.coordDim===h&&g++}));var v={name:c,coordDim:h,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},y={name:p,coordDim:p,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};i?(r&&(v.storeDimIndex=r.ensureCalculationDimension(p,f),y.storeDimIndex=r.ensureCalculationDimension(c,f)),i.appendCalculationDimension(v),i.appendCalculationDimension(y)):(n.push(v),n.push(y))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:p,stackResultDimension:c}}function Zw(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Qw(t,e){return Zw(t,e)?t.getCalculationInfo("stackResultDimension"):e}const Jw=function(t,e,o){o=o||{};var n,i=e.getSourceManager(),r=!1;t?(r=!0,n=sh(t)):r=(n=i.getSource()).sourceFormat===Kp;var a=function(t){var e=t.get("coordinateSystem"),o=new Yw(e),n=Kw[e];if(n)return n(t,o,o.axisMap,o.categoryAxisMap),o}(e),s=function(t,e){var o,n=t.get("coordinateSystem"),i=Rd.get(n);return e&&e.coordSysDims&&(o=et(e.coordSysDims,(function(t){var o={name:t},n=e.axisMap.get(t);if(n){var i=n.get("type");o.type=Sw(i)}return o}))),o||(o=i&&(i.getDimensionsInfo?i.getDimensionsInfo():i.dimensions.slice())||["x","y"]),o}(e,a),l=o.useEncodeDefaulter,u=ut(l)?l:l?st(id,s,e):null,c=Uw(n,{coordDimensions:s,generateCoord:o.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!r}),p=function(t,e,o){var n,i;return o&&tt(t,(function(t,r){var a=t.coordDim,s=o.categoryAxisMap.get(a);s&&(null==n&&(n=r),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==n||(t[n].otherDims.itemName=0),n}(c.dimensions,o.createInvertedIndices,a),d=r?null:i.getSharedDataStore(c),h=qw(e,{schema:c,store:d}),f=new zw(c,e);f.setCalculationInfo(h);var g=null!=p&&function(t){if(t.sourceFormat===Kp){var e=function(t){for(var e=0;ee[1]&&(e[1]=t[1])},t.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=t),isNaN(e)||(o[1]=e)},t.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},t.prototype.isBlank=function(){return this._isBlank},t.prototype.setBlank=function(t){this._isBlank=t},t}();Pa(tS);const eS=tS;var oS=0;function nS(t){return ht(t)&&null!=t.value?t.value:t+""}const iS=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++oS}return t.createByAxisModel=function(e){var o=e.option,n=o.data,i=n&&et(n,nS);return new t({categories:i,needCollect:!i,deduplication:!1!==o.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,o=this._needCollect;if(!ct(t)&&!o)return t;if(o&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var n=this._getOrCreateMap();return null==(e=n.get(t))&&(o?(e=this.categories.length,this.categories[e]=t,n.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Lt(this.categories))},t}();function rS(t){return"interval"===t.type||"log"===t.type}function aS(t){var e=Math.pow(10,jr(t)),o=t/e;return o?2===o?o=3:3===o?o=5:o*=2:o=1,Mr(o*e)}function sS(t){return Ir(t)+2}function lS(t,e,o){t[e]=Math.max(Math.min(t[e],o[1]),o[0])}function uS(t,e){return t>=e[0]&&t<=e[1]}function cS(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function pS(t,e){return t*(e[1]-e[0])+e[0]}var dS=function(t){function e(e){var o=t.call(this,e)||this;o.type="ordinal";var n=o.getSetting("ordinalMeta");return n||(n=new iS({})),lt(n)&&(n=new iS({categories:et(n,(function(t){return ht(t)?t.value:t}))})),o._ordinalMeta=n,o._extent=o.getSetting("extent")||[0,n.categories.length-1],o}return m(e,t),e.prototype.parse=function(t){return null==t?NaN:ct(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return uS(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return cS(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(pS(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,o=e[0];o<=e[1];)t.push({value:o}),o++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,o=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],i=0,r=this._ordinalMeta.categories.length,a=Math.min(r,e.length);i=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(eS);eS.registerClass(dS);const hS=dS;var fS=Mr,gS=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="interval",e._interval=0,e._intervalPrecision=2,e}return m(e,t),e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return uS(t,this._extent)},e.prototype.normalize=function(t){return cS(t,this._extent)},e.prototype.scale=function(t){return pS(t,this._extent)},e.prototype.setExtent=function(t,e){var o=this._extent;isNaN(t)||(o[0]=parseFloat(t)),isNaN(e)||(o[1]=parseFloat(e))},e.prototype.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1]),this.setExtent(e[0],e[1])},e.prototype.getInterval=function(){return this._interval},e.prototype.setInterval=function(t){this._interval=t,this._niceExtent=this._extent.slice(),this._intervalPrecision=sS(t)},e.prototype.getTicks=function(t){var e=this._interval,o=this._extent,n=this._niceExtent,i=this._intervalPrecision,r=[];if(!e)return r;o[0]1e4)return[];var s=r.length?r[r.length-1].value:n[1];return o[1]>s&&(t?r.push({value:fS(s+e,i)}):r.push({value:o[1]})),r},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),o=[],n=this.getExtent(),i=1;in[0]&&cn&&(a=i.interval=n);var s=i.intervalPrecision=sS(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),lS(t,0,e),lS(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(i.niceTickExtent=[Mr(Math.ceil(t[0]/a)*a,s),Mr(Math.floor(t[1]/a)*a,s)],t),i}(n,t,e,o);this._intervalPrecision=r.intervalPrecision,this._interval=r.interval,this._niceExtent=r.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var o=Math.abs(e[0]);t.fixMax||(e[1]+=o/2),e[0]-=o/2}else e[1]=1;var n=e[1]-e[0];isFinite(n)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var i=this._interval;t.fixMin||(e[0]=fS(Math.floor(e[0]/i)*i)),t.fixMax||(e[1]=fS(Math.ceil(e[1]/i)*i))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(eS);eS.registerClass(gS);const vS=gS;var yS="undefined"!=typeof Float32Array,mS=yS?Float32Array:Array;function CS(t){return lt(t)?yS?new Float32Array(t):t:new mS(t)}var wS="__ec_stack_";function SS(t){return t.get("stack")||wS+t.seriesIndex}function bS(t){return t.dim+t.index}function _S(t,e){var o=[];return e.eachSeriesByType(t,(function(t){RS(t)&&o.push(t)})),o}function xS(t){var e=function(t){var e={};tt(t,(function(t){var o=t.coordinateSystem.getBaseAxis();if("time"===o.type||"value"===o.type)for(var n=t.getData(),i=o.dim+"_"+o.index,r=n.getDimensionIndex(n.mapDimension(o.dim)),a=n.getStore(),s=0,l=a.count();s0&&(r=null===r?s:Math.min(r,s))}o[n]=r}}return o}(t),o=[];return tt(t,(function(t){var n,i=t.coordinateSystem.getBaseAxis(),r=i.getExtent();if("category"===i.type)n=i.getBandWidth();else if("value"===i.type||"time"===i.type){var a=i.dim+"_"+i.index,s=e[a],l=Math.abs(r[1]-r[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);n=s?l/c*s:l}else{var p=t.getData();n=Math.abs(r[1]-r[0])/p.count()}var d=Or(t.get("barWidth"),n),h=Or(t.get("barMaxWidth"),n),f=Or(t.get("barMinWidth")||(OS(t)?.5:1),n),g=t.get("barGap"),v=t.get("barCategoryGap");o.push({bandWidth:n,barWidth:d,barMaxWidth:h,barMinWidth:f,barGap:g,barCategoryGap:v,axisKey:bS(i),stackId:SS(t)})})),ES(o)}function ES(t){var e={};tt(t,(function(t,o){var n=t.axisKey,i=t.bandWidth,r=e[n]||{bandWidth:i,remainedWidth:i,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=r.stacks;e[n]=r;var s=t.stackId;a[s]||r.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var c=t.barMinWidth;c&&(a[s].minWidth=c);var p=t.barGap;null!=p&&(r.gap=p);var d=t.barCategoryGap;null!=d&&(r.categoryGap=d)}));var o={};return tt(e,(function(t,e){o[e]={};var n=t.stacks,i=t.bandWidth,r=t.categoryGap;if(null==r){var a=rt(n).length;r=Math.max(35-4*a,15)+"%"}var s=Or(r,i),l=Or(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,p=(u-s)/(c+(c-1)*l);p=Math.max(p,0),tt(n,(function(t){var e=t.maxWidth,o=t.minWidth;if(t.width)n=t.width,e&&(n=Math.min(n,e)),o&&(n=Math.max(n,o)),t.width=n,u-=n+l*n,c--;else{var n=p;e&&en&&(n=o),n!==p&&(t.width=n,u-=n+l*n,c--)}})),p=(u-s)/(c+(c-1)*l),p=Math.max(p,0);var d,h=0;tt(n,(function(t,e){t.width||(t.width=p),d=t,h+=t.width*(1+l)})),d&&(h-=d.width*l);var f=-h/2;tt(n,(function(t,n){o[e][n]=o[e][n]||{bandWidth:i,offset:f,width:t.width},f+=t.width*(1+l)}))})),o}function TS(t,e){var o=_S(t,e),n=xS(o);tt(o,(function(t){var e=t.getData(),o=t.coordinateSystem.getBaseAxis(),i=SS(t),r=n[bS(o)][i],a=r.offset,s=r.width;e.setLayout({bandWidth:r.bandWidth,offset:a,size:s})}))}function DS(t){return{seriesType:t,plan:Hf(),reset:function(t){if(RS(t)){var e=t.getData(),o=t.coordinateSystem,n=o.getBaseAxis(),i=o.getOtherAxis(n),r=e.getDimensionIndex(e.mapDimension(i.dim)),a=e.getDimensionIndex(e.mapDimension(n.dim)),s=t.get("showBackground",!0),l=e.mapDimension(i.dim),u=e.getCalculationInfo("stackResultDimension"),c=Zw(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),p=i.isHorizontal(),d=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,i),h=OS(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),v=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(t,e){for(var n,i=t.count,l=h&&CS(3*i),u=h&&s&&CS(3*i),m=h&&CS(i),C=o.master.getRect(),w=p?C.width:C.height,S=e.getStore(),b=0;null!=(n=t.next());){var _=S.get(c?g:r,n),x=S.get(a,n),E=d,T=void 0;c&&(T=+_-S.get(r,n));var D=void 0,R=void 0,O=void 0,M=void 0;if(p){var A=o.dataToPoint([_,x]);c&&(E=o.dataToPoint([T,x])[0]),D=E,R=A[1]+y,O=A[0]-E,M=v,Math.abs(O)0)for(var s=0;s=0;--s)if(l[u]){r=l[u];break}r=r||a.none}if(lt(r)){var c=null==t.level?0:t.level>=0?t.level:r.length+t.level;r=r[c=Math.min(c,r.length-1)]}}return ep(new Date(t.value),r,i,n)}(t,e,o,this.getSetting("locale"),n)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,o=[];if(!t)return o;o.push({value:e[0],level:0});var n=this.getSetting("useUTC"),i=function(t,e,o,n){var i,r=Qc,a=0;function s(t,e,o,i,r,a,s){for(var l=new Date(e),u=e,c=l[i]();u1&&0===u&&r.unshift({value:r[0].value-d})}}for(u=0;u=n[0]&&y<=n[1]&&p++)}var m=(n[1]-n[0])/e;if(p>1.5*m&&d>m/1.5)break;if(u.push(g),p>m||t===r[h])break}c=[]}}var C=nt(et(u,(function(t){return nt(t,(function(t){return t.value>=n[0]&&t.value<=n[1]&&!t.notAdd}))})),(function(t){return t.length>0})),w=[],S=C.length-1;for(h=0;ho&&(this._approxInterval=o);var r=AS.length,a=Math.min(function(t,e,o,n){for(;o>>1;t[i][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function PS(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function LS(t){return(t/=Uc)>12?12:t>6?6:t>3.5?4:t>2?2:1}function NS(t,e){return(t/=e?jc:zc)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function FS(t){return Ur(t,!0)}function kS(t,e,o){var n=new Date(t);switch(tp(e)){case"year":case"month":n[dp(o)](0);case"day":n[hp(o)](1);case"hour":n[fp(o)](0);case"minute":n[gp(o)](0);case"second":n[vp(o)](0),n[yp(o)](0)}return n.getTime()}eS.registerClass(MS);const GS=MS;var VS=eS.prototype,HS=vS.prototype,BS=Mr,WS=Math.floor,zS=Math.ceil,jS=Math.pow,US=Math.log,$S=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new vS,e._interval=0,e}return m(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,o=this._extent,n=e.getExtent();return et(HS.getTicks.call(this,t),(function(t){var e=t.value,i=Mr(jS(this.base,e));return i=e===o[0]&&this._fixMin?KS(i,n[0]):i,{value:i=e===o[1]&&this._fixMax?KS(i,n[1]):i}}),this)},e.prototype.setExtent=function(t,e){var o=US(this.base);t=US(Math.max(0,t))/o,e=US(Math.max(0,e))/o,HS.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=VS.getExtent.call(this);e[0]=jS(t,e[0]),e[1]=jS(t,e[1]);var o=this._originalScale.getExtent();return this._fixMin&&(e[0]=KS(e[0],o[0])),this._fixMax&&(e[1]=KS(e[1],o[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=US(t[0])/US(e),t[1]=US(t[1])/US(e),VS.unionExtent.call(this,t)},e.prototype.unionExtentFromData=function(t,e){this.unionExtent(t.getApproximateExtent(e))},e.prototype.calcNiceTicks=function(t){t=t||10;var e=this._extent,o=e[1]-e[0];if(!(o===1/0||o<=0)){var n=zr(o);for(t/o*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var i=[Mr(zS(e[0]/n)*n),Mr(WS(e[1]/n)*n)];this._interval=n,this._niceExtent=i}},e.prototype.calcNiceExtent=function(t){HS.calcNiceExtent.call(this,t),this._fixMin=t.fixMin,this._fixMax=t.fixMax},e.prototype.parse=function(t){return t},e.prototype.contain=function(t){return uS(t=US(t)/US(this.base),this._extent)},e.prototype.normalize=function(t){return cS(t=US(t)/US(this.base),this._extent)},e.prototype.scale=function(t){return t=pS(t,this._extent),jS(this.base,t)},e.type="log",e}(eS),YS=$S.prototype;function KS(t,e){return BS(t,Ir(e))}YS.getMinorTicks=HS.getMinorTicks,YS.getLabel=HS.getLabel,eS.registerClass($S);const XS=$S;var qS=function(){function t(t,e,o){this._prepareParams(t,e,o)}return t.prototype._prepareParams=function(t,e,o){o[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var p=this._determinedMin,d=this._determinedMax;return null!=p&&(a=p,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:c}},t.prototype.modifyDataMinMax=function(t,e){this[QS[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[ZS[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),ZS={min:"_determinedMin",max:"_determinedMax"},QS={min:"_dataMin",max:"_dataMax"};function JS(t,e,o){var n=t.rawExtentInfo;return n||(n=new qS(t,e,o),t.rawExtentInfo=n,n)}function tb(t,e){return null==e?null:wt(e)?NaN:t.parse(e)}function eb(t,e){var o=t.type,n=JS(t,e,t.getExtent()).calculate();t.setBlank(n.isBlank);var i=n.min,r=n.max,a=e.ecModel;if(a&&"time"===o){var s=_S("bar",a),l=!1;if(tt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=xS(s),c=function(t,e,o,n){var i=o.axis.getExtent(),r=i[1]-i[0],a=function(t,e,o){if(t&&e){var n=t[bS(e)];return n}}(n,o.axis);if(void 0===a)return{min:t,max:e};var s=1/0;tt(a,(function(t){s=Math.min(t.offset,s)}));var l=-1/0;tt(a,(function(t){l=Math.max(t.offset+t.width,l)})),s=Math.abs(s),l=Math.abs(l);var u=s+l,c=e-t,p=c/(1-(s+l)/r)-c;return{min:t-=p*(s/u),max:e+=p*(l/u)}}(i,r,e,u);i=c.min,r=c.max}}return{extent:[i,r],fixMin:n.minFixed,fixMax:n.maxFixed}}function ob(t,e){var o=e,n=eb(t,o),i=n.extent,r=o.get("splitNumber");t instanceof XS&&(t.base=o.get("logBase"));var a=t.type,s=o.get("interval"),l="interval"===a||"time"===a;t.setExtent(i[0],i[1]),t.calcNiceExtent({splitNumber:r,fixMin:n.fixMin,fixMax:n.fixMax,minInterval:l?o.get("minInterval"):null,maxInterval:l?o.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function nb(t,e){if(e=e||t.get("type"))switch(e){case"category":return new hS({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new GS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(eS.getClass(e)||vS)}}function ib(t){var e,o,n=t.getLabelModel().get("formatter"),i="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(o=n,function(e,n){return t.scale.getFormattedLabel(e,n,o)}):ct(n)?function(e){return function(o){var n=t.scale.getLabel(o);return e.replace("{value}",null!=n?n:"")}}(n):ut(n)?(e=n,function(o,n){return null!=i&&(n=o.value-i),e(rb(t,o),n,null!=o.level?{level:o.level}:null)}):function(e){return t.scale.getLabel(e)}}function rb(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function ab(t,e){var o=e*Math.PI/180,n=t.width,i=t.height,r=n*Math.abs(Math.cos(o))+Math.abs(i*Math.sin(o)),a=n*Math.abs(Math.sin(o))+Math.abs(i*Math.cos(o));return new ao(t.x,t.y,r,a)}function sb(t){var e=t.get("interval");return null==e?"auto":e}function lb(t){return"category"===t.type&&0===sb(t.getLabelModel())}function ub(t,e){var o={};return tt(t.mapDimensionsAll(e),(function(e){o[Qw(t,e)]=!0})),rt(o)}var cb=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function pb(t){return Jw(null,t)}var db={isDimensionStacked:Zw,enableDataStack:qw,getStackedDimension:Qw};function hb(t,e){var o=e;e instanceof Ac||(o=new Ac(e));var n=nb(o);return n.setExtent(t[0],t[1]),ob(n,o),n}function fb(t){Q(t,cb)}function gb(t,e){return sc(t,null,null,"normal"!==(e=e||{}).state)}var vb=1e-8;function yb(t,e){return Math.abs(t-e)o&&(t=i,o=a)}if(t)return function(t){for(var e=0,o=0,n=0,i=t.length,r=t[i-1][0],a=t[i-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),i=s+=i,r=l+=r,n.push([s/o,l/o])}return n}function Ob(t,e){return et(nt((t=function(t){if(!t.UTF8Encoding)return t;var e=t,o=e.UTF8Scale;return null==o&&(o=1024),tt(e.features,(function(t){var e=t.geometry,n=e.encodeOffsets,i=e.coordinates;if(n)switch(e.type){case"LineString":e.coordinates=Rb(i,n,o);break;case"Polygon":case"MultiLineString":Db(i,n,o);break;case"MultiPolygon":tt(i,(function(t,e){return Db(t,n[e],o)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var o=t.properties,n=t.geometry,i=[];switch(n.type){case"Polygon":var r=n.coordinates;i.push(new _b(r[0],r.slice(1)));break;case"MultiPolygon":tt(n.coordinates,(function(t){t[0]&&i.push(new _b(t[0],t.slice(1)))}));break;case"LineString":i.push(new xb([n.coordinates]));break;case"MultiLineString":i.push(new xb(n.coordinates))}var a=new Eb(o[e||"name"],i,o.cp);return a.properties=o,a}))}function Mb(t,e,o,n,i,r,a,s){return new Bl({style:{text:t,font:e,align:o,verticalAlign:n,padding:i,rich:r,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Ab=fa();function Ib(t,e){var o,n,i=Pb(t,"labels"),r=sb(e);return Lb(i,r)||(ut(r)?o=kb(t,r):(n="auto"===r?function(t){var e=Ab(t).autoInterval;return null!=e?e:Ab(t).autoInterval=t.calculateCategoryInterval()}(t):r,o=Fb(t,n)),Nb(i,r,{labels:o,labelCategoryInterval:n}))}function Pb(t,e){return Ab(t)[e]||(Ab(t)[e]=[])}function Lb(t,e){for(var o=0;o1&&c/l>2&&(u=Math.round(Math.ceil(u/l)*l));var p=lb(t),d=a.get("showMinLabel")||p,h=a.get("showMaxLabel")||p;d&&u!==r[0]&&g(r[0]);for(var f=u;f<=r[1];f+=l)g(f);function g(t){var e={value:t};s.push(o?t:{formattedLabel:n(e),rawLabel:i.getLabel(e),tickValue:t})}return h&&f-l!==r[1]&&g(r[1]),s}function kb(t,e,o){var n=t.scale,i=ib(t),r=[];return tt(n.getTicks(),(function(t){var a=n.getLabel(t),s=t.value;e(t.value,a)&&r.push(o?s:{formattedLabel:i(t),rawLabel:a,tickValue:s})})),r}var Gb=[0,1],Vb=function(){function t(t,e,o){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=o||[0,0]}return t.prototype.contain=function(t){var e=this._extent,o=Math.min(e[0],e[1]),n=Math.max(e[0],e[1]);return t>=o&&t<=n},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return Lr(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var o=this._extent;o[0]=t,o[1]=e},t.prototype.dataToCoord=function(t,e){var o=this._extent,n=this.scale;return t=n.normalize(t),this.onBand&&"ordinal"===n.type&&Hb(o=o.slice(),n.count()),Rr(t,Gb,o,e)},t.prototype.coordToData=function(t,e){var o=this._extent,n=this.scale;this.onBand&&"ordinal"===n.type&&Hb(o=o.slice(),n.count());var i=Rr(t,o,Gb,e);return this.scale.scale(i)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),o=et(function(t,e){return"category"===t.type?function(t,e){var o,n,i=Pb(t,"ticks"),r=sb(e),a=Lb(i,r);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(o=[]),ut(r))o=kb(t,r,!0);else if("auto"===r){var s=Ib(t,t.getLabelModel());n=s.labelCategoryInterval,o=et(s.labels,(function(t){return t.tickValue}))}else o=Fb(t,n=r,!0);return Nb(i,r,{ticks:o,tickCategoryInterval:n})}(t,e):{ticks:et(t.scale.getTicks(),(function(t){return t.value}))}}(this,e).ticks,(function(t){return{coord:this.dataToCoord("ordinal"===this.scale.type?this.scale.getRawOrdinalNumber(t):t),tickValue:t}}),this);return function(t,e,o,n){var i=e.length;if(t.onBand&&!o&&i){var r,a,s=t.getExtent();if(1===i)e[0].coord=s[0],r=e[1]={coord:s[0]};else{var l=e[i-1].tickValue-e[0].tickValue,u=(e[i-1].coord-e[0].coord)/l;tt(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[i-1].tickValue,r={coord:e[i-1].coord+u*a},e.push(r)}var c=s[0]>s[1];p(e[0].coord,s[0])&&(n?e[0].coord=s[0]:e.shift()),n&&p(s[0],e[0].coord)&&e.unshift({coord:s[0]}),p(s[1],r.coord)&&(n?r.coord=s[1]:e.pop()),n&&p(r.coord,s[1])&&e.push({coord:s[1]})}function p(t,e){return t=Mr(t),e=Mr(e),c?t>e:t0&&t<100||(t=5),et(this.scale.getMinorTicks(t),(function(t){return et(t,(function(t){return{coord:this.dataToCoord(t),tickValue:t}}),this)}),this)},t.prototype.getViewLabels=function(){return(t=this,"category"===t.type?function(t){var e=t.getLabelModel(),o=Ib(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:o.labelCategoryInterval}:o}(t):function(t){var e=t.scale.getTicks(),o=ib(t);return{labels:et(e,(function(e,n){return{level:e.level,formattedLabel:o(e,n),rawLabel:t.scale.getLabel(e),tickValue:e.value}}))}}(t)).labels;var t},t.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},t.prototype.getTickModel=function(){return this.model.getModel("axisTick")},t.prototype.getBandWidth=function(){var t=this._extent,e=this.scale.getExtent(),o=e[1]-e[0]+(this.onBand?1:0);0===o&&(o=1);var n=Math.abs(t[1]-t[0]);return Math.abs(n)/o},t.prototype.calculateCategoryInterval=function(){return function(t){var e=function(t){var e=t.getLabelModel();return{axisRotate:t.getRotate?t.getRotate():t.isHorizontal&&!t.isHorizontal()?90:0,labelRotate:e.get("rotate")||0,font:e.getFont()}}(t),o=ib(t),n=(e.axisRotate-e.labelRotate)/180*Math.PI,i=t.scale,r=i.getExtent(),a=i.count();if(r[1]-r[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=r[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),c=Math.abs(u*Math.cos(n)),p=Math.abs(u*Math.sin(n)),d=0,h=0;l<=r[1];l+=s){var f,g,v=Qi(o({value:l}),e.font,"center","top");f=1.3*v.width,g=1.3*v.height,d=Math.max(d,f,7),h=Math.max(h,g,7)}var y=d/c,m=h/p;isNaN(y)&&(y=1/0),isNaN(m)&&(m=1/0);var C=Math.max(0,Math.floor(Math.min(y,m))),w=Ab(t.model),S=t.getExtent(),b=w.lastAutoInterval,_=w.lastTickCount;return null!=b&&null!=_&&Math.abs(b-C)<=1&&Math.abs(_-a)<=1&&b>C&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?C=b:(w.lastTickCount=a,w.lastAutoInterval=C,w.axisExtent0=S[0],w.axisExtent1=S[1]),C}(this)},t}();function Hb(t,e){var o=(t[1]-t[0])/e/2;t[0]+=o,t[1]-=o}const Bb=Vb;function Wb(t){var e=zp.extend(t);return zp.registerClass(e),e}function zb(t){var e=Vf.extend(t);return Vf.registerClass(e),e}function jb(t){var e=kf.extend(t);return kf.registerClass(e),e}function Ub(t){var e=Kv.extend(t);return Kv.registerClass(e),e}var $b=2*Math.PI,Yb=zs.CMD,Kb=["top","right","bottom","left"];function Xb(t,e,o,n,i){var r=o.width,a=o.height;switch(t){case"top":n.set(o.x+r/2,o.y-e),i.set(0,-1);break;case"bottom":n.set(o.x+r/2,o.y+a+e),i.set(0,1);break;case"left":n.set(o.x-e,o.y+a/2),i.set(-1,0);break;case"right":n.set(o.x+r+e,o.y+a/2),i.set(1,0)}}function qb(t,e,o,n,i,r,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),c=(a/=u)*o+t,p=(s/=u)*o+e;if(Math.abs(n-i)%$b<1e-4)return l[0]=c,l[1]=p,u-o;if(r){var d=n;n=Ks(i),i=Ks(d)}else n=Ks(n),i=Ks(i);n>i&&(i+=$b);var h=Math.atan2(s,a);if(h<0&&(h+=$b),h>=n&&h<=i||h+$b>=n&&h+$b<=i)return l[0]=c,l[1]=p,u-o;var f=o*Math.cos(n)+t,g=o*Math.sin(n)+e,v=o*Math.cos(i)+t,y=o*Math.sin(i)+e,m=(f-a)*(f-a)+(g-s)*(g-s),C=(v-a)*(v-a)+(y-s)*(y-s);return m0){e=e/180*Math.PI,o_.fromArray(t[0]),n_.fromArray(t[1]),i_.fromArray(t[2]),qe.sub(r_,o_,n_),qe.sub(a_,i_,n_);var o=r_.len(),n=a_.len();if(!(o<.001||n<.001)){r_.scale(1/o),a_.scale(1/n);var i=r_.dot(a_);if(Math.cos(e)1&&qe.copy(u_,i_),u_.toArray(t[1])}}}}function p_(t,e,o){if(o<=180&&o>0){o=o/180*Math.PI,o_.fromArray(t[0]),n_.fromArray(t[1]),i_.fromArray(t[2]),qe.sub(r_,n_,o_),qe.sub(a_,i_,n_);var n=r_.len(),i=a_.len();if(!(n<.001||i<.001)&&(r_.scale(1/n),a_.scale(1/i),r_.dot(e)=a)qe.copy(u_,i_);else{u_.scaleAndAdd(a_,r/Math.tan(Math.PI/2-s));var l=i_.x!==n_.x?(u_.x-n_.x)/(i_.x-n_.x):(u_.y-n_.y)/(i_.y-n_.y);if(isNaN(l))return;l<0?qe.copy(u_,n_):l>1&&qe.copy(u_,i_)}u_.toArray(t[1])}}}function d_(t,e,o,n){var i="normal"===o,r=i?t:t.ensureState(o);r.ignore=e;var a=n.get("smooth");a&&!0===a&&(a=.3),r.shape=r.shape||{},a>0&&(r.shape.smooth=a);var s=n.getModel("lineStyle").getLineStyle();i?t.useStyle(s):r.style=s}function h_(t,e){var o=e.smooth,n=e.points;if(n)if(t.moveTo(n[0][0],n[0][1]),o>0&&n.length>=3){var i=ie(n[0],n[1]),r=ie(n[1],n[2]);if(!i||!r)return t.lineTo(n[1][0],n[1][1]),void t.lineTo(n[2][0],n[2][1]);var a=Math.min(i,r)*o,s=le([],n[1],n[0],a/i),l=le([],n[1],n[2],a/r),u=le([],s,l,.5);t.bezierCurveTo(s[0],s[1],s[0],s[1],u[0],u[1]),t.bezierCurveTo(l[0],l[1],l[0],l[1],n[2][0],n[2][1])}else for(var c=1;c0&&r&&b(-p/a,0,a);var v,y,m=t[0],C=t[a-1];return w(),v<0&&_(-v,.8),y<0&&_(y,.8),w(),S(v,y,1),S(y,v,-1),w(),v<0&&x(-v),y<0&&x(y),u}function w(){v=m.rect[e]-n,y=i-C.rect[e]-C.rect[o]}function S(t,e,o){if(t<0){var n=Math.min(e,-t);if(n>0){b(n*o,0,a);var i=n+t;i<0&&_(-i*o,1)}else _(-t*o,1)}}function b(o,n,i){0!==o&&(u=!0);for(var r=n;r0)for(l=0;l0;l--)b(-r[l-1]*p,l,a)}}function x(t){var e=t<0?-1:1;t=Math.abs(t);for(var o=Math.ceil(t/(a-1)),n=0;n0?b(o,0,n+1):b(-o,a-n-1,a),(t-=o)<=0)return}}function m_(t,e,o,n){return y_(t,"y","height",e,o,n)}function C_(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var o=new ao(0,0,0,0);function n(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var i=0;i=0&&o.attr(h.oldLayoutSelect),q(u,"emphasis")>=0&&o.attr(h.oldLayoutEmphasis)),Xu(o,s,e,a)}else if(o.attr(s),!fc(o).valueAnimation){var c=bt(o.style.opacity,1);o.style.opacity=0,qu(o,{style:{opacity:c}},e,a)}if(h.oldLayout=s,o.states.select){var p=h.oldLayoutSelect={};T_(p,s,D_),T_(p,o.states.select,D_)}if(o.states.emphasis){var d=h.oldLayoutEmphasis={};T_(d,s,D_),T_(d,o.states.emphasis,D_)}vc(o,a,l,e,e)}if(n&&!n.ignore&&!n.invisible){i=(h=E_(n)).oldLayout;var h,f={points:n.shape.points};i?(n.attr({shape:i}),Xu(n,{shape:f},e)):(n.setShape(f),n.style.strokePercent=0,qu(n,{style:{strokePercent:1}},e)),h.oldLayout=f}},t}();const O_=R_;var M_=fa();function A_(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,o){var n=M_(e).labelManager;n||(n=M_(e).labelManager=new O_),n.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,o){var n=M_(e).labelManager;o.updatedSeries.forEach((function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()}))}function I_(t,e,o){var n=R.createCanvas(),i=e.getWidth(),r=e.getHeight(),a=n.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=i+"px",a.height=r+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*o,n.height=r*o,n}fw(A_);var P_=function(t){function e(e,o,n){var i,r=t.call(this)||this;r.motionBlur=!1,r.lastFrameAlpha=.7,r.dpr=1,r.virtual=!1,r.config={},r.incremental=!1,r.zlevel=0,r.maxRepaintRectCount=5,r.__dirty=!0,r.__firstTimePaint=!0,r.__used=!1,r.__drawIndex=0,r.__startIndex=0,r.__endIndex=0,r.__prevStartIndex=null,r.__prevEndIndex=null,n=n||Fi,"string"==typeof e?i=I_(e,o,n):ht(e)&&(e=(i=e).id),r.id=e,r.dom=i;var a=i.style;return a&&(kt(i),i.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),r.painter=o,r.dpr=n,r}return m(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=I_("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,o,n){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var i,r=[],a=this.maxRepaintRectCount,s=!1,l=new ao(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===r.length)(e=new ao(0,0,0,0)).copy(t),r.push(e);else{for(var e,o=!1,n=1/0,i=0,u=0;u=a)}}for(var c=this.__startIndex;c15)break}o.prevElClipPaths&&p.restore()};if(h)if(0===h.length)s=l.__endIndex;else for(var w=d.dpr,S=0;S0&&t>n[0]){for(s=0;st);s++);a=o[n[s]]}if(n.splice(s+1,0,t),o[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?r.insertBefore(e.dom,l.nextSibling):r.appendChild(e.dom)}else r.firstChild?r.insertBefore(e.dom,r.firstChild):r.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var o=this._zlevelList,n=0;n0?k_:0),this._needsManuallyCompositing),u.__builtin__||z("ZLevel "+l+" has been used by unkown layer "+u.id),u!==r&&(u.__used=!0,u.__startIndex!==i&&(u.__dirty=!0),u.__startIndex=i,u.incremental?u.__drawIndex=-1:u.__drawIndex=i,e(i),r=u),s.__dirty&Eo&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=i))}e(i),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,tt(this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var o=this._layerConfig;o[t]?U(o[t],e,!0):o[t]=e;for(var n=0;n=z_:-u>=z_),h=u>0?u%z_:u%z_+z_;l=!!d||!Bn(p)&&h>=W_==!!c;var f=t+o*B_(r),g=e+n*H_(r);this._start&&this._add("M",f,g);var v=Math.round(i*j_);if(d){var y=1/this._p,m=(c?1:-1)*(z_-y);this._add("A",o,n,v,1,+c,t+o*B_(r+m),e+n*H_(r+m)),y>.01&&this._add("A",o,n,v,0,+c,f,g)}else{var C=t+o*B_(a),w=e+n*H_(a);this._add("A",o,n,v,+l,+c,C,w)}},t.prototype.rect=function(t,e,o,n){this._add("M",t,e),this._add("l",o,0),this._add("l",0,n),this._add("l",-o,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,o,n,i,r,a,s,l){for(var u=[],c=this._p,p=1;p"}(i,e.attrs)+Te(e.text)+(n?""+o+et(n,(function(e){return t(e)})).join(o)+o:"")+""}(t)}function ix(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function rx(t,e,o,n){return ox("svg","root",{width:t,height:e,xmlns:Z_,"xmlns:xlink":Q_,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},o)}var ax={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},sx="transform-origin";function lx(t,e,o){var n=Y({},t.shape);Y(n,e),t.buildPath(o,n);var i=new $_;return i.reset(Zn(t)),o.rebuildPath(i,1),i.generateStr(),i.getStr()}function ux(t,e){var o=e.originX,n=e.originY;(o||n)&&(t[sx]=o+"px "+n+"px")}var cx={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function px(t,e){var o=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[o]=t,o}function dx(t){return ct(t)?ax[t]?"cubic-bezier("+ax[t]+")":sn(t)?t:"":""}function hx(t,e,o,n){var i=t.animators,r=i.length,a=[];if(t instanceof Zg){var s=function(t,e,o){var n,i,r=t.shape.paths,a={};if(tt(r,(function(t){var e=ix(o.zrId);e.animation=!0,hx(t,{},e,!0);var r=e.cssAnims,s=e.cssNodes,l=rt(r),u=l.length;if(u){var c=r[i=l[u-1]];for(var p in c){var d=c[p];a[p]=a[p]||{d:""},a[p].d+=d.d||""}for(var h in s){var f=s[h].animation;f.indexOf(i)>=0&&(n=f)}}})),n){e.d=!1;var s=px(a,o);return n.replace(i,s)}}(t,e,o);if(s)a.push(s);else if(!r)return}else if(!r)return;for(var l={},u=0;u0})).length)return px(c,o)+" "+i[0]+" both"}for(var v in l)(s=g(l[v]))&&a.push(s);if(a.length){var y=o.zrId+"-cls-"+o.cssClassIdx++;o.cssNodes["."+y]={animation:a.join(",")},e.class=y}}var fx=Math.round;function gx(t){return t&&ct(t.src)}function vx(t){return t&&ut(t.toDataURL)}function yx(t,e,o,n){(function(t,e,o,n){var i=null==e.opacity?1:e.opacity;if(o instanceof yl)t("opacity",i);else{if(function(t){var e=t.fill;return null!=e&&e!==Y_}(e)){var r=Vn(e.fill);t("fill",r.color);var a=null!=e.fillOpacity?e.fillOpacity*r.opacity*i:r.opacity*i;(n||a<1)&&t("fill-opacity",a)}else t("fill",Y_);if(function(t){var e=t.stroke;return null!=e&&e!==Y_}(e)){var s=Vn(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?o.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*i:s.opacity*i,p=e.strokeFirst;if((n||1!==u)&&t("stroke-width",u),(n||p)&&t("paint-order",p?"stroke":"fill"),(n||c<1)&&t("stroke-opacity",c),e.lineDash){var d=pm(o),h=d[0],f=d[1];h&&(f=K_(f||0),t("stroke-dasharray",h.join(",")),(f||n)&&t("stroke-dashoffset",f))}else n&&t("stroke-dasharray",Y_);for(var g=0;gl?$x(t,null==o[p+1]?null:o[p+1].elm,o,s,p):Yx(t,e,a,l))}(o,n,i):Wx(i)?(Wx(t.text)&&kx(o,""),$x(o,null,i,0,i.length-1)):Wx(n)?Yx(o,n,0,n.length-1):Wx(t.text)&&kx(o,""):t.text!==e.text&&(Wx(n)&&Yx(o,n,0,n.length-1),kx(o,e.text)))}var qx=0,Zx=function(){function t(t,e,o){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=o=Y({},o),this.root=t,this._id="zr"+qx++,this._oldVNode=rx(o.width,o.height),t&&!o.ssr){var n=this._viewport=document.createElement("div");n.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=ex("svg");Kx(null,this._oldVNode),n.appendChild(i),t.appendChild(n)}this.resize(o.width,o.height)}return t.prototype.getType=function(){return this.type},t.prototype.getViewportRoot=function(){return this._viewport},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.getSvgDom=function(){return this._svgDom},t.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",function(t,e){if(jx(t,e))Xx(t,e);else{var o=t.elm,n=Nx(o);Ux(e),null!==n&&(Ix(n,e.elm,Fx(o)),Yx(n,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return Dx(t,ix(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),o=this._width,n=this._height,i=ix(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var r=[],a=this._bgVNode=function(t,e,o,n){var i;if(o&&"none"!==o)if(i=ox("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Xn(o))Rx({fill:o},i.attrs,"fill",n);else if($n(o))Ox({style:{fill:o},dirty:Vt,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var r=Vn(o),a=r.color,s=r.opacity;i.attrs.fill=a,s<1&&(i.attrs["fill-opacity"]=s)}return i}(o,n,this._backgroundColor,i);a&&r.push(a);var s=t.compress?null:this._mainVNode=ox("g","main",{},[]);this._paintList(e,i,s?s.children:r),s&&r.push(s);var l=et(rt(i.defs),(function(t){return i.defs[t]}));if(l.length&&r.push(ox("defs","defs",{},l)),t.animation){var u=function(t,e,o){var n=(o=o||{}).newline?"\n":"",i=" {"+n,r=n+"}",a=et(rt(t),(function(e){return e+i+et(rt(t[e]),(function(o){return o+":"+t[e][o]+";"})).join(n)+r})).join(n),s=et(rt(e),(function(t){return"@keyframes "+t+i+et(rt(e[t]),(function(o){return o+i+et(rt(e[t][o]),(function(n){var i=e[t][o][n];return"d"===n&&(i='path("'+i+'")'),n+":"+i+";"})).join(n)+r})).join(n)+r})).join(n);return a||s?[""].join(n):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=ox("style","stl",{},[],u);r.push(c)}}return rx(o,n,r,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},nx(this.renderToVNode({animation:bt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:bt(t.useViewBox,!0)}),{newline:!0})},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t},t.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},t.prototype._paintList=function(t,e,o){for(var n,i,r=t.length,a=[],s=0,l=0,u=0;u=0&&(!p||!i||p[f]!==i[f]);f--);for(var g=h-1;g>f;g--)n=a[--s-1];for(var v=f+1;v-1&&(s.style.stroke=s.style.fill,s.style.fill="#fff",s.style.lineWidth=2),e},e.type="series.line",e.dependencies=["grid","polar"],e.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},e}(kf);function tE(t,e){var o=t.mapDimensionsAll("defaultedLabel"),n=o.length;if(1===n){var i=_h(t,e,o[0]);return null!=i?i+"":null}if(n){for(var r=[],a=0;a=0&&n.push(e[r])}return n.join(" ")}var oE=function(t){function e(e,o,n,i){var r=t.call(this)||this;return r.updateData(e,o,n,i),r}return m(e,t),e.prototype._createSymbol=function(t,e,o,n,i){this.removeAll();var r=im(t,-1,-1,2,2,null,i);r.attr({z2:100,culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),r.drift=nE,this._symbolType=t,this.add(r)},e.prototype.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(null,t)},e.prototype.getSymbolType=function(){return this._symbolType},e.prototype.getSymbolPath=function(){return this.childAt(0)},e.prototype.highlight=function(){_u(this.childAt(0))},e.prototype.downplay=function(){xu(this.childAt(0))},e.prototype.setZ=function(t,e){var o=this.childAt(0);o.zlevel=t,o.z=e},e.prototype.setDraggable=function(t,e){var o=this.childAt(0);o.draggable=t,o.cursor=!e&&t?"move":o.cursor},e.prototype.updateData=function(t,o,n,i){this.silent=!1;var r=t.getItemVisual(o,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,o),l=r!==this._symbolType,u=i&&i.disableAnimation;if(l){var c=t.getItemVisual(o,"symbolKeepAspect");this._createSymbol(r,t,o,s,c)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(p):Xu(d,p,a,o),ec(d)}if(this._updateCommon(t,o,s,n,i),l){var d=this.childAt(0);u||(p={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,qu(d,p,a,o))}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,o,n,i){var r,a,s,l,u,c,p,d,h,f=this.childAt(0),g=t.hostModel;if(n&&(r=n.emphasisItemStyle,a=n.blurItemStyle,s=n.selectItemStyle,l=n.focus,u=n.blurScope,p=n.labelStatesModels,d=n.hoverScale,h=n.cursorStyle,c=n.emphasisDisabled),!n||t.hasItemOption){var v=n&&n.itemModel?n.itemModel:t.getItemModel(e),y=v.getModel("emphasis");r=y.getModel("itemStyle").getItemStyle(),s=v.getModel(["select","itemStyle"]).getItemStyle(),a=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),p=ac(v),d=y.getShallow("scale"),h=v.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var C=am(t.getItemVisual(e,"symbolOffset"),o);C&&(f.x=C[0],f.y=C[1]),h&&f.attr("cursor",h);var w=t.getItemVisual(e,"style"),S=w.fill;if(f instanceof yl){var b=f.style;f.useStyle(Y({image:b.image,x:b.x,y:b.y,width:b.width,height:b.height},w))}else f.__isEmptyBrush?f.useStyle(Y({},w)):f.useStyle(w),f.style.decal=null,f.setColor(S,i&&i.symbolInnerColor),f.style.strokeNoScale=!0;var _=t.getItemVisual(e,"liftZ"),x=this._z2;null!=_?null==x&&(this._z2=f.z2,f.z2+=_):null!=x&&(f.z2=x,this._z2=null);var E=i&&i.useNameLabel;rc(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return E?t.getName(e):tE(t,e)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=o[0]/2,this._sizeY=o[1]/2;var T=f.ensureState("emphasis");T.style=r,f.ensureState("select").style=s,f.ensureState("blur").style=a;var D=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;T.scaleX=this._sizeX*D,T.scaleY=this._sizeY*D,this.setSymbolScale(1),ku(this,l,u,c)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,o){var n=this.childAt(0),i=Wl(this).dataIndex,r=o&&o.animation;if(this.silent=n.silent=!0,o&&o.fadeLabel){var a=n.getTextContent();a&&Qu(a,{style:{opacity:0}},e,{dataIndex:i,removeOpt:r,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Qu(n,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:i,cb:t,removeOpt:r})},e.getSymbolSize=function(t,e){return rm(t.getItemVisual(e,"symbolSize"))},e}(vr);function nE(t,e){this.parent.drift(t,e)}const iE=oE;function rE(t,e,o,n){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(n.isIgnore&&n.isIgnore(o))&&!(n.clipShape&&!n.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(o,"symbol")}function aE(t){return null==t||ht(t)||(t={isIgnore:t}),t||{}}function sE(t){var e=t.hostModel,o=e.getModel("emphasis");return{emphasisItemStyle:o.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:o.get("focus"),blurScope:o.get("blurScope"),emphasisDisabled:o.get("disabled"),hoverScale:o.get("scale"),labelStatesModels:ac(e),cursorStyle:e.get("cursor")}}var lE=function(){function t(t){this.group=new vr,this._SymbolCtor=t||iE}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=aE(e);var o=this.group,n=t.hostModel,i=this._data,r=this._SymbolCtor,a=e.disableAnimation,s=sE(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||o.removeAll(),t.diff(i).add((function(n){var i=u(n);if(rE(t,i,n,e)){var a=new r(t,n,s,l);a.setPosition(i),t.setItemGraphicEl(n,a),o.add(a)}})).update((function(c,p){var d=i.getItemGraphicEl(p),h=u(c);if(rE(t,h,c,e)){var f=t.getItemVisual(c,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)o.remove(d),(d=new r(t,c,s,l)).setPosition(h);else{d.updateData(t,c,s,l);var v={x:h[0],y:h[1]};a?d.attr(v):Xu(d,v,n)}o.add(d),t.setItemGraphicEl(c,d)}else o.remove(d)})).remove((function(t){var e=i.getItemGraphicEl(t);e&&e.fadeOut((function(){o.remove(e)}),n)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,o){var n=t._getSymbolPoint(o);e.setPosition(n),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=sE(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,o){function n(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],o=aE(o);for(var i=t.start;i0?o=n[0]:n[1]<0&&(o=n[1]),o}(i,o),a=n.dim,s=i.dim,l=e.mapDimension(s),u=e.mapDimension(a),c="x"===s||"radius"===s?1:0,p=et(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,h=e.getCalculationInfo("stackResultDimension");return Zw(e,p[0])&&(d=!0,p[0]=h),Zw(e,p[1])&&(d=!0,p[1]=h),{dataDimsForPoint:p,valueStart:r,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function pE(t,e,o,n){var i=NaN;t.stacked&&(i=o.get(o.getCalculationInfo("stackedOverDimension"),n)),isNaN(i)&&(i=t.valueStart);var r=t.baseDataOffset,a=[];return a[r]=o.get(t.baseDim,n),a[1-r]=i,e.dataToPoint(a)}var dE=Math.min,hE=Math.max;function fE(t,e){return isNaN(t)||isNaN(e)}function gE(t,e,o,n,i,r,a,s,l){for(var u,c,p,d,h,f,g=o,v=0;v=i||g<0)break;if(fE(y,m)){if(l){g+=r;continue}break}if(g===o)t[r>0?"moveTo":"lineTo"](y,m),p=y,d=m;else{var C=y-u,w=m-c;if(C*C+w*w<.5){g+=r;continue}if(a>0){for(var S=g+r,b=e[2*S],_=e[2*S+1];b===y&&_===m&&v=n||fE(b,_))h=y,f=m;else{T=b-u,D=_-c;var M=y-u,A=b-y,I=m-c,P=_-m,L=void 0,N=void 0;if("x"===s){var F=T>0?1:-1;h=y-F*(L=Math.abs(M))*a,f=m,R=y+F*(N=Math.abs(A))*a,O=m}else if("y"===s){var k=D>0?1:-1;h=y,f=m-k*(L=Math.abs(I))*a,R=y,O=m+k*(N=Math.abs(P))*a}else L=Math.sqrt(M*M+I*I),h=y-T*a*(1-(E=(N=Math.sqrt(A*A+P*P))/(N+L))),f=m-D*a*(1-E),O=m+D*a*E,R=dE(R=y+T*a*E,hE(b,y)),O=dE(O,hE(_,m)),R=hE(R,dE(b,y)),f=m-(D=(O=hE(O,dE(_,m)))-m)*L/N,h=dE(h=y-(T=R-y)*L/N,hE(u,y)),f=dE(f,hE(c,m)),R=y+(T=y-(h=hE(h,dE(u,y))))*N/L,O=m+(D=m-(f=hE(f,dE(c,m))))*N/L}t.bezierCurveTo(p,d,h,f,y,m),p=R,d=O}else t.lineTo(y,m)}u=y,c=m,g+=r}return v}var vE=function(){this.smooth=0,this.smoothConstraint=!0},yE=function(t){function e(e){var o=t.call(this,e)||this;return o.type="ec-polyline",o}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new vE},e.prototype.buildPath=function(t,e){var o=e.points,n=0,i=o.length/2;if(e.connectNulls){for(;i>0&&fE(o[2*i-2],o[2*i-1]);i--);for(;n=0){var v=a?(c-n)*g+n:(u-o)*g+o;return a?[t,v]:[v,t]}o=u,n=c;break;case r.C:u=i[l++],c=i[l++],p=i[l++],d=i[l++],h=i[l++],f=i[l++];var y=a?Ko(o,u,p,h,t,s):Ko(n,c,d,f,t,s);if(y>0)for(var m=0;m=0)return v=a?$o(n,c,d,f,C):$o(o,u,p,h,C),a?[t,v]:[v,t]}o=h,n=f}}},e}(cl),mE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(vE),CE=function(t){function e(e){var o=t.call(this,e)||this;return o.type="ec-polygon",o}return m(e,t),e.prototype.getDefaultShape=function(){return new mE},e.prototype.buildPath=function(t,e){var o=e.points,n=e.stackedOnPoints,i=0,r=o.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;r>0&&fE(o[2*r-2],o[2*r-1]);r--);for(;in)return!1;return!0}(r,e))){var a=e.mapDimension(r.dim),s={};return tt(r.getViewLabels(),(function(t){var e=r.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,i),x=this._data;x&&x.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),x.setItemGraphicEl(e,null))})),S||d.remove(),r.add(g);var E,T=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(E=i.getArea()).width?(E.x-=.1,E.y-=.1,E.width+=.2,E.height+=.2):E.r0&&(E.r0-=.5,E.r+=.5)),this._clipShapeForSymbol=E;var D=function(t,e,o){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,a=n.length-1;a>=0;a--){var s=t.getDimensionInfo(n[a].dimension);if("x"===(i=s&&s.coordDim)||"y"===i){r=n[a];break}}if(r){var l=e.getAxis(i),u=et(r.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),c=u.length,p=r.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),p.reverse());var d=function(t,e){var o,n,i=[],r=t.length;function a(t,e,o){var n=t.coord;return{coord:o,color:An((o-n)/(e.coord-n),[t.color,e.color])}}for(var s=0;se){n?i.push(a(n,l,e)):o&&i.push(a(o,l,0),a(o,l,e));break}o&&(i.push(a(o,l,0)),o=null),i.push(l),n=l}}return i}(u,"x"===i?o.getWidth():o.getHeight()),h=d.length;if(!h&&c)return u[0].coord<0?p[1]?p[1]:u[c-1].color:p[0]?p[0]:u[0].color;var f=d[0].coord-10,g=d[h-1].coord+10,v=g-f;if(v<.001)return"transparent";tt(d,(function(t){t.offset=(t.coord-f)/v})),d.push({offset:h?d[h-1].offset:.5,color:p[1]||"transparent"}),d.unshift({offset:h?d[0].offset:.5,color:p[0]||"transparent"});var y=new Jg(0,0,0,0,d,!0);return y[i]=f,y[i+"2"]=g,y}}}(a,i,o)||a.getVisual("style")[a.getVisual("drawType")];if(h&&p.type===i.type&&T===this._step){y&&!f?f=this._newPolygon(u,w):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Rp(D));var R=g.getClipPath();R?qu(R,{shape:AE(this,i,!1,t).shape},t):g.setClipPath(AE(this,i,!0,t)),S&&d.updateData(a,{isIgnore:_,clipShape:E,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),xE(this._stackedOnPoints,w)&&xE(this._points,u)||(v?this._doUpdateAnimation(a,w,i,o,T,m,b):(T&&(u=RE(u,i,T,b),w&&(w=RE(w,i,T,b))),h.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:w})))}else S&&d.updateData(a,{isIgnore:_,clipShape:E,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(a,i,E),T&&(u=RE(u,i,T,b),w&&(w=RE(w,i,T,b))),h=this._newPolyline(u),y?f=this._newPolygon(u,w):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Rp(D)),g.setClipPath(AE(this,i,!0,t));var O=t.getModel("emphasis"),M=O.get("focus"),A=O.get("blurScope"),I=O.get("disabled");h.useStyle(K(s.getLineStyle(),{fill:"none",stroke:D,lineJoin:"bevel"})),Bu(h,t,"lineStyle"),h.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(h.getState("emphasis").style.lineWidth=+h.style.lineWidth+1),Wl(h).seriesIndex=t.seriesIndex,ku(h,M,A,I);var P=DE(t.get("smooth")),L=t.get("smoothMonotone");if(h.setShape({smooth:P,smoothMonotone:L,connectNulls:b}),f){var N=a.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(K(l.getAreaStyle(),{fill:D,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),N&&(F=DE(N.get("smooth"))),f.setShape({smooth:P,stackedOnSmooth:F,smoothMonotone:L,connectNulls:b}),Bu(f,t,"areaStyle"),Wl(f).seriesIndex=t.seriesIndex,ku(f,M,A,I)}var k=function(t){n._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=k)})),this._polyline.onHoverStateChange=k,this._data=a,this._coordSys=i,this._stackedOnPoints=w,this._points=u,this._step=T,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,h),f&&this.packEventData(t,f))},e.prototype.packEventData=function(t,e){Wl(e).eventData={componentType:"series",componentSubType:"line",componentIndex:t.componentIndex,seriesIndex:t.seriesIndex,seriesName:t.name,seriesType:"line"}},e.prototype.highlight=function(t,e,o,n){var i=t.getData(),r=ha(i,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var a=i.getLayout("points"),s=i.getItemGraphicEl(r);if(!s){var l=a[2*r],u=a[2*r+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var c=t.get("zlevel")||0,p=t.get("z")||0;(s=new iE(i,r)).x=l,s.y=u,s.setZ(c,p);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=p,d.z2=this._polyline.z2+1),s.__temp=!0,i.setItemGraphicEl(r,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Kv.prototype.highlight.call(this,t,e,o,n)},e.prototype.downplay=function(t,e,o,n){var i=t.getData(),r=ha(i,n);if(this._changePolyState("normal"),null!=r&&r>=0){var a=i.getItemGraphicEl(r);a&&(a.__temp?(i.setItemGraphicEl(r,null),this.group.remove(a)):a.downplay())}else Kv.prototype.downplay.call(this,t,e,o,n)},e.prototype._changePolyState=function(t){var e=this._polygon;mu(this._polyline,t),e&&mu(e,t)},e.prototype._newPolyline=function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new yE({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new CE({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},e.prototype._initSymbolLabelAnimation=function(t,e,o){var n,i,r=e.getBaseAxis(),a=r.inverse;"cartesian2d"===e.type?(n=r.isHorizontal(),i=!1):"polar"===e.type&&(n="angle"===r.dim,i=!0);var s=t.hostModel,l=s.get("animationDuration");ut(l)&&(l=l(null));var u=s.get("animationDelay")||0,c=ut(u)?u(null):u;t.eachItemGraphicEl((function(t,r){var s=t;if(s){var p=[t.x,t.y],d=void 0,h=void 0,f=void 0;if(o)if(i){var g=o,v=e.pointToCoord(p);n?(d=g.startAngle,h=g.endAngle,f=-v[1]/180*Math.PI):(d=g.r0,h=g.r,f=v[0])}else{var y=o;n?(d=y.x,h=y.x+y.width,f=t.x):(d=y.y+y.height,h=y.y,f=t.y)}var m=h===d?0:(f-d)/(h-d);a&&(m=1-m);var C=ut(u)?u(r):l*m+c,w=s.getSymbolPath(),S=w.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:C}),S&&S.animateFrom({style:{opacity:0}},{duration:300,delay:C}),w.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,o){var n=t.getModel("endLabel");if(ME(t)){var i=t.getData(),r=this._polyline,a=i.getLayout("points");if(!a)return r.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Bl({z2:200})).ignoreClip=!0,r.setTextContent(this._endLabel),r.disableLabelAnimation=!0);var l=function(t){for(var e,o,n=t.length/2;n>0&&(e=t[2*n-2],o=t[2*n-1],isNaN(e)||isNaN(o));n--);return n-1}(a);l>=0&&(rc(r,ac(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,o){return null!=o?eE(i,o):tE(i,t)},enableTextSetter:!0},function(t,e){var o=e.getBaseAxis(),n=o.isHorizontal(),i=o.inverse,r=n?i?"right":"left":"center",a=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||r,verticalAlign:t.get("verticalAlign")||a}}}(n,e)),r.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,o,n,i,r,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==n.originalX&&(n.originalX=s.x,n.originalY=s.y);var u=o.getLayout("points"),c=o.hostModel,p=c.get("connectNulls"),d=r.get("precision"),h=r.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),v=f.inverse,y=e.shape,m=v?g?y.x:y.y+y.height:g?y.x+y.width:y.y,C=(g?h:0)*(v?-1:1),w=(g?0:-h)*(v?-1:1),S=g?"x":"y",b=function(t,e,o){for(var n,i,r=t.length/2,a="x"===o?0:1,s=0,l=-1,u=0;u=e||n>=e&&i<=e){l=u;break}s=u,n=i}else n=i;return{range:[s,l],t:(e-n)/(i-n)}}(u,m,S),_=b.range,x=_[1]-_[0],E=void 0;if(x>=1){if(x>1&&!p){var T=OE(u,_[0]);s.attr({x:T[0]+C,y:T[1]+w}),i&&(E=c.getRawValue(_[0]))}else{(T=l.getPointOn(m,S))&&s.attr({x:T[0]+C,y:T[1]+w});var D=c.getRawValue(_[0]),R=c.getRawValue(_[1]);i&&(E=_a(o,d,D,R,b.t))}n.lastFrameIndex=_[0]}else{var O=1===t||n.lastFrameIndex>0?_[0]:0;T=OE(u,O),i&&(E=c.getRawValue(O)),s.attr({x:T[0]+C,y:T[1]+w})}i&&fc(s).setLabelText(E)}},e.prototype._doUpdateAnimation=function(t,e,o,n,i,r,a){var s=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,o,n,i,r,a,s){for(var l=function(t,e){var o=[];return e.diff(t).add((function(t){o.push({cmd:"+",idx:t})})).update((function(t,e){o.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){o.push({cmd:"-",idx:t})})).execute(),o}(t,e),u=[],c=[],p=[],d=[],h=[],f=[],g=[],v=cE(i,e,a),y=t.getLayout("points")||[],m=e.getLayout("points")||[],C=0;C3e3||l&&TE(d,f)>3e3)return s.stopAnimation(),s.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));s.shape.__points=c.current,s.shape.points=p;var g={shape:{points:h}};c.current!==p&&(g.shape.__points=c.next),s.stopAnimation(),Xu(s,g,u),l&&(l.setShape({points:p,stackedOnPoints:d}),l.stopAnimation(),Xu(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var v=[],y=c.status,m=0;me&&(e=t[o]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,o=0;o10&&"cartesian2d"===r.type&&i){var s=r.getBaseAxis(),l=r.getOtherAxis(s),u=s.getExtent(),c=o.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(c||1),d=Math.round(a/p);if(isFinite(d)&&d>1){"lttb"===i&&t.setData(n.lttbDownSample(n.mapDimension(l.dim),1/d));var h=void 0;ct(i)?h=NE[i]:ut(i)&&(h=i),h&&t.setData(n.downSample(n.mapDimension(l.dim),1/d,h,FE))}}}}}var GE=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.getInitialData=function(t,e){return Jw(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,o){var n=this.coordinateSystem;if(n&&n.clampData){var i=n.dataToPoint(n.clampData(t));if(o)tt(n.getAxes(),(function(o,r){if("category"===o.type){var a=o.getTicksCoords(),s=n.clampData(t)[r];!e||"x1"!==e[r]&&"y1"!==e[r]||(s+=1),s>a.length-1&&(s=a.length-1),s<0&&(s=0),a[s]&&(i[r]=o.toGlobalCoord(a[s].coord))}}));else{var r=this.getData(),a=r.getLayout("offset"),s=r.getLayout("size"),l=n.getBaseAxis().isHorizontal()?0:1;i[l]+=a+s/2}return i}return[NaN,NaN]},e.type="series.__base_bar__",e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod"},e}(kf);kf.registerClass(GE);const VE=GE,HE=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.getInitialData=function(){return Jw(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},e.prototype.getProgressive=function(){return!!this.get("large")&&this.get("progressive")},e.prototype.getProgressiveThreshold=function(){var t=this.get("progressiveThreshold"),e=this.get("largeThreshold");return e>t&&(t=e),t},e.prototype.brushSelector=function(t,e,o){return o.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Lc(VE.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:"#212121"}},realtimeSort:!1}),e}(VE);var BE=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},WE=function(t){function e(e){var o=t.call(this,e)||this;return o.type="sausage",o}return m(e,t),e.prototype.getDefaultShape=function(){return new BE},e.prototype.buildPath=function(t,e){var o=e.cx,n=e.cy,i=Math.max(e.r0||0,0),r=Math.max(e.r,0),a=.5*(r-i),s=i+a,l=e.startAngle,u=e.endAngle,c=e.clockwise,p=2*Math.PI,d=c?u-lr)return!0;r=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var o=e.scale,n=o.getExtent(),i=Math.max(0,n[0]),r=Math.min(n[1],o.getOrdinalMeta().categories.length-1);i<=r;++i)if(t.ordinalNumbers[i]!==o.getRawOrdinalNumber(i))return!0},e.prototype._updateSortWithinSameData=function(t,e,o,n){if(this._isOrderChangedWithinSameData(t,e,o)){var i=this._dataSort(t,o,e);this._isOrderDifferentInView(i,o)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:i}))}},e.prototype._dispatchInitSort=function(t,e,o){var n=e.baseAxis,i=this._dataSort(t,n,(function(o){return t.get(t.mapDimension(e.otherAxis.dim),o)}));o.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:i})},e.prototype.remove=function(t,e){this._clear(this._model),this._removeOnRenderedListener(e)},e.prototype.dispose=function(t,e){this._removeOnRenderedListener(e)},e.prototype._removeOnRenderedListener=function(t){this._onRendered&&(t.getZr().off("rendered",this._onRendered),this._onRendered=null)},e.prototype._clear=function(t){var e=this.group,o=this._data;t&&t.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl((function(e){tc(e,t,Wl(e).dataIndex)}))):e.removeAll(),this._data=null,this._isFirstFrame=!0},e.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},e.type="bar",e}(Kv),XE={cartesian2d:function(t,e){var o=e.width<0?-1:1,n=e.height<0?-1:1;o<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height);var i=t.x+t.width,r=t.y+t.height,a=$E(e.x,t.x),s=YE(e.x+e.width,i),l=$E(e.y,t.y),u=YE(e.y+e.height,r),c=si?s:a,e.y=p&&l>r?u:l,e.width=c?0:s-a,e.height=p?0:u-l,o<0&&(e.x+=e.width,e.width=-e.width),n<0&&(e.y+=e.height,e.height=-e.height),c||p},polar:function(t,e){var o=e.r0<=e.r?1:-1;if(o<0){var n=e.r;e.r=e.r0,e.r0=n}var i=YE(e.r,t.r),r=$E(e.r0,t.r0);e.r=i,e.r0=r;var a=i-r<0;return o<0&&(n=e.r,e.r=e.r0,e.r0=n),a}},qE={cartesian2d:function(t,e,o,n,i,r,a,s,l){var u=new El({shape:Y({},n),z2:1});return u.__dataIndex=o,u.name="item",r&&(u.shape[i?"height":"width"]=0),u},polar:function(t,e,o,n,i,r,a,s,l){var u=!i&&l?zE:Dg,c=new u({shape:n,z2:1});c.name="item";var p,d,h=nT(i);if(c.calculateTextPosition=(p=h,d=({isRoundCap:u===zE}||{}).isRoundCap,function(t,e,o){var n=e.position;if(!n||n instanceof Array)return nr(t,e,o);var i=p(n),r=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,c=a.r0,h=(u+c)/2,f=a.startAngle,g=a.endAngle,v=(f+g)/2,y=d?Math.abs(u-c)/2:0,m=Math.cos,C=Math.sin,w=s+u*m(f),S=l+u*C(f),b="left",_="top";switch(i){case"startArc":w=s+(c-r)*m(v),S=l+(c-r)*C(v),b="center",_="top";break;case"insideStartArc":w=s+(c+r)*m(v),S=l+(c+r)*C(v),b="center",_="bottom";break;case"startAngle":w=s+h*m(f)+jE(f,r+y,!1),S=l+h*C(f)+UE(f,r+y,!1),b="right",_="middle";break;case"insideStartAngle":w=s+h*m(f)+jE(f,-r+y,!1),S=l+h*C(f)+UE(f,-r+y,!1),b="left",_="middle";break;case"middle":w=s+h*m(v),S=l+h*C(v),b="center",_="middle";break;case"endArc":w=s+(u+r)*m(v),S=l+(u+r)*C(v),b="center",_="bottom";break;case"insideEndArc":w=s+(u-r)*m(v),S=l+(u-r)*C(v),b="center",_="top";break;case"endAngle":w=s+h*m(g)+jE(g,r+y,!0),S=l+h*C(g)+UE(g,r+y,!0),b="left",_="middle";break;case"insideEndAngle":w=s+h*m(g)+jE(g,-r+y,!0),S=l+h*C(g)+UE(g,-r+y,!0),b="right",_="middle";break;default:return nr(t,e,o)}return(t=t||{}).x=w,t.y=S,t.align=b,t.verticalAlign=_,t}),r){var f=i?"r":"endAngle",g={};c.shape[f]=i?0:n.startAngle,g[f]=n[f],(s?Xu:qu)(c,{shape:g},r)}return c}};function ZE(t,e,o,n,i,r,a,s){var l,u;r?(u={x:n.x,width:n.width},l={y:n.y,height:n.height}):(u={y:n.y,height:n.height},l={x:n.x,width:n.width}),s||(a?Xu:qu)(o,{shape:l},e,i,null),(a?Xu:qu)(o,{shape:u},e?t.baseAxis.model:null,i)}function QE(t,e){for(var o=0;o0?1:-1,a=n.height>0?1:-1;return{x:n.x+r*i/2,y:n.y+a*i/2,width:n.width-r*i,height:n.height-a*i}},polar:function(t,e,o){var n=t.getItemLayout(e);return{cx:n.cx,cy:n.cy,r0:n.r0,r:n.r,startAngle:n.startAngle,endAngle:n.endAngle,clockwise:n.clockwise}}};function nT(t){return function(t){var e=t?"Arc":"Angle";return function(t){switch(t){case"start":case"insideStart":case"end":case"insideEnd":return t+e;default:return t}}}(t)}function iT(t,e,o,n,i,r,a,s){var l=e.getItemVisual(o,"style");s||t.setShape("r",n.get(["itemStyle","borderRadius"])||0),t.useStyle(l);var u=n.getShallow("cursor");u&&t.attr("cursor",u);var c=s?a?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":a?i.height>=0?"bottom":"top":i.width>=0?"right":"left",p=ac(n);rc(t,p,{labelFetcher:r,labelDataIndex:o,defaultText:tE(r.getData(),o),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:c});var d=t.getTextContent();if(s&&d){var h=n.get(["label","position"]);t.textConfig.inside="middle"===h||null,function(t,e,o,n){if(dt(n))t.setTextConfig({rotation:n});else if(lt(e))t.setTextConfig({rotation:0});else{var i,r=t.shape,a=r.clockwise?r.startAngle:r.endAngle,s=r.clockwise?r.endAngle:r.startAngle,l=(a+s)/2,u=o(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=a;break;case"endAngle":case"insideEndAngle":i=s;break;default:return void t.setTextConfig({rotation:0})}var c=1.5*Math.PI-i;"middle"===u&&c>Math.PI/2&&c<1.5*Math.PI&&(c-=Math.PI),t.setTextConfig({rotation:c})}}(t,"outside"===h?c:h,nT(a),n.get(["label","rotate"]))}gc(d,p,r.getRawValue(o),(function(t){return eE(e,t)}));var f=n.getModel(["emphasis"]);ku(t,f.get("focus"),f.get("blurScope"),f.get("disabled")),Bu(t,n),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(i)&&(t.style.fill="none",t.style.stroke="none",tt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var rT=function(){},aT=function(t){function e(e){var o=t.call(this,e)||this;return o.type="largeBar",o}return m(e,t),e.prototype.getDefaultShape=function(){return new rT},e.prototype.buildPath=function(t,e){for(var o=e.points,n=this.baseDimIdx,i=1-this.baseDimIdx,r=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&o>=s[1]&&o<=s[1]+l[1])return a[c]}return-1}(this,t.offsetX,t.offsetY);Wl(this).dataIndex=e>=0?e:null}),30,!1);function uT(t,e,o){if(_E(o,"cartesian2d")){var n=e,i=o.getArea();return{x:t?n.x:i.x,y:t?i.y:n.y,width:t?n.width:i.width,height:t?i.height:n.height}}var r=e;return{cx:(i=o.getArea()).cx,cy:i.cy,r0:t?i.r0:r.r0,r:t?i.r:r.r,startAngle:t?r.startAngle:0,endAngle:t?r.endAngle:2*Math.PI}}const cT=KE;var pT=2*Math.PI,dT=Math.PI/180;function hT(t,e){return Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fT(t,e){var o=hT(t,e),n=t.get("center"),i=t.get("radius");lt(i)||(i=[0,i]);var r,a,s=Or(o.width,e.getWidth()),l=Or(o.height,e.getHeight()),u=Math.min(s,l),c=Or(i[0],u/2),p=Or(i[1],u/2),d=t.coordinateSystem;if(d){var h=d.dataToPoint(n);r=h[0]||0,a=h[1]||0}else lt(n)||(n=[n,n]),r=Or(n[0],s)+o.x,a=Or(n[1],l)+o.y;return{cx:r,cy:a,r0:c,r:p}}function gT(t,e,o){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),i=hT(t,o),r=fT(t,o),a=r.cx,s=r.cy,l=r.r,u=r.r0,c=-t.get("startAngle")*dT,p=t.get("minAngle")*dT,d=0;e.each(n,(function(t){!isNaN(t)&&d++}));var h=e.getSum(n),f=Math.PI/(h||d)*2,g=t.get("clockwise"),v=t.get("roseType"),y=t.get("stillShowZeroSum"),m=e.getDataExtent(n);m[0]=0;var C=pT,w=0,S=c,b=g?1:-1;if(e.setLayout({viewRect:i,r:l}),e.each(n,(function(t,o){var n;if(isNaN(t))e.setItemLayout(o,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:v?NaN:l});else{(n="area"!==v?0===h&&y?f:t*f:pT/d)o?a:r,c=Math.abs(l.label.y-o);if(c>=u.maxY){var p=l.label.x-e-l.len2*i,d=n+l.len,f=Math.abs(p)t.unconstrainedWidth?null:h:null;n.setStyle("width",f)}var g=n.getBoundingRect();r.width=g.width;var v=(n.style.margin||0)+2.1;r.height=g.height+v,r.y-=(r.height-p)/2}}}function wT(t){return"center"===t.position}function ST(t,e,o){var n=t.get("borderRadius");if(null==n)return o?{cornerRadius:0}:null;lt(n)||(n=[n,n,n,n]);var i=Math.abs(e.r||0-e.r0||0);return{cornerRadius:et(n,(function(t){return or(t,i)}))}}var bT=function(t){function e(e,o,n){var i=t.call(this)||this;i.z2=2;var r=new Bl;return i.setTextContent(r),i.updateData(e,o,n,!0),i}return m(e,t),e.prototype.updateData=function(t,e,o,n){var i=this,r=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Y(ST(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))i.setShape(u);else{if(n){i.setShape(u);var c=r.getShallow("animationType");r.ecModel.ssr?(qu(i,{scaleX:0,scaleY:0},r,{dataIndex:e,isFrom:!0}),i.originX=u.cx,i.originY=u.cy):"scale"===c?(i.shape.r=l.r0,qu(i,{shape:{r:l.r}},r,e)):null!=o?(i.setShape({startAngle:o,endAngle:o}),qu(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(i.shape.endAngle=l.startAngle,Xu(i,{shape:{endAngle:l.endAngle}},r,e))}else ec(i),Xu(i,{shape:u},r,e);i.useStyle(t.getItemVisual(e,"style")),Bu(i,a);var p=(l.startAngle+l.endAngle)/2,d=r.get("selectedOffset"),h=Math.cos(p)*d,f=Math.sin(p)*d,g=a.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(r,t,e),i.ensureState("emphasis").shape=Y({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},ST(s.getModel("itemStyle"),l)),Y(i.ensureState("select"),{x:h,y:f,shape:ST(a.getModel(["select","itemStyle"]),l)}),Y(i.ensureState("blur"),{shape:ST(a.getModel(["blur","itemStyle"]),l)});var v=i.getTextGuideLine(),y=i.getTextContent();v&&Y(v.ensureState("select"),{x:h,y:f}),Y(y.ensureState("select"),{x:h,y:f}),ku(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,o){var n=this,i=e.getItemModel(o),r=i.getModel("labelLine"),a=e.getItemVisual(o,"style"),s=a&&a.fill,l=a&&a.opacity;rc(n,ac(i),{labelFetcher:e.hostModel,labelDataIndex:o,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(o,"normal")||e.getName(o)});var u=n.getTextContent();n.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var c=t.get(["label","position"]);if("outside"!==c&&"outer"!==c)n.removeTextGuideLine();else{var p=this.getTextGuideLine();p||(p=new kg,this.setTextGuideLine(p)),f_(this,g_(i),{stroke:s,opacity:_t(r.get(["lineStyle","opacity"]),l,1)})}},e}(Dg);const _T=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.ignoreLabelLineUpdate=!0,e}return m(e,t),e.prototype.render=function(t,e,o,n){var i,r=t.getData(),a=this._data,s=this.group;if(!a&&r.count()>0){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":M>0?"left":"right"}var G=Math.PI,V=0,H=v.get("rotate");if(dt(H))V=H*(G/180);else if("center"===y)V=0;else if("radial"===H||!0===H)V=M<0?-O+G:-O;else if("tangential"===H&&"outside"!==y&&"outer"!==y){var B=Math.atan2(M,A);B<0&&(B=2*G+B),A>0&&(B=G+B),V=B-G}if(r=!!V,d.x=E,d.y=T,d.rotation=V,d.setStyle({verticalAlign:"middle"}),I){d.setStyle({align:R});var W=d.states.select;W&&(W.x+=d.x,W.y+=d.y)}else{var z=d.getBoundingRect().clone();z.applyTransform(d.getComputedTransform());var j=(d.style.margin||0)+2.1;z.y-=j/2,z.height+=j,i.push({label:d,labelLine:f,position:y,len:_,len2:x,minTurnAngle:b.get("minTurnAngle"),maxSurfaceAngle:b.get("maxSurfaceAngle"),surfaceNormal:new qe(M,A),linePoints:D,textAlign:R,labelDistance:m,labelAlignTo:C,edgeDistance:w,bleedMargin:S,rect:z,unconstrainedWidth:z.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:I})}})),!r&&t.get("avoidLabelOverlap")&&function(t,e,o,n,i,r,a,s){for(var l=[],u=[],c=Number.MAX_VALUE,p=-Number.MAX_VALUE,d=0;d=o.r0}},e.type="pie",e}(Kv);function xT(t,e,o){e=lt(e)&&{coordDimensions:e}||Y({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Uw(n,e).dimensions,r=new zw(i,t);return r.initData(n,o),r}var ET=function(){function t(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return t.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},t.prototype.containName=function(t){return this._getRawData().indexOfName(t)>=0},t.prototype.indexOfName=function(t){return this._getDataWithEncodedVisual().indexOfName(t)},t.prototype.getItemVisual=function(t,e){return this._getDataWithEncodedVisual().getItemVisual(t,e)},t}();const TT=ET;var DT=fa();const RT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new TT(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return xT(this,{coordDimensions:["value"],encodeDefaulter:st(rd,this)})},e.prototype.getDataParams=function(e){var o=this.getData(),n=DT(o),i=n.seats;if(!i){var r=[];o.each(o.mapDimension("value"),(function(t){r.push(t)})),i=n.seats=Fr(r,o.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=i[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){na(t,"labelLine",["show"]);var e=t.labelLine,o=t.emphasis.labelLine;e.show=e.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.type="series.pie",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,minShowLabelAngle:0,selectedOffset:10,percentPrecision:2,stillShowZeroSum:!0,left:0,top:0,right:0,bottom:0,width:null,height:null,label:{rotate:0,show:!0,overflow:"truncate",position:"outer",alignTo:"none",edgeDistance:"25%",bleedMargin:10,distanceToLabelLine:5},labelLine:{show:!0,length:15,length2:15,smooth:!1,minTurnAngle:90,maxSurfaceAngle:90,lineStyle:{width:1,type:"solid"}},itemStyle:{borderWidth:1,borderJoin:"round"},showEmptyCircle:!0,emptyCircleStyle:{color:"lightgray",opacity:1},labelLayout:{hideOverlap:!0},emphasis:{scale:!0,scaleSize:5},avoidLabelOverlap:!0,animationType:"expansion",animationDuration:1e3,animationTypeUpdate:"transition",animationEasingUpdate:"cubicInOut",animationDurationUpdate:500,animationEasing:"cubicInOut"},e}(kf),OT=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.hasSymbolVisual=!0,o}return m(e,t),e.prototype.getInitialData=function(t,e){return Jw(null,this,{useEncodeDefaulter:!0})},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?5e3:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?1e4:this.get("progressiveThreshold"):t},e.prototype.brushSelector=function(t,e,o){return o.point(e.getItemLayout(t))},e.prototype.getZLevelKey=function(){return this.getData().count()>this.getProgressiveThreshold()?this.id:""},e.type="series.scatter",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{opacity:.8},emphasis:{scale:!0},clip:!0,select:{itemStyle:{borderColor:"#212121"}},universalTransition:{divideShape:"clone"}},e}(kf);var MT=function(){},AT=function(t){function e(e){var o=t.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return m(e,t),e.prototype.getDefaultShape=function(){return new MT},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var o,n=e.points,i=e.size,r=this.symbolProxy,a=r.shape,s=t.getContext?t.getContext():t,l=s&&i[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,o=this._off;o=0;s--){var l=2*s,u=n[l]-r/2,c=n[l+1]-a/2;if(t>=u&&e>=c&&t<=u+r&&e<=c+a)return s}return-1},e.prototype.contain=function(t,e){var o=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return t=o[0],e=o[1],n.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape,o=e.points,n=e.size,i=n[0],r=n[1],a=1/0,s=1/0,l=-1/0,u=-1/0,c=0;c=0&&(l.dataIndex=o+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const PT=IT,LT=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){var n=t.getData();this._updateSymbolDraw(n,t).updateData(n,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,o){var n=t.getData();this._updateSymbolDraw(n,t).incrementalPrepareUpdate(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,o){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,o){var n=t.getData();if(this.group.dirty(),!this._finished||n.count()>1e4)return{update:!0};var i=LE("").reset(t,e,o);i.progress&&i.progress({start:0,end:n.count(),count:n.count()},n),this._symbolDraw.updateLayout(n)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,o=e&&e.getArea&&e.getArea();return t.get("clip",!0)?o:null},e.prototype._updateSymbolDraw=function(t,e){var o=this._symbolDraw,n=e.pipelineContext.large;return o&&n===this._isLargeDraw||(o&&o.remove(),o=this._symbolDraw=n?new PT:new uE,this._isLargeDraw=n,this.group.removeAll()),this.group.add(o.group),o},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Kv),NT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.type="grid",e.dependencies=["xAxis","yAxis"],e.layoutMode="box",e.defaultOption={show:!1,z:0,left:"10%",top:60,right:"10%",bottom:70,containLabel:!1,backgroundColor:"rgba(0,0,0,0)",borderWidth:1,borderColor:"#ccc"},e}(zp);var FT=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ma).models[0]},e.type="cartesian2dAxis",e}(zp);Q(FT,cb);var kT={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:!0,onZeroAxisIndex:null,lineStyle:{color:"#6E7079",width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15]},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12},splitLine:{show:!0,lineStyle:{color:["#E0E6F1"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.2)","rgba(210,219,238,0.2)"]}}},GT=U({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},kT),VT=U({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:"#F4F7FD",width:1}}},kT);const HT={category:GT,value:VT,time:U({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},VT),log:K({logBase:10},VT)};var BT={value:1,category:1,time:1,log:1};function WT(t,e,o,n){tt(BT,(function(i,r){var a=U(U({},HT[r],!0),n,!0),s=function(t){function o(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e+"Axis."+r,o}return m(o,t),o.prototype.mergeDefaultAndTheme=function(t,e){var o=kp(this),n=o?Vp(t):{};U(t,e.getTheme().get(r+"Axis")),U(t,this.getDefaultOption()),t.type=zT(t),o&&Gp(t,n,o)},o.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=iS.createByAxisModel(this))},o.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},o.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},o.type=e+"Axis."+r,o.defaultOption=a,o}(o);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",zT)}function zT(t){return t.type||(t.data?"category":"value")}var jT=function(){function t(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return t.prototype.getAxis=function(t){return this._axes[t]},t.prototype.getAxes=function(){return et(this._dimList,(function(t){return this._axes[t]}),this)},t.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),nt(this.getAxes(),(function(e){return e.scale.type===t}))},t.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},t}(),UT=["x","y"];function $T(t){return"interval"===t.type||"time"===t.type}var YT=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=UT,e}return m(e,t),e.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var t=this.getAxis("x").scale,e=this.getAxis("y").scale;if($T(t)&&$T(e)){var o=t.getExtent(),n=e.getExtent(),i=this.dataToPoint([o[0],n[0]]),r=this.dataToPoint([o[1],n[1]]),a=o[1]-o[0],s=n[1]-n[0];if(a&&s){var l=(r[0]-i[0])/a,u=(r[1]-i[1])/s,c=i[0]-o[0]*l,p=i[1]-n[0]*u,d=this._transform=[l,0,0,u,c,p];this._invTransform=Ye([],d)}}},e.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},e.prototype.containPoint=function(t){var e=this.getAxis("x"),o=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&o.contain(o.toLocalCoord(t[1]))},e.prototype.containData=function(t){return this.getAxis("x").containData(t[0])&&this.getAxis("y").containData(t[1])},e.prototype.containZone=function(t,e){var o=this.dataToPoint(t),n=this.dataToPoint(e),i=this.getArea(),r=new ao(o[0],o[1],n[0]-o[0],n[1]-o[1]);return i.intersect(r)},e.prototype.dataToPoint=function(t,e,o){o=o||[];var n=t[0],i=t[1];if(this._transform&&null!=n&&isFinite(n)&&null!=i&&isFinite(i))return ue(o,t,this._transform);var r=this.getAxis("x"),a=this.getAxis("y");return o[0]=r.toGlobalCoord(r.dataToCoord(n,e)),o[1]=a.toGlobalCoord(a.dataToCoord(i,e)),o},e.prototype.clampData=function(t,e){var o=this.getAxis("x").scale,n=this.getAxis("y").scale,i=o.getExtent(),r=n.getExtent(),a=o.parse(t[0]),s=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),a),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),s),Math.max(r[0],r[1])),e},e.prototype.pointToData=function(t,e){var o=[];if(this._invTransform)return ue(o,t,this._invTransform);var n=this.getAxis("x"),i=this.getAxis("y");return o[0]=n.coordToData(n.toLocalCoord(t[0]),e),o[1]=i.coordToData(i.toLocalCoord(t[1]),e),o},e.prototype.getOtherAxis=function(t){return this.getAxis("x"===t.dim?"y":"x")},e.prototype.getArea=function(){var t=this.getAxis("x").getGlobalExtent(),e=this.getAxis("y").getGlobalExtent(),o=Math.min(t[0],t[1]),n=Math.min(e[0],e[1]),i=Math.max(t[0],t[1])-o,r=Math.max(e[0],e[1])-n;return new ao(o,n,i,r)},e}(jT);const KT=YT;var XT=function(t){function e(e,o,n,i,r){var a=t.call(this,e,o,n)||this;return a.index=0,a.type=i||"value",a.position=r||"bottom",a}return m(e,t),e.prototype.isHorizontal=function(){var t=this.position;return"top"===t||"bottom"===t},e.prototype.getGlobalExtent=function(t){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),t&&e[0]>e[1]&&e.reverse(),e},e.prototype.pointToData=function(t,e){return this.coordToData(this.toLocalCoord(t["x"===this.dim?0:1]),e)},e.prototype.setCategorySortInfo=function(t){if("category"!==this.type)return!1;this.model.option.categorySortInfo=t,this.scale.setSortInfo(t)},e}(Bb);const qT=XT;function ZT(t,e,o){o=o||{};var n=t.coordinateSystem,i=e.axis,r={},a=i.getAxesOnZeroOf()[0],s=i.position,l=a?"onZero":s,u=i.dim,c=n.getRect(),p=[c.x,c.x+c.width,c.y,c.y+c.height],d={left:0,right:1,top:0,bottom:1,onZero:2},h=e.get("offset")||0,f="x"===u?[p[2]-h,p[3]+h]:[p[0]-h,p[1]+h];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}r.position=["y"===u?f[d[l]]:p[0],"x"===u?f[d[l]]:p[3]],r.rotation=Math.PI/2*("x"===u?0:1),r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],r.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),St(o.labelInside,e.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var v=e.get(["axisLabel","rotate"]);return r.labelRotate="top"===l?-v:v,r.z2=1,r}function QT(t){return"cartesian2d"===t.get("coordinateSystem")}function JT(t){var e={xAxisModel:null,yAxisModel:null};return tt(e,(function(o,n){var i=n.replace(/Model$/,""),r=t.getReferringComponents(i,ma).models[0];e[n]=r})),e}var tD=Math.log;function eD(t,e,o){var n=vS.prototype,i=n.getTicks.call(o),r=n.getTicks.call(o,!0),a=i.length-1,s=n.getInterval.call(o),l=eb(t,e),u=l.extent,c=l.fixMin,p=l.fixMax;if("log"===t.type){var d=tD(t.base);u=[tD(u[0])/d,tD(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:c,fixMax:p});var h=n.getExtent.call(t);c&&(u[0]=h[0]),p&&(u[1]=h[1]);var f=n.getInterval.call(t),g=u[0],v=u[1];if(c&&p)f=(v-g)/a;else if(c)for(v=u[0]+f*a;vu[0]&&isFinite(g)&&isFinite(u[0]);)f=aS(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=aS(f));var y=f*a;(g=Mr((v=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,v=Mr(y)):v>0&&u[1]<=0&&(v=0,g=-Mr(y))}var m=(i[0].value-r[0].value)/s,C=(i[a].value-r[a].value)/s;n.setExtent.call(t,g+f*m,v+f*C),n.setInterval.call(t,f),(m||C)&&n.setNiceExtent.call(t,g+f,v-f)}var oD=function(){function t(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=UT,this._initCartesian(t,e,o),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var o=this._axesMap;function n(t){var e,o=rt(t),n=o.length;if(n){for(var i=[],r=n-1;r>=0;r--){var a=t[+o[r]],s=a.model,l=a.scale;rS(l)&&s.get("alignTicks")&&null==s.get("interval")?i.push(a):(ob(l,s),rS(l)&&(e=a))}i.length&&(e||ob((e=i.pop()).scale,e.model),tt(i,(function(t){eD(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),n(o.x),n(o.y);var i={};tt(o.x,(function(t){iD(o,"y",t,i)})),tt(o.y,(function(t){iD(o,"x",t,i)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,o){var n=t.getBoxLayoutParams(),i=!o&&t.get("containLabel"),r=Np(n,{width:e.getWidth(),height:e.getHeight()});this._rect=r;var a=this._axesList;function s(){tt(a,(function(t){var e=t.isHorizontal(),o=e?[0,r.width]:[0,r.height],n=t.inverse?1:0;t.setExtent(o[n],o[1-n]),function(t,e){var o=t.getExtent(),n=o[0]+o[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return n-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return n-t+e}}(t,e?r.x:r.y)}))}s(),i&&(tt(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,o=t.scale;if(e.get(["axisLabel","show"])&&!o.isBlank()){var n,i,r=o.getExtent();i=o instanceof hS?o.count():(n=o.getTicks()).length;var a,s=t.getLabelModel(),l=ib(t),u=1;i>40&&(u=Math.ceil(i/40));for(var c=0;c0&&n>0||o<0&&n<0)}(t)}const aD=oD;var sD=Math.PI,lD=function(){function t(t,e){this.group=new vr,this.opt=e,this.axisModel=t,K(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var o=new vr({x:e.position[0],y:e.position[1],rotation:e.rotation});o.updateTransform(),this._transformGroup=o}return t.prototype.hasBuilder=function(t){return!!uD[t]},t.prototype.add=function(t){uD[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,o){var n,i,r=Vr(e-t);return Hr(r)?(i=o>0?"top":"bottom",n="center"):Hr(r-sD)?(i=o>0?"bottom":"top",n="center"):(i="middle",n=r>0&&r0?"right":"left":o>0?"left":"right"),{rotation:r,textAlign:n,textVerticalAlign:i}},t.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},t.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},t}(),uD={axisLine:function(t,e,o,n){var i=e.get(["axisLine","show"]);if("auto"===i&&t.handleAutoShown&&(i=t.handleAutoShown("axisLine")),i){var r=e.axis.getExtent(),a=n.transform,s=[r[0],0],l=[r[1],0],u=s[0]>l[0];a&&(ue(s,s,a),ue(l,l,a));var c=Y({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Bg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:c,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});_v(p.shape,p.style.lineWidth),p.anid="line",o.add(p);var d=e.get(["axisLine","symbol"]);if(null!=d){var h=e.get(["axisLine","symbolSize"]);ct(d)&&(d=[d,d]),(ct(h)||dt(h))&&(h=[h,h]);var f=am(e.get(["axisLine","symbolOffset"])||0,h),g=h[0],v=h[1];tt([{rotate:t.rotation+Math.PI/2,offset:f[0],r:0},{rotate:t.rotation-Math.PI/2,offset:f[1],r:Math.sqrt((s[0]-l[0])*(s[0]-l[0])+(s[1]-l[1])*(s[1]-l[1]))}],(function(e,n){if("none"!==d[n]&&null!=d[n]){var i=im(d[n],-g/2,-v/2,g,v,c.stroke,!0),r=e.r+e.offset,a=u?l:s;i.attr({rotation:e.rotate,x:a[0]+r*Math.cos(t.rotation),y:a[1]-r*Math.sin(t.rotation),silent:!0,z2:11}),o.add(i)}}))}}},axisTickLabel:function(t,e,o,n){var i=function(t,e,o,n){var i=o.axis,r=o.getModel("axisTick"),a=r.get("show");if("auto"===a&&n.handleAutoShown&&(a=n.handleAutoShown("axisTick")),a&&!i.scale.isBlank()){for(var s=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),u=hD(i.getTicksCoords(),e.transform,l,K(s.getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;cp[1]?-1:1,h=["start"===s?p[0]-d*c:"end"===s?p[1]+d*c:(p[0]+p[1])/2,dD(s)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*sD/180),dD(s)?r=lD.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(r=function(t,e,o,n){var i,r,a=Vr(o-t),s=n[0]>n[1],l="start"===e&&!s||"start"!==e&&s;return Hr(a-sD/2)?(r=l?"bottom":"top",i="center"):Hr(a-1.5*sD)?(r=l?"top":"bottom",i="center"):(r="middle",i=a<1.5*sD&&a>sD/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:i,textVerticalAlign:r}}(t.rotation,s,f||0,p),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(r.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=St(t.nameTruncateMaxWidth,v.maxWidth,a),C=new Bl({x:h[0],y:h[1],rotation:r.rotation,silent:lD.isLabelSilent(e),style:sc(u,{text:i,font:g,overflow:"truncate",width:m,ellipsis:y,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||r.textAlign,verticalAlign:u.get("verticalAlign")||r.textVerticalAlign}),z2:1});if(kv({el:C,componentModel:e,itemName:i}),C.__fullText=i,C.anid="name",e.get("triggerEvent")){var w=lD.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Wl(C).eventData=w}n.add(C),C.updateTransform(),o.add(C),C.decomposeTransform()}}};function cD(t){t&&(t.ignore=!0)}function pD(t,e){var o=t&&t.getBoundingRect().clone(),n=e&&e.getBoundingRect().clone();if(o&&n){var i=Be([]);return Ue(i,i,-t.rotation),o.applyTransform(ze([],i,t.getLocalTransform())),n.applyTransform(ze([],i,e.getLocalTransform())),o.intersect(n)}}function dD(t){return"middle"===t||"center"===t}function hD(t,e,o,n,i){for(var r=[],a=[],s=[],l=0;l=0||t===e}function vD(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mD(t)]}function yD(t){return!!t.get(["handle","show"])}function mD(t){return t.type+"||"+t.id}var CD={},wD=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(e,o,n,i){this.axisPointerClass&&function(t){var e=vD(t);if(e){var o=e.axisPointerModel,n=e.axis.scale,i=o.option,r=o.get("status"),a=o.get("value");null!=a&&(a=n.parse(a));var s=yD(o);null==r&&(i.status=s?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=a;null!=p.color&&(d=K({color:p.color},a));var h=U(j(p),{boundaryGap:t,splitNumber:e,scale:o,axisLine:n,axisTick:i,axisLabel:r,name:p.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:c},!1);if(ct(l)){var f=h.name;h.name=l.replace("{value}",null!=f?f:"")}else ut(l)&&(h.name=l(h.name,h));var g=new Ac(h,null,this.ecModel);return Q(g,cb.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=p},e.prototype.getIndicatorModels=function(){return this._indicatorModels},e.type="radar",e.defaultOption={z:0,center:["50%","50%"],radius:"75%",startAngle:90,axisName:{show:!0},boundaryGap:[0,0],splitNumber:5,axisNameGap:15,scale:!1,shape:"polygon",axisLine:U({lineStyle:{color:"#bbb"}},WD.axisLine),axisLabel:zD(WD.axisLabel,!1),axisTick:zD(WD.axisTick,!1),splitLine:zD(WD.splitLine,!0),splitArea:zD(WD.splitArea,!0),indicator:[]},e}(zp);const UD=jD;var $D=["axisLine","axisTickLabel","axisName"],YD=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},e.prototype._buildAxes=function(t){var e=t.coordinateSystem;tt(et(e.getIndicatorAxes(),(function(t){var o=t.model.get("showName")?t.name:"";return new fD(t.model,{axisName:o,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){tt($D,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,o=e.getIndicatorAxes();if(o.length){var n=t.get("shape"),i=t.getModel("splitLine"),r=t.getModel("splitArea"),a=i.getModel("lineStyle"),s=r.getModel("areaStyle"),l=i.get("show"),u=r.get("show"),c=a.get("color"),p=s.get("color"),d=lt(c)?c:[c],h=lt(p)?p:[p],f=[],g=[];if("circle"===n)for(var v=o[0].getTicksCoords(),y=e.cx,m=e.cy,C=0;C3?1.4:i>1?1.2:1.1;iR(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?s:1/s,originX:r,originY:a,isAvailableBehavior:null})}if(o){var l=Math.abs(n);iR(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){eR(this._zr,"globalPan")||iR(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(ve);function iR(t,e,o,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(Ne(n.event),rR(t,e,o,n,i))}function rR(t,e,o,n,i){i.isAvailableBehavior=at(aR,null,o,n),t.trigger(e,i)}function aR(t,e,o){var n=o[t];return!t||n&&(!ct(n)||e.event[n+"Key"])}const sR=nR;function lR(t,e,o){var n=t.target;n.x+=e,n.y+=o,n.dirty()}function uR(t,e,o,n){var i=t.target,r=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,r){var s=r.min||0,l=r.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,i.x-=(o-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var cR,pR={axisPointer:1,tooltip:1,brush:1};function dR(t,e,o){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==o&&!pR.hasOwnProperty(n.mainType)&&i&&i.model!==o}function hR(t){ct(t)&&(t=(new DOMParser).parseFromString(t,"text/xml"));var e=t;for(9===e.nodeType&&(e=e.firstChild);"svg"!==e.nodeName.toLowerCase()||1!==e.nodeType;)e=e.nextSibling;return e}var fR={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},gR=rt(fR),vR={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yR=rt(vR),mR=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var o=hR(t);this._defsUsePending=[];var n=new vr;this._root=n;var i=[],r=o.getAttribute("viewBox")||"",a=parseFloat(o.getAttribute("width")||e.width),s=parseFloat(o.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),xR(o,n,null,!0,!1);for(var l,u,c=o.firstChild;c;)this._parseNode(c,n,i,null,!1,!1),c=c.nextSibling;if(function(t,e){for(var o=0;o=4&&(l={x:parseFloat(p[0]||0),y:parseFloat(p[1]||0),width:parseFloat(p[2]),height:parseFloat(p[3])})}if(l&&null!=a&&null!=s&&(u=PR(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=n;(n=new vr).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||n.setClipPath(new El({shape:{x:0,y:0,width:a,height:s}})),{root:n,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,o,n,i,r){var a,s=t.nodeName.toLowerCase(),l=n;if("defs"===s&&(i=!0),"text"===s&&(r=!0),"defs"===s||"switch"===s)a=e;else{if(!i){var u=cR[s];if(u&&Gt(cR,s)){a=u.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:s,el:a};o.push(p),"g"===s&&(l=p)}else n&&o.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:a});e.add(a)}}var d=CR[s];if(d&&Gt(CR,s)){var h=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=h)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,o,l,i,r):3===g.nodeType&&r&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var o=new hl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});bR(e,o),xR(t,o,this._defsUsePending,!1,!1),function(t,e){var o=e.__selfStyle;if(o){var n=o.textBaseline,i=n;n&&"auto"!==n?"baseline"===n?i="alphabetic":"before-edge"===n||"text-before-edge"===n?i="top":"after-edge"===n||"text-after-edge"===n?i="bottom":"central"!==n&&"mathematical"!==n||(i="middle"):i="alphabetic",t.style.textBaseline=i}var r=e.__inheritedStyle;if(r){var a=r.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(o,e);var n=o.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,o.scaleX*=i/9,o.scaleY*=i/9);var r=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=r;var a=o.getBoundingRect();return this._textX+=a.width,e.add(o),o},t.internalField=void(cR={g:function(t,e){var o=new vr;return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o},rect:function(t,e){var o=new El;return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o.setShape({x:parseFloat(t.getAttribute("x")||"0"),y:parseFloat(t.getAttribute("y")||"0"),width:parseFloat(t.getAttribute("width")||"0"),height:parseFloat(t.getAttribute("height")||"0")}),o.silent=!0,o},circle:function(t,e){var o=new ug;return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),o.silent=!0,o},line:function(t,e){var o=new Bg;return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o.setShape({x1:parseFloat(t.getAttribute("x1")||"0"),y1:parseFloat(t.getAttribute("y1")||"0"),x2:parseFloat(t.getAttribute("x2")||"0"),y2:parseFloat(t.getAttribute("y2")||"0")}),o.silent=!0,o},ellipse:function(t,e){var o=new dg;return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),rx:parseFloat(t.getAttribute("rx")||"0"),ry:parseFloat(t.getAttribute("ry")||"0")}),o.silent=!0,o},polygon:function(t,e){var o,n=t.getAttribute("points");n&&(o=_R(n));var i=new Lg({shape:{points:o||[]},silent:!0});return bR(e,i),xR(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var o,n=t.getAttribute("points");n&&(o=_R(n));var i=new kg({shape:{points:o||[]},silent:!0});return bR(e,i),xR(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var o=new yl;return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o.setStyle({image:t.getAttribute("xlink:href")||t.getAttribute("href"),x:+t.getAttribute("x"),y:+t.getAttribute("y"),width:+t.getAttribute("width"),height:+t.getAttribute("height")}),o.silent=!0,o},text:function(t,e){var o=t.getAttribute("x")||"0",n=t.getAttribute("y")||"0",i=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0";this._textX=parseFloat(o)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(r);var a=new vr;return bR(e,a),xR(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var o=t.getAttribute("x"),n=t.getAttribute("y");null!=o&&(this._textX=parseFloat(o)),null!=n&&(this._textY=parseFloat(n));var i=t.getAttribute("dx")||"0",r=t.getAttribute("dy")||"0",a=new vr;return bR(e,a),xR(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(r),a},path:function(t,e){var o=rg(t.getAttribute("d")||"");return bR(e,o),xR(t,o,this._defsUsePending,!1,!1),o.silent=!0,o}}),t}(),CR={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),o=parseInt(t.getAttribute("y1")||"0",10),n=parseInt(t.getAttribute("x2")||"10",10),i=parseInt(t.getAttribute("y2")||"0",10),r=new Jg(e,o,n,i);return wR(t,r),SR(t,r),r},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),o=parseInt(t.getAttribute("cy")||"0",10),n=parseInt(t.getAttribute("r")||"0",10),i=new tv(e,o,n);return wR(t,i),SR(t,i),i}};function wR(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function SR(t,e){for(var o=t.firstChild;o;){if(1===o.nodeType&&"stop"===o.nodeName.toLocaleLowerCase()){var n,i=o.getAttribute("offset");n=i&&i.indexOf("%")>0?parseInt(i,10)/100:i?parseFloat(i):0;var r={};IR(o,r,r);var a=r.stopColor||o.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:a})}o=o.nextSibling}}function bR(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),K(e.__inheritedStyle,t.__inheritedStyle))}function _R(t){for(var e=RR(t),o=[],n=0;n0;r-=2){var a=n[r],s=n[r-1],l=RR(a);switch(i=i||[1,0,0,1,0,0],s){case"translate":je(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":$e(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ue(i,i,-parseFloat(l[0])*MR);break;case"skewX":ze(i,[1,0,Math.tan(parseFloat(l[0])*MR),1,0,0],i);break;case"skewY":ze(i,[1,Math.tan(parseFloat(l[0])*MR),0,1,0,0],i);break;case"matrix":i[0]=parseFloat(l[0]),i[1]=parseFloat(l[1]),i[2]=parseFloat(l[2]),i[3]=parseFloat(l[3]),i[4]=parseFloat(l[4]),i[5]=parseFloat(l[5])}}e.setLocalTransform(i)}}(t,e),IR(t,a,s),n||function(t,e,o){for(var n=0;n0,f={api:o,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:h,isGeo:r,transformInfoRaw:p};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,o),this._updateMapSelectHandler(t,l,o,n)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Lt(),o=Lt(),n=this._regionsGroup,i=t.transformInfoRaw,r=t.mapOrGeoModel,a=t.data,s=t.geo.projection,l=s&&s.stream;function u(t,e){return e&&(t=e(t)),t&&[t[0]*i.scaleX+i.x,t[1]*i.scaleY+i.y]}function c(t){for(var e=[],o=!l&&s&&s.project,n=0;n=0)&&(d=i);var h=a?{normal:{align:"center",verticalAlign:"middle"}}:null;rc(e,ac(n),{labelFetcher:d,labelDataIndex:p,defaultText:o},h);var f=e.getTextContent();if(f&&(ZR(f).ignore=f.ignore,e.textConfig&&a)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(a[0]-g.x)/g.width*100+"%",(a[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function nO(t,e,o,n,i,r){t.data?t.data.setItemGraphicEl(r,e):Wl(e).eventData={componentType:"geo",componentIndex:i.componentIndex,geoIndex:i.componentIndex,name:o,region:n&&n.option||{}}}function iO(t,e,o,n,i){t.data||kv({el:e,componentModel:i,itemName:o,itemTooltipOption:n.get("tooltip")})}function rO(t,e,o,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var r=n.getModel("emphasis"),a=r.get("focus");return ku(e,a,r.get("blurScope"),r.get("disabled")),t.isGeo&&function(t,e,o){var n=Wl(t);n.componentMainType=e.mainType,n.componentIndex=e.componentIndex,n.componentHighDownName=o}(e,i,o),a}function aO(t,e,o){var n,i=[];function r(){n=[]}function a(){n.length&&(i.push(n),n=[])}var s=e({polygonStart:r,polygonEnd:a,lineStart:r,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&n.push([t,e])},sphere:function(){}});return!o&&s.polygonStart(),tt(t,(function(t){s.lineStart();for(var e=0;e-1&&(o.style.stroke=o.style.fill,o.style.fill="#fff",o.style.lineWidth=2),o},e.type="series.map",e.dependencies=["geo"],e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},e}(kf);const pO=cO;function dO(t){var e={};t.eachSeriesByType("map",(function(t){var o=t.getHostGeoModel(),n=o?"o"+o.id:"i"+t.getMapType();(e[n]=e[n]||[]).push(t)})),tt(e,(function(t,e){for(var o,n,i,r=(o=et(t,(function(t){return t.getData()})),n=t[0].get("mapValueCalculation"),i={},tt(o,(function(t){t.each(t.mapDimension("value"),(function(e,o){var n="ec-"+t.getName(o);i[n]=i[n]||[],isNaN(e)||i[n].push(e)}))})),o[0].map(o[0].mapDimension("value"),(function(t,e){for(var r="ec-"+o[0].getName(e),a=0,s=1/0,l=-1/0,u=i[r].length,c=0;c1?(h.width=d,h.height=d/C):(h.height=d,h.width=d*C),h.y=p[1]-h.height/2,h.x=p[0]-h.width/2;else{var S=t.getBoxLayoutParams();S.aspect=C,h=Np(S,{width:y,height:m})}this.setViewRect(h.x,h.y,h.width,h.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var xO=function(){function t(){this.dimensions=CO}return t.prototype.create=function(t,e){var o=[];function n(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,i){var r=t.get("map"),a=new bO(r+i,r,Y({nameMap:t.get("nameMap")},n(t)));a.zoomLimit=t.get("scaleLimit"),o.push(a),t.coordinateSystem=a,a.model=t,a.resize=_O,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=o[e]}}));var i={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();i[e]=i[e]||[],i[e].push(t)}})),tt(i,(function(t,i){var r=et(t,(function(t){return t.get("nameMap")})),a=new bO(i,i,Y({nameMap:$(r)},n(t[0])));a.zoomLimit=St.apply(null,et(t,(function(t){return t.get("scaleLimit")}))),o.push(a),a.resize=_O,a.resize(t[0],e),tt(t,(function(t){t.coordinateSystem=a,function(t,e){tt(e.get("geoCoord"),(function(e,o){t.addGeoCoord(o,e)}))}(a,t)}))})),o},t.prototype.getFilledRegions=function(t,e,o,n){for(var i=(t||[]).slice(),r=Lt(),a=0;a=0;){var r=e[o];r.hierNode.prelim+=n,r.hierNode.modifier+=n,i+=r.hierNode.change,n+=r.hierNode.shift+i}}(t);var r=(o[0].hierNode.prelim+o[o.length-1].hierNode.prelim)/2;i?(t.hierNode.prelim=i.hierNode.prelim+e(t,i),t.hierNode.modifier=t.hierNode.prelim-r):t.hierNode.prelim=r}else i&&(t.hierNode.prelim=i.hierNode.prelim+e(t,i));t.parentNode.hierNode.defaultAncestor=function(t,e,o,n){if(e){for(var i=t,r=t,a=r.parentNode.children[0],s=e,l=i.hierNode.modifier,u=r.hierNode.modifier,c=a.hierNode.modifier,p=s.hierNode.modifier;s=GO(s),r=VO(r),s&&r;){i=GO(i),a=VO(a),i.hierNode.ancestor=t;var d=s.hierNode.prelim+p-r.hierNode.prelim-u+n(s,r);d>0&&(BO(HO(s,t,o),t,d),u+=d,l+=d),p+=s.hierNode.modifier,u+=r.hierNode.modifier,l+=i.hierNode.modifier,c+=a.hierNode.modifier}s&&!GO(i)&&(i.hierNode.thread=s,i.hierNode.modifier+=p-l),r&&!VO(a)&&(a.hierNode.thread=r,a.hierNode.modifier+=u-c,o=t)}return o}(t,i,t.parentNode.hierNode.defaultAncestor||n[0],e)}function NO(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function FO(t){return arguments.length?t:WO}function kO(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function GO(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function VO(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function HO(t,e,o){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:o}function BO(t,e,o){var n=o/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=n,e.hierNode.shift+=o,e.hierNode.modifier+=o,e.hierNode.prelim+=o,t.hierNode.change+=n}function WO(t,e){return t.parentNode===e.parentNode?1:2}var zO=function(){this.parentPoint=[],this.childPoints=[]},jO=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new zO},e.prototype.buildPath=function(t,e){var o=e.childPoints,n=o.length,i=e.parentPoint,r=o[0],a=o[n-1];if(1===n)return t.moveTo(i[0],i[1]),void t.lineTo(r[0],r[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,c=Or(e.forkPosition,1),p=[];p[l]=i[l],p[u]=i[u]+(a[u]-i[u])*c,t.moveTo(i[0],i[1]),t.lineTo(p[0],p[1]),t.moveTo(r[0],r[1]),p[l]=r[l],t.lineTo(p[0],p[1]),p[l]=a[l],t.lineTo(p[0],p[1]),t.lineTo(a[0],a[1]);for(var d=1;dm.x)||(w-=Math.PI);var _=S?"left":"right",x=s.getModel("label"),E=x.get("rotate"),T=E*(Math.PI/180),D=v.getTextContent();D&&(v.setTextConfig({position:x.get("position")||_,rotation:null==E?-w:T,origin:"center"}),D.setStyle("verticalAlign","middle"))}var R=s.get(["emphasis","focus"]),O="relative"===R?Nt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===R?a.getAncestorsIndices():"descendant"===R?a.getDescendantIndices():null;O&&(Wl(o).focus=O),function(t,e,o,n,i,r,a,s){var l=e.getModel(),u=t.get("edgeShape"),c=t.get("layout"),p=t.getOrient(),d=t.get(["lineStyle","curveness"]),h=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=n.__edge;if("curve"===u)e.parentNode&&e.parentNode!==o&&(g||(g=n.__edge=new $g({shape:ZO(c,p,d,i,i)})),Xu(g,{shape:ZO(c,p,d,r,a)},t));else if("polyline"===u&&"orthogonal"===c&&e!==o&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var v=e.children,y=[],m=0;me&&(e=n.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,o=this.children,n=o.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},t.prototype.getLayout=function(){return this.hostTree.data.getItemLayout(this.dataIndex)},t.prototype.getModel=function(t){if(!(this.dataIndex<0))return this.hostTree.data.getItemModel(this.dataIndex).getModel(t)},t.prototype.getLevelModel=function(){return(this.hostTree.levelModels||[])[this.depth]},t.prototype.setVisual=function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},t.prototype.getVisual=function(t){return this.hostTree.data.getItemVisual(this.dataIndex,t)},t.prototype.getRawIndex=function(){return this.hostTree.data.getRawIndex(this.dataIndex)},t.prototype.getId=function(){return this.hostTree.data.getId(this.dataIndex)},t.prototype.getChildIndex=function(){if(this.parentNode){for(var t=this.parentNode.children,e=0;e=0){var n=o.getData().tree.root,i=t.targetNode;if(ct(i)&&(i=n.getNodeById(i)),i&&n.contains(i))return{node:i};var r=t.targetNodeId;if(null!=r&&(i=n.getNodeById(r)))return{node:i}}}function dM(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hM(t,e){return q(dM(t),e)>=0}function fM(t,e){for(var o=[];t;){var n=t.dataIndex;o.push({name:t.name,dataIndex:n,value:e.getRawValue(n)}),t=t.parentNode}return o.reverse(),o}var gM=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasSymbolVisual=!0,e.ignoreStyleOnData=!0,e}return m(e,t),e.prototype.getInitialData=function(t){var e={name:t.name,children:t.data},o=t.leaves||{},n=new Ac(o,this,this.ecModel),i=cM.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var o=i.getNodeByDataIndex(e);return o&&o.children.length&&o.isExpand||(t.parentModel=n),t}))})),r=0;i.eachNode("preorder",(function(t){t.depth>r&&(r=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:r;return i.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),i.data},e.prototype.getOrient=function(){var t=this.get("orient");return"horizontal"===t?t="LR":"vertical"===t&&(t="TB"),t},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.formatTooltip=function(t,e,o){for(var n=this.getData().tree,i=n.root.children[0],r=n.getNodeByDataIndex(t),a=r.getValue(),s=r.name;r&&r!==i;)s=r.parentNode.name+"."+s,r=r.parentNode;return hf("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var o=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=fM(n,this),o.collapsed=!n.isExpand,o},e.type="series.tree",e.layoutMode="box",e.defaultOption={z:2,coordinateSystem:"view",left:"12%",top:"12%",right:"12%",bottom:"12%",layout:"orthogonal",edgeShape:"curve",edgeForkPosition:"50%",roam:!1,nodeScaleRatio:.4,center:null,zoom:1,orient:"LR",symbol:"emptyCircle",symbolSize:7,expandAndCollapse:!0,initialTreeDepth:2,lineStyle:{color:"#ccc",width:1.5,curveness:.5},itemStyle:{color:"lightsteelblue",borderWidth:1.5},label:{show:!0},animationEasing:"linear",animationDuration:700,animationDurationUpdate:500},e}(kf);const vM=gM;function yM(t,e){for(var o,n=[t];o=n.pop();)if(e(o),o.isExpand){var i=o.children;if(i.length)for(var r=i.length-1;r>=0;r--)n.push(i[r])}}function mM(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var o=function(t,e){return Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=o;var n=t.get("layout"),i=0,r=0,a=null;"radial"===n?(i=2*Math.PI,r=Math.min(o.height,o.width)/2,a=FO((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=o.width,r=o.height,a=FO());var s=t.getData().tree.root,l=s.children[0];if(l){!function(t){var e=t;e.hierNode={defaultAncestor:null,ancestor:e,prelim:0,modifier:0,change:0,shift:0,i:0,thread:null};for(var o,n,i=[e];o=i.pop();)if(n=o.children,o.isExpand&&n.length)for(var r=n.length-1;r>=0;r--){var a=n[r];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(a)}}(s),function(t,e,o){for(var n,i=[t],r=[];n=i.pop();)if(r.push(n),n.isExpand){var a=n.children;if(a.length)for(var s=0;sc.getLayout().x&&(c=t),t.depth>p.depth&&(p=t)}));var d=u===c?1:a(u,c)/2,h=d-u.getLayout().x,f=0,g=0,v=0,y=0;if("radial"===n)f=i/(c.getLayout().x+d+h),g=r/(p.depth-1||1),yM(l,(function(t){v=(t.getLayout().x+h)*f,y=(t.depth-1)*g;var e=kO(v,y);t.setLayout({x:e.x,y:e.y,rawX:v,rawY:y},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=r/(c.getLayout().x+d+h),f=i/(p.depth-1||1),yM(l,(function(t){y=(t.getLayout().x+h)*g,v="LR"===m?(t.depth-1)*f:i-(t.depth-1)*f,t.setLayout({x:v,y},!0)}))):"TB"!==m&&"BT"!==m||(f=i/(c.getLayout().x+d+h),g=r/(p.depth-1||1),yM(l,(function(t){v=(t.getLayout().x+h)*f,y="TB"===m?(t.depth-1)*g:r-(t.depth-1)*g,t.setLayout({x:v,y},!0)})))}}}(t,e)}))}function CM(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var o=t.getModel().getModel("itemStyle").getItemStyle();Y(e.ensureUniqueItemVisual(t.dataIndex,"style"),o)}))}))}var wM=["treemapZoomToNode","treemapRender","treemapMove"];function SM(t){var e=t.getData().tree,o={};e.eachNode((function(e){for(var n=e;n&&n.depth>1;)n=n.parentNode;var i=vd(t.ecModel,n.name||n.dataIndex+"",o);e.setVisual("decal",i)}))}function bM(t){var e=0;tt(t.children,(function(t){bM(t);var o=t.value;lt(o)&&(o=o[0]),e+=o}));var o=t.value;lt(o)&&(o=o[0]),(null==o||isNaN(o))&&(o=e),o<0&&(o=0),lt(t.value)?t.value[0]=o:t.value=o}const _M=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.preventUsingHoverLayer=!0,o}return m(e,t),e.prototype.getInitialData=function(t,e){var o={name:t.name,children:t.data};bM(o);var n=t.levels||[],i=this.designatedVisualItemStyle={},r=new Ac({itemStyle:i},this,e);n=t.levels=function(t,e){var o,n,i=oa(e.get("color")),r=oa(e.get(["aria","decal","decals"]));if(i){tt(t=t||[],(function(t){var e=new Ac(t),i=e.get("color"),r=e.get("decal");(e.get(["itemStyle","color"])||i&&"none"!==i)&&(o=!0),(e.get(["itemStyle","decal"])||r&&"none"!==r)&&(n=!0)}));var a=t[0]||(t[0]={});return o||(a.color=i.slice()),!n&&r&&(a.decal=r.slice()),t}}(n,e);var a=et(n||[],(function(t){return new Ac(t,r,e)}),this),s=cM.createTree(o,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var o=s.getNodeByDataIndex(e),n=o?a[o.depth]:null;return t.parentModel=n||r,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,o){var n=this.getData(),i=this.getRawValue(t);return hf("nameValue",{name:n.getName(t),value:i})},e.prototype.getDataParams=function(e){var o=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=fM(n,this),o.treePathInfo=o.treeAncestors,o},e.prototype.setLayoutInfo=function(t){this.layoutInfo=this.layoutInfo||{},Y(this.layoutInfo,t)},e.prototype.mapIdToIndex=function(t){var e=this._idIndexMap;e||(e=this._idIndexMap=Lt(),this._idIndexMapCount=0);var o=e.get(t);return null==o&&e.set(t,o=this._idIndexMapCount++),o},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){SM(this)},e.type="series.treemap",e.layoutMode="box",e.defaultOption={progressive:0,left:"center",top:"middle",width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{color:"rgba(0,0,0,0.7)",textStyle:{color:"#fff"}},emphasis:{itemStyle:{color:"rgba(0,0,0,0.9)"}}},label:{show:!0,distance:0,padding:5,position:"inside",color:"#fff",overflow:"truncate"},upperLabel:{show:!1,position:[0,"50%"],height:20,overflow:"truncate",verticalAlign:"middle"},itemStyle:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{upperLabel:{show:!0,position:[0,"50%"],overflow:"truncate",verticalAlign:"middle"}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},e}(kf);var xM=function(){function t(t){this.group=new vr,t.add(this.group)}return t.prototype.render=function(t,e,o,n){var i=t.getModel("breadcrumb"),r=this.group;if(r.removeAll(),i.get("show")&&o){var a=i.getModel("itemStyle"),s=i.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),c={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(o,c,l),this._renderContent(t,c,a,s,l,u,n),Fp(r,c.pos,c.box)}},t.prototype._prepare=function(t,e,o){for(var n=t;n;n=n.parentNode){var i=ca(n.getModel().get("name"),""),r=o.getTextRect(i),a=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:n,text:i,width:a})}},t.prototype._renderContent=function(t,e,o,n,i,r,a){for(var s,l,u,c,p,d,h,f,g,v=0,y=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),C=(s=e.pos,c=(l=e.box).width,p=l.height,d=Or(s.left,c),h=Or(s.top,p),f=Or(s.right,c),g=Or(s.bottom,p),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=c),(isNaN(h)||isNaN(parseFloat(s.top)))&&(h=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=p),u=wp(u||0),{width:Math.max(f-d-u[1]-u[3],0),height:Math.max(g-h-u[0]-u[2],0)}),w=e.totalWidth,S=e.renderList,b=n.getModel("itemStyle").getItemStyle(),_=S.length-1;_>=0;_--){var x=S[_],E=x.node,T=x.width,D=x.text;w>C.width&&(w-=T-y,T=y,D=null);var R=new Lg({shape:{points:EM(v,0,T,m,_===S.length-1,0===_)},style:K(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new Bl({style:sc(i,{text:D})}),textConfig:{position:"inside"},z2:1e4*Jl,onclick:st(a,E)});R.disableLabelAnimation=!0,R.getTextContent().ensureState("emphasis").style=sc(r,{text:D}),R.ensureState("emphasis").style=b,ku(R,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(R),TM(R,t,E),v+=T+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function EM(t,e,o,n,i,r){var a=[[i?t:t-5,e],[t+o,e],[t+o,e+n],[i?t:t-5,e+n]];return!r&&a.splice(2,0,[t+o+5,e+n/2]),!i&&a.push([t,e+n/2]),a}function TM(t,e,o){Wl(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:o&&o.dataIndex,name:o&&o.name},treePathInfo:o&&fM(o,e)}}const DM=xM;var RM=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,o,n,i){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:o,delay:n,easing:i}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,o=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},n=0,i=this._storage.length;n3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var o=e.getLayout();if(!o)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x+t.dx,y:o.y+t.dy,width:o.width,height:o.height}})}},e.prototype._onZoom=function(t){var e=t.originX,o=t.originY;if("animating"!==this._state){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;var r=new ao(i.x,i.y,i.width,i.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];je(s,s,[-(e-=a.x),-(o-=a.y)]),$e(s,s,[t.scale,t.scale]),je(s,s,[e,o]),r.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:r.x,y:r.y,width:r.width,height:r.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var o=e.seriesModel.get("nodeClick",!0);if(o){var n=e.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)e._rootToNode(n);else if("zoomToNode"===o)e._zoomToNode(n);else if("link"===o){var r=i.hostTree.data.getItemModel(i.dataIndex),a=r.get("link",!0),s=r.get("target",!0)||"blank";a&&Op(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,o){var n=this;o||(o=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(o={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new DM(this.group))).render(t,e,o.node,(function(e){"animating"!==n._state&&(hM(t.getViewRoot(),e)?n._rootToNode({node:e}):n._zoomToNode({node:e}))}))},e.prototype.remove=function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage={nodeGroup:[],background:[],content:[]},this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},e.prototype.dispose=function(){this._clearController()},e.prototype._zoomToNode=function(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype._rootToNode=function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},e.prototype.findTarget=function(t,e){var o;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(n){var i=this._storage.background[n.getRawIndex()];if(i){var r=i.transformCoordToLocal(t,e),a=i.shape;if(!(a.x<=r[0]&&r[0]<=a.x+a.width&&a.y<=r[1]&&r[1]<=a.y+a.height))return!1;o={node:n,offsetX:r[0],offsetY:r[1]}}}),this),o},e.type="treemap",e}(Kv);const HM=VM;var BM=tt,WM=ht,zM=-1,jM=function(){function t(e){var o=e.mappingMethod,n=e.type,i=this.option=j(e);this.type=n,this.mappingMethod=o,this._normalizeData=tA[o];var r=t.visualHandlers[n];this.applyVisual=r.applyVisual,this.getColorMapper=r.getColorMapper,this._normalizedToVisual=r._normalizedToVisual[o],"piecewise"===o?(UM(i),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,tt(e,(function(e,o){e.originIndex=o,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(i)):"category"===o?i.categories?function(t){var e=t.categories,o=t.categoryMap={},n=t.visual;if(BM(e,(function(t,e){o[t]=e})),!lt(n)){var i=[];ht(n)?BM(n,(function(t,e){var n=o[e];i[null!=n?n:zM]=t})):i[zM]=n,n=JM(t,i)}for(var r=e.length-1;r>=0;r--)null==n[r]&&(delete o[e[r]],e.pop())}(i):UM(i,!0):(Tt("linear"!==o||i.dataExtent),UM(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return at(this._normalizeData,this)},t.listVisualTypes=function(){return rt(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,o){ht(t)?tt(t,e,o):e.call(o,t)},t.mapVisual=function(e,o,n){var i,r=lt(e)?[]:ht(e)?{}:(i=!0,null);return t.eachVisual(e,(function(t,e){var a=o.call(n,t,e);i?r=a:r[e]=a})),r},t.retrieveVisuals=function(e){var o,n={};return e&&BM(t.visualHandlers,(function(t,i){e.hasOwnProperty(i)&&(n[i]=e[i],o=!0)})),o?n:null},t.prepareVisualTypes=function(t){if(lt(t))t=t.slice();else{if(!WM(t))return[];var e=[];BM(t,(function(t,o){e.push(o)})),t=e}return t.sort((function(t,e){return"color"===e&&"color"!==t&&0===t.indexOf("color")?1:-1})),t},t.dependsOn=function(t,e){return"color"===e?!(!t||0!==t.indexOf(e)):t===e},t.findPieceIndex=function(t,e,o){for(var n,i=1/0,r=0,a=e.length;ru[1]&&(u[1]=l);var c=e.get("colorMappingBy"),p={type:a.name,dataExtent:u,visual:a.range};"color"!==p.type||"index"!==c&&"id"!==c?p.mappingMethod="linear":(p.mappingMethod="category",p.loop=!0);var d=new oA(p);return nA(d).drColorMappingBy=c,d}}}(0,i,r,0,u,h);tt(h,(function(t,e){if(t.depth>=o.length||t===o[t.depth]){var r=function(t,e,o,n,i,r){var a=Y({},e);if(i){var s=i.type,l="color"===s&&nA(i).drColorMappingBy,u="index"===l?n:"id"===l?r.mapIdToIndex(o.getId()):o.getValue(t.get("visualDimension"));a[s]=i.mapValueToVisual(u)}return a}(i,u,t,e,f,n);rA(t,r,o,n)}}))}else s=aA(u),c.fill=s}}function aA(t){var e=sA(t,"color");if(e){var o=sA(t,"colorAlpha"),n=sA(t,"colorSaturation");return n&&(e=Pn(e,null,null,n)),o&&(e=Ln(e,o)),e}}function sA(t,e){var o=t[e];if(null!=o&&"none"!==o)return o}function lA(t,e){var o=t.get(e);return lt(o)&&o.length?{name:e,range:o}:null}var uA=Math.max,cA=Math.min,pA=St,dA=tt,hA=["itemStyle","borderWidth"],fA=["itemStyle","gapWidth"],gA=["upperLabel","show"],vA=["upperLabel","height"];const yA={seriesType:"treemap",reset:function(t,e,o,n){var i=o.getWidth(),r=o.getHeight(),a=t.option,s=Np(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()}),l=a.size||[],u=Or(pA(s.width,l[0]),i),c=Or(pA(s.height,l[1]),r),p=n&&n.type,d=pM(n,["treemapZoomToNode","treemapRootToNode"],t),h="treemapRender"===p||"treemapMove"===p?n.rootRect:null,f=t.getViewRoot(),g=dM(f);if("treemapMove"!==p){var v="treemapZoomToNode"===p?function(t,e,o,n,i){var r,a=(e||{}).node,s=[n,i];if(!a||a===o)return s;for(var l=n*i,u=l*t.option.zoomToNodeRatio;r=a.parentNode;){for(var c=0,p=r.children,d=0,h=p.length;dGr&&(u=Gr),a=r}ua[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:n,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,o,n,i){if(!n)return o;for(var r=t.get("visibleMin"),a=i.length,s=a,l=a-1;l>=0;l--){var u=i["asc"===n?a-l-1:l].getValue();u/o*en&&(n=a));var l=t.area*t.area,u=e*e*o;return l?uA(u*n/l,l/(u*i)):1/0}function wA(t,e,o,n,i){var r=e===o.width?0:1,a=1-r,s=["x","y"],l=["width","height"],u=o[s[r]],c=e?t.area/e:0;(i||c>o[l[a]])&&(c=o[l[a]]);for(var p=0,d=t.length;pn&&(n=e);var r=n%2?n+2:n+3;i=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var w=y[0]<0?-1:1;if("start"!==n.__position&&"end"!==n.__position){var S=-Math.atan2(y[1],y[0]);u[0].8?"left":c[0]<-.8?"right":"center",d=c[1]>.8?"top":c[1]<-.8?"bottom":"middle";break;case"start":n.x=-c[0]*f+l[0],n.y=-c[1]*g+l[1],p=c[0]>.8?"right":c[0]<-.8?"left":"center",d=c[1]>.8?"bottom":c[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=f*w+l[0],n.y=l[1]+b,p=y[0]<0?"right":"left",n.originX=-f*w,n.originY=-b;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=C[0],n.y=C[1]+b,p="center",n.originY=-b;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-f*w+u[0],n.y=u[1]+b,p=y[0]>=0?"right":"left",n.originX=f*w,n.originY=-b}n.scaleX=n.scaleY=i,n.setStyle({verticalAlign:n.__verticalAlign||d,align:n.__align||p})}}}function _(t,e){var o=t.__specifiedRotation;if(null==o){var n=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(n[1],n[0]))}else t.attr("rotation",o)}},e}(vr);const sI=aI;function lI(t){var e=t.hostModel,o=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:o.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:o.get("disabled"),blurScope:o.get("blurScope"),focus:o.get("focus"),labelStatesModels:ac(e)}}function uI(t){return isNaN(t[0])||isNaN(t[1])}function cI(t){return t&&!uI(t[0])&&!uI(t[1])}const pI=function(){function t(t){this.group=new vr,this._LineCtor=t||sI}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var o=this,n=o.group,i=o._lineData;o._lineData=t,i||n.removeAll();var r=lI(t);t.diff(i).add((function(o){e._doAdd(t,o,r)})).update((function(o,n){e._doUpdate(i,t,n,o,r)})).remove((function(t){n.remove(i.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,o){e.updateLayout(t,o)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=lI(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function o(t){t.isGroup||function(t){return t.animators&&t.animators.length>0}(t)||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[];for(var n=t.start;n=0?n+=u:n-=u:f>=0?n-=u:n+=u}return n}function CI(t,e){var o=[],n=on,i=[[],[],[]],r=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[zt(l[0]),zt(l[1])],l[2]&&l.__original.push(zt(l[2])));var p=l.__original;if(null!=l[2]){if(Wt(i[0],p[0]),Wt(i[1],p[2]),Wt(i[2],p[1]),u&&"none"!==u){var d=HA(t.node1),h=mI(i,p[0],d*e);n(i[0][0],i[1][0],i[2][0],h,o),i[0][0]=o[3],i[1][0]=o[4],n(i[0][1],i[1][1],i[2][1],h,o),i[0][1]=o[3],i[1][1]=o[4]}c&&"none"!==c&&(d=HA(t.node2),h=mI(i,p[1],d*e),n(i[0][0],i[1][0],i[2][0],h,o),i[1][0]=o[1],i[2][0]=o[2],n(i[0][1],i[1][1],i[2][1],h,o),i[1][1]=o[1],i[2][1]=o[2]),Wt(l[0],i[0]),Wt(l[1],i[2]),Wt(l[2],i[1])}else Wt(r[0],p[0]),Wt(r[1],p[1]),Yt(a,r[1],r[0]),oe(a,a),u&&"none"!==u&&(d=HA(t.node1),$t(r[0],r[0],a,d*e)),c&&"none"!==c&&(d=HA(t.node2),$t(r[1],r[1],a,-d*e)),Wt(l[0],r[0]),Wt(l[1],r[1])}))}function wI(t){return"view"===t.type}var SI=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(t,e){var o=new uE,n=new pI,i=this.group;this._controller=new sR(e.getZr()),this._controllerHost={target:i},i.add(o.group),i.add(n.group),this._symbolDraw=o,this._lineDraw=n,this._firstRender=!0},e.prototype.render=function(t,e,o){var n=this,i=t.coordinateSystem;this._model=t;var r=this._symbolDraw,a=this._lineDraw,s=this.group;if(wI(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?s.attr(l):Xu(s,l,t)}CI(t.getGraph(),VA(t));var u=t.getData();r.updateData(u);var c=t.getEdgeData();a.updateData(c),this._updateNodeAndLinkScale(),this._updateController(t,e,o),clearTimeout(this._layoutTimeout);var p=t.forceLayout,d=t.get(["force","layoutAnimation"]);p&&this._startForceLayoutIteration(p,d);var h=t.get("layout");u.graph.eachNode((function(e){var o=e.dataIndex,i=e.getGraphicEl(),r=e.getModel();if(i){i.off("drag").off("dragend");var a=r.get("draggable");a&&i.on("drag",(function(r){switch(h){case"force":p.warmUp(),!n._layouting&&n._startForceLayoutIteration(p,d),p.setFixed(o),u.setItemLayout(o,[i.x,i.y]);break;case"circular":u.setItemLayout(o,[i.x,i.y]),e.setLayout({fixed:!0},!0),zA(t,"symbolSize",e,[r.offsetX,r.offsetY]),n.updateLayout(t);break;default:u.setItemLayout(o,[i.x,i.y]),kA(t.getGraph(),t),n.updateLayout(t)}})).on("dragend",(function(){p&&p.setUnfixed(o)})),i.setDraggable(a,!!r.get("cursor")),"adjacency"===r.get(["emphasis","focus"])&&(Wl(i).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),o=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===o&&(Wl(e).focus={edge:[t.dataIndex],node:[t.node1.dataIndex,t.node2.dataIndex]})}));var f="circular"===t.get("layout")&&t.get(["circular","rotateLabel"]),g=u.getLayout("cx"),v=u.getLayout("cy");u.graph.eachNode((function(t){UA(t,f,g,v)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var o=this;!function n(){t.step((function(t){o.updateLayout(o._model),(o._layouting=!t)&&(e?o._layoutTimeout=setTimeout(n,16):n())}))}()},e.prototype._updateController=function(t,e,o){var n=this,i=this._controller,r=this._controllerHost,a=this.group;i.setPointerChecker((function(e,n,i){var r=a.getBoundingRect();return r.applyTransform(a.transform),r.contain(n,i)&&!dR(e,o,t)})),wI(t.coordinateSystem)?(i.enable(t.get("roam")),r.zoomLimit=t.get("scaleLimit"),r.zoom=t.coordinateSystem.getZoom(),i.off("pan").off("zoom").on("pan",(function(e){lR(r,e.dx,e.dy),o.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uR(r,e.scale,e.originX,e.originY),o.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),n._updateNodeAndLinkScale(),CI(t.getGraph(),VA(t)),n._lineDraw.updateLayout(),o.updateLabelLayout()}))):i.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),o=VA(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(o)}))},e.prototype.updateLayout=function(t){CI(t.getGraph(),VA(t)),this._symbolDraw.updateLayout(),this._lineDraw.updateLayout()},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(),this._lineDraw&&this._lineDraw.remove()},e.type="graph",e}(Kv);const bI=SI;function _I(t){return"_EC_"+t}var xI=function(){function t(t){this.type="graph",this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this._directed=t||!1}return t.prototype.isDirected=function(){return this._directed},t.prototype.addNode=function(t,e){t=null==t?""+e:""+t;var o=this._nodesMap;if(!o[_I(t)]){var n=new EI(t,e);return n.hostGraph=this,this.nodes.push(n),o[_I(t)]=n,n}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[_I(t)]},t.prototype.addEdge=function(t,e,o){var n=this._nodesMap,i=this._edgesMap;if(dt(t)&&(t=this.nodes[t]),dt(e)&&(e=this.nodes[e]),t instanceof EI||(t=n[_I(t)]),e instanceof EI||(e=n[_I(e)]),t&&e){var r=t.id+"-"+e.id,a=new TI(t,e,o);return a.hostGraph=this,this._directed&&(t.outEdges.push(a),e.inEdges.push(a)),t.edges.push(a),t!==e&&e.edges.push(a),this.edges.push(a),i[r]=a,a}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof EI&&(t=t.id),e instanceof EI&&(e=e.id);var o=this._edgesMap;return this._directed?o[t+"-"+e]:o[t+"-"+e]||o[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var o=this.nodes,n=o.length,i=0;i=0&&t.call(e,o[i],i)},t.prototype.eachEdge=function(t,e){for(var o=this.edges,n=o.length,i=0;i=0&&o[i].node1.dataIndex>=0&&o[i].node2.dataIndex>=0&&t.call(e,o[i],i)},t.prototype.breadthFirstTraverse=function(t,e,o,n){if(e instanceof EI||(e=this._nodesMap[_I(e)]),e){for(var i="out"===o?"outEdges":"in"===o?"inEdges":"edges",r=0;r=0&&o.node2.dataIndex>=0})),i=0,r=n.length;i=0&&this[t][e].setItemVisual(this.dataIndex,o,n)},getVisual:function(o){return this[t][e].getItemVisual(this.dataIndex,o)},setLayout:function(o,n){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,o,n)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}}Q(EI,DI("hostGraph","data")),Q(TI,DI("hostGraph","edgeData"));const RI=xI;function OI(t,e,o,n,i){for(var r=new RI(n),a=0;a "+d)),u++)}var h,f=o.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=Jw(t,o);else{var g=Rd.get(f),v=g&&g.dimensions||[];q(v,"value")<0&&v.concat(["value"]);var y=Uw(t,{coordDimensions:v,encodeDefine:o.getEncode()}).dimensions;(h=new zw(y,o)).initData(t)}var m=new zw(["value"],o);return m.initData(l,s),i&&i(h,m),sM({mainData:h,struct:r,structAttr:"graph",datas:{node:h,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var MI=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.hasSymbolVisual=!0,o}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var o=this;function n(){return o._categoriesData}this.legendVisualProvider=new TT(n,n),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},e.prototype.mergeDefaultAndTheme=function(e){t.prototype.mergeDefaultAndTheme.apply(this,arguments),na(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var o,n=t.edges||t.links||[],i=t.data||t.nodes||[],r=this;if(i&&n){RA(o=this)&&(o.__curvenessList=[],o.__edgeMap={},OA(o));var a=OI(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=r._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var o=Ac.prototype.getModel;function n(t,e){var n=o.call(this,t,e);return n.resolveParentPath=i,n}function i(t){if(t&&("label"===t[0]||"label"===t[1])){var e=t.slice();return"label"===t[0]?e[0]="edgeLabel":"label"===t[1]&&(e[1]="edgeLabel"),e}return t}e.wrapMethod("getItemModel",(function(t){return t.resolveParentPath=i,t.getModel=n,t}))}));return tt(a.edges,(function(t){!function(t,e,o,n){if(RA(o)){var i=MA(t,e,o),r=o.__edgeMap,a=r[AA(i)];r[i]&&!a?r[i].isForward=!0:a&&r[i]&&(a.isForward=!0,r[i].isForward=!1),r[i]=r[i]||[],r[i].push(n)}}(t.node1,t.node2,this,t.dataIndex)}),this),a.data}},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.getCategoriesData=function(){return this._categoriesData},e.prototype.formatTooltip=function(t,e,o){if("edge"===o){var n=this.getData(),i=this.getDataParams(t,o),r=n.graph.getEdgeByIndex(t),a=n.getName(r.node1.dataIndex),s=n.getName(r.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),hf("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Ef({series:this,dataIndex:t,multipleSeries:e})},e.prototype._updateCategoriesData=function(){var t=et(this.option.categories||[],(function(t){return null!=t.value?t:Y({value:0},t)})),e=new zw(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray((function(t){return e.getItemModel(t)}))},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.isAnimationEnabled=function(){return t.prototype.isAnimationEnabled.call(this)&&!("force"===this.get("layout")&&this.get(["force","layoutAnimation"]))},e.type="series.graph",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={z:2,coordinateSystem:"view",legendHoverLink:!0,layout:null,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,friction:.6,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{position:"middle",distance:5},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{show:!1,formatter:"{b}"},itemStyle:{},lineStyle:{color:"#aaa",width:1,opacity:.5},emphasis:{scale:!0,label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(kf);const AI=MI;var II={type:"graphRoam",event:"graphRoam",update:"none"},PI=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},LI=function(t){function e(e){var o=t.call(this,e)||this;return o.type="pointer",o}return m(e,t),e.prototype.getDefaultShape=function(){return new PI},e.prototype.buildPath=function(t,e){var o=Math.cos,n=Math.sin,i=e.r,r=e.width,a=e.angle,s=e.x-o(a)*r*(r>=i/3?1:2),l=e.y-n(a)*r*(r>=i/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+o(a)*r,e.y+n(a)*r),t.lineTo(e.x+o(e.angle)*i,e.y+n(e.angle)*i),t.lineTo(e.x-o(a)*r,e.y-n(a)*r),t.lineTo(s,l)},e}(cl);const NI=LI;function FI(t,e){var o=null==t?"":t+"";return e&&(ct(e)?o=e.replace("{value}",o):ut(e)&&(o=e(t))),o}var kI=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){this.group.removeAll();var n=t.get(["axisLine","lineStyle","color"]),i=function(t,e){var o=t.get("center"),n=e.getWidth(),i=e.getHeight(),r=Math.min(n,i);return{cx:Or(o[0],e.getWidth()),cy:Or(o[1],e.getHeight()),r:Or(t.get("radius"),r/2)}}(t,o);this._renderMain(t,e,o,n,i),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,o,n,i){var r=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?zE:Dg,p=u.get("show"),d=u.getModel("lineStyle"),h=d.get("width"),f=[s,l];Bs(f,!a);for(var g=(l=f[1])-(s=f[0]),v=s,y=[],m=0;p&&m=t&&(0===e?0:n[e-1][0])Math.PI/2&&(G+=Math.PI):"tangential"===k?G=-x-Math.PI/2:dt(k)&&(G=k*Math.PI/180),0===G?p.add(new Bl({style:sc(C,{text:P,x:N,y:F,verticalAlign:c<-.8?"top":c>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:L}),silent:!0})):p.add(new Bl({style:sc(C,{text:P,x:N,y:F,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:N,originY:F,rotation:G}))}if(m.get("show")&&M!==w){I=(I=m.get("distance"))?I+l:l;for(var V=0;V<=S;V++){u=Math.cos(x),c=Math.sin(x);var H=new Bg({shape:{x1:u*(f-I)+d,y1:c*(f-I)+h,x2:u*(f-_-I)+d,y2:c*(f-_-I)+h},silent:!0,style:R});"auto"===R.stroke&&H.setStyle({stroke:n((M+V/S)/w)}),p.add(H),x+=T}x-=T}else x+=E}},e.prototype._renderPointer=function(t,e,o,n,i,r,a,s,l){var u=this.group,c=this._data,p=this._progressEls,d=[],h=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),v=t.getData(),y=v.mapDimension("value"),m=+t.get("min"),C=+t.get("max"),w=[m,C],S=[r,a];function b(e,o){var n,r=v.getItemModel(e).getModel("pointer"),a=Or(r.get("width"),i.r),s=Or(r.get("length"),i.r),l=t.get(["pointer","icon"]),u=r.get("offsetCenter"),c=Or(u[0],i.r),p=Or(u[1],i.r),d=r.get("keepAspect");return(n=l?im(l,c-a/2,p-s,a,s,null,d):new NI({shape:{angle:-Math.PI/2,width:a,r:s,x:c,y:p}})).rotation=-(o+Math.PI/2),n.x=i.cx,n.y=i.cy,n}function _(t,e){var o=f.get("roundCap")?zE:Dg,n=f.get("overlap"),a=n?f.get("width"):l/v.count(),u=n?i.r-a:i.r-(t+1)*a,c=n?i.r:i.r-t*a,p=new o({shape:{startAngle:r,endAngle:e,cx:i.cx,cy:i.cy,clockwise:s,r0:u,r:c}});return n&&(p.z2=C-v.get(y,t)%C),p}(g||h)&&(v.diff(c).add((function(e){var o=v.get(y,e);if(h){var n=b(e,r);qu(n,{rotation:-((isNaN(+o)?S[0]:Rr(o,w,S,!0))+Math.PI/2)},t),u.add(n),v.setItemGraphicEl(e,n)}if(g){var i=_(e,r),a=f.get("clip");qu(i,{shape:{endAngle:Rr(o,w,S,a)}},t),u.add(i),zl(t.seriesIndex,v.dataType,e,i),d[e]=i}})).update((function(e,o){var n=v.get(y,e);if(h){var i=c.getItemGraphicEl(o),a=i?i.rotation:r,s=b(e,a);s.rotation=a,Xu(s,{rotation:-((isNaN(+n)?S[0]:Rr(n,w,S,!0))+Math.PI/2)},t),u.add(s),v.setItemGraphicEl(e,s)}if(g){var l=p[o],m=_(e,l?l.shape.endAngle:r),C=f.get("clip");Xu(m,{shape:{endAngle:Rr(n,w,S,C)}},t),u.add(m),zl(t.seriesIndex,v.dataType,e,m),d[e]=m}})).execute(),v.each((function(t){var e=v.getItemModel(t),o=e.getModel("emphasis"),i=o.get("focus"),r=o.get("blurScope"),a=o.get("disabled");if(h){var s=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),u=l.fill;if(s instanceof yl){var c=s.style;s.useStyle(Y({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else s.useStyle(l),"pointer"!==s.type&&s.setColor(u);s.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===s.style.fill&&s.setStyle("fill",n(Rr(v.get(y,t),w,[0,1],!0))),s.z2EmphasisLift=0,Bu(s,e),ku(s,i,r,a)}if(g){var p=d[t];p.useStyle(v.getItemVisual(t,"style")),p.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),p.z2EmphasisLift=0,Bu(p,e),ku(p,i,r,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var o=t.getModel("anchor");if(o.get("show")){var n=o.get("size"),i=o.get("icon"),r=o.get("offsetCenter"),a=o.get("keepAspect"),s=im(i,e.cx-n/2+Or(r[0],e.r),e.cy-n/2+Or(r[1],e.r),n,n,null,a);s.z2=o.get("showAbove")?1:0,s.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,o,n,i){var r=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new vr,p=[],d=[],h=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){p[t]=new Bl({silent:!0}),d[t]=new Bl({silent:!0})})).update((function(t,e){p[t]=r._titleEls[e],d[t]=r._detailEls[e]})).execute(),a.each((function(e){var o=a.getItemModel(e),r=a.get(s,e),g=new vr,v=n(Rr(r,[l,u],[0,1],!0)),y=o.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),C=i.cx+Or(m[0],i.r),w=i.cy+Or(m[1],i.r);(R=p[e]).attr({z2:f?0:2,style:sc(y,{x:C,y:w,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(R)}var S=o.getModel("detail");if(S.get("show")){var b=S.get("offsetCenter"),_=i.cx+Or(b[0],i.r),x=i.cy+Or(b[1],i.r),E=Or(S.get("width"),i.r),T=Or(S.get("height"),i.r),D=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:v,R=d[e],O=S.get("formatter");R.attr({z2:f?0:2,style:sc(S,{x:_,y:x,text:FI(r,O),width:isNaN(E)?null:E,height:isNaN(T)?null:T,align:"center",verticalAlign:"middle"},{inheritColor:D})}),gc(R,{normal:S},r,(function(t){return FI(t,O)})),h&&vc(R,e,a,t,{getFormattedLabel:function(t,e,o,n,i,a){return FI(a?a.interpolatedValue:r,O)}}),g.add(R)}c.add(g)})),this.group.add(c),this._titleEls=p,this._detailEls=d},e.type="gauge",e}(Kv);const GI=kI,VI=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.visualStyleAccessPath="itemStyle",o}return m(e,t),e.prototype.getInitialData=function(t,e){return xT(this,["value"])},e.type="series.gauge",e.defaultOption={z:2,colorBy:"data",center:["50%","50%"],legendHoverLink:!0,radius:"75%",startAngle:225,endAngle:-45,clockwise:!0,min:0,max:100,splitNumber:10,axisLine:{show:!0,roundCap:!1,lineStyle:{color:[[1,"#E6EBF8"]],width:10}},progress:{show:!1,overlap:!0,width:10,roundCap:!1,clip:!0},splitLine:{show:!0,length:10,distance:10,lineStyle:{color:"#63677A",width:3,type:"solid"}},axisTick:{show:!0,splitNumber:5,length:6,distance:10,lineStyle:{color:"#63677A",width:1,type:"solid"}},axisLabel:{show:!0,distance:15,color:"#464646",fontSize:12,rotate:0},pointer:{icon:null,offsetCenter:[0,0],show:!0,showAbove:!0,length:"60%",width:6,keepAspect:!1},anchor:{show:!1,showAbove:!1,size:6,icon:"circle",offsetCenter:[0,0],keepAspect:!1,itemStyle:{color:"#fff",borderWidth:0,borderColor:"#5470c6"}},title:{show:!0,offsetCenter:[0,"20%"],color:"#464646",fontSize:16,valueAnimation:!1},detail:{show:!0,backgroundColor:"rgba(0,0,0,0)",borderWidth:0,borderColor:"#ccc",width:100,height:null,padding:[5,10],offsetCenter:[0,"40%"],color:"#464646",fontSize:30,fontWeight:"bold",lineHeight:30,valueAnimation:!1}},e}(kf);var HI=["itemStyle","opacity"],BI=function(t){function e(e,o){var n=t.call(this)||this,i=n,r=new kg,a=new Bl;return i.setTextContent(a),n.setTextGuideLine(r),n.updateData(e,o,!0),n}return m(e,t),e.prototype.updateData=function(t,e,o){var n=this,i=t.hostModel,r=t.getItemModel(e),a=t.getItemLayout(e),s=r.getModel("emphasis"),l=r.get(HI);l=null==l?1:l,o||ec(n),n.useStyle(t.getItemVisual(e,"style")),n.style.lineJoin="round",o?(n.setShape({points:a.points}),n.style.opacity=0,qu(n,{style:{opacity:l}},i,e)):Xu(n,{style:{opacity:l},shape:{points:a.points}},i,e),Bu(n,r),this._updateLabel(t,e),ku(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var o=this,n=this.getTextGuideLine(),i=o.getTextContent(),r=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;rc(i,ac(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),o.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var c=s.linePoints;n.setShape({points:c}),o.textGuideLineConfig={anchor:c?new qe(c[0][0],c[0][1]):null},Xu(i,{style:{x:s.x,y:s.y}},r,e),i.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),f_(o,g_(a),{stroke:u})},e}(Lg);const WI=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.ignoreLabelLineUpdate=!0,o}return m(e,t),e.prototype.render=function(t,e,o){var n=t.getData(),i=this._data,r=this.group;n.diff(i).add((function(t){var e=new BI(n,t);n.setItemGraphicEl(t,e),r.add(e)})).update((function(t,e){var o=i.getItemGraphicEl(e);o.updateData(n,t),r.add(o),n.setItemGraphicEl(t,o)})).remove((function(e){tc(i.getItemGraphicEl(e),t,e)})).execute(),this._data=n},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Kv);var zI=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new TT(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return xT(this,{coordDimensions:["value"],encodeDefaulter:st(rd,this)})},e.prototype._defaultLabelLine=function(t){na(t,"labelLine",["show"]);var e=t.labelLine,o=t.emphasis.labelLine;e.show=e.show&&t.label.show,o.show=o.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var o=this.getData(),n=t.prototype.getDataParams.call(this,e),i=o.mapDimension("value"),r=o.getSum(i);return n.percent=r?+(o.get(i,e)/r*100).toFixed(2):0,n.$vars.push("percent"),n},e.type="series.funnel",e.defaultOption={z:2,legendHoverLink:!0,colorBy:"data",left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",orient:"vertical",gap:0,funnelAlign:"center",label:{show:!0,position:"outer"},labelLine:{show:!0,length:20,lineStyle:{width:1}},itemStyle:{borderColor:"#fff",borderWidth:1},emphasis:{label:{show:!0}},select:{itemStyle:{borderColor:"#212121"}}},e}(kf);const jI=zI;function UI(t,e){t.eachSeriesByType("funnel",(function(t){var o=t.getData(),n=o.mapDimension("value"),i=t.get("sort"),r=function(t,e){return Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=r.width,l=r.height,u=function(t,e){for(var o=t.mapDimension("value"),n=t.mapArray(o,(function(t){return t})),i=[],r="ascending"===e,a=0,s=t.count();a5)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==n.behavior&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&rP(this,"mousemove")){var e=this._model,o=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),n=o.behavior;"jump"===n&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===n?null:{axisExpandWindow:o.axisExpandWindow,animation:"jump"===n?null:{duration:0}})}}};function rP(t,e){var o=t._model;return o.get("axisExpandable")&&o.get("axisExpandTriggerOn")===e}const aP=nP,sP=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(){t.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var e=this.option;t&&U(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var o=t.get("parallelIndex");return null!=o&&e.getComponent("parallel",o)===this},e.prototype.setAxisExpand=function(t){tt(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],(function(e){t.hasOwnProperty(e)&&(this.option[e]=t[e])}),this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],e=this.parallelAxisIndex=[];tt(nt(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(o){t.push("dim"+o.get("dim")),e.push(o.componentIndex)}))},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e}(zp);var lP=function(t){function e(e,o,n,i,r){var a=t.call(this,e,o,n)||this;return a.type=i||"value",a.axisIndex=r,a}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Bb);const uP=lP;function cP(t,e,o,n,i,r){t=t||0;var a=o[1]-o[0];if(null!=i&&(i=dP(i,[0,a])),null!=r&&(r=Math.max(r,null!=i?i:0)),"all"===n){var s=Math.abs(e[1]-e[0]);s=dP(s,[0,a]),i=r=dP(s,[i,r]),n=0}e[0]=dP(e[0],o),e[1]=dP(e[1],o);var l=pP(e,n);e[n]+=t;var u,c=i||0,p=o.slice();return l.sign<0?p[0]+=c:p[1]-=c,e[n]=dP(e[n],p),u=pP(e,n),null!=i&&(u.sign!==l.sign||u.spanr&&(e[1-n]=e[n]+u.sign*r),e}function pP(t,e){var o=t[e]-t[1-e];return{span:Math.abs(o),sign:o>0?-1:o<0?1:e?-1:1}}function dP(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var hP=tt,fP=Math.min,gP=Math.max,vP=Math.floor,yP=Math.ceil,mP=Mr,CP=Math.PI,wP=function(){function t(t,e,o){this.type="parallel",this._axesMap=Lt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,o)}return t.prototype._init=function(t,e,o){var n=t.dimensions,i=t.parallelAxisIndex;hP(n,(function(t,o){var n=i[o],r=e.getComponent("parallelAxis",n),a=this._axesMap.set(t,new uP(t,nb(r),[0,0],r.get("type"),n)),s="category"===a.type;a.onBand=s&&r.get("boundaryGap"),a.inverse=r.get("inverse"),r.axis=a,a.model=r,a.coordinateSystem=r.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),o=e.axisBase,n=e.layoutBase,i=e.pixelDimIndex,r=t[1-i],a=t[i];return r>=o&&r<=o+e.axisLength&&a>=n&&a<=n+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(o){if(t.contains(o,e)){var n=o.getData();hP(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(n,n.mapDimension(t)),ob(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),this._layoutAxes()},t.prototype.getRect=function(){return this._rect},t.prototype._makeLayoutInfo=function(){var t,e=this._model,o=this._rect,n=["x","y"],i=["width","height"],r=e.get("layout"),a="horizontal"===r?0:1,s=o[i[a]],l=[0,s],u=this.dimensions.length,c=SP(e.get("axisExpandWidth"),l),p=SP(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>p&&p>1&&c>0&&s>0,h=e.get("axisExpandWindow");h?(t=SP(h[1]-h[0],l),h[1]=h[0]+t):(t=SP(c*(p-1),l),(h=[c*(e.get("axisExpandCenter")||vP(u/2))-t/2])[1]=h[0]+t);var f=(s-t)/(u-p);f<3&&(f=0);var g=[vP(mP(h[0]/c,1))+1,yP(mP(h[1]/c,1))-1],v=f/c*h[0];return{layout:r,pixelDimIndex:a,layoutBase:o[n[a]],layoutLength:s,axisBase:o[n[1-a]],axisLength:o[i[1-a]],axisExpandable:d,axisExpandWidth:c,axisCollapseWidth:f,axisExpandWindow:h,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:v}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,o=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;e.each((function(t){var e=[0,n.axisLength],o=t.inverse?1:0;t.setExtent(e[o],e[1-o])})),hP(o,(function(e,o){var r=(n.axisExpandable?_P:bP)(o,n),a={horizontal:{x:r.position,y:n.axisLength},vertical:{x:0,y:r.position}},s={horizontal:CP/2,vertical:0},l=[a[i].x+t.x,a[i].y+t.y],u=s[i],c=[1,0,0,1,0,0];Ue(c,c,u),je(c,c,l),this._axesLayout[e]={position:l,rotation:u,transform:c,axisNameAvailableWidth:r.axisNameAvailableWidth,axisLabelShow:r.axisLabelShow,nameTruncateMaxWidth:r.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}}),this)},t.prototype.getAxis=function(t){return this._axesMap.get(t)},t.prototype.dataToPoint=function(t,e){return this.axisCoordToPoint(this._axesMap.get(e).dataToCoord(t),e)},t.prototype.eachActiveState=function(t,e,o,n){null==o&&(o=0),null==n&&(n=t.count());var i=this._axesMap,r=this.dimensions,a=[],s=[];tt(r,(function(e){a.push(t.mapDimension(e)),s.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=o;ui*(1-c[0])?(l="jump",a=s-i*(1-c[2])):(a=s-i*c[1])>=0&&(a=s-i*(1-c[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?cP(a,n,r,"all"):l="none";else{var d=n[1]-n[0];(n=[gP(0,r[1]*s/d-d/2)])[1]=fP(r[1],n[0]+d),n[0]=n[1]-d}return{axisExpandWindow:n,behavior:l}},t}();function SP(t,e){return fP(gP(t,e[0]),e[1])}function bP(t,e){var o=e.layoutLength/(e.axisCount-1);return{position:o*t,axisNameAvailableWidth:o,axisLabelShow:!0}}function _P(t,e){var o,n,i=e.layoutLength,r=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,c=!1;return t=0;o--)Ar(e[o])},e.prototype.getActiveState=function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t||isNaN(+t))return"inactive";if(1===e.length){var o=e[0];if(o[0]<=t&&t<=o[1])return"active"}else for(var n=0,i=e.length;nPP}(t)||r){if(a&&!r){"single"===s.brushMode&&XP(t);var l=j(s);l.brushType=dL(l.brushType,a),l.panelId=a===RP?null:a.panelId,r=t._creatingCover=BP(t,l),t._covers.push(r)}if(r){var u=gL[dL(t._brushType,a)];r.__brushOption.range=u.getCreatingRange(lL(t,r,t._track)),n&&(WP(t,r),u.updateCommon(t,r)),zP(t,r),i={isEnd:n}}}else n&&"single"===s.brushMode&&s.removeOnClick&&YP(t,e,o)&&XP(t)&&(i={isEnd:n,removeOnClick:!0});return i}function dL(t,e){return"auto"===t?e.defaultBrushType:t}var hL={mousedown:function(t){if(this._dragging)fL(this,t);else if(!t.target||!t.target.draggable){uL(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=YP(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,o=t.offsetY,n=this.group.transformCoordToLocal(e,o);if(function(t,e,o){if(t._brushType&&!function(t,e,o){var n=t._zr;return e<0||e>n.getWidth()||o<0||o>n.getHeight()}(t,e.offsetX,e.offsetY)){var n=t._zr,i=t._covers,r=YP(t,e,o);if(!t._dragging)for(var a=0;a=0&&(r[i[a].depth]=new Ac(i[a],this,e));if(n&&o){var s=OI(n,o,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var o=t.parentModel,n=o.getData().getItemLayout(e);if(n){var i=n.depth,r=o.levelModels[i];r&&(t.parentModel=r)}return t})),e.wrapMethod("getItemModel",(function(t,e){var o=t.parentModel,n=o.getGraph().getEdgeByIndex(e).node1.getLayout();if(n){var i=n.depth,r=o.levelModels[i];r&&(t.parentModel=r)}return t}))}));return s.data}},e.prototype.setNodePosition=function(t,e){var o=(this.option.data||this.option.nodes)[t];o.localX=e[0],o.localY=e[1]},e.prototype.getGraph=function(){return this.getData().graph},e.prototype.getEdgeData=function(){return this.getGraph().edgeData},e.prototype.formatTooltip=function(t,e,o){function n(t){return isNaN(t)||null==t}if("edge"===o){var i=this.getDataParams(t,o),r=i.data,a=i.value;return hf("nameValue",{name:r.source+" -- "+r.target,value:a,noValue:n(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,o).data.name;return hf("nameValue",{name:null!=l?l+"":null,value:s,noValue:n(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,o){var n=t.prototype.getDataParams.call(this,e,o);if(null==n.value&&"node"===o){var i=this.getGraph().getNodeByIndex(e).getLayout().value;n.value=i}return n},e.type="series.sankey",e.defaultOption={z:2,coordinateSystem:"view",left:"5%",top:"5%",right:"20%",bottom:"5%",orient:"horizontal",nodeWidth:20,nodeGap:8,draggable:!0,layoutIterations:32,label:{show:!0,position:"right",fontSize:12},edgeLabel:{show:!1,fontSize:12},levels:[],nodeAlign:"justify",lineStyle:{color:"#314656",opacity:.2,curveness:.5},emphasis:{label:{show:!0},lineStyle:{opacity:.5}},select:{itemStyle:{borderColor:"#212121"}},animationEasing:"linear",animationDuration:1e3},e}(kf);const PL=IL;function LL(t,e){t.eachSeriesByType("sankey",(function(t){var o=t.get("nodeWidth"),n=t.get("nodeGap"),i=function(t,e){return Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=i;var r=i.width,a=i.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){tt(t,(function(t){var e=jL(t.outEdges,zL),o=jL(t.inEdges,zL),n=t.getValue()||0,i=Math.max(e,o,n);t.setLayout({value:i},!0)}))}(l),function(t,e,o,n,i,r,a,s,l){(function(t,e,o,n,i,r,a){for(var s=[],l=[],u=[],c=[],p=0,d=0;d=0;y&&v.depth>h&&(h=v.depth),g.setLayout({depth:y?v.depth:p},!0),"vertical"===r?g.setLayout({dy:o},!0):g.setLayout({dx:o},!0);for(var m=0;mp-1?h:p-1;a&&"left"!==a&&function(t,e,o,n){if("right"===e){for(var i=[],r=t,a=0;r.length;){for(var s=0;s0;r--)kL(s,l*=.99,a),FL(s,i,o,n,a),UL(s,l,a),FL(s,i,o,n,a)}(t,e,r,i,n,a,s),function(t,e){var o="vertical"===e?"x":"y";tt(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[o]-e.node2.getLayout()[o]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[o]-e.node1.getLayout()[o]}))})),tt(t,(function(t){var e=0,o=0;tt(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),tt(t.inEdges,(function(t){t.setLayout({ty:o},!0),o+=t.getLayout().dy}))}))}(t,s)}(l,u,o,n,r,a,0!==nt(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function NL(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function FL(t,e,o,n,i){var r="vertical"===i?"x":"y";tt(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[r]-e.getLayout()[r]}));for(var u=0,c=t.length,p="vertical"===i?"dx":"dy",d=0;d0&&(a=s.getLayout()[r]+l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[r]+s.getLayout()[p]+e;if((l=u-e-("vertical"===i?n:o))>0)for(a=s.getLayout()[r]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,d=c-2;d>=0;--d)(l=(s=t[d]).getLayout()[r]+s.getLayout()[p]+e-u)>0&&(a=s.getLayout()[r]-l,"vertical"===i?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[r]}))}function kL(t,e,o){tt(t.slice().reverse(),(function(t){tt(t,(function(t){if(t.outEdges.length){var n=jL(t.outEdges,GL,o)/jL(t.outEdges,zL);if(isNaN(n)){var i=t.outEdges.length;n=i?jL(t.outEdges,VL,o)/i:0}if("vertical"===o){var r=t.getLayout().x+(n-WL(t,o))*e;t.setLayout({x:r},!0)}else{var a=t.getLayout().y+(n-WL(t,o))*e;t.setLayout({y:a},!0)}}}))}))}function GL(t,e){return WL(t.node2,e)*t.getValue()}function VL(t,e){return WL(t.node2,e)}function HL(t,e){return WL(t.node1,e)*t.getValue()}function BL(t,e){return WL(t.node1,e)}function WL(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function zL(t){return t.getValue()}function jL(t,e,o){for(var n=0,i=t.length,r=-1;++rr&&(r=e)})),tt(o,(function(e){var o=new oA({type:"color",mappingMethod:"linear",dataExtent:[i,r],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),n=e.getModel().get(["itemStyle","color"]);null!=n?(e.setVisual("color",n),e.setVisual("style",{fill:n})):(e.setVisual("color",o),e.setVisual("style",{fill:o}))}))}n.length&&tt(n,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var YL=function(){function t(){}return t.prototype.getInitialData=function(t,e){var o,n,i=e.getComponent("xAxis",this.get("xAxisIndex")),r=e.getComponent("yAxis",this.get("yAxisIndex")),a=i.get("type"),s=r.get("type");"category"===a?(t.layout="horizontal",o=i.getOrdinalMeta(),n=!0):"category"===s?(t.layout="vertical",o=r.getOrdinalMeta(),n=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,c=this._baseAxisDim=l[u],p=l[1-u],d=[i,r],h=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&n){var v=[];tt(g,(function(t,e){var o;lt(t)?(o=t.slice(),t.unshift(e)):lt(t.value)?((o=Y({},t)).value=o.value.slice(),t.value.unshift(e)):o=t,v.push(o)})),t.data=v}var y=this.defaultValueDimensions,m=[{name:c,type:Sw(h),ordinalMeta:o,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:p,type:Sw(f),dimsDef:y.slice()}];return xT(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:st(id,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),KL=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],o.visualDrawType="stroke",o}return m(e,t),e.type="series.boxplot",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,boxWidth:[7,50],itemStyle:{color:"#fff",borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2,shadowBlur:5,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0,0,0,0.2)"}},animationDuration:800},e}(kf);Q(KL,YL,!0);const XL=KL;var qL=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){var n=t.getData(),i=this.group,r=this._data;this._data||i.removeAll();var a="horizontal"===t.get("layout")?1:0;n.diff(r).add((function(t){if(n.hasValue(t)){var e=JL(n.getItemLayout(t),n,t,a,!0);n.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var o=r.getItemGraphicEl(e);if(n.hasValue(t)){var s=n.getItemLayout(t);o?(ec(o),tN(s,o,n,t)):o=JL(s,n,t,a),i.add(o),n.setItemGraphicEl(t,o)}else i.remove(o)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=n},e.prototype.remove=function(t){var e=this.group,o=this._data;this._data=null,o&&o.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Kv),ZL=function(){},QL=function(t){function e(e){var o=t.call(this,e)||this;return o.type="boxplotBoxPath",o}return m(e,t),e.prototype.getDefaultShape=function(){return new ZL},e.prototype.buildPath=function(t,e){var o=e.points,n=0;for(t.moveTo(o[n][0],o[n][1]),n++;n<4;n++)t.lineTo(o[n][0],o[n][1]);for(t.closePath();ng){var w=[y,C];n.push(w)}}}return{boxData:o,outliers:n}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:o.boxData},{data:o.outliers}]}},aN=["color","borderColor"],sN=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,o){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,o,n){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Vv(this._progressiveEls||this.group,t)},e.prototype._updateDrawMode=function(t){var e=t.pipelineContext.large;null!=this._isLargeDraw&&e===this._isLargeDraw||(this._isLargeDraw=e,this._clear())},e.prototype._renderNormal=function(t){var e=t.getData(),o=this._data,n=this.group,i=e.getLayout("isSimpleBox"),r=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||n.removeAll(),e.diff(o).add((function(o){if(e.hasValue(o)){var a=e.getItemLayout(o);if(r&&pN(s,a))return;var l=cN(a,0,!0);qu(l,{shape:{points:a.ends}},t,o),dN(l,e,o,i),n.add(l),e.setItemGraphicEl(o,l)}})).update((function(a,l){var u=o.getItemGraphicEl(l);if(e.hasValue(a)){var c=e.getItemLayout(a);r&&pN(s,c)?n.remove(u):(u?(Xu(u,{shape:{points:c.ends}},t,a),ec(u)):u=cN(c),dN(u,e,a,i),n.add(u),e.setItemGraphicEl(a,u))}else n.remove(u)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&n.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),vN(t,this.group);var e=t.get("clip",!0)?bE(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var o,n=e.getData(),i=n.getLayout("isSimpleBox");null!=(o=t.next());){var r=cN(n.getItemLayout(o));dN(r,n,o,i),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},e.prototype._incrementalRenderLarge=function(t,e){vN(e,this.group,this._progressiveEls,!0)},e.prototype.remove=function(t){this._clear()},e.prototype._clear=function(){this.group.removeAll(),this._data=null},e.type="candlestick",e}(Kv),lN=function(){},uN=function(t){function e(e){var o=t.call(this,e)||this;return o.type="normalCandlestickBox",o}return m(e,t),e.prototype.getDefaultShape=function(){return new lN},e.prototype.buildPath=function(t,e){var o=e.points;this.__simpleBox?(t.moveTo(o[4][0],o[4][1]),t.lineTo(o[6][0],o[6][1])):(t.moveTo(o[0][0],o[0][1]),t.lineTo(o[1][0],o[1][1]),t.lineTo(o[2][0],o[2][1]),t.lineTo(o[3][0],o[3][1]),t.closePath(),t.moveTo(o[4][0],o[4][1]),t.lineTo(o[5][0],o[5][1]),t.moveTo(o[6][0],o[6][1]),t.lineTo(o[7][0],o[7][1]))},e}(cl);function cN(t,e,o){var n=t.ends;return new uN({shape:{points:o?hN(n,t):n},z2:100})}function pN(t,e){for(var o=!0,n=0;n0?"borderColor":"borderColor0"])||o.get(["itemStyle",t>0?"color":"color0"]);0===t&&(i=o.get(["itemStyle","borderColorDoji"]));var r=o.getModel("itemStyle").getItemStyle(aN);e.useStyle(r),e.style.fill=null,e.style.stroke=i}const mN=sN;var CN=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],o}return m(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,o){var n=e.getItemLayout(t);return n&&o.rect(n.brushRect)},e.type="series.candlestick",e.dependencies=["xAxis","yAxis","grid"],e.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,layout:null,clip:!0,itemStyle:{color:"#eb5454",color0:"#47b262",borderColor:"#eb5454",borderColor0:"#47b262",borderColorDoji:null,borderWidth:1},emphasis:{scale:!0,itemStyle:{borderWidth:2}},barMaxWidth:null,barMinWidth:null,barWidth:null,large:!0,largeThreshold:600,progressive:3e3,progressiveThreshold:1e4,progressiveChunkMode:"mod",animationEasing:"linear",animationDuration:300},e}(kf);Q(CN,YL,!0);const wN=CN;function SN(t){t&<(t.series)&&tt(t.series,(function(t){ht(t)&&"k"===t.type&&(t.type="candlestick")}))}var bN=["itemStyle","borderColor"],_N=["itemStyle","borderColor0"],xN=["itemStyle","borderColorDoji"],EN=["itemStyle","color"],TN=["itemStyle","color0"];const DN={seriesType:"candlestick",plan:Hf(),performRawSeries:!0,reset:function(t,e){function o(t,e){return e.get(t>0?EN:TN)}function n(t,e){return e.get(0===t?xN:t>0?bN:_N)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var r=e.getItemModel(i),a=e.getItemLayout(i).sign,s=r.getItemStyle();s.fill=o(a,r),s.stroke=n(a,r)||s.fill,Y(e.ensureUniqueItemVisual(i,"style"),s)}}}}};var RN={seriesType:"candlestick",plan:Hf(),reset:function(t){var e=t.coordinateSystem,o=t.getData(),n=function(t,e){var o,n=t.getBaseAxis(),i="category"===n.type?n.getBandWidth():(o=n.getExtent(),Math.abs(o[1]-o[0])/e.count()),r=Or(bt(t.get("barMaxWidth"),i),i),a=Or(bt(t.get("barMinWidth"),1),i),s=t.get("barWidth");return null!=s?Or(s,i):Math.max(Math.min(i/2,r),a)}(t,o),i=["x","y"],r=o.getDimensionIndex(o.mapDimension(i[0])),a=et(o.mapDimensionsAll(i[1]),o.getDimensionIndex,o),s=a[0],l=a[1],u=a[2],c=a[3];if(o.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(r<0||a.length<4))return{progress:t.pipelineContext.large?function(o,n){for(var i,a,p=CS(4*o.count),d=0,h=[],f=[],g=n.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);null!=(a=o.next());){var y=g.get(r,a),m=g.get(s,a),C=g.get(l,a),w=g.get(u,a),S=g.get(c,a);isNaN(y)||isNaN(w)||isNaN(S)?(p[d++]=NaN,d+=3):(p[d++]=ON(g,a,m,C,l,v),h[0]=y,h[1]=w,i=e.dataToPoint(h,null,f),p[d++]=i?i[0]:NaN,p[d++]=i?i[1]:NaN,h[1]=S,i=e.dataToPoint(h,null,f),p[d++]=i?i[1]:NaN)}n.setLayout("largePoints",p)}:function(t,o){for(var i,a=o.getStore();null!=(i=t.next());){var p=a.get(r,i),d=a.get(s,i),h=a.get(l,i),f=a.get(u,i),g=a.get(c,i),v=Math.min(d,h),y=Math.max(d,h),m=x(v,p),C=x(y,p),w=x(f,p),S=x(g,p),b=[];E(b,C,0),E(b,m,1),b.push(D(S),D(C),D(w),D(m));var _=!!o.getItemModel(i).get(["itemStyle","borderColorDoji"]);o.setItemLayout(i,{sign:ON(a,i,d,h,l,_),initBaseline:d>h?C[1]:m[1],ends:b,brushRect:T(f,g,p)})}function x(t,o){var n=[];return n[0]=o,n[1]=t,isNaN(o)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function E(t,e,o){var i=e.slice(),r=e.slice();i[0]=Ev(i[0]+n/2,1,!1),r[0]=Ev(r[0]-n/2,1,!0),o?t.push(i,r):t.push(r,i)}function T(t,e,o){var i=x(t,o),r=x(e,o);return i[0]-=n/2,r[0]-=n/2,{x:i[0],y:i[1],width:n,height:r[1]-i[1]}}function D(t){return t[0]=Ev(t[0],1),t}}}}};function ON(t,e,o,n,i,r){return o>n?-1:o0?t.get(i,e-1)<=n?1:-1:1}const MN=RN;function AN(t,e){var o=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?o:null,fill:"fill"===e.brushType?o:null}})}))}var IN=function(t){function e(e,o){var n=t.call(this)||this,i=new iE(e,o),r=new vr;return n.add(i),n.add(r),n.updateData(e,o),n}return m(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,o=t.color,n=t.rippleNumber,i=this.childAt(1),r=0;r0&&(r=this._getLineLength(n)/l*1e3),r!==this._period||a!==this._loop||s!==this._roundTrip){n.stopAnimation();var c=void 0;c=ut(u)?u(o):u,n.__t>0&&(c=-r*n.__t),this._animateSymbol(n,r,c,a,s)}this._period=r,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,o,n,i){if(e>0){t.__t=0;var r=this,a=t.animate("",n).when(i?2*e:e,{__t:i?2:1}).delay(o).during((function(){r._updateSymbolPosition(t)}));n||a.done((function(){r.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return ie(t.__p1,t.__cp1)+ie(t.__cp1,t.__p2)},e.prototype._updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},e.prototype.updateData=function(t,e,o){this.childAt(0).updateData(t,e,o),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,o=t.__p2,n=t.__cp1,i=t.__t<1?t.__t:2-t.__t,r=[t.x,t.y],a=r.slice(),s=Jo,l=tn;r[0]=s(e[0],n[0],o[0],i),r[1]=s(e[1],n[1],o[1],i);var u=t.__t<1?l(e[0],n[0],o[0],i):l(o[0],n[0],e[0],1-i),c=t.__t<1?l(e[1],n[1],o[1],i):l(o[1],n[1],e[1],1-i);t.rotation=-Math.atan2(c,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(n[r]<=e);r--);r=Math.min(r,i-2)}else{for(r=a;re);r++);r=Math.min(r-1,i-2)}var s=(e-n[r])/(n[r+1]-n[r]),l=o[r],u=o[r+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var c=t.__t<1?u[0]-l[0]:l[0]-u[0],p=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(p,c)-Math.PI/2,this._lastFrame=r,this._lastFramePercent=e,t.ignore=!1}},e}(kN);const BN=HN;var WN=function(){this.polyline=!1,this.curveness=0,this.segs=[]},zN=function(t){function e(e){var o=t.call(this,e)||this;return o._off=0,o.hoverDataIdx=-1,o}return m(e,t),e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new WN},e.prototype.buildPath=function(t,e){var o,n=e.segs,i=e.curveness;if(e.polyline)for(o=this._off;o0){t.moveTo(n[o++],n[o++]);for(var a=1;a0){var p=(s+u)/2-(l-c)*i,d=(l+c)/2-(u-s)*i;t.quadraticCurveTo(p,d,u,c)}else t.lineTo(u,c)}this.incremental&&(this._off=o,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var o=this.shape,n=o.segs,i=o.curveness,r=this.style.lineWidth;if(o.polyline)for(var a=0,s=0;s0)for(var u=n[s++],c=n[s++],p=1;p0){if($s(u,c,(u+d)/2-(c-h)*i,(c+h)/2-(d-u)*i,d,h,r,t,e))return a}else if(js(u,c,d,h,r,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var o=this.transformCoordToLocal(t,e),n=this.getBoundingRect();return t=o[0],e=o[1],n.contain(t,e)?(this.hoverDataIdx=this.findDataIndex(t,e))>=0:(this.hoverDataIdx=-1,!1)},e.prototype.getBoundingRect=function(){var t=this._rect;if(!t){for(var e=this.shape.segs,o=1/0,n=1/0,i=-1/0,r=-1/0,a=0;a0&&(r.dataIndex=o+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var UN={seriesType:"lines",plan:Hf(),reset:function(t){var e=t.coordinateSystem;if(e){var o=t.get("polyline"),n=t.pipelineContext.large;return{progress:function(i,r){var a=[];if(n){var s=void 0,l=i.end-i.start;if(o){for(var u=0,c=i.start;c0&&(l||s.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),i.updateData(n);var u=t.get("clip",!0)&&bE(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=r,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,o){var n=t.getData();this._updateLineDraw(n,t).incrementalPrepareUpdate(n),this._clearLayer(o),this._finished=!1},e.prototype.incrementalRender=function(t,e,o){this._lineDraw.incrementalUpdate(t,e.getData()),this._finished=t.end===e.getData().count()},e.prototype.eachRendered=function(t){this._lineDraw&&this._lineDraw.eachRendered(t)},e.prototype.updateTransform=function(t,e,o){var n=t.getData(),i=t.pipelineContext;if(!this._finished||i.large||i.progressiveRender)return{update:!0};var r=$N.reset(t,e,o);r.progress&&r.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(o)},e.prototype._updateLineDraw=function(t,e){var o=this._lineDraw,n=this._showEffect(e),i=!!e.get("polyline"),r=e.pipelineContext.large;return o&&n===this._hasEffet&&i===this._isPolyline&&r===this._isLargeDraw||(o&&o.remove(),o=this._lineDraw=r?new jN:new pI(i?n?BN:VN:n?kN:sI),this._hasEffet=n,this._isPolyline=i,this._isLargeDraw=r),this.group.add(o.group),o},e.prototype._showEffect=function(t){return!!t.get(["effect","show"])},e.prototype._clearLayer=function(t){var e=t.getZr();"svg"===e.painter.getType()||null==this._lastZlevel||e.painter.getLayer(this._lastZlevel).clear(!0)},e.prototype.remove=function(t,e){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(e)},e.prototype.dispose=function(t,e){this.remove(t,e)},e.type="lines",e}(Kv);var KN="undefined"==typeof Uint32Array?Array:Uint32Array,XN="undefined"==typeof Float64Array?Array:Float64Array;function qN(t){var e=t.data;e&&e[0]&&e[0][0]&&e[0][0].coord&&(t.data=et(e,(function(t){var e={coords:[t[0].coord,t[1].coord]};return t[0].name&&(e.fromName=t[0].name),t[1].name&&(e.toName=t[1].name),$([e,t[0],t[1]])})))}var ZN=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.visualStyleAccessPath="lineStyle",o.visualDrawType="stroke",o}return m(e,t),e.prototype.init=function(e){e.data=e.data||[],qN(e);var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(qN(e),e.data){var o=this._processFlatCoordsArray(e.data);this._flatCoords=o.flatCoords,this._flatCoordsOffset=o.flatCoordsOffset,o.flatCoords&&(e.data=new Float32Array(o.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Nt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Nt(this._flatCoordsOffset,e.flatCoordsOffset)):(this._flatCoords=e.flatCoords,this._flatCoordsOffset=e.flatCoordsOffset),t.data=new Float32Array(e.count)),this.getRawData().appendData(t.data)},e.prototype._getCoordsFromItemModel=function(t){var e=this.getData().getItemModel(t);return e.option instanceof Array?e.option:e.getShallow("coords")},e.prototype.getLineCoordsCount=function(t){return this._flatCoordsOffset?this._flatCoordsOffset[2*t+1]:this._getCoordsFromItemModel(t).length},e.prototype.getLineCoords=function(t,e){if(this._flatCoordsOffset){for(var o=this._flatCoordsOffset[2*t],n=this._flatCoordsOffset[2*t+1],i=0;i ")})},e.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},e.prototype.getProgressive=function(){var t=this.option.progressive;return null==t?this.option.large?1e4:this.get("progressive"):t},e.prototype.getProgressiveThreshold=function(){var t=this.option.progressiveThreshold;return null==t?this.option.large?2e4:this.get("progressiveThreshold"):t},e.prototype.getZLevelKey=function(){var t=this.getModel("effect"),e=t.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:t.get("show")&&e>0?e+"":""},e.type="series.lines",e.dependencies=["grid","polar","geo","calendar"],e.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},e}(kf);const QN=ZN;function JN(t){return t instanceof Array||(t=[t,t]),t}const tF={seriesType:"lines",reset:function(t){var e=JN(t.get("symbol")),o=JN(t.get("symbolSize")),n=t.getData();return n.setVisual("fromSymbol",e&&e[0]),n.setVisual("toSymbol",e&&e[1]),n.setVisual("fromSymbolSize",o&&o[0]),n.setVisual("toSymbolSize",o&&o[1]),{dataEach:n.hasItemOption?function(t,e){var o=t.getItemModel(e),n=JN(o.getShallow("symbol",!0)),i=JN(o.getShallow("symbolSize",!0));n[0]&&t.setItemVisual(e,"fromSymbol",n[0]),n[1]&&t.setItemVisual(e,"toSymbol",n[1]),i[0]&&t.setItemVisual(e,"fromSymbolSize",i[0]),i[1]&&t.setItemVisual(e,"toSymbolSize",i[1])}:null}}};var eF=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=R.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,o,n,i,r){var a=this._getBrush(),s=this._getGradient(i,"inRange"),l=this._getGradient(i,"outOfRange"),u=this.pointSize+this.blurSize,c=this.canvas,p=c.getContext("2d"),d=t.length;c.width=e,c.height=o;for(var h=0;h0){var E=r(y)?s:l;y>0&&(y=y*_+b),C[w++]=E[x],C[w++]=E[x+1],C[w++]=E[x+2],C[w++]=E[x+3]*y*256}else w+=4}return p.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=R.createCanvas()),e=this.pointSize+this.blurSize,o=2*e;t.width=o,t.height=o;var n=t.getContext("2d");return n.clearRect(0,0,o,o),n.shadowOffsetX=o,n.shadowBlur=this.blurSize,n.shadowColor="#000",n.beginPath(),n.arc(-e,e,this.pointSize,0,2*Math.PI,!0),n.closePath(),n.fill(),t},t.prototype._getGradient=function(t,e){for(var o=this._gradientPixels,n=o[e]||(o[e]=new Uint8ClampedArray(1024)),i=[0,0,0,0],r=0,a=0;a<256;a++)t[e](a/255,!0,i),n[r++]=i[0],n[r++]=i[1],n[r++]=i[2],n[r++]=i[3];return n},t}();const oF=eF;function nF(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var iF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){var n;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(o){o===t&&(n=e)}))})),this._progressiveEls=null,this.group.removeAll();var i=t.coordinateSystem;"cartesian2d"===i.type||"calendar"===i.type?this._renderOnCartesianAndCalendar(t,o,0,t.getData().count()):nF(i)&&this._renderOnGeo(i,t,n,o)},e.prototype.incrementalPrepareRender=function(t,e,o){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,o,n){var i=e.coordinateSystem;i&&(nF(i)?this.render(e,o,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,n,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Vv(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,o,n,i){var r,a,s,l,u=t.coordinateSystem,c=_E(u,"cartesian2d");if(c){var p=u.getAxis("x"),d=u.getAxis("y");r=p.getBandWidth()+.5,a=d.getBandWidth()+.5,s=p.scale.getExtent(),l=d.scale.getExtent()}for(var h=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),v=t.getModel(["blur","itemStyle"]).getItemStyle(),y=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),C=ac(t),w=t.getModel("emphasis"),S=w.get("focus"),b=w.get("blurScope"),_=w.get("disabled"),x=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],E=o;Es[1]||Ol[1])continue;var M=u.dataToPoint([R,O]);T=new El({shape:{x:M[0]-r/2,y:M[1]-a/2,width:r,height:a},style:D})}else{if(isNaN(f.get(x[1],E)))continue;T=new El({z2:1,shape:u.dataToRect([f.get(x[0],E)]).contentShape,style:D})}if(f.hasItemOption){var A=f.getItemModel(E),I=A.getModel("emphasis");g=I.getModel("itemStyle").getItemStyle(),v=A.getModel(["blur","itemStyle"]).getItemStyle(),y=A.getModel(["select","itemStyle"]).getItemStyle(),m=A.get(["itemStyle","borderRadius"]),S=I.get("focus"),b=I.get("blurScope"),_=I.get("disabled"),C=ac(A)}T.shape.r=m;var P=t.getRawValue(E),L="-";P&&null!=P[2]&&(L=P[2]+""),rc(T,C,{labelFetcher:t,labelDataIndex:E,defaultOpacity:D.opacity,defaultText:L}),T.ensureState("emphasis").style=g,T.ensureState("blur").style=v,T.ensureState("select").style=y,ku(T,S,b,_),T.incremental=i,i&&(T.states.emphasis.hoverLayer=!0),h.add(T),f.setItemGraphicEl(E,T),this._progressiveEls&&this._progressiveEls.push(T)}},e.prototype._renderOnGeo=function(t,e,o,n){var i=o.targetVisuals.inRange,r=o.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new oF;s.blurSize=e.get("blurSize"),s.pointSize=e.get("pointSize"),s.minOpacity=e.get("minOpacity"),s.maxOpacity=e.get("maxOpacity");var l=t.getViewRect().clone(),u=t.getRoamTransform();l.applyTransform(u);var c=Math.max(l.x,0),p=Math.max(l.y,0),d=Math.min(l.width+l.x,n.getWidth()),h=Math.min(l.height+l.y,n.getHeight()),f=d-c,g=h-p,v=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],y=a.mapArray(v,(function(e,o,n){var i=t.dataToPoint([e,o]);return i[0]-=c,i[1]-=p,i.push(n),i})),m=o.getExtent(),C="visualMap.continuous"===o.type?function(t,e){var o=t[1]-t[0];return e=[(e[0]-t[0])/o,(e[1]-t[0])/o],function(t){return t>=e[0]&&t<=e[1]}}(m,o.option.range):function(t,e,o){var n=t[1]-t[0],i=(e=et(e,(function(e){return{interval:[(e.interval[0]-t[0])/n,(e.interval[1]-t[0])/n]}}))).length,r=0;return function(t){var n;for(n=r;n=0;n--){var a;if((a=e[n].interval)[0]<=t&&t<=a[1]){r=n;break}}return n>=0&&n0?1:-1}(o,r,i,n,p),function(t,e,o,n,i,r,a,s,l,u){var c,p=l.valueDim,d=l.categoryDim,h=Math.abs(o[d.wh]),f=t.getItemVisual(e,"symbolSize");(c=lt(f)?f.slice():null==f?["100%","100%"]:[f,f])[d.index]=Or(c[d.index],h),c[p.index]=Or(c[p.index],n?h:Math.abs(r)),u.symbolSize=c,(u.symbolScale=[c[0]/s,c[1]/s])[p.index]*=(l.isHorizontal?-1:1)*a}(t,e,i,r,0,p.boundingLength,p.pxSign,u,n,p),function(t,e,o,n,i){var r=t.get(sF)||0;r&&(uF.attr({scaleX:e[0],scaleY:e[1],rotation:o}),uF.updateTransform(),r/=uF.getLineScale(),r*=e[n.valueDim.index]),i.valueLineWidth=r||0}(o,p.symbolScale,l,n,p);var d=p.symbolSize,h=am(o.get("symbolOffset"),d);return function(t,e,o,n,i,r,a,s,l,u,c,p){var d=c.categoryDim,h=c.valueDim,f=p.pxSign,g=Math.max(e[h.index]+s,0),v=g;if(n){var y=Math.abs(l),m=St(t.get("symbolMargin"),"15%")+"",C=!1;m.lastIndexOf("!")===m.length-1&&(C=!0,m=m.slice(0,m.length-1));var w=Or(m,e[h.index]),S=Math.max(g+2*w,0),b=C?0:2*w,_=Xr(n),x=_?n:TF((y+b)/S);S=g+2*(w=(y-x*g)/2/(C?x:Math.max(x-1,1))),b=C?0:2*w,_||"fixed"===n||(x=u?TF((Math.abs(u)+b)/S):0),v=x*S-b,p.repeatTimes=x,p.symbolMargin=w}var E=f*(v/2),T=p.pathPosition=[];T[d.index]=o[d.wh]/2,T[h.index]="start"===a?E:"end"===a?l-E:l/2,r&&(T[0]+=r[0],T[1]+=r[1]);var D=p.bundlePosition=[];D[d.index]=o[d.xy],D[h.index]=o[h.xy];var R=p.barRectShape=Y({},o);R[h.wh]=f*Math.max(Math.abs(o[h.wh]),Math.abs(T[h.index]+E)),R[d.wh]=o[d.wh];var O=p.clipShape={};O[d.xy]=-o[d.xy],O[d.wh]=c.ecSize[d.wh],O[h.xy]=0,O[h.wh]=o[h.wh]}(o,d,i,r,0,h,s,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function pF(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function dF(t){var e=t.symbolPatternSize,o=im(t.symbolType,-e/2,-e/2,e,e);return o.attr({culling:!0}),"image"!==o.type&&o.setStyle({strokeNoScale:!0}),o}function hF(t,e,o,n){var i=t.__pictorialBundle,r=o.symbolSize,a=o.valueLineWidth,s=o.pathPosition,l=e.valueDim,u=o.repeatTimes||0,c=0,p=r[e.valueDim.index]+a+2*o.symbolMargin;for(_F(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:n<0)&&(i=u-1-t),e[l.index]=p*(i-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function fF(t,e,o,n){var i=t.__pictorialBundle,r=t.__pictorialMainPath;r?xF(r,null,{x:o.pathPosition[0],y:o.pathPosition[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation},o,n):(r=t.__pictorialMainPath=dF(o),i.add(r),xF(r,{x:o.pathPosition[0],y:o.pathPosition[1],scaleX:0,scaleY:0,rotation:o.rotation},{scaleX:o.symbolScale[0],scaleY:o.symbolScale[1]},o,n))}function gF(t,e,o){var n=Y({},e.barRectShape),i=t.__pictorialBarRect;i?xF(i,null,{shape:n},e,o):((i=t.__pictorialBarRect=new El({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function vF(t,e,o,n){if(o.symbolClip){var i=t.__pictorialClipPath,a=Y({},o.clipShape),s=e.valueDim,l=o.animationModel,u=o.dataIndex;if(i)Xu(i,{shape:a},l,u);else{a[s.wh]=0,i=new El({shape:a}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[s.wh]=o.clipShape[s.wh],r[n?"updateProps":"initProps"](i,{shape:c},l,u)}}}function yF(t,e){var o=t.getItemModel(e);return o.getAnimationDelayParams=mF,o.isAnimationEnabled=CF,o}function mF(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function CF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function wF(t,e,o,n){var i=new vr,r=new vr;return i.add(r),i.__pictorialBundle=r,r.x=o.bundlePosition[0],r.y=o.bundlePosition[1],o.symbolRepeat?hF(i,e,o):fF(i,0,o),gF(i,o,n),vF(i,e,o,n),i.__pictorialShapeStr=bF(t,o),i.__pictorialSymbolMeta=o,i}function SF(t,e,o,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var r=[];_F(n,(function(t){r.push(t)})),n.__pictorialMainPath&&r.push(n.__pictorialMainPath),n.__pictorialClipPath&&(o=null),tt(r,(function(t){Qu(t,{scaleX:0,scaleY:0},o,e,(function(){n.parent&&n.parent.remove(n)}))})),t.setItemGraphicEl(e,null)}function bF(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function _F(t,e,o){tt(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(o,n)}))}function xF(t,e,o,n,i,a){e&&t.attr(e),n.symbolClip&&!i?o&&t.attr(o):o&&r[i?"updateProps":"initProps"](t,o,n.animationModel,n.dataIndex,a)}function EF(t,e,o){var n=o.dataIndex,i=o.itemModel,r=i.getModel("emphasis"),a=r.getModel("itemStyle").getItemStyle(),s=i.getModel(["blur","itemStyle"]).getItemStyle(),l=i.getModel(["select","itemStyle"]).getItemStyle(),u=i.getShallow("cursor"),c=r.get("focus"),p=r.get("blurScope"),d=r.get("scale");_F(t,(function(t){if(t instanceof yl){var e=t.style;t.useStyle(Y({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},o.style))}else t.useStyle(o.style);var n=t.ensureState("emphasis");n.style=a,d&&(n.scaleX=1.1*t.scaleX,n.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=o.z2}));var h=e.valueDim.posDesc[+(o.boundingLength>0)];rc(t.__pictorialBarRect,ac(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:tE(e.seriesModel.getData(),n),inheritColor:o.style.fill,defaultOpacity:o.style.opacity,defaultOutsidePosition:h}),ku(t,c,p,r.get("disabled"))}function TF(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const DF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){var n=this.group,i=t.getData(),r=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:lF[+s],categoryDim:lF[1-+s]};return i.diff(r).add((function(t){if(i.hasValue(t)){var e=yF(i,t),o=cF(i,t,e,u),r=wF(i,u,o);i.setItemGraphicEl(t,r),n.add(r),EF(r,u,o)}})).update((function(t,e){var o=r.getItemGraphicEl(e);if(i.hasValue(t)){var a=yF(i,t),s=cF(i,t,a,u),l=bF(i,s);o&&l!==o.__pictorialShapeStr&&(n.remove(o),i.setItemGraphicEl(t,null),o=null),o?function(t,e,o){var n=o.animationModel,i=o.dataIndex;Xu(t.__pictorialBundle,{x:o.bundlePosition[0],y:o.bundlePosition[1]},n,i),o.symbolRepeat?hF(t,e,o,!0):fF(t,0,o,!0),gF(t,o,!0),vF(t,e,o,!0)}(o,u,s):o=wF(i,u,s,!0),i.setItemGraphicEl(t,o),o.__pictorialSymbolMeta=s,n.add(o),EF(o,u,s)}else n.remove(o)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&SF(r,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=i,this.group},e.prototype.remove=function(t,e){var o=this.group,n=this._data;t.get("animation")?n&&n.eachItemGraphicEl((function(e){SF(n,Wl(e).dataIndex,t,e)})):o.removeAll()},e.type="pictorialBar",e}(Kv),RF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.hasSymbolVisual=!0,o.defaultSymbol="roundRect",o}return m(e,t),e.prototype.getInitialData=function(e){return e.stack=null,t.prototype.getInitialData.apply(this,arguments)},e.type="series.pictorialBar",e.dependencies=["grid"],e.defaultOption=Lc(VE.defaultOption,{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,emphasis:{scale:!1},select:{itemStyle:{borderColor:"#212121"}}}),e}(VE);var OF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o._layers=[],o}return m(e,t),e.prototype.render=function(t,e,o){var n=t.getData(),i=this,r=this.group,a=t.getLayerSeries(),s=n.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function c(t){return t.name}r.x=0,r.y=l.y+u[0];var p=new mw(this._layersSeries||[],a,c,c),d=[];function h(e,o,s){var l=i._layers;if("remove"!==e){for(var u,c,p=[],h=[],f=a[o].indices,g=0;gr&&(r=s),n.push(s)}for(var u=0;ur&&(r=p)}return{y0:i,max:r}}(l),c=u.y0,p=o/u.max,d=r.length,h=r[0].indices.length,f=0;fMath.PI/2?"right":"left"):_&&"center"!==_?"left"===_?(m=i.r0+b,a>Math.PI/2&&(_="right")):"right"===_&&(m=i.r-b,a>Math.PI/2&&(_="left")):(m=r===2*Math.PI&&0===i.r0?0:(i.r+i.r0)/2,_="center"),g.style.align=_,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+i.cx,g.y=m*l+i.cy;var x=f(d,"rotate"),E=0;"radial"===x?(E=-a)<-Math.PI/2&&(E+=Math.PI):"tangential"===x?(E=Math.PI/2-a)>Math.PI/2?E-=Math.PI:E<-Math.PI/2&&(E+=Math.PI):dt(x)&&(E=x*Math.PI/180),g.rotation=E})),c.dirtyStyle()},e}(Dg);const FF=NF;var kF="sunburstRootToNode",GF="sunburstHighlight",VF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o,n){var i=this;this.seriesModel=t,this.api=o,this.ecModel=e;var r=t.getData(),a=r.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];s.eachNode((function(t){c.push(t)}));var p=this._oldChildren||[];!function(n,i){function s(t){return t.getId()}function c(s,c){!function(n,i){if(u||!n||n.getValue()||(n=null),n!==a&&i!==a)if(i&&i.piece)n?(i.piece.updateData(!1,n,t,e,o),r.setItemGraphicEl(n.dataIndex,i.piece)):(c=i)&&c.piece&&(l.remove(c.piece),c.piece=null);else if(n){var s=new FF(n,t,e,o);l.add(s),r.setItemGraphicEl(n.dataIndex,s)}var c}(null==s?null:n[s],null==c?null:i[c])}0===n.length&&0===i.length||new mw(i,n,s,s).add(c).update(c).remove(st(c,null)).execute()}(c,p),function(n,r){r.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,n,t,e,o):(i.virtualPiece=new FF(n,t,e,o),l.add(i.virtualPiece)),r.piece.off("click"),i.virtualPiece.on("click",(function(t){i._rootToNode(r.parentNode)}))):i.virtualPiece&&(l.remove(i.virtualPiece),i.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=c},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var o=!1;t.seriesModel.getViewRoot().eachNode((function(n){if(!o&&n.piece&&n.piece===e.target){var i=n.getModel().get("nodeClick");if("rootToNode"===i)t._rootToNode(n);else if("link"===i){var r=n.getModel(),a=r.get("link");a&&Op(a,r.get("target",!0)||"_blank")}o=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:kF,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var o=e.getData().getItemLayout(0);if(o){var n=t[0]-o.cx,i=t[1]-o.cy,r=Math.sqrt(n*n+i*i);return r<=o.r&&r>=o.r0}},e.type="sunburst",e}(Kv);const HF=VF;function BF(t){var e=0;tt(t.children,(function(t){BF(t);var o=t.value;lt(o)&&(o=o[0]),e+=o}));var o=t.value;lt(o)&&(o=o[0]),(null==o||isNaN(o))&&(o=e),o<0&&(o=0),lt(t.value)?t.value[0]=o:t.value=o}const WF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.ignoreStyleOnData=!0,o}return m(e,t),e.prototype.getInitialData=function(t,e){var o={name:t.name,children:t.data};BF(o);var n=this._levelModels=et(t.levels||[],(function(t){return new Ac(t,this,e)}),this),i=cM.createTree(o,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var o=i.getNodeByDataIndex(e),r=n[o.depth];return r&&(t.parentModel=r),t}))}));return i.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var o=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return o.treePathInfo=fM(n,this),o},e.prototype.getLevelModel=function(t){return this._levelModels&&this._levelModels[t.depth]},e.prototype.getViewRoot=function(){return this._viewRoot},e.prototype.resetViewRoot=function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getRawData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)},e.prototype.enableAriaDecal=function(){SM(this)},e.type="series.sunburst",e.defaultOption={z:2,center:["50%","50%"],radius:[0,"75%"],clockwise:!0,startAngle:90,minAngle:0,stillShowZeroSum:!0,nodeClick:"rootToNode",renderLabelForZeroData:!1,label:{rotate:"radial",show:!0,opacity:1,align:"center",position:"inside",distance:5,silent:!0},itemStyle:{borderWidth:1,borderColor:"white",borderType:"solid",shadowBlur:0,shadowColor:"rgba(0, 0, 0, 0.2)",shadowOffsetX:0,shadowOffsetY:0,opacity:1},emphasis:{focus:"descendant"},blur:{itemStyle:{opacity:.2},label:{opacity:.1}},animationType:"expansion",animationDuration:1e3,animationDurationUpdate:500,data:[],sort:"desc"},e}(kf);var zF=Math.PI/180;function jF(t,e,o){e.eachSeriesByType(t,(function(t){var e=t.get("center"),n=t.get("radius");lt(n)||(n=[0,n]),lt(e)||(e=[e,e]);var i=o.getWidth(),r=o.getHeight(),a=Math.min(i,r),s=Or(e[0],i),l=Or(e[1],r),u=Or(n[0],a/2),c=Or(n[1],a/2),p=-t.get("startAngle")*zF,d=t.get("minAngle")*zF,h=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&UF(f,v);var y=0;tt(f.children,(function(t){!isNaN(t.getValue())&&y++}));var m=f.getValue(),C=Math.PI/(m||y)*2,w=f.depth>0,S=f.height-(w?-1:1),b=(c-u)/(S||1),_=t.get("clockwise"),x=t.get("stillShowZeroSum"),E=_?1:-1,T=function(e,o){if(e){var n=o;if(e!==h){var i=e.getValue(),r=0===m&&x?C:i*C;r1;)i=i.parentNode;var r=o.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&ct(r)&&(r=Dn(r,(t.depth-1)/(n-1)*.5)),r}(i,t,n.root.height)),Y(o.ensureUniqueItemVisual(i.dataIndex,"style"),r)}))}))}var YF={color:"fill",borderColor:"stroke"},KF={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},XF=fa();const qF=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},e.prototype.getInitialData=function(t,e){return Jw(null,this)},e.prototype.getDataParams=function(e,o,n){var i=t.prototype.getDataParams.call(this,e,o);return n&&(i.info=XF(n).info),i},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(kf);function ZF(t,e){return e=e||[0,0],et(["x","y"],(function(o,n){var i=this.getAxis(o),r=e[n],a=t[n]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(r-a)-i.dataToCoord(r+a))}),this)}function QF(t,e){return e=e||[0,0],et([0,1],(function(o){var n=e[o],i=t[o]/2,r=[],a=[];return r[o]=n-i,a[o]=n+i,r[1-o]=a[1-o]=e[1-o],Math.abs(this.dataToPoint(r)[o]-this.dataToPoint(a)[o])}),this)}function JF(t,e){var o=this.getAxis(),n=e instanceof Array?e[0]:e,i=(t instanceof Array?t[0]:t)/2;return"category"===o.type?o.getBandWidth():Math.abs(o.dataToCoord(n-i)-o.dataToCoord(n+i))}function tk(t,e){return e=e||[0,0],et(["Radius","Angle"],(function(o,n){var i=this["get"+o+"Axis"](),r=e[n],a=t[n]/2,s="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(r-a)-i.dataToCoord(r+a));return"Angle"===o&&(s=s*Math.PI/180),s}),this)}function ek(t,e,o,n){return t&&(t.legacy||!1!==t.legacy&&!o&&!n&&"tspan"!==e&&("text"===e||Gt(t,"text")))}function ok(t,e,o){var n,i,r,a=t;if("text"===e)r=a;else{r={},Gt(a,"text")&&(r.text=a.text),Gt(a,"rich")&&(r.rich=a.rich),Gt(a,"textFill")&&(r.fill=a.textFill),Gt(a,"textStroke")&&(r.stroke=a.textStroke),Gt(a,"fontFamily")&&(r.fontFamily=a.fontFamily),Gt(a,"fontSize")&&(r.fontSize=a.fontSize),Gt(a,"fontStyle")&&(r.fontStyle=a.fontStyle),Gt(a,"fontWeight")&&(r.fontWeight=a.fontWeight),i={type:"text",style:r,silent:!0},n={};var s=Gt(a,"textPosition");o?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),Gt(a,"textPosition")&&(n.position=a.textPosition),Gt(a,"textOffset")&&(n.offset=a.textOffset),Gt(a,"textRotation")&&(n.rotation=a.textRotation),Gt(a,"textDistance")&&(n.distance=a.textDistance)}return nk(r,t),tt(r.rich,(function(t){nk(t,t)})),{textConfig:n,textContent:i}}function nk(t,e){e&&(e.font=e.textFont||e.font,Gt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Gt(e,"textAlign")&&(t.align=e.textAlign),Gt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Gt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Gt(e,"textWidth")&&(t.width=e.textWidth),Gt(e,"textHeight")&&(t.height=e.textHeight),Gt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Gt(e,"textPadding")&&(t.padding=e.textPadding),Gt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Gt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Gt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Gt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Gt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Gt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Gt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function ik(t,e,o){var n=t;n.textPosition=n.textPosition||o.position||"inside",null!=o.offset&&(n.textOffset=o.offset),null!=o.rotation&&(n.textRotation=o.rotation),null!=o.distance&&(n.textDistance=o.distance);var i=n.textPosition.indexOf("inside")>=0,r=t.fill||"#000";rk(n,e);var a=null==n.textFill;return i?a&&(n.textFill=o.insideFill||"#fff",!n.textStroke&&o.insideStroke&&(n.textStroke=o.insideStroke),!n.textStroke&&(n.textStroke=r),null==n.textStrokeWidth&&(n.textStrokeWidth=2)):(a&&(n.textFill=t.fill||o.outsideFill||"#000"),!n.textStroke&&o.outsideStroke&&(n.textStroke=o.outsideStroke)),n.text=e.text,n.rich=e.rich,tt(e.rich,(function(t){rk(t,t)})),n}function rk(t,e){e&&(Gt(e,"fill")&&(t.textFill=e.fill),Gt(e,"stroke")&&(t.textStroke=e.fill),Gt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Gt(e,"font")&&(t.font=e.font),Gt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Gt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Gt(e,"fontSize")&&(t.fontSize=e.fontSize),Gt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Gt(e,"align")&&(t.textAlign=e.align),Gt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Gt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Gt(e,"width")&&(t.textWidth=e.width),Gt(e,"height")&&(t.textHeight=e.height),Gt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Gt(e,"padding")&&(t.textPadding=e.padding),Gt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Gt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Gt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Gt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Gt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Gt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Gt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Gt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Gt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Gt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Gt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var ak={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},sk=rt(ak),lk=(ot($i,(function(t,e){return t[e]=1,t}),{}),$i.join(", "),["","style","shape","extra"]),uk=fa();function ck(t,e,o,n,i){var r=t+"Animation",a=Yu(t,n,i)||{},s=uk(e).userDuring;return a.duration>0&&(a.during=s?at(yk,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Y(a,o[r]),a}function pk(t,e,o,n){var i=(n=n||{}).dataIndex,r=n.isInit,a=n.clearStyle,s=o.isAnimationEnabled(),l=uk(t),u=e.style;l.userDuring=e.during;var c={},p={};if(function(t,e,o){for(var n=0;n=0)){var p=t.getAnimationStyleProps(),d=p?p.style:null;if(d){!i&&(i=n.style={});var h=rt(o);for(u=0;u0&&t.animateFrom(d,h)}else!function(t,e,o,n,i){if(i){var r=ck("update",t,e,n,o);r.duration>0&&t.animateFrom(i,r)}}(t,e,i||0,o,c);dk(t,e),u?t.dirty():t.markRedraw()}function dk(t,e){for(var o=uk(t).leaveToProps,n=0;n=0){!r&&(r=n[t]={});var d=rt(a);for(c=0;cn[1]&&n.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:n[1],r0:n[0]},api:{coord:function(n){var i=e.dataToRadius(n[0]),r=o.dataToAngle(n[1]),a=t.coordToPoint([i,r]);return a.push(i,r*Math.PI/180),a},size:at(tk,t)}}},calendar:function(t){var e=t.getRect(),o=t.getRangeInfo();return{coordSys:{type:"calendar",x:e.x,y:e.y,width:e.width,height:e.height,cellWidth:t.getCellWidth(),cellHeight:t.getCellHeight(),rangeInfo:{start:o.start,end:o.end,weeks:o.weeks,dayCount:o.allDay}},api:{coord:function(e,o){return t.dataToPoint(e,o)}}}}};function Fk(t){return t instanceof cl}function kk(t){return t instanceof ls}const Gk=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o,n){this._progressiveEls=null;var i=this._data,r=t.getData(),a=this.group,s=zk(t,r,e,o);i||a.removeAll(),r.diff(i).add((function(e){Uk(o,null,e,s(e,n),t,a,r)})).remove((function(e){var o=i.getItemGraphicEl(e);o&&hk(o,XF(o).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);Uk(o,u,e,s(e,n),t,a,r)})).execute();var l=t.get("clip",!0)?bE(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=r},e.prototype.incrementalPrepareRender=function(t,e,o){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,o,n,i){var r=e.getData(),a=zk(e,r,o,n),s=this._progressiveEls=[];function l(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}for(var u=t.start;u=0?e.getStore().get(i,o):void 0}var r=e.get(n.name,o),a=n&&n.ordinalMeta;return a?a.categories[r]:r},styleEmphasis:function(o,n){null==n&&(n=s);var i=m(n,Ek).getItemStyle(),r=C(n,Ek),a=sc(r,null,null,!0,!0);a.text=r.getShallow("show")?_t(t.getFormattedLabel(n,Ek),t.getFormattedLabel(n,Tk),tE(e,n)):null;var l=lc(r,null,!0);return S(o,i),i=ik(i,a,l),o&&w(i,o),i.legacy=!0,i},visual:function(t,o){if(null==o&&(o=s),Gt(YF,t)){var n=e.getItemVisual(o,"style");return n?n[YF[t]]:null}if(Gt(KF,t))return e.getItemVisual(o,t)},barLayout:function(t){if("cartesian2d"===r.type)return function(t){var e=[],o=t.axis,n="axis0";if("category"===o.type){for(var i=o.getBandWidth(),r=0;r=p;f--){var g=e.childAt(f);Zk(e,g,i)}}}(t,p,o,n,i),a>=0?r.replaceAt(p,a):r.add(p),p}function Yk(t,e,o){var n,i=XF(t),r=e.type,a=e.shape,s=e.style;return o.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&(n=a)&&(Gt(n,"pathData")||Gt(n,"d"))&&eG(a)!==i.customPathData||"image"===r&&Gt(s,"image")&&s.image!==i.customImagePath}function Kk(t,e,o){var n=e?Xk(t,e):t,i=e?qk(t,n,Ek):t.style,r=t.type,a=n?n.textConfig:null,s=t.textContent,l=s?e?Xk(s,e):s:null;if(i&&(o.isLegacy||ek(i,r,!!a,!!l))){o.isLegacy=!0;var u=ok(i,r,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var c=l;!c.type&&(c.type="text")}var p=e?o[e]:o.normal;p.cfg=a,p.conOpt=l}function Xk(t,e){return e?t?t[e]:null:t}function qk(t,e,o){var n=e&&e.style;return null==n&&o===Ek&&t&&(n=t.styleEmphasis),n}function Zk(t,e,o){e&&hk(e,XF(t).option,o)}function Qk(t,e){var o=t&&t.name;return null!=o?o:Pk+e}function Jk(t,e){var o=this.context,n=null!=t?o.newChildren[t]:null,i=null!=e?o.oldChildren[e]:null;$k(o.api,i,o.dataIndex,n,o.seriesModel,o.group)}function tG(t){var e=this.context,o=e.oldChildren[t];o&&hk(o,XF(o).option,e.seriesModel)}function eG(t){return t&&(t.pathData||t.d)}var oG=fa(),nG=j,iG=at,rG=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,o,n){var i=e.get("value"),r=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=o,n||this._lastValue!==i||this._lastStatus!==r){this._lastValue=i,this._lastStatus=r;var a=this._group,s=this._handle;if(!r||"hide"===r)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,i,t,e,o);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(o),this._lastGraphicKey=u;var c=this._moveAnimation=this.determineAnimation(t,e);if(a){var p=st(aG,e,c);this.updatePointerEl(a,l,p),this.updateLabelEl(a,l,p,e)}else a=this._group=new vr,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),o.getZr().add(a);cG(a,e,!0),this._renderHandle(i)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var o=e.get("animation"),n=t.axis,i="category"===n.type,r=e.get("snap");if(!r&&!i)return!1;if("auto"===o||null==o){var a=this.animationThreshold;if(i&&n.getBandWidth()>a)return!0;if(r){var s=vD(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===o},t.prototype.makeElOption=function(t,e,o,n,i){},t.prototype.createPointerEl=function(t,e,o,n){var i=e.pointer;if(i){var a=oG(t).pointerEl=new r[i.type](nG(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,o,n){if(e.label){var i=oG(t).labelEl=new Bl(nG(e.label));t.add(i),lG(i,n)}},t.prototype.updatePointerEl=function(t,e,o){var n=oG(t).pointerEl;n&&e.pointer&&(n.setStyle(e.pointer.style),o(n,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,o,n){var i=oG(t).labelEl;i&&(i.setStyle(e.label.style),o(i,{x:e.label.x,y:e.label.y}),lG(i,n))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,o=this._axisPointerModel,n=this._api.getZr(),i=this._handle,r=o.getModel("handle"),a=o.get("status");if(!r.get("show")||!a||"hide"===a)return i&&n.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Pv(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ne(t.event)},onmousedown:iG(this._onHandleDragMove,this,0,0),drift:iG(this._onHandleDragMove,this),ondragend:iG(this._onHandleDragEnd,this)}),n.add(i)),cG(i,o,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=r.get("size");lt(s)||(s=[s,s]),i.scaleX=s[0]/2,i.scaleY=s[1]/2,Jv(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){aG(this._axisPointerModel,!e&&this._moveAnimation,this._handle,uG(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var o=this._handle;if(o){this._dragging=!0;var n=this.updateHandleTransform(uG(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,o.stopAnimation(),o.attr(uG(n)),oG(o).lastProp=null,this._doDispatchAxisPointer()}},t.prototype._doDispatchAxisPointer=function(){if(this._handle){var t=this._payloadInfo,e=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:t.cursorPoint[0],y:t.cursorPoint[1],tooltipOption:t.tooltipOption,axesInfo:[{axisDim:e.axis.dim,axisIndex:e.componentIndex}]})}},t.prototype._onHandleDragEnd=function(){if(this._dragging=!1,this._handle){var t=this._axisPointerModel.get("value");this._moveHandleToValue(t),this._api.dispatchAction({type:"hideTip"})}},t.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),o=this._group,n=this._handle;e&&o&&(this._lastGraphicKey=null,o&&e.remove(o),n&&e.remove(n),this._group=null,this._handle=null,this._payloadInfo=null),ty(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}},t}();function aG(t,e,o,n){sG(oG(o).lastProp,n)||(oG(o).lastProp=n,e?Xu(o,n,t):(o.stopAnimation(),o.attr(n)))}function sG(t,e){if(ht(t)&&ht(e)){var o=!0;return tt(e,(function(e,n){o=o&&sG(t[n],e)})),!!o}return t===e}function lG(t,e){t[e.get(["label","show"])?"show":"hide"]()}function uG(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function cG(t,e,o){var n=e.get("z"),i=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i),t.silent=o)}))}const pG=rG;function dG(t){var e,o=t.get("type"),n=t.getModel(o+"Style");return"line"===o?(e=n.getLineStyle()).fill=null:"shadow"===o&&((e=n.getAreaStyle()).stroke=null),e}function hG(t,e,o,n,i){var r=fG(o.get("value"),e.axis,e.ecModel,o.get("seriesDataIndices"),{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])}),a=o.getModel("label"),s=wp(a.get("padding")||0),l=a.getFont(),u=Qi(r,l),c=i.position,p=u.width+s[1]+s[3],d=u.height+s[0]+s[2],h=i.align;"right"===h&&(c[0]-=p),"center"===h&&(c[0]-=p/2);var f=i.verticalAlign;"bottom"===f&&(c[1]-=d),"middle"===f&&(c[1]-=d/2),function(t,e,o,n){var i=n.getWidth(),r=n.getHeight();t[0]=Math.min(t[0]+e,i)-e,t[1]=Math.min(t[1]+o,r)-o,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(c,p,d,n);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:sc(a,{text:r,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function fG(t,e,o,n,i){t=e.scale.parse(t);var r=e.scale.getLabel({value:t},{precision:i.precision}),a=i.formatter;if(a){var s={value:rb(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tt(n,(function(t){var e=o.getSeriesByIndex(t.seriesIndex),n=t.dataIndexInside,i=e&&e.getDataParams(n);i&&s.seriesData.push(i)})),ct(a)?r=a.replace("{value}",r):ut(a)&&(r=a(s))}return r}function gG(t,e,o){var n=[1,0,0,1,0,0];return Ue(n,n,o.rotation),je(n,n,o.position),Dv([t.dataToCoord(e),(o.labelOffset||0)+(o.labelDirection||1)*(o.labelMargin||0)],n)}function vG(t,e,o,n,i,r){var a=fD.innerTextLayout(o.rotation,0,o.labelDirection);o.labelMargin=i.get(["label","margin"]),hG(e,n,i,r,{position:gG(n.axis,t,o),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function yG(t,e,o){return{x1:t[o=o||0],y1:t[1-o],x2:e[o],y2:e[1-o]}}function mG(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}}function CG(t,e,o,n,i,r){return{cx:t,cy:e,r0:o,r:n,startAngle:i,endAngle:r,clockwise:!0}}var wG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,o,n,i){var r=o.axis,a=r.grid,s=n.get("type"),l=SG(a,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0));if(s&&"none"!==s){var c=dG(n),p=bG[s](r,u,l);p.style=c,t.graphicKey=p.type,t.pointer=p}vG(e,t,ZT(a.model,o),o,n,i)},e.prototype.getHandleTransform=function(t,e,o){var n=ZT(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=o.get(["handle","margin"]);var i=gG(e.axis,t,n);return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,o,n){var i=o.axis,r=i.grid,a=i.getGlobalExtent(!0),s=SG(r,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(a[1],u[l]),u[l]=Math.max(a[0],u[l]);var c=(s[1]+s[0])/2,p=[c,c];return p[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:p,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(pG);function SG(t,e){var o={};return o[e.dim+"AxisIndex"]=e.index,t.getCartesian(o)}var bG={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:yG([e,o[0]],[e,o[1]],_G(t))}},shadow:function(t,e,o){var n=Math.max(1,t.getBandWidth()),i=o[1]-o[0];return{type:"Rect",shape:mG([e-n/2,o[0]],[n,i],_G(t))}}};function _G(t){return"x"===t.dim?0:1}const xG=wG,EG=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},e}(zp);var TG=fa(),DG=tt;function RG(t,e,o){if(!S.node){var n=e.getZr();TG(n).records||(TG(n).records={}),function(t,e){function o(o,n){t.on(o,(function(o){var i=function(t){var e={showTip:[],hideTip:[]},o=function(n){var i=e[n.type];i?i.push(n):(n.dispatchAction=o,t.dispatchAction(n))};return{dispatchAction:o,pendings:e}}(e);DG(TG(t).records,(function(t){t&&n(t,o,i.dispatchAction)})),function(t,e){var o,n=t.showTip.length,i=t.hideTip.length;n?o=t.showTip[n-1]:i&&(o=t.hideTip[i-1]),o&&(o.dispatchAction=null,e.dispatchAction(o))}(i.pendings,e)}))}TG(t).initialized||(TG(t).initialized=!0,o("click",st(MG,"click")),o("mousemove",st(MG,"mousemove")),o("globalout",OG))}(n,e),(TG(n).records[t]||(TG(n).records[t]={})).handler=o}}function OG(t,e,o){t.handler("leave",null,o)}function MG(t,e,o,n){e.handler(t,o,n)}function AG(t,e){if(!S.node){var o=e.getZr();(TG(o).records||{})[t]&&(TG(o).records[t]=null)}}var IG=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){var n=e.getComponent("tooltip"),i=t.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click";RG("axisPointer",o,(function(t,e,o){"none"!==i&&("leave"===t||i.indexOf(t)>=0)&&o({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){AG("axisPointer",e)},e.prototype.dispose=function(t,e){AG("axisPointer",e)},e.type="axisPointer",e}(Vf);const PG=IG;function LG(t,e){var o,n=[],i=t.seriesIndex;if(null==i||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),a=ha(r,t);if(null==a||a<0||lt(a))return{point:[]};var s=r.getItemGraphicEl(a),l=o.coordinateSystem;if(o.getTooltipPosition)n=o.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u).dim,p=u.dim,d="x"===c||"radius"===c?1:0,h=r.mapDimension(p),f=[];f[d]=r.get(h,a),f[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),a),n=l.dataToPoint(f)||[]}else n=l.dataToPoint(r.getValues(et(l.dimensions,(function(t){return r.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:s}}var NG=fa();function FG(t,e,o){var n=t.currTrigger,i=[t.x,t.y],r=t,a=t.dispatchAction||at(o.dispatchAction,o),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){BG(i)&&(i=LG({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=BG(i),u=r.axesInfo,c=s.axesInfo,p="leave"===n||BG(i),d={},h={},f={list:[],map:{}},g={showPointer:st(GG,h),showTooltip:st(VG,f)};tt(s.coordSysMap,(function(t,e){var o=l||t.containPoint(i);tt(s.coordSysAxesInfo[e],(function(t,e){var n=t.axis,r=function(t,e){for(var o=0;o<(t||[]).length;o++){var n=t[o];if(e.axis.dim===n.axisDim&&e.axis.model.componentIndex===n.axisIndex)return n}}(u,t);if(!p&&o&&(!u||r)){var a=r&&r.value;null!=a||l||(a=n.pointToData(i)),null!=a&&kG(t,a,g,!1,d)}}))}));var v={};return tt(c,(function(t,e){var o=t.linkGroup;o&&!h[e]&&tt(o.axesInfo,(function(e,n){var i=h[n];if(e!==t&&i){var r=i.value;o.mapper&&(r=t.axis.scale.parse(o.mapper(r,HG(e),HG(t)))),v[t.key]=r}}))})),tt(v,(function(t,e){kG(c[e],t,g,!0,d)})),function(t,e,o){var n=o.axesInfo=[];tt(e,(function(e,o){var i=e.axisPointerModel.option,r=t[o];r?(!e.useHandle&&(i.status="show"),i.value=r.value,i.seriesDataIndices=(r.payloadBatch||[]).slice()):!e.useHandle&&(i.status="hide"),"show"===i.status&&n.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:i.value})}))}(h,c,d),function(t,e,o,n){if(!BG(e)&&t.list.length){var i=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};n({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:o.tooltipOption,position:o.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:t.list})}else n({type:"hideTip"})}(f,i,t,a),function(t,e,o){var n=o.getZr(),i="axisPointerLastHighlights",r=NG(n)[i]||{},a=NG(n)[i]={};tt(t,(function(t,e){var o=t.axisPointerModel.option;"show"===o.status&&tt(o.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];tt(r,(function(t,e){!a[e]&&l.push(t)})),tt(a,(function(t,e){!r[e]&&s.push(t)})),l.length&&o.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&o.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(c,0,o),d}}function kG(t,e,o,n,i){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e))if(t.involveSeries){var a=function(t,e){var o=e.axis,n=o.dim,i=t,r=[],a=Number.MAX_VALUE,s=-1;return tt(e.seriesModels,(function(e,l){var u,c,p=e.getData().mapDimensionsAll(n);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(p,t,o);c=d.dataIndices,u=d.nestestValue}else{if(!(c=e.getData().indicesOfNearest(p[0],t,"category"===o.type?.5:null)).length)return;u=e.getData().get(p[0],c[0])}if(null!=u&&isFinite(u)){var h=t-u,f=Math.abs(h);f<=a&&((f=0&&s<0)&&(a=f,s=h,i=u,r.length=0),tt(c,(function(t){r.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:r,snapToValue:i}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==i.seriesIndex&&Y(i,s[0]),!n&&t.snap&&r.containData(l)&&null!=l&&(e=l),o.showPointer(t,e,s),o.showTooltip(t,a,l)}else o.showPointer(t,e)}function GG(t,e,o,n){t[e.key]={value:o,payloadBatch:n}}function VG(t,e,o,n){var i=o.payloadBatch,r=e.axis,a=r.model,s=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=mD(l),c=t.map[u];c||(c=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(c)),c.dataByAxis.push({axisDim:r.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:n,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function HG(t){var e=t.axis.model,o={},n=o.axisDim=t.axis.dim;return o.axisIndex=o[n+"AxisIndex"]=e.componentIndex,o.axisName=o[n+"AxisName"]=e.name,o.axisId=o[n+"AxisId"]=e.id,o}function BG(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function WG(t){SD.registerAxisPointerClass("CartesianAxisPointer",xG),t.registerComponentModel(EG),t.registerComponentView(PG),t.registerPreprocessor((function(t){if(t){(!t.axisPointer||0===t.axisPointer.length)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!lt(e)&&(t.axisPointer.link=[e])}})),t.registerProcessor(t.PRIORITY.PROCESSOR.STATISTIC,(function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=function(t,e){var o={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,o){var n=e.getComponent("tooltip"),i=e.getComponent("axisPointer"),r=i.get("link",!0)||[],a=[];tt(o.getCoordinateSystems(),(function(o){if(o.axisPointerEnabled){var s=mD(o.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=o;var u=o.model.getModel("tooltip",n);if(tt(o.getAxes(),st(h,!1,null)),o.getTooltipAxes&&n&&u.get("show")){var c="axis"===u.get("trigger"),p="cross"===u.get(["axisPointer","type"]),d=o.getTooltipAxes(u.get(["axisPointer","axis"]));(c||p)&&tt(d.baseAxes,st(h,!p||"cross",c)),p&&tt(d.otherAxes,st(h,"cross",!1))}}function h(n,s,c){var p=c.model.getModel("axisPointer",i),d=p.get("show");if(d&&("auto"!==d||n||yD(p))){null==s&&(s=p.get("triggerTooltip")),p=n?function(t,e,o,n,i,r){var a=e.getModel("axisPointer"),s={};tt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=j(a.get(t))})),s.snap="category"!==t.type&&!!r,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=a.get(["label","show"]);if(l.show=null==u||u,!r){var c=s.lineStyle=a.get("crossStyle");c&&K(l,c.textStyle)}}return t.model.getModel("axisPointer",new Ac(s,o,n))}(c,u,i,e,n,s):p;var h=p.get("snap"),f=mD(c.model),g=s||h||"category"===c.type,v=t.axesInfo[f]={key:f,axis:c,coordSys:o,axisPointerModel:p,triggerTooltip:s,involveSeries:g,snap:h,useHandle:yD(p),seriesModels:[],linkGroup:null};l[f]=v,t.seriesInvolved=t.seriesInvolved||g;var y=function(t,e){for(var o=e.model,n=e.dim,i=0;iv?"left":"right",c=Math.abs(l[1]-y)/g<.3?"middle":l[1]>y?"top":"bottom"}return{position:l,align:u,verticalAlign:c}}(e,o,0,a,n.get(["label","margin"]));hG(t,o,n,i,d)},e}(pG),jG={line:function(t,e,o,n){return"angle"===t.dim?{type:"Line",shape:yG(e.coordToPoint([n[0],o]),e.coordToPoint([n[1],o]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:o}}},shadow:function(t,e,o,n){var i=Math.max(1,t.getBandWidth()),r=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:CG(e.cx,e.cy,n[0],n[1],(-o-i/2)*r,(i/2-o)*r)}:{type:"Sector",shape:CG(e.cx,e.cy,o-i/2,o+i/2,0,2*Math.PI)}}};const UG=zG,$G=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.findAxisModel=function(t){var e;return this.ecModel.eachComponent(t,(function(t){t.getCoordSysModel()===this&&(e=t)}),this),e},e.type="polar",e.dependencies=["radiusAxis","angleAxis"],e.defaultOption={z:0,center:["50%","50%"],radius:"80%"},e}(zp);var YG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ma).models[0]},e.type="polarAxis",e}(zp);Q(YG,cb);var KG=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="angleAxis",e}(YG),XG=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="radiusAxis",e}(YG),qG=function(t){function e(e,o){return t.call(this,"radius",e,o)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Bb);qG.prototype.dataToRadius=Bb.prototype.dataToCoord,qG.prototype.radiusToData=Bb.prototype.coordToData;const ZG=qG;var QG=fa(),JG=function(t){function e(e,o){return t.call(this,"angle",e,o||[0,360])||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e.prototype.calculateCategoryInterval=function(){var t=this,e=t.getLabelModel(),o=t.scale,n=o.getExtent(),i=o.count();if(n[1]-n[0]<1)return 0;var r=n[0],a=t.dataToCoord(r+1)-t.dataToCoord(r),s=Math.abs(a),l=Qi(null==r?"":r+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),p=QG(t.model),d=p.lastAutoInterval,h=p.lastTickCount;return null!=d&&null!=h&&Math.abs(d-c)<=1&&Math.abs(h-i)<=1&&d>c?c=d:(p.lastTickCount=i,p.lastAutoInterval=c),c},e}(Bb);JG.prototype.dataToAngle=Bb.prototype.dataToCoord,JG.prototype.angleToData=Bb.prototype.coordToData;const tV=JG;var eV=["radius","angle"],oV=function(){function t(t){this.dimensions=eV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new ZG,this._angleAxis=new tV,this.axisPointerEnabled=!0,this.name=t||"",this._radiusAxis.polar=this._angleAxis.polar=this}return t.prototype.containPoint=function(t){var e=this.pointToCoord(t);return this._radiusAxis.contain(e[0])&&this._angleAxis.contain(e[1])},t.prototype.containData=function(t){return this._radiusAxis.containData(t[0])&&this._angleAxis.containData(t[1])},t.prototype.getAxis=function(t){return this["_"+t+"Axis"]},t.prototype.getAxes=function(){return[this._radiusAxis,this._angleAxis]},t.prototype.getAxesByScale=function(t){var e=[],o=this._angleAxis,n=this._radiusAxis;return o.scale.type===t&&e.push(o),n.scale.type===t&&e.push(n),e},t.prototype.getAngleAxis=function(){return this._angleAxis},t.prototype.getRadiusAxis=function(){return this._radiusAxis},t.prototype.getOtherAxis=function(t){var e=this._angleAxis;return t===e?this._radiusAxis:e},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},t.prototype.getTooltipAxes=function(t){var e=null!=t&&"auto"!==t?this.getAxis(t):this.getBaseAxis();return{baseAxes:[e],otherAxes:[this.getOtherAxis(e)]}},t.prototype.dataToPoint=function(t,e){return this.coordToPoint([this._radiusAxis.dataToRadius(t[0],e),this._angleAxis.dataToAngle(t[1],e)])},t.prototype.pointToData=function(t,e){var o=this.pointToCoord(t);return[this._radiusAxis.radiusToData(o[0],e),this._angleAxis.angleToData(o[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,o=t[1]-this.cy,n=this.getAngleAxis(),i=n.getExtent(),r=Math.min(i[0],i[1]),a=Math.max(i[0],i[1]);n.inverse?r=a-360:a=r+360;var s=Math.sqrt(e*e+o*o);e/=s,o/=s;for(var l=Math.atan2(-o,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],o=t[1]/180*Math.PI;return[Math.cos(o)*e+this.cx,-Math.sin(o)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var o=t.getExtent(),n=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-o[0]*n,endAngle:-o[1]*n,clockwise:t.inverse,contain:function(t,e){var o=t-this.cx,n=e-this.cy,i=o*o+n*n-1e-4,r=this.r,a=this.r0;return i<=r*r&&i>=a*a}}},t.prototype.convertToPixel=function(t,e,o){return nV(e)===this?this.dataToPoint(o):null},t.prototype.convertFromPixel=function(t,e,o){return nV(e)===this?this.pointToData(o):null},t}();function nV(t){var e=t.seriesModel,o=t.polarModel;return o&&o.coordinateSystem||e&&e.coordinateSystem}const iV=oV;function rV(t,e){var o=this,n=o.getAngleAxis(),i=o.getRadiusAxis();if(n.scale.setExtent(1/0,-1/0),i.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===o){var e=t.getData();tt(ub(e,"radius"),(function(t){i.scale.unionExtentFromData(e,t)})),tt(ub(e,"angle"),(function(t){n.scale.unionExtentFromData(e,t)}))}})),ob(n.scale,n.model),ob(i.scale,i.model),"category"===n.type&&!n.onBand){var r=n.getExtent(),a=360/n.scale.count();n.inverse?r[1]+=a:r[1]-=a,n.setExtent(r[0],r[1])}}function aV(t,e){if(t.type=e.get("type"),t.scale=nb(e),t.onBand=e.get("boundaryGap")&&"category"===t.type,t.inverse=e.get("inverse"),function(t){return"angleAxis"===t.mainType}(e)){t.inverse=t.inverse!==e.get("clockwise");var o=e.get("startAngle");t.setExtent(o,o+(t.inverse?-360:360))}e.axis=t,t.model=e}const sV={dimensions:eV,create:function(t,e){var o=[];return t.eachComponent("polar",(function(t,n){var i=new iV(n+"");i.update=rV;var r=i.getRadiusAxis(),a=i.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");aV(r,s),aV(a,l),function(t,e,o){var n=e.get("center"),i=o.getWidth(),r=o.getHeight();t.cx=Or(n[0],i),t.cy=Or(n[1],r);var a=t.getRadiusAxis(),s=Math.min(i,r)/2,l=e.get("radius");null==l?l=[0,"100%"]:lt(l)||(l=[0,l]);var u=[Or(l[0],s),Or(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(i,t,e),o.push(i),t.coordinateSystem=i,i.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ma).models[0];t.coordinateSystem=e.coordinateSystem}})),o}};var lV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function uV(t,e,o){e[1]>e[0]&&(e=e.slice().reverse());var n=t.coordToPoint([e[0],o]),i=t.coordToPoint([e[1],o]);return{x1:n[0],y1:n[1],x2:i[0],y2:i[1]}}function cV(t){return t.getRadiusAxis().inverse?0:1}function pV(t){var e=t[0],o=t[t.length-1];e&&o&&Math.abs(Math.abs(e.coord-o.coord)-360)<1e-4&&t.pop()}var dV=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.axisPointerClass="PolarAxisPointer",o}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var o=t.axis,n=o.polar,i=n.getRadiusAxis().getExtent(),r=o.getTicksCoords(),a=o.getMinorTicksCoords(),s=et(o.getViewLabels(),(function(t){t=j(t);var e=o.scale,n="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=o.dataToCoord(n),t}));pV(s),pV(r),tt(lV,(function(e){!t.get([e,"show"])||o.scale.isBlank()&&"axisLine"!==e||hV[e](this.group,t,n,r,a,i,s)}),this)}},e.type="angleAxis",e}(SD),hV={axisLine:function(t,e,o,n,i,r){var a,s=e.getModel(["axisLine","lineStyle"]),l=cV(o),u=l?0:1;(a=0===r[u]?new ug({shape:{cx:o.cx,cy:o.cy,r:r[l]},style:s.getLineStyle(),z2:1,silent:!0}):new Mg({shape:{cx:o.cx,cy:o.cy,r:r[l],r0:r[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,o,n,i,r){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=r[cV(o)],u=et(n,(function(t){return new Bg({shape:uV(o,[l,l+s],t.coord)})}));t.add(Sv(u,{style:K(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,o,n,i,r){if(i.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=r[cV(o)],c=[],p=0;pf?"left":"right",y=Math.abs(h[1]-g)/d<.3?"middle":h[1]>g?"top":"bottom";if(s&&s[p]){var m=s[p];ht(m)&&m.textStyle&&(a=new Ac(m.textStyle,l,l.ecModel))}var C=new Bl({silent:fD.isLabelSilent(e),style:sc(a,{x:h[0],y:h[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:n.formattedLabel,align:v,verticalAlign:y})});if(t.add(C),c){var w=fD.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=n.rawLabel,Wl(C).eventData=w}}),this)},splitLine:function(t,e,o,n,i,r){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],c=0;c=0?"p":"n",T=w;m&&(n[s][x]||(n[s][x]={p:w,n:w}),T=n[s][x][E]);var D=void 0,R=void 0,O=void 0,M=void 0;if("radius"===p.dim){var A=p.dataToCoord(_)-w,I=r.dataToCoord(x);Math.abs(A)=M})}}}))};var _V={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},xV={splitNumber:5},EV=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="polar",e}(Vf);function TV(t,e){e=e||{};var o=t.coordinateSystem,n=t.axis,i={},r=n.position,a=n.orient,s=o.getRect(),l=[s.x,s.x+s.width,s.y,s.y+s.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===a?u.vertical[r]:l[0],"horizontal"===a?u.horizontal[r]:l[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],i.labelDirection=i.tickDirection=i.nameDirection={top:-1,bottom:1,right:1,left:-1}[r],t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),St(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var c=e.rotate;return null==c&&(c=t.get(["axisLabel","rotate"])),i.labelRotation="top"===r?-c:c,i.z2=1,i}var DV=["axisLine","axisTickLabel","axisName"],RV=["splitArea","splitLine"],OV=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.axisPointerClass="SingleAxisPointer",o}return m(e,t),e.prototype.render=function(e,o,n,i){var r=this.group;r.removeAll();var a=this._axisGroup;this._axisGroup=new vr;var s=TV(e),l=new fD(e,s);tt(DV,l.add,l),r.add(this._axisGroup),r.add(l.getGroup()),tt(RV,(function(t){e.get([t,"show"])&&MV[t](this,this.group,this._axisGroup,e)}),this),Mv(a,this._axisGroup,e),t.prototype.render.call(this,e,o,n,i)},e.prototype.remove=function(){xD(this)},e.type="singleAxis",e}(SD),MV={splitLine:function(t,e,o,n){var i=n.axis;if(!i.scale.isBlank()){var r=n.getModel("splitLine"),a=r.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=n.coordinateSystem.getRect(),c=i.isHorizontal(),p=[],d=0,h=i.getTicksCoords({tickModel:r}),f=[],g=[],v=0;v=e.y&&t[1]<=e.y+e.height:o.contain(o.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},t.prototype.pointToData=function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},t.prototype.dataToPoint=function(t){var e=this.getAxis(),o=this.getRect(),n=[],i="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),n[i]=e.toGlobalCoord(e.dataToCoord(+t)),n[1-i]=0===i?o.y+o.height/2:o.x+o.width/2,n},t.prototype.convertToPixel=function(t,e,o){return GV(e)===this?this.dataToPoint(o):null},t.prototype.convertFromPixel=function(t,e,o){return GV(e)===this?this.pointToData(o):null},t}();function GV(t){var e=t.seriesModel,o=t.singleAxisModel;return o&&o.coordinateSystem||e&&e.coordinateSystem}const VV=kV,HV={create:function(t,e){var o=[];return t.eachComponent("singleAxis",(function(n,i){var r=new VV(n,t,e);r.name="single_"+i,r.resize(n,e),n.coordinateSystem=r,o.push(r)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ma).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),o},dimensions:FV};var BV=["x","y"],WV=["width","height"],zV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,o,n,i){var r=o.axis,a=r.coordinateSystem,s=$V(a,1-UV(r)),l=a.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var c=dG(n),p=jV[u](r,l,s);p.style=c,t.graphicKey=p.type,t.pointer=p}vG(e,t,TV(o),o,n,i)},e.prototype.getHandleTransform=function(t,e,o){var n=TV(e,{labelInside:!1});n.labelMargin=o.get(["handle","margin"]);var i=gG(e.axis,t,n);return{x:i[0],y:i[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,o,n){var i=o.axis,r=i.coordinateSystem,a=UV(i),s=$V(r,a),l=[t.x,t.y];l[a]+=e[a],l[a]=Math.min(s[1],l[a]),l[a]=Math.max(s[0],l[a]);var u=$V(r,1-a),c=(u[1]+u[0])/2,p=[c,c];return p[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e}(pG),jV={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:yG([e,o[0]],[e,o[1]],UV(t))}},shadow:function(t,e,o){var n=t.getBandWidth(),i=o[1]-o[0];return{type:"Rect",shape:mG([e-n/2,o[0]],[n,i],UV(t))}}};function UV(t){return t.isHorizontal()?0:1}function $V(t,e){var o=t.getRect();return[o[BV[e]],o[BV[e]]+o[WV[e]]]}const YV=zV;var KV=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="single",e}(Vf);function XV(t,e){var o,n=t.cellSize;1===(o=lt(n)?n:t.cellSize=[n,n]).length&&(o[1]=o[0]);var i=et([0,1],(function(t){return function(t,e){return null!=t[Ip[e][0]]||null!=t[Ip[e][1]]&&null!=t[Ip[e][2]]}(e,t)&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t]}));Gp(t,e,{type:"box",ignoreSize:i})}const qV=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(e,o,n){var i=Vp(e);t.prototype.init.apply(this,arguments),XV(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),XV(this.option,e)},e.prototype.getCellSize=function(){return this.option.cellSize},e.type="calendar",e.defaultOption={z:2,left:80,top:60,cellSize:20,orient:"horizontal",splitLine:{show:!0,lineStyle:{color:"#000",width:1,type:"solid"}},itemStyle:{color:"#fff",borderWidth:1,borderColor:"#ccc"},dayLabel:{show:!0,firstDay:0,position:"start",margin:"50%",color:"#000"},monthLabel:{show:!0,position:"start",margin:5,align:"center",formatter:null,color:"#000"},yearLabel:{show:!0,position:null,margin:30,formatter:null,color:"#ccc",fontFamily:"sans-serif",fontWeight:"bolder",fontSize:20}},e}(zp);var ZV=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){var n=this.group;n.removeAll();var i=t.coordinateSystem,r=i.getRangeInfo(),a=i.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,r,n),this._renderLines(t,r,a,n),this._renderYearText(t,r,a,n),this._renderMonthText(t,s,a,n),this._renderWeekText(t,s,r,a,n)},e.prototype._renderDayRect=function(t,e,o){for(var n=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),r=n.getCellWidth(),a=n.getCellHeight(),s=e.start.time;s<=e.end.time;s=n.getNextNDay(s,1).time){var l=n.dataToRect([s],!1).tl,u=new El({shape:{x:l[0],y:l[1],width:r,height:a},cursor:"default",style:i});o.add(u)}},e.prototype._renderLines=function(t,e,o,n){var i=this,r=t.coordinateSystem,a=t.getModel(["splitLine","lineStyle"]).getLineStyle(),s=t.get(["splitLine","show"]),l=a.lineWidth;this._tlpoints=[],this._blpoints=[],this._firstDayOfMonth=[],this._firstDayPoints=[];for(var u=e.start,c=0;u.time<=e.end.time;c++){d(u.formatedDate),0===c&&(u=r.getDateInfo(e.start.y+"-"+e.start.m));var p=u.date;p.setMonth(p.getMonth()+1),u=r.getDateInfo(p)}function d(e){i._firstDayOfMonth.push(r.getDateInfo(e)),i._firstDayPoints.push(r.dataToRect([e],!1).tl);var l=i._getLinePointsOfOneWeek(t,e,o);i._tlpoints.push(l[0]),i._blpoints.push(l[l.length-1]),s&&i._drawSplitline(l,a,n)}d(r.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,o),a,n),s&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,o),a,n)},e.prototype._getEdgesPoints=function(t,e,o){var n=[t[0].slice(),t[t.length-1].slice()],i="horizontal"===o?0:1;return n[0][i]=n[0][i]-e/2,n[1][i]=n[1][i]+e/2,n},e.prototype._drawSplitline=function(t,e,o){var n=new kg({z2:20,shape:{points:t},style:e});o.add(n)},e.prototype._getLinePointsOfOneWeek=function(t,e,o){for(var n=t.coordinateSystem,i=n.getDateInfo(e),r=[],a=0;a<7;a++){var s=n.getNextNDay(i.time,a),l=n.dataToRect([s.time],!1);r[2*s.day]=l.tl,r[2*s.day+1]=l["horizontal"===o?"bl":"tr"]}return r},e.prototype._formatterLabel=function(t,e){return ct(t)&&t?(o=t,tt(e,(function(t,e){o=o.replace("{"+e+"}",t)})),o):ut(t)?t(e):e.nameMap;var o},e.prototype._yearTextPositionControl=function(t,e,o,n,i){var r=e[0],a=e[1],s=["center","bottom"];"bottom"===n?(a+=i,s=["center","top"]):"left"===n?r-=i:"right"===n?(r+=i,s=["center","top"]):a-=i;var l=0;return"left"!==n&&"right"!==n||(l=Math.PI/2),{rotation:l,x:r,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,o,n){var i=t.getModel("yearLabel");if(i.get("show")){var r=i.get("margin"),a=i.get("position");a||(a="horizontal"!==o?"top":"left");var s=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(s[0][0]+s[1][0])/2,u=(s[0][1]+s[1][1])/2,c="horizontal"===o?0:1,p={top:[l,s[c][1]],bottom:[l,s[1-c][1]],left:[s[1-c][0],u],right:[s[c][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var h=i.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(h,f),v=new Bl({z2:30,style:sc(i,{text:g})});v.attr(this._yearTextPositionControl(v,p[a],o,a,r)),n.add(v)}},e.prototype._monthTextPositionControl=function(t,e,o,n,i){var r="left",a="top",s=t[0],l=t[1];return"horizontal"===o?(l+=i,e&&(r="center"),"start"===n&&(a="bottom")):(s+=i,e&&(a="middle"),"start"===n&&(r="right")),{x:s,y:l,align:r,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,o,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),a=i.get("margin"),s=i.get("position"),l=i.get("align"),u=[this._tlpoints,this._blpoints];r&&!ct(r)||(r&&(e=Wc(r)||e),r=e.get(["time","monthAbbr"])||[]);var c="start"===s?0:1,p="horizontal"===o?0:1;a="start"===s?-a:a;for(var d="center"===l,h=0;h=n.start.time&&o.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,o=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];o[0].time>o[1].time&&(e=!0,o.reverse());var n=Math.floor(o[1].time/JV)-Math.floor(o[0].time/JV)+1,i=new Date(o[0].time),r=i.getDate(),a=o[1].date.getDate();i.setDate(r+n-1);var s=i.getDate();if(s!==a)for(var l=i.getTime()-o[1].time>0?1:-1;(s=i.getDate())!==a&&(i.getTime()-o[1].time)*l>0;)n-=l,i.setDate(s-l);var u=Math.floor((n+o[0].day+6)/7),c=e?1-u:u-1;return e&&o.reverse(),{range:[o[0].formatedDate,o[1].formatedDate],start:o[0],end:o[1],allDay:n,weeks:u,nthWeek:c,fweek:o[0].day,lweek:o[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,o){var n=this._getRangeInfo(o);if(t>n.weeks||0===t&&en.lweek)return null;var i=7*(t-1)-n.fweek+e,r=new Date(n.start.time);return r.setDate(+n.start.d+i),this.getDateInfo(r)},t.create=function(e,o){var n=[];return e.eachComponent("calendar",(function(i){var r=new t(i,e,o);n.push(r),i.coordinateSystem=r})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("calendarIndex")||0])})),n},t.dimensions=["time","value"],t}();function eH(t){var e=t.calendarModel,o=t.seriesModel;return e?e.coordinateSystem:o?o.coordinateSystem:null}const oH=tH;function nH(t,e){var o;return tt(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(o=!0)})),o}var iH=["transition","enterFrom","leaveTo"],rH=iH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function aH(t,e,o){if(o&&(!t[o]&&e[o]&&(t[o]={}),t=t[o],e=e[o]),t&&e)for(var n=o?iH:rH,i=0;i=0;l--){var d,h,f;if(f=null!=(h=ca((d=o[l]).id,null))?i.get(h):null){var g=f.parent,v=(p=uH(g),{}),y=Fp(f,d,g===n?{width:r,height:a}:{width:p.width,height:p.height},null,{hv:d.hv,boundingMode:d.bounding},v);if(!uH(f).isNew&&y){for(var m=d.transition,C={},w=0;w=0)?C[S]=b:f[S]=b}Xu(f,C,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(o){hH(o,uH(o).option,e,t._lastGraphicModel)})),this._elMap=Lt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Vf);function pH(t){var e=new(Gt(lH,t)?lH[t]:yv(t))({});return uH(e).type=t,e}function dH(t,e,o,n){var i=pH(o);return e.add(i),n.set(t,i),uH(i).id=t,uH(i).isNew=!0,i}function hH(t,e,o,n){t&&t.parent&&("group"===t.type&&t.traverse((function(t){hH(t,e,o,n)})),hk(t,e,n),o.removeKey(uH(t).id))}function fH(t,e,o,n){t.isGroup||tt([["cursor",ls.prototype.cursor],["zlevel",n||0],["z",o||0],["z2",0]],(function(o){var n=o[0];Gt(e,n)?t[n]=bt(e[n],o[1]):null==t[n]&&(t[n]=o[1])})),tt(rt(e),(function(o){if(0===o.indexOf("on")){var n=e[o];t[o]=ut(n)?n:null}})),Gt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var gH=["x","y","radius","angle","single"],vH=["cartesian2d","polar","singleAxis"];function yH(t){return t+"Axis"}function mH(t){var e=t.ecModel,o={infoList:[],infoMap:Lt()};return t.eachTargetAxis((function(t,n){var i=e.getComponent(yH(t),n);if(i){var r=i.getCoordSysModel();if(r){var a=r.uid,s=o.infoMap.get(a);s||(s={model:r,axisModels:[]},o.infoList.push(s),o.infoMap.set(a,s)),s.axisModels.push(i)}}})),o}var CH=function(){function t(){this.indexList=[],this.indexMap=[]}return t.prototype.add=function(t){this.indexMap[t]||(this.indexList.push(t),this.indexMap[t]=!0)},t}(),wH=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o._autoThrottle=!0,o._noTarget=!0,o._rangePropMode=["percent","percent"],o}return m(e,t),e.prototype.init=function(t,e,o){var n=SH(t);this.settledOption=n,this.mergeDefaultAndTheme(t,o),this._doInit(n)},e.prototype.mergeOption=function(t){var e=SH(t);U(this.option,t,!0),U(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var o=this.settledOption;tt([["start","startValue"],["end","endValue"]],(function(t,n){"value"===this._rangePropMode[n]&&(e[t[0]]=o[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Lt();this._fillSpecifiedTargetAxis(e)?this._orient=t||this._makeAutoOrientByTargetAxis():(this._orient=t||"horizontal",this._fillAutoTargetAxisByOrient(e,this._orient)),this._noTarget=!0,e.each((function(t){t.indexList.length&&(this._noTarget=!1)}),this)},e.prototype._fillSpecifiedTargetAxis=function(t){var e=!1;return tt(gH,(function(o){var n=this.getReferringComponents(yH(o),Ca);if(n.specified){e=!0;var i=new CH;tt(n.models,(function(t){i.add(t.componentIndex)})),t.set(o,i)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var o=this.ecModel,n=!0;if(n){var i="vertical"===e?"y":"x";r(o.findComponents({mainType:i+"Axis"}),i)}function r(e,o){var i=e[0];if(i){var r=new CH;if(r.add(i.componentIndex),t.set(o,r),n=!1,"x"===o||"y"===o){var a=i.getReferringComponents("grid",ma).models[0];a&&tt(e,(function(t){i.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ma).models[0]&&r.add(t.componentIndex)}))}}}n&&r(o.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),n&&tt(gH,(function(e){if(n){var i=o.findComponents({mainType:yH(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var r=new CH;r.add(i[0].componentIndex),t.set(e,r),n=!1}}}),this)},e.prototype._makeAutoOrientByTargetAxis=function(){var t;return this.eachTargetAxis((function(e){!t&&(t=e)}),this),"y"===t?"vertical":"horizontal"},e.prototype._setDefaultThrottle=function(t){if(t.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var e=this.ecModel.option;this.option.throttle=e.animation&&e.animationDurationUpdate>0?100:20}},e.prototype._updateRangeUse=function(t){var e=this._rangePropMode,o=this.get("rangeMode");tt([["start","startValue"],["end","endValue"]],(function(n,i){var r=null!=t[n[0]],a=null!=t[n[1]];r&&!a?e[i]="percent":!r&&a?e[i]="value":o?e[i]=o[i]:r&&(e[i]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,o){null==t&&(t=this.ecModel.getComponent(yH(e),o))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(o,n){tt(o.indexList,(function(o){t.call(e,n,o)}))}))},e.prototype.getAxisProxy=function(t,e){var o=this.getAxisModel(t,e);if(o)return o.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var o=this._targetAxisInfoMap.get(t);if(o&&o.indexMap[e])return this.ecModel.getComponent(yH(t),e)},e.prototype.setRawRange=function(t){var e=this.option,o=this.settledOption;tt([["start","startValue"],["end","endValue"]],(function(n){null==t[n[0]]&&null==t[n[1]]||(e[n[0]]=o[n[0]]=t[n[0]],e[n[1]]=o[n[1]]=t[n[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tt(["start","startValue","end","endValue"],(function(o){e[o]=t[o]}))},e.prototype.getPercentRange=function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},e.prototype.getValueRange=function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var o=this.findRepresentativeAxisProxy();return o?o.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,o=this._targetAxisInfoMap.keys(),n=0;n=0}(e)){var o=yH(this._dimName),n=e.getReferringComponents(o,ma).models[0];n&&this._axisIndex===n.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return j(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,o=this._dataExtent,n=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),r=[0,100],a=[],s=[];TH(["start","end"],(function(l,u){var c=t[l],p=t[l+"Value"];"percent"===i[u]?(null==c&&(c=r[u]),p=n.parse(Rr(c,r,o))):(e=!0,c=Rr(p=null==p?o[u]:n.parse(p),o,r)),s[u]=null==p||isNaN(p)?o[u]:p,a[u]=null==c||isNaN(c)?r[u]:c})),DH(s),DH(a);var l=this._minMaxSpan;function u(t,e,o,i,r){var a=r?"Span":"ValueSpan";cP(0,t,o,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Rr(t[s],o,i,!0),r&&(e[s]=n.parse(e[s]))}return e?u(s,a,o,r,!1):u(a,s,r,o,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,o){var n=[1/0,-1/0];TH(o,(function(t){!function(t,e,o){e&&tt(ub(e,o),(function(o){var n=e.getApproximateExtent(o);n[0]t[1]&&(t[1]=n[1])}))}(n,t.getData(),e)}));var i=t.getAxisModel(),r=JS(i.axis.scale,i,n).calculate();return[r.min,r.max]}(this,this._dimName,e),this._updateMinMaxSpan();var o=this.calculateDataWindow(t.settledOption);this._valueWindow=o.valueWindow,this._percentWindow=o.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var o=this._dimName,n=this.getTargetSeriesModels(),i=t.get("filterMode"),r=this._valueWindow;"none"!==i&&TH(n,(function(t){var e=t.getData(),n=e.mapDimensionsAll(o);if(n.length){if("weakFilter"===i){var a=e.getStore(),s=et(n,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,o,i,l=0;lr[1];if(c&&!p&&!d)return!0;c&&(i=!0),p&&(e=!0),d&&(o=!0)}return i&&e&&o}))}else TH(n,(function(o){if("empty"===i)t.setData(e=e.map(o,(function(t){return function(t){return t>=r[0]&&t<=r[1]}(t)?t:NaN})));else{var n={};n[o]=r,e.selectRange(n)}}));TH(n,(function(t){e.setApproximateExtent(r,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,o=this._dataExtent;TH(["min","max"],(function(n){var i=e.get(n+"Span"),r=e.get(n+"ValueSpan");null!=r&&(r=this.getAxisModel().axis.scale.parse(r)),null!=r?i=Rr(o[0]+r,o,[0,100],!0):null!=i&&(r=Rr(i,[0,100],o,!0)-o[0]),t[n+"Span"]=i,t[n+"ValueSpan"]=r}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,o=this._valueWindow;if(e){var n=Lr(o,[0,500]);n=Math.min(n,20);var i=t.axis.scale.rawExtentInfo;0!==e[0]&&i.setDeterminedMinMax("min",+o[0].toFixed(n)),100!==e[1]&&i.setDeterminedMinMax("max",+o[1].toFixed(n)),i.freeze()}},t}();const OH=RH,MH={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(o){o.eachTargetAxis((function(n,i){var r=t.getComponent(yH(n),i);e(n,i,r,o)}))}))}e((function(t,e,o,n){o.__dzAxisProxy=null}));var o=[];e((function(e,n,i,r){i.__dzAxisProxy||(i.__dzAxisProxy=new OH(e,n,r,t),o.push(i.__dzAxisProxy))}));var n=Lt();return tt(o,(function(t){tt(t.getTargetSeriesModels(),(function(t){n.set(t.uid,t)}))})),n},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,o){t.getAxisProxy(e,o).reset(t)})),t.eachTargetAxis((function(o,n){t.getAxisProxy(o,n).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var o=e.getDataPercentWindow(),n=e.getDataValueWindow();t.setCalculatedRange({start:o[0],end:o[1],startValue:n[0],endValue:n[1]})}}))}};var AH=!1;function IH(t){AH||(AH=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,MH),function(t){t.registerAction("dataZoom",(function(t,e){tt(function(t,e){var o,n=Lt(),i=[],r=Lt();t.eachComponent({mainType:"dataZoom",query:e},(function(t){r.get(t.uid)||s(t)}));do{o=!1,t.eachComponent("dataZoom",a)}while(o);function a(t){!r.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,o){var i=n.get(t);i&&i[o]&&(e=!0)})),e}(t)&&(s(t),o=!0)}function s(t){r.set(t.uid,!0),i.push(t),t.eachTargetAxis((function(t,e){(n.get(t)||n.set(t,[]))[e]=!0}))}return i}(e,t),(function(e){e.setRawRange({start:t.start,end:t.end,startValue:t.startValue,endValue:t.endValue})}))}))}(t),t.registerSubTypeDefaulter("dataZoom",(function(){return"slider"})))}function PH(t){t.registerComponentModel(_H),t.registerComponentView(EH),IH(t)}var LH=function(){},NH={};function FH(t,e){NH[t]=e}function kH(t){return NH[t]}const GH=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;tt(this.option.feature,(function(t,o){var n=kH(o);n&&(n.getDefaultOption&&(n.defaultOption=n.getDefaultOption(e)),U(t,n.defaultOption))}))},e.type="toolbox",e.layoutMode={type:"box",ignoreSize:!0},e.defaultOption={show:!0,z:6,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{borderColor:"#666",color:"none"},emphasis:{iconStyle:{borderColor:"#3E98C5"}},tooltip:{show:!1,position:"bottom"}},e}(zp);function VH(t,e){var o=wp(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new El({shape:{x:t.x-o[3],y:t.y-o[0],width:t.width+o[1]+o[3],height:t.height+o[0]+o[2],r:e.get("borderRadius")},style:n,silent:!0,z2:-1})}var HH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,o,n){var i=this.group;if(i.removeAll(),t.get("show")){var r=+t.get("itemSize"),a="vertical"===t.get("orient"),s=t.get("feature")||{},l=this._features||(this._features={}),u=[];tt(s,(function(t,e){u.push(e)})),new mw(this._featureNames||[],u).add(c).update(c).remove(st(c,null)).execute(),this._featureNames=u,function(t,e,o){var n=e.getBoxLayoutParams(),i=e.get("padding"),r={width:o.getWidth(),height:o.getHeight()},a=Np(n,r,i);Lp(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Fp(t,n,r,i)}(i,t,o),i.add(VH(i.getBoundingRect(),t)),a||i.eachChild((function(t){var e=t.__title,n=t.ensureState("emphasis"),a=n.textConfig||(n.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!ut(l)&&e){var u=l.style||(l.style={}),c=Qi(e,Bl.makeFont(u)),p=t.x+i.x,d=!1;t.y+i.y+r+c.height>o.getHeight()&&(a.position="top",d=!0);var h=d?-5-c.height:r+10;p+c.width/2>o.getWidth()?(a.position=["100%",h],u.align="right"):p-c.width/2<0&&(a.position=[0,h],u.align="left")}}))}function c(c,p){var d,h=u[c],f=u[p],g=s[h],v=new Ac(g,t,t.ecModel);if(n&&null!=n.newTitle&&n.featureName===h&&(g.title=n.newTitle),h&&!f){if(function(t){return 0===t.indexOf("my")}(h))d={onclick:v.option.onclick,featureName:h};else{var y=kH(h);if(!y)return;d=new y}l[h]=d}else if(!(d=l[f]))return;d.uid=Pc("toolbox-feature"),d.model=v,d.ecModel=e,d.api=o;var m=d instanceof LH;h||!f?!v.get("show")||m&&d.unusable?m&&d.remove&&d.remove(e,o):(function(n,s,l){var u,c,p=n.getModel("iconStyle"),d=n.getModel(["emphasis","iconStyle"]),h=s instanceof LH&&s.getIcons?s.getIcons():n.get("icon"),f=n.get("title")||{};ct(h)?(u={})[l]=h:u=h,ct(f)?(c={})[l]=f:c=f;var g=n.iconPaths={};tt(u,(function(l,u){var h=Pv(l,{},{x:-r/2,y:-r/2,width:r,height:r});h.setStyle(p.getItemStyle()),h.ensureState("emphasis").style=d.getItemStyle();var f=new Bl({style:{text:c[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});h.setTextContent(f),kv({el:h,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var e=d.getItemStyle(),n=a?null==t.get("right")&&"right"!==t.get("left")?"right":"left":null==t.get("bottom")&&"bottom"!==t.get("top")?"bottom":"top";f.setStyle({fill:d.get("textFill")||e.fill||e.stroke||"#000",backgroundColor:d.get("textBackgroundColor")}),h.setTextConfig({position:d.get("textPosition")||n}),f.ignore=!t.get("showTitle"),o.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==n.get(["iconStatus",u])&&o.leaveEmphasis(this),f.hide()})),("emphasis"===n.get(["iconStatus",u])?_u:xu)(h),i.add(h),h.on("click",at(s.onclick,s,e,o,u)),g[u]=h}))}(v,d,h),v.setIconStatus=function(t,e){var o=this.option,n=this.iconPaths;o.iconStatus=o.iconStatus||{},o.iconStatus[t]=e,n[t]&&("emphasis"===e?_u:xu)(n[t])},d instanceof LH&&d.render&&d.render(v,e,o,n)):m&&d.dispose&&d.dispose(e,o)}},e.prototype.updateView=function(t,e,o,n){tt(this._features,(function(t){t instanceof LH&&t.updateView&&t.updateView(t.model,e,o,n)}))},e.prototype.remove=function(t,e){tt(this._features,(function(o){o instanceof LH&&o.remove&&o.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){tt(this._features,(function(o){o instanceof LH&&o.dispose&&o.dispose(t,e)}))},e.type="toolbox",e}(Vf);const BH=HH,WH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var o=this.model,n=o.get("name")||t.get("title.0.text")||"echarts",i="svg"===e.getZr().painter.getType(),r=i?"svg":o.get("type",!0)||"png",a=e.getConnectedDataURL({type:r,backgroundColor:o.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:o.get("connectedBackgroundColor"),excludeComponents:o.get("excludeComponents"),pixelRatio:o.get("pixelRatio")}),s=S.browser;if(ut(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=n+"."+r,l.target="_blank",l.href=a;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=a.split(","),p=c[0].indexOf("base64")>-1,d=i?decodeURIComponent(c[1]):c[1];p&&(d=window.atob(d));var h=n+"."+r;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var v=new Blob([g]);window.navigator.msSaveOrOpenBlob(v,h)}else{var y=document.createElement("iframe");document.body.appendChild(y);var m=y.contentWindow,C=m.document;C.open("image/svg+xml","replace"),C.write(d),C.close(),m.focus(),C.execCommand("SaveAs",!0,h),document.body.removeChild(y)}}else{var w=o.get("lang"),b='',_=window.open();_.document.write(b),_.document.title=n}},e.getDefaultOption=function(t){return{show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:t.getLocaleModel().get(["toolbox","saveAsImage","title"]),type:"png",connectedBackgroundColor:"#fff",name:"",excludeComponents:["toolbox"],lang:t.getLocaleModel().get(["toolbox","saveAsImage","lang"])}},e}(LH);var zH="__ec_magicType_stack__",jH=[["line","bar"],["stack"]],UH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getIcons=function(){var t=this.model,e=t.get("icon"),o={};return tt(t.get("type"),(function(t){e[t]&&(o[t]=e[t])})),o},e.getDefaultOption=function(t){return{show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z"},title:t.getLocaleModel().get(["toolbox","magicType","title"]),option:{},seriesIndex:{}}},e.prototype.onclick=function(t,e,o){var n=this.model,i=n.get(["seriesIndex",o]);if($H[o]){var r,a={series:[]};tt(jH,(function(t){q(t,o)>=0&&tt(t,(function(t){n.setIconStatus(t,"normal")}))})),n.setIconStatus(o,"emphasis"),t.eachComponent({mainType:"series",query:null==i?null:{seriesIndex:i}},(function(t){var e=t.subType,i=t.id,r=$H[o](e,i,t,n);r&&(K(r,t.option),a.series.push(r));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===o||"bar"===o)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,ma).models[0].componentIndex;a[u]=a[u]||[];for(var p=0;p<=c;p++)a[u][c]=a[u][c]||{};a[u][c].boundaryGap="bar"===o}}}));var s=o;"stack"===o&&(r=U({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),"emphasis"!==n.get(["iconStatus",o])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:r,featureName:"magicType"})}},e}(LH),$H={line:function(t,e,o,n){if("bar"===t)return U({id:e,type:"line",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},n.get(["option","line"])||{},!0)},bar:function(t,e,o,n){if("line"===t)return U({id:e,type:"bar",data:o.get("data"),stack:o.get("stack"),markPoint:o.get("markPoint"),markLine:o.get("markLine")},n.get(["option","bar"])||{},!0)},stack:function(t,e,o,n){var i=o.get("stack")===zH;if("line"===t||"bar"===t)return n.setIconStatus("stack",i?"normal":"emphasis"),U({id:e,stack:i?"":zH},n.get(["option","stack"])||{},!0)}};JC({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const YH=UH;var KH=new Array(60).join("-"),XH="\t";function qH(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var ZH=new RegExp("[\t]+","g");var QH=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){setTimeout((function(){e.dispatchAction({type:"hideTip"})}));var o=e.getDom(),n=this.model;this._dom&&o.removeChild(this._dom);var i=document.createElement("div");i.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",i.style.backgroundColor=n.get("backgroundColor")||"#fff";var r=document.createElement("h4"),a=n.get("lang")||[];r.innerHTML=a[0]||n.get("title"),r.style.cssText="margin:10px 20px",r.style.color=n.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=n.get("optionToContent"),c=n.get("contentToOption"),p=function(t){var e,o,n,i=function(t){var e={},o=[],n=[];return t.eachRawSeries((function(t){var i=t.coordinateSystem;if(!i||"cartesian2d"!==i.type&&"polar"!==i.type)o.push(t);else{var r=i.getBaseAxis();if("category"===r.type){var a=r.dim+"_"+r.index;e[a]||(e[a]={categoryAxis:r,valueAxis:i.getOtherAxis(r),series:[]},n.push({axisDim:r.dim,axisIndex:r.index})),e[a].series.push(t)}else o.push(t)}})),{seriesGroupByCategoryAxis:e,other:o,meta:n}}(t);return{value:nt([(o=i.seriesGroupByCategoryAxis,n=[],tt(o,(function(t,e){var o=t.categoryAxis,i=t.valueAxis.dim,r=[" "].concat(et(t.series,(function(t){return t.name}))),a=[o.model.getCategories()];tt(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var s=[r.join(XH)],l=0;l=0)return!0}(t)){var i=function(t){for(var e=t.split(/\n+/g),o=[],n=et(qH(e.shift()).split(ZH),(function(t){return{name:t,data:[]}})),i=0;i=0)&&t(i,n._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,o){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var n=hB[t.brushType](0,o,e);t.__rangeOffset={offset:gB[t.brushType](n.values,t.range,[1,1]),xyMinMax:n.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,o){tt(t,(function(t){var n=this.findTargetInfo(t,e);n&&!0!==n&&tt(n.coordSyses,(function(n){var i=hB[t.brushType](1,n,t.range,!0);o(t,i.values,n,e)}))}),this)},t.prototype.setInputRanges=function(t,e){tt(t,(function(t){var o,n,i,r,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=hB[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?gB[t.brushType](l.values,u.offset,(o=l.xyMinMax,n=u.xyMinMax,i=yB(o),r=yB(n),a=[i[0]/r[0],i[1]/r[1]],isNaN(a[0])&&(a[0]=1),isNaN(a[1])&&(a[1]=1),a)):l.values}}),this)},t.prototype.makePanelOpts=function(t,e){return et(this._targetInfoList,(function(o){var n=o.getPanelRect();return{panelId:o.panelId,defaultBrushType:e?e(o):null,clipPath:mL(n),isTargetByCursor:wL(n,t,o.coordSysModel),getLinearBrushOtherExtent:CL(n)}}))},t.prototype.controlSeries=function(t,e,o){var n=this.findTargetInfo(t,o);return!0===n||n&&q(n.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var o=this._targetInfoList,n=uB(e,t),i=0;it[1]&&t.reverse(),t}function uB(t,e){return va(t,e,{includeMainTypes:aB})}var cB={grid:function(t,e){var o=t.xAxisModels,n=t.yAxisModels,i=t.gridModels,r=Lt(),a={},s={};(o||n||i)&&(tt(o,(function(t){var e=t.axis.grid.model;r.set(e.id,e),a[e.id]=!0})),tt(n,(function(t){var e=t.axis.grid.model;r.set(e.id,e),s[e.id]=!0})),tt(i,(function(t){r.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),r.each((function(t){var i=t.coordinateSystem,r=[];tt(i.getCartesians(),(function(t,e){(q(o,t.getAxis("x").model)>=0||q(n,t.getAxis("y").model)>=0)&&r.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:r[0],coordSyses:r,getPanelRect:dB.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){tt(t.geoModels,(function(t){var o=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:o,coordSyses:[o],getPanelRect:dB.geo})}))}},pB=[function(t,e){var o=t.xAxisModel,n=t.yAxisModel,i=t.gridModel;return!i&&o&&(i=o.axis.grid.model),!i&&n&&(i=n.axis.grid.model),i&&i===e.gridModel},function(t,e){var o=t.geoModel;return o&&o===e.geoModel}],dB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Tv(t)),e}},hB={lineX:st(fB,0),lineY:st(fB,1),rect:function(t,e,o,n){var i=t?e.pointToData([o[0][0],o[1][0]],n):e.dataToPoint([o[0][0],o[1][0]],n),r=t?e.pointToData([o[0][1],o[1][1]],n):e.dataToPoint([o[0][1],o[1][1]],n),a=[lB([i[0],r[0]]),lB([i[1],r[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,o,n){var i=[[1/0,-1/0],[1/0,-1/0]];return{values:et(o,(function(o){var r=t?e.pointToData(o,n):e.dataToPoint(o,n);return i[0][0]=Math.min(i[0][0],r[0]),i[1][0]=Math.min(i[1][0],r[1]),i[0][1]=Math.max(i[0][1],r[0]),i[1][1]=Math.max(i[1][1],r[1]),r})),xyMinMax:i}}};function fB(t,e,o,n){var i=o.getAxis(["x","y"][t]),r=lB(et([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(n[t]),!0):i.toGlobalCoord(i.dataToCoord(n[t]))}))),a=[];return a[t]=r,a[1-t]=[NaN,NaN],{values:r,xyMinMax:a}}var gB={lineX:st(vB,0),lineY:st(vB,1),rect:function(t,e,o){return[[t[0][0]-o[0]*e[0][0],t[0][1]-o[0]*e[0][1]],[t[1][0]-o[1]*e[1][0],t[1][1]-o[1]*e[1][1]]]},polygon:function(t,e,o){return et(t,(function(t,n){return[t[0]-o[0]*e[n][0],t[1]-o[1]*e[n][1]]}))}};function vB(t,e,o,n){return[e[0]-n[t]*o[0],e[1]-n[t]*o[1]]}function yB(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const mB=sB;var CB,wB,SB=tt,bB=ea+"toolbox-dataZoom_",_B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,o,n){this._brushController||(this._brushController=new yL(o.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),function(t,e,o,n,i){var r=o._isZoomActive;n&&"takeGlobalCursor"===n.type&&(r="dataZoomSelect"===n.key&&n.dataZoomSelectActive),o._isZoomActive=r,t.setIconStatus("zoom",r?"emphasis":"normal");var a=new mB(EB(t),e,{include:["grid"]}).makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));o._brushController.setPanels(a).enableBrush(!(!r||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,n,o),function(t,e){t.setIconStatus("back",function(t){return nB(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,o){xB[o].call(this)},e.prototype.remove=function(t,e){this._brushController&&this._brushController.unmount()},e.prototype.dispose=function(t,e){this._brushController&&this._brushController.dispose()},e.prototype._onBrush=function(t){var e=t.areas;if(t.isEnd&&e.length){var o={},n=this.ecModel;this._brushController.updateCovers([]),new mB(EB(this.model),n,{include:["grid"]}).matchOutputRanges(e,n,(function(t,e,o){if("cartesian2d"===o.type){var n=t.brushType;"rect"===n?(i("x",o,e[0]),i("y",o,e[1])):i({lineX:"x",lineY:"y"}[n],o,e)}})),function(t,e){var o=nB(t);eB(e,(function(e,n){for(var i=o.length-1;i>=0&&!o[i][n];i--);if(i<0){var r=t.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(r){var a=r.getPercentRange();o[0][n]={dataZoomId:n,start:a[0],end:a[1]}}}})),o.push(e)}(n,o),this._dispatchZoomAction(o)}function i(t,e,i){var r=e.getAxis(t),a=r.model,s=function(t,e,o){var n;return o.eachComponent({mainType:"dataZoom",subType:"select"},(function(o){o.getAxisModel(t,e.componentIndex)&&(n=o)})),n}(t,a,n),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=cP(0,i.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(o[s.id]={dataZoomId:s.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];SB(t,(function(t,o){e.push(j(t))})),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},e.getDefaultOption=function(t){return{show:!0,filterMode:"filter",icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:t.getLocaleModel().get(["toolbox","dataZoom","title"]),brushStyle:{borderWidth:0,color:"rgba(210,219,238,0.2)"}}},e}(LH),xB={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=nB(t),o=e[e.length-1];e.length>1&&e.pop();var n={};return eB(o,(function(t,o){for(var i=e.length-1;i>=0;i--)if(t=e[i][o]){n[o]=t;break}})),n}(this.ecModel))}};function EB(t){var e={xAxisIndex:t.get("xAxisIndex",!0),yAxisIndex:t.get("yAxisIndex",!0),xAxisId:t.get("xAxisId",!0),yAxisId:t.get("yAxisId",!0)};return null==e.xAxisIndex&&null==e.xAxisId&&(e.xAxisIndex="all"),null==e.yAxisIndex&&null==e.yAxisId&&(e.yAxisIndex="all"),e}CB="dataZoom",wB=function(t){var e=t.getComponent("toolbox",0),o=["feature","dataZoom"];if(e&&null!=e.get(o)){var n=e.getModel(o),i=[],r=va(t,EB(n));return SB(r.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),SB(r.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),i}function a(t,e,o){var r=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:bB+e+r};a[o]=r,i.push(a)}},Tt(null==dd.get(CB)&&wB),dd.set(CB,wB);const TB=_B,DB=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="tooltip",e.dependencies=["axisPointer"],e.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},e}(zp);function RB(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function OB(t){if(S.domSupported)for(var e=document.documentElement.style,o=0,n=t.length;o-1?(u+="top:50%",c+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var p=a*Math.PI/180,d=l+i,h=d*Math.abs(Math.cos(p))+d*Math.abs(Math.sin(p)),f=e+" solid "+i+"px;";return'
'}(o,n,i)),ct(t))r.innerHTML=t+a;else if(t){r.innerHTML="",lt(t)||(t=[t]);for(var s=0;s=0?this._tryShow(o,n):"leave"===e&&this._hide(n))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,o=this._api,n=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==n&&"click"!==n){var i=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!o.isDisposed()&&i.manuallyShowTip(t,e,o,{x:i._lastX,y:i._lastY,dataByCoordSys:i._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,o,n){if(n.from!==this.uid&&!S.node&&o.getDom()){var i=$B(n,o);this._ticket="";var r=n.dataByCoordSys,a=function(t,e,o){var n=ya(t).queryOptionMap,i=n.keys()[0];if(i&&"series"!==i){var r,a=wa(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return o.getViewOfComponentModel(a).group.traverse((function(e){var o=Wl(e).tooltipConfig;if(o&&o.name===t.name)return r=e,!0})),r?{componentMainType:i,componentIndex:a.componentIndex,el:r}:void 0}}(n,e,o);if(a){var s=a.el.getBoundingRect().clone();s.applyTransform(a.el.transform),this._tryShow({offsetX:s.x+s.width/2,offsetY:s.y+s.height/2,target:a.el,position:n.position,positionDefault:"bottom"},i)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=zB;l.x=n.x,l.y=n.y,l.update(),Wl(l).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:l},i)}else if(r)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:r,tooltipOption:n.tooltipOption},i);else if(null!=n.seriesIndex){if(this._manuallyAxisShowTip(t,e,o,n))return;var u=LG(n,e),c=u.point[0],p=u.point[1];null!=c&&null!=p&&this._tryShow({offsetX:c,offsetY:p,target:u.el,position:n.position,positionDefault:"bottom"},i)}else null!=n.x&&null!=n.y&&(o.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:o.getZr().findHover(n.x,n.y).target},i))}},e.prototype.manuallyHideTip=function(t,e,o,n){var i=this._tooltipContent;!this._alwaysShowContent&&this._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide($B(n,o))},e.prototype._manuallyAxisShowTip=function(t,e,o,n){var i=n.seriesIndex,r=n.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=r&&null!=a){var s=e.getSeriesByIndex(i);if(s&&"axis"===UB([s.getData().getItemModel(r),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return o.dispatchAction({type:"updateAxisPointer",seriesIndex:i,dataIndex:r,position:n.position}),!0}},e.prototype._tryShow=function(t,e){var o=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var n=t.dataByCoordSys;if(n&&n.length)this._showAxisTooltip(n,t);else if(o){var i,r;this._lastDataByCoordSys=null,Uy(o,(function(t){return null!=Wl(t).dataIndex?(i=t,!0):null!=Wl(t).tooltipConfig?(r=t,!0):void 0}),!0),i?this._showSeriesItemTooltip(t,i,e):r?this._showComponentItemTooltip(t,r,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var o=t.get("showDelay");e=at(e,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(e,o):e()},e.prototype._showAxisTooltip=function(t,e){var o=this._ecModel,n=this._tooltipModel,i=[e.offsetX,e.offsetY],r=UB([e.tooltipOption],n),a=this._renderMode,s=[],l=hf("section",{blocks:[],noHeader:!0}),u=[],c=new xf;tt(t,(function(t){tt(t.dataByAxis,(function(t){var e=o.getComponent(t.axisDim+"Axis",t.axisIndex),i=t.value;if(e&&null!=i){var r=fG(i,e.axis,o,t.seriesDataIndices,t.valueLabelOpt),p=hf("section",{header:r,noHeader:!Dt(r),sortBlocks:!0,blocks:[]});l.blocks.push(p),tt(t.seriesDataIndices,(function(l){var d=o.getSeriesByIndex(l.seriesIndex),h=l.dataIndexInside,f=d.getDataParams(h);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=rb(e.axis,{value:i}),f.axisValueLabel=r,f.marker=c.makeTooltipMarker("item",Rp(f.color),a);var g=Th(d.formatTooltip(h,!0,null)),v=g.frag;if(v){var y=UB([d],n).get("valueFormatter");p.blocks.push(y?Y({valueFormatter:y},v):v)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var p=e.position,d=r.get("order"),h=Cf(l,c,a,d,o.get("useUTC"),r.get("textStyle"));h&&u.unshift(h);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(r,p,i[0],i[1],this._tooltipContent,s):this._showTooltipContent(r,g,s,Math.random()+"",i[0],i[1],p,null,c)}))},e.prototype._showSeriesItemTooltip=function(t,e,o){var n=this._ecModel,i=Wl(e),r=i.seriesIndex,a=n.getSeriesByIndex(r),s=i.dataModel||a,l=i.dataIndex,u=i.dataType,c=s.getData(u),p=this._renderMode,d=t.positionDefault,h=UB([c.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=h.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),v=new xf;g.marker=v.makeTooltipMarker("item",Rp(g.color),p);var y=Th(s.formatTooltip(l,!1,u)),m=h.get("order"),C=h.get("valueFormatter"),w=y.frag,S=w?Cf(C?Y({valueFormatter:C},w):w,v,p,m,n.get("useUTC"),h.get("textStyle")):y.text,b="item_"+s.name+"_"+l;this._showOrMove(h,(function(){this._showTooltipContent(h,S,g,b,t.offsetX,t.offsetY,t.position,t.target,v)})),o({type:"showTip",dataIndexInside:l,dataIndex:c.getRawIndex(l),seriesIndex:r,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,o){var n=Wl(e),i=n.tooltipConfig.option||{};ct(i)&&(i={content:i,formatter:i});var r=[i],a=this._ecModel.getComponent(n.componentMainType,n.componentIndex);a&&r.push(a),r.push({formatter:i.content});var s=t.positionDefault,l=UB(r,this._tooltipModel,s?{position:s}:null),u=l.get("content"),c=Math.random()+"",p=new xf;this._showOrMove(l,(function(){var o=j(l.get("formatterParams")||{});this._showTooltipContent(l,u,o,c,t.offsetX,t.offsetY,t.position,e,p)})),o({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,o,n,i,r,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");a=a||t.get("position");var p=e,d=this._getNearestPoint([i,r],o,t.get("trigger"),t.get("borderColor")).color;if(c)if(ct(c)){var h=t.ecModel.get("useUTC"),f=lt(o)?o[0]:o;p=c,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(p=ep(f.axisValue,p,h)),p=xp(p,o,!0)}else if(ut(c)){var g=at((function(e,n){e===this._ticket&&(u.setContent(n,l,t,d,a),this._updatePosition(t,a,i,r,u,o,s))}),this);this._ticket=n,p=c(o,n,g)}else p=c;u.setContent(p,l,t,d,a),u.show(t,d),this._updatePosition(t,a,i,r,u,o,s)}},e.prototype._getNearestPoint=function(t,e,o,n){return"axis"===o||lt(e)?{color:n||("html"===this._renderMode?"#fff":"none")}:lt(e)?void 0:{color:n||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,o,n,i,r,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=i.getSize(),c=t.get("align"),p=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),ut(e)&&(e=e([o,n],r,i.el,d,{viewSize:[s,l],contentSize:u.slice()})),lt(e))o=Or(e[0],s),n=Or(e[1],l);else if(ht(e)){var h=e;h.width=u[0],h.height=u[1];var f=Np(h,{width:s,height:l});o=f.x,n=f.y,c=null,p=null}else if(ct(e)&&a){var g=function(t,e,o,n){var i=o[0],r=o[1],a=Math.ceil(Math.SQRT2*n)+8,s=0,l=0,u=e.width,c=e.height;switch(t){case"inside":s=e.x+u/2-i/2,l=e.y+c/2-r/2;break;case"top":s=e.x+u/2-i/2,l=e.y-r-a;break;case"bottom":s=e.x+u/2-i/2,l=e.y+c+a;break;case"left":s=e.x-i-a,l=e.y+c/2-r/2;break;case"right":s=e.x+u+a,l=e.y+c/2-r/2}return[s,l]}(e,d,u,t.get("borderWidth"));o=g[0],n=g[1]}else g=function(t,e,o,n,i,r,a){var s=o.getSize(),l=s[0],u=s[1];return null!=r&&(t+l+r+2>n?t-=l+r:t+=r),null!=a&&(e+u+a>i?e-=u+a:e+=a),[t,e]}(o,n,i,s,l,c?null:20,p?null:20),o=g[0],n=g[1];c&&(o-=YB(c)?u[0]/2:"right"===c?u[0]:0),p&&(n-=YB(p)?u[1]/2:"bottom"===p?u[1]:0),RB(t)&&(g=function(t,e,o,n,i){var r=o.getSize(),a=r[0],s=r[1];return t=Math.min(t+a,n)-a,e=Math.min(e+s,i)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(o,n,i,s,l),o=g[0],n=g[1]),i.moveTo(o,n)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var o=this._lastDataByCoordSys,n=this._cbParamsList,i=!!o&&o.length===t.length;return i&&tt(o,(function(o,r){var a=o.dataByAxis||[],s=(t[r]||{}).dataByAxis||[];(i=i&&a.length===s.length)&&tt(a,(function(t,o){var r=s[o]||{},a=t.seriesDataIndices||[],l=r.seriesDataIndices||[];(i=i&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&a.length===l.length)&&tt(a,(function(t,e){var o=l[e];i=i&&t.seriesIndex===o.seriesIndex&&t.dataIndex===o.dataIndex})),n&&tt(t.seriesDataIndices,(function(t){var o=t.seriesIndex,r=e[o],a=n[o];r&&a&&a.data!==r.data&&(i=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!i},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!S.node&&e.getDom()&&(ty(this,"_updatePosition"),this._tooltipContent.dispose(),AG("itemTooltip",e))},e.type="tooltip",e}(Vf);function UB(t,e,o){var n,i=e.ecModel;o?(n=new Ac(o,i,i),n=new Ac(e.option,n,i)):n=e;for(var r=t.length-1;r>=0;r--){var a=t[r];a&&(a instanceof Ac&&(a=a.get("tooltip",!0)),ct(a)&&(a={formatter:a}),a&&(n=new Ac(a,n,i)))}return n}function $B(t,e){return t.dispatchAction||at(e.dispatchAction,e)}function YB(t){return"center"===t||"middle"===t}const KB=jB;var XB=["rect","polygon","keep","clear"];function qB(t,e){var o=oa(t?t.brush:[]);if(o.length){var n=[];tt(o,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(n=n.concat(e))}));var i=t&&t.toolbox;lt(i)&&(i=i[0]),i||(i={feature:{}},t.toolbox=[i]);var r=i.feature||(i.feature={}),a=r.brush||(r.brush={}),s=a.type||(a.type=[]);s.push.apply(s,n),function(t){var e={};tt(t,(function(t){e[t]=1})),t.length=0,tt(e,(function(e,o){t.push(o)}))}(s),e&&!s.length&&s.push.apply(s,XB)}}var ZB=tt;function QB(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function JB(t,e,o){var n={};return ZB(e,(function(e){var i,r=n[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);ZB(t[e],(function(t,n){if(oA.isValidType(n)){var i={type:n,visual:t};o&&o(i,e),r[n]=new oA(i),"opacity"===n&&((i=j(i)).type="colorAlpha",r.__hidden.__alphaForOpacity=new oA(i))}}))})),n}function tW(t,e,o){var n;tt(o,(function(t){e.hasOwnProperty(t)&&QB(e[t])&&(n=!0)})),n&&tt(o,(function(o){e.hasOwnProperty(o)&&QB(e[o])?t[o]=j(e[o]):delete t[o]}))}var eW={lineX:oW(0),lineY:oW(1),rect:{point:function(t,e,o){return t&&o.boundingRect.contain(t[0],t[1])},rect:function(t,e,o){return t&&o.boundingRect.intersect(t)}},polygon:{point:function(t,e,o){return t&&o.boundingRect.contain(t[0],t[1])&&mb(o.range,t[0],t[1])},rect:function(t,e,o){var n=o.range;if(!t||n.length<=1)return!1;var i=t.x,r=t.y,a=t.width,s=t.height,l=n[0];return!!(mb(n,i,r)||mb(n,i+a,r)||mb(n,i,r+s)||mb(n,i+a,r+s)||ao.create(t).contain(l[0],l[1])||Lv(i,r,i+a,r,n)||Lv(i,r,i,r+s,n)||Lv(i+a,r,i+a,r+s,n)||Lv(i,r+s,i+a,r+s,n))||void 0}}};function oW(t){var e=["x","y"],o=["width","height"];return{point:function(e,o,n){if(e){var i=n.range;return nW(e[t],i)}},rect:function(n,i,r){if(n){var a=r.range,s=[n[e[t]],n[e[t]]+n[o[t]]];return s[1]e[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&dW(e)}};function dW(t){return new ao(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const hW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new yL(e.getZr())).on("brush",at(this._onBrush,this)).mount()},e.prototype.render=function(t,e,o,n){this.model=t,this._updateController(t,e,o,n)},e.prototype.updateTransform=function(t,e,o,n){sW(e),this._updateController(t,e,o,n)},e.prototype.updateVisual=function(t,e,o,n){this.updateTransform(t,e,o,n)},e.prototype.updateView=function(t,e,o,n){this._updateController(t,e,o,n)},e.prototype._updateController=function(t,e,o,n){(!n||n.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(o)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,o=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:j(o),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:j(o),$from:e})},e.type="brush",e}(Vf);function fW(t,e){return U({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Ac(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const gW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.areas=[],o.brushOption={},o}return m(e,t),e.prototype.optionUpdated=function(t,e){var o=this.option;!e&&tW(o,t,["inBrush","outOfBrush"]);var n=o.inBrush=o.inBrush||{};o.outOfBrush=o.outOfBrush||{color:"#ddd"},n.hasOwnProperty("liftZ")||(n.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=et(t,(function(t){return fW(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=fW(this.option,t),this.brushType=this.brushOption.brushType},e.type="brush",e.dependencies=["geo","grid","xAxis","yAxis","parallel","series"],e.defaultOption={seriesIndex:"all",brushType:"rect",brushMode:"single",transformable:!0,brushStyle:{borderWidth:1,color:"rgba(210,219,238,0.3)",borderColor:"#D2DBEE"},throttleType:"fixRate",throttleDelay:0,removeOnClick:!0,z:1e4},e}(zp);var vW=["rect","polygon","lineX","lineY","keep","clear"];const yW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,o){var n,i,r;e.eachComponent({mainType:"brush"},(function(t){n=t.brushType,i=t.brushOption.brushMode||"single",r=r||!!t.areas.length})),this._brushType=n,this._brushMode=i,tt(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===i:"clear"===e?r:e===n)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,o){this.render(t,e,o)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),o={};return tt(t.get("type",!0),(function(t){e[t]&&(o[t]=e[t])})),o},e.prototype.onclick=function(t,e,o){var n=this._brushType,i=this._brushMode;"clear"===o?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===o?n:n!==o&&o,brushMode:"keep"===o?"multiple"===i?"single":"multiple":i}})},e.getDefaultOption=function(t){return{show:!0,type:vW.slice(),icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:t.getLocaleModel().get(["toolbox","brush","title"])}},e}(LH);var mW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.layoutMode={type:"box",ignoreSize:!0},o}return m(e,t),e.type="title",e.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},e}(zp),CW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.render=function(t,e,o){if(this.group.removeAll(),t.get("show")){var n=this.group,i=t.getModel("textStyle"),r=t.getModel("subtextStyle"),a=t.get("textAlign"),s=bt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Bl({style:sc(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),p=new Bl({style:sc(r,{text:c,fill:r.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),h=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,p.silent=!h&&!f,d&&l.on("click",(function(){Op(d,"_"+t.get("target"))})),h&&p.on("click",(function(){Op(h,"_"+t.get("subtarget"))})),Wl(l).eventData=Wl(p).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,n.add(l),c&&n.add(p);var g=n.getBoundingRect(),v=t.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=Np(v,{width:o.getWidth(),height:o.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?y.x+=y.width:"center"===a&&(y.x+=y.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?y.y+=y.height:"middle"===s&&(y.y+=y.height/2),s=s||"top"),n.x=y.x,n.y=y.y,n.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),p.setStyle(m),g=n.getBoundingRect();var C=y.margin,w=t.getItemStyle(["color","opacity"]);w.fill=t.get("backgroundColor");var S=new El({shape:{x:g.x-C[3],y:g.y-C[0],width:g.width+C[1]+C[3],height:g.height+C[0]+C[2],r:t.get("borderRadius")},style:w,subPixelOptimize:!0,silent:!0});n.add(S)}},e.type="title",e}(Vf),wW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.layoutMode="box",o}return m(e,t),e.prototype.init=function(t,e,o){this.mergeDefaultAndTheme(t,o),this._initData()},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),this._initData()},e.prototype.setCurrentIndex=function(t){null==t&&(t=this.option.currentIndex);var e=this._data.count();this.option.loop?t=(t%e+e)%e:(t>=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},e.prototype.getCurrentIndex=function(){return this.option.currentIndex},e.prototype.isIndexMax=function(){return this.getCurrentIndex()>=this._data.count()-1},e.prototype.setPlayState=function(t){this.option.autoPlay=!!t},e.prototype.getPlayState=function(){return!!this.option.autoPlay},e.prototype._initData=function(){var t,e=this.option,o=e.data||[],n=e.axisType,i=this._names=[];"category"===n?(t=[],tt(o,(function(e,o){var n,r=ca(ra(e),"");ht(e)?(n=j(e)).value=o:n=o,t.push(n),i.push(r)}))):t=o;var r={category:"ordinal",time:"time",value:"number"}[n]||"number";(this._data=new zw([{name:"value",type:r}],this)).initData(t,i)},e.prototype.getData=function(){return this._data},e.prototype.getCategories=function(){if("category"===this.get("axisType"))return this._names.slice()},e.type="timeline",e.defaultOption={z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{},label:{color:"#000"},data:[]},e}(zp);const SW=wW;var bW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="timeline.slider",e.defaultOption=Lc(SW.defaultOption,{backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,orient:"horizontal",inverse:!1,tooltip:{trigger:"item"},symbol:"circle",symbolSize:12,lineStyle:{show:!0,width:2,color:"#DAE1F5"},label:{position:"auto",show:!0,interval:"auto",rotate:0,color:"#A4B1D7"},itemStyle:{color:"#A4B1D7",borderWidth:1},checkpointStyle:{symbol:"circle",symbolSize:15,color:"#316bf3",borderColor:"#fff",borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:"rgba(0, 0, 0, 0.3)",animation:!0,animationDuration:300,animationEasing:"quinticInOut"},controlStyle:{show:!0,showPlayBtn:!0,showPrevBtn:!0,showNextBtn:!0,itemSize:24,itemGap:12,position:"left",playIcon:"path://M31.6,53C17.5,53,6,41.5,6,27.4S17.5,1.8,31.6,1.8C45.7,1.8,57.2,13.3,57.2,27.4S45.7,53,31.6,53z M31.6,3.3 C18.4,3.3,7.5,14.1,7.5,27.4c0,13.3,10.8,24.1,24.1,24.1C44.9,51.5,55.7,40.7,55.7,27.4C55.7,14.1,44.9,3.3,31.6,3.3z M24.9,21.3 c0-2.2,1.6-3.1,3.5-2l10.5,6.1c1.899,1.1,1.899,2.9,0,4l-10.5,6.1c-1.9,1.1-3.5,0.2-3.5-2V21.3z",stopIcon:"path://M30.9,53.2C16.8,53.2,5.3,41.7,5.3,27.6S16.8,2,30.9,2C45,2,56.4,13.5,56.4,27.6S45,53.2,30.9,53.2z M30.9,3.5C17.6,3.5,6.8,14.4,6.8,27.6c0,13.3,10.8,24.1,24.101,24.1C44.2,51.7,55,40.9,55,27.6C54.9,14.4,44.1,3.5,30.9,3.5z M36.9,35.8c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H36c0.5,0,0.9,0.4,0.9,1V35.8z M27.8,35.8 c0,0.601-0.4,1-0.9,1h-1.3c-0.5,0-0.9-0.399-0.9-1V19.5c0-0.6,0.4-1,0.9-1H27c0.5,0,0.9,0.4,0.9,1L27.8,35.8L27.8,35.8z",nextIcon:"M2,18.5A1.52,1.52,0,0,1,.92,18a1.49,1.49,0,0,1,0-2.12L7.81,9.36,1,3.11A1.5,1.5,0,1,1,3,.89l8,7.34a1.48,1.48,0,0,1,.49,1.09,1.51,1.51,0,0,1-.46,1.1L3,18.08A1.5,1.5,0,0,1,2,18.5Z",prevIcon:"M10,.5A1.52,1.52,0,0,1,11.08,1a1.49,1.49,0,0,1,0,2.12L4.19,9.64,11,15.89a1.5,1.5,0,1,1-2,2.22L1,10.77A1.48,1.48,0,0,1,.5,9.68,1.51,1.51,0,0,1,1,8.58L9,.92A1.5,1.5,0,0,1,10,.5Z",prevBtnSize:18,nextBtnSize:18,color:"#A4B1D7",borderColor:"#A4B1D7",borderWidth:1},emphasis:{label:{show:!0,color:"#6f778d"},itemStyle:{color:"#316BF3"},controlStyle:{color:"#316BF3",borderColor:"#316BF3",borderWidth:2}},progress:{lineStyle:{color:"#316BF3"},itemStyle:{color:"#316BF3"},label:{color:"#6f778d"}},data:[]}),e}(SW);Q(bW,Eh.prototype);const _W=bW,xW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="timeline",e}(Vf);var EW=function(t){function e(e,o,n,i){var r=t.call(this,e,o,n)||this;return r.type=i||"value",r}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Bb);const TW=EW;var DW=Math.PI,RW=fa(),OW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,o){if(this.model=t,this.api=o,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var n=this._layout(t,o),i=this._createGroup("_mainGroup"),r=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){return hf("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},tt(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](n,i,a,t)}),this),this._renderAxisLabel(n,r,a,t),this._position(n,t)}this._doPlayStop(),this._updateTicksStatus()},e.prototype.remove=function(){this._clearTimer(),this.group.removeAll()},e.prototype.dispose=function(){this._clearTimer()},e.prototype._layout=function(t,e){var o,n,i,r,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(o=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===o?"left":"right"},c={horizontal:o>=0||"+"===o?"top":"bottom",vertical:"middle"},p={horizontal:0,vertical:DW/2},d="vertical"===s?l.height:l.width,h=t.getModel("controlStyle"),f=h.get("show",!0),g=f?h.get("itemSize"):0,v=f?h.get("itemGap"):0,y=g+v,m=t.get(["label","rotate"])||0;m=m*DW/180;var C=h.get("position",!0),w=f&&h.get("showPlayBtn",!0),S=f&&h.get("showPrevBtn",!0),b=f&&h.get("showNextBtn",!0),_=0,x=d;"left"===C||"bottom"===C?(w&&(n=[0,0],_+=y),S&&(i=[_,0],_+=y),b&&(r=[x-g,0],x-=y)):(w&&(n=[x-g,0],x-=y),S&&(i=[0,0],_+=y),b&&(r=[x-g,0],x-=y));var E=[_,x];return t.get("inverse")&&E.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:p[s],labelRotation:m,labelPosOpt:o,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[s],playPosition:n,prevBtnPosition:i,nextBtnPosition:r,axisExtent:E,controlSize:g,controlGap:v}},e.prototype._position=function(t,e){var o=this._mainGroup,n=this._labelGroup,i=t.viewRect;if("vertical"===t.orient){var r=[1,0,0,1,0,0],a=i.x,s=i.y+i.height;je(r,r,[-a,-s]),Ue(r,r,-DW/2),je(r,r,[a,s]),(i=i.clone()).applyTransform(r)}var l=v(i),u=v(o.getBoundingRect()),c=v(n.getBoundingRect()),p=[o.x,o.y],d=[n.x,n.y];d[0]=p[0]=l[0][0];var h,f=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function v(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function y(t,e,o,n,i){t[n]+=o[n][i]-e[n][i]}null==f||ct(f)?(y(p,u,l,1,h="+"===f?0:1),y(d,c,l,1,1-h)):(y(p,u,l,1,h=f>=0?0:1),d[1]=p[1]+f),o.setPosition(p),n.setPosition(d),o.rotation=n.rotation=t.rotation,g(o),g(n)},e.prototype._createAxis=function(t,e){var o=e.getData(),n=e.get("axisType"),i=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new hS({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new GS({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new vS}}(e,n);i.getTicks=function(){return o.mapArray(["value"],(function(t){return{value:t}}))};var r=o.getDataExtent("value");i.setExtent(r[0],r[1]),i.calcNiceTicks();var a=new TW("value",i,t.axisExtent,n);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new vr;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,o,n){var i=o.getExtent();if(n.get(["lineStyle","show"])){var r=new Bg({shape:{x1:i[0],y1:0,x2:i[1],y2:0},style:Y({lineCap:"round"},n.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(r);var a=this._progressLine=new Bg({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:K({lineCap:"round",lineWidth:r.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,o,n){var i=this,r=n.getData(),a=o.scale.getTicks();this._tickSymbols=[],tt(a,(function(t){var a=o.dataToCoord(t.value),s=r.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),c=s.getModel(["progress","itemStyle"]),p={x:a,y:0,onclick:at(i._changeTimeline,i,t.value)},d=MW(s,l,e,p);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Fu(d);var h=Wl(d);s.get("tooltip")?(h.dataIndex=t.value,h.dataModel=n):h.dataIndex=h.dataModel=null,i._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,o,n){var i=this;if(o.getLabelModel().get("show")){var r=n.getData(),a=o.getViewLabels();this._tickLabels=[],tt(a,(function(n){var a=n.tickValue,s=r.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),c=s.getModel(["progress","label"]),p=o.dataToCoord(n.tickValue),d=new Bl({x:p,y:0,rotation:t.labelRotation-t.rotation,onclick:at(i._changeTimeline,i,a),silent:!1,style:sc(l,{text:n.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=sc(u),d.ensureState("progress").style=sc(c),e.add(d),Fu(d),RW(d).dataIndex=a,i._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,o,n){var i=t.controlSize,r=t.rotation,a=n.getModel("controlStyle").getItemStyle(),s=n.getModel(["emphasis","controlStyle"]).getItemStyle(),l=n.getPlayState(),u=n.get("inverse",!0);function c(t,o,l,u){if(t){var c=or(bt(n.get(["controlStyle",o+"BtnSize"]),i),i),p=function(t,e,o,n){var i=n.style,r=Pv(t.get(["controlStyle",e]),n||{},new ao(o[0],o[1],o[2],o[3]));return i&&r.setStyle(i),r}(n,o+"Icon",[0,-c/2,c,c],{x:t[0],y:t[1],originX:i/2,originY:0,rotation:u?-r:0,rectHover:!0,style:a,onclick:l});p.ensureState("emphasis").style=s,e.add(p),Fu(p)}}c(t.nextBtnPosition,"next",at(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",at(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",at(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,o,n){var i=n.getData(),r=n.getCurrentIndex(),a=i.getItemModel(r).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=at(s._handlePointerDrag,s),t.ondragend=at(s._handlePointerDragend,s),AW(t,s._progressLine,r,o,n,!0)},onUpdate:function(t){AW(t,s._progressLine,r,o,n)}};this._currentPointer=MW(a,a,this._mainGroup,{},this._currentPointer,l)},e.prototype._handlePlayClick=function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},e.prototype._handlePointerDrag=function(t,e,o){this._clearTimer(),this._pointerChangeTimeline([o.offsetX,o.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var o=this._toAxisCoord(t)[0],n=Ar(this._axis.getExtent().slice());o>n[1]&&(o=n[1]),o=0&&(a[r]=+a[r].toFixed(p)),[a,c]}var jW={min:st(zW,"min"),max:st(zW,"max"),average:st(zW,"average"),median:st(zW,"median")};function UW(t,e){if(e){var o=t.getData(),n=t.coordinateSystem,i=n.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!lt(e.coord)&&n){var r=$W(e,o,n,t);if((e=j(e)).type&&jW[e.type]&&r.baseAxis&&r.valueAxis){var a=q(i,r.baseAxis.dim),s=q(i,r.valueAxis.dim),l=jW[e.type](o,r.baseDataDim,r.valueDataDim,a,s);e.coord=l[0],e.value=l[1]}else e.coord=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis]}if(null==e.coord)e.coord=[];else for(var u=e.coord,c=0;c<2;c++)jW[u[c]]&&(u[c]=XW(o,o.mapDimension(i[c]),u[c]));return e}}function $W(t,e,o,n){var i={};return null!=t.valueIndex||null!=t.valueDim?(i.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,i.valueAxis=o.getAxis(function(t,e){var o=t.getData().getDimensionInfo(e);return o&&o.coordDim}(n,i.valueDataDim)),i.baseAxis=o.getOtherAxis(i.valueAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim)):(i.baseAxis=n.getBaseAxis(),i.valueAxis=o.getOtherAxis(i.baseAxis),i.baseDataDim=e.mapDimension(i.baseAxis.dim),i.valueDataDim=e.mapDimension(i.valueAxis.dim)),i}function YW(t,e){return!(t&&t.containData&&e.coord&&!WW(e))||t.containData(e.coord)}function KW(t,e){return t?function(t,o,n,i){return Ah(i<2?t.coord&&t.coord[i]:t.value,e[i])}:function(t,o,n,i){return Ah(t.value,e[i])}}function XW(t,e,o){if("average"===o){var n=0,i=0;return t.each(e,(function(t,e){isNaN(t)||(n+=t,i++)})),n/i}return"median"===o?t.getMedian(e):t.getDataExtent(e)["max"===o?1:0]}var qW=fa();const ZW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.init=function(){this.markerGroupMap=Lt()},e.prototype.render=function(t,e,o){var n=this,i=this.markerGroupMap;i.each((function(t){qW(t).keep=!1})),e.eachSeries((function(t){var i=HW.getMarkerModelFromSeries(t,n.type);i&&n.renderSeries(t,i,e,o)})),i.each((function(t){!qW(t).keep&&n.group.remove(t.group)}))},e.prototype.markKeep=function(t){qW(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var o=this;tt(t,(function(t){var n=HW.getMarkerModelFromSeries(t,o.type);n&&n.getData().eachItemGraphicEl((function(t){t&&(e?Eu(t):Tu(t))}))}))},e.type="marker",e}(Vf);function QW(t,e,o){var n=e.coordinateSystem;t.each((function(i){var r,a=t.getItemModel(i),s=Or(a.get("x"),o.getWidth()),l=Or(a.get("y"),o.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)r=e.getMarkerPosition(t.getValues(t.dimensions,i));else if(n){var u=t.get(n.dimensions[0],i),c=t.get(n.dimensions[1],i);r=n.dataToPoint([u,c])}}else r=[s,l];isNaN(s)||(r[0]=s),isNaN(l)||(r[1]=l),t.setItemLayout(i,r)}))}const JW=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.updateTransform=function(t,e,o){e.eachSeries((function(t){var e=HW.getMarkerModelFromSeries(t,"markPoint");e&&(QW(e.getData(),t,o),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,o,n){var i=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new uE),u=function(t,e,o){var n;n=t?et(t&&t.dimensions,(function(t){return Y(Y({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new zw(n,o),r=et(o.get("data"),st(UW,e));t&&(r=nt(r,st(YW,t)));var a=KW(!!t,n);return i.initData(r,null,a),i}(i,t,e);e.setData(u),QW(e.getData(),t,n),u.each((function(t){var o=u.getItemModel(t),n=o.getShallow("symbol"),i=o.getShallow("symbolSize"),r=o.getShallow("symbolRotate"),s=o.getShallow("symbolOffset"),l=o.getShallow("symbolKeepAspect");if(ut(n)||ut(i)||ut(r)||ut(s)){var c=e.getRawValue(t),p=e.getDataParams(t);ut(n)&&(n=n(c,p)),ut(i)&&(i=i(c,p)),ut(r)&&(r=r(c,p)),ut(s)&&(s=s(c,p))}var d=o.getModel("itemStyle").getItemStyle(),h=By(a,"color");d.fill||(d.fill=h),u.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:r,symbolOffset:s,symbolKeepAspect:l,style:d})})),l.updateData(u),this.group.add(l.group),u.eachItemGraphicEl((function(t){t.traverse((function(t){Wl(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markPoint",e}(ZW),tz=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,o,n){return new e(t,o,n)},e.type="markLine",e.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},e}(HW);var ez=fa(),oz=function(t,e,o,n){var i,r=t.getData();if(lt(n))i=n;else{var a=n.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=n.xAxis||null!=n.yAxis){var s=void 0,l=void 0;if(null!=n.yAxis||null!=n.xAxis)s=e.getAxis(null!=n.yAxis?"y":"x"),l=St(n.yAxis,n.xAxis);else{var u=$W(n,r,e,t);s=u.valueAxis,l=XW(r,Qw(r,u.valueDataDim),a)}var c="x"===s.dim?0:1,p=1-c,d=j(n),h={coord:[]};d.type=null,d.coord=[],d.coord[p]=-1/0,h.coord[p]=1/0;var f=o.get("precision");f>=0&&dt(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[c]=h.coord[c]=l,i=[d,h,{type:a,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[UW(t,i[0]),UW(t,i[1]),Y({},i[2])];return g[2].type=g[2].type||null,U(g[2],g[0]),U(g[2],g[1]),g};function nz(t){return!isNaN(t)&&!isFinite(t)}function iz(t,e,o,n){var i=1-t,r=n.dimensions[t];return nz(e[i])&&nz(o[i])&&e[t]===o[t]&&n.getAxis(r).containData(e[t])}function rz(t,e){if("cartesian2d"===t.type){var o=e[0].coord,n=e[1].coord;if(o&&n&&(iz(1,o,n,t)||iz(0,o,n,t)))return!0}return YW(t,e[0])&&YW(t,e[1])}function az(t,e,o,n,i){var r,a=n.coordinateSystem,s=t.getItemModel(e),l=Or(s.get("x"),i.getWidth()),u=Or(s.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=a.dimensions,p=t.get(c[0],e),d=t.get(c[1],e);r=a.dataToPoint([p,d])}if(_E(a,"cartesian2d")){var h=a.getAxis("x"),f=a.getAxis("y");c=a.dimensions,nz(t.get(c[0],e))?r[0]=h.toGlobalCoord(h.getExtent()[o?0:1]):nz(t.get(c[1],e))&&(r[1]=f.toGlobalCoord(f.getExtent()[o?0:1]))}isNaN(l)||(r[0]=l),isNaN(u)||(r[1]=u)}else r=[l,u];t.setItemLayout(e,r)}const sz=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.updateTransform=function(t,e,o){e.eachSeries((function(t){var e=HW.getMarkerModelFromSeries(t,"markLine");if(e){var n=e.getData(),i=ez(e).from,r=ez(e).to;i.each((function(e){az(i,e,!0,t,o),az(r,e,!1,t,o)})),n.each((function(t){n.setItemLayout(t,[i.getItemLayout(t),r.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,o,n){var i=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,new pI);this.group.add(l.group);var u=function(t,e,o){var n;n=t?et(t&&t.dimensions,(function(t){return Y(Y({},e.getData().getDimensionInfo(e.getData().mapDimension(t))||{}),{name:t,ordinalMeta:null})})):[{name:"value",type:"float"}];var i=new zw(n,o),r=new zw(n,o),a=new zw([],o),s=et(o.get("data"),st(oz,e,t,o));t&&(s=nt(s,st(rz,t)));var l=KW(!!t,n);return i.initData(et(s,(function(t){return t[0]})),null,l),r.initData(et(s,(function(t){return t[1]})),null,l),a.initData(et(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:i,to:r,line:a}}(i,t,e),c=u.from,p=u.to,d=u.line;ez(e).from=c,ez(e).to=p,e.setData(d);var h=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),v=e.get("symbolOffset");function y(e,o,i){var r=e.getItemModel(o);az(e,o,i,t,n);var s=r.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=By(a,"color")),e.setItemVisual(o,{symbolKeepAspect:r.get("symbolKeepAspect"),symbolOffset:bt(r.get("symbolOffset",!0),v[i?0:1]),symbolRotate:bt(r.get("symbolRotate",!0),g[i?0:1]),symbolSize:bt(r.get("symbolSize"),f[i?0:1]),symbol:bt(r.get("symbol",!0),h[i?0:1]),style:s})}lt(h)||(h=[h,h]),lt(f)||(f=[f,f]),lt(g)||(g=[g,g]),lt(v)||(v=[v,v]),u.from.each((function(t){y(c,t,!0),y(p,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[c.getItemLayout(t),p.getItemLayout(t)]),null==e.stroke&&(e.stroke=c.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:c.getItemVisual(t,"symbolOffset"),fromSymbolRotate:c.getItemVisual(t,"symbolRotate"),fromSymbolSize:c.getItemVisual(t,"symbolSize"),fromSymbol:c.getItemVisual(t,"symbol"),toSymbolKeepAspect:p.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:p.getItemVisual(t,"symbolOffset"),toSymbolRotate:p.getItemVisual(t,"symbolRotate"),toSymbolSize:p.getItemVisual(t,"symbolSize"),toSymbol:p.getItemVisual(t,"symbol"),style:e})})),l.updateData(d),u.line.eachItemGraphicEl((function(t){Wl(t).dataModel=e,t.traverse((function(t){Wl(t).dataModel=e}))})),this.markKeep(l),l.group.silent=e.get("silent")||t.get("silent")},e.type="markLine",e}(ZW),lz=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,o,n){return new e(t,o,n)},e.type="markArea",e.defaultOption={z:1,tooltip:{trigger:"item"},animation:!1,label:{show:!0,position:"top"},itemStyle:{borderWidth:0},emphasis:{label:{show:!0,position:"top"}}},e}(HW);var uz=fa(),cz=function(t,e,o,n){var i=n[0],r=n[1];if(i&&r){var a=UW(t,i),s=UW(t,r),l=a.coord,u=s.coord;l[0]=St(l[0],-1/0),l[1]=St(l[1],-1/0),u[0]=St(u[0],1/0),u[1]=St(u[1],1/0);var c=$([{},a,s]);return c.coord=[a.coord,s.coord],c.x0=a.x,c.y0=a.y,c.x1=s.x,c.y1=s.y,c}};function pz(t){return!isNaN(t)&&!isFinite(t)}function dz(t,e,o,n){var i=1-t;return pz(e[i])&&pz(o[i])}function hz(t,e){var o=e.coord[0],n=e.coord[1],i={coord:o,x:e.x0,y:e.y0},r={coord:n,x:e.x1,y:e.y1};return _E(t,"cartesian2d")?!(!o||!n||!dz(1,o,n)&&!dz(0,o,n))||function(t,e,o){return!(t&&t.containZone&&e.coord&&o.coord&&!WW(e)&&!WW(o))||t.containZone(e.coord,o.coord)}(t,i,r):YW(t,i)||YW(t,r)}function fz(t,e,o,n,i){var r,a=n.coordinateSystem,s=t.getItemModel(e),l=Or(s.get(o[0]),i.getWidth()),u=Or(s.get(o[1]),i.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition){var c=t.getValues(["x0","y0"],e),p=t.getValues(["x1","y1"],e),d=a.clampData(c),h=a.clampData(p),f=[];"x0"===o[0]?f[0]=d[0]>h[0]?p[0]:c[0]:f[0]=d[0]>h[0]?c[0]:p[0],"y0"===o[1]?f[1]=d[1]>h[1]?p[1]:c[1]:f[1]=d[1]>h[1]?c[1]:p[1],r=n.getMarkerPosition(f,o,!0)}else{var g=[m=t.get(o[0],e),C=t.get(o[1],e)];a.clampData&&a.clampData(g,g),r=a.dataToPoint(g,!0)}if(_E(a,"cartesian2d")){var v=a.getAxis("x"),y=a.getAxis("y"),m=t.get(o[0],e),C=t.get(o[1],e);pz(m)?r[0]=v.toGlobalCoord(v.getExtent()["x0"===o[0]?0:1]):pz(C)&&(r[1]=y.toGlobalCoord(y.getExtent()["y0"===o[1]?0:1]))}isNaN(l)||(r[0]=l),isNaN(u)||(r[1]=u)}else r=[l,u];return r}var gz=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],vz=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.updateTransform=function(t,e,o){e.eachSeries((function(t){var e=HW.getMarkerModelFromSeries(t,"markArea");if(e){var n=e.getData();n.each((function(e){var i=et(gz,(function(i){return fz(n,e,i,t,o)}));n.setItemLayout(e,i),n.getItemGraphicEl(e).setShape("points",i)}))}}),this)},e.prototype.renderSeries=function(t,e,o,n){var i=t.coordinateSystem,r=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(r)||s.set(r,{group:new vr});this.group.add(l.group),this.markKeep(l);var u=function(t,e,o){var n,i;if(t){var r=et(t&&t.dimensions,(function(t){var o=e.getData();return Y(Y({},o.getDimensionInfo(o.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));i=et(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:r[e%2].type}})),n=new zw(i,o)}else n=new zw(i=[{name:"value",type:"float"}],o);var a=et(o.get("data"),st(cz,e,t,o));t&&(a=nt(a,st(hz,t)));var s=t?function(t,e,o,n){return Ah(t.coord[Math.floor(n/2)][n%2],i[n])}:function(t,e,o,n){return Ah(t.value,i[n])};return n.initData(a,null,s),n.hasItemOption=!0,n}(i,t,e);e.setData(u),u.each((function(e){var o=et(gz,(function(o){return fz(u,e,o,t,n)})),r=i.getAxis("x").scale,s=i.getAxis("y").scale,l=r.getExtent(),c=s.getExtent(),p=[r.parse(u.get("x0",e)),r.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Ar(p),Ar(d);var h=!!(l[0]>p[1]||l[1]d[1]||c[1]=0},e.prototype.getOrient=function(){return"vertical"===this.get("orient")?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},e.type="legend.plain",e.dependencies=["series"],e.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",inactiveBorderWidth:"auto",itemStyle:{color:"inherit",opacity:"inherit",borderColor:"inherit",borderWidth:"auto",borderCap:"inherit",borderJoin:"inherit",borderDashOffset:"inherit",borderMiterLimit:"inherit"},lineStyle:{width:"auto",color:"inherit",inactiveColor:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},e}(zp);const Cz=mz;var wz=st,Sz=tt,bz=vr,_z=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.newlineDisabled=!1,o}return m(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new bz),this.group.add(this._selectorGroup=new bz),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,o){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var i=t.get("align"),r=t.get("orient");i&&"auto"!==i||(i="right"===t.get("left")&&"vertical"===r?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===r?"end":"start"),this.renderInner(i,t,e,o,a,r,s);var l=t.getBoxLayoutParams(),u={width:o.getWidth(),height:o.getHeight()},c=t.get("padding"),p=Np(l,u,c),d=this.layoutInner(t,i,p,n,a,s),h=Np(K({width:d.width,height:d.height},l),u,c);this.group.x=h.x-d.x,this.group.y=h.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=VH(d,t))}},e.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},e.prototype.renderInner=function(t,e,o,n,i,r,a){var s=this.getContentGroup(),l=Lt(),u=e.get("selectedMode"),c=[];o.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),Sz(e.getData(),(function(i,r){var a=i.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var p=new bz;return p.newline=!0,void s.add(p)}var d=o.getSeriesByName(a)[0];if(!l.get(a))if(d){var h=d.getData(),f=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),v=h.getVisual("style");this._createItem(d,a,r,i,e,t,f,v,g,u,n).on("click",wz(xz,a,null,n,c)).on("mouseover",wz(Tz,d.name,null,n,c)).on("mouseout",wz(Dz,d.name,null,n,c)),l.set(a,!0)}else o.eachRawSeries((function(o){if(!l.get(a)&&o.legendVisualProvider){var s=o.legendVisualProvider;if(!s.containName(a))return;var p=s.indexOfName(a),d=s.getItemVisual(p,"style"),h=s.getItemVisual(p,"legendIcon"),f=En(d.fill);f&&0===f[3]&&(f[3]=.2,d=Y(Y({},d),{fill:Nn(f,"rgba")})),this._createItem(o,a,r,i,e,t,{},d,h,u,n).on("click",wz(xz,null,a,n,c)).on("mouseover",wz(Tz,null,a,n,c)).on("mouseout",wz(Dz,null,a,n,c)),l.set(a,!0)}}),this)}),this),i&&this._createSelector(i,e,n,r,a)},e.prototype._createSelector=function(t,e,o,n,i){var r=this.getSelectorGroup();Sz(t,(function(t){var n=t.type,i=new Bl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:"all"===n?"legendAllSelect":"legendInverseSelect"})}});r.add(i),rc(i,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Fu(i)}))},e.prototype._createItem=function(t,e,o,n,i,r,a,s,l,u,c){var p,d,h,f=t.visualDrawType,g=i.get("itemWidth"),v=i.get("itemHeight"),y=i.isSelected(e),m=n.get("symbolRotate"),C=n.get("symbolKeepAspect"),w=n.get("icon"),S=function(t,e,o,n,i,r,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),Sz(t,(function(o,n){"inherit"===t[n]&&(t[n]=e[n])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),c=0===t.lastIndexOf("empty",0)?"fill":"stroke",p=l.getShallow("decal");u.decal=p&&"inherit"!==p?Nm(p,a):n.decal,"inherit"===u.fill&&(u.fill=n[i]),"inherit"===u.stroke&&(u.stroke=n[c]),"inherit"===u.opacity&&(u.opacity=("fill"===i?n:o).opacity),s(u,n);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(s(h,o),"auto"===u.fill&&(u.fill=n.fill),"auto"===u.stroke&&(u.stroke=n.fill),"auto"===h.stroke&&(h.stroke=n.fill),!r){var f=e.get("inactiveBorderWidth"),g=u[c];u.lineWidth="auto"===f?n.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),h.stroke=d.get("inactiveColor"),h.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}(l=w||l||"roundRect",n,a,s,f,y,c),b=new bz,_=n.getModel("textStyle");if(!ut(t.getLegendIcon)||w&&"inherit"!==w){var x="inherit"===w&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;b.add((p={itemWidth:g,itemHeight:v,icon:l,iconRotate:x,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:C},(h=im(d=p.icon||"roundRect",0,0,p.itemWidth,p.itemHeight,p.itemStyle.fill,p.symbolKeepAspect)).setStyle(p.itemStyle),h.rotation=(p.iconRotate||0)*Math.PI/180,h.setOrigin([p.itemWidth/2,p.itemHeight/2]),d.indexOf("empty")>-1&&(h.style.stroke=h.style.fill,h.style.fill="#fff",h.style.lineWidth=2),h))}else b.add(t.getLegendIcon({itemWidth:g,itemHeight:v,icon:l,iconRotate:m,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:C}));var E="left"===r?g+5:-5,T=r,D=i.get("formatter"),R=e;ct(D)&&D?R=D.replace("{name}",null!=e?e:""):ut(D)&&(R=D(e));var O=n.get("inactiveColor");b.add(new Bl({style:sc(_,{text:R,x:E,y:v/2,fill:y?_.getTextColor():O,align:T,verticalAlign:"middle"})}));var M=new El({shape:b.getBoundingRect(),invisible:!0}),A=n.getModel("tooltip");return A.get("show")&&kv({el:M,componentModel:i,itemName:e,itemTooltipOption:A.option}),b.add(M),b.eachChild((function(t){t.silent=!0})),M.silent=!u,this.getContentGroup().add(b),Fu(b),b.__legendDataIndex=o,b},e.prototype.layoutInner=function(t,e,o,n,i,r){var a=this.getContentGroup(),s=this.getSelectorGroup();Lp(t.get("orient"),a,t.get("itemGap"),o.width,o.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),i){Lp("horizontal",s,t.get("selectorItemGap",!0));var c=s.getBoundingRect(),p=[-c.x,-c.y],d=t.get("selectorButtonGap",!0),h=t.getOrient().index,f=0===h?"width":"height",g=0===h?"height":"width",v=0===h?"y":"x";"end"===r?p[h]+=l[f]+d:u[h]+=c[f]+d,p[1-h]+=l[g]/2-c[g]/2,s.x=p[0],s.y=p[1],a.x=u[0],a.y=u[1];var y={x:0,y:0};return y[f]=l[f]+d+c[f],y[g]=Math.max(l[g],c[g]),y[v]=Math.min(0,c[v]+p[1-h]),y}return a.x=u[0],a.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Vf);function xz(t,e,o,n){Dz(t,e,o,n),o.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Tz(t,e,o,n)}function Ez(t){for(var e,o=t.getZr().storage.getDisplayList(),n=0,i=o.length;no[i],f=[-p.x,-p.y];e||(f[n]=l[s]);var g=[0,0],v=[-d.x,-d.y],y=bt(t.get("pageButtonGap",!0),t.get("itemGap",!0));h&&("end"===t.get("pageButtonPosition",!0)?v[n]+=o[i]-d[i]:g[n]+=d[i]+y),v[1-n]+=p[r]/2-d[r]/2,l.setPosition(f),u.setPosition(g),c.setPosition(v);var m={x:0,y:0};if(m[i]=h?o[i]:p[i],m[r]=Math.max(p[r],d[r]),m[a]=Math.min(0,d[a]+v[1-n]),u.__rectSize=o[i],h){var C={x:0,y:0};C[i]=Math.max(o[i]-d[i]-y,0),C[r]=m[r],u.setClipPath(new El({shape:C})),u.__rectSize=C[i]}else c.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var w=this._getPageInfo(t);return null!=w.pageIndex&&Xu(l,{x:w.contentPosition[0],y:w.contentPosition[1]},h?t:null),this._updatePageInfoView(t,w),m},e.prototype._pageGo=function(t,e,o){var n=this._getPageInfo(e)[t];null!=n&&o.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var o=this._controllerGroup;tt(["pagePrev","pageNext"],(function(n){var i=null!=e[n+"DataIndex"],r=o.childOfName(n);r&&(r.setStyle("fill",i?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),r.cursor=i?"pointer":"default")}));var n=o.childOfName("pageText"),i=t.get("pageFormatter"),r=e.pageIndex,a=null!=r?r+1:0,s=e.pageCount;n&&i&&n.setStyle("text",ct(i)?i.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):i({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),o=this.getContentGroup(),n=this._containerGroup.__rectSize,i=t.getOrient().index,r=Nz[i],a=Fz[i],s=this._findTargetItemIndex(e),l=o.children(),u=l[s],c=l.length,p=c?1:0,d={contentPosition:[o.x,o.y],pageCount:p,pageIndex:p-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var h=m(u);d.contentPosition[i]=-h.s;for(var f=s+1,g=h,v=h,y=null;f<=c;++f)(!(y=m(l[f]))&&v.e>g.s+n||y&&!C(y,g.s))&&(g=v.i>g.i?v:y)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),v=y;for(f=s-1,g=h,v=h,y=null;f>=-1;--f)(y=m(l[f]))&&C(v,y.s)||!(g.i=e&&t.s<=e+n}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(n,i){var r=n.__legendDataIndex;null==o&&null!=r&&(o=i),r===t&&(e=i)})),null!=e?e:o):0;var e,o},e.type="legend.scroll",e}(Rz);const Gz=kz;function Vz(t){fw(Az),t.registerComponentModel(Pz),t.registerComponentView(Gz),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var o=t.scrollDataIndex;null!=o&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(o)}))}))}(t)}const Hz=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="dataZoom.inside",e.defaultOption=Lc(bH.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(bH);var Bz=fa();function Wz(t,e){if(e){t.removeKey(e.model.uid);var o=e.controller;o&&o.dispose()}}function zz(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function jz(t,e,o,n){return t.coordinateSystem.containPoint([o,n])}var Uz=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="dataZoom.inside",e}return m(e,t),e.prototype.render=function(e,o,n){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,o){Bz(t).coordSysRecordMap.each((function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=o)}))}(n,e,{pan:at($z.pan,this),zoom:at($z.zoom,this),scrollMove:at($z.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var o=Bz(t).coordSysRecordMap,n=o.keys(),i=0;i0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(r[1]-r[0])+r[0],u=Math.max(1/n.scale,0);r[0]=(r[0]-l)*u+l,r[1]=(r[1]-l)*u+l;var c=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return cP(0,r,[0,100],0,c.minSpan,c.maxSpan),this.range=r,i[0]!==r[0]||i[1]!==r[1]?r:void 0}},pan:Yz((function(t,e,o,n,i,r){var a=Kz[n]([r.oldX,r.oldY],[r.newX,r.newY],e,i,o);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:Yz((function(t,e,o,n,i,r){return Kz[n]([0,0],[r.scrollDelta,r.scrollDelta],e,i,o).signal*(t[1]-t[0])*r.scrollDelta}))};function Yz(t){return function(e,o,n,i){var r=this.range,a=r.slice(),s=e.axisModels[0];if(s)return cP(t(a,s,e,o,n,i),a,[0,100],"all"),this.range=a,r[0]!==a[0]||r[1]!==a[1]?a:void 0}}var Kz={grid:function(t,e,o,n,i){var r=o.axis,a={},s=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=r.inverse?-1:1),a},polar:function(t,e,o,n,i){var r=o.axis,a={},s=i.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===o.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=r.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=r.inverse?-1:1),a},singleAxis:function(t,e,o,n,i){var r=o.axis,a=i.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===r.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=r.inverse?-1:1),s}};const Xz=Uz;function qz(t){IH(t),t.registerComponentModel(Hz),t.registerComponentView(Xz),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var o=Bz(e),n=o.coordSysRecordMap||(o.coordSysRecordMap=Lt());n.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){tt(mH(t).infoList,(function(o){var i=o.model.uid,r=n.get(i)||n.set(i,function(t,e){var o={model:e,containsPoint:st(jz,e),dispatchAction:st(zz,t),dataZoomInfoMap:null,controller:null},n=o.controller=new sR(t.getZr());return tt(["pan","zoom","scrollMove"],(function(t){n.on(t,(function(e){var n=[];o.dataZoomInfoMap.each((function(i){if(e.isAvailableBehavior(i.model.option)){var r=(i.getRange||{})[t],a=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&a&&n.push({dataZoomId:i.model.id,start:a[0],end:a[1]})}})),n.length&&o.dispatchAction(n)}))})),o}(e,o.model));(r.dataZoomInfoMap||(r.dataZoomInfoMap=Lt())).set(t.uid,{dzReferCoordSysInfo:o,model:t,getRange:null})}))})),n.each((function(t){var e,o=t.controller,i=t.dataZoomInfoMap;if(i){var r=i.keys()[0];null!=r&&(e=i.get(r))}if(e){var a=function(t){var e,o="type_",n={type_true:2,type_move:1,type_false:0,type_undefined:-1},i=!0;return t.each((function(t){var r=t.model,a=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");n[o+a]>n[o+e]&&(e=a),i=i&&r.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);o.enable(a.controlType,a.opt),o.setPointerChecker(t.containsPoint),Jv(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else Wz(n,t)}))}))}(t)}const Zz=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Lc(bH.defaultOption,{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,borderColor:"#d2dbee",borderRadius:3,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#d2dbee",width:.5},areaStyle:{color:"#d2dbee",opacity:.2}},selectedDataBackground:{lineStyle:{color:"#8fb0f7",width:.5},areaStyle:{color:"#8fb0f7",opacity:.2}},fillerColor:"rgba(135,175,274,0.2)",handleIcon:"path://M-9.35,34.56V42m0-40V9.5m-2,0h4a2,2,0,0,1,2,2v21a2,2,0,0,1-2,2h-4a2,2,0,0,1-2-2v-21A2,2,0,0,1-11.35,9.5Z",handleSize:"100%",handleStyle:{color:"#fff",borderColor:"#ACB8D1"},moveHandleSize:7,moveHandleIcon:"path://M-320.9-50L-320.9-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-348-41-339-50-320.9-50z M-212.3-50L-212.3-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-239.4-41-230.4-50-212.3-50z M-103.7-50L-103.7-50c18.1,0,27.1,9,27.1,27.1V85.7c0,18.1-9,27.1-27.1,27.1l0,0c-18.1,0-27.1-9-27.1-27.1V-22.9C-130.9-41-121.8-50-103.7-50z",moveHandleStyle:{color:"#D2DBEE",opacity:.7},showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#6E7079"},brushSelect:!0,brushStyle:{color:"rgba(135,175,274,0.15)"},emphasis:{handleStyle:{borderColor:"#8FB0F7"},moveHandleStyle:{color:"#8FB0F7"}}}),e}(bH);var Qz=El,Jz="horizontal",tj="vertical",ej=["line","bar","candlestick","scatter"],oj={easing:"cubicOut",duration:100,delay:0},nj=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o._displayables={},o}return m(e,t),e.prototype.init=function(t,e){this.api=e,this._onBrush=at(this._onBrush,this),this._onBrushEnd=at(this._onBrushEnd,this)},e.prototype.render=function(e,o,n,i){if(t.prototype.render.apply(this,arguments),Jv(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),this._updateView()}else this.group.removeAll()},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){ty(this,"_dispatchZoomAction");var t=this.api.getZr();t.off("mousemove",this._onBrush),t.off("mouseup",this._onBrushEnd)},e.prototype._buildView=function(){var t=this.group;t.removeAll(),this._brushing=!1,this._displayables.brushRect=null,this._resetLocation(),this._resetInterval();var e=this._displayables.sliderGroup=new vr;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,o=t.get("brushSelect")?7:0,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},r=this._orient===Jz?{right:i.width-n.x-n.width,top:i.height-30-7-o,width:n.width,height:30}:{right:7,top:n.y,width:30,height:n.height},a=Vp(t.option);tt(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=r[t])}));var s=Np(a,i);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===tj&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,o=this._orient,n=this.dataZoomModel.getFirstTargetAxisModel(),i=n&&n.get("inverse"),r=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(o!==Jz||i?o===Jz&&i?{scaleY:a?1:-1,scaleX:-1}:o!==tj||i?{scaleY:a?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:a?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:a?1:-1,scaleX:1});var s=t.getBoundingRect([r]);t.x=e.x-s.x,t.y=e.y-s.y,t.markRedraw()},e.prototype._getViewExtent=function(){return[0,this._size[0]]},e.prototype._renderBackground=function(){var t=this.dataZoomModel,e=this._size,o=this._displayables.sliderGroup,n=t.get("brushSelect");o.add(new Qz({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new Qz({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),r=this.api.getZr();n?(i.on("mousedown",this._onBrushStart,this),i.cursor="crosshair",r.on("mousemove",this._onBrush),r.on("mouseup",this._onBrushEnd)):(r.off("mousemove",this._onBrush),r.off("mouseup",this._onBrushEnd)),o.add(i)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,o=this._shadowSize||[],n=t.series,i=n.getRawData(),r=n.getShadowDim&&n.getShadowDim(),a=r&&i.getDimensionInfo(r)?n.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||a!==this._shadowDim||e[0]!==o[0]||e[1]!==o[1]){var u=i.getDataExtent(a),c=.3*(u[1]-u[0]);u=[u[0]-c,u[1]+c];var p,d=[0,e[1]],h=[0,e[0]],f=[[e[0],0],[0,0]],g=[],v=h[1]/(i.count()-1),y=0,m=Math.round(i.count()/e[0]);i.each([a],(function(t,e){if(m>0&&e%m)y+=v;else{var o=null==t||isNaN(t)||""===t,n=o?0:Rr(t,u,d,!0);o&&!p&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!o&&p&&(f.push([y,0]),g.push([y,0])),f.push([y,n]),g.push([y,n]),y+=v,p=o}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var C=this.dataZoomModel,w=0;w<3;w++){var S=b(1===w);this._displayables.sliderGroup.add(S),this._displayables.dataShadowSegs.push(S)}}}function b(t){var e=C.getModel(t?"selectedDataBackground":"dataBackground"),o=new vr,n=new Lg({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new kg({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return o.add(n),o.add(i),o}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var o,n=this.ecModel;return t.eachTargetAxis((function(i,r){tt(t.getAxisProxy(i,r).getTargetSeriesModels(),(function(t){if(!(o||!0!==e&&q(ej,t.get("type"))<0)){var a,s=n.getComponent(yH(i),r).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),o={thisAxis:s,series:t,thisDim:i,otherDim:l,otherAxisInverse:a}}}),this)}),this),o}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,o=e.handles=[null,null],n=e.handleLabels=[null,null],i=this._displayables.sliderGroup,r=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),c=e.filler=new Qz({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new Qz({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:l},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),tt([0,1],(function(e){var r=a.get("handleIcon");!em[r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r);var s=im(r,-1,0,2,2,null,!0);s.attr({cursor:ij(this._orient),draggable:!0,drift:at(this._onDragMove,this,e),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1),z2:5});var l=s.getBoundingRect(),u=a.get("handleSize");this._handleHeight=Or(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,s.setStyle(a.getModel("handleStyle").getItemStyle()),s.style.strokeNoScale=!0,s.rectHover=!0,s.ensureState("emphasis").style=a.getModel(["emphasis","handleStyle"]).getItemStyle(),Fu(s);var c=a.get("handleColor");null!=c&&(s.style.fill=c),i.add(o[e]=s);var p=a.getModel("textStyle");t.add(n[e]=new Bl({silent:!0,invisible:!0,style:sc(p,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:p.getTextColor(),font:p.getFont()}),z2:10}))}),this);var p=c;if(u){var d=Or(a.get("moveHandleSize"),r[1]),h=e.moveHandle=new El({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=im(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=r[1]+d/2-.5,h.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(r[1]/2,Math.max(d,10));(p=e.moveZone=new El({invisible:!0,shape:{y:r[1]-v,height:d+v}})).on("mouseover",(function(){s.enterEmphasis(h)})).on("mouseout",(function(){s.leaveEmphasis(h)})),i.add(h),i.add(g),i.add(p)}p.attr({draggable:!0,cursor:ij(this._orient),drift:at(this._onDragMove,this,"all"),ondragstart:at(this._showDataInfo,this,!0),ondragend:at(this._onDragEnd,this),onmouseover:at(this._showDataInfo,this,!0),onmouseout:at(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Rr(t[0],[0,100],e,!0),Rr(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var o=this.dataZoomModel,n=this._handleEnds,i=this._getViewExtent(),r=o.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];cP(e,n,i,o.get("zoomLock")?"all":t,null!=r.minSpan?Rr(r.minSpan,a,i,!0):null,null!=r.maxSpan?Rr(r.maxSpan,a,i,!0):null);var s=this._range,l=this._range=Ar([Rr(n[0],i,a,!0),Rr(n[1],i,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,o=this._handleEnds,n=Ar(o.slice()),i=this._size;tt([0,1],(function(t){var n=e.handles[t],r=this._handleHeight;n.attr({scaleX:r/2,scaleY:r/2,x:o[t]+(t?-1:1),y:i[1]/2-r/2})}),this),e.filler.setShape({x:n[0],y:0,width:n[1]-n[0],height:i[1]});var r={x:n[0],width:n[1]-n[0]};e.moveHandle&&(e.moveHandle.setShape(r),e.moveZone.setShape(r),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",r.x+r.width/2));for(var a=e.dataShadowSegs,s=[0,n[0],n[1],i[0]],l=0;le[0]||o[1]<0||o[1]>e[1])){var n=this._handleEnds,i=(n[0]+n[1])/2,r=this._updateInterval("all",o[0]-i);this._updateView(),r&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,o=t.offsetY;this._brushStart=new qe(e,o),this._brushing=!0,this._brushStartTime=+new Date},e.prototype._onBrushEnd=function(t){if(this._brushing){var e=this._displayables.brushRect;if(this._brushing=!1,e){e.attr("ignore",!0);var o=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(o.width)<5)){var n=this._getViewExtent(),i=[0,100];this._range=Ar([Rr(o.x,n,i,!0),Rr(o.x+o.width,n,i,!0)]),this._handleEnds=[o.x,o.x+o.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Ne(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var o=this._displayables,n=this.dataZoomModel,i=o.brushRect;i||(i=o.brushRect=new Qz({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(i)),i.attr("ignore",!1);var r=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(r.x,r.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),i.setShape({x:l[0],y:0,width:s[0]-l[0],height:u[1]})},e.prototype._dispatchZoomAction=function(t){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,animation:t?oj:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=mH(this.dataZoomModel).infoList;if(!t&&e.length){var o=e[0].model.coordinateSystem;t=o.getRect&&o.getRect()}if(!t){var n=this.api.getWidth(),i=this.api.getHeight();t={x:.2*n,y:.2*i,width:.6*n,height:.6*i}}return t},e.type="dataZoom.slider",e}(xH);function ij(t){return"vertical"===t?"ns-resize":"ew-resize"}const rj=nj;function aj(t){t.registerComponentModel(Zz),t.registerComponentView(rj),IH(t)}var sj={get:function(t,e,o){var n=j((lj[t]||{})[e]);return o&<(n)?n[n.length-1]:n}},lj={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};const uj=sj;var cj=oA.mapVisual,pj=oA.eachVisual,dj=lt,hj=tt,fj=Ar,gj=Rr,vj=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o.stateList=["inRange","outOfRange"],o.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],o.layoutMode={type:"box",ignoreSize:!0},o.dataBound=[-1/0,1/0],o.targetVisuals={},o.controllerVisuals={},o}return m(e,t),e.prototype.init=function(t,e,o){this.mergeDefaultAndTheme(t,o)},e.prototype.optionUpdated=function(t,e){var o=this.option;!e&&tW(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=at(t,this),this.controllerVisuals=JB(this.option.controller,e,t),this.targetVisuals=JB(this.option.target,e,t)},e.prototype.getItemSymbol=function(){return null},e.prototype.getTargetSeriesIndices=function(){var t=this.option.seriesIndex,e=[];return null==t||"all"===t?this.ecModel.eachSeries((function(t,o){e.push(o)})):e=oa(t),e},e.prototype.eachTargetSeries=function(t,e){tt(this.getTargetSeriesIndices(),(function(o){var n=this.ecModel.getSeriesByIndex(o);n&&t.call(e,n)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(o){o===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,o){var n,i=this.option,r=i.precision,a=this.dataBound,s=i.formatter;o=o||["<",">"],lt(t)&&(t=t.slice(),n=!0);var l=e?t:n?[u(t[0]),u(t[1])]:u(t);return ct(s)?s.replace("{value}",n?l[0]:l).replace("{value2}",n?l[1]:l):ut(s)?n?s(t[0],t[1]):s(t):n?t[0]===a[0]?o[0]+" "+l[1]:t[1]===a[1]?o[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(r,20))}},e.prototype.resetExtent=function(){var t=this.option,e=fj([t.min,t.max]);this._dataExtent=e},e.prototype.getDataDimensionIndex=function(t){var e=this.option.dimension;if(null!=e)return t.getDimensionIndex(e);for(var o=t.dimensions,n=o.length-1;n>=0;n--){var i=o[n],r=t.getDimensionInfo(i);if(!r.isCalculationCoord)return r.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,o={inRange:e.inRange,outOfRange:e.outOfRange},n=e.target||(e.target={}),i=e.controller||(e.controller={});U(n,o),U(i,o);var r=this.isCategory();function a(o){dj(e.color)&&!o.inRange&&(o.inRange={color:e.color.slice().reverse()}),o.inRange=o.inRange||{color:t.get("gradientColor")}}a.call(this,n),a.call(this,i),function(t,e,o){var n=t[e],i=t[o];n&&!i&&(i=t[o]={},hj(n,(function(t,e){if(oA.isValidType(e)){var o=uj.get(e,"inactive",r);null!=o&&(i[e]=o,"color"!==e||i.hasOwnProperty("opacity")||i.hasOwnProperty("colorAlpha")||(i.opacity=[0,0]))}})))}.call(this,n,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,o=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,n=this.get("inactiveColor"),i=this.getItemSymbol()||"roundRect";hj(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:r?n:[n]}),null==l.symbol&&(l.symbol=e&&j(e)||(r?i:[i])),null==l.symbolSize&&(l.symbolSize=o&&j(o)||(r?s[0]:[s[0],s[0]])),l.symbol=cj(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;pj(u,(function(t){t>c&&(c=t)})),l.symbolSize=cj(u,(function(t){return gj(t,[0,c],[0,s[0]],!0)}))}}),this)}.call(this,i)},e.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},e.prototype.isCategory=function(){return!!this.option.categories},e.prototype.setSelected=function(t){},e.prototype.getSelected=function(){return null},e.prototype.getValueState=function(t){return null},e.prototype.getVisualMeta=function(t){return null},e.type="visualMap",e.dependencies=["series"],e.defaultOption={show:!0,z:4,seriesIndex:"all",min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,textStyle:{color:"#333"}},e}(zp);const yj=vj;var mj=[20,140],Cj=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.optionUpdated=function(e,o){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual((function(t){t.mappingMethod="linear",t.dataExtent=this.getExtent()})),this._resetRange()},e.prototype.resetItemSize=function(){t.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(null==e[0]||isNaN(e[0]))&&(e[0]=mj[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=mj[1])},e.prototype._resetRange=function(){var t=this.getExtent(),e=this.option.range;!e||e.auto?(t.auto=1,this.option.range=t):lt(e)&&(e[0]>e[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},e.prototype.completeVisualOption=function(){t.prototype.completeVisualOption.apply(this,arguments),tt(this.stateList,(function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=e[1]/3)}),this)},e.prototype.setSelected=function(t){this.option.range=t.slice(),this._resetRange()},e.prototype.getSelected=function(){var t=this.getExtent(),e=Ar((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=o[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(o){var n=[],i=o.getData();i.each(this.getDataDimensionIndex(i),(function(e,o){t[0]<=e&&e<=t[1]&&n.push(o)}),this),e.push({seriesId:o.id,dataIndex:n})}),this),e},e.prototype.getVisualMeta=function(t){var e=wj(0,0,this.getExtent()),o=wj(0,0,this.option.range.slice()),n=[];function i(e,o){n.push({value:e,color:t(e,o)})}for(var r=0,a=0,s=o.length,l=e.length;at[1])break;o.push({color:this.getControllerVisual(r,"color",e),offset:i/100})}return o.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),o},e.prototype._createBarPoints=function(t,e){var o=this.visualMapModel.itemSize;return[[o[0]-e[0],t[0]],[o[0],t[0]],[o[0],t[1]],[o[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,o=this.visualMapModel.get("inverse");return new vr("horizontal"!==e||o?"horizontal"===e&&o?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||o?{scaleX:"left"===t?1:-1}:{scaleX:"left"===t?1:-1,scaleY:-1}:{scaleX:"bottom"===t?1:-1,rotation:Math.PI/2})},e.prototype._updateHandle=function(t,e){if(this._useHandle){var o=this._shapes,n=this.visualMapModel,i=o.handleThumbs,r=o.handleLabels,a=n.itemSize,s=n.getExtent();Dj([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=Tj(t[l],[0,a[1]],s,!0),p=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=p/a[0],u.x=a[0]-p/2;var d=Dv(o.handleLabelPoints[l],Tv(u,this.group));r[l].setStyle({x:d[0],y:d[1],text:n.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",o.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,o,n){var i=this.visualMapModel,r=i.getExtent(),a=i.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var c=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),p=this.getControllerVisual(t,"symbolSize"),d=Tj(t,r,s,!0),h=a[0]-p/2,f={x:u.x,y:u.y};u.y=d,u.x=h;var g=Dv(l.indicatorLabelPoint,Tv(u,this.group)),v=l.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;v.setStyle({text:(o||"")+i.formatValueText(e),verticalAlign:m?y:"middle",align:m?"center":y});var C={x:h,y:d,style:{fill:c}},w={style:{x:g[0],y:g[1]}};if(i.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var S={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(C,S),v.animateTo(w,S)}else u.attr(C),v.attr(w);this._firstShowIndicator=!1;var b=this._shapes.handleLabels;if(b)for(var _=0;_i[1]&&(u[1]=1/0),e&&(u[0]===-1/0?this._showIndicator(l,u[1],"< ",a):u[1]===1/0?this._showIndicator(l,u[0],"> ",a):this._showIndicator(l,l,"≈ ",a));var c=this._hoverLinkDataIndices,p=[];(e||Ij(o))&&(p=this._hoverLinkDataIndices=o.findTargetDataIndices(u));var d=function(t,e){var o={},n={};return i(t||[],o),i(e||[],n,o),[r(o),r(n)];function i(t,e,o){for(var n=0,i=t.length;n=0&&(i.dimension=r,n.push(i))}})),t.getData().setVisual("visualMeta",n)}}];function Gj(t,e,o,n){for(var i=e.targetVisuals[n],r=oA.prepareVisualTypes(i),a={color:By(t.getData(),"color")},s=0,l=r.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(Nj,Fj),tt(kj,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(Hj))}function jj(t){t.registerComponentModel(Sj),t.registerComponentView(Lj),zj(t)}var Uj=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o._pieceList=[],o}return m(e,t),e.prototype.optionUpdated=function(e,o){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var n=this._mode=this._determineMode();this._pieceList=[],$j[this._mode].call(this,this._pieceList),this._resetSelected(e,o);var i=this.option.categories;this.resetVisual((function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=j(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=et(this._pieceList,(function(t){return t=j(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,o={},n=oA.listVisualTypes(),i=this.isCategory();function r(t,e,o){return t&&t[e]&&t[e].hasOwnProperty(o)}tt(e.pieces,(function(t){tt(n,(function(e){t.hasOwnProperty(e)&&(o[e]=1)}))})),tt(o,(function(t,o){var n=!1;tt(this.stateList,(function(t){n=n||r(e,t,o)||r(e.target,t,o)}),this),!n&&tt(this.stateList,(function(t){(e[t]||(e[t]={}))[o]=uj.get(o,"inRange"===t?"active":"inactive",i)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var o=this.option,n=this._pieceList,i=(e?o:t).selected||{};if(o.selected=i,tt(n,(function(t,e){var o=this.getSelectedMapKey(t);i.hasOwnProperty(o)||(i[o]=!0)}),this),"single"===o.selectedMode){var r=!1;tt(n,(function(t,e){var o=this.getSelectedMapKey(t);i[o]&&(r?i[o]=!1:r=!0)}),this)}},e.prototype.getItemSymbol=function(){return this.get("itemSymbol")},e.prototype.getSelectedMapKey=function(t){return"categories"===this._mode?t.value+"":t.index+""},e.prototype.getPieceList=function(){return this._pieceList},e.prototype._determineMode=function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},e.prototype.setSelected=function(t){this.option.selected=j(t)},e.prototype.getValueState=function(t){var e=oA.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],o=this._pieceList;return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){oA.findPieceIndex(e,o)===t&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getRepresentValue=function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var o=t.interval||[];e=o[0]===-1/0&&o[1]===1/0?0:(o[0]+o[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],o=["",""],n=this,i=this._pieceList.slice();if(i.length){var r=i[0].interval[0];r!==-1/0&&i.unshift({interval:[-1/0,r]}),(r=i[i.length-1].interval[1])!==1/0&&i.push({interval:[r,1/0]})}else i.push({interval:[-1/0,1/0]});var a=-1/0;return tt(i,(function(t){var e=t.interval;e&&(e[0]>a&&s([a,e[0]],"outOfRange"),s(e.slice()),a=e[1])}),this),{stops:e,outerColors:o}}function s(i,r){var a=n.getRepresentValue({interval:i});r||(r=n.getValueState(a));var s=t(a,r);i[0]===-1/0?o[0]=s:i[1]===1/0?o[1]=s:e.push({value:i[0],color:s},{value:i[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Lc(yj.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),e}(yj),$j={splitNumber:function(t){var e=this.option,o=Math.min(e.precision,20),n=this.getExtent(),i=e.splitNumber;i=Math.max(parseInt(i,10),1),e.splitNumber=i;for(var r=(n[1]-n[0])/i;+r.toFixed(o)!==r&&o<5;)o++;e.precision=o,r=+r.toFixed(o),e.minOpen&&t.push({interval:[-1/0,n[0]],close:[0,0]});for(var a=0,s=n[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,o)}),this)}};function Yj(t,e){var o=t.inverse;("vertical"===t.orient?!o:o)&&e.reverse()}const Kj=Uj,Xj=function(t){function e(){var o=null!==t&&t.apply(this,arguments)||this;return o.type=e.type,o}return m(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,o=e.get("textGap"),n=e.textStyleModel,i=n.getFont(),r=n.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,c=St(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,c,a),tt(l.viewPieceList,(function(n){var l=n.piece,u=new vr;u.onclick=at(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,s[0],s[1]]),c){var d=this.visualMapModel.getValueState(p);u.add(new Bl({style:{x:"right"===a?-o:s[0]+o,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:i,fill:r,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,c,a),Lp(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var o=this;t.on("mouseover",(function(){return n("highlight")})).on("mouseout",(function(){return n("downplay")}));var n=function(t){var n=o.visualMapModel;n.option.hoverLink&&o.api.dispatchAction({type:t,batch:Ej(n.findTargetDataIndices(e),n)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return xj(t,this.api,t.itemSize);var o=e.align;return o&&"auto"!==o||(o="left"),o},e.prototype._renderEndsText=function(t,e,o,n,i){if(e){var r=new vr,a=this.visualMapModel.textStyleModel;r.add(new Bl({style:sc(a,{x:n?"right"===i?o[0]:0:o[0]/2,y:o[1]/2,verticalAlign:"middle",align:n?i:"center",text:e})})),t.add(r)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=et(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),o=t.get("text"),n=t.get("orient"),i=t.get("inverse");return("horizontal"===n?i:!i)?e.reverse():o&&(o=o.slice().reverse()),{viewPieceList:e,endsText:o}},e.prototype._createItemSymbol=function(t,e,o){t.add(im(this.getControllerVisual(e,"symbol"),o[0],o[1],o[2],o[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,o=e.option,n=o.selectedMode;if(n){var i=j(o.selected),r=e.getSelectedMapKey(t);"single"===n||!0===n?(i[r]=!0,tt(i,(function(t,e){i[e]=e===r}))):i[r]=!i[r],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}},e.type="visualMap.piecewise",e}(bj);function qj(t){t.registerComponentModel(Kj),t.registerComponentView(Xj),zj(t)}var Zj={label:{enabled:!0},decal:{show:!1}},Qj=fa(),Jj={};function tU(t,e){var o=t.getModel("aria");if(o.get("enabled")){var n=j(Zj);U(n.label,t.getLocaleModel().get("aria"),!1),U(o.option,n,!1),function(){if(o.getModel("decal").get("show")){var e=Lt();t.eachSeries((function(t){if(!t.isColorBySeries()){var o=e.get(t.type);o||(o={},e.set(t.type,o)),Qj(t).scope=o}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(ut(e.enableAriaDecal))e.enableAriaDecal();else{var o=e.getData();if(e.isColorBySeries()){var n=vd(e.ecModel,e.name,Jj,t.getSeriesCount()),i=o.getVisual("decal");o.setVisual("decal",u(i,n))}else{var r=e.getRawData(),a={},s=Qj(e).scope;o.each((function(t){var e=o.getRawIndex(t);a[e]=t}));var l=r.count();r.each((function(t){var n=a[t],i=r.getName(t)||t+"",c=vd(e.ecModel,i,s,l),p=o.getItemVisual(n,"decal");o.setItemVisual(n,"decal",u(p,c))}))}}function u(t,e){var o=t?Y(Y({},e),t):e;return o.dirty=!0,o}}))}}(),function(){var n=t.getLocaleModel().get("aria"),r=o.getModel("label");if(r.option=K(r.option,n),r.get("enabled")){var a=e.getZr().dom;if(r.get("description"))a.setAttribute("aria-label",r.get("description"));else{var s,l=t.getSeriesCount(),u=r.get(["data","maxCount"])||10,c=r.get(["series","maxCount"])||10,p=Math.min(l,c);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=d?i(r.get(["general","withTitle"]),{title:d}):r.get(["general","withoutTitle"]);var h=[];s+=i(l>1?r.get(["series","multiple","prefix"]):r.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,o){if(o1?r.get(["series","multiple",a]):r.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(C=e.subType,t.getLocaleModel().get(["series","typeNames"])[C]||"自定义图")});var s=e.getData();s.count()>u?n+=i(r.get(["data","partialData"]),{displayCnt:u}):n+=r.get(["data","allData"]);for(var c=r.get(["data","separator","middle"]),d=r.get(["data","separator","end"]),f=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},nU=function(){function t(t){null==(this._condVal=ct(t)?new RegExp(t):Ct(t)?t:null)&&Mh("")}return t.prototype.evaluate=function(t){var e=typeof t;return ct(e)?this._condVal.test(t):!!dt(e)&&this._condVal.test(t+"")},t}(),iU=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),rU=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,o]}function f(t,o,n,i){mU(t,n)&&mU(o,i)||e.push(t,o,n,i,n,i)}function g(t,o,n,i,r,a){var s=Math.abs(o-t),l=4*Math.tan(s/4)/3,u=ox:D2&&l.push(e),l}function wU(t,e,o,n,i,r,a,s,l,u){if(mU(t,o)&&mU(e,n)&&mU(i,a)&&mU(r,s))l.push(a,s);else{var c=2/u,p=c*c,d=a-t,h=s-e,f=Math.sqrt(d*d+h*h);d/=f,h/=f;var g=o-t,v=n-e,y=i-a,m=r-s,C=g*g+v*v,w=y*y+m*m;if(C=0&&w-b*b=0)l.push(a,s);else{var _=[],x=[];qo(t,o,i,a,.5,_),qo(e,n,r,s,.5,x),wU(_[0],x[0],_[1],x[1],_[2],x[2],_[3],x[3],l,u),wU(_[4],x[4],_[5],x[5],_[6],x[6],_[7],x[7],l,u)}}}}function SU(t,e,o){var n=t[e],i=t[1-e],r=Math.abs(n/i),a=Math.ceil(Math.sqrt(r*o)),s=Math.floor(o/a);0===s&&(s=1,a=o);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),p=SU([l,u],c?0:1,e),d=(c?s:u)/p.length,h=0;h1?null:new qe(h*l+t,h*u+e)}function EU(t,e,o){var n=new qe;qe.sub(n,o,e),n.normalize();var i=new qe;return qe.sub(i,t,e),i.dot(n)}function TU(t,e){var o=t[t.length-1];o&&o[0]===e[0]&&o[1]===e[1]||t.push(e)}function DU(t){var e=t.points,o=[],n=[];ys(e,o,n);var i=new ao(o[0],o[1],n[0]-o[0],n[1]-o[1]),r=i.width,a=i.height,s=i.x,l=i.y,u=new qe,c=new qe;return r>a?(u.x=c.x=s+r/2,u.y=l,c.y=l+a):(u.y=c.y=l+a/2,u.x=s,c.x=s+r),function(t,e,o){for(var n=t.length,i=[],r=0;r0;l/=2){var u=0,c=0;(t&l)>0&&(u=1),(e&l)>0&&(c=1),s+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function zU(t){var e=1/0,o=1/0,n=-1/0,i=-1/0,r=et(t,(function(t){var r=t.getBoundingRect(),a=t.getComputedTransform(),s=r.x+r.width/2+(a?a[4]:0),l=r.y+r.height/2+(a?a[5]:0);return e=Math.min(s,e),o=Math.min(l,o),n=Math.max(s,n),i=Math.max(l,i),[s,l]}));return et(r,(function(r,a){return{cp:r,z:WU(r[0],r[1],e,o,n,i),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function jU(t){return function(t,e){var o,n=[],i=t.shape;switch(t.type){case"rect":!function(t,e,o){for(var n=t.width,i=t.height,r=n>i,a=SU([n,i],r?0:1,e),s=r?"width":"height",l=r?"height":"width",u=r?"x":"y",c=r?"y":"x",p=t[s]/a.length,d=0;d=0;i--)if(!o[i].many.length){var l=o[s].many;if(l.length<=1){if(!s)return o;s=0}r=l.length;var u=Math.ceil(r/2);o[i].many=l.slice(u,r),o[s].many=l.slice(0,u),s++}return o}var YU={clone:function(t){for(var e=[],o=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n0){var s,l,u=n.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},a);UU(t)&&(s=t,l=e),UU(e)&&(s=e,l=t);for(var p=s?s===t:t.length>e.length,d=s?$U(l,s):$U(p?e:t,[p?t:e]),h=0,f=0;fqU))for(var n=o.getIndices(),i=function(t){for(var e=t.dimensions,o=0;o0&&n.group.traverse((function(t){t instanceof cl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},i)}))}))}function n$(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function i$(t){return lt(t)?t.sort().join(","):t}function r$(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function a$(t,e){for(var o=0;o=0&&i.push({dataGroupId:e.oldDataGroupIds[o],data:e.oldData[o],divide:r$(e.oldData[o]),dim:t.dimension})})),tt(oa(t.to),(function(t){var n=a$(o.updatedSeries,t);if(n>=0){var i=o.updatedSeries[n].getData();r.push({dataGroupId:e.oldDataGroupIds[n],data:i,divide:r$(i),dim:t.dimension})}})),i.length>0&&r.length>0&&o$(i,r,n)}(t,n,o,e)}));else{var r=function(t,e){var o=Lt(),n=Lt(),i=Lt();return tt(t.oldSeries,(function(e,o){var r=t.oldDataGroupIds[o],a=t.oldData[o],s=n$(e),l=i$(s);n.set(l,{dataGroupId:r,data:a}),lt(s)&&tt(s,(function(t){i.set(t,{key:l,dataGroupId:r,data:a})}))})),tt(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),r=t.getData(),a=n$(t),s=i$(a),l=n.get(s);if(l)o.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:r$(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:r$(r),data:r}]});else if(lt(a)){var u=[];tt(a,(function(t){var e=n.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:r$(e.data),data:e.data})})),u.length&&o.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:r,divide:r$(r)}]})}else{var c=i.get(a);if(c){var p=o.get(c.key);p||(p={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:r$(c.data)}],newSeries:[]},o.set(c.key,p)),p.newSeries.push({dataGroupId:e,data:r,divide:r$(r)})}}}})),o}(n,o);tt(r.keys(),(function(t){var o=r.get(t);o$(o.oldSeries,o.newSeries,e)}))}tt(o.updatedSeries,(function(t){t[Rf]&&(t[Rf]=!1)}))}for(var a=t.getSeries(),s=n.oldSeries=[],l=n.oldDataGroupIds=[],u=n.oldData=[],c=0;c{e.registerTheme(t.themeName,t.theme)}))}function d$(t){return null==t||""===t?null:t}function h$(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function f$(t){return!h$(t)}function g$(t){return null==t||0===t.length}function v$(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function y$(t){if(void 0!==t){if(null===t||""===t)return null;if("number"==typeof t)return isNaN(t)?void 0:t;var e=parseInt(t,10);return isNaN(e)?void 0:e}}function m$(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function C$(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.values(t)}p$();var w$=Object.freeze({__proto__:null,makeNull:d$,exists:h$,missing:f$,missingOrEmpty:g$,toStringOrNull:v$,attrToNumber:y$,attrToBoolean:m$,attrToString:function(t){if(null!=t&&""!==t)return t},referenceCompare:function(t,e){return null==t&&null==e||(null!=t||null==e)&&(null==t||null!=e)&&t===e},jsonEquals:function(t,e){return(t?JSON.stringify(t):null)===(e?JSON.stringify(e):null)},defaultComparator:function(t,e,o){void 0===o&&(o=!1);var n=null==t,i=null==e;if(t&&t.toNumber&&(t=t.toNumber()),e&&e.toNumber&&(e=e.toNumber()),n&&i)return 0;if(n)return-1;if(i)return 1;function r(t,e){return t>e?1:t=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},_$=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};function x$(t,e){var o,n;if(null!=t)if(Array.isArray(t))for(var i=0;i=0)){var i=o[t],r=N$(i)&&i.constructor===Object;n[t]=r?T$(i):i}})),n}}function D$(t,e){return t[e]}function R$(t,e,o){t[e]=o}function O$(t,e,o,n){var i=D$(t,o);void 0!==i&&R$(e,o,n?n(i):i)}function M$(t){var e={};return t.filter((function(t){return null!=t})).forEach((function(t){Object.keys(t).forEach((function(t){return e[t]=null}))})),Object.keys(e)}function A$(t){if(!t)return[];var e=Object;if("function"==typeof e.values)return e.values(t);var o=[];for(var n in t)t.hasOwnProperty(n)&&t.propertyIsEnumerable(n)&&o.push(t[n]);return o}function I$(t,e,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),h$(e)&&x$(e,(function(e,i){var r=t[e];r!==i&&(n&&null==r&&null!=i&&"object"==typeof i&&i.constructor===Object&&(r={},t[e]=r),N$(i)&&N$(r)&&!Array.isArray(r)?I$(r,i,o,n):(o||void 0!==i)&&(t[e]=i))}))}function P$(t,e,o){if(e&&t){if(!o)return t[e];for(var n=e.split("."),i=t,r=0;r1;)if(null==(i=i[n.shift()]))return o;var r=i[n[0]];return null!=r?r:o},set:function(t,e,o){if(null!=t){var n=e.split("."),i=t;n.forEach((function(t,e){i[t]||(i[t]={}),e0&&window.setTimeout((function(){return t.forEach((function(t){return t()}))}),e)}function $$(t,e){var o;return function(){for(var n=[],i=0;io;(t()||s)&&(e(),a=!0,null!=r&&(window.clearInterval(r),r=null),s&&n&&console.warn(n))};s(),a||(r=window.setInterval(s,10))}function X$(t){t&&t()}var q$,Z$=Object.freeze({__proto__:null,doOnce:G$,getFunctionName:V$,isFunction:H$,executeInAWhile:B$,executeNextVMTurn:j$,executeAfter:U$,debounce:$$,throttle:Y$,waitUntil:K$,compose:function(){for(var t=[],e=0;e0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},J$=function(t,e){for(var o=0,n=e.length,i=t.length;o<\/script>\n \nFor more info see: https://ag-grid.com/javascript-data-grid/getting-started/#getting-started-with-ag-grid-enterprise";else if(t.moduleBased||void 0===t.moduleBased){var s=null===(i=Object.entries(q$).find((function(t){var o=Q$(t,2);return o[0],o[1]===e})))||void 0===i?void 0:i[0];r="AG Grid: unable to use "+o+" as the "+s+" is not registered"+(t.areGridScopedModules?" for gridId: "+n:"")+". Check if you have registered the module:\n \n import { ModuleRegistry } from '@ag-grid-community/core';\n import { "+s+" } from '"+e+"';\n \n ModuleRegistry.registerModules([ "+s+" ]);\n\nFor more info see: https://www.ag-grid.com/javascript-grid/modules/"}else r="AG Grid: unable to use "+o+" as package 'ag-grid-enterprise' has not been imported. Check that you have imported the package:\n \n import 'ag-grid-enterprise';\n \nFor more info see: https://www.ag-grid.com/javascript-grid/packages/";return G$((function(){console.warn(r)}),a),!1},t.__isRegistered=function(e,o){var n;return!!t.globalModulesMap[e]||!!(null===(n=t.gridModulesMap[o])||void 0===n?void 0:n[e])},t.__getRegisteredModules=function(e){return J$(J$([],Q$(C$(t.globalModulesMap))),Q$(C$(t.gridModulesMap[e]||{})))},t.__getGridRegisteredModules=function(e){var o;return C$(null!==(o=t.gridModulesMap[e])&&void 0!==o?o:{})||[]},t.__isPackageBased=function(){return!t.moduleBased},t.globalModulesMap={},t.gridModulesMap={},t.areGridScopedModules=!1,t}(),eY=function(){function t(t,e){if(this.beanWrappers={},this.destroyed=!1,t&&t.beanClasses){this.contextParams=t,this.logger=e,this.logger.log(">> creating ag-Application Context"),this.createBeans();var o=this.getBeanInstances();this.wireBeans(o),this.logger.log(">> ag-Application Context ready - component is alive")}}return t.prototype.getBeanInstances=function(){return C$(this.beanWrappers).map((function(t){return t.beanInstance}))},t.prototype.createBean=function(t,e){if(!t)throw Error("Can't wire to bean since it is null");return this.wireBeans([t],e),t},t.prototype.wireBeans=function(t,e){this.autoWireBeans(t),this.methodWireBeans(t),this.callLifeCycleMethods(t,"preConstructMethods"),h$(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),x$(this.beanWrappers,(function(e,o){var n;o.bean.__agBeanMetaData&&o.bean.__agBeanMetaData.autowireMethods&&o.bean.__agBeanMetaData.autowireMethods.agConstructor&&(n=o.bean.__agBeanMetaData.autowireMethods.agConstructor);var i=t.getBeansForParameters(n,o.bean.name),r=new(o.bean.bind.apply(o.bean,function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(i))));o.beanInstance=r}));var e=Object.keys(this.beanWrappers).join(", ");this.logger.log("created beans: "+e)},t.prototype.createBeanWrapper=function(t){var e=t.__agBeanMetaData;if(!e){var o;return o=t.prototype.constructor?V$(t.prototype.constructor):""+t,void console.error("Context item "+o+" is not a bean")}var n={bean:t,beanInstance:null,beanName:e.beanName};this.beanWrappers[e.beanName]=n},t.prototype.autoWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,n){var i=o.agClassAttributes;i&&i.forEach((function(o){var i=e.lookupBeanInstance(n,o.beanName,o.optional);t[o.attributeName]=i}))}))}))},t.prototype.methodWireBeans=function(t){var e=this;t.forEach((function(t){e.forEachMetaDataInHierarchy(t,(function(o,n){x$(o.autowireMethods,(function(o,i){if("agConstructor"!==o){var r=e.getBeansForParameters(i,n);t[o].apply(t,r)}}))}))}))},t.prototype.forEachMetaDataInHierarchy=function(t,e){for(var o=Object.getPrototypeOf(t);null!=o;){var n=o.constructor;n.hasOwnProperty("__agBeanMetaData")&&e(n.__agBeanMetaData,this.getBeanName(n)),o=Object.getPrototypeOf(o)}},t.prototype.getBeanName=function(t){if(t.__agBeanMetaData&&t.__agBeanMetaData.beanName)return t.__agBeanMetaData.beanName;var e=t.toString();return e.substring(9,e.indexOf("("))},t.prototype.getBeansForParameters=function(t,e){var o=this,n=[];return t&&x$(t,(function(t,i){var r=o.lookupBeanInstance(e,i);n[Number(t)]=r})),n},t.prototype.lookupBeanInstance=function(t,e,o){if(void 0===o&&(o=!1),this.destroyed)return this.logger.log("AG Grid: bean reference "+e+" is used after the grid is destroyed!"),null;if("context"===e)return this;if(this.contextParams.providedBeanInstances&&this.contextParams.providedBeanInstances.hasOwnProperty(e))return this.contextParams.providedBeanInstances[e];var n=this.beanWrappers[e];return n?n.beanInstance:(o||console.error("AG Grid: unable to find bean reference "+e+" while initialising "+t),null)},t.prototype.callLifeCycleMethods=function(t,e){var o=this;t.forEach((function(t){return o.callLifeCycleMethodsOnBean(t,e)}))},t.prototype.callLifeCycleMethodsOnBean=function(t,e,o){var n={};this.forEachMetaDataInHierarchy(t,(function(t){var i=t[e];i&&i.forEach((function(t){t!=o&&(n[t]=!0)}))})),Object.keys(n).forEach((function(e){return t[e]()}))},t.prototype.getBean=function(t){return this.lookupBeanInstance("getBean",t,!0)},t.prototype.destroy=function(){if(!this.destroyed){this.destroyed=!0,this.logger.log(">> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,tY.__unRegisterGridModules(this.contextParams.gridId),this.logger.log(">> ag-Application Context shut down - component is dead")}},t.prototype.destroyBean=function(t){t&&this.destroyBeans([t])},t.prototype.destroyBeans=function(t){var e=this;return t?(t.forEach((function(t){e.callLifeCycleMethodsOnBean(t,"preDestroyMethods","destroy");var o=t;"function"==typeof o.destroy&&o.destroy()})),[]):[]},t.prototype.isDestroyed=function(){return this.destroyed},t.prototype.getGridId=function(){return this.contextParams.gridId},t}();function oY(t,e,o){var n=cY(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(e)}function nY(t,e,o){var n=cY(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(e)}function iY(t,e,o){var n=cY(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(e)}function rY(t){return function(e){cY(e).beanName=t}}function aY(t){return function(e,o,n){lY(e,t,!1,0,o,null)}}function sY(t){return function(e,o,n){lY(e,t,!0,0,o,null)}}function lY(t,e,o,n,i,r){if(null!==e)if("number"!=typeof r){var a=cY(t.constructor);a.agClassAttributes||(a.agClassAttributes=[]),a.agClassAttributes.push({attributeName:i,beanName:e,optional:o})}else console.error("AG Grid: Autowired should be on an attribute");else console.error("AG Grid: Autowired name should not be null")}function uY(t){return function(e,o,n){var i,r="function"==typeof e?e:e.constructor;if("number"==typeof n){var a=void 0;o?(i=cY(r),a=o):(i=cY(r),a="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[a]||(i.autowireMethods[a]={}),i.autowireMethods[a][n]=t}}}function cY(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}var pY=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},dY=function(t,e){return function(o,n){e(o,n,t)}},hY=function(){function t(){this.allSyncListeners=new Map,this.allAsyncListeners=new Map,this.globalSyncListeners=new Set,this.globalAsyncListeners=new Set,this.asyncFunctionsQueue=[],this.scheduled=!1,this.firedEvents={}}return t.prototype.setBeans=function(t,e,o,n,i){if(void 0===n&&(n=null),void 0===i&&(i=null),this.frameworkOverrides=o,this.gridOptionsService=e,n){var r=e.useAsyncEvents();this.addGlobalListener(n,r)}i&&this.addGlobalListener(i,!1)},t.prototype.getListeners=function(t,e,o){var n=e?this.allAsyncListeners:this.allSyncListeners,i=n.get(t);return!i&&o&&(i=new Set,n.set(t,i)),i},t.prototype.noRegisteredListenersExist=function(){return 0===this.allSyncListeners.size&&0===this.allAsyncListeners.size&&0===this.globalSyncListeners.size&&0===this.globalAsyncListeners.size},t.prototype.addEventListener=function(t,e,o){void 0===o&&(o=!1),this.getListeners(t,o,!0).add(e)},t.prototype.removeEventListener=function(t,e,o){void 0===o&&(o=!1);var n=this.getListeners(t,o,!1);n&&(n.delete(e),0===n.size&&(o?this.allAsyncListeners:this.allSyncListeners).delete(t))},t.prototype.addGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).add(t)},t.prototype.removeGlobalListener=function(t,e){void 0===e&&(e=!1),(e?this.globalAsyncListeners:this.globalSyncListeners).delete(t)},t.prototype.dispatchEvent=function(t){var e=t;if(this.gridOptionsService){var o=this.gridOptionsService,n=o.api,i=o.columnApi,r=o.context;e.api=n,e.columnApi=i,e.context=r}this.dispatchToListeners(e,!0),this.dispatchToListeners(e,!1),this.firedEvents[e.type]=!0},t.prototype.dispatchEventOnce=function(t){this.firedEvents[t.type]||this.dispatchEvent(t)},t.prototype.dispatchToListeners=function(t,e){var o=this,n=t.type;if(e&&"event"in t){var i=t.event;i instanceof Event&&(t.eventPath=i.composedPath())}var r=new Set(this.getListeners(n,e,!1));r.size>0&&function(n){n.forEach((function(n){e?o.dispatchAsync((function(){return n(t)})):n(t)}))}(r),new Set(e?this.globalAsyncListeners:this.globalSyncListeners).forEach((function(i){e?o.dispatchAsync((function(){return o.frameworkOverrides.dispatchEvent(n,(function(){return i(n,t)}),!0)})):o.frameworkOverrides.dispatchEvent(n,(function(){return i(n,t)}),!0)}))},t.prototype.dispatchAsync=function(t){this.asyncFunctionsQueue.push(t),this.scheduled||(window.setTimeout(this.flushAsyncQueue.bind(this),0),this.scheduled=!0)},t.prototype.flushAsyncQueue=function(){this.scheduled=!1;var t=this.asyncFunctionsQueue.slice();this.asyncFunctionsQueue=[],t.forEach((function(t){return t()}))},pY([dY(0,uY("loggerFactory")),dY(1,uY("gridOptionsService")),dY(2,uY("frameworkOverrides")),dY(3,uY("globalEventListener")),dY(4,uY("globalSyncEventListener"))],t.prototype,"setBeans",null),pY([rY("eventService")],t)}(),fY=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},gY=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},vY=function(t,e){for(var o=0,n=e.length,i=t.length;o=0&&!t,this.tooltipFieldContainsDots=h$(this.colDef.tooltipField)&&this.colDef.tooltipField.indexOf(".")>=0&&!t},t.prototype.initMinAndMaxWidths=function(){var t=this.colDef;this.minWidth=this.columnUtils.calculateColMinWidth(t),this.maxWidth=this.columnUtils.calculateColMaxWidth(t)},t.prototype.initTooltip=function(){this.tooltipEnabled=h$(this.colDef.tooltipField)||h$(this.colDef.tooltipValueGetter)||h$(this.colDef.tooltipComponent)},t.prototype.resetActualWidth=function(t){void 0===t&&(t="api");var e=this.columnUtils.calculateColInitialWidth(this.colDef);this.setActualWidth(e,t,!0)},t.prototype.isEmptyGroup=function(){return!1},t.prototype.isRowGroupDisplayed=function(t){if(f$(this.colDef)||f$(this.colDef.showRowGroup))return!1;var e=!0===this.colDef.showRowGroup,o=this.colDef.showRowGroup===t;return e||o},t.prototype.isPrimary=function(){return this.primary},t.prototype.isFilterAllowed=function(){return!!this.colDef.filter},t.prototype.isFieldContainsDots=function(){return this.fieldContainsDots},t.prototype.isTooltipEnabled=function(){return this.tooltipEnabled},t.prototype.isTooltipFieldContainsDots=function(){return this.tooltipFieldContainsDots},t.prototype.validate=function(){var t=this.colDef;function e(t,e,o){G$((function(){o?console.warn(t,o):G$((function(){return console.warn(t)}),e)}),e)}if(this.gridOptionsService.isRowModelType("clientSide")&&!tY.__isRegistered(q$.RowGroupingModule,this.gridOptionsService.getGridId())&&(o=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(e){return h$(t[e])}))).length>0&&tY.__assertRegistered(q$.RowGroupingModule,o.map((function(t){return"colDef."+t})).join(", "),this.gridOptionsService.getGridId()),"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||tY.__assertRegistered(q$.RichSelectModule,this.colDef.cellEditor,this.gridOptionsService.getGridId()),this.gridOptionsService.is("treeData")&&(o=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(e){return h$(t[e])}))).length>0&&e("AG Grid: "+o.join()+" is not possible when doing tree data, your column definition should not have "+o.join(),"TreeDataCannotRowGroup"),h$(t.menuTabs))if(Array.isArray(t.menuTabs)){var o,n=["filterMenuTab"],i=["columnsMenuTab","generalMenuTab"];(o=i.filter((function(e){return t.menuTabs.includes(e)}))).length>0&&tY.__assertRegistered(q$.MenuModule,"menuTab(s): "+o.map((function(t){return"'"+t+"'"})).join(),this.gridOptionsService.getGridId()),t.menuTabs.forEach((function(t){i.includes(t)||n.includes(t)||e("AG Grid: '"+t+"' is not valid for 'colDef.menuTabs'. Valid values are: "+vY(vY([],gY(n)),gY(i)).map((function(t){return"'"+t+"'"})).join()+".","wrongValue_menuTabs_"+t)}))}else e("AG Grid: The typeof 'colDef.menuTabs' should be an array not:"+typeof t.menuTabs,"wrongType_menuTabs");h$(t.columnsMenuParams)&&tY.__assertRegistered(q$.MenuModule,"columnsMenuParams",this.gridOptionsService.getGridId()),h$(t.columnsMenuParams)&&tY.__assertRegistered(q$.ColumnsToolPanelModule,"columnsMenuParams",this.gridOptionsService.getGridId()),h$(this.colDef.width)&&"number"!=typeof this.colDef.width&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),h$(t.columnGroupShow)&&"closed"!==t.columnGroupShow&&"open"!==t.columnGroupShow&&e("AG Grid: '"+t.columnGroupShow+"' is not valid for columnGroupShow. Valid values are 'open', 'closed', undefined, null","columnGroupShow_invalid")},t.prototype.addEventListener=function(t,e){this.eventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.eventService.removeEventListener(t,e)},t.prototype.createColumnFunctionCallbackParams=function(t){return{node:t,data:t.data,column:this,colDef:this.colDef,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi}},t.prototype.isSuppressNavigable=function(t){if("boolean"==typeof this.colDef.suppressNavigable)return this.colDef.suppressNavigable;if("function"==typeof this.colDef.suppressNavigable){var e=this.createColumnFunctionCallbackParams(t);return(0,this.colDef.suppressNavigable)(e)}return!1},t.prototype.isCellEditable=function(t){return!(t.group&&!this.gridOptionsService.is("enableGroupEdit"))&&this.isColumnFunc(t,this.colDef.editable)},t.prototype.isSuppressFillHandle=function(){return!!m$(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!m$(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!m$(this.colDef.autoHeaderHeight)},t.prototype.isRowDrag=function(t){return this.isColumnFunc(t,this.colDef.rowDrag)},t.prototype.isDndSource=function(t){return this.isColumnFunc(t,this.colDef.dndSource)},t.prototype.isCellCheckboxSelection=function(t){return this.isColumnFunc(t,this.colDef.checkboxSelection)},t.prototype.isSuppressPaste=function(t){return this.isColumnFunc(t,this.colDef?this.colDef.suppressPaste:null)},t.prototype.isResizable=function(){return!!m$(this.colDef.resizable)},t.prototype.isColumnFunc=function(t,e){return"boolean"==typeof e?e:"function"==typeof e&&e(this.createColumnFunctionCallbackParams(t))},t.prototype.setMoving=function(t,e){void 0===e&&(e="api"),this.moving=t,this.eventService.dispatchEvent(this.createColumnEvent("movingChanged",e))},t.prototype.createColumnEvent=function(t,e){return{type:t,column:this,columns:[this],source:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.isMoving=function(){return this.moving},t.prototype.getSort=function(){return this.sort},t.prototype.setSort=function(t,e){void 0===e&&(e="api"),this.sort!==t&&(this.sort=t,this.eventService.dispatchEvent(this.createColumnEvent("sortChanged",e))),this.dispatchStateUpdatedEvent("sort")},t.prototype.setMenuVisible=function(t,e){void 0===e&&(e="api"),this.menuVisible!==t&&(this.menuVisible=t,this.eventService.dispatchEvent(this.createColumnEvent("menuVisibleChanged",e)))},t.prototype.isMenuVisible=function(){return this.menuVisible},t.prototype.isSortAscending=function(){return"asc"===this.sort},t.prototype.isSortDescending=function(){return"desc"===this.sort},t.prototype.isSortNone=function(){return f$(this.sort)},t.prototype.isSorting=function(){return h$(this.sort)},t.prototype.getSortIndex=function(){return this.sortIndex},t.prototype.setSortIndex=function(t){this.sortIndex=t,this.dispatchStateUpdatedEvent("sortIndex")},t.prototype.setAggFunc=function(t){this.aggFunc=t,this.dispatchStateUpdatedEvent("aggFunc")},t.prototype.getAggFunc=function(){return this.aggFunc},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.getRight=function(){return this.left+this.actualWidth},t.prototype.setLeft=function(t,e){void 0===e&&(e="api"),this.oldLeft=this.left,this.left!==t&&(this.left=t,this.eventService.dispatchEvent(this.createColumnEvent("leftChanged",e)))},t.prototype.isFilterActive=function(){return this.filterActive},t.prototype.setFilterActive=function(t,e,o){void 0===e&&(e="api"),this.filterActive!==t&&(this.filterActive=t,this.eventService.dispatchEvent(this.createColumnEvent("filterActiveChanged",e)));var n=this.createColumnEvent("filterChanged",e);o&&I$(n,o),this.eventService.dispatchEvent(n)},t.prototype.isHovered=function(){return this.columnHoverService.isHovered(this)},t.prototype.setPinned=function(t){this.pinned=!0===t||"left"===t?"left":"right"===t?"right":null,this.dispatchStateUpdatedEvent("pinned")},t.prototype.setFirstRightPinned=function(t,e){void 0===e&&(e="api"),this.firstRightPinned!==t&&(this.firstRightPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("firstRightPinnedChanged",e)))},t.prototype.setLastLeftPinned=function(t,e){void 0===e&&(e="api"),this.lastLeftPinned!==t&&(this.lastLeftPinned=t,this.eventService.dispatchEvent(this.createColumnEvent("lastLeftPinnedChanged",e)))},t.prototype.isFirstRightPinned=function(){return this.firstRightPinned},t.prototype.isLastLeftPinned=function(){return this.lastLeftPinned},t.prototype.isPinned=function(){return"left"===this.pinned||"right"===this.pinned},t.prototype.isPinnedLeft=function(){return"left"===this.pinned},t.prototype.isPinnedRight=function(){return"right"===this.pinned},t.prototype.getPinned=function(){return this.pinned},t.prototype.setVisible=function(t,e){void 0===e&&(e="api");var o=!0===t;this.visible!==o&&(this.visible=o,this.eventService.dispatchEvent(this.createColumnEvent("visibleChanged",e))),this.dispatchStateUpdatedEvent("hide")},t.prototype.isVisible=function(){return this.visible},t.prototype.isSpanHeaderHeight=function(){var t=this.getColDef();return!t.suppressSpanHeaderHeight&&!t.autoHeaderHeight},t.prototype.getColDef=function(){return this.colDef},t.prototype.getColumnGroupShow=function(){return this.colDef.columnGroupShow},t.prototype.getColId=function(){return this.colId},t.prototype.getId=function(){return this.colId},t.prototype.getUniqueId=function(){return this.colId},t.prototype.getDefinition=function(){return this.colDef},t.prototype.getActualWidth=function(){return this.actualWidth},t.prototype.getAutoHeaderHeight=function(){return this.autoHeaderHeight},t.prototype.setAutoHeaderHeight=function(t){var e=t!==this.autoHeaderHeight;return this.autoHeaderHeight=t,e},t.prototype.createBaseColDefParams=function(t){return{node:t,data:t.data,colDef:this.colDef,column:this,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}},t.prototype.getColSpan=function(t){if(f$(this.colDef.colSpan))return 1;var e=this.createBaseColDefParams(t),o=this.colDef.colSpan(e);return Math.max(o,1)},t.prototype.getRowSpan=function(t){if(f$(this.colDef.rowSpan))return 1;var e=this.createBaseColDefParams(t),o=this.colDef.rowSpan(e);return Math.max(o,1)},t.prototype.setActualWidth=function(t,e,o){void 0===e&&(e="api"),void 0===o&&(o=!1),null!=this.minWidth&&(t=Math.max(t,this.minWidth)),null!=this.maxWidth&&(t=Math.min(t,this.maxWidth)),this.actualWidth!==t&&(this.actualWidth=t,this.flex&&"flex"!==e&&"gridInitializing"!==e&&(this.flex=null),o||this.fireColumnWidthChangedEvent(e)),this.dispatchStateUpdatedEvent("width")},t.prototype.fireColumnWidthChangedEvent=function(t){this.eventService.dispatchEvent(this.createColumnEvent("widthChanged",t))},t.prototype.isGreaterThanMax=function(t){return null!=this.maxWidth&&t>this.maxWidth},t.prototype.getMinWidth=function(){return this.minWidth},t.prototype.getMaxWidth=function(){return this.maxWidth},t.prototype.getFlex=function(){return this.flex||0},t.prototype.setFlex=function(t){this.flex!==t&&(this.flex=t),this.dispatchStateUpdatedEvent("flex")},t.prototype.setMinimum=function(t){void 0===t&&(t="api"),h$(this.minWidth)&&this.setActualWidth(this.minWidth,t)},t.prototype.setRowGroupActive=function(t,e){void 0===e&&(e="api"),this.rowGroupActive!==t&&(this.rowGroupActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnRowGroupChanged",e))),this.dispatchStateUpdatedEvent("rowGroup")},t.prototype.isRowGroupActive=function(){return this.rowGroupActive},t.prototype.setPivotActive=function(t,e){void 0===e&&(e="api"),this.pivotActive!==t&&(this.pivotActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnPivotChanged",e))),this.dispatchStateUpdatedEvent("pivot")},t.prototype.isPivotActive=function(){return this.pivotActive},t.prototype.isAnyFunctionActive=function(){return this.isPivotActive()||this.isRowGroupActive()||this.isValueActive()},t.prototype.isAnyFunctionAllowed=function(){return this.isAllowPivot()||this.isAllowRowGroup()||this.isAllowValue()},t.prototype.setValueActive=function(t,e){void 0===e&&(e="api"),this.aggregationActive!==t&&(this.aggregationActive=t,this.eventService.dispatchEvent(this.createColumnEvent("columnValueChanged",e)))},t.prototype.isValueActive=function(){return this.aggregationActive},t.prototype.isAllowPivot=function(){return!0===this.colDef.enablePivot},t.prototype.isAllowValue=function(){return!0===this.colDef.enableValue},t.prototype.isAllowRowGroup=function(){return!0===this.colDef.enableRowGroup},t.prototype.getMenuTabs=function(t){var e=this.getColDef().menuTabs;return null==e&&(e=t),e},t.prototype.dispatchStateUpdatedEvent=function(e){this.eventService.dispatchEvent({type:t.EVENT_STATE_UPDATED,key:e})},t.EVENT_MOVING_CHANGED="movingChanged",t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_WIDTH_CHANGED="widthChanged",t.EVENT_LAST_LEFT_PINNED_CHANGED="lastLeftPinnedChanged",t.EVENT_FIRST_RIGHT_PINNED_CHANGED="firstRightPinnedChanged",t.EVENT_VISIBLE_CHANGED="visibleChanged",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_ACTIVE_CHANGED="filterActiveChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_COL_DEF_CHANGED="colDefChanged",t.EVENT_MENU_VISIBLE_CHANGED="menuVisibleChanged",t.EVENT_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_PIVOT_CHANGED="columnPivotChanged",t.EVENT_VALUE_CHANGED="columnValueChanged",t.EVENT_STATE_UPDATED="columnStateUpdated",fY([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),fY([aY("columnUtils")],t.prototype,"columnUtils",void 0),fY([aY("columnHoverService")],t.prototype,"columnHoverService",void 0),fY([nY],t.prototype,"initialise",null),t}(),wY=function(){function t(t,e,o,n){this.localEventService=new hY,this.expandable=!1,this.instanceId=mY(),this.expandableListenerRemoveCallback=null,this.colGroupDef=t,this.groupId=e,this.expanded=!!t&&!!t.openByDefault,this.padding=o,this.level=n}return t.prototype.destroy=function(){this.expandableListenerRemoveCallback&&this.reset(null,void 0)},t.prototype.reset=function(t,e){this.colGroupDef=t,this.level=e,this.originalParent=null,this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback(),this.children=void 0,this.expandable=void 0},t.prototype.getInstanceId=function(){return this.instanceId},t.prototype.setOriginalParent=function(t){this.originalParent=t},t.prototype.getOriginalParent=function(){return this.originalParent},t.prototype.getLevel=function(){return this.level},t.prototype.isVisible=function(){return!!this.children&&this.children.some((function(t){return t.isVisible()}))},t.prototype.isPadding=function(){return this.padding},t.prototype.setExpanded=function(e){this.expanded=void 0!==e&&e;var o={type:t.EVENT_EXPANDED_CHANGED};this.localEventService.dispatchEvent(o)},t.prototype.isExpandable=function(){return this.expandable},t.prototype.isExpanded=function(){return this.expanded},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getId=function(){return this.getGroupId()},t.prototype.setChildren=function(t){this.children=t},t.prototype.getChildren=function(){return this.children},t.prototype.getColGroupDef=function(){return this.colGroupDef},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.addLeafColumns=function(e){this.children&&this.children.forEach((function(o){o instanceof CY?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getColumnGroupShow=function(){var t=this.colGroupDef;if(t)return t.columnGroupShow},t.prototype.setupExpandable=function(){var t=this;this.setExpandable(),this.expandableListenerRemoveCallback&&this.expandableListenerRemoveCallback();var e=this.onColumnVisibilityChanged.bind(this);this.getLeafColumns().forEach((function(t){return t.addEventListener("visibleChanged",e)})),this.expandableListenerRemoveCallback=function(){t.getLeafColumns().forEach((function(t){return t.removeEventListener("visibleChanged",e)})),t.expandableListenerRemoveCallback=null}},t.prototype.setExpandable=function(){if(!this.isPadding()){for(var e=!1,o=!1,n=!1,i=this.findChildrenRemovingPadding(),r=0,a=i.length;r=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([iY],t.prototype,"destroy",null),t}(),SY={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function bY(){for(var t=[],e=0;e=0&&(t[o]=t[t.length-1],t.pop())}function DY(t,e){var o=t.indexOf(e);o>=0&&t.splice(o,1)}function RY(t,e){for(var o=0;o-1}function PY(t){return[].concat.apply([],t)}function LY(t,e){null!=e&&null!=t&&e.forEach((function(e){return t.push(e)}))}var NY=Object.freeze({__proto__:null,firstExistingValue:bY,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:_Y,areEqual:xY,shallowCompare:function(t,e){return xY(t,e)},sortNumerically:EY,removeRepeatsFromArray:function(t,e){if(t)for(var o=t.length-2;o>=0;o--){var n=t[o]===e,i=t[o+1]===e;n&&i&&t.splice(o+1,1)}},removeFromUnorderedArray:TY,removeFromArray:DY,removeAllFromUnorderedArray:RY,removeAllFromArray:OY,insertIntoArray:MY,insertArrayIntoArray:function(t,e,o){if(null!=t&&null!=e)for(var n=e.length-1;n>=0;n--)MY(t,e[n],o)},moveInArray:AY,includes:IY,flatten:PY,pushAll:LY,toStrings:function(t){return t.map(v$)},forEachReverse:function(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)}}),FY="__ag_Grid_Stop_Propagation",kY=["touchstart","touchend","touchmove","touchcancel","scroll"],GY={};function VY(t){t[FY]=!0}function HY(t){return!0===t[FY]}var BY,WY=(BY={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof GY[t])return GY[t];var e=document.createElement(BY[t]||"div");return GY[t="on"+t]=t in e});function zY(t,e,o){for(var n=e;n;){var i=t.getDomData(n,o);if(i)return i;n=n.parentElement}return null}function jY(t,e){return!(!e||!t)&&$Y(e).indexOf(t)>=0}function UY(t){for(var e=[],o=t.target;o;)e.push(o),o=o.parentElement;return e}function $Y(t){var e=t;return e.path?e.path:e.composedPath?e.composedPath():UY(e)}function YY(t,e,o,n){var i=IY(kY,o)?{passive:!0}:void 0;t&&t.addEventListener&&t.addEventListener(e,o,n,i)}var KY=Object.freeze({__proto__:null,stopPropagationForAgGrid:VY,isStopPropagationForAgGrid:HY,isEventSupported:WY,getCtrlForEventTarget:zY,isElementInEventPath:jY,createEventPath:UY,getEventPath:$Y,addSafePassiveEventListener:YY}),XY=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},qY=function(){function t(){var t=this;this.destroyFunctions=[],this.destroyed=!1,this.__v_skip=!0,this.lastChangeSetIdLookup={},this.propertyListenerId=0,this.isAlive=function(){return!t.destroyed}}return t.prototype.getFrameworkOverrides=function(){return this.frameworkOverrides},t.prototype.getContext=function(){return this.context},t.prototype.destroy=function(){this.destroyFunctions.forEach((function(t){return t()})),this.destroyFunctions.length=0,this.destroyed=!0,this.dispatchEvent({type:t.EVENT_DESTROYED})},t.prototype.addEventListener=function(t,e){this.localEventService||(this.localEventService=new hY),this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService&&this.localEventService.removeEventListener(t,e)},t.prototype.dispatchEventAsync=function(t){var e=this;window.setTimeout((function(){return e.dispatchEvent(t)}),0)},t.prototype.dispatchEvent=function(t){this.localEventService&&this.localEventService.dispatchEvent(t)},t.prototype.addManagedListener=function(t,e,o){var n=this;if(!this.destroyed){t instanceof HTMLElement?YY(this.getFrameworkOverrides(),t,e,o):t.addEventListener(e,o);var i=function(){return t.removeEventListener(e,o),n.destroyFunctions=n.destroyFunctions.filter((function(t){return t!==i})),null};return this.destroyFunctions.push(i),i}},t.prototype.setupGridOptionListener=function(t,e){var o=this;this.gridOptionsService.addEventListener(t,e);var n=function(){return o.gridOptionsService.removeEventListener(t,e),o.destroyFunctions=o.destroyFunctions.filter((function(t){return t!==n})),null};this.destroyFunctions.push(n)},t.prototype.addManagedPropertyListener=function(t,e){this.destroyed||this.setupGridOptionListener(t,e)},t.prototype.addManagedPropertyListeners=function(t,e){var o=this;if(!this.destroyed){var n=t.join("-")+this.propertyListenerId++,i=function(t){if(t.changeSet){if(t.changeSet&&t.changeSet.id===o.lastChangeSetIdLookup[n])return;o.lastChangeSetIdLookup[n]=t.changeSet.id}var i={type:"gridPropertyChanged",changeSet:t.changeSet};e(i)};t.forEach((function(t){return o.setupGridOptionListener(t,i)}))}},t.prototype.addDestroyFunc=function(t){this.isAlive()?this.destroyFunctions.push(t):t()},t.prototype.createManagedBean=function(t,e){var o=this.createBean(t,e);return this.addDestroyFunc(this.destroyBean.bind(this,t,e)),o},t.prototype.createBean=function(t,e,o){return(e||this.getContext()).createBean(t,o)},t.prototype.destroyBean=function(t,e){return(e||this.getContext()).destroyBean(t)},t.prototype.destroyBeans=function(t,e){var o=this;return t&&t.forEach((function(t){return o.destroyBean(t,e)})),[]},t.EVENT_DESTROYED="destroyed",XY([aY("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),XY([aY("context")],t.prototype,"context",void 0),XY([aY("eventService")],t.prototype,"eventService",void 0),XY([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),XY([aY("localeService")],t.prototype,"localeService",void 0),XY([aY("environment")],t.prototype,"environment",void 0),XY([iY],t.prototype,"destroy",null),t}(),ZY=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),QY=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},JY=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return ZY(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new S$,i=this.extractExistingTreeData(o),r=i.existingCols,a=i.existingGroups,s=i.existingColKeys;n.addExistingKeys(s);var l=this.recursivelyCreateColumns(t,0,e,r,n,a),u=this.findMaxDept(l,0);this.logger.log("Number of levels for grouped columns is "+u);var c=this.balanceColumnTree(l,0,u,n);return this.columnUtils.depthFirstOriginalTreeSearch(null,c,(function(t,e){t instanceof wY&&t.setupExpandable(),t.setOriginalParent(e)})),{columnTree:c,treeDept:u}},e.prototype.extractExistingTreeData=function(t){var e=[],o=[],n=[];return t&&this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){if(t instanceof wY){var i=t;o.push(i)}else{var r=t;n.push(r.getId()),e.push(r)}})),{existingCols:e,existingGroups:o,existingColKeys:n}},e.prototype.createForAutoGroups=function(t,e){var o=this;return t.map((function(t){return o.createAutoGroupTreeItem(e,t)}))},e.prototype.createAutoGroupTreeItem=function(t,e){for(var o=this.findDepth(t),n=e,i=o-1;i>=0;i--){var r=new wY(null,"FAKE_PATH_"+e.getId()+"}_"+i,!0,i);this.createBean(r),r.setChildren([n]),n.setOriginalParent(r),n=r}return 0===o&&e.setOriginalParent(null),n},e.prototype.findDepth=function(t){for(var e=0,o=t;o&&o[0]&&o[0]instanceof wY;)e++,o=o[0].getChildren();return e},e.prototype.balanceColumnTree=function(t,e,o,n){for(var i=[],r=0;r=e;p--){var d=n.getUniqueKey(null,null),h=this.createMergedColGroupDef(null),f=new wY(h,d,!0,e);this.createBean(f),c&&c.setChildren([f]),c=f,u||(u=c)}if(u&&c){if(i.push(u),t.some((function(t){return t instanceof wY}))){c.setChildren([a]);continue}c.setChildren(t);break}i.push(a)}}return i},e.prototype.findMaxDept=function(t,e){for(var o=e,n=0;n0)if(this.gridOptionsService.is("enableRtl")){var e=_Y(this.displayedChildren).getLeft();this.setLeft(e)}else{var o=this.displayedChildren[0].getLeft();this.setLeft(o)}else this.setLeft(null)},t.prototype.getLeft=function(){return this.left},t.prototype.getOldLeft=function(){return this.oldLeft},t.prototype.setLeft=function(e){this.oldLeft=e,this.left!==e&&(this.left=e,this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_LEFT_CHANGED)))},t.prototype.getPinned=function(){return this.pinned},t.prototype.createAgEvent=function(t){return{type:t}},t.prototype.addEventListener=function(t,e){this.localEventService.addEventListener(t,e)},t.prototype.removeEventListener=function(t,e){this.localEventService.removeEventListener(t,e)},t.prototype.getGroupId=function(){return this.groupId},t.prototype.getPartId=function(){return this.partId},t.prototype.isChildInThisGroupDeepSearch=function(e){var o=!1;return this.children.forEach((function(n){e===n&&(o=!0),n instanceof t&&n.isChildInThisGroupDeepSearch(e)&&(o=!0)})),o},t.prototype.getActualWidth=function(){var t=0;return this.displayedChildren&&this.displayedChildren.forEach((function(e){t+=e.getActualWidth()})),t},t.prototype.isResizable=function(){if(!this.displayedChildren)return!1;var t=!1;return this.displayedChildren.forEach((function(e){e.isResizable()&&(t=!0)})),t},t.prototype.getMinWidth=function(){var t=0;return this.displayedChildren.forEach((function(e){t+=e.getMinWidth()||0})),t},t.prototype.addChild=function(t){this.children||(this.children=[]),this.children.push(t)},t.prototype.getDisplayedChildren=function(){return this.displayedChildren},t.prototype.getLeafColumns=function(){var t=[];return this.addLeafColumns(t),t},t.prototype.getDisplayedLeafColumns=function(){var t=[];return this.addDisplayedLeafColumns(t),t},t.prototype.getDefinition=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.getColGroupDef=function(){return this.providedColumnGroup.getColGroupDef()},t.prototype.isPadding=function(){return this.providedColumnGroup.isPadding()},t.prototype.isExpandable=function(){return this.providedColumnGroup.isExpandable()},t.prototype.isExpanded=function(){return this.providedColumnGroup.isExpanded()},t.prototype.setExpanded=function(t){this.providedColumnGroup.setExpanded(t)},t.prototype.addDisplayedLeafColumns=function(e){this.displayedChildren.forEach((function(o){o instanceof CY?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof CY?e.push(o):o instanceof t&&o.addLeafColumns(e)}))},t.prototype.getChildren=function(){return this.children},t.prototype.getColumnGroupShow=function(){return this.providedColumnGroup.getColumnGroupShow()},t.prototype.getProvidedColumnGroup=function(){return this.providedColumnGroup},t.prototype.getPaddingLevel=function(){var t=this.getParent();return this.isPadding()&&t&&t.isPadding()?1+t.getPaddingLevel():0},t.prototype.calculateDisplayedColumns=function(){var e=this;this.displayedChildren=[];for(var o=this;null!=o&&o.isPadding();)o=o.getParent();if(!o||!o.providedColumnGroup.isExpandable())return this.displayedChildren=this.children,void this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED));this.children.forEach((function(n){if(!(n instanceof t)||n.displayedChildren&&n.displayedChildren.length)switch(n.getColumnGroupShow()){case"open":o.providedColumnGroup.isExpanded()&&e.displayedChildren.push(n);break;case"closed":o.providedColumnGroup.isExpanded()||e.displayedChildren.push(n);break;default:e.displayedChildren.push(n)}})),this.localEventService.dispatchEvent(this.createAgEvent(t.EVENT_DISPLAYED_CHILDREN_CHANGED))},t.EVENT_LEFT_CHANGED="leftChanged",t.EVENT_DISPLAYED_CHILDREN_CHANGED="displayedChildrenChanged",function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),eK=function(){function t(){}return t.EVENT_COLUMN_EVERYTHING_CHANGED="columnEverythingChanged",t.EVENT_NEW_COLUMNS_LOADED="newColumnsLoaded",t.EVENT_COLUMN_PIVOT_MODE_CHANGED="columnPivotModeChanged",t.EVENT_COLUMN_ROW_GROUP_CHANGED="columnRowGroupChanged",t.EVENT_EXPAND_COLLAPSE_ALL="expandOrCollapseAll",t.EVENT_COLUMN_PIVOT_CHANGED="columnPivotChanged",t.EVENT_GRID_COLUMNS_CHANGED="gridColumnsChanged",t.EVENT_COLUMN_VALUE_CHANGED="columnValueChanged",t.EVENT_COLUMN_MOVED="columnMoved",t.EVENT_COLUMN_VISIBLE="columnVisible",t.EVENT_COLUMN_PINNED="columnPinned",t.EVENT_COLUMN_GROUP_OPENED="columnGroupOpened",t.EVENT_COLUMN_RESIZED="columnResized",t.EVENT_DISPLAYED_COLUMNS_CHANGED="displayedColumnsChanged",t.EVENT_VIRTUAL_COLUMNS_CHANGED="virtualColumnsChanged",t.EVENT_ASYNC_TRANSACTIONS_FLUSHED="asyncTransactionsFlushed",t.EVENT_ROW_GROUP_OPENED="rowGroupOpened",t.EVENT_ROW_DATA_CHANGED="rowDataChanged",t.EVENT_ROW_DATA_UPDATED="rowDataUpdated",t.EVENT_PINNED_ROW_DATA_CHANGED="pinnedRowDataChanged",t.EVENT_RANGE_SELECTION_CHANGED="rangeSelectionChanged",t.EVENT_CHART_CREATED="chartCreated",t.EVENT_CHART_RANGE_SELECTION_CHANGED="chartRangeSelectionChanged",t.EVENT_CHART_OPTIONS_CHANGED="chartOptionsChanged",t.EVENT_CHART_DESTROYED="chartDestroyed",t.EVENT_TOOL_PANEL_VISIBLE_CHANGED="toolPanelVisibleChanged",t.EVENT_TOOL_PANEL_SIZE_CHANGED="toolPanelSizeChanged",t.EVENT_COLUMN_PANEL_ITEM_DRAG_START="columnPanelItemDragStart",t.EVENT_COLUMN_PANEL_ITEM_DRAG_END="columnPanelItemDragEnd",t.EVENT_MODEL_UPDATED="modelUpdated",t.EVENT_CUT_START="cutStart",t.EVENT_CUT_END="cutEnd",t.EVENT_PASTE_START="pasteStart",t.EVENT_PASTE_END="pasteEnd",t.EVENT_FILL_START="fillStart",t.EVENT_FILL_END="fillEnd",t.EVENT_RANGE_DELETE_START="rangeDeleteStart",t.EVENT_RANGE_DELETE_END="rangeDeleteEnd",t.EVENT_UNDO_STARTED="undoStarted",t.EVENT_UNDO_ENDED="undoEnded",t.EVENT_REDO_STARTED="redoStarted",t.EVENT_REDO_ENDED="redoEnded",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_START="keyShortcutChangedCellStart",t.EVENT_KEY_SHORTCUT_CHANGED_CELL_END="keyShortcutChangedCellEnd",t.EVENT_CELL_CLICKED="cellClicked",t.EVENT_CELL_DOUBLE_CLICKED="cellDoubleClicked",t.EVENT_CELL_MOUSE_DOWN="cellMouseDown",t.EVENT_CELL_CONTEXT_MENU="cellContextMenu",t.EVENT_CELL_VALUE_CHANGED="cellValueChanged",t.EVENT_CELL_EDIT_REQUEST="cellEditRequest",t.EVENT_ROW_VALUE_CHANGED="rowValueChanged",t.EVENT_CELL_FOCUSED="cellFocused",t.EVENT_CELL_FOCUS_CLEARED="cellFocusCleared",t.EVENT_FULL_WIDTH_ROW_FOCUSED="fullWidthRowFocused",t.EVENT_ROW_SELECTED="rowSelected",t.EVENT_SELECTION_CHANGED="selectionChanged",t.EVENT_TOOLTIP_SHOW="tooltipShow",t.EVENT_TOOLTIP_HIDE="tooltipHide",t.EVENT_CELL_KEY_DOWN="cellKeyDown",t.EVENT_CELL_MOUSE_OVER="cellMouseOver",t.EVENT_CELL_MOUSE_OUT="cellMouseOut",t.EVENT_FILTER_CHANGED="filterChanged",t.EVENT_FILTER_MODIFIED="filterModified",t.EVENT_FILTER_OPENED="filterOpened",t.EVENT_ADVANCED_FILTER_BUILDER_VISIBLE_CHANGED="advancedFilterBuilderVisibleChanged",t.EVENT_SORT_CHANGED="sortChanged",t.EVENT_VIRTUAL_ROW_REMOVED="virtualRowRemoved",t.EVENT_ROW_CLICKED="rowClicked",t.EVENT_ROW_DOUBLE_CLICKED="rowDoubleClicked",t.EVENT_GRID_READY="gridReady",t.EVENT_GRID_PRE_DESTROYED="gridPreDestroyed",t.EVENT_GRID_SIZE_CHANGED="gridSizeChanged",t.EVENT_VIEWPORT_CHANGED="viewportChanged",t.EVENT_SCROLLBAR_WIDTH_CHANGED="scrollbarWidthChanged",t.EVENT_FIRST_DATA_RENDERED="firstDataRendered",t.EVENT_DRAG_STARTED="dragStarted",t.EVENT_DRAG_STOPPED="dragStopped",t.EVENT_CHECKBOX_CHANGED="checkboxChanged",t.EVENT_ROW_EDITING_STARTED="rowEditingStarted",t.EVENT_ROW_EDITING_STOPPED="rowEditingStopped",t.EVENT_CELL_EDITING_STARTED="cellEditingStarted",t.EVENT_CELL_EDITING_STOPPED="cellEditingStopped",t.EVENT_BODY_SCROLL="bodyScroll",t.EVENT_BODY_SCROLL_END="bodyScrollEnd",t.EVENT_HEIGHT_SCALE_CHANGED="heightScaleChanged",t.EVENT_PAGINATION_CHANGED="paginationChanged",t.EVENT_COMPONENT_STATE_CHANGED="componentStateChanged",t.EVENT_STORE_REFRESHED="storeRefreshed",t.EVENT_BODY_HEIGHT_CHANGED="bodyHeightChanged",t.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED="displayedColumnsWidthChanged",t.EVENT_SCROLL_VISIBILITY_CHANGED="scrollVisibilityChanged",t.EVENT_COLUMN_HOVER_CHANGED="columnHoverChanged",t.EVENT_FLASH_CELLS="flashCells",t.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED="paginationPixelOffsetChanged",t.EVENT_DISPLAYED_ROWS_CHANGED="displayedRowsChanged",t.EVENT_LEFT_PINNED_WIDTH_CHANGED="leftPinnedWidthChanged",t.EVENT_RIGHT_PINNED_WIDTH_CHANGED="rightPinnedWidthChanged",t.EVENT_ROW_CONTAINER_HEIGHT_CHANGED="rowContainerHeightChanged",t.EVENT_HEADER_HEIGHT_CHANGED="headerHeightChanged",t.EVENT_COLUMN_HEADER_HEIGHT_CHANGED="columnHeaderHeightChanged",t.EVENT_ROW_DRAG_ENTER="rowDragEnter",t.EVENT_ROW_DRAG_MOVE="rowDragMove",t.EVENT_ROW_DRAG_LEAVE="rowDragLeave",t.EVENT_ROW_DRAG_END="rowDragEnd",t.EVENT_GRID_STYLES_CHANGED="gridStylesChanged",t.EVENT_POPUP_TO_FRONT="popupToFront",t.EVENT_COLUMN_ROW_GROUP_CHANGE_REQUEST="columnRowGroupChangeRequest",t.EVENT_COLUMN_PIVOT_CHANGE_REQUEST="columnPivotChangeRequest",t.EVENT_COLUMN_VALUE_CHANGE_REQUEST="columnValueChangeRequest",t.EVENT_COLUMN_AGG_FUNC_CHANGE_REQUEST="columnAggFuncChangeRequest",t.EVENT_KEYBOARD_FOCUS="keyboardFocus",t.EVENT_MOUSE_FOCUS="mouseFocus",t.EVENT_STORE_UPDATED="storeUpdated",t.EVENT_FILTER_DESTROYED="filterDestroyed",t.EVENT_ROW_DATA_UPDATE_STARTED="rowDataUpdateStarted",t.EVENT_ADVANCED_FILTER_ENABLED_CHANGED="advancedFilterEnabledChanged",t.EVENT_DATA_TYPES_INFERRED="dataTypesInferred",t.EVENT_FIELD_VALUE_CHANGED="fieldValueChanged",t.EVENT_FIELD_PICKER_VALUE_SELECTED="fieldPickerValueSelected",t}(),oK=function(){function t(){this.existingIds={}}return t.prototype.getInstanceIdForKey=function(t){var e,o=this.existingIds[t];return e="number"!=typeof o?0:o+1,this.existingIds[t]=e,e},t}(),nK=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),iK=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},rK="ag-Grid-AutoColumn",aK=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return nK(e,t),e.prototype.createAutoGroupColumns=function(t){var e=this,o=[],n=this.gridOptionsService.is("treeData"),i=this.gridOptionsService.isGroupMultiAutoColumn();return n&&i&&(console.warn('AG Grid: you cannot mix groupDisplayType = "multipleColumns" with treeData, only one column can be used to display groups when doing tree data'),i=!1),i?t.forEach((function(t,n){o.push(e.createOneAutoGroupColumn(t,n))})):o.push(this.createOneAutoGroupColumn()),o},e.prototype.updateAutoGroupColumns=function(t){var e=this;t.forEach((function(t,o){return e.updateOneAutoGroupColumn(t,o)}))},e.prototype.createOneAutoGroupColumn=function(t,e){var o;o=t?rK+"-"+t.getId():rK;var n=this.createAutoGroupColDef(o,t,e);n.colId=o;var i=new CY(n,null,o,!0);return this.context.createBean(i),i},e.prototype.updateOneAutoGroupColumn=function(t,e){var o=t.getColDef(),n="string"==typeof o.showRowGroup?o.showRowGroup:void 0,i=null!=n?this.columnModel.getPrimaryColumn(n):void 0,r=this.createAutoGroupColDef(t.getId(),null!=i?i:void 0,e);t.setColDef(r,null),this.columnFactory.applyColumnState(t,r)},e.prototype.createAutoGroupColDef=function(t,e,o){var n=this.createBaseColDef(e);I$(n,this.gridOptionsService.get("autoGroupColumnDef")),n=this.columnFactory.addColumnDefaultAndTypes(n,t),this.gridOptionsService.is("treeData")||f$(n.field)&&f$(n.valueGetter)&&f$(n.filterValueGetter)&&"agGroupColumnFilter"!==n.filter&&(n.filter=!1),o&&o>0&&(n.headerCheckboxSelection=!1);var i=this.gridOptionsService.isColumnsSortingCoupledToGroup(),r=n.valueGetter||null!=n.field;return i&&!r&&(n.sortIndex=void 0,n.initialSort=void 0),n},e.prototype.createBaseColDef=function(t){var e=this.gridOptionsService.get("autoGroupColumnDef"),o={headerName:this.localeService.getLocaleTextFunc()("group","Group")};if(e&&(e.cellRenderer||e.cellRendererSelector)||(o.cellRenderer="agGroupCellRenderer"),t){var n=t.getColDef();Object.assign(o,{headerName:this.columnModel.getDisplayNameForColumn(t,"header"),headerValueGetter:n.headerValueGetter}),n.cellRenderer&&Object.assign(o,{cellRendererParams:{innerRenderer:n.cellRenderer,innerRendererParams:n.cellRendererParams}}),o.showRowGroup=t.getColId()}else o.showRowGroup=!0;return o},iK([aY("columnModel")],e.prototype,"columnModel",void 0),iK([aY("columnFactory")],e.prototype,"columnFactory",void 0),iK([rY("autoGroupColService")],e)}(qY),sK=/[&<>"']/g,lK={"&":"&","<":"<",">":">",'"':""","'":"'"};function uK(t,e){if(null==t)return null;var o=t.toString().toString();return e?o:o.replace(sK,(function(t){return lK[t]}))}function cK(t){return t&&null!=t?t.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/([A-Z]+)([A-Z])([a-z])/g,"$1 $2$3").replace(/\./g," ").split(" ").map((function(t){return t.substring(0,1).toUpperCase()+(t.length>1?t.substring(1,t.length):"")})).join(" "):null}function pK(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLocaleLowerCase()}))}var dK=Object.freeze({__proto__:null,utf8_encode:function(t){var e=String.fromCharCode;function o(t,o){return e(t>>o&63|128)}function n(t){if(t>=0&&t<=31&&10!==t)return"_x"+t.toString(16).toUpperCase().padStart(4,"0")+"_";if(0==(4294967168&t))return e(t);var n="";return 0==(4294965248&t)?n=e(t>>6&31|192):0==(4294901760&t)?(function(t){if(t>=55296&&t<=57343)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}(t),n=e(t>>12&15|224),n+=o(t,6)):0==(4292870144&t)&&(n=e(t>>18&7|240),n+=o(t,12),n+=o(t,6)),n+e(63&t|128)}for(var i=function(t){var e=[];if(!t)return[];for(var o,n,i=t.length,r=0;r=55296&&o<=56319&&r0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},yK=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},SK=function(t,e){for(var o=0,n=e.length,i=t.length;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function xK(t,e,o){var n={},i=t.filter((function(t){return!e.some((function(e){return e===t}))}));return i.length>0&&i.forEach((function(t){return n[t]=EK(t,o).values})),n}function EK(t,e,o,n){var i,r,a=e.map((function(e,o){return{value:e,relevance:TK(t.toLowerCase(),e.toLocaleLowerCase()),idx:o}}));if(a.sort((function(t,e){return e.relevance-t.relevance})),o&&(a=a.filter((function(t){return 0!==t.relevance}))),a.length>0&&n&&n>0){var s=a[0].relevance*n;a=a.filter((function(t){return s-t.relevance<0}))}var l=[],u=[];try{for(var c=_K(a),p=c.next();!p.done;p=c.next()){var d=p.value;l.push(d.value),u.push(d.idx)}}catch(t){i={error:t}}finally{try{p&&!p.done&&(r=c.return)&&r.call(c)}finally{if(i)throw i.error}}return{values:l,indices:u}}function TK(t,e){for(var o=t.replace(/\s/g,""),n=e.replace(/\s/g,""),i=0,r=-1,a=0;a=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},OK=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},MK=function(t,e){for(var o=0,n=e.length,i=t.length;o0&&G$((function(){return console.warn("AG Grid: to see all the valid "+n+" properties please check: "+i)}),"invalidProperties"+n+i)},t.prototype.checkForDeprecated=function(){var t=this.gridOptions;Object.entries(this.deprecatedProperties).forEach((function(e){var o,n=OK(e,2),i=n[0],r=n[1],a=t[i];a&&(AK(r.version,i,r.newProp,r.message),r.copyToNewProp&&r.newProp&&null==t[r.newProp]&&(t[r.newProp]=null!==(o=r.newPropValue)&&void 0!==o?o:a))})),t.serverSideStoreType&&(console.warn("AG Grid: since v29.0, `serverSideStoreType` has been replaced by `suppressServerSideInfiniteScroll`. Set to false to use Partial Store, and true to use Full Store."),t.suppressServerSideInfiniteScroll="partial"!==t.serverSideStoreType)},t.prototype.checkForViolations=function(){this.gridOptionsService.is("treeData")&&this.treeDataViolations()},t.prototype.treeDataViolations=function(){this.gridOptionsService.isRowModelType("clientSide")&&(this.gridOptionsService.exists("getDataPath")||console.warn("AG Grid: property usingTreeData=true with rowModel=clientSide, but you did not provide getDataPath function, please provide getDataPath function if using tree data.")),this.gridOptionsService.isRowModelType("serverSide")&&(this.gridOptionsService.exists("isServerSideGroup")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide isServerSideGroup function, please provide isServerSideGroup function if using tree data."),this.gridOptionsService.exists("getServerSideGroupKey")||console.warn("AG Grid: property usingTreeData=true with rowModel=serverSide, but you did not provide getServerSideGroupKey function, please provide getServerSideGroupKey function if using tree data."))},RK([aY("gridOptions")],t.prototype,"gridOptions",void 0),RK([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),RK([nY],t.prototype,"init",null),RK([rY("gridOptionsValidator")],t)}();function LK(t,e){var o=["groupRows","multipleColumns","custom","singleColumn"];return o.indexOf(e)<0?(console.warn("AG Grid: '"+e+"' is not a valid groupDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):e===t}var NK=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),FK=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},kK=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},GK=function(t,e){for(var o=0,n=e.length,i=t.length;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},HK=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.primaryHeaderRowCount=0,e.secondaryHeaderRowCount=0,e.gridHeaderRowCount=0,e.displayedColumnsLeft=[],e.displayedColumnsRight=[],e.displayedColumnsCenter=[],e.displayedColumns=[],e.displayedColumnsAndGroupsMap={},e.viewportColumns=[],e.viewportColumnsHash="",e.headerViewportColumns=[],e.viewportColumnsCenter=[],e.headerViewportColumnsCenter=[],e.autoHeightActiveAtLeastOnce=!1,e.rowGroupColumns=[],e.valueColumns=[],e.pivotColumns=[],e.ready=!1,e.autoGroupsNeedBuilding=!1,e.forceRecreateAutoGroups=!1,e.pivotMode=!1,e.bodyWidth=0,e.leftWidth=0,e.rightWidth=0,e.bodyWidthDirty=!0,e.shouldQueueResizeOperations=!1,e.resizeOperationQueue=[],e}return NK(e,t),e.prototype.init=function(){var t=this;this.suppressColumnVirtualisation=this.gridOptionsService.is("suppressColumnVirtualisation");var e=this.gridOptionsService.is("pivotMode");this.isPivotSettingAllowed(e)&&(this.pivotMode=e),this.addManagedPropertyListeners(["groupDisplayType","treeData"],(function(){return t.buildAutoGroupColumns()})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.onAutoGroupColumnDefChanged()})),this.addManagedPropertyListener("defaultColDef",(function(e){return t.onSharedColDefChanged(e.source)})),this.addManagedPropertyListener("columnTypes",(function(e){return t.onSharedColDefChanged(e.source)}))},e.prototype.buildAutoGroupColumns=function(){this.columnDefs&&(this.autoGroupsNeedBuilding=!0,this.forceRecreateAutoGroups=!0,this.updateGridColumns(),this.updateDisplayedColumns("gridOptionsChanged"))},e.prototype.onAutoGroupColumnDefChanged=function(){this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns)},e.prototype.onSharedColDefChanged=function(t){void 0===t&&(t="api"),this.groupAutoColumns&&this.autoGroupColService.updateAutoGroupColumns(this.groupAutoColumns),this.createColumnsFromColumnDefs(!0,t)},e.prototype.setColumnDefs=function(t,e){void 0===e&&(e="api");var o=!!this.columnDefs;this.columnDefs=t,this.createColumnsFromColumnDefs(o,e)},e.prototype.recreateColumnDefs=function(t){void 0===t&&(t="api"),this.onSharedColDefChanged(t)},e.prototype.destroyOldColumns=function(t,e){var o={};if(t){this.columnUtils.depthFirstOriginalTreeSearch(null,t,(function(t){o[t.getInstanceId()]=t})),e&&this.columnUtils.depthFirstOriginalTreeSearch(null,e,(function(t){o[t.getInstanceId()]=null}));var n=Object.values(o).filter((function(t){return null!=t}));this.destroyBeans(n)}},e.prototype.destroyColumns=function(){this.destroyOldColumns(this.primaryColumnTree),this.destroyOldColumns(this.secondaryBalancedTree),this.destroyOldColumns(this.groupAutoColsBalancedTree)},e.prototype.createColumnsFromColumnDefs=function(t,e){var o=this;void 0===e&&(e="api");var n=t?this.compareColumnStatesAndDispatchEvents(e):void 0;this.valueCache.expire(),this.autoGroupsNeedBuilding=!0;var i=this.primaryColumns,r=this.primaryColumnTree,a=this.columnFactory.createColumnTree(this.columnDefs,!0,r);this.destroyOldColumns(this.primaryColumnTree,a.columnTree),this.primaryColumnTree=a.columnTree,this.primaryHeaderRowCount=a.treeDept+1,this.primaryColumns=this.getColumnsFromTree(this.primaryColumnTree),this.primaryColumnsMap={},this.primaryColumns.forEach((function(t){return o.primaryColumnsMap[t.getId()]=t})),this.extractRowGroupColumns(e,i),this.extractPivotColumns(e,i),this.extractValueColumns(e,i),this.ready=!0;var s=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||s||this.autoGroupsNeedBuilding)&&(this.updateGridColumns(),t&&this.gridColsArePrimary&&!this.gridOptionsService.is("maintainColumnOrder")&&this.orderGridColumnsLikePrimary(),this.updateDisplayedColumns(e),this.checkViewportColumns()),this.dispatchEverythingChanged(e),n&&n(),this.dispatchNewColumnsLoaded(e)},e.prototype.dispatchNewColumnsLoaded=function(t){var e={type:eK.EVENT_NEW_COLUMNS_LOADED,source:t};this.eventService.dispatchEvent(e)},e.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api");var e={type:eK.EVENT_COLUMN_EVERYTHING_CHANGED,source:t};this.eventService.dispatchEvent(e)},e.prototype.orderGridColumnsLikePrimary=function(){var t=this,e=this.primaryColumns;if(e){var o=e.filter((function(e){return t.gridColumns.indexOf(e)>=0})),n=this.gridColumns.filter((function(t){return o.indexOf(t)<0}));this.gridColumns=GK(GK([],kK(n)),kK(o)),this.gridColumns=this.placeLockedColumns(this.gridColumns)}},e.prototype.getAllDisplayedAutoHeightCols=function(){return this.displayedAutoHeightCols},e.prototype.setViewport=function(){this.gridOptionsService.is("enableRtl")?(this.viewportLeft=this.bodyWidth-this.scrollPosition-this.scrollWidth,this.viewportRight=this.bodyWidth-this.scrollPosition):(this.viewportLeft=this.scrollPosition,this.viewportRight=this.scrollWidth+this.scrollPosition)},e.prototype.getDisplayedColumnsStartingAt=function(t){for(var e=t,o=[];null!=e;)o.push(e),e=this.getDisplayedColAfter(e);return o},e.prototype.checkViewportColumns=function(t){if(void 0===t&&(t=!1),null!=this.displayedColumnsCenter&&this.extractViewport()){var e={type:eK.EVENT_VIRTUAL_COLUMNS_CHANGED,afterScroll:t};this.eventService.dispatchEvent(e)}},e.prototype.setViewportPosition=function(t,e,o){void 0===o&&(o=!1),(t!==this.scrollWidth||e!==this.scrollPosition||this.bodyWidthDirty)&&(this.scrollWidth=t,this.scrollPosition=e,this.bodyWidthDirty=!0,this.setViewport(),this.ready&&this.checkViewportColumns(o))},e.prototype.isPivotMode=function(){return this.pivotMode},e.prototype.isPivotSettingAllowed=function(t){return!t||!this.gridOptionsService.is("treeData")||(console.warn("AG Grid: Pivot mode not available in conjunction Tree Data i.e. 'gridOptions.treeData: true'"),!1)},e.prototype.setPivotMode=function(t,e){if(void 0===e&&(e="api"),t!==this.pivotMode&&this.isPivotSettingAllowed(this.pivotMode)){this.pivotMode=t,this.autoGroupsNeedBuilding=!0,this.updateGridColumns(),this.updateDisplayedColumns(e);var o={type:eK.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(t,e){if(f$(this.secondaryColumns))return null;var o=this.getPrimaryColumn(e),n=null;return this.secondaryColumns.forEach((function(e){var i=e.getColDef().pivotKeys,r=e.getColDef().pivotValueColumn;xY(i,t)&&r===o&&(n=e)})),n},e.prototype.setBeans=function(t){this.logger=t.create("columnModel")},e.prototype.setFirstRightAndLastLeftPinned=function(t){var e,o;this.gridOptionsService.is("enableRtl")?(e=this.displayedColumnsLeft?this.displayedColumnsLeft[0]:null,o=this.displayedColumnsRight?_Y(this.displayedColumnsRight):null):(e=this.displayedColumnsLeft?_Y(this.displayedColumnsLeft):null,o=this.displayedColumnsRight?this.displayedColumnsRight[0]:null),this.gridColumns.forEach((function(n){n.setLastLeftPinned(n===e,t),n.setFirstRightPinned(n===o,t)}))},e.prototype.autoSizeColumns=function(t){var e=this;if(this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return e.autoSizeColumns(t)}));else{var o=t.columns,n=t.skipHeader,i=t.skipHeaderGroups,r=t.stopAtGroup,a=t.source,s=void 0===a?"api":a;this.animationFrameService.flushAllFrames();for(var l=[],u=-1,c=null!=n?n:this.gridOptionsService.is("skipHeaderOnAutoSize"),p=null!=i?i:c;0!==u;)u=0,this.actionOnGridColumns(o,(function(t){if(l.indexOf(t)>=0)return!1;var o=e.autoWidthCalculator.getPreferredWidthForColumn(t,c);if(o>0){var n=e.normaliseColumnWidth(t,o);t.setActualWidth(n,s),l.push(t),u++}return!0}),s);p||this.autoSizeColumnGroupsByColumns(o,s,r),this.dispatchColumnResizedEvent(l,!0,"autosizeColumns")}},e.prototype.dispatchColumnResizedEvent=function(t,e,o,n){if(void 0===n&&(n=null),t&&t.length){var i={type:eK.EVENT_COLUMN_RESIZED,columns:t,column:1===t.length?t[0]:null,flexColumns:n,finished:e,source:o};this.eventService.dispatchEvent(i)}},e.prototype.dispatchColumnChangedEvent=function(t,e,o){var n={type:t,columns:e,column:e&&1==e.length?e[0]:null,source:o};this.eventService.dispatchEvent(n)},e.prototype.dispatchColumnMovedEvent=function(t){var e=t.movedColumns,o=t.source,n=t.toIndex,i=t.finished,r={type:eK.EVENT_COLUMN_MOVED,columns:e,column:e&&1===e.length?e[0]:null,toIndex:n,finished:i,source:o};this.eventService.dispatchEvent(r)},e.prototype.dispatchColumnPinnedEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,n=this.getCommonValue(t,(function(t){return t.getPinned()})),i={type:eK.EVENT_COLUMN_PINNED,pinned:null!=n?n:null,columns:t,column:o,source:e};this.eventService.dispatchEvent(i)}},e.prototype.dispatchColumnVisibleEvent=function(t,e){if(t.length){var o=1===t.length?t[0]:null,n=this.getCommonValue(t,(function(t){return t.isVisible()})),i={type:eK.EVENT_COLUMN_VISIBLE,visible:n,columns:t,column:o,source:e};this.eventService.dispatchEvent(i)}},e.prototype.autoSizeColumn=function(t,e,o){void 0===o&&(o="api"),t&&this.autoSizeColumns({columns:[t],skipHeader:e,skipHeaderGroups:!0,source:o})},e.prototype.autoSizeColumnGroupsByColumns=function(t,e,o){var n,i,r,a,s,l=new Set;this.getGridColumns(t).forEach((function(t){for(var e=t.getParent();e&&e!=o;)e.isPadding()||l.add(e),e=e.getParent()}));try{for(var u=VK(l),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var d=(r=void 0,VK(this.ctrlsService.getHeaderRowContainerCtrls())),h=d.next();!h.done&&!(s=h.value.getHeaderCtrlForColumn(p));h=d.next());}catch(t){r={error:t}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(r)throw r.error}}s&&s.resizeLeafColumnsToFit(e)}}catch(t){n={error:t}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}return[]},e.prototype.autoSizeAllColumns=function(t,e){var o=this;if(void 0===e&&(e="api"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return o.autoSizeAllColumns(t,e)}));else{var n=this.getAllDisplayedColumns();this.autoSizeColumns({columns:n,skipHeader:t,source:e})}},e.prototype.getColumnsFromTree=function(t){var e=[],o=function(t){for(var n=0;n=0},e.prototype.getAllDisplayedColumns=function(){return this.displayedColumns},e.prototype.getViewportColumns=function(){return this.viewportColumns},e.prototype.getDisplayedLeftColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsLeft):this.displayedColumnsLeft},e.prototype.getDisplayedRightColumnsForRow=function(t){return this.colSpanActive?this.getDisplayedColumnsForRow(t,this.displayedColumnsRight):this.displayedColumnsRight},e.prototype.isColSpanActive=function(){return this.colSpanActive},e.prototype.getDisplayedColumnsForRow=function(t,e,o,n){for(var i,r=[],a=null,s=function(s){var l,u=e[s],c=e.length-s,p=Math.min(u.getColSpan(t),c),d=[u];if(p>1){for(var h=p-1,f=1;f<=h;f++)d.push(e[s+f]);s+=h}o?(l=!1,d.forEach((function(t){o(t)&&(l=!0)}))):l=!0,l&&(0===r.length&&a&&n&&n(u)&&r.push(a),r.push(u)),a=u,i=s},l=0;le.viewportLeft}))},e.prototype.getAriaColumnIndex=function(t){return this.getAllGridColumns().indexOf(t)+1},e.prototype.isColumnInHeaderViewport=function(t){return!!t.isAutoHeaderHeight()||this.isColumnInRowViewport(t)},e.prototype.isColumnInRowViewport=function(t){if(t.isAutoHeight())return!0;var e=t.getLeft()||0,o=e+t.getActualWidth(),n=this.viewportLeft-200,i=this.viewportRight+200;return!(ei&&o>i)},e.prototype.getDisplayedColumnsLeftWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsLeft)},e.prototype.getDisplayedColumnsRightWidth=function(){return this.getWidthOfColsInList(this.displayedColumnsRight)},e.prototype.updatePrimaryColumnList=function(t,e,o,n,i,r){var a=this;if(void 0===r&&(r="api"),t&&!g$(t)){var s=!1;if(t.forEach((function(t){var i=a.getPrimaryColumn(t);if(i){if(o){if(e.indexOf(i)>=0)return;e.push(i)}else{if(e.indexOf(i)<0)return;DY(e,i)}n(i),s=!0}})),s){this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r);var l={type:i,columns:e,column:1===e.length?e[0]:null,source:r};this.eventService.dispatchEvent(l)}}},e.prototype.setRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.setPrimaryColumnList(t,this.rowGroupColumns,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,!0,this.setRowGroupActive.bind(this),e)},e.prototype.setRowGroupActive=function(t,e,o){t!==e.isRowGroupActive()&&(e.setRowGroupActive(t,o),t&&!this.gridOptionsService.is("suppressRowGroupHidesColumns")&&this.setColumnVisible(e,!1,o),t||this.gridOptionsService.is("suppressMakeColumnVisibleAfterUnGroup")||this.setColumnVisible(e,!0,o))},e.prototype.addRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.addRowGroupColumns([t],e)},e.prototype.addRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!0,this.setRowGroupActive.bind(this,!0),eK.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},e.prototype.removeRowGroupColumns=function(t,e){void 0===e&&(e="api"),this.autoGroupsNeedBuilding=!0,this.updatePrimaryColumnList(t,this.rowGroupColumns,!1,this.setRowGroupActive.bind(this,!1),eK.EVENT_COLUMN_ROW_GROUP_CHANGED,e)},e.prototype.removeRowGroupColumn=function(t,e){void 0===e&&(e="api"),t&&this.removeRowGroupColumns([t],e)},e.prototype.addPivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!0,(function(t){return t.setPivotActive(!0,e)}),eK.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,eK.EVENT_COLUMN_PIVOT_CHANGED,!0,(function(t,o){o.setPivotActive(t,e)}),e)},e.prototype.addPivotColumn=function(t,e){void 0===e&&(e="api"),this.addPivotColumns([t],e)},e.prototype.removePivotColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.pivotColumns,!1,(function(t){return t.setPivotActive(!1,e)}),eK.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.removePivotColumn=function(t,e){void 0===e&&(e="api"),this.removePivotColumns([t],e)},e.prototype.setPrimaryColumnList=function(t,e,o,n,i,r){var a=this,s=new Map;e.forEach((function(t,e){return s.set(t,e)})),e.length=0,h$(t)&&t.forEach((function(t){var o=a.getPrimaryColumn(t);o&&e.push(o)})),e.forEach((function(t,e){var o=s.get(t);void 0!==o?n&&o!==e||s.delete(t):s.set(t,0)})),(this.primaryColumns||[]).forEach((function(t){var o=e.indexOf(t)>=0;i(o,t)})),this.autoGroupsNeedBuilding&&this.updateGridColumns(),this.updateDisplayedColumns(r),this.dispatchColumnChangedEvent(o,GK([],kK(s.keys())),r)},e.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,eK.EVENT_COLUMN_VALUE_CHANGED,!1,this.setValueActive.bind(this),e)},e.prototype.setValueActive=function(t,e,o){if(t!==e.isValueActive()&&(e.setValueActive(t,o),t&&!e.getAggFunc())){var n=this.aggFuncService.getDefaultAggFunc(e);e.setAggFunc(n)}},e.prototype.addValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!0,this.setValueActive.bind(this,!0),eK.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.addValueColumn=function(t,e){void 0===e&&(e="api"),t&&this.addValueColumns([t],e)},e.prototype.removeValueColumn=function(t,e){void 0===e&&(e="api"),this.removeValueColumns([t],e)},e.prototype.removeValueColumns=function(t,e){void 0===e&&(e="api"),this.updatePrimaryColumnList(t,this.valueColumns,!1,this.setValueActive.bind(this,!1),eK.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.normaliseColumnWidth=function(t,e){var o=t.getMinWidth();h$(o)&&e0?i+=o:r=!1})),o>=n&&(!r||o<=i)},e.prototype.resizeColumnSets=function(t){var e=this,o=t.resizeSets,n=t.finished,i=t.source;if(!o||o.every((function(t){return e.checkMinAndMaxWidthsForSet(t)}))){var r=[],a=[];o.forEach((function(t){var e=t.width,o=t.columns,n=t.ratios,s={},l={};o.forEach((function(t){return a.push(t)}));for(var u=!0,c=0,p=function(){if(++c>1e3)return console.error("AG Grid: infinite loop in resizeColumnSets"),"break";u=!1;var t=[],i=0,r=e;o.forEach((function(e,o){if(l[e.getId()])r-=s[e.getId()];else{t.push(e);var a=n[o];i+=a}}));var a=1/i;t.forEach((function(o,i){var c;i===t.length-1?c=r:(c=Math.round(n[i]*e*a),r-=c);var p=o.getMinWidth(),d=o.getMaxWidth();h$(p)&&c0&&c>d&&(c=d,l[o.getId()]=!0,u=!0),s[o.getId()]=c}))};u&&"break"!==p(););o.forEach((function(t){var e=s[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,i),r.push(t))}))}));var s=r.length>0,l=[];s&&(l=this.refreshFlexedColumns({resizingCols:a,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var u=a.concat(l);(s||n)&&this.dispatchColumnResizedEvent(u,n,i,l)}else if(n){var c=o&&o.length>0?o[0].columns:null;this.dispatchColumnResizedEvent(c,n,i)}},e.prototype.setColumnAggFunc=function(t,e,o){if(void 0===o&&(o="api"),t){var n=this.getPrimaryColumn(t);n&&(n.setAggFunc(e),this.dispatchColumnChangedEvent(eK.EVENT_COLUMN_VALUE_CHANGED,[n],o))}},e.prototype.moveRowGroupColumn=function(t,e,o){void 0===o&&(o="api");var n=this.rowGroupColumns[t],i=this.rowGroupColumns.slice(t,e);this.rowGroupColumns.splice(t,1),this.rowGroupColumns.splice(e,0,n);var r={type:eK.EVENT_COLUMN_ROW_GROUP_CHANGED,columns:i,column:1===i.length?i[0]:null,source:o};this.eventService.dispatchEvent(r)},e.prototype.moveColumns=function(t,e,o,n){if(void 0===o&&(o="api"),void 0===n&&(n=!0),this.columnAnimationService.start(),e>this.gridColumns.length-t.length)return console.warn("AG Grid: tried to insert columns in invalid location, toIndex = "+e),void console.warn("AG Grid: remember that you should not count the moving columns when calculating the new index");var i=this.getGridColumns(t);!this.doesMovePassRules(i,e)||(AY(this.gridColumns,i,e),this.updateDisplayedColumns(o),this.dispatchColumnMovedEvent({movedColumns:i,source:o,toIndex:e,finished:n}),this.columnAnimationService.finish())},e.prototype.doesMovePassRules=function(t,e){var o=this.getProposedColumnOrder(t,e);return this.doesOrderPassRules(o)},e.prototype.doesOrderPassRules=function(t){return!!this.doesMovePassMarryChildren(t)&&!!this.doesMovePassLockedPositions(t)},e.prototype.getProposedColumnOrder=function(t,e){var o=this.gridColumns.slice();return AY(o,t,e),o},e.prototype.sortColumnsLikeGridColumns=function(t){var e=this;!t||t.length<=1||t.filter((function(t){return e.gridColumns.indexOf(t)<0})).length>0||t.sort((function(t,o){return e.gridColumns.indexOf(t)-e.gridColumns.indexOf(o)}))},e.prototype.doesMovePassLockedPositions=function(t){var e=0,o=!0;return t.forEach((function(t){var n=function(t){return t?!0===t||"left"===t?0:2:1}(t.getColDef().lockPosition);nn.getLeafColumns().length-1&&(e=!1)}}})),e},e.prototype.moveColumn=function(t,e,o){void 0===o&&(o="api"),this.moveColumns([t],e,o)},e.prototype.moveColumnByIndex=function(t,e,o){void 0===o&&(o="api");var n=this.gridColumns[t];this.moveColumn(n,e,o)},e.prototype.getColumnDefs=function(){var t=this;if(this.primaryColumns){var e=this.primaryColumns.slice();return this.gridColsArePrimary?e.sort((function(e,o){return t.gridColumns.indexOf(e)-t.gridColumns.indexOf(o)})):this.lastPrimaryOrder&&e.sort((function(e,o){return t.lastPrimaryOrder.indexOf(e)-t.lastPrimaryOrder.indexOf(o)})),this.columnDefFactory.buildColumnDefs(e,this.rowGroupColumns,this.pivotColumns)}},e.prototype.getBodyContainerWidth=function(){return this.bodyWidth},e.prototype.getContainerWidth=function(t){switch(t){case"left":return this.leftWidth;case"right":return this.rightWidth;default:return this.bodyWidth}},e.prototype.updateBodyWidths=function(){var t=this.getWidthOfColsInList(this.displayedColumnsCenter),e=this.getWidthOfColsInList(this.displayedColumnsLeft),o=this.getWidthOfColsInList(this.displayedColumnsRight);if(this.bodyWidthDirty=this.bodyWidth!==t,this.bodyWidth!==t||this.leftWidth!==e||this.rightWidth!==o){this.bodyWidth=t,this.leftWidth=e,this.rightWidth=o;var n={type:eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED};this.eventService.dispatchEvent(n)}},e.prototype.getValueColumns=function(){return this.valueColumns?this.valueColumns:[]},e.prototype.getPivotColumns=function(){return this.pivotColumns?this.pivotColumns:[]},e.prototype.isPivotActive=function(){return this.pivotColumns&&this.pivotColumns.length>0&&this.pivotMode},e.prototype.getRowGroupColumns=function(){return this.rowGroupColumns?this.rowGroupColumns:[]},e.prototype.getDisplayedCenterColumns=function(){return this.displayedColumnsCenter},e.prototype.getDisplayedLeftColumns=function(){return this.displayedColumnsLeft},e.prototype.getDisplayedRightColumns=function(){return this.displayedColumnsRight},e.prototype.getDisplayedColumns=function(t){switch(t){case"left":return this.getDisplayedLeftColumns();case"right":return this.getDisplayedRightColumns();default:return this.getDisplayedCenterColumns()}},e.prototype.getAllPrimaryColumns=function(){return this.primaryColumns?this.primaryColumns.slice():null},e.prototype.getSecondaryColumns=function(){return this.secondaryColumns?this.secondaryColumns.slice():null},e.prototype.getAllColumnsForQuickFilter=function(){return this.columnsForQuickFilter},e.prototype.getAllGridColumns=function(){return this.gridColumns},e.prototype.isEmpty=function(){return g$(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return g$(this.rowGroupColumns)},e.prototype.setColumnVisible=function(t,e,o){void 0===o&&(o="api"),this.setColumnsVisible([t],e,o)},e.prototype.setColumnsVisible=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o="api"),this.applyColumnState({state:t.map((function(t){return{colId:"string"==typeof t?t:t.getColId(),hide:!e}}))},o)},e.prototype.setColumnPinned=function(t,e,o){void 0===o&&(o="api"),t&&this.setColumnsPinned([t],e,o)},e.prototype.setColumnsPinned=function(t,e,o){var n;void 0===o&&(o="api"),this.gridOptionsService.isDomLayout("print")?console.warn("AG Grid: Changing the column pinning status is not allowed with domLayout='print'"):(this.columnAnimationService.start(),n=!0===e||"left"===e?"left":"right"===e?"right":null,this.actionOnGridColumns(t,(function(t){return t.getPinned()!==n&&(t.setPinned(n),!0)}),o,(function(){return{type:eK.EVENT_COLUMN_PINNED,pinned:n,column:null,columns:null,source:o}})),this.columnAnimationService.finish())},e.prototype.actionOnGridColumns=function(t,e,o,n){var i=this;if(!g$(t)){var r=[];if(t.forEach((function(t){var o=i.getGridColumn(t);o&&!1!==e(o)&&r.push(o)})),r.length&&(this.updateDisplayedColumns(o),h$(n)&&n)){var a=n();a.columns=r,a.column=1===r.length?r[0]:null,this.eventService.dispatchEvent(a)}}},e.prototype.getDisplayedColBefore=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o>0?e[o-1]:null},e.prototype.getDisplayedColAfter=function(t){var e=this.getAllDisplayedColumns(),o=e.indexOf(t);return o0},e.prototype.isPinningRight=function(){return this.displayedColumnsRight.length>0},e.prototype.getPrimaryAndSecondaryAndAutoColumns=function(){var t;return(t=[]).concat.apply(t,[this.primaryColumns||[],this.groupAutoColumns||[],this.secondaryColumns||[]])},e.prototype.createStateItemFromColumn=function(t){var e=t.isRowGroupActive()?this.rowGroupColumns.indexOf(t):null,o=t.isPivotActive()?this.pivotColumns.indexOf(t):null,n=t.isValueActive()?t.getAggFunc():null,i=null!=t.getSort()?t.getSort():null,r=null!=t.getSortIndex()?t.getSortIndex():null,a=null!=t.getFlex()&&t.getFlex()>0?t.getFlex():null;return{colId:t.getColId(),width:t.getActualWidth(),hide:!t.isVisible(),pinned:t.getPinned(),sort:i,sortIndex:r,aggFunc:n,rowGroup:t.isRowGroupActive(),rowGroupIndex:e,pivot:t.isPivotActive(),pivotIndex:o,flex:a}},e.prototype.getColumnState=function(){if(f$(this.primaryColumns)||!this.isAlive())return[];var t=this.getPrimaryAndSecondaryAndAutoColumns().map(this.createStateItemFromColumn.bind(this));return this.orderColumnStateList(t),t},e.prototype.orderColumnStateList=function(t){var e=hK(this.gridColumns.map((function(t,e){return[t.getColId(),e]})));t.sort((function(t,o){return(e.has(t.colId)?e.get(t.colId):-1)-(e.has(o.colId)?e.get(o.colId):-1)}))},e.prototype.resetColumnState=function(t){var e=this;void 0===t&&(t="api");var o=this.getColumnsFromTree(this.primaryColumnTree),n=[],i=1e3,r=1e3,a=[];this.groupAutoColumns&&(a=a.concat(this.groupAutoColumns)),o&&(a=a.concat(o)),a.forEach((function(t){var o=e.getColumnStateFromColDef(t);f$(o.rowGroupIndex)&&o.rowGroup&&(o.rowGroupIndex=i++),f$(o.pivotIndex)&&o.pivot&&(o.pivotIndex=r++),n.push(o)})),this.applyColumnState({state:n,applyOrder:!0},t)},e.prototype.getColumnStateFromColDef=function(t){var e=function(t,e){return null!=t?t:null!=e?e:null},o=t.getColDef(),n=e(o.sort,o.initialSort),i=e(o.sortIndex,o.initialSortIndex),r=e(o.hide,o.initialHide),a=e(o.pinned,o.initialPinned),s=e(o.width,o.initialWidth),l=e(o.flex,o.initialFlex),u=e(o.rowGroupIndex,o.initialRowGroupIndex),c=e(o.rowGroup,o.initialRowGroup);null!=u||null!=c&&0!=c||(u=null,c=null);var p=e(o.pivotIndex,o.initialPivotIndex),d=e(o.pivot,o.initialPivot);null!=p||null!=d&&0!=d||(p=null,d=null);var h=e(o.aggFunc,o.initialAggFunc);return{colId:t.getColId(),sort:n,sortIndex:i,hide:r,pinned:a,width:s,flex:l,rowGroup:c,rowGroupIndex:u,pivot:d,pivotIndex:p,aggFunc:h}},e.prototype.applyColumnState=function(t,e){var o=this;if(g$(this.primaryColumns))return!1;if(t&&t.state&&!t.state.forEach)return console.warn("AG Grid: applyColumnState() - the state attribute should be an array, however an array was not found. Please provide an array of items (one for each col you want to change) for state."),!1;var n=function(n,i,r){var a=o.compareColumnStatesAndDispatchEvents(e);o.autoGroupsNeedBuilding=!0;var s=i.slice(),l={},u={},c=[],p=[],d=0,h=o.rowGroupColumns.slice(),f=o.pivotColumns.slice();n.forEach((function(n){var i=n.colId||"";if(i.startsWith(rK))return c.push(n),void p.push(n);var a=r(i);a?(o.syncColumnWithStateItem(a,n,t.defaultState,l,u,!1,e),DY(s,a)):(p.push(n),d+=1)}));var g=function(n){return o.syncColumnWithStateItem(n,null,t.defaultState,l,u,!1,e)};s.forEach(g);var v=function(t,e,o,n){var i=t[o.getId()],r=t[n.getId()],a=null!=i,s=null!=r;if(a&&s)return i-r;if(a)return-1;if(s)return 1;var l=e.indexOf(o),u=e.indexOf(n),c=l>=0;return c&&u>=0?l-u:c?-1:1};o.rowGroupColumns.sort(v.bind(o,l,h)),o.pivotColumns.sort(v.bind(o,u,f)),o.updateGridColumns();var y=o.groupAutoColumns?o.groupAutoColumns.slice():[];return c.forEach((function(n){var i=o.getAutoColumn(n.colId);DY(y,i),o.syncColumnWithStateItem(i,n,t.defaultState,null,null,!0,e)})),y.forEach(g),o.applyOrderAfterApplyState(t),o.updateDisplayedColumns(e),o.dispatchEverythingChanged(e),a(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var i=n(t.state||[],this.primaryColumns||[],(function(t){return o.getPrimaryColumn(t)})),r=i.unmatchedAndAutoStates,a=i.unmatchedCount;return(r.length>0||h$(t.defaultState))&&(a=n(r,this.secondaryColumns||[],(function(t){return o.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===a},e.prototype.applyOrderAfterApplyState=function(t){var e=this;if(t.applyOrder&&t.state){var o=[],n={};t.state.forEach((function(t){if(t.colId&&!n[t.colId]){var i=e.gridColumnsMap[t.colId];i&&(o.push(i),n[t.colId]=!0)}}));var i=0;this.gridColumns.forEach((function(t){var e=t.getColId();null!=n[e]||(e.startsWith(rK)?MY(o,t,i++):o.push(t))})),o=this.placeLockedColumns(o),this.doesMovePassMarryChildren(o)?this.gridColumns=o:console.warn("AG Grid: Applying column order broke a group where columns should be married together. Applying new order has been discarded.")}},e.prototype.compareColumnStatesAndDispatchEvents=function(t){var e=this,o={rowGroupColumns:this.rowGroupColumns.slice(),pivotColumns:this.pivotColumns.slice(),valueColumns:this.valueColumns.slice()},n=this.getColumnState(),i={};return n.forEach((function(t){i[t.colId]=t})),function(){var r=e.getPrimaryAndSecondaryAndAutoColumns(),a=function(o,n,i,r){if(!xY(n.map(r),i.map(r))){var a=new Set(n);i.forEach((function(t){a.delete(t)||a.add(t)}));var s=GK([],kK(a)),l={type:o,columns:s,column:1===s.length?s[0]:null,source:t};e.eventService.dispatchEvent(l)}},s=function(t){var e=[];return r.forEach((function(o){var n=i[o.getColId()];n&&t(n,o)&&e.push(o)})),e},l=function(t){return t.getColId()};a(eK.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,l),a(eK.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,l);var u=s((function(t,e){var o=null!=t.aggFunc,n=o!=e.isValueActive(),i=o&&t.aggFunc!=e.getAggFunc();return n||i}));u.length>0&&e.dispatchColumnChangedEvent(eK.EVENT_COLUMN_VALUE_CHANGED,u,t),e.dispatchColumnResizedEvent(s((function(t,e){return t.width!=e.getActualWidth()})),!0,t),e.dispatchColumnPinnedEvent(s((function(t,e){return t.pinned!=e.getPinned()})),t),e.dispatchColumnVisibleEvent(s((function(t,e){return t.hide==e.isVisible()})),t),s((function(t,e){return t.sort!=e.getSort()||t.sortIndex!=e.getSortIndex()})).length>0&&e.sortController.dispatchSortChangedEvents(t),e.normaliseColumnMovedEventForColumnState(n,t)}},e.prototype.getCommonValue=function(t,e){if(t&&0!=t.length){for(var o=e(t[0]),n=1;n=c&&t.setActualWidth(d,a)}var h=s("sort").value1;void 0!==h&&("desc"===h||"asc"===h?t.setSort(h,a):t.setSort(void 0,a));var f=s("sortIndex").value1;if(void 0!==f&&t.setSortIndex(f),!r&&t.isPrimary()){var g=s("aggFunc").value1;void 0!==g&&("string"==typeof g?(t.setAggFunc(g),t.isValueActive()||(t.setValueActive(!0,a),this.valueColumns.push(t))):(h$(g)&&console.warn("AG Grid: stateItem.aggFunc must be a string. if using your own aggregation functions, register the functions first before using them in get/set state. This is because it is intended for the column state to be stored and retrieved as simple JSON."),t.isValueActive()&&(t.setValueActive(!1,a),DY(this.valueColumns,t))));var v=s("rowGroup","rowGroupIndex"),y=v.value1,m=v.value2;void 0===y&&void 0===m||("number"==typeof m||y?(t.isRowGroupActive()||(t.setRowGroupActive(!0,a),this.rowGroupColumns.push(t)),n&&"number"==typeof m&&(n[t.getId()]=m)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,a),DY(this.rowGroupColumns,t)));var C=s("pivot","pivotIndex"),w=C.value1,S=C.value2;void 0===w&&void 0===S||("number"==typeof S||w?(t.isPivotActive()||(t.setPivotActive(!0,a),this.pivotColumns.push(t)),i&&"number"==typeof S&&(i[t.getId()]=S)):t.isPivotActive()&&(t.setPivotActive(!1,a),DY(this.pivotColumns,t)))}}},e.prototype.getGridColumns=function(t){return this.getColumns(t,this.getGridColumn.bind(this))},e.prototype.getColumns=function(t,e){var o=[];return t&&t.forEach((function(t){var n=e(t);n&&o.push(n)})),o},e.prototype.getColumnWithValidation=function(t){if(null==t)return null;var e=this.getGridColumn(t);return e||console.warn("AG Grid: could not find column "+t),e},e.prototype.getPrimaryColumn=function(t){return this.primaryColumns?this.getColumn(t,this.primaryColumns,this.primaryColumnsMap):null},e.prototype.getGridColumn=function(t){return this.getColumn(t,this.gridColumns,this.gridColumnsMap)},e.prototype.lookupGridColumn=function(t){return this.gridColumnsMap[t]},e.prototype.getSecondaryColumn=function(t){return this.secondaryColumns?this.getColumn(t,this.secondaryColumns,this.secondaryColumnsMap):null},e.prototype.getColumn=function(t,e,o){if(!t)return null;if("string"==typeof t&&o[t])return o[t];for(var n=0;n=0:u?void 0!==d?d:void 0!==f&&null!=f&&f>=0:e.indexOf(o)>=0)&&((u?null!=h||null!=f:null!=h)?s.push(o):l.push(o))}));var u=function(t){var e=n(t.getColDef()),o=i(t.getColDef());return null!=e?e:o};s.sort((function(t,e){var o=u(t),n=u(e);return o===n?0:o=0&&c.push(t)})),l.forEach((function(t){c.indexOf(t)<0&&c.push(t)})),e.forEach((function(t){c.indexOf(t)<0&&o(t,!1)})),c.forEach((function(t){e.indexOf(t)<0&&o(t,!0)})),c},e.prototype.extractPivotColumns=function(t,e){this.pivotColumns=this.extractColumns(e,this.pivotColumns,(function(e,o){return e.setPivotActive(o,t)}),(function(t){return t.pivotIndex}),(function(t){return t.initialPivotIndex}),(function(t){return t.pivot}),(function(t){return t.initialPivot}))},e.prototype.resetColumnGroupState=function(t){void 0===t&&(t="api");var e=[];this.columnUtils.depthFirstOriginalTreeSearch(null,this.primaryColumnTree,(function(t){if(t instanceof wY){var o=t.getColGroupDef(),n={groupId:t.getGroupId(),open:o?o.openByDefault:void 0};e.push(n)}})),this.setColumnGroupState(e,t)},e.prototype.getColumnGroupState=function(){var t=[];return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(e){e instanceof wY&&t.push({groupId:e.getGroupId(),open:e.isExpanded()})})),t},e.prototype.setColumnGroupState=function(t,e){var o=this;void 0===e&&(e="api"),this.columnAnimationService.start();var n=[];t.forEach((function(t){var e=t.groupId,i=t.open,r=o.getProvidedColumnGroup(e);r&&r.isExpanded()!==i&&(o.logger.log("columnGroupOpened("+r.getGroupId()+","+i+")"),r.setExpanded(i),n.push(r))})),this.updateGroupsAndDisplayedColumns(e),this.setFirstRightAndLastLeftPinned(e),n.forEach((function(t){var e={type:eK.EVENT_COLUMN_GROUP_OPENED,columnGroup:t};o.eventService.dispatchEvent(e)})),this.columnAnimationService.finish()},e.prototype.setColumnGroupOpened=function(t,e,o){var n;void 0===o&&(o="api"),n=t instanceof wY?t.getId():t||"",this.setColumnGroupState([{groupId:n,open:e}],o)},e.prototype.getProvidedColumnGroup=function(t){"string"!=typeof t&&console.error("AG Grid: group key must be a string");var e=null;return this.columnUtils.depthFirstOriginalTreeSearch(null,this.gridBalancedTree,(function(o){o instanceof wY&&o.getId()===t&&(e=o)})),e},e.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&f$(this.secondaryColumns)?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&IY(t.groupAutoColumns,e),n=t.valueColumns&&IY(t.valueColumns,e);return o||n})):this.gridColumns.filter((function(e){return t.groupAutoColumns&&IY(t.groupAutoColumns,e)||e.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(t){var e=!1;return t.forEach((function(t){h$(t.getColDef().colSpan)&&(e=!0)})),e},e.prototype.calculateColumnsForGroupDisplay=function(){var t=this;this.groupDisplayColumns=[],this.groupDisplayColumnsMap={},this.gridColumns.forEach((function(e){var o=e.getColDef(),n=o.showRowGroup;o&&h$(n)&&(t.groupDisplayColumns.push(e),"string"==typeof n?t.groupDisplayColumnsMap[n]=e:!0===n&&t.getRowGroupColumns().forEach((function(o){t.groupDisplayColumnsMap[o.getId()]=e})))}))},e.prototype.getGroupDisplayColumns=function(){return this.groupDisplayColumns},e.prototype.getGroupDisplayColumnForGroup=function(t){return this.groupDisplayColumnsMap[t]},e.prototype.updateDisplayedColumns=function(t){var e=this.calculateColumnsForDisplay();this.buildDisplayedTrees(e),this.updateGroupsAndDisplayedColumns(t),this.setFirstRightAndLastLeftPinned(t)},e.prototype.isSecondaryColumnsPresent=function(){return h$(this.secondaryColumns)},e.prototype.setSecondaryColumns=function(t,e){var o=this;void 0===e&&(e="api");var n=t&&t.length>0;if(n||!f$(this.secondaryColumns)){if(n){this.processSecondaryColumnDefinitions(t);var i=this.columnFactory.createColumnTree(t,!1,this.secondaryBalancedTree||this.previousSecondaryColumns||void 0);this.destroyOldColumns(this.secondaryBalancedTree,i.columnTree),this.secondaryBalancedTree=i.columnTree,this.secondaryHeaderRowCount=i.treeDept+1,this.secondaryColumns=this.getColumnsFromTree(this.secondaryBalancedTree),this.secondaryColumnsMap={},this.secondaryColumns.forEach((function(t){return o.secondaryColumnsMap[t.getId()]=t})),this.previousSecondaryColumns=null}else this.previousSecondaryColumns=this.secondaryBalancedTree,this.secondaryBalancedTree=null,this.secondaryHeaderRowCount=-1,this.secondaryColumns=null,this.secondaryColumnsMap={};this.updateGridColumns(),this.updateDisplayedColumns(e)}},e.prototype.processSecondaryColumnDefinitions=function(t){var e=this.gridOptionsService.get("processPivotResultColDef")||this.gridOptionsService.get("processSecondaryColDef"),o=this.gridOptionsService.get("processPivotResultColGroupDef")||this.gridOptionsService.get("processSecondaryColGroupDef");if(e||o){var n=function(t){t.forEach((function(t){if(h$(t.children)){var i=t;o&&o(i),n(i.children)}else e&&e(t)}))};t&&n(t)}},e.prototype.updateGridColumns=function(){var t,e=this,o=this.gridBalancedTree;if(this.gridColsArePrimary?this.lastPrimaryOrder=this.gridColumns:this.lastSecondaryOrder=this.gridColumns,this.secondaryColumns&&this.secondaryBalancedTree){var n=this.secondaryColumns.every((function(t){return void 0!==e.gridColumnsMap[t.getColId()]}));this.gridBalancedTree=this.secondaryBalancedTree.slice(),this.gridHeaderRowCount=this.secondaryHeaderRowCount,this.gridColumns=this.secondaryColumns.slice(),this.gridColsArePrimary=!1,n&&(t=this.lastSecondaryOrder)}else this.primaryColumns&&(this.gridBalancedTree=this.primaryColumnTree.slice(),this.gridHeaderRowCount=this.primaryHeaderRowCount,this.gridColumns=this.primaryColumns.slice(),this.gridColsArePrimary=!0,t=this.lastPrimaryOrder);if(this.createGroupAutoColumnsIfNeeded()&&t){var i=hK(this.groupAutoColumns.map((function(t){return[t,!0]})));t=t.filter((function(t){return!i.has(t)})),t=GK(GK([],kK(this.groupAutoColumns)),kK(t))}if(this.addAutoGroupToGridColumns(),this.orderGridColsLike(t),this.gridColumns=this.placeLockedColumns(this.gridColumns),this.calculateColumnsForGroupDisplay(),this.refreshQuickFilterColumns(),this.clearDisplayedAndViewportColumns(),this.colSpanActive=this.checkColSpanActiveInCols(this.gridColumns),this.gridColumnsMap={},this.gridColumns.forEach((function(t){return e.gridColumnsMap[t.getId()]=t})),this.setAutoHeightActive(),!xY(o,this.gridBalancedTree)){var r={type:eK.EVENT_GRID_COLUMNS_CHANGED};this.eventService.dispatchEvent(r)}},e.prototype.setAutoHeightActive=function(){this.autoHeightActive=this.gridColumns.filter((function(t){return t.isAutoHeight()})).length>0,!this.autoHeightActive||(this.autoHeightActiveAtLeastOnce=!0,this.gridOptionsService.isRowModelType("clientSide")||this.gridOptionsService.isRowModelType("serverSide"))||G$((function(){return console.warn("AG Grid - autoHeight columns only work with Client Side Row Model and Server Side Row Model.")}),"autoHeightActive.wrongRowModel")},e.prototype.orderGridColsLike=function(t){if(!f$(t)){var e=hK(t.map((function(t,e){return[t,e]}))),o=!0;if(this.gridColumns.forEach((function(t){e.has(t)&&(o=!1)})),!o){var n=hK(this.gridColumns.map((function(t){return[t,!0]}))),i=t.filter((function(t){return n.has(t)})),r=hK(i.map((function(t){return[t,!0]}))),a=this.gridColumns.filter((function(t){return!r.has(t)})),s=i.slice();a.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;)e.getLeafColumns().forEach((function(t){var e=s.indexOf(t)>=0,n=o.indexOf(t)<0;e&&n&&o.push(t)})),e=e.getOriginalParent();if(o.length){var n=o.map((function(t){return s.indexOf(t)})),i=Math.max.apply(Math,GK([],kK(n)));MY(s,t,i+1)}else s.push(t)}else s.push(t)})),this.gridColumns=s}}},e.prototype.isPrimaryColumnGroupsPresent=function(){return this.primaryHeaderRowCount>1},e.prototype.refreshQuickFilterColumns=function(){var t,e=null!==(t=this.isPivotMode()?this.secondaryColumns:this.primaryColumns)&&void 0!==t?t:[];this.groupAutoColumns&&(e=e.concat(this.groupAutoColumns)),this.columnsForQuickFilter=this.gridOptionsService.is("includeHiddenColumnsInQuickFilter")?e:e.filter((function(t){return t.isVisible()||t.isRowGroupActive()}))},e.prototype.placeLockedColumns=function(t){var e=[],o=[],n=[];return t.forEach((function(t){var i=t.getColDef().lockPosition;"right"===i?n.push(t):"left"===i||!0===i?e.push(t):o.push(t)})),GK(GK(GK([],kK(e)),kK(o)),kK(n))},e.prototype.addAutoGroupToGridColumns=function(){if(f$(this.groupAutoColumns))return this.destroyOldColumns(this.groupAutoColsBalancedTree),void(this.groupAutoColsBalancedTree=null);this.gridColumns=this.groupAutoColumns?this.groupAutoColumns.concat(this.gridColumns):this.gridColumns;var t=this.columnFactory.createForAutoGroups(this.groupAutoColumns,this.gridBalancedTree);this.destroyOldColumns(this.groupAutoColsBalancedTree,t),this.groupAutoColsBalancedTree=t,this.gridBalancedTree=t.concat(this.gridBalancedTree)},e.prototype.clearDisplayedAndViewportColumns=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={},this.displayedColumnsLeft=[],this.displayedColumnsRight=[],this.displayedColumnsCenter=[],this.displayedColumns=[],this.viewportColumns=[],this.headerViewportColumns=[],this.viewportColumnsHash=""},e.prototype.updateGroupsAndDisplayedColumns=function(t){this.updateOpenClosedVisibilityInColumnGroups(),this.deriveDisplayedColumns(t),this.refreshFlexedColumns(),this.extractViewport(),this.updateBodyWidths();var e={type:eK.EVENT_DISPLAYED_COLUMNS_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.deriveDisplayedColumns=function(t){this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeLeft,this.displayedColumnsLeft),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeCentre,this.displayedColumnsCenter),this.derivedDisplayedColumnsFromDisplayedTree(this.displayedTreeRight,this.displayedColumnsRight),this.joinDisplayedColumns(),this.setLeftValues(t),this.displayedAutoHeightCols=this.displayedColumns.filter((function(t){return t.isAutoHeight()}))},e.prototype.isAutoRowHeightActive=function(){return this.autoHeightActive},e.prototype.wasAutoRowHeightEverActive=function(){return this.autoHeightActiveAtLeastOnce},e.prototype.joinDisplayedColumns=function(){this.gridOptionsService.is("enableRtl")?this.displayedColumns=this.displayedColumnsRight.concat(this.displayedColumnsCenter).concat(this.displayedColumnsLeft):this.displayedColumns=this.displayedColumnsLeft.concat(this.displayedColumnsCenter).concat(this.displayedColumnsRight)},e.prototype.setLeftValues=function(t){this.setLeftValuesOfColumns(t),this.setLeftValuesOfGroups()},e.prototype.setLeftValuesOfColumns=function(t){var e=this;if(this.primaryColumns){var o=this.primaryColumns.slice(0),n=this.gridOptionsService.is("enableRtl");[this.displayedColumnsLeft,this.displayedColumnsRight,this.displayedColumnsCenter].forEach((function(i){if(n){var r=e.getWidthOfColsInList(i);i.forEach((function(e){r-=e.getActualWidth(),e.setLeft(r,t)}))}else{var a=0;i.forEach((function(e){e.setLeft(a,t),a+=e.getActualWidth()}))}RY(o,i)})),o.forEach((function(e){e.setLeft(null,t)}))}},e.prototype.setLeftValuesOfGroups=function(){[this.displayedTreeLeft,this.displayedTreeRight,this.displayedTreeCentre].forEach((function(t){t.forEach((function(t){t instanceof tK&&t.checkLeft()}))}))},e.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof CY&&e.push(t)}))},e.prototype.extractViewportColumns=function(){this.suppressColumnVirtualisation?(this.viewportColumnsCenter=this.displayedColumnsCenter,this.headerViewportColumnsCenter=this.displayedColumnsCenter):(this.viewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInRowViewport.bind(this)),this.headerViewportColumnsCenter=this.displayedColumnsCenter.filter(this.isColumnInHeaderViewport.bind(this))),this.viewportColumns=this.viewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight),this.headerViewportColumns=this.headerViewportColumnsCenter.concat(this.displayedColumnsLeft).concat(this.displayedColumnsRight)},e.prototype.getVirtualHeaderGroupRow=function(t,e){var o;switch(t){case"left":o=this.viewportRowLeft[e];break;case"right":o=this.viewportRowRight[e];break;default:o=this.viewportRowCenter[e]}return f$(o)&&(o=[]),o},e.prototype.calculateHeaderRows=function(){this.viewportRowLeft={},this.viewportRowRight={},this.viewportRowCenter={};var t={};this.headerViewportColumns.forEach((function(e){return t[e.getId()]=!0}));var e=function(o,n,i){for(var r=!1,a=0;a=0;a--)if(i.has(r[a])){n=a;break}var s=0,l=[],u=0,c=0;for(a=0;an?(l.push(this.displayedColumnsCenter[a]),c+=this.displayedColumnsCenter[a].getFlex(),u+=null!==(e=this.displayedColumnsCenter[a].getMinWidth())&&void 0!==e?e:0):s+=this.displayedColumnsCenter[a].getActualWidth();if(!l.length)return[];var p=[];s+u>this.flexViewportWidth&&(l.forEach((function(t){var e;return t.setActualWidth(null!==(e=t.getMinWidth())&&void 0!==e?e:0,o)})),p=l,l=[]);var d,h=[];t:for(;;){var f=(d=this.flexViewportWidth-s)/c;for(a=0;aC&&(y=C),y){g.setActualWidth(y,o),TY(l,g),c-=g.getFlex(),p.push(g),s+=g.getActualWidth();continue t}h[a]=Math.round(v)}break}var w=d;return l.forEach((function(t,e){t.setActualWidth(Math.min(h[e],w),o),p.push(t),w-=h[e]})),t.skipSetLeft||this.setLeftValues(o),t.updateBodyWidths&&this.updateBodyWidths(),t.fireResizedEvent&&this.dispatchColumnResizedEvent(p,!0,o,l),l},e.prototype.sizeColumnsToFit=function(t,e,o,n){var i,r,a,s,l,u=this;if(void 0===e&&(e="sizeColumnsToFit"),this.shouldQueueResizeOperations)this.resizeOperationQueue.push((function(){return u.sizeColumnsToFit(t,e,o,n)}));else{var c={};n&&(null===(i=null==n?void 0:n.columnLimits)||void 0===i||i.forEach((function(t){var e=t.key,o=function(t,e){var o={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(n=Object.getOwnPropertySymbols(t);is&&t.setActualWidth(s,e,!0)}));!v;){v=!0;var m=t-this.getWidthOfColsInList(f);if(m<=0)h.forEach((function(t){var o,i,r=null!==(i=null===(o=null==c?void 0:c[t.getId()])||void 0===o?void 0:o.minWidth)&&void 0!==i?i:null==n?void 0:n.defaultMinWidth;"number"!=typeof r?t.setMinimum(e):t.setActualWidth(r,e,!0)}));else for(var C=m/this.getWidthOfColsInList(h),w=m,S=h.length-1;S>=0;S--){var b=h[S],_=null==c?void 0:c[b.getId()],x=null!==(r=null==_?void 0:_.minWidth)&&void 0!==r?r:null==n?void 0:n.defaultMinWidth,E=null!==(a=null==_?void 0:_.maxWidth)&&void 0!==a?a:null==n?void 0:n.defaultMaxWidth,T=null!==(s=b.getMinWidth())&&void 0!==s?s:0,D=null!==(l=b.getMaxWidth())&&void 0!==l?l:Number.MAX_VALUE,R="number"==typeof x&&x>T?x:b.getMinWidth(),O="number"==typeof E&&EO?(M=O,y(b),v=!1):0===S&&(M=w),b.setActualWidth(M,e,!0),w-=M}}g.forEach((function(t){t.fireColumnWidthChangedEvent(e)})),this.setLeftValues(e),this.updateBodyWidths(),o||this.dispatchColumnResizedEvent(g,!0,e)}}},e.prototype.buildDisplayedTrees=function(t){var e=[],o=[],n=[];t.forEach((function(t){switch(t.getPinned()){case"left":e.push(t);break;case"right":o.push(t);break;default:n.push(t)}}));var i=new oK;this.displayedTreeLeft=this.displayedGroupCreator.createDisplayedGroups(e,i,"left",this.displayedTreeLeft),this.displayedTreeRight=this.displayedGroupCreator.createDisplayedGroups(o,i,"right",this.displayedTreeRight),this.displayedTreeCentre=this.displayedGroupCreator.createDisplayedGroups(n,i,null,this.displayedTreeCentre),this.updateDisplayedMap()},e.prototype.updateDisplayedMap=function(){var t=this;this.displayedColumnsAndGroupsMap={};var e=function(e){t.displayedColumnsAndGroupsMap[e.getUniqueId()]=e};this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeCentre,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeLeft,e),this.columnUtils.depthFirstAllColumnTreeSearch(this.displayedTreeRight,e)},e.prototype.isDisplayed=function(t){return this.displayedColumnsAndGroupsMap[t.getUniqueId()]===t},e.prototype.updateOpenClosedVisibilityInColumnGroups=function(){var t=this.getAllDisplayedTrees();this.columnUtils.depthFirstAllColumnTreeSearch(t,(function(t){t instanceof tK&&t.calculateDisplayedColumns()}))},e.prototype.getGroupAutoColumns=function(){return this.groupAutoColumns},e.prototype.createGroupAutoColumnsIfNeeded=function(){var t=this.forceRecreateAutoGroups;if(this.forceRecreateAutoGroups=!1,!this.autoGroupsNeedBuilding)return!1;this.autoGroupsNeedBuilding=!1;var e=this.gridOptionsService.isGroupUseEntireRow(this.pivotMode),o=this.pivotMode?this.gridOptionsService.is("pivotSuppressAutoColumn"):this.isGroupSuppressAutoColumn();if(!(this.rowGroupColumns.length>0||this.gridOptionsService.is("treeData"))||o||e)this.groupAutoColumns=null;else{var n=this.autoGroupColService.createAutoGroupColumns(this.rowGroupColumns);if(!this.autoColsEqual(n,this.groupAutoColumns)||t)return this.groupAutoColumns=n,!0}return!1},e.prototype.isGroupSuppressAutoColumn=function(){var t=this.gridOptionsService.get("groupDisplayType");if(t&&LK("custom",t))return!0;var e,o,n=this.gridOptionsService.get("treeDataDisplayType");return!!n&&("custom",(o=["auto","custom"]).indexOf(e=n)<0?(console.warn("AG Grid: '"+e+"' is not a valid treeDataDisplayType value - possible values are: '"+o.join("', '")+"'"),!1):"custom"===e)},e.prototype.autoColsEqual=function(t,e){return xY(t,e,(function(t,e){return t.getColId()===e.getColId()}))},e.prototype.getWidthOfColsInList=function(t){return t.reduce((function(t,e){return t+e.getActualWidth()}),0)},e.prototype.getGridBalancedTree=function(){return this.gridBalancedTree},e.prototype.getFirstDisplayedColumn=function(){var t=this.gridOptionsService.is("enableRtl"),e=["getDisplayedLeftColumns","getDisplayedCenterColumns","getDisplayedRightColumns"];t&&e.reverse();for(var o=0;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("columnUtils")],e)}(qY),zK=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jK=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zK(e,t),e.prototype.createDisplayedGroups=function(t,e,o,n){for(var i=this,r=this.mapOldGroupsById(n),a=[],s=t,l=function(){var t=s;s=[];for(var n=0,l=function(l){var u=n;n=l;var c=t[u],p=(c instanceof tK?c.getProvidedColumnGroup():c).getOriginalParent();if(null!=p){var d=i.createColumnGroup(p,e,r,o);for(h=u;h=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("displayedGroupCreator")],e)}(qY),UK=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$K=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return UK(e,t),e.prototype.setupComponents=function(t){var e=this;t&&t.forEach((function(t){return e.addComponent(t)}))},e.prototype.addComponent=function(t){var e=t.componentName.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase().toUpperCase();this.componentsMappedByName[e]=t.componentClass},e.prototype.getComponentClass=function(t){return this.componentsMappedByName[t]},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("agStackComponentsRegistry")],e)}(qY);function YK(t,e,o){null==o||""==o?XK(t,e):KK(t,e,o)}function KK(t,e,o){t.setAttribute(qK(e),o.toString())}function XK(t,e){t.removeAttribute(qK(e))}function qK(t){return"aria-"+t}function ZK(t,e){e?t.setAttribute("role",e):t.removeAttribute("role")}function QK(t){return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}function JK(t){return parseInt(t.getAttribute("aria-level"),10)}function tX(t){return parseInt(t.getAttribute("aria-posinset"),10)}function eX(t,e){YK(t,"label",e)}function oX(t,e){YK(t,"labelledby",e)}function nX(t,e){YK(t,"description",e)}function iX(t,e){YK(t,"describedby",e)}function rX(t,e){YK(t,"live",e)}function aX(t,e){YK(t,"level",e)}function sX(t,e){YK(t,"disabled",e)}function lX(t,e){YK(t,"hidden",e)}function uX(t,e){YK(t,"activedescendant",e)}function cX(t,e){KK(t,"expanded",e)}function pX(t){XK(t,"expanded")}function dX(t,e){KK(t,"setsize",e)}function hX(t,e){KK(t,"posinset",e)}function fX(t,e){KK(t,"multiselectable",e)}function gX(t,e){KK(t,"rowcount",e)}function vX(t,e){KK(t,"rowindex",e)}function yX(t,e){KK(t,"colcount",e)}function mX(t,e){KK(t,"colindex",e)}function CX(t,e){KK(t,"colspan",e)}function wX(t,e){KK(t,"sort",e)}function SX(t){XK(t,"sort")}function bX(t,e){YK(t,"selected",e)}function _X(t,e){KK(t,"checked",void 0===e?"mixed":e)}function xX(t,e){YK(t,"controls",e.id),oX(e,t.id)}function EX(t,e){return void 0===e?t("ariaIndeterminate","indeterminate"):!0===e?t("ariaChecked","checked"):t("ariaUnchecked","unchecked")}var TX,DX,RX,OX,MX,AX,IX,PX,LX=Object.freeze({__proto__:null,setAriaRole:ZK,getAriaSortState:QK,getAriaLevel:JK,getAriaPosInSet:tX,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:eX,setAriaLabelledBy:oX,setAriaDescription:nX,setAriaDescribedBy:iX,setAriaLive:rX,setAriaLevel:aX,setAriaDisabled:sX,setAriaHidden:lX,setAriaActiveDescendant:uX,setAriaExpanded:cX,removeAriaExpanded:pX,setAriaSetSize:dX,setAriaPosInSet:hX,setAriaMultiSelectable:fX,setAriaRowCount:gX,setAriaRowIndex:vX,setAriaColCount:yX,setAriaColIndex:mX,setAriaColSpan:CX,setAriaSort:wX,removeAriaSort:SX,setAriaSelected:bX,setAriaChecked:_X,setAriaControls:xX,getAriaCheckboxStateName:EX});function NX(){return void 0===TX&&(TX=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),TX}function FX(){if(void 0===DX)if(NX()){var t=navigator.userAgent.match(/version\/(\d+)/i);t&&(DX=null!=t[1]?parseFloat(t[1]):0)}else DX=0;return DX}function kX(){if(void 0===RX){var t=window;RX=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return RX}function GX(){return void 0===OX&&(OX=/(firefox)/i.test(navigator.userAgent)),OX}function VX(){return void 0===MX&&(MX=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),MX}function HX(){return void 0===AX&&(AX=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),AX}function BX(){return!NX()||FX()>=15}function WX(t){if(!t)return null;var e=t.tabIndex,o=t.getAttribute("tabIndex");return-1!==e||null!==o&&(""!==o||GX())?e.toString():null}function zX(){if(!document.body)return-1;var t=1e6,e=navigator.userAgent.toLowerCase().match(/firefox/)?6e6:1e9,o=document.createElement("div");for(document.body.appendChild(o);;){var n=2*t;if(o.style.height=n+"px",n>e||o.clientHeight!==n)break;t=n}return document.body.removeChild(o),t}function jX(){var t,e,o;return null!==(e=null===(t=document.body)||void 0===t?void 0:t.clientWidth)&&void 0!==e?e:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientWidth)||-1}function UX(){var t,e,o;return null!==(e=null===(t=document.body)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:window.innerHeight||(null===(o=document.documentElement)||void 0===o?void 0:o.clientHeight)||-1}function $X(){return null==PX&&YX(),PX}function YX(){var t=document.body,e=document.createElement("div");e.style.width=e.style.height="100px",e.style.opacity="0",e.style.overflow="scroll",e.style.msOverflowStyle="scrollbar",e.style.position="absolute",t.appendChild(e);var o=e.offsetWidth-e.clientWidth;0===o&&0===e.clientWidth&&(o=null),e.parentNode&&e.parentNode.removeChild(e),null!=o&&(PX=o,IX=0===o)}function KX(){return null==IX&&YX(),IX}var XX=Object.freeze({__proto__:null,isBrowserSafari:NX,getSafariVersion:FX,isBrowserChrome:kX,isBrowserFirefox:GX,isMacOsUserAgent:VX,isIOSUserAgent:HX,browserSupportsPreventScroll:BX,getTabIndex:WX,getMaxDivHeight:zX,getBodyWidth:jX,getBodyHeight:UX,getScrollbarWidth:$X,isInvisibleScrollbar:KX});function qX(t,e){return t.toString().padStart(e,"0")}function ZX(t,e){for(var o=[],n=t;n<=e;n++)o.push(n);return o}function QX(t,e,o){return"number"!=typeof t?"":t.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+e)}var JX=Object.freeze({__proto__:null,padStartWidthZeros:qX,createArrayOfNumbers:ZX,cleanNumber:function(t){return"string"==typeof t&&(t=parseInt(t,10)),"number"==typeof t?Math.floor(t):null},decToHex:function(t,e){for(var o="",n=0;n>>=8;return o},formatNumberTwoDecimalPlacesAndCommas:function(t,e,o){return"number"!=typeof t?"":QX(Math.round(100*t)/100,e,o)},formatNumberCommas:QX,sum:function(t){return null==t?null:t.reduce((function(t,e){return t+e}),0)},zeroOrGreater:function(t,e){return t>=0?t:e},oneOrGreater:function(t,e){var o=parseInt(t,10);return!isNaN(o)&&isFinite(o)&&o>0?o:e}}),tq=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};function eq(t,e,o){if(void 0===e&&(e=!0),void 0===o&&(o="-"),!t)return null;var n=[t.getFullYear(),t.getMonth()+1,t.getDate()].map((function(t){return qX(t,2)})).join(o);return e&&(n+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return qX(t,2)})).join(":")),n}var oq=function(t){if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd"}return"th"};function nq(t,e){void 0===e&&(e="YYYY-MM-DD");var o=qX(t.getFullYear(),4),n=["January","February","March","April","May","June","July","August","September","October","November","December"],i=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],r={YYYY:function(){return o.slice(o.length-4,o.length)},YY:function(){return o.slice(o.length-2,o.length)},Y:function(){return""+t.getFullYear()},MMMM:function(){return n[t.getMonth()]},MMM:function(){return n[t.getMonth()].slice(0,3)},MM:function(){return qX(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+oq(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+oq(t.getDate())},DD:function(){return qX(t.getDate(),2)},D:function(){return""+t.getDate()},dddd:function(){return i[t.getDay()]},ddd:function(){return i[t.getDay()].slice(0,3)},dd:function(){return i[t.getDay()].slice(0,2)},do:function(){return""+t.getDay()+oq(t.getDay())},d:function(){return""+t.getDay()}},a=new RegExp(Object.keys(r).join("|"),"g");return e.replace(a,(function(t){return t in r?r[t]():t}))}function iq(t){if(!t)return null;var e=tq(t.split(" "),2),o=e[0],n=e[1];if(!o)return null;var i=o.split("-").map((function(t){return parseInt(t,10)}));if(3!==i.filter((function(t){return!isNaN(t)})).length)return null;var r=tq(i,3),a=r[0],s=r[1],l=r[2],u=new Date(a,s-1,l);if(u.getFullYear()!==a||u.getMonth()!==s-1||u.getDate()!==l)return null;if(!n||"00:00:00"===n)return u;var c=tq(n.split(":").map((function(t){return parseInt(t,10)})),3),p=c[0],d=c[1],h=c[2];return p>=0&&p<24&&u.setHours(p),d>=0&&d<60&&u.setMinutes(d),h>=0&&h<60&&u.setSeconds(h),u}var rq,aq=Object.freeze({__proto__:null,serialiseDate:eq,dateToFormattedString:nq,parseDateTimeFromString:iq}),sq=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a};function lq(t,e,o){for(var n=t.parentElement,i=n&&n.firstChild;i;)e&&i.classList.toggle(e,i===t),o&&i.classList.toggle(o,i!==t),i=i.nextSibling}var uq="[tabindex], input, select, button, textarea, [href]",cq=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function pq(t){var e=Element.prototype.matches||Element.prototype.msMatchesSelector,o=e.call(t,"input, select, button, textarea"),n=e.call(t,cq),i=Dq(t);return o&&!n&&i}function dq(t,e,o){void 0===o&&(o={});var n=o.skipAriaHidden;t.classList.toggle("ag-hidden",!e),n||lX(t,!e)}function hq(t,e,o){void 0===o&&(o={});var n=o.skipAriaHidden;t.classList.toggle("ag-invisible",!e),n||lX(t,!e)}function fq(t,e){var o="disabled",n=e?function(t){return t.setAttribute(o,"")}:function(t){return t.removeAttribute(o)};n(t),Uq(t.querySelectorAll("input"),(function(t){return n(t)}))}function gq(t,e,o){for(var n=0;t;){if(t.classList.contains(e))return!0;if(t=t.parentElement,"number"==typeof o){if(++n>o)break}else if(t===o)break}return!1}function vq(t){var e=window.getComputedStyle(t),o=e.height,n=e.width,i=e.borderTopWidth,r=e.borderRightWidth,a=e.borderBottomWidth,s=e.borderLeftWidth,l=e.paddingTop,u=e.paddingRight,c=e.paddingBottom,p=e.paddingLeft,d=e.marginTop,h=e.marginRight,f=e.marginBottom,g=e.marginLeft,v=e.boxSizing;return{height:parseFloat(o),width:parseFloat(n),borderTopWidth:parseFloat(i),borderRightWidth:parseFloat(r),borderBottomWidth:parseFloat(a),borderLeftWidth:parseFloat(s),paddingTop:parseFloat(l),paddingRight:parseFloat(u),paddingBottom:parseFloat(c),paddingLeft:parseFloat(p),marginTop:parseFloat(d),marginRight:parseFloat(h),marginBottom:parseFloat(f),marginLeft:parseFloat(g),boxSizing:v}}function yq(t){var e=vq(t);return"border-box"===e.boxSizing?e.height-e.paddingTop-e.paddingBottom:e.height}function mq(t){var e=vq(t);return"border-box"===e.boxSizing?e.width-e.paddingLeft-e.paddingRight:e.width}function Cq(t){var e=vq(t),o=e.marginBottom+e.marginTop;return Math.ceil(t.offsetHeight+o)}function wq(t){var e=vq(t),o=e.marginLeft+e.marginRight;return Math.ceil(t.offsetWidth+o)}function Sq(t){var e=t.getBoundingClientRect(),o=vq(t),n=o.borderTopWidth,i=o.borderLeftWidth,r=o.borderRightWidth,a=o.borderBottomWidth;return{top:e.top+(n||0),left:e.left+(i||0),right:e.right+(r||0),bottom:e.bottom+(a||0)}}function bq(){if("boolean"==typeof rq)return rq;var t=document.createElement("div");return t.style.direction="rtl",t.style.width="1px",t.style.height="1px",t.style.position="fixed",t.style.top="0px",t.style.overflow="hidden",t.dir="rtl",t.innerHTML='
\n \n \n
',document.body.appendChild(t),t.scrollLeft=1,rq=0===Math.floor(t.scrollLeft),document.body.removeChild(t),rq}function _q(t,e){var o=t.scrollLeft;return e&&(o=Math.abs(o),kX()&&!bq()&&(o=t.scrollWidth-t.clientWidth-o)),o}function xq(t,e,o){o&&(bq()?e*=-1:(NX()||kX())&&(e=t.scrollWidth-t.clientWidth-e)),t.scrollLeft=e}function Eq(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function Tq(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function Dq(t){return null!==t.offsetParent}function Rq(t){var e=document.createElement("div");return e.innerHTML=(t||"").trim(),e.firstChild}function Oq(t){return t&&t.clientHeight?t.clientHeight:0}function Mq(t){return t&&t.clientWidth?t.clientWidth:0}function Aq(t,e,o){if(!o||o.nextSibling!==e){var n=document.activeElement,i=e.contains(n);o?o.nextSibling?t.insertBefore(e,o.nextSibling):t.appendChild(e):t.firstChild&&t.firstChild!==e&&t.insertAdjacentElement("afterbegin",e),i&&n&&BX()&&n.focus({preventScroll:!0})}}function Iq(t,e){for(var o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(Object.entries(e)),r=i.next();!r.done;r=i.next()){var a=sq(r.value,2),s=a[0],l=a[1];if(s&&s.length&&null!=l){var u=pK(s),c=l.toString(),p=c.replace(/\s*!important/g,""),d=p.length!=c.length?"important":void 0;t.style.setProperty(u,p,d)}}}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}}function Nq(t){return t.clientWidth-1||"object"==typeof i&&i["ag-icon"])return n}var r=document.createElement("span");return r.appendChild(n),r}function qq(t,e,o,n){var i=null,r=o&&o.getColDef().icons;if(r&&(i=r[t]),e&&!i){var a=e.get("icons");a&&(i=a[t])}if(!i){var s=document.createElement("span"),l=Kq[t];return l||(n?l=t:(console.warn("AG Grid: Did not find icon "+t),l="")),s.setAttribute("class","ag-icon ag-icon-"+l),s.setAttribute("unselectable","on"),ZK(s,"presentation"),s}var u=void 0;if("function"==typeof i)u=i();else{if("string"!=typeof i)throw new Error("icon from grid options needs to be a string or a function");u=i}return"string"==typeof u?Rq(u):Bq(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var Zq=Object.freeze({__proto__:null,iconNameClassMap:Kq,createIcon:Xq,createIconNoSpan:qq}),Qq=function(){function t(){}return t.BACKSPACE="Backspace",t.TAB="Tab",t.ENTER="Enter",t.ESCAPE="Escape",t.SPACE=" ",t.LEFT="ArrowLeft",t.UP="ArrowUp",t.RIGHT="ArrowRight",t.DOWN="ArrowDown",t.DELETE="Delete",t.F2="F2",t.PAGE_UP="PageUp",t.PAGE_DOWN="PageDown",t.PAGE_HOME="Home",t.PAGE_END="End",t.A="KeyA",t.C="KeyC",t.D="KeyD",t.V="KeyV",t.X="KeyX",t.Y="KeyY",t.Z="KeyZ",t}();function Jq(t){return!(t.altKey||t.ctrlKey||t.metaKey)&&1===t.key.length}function tZ(t,e,o,n,i){var r=n?n.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;var a={event:e,editing:i,column:n,api:t.api,node:o,data:o.data,colDef:n.getColDef(),context:t.context,columnApi:t.columnApi};return!(!r||!r(a))}function eZ(t,e,o,n){var i=n.getDefinition(),r=i&&i.suppressHeaderKeyboardEvent;return!!h$(r)&&!!r({api:t.api,columnApi:t.columnApi,context:t.context,colDef:i,column:n,headerRowIndex:o,event:e})}function oZ(t){var e;switch(t.keyCode){case 65:e=Qq.A;break;case 67:e=Qq.C;break;case 86:e=Qq.V;break;case 68:e=Qq.D;break;case 90:e=Qq.Z;break;case 89:e=Qq.Y;break;default:e=t.code}return e}function nZ(t,e){return void 0===e&&(e=!1),t===Qq.DELETE||!e&&t===Qq.BACKSPACE&&VX()}var iZ=Object.freeze({__proto__:null,isEventFromPrintableCharacter:Jq,isUserSuppressingKeyboardEvent:tZ,isUserSuppressingHeaderKeyboardEvent:eZ,normaliseQwertyAzerty:oZ,isDeleteKey:nZ});function rZ(t,e,o){if(0===o)return!1;var n=Math.abs(t.clientX-e.clientX),i=Math.abs(t.clientY-e.clientY);return Math.max(n,i)<=o}var aZ=Object.freeze({__proto__:null,areEventsNear:rZ}),sZ=Object.freeze({__proto__:null,sortRowNodesByOrder:function(t,e){if(!t)return!1;for(var o=function(t,o){var n=e[t.id],i=e[o.id],r=void 0!==n,a=void 0!==i;return r&&a?n-i:r||a?r?1:-1:t.__objectId-o.__objectId},n=!1,i=0;i0){n=!0;break}return!!n&&(t.sort(o),!0)},traverseNodesWithKey:function(t,e){var o=[];!function t(n){n&&n.forEach((function(n){if(n.group||n.hasChildren()){o.push(n.key);var i=o.join("|");e(n,i),t(n.childrenAfterGroup),o.pop()}}))}(t)}});function lZ(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}var uZ,cZ=Object.freeze({__proto__:null,convertToSet:lZ}),pZ=function(){return pZ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(fZ||(fZ={})),function(t){t[t.HOVER=0]="HOVER",t[t.FOCUS=1]="FOCUS"}(gZ||(gZ={}));var wZ=function(t){function e(e,o,n){var i=t.call(this)||this;return i.parentComp=e,i.tooltipShowDelayOverride=o,i.tooltipHideDelayOverride=n,i.DEFAULT_SHOW_TOOLTIP_DELAY=2e3,i.DEFAULT_HIDE_TOOLTIP_DELAY=1e4,i.SHOW_QUICK_TOOLTIP_DIFF=1e3,i.FADE_OUT_TOOLTIP_TIMEOUT=1e3,i.INTERACTIVE_HIDE_DELAY=100,i.interactionEnabled=!1,i.isInteractingWithTooltip=!1,i.state=fZ.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return yZ(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.is("tooltipInteraction")&&(this.interactionEnabled=!0),this.tooltipTrigger=this.getTooltipTrigger(),this.tooltipShowDelay=this.getTooltipDelay("show"),this.tooltipHideDelay=this.getTooltipDelay("hide"),this.tooltipMouseTrack=this.gridOptionsService.is("tooltipMouseTrack");var t=this.parentComp.getGui();this.tooltipTrigger===gZ.HOVER&&(this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===gZ.FOCUS&&(this.addManagedListener(t,"focusin",this.onFocusIn.bind(this)),this.addManagedListener(t,"focusout",this.onFocusOut.bind(this))),this.addManagedListener(t,"mousemove",this.onMouseMove.bind(this)),this.interactionEnabled||(this.addManagedListener(t,"mousedown",this.onMouseDown.bind(this)),this.addManagedListener(t,"keydown",this.onKeyDown.bind(this)))},e.prototype.getGridOptionsTooltipDelay=function(t){var e=this.gridOptionsService.getNum(t);if(h$(e))return e<0&&G$((function(){return console.warn("AG Grid: "+t+" should not be lower than 0")}),t+"Warn"),Math.max(200,e)},e.prototype.getTooltipDelay=function(t){var e,o,n,i;return"show"===t?null!==(o=null!==(e=this.getGridOptionsTooltipDelay("tooltipShowDelay"))&&void 0!==e?e:this.tooltipShowDelayOverride)&&void 0!==o?o:this.DEFAULT_SHOW_TOOLTIP_DELAY:null!==(i=null!==(n=this.getGridOptionsTooltipDelay("tooltipHideDelay"))&&void 0!==n?n:this.tooltipHideDelayOverride)&&void 0!==i?i:this.DEFAULT_HIDE_TOOLTIP_DELAY},e.prototype.destroy=function(){this.setToDoNothing(),t.prototype.destroy.call(this)},e.prototype.getTooltipTrigger=function(){var t=this.gridOptionsService.get("tooltipTrigger");return t&&"hover"!==t?gZ.FOCUS:gZ.HOVER},e.prototype.onMouseEnter=function(t){var o=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),HX()||(e.isLocked?this.showTooltipTimeoutId=window.setTimeout((function(){o.prepareToShowTooltip(t)}),this.INTERACTIVE_HIDE_DELAY):this.prepareToShowTooltip(t))},e.prototype.onMouseMove=function(t){this.lastMouseEvent&&(this.lastMouseEvent=t),this.tooltipMouseTrack&&this.state===fZ.SHOWING&&this.tooltipComp&&this.positionTooltip()},e.prototype.onMouseDown=function(){this.setToDoNothing()},e.prototype.onMouseLeave=function(){this.interactionEnabled?this.lockService():this.setToDoNothing()},e.prototype.onFocusIn=function(){this.prepareToShowTooltip()},e.prototype.onFocusOut=function(t){var e,o=t.relatedTarget,n=this.parentComp.getGui(),i=null===(e=this.tooltipComp)||void 0===e?void 0:e.getGui();this.isInteractingWithTooltip||n.contains(o)||this.interactionEnabled&&(null==i?void 0:i.contains(o))||this.setToDoNothing()},e.prototype.onKeyDown=function(){this.setToDoNothing()},e.prototype.prepareToShowTooltip=function(t){if(this.state!=fZ.NOTHING||e.isLocked)return!1;var o=0;return t&&(o=this.isLastTooltipHiddenRecently()?200:this.tooltipShowDelay),this.lastMouseEvent=t||null,this.showTooltipTimeoutId=window.setTimeout(this.showTooltip.bind(this),o),this.state=fZ.WAITING_TO_SHOW,!0},e.prototype.isLastTooltipHiddenRecently=function(){return(new Date).getTime()-e.lastTooltipHideTime1)o.forEach((function(t){return e.addCssClass(t)}));else if(!0!==this.cssClassStates[t]&&t.length){var n=this.getGui();n&&n.classList.add(t),this.cssClassStates[t]=!0}},t.prototype.removeCssClass=function(t){var e=this,o=(t||"").split(" ");if(o.length>1)o.forEach((function(t){return e.removeCssClass(t)}));else if(!1!==this.cssClassStates[t]&&t.length){var n=this.getGui();n&&n.classList.remove(t),this.cssClassStates[t]=!1}},t.prototype.containsCssClass=function(t){var e=this.getGui();return!!e&&e.classList.contains(t)},t.prototype.addOrRemoveCssClass=function(t,e){var o=this;if(t){if(t.indexOf(" ")>=0){var n=(t||"").split(" ");if(n.length>1)return void n.forEach((function(t){return o.addOrRemoveCssClass(t,e)}))}if(this.cssClassStates[t]!==e&&t.length){var i=this.getGui();i&&i.classList.toggle(t,e),this.cssClassStates[t]=e}}},t}(),bZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_Z=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},xZ=new hZ,EZ=function(t){function e(e){var o=t.call(this)||this;return o.displayed=!0,o.visible=!0,o.compId=xZ.next(),o.cssClassManager=new SZ((function(){return o.eGui})),e&&o.setTemplate(e),o}return bZ(e,t),e.prototype.preConstructOnComponent=function(){this.usingBrowserTooltips=this.gridOptionsService.is("enableBrowserTooltips")},e.prototype.getCompId=function(){return this.compId},e.prototype.getTooltipParams=function(){return{value:this.tooltipText,location:"UNKNOWN"}},e.prototype.setTooltip=function(t,e,o){var n=this;this.tooltipText!=t&&(this.tooltipText&&(n.usingBrowserTooltips?n.getGui().removeAttribute("title"):n.tooltipFeature=n.destroyBean(n.tooltipFeature)),null!=t&&(this.tooltipText=t,this.tooltipText&&(n.usingBrowserTooltips?n.getGui().setAttribute("title",n.tooltipText):n.tooltipFeature=n.createBean(new wZ(n,e,o)))))},e.prototype.createChildComponentsFromTags=function(t,e){var o=this;Wq(t.childNodes).forEach((function(n){if(n instanceof HTMLElement){var i=o.createComponentFromElement(n,(function(t){t.getGui()&&o.copyAttributesFromNode(n,t.getGui())}),e);if(i){if(i.addItems&&n.children.length){o.createChildComponentsFromTags(n,e);var r=Array.prototype.slice.call(n.children);i.addItems(r)}o.swapComponentForNode(i,t,n)}else n.childNodes&&o.createChildComponentsFromTags(n,e)}}))},e.prototype.createComponentFromElement=function(t,o,n){var i=t.nodeName,r=n?n[t.getAttribute("ref")]:void 0,a=this.agStackComponentsRegistry.getComponentClass(i);if(a){e.elementGettingCreated=t;var s=new a(r);return s.setParentComponent(this),this.createBean(s,null,o),s}return null},e.prototype.copyAttributesFromNode=function(t,e){zq(t.attributes,(function(t,o){return e.setAttribute(t,o)}))},e.prototype.swapComponentForNode=function(t,e,o){var n=t.getGui();e.replaceChild(n,o),e.insertBefore(document.createComment(o.nodeName),n),this.addDestroyFunc(this.destroyBean.bind(this,t)),this.swapInComponentForQuerySelectors(t,o)},e.prototype.swapInComponentForQuerySelectors=function(t,e){var o=this;this.iterateOverQuerySelectors((function(n){o[n.attributeName]===e&&(o[n.attributeName]=t)}))},e.prototype.iterateOverQuerySelectors=function(t){for(var e=Object.getPrototypeOf(this);null!=e;){var o=e.__agComponentMetaData,n=V$(e.constructor);o&&o[n]&&o[n].querySelectors&&o[n].querySelectors.forEach((function(e){return t(e)})),e=Object.getPrototypeOf(e)}},e.prototype.activateTabIndex=function(t){var e=this.gridOptionsService.getNum("tabIndex")||0;t||(t=[]),t.length||t.push(this.getGui()),t.forEach((function(t){return t.setAttribute("tabindex",e.toString())}))},e.prototype.setTemplate=function(t,e){var o=Rq(t);this.setTemplateFromElement(o,e)},e.prototype.setTemplateFromElement=function(t,e){this.eGui=t,this.eGui.__agComponent=this,this.wireQuerySelectors(),this.getContext()&&this.createChildComponentsFromTags(this.getGui(),e)},e.prototype.createChildComponentsPreConstruct=function(){this.getGui()&&this.createChildComponentsFromTags(this.getGui())},e.prototype.wireQuerySelectors=function(){var t=this;if(this.eGui){var e=this;this.iterateOverQuerySelectors((function(o){var n=function(t){return e[o.attributeName]=t};if(o.refSelector&&t.getAttribute("ref")===o.refSelector)n(t.eGui);else{var i=t.eGui.querySelector(o.querySelector);i&&n(i.__agComponent||i)}}))}},e.prototype.getGui=function(){return this.eGui},e.prototype.getFocusableElement=function(){return this.eGui},e.prototype.getAriaElement=function(){return this.getFocusableElement()},e.prototype.setParentComponent=function(t){this.parentComponent=t},e.prototype.getParentComponent=function(){return this.parentComponent},e.prototype.setGui=function(t){this.eGui=t},e.prototype.queryForHtmlElement=function(t){return this.eGui.querySelector(t)},e.prototype.queryForHtmlInputElement=function(t){return this.eGui.querySelector(t)},e.prototype.appendChild=function(t,e){if(null!=t)if(e||(e=this.eGui),Bq(t))e.appendChild(t);else{var o=t;e.appendChild(o.getGui())}},e.prototype.isDisplayed=function(){return this.displayed},e.prototype.setVisible=function(t,e){if(void 0===e&&(e={}),t!==this.visible){this.visible=t;var o=e.skipAriaHidden;hq(this.eGui,t,{skipAriaHidden:o})}},e.prototype.setDisplayed=function(t,o){if(void 0===o&&(o={}),t!==this.displayed){this.displayed=t;var n=o.skipAriaHidden;dq(this.eGui,t,{skipAriaHidden:n});var i={type:e.EVENT_DISPLAYED_CHANGED,visible:this.displayed};this.dispatchEvent(i)}},e.prototype.destroy=function(){this.tooltipFeature&&(this.tooltipFeature=this.destroyBean(this.tooltipFeature)),this.parentComponent&&(this.parentComponent=void 0);var e=this.eGui;e&&e.__agComponent&&(e.__agComponent=void 0),t.prototype.destroy.call(this)},e.prototype.addGuiEventListener=function(t,e,o){var n=this;this.eGui.addEventListener(t,e,o),this.addDestroyFunc((function(){return n.eGui.removeEventListener(t,e)}))},e.prototype.addCssClass=function(t){this.cssClassManager.addCssClass(t)},e.prototype.removeCssClass=function(t){this.cssClassManager.removeCssClass(t)},e.prototype.containsCssClass=function(t){return this.cssClassManager.containsCssClass(t)},e.prototype.addOrRemoveCssClass=function(t,e){this.cssClassManager.addOrRemoveCssClass(t,e)},e.prototype.getAttribute=function(t){var e=this.eGui;return e?e.getAttribute(t):null},e.prototype.getRefElement=function(t){return this.queryForHtmlElement('[ref="'+t+'"]')},e.EVENT_DISPLAYED_CHANGED="displayedChanged",_Z([aY("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),_Z([oY],e.prototype,"preConstructOnComponent",null),_Z([oY],e.prototype,"createChildComponentsPreConstruct",null),e}(qY);function TZ(t){return DZ.bind(this,"[ref="+t+"]",t)}function DZ(t,e,o,n,i){null!==t?"number"!=typeof i?function(t,e,o){var n=function(t,e){return t.__agComponentMetaData||(t.__agComponentMetaData={}),t.__agComponentMetaData[e]||(t.__agComponentMetaData[e]={}),t.__agComponentMetaData[e]}(t,V$(t.constructor));n[e]||(n[e]=[]),n[e].push(o)}(o,"querySelectors",{attributeName:n,querySelector:t,refSelector:e}):console.error("AG Grid: QuerySelector should be on an attribute"):console.error("AG Grid: QuerySelector selector should not be null")}var RZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),OZ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},MZ=function(t){function e(){return t.call(this,'\n ')||this}return RZ(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t;var e=this.columnModel.getDisplayNameForColumn(t.column,"header",!0),o=this.localeService.getLocaleTextFunc();this.eFloatingFilterText.setDisabled(!0).setInputAriaLabel(e+" "+o("ariaFilterInput","Filter Input"))},e.prototype.onParentModelChanged=function(t){var e=this;t?this.params.parentFilterInstance((function(o){if(o.getModelAsString){var n=o.getModelAsString(t);e.eFloatingFilterText.setValue(n)}})):this.eFloatingFilterText.setValue("")},e.prototype.onParamsUpdated=function(t){this.init(t)},OZ([TZ("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),OZ([aY("columnModel")],e.prototype,"columnModel",void 0),e}(EZ),AZ=function(){function t(t,e,o,n){var i=this;this.alive=!0,this.context=t,this.eParent=n,e.getDateCompDetails(o).newAgStackInstance().then((function(e){i.alive?(i.dateComp=e,e&&(n.appendChild(e.getGui()),e.afterGuiAttached&&e.afterGuiAttached(),i.tempValue&&e.setDate(i.tempValue),null!=i.disabled&&i.setDateCompDisabled(i.disabled))):t.destroyBean(e)}))}return t.prototype.destroy=function(){this.alive=!1,this.dateComp=this.context.destroyBean(this.dateComp)},t.prototype.getDate=function(){return this.dateComp?this.dateComp.getDate():this.tempValue},t.prototype.setDate=function(t){this.dateComp?this.dateComp.setDate(t):this.tempValue=t},t.prototype.setDisabled=function(t){this.dateComp?this.setDateCompDisabled(t):this.disabled=t},t.prototype.setDisplayed=function(t){dq(this.eParent,t)},t.prototype.setInputPlaceholder=function(t){this.dateComp&&this.dateComp.setInputPlaceholder&&this.dateComp.setInputPlaceholder(t)},t.prototype.setInputAriaLabel=function(t){this.dateComp&&this.dateComp.setInputAriaLabel&&this.dateComp.setInputAriaLabel(t)},t.prototype.afterGuiAttached=function(t){this.dateComp&&"function"==typeof this.dateComp.afterGuiAttached&&this.dateComp.afterGuiAttached(t)},t.prototype.updateParams=function(t){var e;(null===(e=this.dateComp)||void 0===e?void 0:e.onParamsUpdated)&&"function"==typeof this.dateComp.onParamsUpdated&&this.dateComp.onParamsUpdated(t)},t.prototype.setDateCompDisabled=function(t){null!=this.dateComp&&null!=this.dateComp.setDisabled&&this.dateComp.setDisabled(t)},t}(),IZ=function(){function t(){this.customFilterOptions={}}return t.prototype.init=function(t,e){this.filterOptions=t.filterOptions||e,this.mapCustomOptions(),this.selectDefaultItem(t)},t.prototype.getFilterOptions=function(){return this.filterOptions},t.prototype.mapCustomOptions=function(){var t=this;this.filterOptions&&this.filterOptions.forEach((function(e){"string"!=typeof e&&([["displayKey"],["displayName"],["predicate","test"]].every((function(t){return!!t.some((function(t){return null!=e[t]}))||(console.warn("AG Grid: ignoring FilterOptionDef as it doesn't contain one of '"+t+"'"),!1)}))?t.customFilterOptions[e.displayKey]=e:t.filterOptions=t.filterOptions.filter((function(t){return t===e}))||[])}))},t.prototype.selectDefaultItem=function(t){if(t.defaultOption)this.defaultOption=t.defaultOption;else if(this.filterOptions.length>=1){var e=this.filterOptions[0];"string"==typeof e?this.defaultOption=e:e.displayKey?this.defaultOption=e.displayKey:console.warn("AG Grid: invalid FilterOptionDef supplied as it doesn't contain a 'displayKey'")}else console.warn("AG Grid: no filter options for filter")},t.prototype.getDefaultOption=function(){return this.defaultOption},t.prototype.getCustomOption=function(t){return this.customFilterOptions[t]},t}(),PZ={applyFilter:"Apply",clearFilter:"Clear",resetFilter:"Reset",cancelFilter:"Cancel",textFilter:"Text Filter",numberFilter:"Number Filter",dateFilter:"Date Filter",setFilter:"Set Filter",filterOoo:"Filter...",empty:"Choose One",equals:"Equals",notEqual:"Not equal",lessThan:"Less than",greaterThan:"Greater than",inRange:"In range",inRangeStart:"From",inRangeEnd:"To",lessThanOrEqual:"Less than or equals",greaterThanOrEqual:"Greater than or equals",contains:"Contains",notContains:"Not contains",startsWith:"Starts with",endsWith:"Ends with",blank:"Blank",notBlank:"Not blank",andCondition:"AND",orCondition:"OR",dateFormatOoo:"yyyy-mm-dd"},LZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),NZ=function(){return NZ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},kZ=function(t){function e(e,o){void 0===o&&(o={});var n=t.call(this)||this;return n.eFocusableElement=e,n.callbacks=o,n.callbacks=NZ({shouldStopEventPropagation:function(){return!1},onTabKeyDown:function(t){if(!t.defaultPrevented){var e=n.focusService.findNextFocusableElement(n.eFocusableElement,!1,t.shiftKey);e&&(e.focus(),t.preventDefault())}}},o),n}return LZ(e,t),e.prototype.postConstruct=function(){this.eFocusableElement.classList.add(e.FOCUS_MANAGED_CLASS),this.addKeyDownListeners(this.eFocusableElement),this.callbacks.onFocusIn&&this.addManagedListener(this.eFocusableElement,"focusin",this.callbacks.onFocusIn),this.callbacks.onFocusOut&&this.addManagedListener(this.eFocusableElement,"focusout",this.callbacks.onFocusOut)},e.prototype.addKeyDownListeners=function(t){var e=this;this.addManagedListener(t,"keydown",(function(t){t.defaultPrevented||HY(t)||(e.callbacks.shouldStopEventPropagation(t)?VY(t):t.key===Qq.TAB?e.callbacks.onTabKeyDown(t):e.callbacks.handleKeyDown&&e.callbacks.handleKeyDown(t))}))},e.FOCUS_MANAGED_CLASS="ag-focus-managed",FZ([aY("focusService")],e.prototype,"focusService",void 0),FZ([nY],e.prototype,"postConstruct",null),e}(qY),GZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),VZ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},HZ="ag-resizer-wrapper",BZ='
\n
\n
\n
\n
\n
\n
\n
\n
\n
',WZ=function(t){function e(e,o){var n=t.call(this)||this;return n.element=e,n.dragStartPosition={x:0,y:0},n.position={x:0,y:0},n.lastSize={width:-1,height:-1},n.positioned=!1,n.resizersAdded=!1,n.resizeListeners=[],n.boundaryEl=null,n.isResizing=!1,n.isMoving=!1,n.resizable={},n.movable=!1,n.currentResizer=null,n.config=Object.assign({},{popup:!1},o),n}return GZ(e,t),e.prototype.center=function(){var t=this.offsetParent,e=t.clientHeight,o=t.clientWidth/2-this.getWidth()/2,n=e/2-this.getHeight()/2;this.offsetElement(o,n)},e.prototype.initialisePosition=function(){if(!this.positioned){var t=this.config,e=t.centered,o=t.forcePopupParentAsOffsetParent,n=t.minWidth,i=t.width,r=t.minHeight,a=t.height,s=t.x,l=t.y;this.offsetParent||this.setOffsetParent();var u=0,c=0,p=!!this.element.offsetParent;if(p){var d=this.findBoundaryElement(),h=window.getComputedStyle(d);if(null!=h.minWidth){var f=d.offsetWidth-this.element.offsetWidth;c=parseInt(h.minWidth,10)-f}if(null!=h.minHeight){var g=d.offsetHeight-this.element.offsetHeight;u=parseInt(h.minHeight,10)-g}}if(this.minHeight=r||u,this.minWidth=n||c,i&&this.setWidth(i),a&&this.setHeight(a),i&&a||this.refreshSize(),e)this.center();else if(s||l)this.offsetElement(s,l);else if(p&&o){var v=!0;if((d=this.boundaryEl)||(d=this.findBoundaryElement(),v=!1),d){var y=parseFloat(d.style.top),m=parseFloat(d.style.left);v?this.offsetElement(isNaN(m)?0:m,isNaN(y)?0:y):this.setPosition(m,y)}}this.positioned=!!this.offsetParent}},e.prototype.isPositioned=function(){return this.positioned},e.prototype.getPosition=function(){return this.position},e.prototype.setMovable=function(t,e){if(this.config.popup&&t!==this.movable){this.movable=t;var o=this.moveElementDragListener||{eElement:e,onDragStart:this.onMoveStart.bind(this),onDragging:this.onMove.bind(this),onDragStop:this.onMoveEnd.bind(this)};t?(this.dragService.addDragSource(o),this.moveElementDragListener=o):(this.dragService.removeDragSource(o),this.moveElementDragListener=void 0)}},e.prototype.setResizable=function(t){var e=this;if(this.clearResizeListeners(),t?this.addResizers():this.removeResizers(),"boolean"==typeof t){if(!1===t)return;t={topLeft:t,top:t,topRight:t,right:t,bottomRight:t,bottom:t,bottomLeft:t,left:t}}Object.keys(t).forEach((function(o){var n=!!t[o],i=e.getResizerElement(o),r={dragStartPixels:0,eElement:i,onDragStart:function(t){return e.onResizeStart(t,o)},onDragging:e.onResize.bind(e),onDragStop:function(t){return e.onResizeEnd(t,o)}};(n||!e.isAlive()&&!n)&&(n?(e.dragService.addDragSource(r),e.resizeListeners.push(r),i.style.pointerEvents="all"):i.style.pointerEvents="none",e.resizable[o]=n)}))},e.prototype.removeSizeFromEl=function(){this.element.style.removeProperty("height"),this.element.style.removeProperty("width"),this.element.style.removeProperty("flex")},e.prototype.restoreLastSize=function(){this.element.style.flex="0 0 auto";var t=this.lastSize,e=t.height,o=t.width;-1!==o&&(this.element.style.width=o+"px"),-1!==e&&(this.element.style.height=e+"px")},e.prototype.getHeight=function(){return this.element.offsetHeight},e.prototype.setHeight=function(t){var e=this.config.popup,o=this.element,n=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Vq(o,t),t=Cq(o),n=!0;else if(t=Math.max(this.minHeight,t),this.positioned){var i=this.getAvailableHeight();i&&t>i&&(t=i)}this.getHeight()!==t&&(n?(o.style.maxHeight="unset",o.style.minHeight="unset"):e?Vq(o,t):(o.style.height=t+"px",o.style.flex="0 0 auto",this.lastSize.height="number"==typeof t?t:parseFloat(t)))},e.prototype.getAvailableHeight=function(){var t=this.config,e=t.popup,o=t.forcePopupParentAsOffsetParent;this.positioned||this.initialisePosition();var n=this.offsetParent.clientHeight;if(!n)return null;var i=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=e?this.position.y:i.top,s=e?0:r.top,l=0;if(o){var u=this.element.parentElement;u&&(l=u.getBoundingClientRect().bottom-i.bottom)}return n+s-a-l},e.prototype.getWidth=function(){return this.element.offsetWidth},e.prototype.setWidth=function(t){var e=this.element,o=this.config.popup,n=!1;if("string"==typeof t&&-1!==t.indexOf("%"))Gq(e,t),t=wq(e),n=!0;else if(this.positioned){t=Math.max(this.minWidth,t);var i=this.offsetParent.clientWidth,r=o?this.position.x:this.element.getBoundingClientRect().left;i&&t+r>i&&(t=i-r)}this.getWidth()!==t&&(n?(e.style.maxWidth="unset",e.style.minWidth="unset"):this.config.popup?Gq(e,t):(e.style.width=t+"px",e.style.flex=" unset",this.lastSize.width="number"==typeof t?t:parseFloat(t)))},e.prototype.offsetElement=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0);var o=this.config.forcePopupParentAsOffsetParent?this.boundaryEl:this.element;o&&(this.popupService.positionPopup({ePopup:o,keepWithinBounds:!0,skipObserver:this.movable||this.isResizable(),updatePosition:function(){return{x:t,y:e}}}),this.setPosition(parseFloat(o.style.left),parseFloat(o.style.top)))},e.prototype.constrainSizeToAvailableHeight=function(t){var e=this;this.config.forcePopupParentAsOffsetParent&&(t?this.resizeObserverSubscriber=this.resizeObserverService.observeResize(this.popupService.getPopupParent(),(function(){var t=e.getAvailableHeight();e.element.style.setProperty("max-height",t+"px")})):(this.element.style.removeProperty("max-height"),this.resizeObserverSubscriber&&(this.resizeObserverSubscriber(),this.resizeObserverSubscriber=void 0)))},e.prototype.setPosition=function(t,e){this.position.x=t,this.position.y=e},e.prototype.updateDragStartPosition=function(t,e){this.dragStartPosition={x:t,y:e}},e.prototype.calculateMouseMovement=function(t){var e=t.e,o=t.isLeft,n=t.isTop,i=t.anywhereWithin,r=t.topBuffer,a=e.clientX-this.dragStartPosition.x,s=e.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(e,!!o,!!i,a)?0:a,movementY:this.shouldSkipY(e,!!n,r,s)?0:s}},e.prototype.shouldSkipX=function(t,e,o,n){var i=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),a=this.boundaryEl.getBoundingClientRect(),s=this.config.popup?this.position.x:i.left,l=s<=0&&r.left>=t.clientX||r.right<=t.clientX&&r.right<=a.right;return!!l||(e?n<0&&t.clientX>s+r.left||n>0&&t.clientXa.right||n>0&&t.clientXa.right||n>0&&t.clientX=t.clientY||r.bottom<=t.clientY&&r.bottom<=a.bottom;return!!l||(e?n<0&&t.clientY>s+r.top+o||n>0&&t.clientYa.bottom||n>0&&t.clientYthis.element.parentElement.offsetHeight&&(x=!0),x||this.setHeight(_)}this.updateDragStartPosition(t.clientX,t.clientY),((o||n)&&v||y)&&this.offsetElement(f+v,g+y)}},e.prototype.onResizeEnd=function(t,e){this.isResizing=!1,this.currentResizer=null,this.boundaryEl=null;var o={type:"resize",api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi};this.element.classList.remove("ag-resizing"),this.resizerMap[e].element.classList.remove("ag-active"),this.dispatchEvent(o)},e.prototype.refreshSize=function(){var t=this.element;this.config.popup&&(this.config.width||this.setWidth(t.offsetWidth),this.config.height||this.setHeight(t.offsetHeight))},e.prototype.onMoveStart=function(t){this.boundaryEl=this.findBoundaryElement(),this.positioned||this.initialisePosition(),this.isMoving=!0,this.element.classList.add("ag-moving"),this.updateDragStartPosition(t.clientX,t.clientY)},e.prototype.onMove=function(t){if(this.isMoving){var e,o=this.position,n=o.x,i=o.y;this.config.calculateTopBuffer&&(e=this.config.calculateTopBuffer());var r=this.calculateMouseMovement({e:t,isTop:!0,anywhereWithin:!0,topBuffer:e}),a=r.movementX,s=r.movementY;this.offsetElement(n+a,i+s),this.updateDragStartPosition(t.clientX,t.clientY)}},e.prototype.onMoveEnd=function(){this.isMoving=!1,this.boundaryEl=null,this.element.classList.remove("ag-moving")},e.prototype.setOffsetParent=function(){this.config.forcePopupParentAsOffsetParent?this.offsetParent=this.popupService.getPopupParent():this.offsetParent=this.element.offsetParent},e.prototype.findBoundaryElement=function(){for(var t=this.element;t;){if("static"!==window.getComputedStyle(t).position)return t;t=t.parentElement}return this.element},e.prototype.clearResizeListeners=function(){for(;this.resizeListeners.length;){var t=this.resizeListeners.pop();this.dragService.removeDragSource(t)}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.moveElementDragListener&&this.dragService.removeDragSource(this.moveElementDragListener),this.constrainSizeToAvailableHeight(!1),this.clearResizeListeners(),this.removeResizers()},VZ([aY("popupService")],e.prototype,"popupService",void 0),VZ([aY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),VZ([aY("dragService")],e.prototype,"dragService",void 0),e}(qY),zZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jZ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},UZ=function(t){function e(e){var o=t.call(this)||this;return o.filterNameKey=e,o.applyActive=!1,o.hidePopup=null,o.debouncePending=!1,o.appliedModel=null,o}return zZ(e,t),e.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new kZ(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new WZ(this.getPositionableElement(),{forcePopupParentAsOffsetParent:!0}),this.createBean(this.positionableFeature)},e.prototype.handleKeyDown=function(t){},e.prototype.getFilterTitle=function(){return this.translate(this.filterNameKey)},e.prototype.isFilterActive=function(){return!!this.appliedModel},e.prototype.resetTemplate=function(t){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit);var o='\n
\n
\n '+this.createBodyTemplate()+"\n
\n
";this.setTemplate(o,t),(e=this.getGui())&&e.addEventListener("submit",this.onFormSubmit)},e.prototype.isReadOnly=function(){return!!this.providedFilterParams.readOnly},e.prototype.init=function(t){var e=this;this.setParams(t),this.resetUiToDefaults(!0).then((function(){e.updateUiVisibility(),e.setupOnBtApplyDebounce()}))},e.prototype.setParams=function(t){this.providedFilterParams=t,this.applyActive=e.isUseApplyButton(t),this.createButtonPanel()},e.prototype.createButtonPanel=function(){var t=this,e=this.providedFilterParams.buttons;if(!(!e||e.length<1||this.isReadOnly())){var o=document.createElement("div");o.classList.add("ag-filter-apply-panel"),lZ(e).forEach((function(e){return function(e){var n,i;switch(e){case"apply":n=t.translate("applyFilter"),i=function(e){return t.onBtApply(!1,!1,e)};break;case"clear":n=t.translate("clearFilter"),i=function(){return t.onBtClear()};break;case"reset":n=t.translate("resetFilter"),i=function(){return t.onBtReset()};break;case"cancel":n=t.translate("cancelFilter"),i=function(e){t.onBtCancel(e)};break;default:return void console.warn("AG Grid: Unknown button type specified")}var r=Rq(''+n+"\n ");o.appendChild(r),t.addManagedListener(r,"click",i)}(e)})),this.getGui().appendChild(o)}},e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.setupOnBtApplyDebounce=function(){var t=this,o=e.getDebounceMs(this.providedFilterParams,this.getDefaultDebounceMs()),n=$$(this.checkApplyDebounce.bind(this),o);this.onBtApplyDebounce=function(){t.debouncePending=!0,n()}},e.prototype.checkApplyDebounce=function(){this.debouncePending&&(this.debouncePending=!1,this.onBtApply())},e.prototype.getModel=function(){return this.appliedModel?this.appliedModel:null},e.prototype.setModel=function(t){var e=this;return(null!=t?this.setModelIntoUi(t):this.resetUiToDefaults()).then((function(){e.updateUiVisibility(),e.applyModel("api")}))},e.prototype.onBtCancel=function(t){var e=this;this.resetUiToActiveModel(this.getModel(),(function(){e.handleCancelEnd(t)}))},e.prototype.handleCancelEnd=function(t){this.providedFilterParams.closeOnApply&&this.close(t)},e.prototype.resetUiToActiveModel=function(t,e){var o=this,n=function(){o.onUiChanged(!1,"prevent"),null==e||e()};null!=t?this.setModelIntoUi(t).then(n):this.resetUiToDefaults().then(n)},e.prototype.onBtClear=function(){var t=this;this.resetUiToDefaults().then((function(){return t.onUiChanged()}))},e.prototype.onBtReset=function(){this.onBtClear(),this.onBtApply()},e.prototype.applyModel=function(t){var e=this.getModelFromUi();if(!this.isModelValid(e))return!1;var o=this.appliedModel;return this.appliedModel=e,!this.areModelsEqual(o,e)},e.prototype.isModelValid=function(t){return!0},e.prototype.onFormSubmit=function(t){t.preventDefault()},e.prototype.onBtApply=function(t,e,o){void 0===t&&(t=!1),void 0===e&&(e=!1),o&&o.preventDefault(),this.applyModel(e?"rowDataUpdated":"ui")&&this.providedFilterParams.filterChangedCallback({afterFloatingFilter:t,afterDataChange:e,source:"columnFilter"}),this.providedFilterParams.closeOnApply&&this.applyActive&&!t&&!e&&this.close(o)},e.prototype.onNewRowsLoaded=function(){},e.prototype.close=function(t){if(this.hidePopup){var e,o=t,n=o&&o.key;"Enter"!==n&&"Space"!==n||(e={keyboardEvent:o}),this.hidePopup(e),this.hidePopup=null}},e.prototype.onUiChanged=function(t,e){if(void 0===t&&(t=!1),this.updateUiVisibility(),this.providedFilterParams.filterModifiedCallback(),this.applyActive&&!this.isReadOnly()){var o=this.isModelValid(this.getModelFromUi());fq(this.getRefElement("applyFilterButton"),!o)}t&&!e||"immediately"===e?this.onBtApply(t):(this.applyActive||e)&&"debounce"!==e||this.onBtApplyDebounce()},e.prototype.afterGuiAttached=function(t){t&&(this.hidePopup=t.hidePopup),this.refreshFilterResizer(null==t?void 0:t.container)},e.prototype.refreshFilterResizer=function(t){if(this.positionableFeature&&"toolPanel"!==t){var e="floatingFilter"===t,o=this.positionableFeature,n=this.gridOptionsService;e?(o.restoreLastSize(),o.setResizable(n.is("enableRtl")?{bottom:!0,bottomLeft:!0,left:!0}:{bottom:!0,bottomRight:!0,right:!0})):(this.positionableFeature.removeSizeFromEl(),this.positionableFeature.setResizable(!1)),this.positionableFeature.constrainSizeToAvailableHeight(!0)}},e.prototype.afterGuiDetached=function(){this.checkApplyDebounce(),this.positionableFeature&&this.positionableFeature.constrainSizeToAvailableHeight(!1)},e.getDebounceMs=function(t,o){return e.isUseApplyButton(t)?(null!=t.debounceMs&&console.warn("AG Grid: debounceMs is ignored when apply button is present"),0):null!=t.debounceMs?t.debounceMs:o},e.isUseApplyButton=function(t){return!!t.buttons&&t.buttons.indexOf("apply")>=0},e.prototype.destroy=function(){var e=this.getGui();e&&e.removeEventListener("submit",this.onFormSubmit),this.hidePopup=null,this.positionableFeature&&(this.positionableFeature=this.destroyBean(this.positionableFeature)),t.prototype.destroy.call(this)},e.prototype.translate=function(t){return this.localeService.getLocaleTextFunc()(t,PZ[t])},e.prototype.getCellValue=function(t){var e=this.providedFilterParams,o=e.api,n=e.colDef,i=e.column,r=e.columnApi,a=e.context;return this.providedFilterParams.valueGetter({api:o,colDef:n,column:i,columnApi:r,context:a,data:t.data,getValue:function(e){return t.data[e]},node:t})},e.prototype.getPositionableElement=function(){return this.eFilterBody},jZ([aY("rowModel")],e.prototype,"rowModel",void 0),jZ([TZ("eFilterBody")],e.prototype,"eFilterBody",void 0),jZ([nY],e.prototype,"postConstruct",null),e}(EZ),$Z=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),YZ=function(t){function e(e,o){var n=t.call(this,o)||this;return n.labelSeparator="",n.labelAlignment="left",n.disabled=!1,n.label="",n.config=e||{},n}return $Z(e,t),e.prototype.postConstruct=function(){this.addCssClass("ag-labeled"),this.eLabel.classList.add("ag-label");var t=this.config,e=t.labelSeparator,o=t.label,n=t.labelWidth,i=t.labelAlignment;null!=e&&this.setLabelSeparator(e),null!=o&&this.setLabel(o),null!=n&&this.setLabelWidth(n),this.setLabelAlignment(i||this.labelAlignment),this.refreshLabel()},e.prototype.refreshLabel=function(){Eq(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(dq(this.eLabel,!1),ZK(this.eLabel,"presentation")):(dq(this.eLabel,!0),ZK(this.eLabel,null))},e.prototype.setLabelSeparator=function(t){return this.labelSeparator===t||(this.labelSeparator=t,null!=this.label&&this.refreshLabel()),this},e.prototype.getLabelId=function(){return this.eLabel.id=this.eLabel.id||"ag-"+this.getCompId()+"-label",this.eLabel.id},e.prototype.getLabel=function(){return this.label},e.prototype.setLabel=function(t){return this.label===t||(this.label=t,this.refreshLabel()),this},e.prototype.setLabelAlignment=function(t){var e=this.getGui().classList;return e.toggle("ag-label-align-left","left"===t),e.toggle("ag-label-align-right","right"===t),e.toggle("ag-label-align-top","top"===t),this},e.prototype.setLabelEllipsis=function(t){return this.eLabel.classList.toggle("ag-label-ellipsis",t),this},e.prototype.setLabelWidth=function(t){return null==this.label||kq(this.eLabel,t),this},e.prototype.setDisabled=function(t){t=!!t;var e=this.getGui();return fq(e,t),e.classList.toggle("ag-disabled",t),this.disabled=t,this},e.prototype.isDisabled=function(){return!!this.disabled},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(EZ),KZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),XZ=function(t){function e(e,o,n){var i=t.call(this,e,o)||this;return i.className=n,i}return KZ(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.className&&this.addCssClass(this.className)},e.prototype.onValueChange=function(t){var e=this;return this.addManagedListener(this,eK.EVENT_FIELD_VALUE_CHANGED,(function(){return t(e.getValue())})),this},e.prototype.getWidth=function(){return this.getGui().clientWidth},e.prototype.setWidth=function(t){return Gq(this.getGui(),t),this},e.prototype.getPreviousValue=function(){return this.previousValue},e.prototype.getValue=function(){return this.value},e.prototype.setValue=function(t,e){return this.value===t||(this.previousValue=this.value,this.value=t,e||this.dispatchEvent({type:eK.EVENT_FIELD_VALUE_CHANGED})),this},e}(YZ),qZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ZZ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},QZ=function(t){function e(e){var o=t.call(this,e,(null==e?void 0:e.template)||'\n ',null==e?void 0:e.className)||this;if(o.isPickerDisplayed=!1,o.skipClick=!1,o.pickerGap=4,o.hideCurrentPicker=null,o.ariaRole=null==e?void 0:e.ariaRole,o.onPickerFocusIn=o.onPickerFocusIn.bind(o),o.onPickerFocusOut=o.onPickerFocusOut.bind(o),!e)return o;var n=e.pickerGap,i=e.maxPickerHeight,r=e.variableWidth,a=e.minPickerWidth,s=e.maxPickerWidth;return null!=n&&(o.pickerGap=n),o.variableWidth=!!r,null!=i&&o.setPickerMaxHeight(i),null!=a&&o.setPickerMinWidth(a),null!=s&&o.setPickerMaxWidth(s),o}return qZ(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setupAria();var e="ag-"+this.getCompId()+"-display";this.eDisplayField.setAttribute("id",e);var o=this.getAriaElement();iX(o,e),this.addManagedListener(o,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(this.eLabel,"mousedown",this.onLabelOrWrapperMouseDown.bind(this)),this.addManagedListener(this.eWrapper,"mousedown",this.onLabelOrWrapperMouseDown.bind(this));var n=this.config.pickerIcon;if(n){var i=qq(n,this.gridOptionsService);i&&this.eIcon.appendChild(i)}},e.prototype.setupAria=function(){var t=this.getAriaElement();t.setAttribute("tabindex",(this.gridOptionsService.getNum("tabIndex")||0).toString()),cX(t,!1),this.ariaRole&&ZK(t,this.ariaRole)},e.prototype.refreshLabel=function(){var e;oX(this.getAriaElement(),null!==(e=this.getLabelId())&&void 0!==e?e:""),t.prototype.refreshLabel.call(this)},e.prototype.onLabelOrWrapperMouseDown=function(){this.skipClick?this.skipClick=!1:this.isDisabled()||(this.isPickerDisplayed?this.hidePicker():this.showPicker())},e.prototype.onKeyDown=function(t){switch(t.key){case Qq.UP:case Qq.DOWN:case Qq.ENTER:case Qq.SPACE:t.preventDefault(),this.onLabelOrWrapperMouseDown();break;case Qq.ESCAPE:this.isPickerDisplayed&&(t.preventDefault(),t.stopPropagation(),this.hideCurrentPicker&&this.hideCurrentPicker())}},e.prototype.showPicker=function(){this.isPickerDisplayed=!0,this.pickerComponent||(this.pickerComponent=this.createPickerComponent());var t=this.pickerComponent.getGui();t.addEventListener("focusin",this.onPickerFocusIn),t.addEventListener("focusout",this.onPickerFocusOut),this.hideCurrentPicker=this.renderAndPositionPicker(),this.toggleExpandedStyles(!0)},e.prototype.renderAndPositionPicker=function(){var t=this,e=this.gridOptionsService.getDocument(),o=this.pickerComponent.getGui();this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")||(this.destroyMouseWheelFunc=this.addManagedListener(e.body,"wheel",(function(e){o.contains(e.target)||t.hidePicker()})));var n=this.localeService.getLocaleTextFunc(),i=this.config,r=i.pickerType,a=i.pickerAriaLabelKey,s=i.pickerAriaLabelValue,l=i.modalPicker,u={modal:void 0===l||l,eChild:o,closeOnEsc:!0,closedCallback:function(){var o=e.activeElement===e.body;t.beforeHidePicker(),o&&t.isAlive()&&t.getFocusableElement().focus()},ariaLabel:n(a,s)},c=this.popupService.addPopup(u),p=this,d=p.maxPickerHeight,h=p.minPickerWidth,f=p.maxPickerWidth,g=p.pickerGap;p.variableWidth?(h&&(o.style.minWidth=h),o.style.width=Hq(wq(this.eWrapper)),f&&(o.style.maxWidth=f)):kq(o,null!=f?f:wq(this.eWrapper));var v=null!=d?d:yq(this.popupService.getPopupParent())+"px";o.style.setProperty("max-height",v),o.style.position="absolute";var y=this.gridOptionsService.is("enableRtl")?"right":"left";return this.popupService.positionPopupByComponent({type:r,eventSource:this.eWrapper,ePopup:o,position:"under",alignSide:y,keepWithinBounds:!0,nudgeY:g}),c.hideFunc},e.prototype.beforeHidePicker=function(){this.destroyMouseWheelFunc&&(this.destroyMouseWheelFunc(),this.destroyMouseWheelFunc=void 0),this.toggleExpandedStyles(!1);var t=this.pickerComponent.getGui();t.removeEventListener("focusin",this.onPickerFocusIn),t.removeEventListener("focusout",this.onPickerFocusOut),this.isPickerDisplayed=!1,this.pickerComponent=void 0,this.hideCurrentPicker=null},e.prototype.toggleExpandedStyles=function(t){this.isAlive()&&(cX(this.getAriaElement(),t),this.eWrapper.classList.toggle("ag-picker-expanded",t),this.eWrapper.classList.toggle("ag-picker-collapsed",!t))},e.prototype.onPickerFocusIn=function(){this.togglePickerHasFocus(!0)},e.prototype.onPickerFocusOut=function(t){var e;(null===(e=this.pickerComponent)||void 0===e?void 0:e.getGui().contains(t.relatedTarget))||this.togglePickerHasFocus(!1)},e.prototype.togglePickerHasFocus=function(t){this.pickerComponent&&this.eWrapper.classList.toggle("ag-picker-has-focus",t)},e.prototype.hidePicker=function(){this.hideCurrentPicker&&this.hideCurrentPicker()},e.prototype.setAriaLabel=function(t){return eX(this.getAriaElement(),t),this},e.prototype.setInputWidth=function(t){return kq(this.eWrapper,t),this},e.prototype.getFocusableElement=function(){return this.eWrapper},e.prototype.setPickerGap=function(t){return this.pickerGap=t,this},e.prototype.setPickerMinWidth=function(t){return"number"==typeof t&&(t+="px"),this.minPickerWidth=null==t?void 0:t,this},e.prototype.setPickerMaxWidth=function(t){return"number"==typeof t&&(t+="px"),this.maxPickerWidth=null==t?void 0:t,this},e.prototype.setPickerMaxHeight=function(t){return"number"==typeof t&&(t+="px"),this.maxPickerHeight=null==t?void 0:t,this},e.prototype.destroy=function(){this.hidePicker(),t.prototype.destroy.call(this)},ZZ([aY("popupService")],e.prototype,"popupService",void 0),ZZ([TZ("eLabel")],e.prototype,"eLabel",void 0),ZZ([TZ("eWrapper")],e.prototype,"eWrapper",void 0),ZZ([TZ("eDisplayField")],e.prototype,"eDisplayField",void 0),ZZ([TZ("eIcon")],e.prototype,"eIcon",void 0),e}(XZ),JZ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),tQ=function(t){function e(e){void 0===e&&(e="default");var o=t.call(this,'
')||this;return o.cssIdentifier=e,o.options=[],o.itemEls=[],o}return JZ(e,t),e.prototype.init=function(){this.addManagedListener(this.getGui(),"keydown",this.handleKeyDown.bind(this))},e.prototype.handleKeyDown=function(t){var e=t.key;switch(e){case Qq.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case Qq.DOWN:case Qq.UP:var n=e===Qq.DOWN,i=void 0;if(t.preventDefault(),this.highlightedEl){var r=this.itemEls.indexOf(this.highlightedEl)+(n?1:-1);r=Math.min(Math.max(r,0),this.itemEls.length-1),i=this.itemEls[r]}else i=this.itemEls[n?0:this.itemEls.length-1];this.highlightItem(i)}},e.prototype.addOptions=function(t){var e=this;return t.forEach((function(t){return e.addOption(t)})),this},e.prototype.addOption=function(t){var e=t.value,o=uK(t.text||e);return this.options.push({value:e,text:o}),this.renderOption(e,o),this.updateIndices(),this},e.prototype.updateIndices=function(){var t=this.getGui().querySelectorAll(".ag-list-item");t.forEach((function(e,o){hX(e,o+1),dX(e,t.length)}))},e.prototype.renderOption=function(t,e){var o=this,n=document.createElement("div");ZK(n,"option"),n.classList.add("ag-list-item","ag-"+this.cssIdentifier+"-list-item"),n.innerHTML=""+e+"",n.tabIndex=-1,this.itemEls.push(n),this.addManagedListener(n,"mouseover",(function(){return o.highlightItem(n)})),this.addManagedListener(n,"mouseleave",(function(){return o.clearHighlighted()})),this.addManagedListener(n,"click",(function(){return o.setValue(t)})),this.getGui().appendChild(n)},e.prototype.setValue=function(t,e){if(this.value===t)return this.fireItemSelected(),this;if(null==t)return this.reset(),this;var o=this.options.findIndex((function(e){return e.value===t}));if(-1!==o){var n=this.options[o];this.value=n.value,this.displayValue=null!=n.text?n.text:n.value,this.highlightItem(this.itemEls[o]),e||this.fireChangeEvent()}return this},e.prototype.setValueByIndex=function(t){return this.setValue(this.options[t].value)},e.prototype.getValue=function(){return this.value},e.prototype.getDisplayValue=function(){return this.displayValue},e.prototype.refreshHighlighted=function(){var t=this;this.clearHighlighted();var e=this.options.findIndex((function(e){return e.value===t.value}));-1!==e&&this.highlightItem(this.itemEls[e])},e.prototype.reset=function(){this.value=null,this.displayValue=null,this.clearHighlighted(),this.fireChangeEvent()},e.prototype.highlightItem=function(t){t.offsetParent&&(this.clearHighlighted(),this.highlightedEl=t,this.highlightedEl.classList.add(e.ACTIVE_CLASS),bX(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(e.ACTIVE_CLASS),bX(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:eK.EVENT_FIELD_VALUE_CHANGED}),this.fireItemSelected()},e.prototype.fireItemSelected=function(){this.dispatchEvent({type:e.EVENT_ITEM_SELECTED})},e.EVENT_ITEM_SELECTED="selectedItem",e.ACTIVE_CLASS="ag-active-item",function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"init",null),e}(EZ),eQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),oQ=function(){return oQ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},aQ=function(t){function e(e,o,n,i){void 0===n&&(n="text"),void 0===i&&(i="input");var r=t.call(this,e,'\n
\n
\n \n
",o)||this;return r.inputType=n,r.displayFieldTag=i,r}return iQ(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.setInputType(),this.eLabel.classList.add(this.className+"-label"),this.eWrapper.classList.add(this.className+"-input-wrapper"),this.eInput.classList.add(this.className+"-input"),this.addCssClass("ag-input-field"),this.eInput.id=this.eInput.id||"ag-"+this.getCompId()+"-input";var e=this.config,o=e.width,n=e.value;null!=o&&this.setWidth(o),null!=n&&this.setValue(n),this.addInputListeners(),this.activateTabIndex([this.eInput])},e.prototype.refreshLabel=function(){h$(this.getLabel())?oX(this.eInput,this.getLabelId()):this.eInput.removeAttribute("aria-labelledby"),t.prototype.refreshLabel.call(this)},e.prototype.addInputListeners=function(){var t=this;this.addManagedListener(this.eInput,"input",(function(e){return t.setValue(e.target.value)}))},e.prototype.setInputType=function(){"input"===this.displayFieldTag&&this.eInput.setAttribute("type",this.inputType)},e.prototype.getInputElement=function(){return this.eInput},e.prototype.setInputWidth=function(t){return kq(this.eWrapper,t),this},e.prototype.setInputName=function(t){return this.getInputElement().setAttribute("name",t),this},e.prototype.getFocusableElement=function(){return this.eInput},e.prototype.setMaxLength=function(t){return this.eInput.maxLength=t,this},e.prototype.setInputPlaceholder=function(t){return jq(this.eInput,"placeholder",t),this},e.prototype.setInputAriaLabel=function(t){return eX(this.eInput,t),this},e.prototype.setDisabled=function(e){return fq(this.eInput,e),t.prototype.setDisabled.call(this,e)},e.prototype.setAutoComplete=function(t){if(!0===t)jq(this.eInput,"autocomplete",null);else{var e="string"==typeof t?t:"off";jq(this.eInput,"autocomplete",e)}return this},rQ([TZ("eLabel")],e.prototype,"eLabel",void 0),rQ([TZ("eWrapper")],e.prototype,"eWrapper",void 0),rQ([TZ("eInput")],e.prototype,"eInput",void 0),e}(XZ),sQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),lQ=function(t){function e(e,o,n){void 0===o&&(o="ag-checkbox"),void 0===n&&(n="checkbox");var i=t.call(this,e,o,n)||this;return i.labelAlignment="right",i.selected=!1,i.readOnly=!1,i.passive=!1,i}return sQ(e,t),e.prototype.addInputListeners=function(){this.addManagedListener(this.eInput,"click",this.onCheckboxClick.bind(this)),this.addManagedListener(this.eLabel,"click",this.toggle.bind(this))},e.prototype.getNextValue=function(){return void 0===this.selected||!this.selected},e.prototype.setPassive=function(t){this.passive=t},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setReadOnly=function(t){this.eWrapper.classList.toggle("ag-disabled",t),this.eInput.disabled=t,this.readOnly=t},e.prototype.setDisabled=function(e){return this.eWrapper.classList.toggle("ag-disabled",e),t.prototype.setDisabled.call(this,e)},e.prototype.toggle=function(){if(!this.eInput.disabled){var t=this.isSelected(),e=this.getNextValue();this.passive?this.dispatchChange(e,t):this.setValue(e)}},e.prototype.getValue=function(){return this.isSelected()},e.prototype.setValue=function(t,e){return this.refreshSelectedClass(t),this.setSelected(t,e),this},e.prototype.setName=function(t){return this.getInputElement().name=t,this},e.prototype.isSelected=function(){return this.selected},e.prototype.setSelected=function(t,e){this.isSelected()!==t&&(this.previousValue=this.isSelected(),t=this.selected="boolean"==typeof t?t:void 0,this.eInput.checked=t,this.eInput.indeterminate=void 0===t,e||this.dispatchChange(this.selected,this.previousValue))},e.prototype.dispatchChange=function(t,e,o){this.dispatchEvent({type:eK.EVENT_FIELD_VALUE_CHANGED,selected:t,previousValue:e,event:o});var n=this.getInputElement(),i={type:eK.EVENT_CHECKBOX_CHANGED,id:n.id,name:n.name,selected:t,previousValue:e};this.eventService.dispatchEvent(i)},e.prototype.onCheckboxClick=function(t){if(!this.passive&&!this.eInput.disabled){var e=this.isSelected(),o=this.selected=t.target.checked;this.refreshSelectedClass(o),this.dispatchChange(o,e,t)}},e.prototype.refreshSelectedClass=function(t){this.eWrapper.classList.toggle("ag-checked",!0===t),this.eWrapper.classList.toggle("ag-indeterminate",null==t)},e}(aQ),uQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),cQ=function(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return uQ(e,t),e.prototype.isSelected=function(){return this.eInput.checked},e.prototype.toggle=function(){this.eInput.disabled||this.isSelected()||this.setValue(!0)},e.prototype.addInputListeners=function(){t.prototype.addInputListeners.call(this),this.addManagedListener(this.eventService,eK.EVENT_CHECKBOX_CHANGED,this.onChange.bind(this))},e.prototype.onChange=function(t){t.selected&&t.name&&this.eInput.name&&this.eInput.name===t.name&&t.id&&this.eInput.id!==t.id&&this.setValue(!1,!0)},e}(lQ),pQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),dQ=function(){function t(t,e,o){this.localeService=t,this.optionsFactory=e,this.valueFormatter=o}return t.prototype.getModelAsString=function(t){var e=this;if(!t)return null;var o=null!=t.operator,n=this.localeService.getLocaleTextFunc();if(o){var i=t,r=i.conditions;r||(r=[i.condition1,i.condition2]);var a=r.map((function(t){return e.getModelAsString(t)})),s="AND"===i.operator?"andCondition":"orCondition";return a.join(" "+n(s,PZ[s])+" ")}if(t.type===hQ.BLANK||t.type===hQ.NOT_BLANK)return n(t.type,t.type);var l=t,u=this.optionsFactory.getCustomOption(l.type),c=u||{},p=c.displayKey,d=c.displayName,h=c.numberOfInputs;return p&&d&&0===h?(n(p,d),d):this.conditionToString(l,u)},t.prototype.updateParams=function(t){this.optionsFactory=t.optionsFactory},t.prototype.formatValue=function(t){var e;return this.valueFormatter?null!==(e=this.valueFormatter(null!=t?t:null))&&void 0!==e?e:"":String(t)},t}(),hQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eTypes=[],e.eJoinOperatorPanels=[],e.eJoinOperatorsAnd=[],e.eJoinOperatorsOr=[],e.eConditionBodies=[],e.listener=function(){return e.onUiChanged()},e.lastUiCompletePosition=null,e.joinOperatorId=0,e}return pQ(e,t),e.prototype.getNumberOfInputs=function(t){var o=this.optionsFactory.getCustomOption(t);if(o){var n=o.numberOfInputs;return null!=n?n:1}var i=[e.EMPTY,e.NOT_BLANK,e.BLANK];return t&&i.indexOf(t)>=0?0:t===e.IN_RANGE?2:1},e.prototype.onFloatingFilterChanged=function(t,e){this.setTypeFromFloatingFilter(t),this.setValueFromFloatingFilter(e),this.onUiChanged(!0)},e.prototype.setTypeFromFloatingFilter=function(t){var e=this;this.eTypes.forEach((function(o,n){0===n?o.setValue(t,!0):o.setValue(e.optionsFactory.getDefaultOption(),!0)}))},e.prototype.getModelFromUi=function(){var t=this.getUiCompleteConditions();return 0===t.length?null:this.maxNumConditions>1&&t.length>1?{filterType:this.getFilterType(),operator:this.getJoinOperator(),condition1:t[0],condition2:t[1],conditions:t}:t[0]},e.prototype.getConditionTypes=function(){return this.eTypes.map((function(t){return t.getValue()}))},e.prototype.getConditionType=function(t){return this.eTypes[t].getValue()},e.prototype.getJoinOperator=function(){return 0===this.eJoinOperatorsOr.length?this.defaultJoinOperator:!0===this.eJoinOperatorsOr[0].getValue()?"OR":"AND"},e.prototype.areModelsEqual=function(t,e){var o=this;if(!t&&!e)return!0;if(!t&&e||t&&!e)return!1;var n,i=!t.operator,r=!e.operator;if(!i&&r||i&&!r)return!1;if(i){var a=t,s=e;n=this.areSimpleModelsEqual(a,s)}else{var l=t,u=e;n=l.operator===u.operator&&xY(l.conditions,u.conditions,(function(t,e){return o.areSimpleModelsEqual(t,e)}))}return n},e.prototype.setModelIntoUi=function(t){var e=this;if(t.operator){var o=t;o.conditions||(o.conditions=[o.condition1,o.condition2]);var n=this.validateAndUpdateConditions(o.conditions),i=this.getNumConditions();if(ni)for(var r=i;r1&&this.removeConditionsAndOperators(1),this.eTypes[0].setValue(s.type,!0),this.setConditionIntoUi(s,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),vZ.resolve()},e.prototype.validateAndUpdateConditions=function(t){var e=t.length;return e>this.maxNumConditions&&(t.splice(this.maxNumConditions),G$((function(){return console.warn('AG Grid: Filter Model contains more conditions than "filterParams.maxNumConditions". Additional conditions have been ignored.')}),"simpleFilterSetModelMaxNumConditions"),e=this.maxNumConditions),e},e.prototype.doesFilterPass=function(t){var e,o=this,n=this.getModel();if(null==n)return!0;var i=n.operator,r=[];if(i){var a=n;r.push.apply(r,function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(null!==(e=a.conditions)&&void 0!==e?e:[])))}else r.push(n);return r[i&&"OR"===i?"some":"every"]((function(e){return o.individualConditionPasses(t,e)}))},e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.setNumConditions(e),this.defaultJoinOperator=this.getDefaultJoinOperator(e.defaultJoinOperator),this.filterPlaceholder=e.filterPlaceholder,this.optionsFactory=new IZ,this.optionsFactory.init(e,this.getDefaultFilterOptions()),this.createFilterListOptions(),this.createOption(),this.createMissingConditionsAndOperators(),this.isReadOnly()&&this.eFilterBody.setAttribute("tabindex","-1")},e.prototype.setNumConditions=function(t){var e,o;null!=t.suppressAndOrCondition&&G$((function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')}),"simpleFilterSuppressAndOrCondition"),null!=t.alwaysShowBothConditions&&G$((function(){return console.warn('AG Grid: Since v29.2 "filterParams.alwaysShowBothConditions" is deprecated. Use "filterParams.numAlwaysVisibleConditions = 2" instead.')}),"simpleFilterAlwaysShowBothConditions"),this.maxNumConditions=null!==(e=t.maxNumConditions)&&void 0!==e?e:t.suppressAndOrCondition?1:2,this.maxNumConditions<1&&(G$((function(){return console.warn('AG Grid: "filterParams.maxNumConditions" must be greater than or equal to zero.')}),"simpleFilterMaxNumConditions"),this.maxNumConditions=1),this.numAlwaysVisibleConditions=null!==(o=t.numAlwaysVisibleConditions)&&void 0!==o?o:t.alwaysShowBothConditions?2:1,this.numAlwaysVisibleConditions<1&&(G$((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')}),"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(G$((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" cannot be greater than "filterParams.maxNumConditions".')}),"simpleFilterNumAlwaysVisibleGreaterThanMaxNumConditions"),this.numAlwaysVisibleConditions=this.maxNumConditions)},e.prototype.createOption=function(){var t=this,e=this.createManagedBean(new nQ);this.eTypes.push(e),e.addCssClass("ag-filter-select"),this.eFilterBody.appendChild(e.getGui());var o=this.createValueElement();this.eConditionBodies.push(o),this.eFilterBody.appendChild(o),this.putOptionsIntoDropdown(e),this.resetType(e);var n=this.getNumConditions()-1;this.forEachPositionInput(n,(function(e){return t.resetInput(e)})),this.addChangedListeners(e,n)},e.prototype.createJoinOperatorPanel=function(){var t=document.createElement("div");this.eJoinOperatorPanels.push(t),t.classList.add("ag-filter-condition");var e=this.createJoinOperator(this.eJoinOperatorsAnd,t,"and"),o=this.createJoinOperator(this.eJoinOperatorsOr,t,"or");this.eFilterBody.appendChild(t);var n=this.eJoinOperatorPanels.length-1,i=this.joinOperatorId++;this.resetJoinOperatorAnd(e,n,i),this.resetJoinOperatorOr(o,n,i),this.isReadOnly()||(e.onValueChange(this.listener),o.onValueChange(this.listener))},e.prototype.createJoinOperator=function(t,e,o){var n=this.createManagedBean(new cQ);return t.push(n),n.addCssClass("ag-filter-condition-operator"),n.addCssClass("ag-filter-condition-operator-"+o),e.appendChild(n.getGui()),n},e.prototype.getDefaultJoinOperator=function(t){return"AND"===t||"OR"===t?t:"AND"},e.prototype.createFilterListOptions=function(){var t=this,e=this.optionsFactory.getFilterOptions();this.filterListOptions=e.map((function(e){return"string"==typeof e?t.createBoilerplateListOption(e):t.createCustomListOption(e)}))},e.prototype.putOptionsIntoDropdown=function(t){this.filterListOptions.forEach((function(e){t.addOption(e)})),t.setDisabled(this.filterListOptions.length<=1)},e.prototype.createBoilerplateListOption=function(t){return{value:t,text:this.translate(t)}},e.prototype.createCustomListOption=function(t){var e=t.displayKey,o=this.optionsFactory.getCustomOption(t.displayKey);return{value:e,text:o?this.localeService.getLocaleTextFunc()(o.displayKey,o.displayName):this.translate(e)}},e.prototype.isAllowTwoConditions=function(){return this.maxNumConditions>=2},e.prototype.createBodyTemplate=function(){return""},e.prototype.getCssIdentifier=function(){return"simple-filter"},e.prototype.updateUiVisibility=function(){var t=this.getJoinOperator();this.updateNumConditions(),this.updateConditionStatusesAndValues(this.lastUiCompletePosition,t)},e.prototype.updateNumConditions=function(){for(var t,e=-1,o=!0,n=0;n0&&this.removeConditionsAndOperators(r,a),this.createMissingConditionsAndOperators()}}this.lastUiCompletePosition=e},e.prototype.updateConditionStatusesAndValues=function(t,e){var o=this;this.eTypes.forEach((function(e,n){var i=o.isConditionDisabled(n,t);e.setDisabled(i||o.filterListOptions.length<=1),1===n&&(fq(o.eJoinOperatorPanels[0],i),o.eJoinOperatorsAnd[0].setDisabled(i),o.eJoinOperatorsOr[0].setDisabled(i))})),this.eConditionBodies.forEach((function(t,e){dq(t,o.isConditionBodyVisible(e))}));var n="OR"===(null!=e?e:this.getJoinOperator());this.eJoinOperatorsAnd.forEach((function(t,e){t.setValue(!n,!0)})),this.eJoinOperatorsOr.forEach((function(t,e){t.setValue(n,!0)})),this.forEachInput((function(e,n,i,r){o.setElementDisplayed(e,n=this.getNumConditions())){this.removeComponents(this.eTypes,t,e),this.removeElements(this.eConditionBodies,t,e),this.removeValueElements(t,e);var o=Math.max(t-1,0);this.removeElements(this.eJoinOperatorPanels,o,e),this.removeComponents(this.eJoinOperatorsAnd,o,e),this.removeComponents(this.eJoinOperatorsOr,o,e)}},e.prototype.removeElements=function(t,e,o){this.removeItems(t,e,o).forEach((function(t){return Tq(t)}))},e.prototype.removeComponents=function(t,e,o){var n=this;this.removeItems(t,e,o).forEach((function(t){Tq(t.getGui()),n.destroyBean(t)}))},e.prototype.removeItems=function(t,e,o){return null==o?t.splice(e):t.splice(e,o)},e.prototype.afterGuiAttached=function(e){if(t.prototype.afterGuiAttached.call(this,e),this.resetPlaceholder(),!(null==e?void 0:e.suppressFocus))if(this.isReadOnly())this.eFilterBody.focus();else{var o=this.getInputs(0)[0];if(!o)return;o instanceof aQ&&o.getInputElement().focus()}},e.prototype.afterGuiDetached=function(){t.prototype.afterGuiDetached.call(this);var e=this.getModel();this.areModelsEqual(e,this.getModelFromUi())&&!this.hasInvalidInputs()||this.resetUiToActiveModel(e);for(var o=-1,n=-1,i=!1,r=this.getJoinOperator(),a=this.getNumConditions()-1;a>=0;a--)if(this.isConditionUiComplete(a))-1===o&&(o=a,n=a);else{var s=a=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(a-1)||s)&&(this.removeConditionsAndOperators(a,1),i=!0,s&&n--)}var l=!1;this.getNumConditions()1?"inRangeStart":0===n?"filterOoo":"inRangeEnd",s=0===n&&r>1?e("ariaFilterFromValue","Filter from value"):0===n?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(t.getPlaceholderText(a,i)),o.setInputAriaLabel(s)}}))},e.prototype.setElementValue=function(t,e,o){t instanceof aQ&&t.setValue(null!=e?String(e):null,!0)},e.prototype.setElementDisplayed=function(t,e){t instanceof EZ&&dq(t.getGui(),e)},e.prototype.setElementDisabled=function(t,e){t instanceof EZ&&fq(t.getGui(),e)},e.prototype.attachElementOnChange=function(t,e){t instanceof aQ&&t.onValueChange(e)},e.prototype.forEachInput=function(t){var e=this;this.getConditionTypes().forEach((function(o,n){e.forEachPositionTypeInput(n,o,t)}))},e.prototype.forEachPositionInput=function(t,e){var o=this.getConditionType(t);this.forEachPositionTypeInput(t,o,e)},e.prototype.forEachPositionTypeInput=function(t,e,o){for(var n=this.getNumberOfInputs(e),i=this.getInputs(t),r=0;re+1},e.prototype.isConditionBodyVisible=function(t){var e=this.getConditionType(t);return this.getNumberOfInputs(e)>0},e.prototype.isConditionUiComplete=function(t){return!(t>=this.getNumConditions()||this.getConditionType(t)===e.EMPTY||this.getValues(t).some((function(t){return null==t})))},e.prototype.getNumConditions=function(){return this.eTypes.length},e.prototype.getUiCompleteConditions=function(){for(var t=[],e=0;e0)},e.prototype.resetInput=function(t){this.setElementValue(t,null),this.setElementDisabled(t,this.isReadOnly())},e.prototype.setConditionIntoUi=function(t,e){var o=this,n=this.mapValuesFromModel(t);this.forEachInput((function(t,i,r,a){r===e&&o.setElementValue(t,null!=n[i]?n[i]:null)}))},e.prototype.setValueFromFloatingFilter=function(t){var e=this;this.forEachInput((function(o,n,i,r){e.setElementValue(o,0===n&&0===i?t:null,!0)}))},e.prototype.isDefaultOperator=function(t){return t===this.defaultJoinOperator},e.prototype.addChangedListeners=function(t,e){var o=this;this.isReadOnly()||(t.onValueChange(this.listener),this.forEachPositionInput(e,(function(t){o.attachElementOnChange(t,o.listener)})))},e.prototype.individualConditionPasses=function(t,e){var o=this.getCellValue(t.node),n=this.mapValuesFromModel(e),i=this.optionsFactory.getCustomOption(e.type),r=this.evaluateCustomFilter(i,n,o);return null!=r?r:null==o?this.evaluateNullValue(e.type):this.evaluateNonNullValue(n,o,e,t)},e.prototype.evaluateCustomFilter=function(t,e,o){if(null!=t){var n=t.predicate;return null==n||e.some((function(t){return null==t}))?void 0:n(e,o)}},e.prototype.isBlank=function(t){return null==t||"string"==typeof t&&0===t.trim().length},e.prototype.hasInvalidInputs=function(){return!1},e.EMPTY="empty",e.BLANK="blank",e.NOT_BLANK="notBlank",e.EQUALS="equals",e.NOT_EQUAL="notEqual",e.LESS_THAN="lessThan",e.LESS_THAN_OR_EQUAL="lessThanOrEqual",e.GREATER_THAN="greaterThan",e.GREATER_THAN_OR_EQUAL="greaterThanOrEqual",e.IN_RANGE="inRange",e.CONTAINS="contains",e.NOT_CONTAINS="notContains",e.STARTS_WITH="startsWith",e.ENDS_WITH="endsWith",e}(UZ),fQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),gQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return fQ(e,t),e.prototype.setParams=function(e){t.prototype.setParams.call(this,e),this.scalarFilterParams=e},e.prototype.evaluateNullValue=function(t){switch(t){case e.EQUALS:case e.NOT_EQUAL:if(this.scalarFilterParams.includeBlanksInEquals)return!0;break;case e.GREATER_THAN:case e.GREATER_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInGreaterThan)return!0;break;case e.LESS_THAN:case e.LESS_THAN_OR_EQUAL:if(this.scalarFilterParams.includeBlanksInLessThan)return!0;break;case e.IN_RANGE:if(this.scalarFilterParams.includeBlanksInRange)return!0;break;case e.BLANK:return!0;case e.NOT_BLANK:return!1}return!1},e.prototype.evaluateNonNullValue=function(t,o,n){var i=this.comparator(),r=null!=t[0]?i(t[0],o):0;switch(n.type){case e.EQUALS:return 0===r;case e.NOT_EQUAL:return 0!==r;case e.GREATER_THAN:return r>0;case e.GREATER_THAN_OR_EQUAL:return r>=0;case e.LESS_THAN:return r<0;case e.LESS_THAN_OR_EQUAL:return r<=0;case e.IN_RANGE:var a=i(t[1],o);return this.scalarFilterParams.inRangeInclusive?r>=0&&a<=0:r>0&&a<0;case e.BLANK:return this.isBlank(o);case e.NOT_BLANK:return!this.isBlank(o);default:return console.warn('AG Grid: Unexpected type of filter "'+n.type+'", it looks like the filter was configured with incorrect Filter Options'),!0}},e}(hQ),vQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),yQ=function(){return yQ=Object.assign||function(t){for(var e,o=1,n=arguments.length;ot?1:0},e.prototype.setParams=function(e){this.dateFilterParams=e,t.prototype.setParams.call(this,e);var o=function(t,o){if(null!=e[t]){if(!isNaN(e[t]))return null==e[t]?o:Number(e[t]);console.warn("AG Grid: DateFilter "+t+" is not a number")}return o};this.minValidYear=o("minValidYear",1e3),this.maxValidYear=o("maxValidYear",mQ),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:iq(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:iq(e.maxValidDate):this.maxValidDate=null,this.minValidDate&&this.maxValidDate&&this.minValidDate>this.maxValidDate&&console.warn("AG Grid: DateFilter minValidDate should be <= maxValidDate"),this.filterModelFormatter=new CQ(this.dateFilterParams,this.localeService,this.optionsFactory)},e.prototype.createDateCompWrapper=function(t){var e=this,o=new AZ(this.getContext(),this.userComponentFactory,{onDateChanged:function(){return e.onUiChanged()},filterParams:this.dateFilterParams},t);return this.addDestroyFunc((function(){return o.destroy()})),o},e.prototype.setElementValue=function(t,e){t.setDate(e)},e.prototype.setElementDisplayed=function(t,e){t.setDisplayed(e)},e.prototype.setElementDisabled=function(t,e){t.setDisabled(e)},e.prototype.getDefaultFilterOptions=function(){return e.DEFAULT_FILTER_OPTIONS},e.prototype.createValueElement=function(){var t=document.createElement("div");return t.classList.add("ag-filter-body"),this.createFromToElement(t,this.eConditionPanelsFrom,this.dateConditionFromComps,"from"),this.createFromToElement(t,this.eConditionPanelsTo,this.dateConditionToComps,"to"),t},e.prototype.createFromToElement=function(t,e,o,n){var i=document.createElement("div");i.classList.add("ag-filter-"+n),i.classList.add("ag-filter-date-"+n),e.push(i),t.appendChild(i),o.push(this.createDateCompWrapper(i))},e.prototype.removeValueElements=function(t,e){this.removeDateComps(this.dateConditionFromComps,t,e),this.removeDateComps(this.dateConditionToComps,t,e),this.removeItems(this.eConditionPanelsFrom,t,e),this.removeItems(this.eConditionPanelsTo,t,e)},e.prototype.removeDateComps=function(t,e,o){this.removeItems(t,e,o).forEach((function(t){return t.destroy()}))},e.prototype.isValidDateValue=function(t){if(null===t)return!1;if(this.minValidDate){if(tthis.maxValidDate)return!1}else if(t.getUTCFullYear()>this.maxValidYear)return!1;return!0},e.prototype.isConditionUiComplete=function(e){var o=this;if(!t.prototype.isConditionUiComplete.call(this,e))return!1;var n=!0;return this.forEachInput((function(t,i,r,a){r!==e||!n||i>=a||(n=n&&o.isValidDateValue(t.getDate()))})),n},e.prototype.areSimpleModelsEqual=function(t,e){return t.dateFrom===e.dateFrom&&t.dateTo===e.dateTo&&t.type===e.type},e.prototype.getFilterType=function(){return"date"},e.prototype.createCondition=function(t){var e=this.getConditionType(t),o={},n=this.getValues(t);return n.length>0&&(o.dateFrom=eq(n[0])),n.length>1&&(o.dateTo=eq(n[1])),yQ({dateFrom:null,dateTo:null,filterType:this.getFilterType(),type:e},o)},e.prototype.resetPlaceholder=function(){var t=this.localeService.getLocaleTextFunc(),e=this.translate("dateFormatOoo"),o=t("ariaFilterValue","Filter Value");this.forEachInput((function(t){t.setInputPlaceholder(e),t.setInputAriaLabel(o)}))},e.prototype.getInputs=function(t){return t>=this.dateConditionFromComps.length?[null,null]:[this.dateConditionFromComps[t],this.dateConditionToComps[t]]},e.prototype.getValues=function(t){var e=[];return this.forEachPositionInput(t,(function(t,o,n,i){o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(gQ),SQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),bQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return SQ(e,t),e.prototype.getDefaultDebounceMs=function(){return 0},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.isEventFromFloatingFilter=function(t){return t&&t.afterFloatingFilter},e.prototype.isEventFromDataChange=function(t){return null==t?void 0:t.afterDataChange},e.prototype.getLastType=function(){return this.lastType},e.prototype.isReadOnly=function(){return this.readOnly},e.prototype.setLastTypeFromModel=function(t){var e;t?(e=t.operator?t.conditions[0]:t,this.lastType=e.type):this.lastType=this.optionsFactory.getDefaultOption()},e.prototype.canWeEditAfterModelFromParentFilter=function(t){if(!t)return this.isTypeEditable(this.lastType);if(t.operator)return!1;var e=t;return this.isTypeEditable(e.type)},e.prototype.init=function(t){this.setSimpleParams(t)},e.prototype.setSimpleParams=function(t){this.optionsFactory=new IZ,this.optionsFactory.init(t.filterParams,this.getDefaultFilterOptions()),this.lastType=this.optionsFactory.getDefaultOption(),this.readOnly=!!t.filterParams.readOnly;var e=this.isTypeEditable(this.lastType);this.setEditable(e)},e.prototype.onParamsUpdated=function(t){this.setSimpleParams(t)},e.prototype.doesFilterHaveSingleInput=function(t){var e=(this.optionsFactory.getCustomOption(t)||{}).numberOfInputs;return null==e||1==e},e.prototype.isTypeEditable=function(t){var e=[hQ.IN_RANGE,hQ.EMPTY,hQ.BLANK,hQ.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&e.indexOf(t)<0},e}(EZ),_Q=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),xQ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},EQ=function(t){function e(){return t.call(this,'\n ')||this}return _Q(e,t),e.prototype.getDefaultFilterOptions=function(){return wQ.DEFAULT_FILTER_OPTIONS},e.prototype.init=function(e){t.prototype.init.call(this,e),this.params=e,this.filterParams=e.filterParams,this.createDateComponent(),this.filterModelFormatter=new CQ(this.filterParams,this.localeService,this.optionsFactory);var o=this.localeService.getLocaleTextFunc();this.eReadOnlyText.setDisabled(!0).setInputAriaLabel(o("ariaDateFilterInput","Date Filter Input"))},e.prototype.onParamsUpdated=function(e){t.prototype.onParamsUpdated.call(this,e),this.params=e,this.filterParams=e.filterParams,this.updateDateComponent(),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory,dateFilterParams:this.filterParams})},e.prototype.setEditable=function(t){dq(this.eDateWrapper,t),dq(this.eReadOnlyText.getGui(),!t)},e.prototype.onParentModelChanged=function(e,o){if(!this.isEventFromFloatingFilter(o)&&!this.isEventFromDataChange(o)){t.prototype.setLastTypeFromModel.call(this,e);var n=!this.isReadOnly()&&this.canWeEditAfterModelFromParentFilter(e);if(this.setEditable(n),n){if(e){var i=e;this.dateComp.setDate(iq(i.dateFrom))}else this.dateComp.setDate(null);this.eReadOnlyText.setValue("")}else this.eReadOnlyText.setValue(this.filterModelFormatter.getModelAsString(e)),this.dateComp.setDate(null)}},e.prototype.onDateChanged=function(){var t=this,e=eq(this.dateComp.getDate());this.params.parentFilterInstance((function(o){if(o){var n=iq(e);o.onFloatingFilterChanged(t.getLastType()||null,n)}}))},e.prototype.getDateComponentParams=function(){var t=UZ.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:$$(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams}},e.prototype.createDateComponent=function(){var t=this;this.dateComp=new AZ(this.getContext(),this.userComponentFactory,this.getDateComponentParams(),this.eDateWrapper),this.addDestroyFunc((function(){return t.dateComp.destroy()}))},e.prototype.updateDateComponent=function(){var t=this.getDateComponentParams(),e=this.gridOptionsService,o=e.api,n=e.columnApi,i=e.context;t.api=o,t.columnApi=n,t.context=i,this.dateComp.updateParams(t)},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},xQ([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),xQ([TZ("eReadOnlyText")],e.prototype,"eReadOnlyText",void 0),xQ([TZ("eDateWrapper")],e.prototype,"eDateWrapper",void 0),e}(bQ),TQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),DQ=function(t){function e(){return t.call(this,'\n
\n \n
')||this}return TQ(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var e=this;this.params=t,this.setParams(t);var o=this.gridOptionsService.getDocument(),n=this.eDateInput.getInputElement();this.addManagedListener(n,"mousedown",(function(){e.eDateInput.isDisabled()||e.usingSafariDatePicker||n.focus()})),this.addManagedListener(n,"input",(function(t){t.target===o.activeElement&&(e.eDateInput.isDisabled()||e.params.onDateChanged())}))},e.prototype.setParams=function(t){var e=this.eDateInput.getInputElement(),o=this.shouldUseBrowserDatePicker(t);this.usingSafariDatePicker=o&&NX(),e.type=o?"date":"text";var n=t.filterParams||{},i=n.minValidYear,r=n.maxValidYear,a=n.minValidDate,s=n.maxValidDate;if(a&&i&&G$((function(){return console.warn("AG Grid: DateFilter should not have both minValidDate and minValidYear parameters set at the same time! minValidYear will be ignored.")}),"DateFilter.minValidDateAndMinValidYearWarning"),s&&r&&G$((function(){return console.warn("AG Grid: DateFilter should not have both maxValidDate and maxValidYear parameters set at the same time! maxValidYear will be ignored.")}),"DateFilter.maxValidDateAndMaxValidYearWarning"),a&&s){var l=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}([a,s].map((function(t){return t instanceof Date?t:iq(t)})),2),u=l[0],c=l[1];u&&c&&u.getTime()>c.getTime()&&G$((function(){return console.warn("AG Grid: DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}),"DateFilter.minValidDateAndMaxValidDateWarning")}a?a instanceof Date?e.min=nq(a):e.min=a:i&&(e.min=i+"-01-01"),s?s instanceof Date?e.max=nq(s):e.max=s:r&&(e.max=r+"-12-31")},e.prototype.onParamsUpdated=function(t){this.params=t,this.setParams(t)},e.prototype.getDate=function(){return iq(this.eDateInput.getValue())},e.prototype.setDate=function(t){this.eDateInput.setValue(eq(t,!1))},e.prototype.setInputPlaceholder=function(t){this.eDateInput.setInputPlaceholder(t)},e.prototype.setDisabled=function(t){this.eDateInput.setDisabled(t)},e.prototype.afterGuiAttached=function(t){t&&t.suppressFocus||this.eDateInput.getInputElement().focus()},e.prototype.shouldUseBrowserDatePicker=function(t){return t.filterParams&&null!=t.filterParams.browserDatePicker?t.filterParams.browserDatePicker:kX()||GX()||NX()&&FX()>=14.1},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([TZ("eDateInput")],e.prototype,"eDateInput",void 0),e}(EZ),RQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),OQ=function(t){function e(e,o,n){return void 0===o&&(o="ag-text-field"),void 0===n&&(n="text"),t.call(this,e,o,n)||this}return RQ(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.config.allowedCharPattern&&this.preventDisallowedCharacters()},e.prototype.setValue=function(e,o){return this.eInput.value!==e&&(this.eInput.value=h$(e)?e:""),t.prototype.setValue.call(this,e,o)},e.prototype.setStartValue=function(t){this.setValue(t,!0)},e.prototype.preventDisallowedCharacters=function(){var t=new RegExp("["+this.config.allowedCharPattern+"]");this.addManagedListener(this.eInput,"keydown",(function(e){Jq(e)&&e.key&&!t.test(e.key)&&e.preventDefault()})),this.addManagedListener(this.eInput,"paste",(function(e){var o,n=null===(o=e.clipboardData)||void 0===o?void 0:o.getData("text");n&&n.split("").some((function(e){return!t.test(e)}))&&e.preventDefault()}))},e}(aQ),MQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),AQ=function(t){function e(e){return t.call(this,e,"ag-number-field","number")||this}return MQ(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this),this.addManagedListener(this.eInput,"blur",(function(){var t=parseFloat(e.eInput.value),o=isNaN(t)?"":e.normalizeValue(t.toString());e.value!==o&&e.setValue(o)})),this.addManagedListener(this.eInput,"wheel",this.onWheel.bind(this)),this.eInput.step="any"},e.prototype.onWheel=function(t){document.activeElement===this.eInput&&t.preventDefault()},e.prototype.normalizeValue=function(t){if(""===t)return"";null!=this.precision&&(t=this.adjustPrecision(t));var e=parseFloat(t);return null!=this.min&&ethis.max&&(t=this.max.toString()),t},e.prototype.adjustPrecision=function(t,e){if(null==this.precision)return t;if(e){var o=parseFloat(t).toFixed(this.precision);return parseFloat(o).toString()}var n=String(t).split(".");if(n.length>1){if(n[1].length<=this.precision)return t;if(this.precision>0)return n[0]+"."+n[1].slice(0,this.precision)}return n[0]},e.prototype.setMin=function(t){return this.min===t||(this.min=t,jq(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,jq(this.eInput,"max",t)),this},e.prototype.setPrecision=function(t){return this.precision=t,this},e.prototype.setStep=function(t){return this.step===t||(this.step=t,jq(this.eInput,"step",t)),this},e.prototype.setValue=function(e,o){var n=this;return this.setValueOrInputValue((function(e){return t.prototype.setValue.call(n,e,o)}),(function(){return n}),e)},e.prototype.setStartValue=function(e){var o=this;return this.setValueOrInputValue((function(e){return t.prototype.setValue.call(o,e,!0)}),(function(t){o.eInput.value=t}),e)},e.prototype.setValueOrInputValue=function(t,e,o){if(h$(o)){var n=this.isScientificNotation(o);if(n&&this.eInput.validity.valid)return t(o);if(n||(n=(o=this.adjustPrecision(o))!=this.normalizeValue(o)),n)return e(o)}return t(o)},e.prototype.getValue=function(){if(this.eInput.validity.valid){var e=this.eInput.value;return this.isScientificNotation(e)?this.adjustPrecision(e,!0):t.prototype.getValue.call(this)}},e.prototype.isScientificNotation=function(t){return"string"==typeof t&&t.includes("e")},e}(OQ),IQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),PQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return IQ(e,t),e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs;return t.type==hQ.IN_RANGE||2===o?this.formatValue(t.filter)+"-"+this.formatValue(t.filterTo):null!=t.filter?this.formatValue(t.filter):""+t.type},e}(dQ);function LQ(t){var e=(null!=t?t:{}).allowedCharPattern;return null!=e?e:null}var NQ,FQ,kQ,GQ=function(t){function e(){var e=t.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return IQ(e,t),e.prototype.mapValuesFromModel=function(t){var e=t||{},o=e.filter,n=e.filterTo,i=e.type;return[this.processValue(o),this.processValue(n)].slice(0,this.getNumberOfInputs(i))},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.comparator=function(){return function(t,e){return t===e?0:t0&&(o.filter=n[0]),n.length>1&&(o.filterTo=n[1]),o},e.prototype.getInputs=function(t){return t>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[t],this.eValuesTo[t]]},e.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},e.prototype.hasInvalidInputs=function(){var t=!1;return this.forEachInput((function(e){e.getInputElement().validity.valid||(t=!0)})),t},e.DEFAULT_FILTER_OPTIONS=[gQ.EQUALS,gQ.NOT_EQUAL,gQ.LESS_THAN,gQ.LESS_THAN_OR_EQUAL,gQ.GREATER_THAN,gQ.GREATER_THAN_OR_EQUAL,gQ.IN_RANGE,gQ.BLANK,gQ.NOT_BLANK],e}(gQ),VQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),HQ=function(){return HQ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o0&&(o.filter=n[0]),n.length>1&&(o.filterTo=n[1]),o},e.prototype.getFilterType=function(){return"text"},e.prototype.areSimpleModelsEqual=function(t,e){return t.filter===e.filter&&t.filterTo===e.filterTo&&t.type===e.type},e.prototype.getInputs=function(t){return t>=this.eValuesFrom.length?[null,null]:[this.eValuesFrom[t],this.eValuesTo[t]]},e.prototype.getValues=function(t){return this.getValuesWithSideEffects(t,!1)},e.prototype.getValuesWithSideEffects=function(t,o){var n=this,i=[];return this.forEachPositionInput(t,(function(t,r,a,s){var l;if(r=0},e.prototype.evaluateNonNullValue=function(t,e,o,n){var i=this,r=t.map((function(t){return i.formatter(t)}))||[],a=this.formatter(e),s=this.textFilterParams,l=s.api,u=s.colDef,c=s.column,p=s.columnApi,d=s.context,h=s.textFormatter;if(o.type===hQ.BLANK)return this.isBlank(e);if(o.type===hQ.NOT_BLANK)return!this.isBlank(e);var f={api:l,colDef:u,column:c,columnApi:p,context:d,node:n.node,data:n.data,filterOption:o.type,value:a,textFormatter:h};return r.some((function(t){return i.matcher(HQ(HQ({},f),{filterText:t}))}))},e.prototype.getModelAsString=function(t){var e;return null!==(e=this.filterModelFormatter.getModelAsString(t))&&void 0!==e?e:""},e.DEFAULT_FILTER_OPTIONS=[hQ.CONTAINS,hQ.NOT_CONTAINS,hQ.EQUALS,hQ.NOT_EQUAL,hQ.STARTS_WITH,hQ.ENDS_WITH,hQ.BLANK,hQ.NOT_BLANK],e.DEFAULT_FORMATTER=function(t){return t},e.DEFAULT_LOWERCASE_FORMATTER=function(t){return null==t?null:t.toString().toLowerCase()},e.DEFAULT_MATCHER=function(t){var o=t.filterOption,n=t.value,i=t.filterText;if(null==i)return!1;switch(o){case e.CONTAINS:return n.indexOf(i)>=0;case e.NOT_CONTAINS:return n.indexOf(i)<0;case e.EQUALS:return n===i;case e.NOT_EQUAL:return n!=i;case e.STARTS_WITH:return 0===n.indexOf(i);case e.ENDS_WITH:var r=n.lastIndexOf(i);return r>=0&&r===n.length-i.length;default:return!1}},e}(hQ),zQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),jQ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},UQ=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.valueChangedListener=function(){},o}return zQ(e,t),e.prototype.setupGui=function(t){var e,o=this;this.eFloatingFilterTextInput=this.createManagedBean(new OQ(null===(e=this.params)||void 0===e?void 0:e.config));var n=this.eFloatingFilterTextInput.getGui();t.appendChild(n),this.addManagedListener(n,"input",(function(t){return o.valueChangedListener(t)})),this.addManagedListener(n,"keydown",(function(t){return o.valueChangedListener(t)}))},e.prototype.setEditable=function(t){this.eFloatingFilterTextInput.setDisabled(!t)},e.prototype.setAutoComplete=function(t){this.eFloatingFilterTextInput.setAutoComplete(t)},e.prototype.getValue=function(){return this.eFloatingFilterTextInput.getValue()},e.prototype.setValue=function(t,e){this.eFloatingFilterTextInput.setValue(t,e)},e.prototype.setValueChangedListener=function(t){this.valueChangedListener=t},e.prototype.setParams=function(t){this.setAriaLabel(t.ariaLabel),void 0!==t.autoComplete&&this.setAutoComplete(t.autoComplete)},e.prototype.setAriaLabel=function(t){this.eFloatingFilterTextInput.setInputAriaLabel(t)},e}(qY),$Q=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zQ(e,t),e.prototype.postConstruct=function(){this.setTemplate('\n \n ')},e.prototype.getDefaultDebounceMs=function(){return 500},e.prototype.onParentModelChanged=function(t,e){this.isEventFromFloatingFilter(e)||this.isEventFromDataChange(e)||(this.setLastTypeFromModel(t),this.setEditable(this.canWeEditAfterModelFromParentFilter(t)),this.floatingFilterInputService.setValue(this.getFilterModelFormatter().getModelAsString(t)))},e.prototype.init=function(e){this.setupFloatingFilterInputService(e),t.prototype.init.call(this,e),this.setTextInputParams(e)},e.prototype.setupFloatingFilterInputService=function(t){this.floatingFilterInputService=this.createFloatingFilterInputService(t),this.floatingFilterInputService.setupGui(this.eFloatingFilterInputContainer)},e.prototype.setTextInputParams=function(t){var e;this.params=t;var o=null!==(e=t.browserAutoComplete)&&void 0!==e&&e;if(this.floatingFilterInputService.setParams({ariaLabel:this.getAriaLabel(t),autoComplete:o}),this.applyActive=UZ.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var n=UZ.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=$$(this.syncUpWithParentFilter.bind(this),n);this.floatingFilterInputService.setValueChangedListener(i)}},e.prototype.onParamsUpdated=function(e){t.prototype.onParamsUpdated.call(this,e),this.setTextInputParams(e)},e.prototype.recreateFloatingFilterInputService=function(t){var e=this.floatingFilterInputService.getValue();Eq(this.eFloatingFilterInputContainer),this.destroyBean(this.floatingFilterInputService),this.setupFloatingFilterInputService(t),this.floatingFilterInputService.setValue(e,!0)},e.prototype.getAriaLabel=function(t){return this.columnModel.getDisplayNameForColumn(t.column,"header",!0)+" "+this.localeService.getLocaleTextFunc()("ariaFilterInput","Filter Input")},e.prototype.syncUpWithParentFilter=function(t){var e=this,o=t.key===Qq.ENTER;if(!this.applyActive||o){var n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=WQ.trimInput(n),this.floatingFilterInputService.setValue(n,!0)),this.params.parentFilterInstance((function(t){t&&t.onFloatingFilterChanged(e.getLastType()||null,n||null)}))}},e.prototype.setEditable=function(t){this.floatingFilterInputService.setEditable(t)},jQ([aY("columnModel")],e.prototype,"columnModel",void 0),jQ([TZ("eFloatingFilterInputContainer")],e.prototype,"eFloatingFilterInputContainer",void 0),jQ([nY],e.prototype,"postConstruct",null),e}(bQ),YQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),KQ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return YQ(e,t),e.prototype.setupGui=function(t){var e=this;this.eFloatingFilterNumberInput=this.createManagedBean(new AQ),this.eFloatingFilterTextInput=this.createManagedBean(new OQ),this.eFloatingFilterTextInput.setDisabled(!0);var o=this.eFloatingFilterNumberInput.getGui(),n=this.eFloatingFilterTextInput.getGui();t.appendChild(o),t.appendChild(n),this.setupListeners(o,(function(t){return e.valueChangedListener(t)})),this.setupListeners(n,(function(t){return e.valueChangedListener(t)}))},e.prototype.setEditable=function(t){this.numberInputActive=t,this.eFloatingFilterNumberInput.setDisplayed(this.numberInputActive),this.eFloatingFilterTextInput.setDisplayed(!this.numberInputActive)},e.prototype.setAutoComplete=function(t){this.eFloatingFilterNumberInput.setAutoComplete(t),this.eFloatingFilterTextInput.setAutoComplete(t)},e.prototype.getValue=function(){return this.getActiveInputElement().getValue()},e.prototype.setValue=function(t,e){this.getActiveInputElement().setValue(t,e)},e.prototype.getActiveInputElement=function(){return this.numberInputActive?this.eFloatingFilterNumberInput:this.eFloatingFilterTextInput},e.prototype.setValueChangedListener=function(t){this.valueChangedListener=t},e.prototype.setupListeners=function(t,e){this.addManagedListener(t,"input",e),this.addManagedListener(t,"keydown",e)},e.prototype.setParams=function(t){this.setAriaLabel(t.ariaLabel),void 0!==t.autoComplete&&this.setAutoComplete(t.autoComplete)},e.prototype.setAriaLabel=function(t){this.eFloatingFilterNumberInput.setInputAriaLabel(t),this.eFloatingFilterTextInput.setInputAriaLabel(t)},e}(qY),XQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return YQ(e,t),e.prototype.init=function(e){var o;t.prototype.init.call(this,e),this.filterModelFormatter=new PQ(this.localeService,this.optionsFactory,null===(o=e.filterParams)||void 0===o?void 0:o.numberFormatter)},e.prototype.onParamsUpdated=function(e){LQ(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),t.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},e.prototype.getDefaultFilterOptions=function(){return GQ.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(t){return this.allowedCharPattern=LQ(t.filterParams),this.allowedCharPattern?this.createManagedBean(new UQ({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new KQ)},e}($Q),qQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),ZQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qQ(e,t),e.prototype.init=function(e){t.prototype.init.call(this,e),this.filterModelFormatter=new BQ(this.localeService,this.optionsFactory)},e.prototype.onParamsUpdated=function(e){t.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},e.prototype.getDefaultFilterOptions=function(){return WQ.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new UQ)},e}($Q),QQ=function(){function t(t,e){var o=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new hY,this.eElement=t,this.preventMouseClick=e;var n=this.onTouchStart.bind(this),i=this.onTouchMove.bind(this),r=this.onTouchEnd.bind(this);this.eElement.addEventListener("touchstart",n,{passive:!0}),this.eElement.addEventListener("touchmove",i,{passive:!0}),this.eElement.addEventListener("touchend",r,{passive:!1}),this.destroyFuncs.push((function(){o.eElement.removeEventListener("touchstart",n,{passive:!0}),o.eElement.removeEventListener("touchmove",i,{passive:!0}),o.eElement.removeEventListener("touchend",r,{passive:!1})}))}return t.prototype.getActiveTouch=function(t){for(var e=0;e0)if(e-this.lastTapTime>t.DOUBLE_TAP_MILLIS){var o={type:t.EVENT_DOUBLE_TAP,touchStart:this.touchStart};this.eventService.dispatchEvent(o),this.lastTapTime=null}else this.lastTapTime=e;else this.lastTapTime=e},t.prototype.destroy=function(){this.destroyFuncs.forEach((function(t){return t()}))},t.EVENT_TAP="tap",t.EVENT_DOUBLE_TAP="doubleTap",t.EVENT_LONG_TAP="longTap",t.DOUBLE_TAP_MILLIS=500,t}(),JQ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),tJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},eJ=function(t){function e(o){var n=t.call(this)||this;return o||n.setTemplate(e.TEMPLATE),n}return JQ(e,t),e.prototype.attachCustomElements=function(t,e,o,n,i){this.eSortOrder=t,this.eSortAsc=e,this.eSortDesc=o,this.eSortMixed=n,this.eSortNone=i},e.prototype.setupSort=function(t,e){var o=this;void 0===e&&(e=!1),this.column=t,this.suppressOrder=e,this.setupMultiSortIndicator(),this.column.getColDef().sortable&&(this.addInIcon("sortAscending",this.eSortAsc,t),this.addInIcon("sortDescending",this.eSortDesc,t),this.addInIcon("sortUnSort",this.eSortNone,t),this.addManagedListener(this.eventService,eK.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},e.prototype.addInIcon=function(t,e,o){if(null!=e){var n=qq(t,this.gridOptionsService,o);n&&e.appendChild(n)}},e.prototype.onSortChanged=function(){this.updateIcons(),this.suppressOrder||this.updateSortOrder()},e.prototype.updateIcons=function(){var t=this.sortController.getDisplaySortForColumn(this.column);if(this.eSortAsc){var e="asc"===t;dq(this.eSortAsc,e,{skipAriaHidden:!0})}if(this.eSortDesc){var o="desc"===t;dq(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var n=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),i=null==t;dq(this.eSortNone,!n&&i,{skipAriaHidden:!0})}},e.prototype.setupMultiSortIndicator=function(){var t=this;this.addInIcon("sortUnSort",this.eSortMixed,this.column);var e=this.column.getColDef().showRowGroup;this.gridOptionsService.isColumnsSortingCoupledToGroup()&&e&&(this.addManagedListener(this.eventService,eK.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.updateMultiSortIndicator())},e.prototype.updateMultiSortIndicator=function(){if(this.eSortMixed){var t="mixed"===this.sortController.getDisplaySortForColumn(this.column);dq(this.eSortMixed,t,{skipAriaHidden:!0})}},e.prototype.updateSortOrder=function(){var t,e=this;if(this.eSortOrder){var o=this.sortController.getColumnsWithSortingOrdered(),n=null!==(t=this.sortController.getDisplaySortIndexForColumn(this.column))&&void 0!==t?t:-1,i=o.some((function(t){var o;return null!==(o=e.sortController.getDisplaySortIndexForColumn(t))&&void 0!==o&&o})),r=n>=0&&i;dq(this.eSortOrder,r,{skipAriaHidden:!0}),n>=0?this.eSortOrder.innerHTML=(n+1).toString():Eq(this.eSortOrder)}},e.TEMPLATE='\n \n \n \n \n \n ',tJ([TZ("eSortOrder")],e.prototype,"eSortOrder",void 0),tJ([TZ("eSortAsc")],e.prototype,"eSortAsc",void 0),tJ([TZ("eSortDesc")],e.prototype,"eSortDesc",void 0),tJ([TZ("eSortMixed")],e.prototype,"eSortMixed",void 0),tJ([TZ("eSortNone")],e.prototype,"eSortNone",void 0),tJ([aY("columnModel")],e.prototype,"columnModel",void 0),tJ([aY("sortController")],e.prototype,"sortController",void 0),e}(EZ),oJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),nJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},iJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return oJ(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.refresh=function(t){return this.params=t,this.workOutTemplate()==this.currentTemplate&&this.workOutShowMenu()==this.currentShowMenu&&this.workOutSort()==this.currentSort&&(this.setDisplayName(t),!0)},e.prototype.workOutTemplate=function(){var t=bY(this.params.template,e.TEMPLATE);return t&&t.trim?t.trim():t},e.prototype.init=function(t){this.params=t,this.currentTemplate=this.workOutTemplate(),this.setTemplate(this.currentTemplate),this.setupTap(),this.setupIcons(t.column),this.setMenu(),this.setupSort(),this.setupFilterIcon(),this.setDisplayName(t)},e.prototype.setDisplayName=function(t){if(this.currentDisplayName!=t.displayName){this.currentDisplayName=t.displayName;var e=uK(this.currentDisplayName);this.eText&&(this.eText.innerHTML=e)}},e.prototype.setupIcons=function(t){this.addInIcon("menu",this.eMenu,t),this.addInIcon("filter",this.eFilter,t)},e.prototype.addInIcon=function(t,e,o){if(null!=e){var n=qq(t,this.gridOptionsService,o);n&&e.appendChild(n)}},e.prototype.setupTap=function(){var t=this,e=this.gridOptionsService;if(!e.is("suppressTouch")){var o=new QQ(this.getGui(),!0),n=e.is("suppressMenuHide"),i=n&&h$(this.eMenu),r=i?new QQ(this.eMenu,!0):o;if(this.params.enableMenu){var a=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(r,QQ[a],(function(o){e.api.showColumnMenuAfterMouseClick(t.params.column,o.touchStart)}))}this.params.enableSorting&&this.addManagedListener(o,QQ.EVENT_TAP,(function(e){var o=e.touchStart.target;n&&t.eMenu.contains(o)||t.sortController.progressSort(t.params.column,!1,"uiColumnSorted")})),this.addDestroyFunc((function(){return o.destroy()})),i&&this.addDestroyFunc((function(){return r.destroy()}))}},e.prototype.workOutShowMenu=function(){var t=!this.gridOptionsService.is("suppressMenuHide"),e=HX()&&t;return this.params.enableMenu&&!e},e.prototype.setMenu=function(){var t=this;if(this.eMenu)if(this.currentShowMenu=this.workOutShowMenu(),this.currentShowMenu){var e=this.gridOptionsService.is("suppressMenuHide");this.addManagedListener(this.eMenu,"click",(function(){return t.showMenu(t.eMenu)})),this.eMenu.classList.toggle("ag-header-menu-always-show",e)}else Tq(this.eMenu)},e.prototype.showMenu=function(t){t||(t=this.eMenu),this.menuFactory.showMenuAfterButtonClick(this.params.column,t,"columnMenu")},e.prototype.workOutSort=function(){return this.params.enableSorting},e.prototype.setupSort=function(){var t=this;if(this.currentSort=this.params.enableSorting,this.eSortIndicator||(this.eSortIndicator=this.context.createBean(new eJ(!0)),this.eSortIndicator.attachCustomElements(this.eSortOrder,this.eSortAsc,this.eSortDesc,this.eSortMixed,this.eSortNone)),this.eSortIndicator.setupSort(this.params.column),this.currentSort){var e="ctrl"===this.gridOptionsService.get("multiSortKey");this.addManagedListener(this.params.column,CY.EVENT_MOVING_CHANGED,(function(){t.lastMovingChanged=(new Date).getTime()})),this.eLabel&&this.addManagedListener(this.eLabel,"click",(function(o){var n=t.params.column.isMoving(),i=(new Date).getTime()-t.lastMovingChanged<50;if(!n&&!i){var r=e?o.ctrlKey||o.metaKey:o.shiftKey;t.params.progressSort(r)}}));var o=function(){if(t.addOrRemoveCssClass("ag-header-cell-sorted-asc",t.params.column.isSortAscending()),t.addOrRemoveCssClass("ag-header-cell-sorted-desc",t.params.column.isSortDescending()),t.addOrRemoveCssClass("ag-header-cell-sorted-none",t.params.column.isSortNone()),t.params.column.getColDef().showRowGroup){var e=t.columnModel.getSourceColumnsForGroupColumn(t.params.column),o=!(null==e?void 0:e.every((function(e){return t.params.column.getSort()==e.getSort()})));t.addOrRemoveCssClass("ag-header-cell-sorted-mixed",o)}};this.addManagedListener(this.eventService,eK.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},e.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,CY.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},e.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();dq(this.eFilter,t,{skipAriaHidden:!0})},e.TEMPLATE='',nJ([aY("sortController")],e.prototype,"sortController",void 0),nJ([aY("menuFactory")],e.prototype,"menuFactory",void 0),nJ([aY("columnModel")],e.prototype,"columnModel",void 0),nJ([TZ("eFilter")],e.prototype,"eFilter",void 0),nJ([TZ("eSortIndicator")],e.prototype,"eSortIndicator",void 0),nJ([TZ("eMenu")],e.prototype,"eMenu",void 0),nJ([TZ("eLabel")],e.prototype,"eLabel",void 0),nJ([TZ("eText")],e.prototype,"eText",void 0),nJ([TZ("eSortOrder")],e.prototype,"eSortOrder",void 0),nJ([TZ("eSortAsc")],e.prototype,"eSortAsc",void 0),nJ([TZ("eSortDesc")],e.prototype,"eSortDesc",void 0),nJ([TZ("eSortMixed")],e.prototype,"eSortMixed",void 0),nJ([TZ("eSortNone")],e.prototype,"eSortNone",void 0),e}(EZ),rJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),aJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},sJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return rJ(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){this.params=t,this.checkWarnings(),this.setupLabel(),this.addGroupExpandIcon(),this.setupExpandIcons()},e.prototype.checkWarnings=function(){this.params.template&&G$((function(){return console.warn("AG Grid: A template was provided for Header Group Comp - templates are only supported for Header Comps (not groups)")}),"HeaderGroupComp.templateNotSupported")},e.prototype.setupExpandIcons=function(){var t=this;this.addInIcon("columnGroupOpened","agOpened"),this.addInIcon("columnGroupClosed","agClosed");var e=function(e){if(!HY(e)){var o=!t.params.columnGroup.isExpanded();t.columnModel.setColumnGroupOpened(t.params.columnGroup.getProvidedColumnGroup(),o,"uiColumnExpanded")}};this.addTouchAndClickListeners(this.eCloseIcon,e),this.addTouchAndClickListeners(this.eOpenIcon,e);var o=function(t){VY(t)};this.addManagedListener(this.eCloseIcon,"dblclick",o),this.addManagedListener(this.eOpenIcon,"dblclick",o),this.addManagedListener(this.getGui(),"dblclick",e),this.updateIconVisibility();var n=this.params.columnGroup.getProvidedColumnGroup();this.addManagedListener(n,wY.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,wY.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},e.prototype.addTouchAndClickListeners=function(t,e){var o=new QQ(t,!0);this.addManagedListener(o,QQ.EVENT_TAP,e),this.addDestroyFunc((function(){return o.destroy()})),this.addManagedListener(t,"click",e)},e.prototype.updateIconVisibility=function(){if(this.params.columnGroup.isExpandable()){var t=this.params.columnGroup.isExpanded();dq(this.eOpenIcon,t),dq(this.eCloseIcon,!t)}else dq(this.eOpenIcon,!1),dq(this.eCloseIcon,!1)},e.prototype.addInIcon=function(t,e){var o=qq(t,this.gridOptionsService,null);o&&this.getRefElement(e).appendChild(o)},e.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return dq(this.eOpenIcon,!1),void dq(this.eCloseIcon,!1)},e.prototype.setupLabel=function(){var t,e=this.params,o=e.displayName,n=e.columnGroup;if(h$(o)){var i=uK(o);this.getRefElement("agLabel").innerHTML=i}this.addOrRemoveCssClass("ag-sticky-label",!(null===(t=n.getColGroupDef())||void 0===t?void 0:t.suppressStickyLabel))},e.TEMPLATE='',aJ([aY("columnModel")],e.prototype,"columnModel",void 0),aJ([TZ("agOpened")],e.prototype,"eOpenIcon",void 0),aJ([TZ("agClosed")],e.prototype,"eCloseIcon",void 0),e}(EZ),lJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),uJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return lJ(e,t),e.prototype.isPopup=function(){return!0},e.prototype.setParentComponent=function(e){e.addCssClass("ag-has-popup"),t.prototype.setParentComponent.call(this,e)},e.prototype.destroy=function(){var e=this.parentComponent;e&&e.isAlive()&&e.getGui().classList.remove("ag-has-popup"),t.prototype.destroy.call(this)},e}(EZ),cJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),pJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return cJ(e,t),e.prototype.init=function(t){this.params=t,this.focusAfterAttached=t.cellStartedEdit,this.eTextArea.setMaxLength(t.maxLength||200).setCols(t.cols||60).setRows(t.rows||10),h$(t.value,!0)&&this.eTextArea.setValue(t.value.toString(),!0),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.activateTabIndex()},e.prototype.onKeyDown=function(t){var e=t.key;(e===Qq.LEFT||e===Qq.UP||e===Qq.RIGHT||e===Qq.DOWN||t.shiftKey&&e===Qq.ENTER)&&t.stopPropagation()},e.prototype.afterGuiAttached=function(){var t=this.localeService.getLocaleTextFunc();this.eTextArea.setInputAriaLabel(t("ariaInputEditor","Input Editor")),this.focusAfterAttached&&this.eTextArea.getFocusableElement().focus()},e.prototype.getValue=function(){var t=this.eTextArea.getValue();return h$(t)||h$(this.params.value)?this.params.parseValue(t):this.params.value},e.TEMPLATE='
\n \n
',function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([TZ("eTextArea")],e.prototype,"eTextArea",void 0),e}(uJ),dJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),hJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},fJ=function(t){function e(){var e=t.call(this,'
\n \n
')||this;return e.startedByEnter=!1,e}return dJ(e,t),e.prototype.init=function(t){this.focusAfterAttached=t.cellStartedEdit;var e=this,o=e.eSelect,n=e.valueFormatterService,i=e.gridOptionsService,r=t.values,a=t.value,s=t.eventKey;if(f$(r))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=s&&s===Qq.ENTER;var l=!1;r.forEach((function(e){var i={value:e},r=n.formatValue(t.column,null,e),s=null!=r;i.text=s?r:e,o.addOption(i),l=l||a===e})),l?o.setValue(t.value,!0):t.values.length&&o.setValue(t.values[0],!0);var u=t.valueListGap,c=t.valueListMaxWidth,p=t.valueListMaxHeight;null!=u&&o.setPickerGap(u),null!=p&&o.setPickerMaxHeight(p),null!=c&&o.setPickerMaxWidth(c),"fullRow"!==i.get("editType")&&this.addManagedListener(this.eSelect,nQ.EVENT_ITEM_SELECTED,(function(){return t.stopEditing()}))}},e.prototype.afterGuiAttached=function(){var t=this;this.focusAfterAttached&&this.eSelect.getFocusableElement().focus(),this.startedByEnter&&setTimeout((function(){t.isAlive()&&t.eSelect.showPicker()}))},e.prototype.focusIn=function(){this.eSelect.getFocusableElement().focus()},e.prototype.getValue=function(){return this.eSelect.getValue()},e.prototype.isPopup=function(){return!1},hJ([aY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),hJ([TZ("eSelect")],e.prototype,"eSelect",void 0),e}(uJ),gJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),vJ=function(t){function e(e){var o=t.call(this,'\n
\n '+e.getTemplate()+"\n
")||this;return o.cellEditorInput=e,o}return gJ(e,t),e.prototype.init=function(t){this.params=t;var e,o=this.eInput;if(this.cellEditorInput.init(o,t),t.cellStartedEdit){this.focusAfterAttached=!0;var n=t.eventKey;n===Qq.BACKSPACE||t.eventKey===Qq.DELETE?e="":n&&1===n.length?e=n:(e=this.cellEditorInput.getStartValue(),n!==Qq.F2&&(this.highlightAllOnFocus=!0))}else this.focusAfterAttached=!1,e=this.cellEditorInput.getStartValue();null!=e&&o.setStartValue(e),this.addManagedListener(o.getGui(),"keydown",(function(t){var e=t.key;e!==Qq.PAGE_UP&&e!==Qq.PAGE_DOWN||t.preventDefault()}))},e.prototype.afterGuiAttached=function(){var t,e,o=this.localeService.getLocaleTextFunc(),n=this.eInput;if(n.setInputAriaLabel(o("ariaInputEditor","Input Editor")),this.focusAfterAttached){NX()||n.getFocusableElement().focus();var i=n.getInputElement();this.highlightAllOnFocus?i.select():null===(e=(t=this.cellEditorInput).setCaret)||void 0===e||e.call(t)}},e.prototype.focusIn=function(){var t=this.eInput,e=t.getFocusableElement(),o=t.getInputElement();e.focus(),o.select()},e.prototype.getValue=function(){return this.cellEditorInput.getValue()},e.prototype.isPopup=function(){return!1},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([TZ("eInput")],e.prototype,"eInput",void 0),e}(uJ),yJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),mJ=function(){function t(){}return t.prototype.getTemplate=function(){return''},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.maxLength&&t.setMaxLength(e.maxLength)},t.prototype.getValue=function(){var t=this.eInput.getValue();return h$(t)||h$(this.params.value)?this.params.parseValue(t):this.params.value},t.prototype.getStartValue=function(){return this.params.useFormatter||this.params.column.getColDef().refData?this.params.formatValue(this.params.value):this.params.value},t.prototype.setCaret=function(){var t=this.eInput.getValue(),e=h$(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},t}(),CJ=function(t){function e(){return t.call(this,new mJ)||this}return yJ(e,t),e}(vJ),wJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),SJ=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.refreshCount=0,o}return wJ(e,t),e.prototype.init=function(t){this.eValue=this.queryForHtmlElement(".ag-value-change-value"),this.eDelta=this.queryForHtmlElement(".ag-value-change-delta"),this.refresh(t)},e.prototype.showDelta=function(t,e){var o=Math.abs(e),n=t.formatValue(o),i=h$(n)?n:o,r=e>=0;this.eDelta.innerHTML=r?"↑"+i:"↓"+i,this.eDelta.classList.toggle("ag-value-change-delta-up",r),this.eDelta.classList.toggle("ag-value-change-delta-down",!r)},e.prototype.setTimerToRemoveDelta=function(){var t=this;this.refreshCount++;var e=this.refreshCount;window.setTimeout((function(){e===t.refreshCount&&t.hideDeltaValue()}),2e3)},e.prototype.hideDeltaValue=function(){this.eValue.classList.remove("ag-value-change-value-highlight"),Eq(this.eDelta)},e.prototype.refresh=function(t){var e=t.value;if(e===this.lastValue)return!1;if(h$(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:h$(t.value)?this.eValue.innerHTML=e:Eq(this.eValue),this.filterManager.isSuppressFlashingCellsBecauseFiltering())return!1;if("number"==typeof e&&"number"==typeof this.lastValue){var o=e-this.lastValue;this.showDelta(t,o)}return this.lastValue&&this.eValue.classList.add("ag-value-change-value-highlight"),this.setTimerToRemoveDelta(),this.lastValue=e,!0},e.TEMPLATE='',function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([aY("filterManager")],e.prototype,"filterManager",void 0),e}(EZ),bJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_J=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.refreshCount=0,o.eCurrent=o.queryForHtmlElement(".ag-value-slide-current"),o}return bJ(e,t),e.prototype.init=function(t){this.refresh(t)},e.prototype.addSlideAnimation=function(){var t=this;this.refreshCount++;var e=this.refreshCount;this.ePrevious&&this.getGui().removeChild(this.ePrevious),this.ePrevious=Rq(''),this.ePrevious.innerHTML=this.eCurrent.innerHTML,this.getGui().insertBefore(this.ePrevious,this.eCurrent),window.setTimeout((function(){e===t.refreshCount&&t.ePrevious.classList.add("ag-value-slide-out-end")}),50),window.setTimeout((function(){e===t.refreshCount&&(t.getGui().removeChild(t.ePrevious),t.ePrevious=null)}),3e3)},e.prototype.refresh=function(t){var e=t.value;return f$(e)&&(e=""),e!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=e,h$(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:h$(t.value)?this.eCurrent.innerHTML=e:Eq(this.eCurrent),!0)},e.TEMPLATE='\n \n ',function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([aY("filterManager")],e.prototype,"filterManager",void 0),e}(EZ),xJ=function(){return xJ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o0?n:void 0,level:this.level}),null!==this.id&&"string"==typeof this.id&&this.id.startsWith(t.ID_PREFIX_ROW_GROUP)&&console.error("AG Grid: Row IDs cannot start with "+t.ID_PREFIX_ROW_GROUP+", this is a reserved prefix for AG Grid's row grouping feature."),null!==this.id&&"string"!=typeof this.id&&(this.id=""+this.id)}else this.id=void 0;else this.id=e},t.prototype.getGroupKeys=function(t){void 0===t&&(t=!1);var e=[],o=this;for(t&&(o=o.parent);o&&o.level>=0;)e.push(o.key),o=o.parent;return e.reverse(),e},t.prototype.isPixelInRange=function(t){return!(!h$(this.rowTop)||!h$(this.rowHeight))&&t>=this.rowTop&&tn&&(n=a)})),!e&&((o||n<10)&&(n=this.beans.gridOptionsService.getRowHeightForNode(this).height),n!=this.rowHeight))){this.setRowHeight(n);var r=this.beans.rowModel;r.onRowHeightChangedDebounced&&r.onRowHeightChangedDebounced()}},t.prototype.setRowIndex=function(e){this.rowIndex!==e&&(this.rowIndex=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_ROW_INDEX_CHANGED)))},t.prototype.setUiLevel=function(e){this.uiLevel!==e&&(this.uiLevel=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_UI_LEVEL_CHANGED)))},t.prototype.setExpanded=function(e,o){if(this.expanded!==e){this.expanded=e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_EXPANDED_CHANGED));var n=Object.assign({},this.createGlobalRowEvent(eK.EVENT_ROW_GROUP_OPENED),{expanded:e,event:o||null});this.beans.rowNodeEventThrottle.dispatchExpanded(n),this.sibling&&this.beans.rowRenderer.refreshCells({rowNodes:[this]})}},t.prototype.createGlobalRowEvent=function(t){return{type:t,node:this,data:this.data,rowIndex:this.rowIndex,rowPinned:this.rowPinned,context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi}},t.prototype.dispatchLocalEvent=function(t){this.eventService&&this.eventService.dispatchEvent(t)},t.prototype.setDataValue=function(t,e,o){var n=this,i=function(){var e;return"string"!=typeof t?t:null!==(e=n.beans.columnModel.getGridColumn(t))&&void 0!==e?e:n.beans.columnModel.getPrimaryColumn(t)}(),r=this.getValueFromValueService(i);if(this.beans.gridOptionsService.is("readOnlyEdit"))return this.dispatchEventForSaveValueReadOnly(i,r,e,o),!1;var a=this.beans.valueService.setValue(this,i,e,o);return this.dispatchCellChangedEvent(i,e,r),this.checkRowSelectable(),a},t.prototype.getValueFromValueService=function(t){var e=this.leafGroup&&this.beans.columnModel.isPivotMode(),o=this.group&&this.expanded&&!this.footer&&!e,n=this.beans.gridOptionsService.getGroupIncludeFooter()({node:this}),i=this.beans.gridOptionsService.is("groupSuppressBlankHeader"),r=o&&n&&!i;return this.beans.valueService.getValue(t,this,!1,r)},t.prototype.dispatchEventForSaveValueReadOnly=function(t,e,o,n){var i={type:eK.EVENT_CELL_EDIT_REQUEST,event:null,rowIndex:this.rowIndex,rowPinned:this.rowPinned,column:t,colDef:t.getColDef(),context:this.beans.gridOptionsService.context,api:this.beans.gridOptionsService.api,columnApi:this.beans.gridOptionsService.columnApi,data:this.data,node:this,oldValue:e,newValue:o,value:o,source:n};this.beans.eventService.dispatchEvent(i)},t.prototype.setGroupValue=function(t,e){var o=this.beans.columnModel.getGridColumn(t);f$(this.groupData)&&(this.groupData={});var n=o.getColId(),i=this.groupData[n];i!==e&&(this.groupData[n]=e,this.dispatchCellChangedEvent(o,e,i))},t.prototype.setAggData=function(t){var e=this,o=M$([this.aggData,t]),n=this.aggData;this.aggData=t,this.eventService&&o.forEach((function(t){var o=e.aggData?e.aggData[t]:void 0,i=n?n[t]:void 0;if(o!==i){var r=e.beans.columnModel.lookupGridColumn(t);r&&e.dispatchCellChangedEvent(r,o,i)}}))},t.prototype.updateHasChildren=function(){var e=this.group&&!this.footer||this.childrenAfterGroup&&this.childrenAfterGroup.length>0;if(this.beans.gridOptionsService.isRowModelType("serverSide")){var o=this.beans.gridOptionsService.is("treeData"),n=this.beans.gridOptionsService.get("isServerSideGroup");e=!this.stub&&!this.footer&&(o?!!n&&n(this.data):!!this.group)}e!==this.__hasChildren&&(this.__hasChildren=!!e,this.eventService&&this.eventService.dispatchEvent(this.createLocalRowEvent(t.EVENT_HAS_CHILDREN_CHANGED)))},t.prototype.hasChildren=function(){return null==this.__hasChildren&&this.updateHasChildren(),this.__hasChildren},t.prototype.isEmptyRowGroupNode=function(){return this.group&&g$(this.childrenAfterGroup)},t.prototype.dispatchCellChangedEvent=function(e,o,n){var i={type:t.EVENT_CELL_CHANGED,node:this,column:e,newValue:o,oldValue:n};this.dispatchLocalEvent(i)},t.prototype.resetQuickFilterAggregateText=function(){this.quickFilterAggregateText=null},t.prototype.isExpandable=function(){return!!(this.hasChildren()&&!this.footer||this.master)},t.prototype.isSelected=function(){return this.footer?this.sibling.isSelected():this.selected},t.prototype.depthFirstSearch=function(t){this.childrenAfterGroup&&this.childrenAfterGroup.forEach((function(e){return e.depthFirstSearch(t)})),t(this)},t.prototype.calculateSelectedFromChildren=function(){var t,e=!1,o=!1,n=!1;if(!(null===(t=this.childrenAfterGroup)||void 0===t?void 0:t.length))return this.selectable?this.selected:null;for(var i=0;i=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},OJ=function(t){function e(){return t.call(this,'\n ')||this}return TJ(e,t),e.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),rX(this.eCheckbox.getInputElement(),"polite")},e.prototype.getCheckboxId=function(){return this.eCheckbox.getInputElement().id},e.prototype.onDataChanged=function(){this.onSelectionChanged()},e.prototype.onSelectableChanged=function(){this.showOrHideSelect()},e.prototype.onSelectionChanged=function(){var t=this.localeService.getLocaleTextFunc(),e=this.rowNode.isSelected(),o=EX(t,e),n=t("ariaRowToggleSelection","Press Space to toggle row selection");this.eCheckbox.setValue(e,!0),this.eCheckbox.setInputAriaLabel(n+" ("+o+")")},e.prototype.onClicked=function(t,e,o){return this.rowNode.setSelectedParams({newValue:t,rangeSelect:o.shiftKey,groupSelectsFiltered:e,event:o,source:"checkboxSelected"})},e.prototype.init=function(t){var e=this;if(this.rowNode=t.rowNode,this.column=t.column,this.overrides=t.overrides,this.onSelectionChanged(),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){VY(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){VY(t);var o=e.gridOptionsService.is("groupSelectsFiltered"),n=e.eCheckbox.getValue();e.shouldHandleIndeterminateState(n,o)?0===e.onClicked(!0,o,t||{})&&e.onClicked(!1,o,t):n?e.onClicked(!1,o,t):e.onClicked(!0,o,t||{})})),this.addManagedListener(this.rowNode,EJ.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_SELECTABLE_CHANGED,this.onSelectableChanged.bind(this)),this.gridOptionsService.get("isRowSelectable")||"function"==typeof this.getIsVisible()){var o=this.showOrHideSelect.bind(this);this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.rowNode,EJ.EVENT_DATA_CHANGED,o),this.addManagedListener(this.rowNode,EJ.EVENT_CELL_CHANGED,o),this.showOrHideSelect()}this.eCheckbox.getInputElement().setAttribute("tabindex","-1")},e.prototype.shouldHandleIndeterminateState=function(t,e){return e&&(void 0===this.eCheckbox.getPreviousValue()||void 0===t)&&this.gridOptionsService.isRowModelType("clientSide")},e.prototype.showOrHideSelect=function(){var t,e,o,n,i=this.rowNode.selectable,r=this.getIsVisible();if(i)if("function"==typeof r){var a=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,s=null===(e=this.column)||void 0===e?void 0:e.createColumnFunctionCallbackParams(this.rowNode);i=!!s&&r(DJ(DJ({},a),s))}else i=null!=r&&r;if(null===(o=this.column)||void 0===o?void 0:o.getColDef().showDisabledCheckboxes)return this.eCheckbox.setDisabled(!i),this.setVisible(!0),void this.setDisplayed(!0);(null===(n=this.overrides)||void 0===n?void 0:n.removeHidden)?this.setDisplayed(i):this.setVisible(i)},e.prototype.getIsVisible=function(){var t,e;return this.overrides?this.overrides.isVisible:null===(e=null===(t=this.column)||void 0===t?void 0:t.getColDef())||void 0===e?void 0:e.checkboxSelection},RJ([TZ("eCheckbox")],e.prototype,"eCheckbox",void 0),RJ([nY],e.prototype,"postConstruct",null),e}(EZ),MJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),AJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},IJ=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};!function(t){t[t.ToolPanel=0]="ToolPanel",t[t.HeaderCell=1]="HeaderCell",t[t.RowDrag=2]="RowDrag",t[t.ChartPanel=3]="ChartPanel",t[t.AdvancedFilterBuilder=4]="AdvancedFilterBuilder"}(NQ||(NQ={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(FQ||(FQ={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(kQ||(kQ={}));var PJ,LJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragSourceAndParamsList=[],e.dropTargets=[],e}var o;return MJ(e,t),o=e,e.prototype.init=function(){this.ePinnedIcon=Xq("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Xq("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Xq("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Xq("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Xq("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Xq("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Xq("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Xq("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Xq("dropNotAllowed",this.gridOptionsService,null)},e.prototype.addDragSource=function(t,e){void 0===e&&(e=!1);var o={eElement:t.eElement,dragStartPixels:t.dragStartPixels,onDragStart:this.onDragStart.bind(this,t),onDragStop:this.onDragStop.bind(this),onDragging:this.onDragging.bind(this),includeTouch:e};this.dragSourceAndParamsList.push({params:o,dragSource:t}),this.dragService.addDragSource(o)},e.prototype.removeDragSource=function(t){var e=this.dragSourceAndParamsList.find((function(e){return e.dragSource===t}));e&&(this.dragService.removeDragSource(e.params),DY(this.dragSourceAndParamsList,e))},e.prototype.clearDragSourceParamsList=function(){var t=this;this.dragSourceAndParamsList.forEach((function(e){return t.dragService.removeDragSource(e.params)})),this.dragSourceAndParamsList.length=0,this.dropTargets.length=0},e.prototype.nudge=function(){this.dragging&&this.onDragging(this.eventLastTime,!0)},e.prototype.onDragStart=function(t,e){this.dragging=!0,this.dragSource=t,this.eventLastTime=e,this.dragItem=this.dragSource.getDragItem(),this.lastDropTarget=this.dragSource.dragSourceDropTarget,this.dragSource.onDragStarted&&this.dragSource.onDragStarted(),this.createGhost()},e.prototype.onDragStop=function(t){if(this.eventLastTime=null,this.dragging=!1,this.dragSource.onDragStopped&&this.dragSource.onDragStopped(),this.lastDropTarget&&this.lastDropTarget.onDragStop){var e=this.createDropTargetEvent(this.lastDropTarget,t,null,null,!1);this.lastDropTarget.onDragStop(e)}this.lastDropTarget=null,this.dragItem=null,this.removeGhost()},e.prototype.onDragging=function(t,e){var o,n,i,r,a=this,s=this.getHorizontalDirection(t),l=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var u=this.dropTargets.filter((function(e){return a.isMouseOnDropTarget(t,e)})),c=this.findCurrentDropTarget(t,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(t,s,l,e),null!==this.lastDropTarget&&null===c&&(null===(n=(o=this.dragSource).onGridExit)||void 0===n||n.call(o,this.dragItem)),null===this.lastDropTarget&&null!==c&&(null===(r=(i=this.dragSource).onGridEnter)||void 0===r||r.call(i,this.dragItem)),this.enterDragTargetIfExists(c,t,s,l,e),this.lastDropTarget=c;else if(c&&c.onDragging){var p=this.createDropTargetEvent(c,t,s,l,e);c.onDragging(p)}},e.prototype.getAllContainersFromDropTarget=function(t){var e=t.getSecondaryContainers?t.getSecondaryContainers():null,o=[[t.getContainer()]];return e?o.concat(e):o},e.prototype.allContainersIntersect=function(t,e){var o,n;try{for(var i=IJ(e),r=i.next();!r.done;r=i.next()){var a=r.value.getBoundingClientRect();if(0===a.width||0===a.height)return!1;var s=t.clientX>=a.left&&t.clientX=a.top&&t.clientYo?kQ.Left:kQ.Right},e.prototype.getVerticalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientY,o=t.clientY;return e===o?null:e>o?FQ.Up:FQ.Down},e.prototype.createDropTargetEvent=function(t,e,o,n,i){var r=t.getContainer(),a=r.getBoundingClientRect(),s=this,l=s.gridApi,u=s.columnApi,c=s.dragItem,p=s.dragSource;return{event:e,x:e.clientX-a.left,y:e.clientY-a.top,vDirection:n,hDirection:o,dragSource:p,fromNudge:i,dragItem:c,api:l,columnApi:u,dropZoneTarget:r}},e.prototype.positionGhost=function(t){var e=this.eGhost;if(e){var o=e.getBoundingClientRect().height,n=jX()-2,i=UX()-2,r=Sq(e.offsetParent),a=t.clientY,s=t.clientX,l=a-r.top-o/2,u=s-r.left-10,c=this.gridOptionsService.getDocument(),p=c.defaultView||window,d=p.pageYOffset||c.documentElement.scrollTop,h=p.pageXOffset||c.documentElement.scrollLeft;n>0&&u+e.clientWidth>n+h&&(u=n+h-e.clientWidth),u<0&&(u=0),i>0&&l+e.clientHeight>i+d&&(l=i+d-e.clientHeight),l<0&&(l=0),e.style.left=u+"px",e.style.top=l+"px"}},e.prototype.removeGhost=function(){this.eGhost&&this.eGhostParent&&this.eGhostParent.removeChild(this.eGhost),this.eGhost=null},e.prototype.createGhost=function(){this.eGhost=Rq(o.GHOST_TEMPLATE),this.mouseEventService.stampTopLevelGridCompWithGridInstance(this.eGhost);var t=this.environment.getTheme().theme;t&&this.eGhost.classList.add(t),this.eGhostIcon=this.eGhost.querySelector(".ag-dnd-ghost-icon"),this.setGhostIcon(null);var e=this.eGhost.querySelector(".ag-dnd-ghost-label"),n=this.dragSource.dragItemName;H$(n)&&(n=n()),e.innerHTML=uK(n)||"",this.eGhost.style.height="25px",this.eGhost.style.top="20px",this.eGhost.style.left="20px";var i=this.gridOptionsService.getDocument(),r=null;try{r=i.fullscreenElement}catch(t){}finally{if(!r){var a=this.gridOptionsService.getRootNode();r=a.querySelector("body")||(a instanceof ShadowRoot?a:null==a?void 0:a.documentElement)}}this.eGhostParent=r,this.eGhostParent?this.eGhostParent.appendChild(this.eGhost):console.warn("AG Grid: could not find document body, it is needed for dragging columns")},e.prototype.setGhostIcon=function(t,e){void 0===e&&(e=!1),Eq(this.eGhostIcon);var n=null;switch(t||(t=this.dragSource.getDefaultIconName?this.dragSource.getDefaultIconName():o.ICON_NOT_ALLOWED),t){case o.ICON_PINNED:n=this.ePinnedIcon;break;case o.ICON_MOVE:n=this.eMoveIcon;break;case o.ICON_LEFT:n=this.eLeftIcon;break;case o.ICON_RIGHT:n=this.eRightIcon;break;case o.ICON_GROUP:n=this.eGroupIcon;break;case o.ICON_AGGREGATE:n=this.eAggregateIcon;break;case o.ICON_PIVOT:n=this.ePivotIcon;break;case o.ICON_NOT_ALLOWED:n=this.eDropNotAllowedIcon;break;case o.ICON_HIDE:n=this.eHideIcon}this.eGhostIcon.classList.toggle("ag-shake-left-to-right",e),n===this.eHideIcon&&this.gridOptionsService.is("suppressDragLeaveHidesColumns")||n&&this.eGhostIcon.appendChild(n)},e.ICON_PINNED="pinned",e.ICON_MOVE="move",e.ICON_LEFT="left",e.ICON_RIGHT="right",e.ICON_GROUP="group",e.ICON_AGGREGATE="aggregate",e.ICON_PIVOT="pivot",e.ICON_NOT_ALLOWED="notAllowed",e.ICON_HIDE="hide",e.GHOST_TEMPLATE='
\n \n
\n
',AJ([aY("dragService")],e.prototype,"dragService",void 0),AJ([aY("mouseEventService")],e.prototype,"mouseEventService",void 0),AJ([aY("columnApi")],e.prototype,"columnApi",void 0),AJ([aY("gridApi")],e.prototype,"gridApi",void 0),AJ([nY],e.prototype,"init",null),AJ([iY],e.prototype,"clearDragSourceParamsList",null),o=AJ([rY("dragAndDropService")],e)}(qY),NJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),FJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},kJ=function(t){function e(e,o,n,i,r,a){var s=t.call(this)||this;return s.cellValueFn=e,s.rowNode=o,s.column=n,s.customGui=i,s.dragStartPixels=r,s.suppressVisibilityChange=a,s.dragSource=null,s}return NJ(e,t),e.prototype.isCustomGui=function(){return null!=this.customGui},e.prototype.postConstruct=function(){if(this.customGui?this.setDragElement(this.customGui,this.dragStartPixels):(this.setTemplate(''),this.getGui().appendChild(qq("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.gridOptionsService.is("rowDragManaged")?new HJ(this,this.beans,this.rowNode,this.column):new VJ(this,this.beans,this.rowNode,this.column);this.createManagedBean(t,this.beans.context)}},e.prototype.setDragElement=function(t,e){this.setTemplateFromElement(t),this.addDragSource(e)},e.prototype.getSelectedNodes=function(){if(!this.gridOptionsService.is("rowDragMultiRow"))return[this.rowNode];var t=this.beans.selectionService.getSelectedNodes();return-1!==t.indexOf(this.rowNode)?t:[this.rowNode]},e.prototype.checkCompatibility=function(){var t=this.gridOptionsService.is("rowDragManaged");this.gridOptionsService.is("treeData")&&t&&G$((function(){return console.warn("AG Grid: If using row drag with tree data, you cannot have rowDragManaged=true")}),"RowDragComp.managedAndTreeData")},e.prototype.getDragItem=function(){return{rowNode:this.rowNode,rowNodes:this.getSelectedNodes(),columns:this.column?[this.column]:void 0,defaultTextValue:this.cellValueFn()}},e.prototype.getRowDragText=function(t){if(t){var e=t.getColDef();if(e.rowDragText)return e.rowDragText}return this.gridOptionsService.get("rowDragText")},e.prototype.addDragSource=function(t){var e=this;void 0===t&&(t=4),this.dragSource&&this.removeDragSource();var o=this.getRowDragText(this.column),n=this.localeService.getLocaleTextFunc();this.dragSource={type:NQ.RowDrag,eElement:this.getGui(),dragItemName:function(){var t,i=e.getDragItem(),r=(null===(t=i.rowNodes)||void 0===t?void 0:t.length)||1;return o?o(i,r):1===r?e.cellValueFn():r+" "+n("rowDragRows","rows")},getDragItem:function(){return e.getDragItem()},dragStartPixels:t,dragSourceDomDataKey:this.gridOptionsService.getDomDataKey()},this.beans.dragAndDropService.addDragSource(this.dragSource,!0)},e.prototype.removeDragSource=function(){this.dragSource&&this.beans.dragAndDropService.removeDragSource(this.dragSource),this.dragSource=null},FJ([aY("beans")],e.prototype,"beans",void 0),FJ([nY],e.prototype,"postConstruct",null),FJ([iY],e.prototype,"removeDragSource",null),e}(EZ),GJ=function(t){function e(e,o,n){var i=t.call(this)||this;return i.parent=e,i.rowNode=o,i.column=n,i}return NJ(e,t),e.prototype.setDisplayedOrVisible=function(t){var e={skipAriaHidden:!0};if(t)this.parent.setDisplayed(!1,e);else{var o=!0,n=!1;this.column&&(o=this.column.isRowDrag(this.rowNode)||this.parent.isCustomGui(),n=H$(this.column.getColDef().rowDrag)),n?(this.parent.setDisplayed(!0,e),this.parent.setVisible(o,e)):(this.parent.setDisplayed(o,e),this.parent.setVisible(!0,e))}},e}(qY),VJ=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return NJ(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.gridOptionsService.is("suppressRowDrag");this.setDisplayedOrVisible(t)},FJ([nY],e.prototype,"postConstruct",null),e}(GJ),HJ=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return NJ(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,eK.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,eK.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.workOutVisibility()},e.prototype.onSuppressRowDrag=function(){this.workOutVisibility()},e.prototype.workOutVisibility=function(){var t=this.beans.ctrlsService.getGridBodyCtrl().getRowDragFeature(),e=t&&t.shouldPreventRowMove(),o=this.gridOptionsService.is("suppressRowDrag"),n=this.beans.dragAndDropService.hasExternalDropZones(),i=e&&!n||o;this.setDisplayedOrVisible(i)},FJ([nY],e.prototype,"postConstruct",null),e}(GJ),BJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),WJ=function(){return WJ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},jJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return BJ(e,t),e.prototype.init=function(t,e,o,n,i,r,a){this.params=a,this.eGui=e,this.eCheckbox=o,this.eExpanded=n,this.eContracted=i,this.comp=t,this.compClass=r;var s=a.node,l=a.value,u=a.colDef;if(!this.isTopLevelFooter()){if(this.isEmbeddedRowMismatch())return;var c=!0===(null==u?void 0:u.showRowGroup),p=null==l&&!s.master;if(!c&&p)return;if(s.footer&&this.gridOptionsService.is("groupHideOpenParents")&&(u&&u.showRowGroup)!==(s.rowGroupColumn&&s.rowGroupColumn.getColId()))return}this.setupShowingValueForOpenedParent(),this.findDisplayedGroupNode(),this.addFullWidthRowDraggerIfNeeded(),this.addExpandAndContract(),this.addCheckboxIfNeeded(),this.addValueElement(),this.setupIndent(),this.refreshAriaExpanded()},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.expandListener=null},e.prototype.refreshAriaExpanded=function(){var t=this.params,e=t.node,o=t.eParentOfValue;if(this.expandListener&&(this.expandListener=this.expandListener()),this.isExpandable()){var n=function(){cX(o,!!e.expanded)};this.expandListener=this.addManagedListener(e,EJ.EVENT_EXPANDED_CHANGED,n)||null,n()}else pX(o)},e.prototype.isTopLevelFooter=function(){if(!this.gridOptionsService.is("groupIncludeTotalFooter"))return!1;if(null!=this.params.value||-1!=this.params.node.level)return!1;var t=this.params.colDef;if(null==t)return!0;if(!0===t.showRowGroup)return!0;var e=this.columnModel.getRowGroupColumns();return!e||0===e.length||e[0].getId()===t.showRowGroup},e.prototype.isEmbeddedRowMismatch=function(){if(!this.params.fullWidth||!this.gridOptionsService.is("embedFullWidthRows"))return!1;var t="left"===this.params.pinned,e="right"===this.params.pinned,o=!t&&!e;return this.gridOptionsService.is("enableRtl")?this.columnModel.isPinningLeft()?!e:!o:this.columnModel.isPinningLeft()?!t:!o},e.prototype.findDisplayedGroupNode=function(){var t=this.params.column,e=this.params.node;if(this.showingValueForOpenedParent)for(var o=e.parent;null!=o;){if(o.rowGroupColumn&&t.isRowGroupDisplayed(o.rowGroupColumn.getId())){this.displayedGroupNode=o;break}o=o.parent}f$(this.displayedGroupNode)&&(this.displayedGroupNode=e)},e.prototype.setupShowingValueForOpenedParent=function(){var t=this.params.node,e=this.params.column;if(this.gridOptionsService.is("groupHideOpenParents"))if(t.groupData){if(null!=t.rowGroupColumn){var o=t.rowGroupColumn.getId();if(e.isRowGroupDisplayed(o))return void(this.showingValueForOpenedParent=!1)}var n=null!=t.groupData[e.getId()];this.showingValueForOpenedParent=n}else this.showingValueForOpenedParent=!1;else this.showingValueForOpenedParent=!1},e.prototype.addValueElement=function(){this.displayedGroupNode.footer?this.addFooterValue():(this.addGroupValue(),this.addChildCount())},e.prototype.addGroupValue=function(){var t=this.adjustParamsWithDetailsFromRelatedColumn(),e=this.getInnerCompDetails(t),o=t.valueFormatted,n=t.value,i=o;null==i&&(i=""===n&&this.params.node.group?this.localeService.getLocaleTextFunc()("blanks","(Blanks)"):null!=n?n:null),this.comp.setInnerRenderer(e,i)},e.prototype.adjustParamsWithDetailsFromRelatedColumn=function(){var t=this.displayedGroupNode.rowGroupColumn,e=this.params.column;if(!t)return this.params;if(null!=e&&!e.isRowGroupDisplayed(t.getId()))return this.params;var o=this.params,n=this.params,i=n.value,r=n.node,a=this.valueFormatterService.formatValue(t,r,i);return WJ(WJ({},o),{valueFormatted:a})},e.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,e="";if(t){var o=E$(this.params);o.value=this.params.value,"function"==typeof t?e=t(o):"string"==typeof t?e=this.expressionService.evaluate(t,o):console.warn("AG Grid: footerValueGetter should be either a function or a string (expression)")}else e="Total "+(null!=this.params.value?this.params.value:"");var n=this.getInnerCompDetails(this.params);this.comp.setInnerRenderer(n,e)},e.prototype.getInnerCompDetails=function(t){var e=this;if(t.fullWidth)return this.userComponentFactory.getFullWidthGroupRowInnerCellRenderer(this.gridOptionsService.get("groupRowRendererParams"),t);var o=this.userComponentFactory.getInnerRendererDetails(t,t),n=function(t){return t&&t.componentClass==e.compClass};if(o&&!n(o))return o;var i=this.displayedGroupNode.rowGroupColumn,r=i?i.getColDef():void 0;if(r){var a=this.userComponentFactory.getCellRendererDetails(r,t);if(a&&!n(a))return a;if(n(a)&&r.cellRendererParams&&r.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(r.cellRendererParams,t)}},e.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,EJ.EVENT_ALL_CHILDREN_COUNT_CHANGED,this.updateChildCount.bind(this)),this.updateChildCount())},e.prototype.updateChildCount=function(){var t=this.displayedGroupNode.allChildrenCount,e=this.isShowRowGroupForThisRow()&&null!=t&&t>=0?"("+t+")":"";this.comp.setChildCount(e)},e.prototype.isShowRowGroupForThisRow=function(){if(this.gridOptionsService.is("treeData"))return!0;var t=this.displayedGroupNode.rowGroupColumn;if(!t)return!1;var e=this.params.column;return null==e||e.isRowGroupDisplayed(t.getId())},e.prototype.addExpandAndContract=function(){var t,e=this.params,o=qq("groupExpanded",this.gridOptionsService,null),n=qq("groupContracted",this.gridOptionsService,null);o&&this.eExpanded.appendChild(o),n&&this.eContracted.appendChild(n);var i=e.eGridCell;(null===(t=this.params.column)||void 0===t?void 0:t.isCellEditable(e.node))&&this.gridOptionsService.is("enableGroupEdit")||!this.isExpandable()||e.suppressDoubleClickExpand||this.addManagedListener(i,"dblclick",this.onCellDblClicked.bind(this)),this.addManagedListener(this.eExpanded,"click",this.onExpandClicked.bind(this)),this.addManagedListener(this.eContracted,"click",this.onExpandClicked.bind(this)),this.addManagedListener(i,"keydown",this.onKeyDown.bind(this)),this.addManagedListener(e.node,EJ.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,EJ.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,EJ.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,EJ.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,EJ.EVENT_HAS_CHILDREN_CHANGED,r)},e.prototype.onExpandClicked=function(t){HY(t)||(VY(t),this.onExpandOrContract(t))},e.prototype.onExpandOrContract=function(t){var e=this.displayedGroupNode,o=!e.expanded;!o&&e.sticky&&this.scrollToStickyNode(e),e.setExpanded(o,t)},e.prototype.scrollToStickyNode=function(t){this.ctrlsService.getGridBodyCtrl().getScrollFeature().setVerticalScrollPosition(t.rowTop-t.stickyRowTop)},e.prototype.isExpandable=function(){if(this.showingValueForOpenedParent)return!0;var t=this.displayedGroupNode,e=this.columnModel.isPivotMode()&&t.leafGroup;if(!t.isExpandable()||t.footer||e)return!1;var o=this.params.column;return null==o||"string"!=typeof o.getColDef().showRowGroup||this.isShowRowGroupForThisRow()},e.prototype.showExpandAndContractIcons=function(){var t=this,e=t.params,o=t.displayedGroupNode,n=t.columnModel,i=e.node,r=this.isExpandable();if(r){var a=!!this.showingValueForOpenedParent||i.expanded;this.comp.setExpandedDisplayed(a),this.comp.setContractedDisplayed(!a)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var s=n.isPivotMode(),l=s&&o.leafGroup,u=r&&!l,c=i.footer&&-1===i.level;this.comp.addOrRemoveCssClass("ag-cell-expandable",u),this.comp.addOrRemoveCssClass("ag-row-group",u),s?this.comp.addOrRemoveCssClass("ag-pivot-leaf-group",l):c||this.comp.addOrRemoveCssClass("ag-row-group-leaf-indent",!u)},e.prototype.onRowNodeIsExpandableChanged=function(){this.showExpandAndContractIcons(),this.setIndent(),this.refreshAriaExpanded()},e.prototype.setupIndent=function(){var t=this.params.node;this.params.suppressPadding||(this.addManagedListener(t,EJ.EVENT_UI_LEVEL_CHANGED,this.setIndent.bind(this)),this.setIndent())},e.prototype.setIndent=function(){if(!this.gridOptionsService.is("groupHideOpenParents")){var t=this.params,e=t.node,o=!!t.colDef,n=this.gridOptionsService.is("treeData"),i=!o||n||!0===t.colDef.showRowGroup?e.uiLevel:0;this.indentClass&&this.comp.addOrRemoveCssClass(this.indentClass,!1),this.indentClass="ag-row-group-indent-"+i,this.comp.addOrRemoveCssClass(this.indentClass,!0)}},e.prototype.addFullWidthRowDraggerIfNeeded=function(){var t=this;if(this.params.fullWidth&&this.params.rowDrag){var e=new kJ((function(){return t.params.value}),this.params.node);this.createManagedBean(e,this.context),this.eGui.insertAdjacentElement("afterbegin",e.getGui())}},e.prototype.isUserWantsSelected=function(){var t=this.params.checkbox;return"function"==typeof t||!0===t},e.prototype.addCheckboxIfNeeded=function(){var t=this,e=this.displayedGroupNode,o=this.isUserWantsSelected()&&!e.footer&&!e.rowPinned&&!e.detail;if(o){var n=new OJ;this.getContext().createBean(n),n.init({rowNode:this.params.node,column:this.params.column,overrides:{isVisible:this.params.checkbox,callbackParams:this.params,removeHidden:!0}}),this.eCheckbox.appendChild(n.getGui()),this.addDestroyFunc((function(){return t.getContext().destroyBean(n)}))}this.comp.setCheckboxVisible(o)},e.prototype.onKeyDown=function(t){t.key!==Qq.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t)},e.prototype.onCellDblClicked=function(t){HY(t)||jY(this.eExpanded,t)||jY(this.eContracted,t)||this.onExpandOrContract(t)},zJ([aY("expressionService")],e.prototype,"expressionService",void 0),zJ([aY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),zJ([aY("columnModel")],e.prototype,"columnModel",void 0),zJ([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),zJ([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(qY),UJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$J=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},YJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return UJ(e,t),e.prototype.init=function(t){var e=this,o={setInnerRenderer:function(t,o){return e.setRenderDetails(t,o)},setChildCount:function(t){return e.eChildCount.innerHTML=t},addOrRemoveCssClass:function(t,o){return e.addOrRemoveCssClass(t,o)},setContractedDisplayed:function(t){return dq(e.eContracted,t)},setExpandedDisplayed:function(t){return dq(e.eExpanded,t)},setCheckboxVisible:function(t){return e.eCheckbox.classList.toggle("ag-invisible",!t)}},n=this.createManagedBean(new jJ),i=!t.colDef,r=this.getGui();n.init(o,r,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),i&&ZK(r,"gridcell")},e.prototype.setRenderDetails=function(t,e){var o=this;if(t){var n=t.newAgStackInstance();if(!n)return;n.then((function(t){if(t){var e=function(){return o.context.destroyBean(t)};o.isAlive()?(o.eValue.appendChild(t.getGui()),o.addDestroyFunc(e)):e()}}))}else this.eValue.innerText=e},e.prototype.destroy=function(){this.getContext().destroyBean(this.innerCellRenderer),t.prototype.destroy.call(this)},e.prototype.refresh=function(){return!1},e.TEMPLATE='\n \n \n \n \n \n ',$J([TZ("eExpanded")],e.prototype,"eExpanded",void 0),$J([TZ("eContracted")],e.prototype,"eContracted",void 0),$J([TZ("eCheckbox")],e.prototype,"eCheckbox",void 0),$J([TZ("eValue")],e.prototype,"eValue",void 0),$J([TZ("eChildCount")],e.prototype,"eChildCount",void 0),e}(EZ),KJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),XJ=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},qJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return KJ(e,t),e.prototype.init=function(t){t.node.failedLoad?this.setupFailed():this.setupLoading()},e.prototype.setupFailed=function(){var t=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=t("loadingError","ERR")},e.prototype.setupLoading=function(){var t=qq("groupLoading",this.gridOptionsService,null);t&&this.eLoadingIcon.appendChild(t);var e=this.localeService.getLocaleTextFunc();this.eLoadingText.innerText=e("loadingOoo","Loading")},e.prototype.refresh=function(t){return!1},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.TEMPLATE='
\n \n \n
',XJ([TZ("eLoadingIcon")],e.prototype,"eLoadingIcon",void 0),XJ([TZ("eLoadingText")],e.prototype,"eLoadingText",void 0),e}(EZ),ZJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),QJ=function(t){function e(){return t.call(this)||this}return ZJ(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o,n=null!==(o=this.gridOptionsService.get("overlayLoadingTemplate"))&&void 0!==o?o:e.DEFAULT_LOADING_OVERLAY_TEMPLATE,i=this.localeService.getLocaleTextFunc(),r=n.replace("[LOADING...]",i("loadingOoo","Loading..."));this.setTemplate(r)},e.DEFAULT_LOADING_OVERLAY_TEMPLATE='[LOADING...]',e}(EZ),JJ=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),t0=function(t){function e(){return t.call(this)||this}return JJ(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(t){var o,n=null!==(o=this.gridOptionsService.get("overlayNoRowsTemplate"))&&void 0!==o?o:e.DEFAULT_NO_ROWS_TEMPLATE,i=this.localeService.getLocaleTextFunc(),r=n.replace("[NO_ROWS_TO_SHOW]",i("noRowsToShow","No Rows To Show"));this.setTemplate(r)},e.DEFAULT_NO_ROWS_TEMPLATE='[NO_ROWS_TO_SHOW]',e}(EZ),e0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),o0=function(t){function e(){return t.call(this,'
')||this}return e0(e,t),e.prototype.init=function(t){var e=t.value;this.getGui().innerHTML=uK(e)},e}(uJ),n0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i0=function(){function t(){}return t.prototype.getTemplate=function(){return''},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.max&&t.setMax(e.max),null!=e.min&&t.setMin(e.min),null!=e.precision&&t.setPrecision(e.precision),null!=e.step&&t.setStep(e.step),e.showStepperButtons&&t.getInputElement().classList.add("ag-number-field-input-stepper")},t.prototype.getValue=function(){var t=this.eInput.getValue();if(!h$(t)&&!h$(this.params.value))return this.params.value;var e=this.params.parseValue(t);if(null==e)return e;if("string"==typeof e){if(""===e)return null;e=Number(e)}return isNaN(e)?null:e},t.prototype.getStartValue=function(){return this.params.value},t}(),r0=function(t){function e(){return t.call(this,new i0)||this}return n0(e,t),e}(vJ),a0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),s0=function(){function t(){}return t.prototype.getTemplate=function(){return''},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.min&&t.setMin(e.min),null!=e.max&&t.setMax(e.max),null!=e.step&&t.setStep(e.step)},t.prototype.getValue=function(){var t=this.eInput.getDate();return h$(t)||h$(this.params.value)?null!=t?t:null:this.params.value},t.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return eq(t,!1)},t}(),l0=function(t){function e(){return t.call(this,new s0)||this}return a0(e,t),e}(vJ),u0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),c0=function(){function t(t){this.getDataTypeService=t}return t.prototype.getTemplate=function(){return''},t.prototype.init=function(t,e){this.eInput=t,this.params=e,null!=e.min&&t.setMin(e.min),null!=e.max&&t.setMax(e.max),null!=e.step&&t.setStep(e.step)},t.prototype.getValue=function(){var t=this.formatDate(this.eInput.getDate());return h$(t)||h$(this.params.value)?this.params.parseValue(null!=t?t:""):this.params.value},t.prototype.getStartValue=function(){var t,e;return eq(null!==(e=this.parseDate(null!==(t=this.params.value)&&void 0!==t?t:void 0))&&void 0!==e?e:null,!1)},t.prototype.parseDate=function(t){return this.getDataTypeService().getDateParserFunction()(t)},t.prototype.formatDate=function(t){return this.getDataTypeService().getDateFormatterFunction()(t)},t}(),p0=function(t){function e(){var e=t.call(this,new c0((function(){return e.dataTypeService})))||this;return e}return u0(e,t),function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([aY("dataTypeService")],e.prototype,"dataTypeService",void 0),e}(vJ),d0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h0=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return d0(e,t),e.prototype.init=function(t){var e=this;this.params=t,this.updateCheckbox(t),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){if(VY(t),!e.eCheckbox.isDisabled()){var o=e.eCheckbox.getValue();e.onCheckboxChanged(o)}})),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){VY(t)}));var o=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",(function(t){if(t.key===Qq.SPACE&&!e.eCheckbox.isDisabled()){e.params.eGridCell===o.activeElement&&e.eCheckbox.toggle();var n=e.eCheckbox.getValue();e.onCheckboxChanged(n),t.preventDefault()}}))},e.prototype.refresh=function(t){return this.params=t,this.updateCheckbox(t),!0},e.prototype.updateCheckbox=function(t){var e,o,n,i,r=!0;if(t.node.group&&t.column){var a=t.column.getColId();a.startsWith(rK)?i=null==t.value||""===t.value?void 0:"true"===t.value:t.node.aggData&&void 0!==t.node.aggData[a]?i=null!==(e=t.value)&&void 0!==e?e:void 0:r=!1}else i=null!==(o=t.value)&&void 0!==o?o:void 0;if(r){this.eCheckbox.setValue(i);var s=null!=t.disabled?t.disabled:!(null===(n=t.column)||void 0===n?void 0:n.isCellEditable(t.node));this.eCheckbox.setDisabled(s);var l=this.localeService.getLocaleTextFunc(),u=EX(l,i),c=s?u:l("ariaToggleCellValue","Press SPACE to toggle cell value")+" ("+u+")";this.eCheckbox.setInputAriaLabel(c)}else this.eCheckbox.setDisplayed(!1)},e.prototype.onCheckboxChanged=function(t){var e=this.params,o=e.column,n=e.node,i=e.rowIndex,r=e.value,a={type:eK.EVENT_CELL_EDITING_STARTED,column:o,colDef:null==o?void 0:o.getColDef(),data:n.data,node:n,rowIndex:i,rowPinned:n.rowPinned,value:r};this.eventService.dispatchEvent(a);var s=this.params.node.setDataValue(this.params.column,t,"edit"),l={type:eK.EVENT_CELL_EDITING_STOPPED,column:o,colDef:null==o?void 0:o.getColDef(),data:n.data,node:n,rowIndex:i,rowPinned:n.rowPinned,value:r,oldValue:r,newValue:t,valueChanged:s};this.eventService.dispatchEvent(l)},e.TEMPLATE='\n ',function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([TZ("eCheckbox")],e.prototype,"eCheckbox",void 0),e}(EZ),f0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),g0=function(t){function e(){return t.call(this,'\n
\n \n
')||this}return f0(e,t),e.prototype.init=function(t){var e,o=this;this.params=t;var n=null!==(e=t.value)&&void 0!==e?e:void 0;this.eCheckbox.setValue(n),this.eCheckbox.getInputElement().setAttribute("tabindex","-1"),this.setAriaLabel(n),this.addManagedListener(this.eCheckbox,eK.EVENT_FIELD_VALUE_CHANGED,(function(t){return o.setAriaLabel(t.selected)}))},e.prototype.getValue=function(){return this.eCheckbox.getValue()},e.prototype.focusIn=function(){this.eCheckbox.getFocusableElement().focus()},e.prototype.afterGuiAttached=function(){this.params.cellStartedEdit&&this.focusIn()},e.prototype.isPopup=function(){return!1},e.prototype.setAriaLabel=function(t){var e=this.localeService.getLocaleTextFunc(),o=EX(e,t),n=e("ariaToggleCellValue","Press SPACE to toggle cell value");this.eCheckbox.setInputAriaLabel(n+" ("+o+")")},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([TZ("eCheckbox")],e.prototype,"eCheckbox",void 0),e}(uJ),v0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),y0=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},m0=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},C0=function(t,e){for(var o=0,n=e.length,i=t.length;o0&&console.warn(" Did you mean: ["+n.slice(0,3)+"]?"),console.warn("If using a custom component check it has been registered as described in: https://ag-grid.com/javascript-data-grid/components/")},y0([aY("gridOptions")],e.prototype,"gridOptions",void 0),y0([nY],e.prototype,"init",null),y0([rY("userComponentRegistry")],e)}(qY),S0={propertyName:"dateComponent",cellRenderer:!1},b0={propertyName:"headerComponent",cellRenderer:!1},_0={propertyName:"headerGroupComponent",cellRenderer:!1},x0={propertyName:"cellRenderer",cellRenderer:!0},E0={propertyName:"cellEditor",cellRenderer:!1},T0={propertyName:"innerRenderer",cellRenderer:!0},D0={propertyName:"loadingOverlayComponent",cellRenderer:!1},R0={propertyName:"noRowsOverlayComponent",cellRenderer:!1},O0={propertyName:"tooltipComponent",cellRenderer:!1},M0={propertyName:"filter",cellRenderer:!1},A0={propertyName:"floatingFilterComponent",cellRenderer:!1},I0={propertyName:"toolPanel",cellRenderer:!1},P0={propertyName:"statusPanel",cellRenderer:!1},L0={propertyName:"fullWidthCellRenderer",cellRenderer:!0},N0={propertyName:"loadingCellRenderer",cellRenderer:!0},F0={propertyName:"groupRowRenderer",cellRenderer:!0},k0={propertyName:"detailCellRenderer",cellRenderer:!0},G0=function(){function t(){}return t.getFloatingFilterType=function(t){return this.filterToFloatingFilterMapping[t]},t.filterToFloatingFilterMapping={set:"agSetColumnFloatingFilter",agSetColumnFilter:"agSetColumnFloatingFilter",multi:"agMultiColumnFloatingFilter",agMultiColumnFilter:"agMultiColumnFloatingFilter",group:"agGroupColumnFloatingFilter",agGroupColumnFilter:"agGroupColumnFloatingFilter",number:"agNumberColumnFloatingFilter",agNumberColumnFilter:"agNumberColumnFloatingFilter",date:"agDateColumnFloatingFilter",agDateColumnFilter:"agDateColumnFloatingFilter",text:"agTextColumnFloatingFilter",agTextColumnFilter:"agTextColumnFloatingFilter"},t}(),V0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),H0=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},B0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V0(e,t),e.prototype.getHeaderCompDetails=function(t,e){return this.getCompDetails(t,b0,"agColumnHeader",e)},e.prototype.getHeaderGroupCompDetails=function(t){var e=t.columnGroup.getColGroupDef();return this.getCompDetails(e,_0,"agColumnGroupHeader",t)},e.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,L0,null,t,!0)},e.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,N0,"agLoadingCellRenderer",t,!0)},e.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,F0,"agGroupRowRenderer",t,!0)},e.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,k0,"agDetailCellRenderer",t,!0)},e.prototype.getInnerRendererDetails=function(t,e){return this.getCompDetails(t,T0,null,e)},e.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,e){return this.getCompDetails(t,T0,null,e)},e.prototype.getCellRendererDetails=function(t,e){return this.getCompDetails(t,x0,null,e)},e.prototype.getCellEditorDetails=function(t,e){return this.getCompDetails(t,E0,"agCellEditor",e,!0)},e.prototype.getFilterDetails=function(t,e,o){return this.getCompDetails(t,M0,o,e,!0)},e.prototype.getDateCompDetails=function(t){return this.getCompDetails(this.gridOptions,S0,"agDateInput",t,!0)},e.prototype.getLoadingOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,D0,"agLoadingOverlay",t,!0)},e.prototype.getNoRowsOverlayCompDetails=function(t){return this.getCompDetails(this.gridOptions,R0,"agNoRowsOverlay",t,!0)},e.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,O0,"agTooltipComponent",t,!0)},e.prototype.getSetFilterCellRendererDetails=function(t,e){return this.getCompDetails(t,x0,null,e)},e.prototype.getFloatingFilterCompDetails=function(t,e,o){return this.getCompDetails(t,A0,o,e)},e.prototype.getToolPanelCompDetails=function(t,e){return this.getCompDetails(t,I0,null,e,!0)},e.prototype.getStatusPanelCompDetails=function(t,e){return this.getCompDetails(t,P0,null,e,!0)},e.prototype.getCompDetails=function(t,e,o,n,i){var r=this;void 0===i&&(i=!1);var a=e.propertyName,s=e.cellRenderer,l=this.getCompKeys(t,e,n),u=l.compName,c=l.jsComp,p=l.fwComp,d=l.paramsFromSelector,h=l.popupFromSelector,f=l.popupPositionFromSelector,g=function(t){var e=r.userComponentRegistry.retrieve(a,t);e&&(c=e.componentFromFramework?void 0:e.component,p=e.componentFromFramework?e.component:void 0)};if(null!=u&&g(u),null==c&&null==p&&null!=o&&g(o),c&&s&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(a,c)),c||p){var v=this.mergeParamsWithApplicationProvidedParams(t,e,n,d),y=null==c,m=c||p;return{componentFromFramework:y,componentClass:m,params:v,type:e,popupFromSelector:h,popupPositionFromSelector:f,newAgStackInstance:function(){return r.newAgStackInstance(m,y,v,e)}}}i&&console.error("AG Grid: Could not find component "+u+", did you forget to configure this component?")},e.prototype.getCompKeys=function(t,e,o){var n,i,r,a,s,l,u=this,c=e.propertyName;if(t){var p=t,d=p[c+"Selector"],h=d?d(o):null,f=function(t){"string"==typeof t?n=t:null!=t&&!0!==t&&(u.getFrameworkOverrides().isFrameworkComponent(t)?r=t:i=t)};h?(f(h.component),a=h.params,s=h.popup,l=h.popupPosition):f(p[c])}return{compName:n,jsComp:i,fwComp:r,paramsFromSelector:a,popupFromSelector:s,popupPositionFromSelector:l}},e.prototype.newAgStackInstance=function(t,e,o,n){var i,r=n.propertyName;if(e){var a=this.componentMetadataProvider.retrieve(r);i=this.frameworkComponentWrapper.wrap(t,a.mandatoryMethodList,a.optionalMethodList,n)}else i=new t;var s=this.initComponent(i,o);return null==s?vZ.resolve(i):s.then((function(){return i}))},e.prototype.mergeParamsWithApplicationProvidedParams=function(t,e,o,n){void 0===n&&(n=null);var i={context:this.gridOptionsService.context,columnApi:this.gridOptionsService.columnApi,api:this.gridOptionsService.api};I$(i,o);var r=t&&t[e.propertyName+"Params"];return"function"==typeof r?I$(i,r(o)):"object"==typeof r&&I$(i,r),I$(i,n),i},e.prototype.initComponent=function(t,e){if(this.context.createBean(t),null!=t.init)return t.init(e)},e.prototype.getDefaultFloatingFilterType=function(t,e){if(null==t)return null;var o=null,n=this.getCompKeys(t,M0),i=n.compName,r=n.jsComp,a=n.fwComp;return i?o=G0.getFloatingFilterType(i):null==r&&null==a&&!0===t.filter&&(o=e()),o},H0([aY("gridOptions")],e.prototype,"gridOptions",void 0),H0([aY("agComponentUtils")],e.prototype,"agComponentUtils",void 0),H0([aY("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),H0([aY("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),H0([sY("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),H0([rY("userComponentFactory")],e)}(qY);!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(PJ||(PJ={}));var W0,z0,j0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),U0=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},$0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return j0(e,t),e.prototype.removeAllListeners=function(){this.dragSources.forEach(this.removeListener.bind(this)),this.dragSources.length=0},e.prototype.removeListener=function(t){var e=t.dragSource.eElement,o=t.mouseDownListener;if(e.removeEventListener("mousedown",o),t.touchEnabled){var n=t.touchStartListener;e.removeEventListener("touchstart",n,{passive:!0})}},e.prototype.removeDragSource=function(t){var e=this.dragSources.find((function(e){return e.dragSource===t}));e&&(this.removeListener(e),DY(this.dragSources,e))},e.prototype.isDragging=function(){return this.dragging},e.prototype.addDragSource=function(t){var e=this,o=this.onMouseDown.bind(this,t),n=t.eElement,i=t.includeTouch,r=t.stopPropagationForTouch;n.addEventListener("mousedown",o);var a=null,s=this.gridOptionsService.is("suppressTouch");i&&!s&&(a=function(o){pq(o.target)||(o.cancelable&&(o.preventDefault(),r&&o.stopPropagation()),e.onTouchStart(t,o))},n.addEventListener("touchstart",a,{passive:!1})),this.dragSources.push({dragSource:t,mouseDownListener:o,touchStartListener:a,touchEnabled:!!i})},e.prototype.getStartTarget=function(){return this.startTarget},e.prototype.onTouchStart=function(t,e){var o=this;this.currentDragParams=t,this.dragging=!1;var n=e.touches[0];this.touchLastTime=n,this.touchStart=n;var i=function(e){return o.onTouchUp(e,t.eElement)},r=e.target,a=[{target:this.gridOptionsService.getRootNode(),type:"touchmove",listener:function(t){t.cancelable&&t.preventDefault()},options:{passive:!1}},{target:r,type:"touchmove",listener:function(e){return o.onTouchMove(e,t.eElement)},options:{passive:!0}},{target:r,type:"touchend",listener:i,options:{passive:!0}},{target:r,type:"touchcancel",listener:i,options:{passive:!0}}];this.addTemporaryEvents(a),0===t.dragStartPixels&&this.onCommonMove(n,this.touchStart,t.eElement)},e.prototype.onMouseDown=function(t,e){var o=this,n=e;if(!(t.skipMouseEvent&&t.skipMouseEvent(e)||n._alreadyProcessedByDragService||(n._alreadyProcessedByDragService=!0,0!==e.button))){this.shouldPreventMouseEvent(e)&&e.preventDefault(),this.currentDragParams=t,this.dragging=!1,this.mouseStartEvent=e,this.startTarget=e.target;var i=this.gridOptionsService.getRootNode(),r=[{target:i,type:"mousemove",listener:function(e){return o.onMouseMove(e,t.eElement)}},{target:i,type:"mouseup",listener:function(e){return o.onMouseUp(e,t.eElement)}},{target:i,type:"contextmenu",listener:function(t){return t.preventDefault()}}];this.addTemporaryEvents(r),0===t.dragStartPixels&&this.onMouseMove(e,t.eElement)}},e.prototype.addTemporaryEvents=function(t){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,i=t.options;e.addEventListener(o,n,i)})),this.dragEndFunctions.push((function(){t.forEach((function(t){var e=t.target,o=t.type,n=t.listener,i=t.options;e.removeEventListener(o,n,i)}))}))},e.prototype.isEventNearStartEvent=function(t,e){var o=this.currentDragParams.dragStartPixels;return rZ(t,e,h$(o)?o:4)},e.prototype.getFirstActiveTouch=function(t){for(var e=0;en.right-i,this.tickUp=t.clientYn.bottom-i&&!o,this.tickLeft||this.tickRight||this.tickUp||this.tickDown?this.ensureTickingStarted():this.ensureCleared()}},t.prototype.ensureTickingStarted=function(){null===this.tickingInterval&&(this.tickingInterval=window.setInterval(this.doTick.bind(this),100),this.tickCount=0)},t.prototype.doTick=function(){var t;if(this.tickCount++,t=this.tickCount>20?200:this.tickCount>10?80:40,this.scrollVertically){var e=this.getVerticalPosition();this.tickUp&&this.setVerticalPosition(e-t),this.tickDown&&this.setVerticalPosition(e+t)}if(this.scrollHorizontally){var o=this.getHorizontalPosition();this.tickLeft&&this.setHorizontalPosition(o-t),this.tickRight&&this.setHorizontalPosition(o+t)}this.onScrollCallback&&this.onScrollCallback()},t.prototype.ensureCleared=function(){this.tickingInterval&&(window.clearInterval(this.tickingInterval),this.tickingInterval=null)},t}(),K0=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),X0=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},q0="ag-list-item-hovered";!function(t){function e(e,o,n){var i=t.call(this)||this;return i.comp=e,i.virtualList=o,i.params=n,i.currentDragValue=null,i.lastHoveredListItem=null,i}K0(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.params.eventSource,this.params.listItemDragStartEvent,this.listItemDragStart.bind(this)),this.addManagedListener(this.params.eventSource,this.params.listItemDragEndEvent,this.listItemDragEnd.bind(this)),this.createDropTarget(),this.createAutoScrollService()},e.prototype.listItemDragStart=function(t){this.currentDragValue=this.params.getCurrentDragValue(t),this.moveBlocked=this.params.isMoveBlocked(this.currentDragValue)},e.prototype.listItemDragEnd=function(){var t=this;window.setTimeout((function(){t.currentDragValue=null,t.moveBlocked=!1}),10)},e.prototype.createDropTarget=function(){var t=this,e={isInterestedIn:function(e){return e===t.params.dragSourceType},getIconName:function(){return LJ[t.moveBlocked?"ICON_NOT_ALLOWED":"ICON_MOVE"]},getContainer:function(){return t.comp.getGui()},onDragging:function(e){return t.onDragging(e)},onDragStop:function(){return t.onDragStop()},onDragLeave:function(){return t.onDragLeave()}};this.dragAndDropService.addDropTarget(e)},e.prototype.createAutoScrollService=function(){var t=this.virtualList.getGui();this.autoScrollService=new Y0({scrollContainer:t,scrollAxis:"y",getVerticalPosition:function(){return t.scrollTop},setVerticalPosition:function(e){return t.scrollTop=e}})},e.prototype.onDragging=function(t){if(this.currentDragValue&&!this.moveBlocked){var e=this.getListDragItem(t),o=this.virtualList.getComponentAt(e.rowIndex);if(o){var n=o.getGui().parentElement;this.lastHoveredListItem&&this.lastHoveredListItem.rowIndex===e.rowIndex&&this.lastHoveredListItem.position===e.position||(this.autoScrollService.check(t.event),this.clearHoveredItems(),this.lastHoveredListItem=e,lq(n,q0),lq(n,"ag-item-highlight-"+e.position))}}},e.prototype.getListDragItem=function(t){var e=this.virtualList.getGui(),o=parseFloat(window.getComputedStyle(e).paddingTop),n=this.virtualList.getRowHeight(),i=this.virtualList.getScrollTop(),r=Math.max(0,(t.y-o+i)/n),a=this.params.getNumRows(this.comp)-1,s=0|Math.min(a,r);return{rowIndex:s,position:Math.round(r)>r||r>a?"bottom":"top",component:this.virtualList.getComponentAt(s)}},e.prototype.onDragStop=function(){this.moveBlocked||(this.params.moveItem(this.currentDragValue,this.lastHoveredListItem),this.clearHoveredItems(),this.autoScrollService.ensureCleared())},e.prototype.onDragLeave=function(){this.clearHoveredItems(),this.autoScrollService.ensureCleared()},e.prototype.clearHoveredItems=function(){this.virtualList.getGui().querySelectorAll("."+q0).forEach((function(t){[q0,"ag-item-highlight-top","ag-item-highlight-bottom"].forEach((function(e){t.classList.remove(e)}))})),this.lastHoveredListItem=null},X0([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),X0([nY],e.prototype,"postConstruct",null)}(qY),function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(W0||(W0={})),function(t){t.EVERYTHING="group",t.FILTER="filter",t.SORT="sort",t.MAP="map",t.AGGREGATE="aggregate",t.FILTER_AGGREGATES="filter_aggregates",t.PIVOT="pivot",t.NOTHING="nothing"}(z0||(z0={}));var Z0=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};function Q0(t){var e=t;return null!=e&&null!=e.getFrameworkComponentInstance?e.getFrameworkComponentInstance():t}var J0,t1=function(){function t(){this.detailGridInfoMap={},this.destroyCalled=!1}return t.prototype.registerOverlayWrapperComp=function(t){this.overlayWrapperComp=t},t.prototype.registerSideBarComp=function(t){this.sideBarComp=t},t.prototype.init=function(){var t=this;switch(this.rowModel.getType()){case"clientSide":this.clientSideRowModel=this.rowModel;break;case"infinite":this.infiniteRowModel=this.rowModel;break;case"serverSide":this.serverSideRowModel=this.rowModel}this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.__getAlignedGridService=function(){return this.alignedGridsService},t.prototype.__getContext=function(){return this.context},t.prototype.getSetterMethod=function(t){return"set"+t.charAt(0).toUpperCase()+t.substring(1)},t.prototype.__setPropertyOnly=function(t,e){return this.gos.__setPropertyOnly(t,e)},t.prototype.__updateProperty=function(t,e,o,n){void 0===n&&(n=void 0),this.gos.set(t,e,o,{},n);var i=this.getSetterMethod(t);this[i]&&this[i](e)},t.prototype.getGridId=function(){return this.context.getGridId()},t.prototype.addDetailGridInfo=function(t,e){this.detailGridInfoMap[t]=e},t.prototype.removeDetailGridInfo=function(t){this.detailGridInfoMap[t]=void 0},t.prototype.getDetailGridInfo=function(t){return this.detailGridInfoMap[t]},t.prototype.forEachDetailGridInfo=function(t){var e=0;x$(this.detailGridInfoMap,(function(o,n){h$(n)&&(t(n,e),e++)}))},t.prototype.getDataAsCsv=function(t){if(tY.__assertRegistered(q$.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){tY.__assertRegistered(q$.CsvExportModule,"api.exportDataAsCSv",this.context.getGridId())&&this.csvCreator.exportDataAsCsv(t)},t.prototype.getExcelExportMode=function(t){var e=this.gos.get("defaultExcelExportParams");return Object.assign({exportMode:"xlsx"},e,t).exportMode},t.prototype.assertNotExcelMultiSheet=function(t,e){if(!tY.__assertRegistered(q$.ExcelExportModule,"api."+t,this.context.getGridId()))return!1;var o=this.getExcelExportMode(e);return this.excelCreator.getFactoryMode(o)!==PJ.MULTI_SHEET||(console.warn("AG Grid: The Excel Exporter is currently on Multi Sheet mode. End that operation by calling 'api.getMultipleSheetAsExcel()' or 'api.exportMultipleSheetsAsExcel()'"),!1)},t.prototype.getDataAsExcel=function(t){if(this.assertNotExcelMultiSheet("getDataAsExcel",t))return this.excelCreator.getDataAsExcel(t)},t.prototype.exportDataAsExcel=function(t){this.assertNotExcelMultiSheet("exportDataAsExcel",t)&&this.excelCreator.exportDataAsExcel(t)},t.prototype.getSheetDataForExcel=function(t){if(tY.__assertRegistered(q$.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId())){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(PJ.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(tY.__assertRegistered(q$.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(tY.__assertRegistered(q$.ExcelExportModule,"api.exportMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.exportMultipleSheetsAsExcel(t)},t.prototype.setTreeData=function(t){this.gos.set("treeData",t)},t.prototype.setGridAriaProperty=function(t,e){if(t){var o=this.ctrlsService.getGridBodyCtrl().getGui(),n="aria-"+t;null===e?o.removeAttribute(n):o.setAttribute(n,e)}},t.prototype.logMissingRowModel=function(t){for(var e=[],o=1;o= 0"):this.serverSideRowModel?this.serverSideRowModel.applyRowData(t.successParams,n,i):this.logMissingRowModel("setServerSideDatasource","serverSide")},t.prototype.retryServerSideLoads=function(){this.serverSideRowModel?this.serverSideRowModel.retryLoads():this.logMissingRowModel("retryServerSideLoads","serverSide")},t.prototype.flushServerSideAsyncTransactions=function(){if(this.serverSideTransactionManager)return this.serverSideTransactionManager.flushAsyncTransactions();this.logMissingRowModel("flushServerSideAsyncTransactions","serverSide")},t.prototype.applyTransaction=function(t){if(this.clientSideRowModel)return this.clientSideRowModel.updateRowData(t);this.logMissingRowModel("applyTransaction","clientSide")},t.prototype.applyTransactionAsync=function(t,e){this.clientSideRowModel?this.clientSideRowModel.batchUpdateRowData(t,e):this.logMissingRowModel("applyTransactionAsync","clientSide")},t.prototype.flushAsyncTransactions=function(){this.clientSideRowModel?this.clientSideRowModel.flushAsyncTransactions():this.logMissingRowModel("flushAsyncTransactions","clientSide")},t.prototype.setSuppressModelUpdateAfterUpdateTransaction=function(t){this.gos.set("suppressModelUpdateAfterUpdateTransaction",t)},t.prototype.refreshInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.refreshCache():this.logMissingRowModel("refreshInfiniteCache","infinite")},t.prototype.purgeInfiniteCache=function(){this.infiniteRowModel?this.infiniteRowModel.purgeCache():this.logMissingRowModel("purgeInfiniteCache","infinite")},t.prototype.refreshServerSide=function(t){this.serverSideRowModel?this.serverSideRowModel.refreshStore(t):this.logMissingRowModel("refreshServerSide","serverSide")},t.prototype.refreshServerSideStore=function(t){return AK("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return AK("28.0","getServerSideStoreState","getServerSideGroupLevelState"),this.getServerSideGroupLevelState()},t.prototype.getServerSideGroupLevelState=function(){return this.serverSideRowModel?this.serverSideRowModel.getStoreState():(this.logMissingRowModel("getServerSideGroupLevelState","serverSide"),[])},t.prototype.getInfiniteRowCount=function(){if(this.infiniteRowModel)return this.infiniteRowModel.getRowCount();this.logMissingRowModel("getInfiniteRowCount","infinite")},t.prototype.isLastRowIndexKnown=function(){if(this.infiniteRowModel)return this.infiniteRowModel.isLastRowIndexKnown();this.logMissingRowModel("isLastRowIndexKnown","infinite")},t.prototype.getCacheBlockState=function(){return this.rowNodeBlockLoader.getBlockState()},t.prototype.getFirstDisplayedRow=function(){return this.rowRenderer.getFirstVirtualRenderedRow()},t.prototype.getLastDisplayedRow=function(){return this.rowRenderer.getLastVirtualRenderedRow()},t.prototype.getDisplayedRowAtIndex=function(t){return this.rowModel.getRow(t)},t.prototype.getDisplayedRowCount=function(){return this.rowModel.getRowCount()},t.prototype.setDataTypeDefinitions=function(t){this.gos.set("dataTypeDefinitions",t)},t.prototype.setPagination=function(t){this.gos.set("pagination",t)},t.prototype.paginationIsLastPageFound=function(){return this.paginationProxy.isLastPageFound()},t.prototype.paginationGetPageSize=function(){return this.paginationProxy.getPageSize()},t.prototype.paginationSetPageSize=function(t){this.gos.set("paginationPageSize",t)},t.prototype.paginationGetCurrentPage=function(){return this.paginationProxy.getCurrentPage()},t.prototype.paginationGetTotalPages=function(){return this.paginationProxy.getTotalPages()},t.prototype.paginationGetRowCount=function(){return this.paginationProxy.getMasterRowCount()},t.prototype.paginationGoToNextPage=function(){this.paginationProxy.goToNextPage()},t.prototype.paginationGoToPreviousPage=function(){this.paginationProxy.goToPreviousPage()},t.prototype.paginationGoToFirstPage=function(){this.paginationProxy.goToFirstPage()},t.prototype.paginationGoToLastPage=function(){this.paginationProxy.goToLastPage()},t.prototype.paginationGoToPage=function(t){this.paginationProxy.goToPage(t)},Z0([sY("immutableService")],t.prototype,"immutableService",void 0),Z0([sY("csvCreator")],t.prototype,"csvCreator",void 0),Z0([sY("excelCreator")],t.prototype,"excelCreator",void 0),Z0([aY("rowRenderer")],t.prototype,"rowRenderer",void 0),Z0([aY("navigationService")],t.prototype,"navigationService",void 0),Z0([aY("filterManager")],t.prototype,"filterManager",void 0),Z0([aY("columnModel")],t.prototype,"columnModel",void 0),Z0([aY("selectionService")],t.prototype,"selectionService",void 0),Z0([aY("gridOptionsService")],t.prototype,"gos",void 0),Z0([aY("valueService")],t.prototype,"valueService",void 0),Z0([aY("alignedGridsService")],t.prototype,"alignedGridsService",void 0),Z0([aY("eventService")],t.prototype,"eventService",void 0),Z0([aY("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),Z0([aY("context")],t.prototype,"context",void 0),Z0([aY("rowModel")],t.prototype,"rowModel",void 0),Z0([aY("sortController")],t.prototype,"sortController",void 0),Z0([aY("paginationProxy")],t.prototype,"paginationProxy",void 0),Z0([aY("focusService")],t.prototype,"focusService",void 0),Z0([aY("dragAndDropService")],t.prototype,"dragAndDropService",void 0),Z0([sY("rangeService")],t.prototype,"rangeService",void 0),Z0([sY("clipboardService")],t.prototype,"clipboardService",void 0),Z0([sY("aggFuncService")],t.prototype,"aggFuncService",void 0),Z0([aY("menuFactory")],t.prototype,"menuFactory",void 0),Z0([sY("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),Z0([aY("valueCache")],t.prototype,"valueCache",void 0),Z0([aY("animationFrameService")],t.prototype,"animationFrameService",void 0),Z0([sY("statusBarService")],t.prototype,"statusBarService",void 0),Z0([sY("chartService")],t.prototype,"chartService",void 0),Z0([sY("undoRedoService")],t.prototype,"undoRedoService",void 0),Z0([sY("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),Z0([sY("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),Z0([aY("ctrlsService")],t.prototype,"ctrlsService",void 0),Z0([nY],t.prototype,"init",null),Z0([iY],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),Z0([rY("gridApi")],t)}(),e1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),o1=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},n1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.quickFilter=null,e.quickFilterParts=null,e}var o;return e1(e,t),o=e,e.prototype.postConstruct=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_VISIBLE,(function(){t.gridOptionsService.is("includeHiddenColumnsInQuickFilter")||t.resetQuickFilterCache()})),this.addManagedPropertyListener("quickFilterText",(function(e){return t.setQuickFilter(e.currentValue)})),this.addManagedPropertyListener("includeHiddenColumnsInQuickFilter",(function(){return t.onIncludeHiddenColumnsInQuickFilterChanged()})),this.quickFilter=this.parseQuickFilter(this.gridOptionsService.get("quickFilterText")),this.parser=this.gridOptionsService.get("quickFilterParser"),this.matcher=this.gridOptionsService.get("quickFilterMatcher"),this.setQuickFilterParts(),this.addManagedPropertyListeners(["quickFilterMatcher","quickFilterParser"],(function(){return t.setQuickFilterParserAndMatcher()}))},e.prototype.isQuickFilterPresent=function(){return null!==this.quickFilter},e.prototype.doesRowPassQuickFilter=function(t){var e=this,o=this.gridOptionsService.is("cacheQuickFilter");return this.matcher?this.doesRowPassQuickFilterMatcher(o,t):this.quickFilterParts.every((function(n){return o?e.doesRowPassQuickFilterCache(t,n):e.doesRowPassQuickFilterNoCache(t,n)}))},e.prototype.resetQuickFilterCache=function(){this.rowModel.forEachNode((function(t){return t.quickFilterAggregateText=null}))},e.prototype.setQuickFilterParts=function(){var t=this.quickFilter,e=this.parser;this.quickFilterParts=t?e?e(t):t.split(" "):null},e.prototype.parseQuickFilter=function(t){return h$(t)?this.gridOptionsService.isRowModelType("clientSide")?t.toUpperCase():(console.warn("AG Grid - Quick filtering only works with the Client-Side Row Model"),null):null},e.prototype.setQuickFilter=function(t){if(null==t||"string"==typeof t){var e=this.parseQuickFilter(t);this.quickFilter!==e&&(this.quickFilter=e,this.setQuickFilterParts(),this.dispatchEvent({type:o.EVENT_QUICK_FILTER_CHANGED}))}else console.warn("AG Grid - setQuickFilter() only supports string inputs, received: "+typeof t)},e.prototype.setQuickFilterParserAndMatcher=function(){var t=this.gridOptionsService.get("quickFilterParser"),e=this.gridOptionsService.get("quickFilterMatcher"),n=t!==this.parser||e!==this.matcher;this.parser=t,this.matcher=e,n&&(this.setQuickFilterParts(),this.dispatchEvent({type:o.EVENT_QUICK_FILTER_CHANGED}))},e.prototype.onIncludeHiddenColumnsInQuickFilterChanged=function(){this.columnModel.refreshQuickFilterColumns(),this.resetQuickFilterCache(),this.isQuickFilterPresent()&&this.dispatchEvent({type:o.EVENT_QUICK_FILTER_CHANGED})},e.prototype.doesRowPassQuickFilterNoCache=function(t,e){var o=this;return this.columnModel.getAllColumnsForQuickFilter().some((function(n){var i=o.getQuickFilterTextForColumn(n,t);return h$(i)&&i.indexOf(e)>=0}))},e.prototype.doesRowPassQuickFilterCache=function(t,e){return this.checkGenerateQuickFilterAggregateText(t),t.quickFilterAggregateText.indexOf(e)>=0},e.prototype.doesRowPassQuickFilterMatcher=function(t,e){var o;t?(this.checkGenerateQuickFilterAggregateText(e),o=e.quickFilterAggregateText):o=this.getQuickFilterAggregateText(e);var n=this.quickFilterParts;return(0,this.matcher)(n,o)},e.prototype.checkGenerateQuickFilterAggregateText=function(t){t.quickFilterAggregateText||(t.quickFilterAggregateText=this.getQuickFilterAggregateText(t))},e.prototype.getQuickFilterTextForColumn=function(t,e){var o=this.valueService.getValue(t,e,!0),n=t.getColDef();if(n.getQuickFilterText){var i={value:o,node:e,data:e.data,column:t,colDef:n,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};o=n.getQuickFilterText(i)}return h$(o)?o.toString().toUpperCase():null},e.prototype.getQuickFilterAggregateText=function(t){var e=this,n=[];return this.columnModel.getAllColumnsForQuickFilter().forEach((function(o){var i=e.getQuickFilterTextForColumn(o,t);h$(i)&&n.push(i)})),n.join(o.QUICK_FILTER_SEPARATOR)},e.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",e.QUICK_FILTER_SEPARATOR="\n",o1([aY("valueService")],e.prototype,"valueService",void 0),o1([aY("columnModel")],e.prototype,"columnModel",void 0),o1([aY("rowModel")],e.prototype,"rowModel",void 0),o1([nY],e.prototype,"postConstruct",null),o=o1([rY("quickFilterService")],e)}(qY),i1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),r1=function(){return r1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},s1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.allColumnFilters=new Map,e.allColumnListeners=new Map,e.activeAggregateFilters=[],e.activeColumnFilters=[],e.processingFilterChange=!1,e.filterModelUpdateQueue=[],e}return i1(e,t),e.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,(function(){return t.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_VISIBLE,(function(){return t.updateAdvancedFilterColumns()})),this.allowShowChangeAfterFilter=this.gridOptionsService.is("allowShowChangeAfterFilter"),this.externalFilterPresent=this.isExternalFilterPresentCallback(),this.updateAggFiltering(),this.addManagedPropertyListener("groupAggFiltering",(function(){return t.updateAggFiltering()})),this.addManagedPropertyListener("advancedFilterModel",(function(e){return t.setAdvancedFilterModel(e.currentValue)})),this.addManagedListener(this.eventService,eK.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(function(e){var o=e.enabled;return t.onAdvancedFilterEnabledChanged(o)})),this.addManagedListener(this.eventService,eK.EVENT_DATA_TYPES_INFERRED,(function(){return t.processFilterModelUpdateQueue()})),this.addManagedListener(this.quickFilterService,n1.EVENT_QUICK_FILTER_CHANGED,(function(){return t.onFilterChanged({source:"quickFilter"})}))},e.prototype.isExternalFilterPresentCallback=function(){var t=this.gridOptionsService.getCallback("isExternalFilterPresent");return"function"==typeof t&&t({})},e.prototype.doesExternalFilterPass=function(t){var e=this.gridOptionsService.get("doesExternalFilterPass");return"function"==typeof e&&e(t)},e.prototype.setFilterModel=function(t){var e=this;if(this.isAdvancedFilterEnabled())this.warnAdvancedFilters();else if(this.dataTypeService.isPendingInference())this.filterModelUpdateQueue.push(t);else{var o=[],n=this.getFilterModel();if(t){var i=lZ(Object.keys(t));this.allColumnFilters.forEach((function(n,r){var a=t[r];o.push(e.setModelOnFilterWrapper(n.filterPromise,a)),i.delete(r)})),i.forEach((function(n){var i=e.columnModel.getPrimaryColumn(n)||e.columnModel.getGridColumn(n);if(i)if(i.isFilterAllowed()){var r=e.getOrCreateFilterWrapper(i,"NO_UI");r?o.push(e.setModelOnFilterWrapper(r.filterPromise,t[n])):console.warn("AG-Grid: setFilterModel() - unable to fully apply model, unable to create filter for colId: "+n)}else console.warn("AG Grid: setFilterModel() - unable to fully apply model, filtering disabled for colId: "+n);else console.warn("AG Grid: setFilterModel() - no column found for colId: "+n)}))}else this.allColumnFilters.forEach((function(t){o.push(e.setModelOnFilterWrapper(t.filterPromise,null))}));vZ.all(o).then((function(){var t=e.getFilterModel(),o=[];e.allColumnFilters.forEach((function(e,i){var r=n?n[i]:null,a=t?t[i]:null;dZ.jsonEquals(r,a)||o.push(e.column)})),o.length>0&&e.onFilterChanged({columns:o,source:"api"})}))}},e.prototype.setModelOnFilterWrapper=function(t,e){return new vZ((function(o){t.then((function(t){"function"!=typeof t.setModel&&(console.warn("AG Grid: filter missing setModel method, which is needed for setFilterModel"),o()),(t.setModel(e)||vZ.resolve()).then((function(){return o()}))}))}))},e.prototype.getFilterModel=function(){var t={};return this.allColumnFilters.forEach((function(e,o){var n=e.filterPromise.resolveNow(null,(function(t){return t}));if(null==n)return null;if("function"==typeof n.getModel){var i=n.getModel();h$(i)&&(t[o]=i)}else console.warn("AG Grid: filter API missing getModel method, which is needed for getFilterModel")})),t},e.prototype.isColumnFilterPresent=function(){return this.activeColumnFilters.length>0},e.prototype.isAggregateFilterPresent=function(){return!!this.activeAggregateFilters.length},e.prototype.isExternalFilterPresent=function(){return this.externalFilterPresent},e.prototype.isChildFilterPresent=function(){return this.isColumnFilterPresent()||this.isQuickFilterPresent()||this.isExternalFilterPresent()||this.isAdvancedFilterPresent()},e.prototype.isAdvancedFilterPresent=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isFilterPresent()},e.prototype.onAdvancedFilterEnabledChanged=function(t){var e,o=this;t?this.allColumnFilters.size&&(this.allColumnFilters.forEach((function(t){return o.disposeFilterWrapper(t,"advancedFilterEnabled")})),this.onFilterChanged({source:"advancedFilter"})):(null===(e=this.advancedFilterService)||void 0===e?void 0:e.isFilterPresent())&&(this.advancedFilterService.setModel(null),this.onFilterChanged({source:"advancedFilter"}))},e.prototype.isAdvancedFilterEnabled=function(){var t;return null===(t=this.advancedFilterService)||void 0===t?void 0:t.isEnabled()},e.prototype.isAdvancedFilterHeaderActive=function(){return this.isAdvancedFilterEnabled()&&this.advancedFilterService.isHeaderActive()},e.prototype.doAggregateFiltersPass=function(t,e){return this.doColumnFiltersPass(t,e,!0)},e.prototype.updateActiveFilters=function(){var t=this;this.activeColumnFilters.length=0,this.activeAggregateFilters.length=0;var e=function(t){return!!t&&(t.isFilterActive?t.isFilterActive():(console.warn("AG Grid: Filter is missing isFilterActive() method"),!1))},o=!!this.gridOptionsService.getGroupAggFiltering();this.allColumnFilters.forEach((function(n){if(n.filterPromise.resolveNow(!1,e)){var i=n.filterPromise.resolveNow(null,(function(t){return t}));!function(e){if(!e.isPrimary())return!0;var n=!t.columnModel.isPivotActive();return!(!e.isValueActive()||!n)&&(!!t.columnModel.isPivotMode()||o)}(n.column)?t.activeColumnFilters.push(i):t.activeAggregateFilters.push(i)}}))},e.prototype.updateFilterFlagInColumns=function(t,e){this.allColumnFilters.forEach((function(o){var n=o.filterPromise.resolveNow(!1,(function(t){return t.isFilterActive()}));o.column.setFilterActive(n,t,e)}))},e.prototype.isAnyFilterPresent=function(){return this.isQuickFilterPresent()||this.isColumnFilterPresent()||this.isAggregateFilterPresent()||this.isExternalFilterPresent()},e.prototype.doColumnFiltersPass=function(t,e,o){for(var n=t.data,i=t.aggData,r=o?this.activeAggregateFilters:this.activeColumnFilters,a=o?i:n,s=0;s0?this.onFilterChanged({columns:e,source:"api"}):this.updateDependantFilters()},e.prototype.updateDependantFilters=function(){var t=this,e=this.columnModel.getGroupAutoColumns();null==e||e.forEach((function(e){"agGroupColumnFilter"===e.getColDef().filter&&t.getOrCreateFilterWrapper(e,"NO_UI")}))},e.prototype.isFilterAllowed=function(t){var e,o;if(this.isAdvancedFilterEnabled())return!1;if(!t.isFilterAllowed())return!1;var n=this.allColumnFilters.get(t.getColId());return null===(o=null===(e=null==n?void 0:n.filterPromise)||void 0===e?void 0:e.resolveNow(!0,(function(t){var e,o;return"function"!=typeof(null===(e=t)||void 0===e?void 0:e.isFilterAllowed)||(null===(o=t)||void 0===o?void 0:o.isFilterAllowed())})))||void 0===o||o},e.prototype.getFloatingFilterCompDetails=function(t,e){var o=this,n=t.getColDef(),i=this.createFilterParams(t,n),r=this.userComponentFactory.mergeParamsWithApplicationProvidedParams(n,M0,i),a=this.userComponentFactory.getDefaultFloatingFilterType(n,(function(){return o.getDefaultFloatingFilter(t)}));null==a&&(a="agReadOnlyFloatingFilter");var s={column:t,filterParams:r,currentParentModel:function(){return o.getCurrentFloatingFilterParentModel(t)},parentFilterInstance:function(e){var n=o.getFilterComponent(t,"NO_UI");null!=n&&n.then((function(t){e(Q0(t))}))},showParentFilter:e,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(n,s,a)},e.prototype.getCurrentFloatingFilterParentModel=function(t){var e=this.getFilterComponent(t,"NO_UI",!1);return e?e.resolveNow(null,(function(t){return t&&t.getModel()})):null},e.prototype.destroyFilter=function(t,e){void 0===e&&(e="api");var o=t.getColId(),n=this.allColumnFilters.get(o);this.disposeColumnListener(o),n&&(this.disposeFilterWrapper(n,e),this.onFilterChanged({columns:[t],source:"api"}))},e.prototype.disposeColumnListener=function(t){var e=this.allColumnListeners.get(t);e&&(this.allColumnListeners.delete(t),e())},e.prototype.disposeFilterWrapper=function(t,e){var o=this;t.filterPromise.then((function(n){(n.setModel(null)||vZ.resolve()).then((function(){o.getContext().destroyBean(n),t.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(t.column.getColId());var i={type:eK.EVENT_FILTER_DESTROYED,source:e,column:t.column};o.eventService.dispatchEvent(i)}))}))},e.prototype.checkDestroyFilter=function(t){var e=this.allColumnFilters.get(t);if(e){var o=e.column,n=(o.isFilterAllowed()?this.createFilterInstance(o):{compDetails:null}).compDetails;this.areFilterCompsDifferent(e.compDetails,n)&&this.destroyFilter(o,"columnChanged")}},e.prototype.areFilterCompsDifferent=function(t,e){if(!e||!t)return!0;var o=t.componentClass,n=e.componentClass;return!(o===n||(null==o?void 0:o.render)&&(null==n?void 0:n.render)&&o.render===n.render)},e.prototype.getAdvancedFilterModel=function(){return this.isAdvancedFilterEnabled()?this.advancedFilterService.getModel():null},e.prototype.setAdvancedFilterModel=function(t){this.isAdvancedFilterEnabled()&&(this.advancedFilterService.setModel(null!=t?t:null),this.onFilterChanged({source:"advancedFilter"}))},e.prototype.showAdvancedFilterBuilder=function(t){this.isAdvancedFilterEnabled()&&this.advancedFilterService.getCtrl().toggleFilterBuilder(t,!0)},e.prototype.updateAdvancedFilterColumns=function(){this.isAdvancedFilterEnabled()&&this.advancedFilterService.updateValidity()&&this.onFilterChanged({source:"advancedFilter"})},e.prototype.hasFloatingFilters=function(){if(this.isAdvancedFilterEnabled())return!1;var t=this.columnModel.getAllGridColumns();return!!t&&t.some((function(t){return t.getColDef().floatingFilter}))},e.prototype.getFilterInstance=function(t,e){if(!this.isAdvancedFilterEnabled()){var o=this.getFilterInstanceImpl(t,(function(t){if(e){var o=Q0(t);e(o)}}));return Q0(o)}this.warnAdvancedFilters()},e.prototype.getFilterInstanceImpl=function(t,e){var o=this.columnModel.getPrimaryColumn(t);if(o){var n=this.getFilterComponent(o,"NO_UI"),i=n&&n.resolveNow(null,(function(t){return t}));return i?setTimeout(e,0,i):n&&n.then((function(t){e(t)})),i}},e.prototype.warnAdvancedFilters=function(){G$((function(){console.warn("AG Grid: Column Filter API methods have been disabled as Advanced Filters are enabled.")}),"advancedFiltersCompatibility")},e.prototype.setupAdvancedFilterHeaderComp=function(t){var e;null===(e=this.advancedFilterService)||void 0===e||e.getCtrl().setupHeaderComp(t)},e.prototype.getHeaderRowCount=function(){return this.isAdvancedFilterHeaderActive()?1:0},e.prototype.getHeaderHeight=function(){return this.isAdvancedFilterHeaderActive()?this.advancedFilterService.getCtrl().getHeaderHeight():0},e.prototype.processFilterModelUpdateQueue=function(){var t=this;this.filterModelUpdateQueue.forEach((function(e){return t.setFilterModel(e)})),this.filterModelUpdateQueue=[]},e.prototype.destroy=function(){var e=this;t.prototype.destroy.call(this),this.allColumnFilters.forEach((function(t){return e.disposeFilterWrapper(t,"gridDestroyed")})),this.allColumnListeners.clear()},a1([aY("valueService")],e.prototype,"valueService",void 0),a1([aY("columnModel")],e.prototype,"columnModel",void 0),a1([aY("rowModel")],e.prototype,"rowModel",void 0),a1([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),a1([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),a1([aY("dataTypeService")],e.prototype,"dataTypeService",void 0),a1([aY("quickFilterService")],e.prototype,"quickFilterService",void 0),a1([sY("advancedFilterService")],e.prototype,"advancedFilterService",void 0),a1([nY],e.prototype,"init",null),a1([rY("filterManager")],e)}(qY),l1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),u1=function(t){function e(e,o){var n=t.call(this,e)||this;return n.ctrl=o,n}return l1(e,t),e.prototype.getCtrl=function(){return this.ctrl},e}(EZ),c1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),p1=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},d1=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return c1(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui(),o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},addOrRemoveBodyCssClass:function(e,o){return t.eFloatingFilterBody.classList.toggle(e,o)},setButtonWrapperDisplayed:function(e){return dq(t.eButtonWrapper,e)},setCompDetails:function(e){return t.setCompDetails(e)},getFloatingFilterComp:function(){return t.compPromise},setWidth:function(t){return e.style.width=t},setMenuIcon:function(e){return t.eButtonShowMainFilter.appendChild(e)}};this.ctrl.setComp(o,e,this.eButtonShowMainFilter,this.eFloatingFilterBody)},e.prototype.setCompDetails=function(t){var e=this;if(!t)return this.destroyFloatingFilterComp(),void(this.compPromise=null);this.compPromise=t.newAgStackInstance(),this.compPromise.then((function(t){return e.afterCompCreated(t)}))},e.prototype.destroyFloatingFilterComp=function(){this.floatingFilterComp&&(this.eFloatingFilterBody.removeChild(this.floatingFilterComp.getGui()),this.floatingFilterComp=this.destroyBean(this.floatingFilterComp))},e.prototype.afterCompCreated=function(t){t&&(this.isAlive()?(this.destroyFloatingFilterComp(),this.floatingFilterComp=t,this.eFloatingFilterBody.appendChild(t.getGui()),t.afterGuiAttached&&t.afterGuiAttached()):this.destroyBean(t))},e.TEMPLATE='
\n
\n \n
',p1([TZ("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),p1([TZ("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),p1([TZ("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),p1([nY],e.prototype,"postConstruct",null),p1([iY],e.prototype,"destroyFloatingFilterComp",null),e}(u1),h1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}();!function(t){t.AUTO_HEIGHT="ag-layout-auto-height",t.NORMAL="ag-layout-normal",t.PRINT="ag-layout-print"}(J0||(J0={}));var f1,g1,v1=function(t){function e(e){var o=t.call(this)||this;return o.view=e,o}return h1(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("domLayout",this.updateLayoutClasses.bind(this)),this.updateLayoutClasses()},e.prototype.updateLayoutClasses=function(){var t=this.getDomLayout(),e={autoHeight:"autoHeight"===t,normal:"normal"===t,print:"print"===t},o=e.autoHeight?J0.AUTO_HEIGHT:e.print?J0.PRINT:J0.NORMAL;this.view.updateLayoutClasses(o,e)},e.prototype.getDomLayout=function(){var t,e=null!==(t=this.gridOptionsService.get("domLayout"))&&void 0!==t?t:"normal";return-1===["normal","print","autoHeight"].indexOf(e)?(G$((function(){return console.warn("AG Grid: "+e+" is not valid for DOM Layout, valid values are 'normal', 'autoHeight', 'print'.")}),"warn about dom layout values"),"normal"):e},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(qY),y1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),m1=function(){return m1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t[t.Vertical=0]="Vertical",t[t.Horizontal=1]="Horizontal"}(f1||(f1={})),function(t){t[t.Container=0]="Container",t[t.FakeContainer=1]="FakeContainer"}(g1||(g1={}));var w1,S1=function(t){function e(e){var o=t.call(this)||this;return o.lastScrollSource=[null,null],o.scrollLeft=-1,o.nextScrollTop=-1,o.scrollTop=-1,o.eBodyViewport=e,o.resetLastHScrollDebounced=$$((function(){return o.lastScrollSource[f1.Horizontal]=null}),500),o.resetLastVScrollDebounced=$$((function(){return o.lastScrollSource[f1.Vertical]=null}),500),o}return y1(e,t),e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this)),this.ctrlsService.whenReady((function(e){t.centerRowContainerCtrl=e.centerRowContainerCtrl,t.onDisplayedColumnsWidthChanged(),t.addScrollListener()}))},e.prototype.addScrollListener=function(){var t=this.ctrlsService.getFakeHScrollComp(),e=this.ctrlsService.getFakeVScrollComp();this.addManagedListener(this.centerRowContainerCtrl.getViewportElement(),"scroll",this.onHScroll.bind(this)),t.onScrollCallback(this.onFakeHScroll.bind(this));var o=this.gridOptionsService.is("debounceVerticalScrollbar"),n=o?$$(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=o?$$(this.onFakeVScroll.bind(this),100):this.onFakeVScroll.bind(this);this.addManagedListener(this.eBodyViewport,"scroll",n),e.onScrollCallback(i)},e.prototype.onDisplayedColumnsWidthChanged=function(){this.enableRtl&&this.horizontallyScrollHeaderCenterAndFloatingCenter()},e.prototype.horizontallyScrollHeaderCenterAndFloatingCenter=function(t){if(null!=this.centerRowContainerCtrl){void 0===t&&(t=this.centerRowContainerCtrl.getCenterViewportScrollLeft());var e=this.enableRtl?t:-t,o=this.ctrlsService.getTopCenterRowContainerCtrl(),n=this.ctrlsService.getStickyTopCenterRowContainerCtrl(),i=this.ctrlsService.getBottomCenterRowContainerCtrl(),r=this.ctrlsService.getFakeHScrollComp();this.ctrlsService.getHeaderRowContainerCtrl().setHorizontalScroll(-e),i.setContainerTranslateX(e),o.setContainerTranslateX(e),n.setContainerTranslateX(e);var a=this.centerRowContainerCtrl.getViewportElement(),s=this.lastScrollSource[f1.Horizontal]===g1.Container;t=Math.abs(t),s?r.setScrollPosition(t):xq(a,t,this.enableRtl)}},e.prototype.isControllingScroll=function(t,e){return null==this.lastScrollSource[e]?(this.lastScrollSource[e]=t,!0):this.lastScrollSource[e]===t},e.prototype.onFakeHScroll=function(){this.isControllingScroll(g1.FakeContainer,f1.Horizontal)&&this.onHScrollCommon(g1.FakeContainer)},e.prototype.onHScroll=function(){this.isControllingScroll(g1.Container,f1.Horizontal)&&this.onHScrollCommon(g1.Container)},e.prototype.onHScrollCommon=function(t){var e,o=this.centerRowContainerCtrl.getViewportElement(),n=o.scrollLeft;this.shouldBlockScrollUpdate(f1.Horizontal,n,!0)||(e=t===g1.Container?_q(o,this.enableRtl):this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(e)),this.resetLastHScrollDebounced())},e.prototype.onFakeVScroll=function(){this.isControllingScroll(g1.FakeContainer,f1.Vertical)&&this.onVScrollCommon(g1.FakeContainer)},e.prototype.onVScroll=function(){this.isControllingScroll(g1.Container,f1.Vertical)&&this.onVScrollCommon(g1.Container)},e.prototype.onVScrollCommon=function(t){var e;e=t===g1.Container?this.eBodyViewport.scrollTop:this.ctrlsService.getFakeVScrollComp().getScrollPosition(),this.shouldBlockScrollUpdate(f1.Vertical,e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,t===g1.Container?this.ctrlsService.getFakeVScrollComp().setScrollPosition(e):this.eBodyViewport.scrollTop=e,this.gridOptionsService.is("suppressAnimationFrame")?this.scrollGridIfNeeded():this.animationFrameService.schedule(),this.resetLastVScrollDebounced())},e.prototype.doHorizontalScroll=function(t){var e=this.ctrlsService.getFakeHScrollComp().getScrollPosition();this.scrollLeft===t&&t===e||(this.scrollLeft=t,this.fireScrollEvent(f1.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},e.prototype.fireScrollEvent=function(t){var e=this,o={type:eK.EVENT_BODY_SCROLL,direction:t===f1.Horizontal?"horizontal":"vertical",left:this.scrollLeft,top:this.scrollTop};this.eventService.dispatchEvent(o),window.clearTimeout(this.scrollTimer),this.scrollTimer=void 0,this.scrollTimer=window.setTimeout((function(){var t=m1(m1({},o),{type:eK.EVENT_BODY_SCROLL_END});e.eventService.dispatchEvent(t)}),100)},e.prototype.shouldBlockScrollUpdate=function(t,e,o){return void 0===o&&(o=!1),!(o&&!HX())&&(t===f1.Vertical?this.shouldBlockVerticalScroll(e):this.shouldBlockHorizontalScroll(e))},e.prototype.shouldBlockVerticalScroll=function(t){var e=yq(this.eBodyViewport),o=this.eBodyViewport.scrollHeight;return t<0||t+e>o},e.prototype.shouldBlockHorizontalScroll=function(t){var e=this.centerRowContainerCtrl.getCenterWidth(),o=this.centerRowContainerCtrl.getViewportElement().scrollWidth;if(this.enableRtl&&bq()){if(t>0)return!0}else if(t<0)return!0;return Math.abs(t)+e>o},e.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(f1.Vertical)},e.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(g1.Container)},e.prototype.scrollGridIfNeeded=function(){var t=this.scrollTop!=this.nextScrollTop;return t&&(this.scrollTop=this.nextScrollTop,this.redrawRowsAfterScroll()),t},e.prototype.setHorizontalScrollPosition=function(t,e){void 0===e&&(e=!1);var o=this.centerRowContainerCtrl.getViewportElement().scrollWidth-this.centerRowContainerCtrl.getCenterWidth();!e&&this.shouldBlockScrollUpdate(f1.Horizontal,t)&&(t=this.enableRtl&&bq()?t>0?0:o:Math.min(Math.max(t,0),o)),xq(this.centerRowContainerCtrl.getViewportElement(),Math.abs(t),this.enableRtl),this.doHorizontalScroll(t)},e.prototype.setVerticalScrollPosition=function(t){this.eBodyViewport.scrollTop=t},e.prototype.getVScrollPosition=function(){return{top:this.eBodyViewport.scrollTop,bottom:this.eBodyViewport.scrollTop+this.eBodyViewport.offsetHeight}},e.prototype.getHScrollPosition=function(){return this.centerRowContainerCtrl.getHScrollPosition()},e.prototype.isHorizontalScrollShowing=function(){return this.centerRowContainerCtrl.isHorizontalScrollShowing()},e.prototype.scrollHorizontally=function(t){var e=this.centerRowContainerCtrl.getViewportElement().scrollLeft;return this.setHorizontalScrollPosition(e+t),this.centerRowContainerCtrl.getViewportElement().scrollLeft-e},e.prototype.scrollToTop=function(){this.eBodyViewport.scrollTop=0},e.prototype.ensureNodeVisible=function(t,e){void 0===e&&(e=null);for(var o=this.rowModel.getRowCount(),n=-1,i=0;i=0&&this.ensureIndexVisible(n,e)},e.prototype.ensureIndexVisible=function(t,e){if(!this.gridOptionsService.isDomLayout("print")){var o=this.paginationProxy.getRowCount();if("number"!=typeof t||t<0||t>=o)console.warn("AG Grid: Invalid row index for ensureIndexVisible: "+t);else{this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel")||this.paginationProxy.goToPageWithIndex(t);var n,i=this.ctrlsService.getGridBodyCtrl().getStickyTopHeight(),r=this.paginationProxy.getRow(t);do{var a=r.rowTop,s=r.rowHeight,l=this.paginationProxy.getPixelOffset(),u=r.rowTop-l,c=u+r.rowHeight,p=this.getVScrollPosition(),d=this.heightScaler.getDivStretchOffset(),h=p.top+d,f=p.bottom+d,g=f-h,v=this.heightScaler.getScrollPositionForPixel(u),y=this.heightScaler.getScrollPositionForPixel(c-g),m=Math.min((v+y)/2,u),C=null;"top"===e?C=v:"bottom"===e?C=y:"middle"===e?C=m:h+i>u?C=v-i:fa:nr}},e.prototype.getColumnBounds=function(t){var e=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),n=t.getActualWidth(),i=t.getLeft(),r=e?-1:1,a=e?o-i:i;return{colLeft:a,colMiddle:a+n/2*r,colRight:a+n*r}},e.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),e=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:e,end:t+e,width:t}},C1([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),C1([aY("animationFrameService")],e.prototype,"animationFrameService",void 0),C1([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),C1([aY("rowModel")],e.prototype,"rowModel",void 0),C1([aY("rowContainerHeightService")],e.prototype,"heightScaler",void 0),C1([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),C1([aY("columnModel")],e.prototype,"columnModel",void 0),C1([nY],e.prototype,"postConstruct",null),e}(qY),b1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_1=function(){return _1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},E1=function(t){function e(e){var o=t.call(this)||this;return o.isMultiRowDrag=!1,o.isGridSorted=!1,o.isGridFiltered=!1,o.isRowGroupActive=!1,o.eContainer=e,o}return b1(e,t),e.prototype.postConstruct=function(){var t=this;this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel);var e=function(){t.onSortChanged(),t.onFilterChanged(),t.onRowGroupChanged()};this.addManagedListener(this.eventService,eK.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_MODEL_UPDATED,(function(){e()})),e(),this.ctrlsService.whenReady((function(){var e=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new Y0({scrollContainer:e.getBodyViewportElement(),scrollAxis:"y",getVerticalPosition:function(){return e.getScrollFeature().getVScrollPosition().top},setVerticalPosition:function(t){return e.getScrollFeature().setVerticalScrollPosition(t)},onScrollCallback:function(){t.onDragging(t.lastDraggingEvent)}})}))},e.prototype.onSortChanged=function(){this.isGridSorted=this.sortController.isSortActive()},e.prototype.onFilterChanged=function(){this.isGridFiltered=this.filterManager.isAnyFilterPresent()},e.prototype.onRowGroupChanged=function(){var t=this.columnModel.getRowGroupColumns();this.isRowGroupActive=!g$(t)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(t){return t===NQ.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?LJ.ICON_NOT_ALLOWED:LJ.ICON_MOVE},e.prototype.shouldPreventRowMove=function(){return this.isGridSorted||this.isGridFiltered||this.isRowGroupActive},e.prototype.getRowNodes=function(t){var e=this;if(!this.isFromThisGrid(t))return t.dragItem.rowNodes||[];var o=this.gridOptionsService.is("rowDragMultiRow"),n=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(this.selectionService.getSelectedNodes())).sort((function(t,o){return null==t.rowIndex||null==o.rowIndex?0:e.getRowIndexNumber(t)-e.getRowIndexNumber(o)})),i=t.dragItem.rowNode;return o&&-1!==n.indexOf(i)?(this.isMultiRowDrag=!0,n):(this.isMultiRowDrag=!1,[i])},e.prototype.onDragEnter=function(t){t.dragItem.rowNodes=this.getRowNodes(t),this.dispatchGridEvent(eK.EVENT_ROW_DRAG_ENTER,t),this.getRowNodes(t).forEach((function(t){t.setDragging(!0)})),this.onEnterOrDragging(t)},e.prototype.onDragging=function(t){this.onEnterOrDragging(t)},e.prototype.isFromThisGrid=function(t){return t.dragSource.dragSourceDomDataKey===this.gridOptionsService.getDomDataKey()},e.prototype.isDropZoneWithinThisGrid=function(t){var e=this.ctrlsService.getGridBodyCtrl().getGui(),o=t.dropZoneTarget;return!e.contains(o)},e.prototype.onEnterOrDragging=function(t){this.dispatchGridEvent(eK.EVENT_ROW_DRAG_MOVE,t),this.lastDraggingEvent=t;var e=this.mouseEventService.getNormalisedPosition(t).y;this.gridOptionsService.is("rowDragManaged")&&this.doManagedDrag(t,e),this.autoScrollService.check(t.event)},e.prototype.doManagedDrag=function(t,e){var o=this.isFromThisGrid(t),n=this.gridOptionsService.is("rowDragManaged"),i=t.dragItem.rowNodes;n&&this.shouldPreventRowMove()||(this.gridOptionsService.is("suppressMoveWhenRowDragging")||!o?this.isDropZoneWithinThisGrid(t)||this.clientSideRowModel.highlightRowAtPixel(i[0],e):this.moveRows(i,e))},e.prototype.getRowIndexNumber=function(t){return parseInt(_Y(t.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(t){var e=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),n=o&&o.highlighted===W0.Below,i=this.mouseEventService.getNormalisedPosition(t).y,r=t.dragItem.rowNodes,a=n?1:0;if(this.isFromThisGrid(t))r.forEach((function(t){t.rowTopthis.paginationProxy.getCurrentPageHeight()||(r=this.rowModel.getRowIndexAtPixel(i),o=this.rowModel.getRow(r)),e.vDirection){case FQ.Down:n="down";break;case FQ.Up:n="up";break;default:n=null}return{type:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,event:e.event,node:e.dragItem.rowNode,nodes:e.dragItem.rowNodes,overIndex:r,overNode:o,y:i,vDirection:n}},e.prototype.dispatchGridEvent=function(t,e){var o=this.draggingToRowDragEvent(t,e);this.eventService.dispatchEvent(o)},e.prototype.onDragLeave=function(t){this.dispatchGridEvent(eK.EVENT_ROW_DRAG_LEAVE,t),this.stopDragging(t),this.gridOptionsService.is("rowDragManaged")&&this.clearRowHighlight(),this.isFromThisGrid(t)&&(this.isMultiRowDrag=!1)},e.prototype.onDragStop=function(t){this.dispatchGridEvent(eK.EVENT_ROW_DRAG_END,t),this.stopDragging(t),!this.gridOptionsService.is("rowDragManaged")||!this.gridOptionsService.is("suppressMoveWhenRowDragging")&&this.isFromThisGrid(t)||this.isDropZoneWithinThisGrid(t)||this.moveRowAndClearHighlight(t)},e.prototype.stopDragging=function(t){this.autoScrollService.ensureCleared(),this.getRowNodes(t).forEach((function(t){t.setDragging(!1)}))},x1([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),x1([aY("rowModel")],e.prototype,"rowModel",void 0),x1([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),x1([aY("columnModel")],e.prototype,"columnModel",void 0),x1([aY("focusService")],e.prototype,"focusService",void 0),x1([aY("sortController")],e.prototype,"sortController",void 0),x1([aY("filterManager")],e.prototype,"filterManager",void 0),x1([aY("selectionService")],e.prototype,"selectionService",void 0),x1([aY("mouseEventService")],e.prototype,"mouseEventService",void 0),x1([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),x1([sY("rangeService")],e.prototype,"rangeService",void 0),x1([nY],e.prototype,"postConstruct",null),e}(qY),T1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),D1=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(w1||(w1={}));var R1,O1,M1="ag-force-vertical-scroll",A1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return T1(e,t),e.prototype.getScrollFeature=function(){return this.bodyScrollFeature},e.prototype.getBodyViewportElement=function(){return this.eBodyViewport},e.prototype.setComp=function(t,e,o,n,i,r){this.comp=t,this.eGridBody=e,this.eBodyViewport=o,this.eTop=n,this.eBottom=i,this.eStickyTop=r,this.setCellTextSelection(this.gridOptionsService.is("enableCellTextSelection")),this.createManagedBean(new v1(this.comp)),this.bodyScrollFeature=this.createManagedBean(new S1(this.eBodyViewport)),this.addRowDragListener(),this.setupRowAnimationCssClass(),this.addEventListeners(),this.addFocusListeners([n,o,i,r]),this.onGridColumnsChanged(),this.addBodyViewportListener(),this.setFloatingHeights(),this.disableBrowserDragging(),this.addStopEditingWhenGridLosesFocus(),this.filterManager.setupAdvancedFilterHeaderComp(n),this.ctrlsService.registerGridBodyCtrl(this)},e.prototype.getComp=function(){return this.comp},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,eK.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addFocusListeners=function(t){var e=this;t.forEach((function(t){e.addManagedListener(t,"focusin",(function(e){var o=gq(e.target,"ag-root",t);t.classList.toggle("ag-has-focus",!o)})),e.addManagedListener(t,"focusout",(function(e){var o=e.target,n=e.relatedTarget,i=t.contains(n),r=gq(n,"ag-root",t);gq(o,"ag-root",t)||i&&!r||t.classList.remove("ag-has-focus")}))}))},e.prototype.setColumnMovingCss=function(t){this.comp.setColumnMovingCss("ag-column-moving",t)},e.prototype.setCellTextSelection=function(t){void 0===t&&(t=!1),this.comp.setCellSelectableCss("ag-selectable",t)},e.prototype.onScrollVisibilityChanged=function(){var t=this,e=this.scrollVisibleService.isVerticalScrollShowing();this.setVerticalScrollPaddingVisible(e),this.setStickyTopWidth(e);var o="calc(100% + "+((e&&this.gridOptionsService.getScrollbarWidth()||0)+(KX()?16:0))+"px)";this.animationFrameService.requestAnimationFrame((function(){return t.comp.setBodyViewportWidth(o)}))},e.prototype.onGridColumnsChanged=function(){var t=this.columnModel.getAllGridColumns();this.comp.setColumnCount(t?t.length:0)},e.prototype.disableBrowserDragging=function(){this.addManagedListener(this.eGridBody,"dragstart",(function(t){if(t.target instanceof HTMLImageElement)return t.preventDefault(),!1}))},e.prototype.addStopEditingWhenGridLosesFocus=function(){var t=this;if(this.gridOptionsService.is("stopEditingWhenCellsLoseFocus")){var e=function(e){var n=e.relatedTarget;if(null!==WX(n)){var i=o.some((function(t){return t.contains(n)}))&&t.mouseEventService.isElementInThisGrid(n);if(!i){var r=t.popupService;i=r.getActivePopups().some((function(t){return t.contains(n)}))||r.isElementWithinCustomPopup(n)}i||t.rowRenderer.stopEditing()}else t.rowRenderer.stopEditing()},o=[this.eBodyViewport,this.eBottom,this.eTop,this.eStickyTop];o.forEach((function(o){return t.addManagedListener(o,"focusout",e)}))}},e.prototype.updateRowCount=function(){var t=this.headerNavigationService.getHeaderRowCount()+this.filterManager.getHeaderRowCount(),e=this.rowModel.isLastRowIndexKnown()?this.rowModel.getRowCount():-1,o=-1===e?-1:t+e;this.comp.setRowCount(o)},e.prototype.registerBodyViewportResizeListener=function(t){this.comp.registerBodyViewportResizeListener(t)},e.prototype.setVerticalScrollPaddingVisible=function(t){var e=t?"scroll":"hidden";this.comp.setPinnedTopBottomOverflowY(e)},e.prototype.isVerticalScrollShowing=function(){var t=this.gridOptionsService.is("alwaysShowVerticalScroll"),e=t?M1:null,o=this.gridOptionsService.isDomLayout("normal");return this.comp.setAlwaysVerticalScrollClass(e,t),t||o&&Fq(this.eBodyViewport)},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsService.isAnimateRows()&&!t.rowContainerHeightService.isStretching(),o=e?w1.ANIMATION_ON:w1.ANIMATION_OFF;t.comp.setRowAnimationCssOnBodyViewport(o,e)};e(),this.addManagedListener(this.eventService,eK.EVENT_HEIGHT_SCALE_CHANGED,e),this.addManagedPropertyListener("animateRows",e)},e.prototype.getGridBodyElement=function(){return this.eGridBody},e.prototype.addBodyViewportListener=function(){var t=this.onBodyViewportContextMenu.bind(this);this.addManagedListener(this.eBodyViewport,"contextmenu",t),this.mockContextMenuForIPad(t),this.addManagedListener(this.eBodyViewport,"wheel",this.onBodyViewportWheel.bind(this)),this.addManagedListener(this.eStickyTop,"wheel",this.onStickyTopWheel.bind(this)),this.addFullWidthContainerWheelListener()},e.prototype.addFullWidthContainerWheelListener=function(){var t=this,e=this.eBodyViewport.querySelector(".ag-full-width-container"),o=this.eBodyViewport.querySelector(".ag-center-cols-viewport");e&&o&&this.addManagedListener(e,"wheel",(function(e){return t.onFullWidthContainerWheel(e,o)}))},e.prototype.onFullWidthContainerWheel=function(t,e){!t.deltaX||Math.abs(t.deltaY)>Math.abs(t.deltaX)||!this.mouseEventService.isEventFromThisGrid(t)||(t.preventDefault(),e.scrollBy({left:t.deltaX}))},e.prototype.onBodyViewportContextMenu=function(t,e,o){if(t||o){this.gridOptionsService.is("preventDefaultOnContextMenu")&&(t||o).preventDefault();var n=(t||e).target;if(n===this.eBodyViewport||n===this.ctrlsService.getCenterRowContainerCtrl().getViewportElement()){if(!this.contextMenuFactory)return;t?this.contextMenuFactory.onContextMenu(t,null,null,null,null,this.eGridBody):o&&this.contextMenuFactory.onContextMenu(null,o,null,null,null,this.eGridBody)}}},e.prototype.mockContextMenuForIPad=function(t){if(HX()){var e=new QQ(this.eBodyViewport);this.addManagedListener(e,QQ.EVENT_LONG_TAP,(function(e){t(void 0,e.touchStart,e.touchEvent)})),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.onBodyViewportWheel=function(t){this.gridOptionsService.is("suppressScrollWhenPopupsAreOpen")&&this.popupService.hasAnchoredPopup()&&t.preventDefault()},e.prototype.onStickyTopWheel=function(t){t.preventDefault(),t.offsetY&&this.scrollVertically(t.deltaY)},e.prototype.getGui=function(){return this.eGridBody},e.prototype.scrollVertically=function(t){var e=this.eBodyViewport.scrollTop;return this.bodyScrollFeature.setVerticalScrollPosition(e+t),this.eBodyViewport.scrollTop-e},e.prototype.addRowDragListener=function(){this.rowDragFeature=this.createManagedBean(new E1(this.eBodyViewport)),this.dragAndDropService.addDropTarget(this.rowDragFeature)},e.prototype.getRowDragFeature=function(){return this.rowDragFeature},e.prototype.onPinnedRowDataChanged=function(){this.setFloatingHeights()},e.prototype.setFloatingHeights=function(){var t=this.pinnedRowModel,e=t.getPinnedTopTotalHeight();e&&(e+=1);var o=t.getPinnedBottomTotalHeight();o&&(o+=1),this.comp.setTopHeight(e),this.comp.setBottomHeight(o),this.comp.setTopDisplay(e?"inherit":"none"),this.comp.setBottomDisplay(o?"inherit":"none"),this.setStickyTopOffsetTop()},e.prototype.setStickyTopHeight=function(t){void 0===t&&(t=0),this.comp.setStickyTopHeight(t+"px"),this.stickyTopHeight=t},e.prototype.getStickyTopHeight=function(){return this.stickyTopHeight},e.prototype.setStickyTopWidth=function(t){if(t){var e=this.gridOptionsService.getScrollbarWidth();this.comp.setStickyTopWidth("calc(100% - "+e+"px)")}else this.comp.setStickyTopWidth("100%")},e.prototype.onHeaderHeightChanged=function(){this.setStickyTopOffsetTop()},e.prototype.setStickyTopOffsetTop=function(){var t=this.ctrlsService.getGridHeaderCtrl().getHeaderHeight()+this.filterManager.getHeaderHeight(),e=this.pinnedRowModel.getPinnedTopTotalHeight(),o=0;t>0&&(o+=t+1),e>0&&(o+=e+1),this.comp.setStickyTopTop(o+"px")},e.prototype.sizeColumnsToFit=function(t,e){var o=this,n=this.isVerticalScrollShowing()?this.gridOptionsService.getScrollbarWidth():0,i=mq(this.eGridBody)-n;i>0?this.columnModel.sizeColumnsToFit(i,"sizeColumnsToFit",!1,t):void 0===e?window.setTimeout((function(){o.sizeColumnsToFit(t,100)}),0):100===e?window.setTimeout((function(){o.sizeColumnsToFit(t,500)}),100):500===e?window.setTimeout((function(){o.sizeColumnsToFit(t,-1)}),500):console.warn("AG Grid: tried to call sizeColumnsToFit() but the grid is coming back with zero width, maybe the grid is not visible yet on the screen?")},e.prototype.addScrollEventListener=function(t){this.eBodyViewport.addEventListener("scroll",t,{passive:!0})},e.prototype.removeScrollEventListener=function(t){this.eBodyViewport.removeEventListener("scroll",t)},D1([aY("animationFrameService")],e.prototype,"animationFrameService",void 0),D1([aY("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),D1([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),D1([aY("columnModel")],e.prototype,"columnModel",void 0),D1([aY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),D1([sY("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),D1([aY("headerNavigationService")],e.prototype,"headerNavigationService",void 0),D1([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),D1([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),D1([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),D1([aY("popupService")],e.prototype,"popupService",void 0),D1([aY("mouseEventService")],e.prototype,"mouseEventService",void 0),D1([aY("rowModel")],e.prototype,"rowModel",void 0),D1([aY("filterManager")],e.prototype,"filterManager",void 0),e}(qY);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(R1||(R1={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(O1||(O1={}));var I1,P1="ag-cell-range-selected",L1=function(){function t(t,e){this.beans=t,this.cellCtrl=e}return t.prototype.setComp=function(t,e){this.cellComp=t,this.eGui=e,this.onRangeSelectionChanged()},t.prototype.onRangeSelectionChanged=function(){this.cellComp&&(this.rangeCount=this.beans.rangeService.getCellRangeCount(this.cellCtrl.getCellPosition()),this.hasChartRange=this.getHasChartRange(),this.cellComp.addOrRemoveCssClass(P1,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(P1+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(P1+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(P1+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(P1+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),bX(this.eGui,this.rangeCount>0||void 0),this.cellComp.addOrRemoveCssClass("ag-cell-range-single-cell",this.isSingleCell()),this.updateRangeBorders(),this.refreshHandle())},t.prototype.updateRangeBorders=function(){var t=this.getRangeBorders(),e=this.isSingleCell(),o=!e&&t.top,n=!e&&t.right,i=!e&&t.bottom,r=!e&&t.left;this.cellComp.addOrRemoveCssClass("ag-cell-range-top",o),this.cellComp.addOrRemoveCssClass("ag-cell-range-right",n),this.cellComp.addOrRemoveCssClass("ag-cell-range-bottom",i),this.cellComp.addOrRemoveCssClass("ag-cell-range-left",r)},t.prototype.isSingleCell=function(){var t=this.beans.rangeService;return 1===this.rangeCount&&t&&!t.isMoreThanOneCell()},t.prototype.getHasChartRange=function(){var t=this.beans.rangeService;if(!this.rangeCount||!t)return!1;var e=t.getCellRanges();return e.length>0&&e.every((function(t){return IY([O1.DIMENSION,O1.VALUE],t.type)}))},t.prototype.updateRangeBordersIfRangeCount=function(){this.rangeCount>0&&(this.updateRangeBorders(),this.refreshHandle())},t.prototype.getRangeBorders=function(){var t,e,o=this,n=this.beans.gridOptionsService.is("enableRtl"),i=!1,r=!1,a=!1,s=!1,l=this.cellCtrl.getCellPosition().column,u=this.beans,c=u.rangeService,p=u.columnModel;n?(t=p.getDisplayedColAfter(l),e=p.getDisplayedColBefore(l)):(t=p.getDisplayedColBefore(l),e=p.getDisplayedColAfter(l));var d=c.getCellRanges().filter((function(t){return c.isCellInSpecificRange(o.cellCtrl.getCellPosition(),t)}));t||(s=!0),e||(r=!0);for(var h=0;h=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},W1=function(){function t(){}return t.prototype.postConstruct=function(){this.doingMasterDetail=this.gridOptionsService.is("masterDetail"),this.gridOptionsService.isRowModelType("clientSide")&&(this.clientSideRowModel=this.rowModel),this.gridOptionsService.isRowModelType("serverSide")&&(this.serverSideRowModel=this.rowModel)},B1([aY("resizeObserverService")],t.prototype,"resizeObserverService",void 0),B1([aY("paginationProxy")],t.prototype,"paginationProxy",void 0),B1([aY("context")],t.prototype,"context",void 0),B1([aY("columnApi")],t.prototype,"columnApi",void 0),B1([aY("gridApi")],t.prototype,"gridApi",void 0),B1([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),B1([aY("expressionService")],t.prototype,"expressionService",void 0),B1([aY("environment")],t.prototype,"environment",void 0),B1([aY("rowRenderer")],t.prototype,"rowRenderer",void 0),B1([aY("templateService")],t.prototype,"templateService",void 0),B1([aY("valueService")],t.prototype,"valueService",void 0),B1([aY("eventService")],t.prototype,"eventService",void 0),B1([aY("columnModel")],t.prototype,"columnModel",void 0),B1([aY("headerNavigationService")],t.prototype,"headerNavigationService",void 0),B1([aY("navigationService")],t.prototype,"navigationService",void 0),B1([aY("columnAnimationService")],t.prototype,"columnAnimationService",void 0),B1([sY("rangeService")],t.prototype,"rangeService",void 0),B1([aY("focusService")],t.prototype,"focusService",void 0),B1([sY("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),B1([aY("popupService")],t.prototype,"popupService",void 0),B1([aY("valueFormatterService")],t.prototype,"valueFormatterService",void 0),B1([aY("stylingService")],t.prototype,"stylingService",void 0),B1([aY("columnHoverService")],t.prototype,"columnHoverService",void 0),B1([aY("userComponentFactory")],t.prototype,"userComponentFactory",void 0),B1([aY("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),B1([aY("animationFrameService")],t.prototype,"animationFrameService",void 0),B1([aY("dragService")],t.prototype,"dragService",void 0),B1([aY("dragAndDropService")],t.prototype,"dragAndDropService",void 0),B1([aY("sortController")],t.prototype,"sortController",void 0),B1([aY("filterManager")],t.prototype,"filterManager",void 0),B1([aY("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),B1([aY("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),B1([aY("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),B1([aY("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),B1([aY("selectionService")],t.prototype,"selectionService",void 0),B1([sY("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),B1([aY("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),B1([aY("rowModel")],t.prototype,"rowModel",void 0),B1([aY("ctrlsService")],t.prototype,"ctrlsService",void 0),B1([aY("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),B1([aY("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),B1([aY("valueCache")],t.prototype,"valueCache",void 0),B1([aY("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),B1([aY("localeService")],t.prototype,"localeService",void 0),B1([aY("valueParserService")],t.prototype,"valueParserService",void 0),B1([nY],t.prototype,"postConstruct",null),B1([rY("beans")],t)}(),z1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),j1=function(t){function e(e,o,n){var i=t.call(this)||this;return i.cellCtrl=e,i.beans=o,i.column=n,i}return z1(e,t),e.prototype.onMouseEvent=function(t,e){if(!HY(e))switch(t){case"click":this.onCellClicked(e);break;case"mousedown":case"touchstart":this.onMouseDown(e);break;case"dblclick":this.onCellDoubleClicked(e);break;case"mouseout":this.onMouseOut(e);break;case"mouseover":this.onMouseOver(e)}},e.prototype.onCellClicked=function(t){if(this.isDoubleClickOnIPad())return this.onCellDoubleClicked(t),void t.preventDefault();var e=this.beans,o=e.eventService,n=e.rangeService,i=e.gridOptionsService,r=t.ctrlKey||t.metaKey;n&&r&&n.getCellRangeCount(this.cellCtrl.getCellPosition())>1&&n.intersectLastRange(!0);var a=this.cellCtrl.createEvent(t,eK.EVENT_CELL_CLICKED);o.dispatchEvent(a);var s=this.column.getColDef();s.onCellClicked&&window.setTimeout((function(){return s.onCellClicked(a)}),0),!i.is("singleClickEdit")&&!s.singleClickEdit||i.is("suppressClickEdit")||t.shiftKey&&0!=(null==n?void 0:n.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()},e.prototype.isDoubleClickOnIPad=function(){if(!HX()||WY("dblclick"))return!1;var t=(new Date).getTime(),e=t-this.lastIPadMouseClickEvent<200;return this.lastIPadMouseClickEvent=t,e},e.prototype.onCellDoubleClicked=function(t){var e=this.column.getColDef(),o=this.cellCtrl.createEvent(t,eK.EVENT_CELL_DOUBLE_CLICKED);this.beans.eventService.dispatchEvent(o),"function"==typeof e.onCellDoubleClicked&&window.setTimeout((function(){return e.onCellDoubleClicked(o)}),0),!this.beans.gridOptionsService.is("singleClickEdit")&&!this.beans.gridOptionsService.is("suppressClickEdit")&&this.cellCtrl.startRowOrCellEdit(null,t)},e.prototype.onMouseDown=function(t){var e=t.ctrlKey,o=t.metaKey,n=t.shiftKey,i=t.target,r=this.cellCtrl,a=this.beans,s=a.eventService,l=a.rangeService,u=a.focusService;if(!this.isRightClickInExistingRange(t)){var c=l&&0!=l.getCellRanges().length;if(!n||!c){var p=NX()&&!r.isEditing()&&!pq(i);r.focusCell(p)}if(n&&c&&!u.isCellFocused(r.getCellPosition())){t.preventDefault();var d=u.getFocusedCell();if(d){var h=d.column,f=d.rowIndex,g=d.rowPinned,v=a.rowRenderer.getRowByPosition({rowIndex:f,rowPinned:g}),y=null==v?void 0:v.getCellCtrl(h);(null==y?void 0:y.isEditing())&&y.stopEditing(),u.setFocusedCell({column:h,rowIndex:f,rowPinned:g,forceBrowserFocus:!0,preventScrollOnBrowserFocus:!0})}}if(!this.containsWidget(i)){if(l){var m=this.cellCtrl.getCellPosition();if(n)l.extendLatestRangeToCell(m);else{var C=e||o;l.setRangeToCell(m,C)}}s.dispatchEvent(this.cellCtrl.createEvent(t,eK.EVENT_CELL_MOUSE_DOWN))}}},e.prototype.isRightClickInExistingRange=function(t){var e=this.beans.rangeService;if(e){var o=e.isCellInAnyRange(this.cellCtrl.getCellPosition()),n=2===t.button||t.ctrlKey&&this.beans.gridOptionsService.is("allowContextMenuWithControlKey");if(o&&n)return!0}return!1},e.prototype.containsWidget=function(t){return gq(t,"ag-selection-checkbox",3)},e.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,eK.EVENT_CELL_MOUSE_OUT);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.clearMouseOver()}},e.prototype.onMouseOver=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,eK.EVENT_CELL_MOUSE_OVER);this.beans.eventService.dispatchEvent(e),this.beans.columnHoverService.setMouseOver([this.column])}},e.prototype.mouseStayingInsideCell=function(t){if(!t.target||!t.relatedTarget)return!1;var e=this.cellCtrl.getGui(),o=e.contains(t.target),n=e.contains(t.relatedTarget);return o&&n},e.prototype.destroy=function(){},e}(W1),U1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$1=function(t){function e(e,o,n,i,r){var a=t.call(this)||this;return a.cellCtrl=e,a.beans=o,a.rowNode=i,a.rowCtrl=r,a}return U1(e,t),e.prototype.setComp=function(t){this.eGui=t},e.prototype.onKeyDown=function(t){var e=t.key;switch(e){case Qq.ENTER:this.onEnterKeyDown(t);break;case Qq.F2:this.onF2KeyDown(t);break;case Qq.ESCAPE:this.onEscapeKeyDown(t);break;case Qq.TAB:this.onTabKeyDown(t);break;case Qq.BACKSPACE:case Qq.DELETE:this.onBackspaceOrDeleteKeyDown(e,t);break;case Qq.DOWN:case Qq.UP:case Qq.RIGHT:case Qq.LEFT:this.onNavigationKeyDown(t,e)}},e.prototype.onNavigationKeyDown=function(t,e){this.cellCtrl.isEditing()||(t.shiftKey&&this.cellCtrl.isRangeSelectionEnabled()?this.onShiftRangeSelect(t):this.beans.navigationService.navigateToNextCell(t,e,this.cellCtrl.getCellPosition(),!0),t.preventDefault())},e.prototype.onShiftRangeSelect=function(t){if(this.beans.rangeService){var e=this.beans.rangeService.extendLatestRangeInDirection(t);e&&this.beans.navigationService.ensureCellVisible(e)}},e.prototype.onTabKeyDown=function(t){this.beans.navigationService.onTabKeyDown(this.cellCtrl,t)},e.prototype.onBackspaceOrDeleteKeyDown=function(t,e){var o=this,n=o.cellCtrl,i=o.beans,r=o.rowNode,a=i.gridOptionsService,s=i.rangeService,l=i.eventService;n.isEditing()||(l.dispatchEvent({type:eK.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),nZ(t,a.is("enableCellEditingOnBackspace"))?s&&a.is("enableRangeSelection")?s.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):n.isCellEditable()&&r.setDataValue(n.getColumn(),null,"cellClear"):n.startRowOrCellEdit(t,e),l.dispatchEvent({type:eK.EVENT_KEY_SHORTCUT_CHANGED_CELL_END}))},e.prototype.onEnterKeyDown=function(t){if(this.cellCtrl.isEditing()||this.rowCtrl.isEditing())this.cellCtrl.stopEditingAndFocus(!1,t.shiftKey);else if(this.beans.gridOptionsService.is("enterNavigatesVertically")){var e=t.shiftKey?Qq.UP:Qq.DOWN;this.beans.navigationService.navigateToNextCell(null,e,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(Qq.ENTER,t),this.cellCtrl.isEditing()&&t.preventDefault()},e.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(Qq.F2,t)},e.prototype.onEscapeKeyDown=function(t){this.cellCtrl.isEditing()&&(this.cellCtrl.stopRowOrCellEdit(!0),this.cellCtrl.focusCell(!0))},e.prototype.processCharacter=function(t){if(t.target===this.eGui&&!this.cellCtrl.isEditing()){var e=t.key;" "===e?this.onSpaceKeyDown(t):(this.cellCtrl.startRowOrCellEdit(e,t),t.preventDefault())}},e.prototype.onSpaceKeyDown=function(t){var e=this.beans.gridOptionsService;if(!this.cellCtrl.isEditing()&&e.isRowSelection()){var o=this.rowNode.isSelected(),n=!o;if(n||!e.is("suppressRowDeselection")){var i=this.beans.gridOptionsService.is("groupSelectsFiltered"),r=this.rowNode.setSelectedParams({newValue:n,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"spaceKey"});void 0===o&&0===r&&this.rowNode.setSelectedParams({newValue:!1,rangeSelect:t.shiftKey,groupSelectsFiltered:i,event:t,source:"spaceKey"})}}t.preventDefault()},e.prototype.destroy=function(){t.prototype.destroy.call(this)},e}(qY),Y1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),K1=function(t){function e(e,o,n){var i=t.call(this,'
')||this;return i.rowNode=e,i.column=o,i.eCell=n,i}return Y1(e,t),e.prototype.postConstruct=function(){this.getGui().appendChild(qq("rowDrag",this.gridOptionsService,null)),this.addGuiEventListener("mousedown",(function(t){t.stopPropagation()})),this.addDragSource(),this.checkVisibility()},e.prototype.addDragSource=function(){this.addGuiEventListener("dragstart",this.onDragStart.bind(this))},e.prototype.onDragStart=function(t){var e=this,o=this.column.getColDef().dndSourceOnRowDrag;t.dataTransfer.setDragImage(this.eCell,0,0),o?o({rowNode:this.rowNode,dragEvent:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):function(){try{var o=JSON.stringify(e.rowNode.data);t.dataTransfer.setData("application/json",o),t.dataTransfer.setData("text/plain",o)}catch(t){}}()},e.prototype.checkVisibility=function(){var t=this.column.isDndSource(this.rowNode);this.setDisplayed(t)},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(EZ),X1=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),q1=function(){return q1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},e2=function(t,e){for(var o=0,n=e.length,i=t.length;o=0)&&o}return o},e.prototype.getDomOrder=function(){return this.gridOptionsService.is("ensureDomOrder")||this.gridOptionsService.isDomLayout("print")},e.prototype.listenOnDomOrder=function(t){var e=this,o=function(){t.rowComp.setDomOrder(e.getDomOrder())};this.addManagedPropertyListener("domLayout",o),this.addManagedPropertyListener("ensureDomOrder",o)},e.prototype.setAnimateFlags=function(t){if(!this.isSticky()&&t){var e=h$(this.rowNode.oldRowTop),o=this.beans.columnModel.isPinningLeft(),n=this.beans.columnModel.isPinningRight();if(e){if(this.isFullWidth()&&!this.gridOptionsService.is("embedFullWidthRows"))return void(this.slideInAnimation.fullWidth=!0);this.slideInAnimation.center=!0,this.slideInAnimation.left=o,this.slideInAnimation.right=n}else{if(this.isFullWidth()&&!this.gridOptionsService.is("embedFullWidthRows"))return void(this.fadeInAnimation.fullWidth=!0);this.fadeInAnimation.center=!0,this.fadeInAnimation.left=o,this.fadeInAnimation.right=n}}},e.prototype.isEditing=function(){return this.editingRow},e.prototype.stopRowEditing=function(t){this.stopEditing(t)},e.prototype.isFullWidth=function(){return this.rowType!==I1.Normal},e.prototype.getRowType=function(){return this.rowType},e.prototype.refreshFullWidth=function(){var t=this,e=function(e,o){if(!e)return!0;var n=e.rowComp.getFullWidthCellRenderer();if(!n)return!1;if(!n.refresh)return!1;var i=t.createFullWidthParams(e.element,o);return n.refresh(i)},o=e(this.fullWidthGui,null),n=e(this.centerGui,null),i=e(this.leftGui,"left"),r=e(this.rightGui,"right");return o&&n&&i&&r},e.prototype.addListeners=function(){var t=this;this.addManagedListener(this.rowNode,EJ.EVENT_HEIGHT_CHANGED,(function(){return t.onRowHeightChanged()})),this.addManagedListener(this.rowNode,EJ.EVENT_ROW_SELECTED,(function(){return t.onRowSelected()})),this.addManagedListener(this.rowNode,EJ.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,EJ.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,EJ.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,eK.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,eK.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,eK.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,eK.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(e,eK.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(e,eK.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,eK.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,eK.EVENT_COLUMN_MOVED,this.onColumnMoved.bind(this)),this.addListenersForCellComps()},e.prototype.onColumnMoved=function(){this.updateColumnLists()},e.prototype.addListenersForCellComps=function(){var t=this;this.addManagedListener(this.rowNode,EJ.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,EJ.EVENT_CELL_CHANGED,(function(e){t.getAllCellCtrls().forEach((function(t){return t.onCellChanged(e)}))}))},e.prototype.onRowNodeDataChanged=function(t){var e=this;this.isFullWidth()!==!!this.rowNode.isFullWidthCell()?this.beans.rowRenderer.redrawRow(this.rowNode):this.isFullWidth()?this.refreshFullWidth()||this.beans.rowRenderer.redrawRow(this.rowNode):(this.getAllCellCtrls().forEach((function(e){return e.refreshCell({suppressFlash:!t.update,newData:!t.update})})),this.allRowGuis.forEach((function(t){e.setRowCompRowId(t.rowComp),e.updateRowBusinessKey(),e.setRowCompRowBusinessKey(t.rowComp)})),this.onRowSelected(),this.postProcessCss())},e.prototype.onRowNodeCellChanged=function(){this.postProcessCss()},e.prototype.postProcessCss=function(){this.setStylesFromGridOptions(!0),this.postProcessClassesFromGridOptions(),this.postProcessRowClassRules(),this.postProcessRowDragging()},e.prototype.onRowNodeHighlightChanged=function(){var t=this.rowNode.highlighted;this.allRowGuis.forEach((function(e){var o=t===W0.Above,n=t===W0.Below;e.rowComp.addOrRemoveCssClass("ag-row-highlight-above",o),e.rowComp.addOrRemoveCssClass("ag-row-highlight-below",n)}))},e.prototype.onRowNodeDraggingChanged=function(){this.postProcessRowDragging()},e.prototype.postProcessRowDragging=function(){var t=this.rowNode.dragging;this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-dragging",t)}))},e.prototype.updateExpandedCss=function(){var t=this.rowNode.isExpandable(),e=1==this.rowNode.expanded;this.allRowGuis.forEach((function(o){o.rowComp.addOrRemoveCssClass("ag-row-group",t),o.rowComp.addOrRemoveCssClass("ag-row-group-expanded",t&&e),o.rowComp.addOrRemoveCssClass("ag-row-group-contracted",t&&!e),cX(o.element,t&&e)}))},e.prototype.onDisplayedColumnsChanged=function(){this.updateColumnLists(!0),this.beans.columnModel.wasAutoRowHeightEverActive()&&this.rowNode.checkAutoHeights()},e.prototype.onVirtualColumnsChanged=function(){this.updateColumnLists(!1,!0)},e.prototype.getRowPosition=function(){return{rowPinned:d$(this.rowNode.rowPinned),rowIndex:this.rowNode.rowIndex}},e.prototype.onKeyboardNavigate=function(t){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)}));if((e?e.element:null)===t.target){var o=this.rowNode,n=this.beans.focusService.getFocusedCell(),i={rowIndex:o.rowIndex,rowPinned:o.rowPinned,column:n&&n.column};this.beans.navigationService.navigateToNextCell(t,t.key,i,!0),t.preventDefault()}},e.prototype.onTabKeyDown=function(t){if(!t.defaultPrevented&&!HY(t)){var e=this.allRowGuis.find((function(e){return e.element.contains(t.target)})),o=e?e.element:null,n=o===t.target,i=null;n||(i=this.beans.focusService.findNextFocusableElement(o,!1,t.shiftKey)),(this.isFullWidth()&&n||!i)&&this.beans.navigationService.onTabKeyDown(this,t)}},e.prototype.onFullWidthRowFocused=function(t){var e,o=this.rowNode,n=!!t&&this.isFullWidth()&&t.rowIndex===o.rowIndex&&t.rowPinned==o.rowPinned,i=this.fullWidthGui?this.fullWidthGui.element:null===(e=this.centerGui)||void 0===e?void 0:e.element;i&&(i.classList.toggle("ag-full-width-focus",n),n&&i.focus({preventScroll:!0}))},e.prototype.refreshCell=function(t){this.centerCellCtrls=this.removeCellCtrl(this.centerCellCtrls,t),this.leftCellCtrls=this.removeCellCtrl(this.leftCellCtrls,t),this.rightCellCtrls=this.removeCellCtrl(this.rightCellCtrls,t),this.updateColumnLists()},e.prototype.removeCellCtrl=function(t,e){var o={list:[],map:{}};return t.list.forEach((function(t){t!==e&&(o.list.push(t),o.map[t.getInstanceId()]=t)})),o},e.prototype.onMouseEvent=function(t,e){switch(t){case"dblclick":this.onRowDblClick(e);break;case"click":this.onRowClick(e);break;case"touchstart":case"mousedown":this.onRowMouseDown(e)}},e.prototype.createRowEvent=function(t,e){return{type:t,node:this.rowNode,data:this.rowNode.data,rowIndex:this.rowNode.rowIndex,rowPinned:this.rowNode.rowPinned,context:this.gridOptionsService.context,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,event:e}},e.prototype.createRowEventWithSource=function(t,e){var o=this.createRowEvent(t,e);return o.source=this,o},e.prototype.onRowDblClick=function(t){if(!HY(t)){var e=this.createRowEventWithSource(eK.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(e)}},e.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=gq(t.target,"ag-row-drag",3),this.isFullWidth()){var e=this.rowNode,o=this.beans.columnModel;this.beans.rangeService&&this.beans.rangeService.removeAllCellRanges(),this.beans.focusService.setFocusedCell({rowIndex:e.rowIndex,column:o.getAllDisplayedColumns()[0],rowPinned:e.rowPinned,forceBrowserFocus:!0})}},e.prototype.onRowClick=function(t){if(!HY(t)&&!this.lastMouseDownOnDragger){var e=this.createRowEventWithSource(eK.EVENT_ROW_CLICKED,t);this.beans.eventService.dispatchEvent(e);var o=t.ctrlKey||t.metaKey,n=t.shiftKey;if(!(this.gridOptionsService.is("groupSelectsChildren")&&this.rowNode.group||!this.rowNode.selectable||this.rowNode.rowPinned||!this.gridOptionsService.isRowSelection()||this.gridOptionsService.is("suppressRowClickSelection"))){var i=this.gridOptionsService.is("rowMultiSelectWithClick"),r=!this.gridOptionsService.is("suppressRowDeselection"),a="rowClicked";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:t,source:a}):o?r&&this.rowNode.setSelectedParams({newValue:!1,event:t,source:a}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!n,rangeSelect:n,event:t,source:a});else{var s=!i&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:s,rangeSelect:n,event:t,source:a})}}}},e.prototype.setupDetailRowAutoHeight=function(t){var e=this;if(this.rowType===I1.FullWidthDetail&&this.gridOptionsService.is("detailRowAutoHeight")){var o=function(){var o=t.clientHeight;null!=o&&o>0&&e.beans.frameworkOverrides.setTimeout((function(){e.rowNode.setRowHeight(o),e.beans.clientSideRowModel?e.beans.clientSideRowModel.onRowHeightChanged():e.beans.serverSideRowModel&&e.beans.serverSideRowModel.onRowHeightChanged()}),0)},n=this.beans.resizeObserverService.observeResize(t,o);this.addDestroyFunc(n),o()}},e.prototype.createFullWidthParams=function(t,e){var o=this;return{fullWidth:!0,data:this.rowNode.data,node:this.rowNode,value:this.rowNode.key,valueFormatted:this.rowNode.key,rowIndex:this.rowNode.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,eGridCell:t,eParentOfValue:t,pinned:e,addRenderedRowListener:this.addEventListener.bind(this),registerRowDragger:function(t,e,n,i){return o.addFullWidthRowDragging(t,e,n,i)}}},e.prototype.addFullWidthRowDragging=function(t,e,o,n){if(void 0===o&&(o=""),this.isFullWidth()){var i=new kJ((function(){return o}),this.rowNode,void 0,t,e,n);this.createManagedBean(i,this.beans.context)}},e.prototype.onUiLevelChanged=function(){var t=this.beans.rowCssClassCalculator.calculateRowLevel(this.rowNode);if(this.rowLevel!=t){var e="ag-row-level-"+t,o="ag-row-level-"+this.rowLevel;this.allRowGuis.forEach((function(t){t.rowComp.addOrRemoveCssClass(e,!0),t.rowComp.addOrRemoveCssClass(o,!1)}))}this.rowLevel=t},e.prototype.isFirstRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageFirstRow()},e.prototype.isLastRowOnPage=function(){return this.rowNode.rowIndex===this.beans.paginationProxy.getPageLastRow()},e.prototype.onModelUpdated=function(){this.refreshFirstAndLastRowStyles()},e.prototype.refreshFirstAndLastRowStyles=function(){var t=this.isFirstRowOnPage(),e=this.isLastRowOnPage();this.firstRowOnPage!==t&&(this.firstRowOnPage=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-first",t)}))),this.lastRowOnPage!==e&&(this.lastRowOnPage=e,this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-row-last",e)})))},e.prototype.stopEditing=function(t){var e,o;if(void 0===t&&(t=!1),!this.stoppingRowEdit){var n=this.getAllCellCtrls(),i=this.editingRow;this.stoppingRowEdit=!0;var r=!1;try{for(var a=function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),s=a.next();!s.done;s=a.next()){var l=s.value.stopEditing(t);i&&!t&&!r&&l&&(r=!0)}}catch(t){e={error:t}}finally{try{s&&!s.done&&(o=a.return)&&o.call(a)}finally{if(e)throw e.error}}if(r){var u=this.createRowEvent(eK.EVENT_ROW_VALUE_CHANGED);this.beans.eventService.dispatchEvent(u)}i&&this.setEditingRow(!1),this.stoppingRowEdit=!1}},e.prototype.setInlineEditingCss=function(t){this.allRowGuis.forEach((function(e){e.rowComp.addOrRemoveCssClass("ag-row-inline-editing",t),e.rowComp.addOrRemoveCssClass("ag-row-not-inline-editing",!t)}))},e.prototype.setEditingRow=function(t){this.editingRow=t,this.allRowGuis.forEach((function(e){return e.rowComp.addOrRemoveCssClass("ag-row-editing",t)}));var e=t?this.createRowEvent(eK.EVENT_ROW_EDITING_STARTED):this.createRowEvent(eK.EVENT_ROW_EDITING_STOPPED);this.beans.eventService.dispatchEvent(e)},e.prototype.startRowEditing=function(t,e,o){void 0===t&&(t=null),void 0===e&&(e=null),void 0===o&&(o=null),this.editingRow||this.getAllCellCtrls().reduce((function(n,i){var r=i===e;return r?i.startEditing(t,r,o):i.startEditing(null,r,o),!!n||i.isEditing()}),!1)&&this.setEditingRow(!0)},e.prototype.getAllCellCtrls=function(){return 0===this.leftCellCtrls.list.length&&0===this.rightCellCtrls.list.length?this.centerCellCtrls.list:e2(e2(e2([],t2(this.centerCellCtrls.list)),t2(this.leftCellCtrls.list)),t2(this.rightCellCtrls.list))},e.prototype.postProcessClassesFromGridOptions=function(){var t=this,e=this.beans.rowCssClassCalculator.processClassesFromGridOptions(this.rowNode);e&&e.length&&e.forEach((function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}))},e.prototype.postProcessRowClassRules=function(){var t=this;this.beans.rowCssClassCalculator.processRowClassRules(this.rowNode,(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!0)}))}),(function(e){t.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass(e,!1)}))}))},e.prototype.setStylesFromGridOptions=function(t,e){var o=this;t&&(this.rowStyles=this.processStylesFromGridOptions()),this.forEachGui(e,(function(t){return t.rowComp.setUserStyles(o.rowStyles)}))},e.prototype.getPinnedForContainer=function(t){return t===n2.LEFT?"left":t===n2.RIGHT?"right":null},e.prototype.getInitialRowClasses=function(t){var e=this.getPinnedForContainer(t),o={rowNode:this.rowNode,rowFocused:this.rowFocused,fadeRowIn:this.fadeInAnimation[t],rowIsEven:this.rowNode.rowIndex%2==0,rowLevel:this.rowLevel,fullWidthRow:this.isFullWidth(),firstRowOnPage:this.isFirstRowOnPage(),lastRowOnPage:this.isLastRowOnPage(),printLayout:this.printLayout,expandable:this.rowNode.isExpandable(),pinned:e};return this.beans.rowCssClassCalculator.getInitialRowClasses(o)},e.prototype.processStylesFromGridOptions=function(){var t=this.gridOptionsService.get("rowStyle");if(!t||"function"!=typeof t){var e,o=this.gridOptionsService.getCallback("getRowStyle");return o&&(e=o({data:this.rowNode.data,node:this.rowNode,rowIndex:this.rowNode.rowIndex})),e||t?Object.assign({},t,e):this.emptyStyle}console.warn("AG Grid: rowStyle should be an object of key/value styles, not be a function, use getRowStyle() instead")},e.prototype.onRowSelected=function(t){var e=this,o=!!this.rowNode.isSelected();this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-selected",o),bX(t.element,!!o||void 0);var n=e.createAriaLabel();eX(t.element,null==n?"":n)}))},e.prototype.createAriaLabel=function(){var t=this.rowNode.isSelected();if(!t||!this.gridOptionsService.is("suppressRowDeselection"))return this.beans.localeService.getLocaleTextFunc()(t?"ariaRowDeselect":"ariaRowSelect","Press SPACE to "+(t?"deselect":"select")+" this row.")},e.prototype.isUseAnimationFrameForCreate=function(){return this.useAnimationFrameForCreate},e.prototype.addHoverFunctionality=function(t){var e=this;this.active&&(this.addManagedListener(t,"mouseenter",(function(){return e.rowNode.onMouseEnter()})),this.addManagedListener(t,"mouseleave",(function(){return e.rowNode.onMouseLeave()})),this.addManagedListener(this.rowNode,EJ.EVENT_MOUSE_ENTER,(function(){e.beans.dragService.isDragging()||e.gridOptionsService.is("suppressRowHoverHighlight")||(t.classList.add("ag-row-hover"),e.rowNode.setHovered(!0))})),this.addManagedListener(this.rowNode,EJ.EVENT_MOUSE_LEAVE,(function(){t.classList.remove("ag-row-hover"),e.rowNode.setHovered(!1)})))},e.prototype.roundRowTopToBounds=function(t){var e=this.beans.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.applyPaginationOffset(e.top,!0)-100,n=this.applyPaginationOffset(e.bottom,!0)+100;return Math.min(Math.max(o,t),n)},e.prototype.getFrameworkOverrides=function(){return this.beans.frameworkOverrides},e.prototype.forEachGui=function(t,e){t?e(t):this.allRowGuis.forEach(e)},e.prototype.onRowHeightChanged=function(t){if(null!=this.rowNode.rowHeight){var e=this.rowNode.rowHeight,o=this.beans.environment.getDefaultRowHeight(),n=this.gridOptionsService.isGetRowHeightFunction()?this.gridOptionsService.getRowHeightForNode(this.rowNode).height:void 0,i=n?Math.min(o,n)-2+"px":void 0;this.forEachGui(t,(function(t){t.element.style.height=e+"px",i&&t.element.style.setProperty("--ag-line-height",i)}))}},e.prototype.addEventListener=function(e,o){t.prototype.addEventListener.call(this,e,o)},e.prototype.removeEventListener=function(e,o){t.prototype.removeEventListener.call(this,e,o)},e.prototype.destroyFirstPass=function(){this.active=!1,this.gridOptionsService.isAnimateRows()&&this.setupRemoveAnimation(),this.rowNode.setHovered(!1);var e=this.createRowEvent(eK.EVENT_VIRTUAL_ROW_REMOVED);this.dispatchEvent(e),this.beans.eventService.dispatchEvent(e),t.prototype.destroy.call(this)},e.prototype.setupRemoveAnimation=function(){if(!this.isSticky())if(null!=this.rowNode.rowTop){var t=this.roundRowTopToBounds(this.rowNode.rowTop);this.setRowTop(t)}else this.allRowGuis.forEach((function(t){return t.rowComp.addOrRemoveCssClass("ag-opacity-zero",!0)}))},e.prototype.destroySecondPass=function(){this.allRowGuis.length=0;var t=function(t){return t.list.forEach((function(t){return t.destroy()})),{list:[],map:{}}};this.centerCellCtrls=t(this.centerCellCtrls),this.leftCellCtrls=t(this.leftCellCtrls),this.rightCellCtrls=t(this.rightCellCtrls)},e.prototype.setFocusedClasses=function(t){var e=this;this.forEachGui(t,(function(t){t.rowComp.addOrRemoveCssClass("ag-row-focus",e.rowFocused),t.rowComp.addOrRemoveCssClass("ag-row-no-focus",!e.rowFocused)}))},e.prototype.onCellFocused=function(){this.onCellFocusChanged()},e.prototype.onCellFocusCleared=function(){this.onCellFocusChanged()},e.prototype.onCellFocusChanged=function(){var t=this.beans.focusService.isRowFocused(this.rowNode.rowIndex,this.rowNode.rowPinned);t!==this.rowFocused&&(this.rowFocused=t,this.setFocusedClasses()),!t&&this.editingRow&&this.stopEditing(!1)},e.prototype.onPaginationChanged=function(){var t=this.beans.paginationProxy.getCurrentPage();this.paginationPage!==t&&(this.paginationPage=t,this.onTopChanged()),this.refreshFirstAndLastRowStyles()},e.prototype.onTopChanged=function(){this.setRowTop(this.rowNode.rowTop)},e.prototype.onPaginationPixelOffsetChanged=function(){this.onTopChanged()},e.prototype.applyPaginationOffset=function(t,e){return void 0===e&&(e=!1),this.rowNode.isRowPinned()||this.rowNode.sticky?t:t+this.beans.paginationProxy.getPixelOffset()*(e?1:-1)},e.prototype.setRowTop=function(t){if(!this.printLayout&&h$(t)){var e=this.applyPaginationOffset(t),o=(this.rowNode.isRowPinned()||this.rowNode.sticky?e:this.beans.rowContainerHeightService.getRealPixelPosition(e))+"px";this.setRowTopStyle(o)}},e.prototype.getInitialRowTop=function(t){return this.gridOptionsService.is("suppressRowTransform")?this.getInitialRowTopShared(t):void 0},e.prototype.getInitialTransform=function(t){return this.gridOptionsService.is("suppressRowTransform")?void 0:"translateY("+this.getInitialRowTopShared(t)+")"},e.prototype.getInitialRowTopShared=function(t){if(this.printLayout)return"";var e;if(this.isSticky())e=this.rowNode.stickyRowTop;else{var o=this.slideInAnimation[t]?this.roundRowTopToBounds(this.rowNode.oldRowTop):this.rowNode.rowTop,n=this.applyPaginationOffset(o);e=this.rowNode.isRowPinned()?n:this.beans.rowContainerHeightService.getRealPixelPosition(n)}return e+"px"},e.prototype.setRowTopStyle=function(t){var e=this.gridOptionsService.is("suppressRowTransform");this.allRowGuis.forEach((function(o){return e?o.rowComp.setTop(t):o.rowComp.setTransform("translateY("+t+")")}))},e.prototype.getRowNode=function(){return this.rowNode},e.prototype.getCellCtrl=function(t){var e=null;return this.getAllCellCtrls().forEach((function(o){o.getColumn()==t&&(e=o)})),null!=e||this.getAllCellCtrls().forEach((function(o){o.getColSpanningList().indexOf(t)>=0&&(e=o)})),e},e.prototype.onRowIndexChanged=function(){null!=this.rowNode.rowIndex&&(this.onCellFocusChanged(),this.updateRowIndexes(),this.postProcessCss())},e.prototype.getRowIndex=function(){return this.rowNode.getRowIndexString()},e.prototype.updateRowIndexes=function(t){var e=this.rowNode.getRowIndexString(),o=this.beans.headerNavigationService.getHeaderRowCount()+this.beans.filterManager.getHeaderRowCount(),n=this.rowNode.rowIndex%2==0,i=o+this.rowNode.rowIndex+1;this.forEachGui(t,(function(t){t.rowComp.setRowIndex(e),t.rowComp.addOrRemoveCssClass("ag-row-even",n),t.rowComp.addOrRemoveCssClass("ag-row-odd",!n),vX(t.element,i)}))},e.prototype.getPinnedLeftRowElement=function(){return this.leftGui?this.leftGui.element:void 0},e.prototype.getPinnedRightRowElement=function(){return this.rightGui?this.rightGui.element:void 0},e.prototype.getBodyRowElement=function(){return this.centerGui?this.centerGui.element:void 0},e.prototype.getFullWidthRowElement=function(){return this.fullWidthGui?this.fullWidthGui.element:void 0},e.DOM_DATA_KEY_ROW_CTRL="renderedRow",e}(qY),a2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),s2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},l2=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return a2(e,t),e.prototype.postConstruct=function(){this.addKeyboardListeners(),this.addMouseListeners(),this.mockContextMenuForIPad()},e.prototype.addKeyboardListeners=function(){var t="keydown",e=this.processKeyboardEvent.bind(this,t);this.addManagedListener(this.element,t,e)},e.prototype.addMouseListeners=function(){var t=this;["dblclick","contextmenu","mouseover","mouseout","click",WY("touchstart")?"touchstart":"mousedown"].forEach((function(e){var o=t.processMouseEvent.bind(t,e);t.addManagedListener(t.element,e,o)}))},e.prototype.processMouseEvent=function(t,e){if(this.mouseEventService.isEventFromThisGrid(e)&&!HY(e)){var o=this.getRowForEvent(e),n=this.mouseEventService.getRenderedCellForEvent(e);"contextmenu"===t?this.handleContextMenuMouseEvent(e,null,o,n):(n&&n.onMouseEvent(t,e),o&&o.onMouseEvent(t,e))}},e.prototype.mockContextMenuForIPad=function(){var t=this;if(HX()){var e=new QQ(this.element);this.addManagedListener(e,QQ.EVENT_LONG_TAP,(function(e){var o=t.getRowForEvent(e.touchEvent),n=t.mouseEventService.getRenderedCellForEvent(e.touchEvent);t.handleContextMenuMouseEvent(null,e.touchEvent,o,n)})),this.addDestroyFunc((function(){return e.destroy()}))}},e.prototype.getRowForEvent=function(t){for(var e=t.target;e;){var o=this.gridOptionsService.getDomData(e,r2.DOM_DATA_KEY_ROW_CTRL);if(o)return o;e=e.parentElement}return null},e.prototype.handleContextMenuMouseEvent=function(t,e,o,n){var i=o?o.getRowNode():null,r=n?n.getColumn():null,a=null;if(r){var s=t||e;n.dispatchCellContextMenuEvent(s),a=this.valueService.getValue(r,i)}var l=this.ctrlsService.getGridBodyCtrl(),u=n?n.getGui():l.getGridBodyElement();this.contextMenuFactory&&this.contextMenuFactory.onContextMenu(t,e,i,r,a,u)},e.prototype.getControlsForEventTarget=function(t){return{cellCtrl:zY(this.gridOptionsService,t,Q1.DOM_DATA_KEY_CELL_CTRL),rowCtrl:zY(this.gridOptionsService,t,r2.DOM_DATA_KEY_ROW_CTRL)}},e.prototype.processKeyboardEvent=function(t,e){var o=this.getControlsForEventTarget(e.target),n=o.cellCtrl,i=o.rowCtrl;e.defaultPrevented||(n?this.processCellKeyboardEvent(n,t,e):i&&i.isFullWidth()&&this.processFullWidthRowKeyboardEvent(i,t,e))},e.prototype.processCellKeyboardEvent=function(t,e,o){var n=t.getRowNode(),i=t.getColumn(),r=t.isEditing();if(tZ(this.gridOptionsService,o,n,i,r)||"keydown"===e&&(!r&&this.navigationService.handlePageScrollingKey(o)||t.onKeyDown(o),this.doGridOperations(o,t.isEditing()),Jq(o)&&t.processCharacter(o)),"keydown"===e){var a=t.createEvent(o,eK.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(a)}},e.prototype.processFullWidthRowKeyboardEvent=function(t,e,o){var n=t.getRowNode(),i=this.focusService.getFocusedCell(),r=i&&i.column;if(!tZ(this.gridOptionsService,o,n,r,!1)){var a=o.key;if("keydown"===e)switch(a){case Qq.PAGE_HOME:case Qq.PAGE_END:case Qq.PAGE_UP:case Qq.PAGE_DOWN:this.navigationService.handlePageScrollingKey(o,!0);break;case Qq.UP:case Qq.DOWN:t.onKeyboardNavigate(o);break;case Qq.TAB:t.onTabKeyDown(o)}}if("keydown"===e){var s=t.createRowEvent(eK.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(s)}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e&&this.mouseEventService.isEventFromThisGrid(t)){var o=oZ(t);return o===Qq.A?this.onCtrlAndA(t):o===Qq.C?this.onCtrlAndC(t):o===Qq.D?this.onCtrlAndD(t):o===Qq.V?this.onCtrlAndV(t):o===Qq.X?this.onCtrlAndX(t):o===Qq.Y?this.onCtrlAndY():o===Qq.Z?this.onCtrlAndZ(t):void 0}},e.prototype.onCtrlAndA=function(t){var e=this,o=e.pinnedRowModel,n=e.paginationProxy,i=e.rangeService;if(i&&n.isRowsToRender()){var r=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}([o.isEmpty("top"),o.isEmpty("bottom")],2),a=r[0]?null:"top",s=void 0,l=void 0;r[1]?(s=null,l=this.paginationProxy.getRowCount()-1):(s="bottom",l=o.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(g$(u))return;i.setCellRange({rowStartIndex:0,rowStartPinned:a,rowEndIndex:l,rowEndPinned:s,columnStart:u[0],columnEnd:_Y(u)})}t.preventDefault()},e.prototype.onCtrlAndC=function(t){if(this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")){var e=this.getControlsForEventTarget(t.target),o=e.cellCtrl,n=e.rowCtrl;(null==o?void 0:o.isEditing())||(null==n?void 0:n.isEditing())||(t.preventDefault(),this.clipboardService.copyToClipboard())}},e.prototype.onCtrlAndX=function(t){if(this.clipboardService&&!this.gridOptionsService.is("enableCellTextSelection")&&!this.gridOptionsService.is("suppressCutToClipboard")){var e=this.getControlsForEventTarget(t.target),o=e.cellCtrl,n=e.rowCtrl;(null==o?void 0:o.isEditing())||(null==n?void 0:n.isEditing())||(t.preventDefault(),this.clipboardService.cutToClipboard(void 0,"ui"))}},e.prototype.onCtrlAndV=function(t){var e=this.getControlsForEventTarget(t.target),o=e.cellCtrl,n=e.rowCtrl;(null==o?void 0:o.isEditing())||(null==n?void 0:n.isEditing())||this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.pasteFromClipboard()},e.prototype.onCtrlAndD=function(t){this.clipboardService&&!this.gridOptionsService.is("suppressClipboardPaste")&&this.clipboardService.copyRangeDown(),t.preventDefault()},e.prototype.onCtrlAndZ=function(t){this.gridOptionsService.is("undoRedoCellEditing")&&(t.preventDefault(),t.shiftKey?this.undoRedoService.redo("ui"):this.undoRedoService.undo("ui"))},e.prototype.onCtrlAndY=function(){this.undoRedoService.redo("ui")},s2([aY("mouseEventService")],e.prototype,"mouseEventService",void 0),s2([aY("valueService")],e.prototype,"valueService",void 0),s2([sY("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),s2([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),s2([aY("navigationService")],e.prototype,"navigationService",void 0),s2([aY("focusService")],e.prototype,"focusService",void 0),s2([aY("undoRedoService")],e.prototype,"undoRedoService",void 0),s2([aY("columnModel")],e.prototype,"columnModel",void 0),s2([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),s2([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),s2([sY("rangeService")],e.prototype,"rangeService",void 0),s2([sY("clipboardService")],e.prototype,"clipboardService",void 0),s2([nY],e.prototype,"postConstruct",null),e}(qY),u2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),c2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},p2=function(t){function e(e){var o=t.call(this)||this;return o.centerContainerCtrl=e,o}return u2(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,eK.EVENT_SCROLLBAR_WIDTH_CHANGED,this.onScrollbarWidthChanged.bind(this))},e.prototype.listenForResize=function(){var t=this,e=function(){return t.onCenterViewportResized()};this.centerContainerCtrl.registerViewportResizeListener(e),this.gridBodyCtrl.registerBodyViewportResizeListener(e)},e.prototype.onScrollbarWidthChanged=function(){this.checkViewportAndScrolls()},e.prototype.onCenterViewportResized=function(){if(this.centerContainerCtrl.isViewportVisible()){this.checkViewportAndScrolls();var t=this.centerContainerCtrl.getCenterWidth();t!==this.centerWidth&&(this.centerWidth=t,this.columnModel.refreshFlexedColumns({viewportWidth:this.centerWidth,updateBodyWidths:!0,fireResizedEvent:!0}))}else this.bodyHeight=0},e.prototype.checkViewportAndScrolls=function(){this.updateScrollVisibleService(),this.checkBodyHeight(),this.onHorizontalViewportChanged(),this.gridBodyCtrl.getScrollFeature().checkScrollLeft()},e.prototype.getBodyHeight=function(){return this.bodyHeight},e.prototype.checkBodyHeight=function(){var t=yq(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:eK.EVENT_BODY_HEIGHT_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.updateScrollVisibleService=function(){this.updateScrollVisibleServiceImpl(),setTimeout(this.updateScrollVisibleServiceImpl.bind(this),500)},e.prototype.updateScrollVisibleServiceImpl=function(){var t={horizontalScrollShowing:this.isHorizontalScrollShowing(),verticalScrollShowing:this.gridBodyCtrl.isVerticalScrollShowing()};this.scrollVisibleService.setScrollsVisible(t)},e.prototype.isHorizontalScrollShowing=function(){return this.centerContainerCtrl.isHorizontalScrollShowing()},e.prototype.onHorizontalViewportChanged=function(){var t=this.centerContainerCtrl.getCenterWidth(),e=this.centerContainerCtrl.getViewportScrollLeft();this.columnModel.setViewportPosition(t,e)},c2([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),c2([aY("columnModel")],e.prototype,"columnModel",void 0),c2([aY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),c2([nY],e.prototype,"postConstruct",null),e}(qY),d2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),h2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},f2=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return d2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,eK.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},e.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),e=t>0;dq(this.element,e),Gq(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},h2([aY("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),h2([nY],e.prototype,"postConstruct",null),e}(qY),g2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),v2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},y2=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return g2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,eK.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},e.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),e=t>0;dq(this.element,e),Gq(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},v2([aY("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),v2([nY],e.prototype,"postConstruct",null),e}(qY),m2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),C2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},w2=function(t){function e(e,o){var n=t.call(this)||this;return n.eContainer=e,n.eViewport=o,n}return m2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,eK.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onHeightChanged.bind(this))},e.prototype.onHeightChanged=function(){var t=this.maxDivHeightScaler.getUiContainerHeight(),e=null!=t?t+"px":"";this.eContainer.style.height=e,this.eViewport&&(this.eViewport.style.height=e)},C2([aY("rowContainerHeightService")],e.prototype,"maxDivHeightScaler",void 0),C2([nY],e.prototype,"postConstruct",null),e}(qY),S2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),b2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},_2=function(t){function e(e){var o=t.call(this)||this;return o.eContainer=e,o}return S2(e,t),e.prototype.postConstruct=function(){var t=this;if(this.gridOptionsService.is("enableRangeSelection")&&!f$(this.rangeService)){var e={eElement:this.eContainer,onDragStart:this.rangeService.onDragStart.bind(this.rangeService),onDragStop:this.rangeService.onDragStop.bind(this.rangeService),onDragging:this.rangeService.onDragging.bind(this.rangeService)};this.dragService.addDragSource(e),this.addDestroyFunc((function(){return t.dragService.removeDragSource(e)}))}},b2([sY("rangeService")],e.prototype,"rangeService",void 0),b2([aY("dragService")],e.prototype,"dragService",void 0),b2([nY],e.prototype,"postConstruct",null),e}(qY),x2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),E2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},T2=function(t){function e(e,o){void 0===o&&(o=!1);var n=t.call(this)||this;return n.callback=e,n.addSpacer=o,n}return x2(e,t),e.prototype.postConstruct=function(){var t=this.setWidth.bind(this);this.addManagedPropertyListener("domLayout",t),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_LEFT_PINNED_WIDTH_CHANGED,t),this.addSpacer&&(this.addManagedListener(this.eventService,eK.EVENT_RIGHT_PINNED_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_SCROLL_VISIBILITY_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_SCROLLBAR_WIDTH_CHANGED,t)),this.setWidth()},e.prototype.setWidth=function(){var t,e=this.columnModel,o=this.gridOptionsService.isDomLayout("print"),n=e.getBodyContainerWidth(),i=e.getDisplayedColumnsLeftWidth(),r=e.getDisplayedColumnsRightWidth();o?t=n+i+r:(t=n,this.addSpacer&&0===(this.gridOptionsService.is("enableRtl")?i:r)&&this.scrollVisibleService.isVerticalScrollShowing()&&(t+=this.gridOptionsService.getScrollbarWidth())),this.callback(t)},E2([aY("columnModel")],e.prototype,"columnModel",void 0),E2([aY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),E2([nY],e.prototype,"postConstruct",null),e}(qY),D2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),R2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},O2=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},M2=function(t,e){for(var o=0,n=e.length,i=t.length;o=0&&e()},e.prototype.getContainerElement=function(){return this.eContainer},e.prototype.getViewportSizeFeature=function(){return this.viewportSizeFeature},e.prototype.setComp=function(t,e,o){var n=this;this.comp=t,this.eContainer=e,this.eViewport=o,this.createManagedBean(new l2(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[o2.TOP_CENTER,o2.TOP_LEFT,o2.TOP_RIGHT],r=[o2.STICKY_TOP_CENTER,o2.STICKY_TOP_LEFT,o2.STICKY_TOP_RIGHT],a=[o2.BOTTOM_CENTER,o2.BOTTOM_LEFT,o2.BOTTOM_RIGHT],s=[o2.CENTER,o2.LEFT,o2.RIGHT],l=M2(M2(M2(M2([],O2(i)),O2(a)),O2(s)),O2(r)),u=[o2.CENTER,o2.LEFT,o2.RIGHT,o2.FULL_WIDTH],c=[o2.CENTER,o2.TOP_CENTER,o2.STICKY_TOP_CENTER,o2.BOTTOM_CENTER],p=[o2.LEFT,o2.BOTTOM_LEFT,o2.TOP_LEFT,o2.STICKY_TOP_LEFT],d=[o2.RIGHT,o2.BOTTOM_RIGHT,o2.TOP_RIGHT,o2.STICKY_TOP_RIGHT];this.forContainers(p,(function(){n.pinnedWidthFeature=n.createManagedBean(new f2(n.eContainer)),n.addManagedListener(n.eventService,eK.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(d,(function(){n.pinnedWidthFeature=n.createManagedBean(new y2(n.eContainer)),n.addManagedListener(n.eventService,eK.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(u,(function(){return n.createManagedBean(new w2(n.eContainer,n.name===o2.CENTER?o:void 0))})),this.forContainers(l,(function(){return n.createManagedBean(new _2(n.eContainer))})),this.forContainers(c,(function(){return n.createManagedBean(new T2((function(t){return n.comp.setContainerWidth(t+"px")})))})),KX()&&(this.forContainers([o2.CENTER],(function(){var t=n.enableRtl?eK.EVENT_LEFT_PINNED_WIDTH_CHANGED:eK.EVENT_RIGHT_PINNED_WIDTH_CHANGED;n.addManagedListener(n.eventService,t,(function(){return n.refreshPaddingForFakeScrollbar()}))})),this.refreshPaddingForFakeScrollbar()),this.addListeners(),this.registerWithCtrlsService()},e.prototype.refreshPaddingForFakeScrollbar=function(){var t=this,e=t.enableRtl,o=t.columnModel,n=t.eContainer,i=e?o2.LEFT:o2.RIGHT;this.forContainers([o2.CENTER,i],(function(){var t=o.getContainerWidth(i),r=e?"marginLeft":"marginRight";n.style[r]=t?"16px":"0px"}))},e.prototype.addListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_ROWS_CHANGED,(function(e){return t.onDisplayedRowsChanged(e.afterScroll)})),this.onDisplayedColumnsChanged(),this.onDisplayedColumnsWidthChanged(),this.onDisplayedRowsChanged()},e.prototype.listenOnDomOrder=function(){var t=this;if([o2.STICKY_TOP_CENTER,o2.STICKY_TOP_LEFT,o2.STICKY_TOP_RIGHT,o2.STICKY_TOP_FULL_WIDTH].indexOf(this.name)>=0)this.comp.setDomOrder(!0);else{var e=function(){var e=t.gridOptionsService.is("ensureDomOrder"),o=t.gridOptionsService.isDomLayout("print");t.comp.setDomOrder(e||o)};this.addManagedPropertyListener("domLayout",e),e()}},e.prototype.stopHScrollOnPinnedRows=function(){var t=this;this.forContainers([o2.TOP_CENTER,o2.STICKY_TOP_CENTER,o2.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},e.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([o2.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([o2.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.addPreventScrollWhileDragging=function(){var t=this,e=function(e){t.dragService.isDragging()&&e.cancelable&&e.preventDefault()};this.eContainer.addEventListener("touchmove",e,{passive:!1}),this.addDestroyFunc((function(){return t.eContainer.removeEventListener("touchmove",e)}))},e.prototype.onHorizontalViewportChanged=function(t){void 0===t&&(t=!1);var e=this.getCenterWidth(),o=this.getCenterViewportScrollLeft();this.columnModel.setViewportPosition(e,o,t)},e.prototype.getCenterWidth=function(){return mq(this.eViewport)},e.prototype.getCenterViewportScrollLeft=function(){return _q(this.eViewport,this.enableRtl)},e.prototype.registerViewportResizeListener=function(t){var e=this.resizeObserverService.observeResize(this.eViewport,t);this.addDestroyFunc((function(){return e()}))},e.prototype.isViewportVisible=function(){return Dq(this.eViewport)},e.prototype.getViewportScrollLeft=function(){return _q(this.eViewport,this.enableRtl)},e.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||Nq(this.eViewport)},e.prototype.getViewportElement=function(){return this.eViewport},e.prototype.setContainerTranslateX=function(t){this.eContainer.style.transform="translateX("+t+"px)"},e.prototype.getHScrollPosition=function(){return{left:this.eViewport.scrollLeft,right:this.eViewport.scrollLeft+this.eViewport.offsetWidth}},e.prototype.setCenterViewportScrollLeft=function(t){xq(this.eViewport,t,this.enableRtl)},e.prototype.isContainerVisible=function(){return!e.getPinned(this.name)||!!this.pinnedWidthFeature&&this.pinnedWidthFeature.getWidth()>0},e.prototype.onPinnedWidthChanged=function(){var t=this.isContainerVisible();this.visible!=t&&(this.visible=t,this.onDisplayedRowsChanged()),KX()&&this.refreshPaddingForFakeScrollbar()},e.prototype.onDisplayedRowsChanged=function(t){var e=this;if(void 0===t&&(t=!1),this.visible){var o=this.gridOptionsService.isDomLayout("print"),n=this.getRowCtrls().filter((function(t){var n=t.isFullWidth(),i=e.embedFullWidthRows||o;return e.isFullWithContainer?!i&&n:i||!n}));this.comp.setRowCtrls(n,t)}else this.comp.setRowCtrls(this.EMPTY_CTRLS,!1)},e.prototype.getRowCtrls=function(){switch(this.name){case o2.TOP_CENTER:case o2.TOP_LEFT:case o2.TOP_RIGHT:case o2.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case o2.STICKY_TOP_CENTER:case o2.STICKY_TOP_LEFT:case o2.STICKY_TOP_RIGHT:case o2.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case o2.BOTTOM_CENTER:case o2.BOTTOM_LEFT:case o2.BOTTOM_RIGHT:case o2.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},R2([aY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),R2([aY("dragService")],e.prototype,"dragService",void 0),R2([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),R2([aY("columnModel")],e.prototype,"columnModel",void 0),R2([aY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),R2([aY("animationFrameService")],e.prototype,"animationFrameService",void 0),R2([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),R2([nY],e.prototype,"postConstruct",null),e}(qY),N2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),F2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},k2='
\n \n \n \n \n \n \n \n
',G2=function(t){function e(){return t.call(this,k2)||this}return N2(e,t),e.prototype.init=function(){var t=this,e=function(t,e){var o=t+"px";e.style.minHeight=o,e.style.height=o},o={setRowAnimationCssOnBodyViewport:function(e,o){return t.setRowAnimationCssOnBodyViewport(e,o)},setColumnCount:function(e){return yX(t.getGui(),e)},setRowCount:function(e){return gX(t.getGui(),e)},setTopHeight:function(o){return e(o,t.eTop)},setBottomHeight:function(o){return e(o,t.eBottom)},setTopDisplay:function(e){return t.eTop.style.display=e},setBottomDisplay:function(e){return t.eBottom.style.display=e},setStickyTopHeight:function(e){return t.eStickyTop.style.height=e},setStickyTopTop:function(e){return t.eStickyTop.style.top=e},setStickyTopWidth:function(e){return t.eStickyTop.style.width=e},setColumnMovingCss:function(e,o){return t.addOrRemoveCssClass(e,o)},updateLayoutClasses:function(e,o){[t.eBodyViewport.classList,t.eBody.classList].forEach((function(t){t.toggle(J0.AUTO_HEIGHT,o.autoHeight),t.toggle(J0.NORMAL,o.normal),t.toggle(J0.PRINT,o.print)})),t.addOrRemoveCssClass(J0.AUTO_HEIGHT,o.autoHeight),t.addOrRemoveCssClass(J0.NORMAL,o.normal),t.addOrRemoveCssClass(J0.PRINT,o.print)},setAlwaysVerticalScrollClass:function(e,o){return t.eBodyViewport.classList.toggle(M1,o)},registerBodyViewportResizeListener:function(e){var o=t.resizeObserverService.observeResize(t.eBodyViewport,e);t.addDestroyFunc((function(){return o()}))},setPinnedTopBottomOverflowY:function(e){return t.eTop.style.overflowY=t.eBottom.style.overflowY=e},setCellSelectableCss:function(e,o){[t.eTop,t.eBodyViewport,t.eBottom].forEach((function(t){return t.classList.toggle(e,o)}))},setBodyViewportWidth:function(e){return t.eBodyViewport.style.width=e}};this.ctrl=this.createManagedBean(new A1),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&fX(this.getGui(),!0)},e.prototype.setRowAnimationCssOnBodyViewport=function(t,e){var o=this.eBodyViewport.classList;o.toggle(w1.ANIMATION_ON,e),o.toggle(w1.ANIMATION_OFF,!e)},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},F2([aY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),F2([sY("rangeService")],e.prototype,"rangeService",void 0),F2([TZ("eBodyViewport")],e.prototype,"eBodyViewport",void 0),F2([TZ("eStickyTop")],e.prototype,"eStickyTop",void 0),F2([TZ("eTop")],e.prototype,"eTop",void 0),F2([TZ("eBottom")],e.prototype,"eBottom",void 0),F2([TZ("gridHeader")],e.prototype,"headerRootComp",void 0),F2([TZ("eBody")],e.prototype,"eBody",void 0),F2([nY],e.prototype,"init",null),e}(EZ),V2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),H2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},B2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onDisplayedColumnsWidthChanged.bind(this))},e.prototype.onDisplayedColumnsChanged=function(){this.update()},e.prototype.onDisplayedColumnsWidthChanged=function(){this.update()},e.prototype.update=function(){this.updateImpl(),setTimeout(this.updateImpl.bind(this),500)},e.prototype.updateImpl=function(){var t=this.ctrlsService.getCenterRowContainerCtrl();if(t){var e={horizontalScrollShowing:t.isHorizontalScrollShowing(),verticalScrollShowing:this.isVerticalScrollShowing()};this.setScrollsVisible(e)}},e.prototype.setScrollsVisible=function(t){if(this.horizontalScrollShowing!==t.horizontalScrollShowing||this.verticalScrollShowing!==t.verticalScrollShowing){this.horizontalScrollShowing=t.horizontalScrollShowing,this.verticalScrollShowing=t.verticalScrollShowing;var e={type:eK.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},H2([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),H2([nY],e.prototype,"postConstruct",null),H2([rY("scrollVisibleService")],e)}(qY),W2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),z2=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},j2=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=o.gridInstanceSequence.next(),e}var o;return W2(e,t),o=e,e.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[o.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(t){return zY(this.gridOptionsService,t.target,Q1.DOM_DATA_KEY_CELL_CTRL)},e.prototype.isEventFromThisGrid=function(t){return this.isElementInThisGrid(t.target)},e.prototype.isElementInThisGrid=function(t){for(var e=t;e;){var n=e[o.GRID_DOM_KEY];if(h$(n))return n===this.gridInstanceId;e=e.parentElement}return!1},e.prototype.getCellPositionForEvent=function(t){var e=this.getRenderedCellForEvent(t);return e?e.getCellPosition():null},e.prototype.getNormalisedPosition=function(t){var e,o,n=this.gridOptionsService.isDomLayout("normal"),i=t;if(null!=i.clientX||null!=i.clientY?(e=i.clientX,o=i.clientY):(e=i.x,o=i.y),n){var r=this.ctrlsService.getGridBodyCtrl(),a=r.getScrollFeature().getVScrollPosition();e+=r.getScrollFeature().getHScrollPosition().left,o+=a.top}return{x:e,y:o}},e.gridInstanceSequence=new hZ,e.GRID_DOM_KEY="__ag_grid_instance",z2([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),o=z2([rY("mouseEventService")],e)}(qY),U2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$2=function(){return $2=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},K2=function(t){function e(){var e=t.call(this)||this;return e.onPageDown=Y$(e.onPageDown,100),e.onPageUp=Y$(e.onPageUp,100),e}return U2(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.handlePageScrollingKey=function(t,e){void 0===e&&(e=!1);var o=t.key,n=t.altKey,i=t.ctrlKey||t.metaKey,r=!!this.rangeService&&t.shiftKey,a=this.mouseEventService.getCellPositionForEvent(t),s=!1;switch(o){case Qq.PAGE_HOME:case Qq.PAGE_END:i||n||(this.onHomeOrEndKey(o),s=!0);break;case Qq.LEFT:case Qq.RIGHT:case Qq.UP:case Qq.DOWN:if(!a)return!1;!i||n||r||(this.onCtrlUpDownLeftRight(o,a),s=!0);break;case Qq.PAGE_DOWN:case Qq.PAGE_UP:i||n||(s=this.handlePageUpDown(o,a,e))}return s&&t.preventDefault(),s},e.prototype.handlePageUpDown=function(t,e,o){return o&&(e=this.focusService.getFocusedCell()),!!e&&(t===Qq.PAGE_UP?this.onPageUp(e):this.onPageDown(e),!0)},e.prototype.navigateTo=function(t){var e=t.scrollIndex,o=t.scrollType,n=t.scrollColumn,i=t.focusIndex,r=t.focusColumn;if(h$(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),h$(e)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(e,o),t.isAsync||this.gridBodyCon.getScrollFeature().ensureIndexVisible(i),this.focusService.setFocusedCell({rowIndex:i,column:r,rowPinned:null,forceBrowserFocus:!0}),this.rangeService){var a={rowIndex:i,rowPinned:null,column:r};this.rangeService.setRangeToCell(a)}},e.prototype.onPageDown=function(t){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.getViewportHeight(),n=this.paginationProxy.getPixelOffset(),i=e.top+o,r=this.paginationProxy.getRowIndexAtPixel(i+n);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,r):this.navigateToNextPage(t,r)},e.prototype.onPageUp=function(t){var e=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),o=this.paginationProxy.getPixelOffset(),n=e.top,i=this.paginationProxy.getRowIndexAtPixel(n+o);this.columnModel.isAutoRowHeightActive()?this.navigateToNextPageWithAutoHeight(t,i,!0):this.navigateToNextPage(t,i,!0)},e.prototype.navigateToNextPage=function(t,e,o){void 0===o&&(o=!1);var n,i=this.getViewportHeight(),r=this.paginationProxy.getPageFirstRow(),a=this.paginationProxy.getPageLastRow(),s=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(t.rowIndex),u=o?(null==l?void 0:l.rowHeight)-i-s:i-s,c=(null==l?void 0:l.rowTop)+u,p=this.paginationProxy.getRowIndexAtPixel(c+s);if(p===t.rowIndex){var d=o?-1:1;e=p=t.rowIndex+d}o?(n="bottom",pa&&(p=a),e>a&&(e=a)),this.isRowTallerThanView(p)&&(e=p,n="top"),this.navigateTo({scrollIndex:e,scrollType:n,scrollColumn:null,focusIndex:p,focusColumn:t.column})},e.prototype.navigateToNextPageWithAutoHeight=function(t,e,o){var n=this;void 0===o&&(o=!1),this.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:e,focusColumn:t.column}),setTimeout((function(){var i=n.getNextFocusIndexForAutoHeight(t,o);n.navigateTo({scrollIndex:e,scrollType:o?"bottom":"top",scrollColumn:null,focusIndex:i,focusColumn:t.column,isAsync:!0})}),50)},e.prototype.getNextFocusIndexForAutoHeight=function(t,e){var o;void 0===e&&(e=!1);for(var n=e?-1:1,i=this.getViewportHeight(),r=this.paginationProxy.getPageLastRow(),a=0,s=t.rowIndex;s>=0&&s<=r;){var l=this.paginationProxy.getRow(s);if(l){var u=null!==(o=l.rowHeight)&&void 0!==o?o:0;if(a+u>i)break;a+=u}s+=n}return Math.max(0,Math.min(s,r))},e.prototype.getViewportHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition(),e=this.gridOptionsService.getScrollbarWidth(),o=t.bottom-t.top;return this.ctrlsService.getCenterRowContainerCtrl().isHorizontalScrollShowing()&&(o-=e),o},e.prototype.isRowTallerThanView=function(t){var e=this.paginationProxy.getRow(t);if(!e)return!1;var o=e.rowHeight;return"number"==typeof o&&o>this.getViewportHeight()},e.prototype.onCtrlUpDownLeftRight=function(t,e){var o=this.cellNavigationService.getNextCellToFocus(t,e,!0),n=o.rowIndex,i=o.column;this.navigateTo({scrollIndex:n,scrollType:null,scrollColumn:i,focusIndex:n,focusColumn:i})},e.prototype.onHomeOrEndKey=function(t){var e=t===Qq.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),n=e?o[0]:_Y(o),i=e?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow();this.navigateTo({scrollIndex:i,scrollType:null,scrollColumn:n,focusIndex:i,focusColumn:n})},e.prototype.onTabKeyDown=function(t,e){var o=e.shiftKey;if(this.tabToNextCellCommon(t,o,e))e.preventDefault();else if(o){var n=t.getRowPosition(),i=n.rowIndex;(n.rowPinned?0===i:i===this.paginationProxy.getPageFirstRow())&&(0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusNextGridCoreContainer(!0,!0):(e.preventDefault(),this.focusService.focusPreviousFromFirstCell(e)))}else t instanceof Q1&&t.focusCell(!0),this.focusService.focusNextGridCoreContainer(o)&&e.preventDefault()},e.prototype.tabToNextCell=function(t,e){var o=this.focusService.getFocusedCell();if(!o)return!1;var n=this.getCellByPosition(o);return!!(n||(n=this.rowRenderer.getRowByPosition(o))&&n.isFullWidth())&&this.tabToNextCellCommon(n,t,e)},e.prototype.tabToNextCellCommon=function(t,e,o){var n=t.isEditing();if(!n&&t instanceof Q1){var i=t.getRowCtrl();i&&(n=i.isEditing())}return(n?"fullRow"===this.gridOptionsService.get("editType")?this.moveToNextEditingRow(t,e,o):this.moveToNextEditingCell(t,e,o):this.moveToNextCellNotEditing(t,e))||!!this.focusService.getFocusedHeader()},e.prototype.moveToNextEditingCell=function(t,e,o){void 0===o&&(o=null);var n=t.getCellPosition();t.getGui().focus(),t.stopEditing();var i=this.findNextCellToFocusOn(n,e,!0);return null!=i&&(i.startEditing(null,!0,o),i.focusCell(!1),!0)},e.prototype.moveToNextEditingRow=function(t,e,o){void 0===o&&(o=null);var n=t.getCellPosition(),i=this.findNextCellToFocusOn(n,e,!0);if(null==i)return!1;var r=i.getCellPosition(),a=this.isCellEditable(n),s=this.isCellEditable(r),l=r&&n.rowIndex===r.rowIndex&&n.rowPinned===r.rowPinned;return a&&t.setFocusOutOnEditor(),l||(t.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,o)),s?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0},e.prototype.moveToNextCellNotEditing=function(t,e){var o,n=this.columnModel.getAllDisplayedColumns();o=t instanceof r2?$2($2({},t.getRowPosition()),{column:e?n[0]:_Y(n)}):t.getCellPosition();var i=this.findNextCellToFocusOn(o,e,!1);if(i instanceof Q1)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),e);return h$(i)},e.prototype.findNextCellToFocusOn=function(t,e,o){for(var n=t;;){t!==n&&(t=n),e||(n=this.getLastCellOfColSpan(n)),n=this.cellNavigationService.getNextTabbedCell(n,e);var i=this.gridOptionsService.getCallback("tabToNextCell");if(h$(i)){var r=i({backwards:e,editing:o,previousCellPosition:t,nextCellPosition:n||null});h$(r)?(r.floating&&(G$((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),r.rowPinned=r.floating),n={rowIndex:r.rowIndex,column:r.column,rowPinned:r.rowPinned}):n=null}if(!n)return null;if(n.rowIndex<0){var a=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a+n.rowIndex,column:n.column},fromCell:!0}),null}var s="fullRow"===this.gridOptionsService.get("editType");if(!o||s||this.isCellEditable(n)){this.ensureCellVisible(n);var l=this.getCellByPosition(n);if(!l){var u=this.rowRenderer.getRowByPosition(n);if(!u||!u.isFullWidth()||o)continue;return u}if(!l.isSuppressNavigable())return this.rangeService&&this.rangeService.setRangeToCell(n),l}}},e.prototype.isCellEditable=function(t){var e=this.lookupRowNodeForCell(t);return!!e&&t.column.isCellEditable(e)},e.prototype.getCellByPosition=function(t){var e=this.rowRenderer.getRowByPosition(t);return e?e.getCellCtrl(t.column):null},e.prototype.lookupRowNodeForCell=function(t){return"top"===t.rowPinned?this.pinnedRowModel.getPinnedTopRow(t.rowIndex):"bottom"===t.rowPinned?this.pinnedRowModel.getPinnedBottomRow(t.rowIndex):this.paginationProxy.getRow(t.rowIndex)},e.prototype.navigateToNextCell=function(t,e,o,n){for(var i=o,r=!1;i&&(i===o||!this.isValidNavigateCell(i));)this.gridOptionsService.is("enableRtl")?e===Qq.LEFT&&(i=this.getLastCellOfColSpan(i)):e===Qq.RIGHT&&(i=this.getLastCellOfColSpan(i)),r=f$(i=this.cellNavigationService.getNextCellToFocus(e,i));if(r&&t&&t.key===Qq.UP&&(i={rowIndex:-1,rowPinned:null,column:o.column}),n){var a=this.gridOptionsService.getCallback("navigateToNextCell");if(h$(a)){var s=a({key:e,previousCellPosition:o,nextCellPosition:i||null,event:t});h$(s)?(s.floating&&(G$((function(){console.warn("AG Grid: tabToNextCellFunc return type should have attributes: rowIndex, rowPinned, column. However you had 'floating', maybe you meant 'rowPinned'?")}),"no floating in userCell"),s.rowPinned=s.floating),i={rowPinned:s.rowPinned,rowIndex:s.rowIndex,column:s.column}):i=null}}if(i)if(i.rowIndex<0){var l=this.headerNavigationService.getHeaderRowCount();this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:l+i.rowIndex,column:o.column},event:t||void 0,fromCell:!0})}else{var u=this.getNormalisedPosition(i);u?this.focusPosition(u):this.tryToFocusFullWidthRow(i)}},e.prototype.getNormalisedPosition=function(t){this.ensureCellVisible(t);var e=this.getCellByPosition(t);return e?(t=e.getCellPosition(),this.ensureCellVisible(t),t):null},e.prototype.tryToFocusFullWidthRow=function(t,e){void 0===e&&(e=!1);var o=this.columnModel.getAllDisplayedColumns(),n=this.rowRenderer.getRowByPosition(t);if(!n||!n.isFullWidth())return!1;var i=this.focusService.getFocusedCell(),r={rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:t.column||(e?_Y(o):o[0])};this.focusPosition(r);var a=null!=i&&this.rowPositionUtils.before(r,i),s={type:eK.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:r.column,isFullWidthCell:!0,floating:r.rowPinned,fromBelow:a};return this.eventService.dispatchEvent(s),!0},e.prototype.focusPosition=function(t){this.focusService.setFocusedCell({rowIndex:t.rowIndex,column:t.column,rowPinned:t.rowPinned,forceBrowserFocus:!0}),this.rangeService&&this.rangeService.setRangeToCell(t)},e.prototype.isValidNavigateCell=function(t){return!!this.rowPositionUtils.getRowNode(t)},e.prototype.getLastCellOfColSpan=function(t){var e=this.getCellByPosition(t);if(!e)return t;var o=e.getColSpanningList();return 1===o.length?t:{rowIndex:t.rowIndex,column:_Y(o),rowPinned:t.rowPinned}},e.prototype.ensureCellVisible=function(t){var e=this.gridOptionsService.isGroupRowsSticky(),o=this.rowModel.getRow(t.rowIndex);!(e&&(null==o?void 0:o.sticky))&&f$(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},Y2([aY("mouseEventService")],e.prototype,"mouseEventService",void 0),Y2([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),Y2([aY("focusService")],e.prototype,"focusService",void 0),Y2([sY("rangeService")],e.prototype,"rangeService",void 0),Y2([aY("columnModel")],e.prototype,"columnModel",void 0),Y2([aY("rowModel")],e.prototype,"rowModel",void 0),Y2([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),Y2([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),Y2([aY("headerNavigationService")],e.prototype,"headerNavigationService",void 0),Y2([aY("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Y2([aY("cellNavigationService")],e.prototype,"cellNavigationService",void 0),Y2([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Y2([nY],e.prototype,"postConstruct",null),Y2([rY("navigationService")],e)}(qY),X2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),q2=function(t){function e(e){var o=t.call(this,'
')||this;return o.params=e,o}return X2(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.setDomData(this.getGui(),e.DOM_KEY_POPUP_EDITOR_WRAPPER,!0),this.addKeyDownListener()},e.prototype.addKeyDownListener=function(){var t=this,e=this.getGui(),o=this.params;this.addManagedListener(e,"keydown",(function(e){tZ(t.gridOptionsService,e,o.node,o.column,!0)||o.onKeyDown(e)}))},e.DOM_KEY_POPUP_EDITOR_WRAPPER="popupEditorWrapper",function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(uJ),Z2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),Q2=function(t){function e(e,o,n,i,r){var a=t.call(this)||this;a.rendererVersion=0,a.editorVersion=0,a.beans=e,a.column=o.getColumn(),a.rowNode=o.getRowNode(),a.rowCtrl=o.getRowCtrl(),a.eRow=i,a.cellCtrl=o,a.setTemplate('
');var s=a.getGui();a.forceWrapper=o.isForceWrapper(),a.refreshWrapper(!1);var l=function(t,e){null!=e&&""!=e?s.setAttribute(t,e):s.removeAttribute(t)};ZK(s,"gridcell"),l("col-id",o.getColumnIdSanitised());var u=o.getTabIndex();void 0!==u&&l("tabindex",u.toString());var c={addOrRemoveCssClass:function(t,e){return a.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Lq(s,t)},getFocusableElement:function(){return a.getFocusableElement()},setIncludeSelection:function(t){return a.includeSelection=t},setIncludeRowDrag:function(t){return a.includeRowDrag=t},setIncludeDndSource:function(t){return a.includeDndSource=t},setRenderDetails:function(t,e,o){return a.setRenderDetails(t,e,o)},setEditDetails:function(t,e,o){return a.setEditDetails(t,e,o)},getCellEditor:function(){return a.cellEditor||null},getCellRenderer:function(){return a.cellRenderer||null},getParentOfValue:function(){return a.getParentOfValue()}};return o.setComp(c,a.getGui(),a.eCellWrapper,n,r),a}return Z2(e,t),e.prototype.getParentOfValue=function(){return this.eCellValue?this.eCellValue:this.eCellWrapper?this.eCellWrapper:this.getGui()},e.prototype.setRenderDetails=function(t,e,o){if(!this.cellEditor||this.cellEditorPopupWrapper){this.firstRender=null==this.firstRender;var n=this.refreshWrapper(!1);this.refreshEditStyles(!1),t?!o&&!n&&this.refreshCellRenderer(t)||(this.destroyRenderer(),this.createCellRendererInstance(t)):(this.destroyRenderer(),this.insertValueWithoutCellRenderer(e))}},e.prototype.setEditDetails=function(t,e,o){t?this.createCellEditorInstance(t,e,o):this.destroyEditor()},e.prototype.removeControls=function(){this.checkboxSelectionComp=this.beans.context.destroyBean(this.checkboxSelectionComp),this.dndSourceComp=this.beans.context.destroyBean(this.dndSourceComp),this.rowDraggingComp=this.beans.context.destroyBean(this.rowDraggingComp)},e.prototype.refreshWrapper=function(t){var e=this.includeRowDrag||this.includeDndSource||this.includeSelection,o=e||this.forceWrapper,n=o&&null==this.eCellWrapper;n&&(this.eCellWrapper=Rq(''),this.getGui().appendChild(this.eCellWrapper));var i=!o&&null!=this.eCellWrapper;i&&(Tq(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var r=!t&&o,a=r&&null==this.eCellValue;a&&(this.eCellValue=Rq(''),this.eCellWrapper.appendChild(this.eCellValue));var s=!r&&null!=this.eCellValue;s&&(Tq(this.eCellValue),this.eCellValue=void 0);var l=n||i||a||s;return l&&this.removeControls(),t||e&&this.addControls(),l},e.prototype.addControls=function(){this.includeRowDrag&&null==this.rowDraggingComp&&(this.rowDraggingComp=this.cellCtrl.createRowDragComp(),this.rowDraggingComp&&this.eCellWrapper.insertBefore(this.rowDraggingComp.getGui(),this.eCellValue)),this.includeDndSource&&null==this.dndSourceComp&&(this.dndSourceComp=this.cellCtrl.createDndSource(),this.eCellWrapper.insertBefore(this.dndSourceComp.getGui(),this.eCellValue)),this.includeSelection&&null==this.checkboxSelectionComp&&(this.checkboxSelectionComp=this.cellCtrl.createSelectionCheckbox(),this.eCellWrapper.insertBefore(this.checkboxSelectionComp.getGui(),this.eCellValue))},e.prototype.createCellEditorInstance=function(t,e,o){var n=this,i=this.editorVersion,r=t.newAgStackInstance();if(r){var a=t.params;r.then((function(t){return n.afterCellEditorCreated(i,t,a,e,o)})),f$(this.cellEditor)&&a.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},e.prototype.insertValueWithoutCellRenderer=function(t){var e=this.getParentOfValue();Eq(e);var o=null!=t?uK(t):null;null!=o&&(e.innerHTML=o)},e.prototype.destroyEditorAndRenderer=function(){this.destroyRenderer(),this.destroyEditor()},e.prototype.destroyRenderer=function(){var t=this.beans.context;this.cellRenderer=t.destroyBean(this.cellRenderer),Tq(this.cellRendererGui),this.cellRendererGui=null,this.rendererVersion++},e.prototype.destroyEditor=function(){var t=this.beans.context;this.hideEditorPopup&&this.hideEditorPopup(),this.hideEditorPopup=void 0,this.cellEditor=t.destroyBean(this.cellEditor),this.cellEditorPopupWrapper=t.destroyBean(this.cellEditorPopupWrapper),Tq(this.cellEditorGui),this.cellEditorGui=null,this.editorVersion++},e.prototype.refreshCellRenderer=function(t){if(null==this.cellRenderer||null==this.cellRenderer.refresh)return!1;if(this.cellRendererClass!==t.componentClass)return!1;var e=this.cellRenderer.refresh(t.params);return!0===e||void 0===e},e.prototype.createCellRendererInstance=function(t){var e=this,o=!this.beans.gridOptionsService.is("suppressAnimationFrame"),n=this.rendererVersion,i=t.componentClass,r=function(){if(e.rendererVersion===n&&e.isAlive()){var o=t.newAgStackInstance(),r=e.afterCellRendererCreated.bind(e,n,i);o&&o.then(r)}};o&&this.firstRender?this.beans.animationFrameService.createTask(r,this.rowNode.rowIndex,"createTasksP2"):r()},e.prototype.getCtrl=function(){return this.cellCtrl},e.prototype.getRowCtrl=function(){return this.rowCtrl},e.prototype.getCellRenderer=function(){return this.cellRenderer},e.prototype.getCellEditor=function(){return this.cellEditor},e.prototype.afterCellRendererCreated=function(t,e,o){if(this.isAlive()&&t===this.rendererVersion){if(this.cellRenderer=o,this.cellRendererClass=e,this.cellRendererGui=this.cellRenderer.getGui(),null!=this.cellRendererGui){var n=this.getParentOfValue();Eq(n),n.appendChild(this.cellRendererGui)}}else this.beans.context.destroyBean(o)},e.prototype.afterCellEditorCreated=function(t,e,o,n,i){if(t!==this.editorVersion)this.beans.context.destroyBean(e);else{if(e.isCancelBeforeStart&&e.isCancelBeforeStart())return this.beans.context.destroyBean(e),void this.cellCtrl.stopEditing(!0);if(!e.getGui)return console.warn("AG Grid: cellEditor for column "+this.column.getId()+" is missing getGui() method"),void this.beans.context.destroyBean(e);this.cellEditor=e,this.cellEditorGui=e.getGui();var r=n||void 0!==e.isPopup&&e.isPopup();r?this.addPopupCellEditor(o,i):this.addInCellEditor(),this.refreshEditStyles(!0,r),e.afterGuiAttached&&e.afterGuiAttached()}},e.prototype.refreshEditStyles=function(t,e){var o;this.addOrRemoveCssClass("ag-cell-inline-editing",t&&!e),this.addOrRemoveCssClass("ag-cell-popup-editing",t&&!!e),this.addOrRemoveCssClass("ag-cell-not-inline-editing",!t||!!e),null===(o=this.rowCtrl)||void 0===o||o.setInlineEditingCss(t)},e.prototype.addInCellEditor=function(){var t=this.getGui(),e=this.beans.gridOptionsService.getDocument();t.contains(e.activeElement)&&t.focus(),this.destroyRenderer(),this.refreshWrapper(!0),this.clearParentOfValue(),this.cellEditorGui&&this.getParentOfValue().appendChild(this.cellEditorGui)},e.prototype.addPopupCellEditor=function(t,e){var o=this;"fullRow"===this.beans.gridOptionsService.get("editType")&&console.warn("AG Grid: popup cellEditor does not work with fullRowEdit - you cannot use them both - either turn off fullRowEdit, or stop using popup editors.");var n=this.cellEditor;this.cellEditorPopupWrapper=this.beans.context.createBean(new q2(t));var i=this.cellEditorPopupWrapper.getGui();this.cellEditorGui&&i.appendChild(this.cellEditorGui);var r=this.beans.popupService,a=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),s=null!=e?e:n.getPopupPosition?n.getPopupPosition():"over",l=this.beans.gridOptionsService.is("enableRtl"),u={ePopup:i,column:this.column,rowNode:this.rowNode,type:"popupCellEditor",eventSource:this.getGui(),position:s,alignSide:l?"right":"left",keepWithinBounds:!0},c=r.positionPopupByComponent.bind(r,u),p=this.beans.localeService.getLocaleTextFunc(),d=r.addPopup({modal:a,eChild:i,closeOnEsc:!0,closedCallback:function(){o.cellCtrl.onPopupEditorClosed()},anchorToElement:this.getGui(),positionCallback:c,ariaLabel:p("ariaLabelCellEditor","Cell Editor")});d&&(this.hideEditorPopup=d.hideFunc)},e.prototype.detach=function(){this.eRow.removeChild(this.getGui())},e.prototype.destroy=function(){this.cellCtrl.stopEditing(),this.destroyEditorAndRenderer(),this.removeControls(),t.prototype.destroy.call(this)},e.prototype.clearParentOfValue=function(){var t=this.getGui(),e=this.beans.gridOptionsService.getDocument();t.contains(e.activeElement)&&BX()&&t.focus({preventScroll:!0}),Eq(this.getParentOfValue())},e}(EZ),J2=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),t3=function(t){function e(e,o,n){var i=t.call(this)||this;i.cellComps={},i.beans=o,i.rowCtrl=e,i.setTemplate('
');var r=i.getGui(),a=r.style;i.domOrder=i.rowCtrl.getDomOrder(),ZK(r,"row");var s=i.rowCtrl.getTabIndex();null!=s&&r.setAttribute("tabindex",s.toString());var l={setDomOrder:function(t){return i.domOrder=t},setCellCtrls:function(t){return i.setCellCtrls(t)},showFullWidth:function(t){return i.showFullWidth(t)},getFullWidthCellRenderer:function(){return i.getFullWidthCellRenderer()},addOrRemoveCssClass:function(t,e){return i.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return Lq(r,t)},setTop:function(t){return a.top=t},setTransform:function(t){return a.transform=t},setRowIndex:function(t){return r.setAttribute("row-index",t)},setRowId:function(t){return r.setAttribute("row-id",t)},setRowBusinessKey:function(t){return r.setAttribute("row-business-key",t)}};return e.setComp(l,i.getGui(),n),i.addDestroyFunc((function(){e.unsetComp(n)})),i}return J2(e,t),e.prototype.getInitialStyle=function(t){var e=this.rowCtrl.getInitialTransform(t),o=this.rowCtrl.getInitialRowTop(t);return e?"transform: "+e:"top: "+o},e.prototype.showFullWidth=function(t){var e=this,o=t.newAgStackInstance();o&&o.then((function(t){if(e.isAlive()){var o=t.getGui();e.getGui().appendChild(o),e.rowCtrl.setupDetailRowAutoHeight(o),e.setFullWidthRowComp(t)}else e.beans.context.destroyBean(t)}))},e.prototype.setCellCtrls=function(t){var e=this,o=Object.assign({},this.cellComps);t.forEach((function(t){var n=t.getInstanceId();null==e.cellComps[n]?e.newCellComp(t):o[n]=null}));var n=A$(o).filter((function(t){return null!=t}));this.destroyCells(n),this.ensureDomOrder(t)},e.prototype.ensureDomOrder=function(t){var e=this;if(this.domOrder){var o=[];t.forEach((function(t){var n=e.cellComps[t.getInstanceId()];n&&o.push(n.getGui())})),Iq(this.getGui(),o)}},e.prototype.newCellComp=function(t){var e=new Q2(this.beans,t,this.rowCtrl.isPrintLayout(),this.getGui(),this.rowCtrl.isEditing());this.cellComps[t.getInstanceId()]=e,this.getGui().appendChild(e.getGui())},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.destroyAllCells()},e.prototype.destroyAllCells=function(){var t=A$(this.cellComps).filter((function(t){return null!=t}));this.destroyCells(t)},e.prototype.setFullWidthRowComp=function(t){var e=this;this.fullWidthCellRenderer&&console.error("AG Grid - should not be setting fullWidthRowComponent twice"),this.fullWidthCellRenderer=t,this.addDestroyFunc((function(){e.fullWidthCellRenderer=e.beans.context.destroyBean(e.fullWidthCellRenderer)}))},e.prototype.getFullWidthCellRenderer=function(){return this.fullWidthCellRenderer},e.prototype.destroyCells=function(t){var e=this;t.forEach((function(t){if(t){var o=t.getCtrl().getInstanceId();e.cellComps[o]===t&&(t.detach(),t.destroy(),e.cellComps[o]=null)}}))},e}(EZ),e3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),o3=function(){return o3=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},i3=function(t){function e(){var e,o,n=t.call(this,(e=EZ.elementGettingCreated.getAttribute("name"),o=L2.getRowContainerCssClasses(e),e===o2.CENTER||e===o2.TOP_CENTER||e===o2.STICKY_TOP_CENTER||e===o2.BOTTOM_CENTER?'':'
'))||this;return n.rowComps={},n.name=EZ.elementGettingCreated.getAttribute("name"),n.type=function(t){switch(t){case o2.CENTER:case o2.TOP_CENTER:case o2.STICKY_TOP_CENTER:case o2.BOTTOM_CENTER:return n2.CENTER;case o2.LEFT:case o2.TOP_LEFT:case o2.STICKY_TOP_LEFT:case o2.BOTTOM_LEFT:return n2.LEFT;case o2.RIGHT:case o2.TOP_RIGHT:case o2.STICKY_TOP_RIGHT:case o2.BOTTOM_RIGHT:return n2.RIGHT;case o2.FULL_WIDTH:case o2.TOP_FULL_WIDTH:case o2.STICKY_TOP_FULL_WIDTH:case o2.BOTTOM_FULL_WIDTH:return n2.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(n.name),n}return e3(e,t),e.prototype.postConstruct=function(){var t=this,e={setViewportHeight:function(e){return t.eViewport.style.height=e},setRowCtrls:function(e){return t.setRowCtrls(e)},setDomOrder:function(e){t.domOrder=e},setContainerWidth:function(e){return t.eContainer.style.width=e}};this.createManagedBean(new L2(this.name)).setComp(e,this.eContainer,this.eViewport)},e.prototype.preDestroy=function(){this.setRowCtrls([])},e.prototype.setRowCtrls=function(t){var e=this,o=o3({},this.rowComps);this.rowComps={},this.lastPlacedElement=null,t.forEach((function(t){var n=t.getInstanceId(),i=o[n];if(i)e.rowComps[n]=i,delete o[n],e.ensureDomOrder(i.getGui());else{if(!t.getRowNode().displayed)return;var r=new t3(t,e.beans,e.type);e.rowComps[n]=r,e.appendRow(r.getGui())}})),A$(o).forEach((function(t){e.eContainer.removeChild(t.getGui()),t.destroy()})),ZK(this.eContainer,t.length?"rowgroup":"presentation")},e.prototype.appendRow=function(t){this.domOrder?Pq(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},e.prototype.ensureDomOrder=function(t){this.domOrder&&(Aq(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},n3([aY("beans")],e.prototype,"beans",void 0),n3([TZ("eViewport")],e.prototype,"eViewport",void 0),n3([TZ("eContainer")],e.prototype,"eContainer",void 0),n3([nY],e.prototype,"postConstruct",null),n3([iY],e.prototype,"preDestroy",null),e}(EZ),r3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},a3=function(){function t(t){this.columnsToAggregate=[],this.columnsToGroup=[],this.columnsToPivot=[],this.pinned=t}return t.prototype.onDragEnter=function(t){var e=this;if(this.clearColumnsList(),!this.gridOptionsService.is("functionsReadOnly")){var o=t.dragItem.columns;o&&o.forEach((function(t){t.isPrimary()&&(t.isAnyFunctionActive()||(t.isAllowValue()?e.columnsToAggregate.push(t):t.isAllowRowGroup()?e.columnsToGroup.push(t):t.isAllowPivot()&&e.columnsToPivot.push(t)))}))}},t.prototype.getIconName=function(){return this.columnsToAggregate.length+this.columnsToGroup.length+this.columnsToPivot.length>0?this.pinned?LJ.ICON_PINNED:LJ.ICON_MOVE:null},t.prototype.onDragLeave=function(t){this.clearColumnsList()},t.prototype.clearColumnsList=function(){this.columnsToAggregate.length=0,this.columnsToGroup.length=0,this.columnsToPivot.length=0},t.prototype.onDragging=function(t){},t.prototype.onDragStop=function(t){this.columnsToAggregate.length>0&&this.columnModel.addValueColumns(this.columnsToAggregate,"toolPanelDragAndDrop"),this.columnsToGroup.length>0&&this.columnModel.addRowGroupColumns(this.columnsToGroup,"toolPanelDragAndDrop"),this.columnsToPivot.length>0&&this.columnModel.addPivotColumns(this.columnsToPivot,"toolPanelDragAndDrop")},r3([aY("columnModel")],t.prototype,"columnModel",void 0),r3([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),s3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},l3=function(){function t(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=e,this.centerContainer=!h$(t)}return t.prototype.init=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCon=t.ctrlsService.getGridBodyCtrl()}))},t.prototype.getIconName=function(){return this.pinned?LJ.ICON_PINNED:LJ.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===NQ.ToolPanel)this.setColumnsVisible(e,!0,"uiColumnDragged");else{var o=t.dragItem.visibleState,n=(e||[]).filter((function(t){return o[t.getId()]}));this.setColumnsVisible(n,!0,"uiColumnDragged")}this.setColumnsPinned(e,this.pinned,"uiColumnDragged"),this.onDragging(t,!0,!0)},t.prototype.onDragLeave=function(){this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.setColumnsVisible=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockVisible}));this.columnModel.setColumnsVisible(n,e,o)}},t.prototype.setColumnsPinned=function(t,e,o){if(void 0===o&&(o="api"),t){var n=t.filter((function(t){return!t.getColDef().lockPinned}));this.columnModel.setColumnsPinned(n,e,o)}},t.prototype.onDragStop=function(){this.onDragging(this.lastDraggingEvent,!1,!0,!0),this.ensureIntervalCleared(),this.lastMovedInfo=null},t.prototype.normaliseX=function(t){return this.gridOptionsService.is("enableRtl")&&(t=this.eContainer.clientWidth-t),this.centerContainer&&(t+=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft()),t},t.prototype.checkCenterForScrolling=function(t){if(this.centerContainer){var e=this.ctrlsService.getCenterRowContainerCtrl().getCenterViewportScrollLeft(),o=e+this.ctrlsService.getCenterRowContainerCtrl().getCenterWidth();this.gridOptionsService.is("enableRtl")?(this.needToMoveRight=to-50):(this.needToMoveLeft=to-50),this.needToMoveLeft||this.needToMoveRight?this.ensureIntervalStarted():this.ensureIntervalCleared()}},t.prototype.onDragging=function(t,e,o,n){var i,r=this;if(void 0===t&&(t=this.lastDraggingEvent),void 0===e&&(e=!1),void 0===o&&(o=!1),void 0===n&&(n=!1),n){if(this.lastMovedInfo){var a=this.lastMovedInfo,s=a.columns,l=a.toIndex;this.moveColumns(s,l,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=t,!f$(t.hDirection)){var u=this.normaliseX(t.x);e||this.checkCenterForScrolling(u);var c=this.normaliseDirection(t.hDirection),p=t.dragSource.type,d=(null===(i=t.dragSource.getDragItem().columns)||void 0===i?void 0:i.filter((function(t){return!t.getColDef().lockPinned||t.getPinned()==r.pinned})))||[];this.attemptMoveColumns({dragSourceType:p,allMovingColumns:d,hDirection:c,mouseX:u,fromEnter:e,fakeEvent:o})}},t.prototype.normaliseDirection=function(t){if(!this.gridOptionsService.is("enableRtl"))return t;switch(t){case kQ.Left:return kQ.Right;case kQ.Right:return kQ.Left;default:console.error("AG Grid: Unknown direction "+t)}},t.prototype.attemptMoveColumns=function(t){var e=t.dragSourceType,o=t.hDirection,n=t.mouseX,i=t.fromEnter,r=t.fakeEvent,a=o===kQ.Left,s=o===kQ.Right,l=t.allMovingColumns;if(e===NQ.HeaderCell){var u=[];l.forEach((function(t){for(var e,o=null,n=t.getParent();null!=n&&1===n.getDisplayedLeafColumns().length;)o=n,n=n.getParent();null!=o?((null===(e=o.getColGroupDef())||void 0===e?void 0:e.marryChildren)?o.getProvidedColumnGroup().getLeafColumns():o.getLeafColumns()).forEach((function(t){u.includes(t)||u.push(t)})):u.includes(t)||u.push(t)})),l=u}var c=l.slice();this.columnModel.sortColumnsLikeGridColumns(c);var p=this.calculateValidMoves(c,s,n),d=this.calculateOldIndex(c);if(0!==p.length){var h=p[0],f=null!==d&&!i;if(e==NQ.HeaderCell&&(f=null!==d),f&&!r){if(a&&h>=d)return;if(s&&h<=d)return}for(var g=this.columnModel.getAllDisplayedColumns(),v=[],y=null,m=0;m0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(r.length>a.length?[r,a]:[a,r],2))[0],a=i[1],r.forEach((function(t){-1===a.indexOf(t)&&o++}))},i=0;i0){for(var d=0;d0){var h=s[u-1];n=l.indexOf(h)+1}else-1===(n=l.indexOf(s[0]))&&(n=0);var f=[n],g=function(t,e){return t-e};if(e){for(var v=n+1,y=r.length-1;v<=y;)f.push(v),v++;f.sort(g)}else{v=n,y=r.length-1;for(var m=r[v];v<=y&&this.isColumnHidden(i,m);)v++,f.push(v),m=r[v];for(v=n-1;v>=0;)f.push(v),v--;f.sort(g).reverse()}return f},t.prototype.isColumnHidden=function(t,e){return t.indexOf(e)<0},t.prototype.ensureIntervalStarted=function(){this.movingIntervalId||(this.intervalCount=0,this.failedMoveAttempts=0,this.movingIntervalId=window.setInterval(this.moveInterval.bind(this),100),this.needToMoveLeft?this.dragAndDropService.setGhostIcon(LJ.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(LJ.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(LJ.ICON_MOVE))},t.prototype.moveInterval=function(){var t;this.intervalCount++,(t=10+5*this.intervalCount)>100&&(t=100);var e=null,o=this.gridBodyCon.getScrollFeature();if(this.needToMoveLeft?e=o.scrollHorizontally(-t):this.needToMoveRight&&(e=o.scrollHorizontally(t)),0!==e)this.onDragging(this.lastDraggingEvent),this.failedMoveAttempts=0;else{this.failedMoveAttempts++;var n=this.lastDraggingEvent.dragItem.columns.filter((function(t){return!t.getColDef().lockPinned}));if(n.length>0&&(this.dragAndDropService.setGhostIcon(LJ.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(n,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},s3([aY("columnModel")],t.prototype,"columnModel",void 0),s3([aY("dragAndDropService")],t.prototype,"dragAndDropService",void 0),s3([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),s3([aY("ctrlsService")],t.prototype,"ctrlsService",void 0),s3([nY],t.prototype,"init",null),t}(),u3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),c3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},p3=function(t){function e(e,o){var n=t.call(this)||this;return n.pinned=e,n.eContainer=o,n}return u3(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){switch(t.pinned){case"left":t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.leftRowContainerCtrl.getContainerElement()],[e.bottomLeftRowContainerCtrl.getContainerElement()],[e.topLeftRowContainerCtrl.getContainerElement()]];break;case"right":t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.rightRowContainerCtrl.getContainerElement()],[e.bottomRightRowContainerCtrl.getContainerElement()],[e.topRightRowContainerCtrl.getContainerElement()]];break;default:t.eSecondaryContainers=[[e.gridBodyCtrl.getBodyViewportElement(),e.centerRowContainerCtrl.getViewportElement()],[e.bottomCenterRowContainerCtrl.getViewportElement()],[e.topCenterRowContainerCtrl.getViewportElement()]]}}))},e.prototype.isInterestedIn=function(t){return t===NQ.HeaderCell||t===NQ.ToolPanel&&this.gridOptionsService.is("allowDragFromColumnsToolPanel")},e.prototype.getSecondaryContainers=function(){return this.eSecondaryContainers},e.prototype.getContainer=function(){return this.eContainer},e.prototype.init=function(){this.moveColumnFeature=this.createManagedBean(new l3(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new a3(this.pinned)),this.dragAndDropService.addDropTarget(this)},e.prototype.getIconName=function(){return this.currentDropListener.getIconName()},e.prototype.isDropColumnInPivotMode=function(t){return this.columnModel.isPivotMode()&&t.dragSource.type===NQ.ToolPanel},e.prototype.onDragEnter=function(t){this.currentDropListener=this.isDropColumnInPivotMode(t)?this.bodyDropPivotTarget:this.moveColumnFeature,this.currentDropListener.onDragEnter(t)},e.prototype.onDragLeave=function(t){this.currentDropListener.onDragLeave(t)},e.prototype.onDragging=function(t){this.currentDropListener.onDragging(t)},e.prototype.onDragStop=function(t){this.currentDropListener.onDragStop(t)},c3([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),c3([aY("columnModel")],e.prototype,"columnModel",void 0),c3([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),c3([nY],e.prototype,"postConstruct",null),c3([nY],e.prototype,"init",null),e}(qY),d3=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,e,o,n){return f$(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,o,n)},t.getToolPanelClassesFromColDef=function(t,e,o,n){return f$(t)?[]:this.getColumnClassesFromCollDef(t.toolPanelClass,t,e,o,n)},t.getClassParams=function(t,e,o,n){return{colDef:t,column:o,columnGroup:n,api:e.api,columnApi:e.columnApi,context:e.context}},t.getColumnClassesFromCollDef=function(t,e,o,n,i){return f$(t)?[]:"string"==typeof(r="function"==typeof t?t(this.getClassParams(e,o,n,i)):t)?[r]:Array.isArray(r)?function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(r)):[];var r},t}(),h3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),f3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},g3=function(t){function e(o){var n=t.call(this,e.TEMPLATE,o)||this;return n.headerCompVersion=0,n.column=o.getColumnGroupChild(),n.pinned=o.getPinned(),n}return h3(e,t),e.prototype.postConstruct=function(){var t,e,o=this,n=this.getGui();t="col-id",null!=(e=this.column.getColId())&&""!=e?n.setAttribute(t,e):n.removeAttribute(t);var i={setWidth:function(t){return n.style.width=t},addOrRemoveCssClass:function(t,e){return o.addOrRemoveCssClass(t,e)},setAriaDescription:function(t){return nX(n,t)},setAriaSort:function(t){return t?wX(n,t):SX(n)},setUserCompDetails:function(t){return o.setUserCompDetails(t)},getUserCompInstance:function(){return o.headerComp}};this.ctrl.setComp(i,this.getGui(),this.eResize,this.eHeaderCompWrapper);var r=this.ctrl.getSelectAllGui();this.eResize.insertAdjacentElement("afterend",r)},e.prototype.destroyHeaderComp=function(){this.headerComp&&(this.eHeaderCompWrapper.removeChild(this.headerCompGui),this.headerComp=this.destroyBean(this.headerComp),this.headerCompGui=void 0)},e.prototype.setUserCompDetails=function(t){var e=this;this.headerCompVersion++;var o=this.headerCompVersion;t.newAgStackInstance().then((function(t){return e.afterCompCreated(o,t)}))},e.prototype.afterCompCreated=function(t,e){t==this.headerCompVersion&&this.isAlive()?(this.destroyHeaderComp(),this.headerComp=e,this.headerCompGui=e.getGui(),this.eHeaderCompWrapper.appendChild(this.headerCompGui),this.ctrl.setDragSource(this.getGui())):this.destroyBean(e)},e.TEMPLATE='
\n \n \n
',f3([TZ("eResize")],e.prototype,"eResize",void 0),f3([TZ("eHeaderCompWrapper")],e.prototype,"eHeaderCompWrapper",void 0),f3([nY],e.prototype,"postConstruct",null),f3([iY],e.prototype,"destroyHeaderComp",null),e}(u1),v3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),y3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},m3=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return v3(e,t),e.prototype.postConstruct=function(){var t=this,e=this.getGui();e.setAttribute("col-id",this.ctrl.getColId());var o={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setResizableDisplayed:function(e){return dq(t.eResize,e)},setWidth:function(t){return e.style.width=t},setAriaExpanded:function(t){return o="aria-expanded",null!=(n=t)?e.setAttribute(o,n):e.removeAttribute(o);var o,n},setUserCompDetails:function(e){return t.setUserCompDetails(e)}};this.ctrl.setComp(o,e,this.eResize)},e.prototype.setUserCompDetails=function(t){var e=this;t.newAgStackInstance().then((function(t){return e.afterHeaderCompCreated(t)}))},e.prototype.afterHeaderCompCreated=function(t){var e=this,o=function(){return e.destroyBean(t)};if(this.isAlive()){var n=this.getGui(),i=t.getGui();n.appendChild(i),this.addDestroyFunc(o),this.ctrl.setDragSource(n)}else o()},e.TEMPLATE='
\n \n
',y3([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),y3([TZ("eResize")],e.prototype,"eResize",void 0),y3([nY],e.prototype,"postConstruct",null),e}(u1),C3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),w3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(A2||(A2={}));var S3,b3=function(t){function e(e){var o=t.call(this)||this;return o.headerComps={},o.ctrl=e,o.setTemplate('
'),o}return C3(e,t),e.prototype.init=function(){var t=this;this.getGui().style.transform=this.ctrl.getTransform(),vX(this.getGui(),this.ctrl.getAriaRowIndex());var e={setHeight:function(e){return t.getGui().style.height=e},setTop:function(e){return t.getGui().style.top=e},setHeaderCtrls:function(e,o){return t.setHeaderCtrls(e,o)},setWidth:function(e){return t.getGui().style.width=e}};this.ctrl.setComp(e)},e.prototype.destroyHeaderCtrls=function(){this.setHeaderCtrls([],!1)},e.prototype.setHeaderCtrls=function(t,e){var o=this;if(this.isAlive()){var n=this.headerComps;if(this.headerComps={},t.forEach((function(t){var e=t.getInstanceId(),i=n[e];delete n[e],null==i&&(i=o.createHeaderComp(t),o.getGui().appendChild(i.getGui())),o.headerComps[e]=i})),x$(n,(function(t,e){o.getGui().removeChild(e.getGui()),o.destroyBean(e)})),e){var i=A$(this.headerComps);i.sort((function(t,e){return t.getCtrl().getColumnGroupChild().getLeft()-e.getCtrl().getColumnGroupChild().getLeft()}));var r=i.map((function(t){return t.getGui()}));Iq(this.getGui(),r)}}},e.prototype.createHeaderComp=function(t){var e;switch(this.ctrl.getType()){case A2.COLUMN_GROUP:e=new m3(t);break;case A2.FLOATING_FILTER:e=new d1(t);break;default:e=new g3(t)}return this.createBean(e),e.setParentComponent(this),e},w3([nY],e.prototype,"init",null),w3([iY],e.prototype,"destroyHeaderCtrls",null),e}(EZ),_3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),x3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},E3=0,T3=function(t){function e(e,o){var n=t.call(this)||this;return n.lastFocusEvent=null,n.columnGroupChild=e,n.parentRowCtrl=o,n.instanceId=e.getUniqueId()+"-"+E3++,n}return _3(e,t),e.prototype.shouldStopEventPropagation=function(t){var e=this.focusService.getFocusedHeader(),o=e.headerRowIndex,n=e.column;return eZ(this.gridOptionsService,t,o,n)},e.prototype.getWrapperHasFocus=function(){return this.gridOptionsService.getDocument().activeElement===this.eGui},e.prototype.setGui=function(t){this.eGui=t,this.addDomData()},e.prototype.handleKeyDown=function(t){var e=this.getWrapperHasFocus();switch(t.key){case Qq.PAGE_DOWN:case Qq.PAGE_UP:case Qq.PAGE_HOME:case Qq.PAGE_END:e&&t.preventDefault()}},e.prototype.addDomData=function(){var t=this,o=e.DOM_DATA_KEY_HEADER_CTRL;this.gridOptionsService.setDomData(this.eGui,o,this),this.addDestroyFunc((function(){return t.gridOptionsService.setDomData(t.eGui,o,null)}))},e.prototype.getGui=function(){return this.eGui},e.prototype.focus=function(t){return!!this.eGui&&(this.lastFocusEvent=t||null,this.eGui.focus(),!0)},e.prototype.getRowIndex=function(){return this.parentRowCtrl.getRowIndex()},e.prototype.getParentRowCtrl=function(){return this.parentRowCtrl},e.prototype.getPinned=function(){return this.parentRowCtrl.getPinned()},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.getColumnGroupChild=function(){return this.columnGroupChild},e.DOM_DATA_KEY_HEADER_CTRL="headerCtrl",x3([aY("focusService")],e.prototype,"focusService",void 0),x3([aY("beans")],e.prototype,"beans",void 0),x3([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(qY),D3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),R3=function(t){function e(e,o,n,i){var r=t.call(this)||this;return r.columnOrGroup=e,r.eCell=o,r.ariaEl=r.eCell.querySelector("[role=columnheader]")||r.eCell,r.colsSpanning=i,r.beans=n,r}return D3(e,t),e.prototype.setColsSpanning=function(t){this.colsSpanning=t,this.onLeftChanged()},e.prototype.getColumnOrGroup=function(){return this.beans.gridOptionsService.is("enableRtl")&&this.colsSpanning?_Y(this.colsSpanning):this.columnOrGroup},e.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,CY.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,this.onLeftChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onLeftChanged.bind(this))},e.prototype.setLeftFirstTime=function(){var t=this.beans.gridOptionsService.is("suppressColumnMoveAnimation"),e=h$(this.columnOrGroup.getOldLeft());this.beans.columnAnimationService.isActive()&&e&&!t?this.animateInLeft():this.onLeftChanged()},e.prototype.animateInLeft=function(){var t=this,e=this.getColumnOrGroup(),o=e.getLeft(),n=e.getOldLeft(),i=this.modifyLeftForPrintLayout(e,n),r=this.modifyLeftForPrintLayout(e,o);this.setLeft(i),this.actualLeft=r,this.beans.columnAnimationService.executeNextVMTurn((function(){t.actualLeft===r&&t.setLeft(r)}))},e.prototype.onLeftChanged=function(){var t=this.getColumnOrGroup(),e=t.getLeft();this.actualLeft=this.modifyLeftForPrintLayout(t,e),this.setLeft(this.actualLeft)},e.prototype.modifyLeftForPrintLayout=function(t,e){if(!this.beans.gridOptionsService.isDomLayout("print"))return e;if("left"===t.getPinned())return e;var o=this.beans.columnModel.getDisplayedColumnsLeftWidth();return"right"===t.getPinned()?o+this.beans.columnModel.getBodyContainerWidth()+e:o+e},e.prototype.setLeft=function(t){var e;if(h$(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof CY)e=this.columnOrGroup;else{var o=this.columnOrGroup.getLeafColumns();if(!o.length)return;o.length>1&&CX(this.ariaEl,o.length),e=o[0]}var n=this.beans.columnModel.getAriaColumnIndex(e);mX(this.ariaEl,n)},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(qY),O3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),M3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},A3=function(t){function e(e,o){var n=t.call(this)||this;return n.columns=e,n.element=o,n}return O3(e,t),e.prototype.postConstruct=function(){this.gridOptionsService.is("columnHoverHighlight")&&this.addMouseHoverListeners()},e.prototype.addMouseHoverListeners=function(){this.addManagedListener(this.element,"mouseout",this.onMouseOut.bind(this)),this.addManagedListener(this.element,"mouseover",this.onMouseOver.bind(this))},e.prototype.onMouseOut=function(){this.columnHoverService.clearMouseOver()},e.prototype.onMouseOver=function(){this.columnHoverService.setMouseOver(this.columns)},M3([aY("columnHoverService")],e.prototype,"columnHoverService",void 0),M3([nY],e.prototype,"postConstruct",null),e}(qY),I3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),P3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},L3=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.iconCreated=!1,n.column=e,n}return I3(e,t),e.prototype.setComp=function(e,o,n,i){t.prototype.setGui.call(this,o),this.comp=e,this.eButtonShowMainFilter=n,this.eFloatingFilterBody=i,this.setupActive(),this.setupWidth(),this.setupLeft(),this.setupHover(),this.setupFocus(),this.setupAria(),this.setupFilterButton(),this.setupUserComp(),this.setupSyncWithFilter(),this.setupUi(),this.addManagedListener(this.eButtonShowMainFilter,"click",this.showParentFilter.bind(this)),this.setupFilterChangedListener(),this.addManagedListener(this.column,CY.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this))},e.prototype.setupActive=function(){var t=this.column.getColDef(),e=!!t.filter,o=!!t.floatingFilter;this.active=e&&o},e.prototype.setupUi=function(){if(this.comp.setButtonWrapperDisplayed(!this.suppressFilterButton&&this.active),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-full-body",this.suppressFilterButton),this.comp.addOrRemoveBodyCssClass("ag-floating-filter-body",!this.suppressFilterButton),this.active&&!this.iconCreated){var t=qq("filter",this.gridOptionsService,this.column);t&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(t))}},e.prototype.setupFocus=function(){this.createManagedBean(new kZ(this.eGui,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.setupAria=function(){var t=this.localeService.getLocaleTextFunc();eX(this.eButtonShowMainFilter,t("ariaFilterMenuOpen","Open Filter Menu"))},e.prototype.onTabKeyDown=function(t){if(this.gridOptionsService.getDocument().activeElement!==this.eGui){var e=this.focusService.findNextFocusableElement(this.eGui,null,t.shiftKey);if(e)return this.beans.headerNavigationService.scrollToColumn(this.column),t.preventDefault(),void e.focus();var o=this.findNextColumnWithFloatingFilter(t.shiftKey);o&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:this.getParentRowCtrl().getRowIndex(),column:o},event:t})&&t.preventDefault()}},e.prototype.findNextColumnWithFloatingFilter=function(t){var e=this.beans.columnModel,o=this.column;do{if(!(o=t?e.getDisplayedColBefore(o):e.getDisplayedColAfter(o)))break}while(!o.getColDef().filter||!o.getColDef().floatingFilter);return o},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();switch(e.key){case Qq.UP:case Qq.DOWN:o||e.preventDefault();case Qq.LEFT:case Qq.RIGHT:if(o)return;e.stopPropagation();case Qq.ENTER:o&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case Qq.ESCAPE:o||this.eGui.focus()}},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=!!t.relatedTarget&&!t.relatedTarget.classList.contains("ag-floating-filter"),o=!!t.relatedTarget&&gq(t.relatedTarget,"ag-floating-filter");if(e&&o&&t.target===this.eGui){var n=this.lastFocusEvent,i=!(!n||n.key!==Qq.TAB);if(n&&i){var r=n.shiftKey;this.focusService.focusInto(this.eGui,r)}}var a=this.getRowIndex();this.beans.focusService.setFocusedHeader(a,this.column)}},e.prototype.setupHover=function(){var t=this;this.createManagedBean(new A3([this.column],this.eGui));var e=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,eK.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupLeft=function(){var t=new R3(this.column,this.eGui,this.beans);this.createManagedBean(t)},e.prototype.setupFilterButton=function(){var t=this.column.getColDef();this.suppressFilterButton=!!t.floatingFilterComponentParams&&!!t.floatingFilterComponentParams.suppressFilterButton},e.prototype.setupUserComp=function(){var t=this;if(this.active){var e=this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return t.showParentFilter()}));e&&this.setCompDetails(e)}},e.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setCompDetails(t)},e.prototype.showParentFilter=function(){var t=this.suppressFilterButton?this.eFloatingFilterBody:this.eButtonShowMainFilter;this.menuFactory.showMenuAfterButtonClick(this.column,t,"floatingFilter","filterMenuTab",["filterMenuTab"])},e.prototype.setupSyncWithFilter=function(){var t=this;if(this.active){var e=function(e){var o=t.comp.getFloatingFilterComp();o&&o.then((function(o){if(o){var n=t.filterManager.getCurrentFloatingFilterParentModel(t.column);o.onParentModelChanged(n,e)}}))};this.destroySyncListener=this.addManagedListener(this.column,CY.EVENT_FILTER_CHANGED,e),this.filterManager.isFilterActive(this.column)&&e(null)}},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth()+"px";t.comp.setWidth(e)};this.addManagedListener(this.column,CY.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,CY.EVENT_FILTER_CHANGED,this.updateFilterButton.bind(this)))},e.prototype.updateFilterButton=function(){!this.suppressFilterButton&&this.comp&&this.comp.setButtonWrapperDisplayed(this.filterManager.isFilterAllowed(this.column))},e.prototype.onColDefChanged=function(){var t,e,o=this,n=this.active;this.setupActive();var i=!n&&this.active;n&&!this.active&&(null===(t=this.destroySyncListener)||void 0===t||t.call(this),null===(e=this.destroyFilterChangedListener)||void 0===e||e.call(this));var r=this.active?this.filterManager.getFloatingFilterCompDetails(this.column,(function(){return o.showParentFilter()})):null,a=this.comp.getFloatingFilterComp();a&&r?a.then((function(t){var e;!t||o.filterManager.areFilterCompsDifferent(null!==(e=o.userCompDetails)&&void 0!==e?e:null,r)?o.updateCompDetails(r,i):o.updateFloatingFilterParams(r)})):this.updateCompDetails(r,i)},e.prototype.updateCompDetails=function(t,e){this.setCompDetails(t),this.setupFilterButton(),this.setupUi(),e&&(this.setupSyncWithFilter(),this.setupFilterChangedListener())},e.prototype.updateFloatingFilterParams=function(t){var e;if(t){var o=t.params;null===(e=this.comp.getFloatingFilterComp())||void 0===e||e.then((function(t){(null==t?void 0:t.onParamsUpdated)&&"function"==typeof t.onParamsUpdated&&t.onParamsUpdated(o)}))}},P3([aY("filterManager")],e.prototype,"filterManager",void 0),P3([aY("columnHoverService")],e.prototype,"columnHoverService",void 0),P3([aY("menuFactory")],e.prototype,"menuFactory",void 0),e}(T3),N3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),F3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},k3=function(t){function e(e,o,n,i,r){var a=t.call(this)||this;return a.pinned=e,a.column=o,a.eResize=n,a.comp=i,a.ctrl=r,a}return N3(e,t),e.prototype.postConstruct=function(){var t,e,o=this,n=this.column.getColDef(),i=[],r=function(){i.forEach((function(t){return t()})),i.length=0},a=function(){var a=o.column.isResizable(),s=!o.gridOptionsService.is("suppressAutoSize")&&!n.suppressAutoSize;(a!==t||s!==e)&&(t=a,e=s,r(),function(){if(dq(o.eResize,t),t){var n=o.horizontalResizeService.addResizeBar({eResizeBar:o.eResize,onResizeStart:o.onResizeStart.bind(o),onResizing:o.onResizing.bind(o,!1),onResizeEnd:o.onResizing.bind(o,!0)});if(i.push(n),e){var r=o.gridOptionsService.is("skipHeaderOnAutoSize"),a=function(){o.columnModel.autoSizeColumn(o.column,r,"uiColumnResized")};o.eResize.addEventListener("dblclick",a);var s=new QQ(o.eResize);s.addEventListener(QQ.EVENT_DOUBLE_TAP,a),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",a),s.removeEventListener(QQ.EVENT_DOUBLE_TAP,a),s.destroy()}))}}}())};a(),this.addDestroyFunc(r),this.ctrl.addRefreshFunction(a)},e.prototype.onResizing=function(t,e){var o=this.normaliseResizeAmount(e),n=[{key:this.column,newWidth:this.resizeStartWidth+o}];this.columnModel.setColumnWidths(n,this.resizeWithShiftKey,t,"uiColumnResized"),t&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.onResizeStart=function(t){this.resizeStartWidth=this.column.getActualWidth(),this.resizeWithShiftKey=t,this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.normaliseResizeAmount=function(t){var e=t,o="left"!==this.pinned,n="right"===this.pinned;return this.gridOptionsService.is("enableRtl")?o&&(e*=-1):n&&(e*=-1),e},F3([aY("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),F3([aY("columnModel")],e.prototype,"columnModel",void 0),F3([nY],e.prototype,"postConstruct",null),e}(qY),G3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),V3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},H3=function(t){function e(e){var o=t.call(this)||this;o.cbSelectAllVisible=!1,o.processingEventFromCheckbox=!1,o.column=e;var n=e.getColDef();return o.filteredOnly=!!(null==n?void 0:n.headerCheckboxSelectionFilteredOnly),o.currentPageOnly=!!(null==n?void 0:n.headerCheckboxSelectionCurrentPageOnly),o}return G3(e,t),e.prototype.onSpaceKeyDown=function(t){var e=this.cbSelectAll,o=this.gridOptionsService.getDocument();e.isDisplayed()&&!e.getGui().contains(o.activeElement)&&(t.preventDefault(),e.setValue(!e.getValue()))},e.prototype.getCheckboxGui=function(){return this.cbSelectAll.getGui()},e.prototype.setComp=function(t){this.headerCellCtrl=t,this.cbSelectAll=this.createManagedBean(new lQ),this.cbSelectAll.addCssClass("ag-header-select-all"),ZK(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,eK.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),lX(this.cbSelectAll.getGui(),!0),this.cbSelectAll.getInputElement().setAttribute("tabindex","-1"),this.refreshSelectAllLabel()},e.prototype.showOrHideSelectAll=function(){this.cbSelectAllVisible=this.isCheckboxSelection(),this.cbSelectAll.setDisplayed(this.cbSelectAllVisible,{skipAriaHidden:!0}),this.cbSelectAllVisible&&(this.checkRightRowModelType("selectAllCheckbox"),this.checkSelectionType("selectAllCheckbox"),this.updateStateOfCheckbox()),this.refreshSelectAllLabel()},e.prototype.onModelChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.onSelectionChanged=function(){this.cbSelectAllVisible&&this.updateStateOfCheckbox()},e.prototype.updateStateOfCheckbox=function(){if(!this.processingEventFromCheckbox){this.processingEventFromCheckbox=!0;var t=this.selectionService.getSelectAllState(this.filteredOnly,this.currentPageOnly);this.cbSelectAll.setValue(t),this.refreshSelectAllLabel(),this.processingEventFromCheckbox=!1}},e.prototype.refreshSelectAllLabel=function(){var t=this.localeService.getLocaleTextFunc(),e=this.cbSelectAll.getValue()?t("ariaChecked","checked"):t("ariaUnchecked","unchecked"),o=t("ariaRowSelectAll","Press Space to toggle all rows selection");this.cbSelectAllVisible?this.headerCellCtrl.setAriaDescriptionProperty("selectAll",o+" ("+e+")"):this.headerCellCtrl.setAriaDescriptionProperty("selectAll",null),this.cbSelectAll.setInputAriaLabel(o+" ("+e+")"),this.headerCellCtrl.refreshAriaDescription()},e.prototype.checkSelectionType=function(t){return!("multiple"!==this.gridOptionsService.get("rowSelection")&&(console.warn("AG Grid: "+t+" is only available if using 'multiple' rowSelection."),1))},e.prototype.checkRightRowModelType=function(t){var e=this.rowModel.getType();return!("clientSide"!==e&&"serverSide"!==e&&(console.warn("AG Grid: "+t+" is only available if using 'clientSide' or 'serverSide' rowModelType, you are using "+e+"."),1))},e.prototype.onCbSelectAll=function(){if(!this.processingEventFromCheckbox&&this.cbSelectAllVisible){var t=this.cbSelectAll.getValue(),e="uiSelectAll";this.currentPageOnly?e="uiSelectAllCurrentPage":this.filteredOnly&&(e="uiSelectAllFiltered");var o={source:e,justFiltered:this.filteredOnly,justCurrentPage:this.currentPageOnly};t?this.selectionService.selectAllRowNodes(o):this.selectionService.deselectAllRowNodes(o)}},e.prototype.isCheckboxSelection=function(){var t=this.column.getColDef().headerCheckboxSelection;return"function"==typeof t&&(t=t({column:this.column,colDef:this.column.getColDef(),columnApi:this.columnApi,api:this.gridApi,context:this.gridOptionsService.context})),!!t&&this.checkRightRowModelType("headerCheckboxSelection")&&this.checkSelectionType("headerCheckboxSelection")},V3([aY("gridApi")],e.prototype,"gridApi",void 0),V3([aY("columnApi")],e.prototype,"columnApi",void 0),V3([aY("rowModel")],e.prototype,"rowModel",void 0),V3([aY("selectionService")],e.prototype,"selectionService",void 0),e}(qY),B3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),W3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t.TAB_GUARD="ag-tab-guard",t.TAB_GUARD_TOP="ag-tab-guard-top",t.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"}(S3||(S3={}));var z3,j3=function(t){function e(e){var o=t.call(this)||this;o.skipTabGuardFocus=!1;var n=e.comp,i=e.eTopGuard,r=e.eBottomGuard,a=e.focusInnerElement,s=e.onFocusIn,l=e.onFocusOut,u=e.shouldStopEventPropagation,c=e.onTabKeyDown,p=e.handleKeyDown,d=e.eFocusableElement;return o.comp=n,o.eTopGuard=i,o.eBottomGuard=r,o.providedFocusInnerElement=a,o.eFocusableElement=d,o.providedFocusIn=s,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return B3(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new kZ(this.eFocusableElement,{shouldStopEventPropagation:function(){return t.shouldStopEventPropagation()},onTabKeyDown:function(e){return t.onTabKeyDown(e)},handleKeyDown:function(e){return t.handleKeyDown(e)},onFocusIn:function(e){return t.onFocusIn(e)},onFocusOut:function(e){return t.onFocusOut(e)}})),this.activateTabGuards(),[this.eTopGuard,this.eBottomGuard].forEach((function(e){return t.addManagedListener(e,"focus",t.onFocus.bind(t))}))},e.prototype.handleKeyDown=function(t){this.providedHandleKeyDown&&this.providedHandleKeyDown(t)},e.prototype.tabGuardsAreActive=function(){return!!this.eTopGuard&&this.eTopGuard.hasAttribute("tabIndex")},e.prototype.shouldStopEventPropagation=function(){return!!this.providedShouldStopEventPropagation&&this.providedShouldStopEventPropagation()},e.prototype.activateTabGuards=function(){var t=this.gridOptionsService.getNum("tabIndex")||0;this.comp.setTabIndex(t.toString())},e.prototype.deactivateTabGuards=function(){this.comp.setTabIndex()},e.prototype.onFocus=function(t){if(this.skipTabGuardFocus)this.skipTabGuardFocus=!1;else{var e=t.target===this.eBottomGuard;this.providedFocusInnerElement?this.providedFocusInnerElement(e):this.focusInnerElement(e)}},e.prototype.onFocusIn=function(t){this.providedFocusIn&&this.providedFocusIn(t)||this.deactivateTabGuards()},e.prototype.onFocusOut=function(t){this.providedFocusOut&&this.providedFocusOut(t)||this.eFocusableElement.contains(t.relatedTarget)||this.activateTabGuards()},e.prototype.onTabKeyDown=function(t){var e=this;if(this.providedOnTabKeyDown)this.providedOnTabKeyDown(t);else if(!t.defaultPrevented){var o=this.tabGuardsAreActive();o&&this.deactivateTabGuards();var n=this.getNextFocusableElement(t.shiftKey);o&&setTimeout((function(){return e.activateTabGuards()}),0),n&&(n.focus(),t.preventDefault())}},e.prototype.focusInnerElement=function(t){void 0===t&&(t=!1);var e=this.focusService.findFocusableElements(this.eFocusableElement);this.tabGuardsAreActive()&&(e.splice(0,1),e.splice(e.length-1,1)),e.length&&e[t?e.length-1:0].focus({preventScroll:!0})},e.prototype.getNextFocusableElement=function(t){return this.focusService.findNextFocusableElement(this.eFocusableElement,!1,t)},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1);var e=t?this.eTopGuard:this.eBottomGuard;this.activateTabGuards(),this.skipTabGuardFocus=!0,e.focus()},W3([aY("focusService")],e.prototype,"focusService",void 0),W3([nY],e.prototype,"postConstruct",null),e}(qY),U3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$3=function(){return $3=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},K3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return U3(e,t),o=e,e.addKeyboardModeEvents=function(t,e){var n=o.instancesMonitored.get(t);n&&n.length>0?-1===n.indexOf(e)&&n.push(e):(o.instancesMonitored.set(t,[e]),t.addEventListener("keydown",o.toggleKeyboardMode),t.addEventListener("mousedown",o.toggleKeyboardMode))},e.removeKeyboardModeEvents=function(t,e){var n=o.instancesMonitored.get(t),i=[];n&&n.length&&(i=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(n)).filter((function(t){return t!==e})),o.instancesMonitored.set(t,i)),0===i.length&&(t.removeEventListener("keydown",o.toggleKeyboardMode),t.removeEventListener("mousedown",o.toggleKeyboardMode))},e.toggleKeyboardMode=function(t){var e=o.keyboardModeActive,n="keydown"===t.type;if(!(n&&(t.ctrlKey||t.metaKey||t.altKey)||e&&n||!e&&!n)){o.keyboardModeActive=n;var i=t.target.ownerDocument;if(i){var r=o.instancesMonitored.get(i);r&&r.forEach((function(t){t.dispatchEvent({type:n?eK.EVENT_KEYBOARD_FOCUS:eK.EVENT_MOUSE_FOCUS})}))}}},e.prototype.init=function(){var t=this,e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,e),this.ctrlsService.whenReady((function(e){t.gridCtrl=e.gridCtrl;var n=t.gridOptionsService.getDocument();o.addKeyboardModeEvents(n,t.gridCtrl),t.addDestroyFunc((function(){return t.unregisterGridCompController(t.gridCtrl)}))}))},e.prototype.unregisterGridCompController=function(t){var e=this.gridOptionsService.getDocument();o.removeKeyboardModeEvents(e,t)},e.prototype.onColumnEverythingChanged=function(){if(this.focusedCellPosition){var t=this.focusedCellPosition.column,e=this.columnModel.getGridColumn(t.getId());t!==e&&this.clearFocusedCell()}},e.prototype.isKeyboardMode=function(){return o.keyboardModeActive},e.prototype.getFocusCellToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedCellPosition||this.isDomDataMissingInHierarchy(t.activeElement,r2.DOM_DATA_KEY_ROW_CTRL)?null:this.focusedCellPosition},e.prototype.getFocusHeaderToUseAfterRefresh=function(){var t=this.gridOptionsService.getDocument();return this.gridOptionsService.is("suppressFocusAfterRefresh")||!this.focusedHeaderPosition||this.isDomDataMissingInHierarchy(t.activeElement,T3.DOM_DATA_KEY_HEADER_CTRL)?null:this.focusedHeaderPosition},e.prototype.isDomDataMissingInHierarchy=function(t,e){for(var o=t;o;){if(this.gridOptionsService.getDomData(o,e))return!1;o=o.parentNode}return!0},e.prototype.getFocusedCell=function(){return this.focusedCellPosition},e.prototype.shouldRestoreFocus=function(t){var e=this;return!!this.isCellRestoreFocused(t)&&(setTimeout((function(){e.restoredFocusedCellPosition=null}),0),!0)},e.prototype.isCellRestoreFocused=function(t){return null!=this.restoredFocusedCellPosition&&this.cellPositionUtils.equals(t,this.restoredFocusedCellPosition)},e.prototype.setRestoreFocusedCell=function(t){"react"===this.getFrameworkOverrides().renderingEngine&&(this.restoredFocusedCellPosition=t)},e.prototype.getFocusEventParams=function(){var t=this.focusedCellPosition,e=t.rowIndex,o=t.rowPinned,n={rowIndex:e,rowPinned:o,column:t.column,isFullWidthCell:!1},i=this.rowRenderer.getRowByPosition({rowIndex:e,rowPinned:o});return i&&(n.isFullWidthCell=i.isFullWidth()),n},e.prototype.clearFocusedCell=function(){if(this.restoredFocusedCellPosition=null,null!=this.focusedCellPosition){var t=$3({type:eK.EVENT_CELL_FOCUS_CLEARED},this.getFocusEventParams());this.focusedCellPosition=null,this.eventService.dispatchEvent(t)}},e.prototype.setFocusedCell=function(t){var e=t.column,o=t.rowIndex,n=t.rowPinned,i=t.forceBrowserFocus,r=void 0!==i&&i,a=t.preventScrollOnBrowserFocus,s=void 0!==a&&a,l=this.columnModel.getGridColumn(e);if(l){this.focusedCellPosition=l?{rowIndex:o,rowPinned:d$(n),column:l}:null;var u=$3($3({type:eK.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:r,preventScrollOnBrowserFocus:s,floating:null});this.eventService.dispatchEvent(u)}else this.focusedCellPosition=null},e.prototype.isCellFocused=function(t){return null!=this.focusedCellPosition&&this.cellPositionUtils.equals(t,this.focusedCellPosition)},e.prototype.isRowNodeFocused=function(t){return this.isRowFocused(t.rowIndex,t.rowPinned)},e.prototype.isHeaderWrapperFocused=function(t){if(null==this.focusedHeaderPosition)return!1;var e=t.getColumnGroupChild(),o=t.getRowIndex(),n=t.getPinned(),i=this.focusedHeaderPosition,r=i.column,a=i.headerRowIndex;return e===r&&o===a&&n==r.getPinned()},e.prototype.clearFocusedHeader=function(){this.focusedHeaderPosition=null},e.prototype.getFocusedHeader=function(){return this.focusedHeaderPosition},e.prototype.setFocusedHeader=function(t,e){this.focusedHeaderPosition={headerRowIndex:t,column:e}},e.prototype.focusHeaderPosition=function(t){var e=t.direction,o=t.fromTab,n=t.allowUserOverride,i=t.event,r=t.fromCell,a=t.headerPosition;if(r&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(a);if(n){var s,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();o?(s=this.gridOptionsService.getCallback("tabToNextHeader"))&&(a=s({backwards:"Before"===e,previousHeaderPosition:l,nextHeaderPosition:a,headerRowCount:u})):(s=this.gridOptionsService.getCallback("navigateToNextHeader"))&&i&&(a=s({key:i.key,previousHeaderPosition:l,nextHeaderPosition:a,headerRowCount:u,event:i}))}return!!a&&(-1===a.headerRowIndex?this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(a):this.focusGridView(a.column):(this.headerNavigationService.scrollToColumn(a.column,e),this.ctrlsService.getHeaderRowContainerCtrl(a.column.getPinned()).focusHeader(a.headerRowIndex,a.column,i)))},e.prototype.focusFirstHeader=function(){var t=this.columnModel.getAllDisplayedColumns()[0];return!!t&&(t.getParent()&&(t=this.columnModel.getColumnGroupAtLevel(t,0)),this.focusHeaderPosition({headerPosition:{headerRowIndex:0,column:t}}))},e.prototype.focusLastHeader=function(t){var e=this.headerNavigationService.getHeaderRowCount()-1,o=_Y(this.columnModel.getAllDisplayedColumns());return this.focusHeaderPosition({headerPosition:{headerRowIndex:e,column:o},event:t})},e.prototype.focusPreviousFromFirstCell=function(t){return this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(null):this.focusLastHeader(t)},e.prototype.isAnyCellFocused=function(){return!!this.focusedCellPosition},e.prototype.isRowFocused=function(t,e){return null!=this.focusedCellPosition&&this.focusedCellPosition.rowIndex===t&&this.focusedCellPosition.rowPinned===d$(e)},e.prototype.findFocusableElements=function(t,e,o){void 0===o&&(o=!1);var n=uq,i=cq;e&&(i+=", "+e),o&&(i+=', [tabindex="-1"]');var r,a=Array.prototype.slice.apply(t.querySelectorAll(n)),s=Array.prototype.slice.apply(t.querySelectorAll(i));return s.length?(r=s,a.filter((function(t){return-1===r.indexOf(t)}))):a},e.prototype.focusInto=function(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=this.findFocusableElements(t,null,o),i=e?_Y(n):n[0];return!!i&&(i.focus({preventScroll:!0}),!0)},e.prototype.findFocusableElementBeforeTabGuard=function(t,e){if(!e)return null;var o=this.findFocusableElements(t),n=o.indexOf(e);if(-1===n)return null;for(var i=-1,r=n-1;r>=0;r--)if(o[r].classList.contains(S3.TAB_GUARD_TOP)){i=r;break}return i<=0?null:o[i-1]},e.prototype.findNextFocusableElement=function(t,e,o){void 0===t&&(t=this.eGridDiv);var n=this.findFocusableElements(t,e?':not([tabindex="-1"])':null),i=this.gridOptionsService.getDocument().activeElement,r=(e?n.findIndex((function(t){return t.contains(i)})):n.indexOf(i))+(o?-1:1);return r<0||r>=n.length?null:n[r]},e.prototype.isTargetUnderManagedComponent=function(t,e){if(!e)return!1;var o=t.querySelectorAll("."+kZ.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var n=0;n=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},Z3=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.refreshFunctions=[],n.userHeaderClasses=new Set,n.ariaDescriptionProperties=new Map,n.column=e,n}return X3(e,t),e.prototype.setComp=function(e,o,n,i){var r=this;t.prototype.setGui.call(this,o),this.comp=e,this.updateState(),this.setupWidth(),this.setupMovingCss(),this.setupMenuClass(),this.setupSortableClass(),this.setupWrapTextClass(),this.refreshSpanHeaderHeight(),this.setupAutoHeight(i),this.addColumnHoverListener(),this.setupFilterCss(),this.setupClassesFromColDef(),this.setupTooltip(),this.addActiveHeaderMouseListeners(),this.setupSelectAll(),this.setupUserComp(),this.refreshAria(),this.createManagedBean(new k3(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new A3([this.column],o)),this.createManagedBean(new R3(this.column,o,this.beans)),this.createManagedBean(new kZ(o,{shouldStopEventPropagation:function(t){return r.shouldStopEventPropagation(t)},onTabKeyDown:function(){return null},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addMouseDownListenerIfNeeded(o),this.addManagedListener(this.column,CY.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addMouseDownListenerIfNeeded=function(t){var e=this;if(NX()){var o=this.gridOptionsService.getDocument();["mousedown","touchstart"].forEach((function(n){e.addManagedListener(t,n,(function(e){var n=o.activeElement;n===t||t.contains(n)||(t.focus(),K3.toggleKeyboardMode(e))}))}))}},e.prototype.setupUserComp=function(){var t=this.lookupUserCompDetails();this.setCompDetails(t)},e.prototype.setCompDetails=function(t){this.userCompDetails=t,this.comp.setUserCompDetails(t)},e.prototype.lookupUserCompDetails=function(){var t=this.createParams(),e=this.column.getColDef();return this.userComponentFactory.getHeaderCompDetails(e,t)},e.prototype.createParams=function(){var t=this,e=this.column.getColDef(),o={column:this.column,displayName:this.displayName,enableSorting:e.sortable,enableMenu:this.menuEnabled,showColumnMenu:function(e){t.gridApi.showColumnMenuAfterButtonClick(t.column,e)},progressSort:function(e){t.sortController.progressSort(t.column,!!e,"uiColumnSorted")},setSort:function(e,o){t.sortController.setSortForColumn(t.column,e,!!o,"uiColumnSorted")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context,eGridHeader:this.getGui()};return o},e.prototype.setupSelectAll=function(){this.selectAllFeature=this.createManagedBean(new H3(this.column)),this.selectAllFeature.setComp(this)},e.prototype.getSelectAllGui=function(){return this.selectAllFeature.getCheckboxGui()},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e),e.key===Qq.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===Qq.ENTER&&this.onEnterKeyDown(e)},e.prototype.onEnterKeyDown=function(t){var e=this.comp.getUserCompInstance();if(e)if(t.ctrlKey||t.metaKey)this.menuEnabled&&e.showMenu&&(t.preventDefault(),e.showMenu());else if(this.sortable){var o=t.shiftKey;this.sortController.progressSort(this.column,o,"uiColumnSorted")}},e.prototype.isMenuEnabled=function(){return this.menuEnabled},e.prototype.onFocusIn=function(t){if(!this.getGui().contains(t.relatedTarget)){var e=this.getRowIndex();this.focusService.setFocusedHeader(e,this.column)}this.setActiveHeader(!0)},e.prototype.onFocusOut=function(t){this.getGui().contains(t.relatedTarget)||this.setActiveHeader(!1)},e.prototype.setupTooltip=function(){var t=this,e={getColumn:function(){return t.column},getColDef:function(){return t.column.getColDef()},getGui:function(){return t.eGui},getLocation:function(){return"header"},getTooltipValue:function(){return t.column.getColDef().headerTooltip}},o=this.createManagedBean(new H1(e,this.beans));o.setComp(this.eGui),this.refreshFunctions.push((function(){return o.refreshToolTip()}))},e.prototype.setupClassesFromColDef=function(){var t=this,e=function(){var e=t.column.getColDef(),o=d3.getHeaderClassesFromColDef(e,t.gridOptionsService,t.column,null),n=t.userHeaderClasses;t.userHeaderClasses=new Set(o),o.forEach((function(e){n.has(e)?n.delete(e):t.comp.addOrRemoveCssClass(e,!0)})),n.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!1)}))};this.refreshFunctions.push(e),e()},e.prototype.setDragSource=function(t){var e=this;if(this.dragSourceElement=t,this.removeDragSource(),t&&this.draggable){var o=!this.gridOptionsService.is("suppressDragLeaveHidesColumns");this.moveDragSource={type:NQ.HeaderCell,eElement:t,getDefaultIconName:function(){return o?LJ.ICON_HIDE:LJ.ICON_NOT_ALLOWED},getDragItem:function(){return e.createDragItem()},dragItemName:this.displayName,onDragStarted:function(){o=!e.gridOptionsService.is("suppressDragLeaveHidesColumns"),e.column.setMoving(!0,"uiColumnMoved")},onDragStopped:function(){return e.column.setMoving(!1,"uiColumnMoved")},onGridEnter:function(t){var n;if(o){var i=(null===(n=null==t?void 0:t.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(t){var n;if(o){var i=(null===(n=null==t?void 0:t.columns)||void 0===n?void 0:n.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}},this.dragAndDropService.addDragSource(this.moveDragSource,!0)}},e.prototype.createDragItem=function(){var t={};return t[this.column.getId()]=this.column.isVisible(),{columns:[this.column],visibleState:t}},e.prototype.removeDragSource=function(){this.moveDragSource&&(this.dragAndDropService.removeDragSource(this.moveDragSource),this.moveDragSource=void 0)},e.prototype.onColDefChanged=function(){this.refresh()},e.prototype.updateState=function(){var t=this.column.getColDef();this.menuEnabled=this.menuFactory.isMenuEnabled(this.column)&&!t.suppressMenu,this.sortable=t.sortable,this.displayName=this.calculateDisplayName(),this.draggable=this.workOutDraggable()},e.prototype.addRefreshFunction=function(t){this.refreshFunctions.push(t)},e.prototype.refresh=function(){this.updateState(),this.refreshHeaderComp(),this.refreshAria(),this.refreshFunctions.forEach((function(t){return t()}))},e.prototype.refreshHeaderComp=function(){var t=this.lookupUserCompDetails();null!=this.comp.getUserCompInstance()&&this.userCompDetails.componentClass==t.componentClass&&this.attemptHeaderCompRefresh(t.params)?this.setDragSource(this.dragSourceElement):this.setCompDetails(t)},e.prototype.attemptHeaderCompRefresh=function(t){var e=this.comp.getUserCompInstance();return!!e&&!!e.refresh&&e.refresh(t)},e.prototype.calculateDisplayName=function(){return this.columnModel.getDisplayNameForColumn(this.column,"header",!0)},e.prototype.checkDisplayName=function(){this.displayName!==this.calculateDisplayName()&&this.refresh()},e.prototype.workOutDraggable=function(){var t=this.column.getColDef();return!(this.gridOptionsService.is("suppressMovableColumns")||t.suppressMovable||t.lockPosition)||!!t.enableRowGroup||!!t.enablePivot},e.prototype.onColumnRowGroupChanged=function(){this.checkDisplayName()},e.prototype.onColumnPivotChanged=function(){this.checkDisplayName()},e.prototype.onColumnValueChanged=function(){this.checkDisplayName()},e.prototype.setupWidth=function(){var t=this,e=function(){var e=t.column.getActualWidth();t.comp.setWidth(e+"px")};this.addManagedListener(this.column,CY.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupMovingCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.column.isMoving())};this.addManagedListener(this.column,CY.EVENT_MOVING_CHANGED,e),e()},e.prototype.setupMenuClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-column-menu-visible",t.column.isMenuVisible())};this.addManagedListener(this.column,CY.EVENT_MENU_VISIBLE_CHANGED,e),e()},e.prototype.setupSortableClass=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-sortable",!!t.sortable)};e(),this.addRefreshFunction(e),this.addManagedListener(this.eventService,CY.EVENT_SORT_CHANGED,this.refreshAriaSort.bind(this))},e.prototype.setupWrapTextClass=function(){var t=this,e=function(){var e=!!t.column.getColDef().wrapHeaderText;t.comp.addOrRemoveCssClass("ag-header-cell-wrap-text",e)};e(),this.addRefreshFunction(e)},e.prototype.onHeaderHeightChanged=function(){this.refreshSpanHeaderHeight()},e.prototype.refreshSpanHeaderHeight=function(){var t=this,e=t.eGui,o=t.column,n=t.comp,i=t.columnModel,r=t.gridOptionsService;if(o.isSpanHeaderHeight()){var a=this.getColumnGroupPaddingInfo(),s=a.numberOfParents,l=a.isSpanningTotal;n.addOrRemoveCssClass("ag-header-span-height",s>0);var u=i.getColumnHeaderRowHeight();if(0===s)return n.addOrRemoveCssClass("ag-header-span-total",!1),e.style.setProperty("top","0px"),void e.style.setProperty("height",u+"px");n.addOrRemoveCssClass("ag-header-span-total",l);var c=s*(r.is("pivotMode")?i.getPivotGroupHeaderHeight():i.getGroupHeaderHeight());e.style.setProperty("top",-c+"px"),e.style.setProperty("height",u+c+"px")}},e.prototype.getColumnGroupPaddingInfo=function(){var t=this.column.getParent();if(!t||!t.isPadding())return{numberOfParents:0,isSpanningTotal:!1};for(var e=t.getPaddingLevel()+1,o=!0;t;){if(!t.isPadding()){o=!1;break}t=t.getParent()}return{numberOfParents:e,isSpanningTotal:o}},e.prototype.setupAutoHeight=function(t){var e,o=this,n=function(e){if(o.isAlive()){var i=vq(o.getGui()),r=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,a=t.offsetHeight+r;if(e<5){var s=o.beans.gridOptionsService.getDocument();if(!s||!s.contains(t)||0==a)return void o.beans.frameworkOverrides.setTimeout((function(){return n(e+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,a)}},i=!1,r=function(){var t=o.column.isAutoHeaderHeight();t&&!i&&a(),!t&&i&&s()},a=function(){i=!0,n(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),e=o.resizeObserverService.observeResize(t,(function(){return n(0)}))},s=function(){i=!1,e&&e(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),e=void 0};r(),this.addDestroyFunc((function(){return s()})),this.addManagedListener(this.column,CY.EVENT_WIDTH_CHANGED,(function(){return i&&n(0)})),this.addManagedListener(this.eventService,CY.EVENT_SORT_CHANGED,(function(){i&&o.beans.frameworkOverrides.setTimeout((function(){return n(0)}))})),this.addRefreshFunction(r)},e.prototype.refreshAriaSort=function(){if(this.sortable){var t=this.localeService.getLocaleTextFunc(),e=this.sortController.getDisplaySortForColumn(this.column)||null;this.comp.setAriaSort(QK(e)),this.setAriaDescriptionProperty("sort",t("ariaSortableColumn","Press ENTER to sort."))}else this.comp.setAriaSort(),this.setAriaDescriptionProperty("sort",null)},e.prototype.refreshAriaMenu=function(){if(this.menuEnabled){var t=this.localeService.getLocaleTextFunc();this.setAriaDescriptionProperty("menu",t("ariaMenuColumn","Press CTRL ENTER to open column menu."))}else this.setAriaDescriptionProperty("menu",null)},e.prototype.setAriaDescriptionProperty=function(t,e){null!=e?this.ariaDescriptionProperties.set(t,e):this.ariaDescriptionProperties.delete(t)},e.prototype.refreshAriaDescription=function(){var t=Array.from(this.ariaDescriptionProperties.values());this.comp.setAriaDescription(t.length?t.join(" "):void 0)},e.prototype.refreshAria=function(){this.refreshAriaSort(),this.refreshAriaMenu(),this.refreshAriaDescription()},e.prototype.addColumnHoverListener=function(){var t=this,e=function(){if(t.gridOptionsService.is("columnHoverHighlight")){var e=t.columnHoverService.isHovered(t.column);t.comp.addOrRemoveCssClass("ag-column-hover",e)}};this.addManagedListener(this.eventService,eK.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupFilterCss=function(){var t=this,e=function(){t.comp.addOrRemoveCssClass("ag-header-cell-filtered",t.column.isFilterActive())};this.addManagedListener(this.column,CY.EVENT_FILTER_ACTIVE_CHANGED,e),e()},e.prototype.getColId=function(){return this.column.getColId()},e.prototype.addActiveHeaderMouseListeners=function(){var t=this,e=function(e){return t.setActiveHeader("mouseenter"===e.type)};this.addManagedListener(this.getGui(),"mouseenter",e),this.addManagedListener(this.getGui(),"mouseleave",e)},e.prototype.setActiveHeader=function(t){this.comp.addOrRemoveCssClass("ag-header-active",t)},q3([aY("columnModel")],e.prototype,"columnModel",void 0),q3([aY("columnHoverService")],e.prototype,"columnHoverService",void 0),q3([aY("sortController")],e.prototype,"sortController",void 0),q3([aY("menuFactory")],e.prototype,"menuFactory",void 0),q3([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),q3([aY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),q3([aY("gridApi")],e.prototype,"gridApi",void 0),q3([aY("columnApi")],e.prototype,"columnApi",void 0),q3([iY],e.prototype,"removeDragSource",null),e}(T3),Q3=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),J3=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},t5=function(t){function e(e,o,n,i){var r=t.call(this)||this;return r.eResize=o,r.comp=e,r.pinned=n,r.columnGroup=i,r}return Q3(e,t),e.prototype.postConstruct=function(){var t=this;if(this.columnGroup.isResizable()){var e=this.horizontalResizeService.addResizeBar({eResizeBar:this.eResize,onResizeStart:this.onResizeStart.bind(this),onResizing:this.onResizing.bind(this,!1),onResizeEnd:this.onResizing.bind(this,!0)});if(this.addDestroyFunc(e),!this.gridOptionsService.is("suppressAutoSize")){var o=this.gridOptionsService.is("skipHeaderOnAutoSize");this.eResize.addEventListener("dblclick",(function(){var e=[];t.columnGroup.getDisplayedLeafColumns().forEach((function(t){t.getColDef().suppressAutoSize||e.push(t.getColId())})),e.length>0&&t.columnModel.autoSizeColumns({columns:e,skipHeader:o,stopAtGroup:t.columnGroup,source:"uiColumnResized"}),t.resizeLeafColumnsToFit("uiColumnResized")}))}}else this.comp.setResizableDisplayed(!1)},e.prototype.onResizeStart=function(t){var e=this;this.calculateInitialValues();var o=null;if(t&&(o=this.columnModel.getDisplayedGroupAfter(this.columnGroup)),o){var n=o.getDisplayedLeafColumns();this.resizeTakeFromCols=n.filter((function(t){return t.isResizable()})),this.resizeTakeFromStartWidth=0,this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromStartWidth+=t.getActualWidth()})),this.resizeTakeFromRatios=[],this.resizeTakeFromCols.forEach((function(t){return e.resizeTakeFromRatios.push(t.getActualWidth()/e.resizeTakeFromStartWidth)}))}else this.resizeTakeFromCols=null,this.resizeTakeFromStartWidth=null,this.resizeTakeFromRatios=null;this.comp.addOrRemoveCssClass("ag-column-resizing",!0)},e.prototype.onResizing=function(t,e,o){void 0===o&&(o="uiColumnResized");var n=this.normaliseDragChange(e),i=this.resizeStartWidth+n;this.resizeColumns(i,o,t)},e.prototype.resizeLeafColumnsToFit=function(t){var e=this.autoWidthCalculator.getPreferredWidthForColumnGroup(this.columnGroup);this.calculateInitialValues(),e>this.resizeStartWidth&&this.resizeColumns(e,t,!0)},e.prototype.resizeColumns=function(t,e,o){void 0===o&&(o=!0);var n=[];if(n.push({columns:this.resizeCols,ratios:this.resizeRatios,width:t}),this.resizeTakeFromCols){var i=t-this.resizeStartWidth;n.push({columns:this.resizeTakeFromCols,ratios:this.resizeTakeFromRatios,width:this.resizeTakeFromStartWidth-i})}this.columnModel.resizeColumnSets({resizeSets:n,finished:o,source:e}),o&&this.comp.addOrRemoveCssClass("ag-column-resizing",!1)},e.prototype.calculateInitialValues=function(){var t=this,e=this.columnGroup.getDisplayedLeafColumns();this.resizeCols=e.filter((function(t){return t.isResizable()})),this.resizeStartWidth=0,this.resizeCols.forEach((function(e){return t.resizeStartWidth+=e.getActualWidth()})),this.resizeRatios=[],this.resizeCols.forEach((function(e){return t.resizeRatios.push(e.getActualWidth()/t.resizeStartWidth)}))},e.prototype.normaliseDragChange=function(t){var e=t;return this.gridOptionsService.is("enableRtl")?"left"!==this.pinned&&(e*=-1):"right"===this.pinned&&(e*=-1),e},J3([aY("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),J3([aY("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),J3([aY("columnModel")],e.prototype,"columnModel",void 0),J3([nY],e.prototype,"postConstruct",null),e}(qY),e5=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),o5=function(t){function e(e,o){var n=t.call(this)||this;return n.removeChildListenersFuncs=[],n.columnGroup=o,n.comp=e,n}return e5(e,t),e.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,tK.EVENT_DISPLAYED_CHILDREN_CHANGED,this.onDisplayedChildrenChanged.bind(this)),this.onWidthChanged(),this.addDestroyFunc(this.removeListenersOnChildrenColumns.bind(this))},e.prototype.addListenersToChildrenColumns=function(){var t=this;this.removeListenersOnChildrenColumns();var e=this.onWidthChanged.bind(this);this.columnGroup.getLeafColumns().forEach((function(o){o.addEventListener("widthChanged",e),o.addEventListener("visibleChanged",e),t.removeChildListenersFuncs.push((function(){o.removeEventListener("widthChanged",e),o.removeEventListener("visibleChanged",e)}))}))},e.prototype.removeListenersOnChildrenColumns=function(){this.removeChildListenersFuncs.forEach((function(t){return t()})),this.removeChildListenersFuncs=[]},e.prototype.onDisplayedChildrenChanged=function(){this.addListenersToChildrenColumns(),this.onWidthChanged()},e.prototype.onWidthChanged=function(){var t=this.columnGroup.getActualWidth();this.comp.setWidth(t+"px"),this.comp.addOrRemoveCssClass("ag-hidden",0===t)},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(qY),n5=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),i5=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},r5=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.columnGroup=e,n}return n5(e,t),e.prototype.setComp=function(e,o,n){t.prototype.setGui.call(this,o),this.comp=e,this.displayName=this.columnModel.getDisplayNameForColumnGroup(this.columnGroup,"header"),this.addClasses(),this.setupMovingCss(),this.setupExpandable(),this.setupTooltip(),this.setupUserComp();var i=this.getParentRowCtrl().getPinned(),r=this.columnGroup.getProvidedColumnGroup().getLeafColumns();this.createManagedBean(new A3(r,o)),this.createManagedBean(new R3(this.columnGroup,o,this.beans)),this.createManagedBean(new o5(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new t5(e,n,i,this.columnGroup)),this.createManagedBean(new kZ(o,{shouldStopEventPropagation:this.shouldStopEventPropagation.bind(this),onTabKeyDown:function(){},handleKeyDown:this.handleKeyDown.bind(this),onFocusIn:this.onFocusIn.bind(this)}))},e.prototype.resizeLeafColumnsToFit=function(t){this.groupResizeFeature&&this.groupResizeFeature.resizeLeafColumnsToFit(t)},e.prototype.setupUserComp=function(){var t=this,e=this.displayName,o={displayName:this.displayName,columnGroup:this.columnGroup,setExpanded:function(e){t.columnModel.setColumnGroupOpened(t.columnGroup.getProvidedColumnGroup(),e,"gridInitializing")},api:this.gridApi,columnApi:this.columnApi,context:this.gridOptionsService.context};if(!e){for(var n=this.columnGroup,i=n.getLeafColumns();n.getParent()&&n.getParent().getLeafColumns().length===i.length;)n=n.getParent();var r=n.getColGroupDef();r&&(e=r.headerName),e||(e=i?this.columnModel.getDisplayNameForColumn(i[0],"header",!0):"")}var a=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(a)},e.prototype.setupTooltip=function(){var t=this,e=this.columnGroup.getColGroupDef(),o={getColumn:function(){return t.columnGroup},getGui:function(){return t.eGui},getLocation:function(){return"headerGroup"},getTooltipValue:function(){return e&&e.headerTooltip}};e&&(o.getColDef=function(){return e}),this.createManagedBean(new H1(o,this.beans)).setComp(this.eGui)},e.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,wY.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,wY.EVENT_EXPANDED_CHANGED,this.refreshExpanded.bind(this))},e.prototype.refreshExpanded=function(){var t=this.columnGroup;this.expandable=t.isExpandable();var e=t.isExpanded();this.expandable?this.comp.setAriaExpanded(e?"true":"false"):this.comp.setAriaExpanded(void 0)},e.prototype.getColId=function(){return this.columnGroup.getUniqueId()},e.prototype.addClasses=function(){var t=this,e=this.columnGroup.getColGroupDef(),o=d3.getHeaderClassesFromColDef(e,this.gridOptionsService,null,this.columnGroup);this.columnGroup.isPadding()?(o.push("ag-header-group-cell-no-group"),this.columnGroup.getLeafColumns().every((function(t){return t.isSpanHeaderHeight()}))&&o.push("ag-header-span-height")):o.push("ag-header-group-cell-with-group"),o.forEach((function(e){return t.comp.addOrRemoveCssClass(e,!0)}))},e.prototype.setupMovingCss=function(){var t=this,e=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),o=function(){return t.comp.addOrRemoveCssClass("ag-header-cell-moving",t.columnGroup.isMoving())};e.forEach((function(e){t.addManagedListener(e,CY.EVENT_MOVING_CHANGED,o)})),o()},e.prototype.onFocusIn=function(t){if(!this.eGui.contains(t.relatedTarget)){var e=this.getRowIndex();this.beans.focusService.setFocusedHeader(e,this.columnGroup)}},e.prototype.handleKeyDown=function(e){t.prototype.handleKeyDown.call(this,e);var o=this.getWrapperHasFocus();if(this.expandable&&o&&e.key===Qq.ENTER){var n=this.columnGroup,i=!n.isExpanded();this.columnModel.setColumnGroupOpened(n.getProvidedColumnGroup(),i,"uiColumnExpanded")}},e.prototype.setDragSource=function(t){var e=this;if(!this.isSuppressMoving()){var o=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),n=!this.gridOptionsService.is("suppressDragLeaveHidesColumns"),i={type:NQ.HeaderCell,eElement:t,getDefaultIconName:function(){return n?LJ.ICON_HIDE:LJ.ICON_NOT_ALLOWED},dragItemName:this.displayName,getDragItem:this.getDragItemForGroup.bind(this),onDragStarted:function(){n=!e.gridOptionsService.is("suppressDragLeaveHidesColumns"),o.forEach((function(t){return t.setMoving(!0,"uiColumnDragged")}))},onDragStopped:function(){return o.forEach((function(t){return t.setMoving(!1,"uiColumnDragged")}))},onGridEnter:function(t){var o;if(n){var i=(null===(o=null==t?void 0:t.columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!0,"uiColumnMoved")}},onGridExit:function(t){var o;if(n){var i=(null===(o=null==t?void 0:t.columns)||void 0===o?void 0:o.filter((function(t){return!t.getColDef().lockVisible})))||[];e.columnModel.setColumnsVisible(i,!1,"uiColumnMoved")}}};this.dragAndDropService.addDragSource(i,!0),this.addDestroyFunc((function(){return e.dragAndDropService.removeDragSource(i)}))}},e.prototype.getDragItemForGroup=function(){var t=this.columnGroup.getProvidedColumnGroup().getLeafColumns(),e={};t.forEach((function(t){return e[t.getId()]=t.isVisible()}));var o=[];return this.columnModel.getAllDisplayedColumns().forEach((function(e){t.indexOf(e)>=0&&(o.push(e),DY(t,e))})),t.forEach((function(t){return o.push(t)})),{columns:o,visibleState:e}},e.prototype.isSuppressMoving=function(){var t=!1;return this.columnGroup.getLeafColumns().forEach((function(e){(e.getColDef().suppressMovable||e.getColDef().lockPosition)&&(t=!0)})),t||this.gridOptionsService.is("suppressMovableColumns")},i5([aY("columnModel")],e.prototype,"columnModel",void 0),i5([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),i5([aY("gridApi")],e.prototype,"gridApi",void 0),i5([aY("columnApi")],e.prototype,"columnApi",void 0),e}(T3),a5=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),s5=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},l5=0,u5=function(t){function e(e,o,n){var i=t.call(this)||this;i.instanceId=l5++,i.headerCellCtrls={},i.rowIndex=e,i.pinned=o,i.type=n;var r=n==A2.COLUMN_GROUP?"ag-header-row-column-group":n==A2.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row "+r,i}return a5(e,t),e.prototype.postConstruct=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.isEnsureDomOrder=this.gridOptionsService.is("ensureDomOrder")},e.prototype.getInstanceId=function(){return this.instanceId},e.prototype.setComp=function(t,e){void 0===e&&(e=!0),this.comp=t,e&&(this.onRowHeightChanged(),this.onVirtualColumnsChanged()),this.setWidth(),this.addEventListeners()},e.prototype.getHeaderRowClass=function(){return this.headerRowClass},e.prototype.getAriaRowIndex=function(){return this.rowIndex+1},e.prototype.getTransform=function(){if(NX())return"translateZ(0)"},e.prototype.addEventListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_VIRTUAL_COLUMNS_CHANGED,(function(e){return t.onVirtualColumnsChanged(e.afterScroll)})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("domLayout",this.onDisplayedColumnsChanged.bind(this)),this.addManagedPropertyListener("ensureDomOrder",(function(e){return t.isEnsureDomOrder=e.currentValue})),this.addManagedPropertyListener("headerHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("groupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("pivotGroupHeaderHeight",this.onRowHeightChanged.bind(this)),this.addManagedPropertyListener("floatingFiltersHeight",this.onRowHeightChanged.bind(this))},e.prototype.getHeaderCellCtrl=function(t){return C$(this.headerCellCtrls).find((function(e){return e.getColumnGroupChild()===t}))},e.prototype.onDisplayedColumnsChanged=function(){this.isPrintLayout=this.gridOptionsService.isDomLayout("print"),this.onVirtualColumnsChanged(),this.setWidth(),this.onRowHeightChanged()},e.prototype.getType=function(){return this.type},e.prototype.onColumnResized=function(){this.setWidth()},e.prototype.setWidth=function(){var t=this.getWidthForRow();this.comp.setWidth(t+"px")},e.prototype.getWidthForRow=function(){return this.isPrintLayout?null!=this.pinned?0:this.columnModel.getContainerWidth("right")+this.columnModel.getContainerWidth("left")+this.columnModel.getContainerWidth(null):this.columnModel.getContainerWidth(this.pinned)},e.prototype.onRowHeightChanged=function(){var t=this.getTopAndHeight(),e=t.topOffset,o=t.rowHeight;this.comp.setTop(e+"px"),this.comp.setHeight(o+"px")},e.prototype.getTopAndHeight=function(){var t=this.columnModel.getHeaderRowCount(),e=[],o=0;this.filterManager.hasFloatingFilters()&&(t++,o=1);for(var n=this.columnModel.getColumnGroupHeaderRowHeight(),i=this.columnModel.getColumnHeaderRowHeight(),r=t-(1+o),a=0;a=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},d5=function(t){function e(e){var o=t.call(this)||this;return o.hidden=!1,o.includeFloatingFilter=!1,o.groupsRowCtrls=[],o.pinned=e,o}return c5(e,t),e.prototype.setComp=function(t,e){this.comp=t,this.eViewport=e,this.setupCenterWidth(),this.setupPinnedWidth(),this.setupDragAndDrop(this.eViewport),this.addManagedListener(this.eventService,eK.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.ctrlsService.registerHeaderContainer(this,this.pinned),this.columnModel.isReady()&&this.refresh()},e.prototype.setupDragAndDrop=function(t){var e=new p3(this.pinned,t);this.createManagedBean(e)},e.prototype.refresh=function(t){var e=this;void 0===t&&(t=!1);var o,n,i=new hZ,r=this.focusService.getFocusHeaderToUseAfterRefresh();!function(){var t=e.columnModel.getHeaderRowCount()-1;e.groupsRowCtrls=e.destroyBeans(e.groupsRowCtrls);for(var o=0;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(this.groupsRowCtrls));return this.columnsRowCtrl&&t.push(this.columnsRowCtrl),this.filtersRowCtrl&&t.push(this.filtersRowCtrl),t},e.prototype.onGridColumnsChanged=function(){this.refresh(!0)},e.prototype.onDisplayedColumnsChanged=function(){var t=this.filterManager.hasFloatingFilters()&&!this.hidden;this.includeFloatingFilter!==t&&this.refresh(!0)},e.prototype.setupCenterWidth=function(){var t=this;null==this.pinned&&this.createManagedBean(new T2((function(e){return t.comp.setCenterWidth(e+"px")}),!0))},e.prototype.setHorizontalScroll=function(t){this.comp.setViewportScrollLeft(t)},e.prototype.setupPinnedWidth=function(){var t=this;if(null!=this.pinned){var e="left"===this.pinned,o="right"===this.pinned;this.hidden=!0;var n=function(){var n=e?t.pinnedWidthService.getPinnedLeftWidth():t.pinnedWidthService.getPinnedRightWidth();if(null!=n){var i=0==n,r=t.hidden!==i,a=t.gridOptionsService.is("enableRtl"),s=t.gridOptionsService.getScrollbarWidth(),l=t.scrollVisibleService.isVerticalScrollShowing()&&(a&&e||!a&&o)?n+s:n;t.comp.setPinnedContainerWidth(l+"px"),t.comp.setDisplayed(!i),r&&(t.hidden=i,t.refresh())}};this.addManagedListener(this.eventService,eK.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,eK.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,eK.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,eK.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}},e.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof CY){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var e=0;e=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},g5=function(t){function e(e){var o=t.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=e,o}return h5(e,t),e.prototype.init=function(){var t=this;this.selectAndSetTemplate();var e={setDisplayed:function(e){return t.setDisplayed(e)},setCtrls:function(e){return t.setCtrls(e)},setCenterWidth:function(e){return t.eCenterContainer.style.width=e},setViewportScrollLeft:function(e){return t.getGui().scrollLeft=e},setPinnedContainerWidth:function(e){var o=t.getGui();o.style.width=e,o.style.maxWidth=e,o.style.minWidth=e}};this.createManagedBean(new d5(this.pinned)).setComp(e,this.getGui())},e.prototype.selectAndSetTemplate=function(){var t="left"==this.pinned,o="right"==this.pinned,n=t?e.PINNED_LEFT_TEMPLATE:o?e.PINNED_RIGHT_TEMPLATE:e.CENTER_TEMPLATE;this.setTemplate(n),this.eRowContainer=this.eCenterContainer?this.eCenterContainer:this.getGui()},e.prototype.destroyRowComps=function(){this.setCtrls([])},e.prototype.destroyRowComp=function(t){this.destroyBean(t),this.eRowContainer.removeChild(t.getGui())},e.prototype.setCtrls=function(t){var e,o=this,n=this.headerRowComps;this.headerRowComps={},this.rowCompsList=[],t.forEach((function(t){var i=t.getInstanceId(),r=n[i];delete n[i];var a=r||o.createBean(new b3(t));o.headerRowComps[i]=a,o.rowCompsList.push(a),function(t){var n=t.getGui();n.parentElement!=o.eRowContainer&&o.eRowContainer.appendChild(n),e&&Aq(o.eRowContainer,n,e),e=n}(a)})),A$(n).forEach((function(t){return o.destroyRowComp(t)}))},e.PINNED_LEFT_TEMPLATE='',e.PINNED_RIGHT_TEMPLATE='',e.CENTER_TEMPLATE='',f5([TZ("eCenterContainer")],e.prototype,"eCenterContainer",void 0),f5([nY],e.prototype,"init",null),f5([iY],e.prototype,"destroyRowComps",null),e}(EZ),v5=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),y5=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(z3||(z3={}));var m5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v5(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.gridBodyCon=e.gridBodyCtrl}))},e.prototype.getHeaderRowCount=function(){var t=this.ctrlsService.getHeaderRowContainerCtrl();return t?t.getRowCount():0},e.prototype.navigateVertically=function(t,e,o){if(e||(e=this.focusService.getFocusedHeader()),!e)return!1;var n=e.headerRowIndex,i=e.column,r=this.getHeaderRowCount(),a=t===z3.UP?this.headerPositionUtils.getColumnVisibleParent(i,n):this.headerPositionUtils.getColumnVisibleChild(i,n),s=a.nextRow,l=a.nextFocusColumn,u=!1;return s<0&&(s=0,l=i,u=!0),s>=r&&(s=-1),!(!u&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s,column:l},allowUserOverride:!0,event:o})},e.prototype.navigateHorizontally=function(t,e,o){void 0===e&&(e=!1);var n,i,r=this.focusService.getFocusedHeader();return t===z3.LEFT!==this.gridOptionsService.is("enableRtl")?(i="Before",n=this.headerPositionUtils.findHeader(r,i)):(i="After",n=this.headerPositionUtils.findHeader(r,i)),n||!e?this.focusService.focusHeaderPosition({headerPosition:n,direction:i,fromTab:e,allowUserOverride:!0,event:o}):this.focusNextHeaderRow(r,i,o)},e.prototype.focusNextHeaderRow=function(t,e,o){var n,i=t.headerRowIndex,r=null;return"Before"===e?i>0&&(n=i-1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(n,"end")):(n=i+1,r=this.headerPositionUtils.findColAtEdgeForHeaderRow(n,"start")),this.focusService.focusHeaderPosition({headerPosition:r,direction:e,fromTab:!0,allowUserOverride:!0,event:o})},e.prototype.scrollToColumn=function(t,e){if(void 0===e&&(e="After"),!t.getPinned()){var o;if(t instanceof tK){var n=t.getDisplayedLeafColumns();o="Before"===e?_Y(n):n[0]}else o=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},y5([aY("focusService")],e.prototype,"focusService",void 0),y5([aY("headerPositionUtils")],e.prototype,"headerPositionUtils",void 0),y5([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),y5([nY],e.prototype,"postConstruct",null),y5([rY("headerNavigationService")],e)}(qY),C5=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),w5=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},S5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C5(e,t),e.prototype.setComp=function(t,e,o){this.comp=t,this.eGui=e,this.createManagedBean(new kZ(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.onPivotModeChanged(),this.setupHeaderHeight(),this.ctrlsService.registerGridHeaderCtrl(this)},e.prototype.setupHeaderHeight=function(){var t=this.setHeaderHeight.bind(this);t(),this.addManagedPropertyListener("headerHeight",t),this.addManagedPropertyListener("pivotHeaderHeight",t),this.addManagedPropertyListener("groupHeaderHeight",t),this.addManagedPropertyListener("pivotGroupHeaderHeight",t),this.addManagedPropertyListener("floatingFiltersHeight",t),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_GRID_STYLES_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,t)},e.prototype.getHeaderHeight=function(){return this.headerHeight},e.prototype.setHeaderHeight=function(){var t,e=this.columnModel,o=0,n=e.getHeaderRowCount();this.filterManager.hasFloatingFilters()&&(n++,o=1);var i=this.columnModel.getColumnGroupHeaderRowHeight(),r=this.columnModel.getColumnHeaderRowHeight(),a=n-(1+o);if(t=o*e.getFloatingFiltersHeight(),t+=a*i,t+=r,this.headerHeight!==t){this.headerHeight=t;var s=t+1+"px";this.comp.setHeightAndMinHeight(s),this.eventService.dispatchEvent({type:eK.EVENT_HEADER_HEIGHT_CHANGED})}},e.prototype.onPivotModeChanged=function(){var t=this.columnModel.isPivotMode();this.comp.addOrRemoveCssClass("ag-pivot-on",t),this.comp.addOrRemoveCssClass("ag-pivot-off",!t)},e.prototype.onDisplayedColumnsChanged=function(){var t=this.columnModel.getAllDisplayedColumns().some((function(t){return t.isSpanHeaderHeight()}));this.comp.addOrRemoveCssClass("ag-header-allow-overflow",t)},e.prototype.onTabKeyDown=function(t){var e=this.gridOptionsService.is("enableRtl"),o=t.shiftKey!==e?z3.LEFT:z3.RIGHT;(this.headerNavigationService.navigateHorizontally(o,!0,t)||this.focusService.focusNextGridCoreContainer(t.shiftKey))&&t.preventDefault()},e.prototype.handleKeyDown=function(t){var e=null;switch(t.key){case Qq.LEFT:e=z3.LEFT;case Qq.RIGHT:h$(e)||(e=z3.RIGHT),this.headerNavigationService.navigateHorizontally(e,!1,t);break;case Qq.UP:e=z3.UP;case Qq.DOWN:h$(e)||(e=z3.DOWN),this.headerNavigationService.navigateVertically(e,null,t)&&t.preventDefault();break;default:return}},e.prototype.onFocusOut=function(t){var e=this.gridOptionsService.getDocument(),o=t.relatedTarget;!o&&this.eGui.contains(e.activeElement)||this.eGui.contains(o)||this.focusService.clearFocusedHeader()},w5([aY("headerNavigationService")],e.prototype,"headerNavigationService",void 0),w5([aY("focusService")],e.prototype,"focusService",void 0),w5([aY("columnModel")],e.prototype,"columnModel",void 0),w5([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),w5([aY("filterManager")],e.prototype,"filterManager",void 0),e}(qY),b5=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_5=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return b5(e,t),e.prototype.postConstruct=function(){var t=this,e={addOrRemoveCssClass:function(e,o){return t.addOrRemoveCssClass(e,o)},setHeightAndMinHeight:function(e){t.getGui().style.height=e,t.getGui().style.minHeight=e}};this.createManagedBean(new S5).setComp(e,this.getGui(),this.getFocusableElement());var o=function(e){t.createManagedBean(e),t.appendChild(e)};o(new g5("left")),o(new g5(null)),o(new g5("right"))},e.TEMPLATE='')||this;return e.hasHighlighting=!1,e}return l6(e,t),e.prototype.setState=function(t,e){this.value=t,this.render(),this.updateSelected(e)},e.prototype.updateSelected=function(t){this.addOrRemoveCssClass("ag-autocomplete-row-selected",t)},e.prototype.setSearchString=function(t){var e,o=!1;if(h$(t)){var n=null===(e=this.value)||void 0===e?void 0:e.toLocaleLowerCase().indexOf(t.toLocaleLowerCase());if(n>=0){o=!0,this.hasHighlighting=!0;var i=n+t.length,r=uK(this.value.slice(0,n)),a=uK(this.value.slice(n,i)),s=uK(this.value.slice(i));this.getGui().lastElementChild.innerHTML=r+""+a+""+s}}!o&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},e.prototype.render=function(){var t;this.getGui().lastElementChild.innerHTML=null!==(t=uK(this.value))&&void 0!==t?t:" "},e}(EZ),c6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),p6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},d6=function(t){function e(o){var n=t.call(this,e.TEMPLATE)||this;return n.params=o,n.searchString="",n}return c6(e,t),e.prototype.destroy=function(){t.prototype.destroy.call(this)},e.prototype.init=function(){var t=this;this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList=this.createManagedBean(new M4({cssIdentifier:"autocomplete"})),this.virtualList.setComponentCreator(this.createRowComponent.bind(this)),this.eList.appendChild(this.virtualList.getGui()),this.virtualList.setModel({getRowCount:function(){return t.autocompleteEntries.length},getRow:function(e){return t.autocompleteEntries[e]}});var e=this.virtualList.getGui();this.addManagedListener(e,"click",(function(){return t.params.onConfirmed()})),this.addManagedListener(e,"mousemove",this.onMouseMove.bind(this)),this.addManagedListener(e,"mousedown",(function(t){return t.preventDefault()})),this.setSelectedValue(0)},e.prototype.onNavigationKeyDown=function(t,e){t.preventDefault();var o=this.autocompleteEntries.indexOf(this.selectedValue),n=e===Qq.UP?o-1:o+1;this.checkSetSelectedValue(n)},e.prototype.setSearch=function(t){this.searchString=t,h$(t)?this.runSearch():(this.autocompleteEntries=this.params.autocompleteEntries,this.virtualList.refresh(),this.checkSetSelectedValue(0)),this.updateSearchInList()},e.prototype.runContainsSearch=function(t,e){var o,n=!1,i=t.toLocaleLowerCase(),r=e.filter((function(t){var e=t.toLocaleLowerCase().indexOf(i),r=0===e,a=e>=0;return a&&(!o||!n&&r||n===r&&t.length=0&&t\n
\n
',p6([TZ("eList")],e.prototype,"eList",void 0),p6([nY],e.prototype,"init",null),e}(uJ),h6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),f6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},g6=function(t){function e(){var e=t.call(this,'\n ')||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return h6(e,t),e.prototype.postConstruct=function(){var t=this;this.eAutocompleteInput.onValueChange((function(e){return t.onValueChanged(e)})),this.eAutocompleteInput.getInputElement().setAttribute("autocomplete","off"),this.addGuiEventListener("keydown",this.onKeyDown.bind(this)),this.addGuiEventListener("click",this.updatePositionAndList.bind(this)),this.addDestroyFunc((function(){t.destroyBean(t.autocompleteList)})),this.addGuiEventListener("focusout",(function(){return t.onFocusOut()}))},e.prototype.onValueChanged=function(t){var e=d$(t);this.updateValue(e),this.updateAutocompleteList(e)},e.prototype.updateValue=function(t){this.updateLastPosition(),this.dispatchEvent({type:e.EVENT_VALUE_CHANGED,value:t}),this.validate(t)},e.prototype.updateAutocompleteList=function(t){var e,o,n,i,r=null!==(o=null===(e=this.listGenerator)||void 0===e?void 0:e.call(this,t,this.lastPosition))&&void 0!==o?o:{enabled:!1};if(r.type&&r.type===(null===(n=this.autocompleteListParams)||void 0===n?void 0:n.type)||this.isListOpen&&this.closeList(),this.autocompleteListParams=r,null===(i=this.autocompleteListParams)||void 0===i?void 0:i.enabled){this.isListOpen||this.openList();var a=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(null!=a?a:"")}else this.isListOpen&&this.closeList()},e.prototype.onKeyDown=function(t){var e=this,o=t.key;switch(this.updateLastPosition(),o){case Qq.ENTER:this.onEnterKeyDown(t);break;case Qq.TAB:this.onTabKeyDown(t);break;case Qq.DOWN:case Qq.UP:this.onUpDownKeyDown(t,o);break;case Qq.LEFT:case Qq.RIGHT:case Qq.PAGE_HOME:case Qq.PAGE_END:setTimeout((function(){e.updatePositionAndList()}));break;case Qq.ESCAPE:this.onEscapeKeyDown(t);break;case Qq.SPACE:t.ctrlKey&&!this.isListOpen&&(t.preventDefault(),this.forceOpenList())}},e.prototype.confirmSelection=function(){var t,o=null===(t=this.autocompleteList)||void 0===t?void 0:t.getSelectedValue();o&&(this.closeList(),this.dispatchEvent({type:e.EVENT_OPTION_SELECTED,value:this.getValue(),position:this.lastPosition,updateEntry:o,autocompleteType:this.autocompleteListParams.type}))},e.prototype.onTabKeyDown=function(t){this.isListOpen&&(t.preventDefault(),t.stopPropagation(),this.confirmSelection())},e.prototype.onEnterKeyDown=function(t){t.preventDefault(),this.isListOpen?this.confirmSelection():this.onCompleted()},e.prototype.onUpDownKeyDown=function(t,e){var o;t.preventDefault(),this.isListOpen?null===(o=this.autocompleteList)||void 0===o||o.onNavigationKeyDown(t,e):this.forceOpenList()},e.prototype.onEscapeKeyDown=function(t){this.isListOpen&&(t.preventDefault(),t.stopPropagation(),this.closeList(),this.setCaret(this.lastPosition,!0))},e.prototype.onFocusOut=function(){this.isListOpen&&this.closeList()},e.prototype.updatePositionAndList=function(){var t;this.updateLastPosition(),this.updateAutocompleteList(null!==(t=this.eAutocompleteInput.getValue())&&void 0!==t?t:null)},e.prototype.setCaret=function(t,e){var o=this.gridOptionsService.getDocument();e&&o.activeElement===o.body&&this.eAutocompleteInput.getFocusableElement().focus(),this.eAutocompleteInput.getInputElement().setSelectionRange(t,t)},e.prototype.forceOpenList=function(){this.onValueChanged(this.eAutocompleteInput.getValue())},e.prototype.updateLastPosition=function(){var t;this.lastPosition=null!==(t=this.eAutocompleteInput.getInputElement().selectionStart)&&void 0!==t?t:0},e.prototype.validate=function(t){var o;this.validator&&(this.validationMessage=this.validator(t),this.eAutocompleteInput.getInputElement().setCustomValidity(null!==(o=this.validationMessage)&&void 0!==o?o:""),this.valid=!this.validationMessage,this.dispatchEvent({type:e.EVENT_VALID_CHANGED,isValid:this.valid,validationMessage:this.validationMessage}))},e.prototype.openList=function(){var t=this;this.isListOpen=!0,this.autocompleteList=this.createBean(new d6({autocompleteEntries:this.autocompleteListParams.entries,onConfirmed:function(){return t.confirmSelection()},forceLastSelection:this.forceLastSelection}));var e=this.autocompleteList.getGui(),o={ePopup:e,type:"autocomplete",eventSource:this.getGui(),position:"under",alignSide:this.gridOptionsService.is("enableRtl")?"right":"left",keepWithinBounds:!0},n=this.popupService.addPopup({eChild:e,anchorToElement:this.getGui(),positionCallback:function(){return t.popupService.positionPopupByComponent(o)},ariaLabel:this.listAriaLabel});this.hidePopup=n.hideFunc,this.autocompleteList.afterGuiAttached()},e.prototype.closeList=function(){this.isListOpen=!1,this.hidePopup(),this.destroyBean(this.autocompleteList),this.autocompleteList=null},e.prototype.onCompleted=function(){this.isListOpen&&this.closeList(),this.dispatchEvent({type:e.EVENT_VALUE_CONFIRMED,value:this.getValue(),isValid:this.isValid()})},e.prototype.getValue=function(){return d$(this.eAutocompleteInput.getValue())},e.prototype.setInputPlaceholder=function(t){return this.eAutocompleteInput.setInputPlaceholder(t),this},e.prototype.setInputAriaLabel=function(t){return this.eAutocompleteInput.setInputAriaLabel(t),this},e.prototype.setListAriaLabel=function(t){return this.listAriaLabel=t,this},e.prototype.setListGenerator=function(t){return this.listGenerator=t,this},e.prototype.setValidator=function(t){return this.validator=t,this},e.prototype.isValid=function(){return this.valid},e.prototype.setValue=function(t){var e=t.value,o=t.position,n=t.silent,i=t.updateListOnlyIfOpen,r=t.restoreFocus;this.eAutocompleteInput.setValue(e,!0),this.setCaret(null!=o?o:this.lastPosition,r),n||this.updateValue(e),i&&!this.isListOpen||this.updateAutocompleteList(e)},e.prototype.setForceLastSelection=function(t){return this.forceLastSelection=t,this},e.prototype.setInputDisabled=function(t){return this.eAutocompleteInput.setDisabled(t),this},e.EVENT_VALUE_CHANGED="eventValueChanged",e.EVENT_VALUE_CONFIRMED="eventValueConfirmed",e.EVENT_OPTION_SELECTED="eventOptionSelected",e.EVENT_VALID_CHANGED="eventValidChanged",f6([aY("popupService")],e.prototype,"popupService",void 0),f6([TZ("eAutocompleteInput")],e.prototype,"eAutocompleteInput",void 0),f6([nY],e.prototype,"postConstruct",null),e}(EZ),v6=["mouseover","mouseout","mouseenter","mouseleave","mousemove"],y6=["touchstart","touchend","touchmove","touchcancel"],m6=function(){function t(){this.renderingEngine="vanilla",this.isOutsideAngular=function(t){return IY(v6,t)}}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.setInterval=function(t,e){return new vZ((function(o){o(window.setInterval(t,e))}))},t.prototype.addEventListener=function(t,e,o,n){var i=IY(y6,e);t.addEventListener(e,o,{capture:!!n,passive:i})},t.prototype.dispatchEvent=function(t,e,o){e()},t.prototype.frameworkComponent=function(t){return null},t.prototype.isFrameworkComponent=function(t){return!1},t}(),C6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),w6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},S6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C6(e,t),e.prototype.getNextCellToFocus=function(t,e,o){return void 0===o&&(o=!1),o?this.getNextCellToFocusWithCtrlPressed(t,e):this.getNextCellToFocusWithoutCtrlPressed(t,e)},e.prototype.getNextCellToFocusWithCtrlPressed=function(t,e){var o,n,i=t===Qq.UP,r=t===Qq.DOWN,a=t===Qq.LEFT;if(i||r)n=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=e.column;else{var s=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");n=e.rowIndex,o=a!==l?s[0]:_Y(s)}return{rowIndex:n,rowPinned:null,column:o}},e.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,e){for(var o=e,n=!1;!n;){switch(t){case Qq.UP:o=this.getCellAbove(o);break;case Qq.DOWN:o=this.getCellBelow(o);break;case Qq.RIGHT:o=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case Qq.LEFT:o=this.gridOptionsService.is("enableRtl")?this.getCellToRight(o):this.getCellToLeft(o);break;default:o=null,console.warn("AG Grid: unknown key for navigation "+t)}n=!o||this.isCellGoodToFocusOn(o)}return o},e.prototype.isCellGoodToFocusOn=function(t){var e,o=t.column;switch(t.rowPinned){case"top":e=this.pinnedRowModel.getPinnedTopRow(t.rowIndex);break;case"bottom":e=this.pinnedRowModel.getPinnedBottomRow(t.rowIndex);break;default:e=this.rowModel.getRow(t.rowIndex)}return!!e&&!o.isSuppressNavigable(e)},e.prototype.getCellToLeft=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColBefore(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getCellToRight=function(t){if(!t)return null;var e=this.columnModel.getDisplayedColAfter(t.column);return e?{rowIndex:t.rowIndex,column:e,rowPinned:t.rowPinned}:null},e.prototype.getRowBelow=function(t){var e=t.rowIndex,o=t.rowPinned;if(this.isLastRowInContainer(t))switch(o){case"bottom":return null;case"top":return this.rowModel.isRowsToRender()?{rowIndex:this.paginationProxy.getPageFirstRow(),rowPinned:null}:this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null;default:return this.pinnedRowModel.isRowsToRender("bottom")?{rowIndex:0,rowPinned:"bottom"}:null}var n=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(n)||{rowIndex:e+1,rowPinned:o}},e.prototype.getNextStickyPosition=function(t,e){if(this.gridOptionsService.isGroupRowsSticky()&&t&&t.sticky){var o=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(this.rowRenderer.getStickyTopRowCtrls())).sort((function(t,e){return t.getRowNode().rowIndex-e.getRowNode().rowIndex})),n=e?-1:1,i=o.findIndex((function(e){return e.getRowNode().rowIndex===t.rowIndex})),r=o[i+n];return r?{rowIndex:r.getRowNode().rowIndex,rowPinned:null}:void 0}},e.prototype.getCellBelow=function(t){if(!t)return null;var e=this.getRowBelow(t);return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.isLastRowInContainer=function(t){var e=t.rowPinned,o=t.rowIndex;return"top"===e?this.pinnedRowModel.getPinnedTopRowData().length-1<=o:"bottom"===e?this.pinnedRowModel.getPinnedBottomRowData().length-1<=o:this.paginationProxy.getPageLastRow()<=o},e.prototype.getRowAbove=function(t){var e=t.rowIndex,o=t.rowPinned;if(o?0===e:e===this.paginationProxy.getPageFirstRow())return"top"===o?null:o&&this.rowModel.isRowsToRender()?this.getLastBodyCell():this.pinnedRowModel.isRowsToRender("top")?this.getLastFloatingTopRow():null;var n=this.rowModel.getRow(t.rowIndex);return this.getNextStickyPosition(n,!0)||{rowIndex:e-1,rowPinned:o}},e.prototype.getCellAbove=function(t){if(!t)return null;var e=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});return e?{rowIndex:e.rowIndex,column:t.column,rowPinned:e.rowPinned}:null},e.prototype.getLastBodyCell=function(){return{rowIndex:this.paginationProxy.getPageLastRow(),rowPinned:null}},e.prototype.getLastFloatingTopRow=function(){return{rowIndex:this.pinnedRowModel.getPinnedTopRowData().length-1,rowPinned:"top"}},e.prototype.getNextTabbedCell=function(t,e){return e?this.getNextTabbedCellBackwards(t):this.getNextTabbedCellForwards(t)},e.prototype.getNextTabbedCellForwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,i=this.columnModel.getDisplayedColAfter(t.column);if(!i){i=e[0];var r=this.getRowBelow(t);if(f$(r))return null;if(!r.rowPinned&&!this.paginationProxy.isRowInPage(r))return null;o=r?r.rowIndex:null,n=r?r.rowPinned:null}return{rowIndex:o,column:i,rowPinned:n}},e.prototype.getNextTabbedCellBackwards=function(t){var e=this.columnModel.getAllDisplayedColumns(),o=t.rowIndex,n=t.rowPinned,i=this.columnModel.getDisplayedColBefore(t.column);if(!i){i=_Y(e);var r=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(f$(r))return null;if(!r.rowPinned&&!this.paginationProxy.isRowInPage(r))return null;o=r?r.rowIndex:null,n=r?r.rowPinned:null}return{rowIndex:o,column:i,rowPinned:n}},w6([aY("columnModel")],e.prototype,"columnModel",void 0),w6([aY("rowModel")],e.prototype,"rowModel",void 0),w6([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),w6([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),w6([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),w6([rY("cellNavigationService")],e)}(qY),b6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),_6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},x6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return b6(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.init=function(){this.addManagedListener(this.eventService,eK.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_BODY_SCROLL,this.fireScrollEvent.bind(this))},e.prototype.fireEvent=function(t){if(!this.consuming){var e=this.gridOptionsService.get("alignedGrids");e&&e.forEach((function(e){if(e.api){var o=e.api.__getAlignedGridService();t(o)}}))}},e.prototype.onEvent=function(t){this.consuming=!0,t(),this.consuming=!1},e.prototype.fireColumnEvent=function(t){this.fireEvent((function(e){e.onColumnEvent(t)}))},e.prototype.fireScrollEvent=function(t){"horizontal"===t.direction&&this.fireEvent((function(e){e.onScrollEvent(t)}))},e.prototype.onScrollEvent=function(t){var e=this;this.onEvent((function(){e.ctrlsService.getGridBodyCtrl().getScrollFeature().setHorizontalScrollPosition(t.left,!0)}))},e.prototype.getMasterColumns=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t)})):t.column&&e.push(t.column),e},e.prototype.getColumnIds=function(t){var e=[];return t.columns?t.columns.forEach((function(t){e.push(t.getColId())})):t.column&&e.push(t.column.getColId()),e},e.prototype.onColumnEvent=function(t){var e=this;this.onEvent((function(){switch(t.type){case eK.EVENT_COLUMN_MOVED:case eK.EVENT_COLUMN_VISIBLE:case eK.EVENT_COLUMN_PINNED:case eK.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case eK.EVENT_COLUMN_GROUP_OPENED:var n=t;e.processGroupOpenedEvent(n);break;case eK.EVENT_COLUMN_PIVOT_CHANGED:console.warn("AG Grid: pivoting is not supported with aligned grids. You can only use one of these features at a time in a grid.")}}))},e.prototype.processGroupOpenedEvent=function(t){var e=t.columnGroup,o=null;if(e){var n=e.getGroupId();o=this.columnModel.getProvidedColumnGroup(n)}e&&!o||(this.logger.log("onColumnEvent-> processing "+t+" expanded = "+e.isExpanded()),this.columnModel.setColumnGroupOpened(o,e.isExpanded(),"alignedGridChanged"))},e.prototype.processColumnEvent=function(t){var e,o=this,n=t.column,i=null;if(n&&(i=this.columnModel.getPrimaryColumn(n.getColId())),!n||i){var r=this.getMasterColumns(t);switch(t.type){case eK.EVENT_COLUMN_MOVED:var a=t,s=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:s,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+a.toIndex);break;case eK.EVENT_COLUMN_VISIBLE:var l=t;s=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}})),this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible);break;case eK.EVENT_COLUMN_PINNED:var u=t;s=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}})),this.columnModel.applyColumnState({state:s},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned);break;case eK.EVENT_COLUMN_RESIZED:var c=t,p={};r.forEach((function(e){o.logger.log("onColumnEvent-> processing "+t.type+" actualWidth = "+e.getActualWidth()),p[e.getId()]={key:e.getColId(),newWidth:e.getActualWidth()}})),null===(e=c.flexColumns)||void 0===e||e.forEach((function(t){p[t.getId()]&&delete p[t.getId()]})),this.columnModel.setColumnWidths(Object.values(p),!1,c.finished,"alignedGridChanged")}var d=this.ctrlsService.getGridBodyCtrl().isVerticalScrollShowing(),h=this.gridOptionsService.get("alignedGrids");h&&h.forEach((function(t){t.api&&t.api.setAlwaysShowVerticalScroll(d)}))}},_6([aY("columnModel")],e.prototype,"columnModel",void 0),_6([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),_6([(o=0,n=uY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),_6([nY],e.prototype,"init",null),_6([rY("alignedGridsService")],e);var o,n}(qY),E6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),T6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},D6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return E6(e,t),e.prototype.setBeans=function(t){this.logger=t.create("selectionService"),this.reset()},e.prototype.init=function(){var t=this;this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.addManagedPropertyListener("groupSelectsChildren",(function(e){return t.groupSelectsChildren=e.currentValue})),this.rowSelection=this.gridOptionsService.get("rowSelection"),this.addManagedPropertyListener("rowSelection",(function(e){return t.rowSelection=e.currentValue})),this.addManagedListener(this.eventService,eK.EVENT_ROW_SELECTED,this.onRowSelected.bind(this))},e.prototype.isMultiselect=function(){return"multiple"===this.rowSelection},e.prototype.setNodesSelected=function(t){var e;if(0===t.nodes.length)return 0;var o=t.newValue,n=t.clearSelection,i=t.suppressFinishActions,r=t.rangeSelect;t.event;var a=t.source,s=void 0===a?"api":a;if(t.nodes.length>1&&!this.isMultiselect())return console.warn("AG Grid: cannot multi select while rowSelection='single'"),0;var l=this.groupSelectsChildren&&!0===t.groupSelectsFiltered,u=t.nodes.map((function(t){return t.footer?t.sibling:t}));if(r){if(t.nodes.length>1)return console.warn("AG Grid: cannot range select while selecting multiple rows"),0;var c=this.getLastSelectedNode();if(c&&c!==(f=u[0])&&this.isMultiselect()){var p=this.selectRange(f,c,t.newValue,s);return this.setLastSelectedNode(f),p}}for(var d=0,h=0;h0){this.updateGroupsFromChildrenSelections(s);var g={type:eK.EVENT_SELECTION_CHANGED,source:s};this.eventService.dispatchEvent(g)}o&&this.setLastSelectedNode(u[u.length-1])}return d},e.prototype.selectRange=function(t,e,o,n){var i=this;void 0===o&&(o=!0);var r=this.rowModel.getNodesInRangeForSelection(t,e),a=0;r.forEach((function(e){e.group&&i.groupSelectsChildren||!1===o&&t===e||e.selectThisNode(o,void 0,n)&&a++})),this.updateGroupsFromChildrenSelections(n);var s={type:eK.EVENT_SELECTION_CHANGED,source:n};return this.eventService.dispatchEvent(s),a},e.prototype.selectChildren=function(t,e,o,n){var i=o?t.childrenAfterAggFilter:t.childrenAfterGroup;return dZ.missing(i)?0:this.setNodesSelected({newValue:e,clearSelection:!1,suppressFinishActions:!0,groupSelectsFiltered:o,source:n,nodes:i})},e.prototype.setLastSelectedNode=function(t){this.lastSelectedNode=t},e.prototype.getLastSelectedNode=function(){return this.lastSelectedNode},e.prototype.getSelectedNodes=function(){var t=[];return x$(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},e.prototype.getSelectedRows=function(){var t=[];return x$(this.selectedNodes,(function(e,o){o&&o.data&&t.push(o.data)})),t},e.prototype.getSelectionCount=function(){return Object.values(this.selectedNodes).length},e.prototype.filterFromSelection=function(t){var e={};Object.entries(this.selectedNodes).forEach((function(o){var n=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(o,2),i=n[0],r=n[1];r&&t(r)&&(e[i]=r)})),this.selectedNodes=e},e.prototype.updateGroupsFromChildrenSelections=function(t,e){if(!this.groupSelectsChildren)return!1;if("clientSide"!==this.rowModel.getType())return!1;var o=this.rowModel.getRootNode();e||(e=new n4(!0,o)).setInactive();var n=!1;return e.forEachChangedNodeDepthFirst((function(e){if(e!==o){var i=e.calculateSelectedFromChildren();n=e.selectThisNode(null!==i&&i,void 0,t)||n}})),n},e.prototype.clearOtherNodes=function(t,e){var o=this,n={},i=0;return x$(this.selectedNodes,(function(r,a){if(a&&a.id!==t.id){var s=o.selectedNodes[a.id];i+=s.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:e}),o.groupSelectsChildren&&a.parent&&(n[a.parent.id]=a.parent)}})),x$(n,(function(t,o){var n=o.calculateSelectedFromChildren();o.selectThisNode(null!==n&&n,void 0,e)})),i},e.prototype.onRowSelected=function(t){var e=t.node;this.groupSelectsChildren&&e.group||(e.isSelected()?this.selectedNodes[e.id]=e:delete this.selectedNodes[e.id])},e.prototype.syncInRowNode=function(t,e){this.syncInOldRowNode(t,e),this.syncInNewRowNode(t)},e.prototype.syncInOldRowNode=function(t,e){if(h$(e)&&t.id!==e.id&&e){var o=e.id;this.selectedNodes[o]==t&&(this.selectedNodes[e.id]=e)}},e.prototype.syncInNewRowNode=function(t){h$(this.selectedNodes[t.id])?(t.setSelectedInitialValue(!0),this.selectedNodes[t.id]=t):t.setSelectedInitialValue(!1)},e.prototype.reset=function(){this.logger.log("reset"),this.selectedNodes={},this.lastSelectedNode=null},e.prototype.getBestCostNodeSelection=function(){if("clientSide"===this.rowModel.getType()){var t=this.rowModel.getTopLevelNodes();if(null!==t){var e=[];return function t(o){for(var n=0,i=o.length;n0&&i>0?null:n>0)},e.prototype.getNodesToSelect=function(t,e){var o=this;if(void 0===t&&(t=!1),void 0===e&&(e=!1),"clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var n=[];if(e)return this.paginationProxy.forEachNodeOnPage((function(t){if(t.group)if(t.expanded)o.groupSelectsChildren||n.push(t);else{var e=function(t){var o;n.push(t),(null===(o=t.childrenAfterFilter)||void 0===o?void 0:o.length)&&t.childrenAfterFilter.forEach(e)};e(t)}else n.push(t)})),n;var i=this.rowModel;return t?(i.forEachNodeAfterFilter((function(t){n.push(t)})),n):(i.forEachNode((function(t){n.push(t)})),n)},e.prototype.selectAllRowNodes=function(t){if("clientSide"!==this.rowModel.getType())throw new Error("selectAll only available when rowModelType='clientSide', ie not "+this.rowModel.getType());var e=t.source,o=t.justFiltered,n=t.justCurrentPage;this.getNodesToSelect(o,n).forEach((function(t){return t.selectThisNode(!0,void 0,e)})),"clientSide"===this.rowModel.getType()&&this.groupSelectsChildren&&this.updateGroupsFromChildrenSelections(e);var i={type:eK.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(i)},e.prototype.getServerSideSelectionState=function(){return null},e.prototype.setServerSideSelectionState=function(t){},T6([aY("rowModel")],e.prototype,"rowModel",void 0),T6([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),T6([(o=0,n=uY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),T6([nY],e.prototype,"init",null),T6([rY("selectionService")],e);var o,n}(qY),R6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},O6=function(){function t(){}return t.prototype.sizeColumnsToFit=function(t){void 0===t&&console.error("AG Grid: missing parameter to columnApi.sizeColumnsToFit(gridWidth)"),this.columnModel.sizeColumnsToFit(t,"api")},t.prototype.setColumnGroupOpened=function(t,e){this.columnModel.setColumnGroupOpened(t,e,"api")},t.prototype.getColumnGroup=function(t,e){return this.columnModel.getColumnGroup(t,e)},t.prototype.getProvidedColumnGroup=function(t){return this.columnModel.getProvidedColumnGroup(t)},t.prototype.getDisplayNameForColumn=function(t,e){return this.columnModel.getDisplayNameForColumn(t,e)||""},t.prototype.getDisplayNameForColumnGroup=function(t,e){return this.columnModel.getDisplayNameForColumnGroup(t,e)||""},t.prototype.getColumn=function(t){return this.columnModel.getPrimaryColumn(t)},t.prototype.getColumns=function(){return this.columnModel.getAllPrimaryColumns()},t.prototype.applyColumnState=function(t){return this.columnModel.applyColumnState(t,"api")},t.prototype.getColumnState=function(){return this.columnModel.getColumnState()},t.prototype.resetColumnState=function(){this.columnModel.resetColumnState("api")},t.prototype.getColumnGroupState=function(){return this.columnModel.getColumnGroupState()},t.prototype.setColumnGroupState=function(t){this.columnModel.setColumnGroupState(t,"api")},t.prototype.resetColumnGroupState=function(){this.columnModel.resetColumnGroupState("api")},t.prototype.isPinning=function(){return this.columnModel.isPinningLeft()||this.columnModel.isPinningRight()},t.prototype.isPinningLeft=function(){return this.columnModel.isPinningLeft()},t.prototype.isPinningRight=function(){return this.columnModel.isPinningRight()},t.prototype.getDisplayedColAfter=function(t){return this.columnModel.getDisplayedColAfter(t)},t.prototype.getDisplayedColBefore=function(t){return this.columnModel.getDisplayedColBefore(t)},t.prototype.setColumnVisible=function(t,e){this.columnModel.setColumnVisible(t,e,"api")},t.prototype.setColumnsVisible=function(t,e){this.columnModel.setColumnsVisible(t,e,"api")},t.prototype.setColumnPinned=function(t,e){this.columnModel.setColumnPinned(t,e,"api")},t.prototype.setColumnsPinned=function(t,e){this.columnModel.setColumnsPinned(t,e,"api")},t.prototype.getAllGridColumns=function(){return this.columnModel.getAllGridColumns()},t.prototype.getDisplayedLeftColumns=function(){return this.columnModel.getDisplayedLeftColumns()},t.prototype.getDisplayedCenterColumns=function(){return this.columnModel.getDisplayedCenterColumns()},t.prototype.getDisplayedRightColumns=function(){return this.columnModel.getDisplayedRightColumns()},t.prototype.getAllDisplayedColumns=function(){return this.columnModel.getAllDisplayedColumns()},t.prototype.getAllDisplayedVirtualColumns=function(){return this.columnModel.getViewportColumns()},t.prototype.moveColumn=function(t,e){this.columnModel.moveColumn(t,e,"api")},t.prototype.moveColumnByIndex=function(t,e){this.columnModel.moveColumnByIndex(t,e,"api")},t.prototype.moveColumns=function(t,e){this.columnModel.moveColumns(t,e,"api")},t.prototype.moveRowGroupColumn=function(t,e){this.columnModel.moveRowGroupColumn(t,e)},t.prototype.setColumnAggFunc=function(t,e){this.columnModel.setColumnAggFunc(t,e)},t.prototype.setColumnWidth=function(t,e,o,n){void 0===o&&(o=!0),this.columnModel.setColumnWidths([{key:t,newWidth:e}],!1,o,n)},t.prototype.setColumnWidths=function(t,e,o){void 0===e&&(e=!0),this.columnModel.setColumnWidths(t,!1,e,o)},t.prototype.setPivotMode=function(t){this.columnModel.setPivotMode(t)},t.prototype.isPivotMode=function(){return this.columnModel.isPivotMode()},t.prototype.getPivotResultColumn=function(t,e){return this.columnModel.getSecondaryPivotColumn(t,e)},t.prototype.setValueColumns=function(t){this.columnModel.setValueColumns(t,"api")},t.prototype.getValueColumns=function(){return this.columnModel.getValueColumns()},t.prototype.removeValueColumn=function(t){this.columnModel.removeValueColumn(t,"api")},t.prototype.removeValueColumns=function(t){this.columnModel.removeValueColumns(t,"api")},t.prototype.addValueColumn=function(t){this.columnModel.addValueColumn(t,"api")},t.prototype.addValueColumns=function(t){this.columnModel.addValueColumns(t,"api")},t.prototype.setRowGroupColumns=function(t){this.columnModel.setRowGroupColumns(t,"api")},t.prototype.removeRowGroupColumn=function(t){this.columnModel.removeRowGroupColumn(t,"api")},t.prototype.removeRowGroupColumns=function(t){this.columnModel.removeRowGroupColumns(t,"api")},t.prototype.addRowGroupColumn=function(t){this.columnModel.addRowGroupColumn(t,"api")},t.prototype.addRowGroupColumns=function(t){this.columnModel.addRowGroupColumns(t,"api")},t.prototype.getRowGroupColumns=function(){return this.columnModel.getRowGroupColumns()},t.prototype.setPivotColumns=function(t){this.columnModel.setPivotColumns(t,"api")},t.prototype.removePivotColumn=function(t){this.columnModel.removePivotColumn(t,"api")},t.prototype.removePivotColumns=function(t){this.columnModel.removePivotColumns(t,"api")},t.prototype.addPivotColumn=function(t){this.columnModel.addPivotColumn(t,"api")},t.prototype.addPivotColumns=function(t){this.columnModel.addPivotColumns(t,"api")},t.prototype.getPivotColumns=function(){return this.columnModel.getPivotColumns()},t.prototype.getLeftDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeLeft()},t.prototype.getCenterDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeCentre()},t.prototype.getRightDisplayedColumnGroups=function(){return this.columnModel.getDisplayedTreeRight()},t.prototype.getAllDisplayedColumnGroups=function(){return this.columnModel.getAllDisplayedTrees()},t.prototype.autoSizeColumn=function(t,e){return this.columnModel.autoSizeColumn(t,e,"api")},t.prototype.autoSizeColumns=function(t,e){this.columnModel.autoSizeColumns({columns:t,skipHeader:e})},t.prototype.autoSizeAllColumns=function(t){this.columnModel.autoSizeAllColumns(t,"api")},t.prototype.setPivotResultColumns=function(t){this.columnModel.setSecondaryColumns(t,"api")},t.prototype.getPivotResultColumns=function(){return this.columnModel.getSecondaryColumns()},t.prototype.cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid=function(){setTimeout(dZ.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return AK("28.0","getAllColumns","getColumns"),this.getColumns()},t.prototype.getPrimaryColumns=function(){return AK("28.0","getPrimaryColumns","getColumns"),this.getColumns()},t.prototype.getSecondaryColumns=function(){return AK("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},t.prototype.setSecondaryColumns=function(t){AK("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(t)},t.prototype.getSecondaryPivotColumn=function(t,e){return AK("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(t,e)},R6([aY("columnModel")],t.prototype,"columnModel",void 0),R6([iY],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),R6([rY("columnApi")],t)}(),M6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),A6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},I6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.initialised=!1,e.isSsrm=!1,e}return M6(e,t),e.prototype.init=function(){var t=this;this.isSsrm=this.gridOptionsService.isRowModelType("serverSide"),this.cellExpressions=this.gridOptionsService.is("enableCellExpressions"),this.isTreeData=this.gridOptionsService.is("treeData"),this.initialised=!0,this.eventService.addEventListener(eK.EVENT_CELL_VALUE_CHANGED,(function(e){return t.callColumnCellValueChangedHandler(e)}),this.gridOptionsService.useAsyncEvents()),this.addManagedPropertyListener("treeData",(function(e){return t.isTreeData=e.currentValue}))},e.prototype.getValue=function(t,e,o,n){if(void 0===o&&(o=!1),void 0===n&&(n=!1),this.initialised||this.init(),e){var i,r=t.getColDef(),a=r.field,s=t.getColId(),l=e.data,u=e.groupData&&void 0!==e.groupData[s],c=!n&&e.aggData&&void 0!==e.aggData[s],p=this.isSsrm&&n&&!!t.getColDef().aggFunc,d=this.isSsrm&&e.footer&&e.field&&(!0===t.getColDef().showRowGroup||t.getColDef().showRowGroup===e.field);if(o&&r.filterValueGetter?i=this.executeFilterValueGetter(r.filterValueGetter,l,t,e):this.isTreeData&&c?i=e.aggData[s]:this.isTreeData&&r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):this.isTreeData&&a&&l?i=P$(l,a,t.isFieldContainsDots()):u?i=e.groupData[s]:c?i=e.aggData[s]:r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):d?i=P$(l,e.field,t.isFieldContainsDots()):a&&l&&!p&&(i=P$(l,a,t.isFieldContainsDots())),this.cellExpressions&&"string"==typeof i&&0===i.indexOf("=")){var h=i.substring(1);i=this.executeValueGetter(h,l,t,e)}if(null==i){var f=this.getOpenedGroup(e,t);if(null!=f)return f}return i}},e.prototype.getOpenedGroup=function(t,e){if(this.gridOptionsService.is("showOpenedGroup")&&e.getColDef().showRowGroup)for(var o=e.getColDef().showRowGroup,n=t.parent;null!=n;){if(n.rowGroupColumn&&(!0===o||o===n.rowGroupColumn.getColId()))return n.key;n=n.parent}},e.prototype.setValue=function(t,e,o,n){var i=this.columnModel.getPrimaryColumn(e);if(!t||!i)return!1;f$(t.data)&&(t.data={});var r=i.getColDef(),a=r.field,s=r.valueSetter;if(f$(a)&&f$(s))return console.warn("AG Grid: you need either field or valueSetter set on colDef for editing to work"),!1;if(!this.dataTypeService.checkType(i,o))return console.warn("AG Grid: Data type of the new value does not match the cell data type of the column"),!1;var l,u={node:t,data:t.data,oldValue:this.getValue(i,t),newValue:o,colDef:i.getColDef(),column:i,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};if(u.newValue=o,void 0===(l=h$(s)?"function"==typeof s?s(u):this.expressionService.evaluate(s,u):this.setValueUsingField(t.data,a,o,i.isFieldContainsDots()))&&(l=!0),!l)return!1;t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),u.newValue=this.getValue(i,t);var c={type:eK.EVENT_CELL_VALUE_CHANGED,event:null,rowIndex:t.rowIndex,rowPinned:t.rowPinned,column:u.column,api:u.api,columnApi:u.columnApi,colDef:u.colDef,context:u.context,data:t.data,node:t,oldValue:u.oldValue,newValue:u.newValue,value:u.newValue,source:n};return this.eventService.dispatchEvent(c),!0},e.prototype.callColumnCellValueChangedHandler=function(t){var e=t.colDef.onCellValueChanged;"function"==typeof e&&e({node:t.node,data:t.data,oldValue:t.oldValue,newValue:t.newValue,colDef:t.colDef,column:t.column,api:t.api,columnApi:t.columnApi,context:t.context})},e.prototype.setValueUsingField=function(t,e,o,n){if(!e)return!1;var i=!1;if(n)for(var r=e.split("."),a=t;r.length>0&&a;){var s=r.shift();0===r.length?(i=a[s]===o)||(a[s]=o):a=a[s]}else(i=t[e]===o)||(t[e]=o);return!i},e.prototype.executeFilterValueGetter=function(t,e,o,n){var i={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,n)};return"function"==typeof t?t(i):this.expressionService.evaluate(t,i)},e.prototype.executeValueGetter=function(t,e,o,n){var i=o.getColId(),r=this.valueCache.getValue(n,i);if(void 0!==r)return r;var a,s={data:e,node:n,column:o,colDef:o.getColDef(),api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,getValue:this.getValueCallback.bind(this,n)};return a="function"==typeof t?t(s):this.expressionService.evaluate(t,s),this.valueCache.setValue(n,i,a),a},e.prototype.getValueCallback=function(t,e){var o=this.columnModel.getPrimaryColumn(e);return o?this.getValue(o,t):null},e.prototype.getKeyForNode=function(t,e){var o=this.getValue(t,e),n=t.getColDef().keyCreator,i=o;return n&&(i=n({value:o,colDef:t.getColDef(),column:t,node:e,data:e.data,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context})),"string"==typeof i||null==i||"[object Object]"===(i=String(i))&&G$((function(){console.warn("AG Grid: a column you are grouping or pivoting by has objects as values. If you want to group by complex objects then either a) use a colDef.keyCreator (se AG Grid docs) or b) to toString() on the object to return a key")}),"getKeyForNode - warn about [object,object]"),i},A6([aY("expressionService")],e.prototype,"expressionService",void 0),A6([aY("columnModel")],e.prototype,"columnModel",void 0),A6([aY("valueCache")],e.prototype,"valueCache",void 0),A6([aY("dataTypeService")],e.prototype,"dataTypeService",void 0),A6([nY],e.prototype,"init",null),A6([rY("valueService")],e)}(qY),P6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),L6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},N6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return P6(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ExpressionService")},e.prototype.evaluate=function(t,e){if("string"==typeof t)return this.evaluateExpression(t,e);console.error("AG Grid: value should be either a string or a function",t)},e.prototype.evaluateExpression=function(t,e){try{return this.createExpressionFunction(t)(e.value,e.context,e.oldValue,e.newValue,e.value,e.node,e.data,e.colDef,e.rowIndex,e.api,e.columnApi,e.getValue,e.column,e.columnGroup)}catch(o){return console.log("Processing of the expression failed"),console.log("Expression = "+t),console.log("Params =",e),console.log("Exception = "+o),null}},e.prototype.createExpressionFunction=function(t){if(this.expressionToFunctionCache[t])return this.expressionToFunctionCache[t];var e=this.createFunctionBody(t),o=new Function("x, ctx, oldValue, newValue, value, node, data, colDef, rowIndex, api, columnApi, getValue, column, columnGroup",e);return this.expressionToFunctionCache[t]=o,o},e.prototype.createFunctionBody=function(t){return t.indexOf("return")>=0?t:"return "+t+";"},L6([(o=0,n=uY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),L6([rY("expressionService")],e);var o,n}(qY),F6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),k6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return F6(e,t),e.prototype.getTemplate=function(t,e){var o=this.templateCache[t];if(o)return o;var n=this.waitingCallbacks[t],i=this;if(!n){n=[],this.waitingCallbacks[t]=n;var r=new XMLHttpRequest;r.onload=function(){i.handleHttpResult(this,t)},r.open("GET",t),r.send()}return e&&n.push(e),null},e.prototype.handleHttpResult=function(t,e){if(200===t.status&&null!==t.response){this.templateCache[e]=t.response||t.responseText;for(var o=this.waitingCallbacks[e],n=0;n=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("templateService")],e)}(qY),G6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),V6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},H6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return G6(e,t),e.prototype.setBeans=function(t){this.logging=t.is("debug")},e.prototype.create=function(t){return new B6(t,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},V6([(o=0,n=uY("gridOptionsService"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),V6([rY("loggerFactory")],e);var o,n}(qY),B6=function(){function t(t,e){this.name=t,this.isLoggingFunc=e}return t.prototype.isLogging=function(){return this.isLoggingFunc()},t.prototype.log=function(t){this.isLoggingFunc()&&console.log("AG Grid."+this.name+": "+t)},t}(),W6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),z6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},j6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return W6(e,t),e.prototype.setComp=function(t,e,o){var n=this;this.view=t,this.eGridHostDiv=e,this.eGui=o,this.eGui.setAttribute("grid-id",this.context.getGridId()),this.dragAndDropService.addDropTarget({getContainer:function(){return n.eGui},isInterestedIn:function(t){return t===NQ.HeaderCell||t===NQ.ToolPanel},getIconName:function(){return LJ.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(e),this.createManagedBean(new v1(this.view)),this.addRtlSupport(),this.addManagedListener(this,eK.EVENT_KEYBOARD_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,eK.EVENT_MOUSE_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!1)}));var i=this.resizeObserverService.observeResize(this.eGridHostDiv,this.onGridSizeChanged.bind(this));this.addDestroyFunc((function(){return i()})),this.ctrlsService.registerGridCtrl(this)},e.prototype.isDetailGrid=function(){var t,e=this.focusService.findTabbableParent(this.getGui());return(null===(t=null==e?void 0:e.getAttribute("row-id"))||void 0===t?void 0:t.startsWith("detail"))||!1},e.prototype.showDropZones=function(){return tY.__isRegistered(q$.RowGroupingModule,this.context.getGridId())},e.prototype.showSideBar=function(){return tY.__isRegistered(q$.SideBarModule,this.context.getGridId())},e.prototype.showStatusBar=function(){return tY.__isRegistered(q$.StatusBarModule,this.context.getGridId())},e.prototype.showWatermark=function(){return tY.__isRegistered(q$.EnterpriseCoreModule,this.context.getGridId())},e.prototype.onGridSizeChanged=function(){var t={type:eK.EVENT_GRID_SIZE_CHANGED,clientWidth:this.eGridHostDiv.clientWidth,clientHeight:this.eGridHostDiv.clientHeight};this.eventService.dispatchEvent(t)},e.prototype.addRtlSupport=function(){var t=this.gridOptionsService.is("enableRtl")?"ag-rtl":"ag-ltr";this.view.setRtlClass(t)},e.prototype.destroyGridUi=function(){this.view.destroyGridUi()},e.prototype.getGui=function(){return this.eGui},e.prototype.setResizeCursor=function(t){this.view.setCursor(t?"ew-resize":null)},e.prototype.disableUserSelect=function(t){this.view.setUserSelect(t?"none":null)},e.prototype.focusNextInnerContainer=function(t){var e=this.gridOptionsService.getDocument(),o=this.view.getFocusableContainers(),n=o.findIndex((function(t){return t.contains(e.activeElement)}))+(t?-1:1);return!(n<=0||n>=o.length)&&this.focusService.focusInto(o[n])},e.prototype.focusInnerElement=function(t){var e=this.view.getFocusableContainers(),o=this.columnModel.getAllDisplayedColumns();if(t){if(e.length>1)return this.focusService.focusInto(_Y(e),!0);var n=_Y(o);if(this.focusService.focusGridView(n,!0))return!0}return 0===this.gridOptionsService.getNum("headerHeight")?this.focusService.focusGridView(o[0]):this.focusService.focusFirstHeader()},e.prototype.forceFocusOutOfContainer=function(t){void 0===t&&(t=!1),this.view.forceFocusOutOfContainer(t)},z6([aY("focusService")],e.prototype,"focusService",void 0),z6([aY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),z6([aY("columnModel")],e.prototype,"columnModel",void 0),z6([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),z6([aY("mouseEventService")],e.prototype,"mouseEventService",void 0),z6([aY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),e}(qY),U6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},Y6=function(t){function e(e){var o=t.call(this)||this;return o.eGridDiv=e,o}return U6(e,t),e.prototype.postConstruct=function(){var t=this;this.logger=this.loggerFactory.create("GridComp");var e={destroyGridUi:function(){return t.destroyBean(t)},setRtlClass:function(e){return t.addCssClass(e)},addOrRemoveKeyboardFocusClass:function(e){return t.addOrRemoveCssClass(K3.AG_KEYBOARD_FOCUS,e)},forceFocusOutOfContainer:this.forceFocusOutOfContainer.bind(this),updateLayoutClasses:this.updateLayoutClasses.bind(this),getFocusableContainers:this.getFocusableContainers.bind(this),setUserSelect:function(e){t.getGui().style.userSelect=null!=e?e:"",t.getGui().style.webkitUserSelect=null!=e?e:""},setCursor:function(e){t.getGui().style.cursor=null!=e?e:""}};this.ctrl=this.createManagedBean(new j6);var o=this.createTemplate();this.setTemplate(o),this.ctrl.setComp(e,this.eGridDiv,this.getGui()),this.insertGridIntoDom(),this.initialiseTabGuard({onTabKeyDown:function(){},focusInnerElement:function(e){return t.ctrl.focusInnerElement(e)}})},e.prototype.insertGridIntoDom=function(){var t=this,e=this.getGui();this.eGridDiv.appendChild(e),this.addDestroyFunc((function(){t.eGridDiv.removeChild(e),t.logger.log("Grid removed from DOM")}))},e.prototype.updateLayoutClasses=function(t,e){var o=this.eRootWrapperBody.classList;o.toggle(J0.AUTO_HEIGHT,e.autoHeight),o.toggle(J0.NORMAL,e.normal),o.toggle(J0.PRINT,e.print),this.addOrRemoveCssClass(J0.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(J0.NORMAL,e.normal),this.addOrRemoveCssClass(J0.PRINT,e.print)},e.prototype.createTemplate=function(){return'"},e.prototype.getFocusableElement=function(){return this.eRootWrapperBody},e.prototype.getFocusableContainers=function(){var t=[this.gridBodyComp.getGui()];return this.sideBarComp&&t.push(this.sideBarComp.getGui()),t.filter((function(t){return Dq(t)}))},$6([aY("loggerFactory")],e.prototype,"loggerFactory",void 0),$6([TZ("gridBody")],e.prototype,"gridBodyComp",void 0),$6([TZ("sideBar")],e.prototype,"sideBarComp",void 0),$6([TZ("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),$6([nY],e.prototype,"postConstruct",null),e}(D4),K6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),X6=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},q6=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},Z6=function(t,e){for(var o=0,n=e.length,i=t.length;o0},e.prototype.dispatchSortChangedEvents=function(t){var e={type:eK.EVENT_SORT_CHANGED,source:t};this.eventService.dispatchEvent(e)},e.prototype.clearSortBarTheseColumns=function(t,e){this.columnModel.getPrimaryAndSecondaryAndAutoColumns().forEach((function(o){t.includes(o)||o.setSort(void 0,e)}))},e.prototype.getNextSortDirection=function(t){var e;if(e=t.getColDef().sortingOrder?t.getColDef().sortingOrder:this.gridOptionsService.get("sortingOrder")?this.gridOptionsService.get("sortingOrder"):o.DEFAULT_SORTING_ORDER,!Array.isArray(e)||e.length<=0)return console.warn("AG Grid: sortingOrder must be an array with at least one element, currently it's "+e),null;var n,i=e.indexOf(t.getSort()),r=i<0,a=i==e.length-1;return n=r||a?e[0]:e[i+1],o.DEFAULT_SORTING_ORDER.indexOf(n)<0?(console.warn("AG Grid: invalid sort type "+n),null):n},e.prototype.getIndexedSortMap=function(){var t=this,e=this.columnModel.getPrimaryAndSecondaryAndAutoColumns().filter((function(t){return!!t.getSort()}));if(this.columnModel.isPivotMode()){var o=this.gridOptionsService.isColumnsSortingCoupledToGroup();e=e.filter((function(e){var n=!!e.getAggFunc(),i=!e.isPrimary(),r=o?t.columnModel.getGroupDisplayColumnForGroup(e.getId()):e.getColDef().showRowGroup;return n||i||r}))}var n=this.columnModel.getRowGroupColumns().filter((function(t){return!!t.getSort()})),i=this.gridOptionsService.isColumnsSortingCoupledToGroup()&&!!n.length;i&&(e=Z6([],q6(new Set(e.map((function(e){var o;return null!==(o=t.columnModel.getGroupDisplayColumnForGroup(e.getId()))&&void 0!==o?o:e}))))));var r={};e.forEach((function(t,e){return r[t.getId()]=e})),e.sort((function(t,e){var o=t.getSortIndex(),n=e.getSortIndex();return null!=o&&null!=n?o-n:null==o&&null==n?r[t.getId()]>r[e.getId()]?1:-1:null==n?-1:1}));var a=new Map;return e.forEach((function(t,e){return a.set(t,e)})),i&&n.forEach((function(e){var o=t.columnModel.getGroupDisplayColumnForGroup(e.getId());a.set(e,a.get(o))})),a},e.prototype.getColumnsWithSortingOrdered=function(){return Z6([],q6(this.getIndexedSortMap().entries())).sort((function(t,e){var o=q6(t,2);o[0];var n=o[1],i=q6(e,2);return i[0],n-i[1]})).map((function(t){return q6(t,1)[0]}))},e.prototype.getSortModel=function(){return this.getColumnsWithSortingOrdered().filter((function(t){return t.getSort()})).map((function(t){return{sort:t.getSort(),colId:t.getId()}}))},e.prototype.getSortOptions=function(){return this.getColumnsWithSortingOrdered().filter((function(t){return t.getSort()})).map((function(t){return{sort:t.getSort(),column:t}}))},e.prototype.canColumnDisplayMixedSort=function(t){var e=this.gridOptionsService.isColumnsSortingCoupledToGroup(),o=!!t.getColDef().showRowGroup;return e&&o},e.prototype.getDisplaySortForColumn=function(t){var e=this.columnModel.getSourceColumnsForGroupColumn(t);if(!this.canColumnDisplayMixedSort(t)||!(null==e?void 0:e.length))return t.getSort();var o=null!=t.getColDef().field||t.getColDef().valueGetter?Z6([t],q6(e)):e,n=o[0].getSort();return o.every((function(t){return t.getSort()==n}))?n:"mixed"},e.prototype.getDisplaySortIndexForColumn=function(t){return this.getIndexedSortMap().get(t)},e.DEFAULT_SORTING_ORDER=["asc","desc",null],X6([aY("columnModel")],e.prototype,"columnModel",void 0),o=X6([rY("sortController")],e)}(qY),J6=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),t7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return J6(e,t),e.prototype.setMouseOver=function(t){this.selectedColumns=t;var e={type:eK.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.clearMouseOver=function(){this.selectedColumns=null;var t={type:eK.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.isHovered=function(t){return!!this.selectedColumns&&this.selectedColumns.indexOf(t)>=0},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("columnHoverService")],e)}(qY),e7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),o7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},n7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.executeNextFuncs=[],e.executeLaterFuncs=[],e.active=!1,e.animationThreadCount=0,e}return e7(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){return t.gridBodyCtrl=e.gridBodyCtrl}))},e.prototype.isActive=function(){return this.active},e.prototype.start=function(){this.active||this.gridOptionsService.is("suppressColumnMoveAnimation")||this.gridOptionsService.is("enableRtl")||(this.ensureAnimationCssClassPresent(),this.active=!0)},e.prototype.finish=function(){this.active&&(this.flush(),this.active=!1)},e.prototype.executeNextVMTurn=function(t){this.active?this.executeNextFuncs.push(t):t()},e.prototype.executeLaterVMTurn=function(t){this.active?this.executeLaterFuncs.push(t):t()},e.prototype.ensureAnimationCssClassPresent=function(){var t=this;this.animationThreadCount++;var e=this.animationThreadCount;this.gridBodyCtrl.setColumnMovingCss(!0),this.executeLaterFuncs.push((function(){t.animationThreadCount===e&&t.gridBodyCtrl.setColumnMovingCss(!1)}))},e.prototype.flush=function(){var t=this.executeNextFuncs;this.executeNextFuncs=[];var e=this.executeLaterFuncs;this.executeLaterFuncs=[],0===t.length&&0===e.length||(window.setTimeout((function(){return t.forEach((function(t){return t()}))}),0),window.setTimeout((function(){return e.forEach((function(t){return t()}))}),300))},o7([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),o7([nY],e.prototype,"postConstruct",null),o7([rY("columnAnimationService")],e)}(qY),i7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),r7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},a7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i7(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl,t.addManagedListener(t.eventService,eK.EVENT_BODY_HEIGHT_CHANGED,t.checkPageSize.bind(t)),t.addManagedListener(t.eventService,eK.EVENT_SCROLL_VISIBILITY_CHANGED,t.checkPageSize.bind(t)),t.checkPageSize()}))},e.prototype.notActive=function(){return!this.gridOptionsService.is("paginationAutoPageSize")||null==this.centerRowContainerCon},e.prototype.checkPageSize=function(){var t=this;if(!this.notActive()){var e=this.centerRowContainerCon.getViewportSizeFeature().getBodyHeight();if(e>0){var o=function(){var o=t.gridOptionsService.getRowHeightAsNumber(),n=Math.floor(e/o);t.gridOptionsService.set("paginationPageSize",n)};this.isBodyRendered?$$((function(){return o()}),50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},r7([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),r7([nY],e.prototype,"postConstruct",null),r7([rY("paginationAutoPageSizeService")],e)}(qY),s7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),l7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},u7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return s7(e,t),e.prototype.init=function(){this.active=this.gridOptionsService.is("valueCache"),this.neverExpires=this.gridOptionsService.is("valueCacheNeverExpires")},e.prototype.onDataChanged=function(){this.neverExpires||this.expire()},e.prototype.expire=function(){this.cacheVersion++},e.prototype.setValue=function(t,e,o){this.active&&(t.__cacheVersion!==this.cacheVersion&&(t.__cacheVersion=this.cacheVersion,t.__cacheData={}),t.__cacheData[e]=o)},e.prototype.getValue=function(t,e){if(this.active&&t.__cacheVersion===this.cacheVersion)return t.__cacheData[e]},l7([nY],e.prototype,"init",null),l7([rY("valueCache")],e)}(qY),c7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),p7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},d7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c7(e,t),e.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,eK.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged.bind(this))},e.prototype.onCellValueChanged=function(t){"paste"!==t.source&&this.doChangeDetection(t.node,t.column)},e.prototype.doChangeDetection=function(t,e){if(!this.gridOptionsService.is("suppressChangeDetection")){var o=[t];if(this.clientSideRowModel&&!t.isRowPinned()){var n=this.gridOptionsService.is("aggregateOnlyChangedColumns"),i=new n4(n,this.clientSideRowModel.getRootNode());i.addParentNode(t.parent,[e]),this.clientSideRowModel.doAggregate(i),i.forEachChangedNodeDepthFirst((function(t){o.push(t)}))}this.rowRenderer.refreshCells({rowNodes:o})}},p7([aY("rowModel")],e.prototype,"rowModel",void 0),p7([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),p7([nY],e.prototype,"init",null),p7([rY("changeDetectionService")],e)}(qY),h7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),f7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},g7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h7(e,t),e.prototype.adaptFunction=function(t,e){var o=this.componentMetadataProvider.retrieve(t);return o&&o.functionAdapter?o.functionAdapter(e):null},e.prototype.adaptCellRendererFunction=function(t){return function(){function e(){}return e.prototype.refresh=function(t){return!1},e.prototype.getGui=function(){return this.eGui},e.prototype.init=function(e){var o=t(e),n=typeof o;this.eGui="string"!==n&&"number"!==n&&"boolean"!==n?null!=o?o:Rq(""):Rq(""+o+"")},e}()},e.prototype.doesImplementIComponent=function(t){return!!t&&t.prototype&&"getGui"in t.prototype},f7([aY("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),f7([rY("agComponentUtils")],e)}(qY),v7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),y7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},m7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v7(e,t),e.prototype.postConstruct=function(){this.componentMetaData={dateComponent:{mandatoryMethodList:["getDate","setDate"],optionalMethodList:["afterGuiAttached","setInputPlaceholder","setInputAriaLabel"]},detailCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},headerComponent:{mandatoryMethodList:[],optionalMethodList:["refresh"]},headerGroupComponent:{mandatoryMethodList:[],optionalMethodList:[]},loadingCellRenderer:{mandatoryMethodList:[],optionalMethodList:[]},loadingOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},noRowsOverlayComponent:{mandatoryMethodList:[],optionalMethodList:[]},floatingFilterComponent:{mandatoryMethodList:["onParentModelChanged"],optionalMethodList:["afterGuiAttached"]},floatingFilterWrapperComponent:{mandatoryMethodList:[],optionalMethodList:[]},cellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},cellEditor:{mandatoryMethodList:["getValue"],optionalMethodList:["isPopup","isCancelBeforeStart","isCancelAfterEnd","getPopupPosition","focusIn","focusOut","afterGuiAttached"]},innerRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},fullWidthCellRenderer:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},groupRowRenderer:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"],functionAdapter:this.agComponentUtils.adaptCellRendererFunction.bind(this.agComponentUtils)},filter:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},filterComponent:{mandatoryMethodList:["isFilterActive","doesFilterPass","getModel","setModel"],optionalMethodList:["afterGuiAttached","afterGuiDetached","onNewRowsLoaded","getModelAsString","onFloatingFilterChanged","onAnyFilterChanged"]},statusPanel:{mandatoryMethodList:[],optionalMethodList:["afterGuiAttached"]},toolPanel:{mandatoryMethodList:[],optionalMethodList:["refresh","afterGuiAttached"]},tooltipComponent:{mandatoryMethodList:[],optionalMethodList:[]}}},e.prototype.retrieve=function(t){return this.componentMetaData[t]},y7([aY("agComponentUtils")],e.prototype,"agComponentUtils",void 0),y7([nY],e.prototype,"postConstruct",null),y7([rY("componentMetadataProvider")],e)}(qY),C7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),w7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},S7={"ag-theme-custom":{headerHeight:25,headerCellMinWidth:24,listItemHeight:20,rowHeight:25,chartMenuPanelWidth:220},"ag-theme-material":{headerHeight:56,headerCellMinWidth:48,listItemHeight:32,rowHeight:48,chartMenuPanelWidth:240},"ag-theme-balham":{headerHeight:32,headerCellMinWidth:24,listItemHeight:24,rowHeight:28,chartMenuPanelWidth:220},"ag-theme-alpine":{headerHeight:48,headerCellMinWidth:36,listItemHeight:24,rowHeight:42,chartMenuPanelWidth:240}},b7={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},_7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.calculatedSizes={},e}return C7(e,t),e.prototype.postConstruct=function(){var t,e=this,o=null!==(t=this.getTheme().el)&&void 0!==t?t:this.eGridDiv;this.mutationObserver=new MutationObserver((function(){e.calculatedSizes={},e.fireGridStylesChangedEvent()})),this.mutationObserver.observe(o||this.eGridDiv,{attributes:!0,attributeFilter:["class"]})},e.prototype.fireGridStylesChangedEvent=function(){var t={type:eK.EVENT_GRID_STYLES_CHANGED};this.eventService.dispatchEvent(t)},e.prototype.getSassVariable=function(t){var e=this.getTheme(),o=e.themeFamily,n=e.el;if(o&&0===o.indexOf("ag-theme")){this.calculatedSizes||(this.calculatedSizes={}),this.calculatedSizes[o]||(this.calculatedSizes[o]={});var i=this.calculatedSizes[o][t];return null!=i?i:(this.calculatedSizes[o][t]=this.calculateValueForSassProperty(t,o,n),this.calculatedSizes[o][t])}},e.prototype.calculateValueForSassProperty=function(t,e,o){var n,i="ag-theme-"+(e.match("material")?"material":e.match("balham")?"balham":e.match("alpine")?"alpine":"custom"),r=S7[i][t],a=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!b7[t])return r;var s=b7[t],l=a.createElement("div"),u=Array.from(o.classList);(n=l.classList).add.apply(n,function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(u))),l.style.position="absolute";var c=s.reduce((function(t,e){var o=a.createElement("div");return o.style.position="static",o.classList.add(e),t.appendChild(o),o}),l),p=0;if(a.body){a.body.appendChild(l);var d=-1!==t.toLowerCase().indexOf("height")?"height":"width";p=parseInt(window.getComputedStyle(c)[d],10),a.body.removeChild(l)}return p||r},e.prototype.isThemeDark=function(){var t=this.getTheme().theme;return!!t&&t.indexOf("dark")>=0},e.prototype.chartMenuPanelWidth=function(){return this.getSassVariable("chartMenuPanelWidth")},e.prototype.getTheme=function(){for(var t=/\bag-(material|(?:theme-([\w\-]*)))\b/g,e=this.eGridDiv,o=null,n=[];e;){if(o=t.exec(e.className)){var i=e.className.match(t);i&&(n=i);break}e=e.parentElement||void 0}if(!o)return{allThemes:n};var r=o[0];return{theme:r,el:e,themeFamily:r.replace(/-dark$/,""),allThemes:n}},e.prototype.getFromTheme=function(t,e){var o;return null!==(o=this.getSassVariable(e))&&void 0!==o?o:t},e.prototype.getDefaultRowHeight=function(){return this.getFromTheme(25,"rowHeight")},e.prototype.getListItemHeight=function(){return this.getFromTheme(20,"listItemHeight")},e.prototype.refreshRowHeightVariable=function(){var t=this.eGridDiv.style.getPropertyValue("--ag-line-height").trim(),e=this.gridOptionsService.getNum("rowHeight");if(null==e||isNaN(e)||!isFinite(e))return-1;var o=e+"px";return t!=o?(this.eGridDiv.style.setProperty("--ag-line-height",o),e):""!=t?parseFloat(t):-1},e.prototype.getMinColWidth=function(){var t=this.getFromTheme(null,"headerCellMinWidth");return h$(t)?Math.max(t,10):10},e.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),t.prototype.destroy.call(this)},w7([aY("eGridDiv")],e.prototype,"eGridDiv",void 0),w7([nY],e.prototype,"postConstruct",null),w7([rY("environment")],e)}(qY),x7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),E7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},T7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scrollY=0,e.uiBodyHeight=0,e}return x7(e,t),e.prototype.agWire=function(t){this.logger=t.create("RowContainerHeightService")},e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,eK.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=zX(),this.logger.log("maxDivHeight = "+this.maxDivHeight)},e.prototype.isStretching=function(){return this.stretching},e.prototype.getDivStretchOffset=function(){return this.divStretchOffset},e.prototype.updateOffset=function(){if(this.stretching){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition().top,e=this.getUiBodyHeight();(t!==this.scrollY||e!==this.uiBodyHeight)&&(this.scrollY=t,this.uiBodyHeight=e,this.calculateOffset())}},e.prototype.calculateOffset=function(){this.setUiContainerHeight(this.maxDivHeight),this.pixelsToShave=this.modelHeight-this.uiContainerHeight,this.maxScrollY=this.uiContainerHeight-this.uiBodyHeight;var t=this.scrollY/this.maxScrollY,e=t*this.pixelsToShave;this.logger.log("Div Stretch Offset = "+e+" ("+this.pixelsToShave+" * "+t+")"),this.setDivStretchOffset(e)},e.prototype.setUiContainerHeight=function(t){t!==this.uiContainerHeight&&(this.uiContainerHeight=t,this.eventService.dispatchEvent({type:eK.EVENT_ROW_CONTAINER_HEIGHT_CHANGED}))},e.prototype.clearOffset=function(){this.setUiContainerHeight(this.modelHeight),this.pixelsToShave=0,this.setDivStretchOffset(0)},e.prototype.setDivStretchOffset=function(t){var e="number"==typeof t?Math.floor(t):null;this.divStretchOffset!==e&&(this.divStretchOffset=e,this.eventService.dispatchEvent({type:eK.EVENT_HEIGHT_SCALE_CHANGED}))},e.prototype.setModelHeight=function(t){this.modelHeight=t,this.stretching=null!=t&&this.maxDivHeight>0&&t>this.maxDivHeight,this.stretching?this.calculateOffset():this.clearOffset()},e.prototype.getUiContainerHeight=function(){return this.uiContainerHeight},e.prototype.getRealPixelPosition=function(t){return t-this.divStretchOffset},e.prototype.getUiBodyHeight=function(){var t=this.ctrlsService.getGridBodyCtrl().getScrollFeature().getVScrollPosition();return t.bottom-t.top},e.prototype.getScrollPositionForPixel=function(t){if(this.pixelsToShave<=0)return t;var e=t/(this.modelHeight-this.getUiBodyHeight());return this.maxScrollY*e},E7([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),E7([(o=0,n=uY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"agWire",null),E7([nY],e.prototype,"postConstruct",null),E7([rY("rowContainerHeightService")],e);var o,n}(qY),D7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),R7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},O7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return D7(e,t),e.prototype.init=function(){this.groupSelectsChildren=this.gridOptionsService.is("groupSelectsChildren"),this.isRowSelectableFunc=this.gridOptionsService.get("isRowSelectable")},e.prototype.updateSelectableAfterGrouping=function(t){this.isRowSelectableFunc&&this.recurseDown(t.childrenAfterGroup,(function(t){return t.childrenAfterGroup}))},e.prototype.recurseDown=function(t,e){var o=this;t&&t.forEach((function(t){var n;t.group&&(t.hasChildren()&&o.recurseDown(e(t),e),n=o.groupSelectsChildren?h$((e(t)||[]).find((function(t){return!0===t.selectable}))):!!o.isRowSelectableFunc&&o.isRowSelectableFunc(t),t.setRowSelectable(n))}))},R7([nY],e.prototype,"init",null),R7([rY("selectableService")],e)}(qY),M7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),A7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},I7=function(t){function e(){var e=t.call(this)||this;return e.previousAndFirstButtonsDisabled=!1,e.nextButtonDisabled=!1,e.lastButtonDisabled=!1,e.areListenersSetup=!1,e}return M7(e,t),e.prototype.postConstruct=function(){var t=this.gridOptionsService.is("enableRtl");this.setTemplate(this.getTemplate());var e=this,o=e.btFirst,n=e.btPrevious,i=e.btNext,r=e.btLast;this.activateTabIndex([o,n,i,r]),o.insertAdjacentElement("afterbegin",qq(t?"last":"first",this.gridOptionsService)),n.insertAdjacentElement("afterbegin",qq(t?"next":"previous",this.gridOptionsService)),i.insertAdjacentElement("afterbegin",qq(t?"previous":"next",this.gridOptionsService)),r.insertAdjacentElement("afterbegin",qq(t?"first":"last",this.gridOptionsService)),this.addManagedPropertyListener("pagination",this.onPaginationChanged.bind(this)),this.addManagedPropertyListener("suppressPaginationPanel",this.onPaginationChanged.bind(this)),this.onPaginationChanged()},e.prototype.onPaginationChanged=function(){var t=this.gridOptionsService.is("pagination")&&!this.gridOptionsService.is("suppressPaginationPanel");this.setDisplayed(t),t&&(this.setupListeners(),this.enableOrDisableButtons(),this.updateRowLabels(),this.setCurrentPageLabel(),this.setTotalLabels())},e.prototype.setupListeners=function(){var t=this;this.areListenersSetup||(this.addManagedListener(this.eventService,eK.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),[{el:this.btFirst,fn:this.onBtFirst.bind(this)},{el:this.btPrevious,fn:this.onBtPrevious.bind(this)},{el:this.btNext,fn:this.onBtNext.bind(this)},{el:this.btLast,fn:this.onBtLast.bind(this)}].forEach((function(e){var o=e.el,n=e.fn;t.addManagedListener(o,"click",n),t.addManagedListener(o,"keydown",(function(t){t.key!==Qq.ENTER&&t.key!==Qq.SPACE||(t.preventDefault(),n())}))})),this.areListenersSetup=!0)},e.prototype.onBtFirst=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToFirstPage()},e.prototype.setCurrentPageLabel=function(){var t=this.paginationProxy.getTotalPages()>0,e=this.paginationProxy.getCurrentPage(),o=t?e+1:0;this.lbCurrent.innerHTML=this.formatNumber(o)},e.prototype.formatNumber=function(t){var e=this.gridOptionsService.getCallback("paginationNumberFormatter");if(e)return e({value:t});var o=this.localeService.getLocaleTextFunc();return QX(t,o("thousandSeparator",","),o("decimalSeparator","."))},e.prototype.getTemplate=function(){var t=this.localeService.getLocaleTextFunc(),e=t("page","Page"),o=t("to","to"),n=t("of","of"),i=t("firstPage","First Page"),r=t("previousPage","Previous Page"),a=t("nextPage","Next Page"),s=t("lastPage","Last Page"),l=this.getCompId();return'
\n \n \n '+o+'\n \n '+n+'\n \n \n \n
\n
\n \n '+e+'\n \n '+n+'\n \n \n
\n
\n
\n
'},e.prototype.onBtNext=function(){this.nextButtonDisabled||this.paginationProxy.goToNextPage()},e.prototype.onBtPrevious=function(){this.previousAndFirstButtonsDisabled||this.paginationProxy.goToPreviousPage()},e.prototype.onBtLast=function(){this.lastButtonDisabled||this.paginationProxy.goToLastPage()},e.prototype.enableOrDisableButtons=function(){var t=this.paginationProxy.getCurrentPage(),e=this.paginationProxy.isLastPageFound(),o=this.paginationProxy.getTotalPages();this.previousAndFirstButtonsDisabled=0===t,this.toggleButtonDisabled(this.btFirst,this.previousAndFirstButtonsDisabled),this.toggleButtonDisabled(this.btPrevious,this.previousAndFirstButtonsDisabled);var n=this.isZeroPagesToDisplay(),i=e&&t===o-1;this.nextButtonDisabled=i||n,this.lastButtonDisabled=!e||n||t===o-1,this.toggleButtonDisabled(this.btNext,this.nextButtonDisabled),this.toggleButtonDisabled(this.btLast,this.lastButtonDisabled)},e.prototype.toggleButtonDisabled=function(t,e){sX(t,e),t.classList.toggle("ag-disabled",e)},e.prototype.updateRowLabels=function(){var t,e,o=this.paginationProxy.getCurrentPage(),n=this.paginationProxy.getPageSize(),i=this.paginationProxy.isLastPageFound(),r=this.paginationProxy.isLastPageFound()?this.paginationProxy.getMasterRowCount():null;if(this.isZeroPagesToDisplay()?t=e=0:(e=(t=n*o+1)+n-1,i&&e>r&&(e=r)),this.lbFirstRowOnPage.innerHTML=this.formatNumber(t),this.rowNodeBlockLoader.isLoading()){var a=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=a("pageLastRowUnknown","?")}else this.lbLastRowOnPage.innerHTML=this.formatNumber(e)},e.prototype.isZeroPagesToDisplay=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages();return t&&0===e},e.prototype.setTotalLabels=function(){var t=this.paginationProxy.isLastPageFound(),e=this.paginationProxy.getTotalPages(),o=t?this.paginationProxy.getMasterRowCount():null;if(1===o){var n=this.paginationProxy.getRow(0);if(n&&n.group&&!n.groupData&&!n.aggData)return void this.setTotalLabelsToZero()}if(t)this.lbTotal.innerHTML=this.formatNumber(e),this.lbRecordCount.innerHTML=this.formatNumber(o);else{var i=this.localeService.getLocaleTextFunc()("more","more");this.lbTotal.innerHTML=i,this.lbRecordCount.innerHTML=i}},e.prototype.setTotalLabelsToZero=function(){this.lbFirstRowOnPage.innerHTML=this.formatNumber(0),this.lbCurrent.innerHTML=this.formatNumber(0),this.lbLastRowOnPage.innerHTML=this.formatNumber(0),this.lbTotal.innerHTML=this.formatNumber(0),this.lbRecordCount.innerHTML=this.formatNumber(0)},A7([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),A7([aY("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),A7([TZ("btFirst")],e.prototype,"btFirst",void 0),A7([TZ("btPrevious")],e.prototype,"btPrevious",void 0),A7([TZ("btNext")],e.prototype,"btNext",void 0),A7([TZ("btLast")],e.prototype,"btLast",void 0),A7([TZ("lbRecordCount")],e.prototype,"lbRecordCount",void 0),A7([TZ("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),A7([TZ("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),A7([TZ("lbCurrent")],e.prototype,"lbCurrent",void 0),A7([TZ("lbTotal")],e.prototype,"lbTotal",void 0),A7([nY],e.prototype,"postConstruct",null),e}(EZ),P7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),L7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(r6||(r6={}));var N7=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return P7(e,t),e.prototype.updateLayoutClasses=function(t,e){var o=this.eOverlayWrapper.classList;o.toggle(J0.AUTO_HEIGHT,e.autoHeight),o.toggle(J0.NORMAL,e.normal),o.toggle(J0.PRINT,e.print)},e.prototype.postConstruct=function(){this.createManagedBean(new v1(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,eK.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.onNewColumnsLoaded.bind(this)),this.gridOptionsService.isRowModelType("clientSide")&&!this.gridOptionsService.get("rowData")&&this.showLoadingOverlay(),this.gridApi.registerOverlayWrapperComp(this)},e.prototype.setWrapperTypeClass=function(t){var e=this.eOverlayWrapper.classList;e.toggle("ag-overlay-loading-wrapper",t===r6.Loading),e.toggle("ag-overlay-no-rows-wrapper",t===r6.NoRows)},e.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,r6.Loading)}},e.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,r6.NoRows)}},e.prototype.showOverlay=function(t,e){var o=this;this.inProgress||(this.setWrapperTypeClass(e),this.destroyActiveOverlay(),this.inProgress=!0,t&&t.then((function(t){o.inProgress=!1,o.eOverlayWrapper.appendChild(t.getGui()),o.activeOverlay=t,o.destroyRequested&&(o.destroyRequested=!1,o.destroyActiveOverlay())})),this.manuallyDisplayed=this.columnModel.isReady()&&!this.paginationProxy.isEmpty(),this.setDisplayed(!0,{skipAriaHidden:!0}))},e.prototype.destroyActiveOverlay=function(){this.inProgress?this.destroyRequested=!0:this.activeOverlay&&(this.activeOverlay=this.getContext().destroyBean(this.activeOverlay),Eq(this.eOverlayWrapper))},e.prototype.hideOverlay=function(){this.manuallyDisplayed=!1,this.destroyActiveOverlay(),this.setDisplayed(!1,{skipAriaHidden:!0})},e.prototype.destroy=function(){this.destroyActiveOverlay(),t.prototype.destroy.call(this)},e.prototype.showOrHideOverlay=function(){var t=this.paginationProxy.isEmpty(),e=this.gridOptionsService.is("suppressNoRowsOverlay");t&&!e?this.showNoRowsOverlay():this.hideOverlay()},e.prototype.onRowDataUpdated=function(){this.showOrHideOverlay()},e.prototype.onNewColumnsLoaded=function(){!this.columnModel.isReady()||this.paginationProxy.isEmpty()||this.manuallyDisplayed||this.hideOverlay()},e.TEMPLATE='\n ',L7([aY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),L7([aY("paginationProxy")],e.prototype,"paginationProxy",void 0),L7([aY("gridApi")],e.prototype,"gridApi",void 0),L7([aY("columnModel")],e.prototype,"columnModel",void 0),L7([TZ("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),L7([nY],e.prototype,"postConstruct",null),e}(EZ),F7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),k7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},G7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return F7(e,t),e.prototype.getFirstRow=function(){var t,e=0;return this.pinnedRowModel.getPinnedTopRowCount()?t="top":this.rowModel.getRowCount()?(t=null,e=this.paginationProxy.getPageFirstRow()):this.pinnedRowModel.getPinnedBottomRowCount()&&(t="bottom"),void 0===t?null:{rowIndex:e,rowPinned:t}},e.prototype.getLastRow=function(){var t,e=null,o=this.pinnedRowModel.getPinnedBottomRowCount(),n=this.pinnedRowModel.getPinnedTopRowCount();return o?(e="bottom",t=o-1):this.rowModel.getRowCount()?(e=null,t=this.paginationProxy.getPageLastRow()):n&&(e="top",t=n-1),void 0===t?null:{rowIndex:t,rowPinned:e}},e.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},e.prototype.sameRow=function(t,e){return!t&&!e||!(t&&!e||!t&&e)&&t.rowIndex===e.rowIndex&&t.rowPinned==e.rowPinned},e.prototype.before=function(t,e){switch(t.rowPinned){case"top":if("top"!==e.rowPinned)return!0;break;case"bottom":if("bottom"!==e.rowPinned)return!1;break;default:if(h$(e.rowPinned))return"top"!==e.rowPinned}return t.rowIndex=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("cellPositionUtils")],e)}(qY),B7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),W7=function(t){this.cellValueChanges=t},z7=function(t){function e(e,o,n,i){var r=t.call(this,e)||this;return r.initialRange=o,r.finalRange=n,r.ranges=i,r}return B7(e,t),e}(W7),j7=function(){function t(e){this.actionStack=[],this.maxStackSize=e||t.DEFAULT_STACK_SIZE,this.actionStack=new Array(this.maxStackSize)}return t.prototype.pop=function(){return this.actionStack.pop()},t.prototype.push=function(t){t.cellValueChanges&&t.cellValueChanges.length>0&&(this.actionStack.length===this.maxStackSize&&this.actionStack.shift(),this.actionStack.push(t))},t.prototype.clear=function(){this.actionStack=[]},t.prototype.getCurrentStackSize=function(){return this.actionStack.length},t.DEFAULT_STACK_SIZE=10,t}(),U7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),$7=function(){return $7=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},K7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cellValueChanges=[],e.activeCellEdit=null,e.activeRowEdit=null,e.isPasting=!1,e.isRangeInAction=!1,e.onCellValueChanged=function(t){var o={column:t.column,rowIndex:t.rowIndex,rowPinned:t.rowPinned},n=null!==e.activeCellEdit&&e.cellPositionUtils.equals(e.activeCellEdit,o),i=null!==e.activeRowEdit&&e.rowPositionUtils.sameRow(e.activeRowEdit,o);if(n||i||e.isPasting||e.isRangeInAction){var r=t.rowPinned,a=t.rowIndex,s=t.column,l=t.oldValue,u=t.value,c={rowPinned:r,rowIndex:a,columnId:s.getColId(),newValue:u,oldValue:l};e.cellValueChanges.push(c)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return U7(e,t),e.prototype.init=function(){var t=this;if(this.gridOptionsService.is("undoRedoCellEditing")){var e=this.gridOptionsService.getNum("undoRedoCellEditingLimit");e<=0||(this.undoStack=new j7(e),this.redoStack=new j7(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,eK.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,eK.EVENT_MODEL_UPDATED,(function(e){e.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,eK.EVENT_ROW_DRAG_END,this.clearStacks),this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl()})))}},e.prototype.getCurrentUndoStackSize=function(){return this.undoStack?this.undoStack.getCurrentStackSize():0},e.prototype.getCurrentRedoStackSize=function(){return this.redoStack?this.redoStack.getCurrentStackSize():0},e.prototype.undo=function(t){var e={type:eK.EVENT_UNDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),n={type:eK.EVENT_UNDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(n)},e.prototype.redo=function(t){var e={type:eK.EVENT_REDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),n={type:eK.EVENT_REDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(n)},e.prototype.undoRedo=function(t,e,o,n,i){if(!t)return!1;var r=t.pop();return!(!r||!r.cellValueChanges||(this.processAction(r,(function(t){return t[n]}),i),r instanceof z7?this.processRange(r.ranges||[r[o]]):this.processCell(r.cellValueChanges),e.push(r),0))},e.prototype.processAction=function(t,e,o){var n=this;t.cellValueChanges.forEach((function(t){var i=t.rowIndex,r=t.rowPinned,a=t.columnId,s={rowIndex:i,rowPinned:r},l=n.getRowNode(s);l.displayed&&l.setDataValue(a,e(t),o)}))},e.prototype.processRange=function(t){var e,o=this;this.rangeService.removeAllCellRanges(!0),t.forEach((function(n,i){if(n){var r=n.startRow,a=n.endRow;i===t.length-1&&(e={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:n.startColumn.getColId()},o.setLastFocusedCell(e));var s={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:a.rowIndex,rowEndPinned:a.rowPinned,columnStart:n.startColumn,columns:n.columns};o.rangeService.addCellRange(s)}}))},e.prototype.processCell=function(t){var e=t[0],o={rowIndex:e.rowIndex,rowPinned:e.rowPinned},n=this.getRowNode(o),i={rowPinned:e.rowPinned,rowIndex:n.rowIndex,columnId:e.columnId};this.setLastFocusedCell(i,!!this.rangeService)},e.prototype.setLastFocusedCell=function(t,e){var o=t.rowIndex,n=t.columnId,i=t.rowPinned,r=this.gridBodyCtrl.getScrollFeature(),a=this.columnModel.getGridColumn(n);if(a){r.ensureIndexVisible(o),r.ensureColumnVisible(a);var s={rowIndex:o,column:a,rowPinned:i};this.focusService.setFocusedCell($7($7({},s),{forceBrowserFocus:!0})),e&&this.rangeService.setRangeToCell(s)}},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_ROW_EDITING_STARTED,(function(e){t.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,eK.EVENT_ROW_EDITING_STOPPED,(function(){var e=new W7(t.cellValueChanges);t.pushActionsToUndoStack(e),t.activeRowEdit=null}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_CELL_EDITING_STARTED,(function(e){t.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,eK.EVENT_CELL_EDITING_STOPPED,(function(e){if(t.activeCellEdit=null,e.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var o=new W7(t.cellValueChanges);t.pushActionsToUndoStack(o)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,eK.EVENT_PASTE_END,(function(){var e=new W7(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,eK.EVENT_FILL_END,(function(e){var o=new z7(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isRangeInAction=!1}))},e.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,eK.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var e;e=t.rangeService&&t.gridOptionsService.is("enableRangeSelection")?new z7(t.cellValueChanges,void 0,void 0,function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(t.rangeService.getCellRanges()))):new W7(t.cellValueChanges),t.pushActionsToUndoStack(e),t.isRangeInAction=!1}))},e.prototype.pushActionsToUndoStack=function(t){this.undoStack.push(t),this.cellValueChanges=[],this.redoStack.clear()},e.prototype.getRowNode=function(t){switch(t.rowPinned){case"top":return this.pinnedRowModel.getPinnedTopRowData()[t.rowIndex];case"bottom":return this.pinnedRowModel.getPinnedBottomRowData()[t.rowIndex];default:return this.rowModel.getRow(t.rowIndex)}},Y7([aY("focusService")],e.prototype,"focusService",void 0),Y7([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),Y7([aY("rowModel")],e.prototype,"rowModel",void 0),Y7([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),Y7([aY("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),Y7([aY("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),Y7([aY("columnModel")],e.prototype,"columnModel",void 0),Y7([sY("rangeService")],e.prototype,"rangeService",void 0),Y7([nY],e.prototype,"init",null),Y7([rY("undoRedoService")],e)}(qY),X7=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),q7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},Z7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return X7(e,t),e.prototype.findHeader=function(t,e){var o,n,i;if(t.column instanceof tK?(n="getDisplayedGroup"+e,o=this.columnModel[n](t.column)):(i="getDisplayedCol"+e,o=this.columnModel[i](t.column)),o){var r=t.headerRowIndex;if(this.getHeaderRowType(r)===A2.COLUMN_GROUP){var a=o;if(a.isPadding()&&this.isAnyChildSpanningHeaderHeight(a)){var s=this.getColumnVisibleChild(a,r,e),l=s.nextFocusColumn,u=s.nextRow;l&&(o=l,r=u)}}return{column:o,headerRowIndex:r}}},e.prototype.isAnyChildSpanningHeaderHeight=function(t){return!!t&&t.getLeafColumns().some((function(t){return t.isSpanHeaderHeight()}))},e.prototype.getColumnVisibleParent=function(t,e){var o=this.getHeaderRowType(e),n=o===A2.FLOATING_FILTER,i=o===A2.COLUMN,r=n?t:t.getParent(),a=e-1;if(i&&this.isAnyChildSpanningHeaderHeight(t.getParent())){for(;r&&r.isPadding();)r=r.getParent(),a--;a<0&&(r=t,a=e)}return{nextFocusColumn:r,nextRow:a}},e.prototype.getColumnVisibleChild=function(t,e,o){void 0===o&&(o="After");var n=t,i=e+1;if(this.getHeaderRowType(e)===A2.COLUMN_GROUP){var r=t.getLeafColumns(),a="After"===o?r[0]:_Y(r);if(this.isAnyChildSpanningHeaderHeight(a.getParent())){n=a;for(var s=a.getParent();s&&s!==t;)s=s.getParent(),i++}else n=t.getDisplayedChildren()[0]}return{nextFocusColumn:n,nextRow:i}},e.prototype.getHeaderRowType=function(t){var e=this.ctrlsService.getHeaderRowContainerCtrl();if(e)return e.getRowType(t)},e.prototype.findColAtEdgeForHeaderRow=function(t,e){var o=this.columnModel.getAllDisplayedColumns(),n=o["start"===e?0:o.length-1];if(n){var i=this.ctrlsService.getHeaderRowContainerCtrl(n.getPinned()).getRowType(t);return i==A2.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(n,t)}:{headerRowIndex:null==i?-1:t,column:n}}},q7([aY("columnModel")],e.prototype,"columnModel",void 0),q7([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),q7([rY("headerPositionUtils")],e)}(qY),Q7=function(){function t(){}return t.prototype.buildColumnDefs=function(t,e,o){var n=this,i=[],r={};return t.forEach((function(t){for(var a=!0,s=n.createDefFromColumn(t,e,o),l=t.getOriginalParent(),u=null;l;){var c=null;if(l.isPadding())l=l.getOriginalParent();else{var p=r[l.getGroupId()];if(p){p.children.push(s),a=!1;break}if((c=n.createDefFromGroup(l))&&(c.children=[s],r[c.groupId]=c,s=c,l=l.getOriginalParent()),null!=l&&u===l){a=!1;break}u=l}}a&&i.push(s)})),i},t.prototype.createDefFromGroup=function(t){var e=T$(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},t.prototype.createDefFromColumn=function(t,e,o){var n=T$(t.getColDef());return n.colId=t.getColId(),n.width=t.getActualWidth(),n.rowGroup=t.isRowGroupActive(),n.rowGroupIndex=t.isRowGroupActive()?e.indexOf(t):null,n.pivot=t.isPivotActive(),n.pivotIndex=t.isPivotActive()?o.indexOf(t):null,n.aggFunc=t.isValueActive()?t.getAggFunc():null,n.hide=!t.isVisible()||void 0,n.pinned=t.isPinned()?t.getPinned():null,n.sort=t.getSort()?t.getSort():null,n.sortIndex=null!=t.getSortIndex()?t.getSortIndex():null,n},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("columnDefFactory")],t)}(),J7=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},t8=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var e=[];return h$(t.extraCssClass)&&e.push(t.extraCssClass),e.push("ag-row"),e.push(t.rowFocused?"ag-row-focus":"ag-row-no-focus"),t.fadeRowIn&&e.push("ag-opacity-zero"),e.push(t.rowIsEven?"ag-row-even":"ag-row-odd"),t.rowNode.isRowPinned()&&e.push("ag-row-pinned"),t.rowNode.isSelected()&&e.push("ag-row-selected"),t.rowNode.footer&&e.push("ag-row-footer"),e.push("ag-row-level-"+t.rowLevel),t.rowNode.stub&&e.push("ag-row-loading"),t.fullWidthRow&&e.push("ag-full-width-row"),t.expandable&&(e.push("ag-row-group"),e.push(t.rowNode.expanded?"ag-row-group-expanded":"ag-row-group-contracted")),t.rowNode.dragging&&e.push("ag-row-dragging"),LY(e,this.processClassesFromGridOptions(t.rowNode)),LY(e,this.preProcessRowClassRules(t.rowNode)),e.push(t.printLayout?"ag-row-position-relative":"ag-row-position-absolute"),t.firstRowOnPage&&e.push("ag-row-first"),t.lastRowOnPage&&e.push("ag-row-last"),t.fullWidthRow&&("left"===t.pinned&&e.push("ag-cell-last-left-pinned"),"right"===t.pinned&&e.push("ag-cell-first-right-pinned")),e},t.prototype.processClassesFromGridOptions=function(t){var e=[],o=function(t){"string"==typeof t?e.push(t):Array.isArray(t)&&t.forEach((function(t){return e.push(t)}))},n=this.gridOptionsService.get("rowClass");if(n){if("function"==typeof n)return console.warn("AG Grid: rowClass should not be a function, please use getRowClass instead"),[];o(n)}var i=this.gridOptionsService.getCallback("getRowClass");return i&&o(i({data:t.data,node:t,rowIndex:t.rowIndex})),e},t.prototype.preProcessRowClassRules=function(t){var e=[];return this.processRowClassRules(t,(function(t){e.push(t)}),(function(t){})),e},t.prototype.processRowClassRules=function(t,e,o){var n={data:t.data,node:t,rowIndex:t.rowIndex,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context};this.stylingService.processClassRules(this.gridOptionsService.get("rowClassRules"),n,e,o)},t.prototype.calculateRowLevel=function(t){return t.group?t.level:t.parent?t.parent.level+1:0},J7([aY("stylingService")],t.prototype,"stylingService",void 0),J7([aY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),J7([rY("rowCssClassCalculator")],t)}(),e8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),o8=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},n8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return e8(e,t),e.prototype.init=function(){var t=this;this.isAccentedSort=this.gridOptionsService.is("accentedSort"),this.primaryColumnsSortGroups=this.gridOptionsService.isColumnsSortingCoupledToGroup(),this.addManagedPropertyListener("accentedSort",(function(e){return t.isAccentedSort=e.currentValue})),this.addManagedPropertyListener("autoGroupColumnDef",(function(){return t.primaryColumnsSortGroups=t.gridOptionsService.isColumnsSortingCoupledToGroup()}))},e.prototype.doFullSort=function(t,e){var o=t.map((function(t,e){return{currentPos:e,rowNode:t}}));return o.sort(this.compareRowNodes.bind(this,e)),o.map((function(t){return t.rowNode}))},e.prototype.compareRowNodes=function(t,e,o){for(var n=e.rowNode,i=o.rowNode,r=0,a=t.length;r=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY(o.NAME)],e)}(qY),a8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),s8=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registry={},e}return a8(e,t),e.prototype.register=function(t){this.registry[t.controllerName]=t.controllerClass},e.prototype.getInstance=function(t){var e=this.registry[t];if(null!=e)return new e},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("ctrlsFactory")],e)}(qY),l8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),u8=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},c8=function(t){function e(e,o){var n=t.call(this,e)||this;return n.direction=o,n.hideTimeout=null,n}return l8(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,eK.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",VX()||HX())},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=KX(),this.invisibleScrollbar&&(this.hideAndShowInvisibleScrollAsNeeded(),this.addActiveListenerToggles()))},e.prototype.addActiveListenerToggles=function(){var t=this,e=this.getGui();["mouseenter","mousedown","touchstart"].forEach((function(o){return t.addManagedListener(e,o,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!0)}))})),["mouseleave","touchend"].forEach((function(o){return t.addManagedListener(e,o,(function(){return t.addOrRemoveCssClass("ag-scrollbar-active",!1)}))}))},e.prototype.onScrollVisibilityChanged=function(){var t=this;void 0===this.invisibleScrollbar&&this.initialiseInvisibleScrollbar(),this.animationFrameService.requestAnimationFrame((function(){return t.setScrollVisible()}))},e.prototype.hideAndShowInvisibleScrollAsNeeded=function(){var t=this;this.addManagedListener(this.eventService,eK.EVENT_BODY_SCROLL,(function(e){e.direction===t.direction&&(null!==t.hideTimeout&&(window.clearTimeout(t.hideTimeout),t.hideTimeout=null),t.addOrRemoveCssClass("ag-scrollbar-scrolling",!0))})),this.addManagedListener(this.eventService,eK.EVENT_BODY_SCROLL_END,(function(){t.hideTimeout=window.setTimeout((function(){t.addOrRemoveCssClass("ag-scrollbar-scrolling",!1),t.hideTimeout=null}),400)}))},e.prototype.attemptSettingScrollPosition=function(t){var e=this,o=this.getViewport();K$((function(){return Dq(o)}),(function(){return e.setScrollPosition(t)}),100)},e.prototype.getViewport=function(){return this.eViewport},e.prototype.getContainer=function(){return this.eContainer},e.prototype.onScrollCallback=function(t){this.addManagedListener(this.getViewport(),"scroll",t)},u8([TZ("eViewport")],e.prototype,"eViewport",void 0),u8([TZ("eContainer")],e.prototype,"eContainer",void 0),u8([aY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),u8([aY("ctrlsService")],e.prototype,"ctrlsService",void 0),u8([aY("animationFrameService")],e.prototype,"animationFrameService",void 0),e}(EZ),p8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),d8=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},h8=function(t){function e(){return t.call(this,e.TEMPLATE,"horizontal")||this}return p8(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,eK.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",o),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new T2((function(t){return e.eContainer.style.width=t+"px"})))},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.enableRtl=this.gridOptionsService.is("enableRtl"),t.prototype.initialiseInvisibleScrollbar.call(this),this.invisibleScrollbar&&this.refreshCompBottom())},e.prototype.onPinnedRowDataChanged=function(){this.refreshCompBottom()},e.prototype.refreshCompBottom=function(){if(this.invisibleScrollbar){var t=this.pinnedRowModel.getPinnedBottomTotalHeight();this.getGui().style.bottom=t+"px"}},e.prototype.onScrollVisibilityChanged=function(){t.prototype.onScrollVisibilityChanged.call(this),this.setFakeHScrollSpacerWidths()},e.prototype.setFakeHScrollSpacerWidths=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.columnModel.getDisplayedColumnsRightWidth(),o=!this.enableRtl&&t,n=this.gridOptionsService.getScrollbarWidth();o&&(e+=n),Gq(this.eRightSpacer,e),this.eRightSpacer.classList.toggle("ag-scroller-corner",e<=n);var i=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(i+=n),Gq(this.eLeftSpacer,i),this.eLeftSpacer.classList.toggle("ag-scroller-corner",i<=n)},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isHorizontalScrollShowing(),e=this.invisibleScrollbar,o=this.gridOptionsService.is("suppressHorizontalScroll"),n=t&&this.gridOptionsService.getScrollbarWidth()||0,i=o?0:0===n&&e?16:n;this.addOrRemoveCssClass("ag-scrollbar-invisible",e),Vq(this.getGui(),i),Vq(this.eViewport,i),Vq(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})},e.prototype.getScrollPosition=function(){return _q(this.getViewport(),this.enableRtl)},e.prototype.setScrollPosition=function(t){Dq(this.getViewport())||this.attemptSettingScrollPosition(t),xq(this.getViewport(),t,this.enableRtl)},e.TEMPLATE='',d8([TZ("eLeftSpacer")],e.prototype,"eLeftSpacer",void 0),d8([TZ("eRightSpacer")],e.prototype,"eRightSpacer",void 0),d8([aY("columnModel")],e.prototype,"columnModel",void 0),d8([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),d8([nY],e.prototype,"postConstruct",null),e}(c8),f8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),g8=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},v8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f8(e,t),e.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,eK.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedPropertyListener("domLayout",t)},e.prototype.checkContainerWidths=function(){var t=this.gridOptionsService.isDomLayout("print"),e=t?0:this.columnModel.getDisplayedColumnsLeftWidth(),o=t?0:this.columnModel.getDisplayedColumnsRightWidth();e!=this.leftWidth&&(this.leftWidth=e,this.eventService.dispatchEvent({type:eK.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:eK.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},e.prototype.getPinnedRightWidth=function(){return this.rightWidth},e.prototype.getPinnedLeftWidth=function(){return this.leftWidth},g8([aY("columnModel")],e.prototype,"columnModel",void 0),g8([nY],e.prototype,"postConstruct",null),g8([rY("pinnedWidthService")],e)}(qY),y8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),m8=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},C8=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=[],e}return y8(e,t),e.prototype.postConstruct=function(){"clientSide"==this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},e.prototype.dispatchExpanded=function(t){var e=this;null!=this.clientSideRowModel?(this.events.push(t),null==this.dispatchExpandedDebounced&&(this.dispatchExpandedDebounced=this.animationFrameService.debounce((function(){e.clientSideRowModel&&e.clientSideRowModel.onRowGroupOpened(),e.events.forEach((function(t){return e.eventService.dispatchEvent(t)})),e.events=[]}))),this.dispatchExpandedDebounced()):this.eventService.dispatchEvent(t)},m8([aY("animationFrameService")],e.prototype,"animationFrameService",void 0),m8([aY("rowModel")],e.prototype,"rowModel",void 0),m8([nY],e.prototype,"postConstruct",null),m8([rY("rowNodeEventThrottle")],e)}(qY),w8=function(){return w8=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},b8=function(t,e){return function(o,n){e(o,n,t)}},_8=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},x8=function(t,e){for(var o=0,n=e.length,i=t.length;o=0?this.gridOptions.scrollbarWidth:$X();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:eK.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.isRowModelType=function(t){return this.gridOptions.rowModelType===t||"clientSide"===t&&f$(this.gridOptions.rowModelType)},t.prototype.isDomLayout=function(t){var e;return(null!==(e=this.gridOptions.domLayout)&&void 0!==e?e:"normal")===t},t.prototype.isRowSelection=function(){return"single"===this.gridOptions.rowSelection||"multiple"===this.gridOptions.rowSelection},t.prototype.useAsyncEvents=function(){return!this.is("suppressAsyncEvents")},t.prototype.isGetRowHeightFunction=function(){return"function"==typeof this.gridOptions.getRowHeight},t.prototype.getRowHeightForNode=function(t,e,o){if(void 0===e&&(e=!1),null==o&&(o=this.environment.getDefaultRowHeight()),this.isGetRowHeightFunction()){if(e)return{height:o,estimated:!0};var n={node:t,data:t.data},i=this.getCallback("getRowHeight")(n);if(this.isNumeric(i))return 0===i&&G$((function(){return console.warn("AG Grid: The return of `getRowHeight` cannot be zero. If the intention is to hide rows, use a filter instead.")}),"invalidRowHeight"),{height:Math.max(1,i),estimated:!1}}return t.detail&&this.is("masterDetail")?this.getMasterDetailRowHeight():{height:this.gridOptions.rowHeight&&this.isNumeric(this.gridOptions.rowHeight)?this.gridOptions.rowHeight:o,estimated:!1}},t.prototype.getMasterDetailRowHeight=function(){return this.is("detailRowAutoHeight")?{height:1,estimated:!1}:this.isNumeric(this.gridOptions.detailRowHeight)?{height:this.gridOptions.detailRowHeight,estimated:!1}:{height:300,estimated:!1}},t.prototype.getRowHeightAsNumber=function(){if(!this.gridOptions.rowHeight||f$(this.gridOptions.rowHeight))return this.environment.getDefaultRowHeight();var t=this.environment.refreshRowHeightVariable();return-1!==t?t:(console.warn("AG Grid row height must be a number if not using standard row model"),this.environment.getDefaultRowHeight())},t.prototype.isNumeric=function(t){return!isNaN(t)&&"number"==typeof t&&isFinite(t)},t.prototype.getDomDataKey=function(){return this.domDataKey},t.prototype.getDomData=function(t,e){var o=t[this.getDomDataKey()];return o?o[e]:void 0},t.prototype.setDomData=function(t,e,o){var n=this.getDomDataKey(),i=t[n];f$(i)&&(i={},t[n]=i),i[e]=o},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&h$(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&h$(t)?t:document},t.prototype.getWindow=function(){return this.getDocument().defaultView||window},t.prototype.getRootNode=function(){return this.eGridDiv.getRootNode()},t.prototype.getAsyncTransactionWaitMillis=function(){return h$(this.gridOptions.asyncTransactionWaitMillis)?this.gridOptions.asyncTransactionWaitMillis:50},t.prototype.isAnimateRows=function(){return!this.is("ensureDomOrder")&&this.is("animateRows")},t.prototype.isGroupRowsSticky=function(){return!(this.is("suppressGroupRowsSticky")||this.is("paginateChildRows")||this.is("groupHideOpenParents"))},t.prototype.isColumnsSortingCoupledToGroup=function(){var t=this.gridOptions.autoGroupColumnDef;return this.isRowModelType("clientSide")&&!(null==t?void 0:t.comparator)&&!this.is("treeData")},t.prototype.getGroupAggFiltering=function(){var t=this.gridOptions.groupAggFiltering;return"function"==typeof t?this.getCallback("groupAggFiltering"):E8(t)?function(){return!0}:void 0},t.prototype.isGroupIncludeFooterTrueOrCallback=function(){var t=this.gridOptions.groupIncludeFooter;return E8(t)||"function"==typeof t},t.prototype.getGroupIncludeFooter=function(){var t=this.gridOptions.groupIncludeFooter;return"function"==typeof t?this.getCallback("groupIncludeFooter"):E8(t)?function(){return!0}:function(){return!1}},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?LK("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},t.prototype.isGroupUseEntireRow=function(t){return!t&&!!this.gridOptions.groupDisplayType&&LK("groupRows",this.gridOptions.groupDisplayType)},t.alwaysSyncGlobalEvents=new Set([eK.EVENT_GRID_PRE_DESTROYED]),S8([aY("gridOptions")],t.prototype,"gridOptions",void 0),S8([aY("eventService")],t.prototype,"eventService",void 0),S8([aY("environment")],t.prototype,"environment",void 0),S8([aY("eGridDiv")],t.prototype,"eGridDiv",void 0),S8([b8(0,uY("gridApi")),b8(1,uY("columnApi"))],t.prototype,"agWire",null),S8([nY],t.prototype,"init",null),S8([iY],t.prototype,"destroy",null),e=S8([rY("gridOptionsService")],t)}(),R8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),O8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R8(e,t),e.prototype.getLocaleTextFunc=function(){var t=this.gridOptionsService.getCallback("getLocaleText");if(t)return function(e,o,n){return t({key:e,defaultValue:o,variableValues:n})};var e=this.gridOptionsService.get("localeText");return function(t,o,n){var i=e&&e[t];if(i&&n&&n.length)for(var r=0;!(r>=n.length)&&-1!==i.indexOf("${variable}");)i=i.replace("${variable}",n[r++]);return null!=i?i:o}},function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a}([rY("localeService")],e)}(qY),M8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),A8=function(t){function e(){return t.call(this,e.TEMPLATE,"vertical")||this}return M8(e,t),e.prototype.postConstruct=function(){t.prototype.postConstruct.call(this),this.createManagedBean(new w2(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,eK.EVENT_ROW_CONTAINER_HEIGHT_CHANGED,this.onRowContainerHeightChanged.bind(this))},e.prototype.setScrollVisible=function(){var t=this.scrollVisibleService.isVerticalScrollShowing(),e=this.invisibleScrollbar,o=t&&this.gridOptionsService.getScrollbarWidth()||0,n=0===o&&e?16:o;this.addOrRemoveCssClass("ag-scrollbar-invisible",e),Gq(this.getGui(),n),Gq(this.eViewport,n),Gq(this.eContainer,n),this.setDisplayed(t,{skipAriaHidden:!0})},e.prototype.onRowContainerHeightChanged=function(){var t=this.ctrlsService.getGridBodyCtrl().getBodyViewportElement();this.eViewport.scrollTop!=t.scrollTop&&(this.eViewport.scrollTop=t.scrollTop)},e.prototype.getScrollPosition=function(){return this.getViewport().scrollTop},e.prototype.setScrollPosition=function(t){Dq(this.getViewport())||this.attemptSettingScrollPosition(t),this.getViewport().scrollTop=t},e.TEMPLATE='',function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);r>3&&a&&Object.defineProperty(e,o,a)}([nY],e.prototype,"postConstruct",null),e}(c8),I8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),P8=function(){return P8=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},N8=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},F8=function(t,e){for(var o=0,n=e.length,i=t.length;o=0&&!this.gridOptionsService.is("suppressFieldDotNotation");n=P$(i,t,r)}else this.initWaitForRowData(e);if(null!=n)return N8(null!==(o=Object.entries(this.dataTypeMatchers).find((function(t){var e=N8(t,2);return e[0],(0,e[1])(n)})))&&void 0!==o?o:["object"],1)[0]}},e.prototype.getInitialData=function(){var t=this.gridOptionsService.get("rowData");if(null==t?void 0:t.length)return t[0];if(this.initialData)return this.initialData;var e=this.rowModel.getRootNode().allLeafChildren;return(null==e?void 0:e.length)?e[0].data:null},e.prototype.initWaitForRowData=function(t){var e=this;if(this.columnStateUpdatesPendingInference[t]=new Set,!this.isWaitingForRowData){this.isWaitingForRowData=!0;var o=this.isColumnTypeOverrideInDataTypeDefinitions;o&&this.columnModel.queueResizeOperations();var n=this.addManagedListener(this.eventService,eK.EVENT_ROW_DATA_UPDATE_STARTED,(function(t){var i=t.firstRowData;if(i){null==n||n(),e.isWaitingForRowData=!1,e.processColumnsPendingInference(i,o),e.columnStateUpdatesPendingInference={},o&&e.columnModel.processResizeOperations();var r={type:eK.EVENT_DATA_TYPES_INFERRED};e.eventService.dispatchEvent(r)}}))}},e.prototype.isPendingInference=function(){return this.isWaitingForRowData},e.prototype.processColumnsPendingInference=function(t,e){var o=this;this.initialData=t;var n=[];this.columnStateUpdateListenerDestroyFuncs.forEach((function(t){return t()})),this.columnStateUpdateListenerDestroyFuncs=[];var i={},r={};Object.entries(this.columnStateUpdatesPendingInference).forEach((function(t){var a=N8(t,2),s=a[0],l=a[1],u=o.columnModel.getGridColumn(s);if(u){var c=u.getColDef();if(o.columnModel.resetColumnDefIntoColumn(u)){var p=u.getColDef();if(e&&p.type&&p.type!==c.type){var d=o.getUpdatedColumnState(u,l);d.rowGroup&&null==d.rowGroupIndex&&(i[s]=d),d.pivot&&null==d.pivotIndex&&(r[s]=d),n.push(d)}}}})),e&&n.push.apply(n,F8([],N8(this.columnModel.generateColumnStateForRowGroupAndPivotIndexes(i,r)))),n.length&&this.columnModel.applyColumnState({state:n},"cellDataTypeInferred"),this.initialData=null},e.prototype.getUpdatedColumnState=function(t,e){var o=this.columnModel.getColumnStateFromColDef(t);return e.forEach((function(t){delete o[t],"rowGroup"===t?delete o.rowGroupIndex:"pivot"===t&&delete o.pivotIndex})),o},e.prototype.checkObjectValueHandlers=function(t){var e=this.dataTypeDefinitions.object,o=t.object;this.hasObjectValueParser=e.valueParser!==o.valueParser,this.hasObjectValueFormatter=e.valueFormatter!==o.valueFormatter},e.prototype.convertColumnTypes=function(t){var e=[];return t instanceof Array?t.some((function(t){return"string"!=typeof t}))?console.warn("AG Grid: if colDef.type is supplied an array it should be of type 'string[]'"):e=t:"string"==typeof t?e=t.split(","):console.warn("AG Grid: colDef.type should be of type 'string' | 'string[]'"),e},e.prototype.getDateStringTypeDefinition=function(){return this.dataTypeDefinitions.dateString},e.prototype.getDateParserFunction=function(){return this.getDateStringTypeDefinition().dateParser},e.prototype.getDateFormatterFunction=function(){return this.getDateStringTypeDefinition().dateFormatter},e.prototype.getDataTypeDefinition=function(t){var e=t.getColDef();if(e.cellDataType)return this.dataTypeDefinitions[e.cellDataType]},e.prototype.getBaseDataType=function(t){var e;return null===(e=this.getDataTypeDefinition(t))||void 0===e?void 0:e.baseDataType},e.prototype.checkType=function(t,e){var o;if(null==e)return!0;var n=null===(o=this.getDataTypeDefinition(t))||void 0===o?void 0:o.dataTypeMatcher;return!n||n(e)},e.prototype.validateColDef=function(t){"object"===t.cellDataType&&(t.valueFormatter!==this.dataTypeDefinitions.object.groupSafeValueFormatter||this.hasObjectValueFormatter||G$((function(){return console.warn('AG Grid: Cell data type is "object" but no value formatter has been provided. Please either provide an object data type definition with a value formatter, or set "colDef.valueFormatter"')}),"dataTypeObjectValueFormatter"),t.editable&&t.valueParser===this.dataTypeDefinitions.object.valueParser&&!this.hasObjectValueParser&&G$((function(){return console.warn('AG Grid: Cell data type is "object" but no value parser has been provided. Please either provide an object data type definition with a value parser, or set "colDef.valueParser"')}),"dataTypeObjectValueParser"))},e.prototype.setColDefPropertiesForBaseDataType=function(t,e,o){var n=this,i=function(t,o,i){var r=t.getColDef().valueFormatter;return r===e.groupSafeValueFormatter&&(r=e.valueFormatter),n.valueFormatterService.formatValue(t,o,i,r)},r=tY.__isRegistered(q$.SetFilterModule,this.context.getGridId()),a=this.localeService.getLocaleTextFunc(),s=function(e){var o=t.filterParams;t.filterParams="object"==typeof o?P8(P8({},o),e):e};switch(t.useValueFormatterForExport=!0,t.useValueParserForImport=!0,e.baseDataType){case"number":t.cellEditor="agNumberCellEditor",r&&s({comparator:function(t,e){var o=null==t?0:parseInt(t),n=null==e?0:parseInt(e);return o===n?0:o>n?1:-1}});break;case"boolean":t.cellEditor="agCheckboxCellEditor",t.cellRenderer="agCheckboxCellRenderer",t.suppressKeyboardEvent=function(t){return!!t.colDef.editable&&t.event.key===Qq.SPACE},s(r?{valueFormatter:function(t){return h$(t.value)?a(String(t.value),t.value?"True":"False"):a("blanks","(Blanks)")}}:{maxNumConditions:1,filterOptions:["empty",{displayKey:"true",displayName:"True",predicate:function(t,e){return e},numberOfInputs:0},{displayKey:"false",displayName:"False",predicate:function(t,e){return!1===e},numberOfInputs:0}]});break;case"date":t.cellEditor="agDateCellEditor",t.keyCreator=function(t){return i(t.column,t.node,t.value)},r&&s({valueFormatter:function(t){var e=i(t.column,t.node,t.value);return h$(e)?e:a("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(t,e){if(1===e&&null!=t){var o=G8[Number(t)-1];return a(o,k8[o])}return null!=t?t:a("blanks","(Blanks)")}});break;case"dateString":t.cellEditor="agDateStringCellEditor",t.keyCreator=function(t){return i(t.column,t.node,t.value)};var l=this.getDateParserFunction();s(r?{valueFormatter:function(t){var e=i(t.column,t.node,t.value);return h$(e)?e:a("blanks","(Blanks)")},treeList:!0,treeListPathGetter:function(t){var e=l(null!=t?t:void 0);return e?[String(e.getFullYear()),String(e.getMonth()+1),String(e.getDate())]:null},treeListFormatter:function(t,e){if(1===e&&null!=t){var o=G8[Number(t)-1];return a(o,k8[o])}return null!=t?t:a("blanks","(Blanks)")}}:{comparator:function(t,e){var o=l(e);return null==e||ot?1:0}});break;case"object":t.cellEditorParams={useFormatter:!0},t.comparator=function(t,e){var r=n.columnModel.getPrimaryColumn(o),a=null==r?void 0:r.getColDef();if(!r||!a)return 0;var s=null==t?"":i(r,null,t),l=null==e?"":i(r,null,e);return s===l?0:s>l?1:-1},t.keyCreator=function(t){return i(t.column,t.node,t.value)},r?s({valueFormatter:function(t){var e=i(t.column,t.node,t.value);return h$(e)?e:a("blanks","(Blanks)")}}):t.filterValueGetter=function(t){return i(t.column,t.node,n.valueService.getValue(t.column,t.node))}}},e.prototype.getDefaultDataTypes=function(){var t=function(t){return!!t.match("^\\d{4}-\\d{2}-\\d{2}$")},e=this.localeService.getLocaleTextFunc();return{number:{baseDataType:"number",valueParser:function(t){return""===t.newValue?null:Number(t.newValue)},valueFormatter:function(t){return null==t.value?"":"number"!=typeof t.value||isNaN(t.value)?e("invalidNumber","Invalid Number"):String(t.value)},dataTypeMatcher:function(t){return"number"==typeof t}},text:{baseDataType:"text",valueParser:function(t){return""===t.newValue?null:v$(t.newValue)},dataTypeMatcher:function(t){return"string"==typeof t}},boolean:{baseDataType:"boolean",valueParser:function(t){return""===t.newValue?null:"true"===String(t.newValue).toLowerCase()},valueFormatter:function(t){return null==t.value?"":String(t.value)},dataTypeMatcher:function(t){return"boolean"==typeof t}},date:{baseDataType:"date",valueParser:function(t){return iq(null==t.newValue?null:String(t.newValue))},valueFormatter:function(t){var o;return null==t.value?"":t.value instanceof Date&&!isNaN(t.value.getTime())?null!==(o=eq(t.value,!1))&&void 0!==o?o:"":e("invalidDate","Invalid Date")},dataTypeMatcher:function(t){return t instanceof Date}},dateString:{baseDataType:"dateString",dateParser:function(t){var e;return null!==(e=iq(t))&&void 0!==e?e:void 0},dateFormatter:function(t){var e;return null!==(e=eq(null!=t?t:null,!1))&&void 0!==e?e:void 0},valueParser:function(e){return t(String(e.newValue))?e.newValue:null},valueFormatter:function(e){return t(String(e.value))?e.value:""},dataTypeMatcher:function(e){return"string"==typeof e&&t(e)}},object:{baseDataType:"object",valueParser:function(){return null},valueFormatter:function(t){var e;return null!==(e=v$(t.value))&&void 0!==e?e:""}}}},L8([aY("rowModel")],e.prototype,"rowModel",void 0),L8([aY("columnModel")],e.prototype,"columnModel",void 0),L8([aY("columnUtils")],e.prototype,"columnUtils",void 0),L8([aY("valueService")],e.prototype,"valueService",void 0),L8([aY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),L8([nY],e.prototype,"init",null),L8([rY("dataTypeService")],e)}(qY),H8=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),B8=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},W8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H8(e,t),e.prototype.parseValue=function(t,e,o,n){var i=t.getColDef(),r={node:e,data:null==e?void 0:e.data,oldValue:n,newValue:o,colDef:i,column:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context},a=i.valueParser;return h$(a)?"function"==typeof a?a(r):this.expressionService.evaluate(a,r):o},B8([aY("expressionService")],e.prototype,"expressionService",void 0),B8([rY("valueParserService")],e)}(qY),z8=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},j8=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},Z8=function(t,e){for(var o=0,n=e.length,i=t.length;o0;if(o&&this.selectionService.setNodesSelected({newValue:!1,nodes:t,suppressFinishActions:!0,source:e}),this.selectionService.updateGroupsFromChildrenSelections(e),o){var n={type:eK.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(n)}},t.prototype.executeAdd=function(e,o){var n,i=this,r=e.add,a=e.addIndex;if(!dZ.missingOrEmpty(r)){var s=r.map((function(e){return i.createNode(e,i.rootNode,t.TOP_LEVEL)}));if("number"==typeof a&&a>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=a;if(this.gridOptionsService.is("treeData")&&a>0&&u>0)for(var p=0;p=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},e9=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a},o9=function(t,e){for(var o=0,n=e.length,i=t.length;o0;)e=e.childrenAfterSort[0];return e.rowIndex},e.prototype.getRowBounds=function(t){if(dZ.missing(this.rowsToDisplay))return null;var e=this.rowsToDisplay[t];return e?{rowTop:e.rowTop,rowHeight:e.rowHeight}:null},e.prototype.onRowGroupOpened=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:z0.MAP,keepRenderedRows:!0,animate:t})},e.prototype.onFilterChanged=function(t){if(!t.afterDataChange){var e=this.gridOptionsService.isAnimateRows(),o=0===t.columns.length||t.columns.some((function(t){return t.isPrimary()}))?z0.FILTER:z0.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:e})}},e.prototype.onSortChanged=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:z0.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},e.prototype.getType=function(){return"clientSide"},e.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:z0.PIVOT}):this.refreshModel({step:z0.AGGREGATE})},e.prototype.createChangePath=function(t){var e=dZ.missingOrEmpty(t),o=new n4(!1,this.rootNode);return(e||this.gridOptionsService.is("treeData"))&&o.setInactive(),o},e.prototype.isSuppressModelUpdateAfterUpdateTransaction=function(t){if(!this.gridOptionsService.is("suppressModelUpdateAfterUpdateTransaction"))return!1;if(null==t.rowNodeTransactions)return!1;var e=t.rowNodeTransactions.filter((function(t){return null!=t.add&&t.add.length>0||null!=t.remove&&t.remove.length>0}));return null==e||0==e.length},e.prototype.buildRefreshModelParams=function(t){var e=z0.EVERYTHING,o={everything:z0.EVERYTHING,group:z0.EVERYTHING,filter:z0.FILTER,map:z0.MAP,aggregate:z0.AGGREGATE,sort:z0.SORT,pivot:z0.PIVOT};if(dZ.exists(t)&&(e=o[t]),!dZ.missing(e))return{step:e,keepRenderedRows:!0,keepEditingRows:!0,animate:!this.gridOptionsService.is("suppressAnimationFrame")};console.error("AG Grid: invalid step "+t+", available steps are "+Object.keys(o).join(", "))},e.prototype.refreshModel=function(t){var e="object"==typeof t&&"step"in t?t:this.buildRefreshModelParams(t);if(e&&!this.isSuppressModelUpdateAfterUpdateTransaction(e)){var o=this.createChangePath(e.rowNodeTransactions);switch(e.step){case z0.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,!!e.afterColumnsChanged);case z0.FILTER:this.doFilter(o);case z0.PIVOT:this.doPivot(o);case z0.AGGREGATE:this.doAggregate(o);case z0.FILTER_AGGREGATES:this.doFilterAggregates(o);case z0.SORT:this.doSort(e.rowNodeTransactions,o);case z0.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,n);var i={type:eK.EVENT_MODEL_UPDATED,animate:e.animate,keepRenderedRows:e.keepRenderedRows,newData:e.newData,newPage:!1,keepUndoRedoStack:e.keepUndoRedoStack};this.eventService.dispatchEvent(i)}},e.prototype.isEmpty=function(){var t=dZ.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return dZ.missing(this.rootNode)||t||!this.columnModel.isReady()},e.prototype.isRowsToRender=function(){return dZ.exists(this.rowsToDisplay)&&this.rowsToDisplay.length>0},e.prototype.getNodesInRangeForSelection=function(t,e){var o=!e,n=!1,i=[],r=this.gridOptionsService.is("groupSelectsChildren");return this.forEachNodeAfterFilterAndSort((function(a){if(!n)if(o&&(a===e||a===t)&&(n=!0,a.group&&r))i.push.apply(i,o9([],e9(a.allLeafChildren)));else{if(!o){if(a!==e&&a!==t)return;o=!0}(!a.group||!r)&&i.push(a)}})),i},e.prototype.setDatasource=function(t){console.error("AG Grid: should never call setDatasource on clientSideRowController")},e.prototype.getTopLevelNodes=function(){return this.rootNode?this.rootNode.childrenAfterGroup:null},e.prototype.getRootNode=function(){return this.rootNode},e.prototype.getRow=function(t){return this.rowsToDisplay[t]},e.prototype.isRowPresent=function(t){return this.rowsToDisplay.indexOf(t)>=0},e.prototype.getRowIndexAtPixel=function(t){if(this.isEmpty()||0===this.rowsToDisplay.length)return-1;var e=0,o=this.rowsToDisplay.length-1;if(t<=0)return 0;if(dZ.last(this.rowsToDisplay).rowTop<=t)return this.rowsToDisplay.length-1;for(var n=-1,i=-1;;){var r=Math.floor((e+o)/2),a=this.rowsToDisplay[r];if(this.isRowInPixel(a,t))return r;if(a.rowTopt&&(o=r-1),n===e&&i===o)return r;n=e,i=o}},e.prototype.isRowInPixel=function(t,e){var o=t.rowTop,n=t.rowTop+t.rowHeight;return o<=e&&n>e},e.prototype.forEachLeafNode=function(t){this.rootNode.allLeafChildren&&this.rootNode.allLeafChildren.forEach((function(e,o){return t(e,o)}))},e.prototype.forEachNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:o9([],e9(this.rootNode.childrenAfterGroup||[])),callback:t,recursionType:X8.Normal,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilter=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:o9([],e9(this.rootNode.childrenAfterAggFilter||[])),callback:t,recursionType:X8.AfterFilter,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilterAndSort=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:o9([],e9(this.rootNode.childrenAfterSort||[])),callback:t,recursionType:X8.AfterFilterAndSort,index:0,includeFooterNodes:e})},e.prototype.forEachPivotNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:t,recursionType:X8.PivotNodes,index:0,includeFooterNodes:e})},e.prototype.recursivelyWalkNodesAndCallback=function(t){for(var e,o=t.nodes,n=t.callback,i=t.recursionType,r=t.includeFooterNodes,a=t.index,s=0;s0&&window.setTimeout((function(){e.forEach((function(t){return t()}))}),0),o.length>0){var i={type:eK.EVENT_ASYNC_TRANSACTIONS_FLUSHED,results:o};this.eventService.dispatchEvent(i)}this.rowDataTransactionBatch=null,this.applyAsyncTransactionsTimeout=void 0},e.prototype.updateRowData=function(t,e){this.valueCache.onDataChanged();var o=this.nodeManager.updateRowData(t,e),n="number"==typeof t.addIndex;return this.commonUpdateRowData([o],e,n),o},e.prototype.createRowNodeOrder=function(){if(!this.gridOptionsService.is("suppressMaintainUnsortedOrder")){var t={};if(this.rootNode&&this.rootNode.allLeafChildren)for(var e=0;e=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},s9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r9(e,t),e.prototype.execute=function(t){var e=t.changedPath;this.filterService.filter(e)},a9([aY("filterService")],e.prototype,"filterService",void 0),a9([rY("filterStage")],e)}(qY),l9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),u9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},c9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return l9(e,t),e.prototype.execute=function(t){var e=this,o=this.sortController.getSortOptions(),n=dZ.exists(o)&&o.length>0,i=n&&dZ.exists(t.rowNodeTransactions)&&this.gridOptionsService.is("deltaSort"),r=o.some((function(t){return e.gridOptionsService.isColumnsSortingCoupledToGroup()?t.column.isPrimary()&&t.column.isRowGroupActive():!!t.column.getColDef().showRowGroup}));this.sortService.sort(o,n,i,t.rowNodeTransactions,t.changedPath,r)},u9([aY("sortService")],e.prototype,"sortService",void 0),u9([aY("sortController")],e.prototype,"sortController",void 0),u9([aY("columnModel")],e.prototype,"columnModel",void 0),u9([rY("sortStage")],e)}(qY),p9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),d9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},h9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p9(e,t),e.prototype.execute=function(t){var e=t.rowNode,o=[],n=this.columnModel.isPivotMode(),i=n&&e.leafGroup,r=i?[e]:e.childrenAfterSort,a=this.getFlattenDetails();return this.recursivelyAddToRowsToDisplay(a,r,o,n,0),!i&&o.length>0&&a.groupIncludeTotalFooter&&(e.createFooter(),this.addRowNodeToRowsToDisplay(a,e.sibling,o,0)),o},e.prototype.getFlattenDetails=function(){var t=this.gridOptionsService.is("groupRemoveSingleChildren");return{groupRemoveLowestSingleChildren:!t&&this.gridOptionsService.is("groupRemoveLowestSingleChildren"),groupRemoveSingleChildren:t,isGroupMultiAutoColumn:this.gridOptionsService.isGroupMultiAutoColumn(),hideOpenParents:this.gridOptionsService.is("groupHideOpenParents"),groupIncludeTotalFooter:this.gridOptionsService.is("groupIncludeTotalFooter"),getGroupIncludeFooter:this.gridOptionsService.getGroupIncludeFooter()}},e.prototype.recursivelyAddToRowsToDisplay=function(t,e,o,n,i){if(!dZ.missingOrEmpty(e))for(var r=0;r=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},v9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return f9(e,t),e.prototype.init=function(){this.postSortFunc=this.gridOptionsService.getCallback("postSortRows")},e.prototype.sort=function(t,e,o,n,i,r){var a=this,s=this.gridOptionsService.is("groupMaintainOrder"),l=this.columnModel.getAllGridColumns().some((function(t){return t.isRowGroupActive()})),u={};o&&n&&(u=this.calculateDirtyNodes(n));var c=this.columnModel.isPivotMode();i&&i.forEachChangedNodeDepthFirst((function(n){a.pullDownGroupDataForHideOpenParents(n.childrenAfterAggFilter,!0);var p=c&&n.leafGroup;if(s&&l&&!n.leafGroup&&!r){var d=n.childrenAfterAggFilter.slice(0);if(n.childrenAfterSort){var h={};n.childrenAfterSort.forEach((function(t,e){h[t.id]=e})),d.sort((function(t,e){var o,n;return(null!==(o=h[t.id])&&void 0!==o?o:0)-(null!==(n=h[e.id])&&void 0!==n?n:0)}))}n.childrenAfterSort=d}else n.childrenAfterSort=!e||p?n.childrenAfterAggFilter.slice(0):o?a.doDeltaSort(n,u,i,t):a.rowNodeSorter.doFullSort(n.childrenAfterAggFilter,t);if(n.sibling&&(n.sibling.childrenAfterSort=n.childrenAfterSort),a.updateChildIndexes(n),a.postSortFunc){var f={nodes:n.childrenAfterSort};a.postSortFunc(f)}})),this.updateGroupDataForHideOpenParents(i)},e.prototype.calculateDirtyNodes=function(t){var e={},o=function(t){t&&t.forEach((function(t){return e[t.id]=!0}))};return t&&t.forEach((function(t){o(t.add),o(t.update),o(t.remove)})),e},e.prototype.doDeltaSort=function(t,e,o,n){var i=this,r=t.childrenAfterAggFilter,a=t.childrenAfterSort;if(!a)return this.rowNodeSorter.doFullSort(r,n);var s={},l=[];r.forEach((function(t){e[t.id]||!o.canSkip(t)?l.push(t):s[t.id]=!0}));var u=a.filter((function(t){return s[t.id]})),c=function(t,e){return{currentPos:e,rowNode:t}},p=l.map(c).sort((function(t,e){return i.rowNodeSorter.compareRowNodes(n,t,e)}));return this.mergeSortedArrays(n,p,u.map(c)).map((function(t){return t.rowNode}))},e.prototype.mergeSortedArrays=function(t,e,o){for(var n=[],i=0,r=0;i=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},C9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return y9(e,t),e.prototype.filter=function(t){var e=this.filterManager.isChildFilterPresent();this.filterNodes(e,t)},e.prototype.filterNodes=function(t,e){var o=this,n=function(e,n){e.hasChildren()?e.childrenAfterFilter=t&&!n?e.childrenAfterGroup.filter((function(t){var e=t.childrenAfterFilter&&t.childrenAfterFilter.length>0,n=t.data&&o.filterManager.doesRowPassFilter({rowNode:t});return e||n})):e.childrenAfterGroup:e.childrenAfterFilter=e.childrenAfterGroup,e.sibling&&(e.sibling.childrenAfterFilter=e.childrenAfterFilter)};if(this.doingTreeDataFiltering()){var i=function(t,e){if(t.childrenAfterGroup)for(var r=0;r=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},b9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return w9(e,t),e.prototype.postConstruct=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel)},e.prototype.isActive=function(){var t=this.gridOptionsService.exists("getRowId");return!this.gridOptionsService.is("resetRowDataOnUpdate")&&t},e.prototype.setRowData=function(t){var e=this.createTransactionForRowData(t);if(e){var o=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)a.push(n.value)}catch(t){i={error:t}}finally{try{n&&!n.done&&(o=r.return)&&o.call(r)}finally{if(i)throw i.error}}return a}(e,2),n=o[0],i=o[1];this.clientSideRowModel.updateRowData(n,i)}},e.prototype.createTransactionForRowData=function(t){if(dZ.missing(this.clientSideRowModel))console.error("AG Grid: ImmutableService only works with ClientSideRowModel");else{var e=this.gridOptionsService.getCallback("getRowId");if(null!=e){var o={remove:[],update:[],add:[]},n=this.clientSideRowModel.getCopyOfNodesMap(),i=this.gridOptionsService.is("suppressMaintainUnsortedOrder")?void 0:{};return dZ.exists(t)&&t.forEach((function(t,r){var a=e({data:t,level:0}),s=n[a];i&&(i[a]=r),s?(s.data!==t&&o.update.push(t),n[a]=void 0):o.add.push(t)})),dZ.iterateObject(n,(function(t,e){e&&o.remove.push(e.data)})),[o,i]}console.error("AG Grid: ImmutableService requires getRowId() callback to be implemented, your row data needs IDs!")}},S9([aY("rowModel")],e.prototype,"rowModel",void 0),S9([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),S9([nY],e.prototype,"postConstruct",null),S9([rY("immutableService")],e)}(qY),_9={version:"30.2.0",moduleName:q$.ClientSideRowModelModule,rowModel:"clientSide",beans:[i9,s9,c9,h9,v9,C9,b9]},x9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),E9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},T9=function(t){function e(e,o,n){var i=t.call(this,e)||this;return i.parentCache=o,i.params=n,i.startRow=e*n.blockSize,i.endRow=i.startRow+n.blockSize,i}return x9(e,t),e.prototype.postConstruct=function(){this.createRowNodes()},e.prototype.getBlockStateJson=function(){return{id:""+this.getId(),state:{blockNumber:this.getId(),startRow:this.getStartRow(),endRow:this.getEndRow(),pageStatus:this.getState()}}},e.prototype.setDataAndId=function(t,e,o){dZ.exists(e)?t.setDataAndId(e,o.toString()):t.setDataAndId(void 0,void 0)},e.prototype.loadFromDatasource=function(){var t=this,e=this.createLoadParams();dZ.missing(this.params.datasource.getRows)?console.warn("AG Grid: datasource is missing getRows method"):window.setTimeout((function(){t.params.datasource.getRows(e)}),0)},e.prototype.processServerFail=function(){},e.prototype.createLoadParams=function(){return{startRow:this.getStartRow(),endRow:this.getEndRow(),successCallback:this.pageLoaded.bind(this,this.getVersion()),failCallback:this.pageLoadFailed.bind(this,this.getVersion()),sortModel:this.params.sortModel,filterModel:this.params.filterModel,context:this.gridOptionsService.context}},e.prototype.forEachNode=function(t,e,o){var n=this;this.rowNodes.forEach((function(i,r){n.startRow+r=0?t.rowCount:void 0;this.parentCache.pageLoaded(this,o)},e.prototype.destroyRowNodes=function(){this.rowNodes.forEach((function(t){t.clearRowTopAndRowIndex()}))},E9([aY("beans")],e.prototype,"beans",void 0),E9([nY],e.prototype,"postConstruct",null),E9([iY],e.prototype,"destroyRowNodes",null),e}(r4),D9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),R9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},O9=function(t){function e(e){var o=t.call(this)||this;return o.lastRowIndexKnown=!1,o.blocks={},o.blockCount=0,o.rowCount=e.initialRowCount,o.params=e,o}return D9(e,t),e.prototype.setBeans=function(t){this.logger=t.create("InfiniteCache")},e.prototype.getRow=function(t,e){void 0===e&&(e=!1);var o=Math.floor(t/this.params.blockSize),n=this.blocks[o];if(!n){if(e)return;n=this.createBlock(o)}return n.getRow(t)},e.prototype.createBlock=function(t){var e=this.createBean(new T9(t,this,this.params));return this.blocks[e.getId()]=e,this.blockCount++,this.purgeBlocksIfNeeded(e),this.params.rowNodeBlockLoader.addBlock(e),e},e.prototype.refreshCache=function(){0==this.blockCount?this.purgeCache():(this.getBlocksInOrder().forEach((function(t){return t.setStateWaitingToLoad()})),this.params.rowNodeBlockLoader.checkBlockToLoad())},e.prototype.destroyAllBlocks=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.destroyBlock(e)}))},e.prototype.getRowCount=function(){return this.rowCount},e.prototype.isLastRowIndexKnown=function(){return this.lastRowIndexKnown},e.prototype.pageLoaded=function(t,e){this.isAlive()&&(this.logger.log("onPageLoaded: page = "+t.getId()+", lastRow = "+e),this.checkRowCount(t,e),this.onCacheUpdated())},e.prototype.purgeBlocksIfNeeded=function(t){var o=this,n=this.getBlocksInOrder().filter((function(e){return e!=t}));n.sort((function(t,e){return e.getLastAccessed()-t.getLastAccessed()}));var i=this.params.maxBlocksInCache>0,r=i?this.params.maxBlocksInCache-1:null,a=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(t,e){if(t.getState()===T9.STATE_WAITING_TO_LOAD&&e>=a||i&&e>=r){if(o.isBlockCurrentlyDisplayed(t))return;if(o.isBlockFocused(t))return;o.removeBlockFromCache(t)}}))},e.prototype.isBlockFocused=function(t){var e=this.focusService.getFocusCellToUseAfterRefresh();if(!e)return!1;if(null!=e.rowPinned)return!1;var o=t.getStartRow(),n=t.getEndRow();return e.rowIndex>=o&&e.rowIndex=0)this.rowCount=e,this.lastRowIndexKnown=!0;else if(!this.lastRowIndexKnown){var o=(t.getId()+1)*this.params.blockSize+this.params.overflowSize;this.rowCount=t.rowCount&&e.push(o)})),e.length>0&&e.forEach((function(e){return t.destroyBlock(e)}))},e.prototype.purgeCache=function(){var t=this;this.getBlocksInOrder().forEach((function(e){return t.removeBlockFromCache(e)})),this.lastRowIndexKnown=!1,0===this.rowCount&&(this.rowCount=this.params.initialRowCount),this.onCacheUpdated()},e.prototype.getRowNodesInRange=function(t,e){var o=this,n=[],i=-1,r=!1,a=new hZ;dZ.missing(t)&&(r=!0);var s=!1;return this.getBlocksInOrder().forEach((function(l){s||(r&&i+1!==l.getId()?s=!0:(i=l.getId(),l.forEachNode((function(o){var i=o===t||o===e;(r||i)&&n.push(o),i&&(r=!r)}),a,o.rowCount)))})),s||r?[]:n},e.MAX_EMPTY_BLOCKS_TO_KEEP=2,R9([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),R9([aY("focusService")],e.prototype,"focusService",void 0),R9([(o=0,n=uY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),R9([iY],e.prototype,"destroyAllBlocks",null),e;var o,n}(qY),M9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),A9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},I9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return M9(e,t),e.prototype.getRowBounds=function(t){return{rowHeight:this.rowHeight,rowTop:this.rowHeight*t}},e.prototype.ensureRowHeightsValid=function(t,e,o,n){return!1},e.prototype.init=function(){var t=this;this.gridOptionsService.isRowModelType("infinite")&&(this.rowHeight=this.gridOptionsService.getRowHeightAsNumber(),this.addEventListeners(),this.addDestroyFunc((function(){return t.destroyCache()})),this.verifyProps())},e.prototype.verifyProps=function(){this.gridOptionsService.exists("initialGroupOrderComparator")&&dZ.doOnce((function(){return console.warn("AG Grid: initialGroupOrderComparator cannot be used with Infinite Row Model. If using Infinite Row Model, then sorting is done on the server side, nothing to do with the client.")}),"IRM.InitialGroupOrderComparator")},e.prototype.start=function(){this.setDatasource(this.gridOptionsService.get("datasource"))},e.prototype.destroyDatasource=function(){this.datasource&&(this.getContext().destroyBean(this.datasource),this.rowRenderer.datasourceChanged(),this.datasource=null)},e.prototype.addEventListeners=function(){this.addManagedListener(this.eventService,eK.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,eK.EVENT_STORE_UPDATED,this.onCacheUpdated.bind(this))},e.prototype.onFilterChanged=function(){this.reset()},e.prototype.onSortChanged=function(){this.reset()},e.prototype.onColumnEverything=function(){(!this.cacheParams||this.isSortModelDifferent())&&this.reset()},e.prototype.isSortModelDifferent=function(){return!dZ.jsonEquals(this.cacheParams.sortModel,this.sortController.getSortModel())},e.prototype.getType=function(){return"infinite"},e.prototype.setDatasource=function(t){this.destroyDatasource(),this.datasource=t,t&&this.reset()},e.prototype.isEmpty=function(){return!this.infiniteCache},e.prototype.isRowsToRender=function(){return!!this.infiniteCache},e.prototype.getNodesInRangeForSelection=function(t,e){return this.infiniteCache?this.infiniteCache.getRowNodesInRange(t,e):[]},e.prototype.reset=function(){if(this.datasource){null!=this.gridOptionsService.getCallback("getRowId")||this.selectionService.reset(),this.resetCache();var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)}},e.prototype.createModelUpdatedEvent=function(){return{type:eK.EVENT_MODEL_UPDATED,newPage:!1,newData:!1,keepRenderedRows:!0,animate:!1}},e.prototype.resetCache=function(){this.destroyCache(),this.cacheParams={datasource:this.datasource,filterModel:this.filterManager.getFilterModel(),sortModel:this.sortController.getSortModel(),rowNodeBlockLoader:this.rowNodeBlockLoader,initialRowCount:this.defaultIfInvalid(this.gridOptionsService.getNum("infiniteInitialRowCount"),1),maxBlocksInCache:this.gridOptionsService.getNum("maxBlocksInCache"),rowHeight:this.gridOptionsService.getRowHeightAsNumber(),overflowSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheOverflowSize"),1),blockSize:this.defaultIfInvalid(this.gridOptionsService.getNum("cacheBlockSize"),100),lastAccessedSequence:new hZ},this.infiniteCache=this.createBean(new O9(this.cacheParams))},e.prototype.defaultIfInvalid=function(t,e){return t>0?t:e},e.prototype.destroyCache=function(){this.infiniteCache&&(this.infiniteCache=this.destroyBean(this.infiniteCache))},e.prototype.onCacheUpdated=function(){var t=this.createModelUpdatedEvent();this.eventService.dispatchEvent(t)},e.prototype.getRow=function(t){if(this.infiniteCache&&!(t>=this.infiniteCache.getRowCount()))return this.infiniteCache.getRow(t)},e.prototype.getRowNode=function(t){var e;return this.forEachNode((function(o){o.id===t&&(e=o)})),e},e.prototype.forEachNode=function(t){this.infiniteCache&&this.infiniteCache.forEachNodeDeep(t)},e.prototype.getTopLevelRowCount=function(){return this.getRowCount()},e.prototype.getTopLevelRowDisplayedIndex=function(t){return t},e.prototype.getRowIndexAtPixel=function(t){if(0!==this.rowHeight){var e=Math.floor(t/this.rowHeight),o=this.getRowCount()-1;return e>o?o:e}return 0},e.prototype.getRowCount=function(){return this.infiniteCache?this.infiniteCache.getRowCount():0},e.prototype.isRowPresent=function(t){return!!this.getRowNode(t.id)},e.prototype.refreshCache=function(){this.infiniteCache&&this.infiniteCache.refreshCache()},e.prototype.purgeCache=function(){this.infiniteCache&&this.infiniteCache.purgeCache()},e.prototype.isLastRowIndexKnown=function(){return!!this.infiniteCache&&this.infiniteCache.isLastRowIndexKnown()},e.prototype.setRowCount=function(t,e){this.infiniteCache&&this.infiniteCache.setRowCount(t,e)},A9([aY("filterManager")],e.prototype,"filterManager",void 0),A9([aY("sortController")],e.prototype,"sortController",void 0),A9([aY("selectionService")],e.prototype,"selectionService",void 0),A9([aY("rowRenderer")],e.prototype,"rowRenderer",void 0),A9([aY("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),A9([nY],e.prototype,"init",null),A9([iY],e.prototype,"destroyDatasource",null),A9([rY("rowModel")],e)}(qY),P9={version:"30.2.0",moduleName:q$.InfiniteRowModelModule,rowModel:"infinite",beans:[I9]},L9=function(){function t(){}return t.prototype.setBeans=function(t){this.beans=t},t.prototype.getFileName=function(t){var e=this.getDefaultFileExtension();return null!=t&&t.length||(t=this.getDefaultFileName()),-1===t.indexOf(".")?t+"."+e:t},t.prototype.getData=function(t){var e=this.createSerializingSession(t);return this.beans.gridSerializer.serialize(e,t)},t}(),N9=function(){function t(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,r=t.valueParserService,a=t.processCellCallback,s=t.processHeaderCallback,l=t.processGroupHeaderCallback,u=t.processRowGroupCallback;this.columnModel=e,this.valueService=o,this.gridOptionsService=n,this.valueFormatterService=i,this.valueParserService=r,this.processCellCallback=a,this.processHeaderCallback=s,this.processGroupHeaderCallback=l,this.processRowGroupCallback=u}return t.prototype.prepare=function(t){this.groupColumns=t.filter((function(t){return!!t.getColDef().showRowGroup}))},t.prototype.extractHeaderValue=function(t){var e=this.getHeaderName(this.processHeaderCallback,t);return null!=e?e:""},t.prototype.extractRowCellValue=function(t,e,o,n,i){var r=this.gridOptionsService.is("groupHideOpenParents")&&!i.footer||!this.shouldRenderGroupSummaryCell(i,t,e)?this.valueService.getValue(t,i):this.createValueForGroupNode(i);return this.processCell({accumulatedRowIndex:o,rowNode:i,column:t,value:r,processCellCallback:this.processCellCallback,type:n})},t.prototype.shouldRenderGroupSummaryCell=function(t,e,o){var n;if(!t||!t.group)return!1;if(-1!==this.groupColumns.indexOf(e)){if(null!=(null===(n=t.groupData)||void 0===n?void 0:n[e.getId()]))return!0;if(this.gridOptionsService.isRowModelType("serverSide")&&t.group)return!0;if(t.footer&&-1===t.level){var i=e.getColDef();return null==i||!0===i.showRowGroup||i.showRowGroup===this.columnModel.getRowGroupColumns()[0].getId()}}var r=this.gridOptionsService.isGroupUseEntireRow(this.columnModel.isPivotMode());return 0===o&&r},t.prototype.getHeaderName=function(t,e){return t?t({column:e,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context}):this.columnModel.getDisplayNameForColumn(e,"csv",!0)},t.prototype.createValueForGroupNode=function(t){if(this.processRowGroupCallback)return this.processRowGroupCallback({node:t,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context});var e=t.footer,o=[t.key];if(!this.gridOptionsService.isGroupMultiAutoColumn())for(;t.parent;)t=t.parent,o.push(t.key);var n=o.reverse().join(" -> ");return e?"Total "+n:n},t.prototype.processCell=function(t){var e,o=this,n=t.accumulatedRowIndex,i=t.rowNode,r=t.column,a=t.value,s=t.processCellCallback,l=t.type;return s?{value:null!==(e=s({accumulatedRowIndex:n,column:r,node:i,value:a,api:this.gridOptionsService.api,columnApi:this.gridOptionsService.columnApi,context:this.gridOptionsService.context,type:l,parseValue:function(t){return o.valueParserService.parseValue(r,i,t,o.valueService.getValue(r,i))},formatValue:function(t){var e;return null!==(e=o.valueFormatterService.formatValue(r,i,t))&&void 0!==e?e:t}}))&&void 0!==e?e:""}:r.getColDef().useValueFormatterForExport?{value:null!=a?a:"",valueFormatted:this.valueFormatterService.formatValue(r,i,a)}:{value:null!=a?a:""}},t}(),F9=function(){function t(){}return t.download=function(t,e){var o=document.defaultView||window;if(o){var n=document.createElement("a"),i=o.URL.createObjectURL(e);n.setAttribute("href",i),n.setAttribute("download",t),n.style.display="none",document.body.appendChild(n),n.dispatchEvent(new MouseEvent("click",{bubbles:!1,cancelable:!0,view:o})),document.body.removeChild(n),o.setTimeout((function(){o.URL.revokeObjectURL(i)}),0)}else console.warn("AG Grid: There is no `window` associated with the current `document`")},t}(),k9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),G9=function(t){function e(e){var o=t.call(this,e)||this;o.isFirstLine=!0,o.result="";var n=e.suppressQuotes,i=e.columnSeparator;return o.suppressQuotes=n,o.columnSeparator=i,o}return k9(e,t),e.prototype.addCustomContent=function(t){var e=this;t&&("string"==typeof t?(/^\s*\n/.test(t)||this.beginNewLine(),t=t.replace(/\r?\n/g,"\r\n"),this.result+=t):t.forEach((function(t){e.beginNewLine(),t.forEach((function(t,o){0!==o&&(e.result+=e.columnSeparator),e.result+=e.putInQuotes(t.data.value||""),t.mergeAcross&&e.appendEmptyCells(t.mergeAcross)}))})))},e.prototype.onNewHeaderGroupingRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderGroupingRowColumn.bind(this)}},e.prototype.onNewHeaderGroupingRowColumn=function(t,e,o,n){0!=o&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(e),this.appendEmptyCells(n)},e.prototype.appendEmptyCells=function(t){for(var e=1;e<=t;e++)this.result+=this.columnSeparator+this.putInQuotes("")},e.prototype.onNewHeaderRow=function(){return this.beginNewLine(),{onColumn:this.onNewHeaderRowColumn.bind(this)}},e.prototype.onNewHeaderRowColumn=function(t,e){0!=e&&(this.result+=this.columnSeparator),this.result+=this.putInQuotes(this.extractHeaderValue(t))},e.prototype.onNewBodyRow=function(){return this.beginNewLine(),{onColumn:this.onNewBodyRowColumn.bind(this)}},e.prototype.onNewBodyRowColumn=function(t,e,o){var n;0!=e&&(this.result+=this.columnSeparator);var i=this.extractRowCellValue(t,e,e,"csv",o);this.result+=this.putInQuotes(null!==(n=i.valueFormatted)&&void 0!==n?n:i.value)},e.prototype.putInQuotes=function(t){return this.suppressQuotes?t:null==t?'""':("string"==typeof t?e=t:"function"==typeof t.toString?e=t.toString():(console.warn("AG Grid: unknown value type during csv conversion"),e=""),'"'+e.replace(/"/g,'""')+'"');var e},e.prototype.parse=function(){return this.result},e.prototype.beginNewLine=function(){this.isFirstLine||(this.result+="\r\n"),this.isFirstLine=!1},e}(N9),V9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),H9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a},B9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V9(e,t),e.prototype.postConstruct=function(){this.setBeans({gridSerializer:this.gridSerializer,gridOptionsService:this.gridOptionsService})},e.prototype.getMergedParams=function(t){var e=this.gridOptionsService.get("defaultCsvExportParams");return Object.assign({},e,t)},e.prototype.export=function(t){if(this.isExportSuppressed())return console.warn("AG Grid: Export cancelled. Export is not allowed as per your configuration."),"";var e=this.getMergedParams(t),o=this.getData(e),n=new Blob(["\ufeff",o],{type:"text/plain"});return F9.download(this.getFileName(e.fileName),n),o},e.prototype.exportDataAsCsv=function(t){return this.export(t)},e.prototype.getDataAsCsv=function(t,e){void 0===e&&(e=!1);var o=e?Object.assign({},t):this.getMergedParams(t);return this.getData(o)},e.prototype.getDefaultFileName=function(){return"export.csv"},e.prototype.getDefaultFileExtension=function(){return"csv"},e.prototype.createSerializingSession=function(t){var e=this,o=e.columnModel,n=e.valueService,i=e.gridOptionsService,r=e.valueFormatterService,a=e.valueParserService,s=t,l=s.processCellCallback,u=s.processHeaderCallback,c=s.processGroupHeaderCallback,p=s.processRowGroupCallback,d=s.suppressQuotes,h=s.columnSeparator;return new G9({columnModel:o,valueService:n,gridOptionsService:i,valueFormatterService:r,valueParserService:a,processCellCallback:l||void 0,processHeaderCallback:u||void 0,processGroupHeaderCallback:c||void 0,processRowGroupCallback:p||void 0,suppressQuotes:d||!1,columnSeparator:h||","})},e.prototype.isExportSuppressed=function(){return this.gridOptionsService.is("suppressCsvExport")},H9([aY("columnModel")],e.prototype,"columnModel",void 0),H9([aY("valueService")],e.prototype,"valueService",void 0),H9([aY("gridSerializer")],e.prototype,"gridSerializer",void 0),H9([aY("gridOptionsService")],e.prototype,"gridOptionsService",void 0),H9([aY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),H9([aY("valueParserService")],e.prototype,"valueParserService",void 0),H9([nY],e.prototype,"postConstruct",null),H9([rY("csvCreator")],e)}(L9),W9=function(){var t=function(e,o){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])},t(e,o)};return function(e,o){if("function"!=typeof o&&null!==o)throw new TypeError("Class extends value "+String(o)+" is not a constructor or null");function n(){this.constructor=e}t(e,o),e.prototype=null===o?Object.create(o):(n.prototype=o.prototype,new n)}}(),z9=function(t,e,o,n){var i,r=arguments.length,a=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,o,n);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(r<3?i(a):r>3?i(e,o,a):i(e,o))||a);return r>3&&a&&Object.defineProperty(e,o,a),a};!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(n9||(n9={}));var j9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return W9(e,t),e.prototype.serialize=function(t,e){void 0===e&&(e={});var o=this.getColumnsToExport(e.allColumns,e.columnKeys);return dZ.compose(this.prepareSession(o),this.prependContent(e),this.exportColumnGroups(e,o),this.exportHeaders(e,o),this.processPinnedTopRows(e,o),this.processRows(e,o),this.processPinnedBottomRows(e,o),this.appendContent(e))(t).parse()},e.prototype.processRow=function(t,e,o,n){var i=e.shouldRowBeSkipped||function(){return!1},r=this.gridOptionsService.context,a=this.gridOptionsService.api,s=this.gridOptionsService.columnApi,l=this.gridOptionsService.is("groupRemoveSingleChildren"),u=this.gridOptionsService.is("groupRemoveLowestSingleChildren"),c=null!=e.rowPositions||!!e.onlySelected,p=this.gridOptionsService.is("groupHideOpenParents")&&!c,d=this.columnModel.isPivotMode()?n.leafGroup:!n.group,h=!!n.footer,f=e.skipGroups||e.skipRowGroups,g=u&&n.leafGroup,v=1===n.allChildrenCount&&(l||g);if(f&&e.skipGroups&&dZ.doOnce((function(){return console.warn("AG Grid: Since v25.2 `skipGroups` has been renamed to `skipRowGroups`.")}),"gridSerializer-skipGroups"),!(!d&&!h&&(e.skipRowGroups||v||p)||e.onlySelected&&!n.isSelected()||e.skipPinnedTop&&"top"===n.rowPinned||e.skipPinnedBottom&&"bottom"===n.rowPinned)&&(-1!==n.level||d||h)&&!i({node:n,api:a,columnApi:s,context:r})){var y=t.onNewBodyRow(n);if(o.forEach((function(t,e){y.onColumn(t,e,n)})),e.getCustomContentBelowRow){var m=e.getCustomContentBelowRow({node:n,api:a,columnApi:s,context:r});m&&t.addCustomContent(m)}}},e.prototype.appendContent=function(t){return function(e){var o=t.customFooter||t.appendContent;return o&&(t.customFooter&&dZ.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customFooter` param has been deprecated. Use `appendContent` instead.")}),"gridSerializer-customFooter"),e.addCustomContent(o)),e}},e.prototype.prependContent=function(t){return function(e){var o=t.customHeader||t.prependContent;return o&&(t.customHeader&&dZ.doOnce((function(){return console.warn("AG Grid: Since version 25.2.0 the `customHeader` param has been deprecated. Use `prependContent` instead.")}),"gridSerializer-customHeader"),e.addCustomContent(o)),e}},e.prototype.prepareSession=function(t){return function(e){return e.prepare(t),e}},e.prototype.exportColumnGroups=function(t,e){var o=this;return function(n){if(t.skipColumnGroupHeaders)t.columnGroups&&dZ.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `columnGroups` param has deprecated, and groups are exported by default.")}),"gridSerializer-columnGroups");else{var i=new oK,r=o.displayedGroupCreator.createDisplayedGroups(e,i,null);o.recursivelyAddHeaderGroups(r,n,t.processGroupHeaderCallback)}return n}},e.prototype.exportHeaders=function(t,e){return function(o){if(t.skipHeader||t.skipColumnHeaders)t.skipHeader&&dZ.doOnce((function(){return console.warn("AG Grid: Since v25.2 the `skipHeader` param has been renamed to `skipColumnHeaders`.")}),"gridSerializer-skipHeader");else{var n=o.onNewHeaderRow();e.forEach((function(t,e){n.onColumn(t,e,void 0)}))}return o}},e.prototype.processPinnedTopRows=function(t,e){var o=this;return function(n){var i=o.processRow.bind(o,n,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"top"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedTopRow(t.rowIndex)})).forEach(i):o.pinnedRowModel.forEachPinnedTopRow(i),n}},e.prototype.processRows=function(t,e){var o=this;return function(n){var i=o.rowModel,r=i.getType(),a="clientSide"===r,s="serverSide"===r,l=!a&&t.onlySelected,u=o.processRow.bind(o,n,t,e),c=t.exportedRows,p=void 0===c?"filteredAndSorted":c;if(t.rowPositions)t.rowPositions.filter((function(t){return null==t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return i.getRow(t.rowIndex)})).forEach(u);else if(o.columnModel.isPivotMode())a?i.forEachPivotNode(u,!0):s?i.forEachNodeAfterFilterAndSort(u,!0):i.forEachNode(u);else if(t.onlySelectedAllPages||l){var d=o.selectionService.getSelectedNodes();o.replicateSortedOrder(d),d.forEach(u)}else"all"===p?i.forEachNode(u):a||s?i.forEachNodeAfterFilterAndSort(u,!0):i.forEachNode(u);return n}},e.prototype.replicateSortedOrder=function(t){var e=this,o=this.sortController.getSortOptions(),n=function(t,i){var r,a,s,l;return null!=t.rowIndex&&null!=i.rowIndex?t.rowIndex-i.rowIndex:t.level===i.level?(null===(r=t.parent)||void 0===r?void 0:r.id)===(null===(a=i.parent)||void 0===a?void 0:a.id)?e.rowNodeSorter.compareRowNodes(o,{rowNode:t,currentPos:null!==(s=t.rowIndex)&&void 0!==s?s:-1},{rowNode:i,currentPos:null!==(l=i.rowIndex)&&void 0!==l?l:-1}):n(t.parent,i.parent):t.level>i.level?n(t.parent,i):n(t,i.parent)};t.sort(n)},e.prototype.processPinnedBottomRows=function(t,e){var o=this;return function(n){var i=o.processRow.bind(o,n,t,e);return t.rowPositions?t.rowPositions.filter((function(t){return"bottom"===t.rowPinned})).sort((function(t,e){return t.rowIndex-e.rowIndex})).map((function(t){return o.pinnedRowModel.getPinnedBottomRow(t.rowIndex)})).forEach(i):o.pinnedRowModel.forEachPinnedBottomRow(i),n}},e.prototype.getColumnsToExport=function(t,e){void 0===t&&(t=!1);var o=this.columnModel.isPivotMode();return e&&e.length?this.columnModel.getGridColumns(e):t&&!o?(this.gridOptionsService.is("treeData")?this.columnModel.getGridColumns([rK]):[]).concat(this.columnModel.getAllGridColumns()||[]):this.columnModel.getAllDisplayedColumns()},e.prototype.recursivelyAddHeaderGroups=function(t,e,o){var n=[];t.forEach((function(t){var e=t;e.getChildren&&e.getChildren().forEach((function(t){return n.push(t)}))})),t.length>0&&t[0]instanceof tK&&this.doAddHeaderHeader(e,t,o),n&&n.length>0&&this.recursivelyAddHeaderGroups(n,e,o)},e.prototype.doAddHeaderHeader=function(t,e,o){var n=this,i=t.onNewHeaderGroupingRow(),r=0;e.forEach((function(t){var e,a=t;e=o?o({columnGroup:a,api:n.gridOptionsService.api,columnApi:n.gridOptionsService.columnApi,context:n.gridOptionsService.context}):n.columnModel.getDisplayNameForColumnGroup(a,"header");var s=a.getLeafColumns().reduce((function(t,e,o,n){var i=dZ.last(t);return"open"===e.getColumnGroupShow()?i&&null==i[1]||(i=[o],t.push(i)):i&&null==i[1]&&(i[1]=o-1),o===n.length-1&&i&&null==i[1]&&(i[1]=o),t}),[]);i.onColumn(a,e||"",r++,a.getLeafColumns().length-1,s)}))},z9([aY("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),z9([aY("columnModel")],e.prototype,"columnModel",void 0),z9([aY("rowModel")],e.prototype,"rowModel",void 0),z9([aY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),z9([aY("selectionService")],e.prototype,"selectionService",void 0),z9([aY("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),z9([aY("sortController")],e.prototype,"sortController",void 0),z9([rY("gridSerializer")],e)}(qY),U9={version:"30.2.0",moduleName:q$.CsvExportModule,beans:[B9,j9]},$9="\r\n",Y9=(function(){function t(){}t.createHeader=function(t){void 0===t&&(t={});var e=["version"];return t.version||(t.version="1.0"),t.encoding&&e.push("encoding"),t.standalone&&e.push("standalone"),""},t.createXml=function(t,e){var o=this,n="";t.properties&&(t.properties.prefixedAttributes&&t.properties.prefixedAttributes.forEach((function(t){Object.keys(t.map).forEach((function(i){n+=o.returnAttributeIfPopulated(t.prefix+i,t.map[i],e)}))})),t.properties.rawMap&&Object.keys(t.properties.rawMap).forEach((function(i){n+=o.returnAttributeIfPopulated(i,t.properties.rawMap[i],e)})));var i="<"+t.name+n;return t.children||null!=t.textNode?null!=t.textNode?i+">"+t.textNode+""+$9:(i+=">\r\n",t.children&&t.children.forEach((function(t){i+=o.createXml(t,e)})),i+""+$9):i+"/>"+$9},t.returnAttributeIfPopulated=function(t,e,o){if(!e&&""!==e&&0!==e)return"";var n=e;return"boolean"==typeof e&&o&&(n=o(e))," "+t+'="'+n+'"'}}(),function(t){var e="function"==typeof Symbol&&Symbol.iterator,o=e&&t[e],n=0;if(o)return o.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}),K9=new Uint32Array([0,1996959894,3993919788,2567524794,124634137,1886057615,3915621685,2657392035,249268274,2044508324,3772115230,2547177864,162941995,2125561021,3887607047,2428444049,498536548,1789927666,4089016648,2227061214,450548861,1843258603,4107580753,2211677639,325883990,1684777152,4251122042,2321926636,335633487,1661365465,4195302755,2366115317,997073096,1281953886,3579855332,2724688242,1006888145,1258607687,3524101629,2768942443,901097722,1119000684,3686517206,2898065728,853044451,1172266101,3705015759,2882616665,651767980,1373503546,3369554304,3218104598,565507253,1454621731,3485111705,3099436303,671266974,1594198024,3322730930,2970347812,795835527,1483230225,3244367275,3060149565,1994146192,31158534,2563907772,4023717930,1907459465,112637215,2680153253,3904427059,2013776290,251722036,2517215374,3775830040,2137656763,141376813,2439277719,3865271297,1802195444,476864866,2238001368,4066508878,1812370925,453092731,2181625025,4111451223,1706088902,314042704,2344532202,4240017532,1658658271,366619977,2362670323,4224994405,1303535960,984961486,2747007092,3569037538,1256170817,1037604311,2765210733,3554079995,1131014506,879679996,2909243462,3663771856,1141124467,855842277,2852801631,3708648649,1342533948,654459306,3188396048,3373015174,1466479909,544179635,3110523913,3462522015,1591671054,702138776,2966460450,3352799412,1504918807,783551873,3082640443,3233442989,3988292384,2596254646,62317068,1957810842,3939845945,2647816111,81470997,1943803523,3814918930,2489596804,225274430,2053790376,3826175755,2466906013,167816743,2097651377,4027552580,2265490386,503444072,1762050814,4150417245,2154129355,426522225,1852507879,4275313526,2312317920,282753626,1742555852,4189708143,2394877945,397917763,1622183637,3604390888,2714866558,953729732,1340076626,3518719985,2797360999,1068828381,1219638859,3624741850,2936675148,906185462,1090812512,3747672003,2825379669,829329135,1181335161,3412177804,3160834842,628085408,1382605366,3423369109,3138078467,570562233,1426400815,3317316542,2998733608,733239954,1555261956,3268935591,3050360625,752459403,1541320221,2607071920,3965973030,1969922972,40735498,2617837225,3943577151,1913087877,83908371,2512341634,3803740692,2075208622,213261112,2463272603,3855990285,2094854071,198958881,2262029012,4057260610,1759359992,534414190,2176718541,4139329115,1873836001,414664567,2282248934,4279200368,1711684554,285281116,2405801727,4167216745,1634467795,376229701,2685067896,3608007406,1308918612,956543938,2808555105,3495958263,1231636301,1047427035,2932959818,3654703836,1088359270,936918e3,2847714899,3736837829,1202900863,817233897,3183342108,3401237130,1404277552,615818150,3134207493,3453421203,1423857449,601450431,3009837614,3294710456,1567103746,711928724,3020668471,3272380065,1510334235,755167117]),X9=(function(){function t(){}t.addFolders=function(t){t.forEach(this.addFolder.bind(this))},t.addFolder=function(t){this.folders.push({path:t,created:new Date,isBase64:!1})},t.addFile=function(t,e,o){void 0===o&&(o=!1),this.files.push({path:t,created:new Date,content:e,isBase64:o})},t.getContent=function(t){void 0===t&&(t="application/zip");var e=this.buildFileStream(),o=this.buildUint8Array(e);return this.clearStream(),new Blob([o],{type:t})},t.clearStream=function(){this.folders=[],this.files=[]},t.buildFileStream=function(t){var e,o;void 0===t&&(t="");var n=this.folders.concat(this.files),i=n.length,r="",a=0,s=0;try{for(var l=Y9(n),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,a),d=p.fileHeader,h=p.folderHeader,f=p.content;a+=d.length+f.length,s+=h.length,t+=d+f,r+=h}}catch(t){e={error:t}}finally{try{u&&!u.done&&(o=l.return)&&o.call(l)}finally{if(e)throw e.error}}return t+r+this.buildFolderEnd(i,s,a)},t.getHeader=function(t,e){var o=t.content,n=t.path,i=t.created,r=t.isBase64,a=dZ.utf8_encode,s=dZ.decToHex,l=a(n),u=l!==n,c=this.convertTime(i),p=this.convertDate(i),d="";if(u){var h=s(1,1)+s(this.getFromCrc32Table(l),4)+l;d="up"+s(h.length,2)+h}var f=o?this.getConvertedContent(o,r):{size:0,content:""},g=f.size,v=f.content,y="\n\0"+(u?"\0\b":"\0\0")+"\0\0"+s(c,2)+s(p,2)+s(g?this.getFromCrc32Table(v):0,4)+s(g,4)+s(g,4)+s(l.length,2)+s(d.length,2);return{fileHeader:"PK"+y+l+d,folderHeader:"PK\0"+y+"\0\0\0\0\0\0"+(o?"\0\0\0\0":"\0\0\0")+s(e,4)+l+d,content:v||""}},t.getConvertedContent=function(t,e){return void 0===e&&(e=!1),e&&(t=t.split(";base64,")[1]),{size:(t=e?atob(t):t).length,content:t}},t.buildFolderEnd=function(t,e,o){var n=dZ.decToHex;return"PK\0\0\0\0"+n(t,2)+n(t,2)+n(e,4)+n(o,4)+"\0\0"},t.buildUint8Array=function(t){for(var e=new Uint8Array(t.length),o=0;o>>8^K9[255&(i^r)];return-1^i},t.convertTime=function(t){var e=t.getHours();return e<<=6,e|=t.getMinutes(),(e<<=5)|t.getSeconds()/2},t.convertDate=function(t){var e=t.getFullYear()-1980;return e<<=4,e|=t.getMonth()+1,(e<<=5)|t.getDate()},t.folders=[],t.files=[]}(),[_9,P9,U9]);tY.registerModules(X9);var q9=a(1864);!function(){if("undefined"!=typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var t=HTMLElement;window.HTMLElement=function(){return Reflect.construct(t,[],this.constructor)},HTMLElement.prototype=t.prototype,HTMLElement.prototype.constructor=HTMLElement,Object.setPrototypeOf(HTMLElement,t)}}(),(async()=>{var t;await function(){var t=[];if("undefined"!=typeof window){var e=window;e.customElements&&(!e.Element||e.Element.prototype.closest&&e.Element.prototype.matches&&e.Element.prototype.remove&&e.Element.prototype.getRootNode)||t.push(a.e(6748).then(a.t.bind(a,3005,23))),"function"==typeof Object.assign&&Object.entries&&Array.prototype.find&&Array.prototype.includes&&String.prototype.startsWith&&String.prototype.endsWith&&(!e.NodeList||e.NodeList.prototype.forEach)&&e.fetch&&function(){try{var t=new URL("b","http://a");return t.pathname="c%20d","http://a/c%20d"===t.href&&t.searchParams}catch(t){return!1}}()&&"undefined"!=typeof WeakMap||t.push(a.e(2214).then(a.t.bind(a,4912,23)))}return Promise.all(t)}(),await("undefined"==typeof window?Promise.resolve():(0,q9.p)().then((()=>(0,q9.b)([["ix-icon",[[1,"ix-icon",{size:[1],color:[1],name:[1],svgContent:[32]}]]]],t)))),await(async(t,e)=>{if("undefined"!=typeof window)return await async function(){await async function(){if("undefined"==typeof window)return;if(window.customElements.get("ix-icon"))return;console.warn("ix-icon web component not loaded. Using local fallback version");const t=await Promise.all([a.e(3268),a.e(9200)]).then(a.bind(a,3268)).then((function(t){return t.i}));await t.defineCustomElements()}()}(),(0,f.b)(JSON.parse('[["ix-datetime-picker",[[1,"ix-datetime-picker",{"range":[4],"showHour":[4,"show-hour"],"showMinutes":[4,"show-minutes"],"showSeconds":[4,"show-seconds"],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"dateFormat":[1,"date-format"],"timeFormat":[1,"time-format"],"from":[1],"to":[1],"time":[1],"showTimeReference":[8,"show-time-reference"],"timeReference":[1,"time-reference"],"textSelectDate":[1,"text-select-date"],"i18nDone":[1,"i18n-done"],"weekStartIndex":[2,"week-start-index"],"locale":[1],"eventDelimiter":[1,"event-delimiter"]}]]],["ix-date-dropdown",[[1,"ix-date-dropdown",{"format":[1],"range":[4],"from":[1],"to":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"dateRangeId":[1,"date-range-id"],"customRangeAllowed":[4,"custom-range-allowed"],"dateRangeOptions":[16],"i18nCustomItem":[1,"i18n-custom-item"],"i18nDone":[1,"i18n-done"],"i18nNoRange":[1,"i18n-no-range"],"today":[1],"selectedDateRangeId":[32],"currentRangeValue":[32],"triggerRef":[32],"getDateRange":[64]},null,{"dateRangeId":["onDateRangeIdChange"],"to":["onDateRangeIdChange"],"from":["onDateRangeIdChange"],"dateRangeOptions":["onDateRangeOptionsChange"]}]]],["ix-pagination",[[1,"ix-pagination",{"advanced":[4],"itemCount":[2,"item-count"],"showItemCount":[4,"show-item-count"],"count":[2],"selectedPage":[1026,"selected-page"],"i18nPage":[1,"i-1-8n-page"],"i18nOf":[1,"i-1-8n-of"],"i18nItems":[1,"i-1-8n-items"]}]]],["ix-menu-avatar",[[1,"ix-menu-avatar",{"top":[1],"bottom":[1],"image":[1],"initials":[1],"i18nLogout":[1,"i-1-8n-logout"],"showLogoutButton":[4,"show-logout-button"],"showContextMenu":[32]}]]],["ix-card-list",[[1,"ix-card-list",{"label":[1],"collapse":[1028],"listStyle":[1,"list-style"],"maxVisibleCards":[2,"max-visible-cards"],"showAllCount":[2,"show-all-count"],"suppressOverflowHandling":[4,"suppress-overflow-handling"],"i18nShowAll":[1,"i-1-8n-show-all"],"i18nMoreCards":[1,"i-1-8n-more-cards"],"hasOverflowingElements":[32],"numberOfOverflowingElements":[32],"numberOfAllChildElements":[32],"leftScrollDistance":[32],"rightScrollDistance":[32]},[[9,"resize","detectOverflow"]]]]],["ix-map-navigation",[[1,"ix-map-navigation",{"applicationName":[1,"application-name"],"navigationTitle":[1,"navigation-title"],"hideContextMenu":[4,"hide-context-menu"],"isSidebarOpen":[32],"hasContentHeader":[32],"toggleSidebar":[64],"openOverlay":[64],"closeOverlay":[64]}]]],["ix-application-switch-modal",[[1,"ix-application-switch-modal",{"config":[16]}]]],["ix-basic-navigation",[[1,"ix-basic-navigation",{"applicationName":[1,"application-name"],"hideHeader":[4,"hide-header"],"forceBreakpoint":[1,"force-breakpoint"],"breakpoints":[16],"breakpoint":[32]},null,{"hideHeader":["onHideHeaderChange"],"breakpoints":["onBreakpointsChange"]}]]],["ix-menu-category",[[1,"ix-menu-category",{"label":[1],"icon":[1],"notifications":[2],"menuExpand":[32],"showItems":[32],"showDropdown":[32],"nestedItems":[32]}]]],["ix-push-card",[[1,"ix-push-card",{"icon":[1],"notification":[1],"heading":[1],"subheading":[1],"variant":[1],"collapse":[4]}]]],["ix-breadcrumb",[[1,"ix-breadcrumb",{"visibleItemCount":[2,"visible-item-count"],"nextItems":[16],"ghost":[4],"ariaLabelPreviousButton":[1,"aria-label-previous-button"],"previousButtonRef":[32],"nextButtonRef":[32],"items":[32],"isPreviousDropdownExpanded":[32]},null,{"nextItems":["onNextItemsChange"]}]]],["ix-category-filter",[[1,"ix-category-filter",{"disabled":[4],"readonly":[4],"filterState":[16],"placeholder":[1],"categories":[16],"nonSelectableCategories":[16],"suggestions":[16],"icon":[1],"hideIcon":[4,"hide-icon"],"repeatCategories":[4,"repeat-categories"],"tmpDisableScrollIntoView":[4,"tmp-disable-scroll-into-view"],"labelCategories":[1,"label-categories"],"i18nPlainText":[1,"i-1-8n-plain-text"],"showDropdown":[32],"textInput":[32],"hasFocus":[32],"categoryLogicalOperator":[32],"inputValue":[32],"category":[32],"filterTokens":[32]},null,{"filterState":["watchFilterState"]}]]],["ix-dropdown-button",[[1,"ix-dropdown-button",{"variant":[1],"outline":[4],"ghost":[4],"disabled":[4],"label":[1],"icon":[1],"closeBehavior":[8,"close-behavior"],"placement":[1],"dropdownAnchor":[32]}]]],["ix-group",[[1,"ix-group",{"suppressHeaderSelection":[4,"suppress-header-selection"],"header":[1],"subHeader":[1,"sub-header"],"collapsed":[1540],"selected":[1540],"index":[1538],"expandOnHeaderClick":[4,"expand-on-header-click"],"itemSelected":[32],"dropdownTriggerRef":[32],"slotSize":[32],"footerVisible":[32]}]]],["ix-menu",[[1,"ix-menu",{"showSettings":[1028,"show-settings"],"showAbout":[1028,"show-about"],"enableToggleTheme":[4,"enable-toggle-theme"],"enableSettings":[4,"enable-settings"],"enableMapExpand":[4,"enable-map-expand"],"applicationName":[1,"application-name"],"applicationDescription":[1,"application-description"],"maxVisibleMenuItems":[2,"max-visible-menu-items"],"i18nExpandSidebar":[1,"i-1-8n-expand-sidebar"],"expand":[1540],"pinned":[4],"i18nLegal":[1,"i-1-8n-legal"],"i18nSettings":[1,"i-1-8n-settings"],"i18nToggleTheme":[1,"i-1-8n-toggle-theme"],"i18nExpand":[1,"i-1-8n-expand"],"i18nCollapse":[1,"i-1-8n-collapse"],"showPinned":[32],"mapExpand":[32],"activeTab":[32],"breakpoint":[32],"itemsScrollShadowTop":[32],"itemsScrollShadowBottom":[32],"applicationLayoutContext":[32],"toggleMapExpand":[64],"toggleMenu":[64],"toggleSettings":[64],"toggleAbout":[64]},[[9,"resize","handleOverflowIndicator"],[0,"close","onOverlayClose"]],{"pinned":["pinnedChange"]}]]],["ix-menu-about",[[1,"ix-menu-about",{"activeTabLabel":[1025,"active-tab-label"],"label":[1],"show":[4],"items":[32]},null,{"activeTabLabel":["updateTab"]}]]],["ix-menu-about-news",[[1,"ix-menu-about-news",{"show":[1540],"label":[1],"i18nShowMore":[1,"i-1-8n-show-more"],"aboutItemLabel":[1,"about-item-label"],"offsetBottom":[2,"offset-bottom"],"expanded":[4]}]]],["ix-menu-settings",[[1,"ix-menu-settings",{"activeTabLabel":[1025,"active-tab-label"],"label":[1],"show":[4],"items":[32]},null,{"activeTabLabel":["updateTab"]}]]],["ix-split-button",[[1,"ix-split-button",{"variant":[1],"outline":[4],"ghost":[4],"label":[1],"icon":[1],"splitIcon":[1,"split-icon"],"disabled":[4],"placement":[1],"toggle":[32]}]]],["ix-action-card",[[1,"ix-action-card",{"variant":[1],"icon":[1],"heading":[1],"subheading":[1],"selected":[4]}]]],["ix-content-header",[[1,"ix-content-header",{"variant":[1],"headerTitle":[1,"header-title"],"headerSubtitle":[1,"header-subtitle"],"hasBackButton":[4,"has-back-button"]}]]],["ix-empty-state",[[1,"ix-empty-state",{"layout":[1],"icon":[1],"header":[1],"subHeader":[1,"sub-header"],"action":[1]}]]],["ix-modal-example",[[0,"ix-modal-example"]]],["ix-pane",[[1,"ix-pane",{"heading":[1],"variant":[1],"hideOnCollapse":[4,"hide-on-collapse"],"size":[1],"borderless":[4],"expanded":[1028],"composition":[1025],"icon":[1],"ignoreLayoutSettings":[4,"ignore-layout-settings"],"isMobile":[1028,"is-mobile"],"expandIcon":[32],"showContent":[32],"minimizeIcon":[32],"floating":[32],"parentWidthPx":[32],"parentHeightPx":[32]},null,{"isMobile":["onMobileChange"],"composition":["onPositionChange"],"hideOnCollapse":["onHideOnCollapseChange"],"variant":["onVariantChange"],"borderless":["onBorderlessChange"],"expanded":["onExpandedChange"],"parentHeightPx":["onParentSizeChange"],"parentWidthPx":["onParentSizeChange"],"size":["onSizeChange"]}]]],["ix-toast-container",[[1,"ix-toast-container",{"containerId":[1,"container-id"],"containerClass":[1,"container-class"],"position":[1],"showToast":[64]},null,{"position":["onPositionChange"]}]]],["ix-chip",[[1,"ix-chip",{"variant":[513],"active":[4],"closable":[4],"icon":[1],"background":[1],"color":[1],"chipColor":[1,"chip-color"],"outline":[4]}]]],["ix-drawer",[[1,"ix-drawer",{"show":[1028],"closeOnClickOutside":[4,"close-on-click-outside"],"fullHeight":[4,"full-height"],"minWidth":[2,"min-width"],"maxWidth":[2,"max-width"],"width":[8],"toggleDrawer":[64]},null,{"show":["onShowChanged"]}]]],["ix-expanding-search",[[1,"ix-expanding-search",{"icon":[1],"placeholder":[1],"value":[1025],"fullWidth":[4,"full-width"],"isFieldChanged":[32],"expanded":[32],"hasFocus":[32]}]]],["ix-flip-tile",[[1,"ix-flip-tile",{"state":[1],"height":[8],"width":[8],"index":[32],"isFlipAnimationActive":[32]}]]],["ix-message-bar",[[1,"ix-message-bar",{"type":[1],"dismissible":[4],"icon":[32],"color":[32]}]]],["ix-slider",[[1,"ix-slider",{"step":[2],"min":[2],"max":[2],"value":[2],"marker":[16],"trace":[4],"traceReference":[2,"trace-reference"],"disabled":[4],"error":[8],"rangeInput":[32],"rangeMin":[32],"rangeMax":[32],"rangeTraceReference":[32],"showTooltip":[32]},null,{"showTooltip":["onShowTooltipChange"],"value":["updateRangeVariables"],"max":["updateRangeVariables"],"min":["updateRangeVariables"],"traceReference":["updateRangeVariables"]}]]],["ix-upload",[[1,"ix-upload",{"accept":[1],"multiple":[4],"multiline":[4],"disabled":[4],"state":[1],"selectFileText":[1,"select-file-text"],"loadingText":[1,"loading-text"],"uploadFailedText":[1,"upload-failed-text"],"uploadSuccessText":[1,"upload-success-text"],"i18nUploadFile":[1,"i-1-8n-upload-file"],"i18nUploadDisabled":[1,"i-1-8n-upload-disabled"],"isFileOver":[32],"setFilesToUpload":[64]}]]],["ix-blind",[[1,"ix-blind",{"collapsed":[1540],"label":[1],"sublabel":[1],"icon":[1],"variant":[1]},null,{"collapsed":["animation"]}]]],["ix-dropdown-header",[[1,"ix-dropdown-header",{"label":[1]}]]],["ix-icon-toggle-button",[[1,"ix-icon-toggle-button",{"variant":[1],"outline":[4],"ghost":[4],"icon":[1],"pressed":[4],"size":[1],"disabled":[516],"loading":[4]},null,{"variant":["onVariantChange"],"ghost":["onGhostChange"],"outline":["onOutlineChange"]}]]],["ix-modal-loading",[[1,"ix-modal-loading"]]],["ix-split-button-item",[[1,"ix-split-button-item",{"icon":[1],"label":[1],"getDropdownItemElement":[64]}]]],["ix-toggle-button",[[1,"ix-toggle-button",{"variant":[1],"outline":[4],"ghost":[4],"disabled":[516],"loading":[4],"icon":[1],"pressed":[4]},null,{"variant":["onVariantChange"],"ghost":["onGhostChange"],"outline":["onOutlineChange"]}]]],["ix-tree",[[1,"ix-tree",{"root":[1],"model":[16],"renderItem":[16],"context":[1040]},null,{"model":["modelChange"]}]]],["ix-application",[[1,"ix-application",{"theme":[1],"themeSystemAppearance":[4,"theme-system-appearance"],"forceBreakpoint":[1,"force-breakpoint"],"breakpoints":[16],"appSwitchConfig":[16],"breakpoint":[32],"applicationSidebarSlotted":[32]},null,{"breakpoints":["onBreakpointsChange"],"theme":["changeTheme"],"themeSystemAppearance":["changeTheme"],"appSwitchConfig":["onApplicationSidebarChange"],"applicationSidebarSlotted":["onApplicationSidebarChange"]}]]],["ix-application-sidebar",[[1,"ix-application-sidebar",{"visible":[32]},[[8,"application-sidebar-toggle","listenToggleEvent"]]]]],["ix-content",[[1,"ix-content",{"isContentHeaderSlotted":[32]}]]],["ix-css-grid",[[1,"ix-css-grid",{"templates":[16],"currentTemplate":[32]}]]],["ix-css-grid-item",[[1,"ix-css-grid-item",{"itemName":[1,"item-name"]}]]],["ix-dropdown-quick-actions",[[1,"ix-dropdown-quick-actions"]]],["ix-event-list",[[1,"ix-event-list",{"itemHeight":[8,"item-height"],"compact":[4],"animated":[4],"chevron":[4]},null,{"chevron":["watchChevron"]}]]],["ix-event-list-item",[[1,"ix-event-list-item",{"color":[1],"itemColor":[1,"item-color"],"selected":[4],"disabled":[4],"chevron":[4]},[[1,"click","handleItemClick"]]]]],["ix-flip-tile-content",[[1,"ix-flip-tile-content",{"contentVisible":[4,"content-visible"]}]]],["ix-form-field",[[1,"ix-form-field",{"label":[1]}]]],["ix-input-group",[[1,"ix-input-group",{"inputPaddingLeft":[32],"inputPaddingRight":[32]}]]],["ix-key-value",[[1,"ix-key-value",{"icon":[1],"label":[1],"labelPosition":[1,"label-position"],"value":[1]}]]],["ix-key-value-list",[[1,"ix-key-value-list",{"striped":[4]}]]],["ix-kpi",[[1,"ix-kpi",{"label":[1],"value":[8],"unit":[1],"state":[1],"orientation":[1]}]]],["ix-link-button",[[1,"ix-link-button",{"disabled":[4],"url":[1],"target":[1]}]]],["ix-menu-about-item",[[1,"ix-menu-about-item",{"label":[513]},null,{"label":["watchLabel"]}]]],["ix-menu-settings-item",[[1,"ix-menu-settings-item",{"label":[513]},null,{"label":["watchLabel"]}]]],["ix-modal",[[1,"ix-modal",{"size":[1],"animation":[4],"backdrop":[4],"closeOnBackdropClick":[4,"close-on-backdrop-click"],"beforeDismiss":[16],"centered":[4],"keyboard":[4],"closeOnEscape":[4,"close-on-escape"],"modalVisible":[32],"showModal":[64],"dismissModal":[64],"closeModal":[64]}]]],["ix-modal-footer",[[1,"ix-modal-footer"]]],["ix-pane-layout",[[1,"ix-pane-layout",{"layout":[1],"variant":[1],"borderless":[4],"isMobile":[32],"paneElements":[32]},[[0,"slotChanged","onSlotChanged"],[0,"hideOnCollapseChanged","onCollapsibleChanged"],[0,"variantChanged","onVariantChanged"]],{"paneElements":["onPaneElementsChange"],"variant":["onVariableChange"],"borderless":["onBorderChange"],"layout":["onLayoutChange"],"isMobile":["onMobileChange"]}]]],["ix-pill",[[1,"ix-pill",{"variant":[513],"outline":[4],"icon":[1],"background":[1],"color":[1],"pillColor":[1,"pill-color"],"alignLeft":[4,"align-left"]}]]],["ix-playground-internal",[[2,"ix-playground-internal"]]],["ix-tile",[[1,"ix-tile",{"size":[1],"hasHeaderSlot":[32],"hasFooterSlot":[32]}]]],["ix-toggle",[[1,"ix-toggle",{"checked":[1540],"disabled":[4],"indeterminate":[1540],"textOn":[1,"text-on"],"textOff":[1,"text-off"],"textIndeterminate":[1,"text-indeterminate"],"hideText":[4,"hide-text"]}]]],["ix-validation-tooltip",[[1,"ix-validation-tooltip",{"message":[1],"placement":[1],"suppressAutomaticPlacement":[4,"suppress-automatic-placement"],"isInputValid":[32],"tooltipPosition":[32],"arrowPosition":[32]},null,{"isInputValid":["validationChanged"]}]]],["ix-workflow-step",[[1,"ix-workflow-step",{"vertical":[4],"disabled":[4],"status":[1],"clickable":[4],"selected":[4],"position":[1],"iconName":[32],"iconColor":[32]},null,{"selected":["selectedHandler"],"disabled":["watchPropHandler"],"status":["watchPropHandler"]}]]],["ix-workflow-steps",[[1,"ix-workflow-steps",{"vertical":[4],"clickable":[4],"selectedIndex":[2,"selected-index"]},[[0,"selectedChanged","onStepSelectionChanged"]]]]],["ix-dropdown-item",[[1,"ix-dropdown-item",{"label":[1],"icon":[1],"hover":[4],"disabled":[4],"checked":[4],"isSubMenu":[4,"is-sub-menu"],"suppressChecked":[4,"suppress-checked"],"emitItemClick":[64],"getDropdownItemElement":[64]}]]],["ix-dropdown",[[1,"ix-dropdown",{"suppressAutomaticPlacement":[4,"suppress-automatic-placement"],"show":[1540],"trigger":[1],"anchor":[1],"closeBehavior":[8,"close-behavior"],"placement":[1],"positioningStrategy":[1,"positioning-strategy"],"header":[1],"offset":[16],"overwriteDropdownStyle":[16],"discoverAllSubmenus":[4,"discover-all-submenus"],"discoverSubmenu":[64],"updatePosition":[64]},[[0,"ix-assign-sub-menu","cacheSubmenuId"]],{"show":["changedShow"],"trigger":["changedTrigger"]}]]],["ix-icon-button_2",[[1,"ix-icon-button",{"a11yLabel":[1,"a11y-label"],"variant":[1],"outline":[4],"ghost":[4],"oval":[4],"icon":[1],"size":[1],"color":[1],"iconColor":[1,"icon-color"],"disabled":[4],"type":[1],"loading":[4]}],[1,"ix-spinner",{"variant":[1],"size":[1],"hideTrack":[4,"hide-track"]}]]],["ix-select",[[1,"ix-select",{"selectedIndices":[1025,"selected-indices"],"value":[1025],"allowClear":[4,"allow-clear"],"mode":[1],"editable":[4],"disabled":[4],"readonly":[4],"i18nPlaceholder":[1,"i-1-8n-placeholder"],"i18nPlaceholderEditable":[1,"i-1-8n-placeholder-editable"],"i18nSelectListHeader":[1,"i-1-8n-select-list-header"],"i18nNoMatches":[1,"i-1-8n-no-matches"],"hideListHeader":[4,"hide-list-header"],"dropdownShow":[32],"selectedLabels":[32],"dropdownWrapperRef":[32],"dropdownAnchor":[32],"isDropdownEmpty":[32],"hasFocus":[32],"navigationItem":[32],"inputFilterText":[32],"inputValue":[32]},[[0,"itemClick","onItemClicked"],[0,"ix-select-item:labelChange","onLabelChange"]],{"selectedIndices":["watchSelectedIndices"],"value":["watchValue"]}]]],["ix-time-picker",[[1,"ix-time-picker",{"format":[1],"corners":[1],"standaloneAppearance":[4,"standalone-appearance"],"individual":[4],"showHour":[4,"show-hour"],"showMinutes":[4,"show-minutes"],"showSeconds":[4,"show-seconds"],"time":[1],"showTimeReference":[1028,"show-time-reference"],"timeReference":[1,"time-reference"],"textSelectTime":[1,"text-select-time"],"textTime":[1,"text-time"],"_time":[32],"_timeRef":[32],"_formattedTime":[32],"getCurrentTime":[64]},null,{"time":["watchTimePropHandler"],"_time":["formatTime","onInternalTimeChange"]}]]],["ix-map-navigation-overlay",[[1,"ix-map-navigation-overlay",{"name":[1],"icon":[1],"color":[1],"iconColor":[1,"icon-color"]}]]],["ix-toast",[[1,"ix-toast",{"type":[1],"toastTitle":[1,"toast-title"],"autoCloseDelay":[2,"auto-close-delay"],"autoClose":[4,"auto-close"],"icon":[1],"iconColor":[1,"icon-color"],"progress":[32],"touched":[32]}]]],["ix-breadcrumb-item",[[1,"ix-breadcrumb-item",{"label":[1],"icon":[1],"ghost":[4],"visible":[4],"showChevron":[4,"show-chevron"],"isDropdownTrigger":[4,"is-dropdown-trigger"],"a11y":[32]}]]],["ix-tooltip",[[1,"ix-tooltip",{"for":[1],"titleContent":[1,"title-content"],"interactive":[4],"placement":[1],"animationFrame":[4,"animation-frame"],"visible":[32],"showTooltip":[64],"hideTooltip":[64]}]]],["ix-tree-item",[[1,"ix-tree-item",{"text":[1],"hasChildren":[4,"has-children"],"context":[16]}]]],["ix-avatar_2",[[1,"ix-avatar",{"image":[1],"initials":[1],"username":[1],"extra":[1],"isClosestApplicationHeader":[32],"hasSlottedElements":[32]}],[1,"ix-menu-avatar-item",{"icon":[1],"label":[1],"getDropdownItemElement":[64]}]]],["ix-application-header",[[1,"ix-application-header",{"name":[1],"breakpoint":[32],"menuExpanded":[32],"suppressResponsive":[32],"hasSlottedElements":[32],"applicationLayoutContext":[32]}]]],["ix-modal-content_2",[[1,"ix-modal-header",{"hideClose":[4,"hide-close"],"icon":[1],"iconColor":[1,"icon-color"]},null,{"icon":["onIconChange"]}],[1,"ix-modal-content"]]],["ix-group-context-menu_2",[[1,"ix-group-context-menu",{"showContextMenu":[32]}],[1,"ix-group-item",{"icon":[1],"text":[1],"secondaryText":[1,"secondary-text"],"suppressSelection":[4,"suppress-selection"],"selected":[4],"focusable":[4],"index":[2]},[[1,"click","clickListen"]]]]],["ix-card-accordion_2",[[1,"ix-card-accordion",{"collapse":[4],"expandContent":[32]},null,{"collapse":["onInitialExpandChange"]}],[1,"ix-card-title"]]],["ix-menu-item",[[1,"ix-menu-item",{"home":[4],"bottom":[4],"tabIcon":[1025,"tab-icon"],"icon":[1025],"notifications":[2],"active":[4],"disabled":[4],"title":[32]},null,{"icon":["onIconChange"],"tabIcon":["onTabIconChange"]}]]],["ix-divider",[[1,"ix-divider"]]],["ix-burger-menu",[[1,"ix-burger-menu",{"ixAriaLabel":[1,"ix-aria-label"],"expanded":[516],"pinned":[4]}]]],["ix-tab-item_2",[[1,"ix-tab-item",{"selected":[4],"disabled":[4],"small":[4],"icon":[4],"rounded":[4],"counter":[2],"layout":[1],"placement":[1]}],[1,"ix-tabs",{"small":[4],"rounded":[4],"selected":[1026],"layout":[1],"placement":[1],"totalItems":[32],"currentScrollAmount":[32],"scrollAmount":[32],"scrollActionAmount":[32]},[[9,"resize","onWindowResize"],[0,"tabClick","onTabClick"]]]]],["ix-date-time-card",[[1,"ix-date-time-card",{"standaloneAppearance":[8,"standalone-appearance"],"individual":[4],"corners":[1]}]]],["ix-filter-chip_2",[[1,"ix-select-item",{"label":[513],"value":[520],"selected":[4],"hover":[4],"onItemClick":[64]},null,{"label":["labelChange"]}],[1,"ix-filter-chip",{"disabled":[4],"readonly":[4]}]]],["ix-card_2",[[1,"ix-card",{"variant":[1],"selected":[4]}],[1,"ix-card-content"]]],["ix-button",[[1,"ix-button",{"variant":[1],"outline":[4],"ghost":[4],"disabled":[516],"type":[1],"loading":[4],"icon":[1],"alignment":[1],"iconSize":[1,"icon-size"]}]]],["ix-col_4",[[1,"ix-date-picker",{"format":[1],"range":[4],"corners":[1],"from":[1],"to":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"textSelectDate":[1,"text-select-date"],"i18nDone":[1,"i18n-done"],"weekStartIndex":[2,"week-start-index"],"locale":[1],"individual":[4],"eventDelimiter":[1,"event-delimiter"],"standaloneAppearance":[4,"standalone-appearance"],"today":[1],"currFromDate":[32],"currToDate":[32],"selectedYear":[32],"tempYear":[32],"startYear":[32],"endYear":[32],"selectedMonth":[32],"tempMonth":[32],"dropdownButtonRef":[32],"yearContainerRef":[32],"dayNames":[32],"monthNames":[32],"firstMonthRef":[32],"focusedDay":[32],"focusedDayElem":[32],"getCurrentDate":[64]},null,{"from":["watchFromPropHandler"],"to":["watchToPropHandler"],"locale":["onLocaleChange"]}],[1,"ix-col",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"]},[[9,"resize","onResize"]]],[1,"ix-layout-grid",{"noMargin":[4,"no-margin"],"gap":[1],"columns":[2]}],[1,"ix-row"]]],["ix-typography",[[1,"ix-typography",{"variant":[1],"format":[1],"color":[1],"textColor":[1,"text-color"],"bold":[4],"textDecoration":[1,"text-decoration"]}]]]]'),void 0)})()})(),window.showMessage=t=>{v(JSON.parse(t))},window.initializeChart=(t,e)=>{p$(h),HC(document.getElementById(t),window.demoTheme).setOption(JSON.parse(e))},window.setTheme=t=>{g.t.setTheme(t)},window.toggleTheme=()=>{g.t.toggleMode()},window.toggleSystemTheme=t=>{!0===t&&g.t.setVariant()},window.agGridInterop={dotnetReference:null,createGrid:function(t,e,o){let n=JSON.parse(o);return window.agGridInterop.dotnetReference=t,n.onCellClicked=function(e){t.invokeMethodAsync("OnCellClickedCallback")},new U8(document.getElementById(e),n)},setData:function(t,e){t.gridOptions.api.setRowData(e)},getSelectedRows:function(t){return t.gridOptions.api.getSelectedRows()}}})()})(); \ No newline at end of file +window.siemensIXInterop={async initialize(){await applyPolyfills(),await ixIconsDefineCustomElements(),await defineCustomElements()},showMessage(e){try{const t=JSON.parse(e);toast(t)}catch(e){console.error("Failed to display toast message:",e)}},initializeChart(e,t){try{const i=document.getElementById(e);if(!i)throw new Error(`Element with ID ${e} not found`);registerTheme(echarts),echarts.init(i,window.demoTheme).setOption(JSON.parse(t))}catch(e){console.error("Failed to initialize chart:",e)}},setTheme(e){themeSwitcher.setTheme(e)},toggleTheme(){themeSwitcher.toggleMode()},toggleSystemTheme(e){e?themeSwitcher.setVariant():console.warn("System theme switching is disabled.")},agGridInterop:{dotnetReference:null,createGrid(e,t,i){const n=JSON.parse(i);return this.dotnetReference=e,n.onCellClicked=t=>{e.invokeMethodAsync("OnCellClickedCallback",t.data)},new Grid(document.getElementById(t),n)},setData(e,t){e.gridOptions.api.setRowData(t)},getSelectedRows:e=>e.gridOptions.api.getSelectedRows(),dispose(){this.dotnetReference=null}}},(async()=>{await siemensIXInterop.initialize()})(); \ No newline at end of file From c35f015dbfb13e311a83ed63747c79d5a9f09d0c Mon Sep 17 00:00:00 2001 From: Yagizhan Yakali Date: Fri, 27 Sep 2024 21:40:30 +0200 Subject: [PATCH 03/15] fix index.js import issues --- SiemensIXBlazor.sln | 6 ++++++ SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js | 11 ++++++++++- .../wwwroot/js/siemens-ix/1051.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1358.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1394.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1422.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1606.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1646.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1719.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1754.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1791.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1952.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1985.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/1993.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2214.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2216.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2263.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2478.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2632.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2643.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2653.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2654.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2668.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2775.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2907.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2920.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/2979.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3052.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3169.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3170.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3268.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3492.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3650.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3675.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3684.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3691.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/3903.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4094.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4120.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4153.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4154.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4369.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4596.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4707.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4776.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/4895.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5075.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5179.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5207.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5266.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5297.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5359.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5374.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5465.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5592.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5840.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/5982.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6006.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6083.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6112.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6114.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6150.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6155.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6268.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6599.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6699.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/670.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6748.index.bundle.js | 10 +--------- .../wwwroot/js/siemens-ix/6802.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6857.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6942.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/6954.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7085.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7262.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7292.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7510.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/753.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7537.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7541.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7585.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7628.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7731.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/7744.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8005.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8137.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8281.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8590.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8670.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8683.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8835.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8865.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/8926.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9148.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9200.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9451.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9478.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9676.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9700.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9829.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9880.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9929.index.bundle.js | 9 --------- .../wwwroot/js/siemens-ix/9941.index.bundle.js | 9 --------- SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js | 3 ++- 103 files changed, 19 insertions(+), 902 deletions(-) diff --git a/SiemensIXBlazor.sln b/SiemensIXBlazor.sln index 376c81d..e9008ee 100644 --- a/SiemensIXBlazor.sln +++ b/SiemensIXBlazor.sln @@ -11,6 +11,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{9AA3C4E1 EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SiemensIXBlazor.Tests", "SiemensIXBlazor.Tests\SiemensIXBlazor.Tests.csproj", "{0E18AA5B-2E9A-48BA-A07F-621B5DCBBDC9}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestBlazorApp", "TestBlazorApp\TestBlazorApp.csproj", "{20CB53D6-C6B3-4FCD-9DF3-A0511DB1FBA1}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -29,6 +31,10 @@ Global {682ADEDC-AE1F-46C9-9F0D-7DE297BAC82D}.Debug|Any CPU.Build.0 = Debug|Any CPU {682ADEDC-AE1F-46C9-9F0D-7DE297BAC82D}.Release|Any CPU.ActiveCfg = Release|Any CPU {682ADEDC-AE1F-46C9-9F0D-7DE297BAC82D}.Release|Any CPU.Build.0 = Release|Any CPU + {20CB53D6-C6B3-4FCD-9DF3-A0511DB1FBA1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {20CB53D6-C6B3-4FCD-9DF3-A0511DB1FBA1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {20CB53D6-C6B3-4FCD-9DF3-A0511DB1FBA1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {20CB53D6-C6B3-4FCD-9DF3-A0511DB1FBA1}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js index 11219b9..44ede87 100644 --- a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js +++ b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js @@ -1,4 +1,13 @@ -window.siemensIXInterop = { +import { defineCustomElements, applyPolyfills } from "@siemens/ix/loader/index"; +import { toast } from "@siemens/ix"; +import "@siemens/ix-echarts"; +import { registerTheme } from "@siemens/ix-echarts"; +import * as echarts from "echarts"; +import { themeSwitcher } from "@siemens/ix"; +import { Grid } from "ag-grid-community"; +import { defineCustomElements as ixIconsDefineCustomElements } from "@siemens/ix-icons/loader"; + +window.siemensIXInterop = { async initialize() { await applyPolyfills(); await ixIconsDefineCustomElements(); diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1051.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1051.index.bundle.js index 11eea58..2092dd3 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1051.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1051.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1051],{1051:(i,c,a)=>{a.r(c),a.d(c,{ix_push_card:()=>e});var t=a(6969);const e=class{constructor(i){(0,t.r)(this,i),this.icon=void 0,this.notification=void 0,this.heading=void 0,this.subheading=void 0,this.variant="insight",this.collapse=!0}render(){var i;const c="insight"===this.variant||"notification"===this.variant?"std":void 0;return(0,t.h)(t.H,{key:"e24565973d07f9e229c36913ca3ac89a50fa203a"},(0,t.h)("ix-card",{key:"44282cb66fe975ec987c732564b1a1b2f157fb5b",variant:this.variant},(0,t.h)("ix-card-content",{key:"a81102518c997300dd706eaaf9be2c409dc2cb57"},(0,t.h)("ix-card-title",{key:"cfe94c332de47b3457f713e601d5528da88eb9d6"},this.icon?(0,t.h)("ix-icon",{class:"icon",name:this.icon,size:"32"}):null,(0,t.h)("span",{key:"70ae6659d04f30ba68a58f8cdf0fde3f33c3de01",class:"notification"},null!==(i=this.notification)&&void 0!==i?i:0),(0,t.h)("slot",{key:"b16c8760f377f9f5118cf2d6b09f0ed831c4d7bd",name:"title-action"})),(0,t.h)("ix-typography",{key:"861cc81ab636b168fbd6f931095d5128a2a4732b",color:c,format:"h4"},this.heading),(0,t.h)("ix-typography",{key:"310464f9afd7994ccc5c51a8154387e59205b2bb",color:c},this.subheading)),(0,t.h)("ix-card-accordion",{key:"e070cee2f6ded1b56b92d3fc1ed5028cfe2d0d5d",collapse:this.collapse},(0,t.h)("slot",{key:"d8b198392bd09b45d2f0c6f6579e333c5f4d96e0"}))))}};e.style=":host{display:block;position:relative}:host .icon{transform:scale(1.25)}:host .notification{font-size:40px}:host ix-card-content{height:11rem}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1358.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1358.index.bundle.js index 7a00fbe..b974d99 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1358.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1358.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1358],{1358:(e,L,i)=>{i.r(L),i.d(L,{ix_icon:()=>d});var n=i(3268);const t="data:image/svg+xml;utf8,",o=Object.freeze({__proto__:null,iconAboutFilled:"data:image/svg+xml;utf8,",iconAbout:"data:image/svg+xml;utf8,",iconAddApplication:"data:image/svg+xml;utf8,",iconAddCircleFilled:"data:image/svg+xml;utf8,",iconAddCircle:"data:image/svg+xml;utf8,",iconAddDocumentNote:"data:image/svg+xml;utf8,",iconAddEyeFilled:"data:image/svg+xml;utf8,",iconAddEye:"data:image/svg+xml;utf8,",iconAddTaskList:"data:image/svg+xml;utf8,",iconAddTask:"data:image/svg+xml;utf8,",iconAddUserFilled:"data:image/svg+xml;utf8,",iconAddUser:"data:image/svg+xml;utf8,",iconAdd:"data:image/svg+xml;utf8,",iconAi:"data:image/svg+xml;utf8,",iconAlarmBellCancelledFilled:"data:image/svg+xml;utf8,",iconAlarmBellCancelled:"data:image/svg+xml;utf8,",iconAlarmBellFilled:"data:image/svg+xml;utf8,",iconAlarmBell:"data:image/svg+xml;utf8,",iconAlarmClockFilled:"data:image/svg+xml;utf8,",iconAlarmClock:"data:image/svg+xml;utf8,",iconAlarmFilled:"data:image/svg+xml;utf8,",iconAlarm:"data:image/svg+xml;utf8,",iconAnalyze:"data:image/svg+xml;utf8,",iconAnomalyFound:"data:image/svg+xml;utf8,",iconAnomaly:"data:image/svg+xml;utf8,",iconAppMenu:"data:image/svg+xml;utf8,",iconApplicationScreen:"data:image/svg+xml;utf8,",iconApplications:"data:image/svg+xml;utf8,",iconApps:"data:image/svg+xml;utf8,",iconArrowDiagonalBottomLeft:"data:image/svg+xml;utf8,",iconArrowDiagonalBottomRight:"data:image/svg+xml;utf8,",iconArrowDiagonalTopLeft:"data:image/svg+xml;utf8,",iconArrowDiagonalTopRight:"data:image/svg+xml;utf8,",iconArrowDownRight:"data:image/svg+xml;utf8,",iconArrowDown:"data:image/svg+xml;utf8,",iconArrowLeft:"data:image/svg+xml;utf8,",iconArrowRightDown:"data:image/svg+xml;utf8,",iconArrowRight:"data:image/svg+xml;utf8,",iconArrowUp:"data:image/svg+xml;utf8,",iconAttach:"data:image/svg+xml;utf8,",iconAttachmentUpload:"data:image/svg+xml;utf8,",iconAudioDescription1:"data:image/svg+xml;utf8,",iconAudioDescription2:"data:image/svg+xml;utf8,",iconAuditReport:"data:image/svg+xml;utf8,",iconAverage:"data:image/svg+xml;utf8,",iconBackupFilled:"data:image/svg+xml;utf8,",iconBackup:"data:image/svg+xml;utf8,",iconBarCode:"data:image/svg+xml;utf8,",iconBarchart:"data:image/svg+xml;utf8,",iconBatteryCheck:"data:image/svg+xml;utf8,",iconBatteryEmptyQuestion:"data:image/svg+xml;utf8,",iconBatteryEmpty:"data:image/svg+xml;utf8,",iconBatteryExclamation:"data:image/svg+xml;utf8,",iconBatteryFullCheck:"data:image/svg+xml;utf8,",iconBatteryFull:"data:image/svg+xml;utf8,",iconBatteryHalf:"data:image/svg+xml;utf8,",iconBatteryLow:"data:image/svg+xml;utf8,",iconBatteryQuarter:"data:image/svg+xml;utf8,",iconBatterySlash:"data:image/svg+xml;utf8,",iconBatteryThreeQuarter:"data:image/svg+xml;utf8,",iconBatteryXmark:"data:image/svg+xml;utf8,",iconBezierCurve:"data:image/svg+xml;utf8,",iconBinocularsFilled:"data:image/svg+xml;utf8,",iconBinoculars:"data:image/svg+xml;utf8,",iconBlazor:"data:image/svg+xml;utf8,",iconBook:"data:image/svg+xml;utf8,",iconBookmarkFilled:"data:image/svg+xml;utf8,",iconBookmark:"data:image/svg+xml;utf8,",iconBoundarySignals:"data:image/svg+xml;utf8,",iconBuilding1Filled:"data:image/svg+xml;utf8,",iconBuilding1:"data:image/svg+xml;utf8,",iconBuilding2Filled:"data:image/svg+xml;utf8,",iconBuilding2:"data:image/svg+xml;utf8,",iconBulbFilled:"data:image/svg+xml;utf8,",iconBulb:"data:image/svg+xml;utf8,",iconCalendarFilled:"data:image/svg+xml;utf8,",iconCalendarSettings:"data:image/svg+xml;utf8,",iconCalendar:"data:image/svg+xml;utf8,",iconCancel:"data:image/svg+xml;utf8,",iconCancelled:"data:image/svg+xml;utf8,",iconCapacityFilled:"data:image/svg+xml;utf8,",iconCapacity:"data:image/svg+xml;utf8,",iconCapture:"data:image/svg+xml;utf8,",iconCarFilled:"data:image/svg+xml;utf8,",iconCar:"data:image/svg+xml;utf8,",iconCardLayoutFilled:"data:image/svg+xml;utf8,",iconCardLayout:"data:image/svg+xml;utf8,",iconCertificateErrorFilled:"data:image/svg+xml;utf8,",iconCertificateError:"data:image/svg+xml;utf8,",iconCertificateExclamationFilled:"data:image/svg+xml;utf8,",iconCertificateExclamation:"data:image/svg+xml;utf8,",iconCertificateSuccessFilled:"data:image/svg+xml;utf8,",iconCertificateSuccess:"data:image/svg+xml;utf8,",iconChartCursor:"data:image/svg+xml;utf8,",iconChartCurveLinear:"data:image/svg+xml;utf8,",iconChartCurveSpline:"data:image/svg+xml;utf8,",iconChartCurveStepped:"data:image/svg+xml;utf8,",iconChartDiagramAdd:"data:image/svg+xml;utf8,",iconChartDiagram:"data:image/svg+xml;utf8,",iconChartDiagrams:"data:image/svg+xml;utf8,",iconChartLabelsFilled:"data:image/svg+xml;utf8,",iconChartLabels:"data:image/svg+xml;utf8,",iconCheckIn:"data:image/svg+xml;utf8,",iconCheckOut:"data:image/svg+xml;utf8,",iconCheck:"data:image/svg+xml;utf8,",iconCheckboxComponentChecked:"data:image/svg+xml;utf8,",iconCheckboxComponentMixed:"data:image/svg+xml;utf8,",iconCheckboxComponentUnchecked:"data:image/svg+xml;utf8,",iconCheckboxFilled:"data:image/svg+xml;utf8,",iconCheckbox:"data:image/svg+xml;utf8,",iconCheckboxesFilled:"data:image/svg+xml;utf8,",iconCheckboxes:"data:image/svg+xml;utf8,",iconChevronDownSmall:"data:image/svg+xml;utf8,",iconChevronDown:"data:image/svg+xml;utf8,",iconChevronLeftSmall:"data:image/svg+xml;utf8,",iconChevronLeft:"data:image/svg+xml;utf8,",iconChevronRightSmall:"data:image/svg+xml;utf8,",iconChevronRight:"data:image/svg+xml;utf8,",iconChevronUpSmall:"data:image/svg+xml;utf8,",iconChevronUp:"data:image/svg+xml;utf8,",iconCircleDotFilled:"data:image/svg+xml;utf8,",iconCircleDot:"data:image/svg+xml;utf8,",iconCircleFilled:"data:image/svg+xml;utf8,",iconCirclePauseFilled:"data:image/svg+xml;utf8,",iconCirclePause:"data:image/svg+xml;utf8,",iconCirclePlayFilled:"data:image/svg+xml;utf8,",iconCirclePlay:"data:image/svg+xml;utf8,",iconCircleStopFilled:"data:image/svg+xml;utf8,",iconCircleStop:"data:image/svg+xml;utf8,",iconCircle:"data:image/svg+xml;utf8,",iconClearFilterFilled:"data:image/svg+xml;utf8,",iconClearFilter:"data:image/svg+xml;utf8,",iconClear:"data:image/svg+xml;utf8,",iconClockFilled:"data:image/svg+xml;utf8,",iconClock:"data:image/svg+xml;utf8,",iconCloseSmall:"data:image/svg+xml;utf8,",iconClose:"data:image/svg+xml;utf8,",iconCloudDownloadAddFilled:"data:image/svg+xml;utf8,",iconCloudDownloadAdd:"data:image/svg+xml;utf8,",iconCloudDownloadFilled:"data:image/svg+xml;utf8,",iconCloudDownloadListFilled:"data:image/svg+xml;utf8,",iconCloudDownloadList:"data:image/svg+xml;utf8,",iconCloudDownload:"data:image/svg+xml;utf8,",iconCloudFailFilled:"data:image/svg+xml;utf8,",iconCloudFail:"data:image/svg+xml;utf8,",iconCloudFilled:"data:image/svg+xml;utf8,",iconCloudNewFilled:"data:image/svg+xml;utf8,",iconCloudNew:"data:image/svg+xml;utf8,",iconCloudSuccessFilled:"data:image/svg+xml;utf8,",iconCloudSuccess:"data:image/svg+xml;utf8,",iconCloudUploadFilled:"data:image/svg+xml;utf8,",iconCloudUpload:"data:image/svg+xml;utf8,",iconCloud:"data:image/svg+xml;utf8,",iconCode:"data:image/svg+xml;utf8,",iconCoffeeEmptyFilled:"data:image/svg+xml;utf8,",iconCoffeeEmpty:"data:image/svg+xml;utf8,",iconCoffeeFilled:"data:image/svg+xml;utf8,",iconCoffee:"data:image/svg+xml;utf8,",iconCogwheelFilled:"data:image/svg+xml;utf8,",iconCogwheel:"data:image/svg+xml;utf8,",iconCombine:"data:image/svg+xml;utf8,",iconCompactDiscFilled:"data:image/svg+xml;utf8,",iconCompactDisc:"data:image/svg+xml;utf8,",iconCompoundBlock:"data:image/svg+xml;utf8,",iconConfiguration:"data:image/svg+xml;utf8,",iconConfigureFilled:"data:image/svg+xml;utf8,",iconConfigure:"data:image/svg+xml;utf8,",iconConnected:"data:image/svg+xml;utf8,",iconConnectorChartFilled:"data:image/svg+xml;utf8,",iconConnectorChart:"data:image/svg+xml;utf8,",iconConnectorFilled:"data:image/svg+xml;utf8,",iconConnectorHexFilled:"data:image/svg+xml;utf8,",iconConnectorHex:"data:image/svg+xml;utf8,",iconConnectorRectFilled:"data:image/svg+xml;utf8,",iconConnectorRect:"data:image/svg+xml;utf8,",iconConnectorRhombFilled:"data:image/svg+xml;utf8,",iconConnectorRhomb:"data:image/svg+xml;utf8,",iconConnector:"data:image/svg+xml;utf8,",iconConsistencyCheck:"data:image/svg+xml;utf8,",iconContactDetailsFilled:"data:image/svg+xml;utf8,",iconContactDetails:"data:image/svg+xml;utf8,",iconContextMenu:"data:image/svg+xml;utf8,",iconControlledDevice:"data:image/svg+xml;utf8,",iconControllerDevice:"data:image/svg+xml;utf8,",iconCopy:"data:image/svg+xml;utf8,",iconCornerArrowUpLeft:"data:image/svg+xml;utf8,",iconCouchFilled:"data:image/svg+xml;utf8,",iconCouch:"data:image/svg+xml;utf8,",iconCreatePlantFilled:"data:image/svg+xml;utf8,",iconCreatePlant:"data:image/svg+xml;utf8,",iconCut:"data:image/svg+xml;utf8,",iconCycle:"data:image/svg+xml;utf8,",iconDataEgress:"data:image/svg+xml;utf8,",iconDataIngressEgress:"data:image/svg+xml;utf8,",iconDataIngress:"data:image/svg+xml;utf8,",iconDatabaseFilled:"data:image/svg+xml;utf8,",iconDatabase:"data:image/svg+xml;utf8,",iconDetails:"data:image/svg+xml;utf8,",iconDiagramModuleLibrary:"data:image/svg+xml;utf8,",iconDiagramModuleNew:"data:image/svg+xml;utf8,",iconDiagramModule:"data:image/svg+xml;utf8,",iconDiamond:"data:image/svg+xml;utf8,",iconDisconnected:"data:image/svg+xml;utf8,",iconDiskFilled:"data:image/svg+xml;utf8,",iconDiskPen:"data:image/svg+xml;utf8,",iconDisk:"data:image/svg+xml;utf8,",iconDistribution:"data:image/svg+xml;utf8,",iconDocDocument:"data:image/svg+xml;utf8,",iconDocumentBulk:"data:image/svg+xml;utf8,",iconDocumentFail:"data:image/svg+xml;utf8,",iconDocumentInfo:"data:image/svg+xml;utf8,",iconDocumentLink:"data:image/svg+xml;utf8,",iconDocumentManagement:"data:image/svg+xml;utf8,",iconDocumentReference:"data:image/svg+xml;utf8,",iconDocumentSettings:"data:image/svg+xml;utf8,",iconDocumentSuccess:"data:image/svg+xml;utf8,",iconDocument:"data:image/svg+xml;utf8,",iconDoubleCheck:"data:image/svg+xml;utf8,",iconDoubleChevronDown:"data:image/svg+xml;utf8,",iconDoubleChevronLeft:"data:image/svg+xml;utf8,",iconDoubleChevronRight:"data:image/svg+xml;utf8,",iconDoubleChevronUp:"data:image/svg+xml;utf8,",iconDoubletFilled:"data:image/svg+xml;utf8,",iconDoublet:"data:image/svg+xml;utf8,",iconDownloadAdd:"data:image/svg+xml;utf8,",iconDownloadList:"data:image/svg+xml;utf8,",iconDownload:"data:image/svg+xml;utf8,",iconDrop:"data:image/svg+xml;utf8,",iconDuplicateDocument:"data:image/svg+xml;utf8,",iconDuplicate:"data:image/svg+xml;utf8,",iconEMailFilled:"data:image/svg+xml;utf8,",iconEMail:"data:image/svg+xml;utf8,",iconEarthFilled:"data:image/svg+xml;utf8,",iconEarth:"data:image/svg+xml;utf8,",iconEditPlant:"data:image/svg+xml;utf8,",iconElectricalEnergyFilled:"data:image/svg+xml;utf8,",iconElectricalEnergy:"data:image/svg+xml;utf8,",iconEllipseArc:"data:image/svg+xml;utf8,",iconEllipseFilled:"data:image/svg+xml;utf8,",iconEllipse:"data:image/svg+xml;utf8,",iconErrorFilled:"data:image/svg+xml;utf8,",iconError:"data:image/svg+xml;utf8,",iconExploreFilled:"data:image/svg+xml;utf8,",iconExplore:"data:image/svg+xml;utf8,",iconExport:"data:image/svg+xml;utf8,",iconEyeCancelledFilled:"data:image/svg+xml;utf8,",iconEyeCancelled:"data:image/svg+xml;utf8,",iconEyeFilled:"data:image/svg+xml;utf8,",iconEye:"data:image/svg+xml;utf8,",iconFactoryResetFilled:"data:image/svg+xml;utf8,",iconFactoryReset:"data:image/svg+xml;utf8,",iconFilterFilled:"data:image/svg+xml;utf8,",iconFilterOutline:"data:image/svg+xml;utf8,",iconFilter:"data:image/svg+xml;utf8,",iconFitToScreen:"data:image/svg+xml;utf8,",iconFlagFilled:"data:image/svg+xml;utf8,",iconFlag:"data:image/svg+xml;utf8,",iconFolderDownFilled:"data:image/svg+xml;utf8,",iconFolderDown:"data:image/svg+xml;utf8,",iconFolderFilled:"data:image/svg+xml;utf8,",iconFolderNewFilled:"data:image/svg+xml;utf8,",iconFolderNewOutline:"data:image/svg+xml;utf8,",iconFolderNew:"data:image/svg+xml;utf8,",iconFolderOpenFilled:"data:image/svg+xml;utf8,",iconFolderOpenOutline:"data:image/svg+xml;utf8,",iconFolderOpen:"data:image/svg+xml;utf8,",iconFolderOutline:"data:image/svg+xml;utf8,",iconFolderUpFilled:"data:image/svg+xml;utf8,",iconFolderUp:"data:image/svg+xml;utf8,",iconFolder:"data:image/svg+xml;utf8,",iconFullScreeenExit:"data:image/svg+xml;utf8,",iconFullScreeen:"data:image/svg+xml;utf8,",iconFullScreenExit:"data:image/svg+xml;utf8,",iconFullScreen:"data:image/svg+xml;utf8,",iconFunctionBlockLibrary:"data:image/svg+xml;utf8,",iconFunctionBlockNew:"data:image/svg+xml;utf8,",iconFunctionBlock:"data:image/svg+xml;utf8,",iconFunctionDiagramNew:"data:image/svg+xml;utf8,",iconFunctionDiagram:"data:image/svg+xml;utf8,",iconGaugeFilled:"data:image/svg+xml;utf8,",iconGauge:"data:image/svg+xml;utf8,",iconGaugechart:"data:image/svg+xml;utf8,",iconGlobalPlantFilled:"data:image/svg+xml;utf8,",iconGlobalPlant:"data:image/svg+xml;utf8,",iconGlobeFilled:"data:image/svg+xml;utf8,",iconGlobe:"data:image/svg+xml;utf8,",iconGoto:"data:image/svg+xml;utf8,",iconGroup:"data:image/svg+xml;utf8,",iconHardReset:"data:image/svg+xml;utf8,",iconHardwareCabinet:"data:image/svg+xml;utf8,",iconHealthFilled:"data:image/svg+xml;utf8,",iconHealth:"data:image/svg+xml;utf8,",iconHeartFilled:"data:image/svg+xml;utf8,",iconHeart:"data:image/svg+xml;utf8,",iconHexagonVerticalBarsDatabaseFilled:"data:image/svg+xml;utf8,",iconHexagonVerticalBarsDatabase:"data:image/svg+xml;utf8,",iconHexagonVerticalBarsFilled:"data:image/svg+xml;utf8,",iconHexagonVerticalBars:"data:image/svg+xml;utf8,",iconHierarchy:"data:image/svg+xml;utf8,",iconHighlightFilled:"data:image/svg+xml;utf8,",iconHighlight:"data:image/svg+xml;utf8,",iconHistoryList:"data:image/svg+xml;utf8,",iconHistory:"data:image/svg+xml;utf8,",iconHomeFilled:"data:image/svg+xml;utf8,",iconHome:"data:image/svg+xml;utf8,",iconHourglass:"data:image/svg+xml;utf8,",iconImageFilled:"data:image/svg+xml;utf8,",iconImage:"data:image/svg+xml;utf8,",iconImport:"data:image/svg+xml;utf8,",iconInfoFeed:"data:image/svg+xml;utf8,",iconInfoFilled:"data:image/svg+xml;utf8,",iconInfo:"data:image/svg+xml;utf8,",iconIngestionReport:"data:image/svg+xml;utf8,",iconIngestion:"data:image/svg+xml;utf8,",iconInkPen:"data:image/svg+xml;utf8,",iconInquiryFilled:"data:image/svg+xml;utf8,",iconInquiryMail:"data:image/svg+xml;utf8,",iconInquiry:"data:image/svg+xml;utf8,",iconItemDetailsFilled:"data:image/svg+xml;utf8,",iconItemDetails:"data:image/svg+xml;utf8,",iconLabelFilled:"data:image/svg+xml;utf8,",iconLabel:"data:image/svg+xml;utf8,",iconLandingPageLogo:"data:image/svg+xml;utf8,",iconLanguageFilled:"data:image/svg+xml;utf8,",iconLanguage:"data:image/svg+xml;utf8,",iconLayersFilled:"data:image/svg+xml;utf8,",iconLayers:"data:image/svg+xml;utf8,",iconLeaf:"data:image/svg+xml;utf8,",iconLegal:"data:image/svg+xml;utf8,",iconLibraryNew:"data:image/svg+xml;utf8,",iconLibrary:"data:image/svg+xml;utf8,",iconLicense:"data:image/svg+xml;utf8,",iconLightDark:"data:image/svg+xml;utf8,",iconLineDiagonal:"data:image/svg+xml;utf8,",iconLink:"data:image/svg+xml;utf8,",iconList:"data:image/svg+xml;utf8,",iconLiveSchedule:"data:image/svg+xml;utf8,",iconLocationFilled:"data:image/svg+xml;utf8,",iconLocationOutline:"data:image/svg+xml;utf8,",iconLocation:"data:image/svg+xml;utf8,",iconLockFilled:"data:image/svg+xml;utf8,",iconLockKeyFilled:"data:image/svg+xml;utf8,",iconLockKey:"data:image/svg+xml;utf8,",iconLock:"data:image/svg+xml;utf8,",iconLogIn:"data:image/svg+xml;utf8,",iconLogOut:"data:image/svg+xml;utf8,",iconLog:"data:image/svg+xml;utf8,",iconLogicDiagram:"data:image/svg+xml;utf8,",iconLowerLimit:"data:image/svg+xml;utf8,",iconMailFilled:"data:image/svg+xml;utf8,",iconMail:"data:image/svg+xml;utf8,",iconMaintenanceDocuments:"data:image/svg+xml;utf8,",iconMaintenanceInfo:"data:image/svg+xml;utf8,",iconMaintenanceWarningFilled:"data:image/svg+xml;utf8,",iconMaintenanceWarning:"data:image/svg+xml;utf8,",iconMaintenance:"data:image/svg+xml;utf8,",iconMandatoryDone:"data:image/svg+xml;utf8,",iconMandatory:"data:image/svg+xml;utf8,",iconMap:"data:image/svg+xml;utf8,",iconMaximize:"data:image/svg+xml;utf8,",iconMicrophoneFilled:"data:image/svg+xml;utf8,",iconMicrophone:"data:image/svg+xml;utf8,",iconMinimize:"data:image/svg+xml;utf8,",iconMinus:"data:image/svg+xml;utf8,",iconMissingSymbol:t,iconMix:"data:image/svg+xml;utf8,",iconMonitorFilled:"data:image/svg+xml;utf8,",iconMonitorTrend:"data:image/svg+xml;utf8,",iconMonitor:"data:image/svg+xml;utf8,",iconMonitoringAdd:"data:image/svg+xml;utf8,",iconMonitoring:"data:image/svg+xml;utf8,",iconMonitorings:"data:image/svg+xml;utf8,",iconMoonFilled:"data:image/svg+xml;utf8,",iconMoon:"data:image/svg+xml;utf8,",iconMoreMenu:"data:image/svg+xml;utf8,",iconMouseClickFilled:"data:image/svg+xml;utf8,",iconMouseClick:"data:image/svg+xml;utf8,",iconMouseSelectFilled:"data:image/svg+xml;utf8,",iconMouseSelect:"data:image/svg+xml;utf8,",iconMp4Document:"data:image/svg+xml;utf8,",iconNamurCheckFunctionFilled:"data:image/svg+xml;utf8,",iconNamurCheckFunction:"data:image/svg+xml;utf8,",iconNamurFailureFilled:"data:image/svg+xml;utf8,",iconNamurFailure:"data:image/svg+xml;utf8,",iconNamurMaintenanceRequiredFilled:"data:image/svg+xml;utf8,",iconNamurMaintenanceRequired:"data:image/svg+xml;utf8,",iconNamurOkFilled:"data:image/svg+xml;utf8,",iconNamurOk:"data:image/svg+xml;utf8,",iconNamurOutOfSpecFilled:"data:image/svg+xml;utf8,",iconNamurOutOfSpec:"data:image/svg+xml;utf8,",iconNavigationFilled:"data:image/svg+xml;utf8,",iconNavigationLeft:"data:image/svg+xml;utf8,",iconNavigationRight:"data:image/svg+xml;utf8,",iconNavigation:"data:image/svg+xml;utf8,",iconNewIndicatorFilled:"data:image/svg+xml;utf8,",iconNewIndicator:"data:image/svg+xml;utf8,",iconNoFilterFilled:"data:image/svg+xml;utf8,",iconNoFilter:"data:image/svg+xml;utf8,",iconNoImage:"data:image/svg+xml;utf8,",iconNoteFilled:"data:image/svg+xml;utf8,",iconNote:"data:image/svg+xml;utf8,",iconNotificationFilled:"data:image/svg+xml;utf8,",iconNotification:"data:image/svg+xml;utf8,",iconNotificationsFilled:"data:image/svg+xml;utf8,",iconNotifications:"data:image/svg+xml;utf8,",iconOntologyFilled:"data:image/svg+xml;utf8,",iconOntology:"data:image/svg+xml;utf8,",iconOpenExternal:"data:image/svg+xml;utf8,",iconOpenFileFilled:"data:image/svg+xml;utf8,",iconOpenFile:"data:image/svg+xml;utf8,",iconOperatePlantFilled:"data:image/svg+xml;utf8,",iconOperatePlant:"data:image/svg+xml;utf8,",iconOptimize:"data:image/svg+xml;utf8,",iconPAndISymbols:"data:image/svg+xml;utf8,",iconPIDiagram:"data:image/svg+xml;utf8,",iconPan:"data:image/svg+xml;utf8,",iconPaste:"data:image/svg+xml;utf8,",iconPause:"data:image/svg+xml;utf8,",iconPcTowerFilled:"data:image/svg+xml;utf8,",iconPcTower:"data:image/svg+xml;utf8,",iconPdfDocument:"data:image/svg+xml;utf8,",iconPenFilled:"data:image/svg+xml;utf8,",iconPen:"data:image/svg+xml;utf8,",iconPhoneFilled:"data:image/svg+xml;utf8,",iconPhone:"data:image/svg+xml;utf8,",iconPhotoCameraAdd:"data:image/svg+xml;utf8,",iconPhotoCameraCancelledFilled:"data:image/svg+xml;utf8,",iconPhotoCameraCancelled:"data:image/svg+xml;utf8,",iconPhotoCameraFilled:"data:image/svg+xml;utf8,",iconPhotoCamera:"data:image/svg+xml;utf8,",iconPhotoCameras:"data:image/svg+xml;utf8,",iconPiechartFilled:"data:image/svg+xml;utf8,",iconPiechart:"data:image/svg+xml;utf8,",iconPinFilled:"data:image/svg+xml;utf8,",iconPin:"data:image/svg+xml;utf8,",iconPlantFilled:"data:image/svg+xml;utf8,",iconPlantHandbookFilled:"data:image/svg+xml;utf8,",iconPlantHandbook:"data:image/svg+xml;utf8,",iconPlantOutline:"data:image/svg+xml;utf8,",iconPlantSecurity:"data:image/svg+xml;utf8,",iconPlantSettingsFilled:"data:image/svg+xml;utf8,",iconPlantSettings:"data:image/svg+xml;utf8,",iconPlantUserFilled:"data:image/svg+xml;utf8,",iconPlantUser:"data:image/svg+xml;utf8,",iconPlant:"data:image/svg+xml;utf8,",iconPlantsFilled:"data:image/svg+xml;utf8,",iconPlants:"data:image/svg+xml;utf8,",iconPlayFilled:"data:image/svg+xml;utf8,",iconPlayPauseFilled:"data:image/svg+xml;utf8,",iconPlayPause:"data:image/svg+xml;utf8,",iconPlayStepwiseFilled:"data:image/svg+xml;utf8,",iconPlayStepwise:"data:image/svg+xml;utf8,",iconPlay:"data:image/svg+xml;utf8,",iconPlusMinusTimesDivide:"data:image/svg+xml;utf8,",iconPlus:"data:image/svg+xml;utf8,",iconPointUpFilled:"data:image/svg+xml;utf8,",iconPointUp:"data:image/svg+xml;utf8,",iconPolarPlot:"data:image/svg+xml;utf8,",iconPolygonFilled:"data:image/svg+xml;utf8,",iconPolygonLine:"data:image/svg+xml;utf8,",iconPolygon:"data:image/svg+xml;utf8,",iconPptDocument:"data:image/svg+xml;utf8,",iconPrintFilled:"data:image/svg+xml;utf8,",iconPrint:"data:image/svg+xml;utf8,",iconPrioHigh:"data:image/svg+xml;utf8,",iconPrioLow:"data:image/svg+xml;utf8,",iconPrioMiddle:"data:image/svg+xml;utf8,",iconProductCatalog:"data:image/svg+xml;utf8,",iconProductManagement:"data:image/svg+xml;utf8,",iconProduct:"data:image/svg+xml;utf8,",iconProjectConfiguration:"data:image/svg+xml;utf8,",iconProjectNew:"data:image/svg+xml;utf8,",iconProjectScenarios:"data:image/svg+xml;utf8,",iconProjectServerFilled:"data:image/svg+xml;utf8,",iconProjectServer:"data:image/svg+xml;utf8,",iconProject:"data:image/svg+xml;utf8,",iconProtocol:"data:image/svg+xml;utf8,",iconPublishDocument:"data:image/svg+xml;utf8,",iconPublish:"data:image/svg+xml;utf8,",iconQrCode:"data:image/svg+xml;utf8,",iconQualityReport:"data:image/svg+xml;utf8,",iconQuestionFilled:"data:image/svg+xml;utf8,",iconQuestion:"data:image/svg+xml;utf8,",iconRadarchart:"data:image/svg+xml;utf8,",iconRadioWavesOff:"data:image/svg+xml;utf8,",iconRadioWavesWarning:"data:image/svg+xml;utf8,",iconRadioWaves:"data:image/svg+xml;utf8,",iconRandomFilled:"data:image/svg+xml;utf8,",iconRandom:"data:image/svg+xml;utf8,",iconReboot:"data:image/svg+xml;utf8,",iconRectangleFilled:"data:image/svg+xml;utf8,",iconRectangle:"data:image/svg+xml;utf8,",iconRedo:"data:image/svg+xml;utf8,",iconReference:"data:image/svg+xml;utf8,",iconRefreshCancelled:"data:image/svg+xml;utf8,",iconRefresh:"data:image/svg+xml;utf8,",iconReload:"data:image/svg+xml;utf8,",iconRemoveApplication:"data:image/svg+xml;utf8,",iconRemoveEyeFilled:"data:image/svg+xml;utf8,",iconRemoveEye:"data:image/svg+xml;utf8,",iconRename:"data:image/svg+xml;utf8,",iconReplace:"data:image/svg+xml;utf8,",iconReportBarchart:"data:image/svg+xml;utf8,",iconReportLinechart:"data:image/svg+xml;utf8,",iconReportText:"data:image/svg+xml;utf8,",iconReset:"data:image/svg+xml;utf8,",iconRestoreBackupFilled:"data:image/svg+xml;utf8,",iconRestoreBackupPc:"data:image/svg+xml;utf8,",iconRestoreBackup:"data:image/svg+xml;utf8,",iconRhombFilled:"data:image/svg+xml;utf8,",iconRhomb:"data:image/svg+xml;utf8,",iconRoadFilled:"data:image/svg+xml;utf8,",iconRoad:"data:image/svg+xml;utf8,",iconRocketFilled:"data:image/svg+xml;utf8,",iconRocket:"data:image/svg+xml;utf8,",iconRouteTarget:"data:image/svg+xml;utf8,",iconRoute:"data:image/svg+xml;utf8,",iconScatterplot:"data:image/svg+xml;utf8,",iconSchedulerFilled:"data:image/svg+xml;utf8,",iconScheduler:"data:image/svg+xml;utf8,",iconScreenFilled:"data:image/svg+xml;utf8,",iconScreen:"data:image/svg+xml;utf8,",iconScreenshotFilled:"data:image/svg+xml;utf8,",iconScreenshot:"data:image/svg+xml;utf8,",iconScriptAdd:"data:image/svg+xml;utf8,",iconScript:"data:image/svg+xml;utf8,",iconScripts:"data:image/svg+xml;utf8,",iconSearch:"data:image/svg+xml;utf8,",iconShareFilled:"data:image/svg+xml;utf8,",iconShare:"data:image/svg+xml;utf8,",iconShoppingCartFilled:"data:image/svg+xml;utf8,",iconShoppingCart:"data:image/svg+xml;utf8,",iconShoutFilled:"data:image/svg+xml;utf8,",iconShout:"data:image/svg+xml;utf8,",iconSignLanguage:"data:image/svg+xml;utf8,",iconSignalStrength0:"data:image/svg+xml;utf8,",iconSignalStrength1:"data:image/svg+xml;utf8,",iconSignalStrength2:"data:image/svg+xml;utf8,",iconSignalStrength3:"data:image/svg+xml;utf8,",iconSignalStrength4:"data:image/svg+xml;utf8,",iconSignalStrength5:"data:image/svg+xml;utf8,",iconSignalStrength6:"data:image/svg+xml;utf8,",iconSignalStrength7:"data:image/svg+xml;utf8,",iconSignalStrength8:"data:image/svg+xml;utf8,",iconSimitComponent:"data:image/svg+xml;utf8,",iconSimitMacroComponentEditor:"data:image/svg+xml;utf8,",iconSimitMacro:"data:image/svg+xml;utf8,",iconSingleCheck:"data:image/svg+xml;utf8,",iconSkipBackFilled:"data:image/svg+xml;utf8,",iconSkipBack:"data:image/svg+xml;utf8,",iconSkipFilled:"data:image/svg+xml;utf8,",iconSkip:"data:image/svg+xml;utf8,",iconSnowflake:"data:image/svg+xml;utf8,",iconSortAscending:"data:image/svg+xml;utf8,",iconSortDescending:"data:image/svg+xml;utf8,",iconSort:"data:image/svg+xml;utf8,",iconSoundLoudFilled:"data:image/svg+xml;utf8,",iconSoundLoud:"data:image/svg+xml;utf8,",iconSoundMuteFilled:"data:image/svg+xml;utf8,",iconSoundMute:"data:image/svg+xml;utf8,",iconSoundOffFilled:"data:image/svg+xml;utf8,",iconSoundOff:"data:image/svg+xml;utf8,",iconSoundQuietFilled:"data:image/svg+xml;utf8,",iconSoundQuiet:"data:image/svg+xml;utf8,",iconSpatial:"data:image/svg+xml;utf8,",iconSplitHorizontally:"data:image/svg+xml;utf8,",iconSplitVertically:"data:image/svg+xml;utf8,",iconStampFilled:"data:image/svg+xml;utf8,",iconStamp:"data:image/svg+xml;utf8,",iconStandby:"data:image/svg+xml;utf8,",iconStarAddFilled:"data:image/svg+xml;utf8,",iconStarAdd:"data:image/svg+xml;utf8,",iconStarCancelledFilled:"data:image/svg+xml;utf8,",iconStarCancelled:"data:image/svg+xml;utf8,",iconStarFilled:"data:image/svg+xml;utf8,",iconStarListFilled:"data:image/svg+xml;utf8,",iconStarList:"data:image/svg+xml;utf8,",iconStar:"data:image/svg+xml;utf8,",iconStartDataAnalysis:"data:image/svg+xml;utf8,",iconSteeringUserFilled:"data:image/svg+xml;utf8,",iconSteeringUser:"data:image/svg+xml;utf8,",iconSteering:"data:image/svg+xml;utf8,",iconStethoscope:"data:image/svg+xml;utf8,",iconStopFilled:"data:image/svg+xml;utf8,",iconStop:"data:image/svg+xml;utf8,",iconSuccessFilled:"data:image/svg+xml;utf8,",iconSuccess:"data:image/svg+xml;utf8,",iconSunFilled:"data:image/svg+xml;utf8,",iconSun:"data:image/svg+xml;utf8,",iconSupport:"data:image/svg+xml;utf8,",iconSurveillanceCancelledFilled:"data:image/svg+xml;utf8,",iconSurveillanceCancelled:"data:image/svg+xml;utf8,",iconSurveillanceFilled:"data:image/svg+xml;utf8,",iconSurveillance:"data:image/svg+xml;utf8,",iconSvgDocument:"data:image/svg+xml;utf8,",iconSwapLeftRight:"data:image/svg+xml;utf8,",iconSwitchSlider:"data:image/svg+xml;utf8,",iconTableColumns:"data:image/svg+xml;utf8,",iconTableRows:"data:image/svg+xml;utf8,",iconTableSettings:"data:image/svg+xml;utf8,",iconTable:"data:image/svg+xml;utf8,",iconTagFilled:"data:image/svg+xml;utf8,",iconTagPlusFilled:"data:image/svg+xml;utf8,",iconTagPlus:"data:image/svg+xml;utf8,",iconTag:"data:image/svg+xml;utf8,",iconTasksAll:"data:image/svg+xml;utf8,",iconTasksDone:"data:image/svg+xml;utf8,",iconTasksOpen:"data:image/svg+xml;utf8,",iconTextCircleRectangleFilled:"data:image/svg+xml;utf8,",iconTextCircleRectangle:"data:image/svg+xml;utf8,",iconTextDocument:"data:image/svg+xml;utf8,",iconText:"data:image/svg+xml;utf8,",iconThresholdCancelled:"data:image/svg+xml;utf8,",iconThresholdOff:"data:image/svg+xml;utf8,",iconThresholdOn:"data:image/svg+xml;utf8,",iconToBePublished:"data:image/svg+xml;utf8,",iconToSearch:"data:image/svg+xml;utf8,",iconTopicFilled:"data:image/svg+xml;utf8,",iconTopic:"data:image/svg+xml;utf8,",iconTouchFilled:"data:image/svg+xml;utf8,",iconTouch:"data:image/svg+xml;utf8,",iconTrashcanFilled:"data:image/svg+xml;utf8,",iconTrashcan:"data:image/svg+xml;utf8,",iconTree:"data:image/svg+xml;utf8,",iconTrendDownwardFilled:"data:image/svg+xml;utf8,",iconTrendDownward:"data:image/svg+xml;utf8,",iconTrendSidewaysFilled:"data:image/svg+xml;utf8,",iconTrendSideways:"data:image/svg+xml;utf8,",iconTrendUpwardFilled:"data:image/svg+xml;utf8,",iconTrendUpward:"data:image/svg+xml;utf8,",iconTrend:"data:image/svg+xml;utf8,",iconTriangleFilled:"data:image/svg+xml;utf8,",iconTriangle:"data:image/svg+xml;utf8,",iconTruckFilled:"data:image/svg+xml;utf8,",iconTruck:"data:image/svg+xml;utf8,",iconTulipFilled:"data:image/svg+xml;utf8,",iconTulip:"data:image/svg+xml;utf8,",iconTxtDocument:"data:image/svg+xml;utf8,",iconUndo:"data:image/svg+xml;utf8,",iconUngroup:"data:image/svg+xml;utf8,",iconUnlockFilled:"data:image/svg+xml;utf8,",iconUnlockPlantFilled:"data:image/svg+xml;utf8,",iconUnlockPlant:"data:image/svg+xml;utf8,",iconUnlock:"data:image/svg+xml;utf8,",iconUploadDocumentNote:"data:image/svg+xml;utf8,",iconUploadFail:"data:image/svg+xml;utf8,",iconUploadSuccess:"data:image/svg+xml;utf8,",iconUpload:"data:image/svg+xml;utf8,",iconUpperLimit:"data:image/svg+xml;utf8,",iconUserCheckFilled:"data:image/svg+xml;utf8,",iconUserCheck:"data:image/svg+xml;utf8,",iconUserFailFilled:"data:image/svg+xml;utf8,",iconUserFail:"data:image/svg+xml;utf8,",iconUserFilled:"data:image/svg+xml;utf8,",iconUserManagementFilled:"data:image/svg+xml;utf8,",iconUserManagement:"data:image/svg+xml;utf8,",iconUserProfileFilled:"data:image/svg+xml;utf8,",iconUserProfile:"data:image/svg+xml;utf8,",iconUserReadingReading:"data:image/svg+xml;utf8,",iconUserReading:"data:image/svg+xml;utf8,",iconUserSettingsFilled:"data:image/svg+xml;utf8,",iconUserSettings:"data:image/svg+xml;utf8,",iconUser:"data:image/svg+xml;utf8,",iconValidate:"data:image/svg+xml;utf8,",iconVdiFolder:"data:image/svg+xml;utf8,",iconVersionHistory:"data:image/svg+xml;utf8,",iconVideoFileFilled:"data:image/svg+xml;utf8,",iconVideoFile:"data:image/svg+xml;utf8,",iconWarningFilled:"data:image/svg+xml;utf8,",iconWarningRhombFilled:"data:image/svg+xml;utf8,",iconWarningRhomb:"data:image/svg+xml;utf8,",iconWarning:"data:image/svg+xml;utf8,",iconWaterBathing:"data:image/svg+xml;utf8,",iconWaterFish:"data:image/svg+xml;utf8,",iconWaterPlant:"data:image/svg+xml;utf8,",iconWaterSunbathing:"data:image/svg+xml;utf8,",iconWaveform:"data:image/svg+xml;utf8,",iconWebcamCancelledFilled:"data:image/svg+xml;utf8,",iconWebcamCancelled:"data:image/svg+xml;utf8,",iconWebcamFilled:"data:image/svg+xml;utf8,",iconWebcam:"data:image/svg+xml;utf8,",iconWlanOff:"data:image/svg+xml;utf8,",iconWlanStrength0:"data:image/svg+xml;utf8,",iconWlanStrength1:"data:image/svg+xml;utf8,",iconWlanStrength2:"data:image/svg+xml;utf8,",iconWlanStrength3:"data:image/svg+xml;utf8,",iconWorkCaseFilled:"data:image/svg+xml;utf8,",iconWorkCase:"data:image/svg+xml;utf8,",iconWorkspace:"data:image/svg+xml;utf8,",iconWorkspaces:"data:image/svg+xml;utf8,",iconXAxisSettings:"data:image/svg+xml;utf8,",iconXlsDocument:"data:image/svg+xml;utf8,",iconXmlDocument:"data:image/svg+xml;utf8,",iconYAxisSettings:"data:image/svg+xml;utf8,",iconYoutubeFilled:"data:image/svg+xml;utf8,",iconYoutube:"data:image/svg+xml;utf8,",iconZoomIn:"data:image/svg+xml;utf8,",iconZoomOut:"data:image/svg+xml;utf8,",iconZoomSelection:"data:image/svg+xml;utf8,"});let g=null;function l(e){if(void 0===window.DOMParser)return void console.warn("DOMParser not supported by your browser.");null===g&&(g=new window.DOMParser);const L=g.parseFromString(e,"text/html").querySelector("svg");if(!L)throw Error("No valid svg data provided");return L.outerHTML}const s=/^(?:(?:https?|ftp):\/\/)?(?:\S+(?::\S*)?@)?(?:www\.)?(?:\S+\.\S+)(?:\S*)$/i;const d=class{constructor(e){(0,n.r)(this,e),this.size=void 0,this.color=void 0,this.name=void 0,this.svgContent=void 0}connectedCallback(){this.loadIconContent()}async loadIconContent(){try{this.svgContent=await async function(e){const{name:L}=e;if(!L)throw Error("no icon name provided");if((i=L)&&"string"==typeof i&&i.startsWith("data:image/svg+xml"))return l(L);var i;if(function(e){return s.test(e)}(L))try{return await async function(e){const L=await fetch(e),i=await L.text();if(!L.ok)throw console.error(i),Error(i);return l(i)}(L)}catch(e){throw e}return async function(e){const L=await Promise.resolve().then((function(){return o}));let i=function(e){let L="",i=!0;e=(e=e.replace(/[\(\)\[\]\{\}\=\?\!\.\:,\-_\+\\\"#~\/]/g," ")).toLowerCase();for(let n=0;e.length>n;n++){let t=e.charAt(n);t.match(/^\s+$/g)||t.match(/[\(\)\[\]\{\}\\\/]/g)?i=!0:i&&(t=t.toUpperCase(),i=!1),L+=t}const n=L.replace(/\s+/g,"");return n.charAt(0).toUpperCase()+n.slice(1)}(e);return i=`icon${i}`,l(L[i])}(L)}(this)}catch(e){this.svgContent=l(t)}}render(){const e={};return this.color&&(e.color=`var(--theme-${this.color})`),(0,n.h)(n.H,{style:e,class:{"size-12":"12"===this.size,"size-16":"16"===this.size,"size-24":"24"===this.size,"size-32":"32"===this.size}},(0,n.h)("div",{class:"svg-container",innerHTML:this.svgContent}))}static get watchers(){return{name:["loadIconContent"]}}};d.style=":host{display:inline-flex;height:1.5rem;width:1.5rem;min-height:1.5rem;min-width:1.5rem;color:inherit}:host .svg-container{display:block;position:relative;width:100%;height:100%}:host .svg-container svg{display:block;position:relative;height:100%;width:100%}:host .svg-container svg,:host .svg-container svg[fill],:host .svg-container svg [fill]{fill:currentColor !important}:host(.size-12){height:0.75rem;width:0.75rem;min-height:0.75rem;min-width:0.75rem}:host(.size-16){height:1rem;width:1rem;min-height:1rem;min-width:1rem}:host(.size-32){height:2rem;width:2rem;min-height:2rem;min-width:2rem}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1394.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1394.index.bundle.js index ddca68c..73bdc92 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1394.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1394.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1394],{1394:(e,t,o)=>{o.r(t),o.d(t,{ix_content:()=>a});var r=o(6969),n=o(4428);const a=class{constructor(e){(0,r.r)(this,e),this.isContentHeaderSlotted=!1}get contentHeaderSlot(){return this.hostElement.shadowRoot.querySelector(".content-header slot")}render(){return(0,r.h)(r.H,{key:"85ecfecc47910592c3e5633e8f21ca6e2bf98b68"},(0,r.h)("div",{key:"5856277dbd6d05054a0c0083ae8ba9496e127cf5",class:{"content-header":!0,slotted:this.isContentHeaderSlotted}},(0,r.h)("slot",{key:"b5989ea440740b99deef634be6b30cb5b443d18b",name:"header",onSlotchange:()=>{this.isContentHeaderSlotted=(0,n.h)(this.contentHeaderSlot)}})),(0,r.h)("div",{key:"b4eea60b710cd2a2cf188c2125a91a33b4fca82f",class:"content"},(0,r.h)("slot",{key:"b739a3016884b29e41b1975b76121511c9f35f2a"})))}get hostElement(){return(0,r.g)(this)}};a.style=":host{display:flex;flex-direction:column;position:relative;padding:1.5rem 0rem 0.25rem 2rem;width:100%;height:100%;overflow:hidden}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .content{flex-grow:1;overflow:auto;padding-right:1.5rem}:host .content-header.slotted{margin-bottom:1rem;padding-right:1.5rem}"},4428:(e,t,o)=>{function r(e,t){return t?t.closest(e)||r(e,t.getRootNode().host):null}function n(e){return e.assignedElements({flatten:!0})}function a(e){return!!e&&0!==e.assignedElements({flatten:!0}).length}function s(e,t){return e?e instanceof ShadowRoot?s(e.host,t):e instanceof HTMLElement&&e.matches(t)?e:s(e.parentNode,t):null}o.d(t,{a:()=>s,c:()=>r,g:()=>n,h:()=>a})}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1422.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1422.index.bundle.js index 76df397..59dadef 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1422.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1422.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1422],{1422:(t,e,i)=>{i.r(e),i.d(e,{ix_content_header:()=>s});var a=i(6969);const s=class{constructor(t){(0,a.r)(this,t),this.backButtonClick=(0,a.c)(this,"backButtonClick",7),this.variant="primary",this.headerTitle=void 0,this.headerSubtitle=void 0,this.hasBackButton=!1}render(){return(0,a.h)(a.H,{key:"9376b89cd7ea2f1a169e0b2fce2e2a7aa8e5f46a"},this.hasBackButton?(0,a.h)("ix-icon-button",{class:"backButton",variant:"primary",icon:"arrow-left",ghost:!0,onClick:()=>this.backButtonClick.emit()}):null,(0,a.h)("div",{key:"6141d3d548f39bff6176fcefd6149fe044792626",class:"titleGroup"},(0,a.h)("ix-typography",{key:"5f97d37172b511b47b7c803beea7e99c15203757",variant:"secondary"===this.variant?"large-single":"h2"},this.headerTitle),void 0!==this.headerSubtitle?(0,a.h)("ix-typography",{variant:"caption",color:"soft",class:"subtitle"},this.headerSubtitle):null),(0,a.h)("div",{key:"38152287e955d5b149ac6c4bd5df99d4920ca587",class:"buttons"},(0,a.h)("slot",{key:"1d1bcc39278e91ff5da85460149ed76399ccbb1c"})))}};s.style=":host{display:flex;flex-direction:row;align-items:flex-start;padding:0px}:host .titleGroup{display:flex;flex-direction:column;flex:1 1 0%}:host .subtitle{margin-top:0.5rem}:host .backButton{margin-right:0.5rem}:host .buttons{flex:0 0 auto}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1606.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1606.index.bundle.js index 1c6155b..658257a 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1606.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1606.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1606],{1606:(t,e,o)=>{o.r(e),o.d(e,{ix_flip_tile:()=>r});var i=o(6969),n=o(8396),s=o(6200);const r=class{constructor(t){(0,i.r)(this,t),this.ANIMATION_DURATION=150,this.state=void 0,this.height=15.125,this.width=16,this.index=0,this.isFlipAnimationActive=void 0}componentDidLoad(){this.observer=(0,n.c)((()=>this.updateContentItems())),this.observer.observe(this.hostElement,{childList:!0})}componentWillLoad(){this.updateContentItems(),this.updateContentVisibility(this.index)}disconnectedCallback(){this.observer&&this.observer.disconnect()}updateContentItems(){this.contentItems=Array.from(this.hostElement.querySelectorAll("ix-flip-tile-content"))}updateContentVisibility(t){this.contentItems.forEach(((e,o)=>e.contentVisible=o===t))}toggleIndex(){this.doFlipAnimation()}doFlipAnimation(){this.isFlipAnimationActive=!0,setTimeout((()=>{this.updateContentVisibility(this.index),this.index>=this.contentItems.length-1?this.index=0:this.index++,this.updateContentVisibility(this.index)}),this.ANIMATION_DURATION),setTimeout((()=>{this.isFlipAnimationActive=!1}),2*this.ANIMATION_DURATION)}render(){return(0,i.h)(i.H,{key:"f48c8fa439a5b38b06fbda02e4185aa4195dcba5",style:{height:`${this.height}${"auto"===this.height?"":"rem"}`,"min-height":`${this.height}${"auto"===this.height?"":"rem"}`,"max-height":`${this.height}${"auto"===this.height?"":"rem"}`,width:`${this.width}${"auto"===this.width?"":"rem"}`,"min-width":`${this.width}${"auto"===this.width?"":"rem"}`,"max-width":`${this.width}${"auto"===this.width?"":"rem"}`}},(0,i.h)("div",{key:"fc676886cdf565c7cc121640b37c579eb1ea2f64",class:{"flip-tile-container":!0,info:this.state===s.F.Info,warning:this.state===s.F.Warning,alarm:this.state===s.F.Alarm,primary:this.state===s.F.Primary,"flip-animation-active":this.isFlipAnimationActive}},(0,i.h)("div",{key:"036a5f9b336796232c649a0c1718601ccd5c46b5",class:"flip-tile-header"},(0,i.h)("div",{key:"3eb347f451cf27f614f855eee99f8562fc4aa785",class:"header-slot-container text-l-title"},(0,i.h)("slot",{key:"563785f622191f0692f3790f3a908125e30e7276",name:"header"})),(0,i.h)("ix-icon-button",{key:"9a52873d2890f187d3a2c940688bbd000e676233",icon:"eye",variant:"primary",ghost:!0,onClick:()=>this.toggleIndex()})),(0,i.h)("div",{key:"0efc4537aa97d3b79459141678dc180a140bd658",class:"content-container"},(0,i.h)("slot",{key:"1c7035e6e29731a2f192a37f1d86985c3c219220"})),(0,i.h)("div",{key:"2d1f20e35490d7f87b1d70cb9783268c5f1dc270",class:{footer:!0,"contrast-light":this.state===s.F.Warning,"contrast-dark":this.state===s.F.Info||this.state===s.F.Alarm}},(0,i.h)("slot",{key:"074e8bcae63f134dab5623df0682c754e3212159",name:"footer"}))))}get hostElement(){return(0,i.g)(this)}};r.style=".text-xs{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.625rem;font-weight:400;line-height:1.4em;color:var(--theme-color-std-text)}.text-s{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-caption-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.75rem;font-weight:700;line-height:1em;color:var(--theme-color-std-text)}.text-default{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:400;line-height:1.143em;color:var(--theme-color-std-text)}.text-default-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.429em;color:var(--theme-color-std-text)}.text-default-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:0.875rem;font-weight:700;line-height:1.143em;color:var(--theme-color-std-text)}.text-l{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:400;line-height:1.25em;color:var(--theme-color-std-text)}.text-l-title{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.5em;color:var(--theme-color-std-text)}.text-l-title-single{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1rem;font-weight:700;line-height:1.25em;color:var(--theme-color-std-text)}.text-h2{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:700;line-height:1.455em;color:var(--theme-color-std-text)}.text-xl{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text)}a{color:var(--theme-color-primary)}@keyframes flip-animation{0%{transform:rotateY(0)}50%{transform:rotateY(90deg)}51%{transform:rotateY(270deg)}100%{transform:rotateY(360deg)}}:host{display:flex;flex-direction:column;perspective:1000px}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .flip-tile-header{display:flex;align-items:center;height:2.5rem;padding:0 0.5rem 0 1rem}:host .flip-tile-header .header-slot-container{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-grow:1;min-width:0}:host .content-container{flex-grow:1;margin:1rem}:host .flip-tile-container{display:flex;flex-direction:column;height:100%;background-color:var(--theme-blind-base--background);border:solid 1px var(--theme-blind-base--border-color);border-radius:var(--theme-flip-tile--border-radius) var(--theme-flip-tile--border-radius) 0 0;transform-style:preserve-3d}:host .flip-tile-container.flip-animation-active{animation:flip-animation 300ms, ease-in-out}:host .flip-tile-container .footer{display:flex;height:3rem;align-items:center;justify-content:center;padding:0 0.5rem;color:var(--theme-flip-footer--color);background-color:var(--theme-blind-base--background)}:host .flip-tile-container .footer :first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;height:100%}:host .flip-tile-container ::slotted(*){overflow:hidden;text-overflow:ellipsis;white-space:nowrap;display:flex;flex-direction:column;align-items:center;min-width:0}:host .flip-tile-container.primary{border-color:var(--theme-color-primary)}:host .flip-tile-container.primary .footer{background-color:var(--theme-color-primary);color:var(--theme-color-primary--contrast)}:host .flip-tile-container.info{border-color:var(--theme-color-info)}:host .flip-tile-container.info .footer{background-color:var(--theme-color-info);color:var(--theme-color-info--contrast)}:host .flip-tile-container.warning{border-color:var(--theme-color-warning)}:host .flip-tile-container.warning .footer{background-color:var(--theme-color-warning);color:var(--theme-color-warning--contrast)}:host .flip-tile-container.alarm{border-color:var(--theme-color-alarm)}:host .flip-tile-container.alarm .footer{background-color:var(--theme-color-alarm);color:var(--theme-color-alarm--contrast)}:host:hover .flip-tile-container .footer ix-icon{color:var(--theme-color-std-text)}"},8396:(t,e,o)=>{o.d(e,{c:()=>i});const i=t=>new MutationObserver(t)}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1646.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1646.index.bundle.js index 645f237..79a84a1 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1646.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1646.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1646],{2976:(e,o,r)=>{r.d(o,{a:()=>t,b:()=>i,g:()=>n});const t=e=>e?"true":"false",n=e=>{if(!e)return"Unknown";if((e=>{if(!e)return!1;let o;try{o=new URL(e)}catch(e){return!1}return"http:"===o.protocol||"https:"===o.protocol})(e))return"Unknown";if((o=e)&&"string"==typeof o&&o.startsWith("data:image/svg+xml"))return"Unknown";var o;const r=e.replace("-filled","").split("-").map((e=>{const o=e.trim(),r=o.replace(/\d+/g,"");return 0===r.length?o:r})).map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ");return 0===r.length?"Unknown":r},i=(e,o=[])=>{const r={};return a.forEach((t=>{e.hasAttribute(t)&&(null===e.getAttribute(t)||o.includes(t)||(r[t]=e.getAttribute(t),e.removeAttribute(t)))})),r},a=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"]},4081:(e,o,r)=>{r.d(o,{B:()=>l,g:()=>a});var t=r(6969);const n=e=>e.toUpperCase()==="Primary".toUpperCase(),i=e=>e.toUpperCase()==="Secondary".toUpperCase(),a=(e,o,r,t=!1,a=!1,l,c)=>({btn:!0,"btn-primary":n(e)&&!o&&!r,"btn-outline-primary":n(e)&&o&&!r,"btn-invisible-primary":n(e)&&!o&&r,"btn-secondary":i(e)&&!o&&!r,"btn-outline-secondary":i(e)&&o&&!r,"btn-invisible-secondary":i(e)&&!o&&r,"btn-icon":t,"btn-oval":a,selected:l,disabled:c});function l(e,o){var r,n;const i=null!==(r=e.extraClasses)&&void 0!==r?r:{};return(0,t.h)("button",Object.assign({},e.ariaAttributes,{onClick:o=>e.onClick?e.onClick(o):void 0,tabindex:e.disabled?-1:null!==(n=e.tabIndex)&&void 0!==n?n:0,type:e.type,class:Object.assign(Object.assign({},a(e.variant,e.outline,e.ghost,e.iconOnly,e.iconOval,e.selected,e.disabled||e.loading)),i)}),e.loading?(0,t.h)("ix-spinner",{size:"small",hideTrack:!0}):null,e.icon&&!e.loading?(0,t.h)("ix-icon",{class:"icon",name:e.icon,size:e.iconSize,color:e.iconColor}):null,(0,t.h)("div",{class:{content:!0,[`content-${e.alignment}`]:!!e.alignment}},o),e.afterContent?e.afterContent:null)}},1646:(e,o,r)=>{r.r(o),r.d(o,{ix_toggle_button:()=>a});var t=r(6969),n=r(4081),i=r(2976);const a=class{constructor(e){(0,t.r)(this,e),this.pressedChange=(0,t.c)(this,"pressedChange",7),this.variant="secondary",this.outline=!1,this.ghost=!1,this.disabled=!1,this.loading=!1,this.icon=void 0,this.pressed=!1}isIllegalToggleButtonConfig(){return"primary"===this.variant&&(this.outline||this.ghost)}logIllegalConfig(){console.warn('iX toggle button with illegal configuration detected. Variant "primary" can only be combined with "outline" or "ghost".')}onVariantChange(){this.isIllegalToggleButtonConfig()&&this.logIllegalConfig()}onGhostChange(){this.onVariantChange()}onOutlineChange(){this.onVariantChange()}componentDidLoad(){this.onVariantChange()}dispatchPressedChange(){this.pressedChange.emit(!this.pressed)}render(){const e={variant:this.variant,outline:this.outline,ghost:this.ghost,iconOnly:!1,iconOval:!1,selected:this.pressed,disabled:this.disabled||this.loading,icon:this.icon,loading:this.loading,onClick:()=>this.dispatchPressedChange(),type:"button",ariaAttributes:{"aria-pressed":(0,i.a)(this.pressed)}};return(0,t.h)(t.H,{key:"dfcef75c0ea69b53af7afc1df02915a869b6ef3b",class:{disabled:this.disabled||this.loading}},(0,t.h)(n.B,Object.assign({key:"ea0fbe743f0c3371fb71925be47fc566e5dee37d"},e),(0,t.h)("slot",{key:"2e6d2c6169978fc567974220437f2a7aa05c62ac"})))}static get watchers(){return{variant:["onVariantChange"],ghost:["onGhostChange"],outline:["onOutlineChange"]}}};a.style=".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:150ms;padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-block;width:auto;height:2rem;vertical-align:middle}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .btn{width:100%;height:100%}:host button:not(:disabled){cursor:pointer}:host(.disabled){pointer-events:none}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1719.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1719.index.bundle.js index 39b4a4d..a38eedc 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1719.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1719.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1719],{1719:(e,n,s)=>{s.r(n),s.d(n,{ix_dropdown_quick_actions:()=>r});var t=s(6969);const r=class{constructor(e){(0,t.r)(this,e)}render(){return(0,t.h)(t.H,{key:"4276b052d998fa436597a67bc7df4b5f4dac79e7"},(0,t.h)("slot",{key:"fe99c816c933c10d45fdb93acfadf23938ffa1ae"}))}};r.style=":host{display:flex;justify-content:center;align-items:center;margin-inline-start:1.5rem;margin-inline-end:1.5rem;margin-block-end:0.25rem}:host slot::slotted(*){display:flex;margin-inline-end:0.625rem}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1754.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1754.index.bundle.js index 68e638a..10a5341 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1754.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1754.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1754],{1754:(r,a,o)=>{o.r(a),o.d(a,{ix_card:()=>c,ix_card_content:()=>t});var e=o(6969);const c=class{constructor(r){(0,e.r)(this,r),this.variant="insight",this.selected=void 0}render(){return(0,e.h)(e.H,{key:"f91df8c114ec01e95ae0eba29c8acf3cacbdec25",class:{selected:this.selected,[`card-${this.variant}`]:!0}},(0,e.h)("div",{key:"24c775b7ae7b2940df9e101b702b91a17a0f6749",class:"card-content"},(0,e.h)("slot",{key:"57bfc8eb49985aae6aff8ea277475b2012ac8ba2"})),(0,e.h)("div",{key:"8eac7eefd8020827e0ebf38be231de2c7b934797",class:"card-footer"},(0,e.h)("slot",{key:"207dc0b0ce6279ecb9dfda76e3d03a145a5ff168",name:"card-accordion"})))}get hostElement(){return(0,e.g)(this)}};c.style=":host{display:flex;position:relative;flex-direction:column;align-items:flex-start;align-self:flex-start;overflow:hidden;width:20rem;border:1px solid var(--ix-card-border-color, var(--theme-color-soft-bdr));border-radius:var(--theme-default-border-radius)}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .card-content{display:block;position:relative;flex-shrink:0;flex-grow:1;width:100%;height:calc(100% - 2rem);background-color:var(--ix-card-background, transparent);border-top-left-radius:var(--theme-default-border-radius);border-top-right-radius:var(--theme-default-border-radius)}:host .card-footer{display:flex;position:relative;width:100%}:host(.card-insight){--ix-card-background:transparent;--ix-card-border-color:var(--theme-color-soft-bdr)}:host(.card-notification){--ix-card-background:var(--theme-color-component-1)}:host(.card-alarm){--ix-card-background:var(--theme-color-alarm);color:var(--theme-color-alarm--contrast)}:host(.card-critical){--ix-card-background:var(--theme-color-critical);color:var(--theme-color-critical--contrast)}:host(.card-warning){--ix-card-background:var(--theme-color-warning);color:var(--theme-color-warning--contrast)}:host(.card-success){--ix-card-background:var(--theme-color-success);color:var(--theme-color-success--contrast)}:host(.card-info){--ix-card-background:var(--theme-color-info);color:var(--theme-color-info--contrast)}:host(.card-neutral){--ix-card-background:var(--theme-color-neutral);color:var(--theme-color-neutral--contrast)}:host(.card-primary){--ix-card-background:var(--theme-color-primary);color:var(--theme-color-neutral--contrast)}:host(:not(.card-insight)){--ix-card-border-color:transparent}:host(.card-insight:hover){--ix-card-background:var(--theme-color-ghost--hover)}:host(.card-notification:hover){--ix-card-background:var(--theme-color-component-1--hover)}:host(.card-alarm:hover){--ix-card-background:var(--theme-color-alarm--hover)}:host(.card-critical:hover){--ix-card-background:var(--theme-color-critical--hover)}:host(.card-warning:hover){--ix-card-background:var(--theme-color-warning--hover)}:host(.card-success:hover){--ix-card-background:var(--theme-color-success--hover)}:host(.card-info:hover){--ix-card-background:var(--theme-color-info--hover)}:host(.card-neutral:hover){--ix-card-background:var(--theme-color-neutral--hover)}:host(.card-primary:hover){--ix-card-background:var(--theme-color-primary--hover)}:host(.card-insight:active){--ix-card-background:var(--theme-color-ghost--active)}:host(.card-notification:active){--ix-card-background:var(--theme-color-component-1--active)}:host(.card-alarm:active){--ix-card-background:var(--theme-color-alarm--active)}:host(.card-critical:active){--ix-card-background:var(--theme-color-critical--active)}:host(.card-warning:active){--ix-card-background:var(--theme-color-warning--active)}:host(.card-success:active){--ix-card-background:var(--theme-color-success--active)}:host(.card-info:active){--ix-card-background:var(--theme-color-info--active)}:host(.card-neutral:active){--ix-card-background:var(--theme-color-neutral--active)}:host(.card-primary:active){--ix-card-background:var(--theme-color-primary--active)}:host(.selected){--ix-card-border-color:var(--theme-color-dynamic)}:host(.selected).card-insight{--ix-card-background:var(--theme-color-ghost--selected)}:host(.selected).card-notification{--ix-card-background:var(--theme-color-ghost--selected)}:host(.selected).card-alarm{--ix-card-background:var(--theme-color-alarm--active)}:host(.selected).card-critical{--ix-card-background:var(--theme-color-critical--active)}:host(.selected).card-warning{--ix-card-background:var(--theme-color-warning--active)}:host(.selected).card-success{--ix-card-background:var(--theme-color-success--active)}:host(.selected).card-info{--ix-card-background:var(--theme-color-info--active)}:host(.selected).card-neutral{--ix-card-background:var(--theme-color-neutral--active)}:host(.selected).card-primary{--ix-card-background:var(--theme-color-primary--active)}";const t=class{constructor(r){(0,e.r)(this,r)}render(){return(0,e.h)(e.H,{key:"7351d9d0c2ac7e3bb3ff04f7327876f3c118eede"},(0,e.h)("slot",{key:"ae6747bb0d3204fcb78bb26d763a04a090424fc5"}))}};t.style=":host{display:flex;position:relative;flex-direction:column;align-items:flex-start;gap:0.5rem;padding:1rem;height:100%}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1791.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1791.index.bundle.js index bbc55ab..3ae0398 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1791.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1791.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1791],{1791:(e,t,i)=>{i.r(t),i.d(t,{ix_split_button_item:()=>s});var n=i(6969),r=i(1508);const s=class{constructor(e){(0,n.r)(this,e),this.itemClick=(0,n.c)(this,"itemClick",7),this.wrapperRef=(0,r.m)(),this.icon=void 0,this.label=void 0}async getDropdownItemElement(){return this.wrapperRef.waitForCurrent()}render(){return(0,n.h)(n.H,{key:"2857acae0de3f6e738276080924f3e1b937546c6"},(0,n.h)("ix-dropdown-item",{key:"ca37a4f42b3a673bb80890e43229711a45b378b9",ref:this.wrapperRef,suppressChecked:!0,icon:this.icon,label:this.label,onItemClick:e=>{e.preventDefault(),e.stopPropagation()},onClick:e=>this.itemClick.emit(e)}))}get hostElement(){return(0,n.g)(this)}};s.style=":host{display:contents}"},1508:(e,t,i)=>{function n(e){let t=null,i=new Promise((e=>t=e)),n=null;const r=i=>{n=i,null==e||e(i),t()};return r.current=n,r.waitForCurrent=async()=>(await i,n),r}i.d(t,{m:()=>n})}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1952.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1952.index.bundle.js index 7f46503..cb9706f 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1952.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1952.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1952],{3879:(e,t,s)=>{s.d(t,{A:()=>h,a:()=>a,c:()=>r,u:()=>n});var o=s(2483);class i extends Event{constructor(e,t,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.callback=t,this.subscribe=s}}function a(e,t,s,o){let a;return e.dispatchEvent(new i(t,((e,t)=>{s(e,t),a=t}),o)),{unsubscribe:()=>{a()}}}function n(e,t,s){const i=new o.T,a=new o.T,n=new Set;return e.addEventListener("context-request",(e=>{(null==e?void 0:e.context.name)===t.name&&(e.stopPropagation(),e.subscribe&&n.add(e),i.emit(e),s&&e.callback(s,(()=>{n.delete(e)})))})),a.on((e=>{n.forEach((t=>t.callback(e,(()=>{n.delete(t)}))))})),{emit:e=>{a.emit(e)}}}const r=e=>e.closest("ix-menu"),h={name:"application-layout-context",initialValue:{hideHeader:!1,host:null,sidebar:!1}}},7027:(e,t,s)=>{s.r(t),s.d(t,{ix_menu_category:()=>r});var o=s(6969),i=s(8137),a=s(3879),n=s(8396);const r=class{constructor(e){(0,o.r)(this,e),this.label=void 0,this.icon=void 0,this.notifications=void 0,this.menuExpand=!1,this.showItems=!1,this.showDropdown=!1,this.nestedItems=[]}isNestedItemActive(){return this.getNestedItems().some((e=>e.active))}getNestedItems(){return Array.from(this.hostElement.querySelectorAll(":scope ix-menu-item"))}getNestedItemsHeight(){return 40*this.getNestedItems().length}onExpandCategory(e){e?this.animateFadeIn():this.animateFadeOut()}animateFadeOut(){(0,i.a)({targets:this.menuItemsContainer,duration:150,easing:"easeInSine",opacity:[1,0],maxHeight:[this.getNestedItemsHeight()+40,0],complete:()=>{setTimeout((()=>{this.showItems=!1,this.showDropdown=!1}),175)}})}animateFadeIn(){(0,i.a)({targets:this.menuItemsContainer,duration:150,easing:"easeInSine",opacity:[0,1],maxHeight:[0,this.getNestedItemsHeight()+40],begin:()=>{this.showItems=!0,this.showDropdown=!1}})}onCategoryClicked(e){if(this.ixMenu.expand)return null==e||e.stopPropagation(),void this.onExpandCategory(!this.showItems);this.showDropdown=!this.showDropdown}onNestedItemsChanged(){this.nestedItems=this.getNestedItems()}isCategoryItemListVisible(){return this.menuExpand&&(this.showItems||this.isNestedItemActive())}componentWillLoad(){const e=(0,a.c)(this.hostElement);if(!e)throw Error("ix-menu-category can only be used as a child of ix-menu");this.ixMenu=e,this.menuExpand=this.ixMenu.expand,this.showItems=this.isCategoryItemListVisible()}componentDidLoad(){this.observer=(0,n.c)((()=>this.onNestedItemsChanged())),this.observer.observe(this.hostElement,{attributes:!0,childList:!0,subtree:!0}),requestAnimationFrame((()=>{this.onNestedItemsChanged()})),this.ixMenu.addEventListener("expandChange",(({detail:e})=>{this.menuExpand=e,e||this.clearMenuItemStyles(),this.showItems=this.isCategoryItemListVisible()}))}clearMenuItemStyles(){this.menuItemsContainer.style.removeProperty("max-height"),this.menuItemsContainer.style.removeProperty("opacity")}disconnectedCallback(){this.observer&&this.observer.disconnect()}render(){return(0,o.h)(o.H,{key:"7dcf0a3ab61e12650f3236d2d01905088dd46476",class:{expanded:this.showItems}},(0,o.h)("ix-menu-item",{key:"d7525b4d1577beddef2a9bc46102c5c27056f7a8",class:"category-parent",active:this.isNestedItemActive(),notifications:this.notifications,icon:this.icon,onClick:e=>this.onCategoryClicked(e)},(0,o.h)("div",{key:"45f42d78aea804389d18b71aa497d595d0d28d2f",class:"category"},(0,o.h)("div",{key:"328e734eff35051e741d5f300cef62d89b2d8357",class:"category-text"},this.label),(0,o.h)("ix-icon",{key:"a020ca032255c4e0cab6eaf21a999f778d44f89e",name:"chevron-down-small",class:{"category-chevron":!0,"category-chevron--open":this.showItems}}))),(0,o.h)("div",{key:"cb9f873594624636c51f5cdb88117c8609ca0660",ref:e=>this.menuItemsContainer=e,class:{"menu-items":!0,"menu-items--expanded":this.showItems,"menu-items--collapsed":!this.showItems}},this.showItems?(0,o.h)("slot",null):null),(0,o.h)("ix-dropdown",{key:"44e23c289ee58d8e6a64c4eae043b5d21e7acccf",closeBehavior:"both",show:this.showDropdown,onShowChanged:({detail:e})=>{this.showDropdown=e},class:"category-dropdown",anchor:this.hostElement,placement:"right-start",offset:{mainAxis:3},onClick:e=>{e.target instanceof HTMLElement&&"IX-MENU-ITEM"===e.target.tagName&&(this.showDropdown=!1)}},(0,o.h)("ix-dropdown-item",{key:"a991462ed69a30c6c9d8535d88a0642203663c9a",class:"category-dropdown-header"},(0,o.h)("ix-typography",{key:"a9947afa5cfb6c9415a3eae5c0daf762fd91843a",variant:"default-title-single",color:"std"},this.label)),(0,o.h)("ix-divider",{key:"2ff0ae7813b7ff6a32e0b6aae13b2bb3dca95d77"}),(0,o.h)("slot",{key:"4c9f7e1cac69cbd8e0c305eb9f60ea9a64e69b0d"})))}get hostElement(){return(0,o.g)(this)}};r.style=":host{display:flex;flex-direction:column;position:relative}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host .category{display:flex;position:relative;align-items:center;width:100%;height:100%}:host .category-text{width:100%;padding-right:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .category-chevron{margin-left:auto;margin-right:0;transition:var(--theme-default-time) transform ease-in-out}:host .category-chevron--open{transform:rotate(-180deg)}:host .menu-items{overflow:hidden;max-height:0;transition:var(--theme-default-time) max-height ease-in-out}:host .menu-items--expanded{max-height:999999999px;padding:0.25rem 0 0.25rem 1.625rem}:host .menu-items--collapsed{display:none}:host .category-dropdown ::slotted(ix-menu-item){--ix-menu-item-height:2.5rem}:host .category-dropdown-header{pointer-events:none;padding-left:0.125rem;min-width:256px}:host ::slotted(ix-menu-item){--ix-menu-item-height:2.5rem}:host(.expanded){background-color:var(--theme-color-ghost--active)}:host ::slotted(a[href]){text-decoration:none !important}"},8396:(e,t,s)=>{s.d(t,{c:()=>o});const o=e=>new MutationObserver(e)}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1985.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1985.index.bundle.js index 084d544..1da4b7f 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1985.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1985.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1985],{1985:(e,t,i)=>{i.r(t),i.d(t,{ix_kpi:()=>a});var o=i(6969);const a=class{constructor(e){(0,o.r)(this,e),this.label=void 0,this.value=void 0,this.unit=void 0,this.state="neutral",this.orientation="horizontal"}getStateIcon(){switch(this.state){case"alarm":return(0,o.h)("ix-icon",{color:"kpi-display-icon--color",name:"alarm",size:"16"});case"warning":return(0,o.h)("ix-icon",{color:"kpi-display-icon--color",name:"warning",size:"16"});default:return""}}getTooltipText(){let e=`${this.label}: ${this.value}`;return this.unit&&(e=e.concat(` ${this.unit}`)),e}render(){return(0,o.h)(o.H,{key:"dfc10eb1b32999417bfcfe2b13318733468c2b8d",title:this.getTooltipText(),tabindex:"1",class:{stacked:"vertical"===this.orientation}},(0,o.h)("div",{key:"42ae8899123702f27d437b1002d19ecca635c827",class:{"kpi-container":!0,alarm:"alarm"===this.state,warning:"warning"===this.state}},(0,o.h)("span",{key:"97fd8b58beb66d4071a0a00247d73909bb15ac9c",class:"kpi-label"},this.getStateIcon(),(0,o.h)("span",{key:"c94f2356c26f267f42427b8dd854dd50a5aaa075",class:"kpi-label-text"},this.label)),(0,o.h)("span",{key:"dd33de51b6d73d1fd53715bcfa0b90d4b09fa0e0",class:"kpi-value-container"},(0,o.h)("span",{key:"b6172821e5cec47954289a183f37284f9c9c4032",class:"kpi-value"},this.value),this.unit?(0,o.h)("span",{class:"kpi-unit"},this.unit):"")))}};a.style=":host{display:flex;flex-grow:1;height:2.5rem;border-radius:var(--theme-kpi--border-radius);padding:0.375rem 0.25rem;min-width:0}:host *,:host *::after,:host *::before{box-sizing:border-box}:host ::-webkit-scrollbar-button{display:none}:host ::-webkit-scrollbar{width:0.5rem;height:0.5rem}:host ::-webkit-scrollbar-track{border-radius:5px;background:var(--theme-scrollbar-track--background)}:host ::-webkit-scrollbar-track:hover{background:var(--theme-scrollbar-track--background--hover)}:host ::-webkit-scrollbar-thumb{border-radius:5px;background:var(--theme-scrollbar-thumb--background)}:host ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb--background--hover)}:host ::-webkit-scrollbar-corner{display:none}:host span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host .kpi-container{display:flex;height:100%;width:100%;border-block-end:2px solid grey}:host .kpi-container.alarm{border-block-end-color:var(--theme-color-alarm)}:host .kpi-container.warning{border-block-end-color:var(--theme-color-warning)}:host .kpi-container .kpi-label{display:flex;align-items:center;color:var(--theme-kpi-display-label--color);flex-grow:1;flex-shrink:9999}:host .kpi-container .kpi-label ix-icon{margin-inline-end:0.25rem}:host .kpi-container .kpi-value-container{display:flex;align-items:flex-end}:host .kpi-container .kpi-value{-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-family:Siemens Sans, sans-serif;font-size:1.375rem;font-weight:400;line-height:1.091em;color:var(--theme-color-std-text);color:var(--theme-kpi-display-value--color)}:host .kpi-container .kpi-unit{margin-inline-start:0.5rem;color:var(--theme-kpi-display-units--color)}:host .kpi-container .kpi-label,:host .kpi-container .kpi-unit{margin-block-start:0.125rem}:host:not(.disabled):not(:disabled){cursor:pointer}:host:not(.disabled):not(:disabled):hover{background-color:var(--theme-kpi-display--background--hover)}:host:not(.disabled):not(:disabled){cursor:pointer}:host:not(.disabled):not(:disabled):active,:host:not(.disabled):not(:disabled).active{background-color:var(--theme-kpi-display--background--active)}:host:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--focus--border-color)}:host(.stacked){height:3.75rem}:host(.stacked) .kpi-container{justify-content:center;flex-wrap:wrap}:host(.stacked) .kpi-container .kpi-label{width:100%;justify-content:center}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/1993.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/1993.index.bundle.js index 5f111c6..d53af2d 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/1993.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/1993.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - "use strict";(self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[1993],{1993:(e,o,r)=>{r.r(o),r.d(o,{ix_link_button:()=>n});var t=r(6969);const n=class{constructor(e){(0,t.r)(this,e),this.disabled=!1,this.url=void 0,this.target="_self"}render(){return(0,t.h)(t.H,{key:"69b094c49b4c40844709067d3d330cbd9e439a54"},(0,t.h)("a",{key:"d480bd3a4956928b36cacb1737b9f15bef4e6db4",title:this.url,tabindex:"0",class:{"link-button":!0,disabled:this.disabled},href:this.disabled?void 0:this.url,target:this.target},(0,t.h)("ix-icon",{key:"f38cdc216ef27ad121605adf41d4b9dfee0ad21c",class:"icon",name:"chevron-right-small",size:"16"}),(0,t.h)("div",{key:"bd9aecd23fbffe8af71f3c9648552781ac350df2",class:{link:!0,disabled:this.disabled}},(0,t.h)("slot",{key:"a122841a7a121b168198300e574df0f4319fd040"}))))}};n.style=".btn{display:inline-flex;align-items:center;justify-content:center;height:2rem;font-size:0.875rem;font-weight:700;transition:150ms;padding:0 0.5rem;min-width:5rem;gap:0.25rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.btn .glyph{margin-right:0.25rem;font-weight:400}.btn:focus-visible,.btn.focus{box-shadow:none}.btn-primary{border-radius:var(--theme-btn--border-radius)}.btn-primary,.btn-primary.focus,.btn-primary:focus-visible{background-color:var(--theme-btn-primary--background);color:var(--theme-btn-primary--color);--ix-button-color:var(--theme-btn-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-primary--border-color);border-style:solid}.btn-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-primary.hover,.btn-primary:hover{border-color:var(--theme-btn-primary--border-color--hover);background-color:var(--theme-btn-primary--background--hover);color:var(--theme-btn-primary--color--hover)}.btn-primary.selected.hover,.btn-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{border-color:var(--theme-btn-primary--border-color--active);background-color:var(--theme-btn-primary--background--active);color:var(--theme-btn-primary--color--active)}.btn-primary.selected:not(:disabled):not(.disabled):active,.btn-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-primary.disabled,.btn-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-primary--border-color--disabled);background-color:var(--theme-btn-primary--background--disabled);color:var(--theme-btn-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-primary--color--disabled)}.btn-outline-primary{border-radius:var(--theme-btn--border-radius)}.btn-outline-primary,.btn-outline-primary.focus,.btn-outline-primary:focus-visible{background-color:var(--theme-btn-outline-primary--background);color:var(--theme-btn-outline-primary--color);--ix-button-color:var(--theme-btn-outline-primary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-primary--border-color);border-style:solid}.btn-outline-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-primary.hover,.btn-outline-primary:hover{border-color:var(--theme-btn-outline-primary--border-color--hover);background-color:var(--theme-btn-outline-primary--background--hover);color:var(--theme-btn-outline-primary--color--hover)}.btn-outline-primary.selected.hover,.btn-outline-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{border-color:var(--theme-btn-outline-primary--border-color--active);background-color:var(--theme-btn-outline-primary--background--active);color:var(--theme-btn-outline-primary--color--active)}.btn-outline-primary.selected:not(:disabled):not(.disabled):active,.btn-outline-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-primary--border-color--disabled);background-color:var(--theme-btn-outline-primary--background--disabled);color:var(--theme-btn-outline-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-primary--color--disabled)}.btn-invisible-primary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-primary,.btn-invisible-primary.focus,.btn-invisible-primary:focus-visible{background-color:var(--theme-btn-invisible-primary--background);color:var(--theme-btn-invisible-primary--color);--ix-button-color:var(--theme-btn-invisible-primary--color);border-color:transparent}.btn-invisible-primary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-primary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-primary.hover,.btn-invisible-primary:hover{background-color:var(--theme-btn-invisible-primary--background--hover);color:var(--theme-btn-invisible-primary--color--hover)}.btn-invisible-primary.selected.hover,.btn-invisible-primary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-primary:not(:disabled):not(.disabled):active,.btn-invisible-primary:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.dropdown-toggle{background-color:var(--theme-btn-invisible-primary--background--active);color:var(--theme-btn-invisible-primary--color--active)}.btn-invisible-primary.selected:not(:disabled):not(.disabled):active,.btn-invisible-primary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-primary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-primary.disabled,.btn-invisible-primary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-primary--background--disabled);color:var(--theme-btn-invisible-primary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-primary--color--disabled)}.btn-secondary{border-radius:var(--theme-btn--border-radius)}.btn-secondary,.btn-secondary.focus,.btn-secondary:focus-visible{background-color:var(--theme-btn-secondary--background);color:var(--theme-btn-secondary--color);--ix-button-color:var(--theme-btn-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-secondary--border-color);border-style:solid}.btn-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-secondary.hover,.btn-secondary:hover{border-color:var(--theme-btn-secondary--border-color--hover);background-color:var(--theme-btn-secondary--background--hover);color:var(--theme-btn-secondary--color--hover)}.btn-secondary.selected.hover,.btn-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{border-color:var(--theme-btn-secondary--border-color--active);background-color:var(--theme-btn-secondary--background--active);color:var(--theme-btn-secondary--color--active)}.btn-secondary.selected:not(:disabled):not(.disabled):active,.btn-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-secondary.disabled,.btn-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-secondary--border-color--disabled);background-color:var(--theme-btn-secondary--background--disabled);color:var(--theme-btn-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-secondary--color--disabled)}.btn-outline-secondary{border-radius:var(--theme-btn--border-radius)}.btn-outline-secondary,.btn-outline-secondary.focus,.btn-outline-secondary:focus-visible{background-color:var(--theme-btn-outline-secondary--background);color:var(--theme-btn-outline-secondary--color);--ix-button-color:var(--theme-btn-outline-secondary--color);border-width:var(--theme-btn--border-thickness);border-color:var(--theme-btn-outline-secondary--border-color);border-style:solid}.btn-outline-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-outline-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-outline-secondary.hover,.btn-outline-secondary:hover{border-color:var(--theme-btn-outline-secondary--border-color--hover);background-color:var(--theme-btn-outline-secondary--background--hover);color:var(--theme-btn-outline-secondary--color--hover)}.btn-outline-secondary.selected.hover,.btn-outline-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{border-color:var(--theme-btn-outline-secondary--border-color--active);background-color:var(--theme-btn-outline-secondary--background--active);color:var(--theme-btn-outline-secondary--color--active)}.btn-outline-secondary.selected:not(:disabled):not(.disabled):active,.btn-outline-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{pointer-events:none;cursor:initial;border-color:var(--theme-btn-outline-secondary--border-color--disabled);background-color:var(--theme-btn-outline-secondary--background--disabled);color:var(--theme-btn-outline-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-outline-secondary--color--disabled)}.btn-invisible-secondary{border-radius:var(--theme-btn--border-radius);--bs-btn-border-width:0px;--bs-btn-active-border-color:none}.btn-invisible-secondary,.btn-invisible-secondary.focus,.btn-invisible-secondary:focus-visible{background-color:var(--theme-btn-invisible-secondary--background);color:var(--theme-btn-invisible-secondary--color);--ix-button-color:var(--theme-btn-invisible-secondary--color);border-color:transparent}.btn-invisible-secondary:not(.disabled):not(:disabled):focus-visible{outline:1px solid var(--theme-color-focus-bdr);outline-offset:var(--theme-btn--focus--outline-offset)}.btn-invisible-secondary.selected{background-color:var(--theme-color-ghost--selected);color:var(--theme-color-dynamic)}.btn-invisible-secondary.hover,.btn-invisible-secondary:hover{background-color:var(--theme-btn-invisible-secondary--background--hover);color:var(--theme-btn-invisible-secondary--color--hover)}.btn-invisible-secondary.selected.hover,.btn-invisible-secondary.selected:hover{background-color:var(--theme-color-ghost--selected-hover);color:var(--theme-color-dynamic)}.btn-invisible-secondary:not(:disabled):not(.disabled):active,.btn-invisible-secondary:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.dropdown-toggle{background-color:var(--theme-btn-invisible-secondary--background--active);color:var(--theme-btn-invisible-secondary--color--active)}.btn-invisible-secondary.selected:not(:disabled):not(.disabled):active,.btn-invisible-secondary.selected:not(:disabled):not(.disabled).active,.show>.btn-invisible-secondary.selected.dropdown-toggle{background-color:var(--theme-color-ghost--selected-active);color:var(--theme-color-dynamic)}.btn-invisible-secondary.disabled,.btn-invisible-secondary:disabled{pointer-events:none;cursor:initial;background-color:var(--theme-btn-invisible-secondary--background--disabled);color:var(--theme-btn-invisible-secondary--color--disabled);opacity:1;--ix-button-color:var(--theme-btn-invisible-secondary--color--disabled)}.btn-oval,.btn-icon{min-width:2rem;width:2rem}.btn-oval .glyph,.btn-icon .glyph{margin-right:0}.btn-oval{border-radius:6.25rem;width:2rem}.btn-icon-xs,.btn-icon-12{height:1rem;width:1rem;min-width:1rem;min-height:1rem}.btn-icon-s,.btn-icon-16{height:1.5rem;width:1.5rem;min-width:1.5rem;min-height:1.5rem}.btn-icon-32{height:2rem;width:2rem;min-width:2rem;min-height:2rem}:host{display:inline-flex;height:2rem;font-size:0.875rem;font-weight:400;min-width:2rem}:host .link-button{display:inline-flex;position:relative;width:100%;padding:0 0.25rem 0 0;align-items:center;justify-content:center;background-color:transparent;color:var(--theme-color-primary);cursor:pointer;text-decoration:none}:host .link-button .link{display:block;position:relative;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host .link-button:not(.disabled):not(:disabled){cursor:pointer}:host .link-button:not(.disabled):not(:disabled):hover{color:var(--theme-color-dynamic--hover)}:host .link-button:not(.disabled):not(:disabled):hover .link{text-decoration:underline;text-underline-offset:0.2rem}:host .link-button:not(.disabled):not(:disabled){cursor:pointer}:host .link-button:not(.disabled):not(:disabled):active,:host .link-button:not(.disabled):not(:disabled).active{color:var(--theme-color-dynamic--active)}:host .link-button:not(.disabled):not(:disabled):active .link,:host .link-button:not(.disabled):not(:disabled).active .link{text-decoration:underline;text-underline-offset:0.2rem}:host .link-button.disabled{cursor:default;color:var(--theme-color-weak-text)}:host .link-button a{all:unset}:host :focus-visible{outline:1px solid var(--theme-color-focus-bdr)}"}}]); \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/2214.index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/2214.index.bundle.js index d69f55b..8d941e7 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/2214.index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/2214.index.bundle.js @@ -1,10 +1 @@ -// ----------------------------------------------------------------------- -// SPDX-FileCopyrightText: 2024 Siemens AG -// -// SPDX-License-Identifier: MIT -// -// This source code is licensed under the MIT license found in the -// LICENSE file in the root directory of this source tree. -// ----------------------------------------------------------------------- - (self.webpackChunknpmjs=self.webpackChunknpmjs||[]).push([[2214],{6375:(t,e,r)=>{"use strict";r.d(e,{a:()=>n,c:()=>i,g:()=>o});var n="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r.g?r.g:"undefined"!=typeof self?self:{};function o(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function i(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}},9979:(t,e,r)=>{"use strict";r.r(e),r.d(e,{c:()=>i});var n=r(6375),o={};!function(t){var e={};function r(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return t[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}r.m=t,r.c=e,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},r.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.t=function(t,e){if(1&e&&(t=r(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)r.d(n,o,function(e){return t[e]}.bind(null,o));return n},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}([function(t,e,r){r(1),r(55),r(62),r(68),r(70),r(71),r(72),r(73),r(75),r(76),r(78),r(87),r(88),r(89),r(98),r(99),r(101),r(102),r(103),r(105),r(106),r(107),r(108),r(110),r(111),r(112),r(113),r(114),r(115),r(116),r(117),r(118),r(127),r(130),r(131),r(133),r(135),r(136),r(137),r(138),r(139),r(141),r(143),r(146),r(148),r(150),r(151),r(153),r(154),r(155),r(156),r(157),r(159),r(160),r(162),r(163),r(164),r(165),r(166),r(167),r(168),r(169),r(170),r(172),r(173),r(183),r(184),r(185),r(189),r(191),r(192),r(193),r(194),r(195),r(196),r(198),r(201),r(202),r(203),r(204),r(208),r(209),r(212),r(213),r(214),r(215),r(216),r(217),r(218),r(219),r(221),r(222),r(223),r(226),r(227),r(228),r(229),r(230),r(231),r(232),r(233),r(234),r(235),r(236),r(237),r(238),r(240),r(241),r(243),r(248),t.exports=r(246)},function(t,e,r){var n=r(2),o=r(6),i=r(45),a=r(14),u=r(46),c=r(39),f=r(47),s=r(48),l=r(52),h=r(49),p=r(53),v=h("isConcatSpreadable"),d=p>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),g=l("concat"),y=function(t){if(!a(t))return!1;var e=t[v];return void 0!==e?!!e:i(t)};n({target:"Array",proto:!0,forced:!d||!g},{concat:function(t){var e,r,n,o,i,a=u(this),l=s(a,0),h=0;for(e=-1,n=arguments.length;e9007199254740991)throw TypeError("Maximum allowed index exceeded");for(r=0;r=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,h++,i)}return l.length=h,l}})},function(t,e,r){var n=r(3),o=r(4).f,i=r(18),a=r(21),u=r(22),c=r(32),f=r(44);t.exports=function(t,e){var r,s,l,h,p,v=t.target,d=t.global,g=t.stat;if(r=d?n:g?n[v]||u(v,{}):(n[v]||{}).prototype)for(s in e){if(h=e[s],l=t.noTargetGet?(p=o(r,s))&&p.value:r[s],!f(d?s:v+(g?".":"#")+s,t.forced)&&void 0!==l){if(typeof h==typeof l)continue;c(h,l)}(t.sham||l&&l.sham)&&i(h,"sham",!0),a(r,s,h,t)}}},function(t,e){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.a&&n.a)||Function("return this")()},function(t,e,r){var n=r(5),o=r(7),i=r(8),a=r(9),u=r(13),c=r(15),f=r(16),s=Object.getOwnPropertyDescriptor;e.f=n?s:function(t,e){if(t=a(t),e=u(e,!0),f)try{return s(t,e)}catch(t){}if(c(t,e))return i(!o.f.call(t,e),t[e])}},function(t,e,r){var n=r(6);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,r){var n={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!n.call({1:2},1);e.f=i?function(t){var e=o(this,t);return!!e&&e.enumerable}:n},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,r){var n=r(10),o=r(12);t.exports=function(t){return n(o(t))}},function(t,e,r){var n=r(6),o=r(11),i="".split;t.exports=n((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,e){var r={}.toString;t.exports=function(t){return r.call(t).slice(8,-1)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,r){var n=r(14);t.exports=function(t,e){if(!n(t))return t;var r,o;if(e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;if("function"==typeof(r=t.valueOf)&&!n(o=r.call(t)))return o;if(!e&&"function"==typeof(r=t.toString)&&!n(o=r.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var r={}.hasOwnProperty;t.exports=function(t,e){return r.call(t,e)}},function(t,e,r){var n=r(5),o=r(6),i=r(17);t.exports=!n&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,e,r){var n=r(3),o=r(14),i=n.document,a=o(i)&&o(i.createElement);t.exports=function(t){return a?i.createElement(t):{}}},function(t,e,r){var n=r(5),o=r(19),i=r(8);t.exports=n?function(t,e,r){return o.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},function(t,e,r){var n=r(5),o=r(16),i=r(20),a=r(13),u=Object.defineProperty;e.f=n?u:function(t,e,r){if(i(t),e=a(e,!0),i(r),o)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},function(t,e,r){var n=r(14);t.exports=function(t){if(!n(t))throw TypeError(String(t)+" is not an object");return t}},function(t,e,r){var n=r(3),o=r(18),i=r(15),a=r(22),u=r(23),c=r(25),f=c.get,s=c.enforce,l=String(String).split("String");(t.exports=function(t,e,r,u){var c=!!u&&!!u.unsafe,f=!!u&&!!u.enumerable,h=!!u&&!!u.noTargetGet;"function"==typeof r&&("string"!=typeof e||i(r,"name")||o(r,"name",e),s(r).source=l.join("string"==typeof e?e:"")),t!==n?(c?!h&&t[e]&&(f=!0):delete t[e],f?t[e]=r:o(t,e,r)):f?t[e]=r:a(e,r)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||u(this)}))},function(t,e,r){var n=r(3),o=r(18);t.exports=function(t,e){try{o(n,t,e)}catch(r){n[t]=e}return e}},function(t,e,r){var n=r(24),o=Function.toString;"function"!=typeof n.inspectSource&&(n.inspectSource=function(t){return o.call(t)}),t.exports=n.inspectSource},function(t,e,r){var n=r(3),o=r(22),i=n["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,e,r){var n,o,i,a=r(26),u=r(3),c=r(14),f=r(18),s=r(15),l=r(27),h=r(31),p=u.WeakMap;if(a){var v=new p,d=v.get,g=v.has,y=v.set;n=function(t,e){return y.call(v,t,e),e},o=function(t){return d.call(v,t)||{}},i=function(t){return g.call(v,t)}}else{var m=l("state");h[m]=!0,n=function(t,e){return f(t,m,e),e},o=function(t){return s(t,m)?t[m]:{}},i=function(t){return s(t,m)}}t.exports={set:n,get:o,has:i,enforce:function(t){return i(t)?o(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=o(e)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return r}}}},function(t,e,r){var n=r(3),o=r(23),i=n.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,e,r){var n=r(28),o=r(30),i=n("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,r){var n=r(29),o=r(24);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.6.5",mode:n?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,e){t.exports=!1},function(t,e){var r=0,n=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++r+n).toString(36)}},function(t,e){t.exports={}},function(t,e,r){var n=r(15),o=r(33),i=r(4),a=r(19);t.exports=function(t,e){for(var r=o(e),u=a.f,c=i.f,f=0;fc;)n(u,r=e[c++])&&(~i(f,r)||f.push(r));return f}},function(t,e,r){var n=r(9),o=r(39),i=r(41),a=function(t){return function(e,r,a){var u,c=n(e),f=o(c.length),s=i(a,f);if(t&&r!=r){for(;f>s;)if((u=c[s++])!=u)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===r)return t||s||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,r){var n=r(40),o=Math.min;t.exports=function(t){return t>0?o(n(t),9007199254740991):0}},function(t,e){var r=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:r)(t)}},function(t,e,r){var n=r(40),o=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?o(r+e,0):i(r,e)}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,r){var n=r(6),o=/#|\.prototype\./,i=function(t,e){var r=u[a(t)];return r==f||r!=c&&("function"==typeof e?n(e):!!e)},a=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},u=i.data={},c=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,e,r){var n=r(11);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,r){var n=r(12);t.exports=function(t){return Object(n(t))}},function(t,e,r){var n=r(13),o=r(19),i=r(8);t.exports=function(t,e,r){var a=n(e);a in t?o.f(t,a,i(0,r)):t[a]=r}},function(t,e,r){var n=r(14),o=r(45),i=r(49)("species");t.exports=function(t,e){var r;return o(t)&&("function"!=typeof(r=t.constructor)||r!==Array&&!o(r.prototype)?n(r)&&null===(r=r[i])&&(r=void 0):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},function(t,e,r){var n=r(3),o=r(28),i=r(15),a=r(30),u=r(50),c=r(51),f=o("wks"),s=n.Symbol,l=c?s:s&&s.withoutSetter||a;t.exports=function(t){return i(f,t)||(u&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,e,r){var n=r(6);t.exports=!!Object.getOwnPropertySymbols&&!n((function(){return!String(Symbol())}))},function(t,e,r){var n=r(50);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,r){var n=r(6),o=r(49),i=r(53),a=o("species");t.exports=function(t){return i>=51||!n((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,r){var n,o,i=r(3),a=r(54),u=i.process,c=u&&u.versions,f=c&&c.v8;f?o=(n=f.split("."))[0]+n[1]:a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(o=n[1]),t.exports=o&&+o},function(t,e,r){var n=r(34);t.exports=n("navigator","userAgent")||""},function(t,e,r){var n=r(2),o=r(56),i=r(57);n({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(t,e,r){var n=r(46),o=r(41),i=r(39),a=Math.min;t.exports=[].copyWithin||function(t,e){var r=n(this),u=i(r.length),c=o(t,u),f=o(e,u),s=arguments.length>2?arguments[2]:void 0,l=a((void 0===s?u:o(s,u))-f,u-c),h=1;for(f0;)f in r?r[c]=r[f]:delete r[c],c+=h,f+=h;return r}},function(t,e,r){var n=r(49),o=r(58),i=r(19),a=n("unscopables"),u=Array.prototype;null==u[a]&&i.f(u,a,{configurable:!0,value:o(null)}),t.exports=function(t){u[a][t]=!0}},function(t,e,r){var n,o=r(20),i=r(59),a=r(42),u=r(31),c=r(61),f=r(17),s=r(27)("IE_PROTO"),l=function(){},h=function(t){return"