diff --git a/README.md b/README.md index a73bc29..bc394bc 100644 --- a/README.md +++ b/README.md @@ -96,6 +96,7 @@ public partial class Index - [Settings](#settings) - [Map Navigation](#map-navigation) - [Popover News](#popover-news) +- [AGGrid (Preview)](#ag-grid) **(since 0.4.2)** - [Avatar](#avatar) **(since v0.4.0)** - [Blind](#blind) - [Breadcrumb](#breadcrumb) @@ -282,6 +283,105 @@ aboutMenuElement.ToggleSettings(true); ``` +## AGGrid Preview + +This component is currently in **preview** version. + +### Installation + +Add necessary css files into the `index.html` file. + +```html + + + + + + + +``` + +```razor + + +``` + +```csharp +AGGrid agGridRef; +protected override async Task OnAfterRenderAsync(bool firstRender) +{ + if(firstRender) + { + Dictionary row1 = new() + { + { "type", "Equipment" }, + { "status", "Normal" }, + { "hwVersion", "2.0" }, + { "checked", false } + }; + + Dictionary row2 = new() + { + { "type", "Positioner" }, + { "status", "Maintenance" }, + { "hwVersion", "1.0" }, + { "checked", true } + }; + + Dictionary row3 = new() + { + { "type", "Pressure sensor" }, + { "status", "Unknown" }, + { "hwVersion", "N/A" }, + { "checked", false } + }; + + + GridOptions options = new GridOptions() + { + ColumnDefs = new List + { + new ColumnDefs() + { + Field = "type", + HeaderName = "Type", + Resizable = true, + CheckboxSelection = true + }, + new ColumnDefs() + { + Field = "status", + HeaderName = "Status", + Resizable = true, + Sortable = true, + Filter = true + }, + new ColumnDefs() + { + Field = "hwVersion", + HeaderName = "HW version", + Resizable= true + } + }, + RowData = new List> { row1, row2, row3 }, + CheckboxSelection = true, + RowSelection = "multiple", + SuppressCellFocus = true + }; + + await agGridRef.CreateGrid(options); + } + +} +``` + ## Avatar ```razor diff --git a/SiemensIXBlazor/Components/AGGrid/AGGrid.razor b/SiemensIXBlazor/Components/AGGrid/AGGrid.razor new file mode 100644 index 0000000..e92c22e --- /dev/null +++ b/SiemensIXBlazor/Components/AGGrid/AGGrid.razor @@ -0,0 +1,10 @@ +@using Microsoft.JSInterop; +@inherits IXBaseComponent +@inject IJSRuntime JSRuntime + +
+
diff --git a/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs b/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs new file mode 100644 index 0000000..b146401 --- /dev/null +++ b/SiemensIXBlazor/Components/AGGrid/AGGrid.razor.cs @@ -0,0 +1,22 @@ +using Microsoft.AspNetCore.Components; +using Microsoft.JSInterop; +using Newtonsoft.Json; + +namespace SiemensIXBlazor.Components.AGGrid +{ + public partial class AGGrid + { + [Parameter, EditorRequired] + public string Id { get; set; } = string.Empty; + + public async Task CreateGrid(GridOptions options) + { + if (Id == string.Empty) + { + return; + } + + await JSRuntime.InvokeVoidAsync("agGridInterop.createGrid", Id, JsonConvert.SerializeObject(options)); + } + } +} diff --git a/SiemensIXBlazor/Components/AGGrid/ColumnDefs.cs b/SiemensIXBlazor/Components/AGGrid/ColumnDefs.cs new file mode 100644 index 0000000..d111834 --- /dev/null +++ b/SiemensIXBlazor/Components/AGGrid/ColumnDefs.cs @@ -0,0 +1,20 @@ +using Newtonsoft.Json; + +namespace SiemensIXBlazor.Components.AGGrid +{ + public class ColumnDefs + { + [JsonProperty("field")] + public string? Field { get; set; } + [JsonProperty("headerName")] + public string? HeaderName { get; set; } + [JsonProperty("resizable")] + public bool? Resizable { get; set; } + [JsonProperty("checkboxSelection")] + public bool? CheckboxSelection { get; set; } + [JsonProperty("sortable")] + public bool? Sortable { get; set; } + [JsonProperty("filter")] + public bool? Filter { get; set; } + } +} diff --git a/SiemensIXBlazor/Components/AGGrid/GridOptions.cs b/SiemensIXBlazor/Components/AGGrid/GridOptions.cs new file mode 100644 index 0000000..a5361ca --- /dev/null +++ b/SiemensIXBlazor/Components/AGGrid/GridOptions.cs @@ -0,0 +1,18 @@ +using Newtonsoft.Json; + +namespace SiemensIXBlazor.Components.AGGrid +{ + public class GridOptions + { + [JsonProperty("columnDefs")] + public List? ColumnDefs { get; set; } + [JsonProperty("rowData")] + public List>? RowData { get; set; } + [JsonProperty("rowSelection")] + public string? RowSelection { get; set; } + [JsonProperty("suppressCellFocus")] + public bool? SuppressCellFocus { get; set; } + [JsonProperty("checkboxSelection")] + public bool? CheckboxSelection { get; set; } + } +} diff --git a/SiemensIXBlazor/SiemensIXBlazor.csproj b/SiemensIXBlazor/SiemensIXBlazor.csproj index 3b650be..872702d 100644 --- a/SiemensIXBlazor/SiemensIXBlazor.csproj +++ b/SiemensIXBlazor/SiemensIXBlazor.csproj @@ -66,7 +66,6 @@ - diff --git a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package-lock.json b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package-lock.json index 64bcc08..169b0b3 100644 --- a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package-lock.json +++ b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package-lock.json @@ -9,16 +9,26 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@siemens/ix": "2.0.1", - "@siemens/ix-echarts": "2.0.1", - "@siemens/ix-icons": "2.0.0", - "echarts": "5.4.3" + "@ag-grid-community/core": "^30.2.0", + "@siemens/ix": "^2.0.1", + "@siemens/ix-aggrid": "^2.0.3", + "@siemens/ix-echarts": "^2.0.1", + "@siemens/ix-icons": "^2.0.0", + "ag-grid-community": "^30.2.0", + "echarts": "5.4.3", + "i": "^0.3.7", + "npm": "^10.2.0" }, "devDependencies": { "webpack": "^5.75.0", "webpack-cli": "^5.0.1" } }, + "node_modules/@ag-grid-community/core": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@ag-grid-community/core/-/core-30.2.0.tgz", + "integrity": "sha512-BdRavyYxyl0rx3w4VKQlV9KHRR9TIJ9RFt4FIsWUxC+VDC+VEL64J1PzgJqXqgkM7Zmb+rYbluA2UPmRrQQJ9A==" + }, "node_modules/@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -108,16 +118,6 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, - "node_modules/@popperjs/core": { - "version": "2.11.8", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", - "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", - "peer": true, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/popperjs" - } - }, "node_modules/@siemens/ix": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@siemens/ix/-/ix-2.0.1.tgz", @@ -136,6 +136,15 @@ "bootstrap": "~5.2.0" } }, + "node_modules/@siemens/ix-aggrid": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@siemens/ix-aggrid/-/ix-aggrid-2.0.3.tgz", + "integrity": "sha512-hFAoQswGODYq1VaDti9W5SOdcapYT2k0tEwIxgibBEaDTNnG07jIMJj6l0Bm9fYndcHQEIGTfMZQIjGY7YjDiQ==", + "peerDependencies": { + "@siemens/ix": "~2.0.3", + "ag-grid-community": "^28 || ^29" + } + }, "node_modules/@siemens/ix-echarts": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@siemens/ix-echarts/-/ix-echarts-2.0.1.tgz", @@ -446,6 +455,11 @@ "acorn": "^8" } }, + "node_modules/ag-grid-community": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/ag-grid-community/-/ag-grid-community-30.2.0.tgz", + "integrity": "sha512-Gd6GXmtzEQSCDloBdRxxCDqnjTBRAOf/zzlaxxyyVBJgc+cePuNgGdplRUhT/rwIiDwvyuoynvxelVE/iYdXsA==" + }, "node_modules/ajv": { "version": "6.12.6", "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", @@ -476,25 +490,6 @@ "resolved": "https://registry.npmjs.org/animejs/-/animejs-3.2.1.tgz", "integrity": "sha512-sWno3ugFryK5nhiDm/2BKeFCpZv7vzerWUcUPyAZLDhMek3+S/p418ldZJbJXo5ZUOpfm2kP2XRO4NJcULMy9A==" }, - "node_modules/bootstrap": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.3.tgz", - "integrity": "sha512-cEKPM+fwb3cT8NzQZYEu4HilJ3anCrWqh3CHAok1p9jXqMPsPTBhU25fBckEJHJ/p+tTxTFTsFQGM+gaHpi3QQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/twbs" - }, - { - "type": "opencollective", - "url": "https://opencollective.com/bootstrap" - } - ], - "peer": true, - "peerDependencies": { - "@popperjs/core": "^2.11.6" - } - }, "node_modules/browserslist": { "version": "4.21.9", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", @@ -787,6 +782,14 @@ "resolved": "https://registry.npmjs.org/hyperlist/-/hyperlist-1.0.0.tgz", "integrity": "sha512-1qAjO29EJW/mPyqY+9wFjruD2YWur1dPsPYmt9RvMX6P+8Cr2UmT75MCWjjK+1/4Jxc3sm/G3Kr8DzGgEDRG+Q==" }, + "node_modules/i": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", + "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==", + "engines": { + "node": ">=0.4" + } + }, "node_modules/import-local": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", @@ -939,23 +942,3089 @@ "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", "dev": true, "dependencies": { - "mime-db": "1.52.0" + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "dev": true + }, + "node_modules/node-releases": { + "version": "2.0.12", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", + "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", + "dev": true + }, + "node_modules/npm": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/npm/-/npm-10.2.0.tgz", + "integrity": "sha512-Auyq6d4cfg/SY4URjZE2aePLOPzK4lUD+qyMxY/7HbxAvCnOCKtMlyLPcbLSOq9lhEGBZN800S1o+UmfjA5dTg==", + "bundleDependencies": [ + "@isaacs/string-locale-compare", + "@npmcli/arborist", + "@npmcli/config", + "@npmcli/fs", + "@npmcli/map-workspaces", + "@npmcli/package-json", + "@npmcli/promise-spawn", + "@npmcli/run-script", + "@sigstore/tuf", + "abbrev", + "archy", + "cacache", + "chalk", + "ci-info", + "cli-columns", + "cli-table3", + "columnify", + "fastest-levenshtein", + "fs-minipass", + "glob", + "graceful-fs", + "hosted-git-info", + "ini", + "init-package-json", + "is-cidr", + "json-parse-even-better-errors", + "libnpmaccess", + "libnpmdiff", + "libnpmexec", + "libnpmfund", + "libnpmhook", + "libnpmorg", + "libnpmpack", + "libnpmpublish", + "libnpmsearch", + "libnpmteam", + "libnpmversion", + "make-fetch-happen", + "minimatch", + "minipass", + "minipass-pipeline", + "ms", + "node-gyp", + "nopt", + "normalize-package-data", + "npm-audit-report", + "npm-install-checks", + "npm-package-arg", + "npm-pick-manifest", + "npm-profile", + "npm-registry-fetch", + "npm-user-validate", + "npmlog", + "p-map", + "pacote", + "parse-conflict-json", + "proc-log", + "qrcode-terminal", + "read", + "semver", + "spdx-expression-parse", + "ssri", + "strip-ansi", + "supports-color", + "tar", + "text-table", + "tiny-relative-date", + "treeverse", + "validate-npm-package-name", + "which", + "write-file-atomic" + ], + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^7.2.0", + "@npmcli/config": "^8.0.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/map-workspaces": "^3.0.4", + "@npmcli/package-json": "^5.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.1", + "@sigstore/tuf": "^2.1.0", + "abbrev": "^2.0.0", + "archy": "~1.0.0", + "cacache": "^18.0.0", + "chalk": "^5.3.0", + "ci-info": "^3.8.0", + "cli-columns": "^4.0.0", + "cli-table3": "^0.6.3", + "columnify": "^1.6.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.3", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "hosted-git-info": "^7.0.1", + "ini": "^4.1.1", + "init-package-json": "^6.0.0", + "is-cidr": "^4.0.2", + "json-parse-even-better-errors": "^3.0.0", + "libnpmaccess": "^8.0.1", + "libnpmdiff": "^6.0.2", + "libnpmexec": "^7.0.2", + "libnpmfund": "^5.0.0", + "libnpmhook": "^10.0.0", + "libnpmorg": "^6.0.1", + "libnpmpack": "^6.0.2", + "libnpmpublish": "^9.0.1", + "libnpmsearch": "^7.0.0", + "libnpmteam": "^6.0.0", + "libnpmversion": "^5.0.0", + "make-fetch-happen": "^13.0.0", + "minimatch": "^9.0.3", + "minipass": "^7.0.4", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^9.4.0", + "nopt": "^7.2.0", + "normalize-package-data": "^6.0.0", + "npm-audit-report": "^5.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.1", + "npm-pick-manifest": "^9.0.0", + "npm-profile": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npm-user-validate": "^2.0.0", + "npmlog": "^7.0.1", + "p-map": "^4.0.0", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.1", + "proc-log": "^3.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^2.1.0", + "semver": "^7.5.4", + "spdx-expression-parse": "^3.0.1", + "ssri": "^10.0.5", + "strip-ansi": "^6.0.1", + "supports-color": "^9.4.0", + "tar": "^6.2.0", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^5.0.0", + "which": "^4.0.0", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "npm": "bin/npm-cli.js", + "npx": "bin/npx-cli.js" + }, + "engines": { + "node": "^18.17.0 || >=20.5.0" + } + }, + "node_modules/npm/node_modules/@colors/colors": { + "version": "1.5.0", + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=0.1.90" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui": { + "version": "8.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/ansi-regex": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/emoji-regex": { + "version": "9.2.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/string-width": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/@isaacs/cliui/node_modules/strip-ansi": { + "version": "7.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/@isaacs/string-locale-compare": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/@npmcli/agent": { + "version": "2.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "agent-base": "^7.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^10.0.1", + "socks-proxy-agent": "^8.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/agent-base": { + "version": "7.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/http-proxy-agent": { + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/https-proxy-agent": { + "version": "7.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.2", + "debug": "4" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/agent/node_modules/socks-proxy-agent": { + "version": "8.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^7.0.1", + "debug": "^4.3.4", + "socks": "^2.7.1" + }, + "engines": { + "node": ">= 14" + } + }, + "node_modules/npm/node_modules/@npmcli/arborist": { + "version": "7.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/installed-package-contents": "^2.0.2", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/metavuln-calculator": "^7.0.0", + "@npmcli/name-from-folder": "^2.0.0", + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/package-json": "^5.0.0", + "@npmcli/query": "^3.0.1", + "@npmcli/run-script": "^7.0.1", + "bin-links": "^4.0.1", + "cacache": "^18.0.0", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^7.0.1", + "json-parse-even-better-errors": "^3.0.0", + "json-stringify-nice": "^1.1.4", + "minimatch": "^9.0.0", + "nopt": "^7.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.1", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.2", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "ssri": "^10.0.5", + "treeverse": "^3.0.0", + "walk-up-path": "^3.0.1" + }, + "bin": { + "arborist": "bin/index.js" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/config": { + "version": "8.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/map-workspaces": "^3.0.2", + "ci-info": "^3.8.0", + "ini": "^4.1.0", + "nopt": "^7.0.0", + "proc-log": "^3.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.5", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/disparity-colors": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ansi-styles": "^4.3.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/fs": { + "version": "3.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/git": { + "version": "5.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/promise-spawn": "^7.0.0", + "lru-cache": "^10.0.1", + "npm-pick-manifest": "^9.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/installed-package-contents": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "bin": { + "installed-package-contents": "lib/index.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/map-workspaces": { + "version": "3.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/name-from-folder": "^2.0.0", + "glob": "^10.2.2", + "minimatch": "^9.0.0", + "read-package-json-fast": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/metavuln-calculator": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cacache": "^18.0.0", + "json-parse-even-better-errors": "^3.0.0", + "pacote": "^17.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/name-from-folder": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/node-gyp": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/package-json": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.0", + "glob": "^10.2.2", + "hosted-git-info": "^7.0.0", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.5.3" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/promise-spawn": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/query": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "postcss-selector-parser": "^6.0.10" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@npmcli/run-script": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^4.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@pkgjs/parseargs": { + "version": "0.11.0", + "inBundle": true, + "license": "MIT", + "optional": true, + "engines": { + "node": ">=14" + } + }, + "node_modules/npm/node_modules/@sigstore/bundle": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/protobuf-specs": { + "version": "0.2.1", + "inBundle": true, + "license": "Apache-2.0", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/sign": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "make-fetch-happen": "^13.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@sigstore/tuf": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/protobuf-specs": "^0.2.1", + "tuf-js": "^2.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tootallnate/once": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/@tufjs/canonical-json": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/@tufjs/models": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.3" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abbrev": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/abort-controller": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "event-target-shim": "^5.0.0" + }, + "engines": { + "node": ">=6.5" + } + }, + "node_modules/npm/node_modules/agent-base": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/npm/node_modules/agentkeepalive": { + "version": "4.5.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/npm/node_modules/aggregate-error": { + "version": "3.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-regex": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/ansi-styles": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/aproba": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/archy": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/are-we-there-yet": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^4.1.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/balanced-match": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/base64-js": { + "version": "1.5.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/bin-links": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cmd-shim": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "read-cmd-shim": "^4.0.0", + "write-file-atomic": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/binary-extensions": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/brace-expansion": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/buffer": { + "version": "6.0.3", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT", + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "node_modules/npm/node_modules/builtins": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "semver": "^7.0.0" + } + }, + "node_modules/npm/node_modules/cacache": { + "version": "18.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^10.0.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/chalk": { + "version": "5.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^12.17.0 || ^14.13 || >=16.0.0" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/npm/node_modules/chownr": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ci-info": { + "version": "3.8.0", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/sibiraj-s" + } + ], + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/cidr-regex": { + "version": "3.1.1", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "ip-regex": "^4.1.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/clean-stack": { + "version": "2.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/cli-columns": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/cli-table3": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "string-width": "^4.2.0" + }, + "engines": { + "node": "10.* || >= 12.*" + }, + "optionalDependencies": { + "@colors/colors": "1.5.0" + } + }, + "node_modules/npm/node_modules/clone": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/npm/node_modules/cmd-shim": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/color-convert": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/npm/node_modules/color-name": { + "version": "1.1.4", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/color-support": { + "version": "1.1.3", + "inBundle": true, + "license": "ISC", + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/npm/node_modules/columnify": { + "version": "1.6.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "strip-ansi": "^6.0.1", + "wcwidth": "^1.0.0" + }, + "engines": { + "node": ">=8.0.0" + } + }, + "node_modules/npm/node_modules/common-ancestor-path": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/concat-map": { + "version": "0.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/console-control-strings": { + "version": "1.1.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/cross-spawn": { + "version": "7.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cross-spawn/node_modules/which": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/cssesc": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "bin": { + "cssesc": "bin/cssesc" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/debug": { + "version": "4.3.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/npm/node_modules/debug/node_modules/ms": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/defaults": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "clone": "^1.0.2" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/delegates": { + "version": "1.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/diff": { + "version": "5.1.0", + "inBundle": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" + } + }, + "node_modules/npm/node_modules/eastasianwidth": { + "version": "0.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/emoji-regex": { + "version": "8.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/encoding": { + "version": "0.1.13", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/npm/node_modules/env-paths": { + "version": "2.2.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/err-code": { + "version": "2.0.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/event-target-shim": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/npm/node_modules/events": { + "version": "3.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.x" + } + }, + "node_modules/npm/node_modules/exponential-backoff": { + "version": "3.1.1", + "inBundle": true, + "license": "Apache-2.0" + }, + "node_modules/npm/node_modules/fastest-levenshtein": { + "version": "1.0.16", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4.9.1" + } + }, + "node_modules/npm/node_modules/foreground-child": { + "version": "3.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/fs-minipass": { + "version": "3.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/fs.realpath": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/function-bind": { + "version": "1.1.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/gauge": { + "version": "5.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^4.0.1", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/glob": { + "version": "10.3.10", + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/esm/bin.mjs" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/graceful-fs": { + "version": "4.2.11", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/has": { + "version": "1.0.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "function-bind": "^1.1.1" + }, + "engines": { + "node": ">= 0.4.0" + } + }, + "node_modules/npm/node_modules/has-unicode": { + "version": "2.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/hosted-git-info": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^10.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/http-cache-semantics": { + "version": "4.1.1", + "inBundle": true, + "license": "BSD-2-Clause" + }, + "node_modules/npm/node_modules/http-proxy-agent": { + "version": "5.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/https-proxy-agent": { + "version": "5.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/humanize-ms": { + "version": "1.2.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/npm/node_modules/iconv-lite": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/ieee754": { + "version": "1.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "BSD-3-Clause" + }, + "node_modules/npm/node_modules/ignore-walk": { + "version": "6.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minimatch": "^9.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/imurmurhash": { + "version": "0.1.4", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/npm/node_modules/indent-string": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/inflight": { + "version": "1.0.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/inherits": { + "version": "2.0.4", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/ini": { + "version": "4.1.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/init-package-json": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^11.0.0", + "promzard": "^1.0.0", + "read": "^2.0.0", + "read-package-json": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/ip": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/ip-regex": { + "version": "4.3.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-cidr": { + "version": "4.0.2", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "cidr-regex": "^3.1.1" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/is-core-module": { + "version": "2.12.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "has": "^1.0.3" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/npm/node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/is-lambda": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/isexe": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/jackspeak": { + "version": "2.3.6", + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "@isaacs/cliui": "^8.0.2" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + }, + "optionalDependencies": { + "@pkgjs/parseargs": "^0.11.0" + } + }, + "node_modules/npm/node_modules/json-parse-even-better-errors": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/json-stringify-nice": { + "version": "1.1.4", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/jsonparse": { + "version": "1.3.1", + "engines": [ + "node >= 0.2.0" + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff": { + "version": "6.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/just-diff-apply": { + "version": "5.5.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/libnpmaccess": { + "version": "8.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-package-arg": "^11.0.1", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmdiff": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.2.0", + "@npmcli/disparity-colors": "^3.0.0", + "@npmcli/installed-package-contents": "^2.0.2", + "binary-extensions": "^2.2.0", + "diff": "^5.1.0", + "minimatch": "^9.0.0", + "npm-package-arg": "^11.0.1", + "pacote": "^17.0.4", + "tar": "^6.2.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmexec": { + "version": "7.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.2.0", + "@npmcli/run-script": "^7.0.1", + "ci-info": "^3.7.1", + "npm-package-arg": "^11.0.1", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "proc-log": "^3.0.0", + "read": "^2.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "walk-up-path": "^3.0.1" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmfund": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.2.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmhook": { + "version": "10.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmorg": { + "version": "6.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpack": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/arborist": "^7.2.0", + "@npmcli/run-script": "^7.0.1", + "npm-package-arg": "^11.0.1", + "pacote": "^17.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmpublish": { + "version": "9.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ci-info": "^3.6.1", + "normalize-package-data": "^6.0.0", + "npm-package-arg": "^11.0.1", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7", + "sigstore": "^2.1.0", + "ssri": "^10.0.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmsearch": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmteam": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/libnpmversion": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.3", + "@npmcli/run-script": "^7.0.1", + "json-parse-even-better-errors": "^3.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/lru-cache": { + "version": "10.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "14 || >=16.14" + } + }, + "node_modules/npm/node_modules/make-fetch-happen": { + "version": "13.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/agent": "^2.0.0", + "cacache": "^18.0.0", + "http-cache-semantics": "^4.1.1", + "is-lambda": "^1.0.1", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/minimatch": { + "version": "9.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/minipass": { + "version": "7.0.4", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/minipass-collect": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-collect/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-fetch": { + "version": "3.0.4", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + }, + "optionalDependencies": { + "encoding": "^0.1.13" + } + }, + "node_modules/npm/node_modules/minipass-flush": { + "version": "1.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minipass-flush/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-json-stream": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + } + }, + "node_modules/npm/node_modules/minipass-json-stream/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline": { + "version": "1.2.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-pipeline/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized": { + "version": "1.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minipass-sized/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/minizlib": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/minizlib/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/mkdirp": { + "version": "1.0.4", + "inBundle": true, + "license": "MIT", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/ms": { + "version": "2.1.3", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/mute-stream": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/negotiator": { + "version": "0.6.3", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/npm/node_modules/node-gyp": { + "version": "9.4.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^11.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": "^12.13 || ^14.13 || >=16" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/abbrev": { + "version": "1.1.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/are-we-there-yet": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache": { + "version": "17.1.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^7.7.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/brace-expansion": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/glob": { + "version": "10.3.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + }, + "bin": { + "glob": "dist/cjs/src/bin.js" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minimatch": { + "version": "9.0.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^2.0.1" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/cacache/node_modules/minipass": { + "version": "7.0.3", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16 || 14 >=14.17" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/gauge": { + "version": "4.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/glob": { + "version": "7.2.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/lru-cache": { + "version": "7.18.3", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/make-fetch-happen": { + "version": "11.1.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/minipass": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/nopt": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^1.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/npmlog": { + "version": "6.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/readable-stream": { + "version": "3.6.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/npm/node_modules/node-gyp/node_modules/signal-exit": { + "version": "3.0.7", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/node-gyp/node_modules/which": { + "version": "2.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/nopt": { + "version": "7.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "abbrev": "^2.0.0" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/normalize-package-data": { + "version": "6.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "hosted-git-info": "^7.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-audit-report": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-bundled": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-install-checks": { + "version": "6.2.0", + "inBundle": true, + "license": "BSD-2-Clause", + "dependencies": { + "semver": "^7.1.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-normalize-package-bin": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-package-arg": { + "version": "11.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "hosted-git-info": "^7.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-packlist": { + "version": "8.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "ignore-walk": "^6.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-pick-manifest": { + "version": "9.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^11.0.0", + "semver": "^7.3.5" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-profile": { + "version": "9.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-registry-fetch": { + "version": "16.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "make-fetch-happen": "^13.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^11.0.0", + "proc-log": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npm-user-validate": { + "version": "2.0.0", + "inBundle": true, + "license": "BSD-2-Clause", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/npmlog": { + "version": "7.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "are-we-there-yet": "^4.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^5.0.0", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/once": { + "version": "1.4.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/npm/node_modules/p-map": { + "version": "4.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/pacote": { + "version": "17.0.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "@npmcli/git": "^5.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.0", + "cacache": "^18.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^11.0.0", + "npm-packlist": "^8.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^7.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^2.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + }, + "bin": { + "pacote": "lib/bin.js" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/parse-conflict-json": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/path-is-absolute": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/npm/node_modules/path-key": { + "version": "3.1.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/path-scurry": { + "version": "1.10.1", + "inBundle": true, + "license": "BlueOak-1.0.0", + "dependencies": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + }, + "engines": { + "node": ">=16 || 14 >=14.17" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/postcss-selector-parser": { + "version": "6.0.13", + "inBundle": true, + "license": "MIT", + "dependencies": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/npm/node_modules/proc-log": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/process": { + "version": "0.11.10", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 0.6.0" + } + }, + "node_modules/npm/node_modules/promise-all-reject-late": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-call-limit": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC", + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/promise-inflight": { + "version": "1.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/promise-retry": { + "version": "2.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/promzard": { + "version": "1.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "read": "^2.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/qrcode-terminal": { + "version": "0.12.0", + "inBundle": true, + "bin": { + "qrcode-terminal": "bin/qrcode-terminal.js" + } + }, + "node_modules/npm/node_modules/read": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "mute-stream": "~1.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-cmd-shim": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json": { + "version": "7.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^10.2.2", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/read-package-json-fast": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/readable-stream": { + "version": "4.4.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + }, + "engines": { + "node": "^12.22.0 || ^14.17.0 || >=16.0.0" + } + }, + "node_modules/npm/node_modules/retry": { + "version": "0.12.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/npm/node_modules/rimraf": { + "version": "3.0.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/brace-expansion": { + "version": "1.1.11", + "inBundle": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/glob": { + "version": "7.2.3", + "inBundle": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/rimraf/node_modules/minimatch": { + "version": "3.1.2", + "inBundle": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/npm/node_modules/safe-buffer": { + "version": "5.2.1", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/safer-buffer": { + "version": "2.1.2", + "inBundle": true, + "license": "MIT", + "optional": true + }, + "node_modules/npm/node_modules/semver": { + "version": "7.5.4", + "inBundle": true, + "license": "ISC", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/semver/node_modules/lru-cache": { + "version": "6.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/set-blocking": { + "version": "2.0.0", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/shebang-command": { + "version": "2.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "shebang-regex": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/shebang-regex": { + "version": "3.0.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/signal-exit": { + "version": "4.0.2", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/npm/node_modules/sigstore": { + "version": "2.1.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "@sigstore/sign": "^2.1.0", + "@sigstore/tuf": "^2.1.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/smart-buffer": { + "version": "4.2.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks": { + "version": "2.7.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.13.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/npm/node_modules/socks-proxy-agent": { + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/npm/node_modules/spdx-correct": { + "version": "3.2.0", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-exceptions": { + "version": "2.3.0", + "inBundle": true, + "license": "CC-BY-3.0" + }, + "node_modules/npm/node_modules/spdx-expression-parse": { + "version": "3.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "node_modules/npm/node_modules/spdx-license-ids": { + "version": "3.0.13", + "inBundle": true, + "license": "CC0-1.0" + }, + "node_modules/npm/node_modules/ssri": { + "version": "10.0.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^7.0.3" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/string_decoder": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "safe-buffer": "~5.2.0" + } + }, + "node_modules/npm/node_modules/string-width": { + "version": "4.2.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/string-width-cjs": { + "name": "string-width", + "version": "4.2.3", + "inBundle": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/strip-ansi-cjs": { + "name": "strip-ansi", + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/supports-color": { + "version": "9.4.0", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/npm/node_modules/tar": { + "version": "6.2.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass": { + "version": "2.1.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/fs-minipass/node_modules/minipass": { + "version": "3.3.6", + "inBundle": true, + "license": "ISC", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=8" + } + }, + "node_modules/npm/node_modules/text-table": { + "version": "0.2.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/tiny-relative-date": { + "version": "1.3.0", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/treeverse": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/tuf-js": { + "version": "2.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "@tufjs/models": "2.0.0", + "debug": "^4.3.4", + "make-fetch-happen": "^13.0.0" + }, + "engines": { + "node": "^16.14.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-filename": { + "version": "3.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "unique-slug": "^4.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/unique-slug": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/util-deprecate": { + "version": "1.0.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/validate-npm-package-license": { + "version": "3.0.4", + "inBundle": true, + "license": "Apache-2.0", + "dependencies": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "node_modules/npm/node_modules/validate-npm-package-name": { + "version": "5.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "builtins": "^5.0.0" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/walk-up-path": { + "version": "3.0.1", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/wcwidth": { + "version": "1.0.1", + "inBundle": true, + "license": "MIT", + "dependencies": { + "defaults": "^1.0.3" + } + }, + "node_modules/npm/node_modules/which": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC", + "dependencies": { + "isexe": "^3.1.1" + }, + "bin": { + "node-which": "bin/which.js" + }, + "engines": { + "node": "^16.13.0 || >=18.0.0" + } + }, + "node_modules/npm/node_modules/which/node_modules/isexe": { + "version": "3.1.1", + "inBundle": true, + "license": "ISC", + "engines": { + "node": ">=16" + } + }, + "node_modules/npm/node_modules/wide-align": { + "version": "1.1.5", + "inBundle": true, + "license": "ISC", + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/npm/node_modules/wrap-ansi": { + "version": "8.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi-cjs": { + "name": "wrap-ansi", + "version": "7.0.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-regex": { + "version": "6.0.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-regex?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/ansi-styles": { + "version": "6.2.1", + "inBundle": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/emoji-regex": { + "version": "9.2.2", + "inBundle": true, + "license": "MIT" + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/string-width": { + "version": "5.1.2", + "inBundle": true, + "license": "MIT", + "dependencies": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/npm/node_modules/wrap-ansi/node_modules/strip-ansi": { + "version": "7.1.0", + "inBundle": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^6.0.1" + }, + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/chalk/strip-ansi?sponsor=1" + } + }, + "node_modules/npm/node_modules/wrappy": { + "version": "1.0.2", + "inBundle": true, + "license": "ISC" + }, + "node_modules/npm/node_modules/write-file-atomic": { + "version": "5.0.1", + "inBundle": true, + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" }, "engines": { - "node": ">= 0.6" + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" } }, - "node_modules/neo-async": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", - "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", - "dev": true - }, - "node_modules/node-releases": { - "version": "2.0.12", - "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.12.tgz", - "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", - "dev": true + "node_modules/npm/node_modules/yallist": { + "version": "4.0.0", + "inBundle": true, + "license": "ISC" }, "node_modules/p-limit": { "version": "2.3.0", @@ -1501,6 +4570,11 @@ } }, "dependencies": { + "@ag-grid-community/core": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/@ag-grid-community/core/-/core-30.2.0.tgz", + "integrity": "sha512-BdRavyYxyl0rx3w4VKQlV9KHRR9TIJ9RFt4FIsWUxC+VDC+VEL64J1PzgJqXqgkM7Zmb+rYbluA2UPmRrQQJ9A==" + }, "@discoveryjs/json-ext": { "version": "0.5.7", "resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz", @@ -1578,12 +4652,6 @@ "@jridgewell/sourcemap-codec": "1.4.14" } }, - "@popperjs/core": { - "version": "2.11.8", - "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", - "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", - "peer": true - }, "@siemens/ix": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@siemens/ix/-/ix-2.0.1.tgz", @@ -1597,11 +4665,15 @@ "luxon": "^3.3.0" } }, + "@siemens/ix-aggrid": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@siemens/ix-aggrid/-/ix-aggrid-2.0.3.tgz", + "integrity": "sha512-hFAoQswGODYq1VaDti9W5SOdcapYT2k0tEwIxgibBEaDTNnG07jIMJj6l0Bm9fYndcHQEIGTfMZQIjGY7YjDiQ==" + }, "@siemens/ix-echarts": { "version": "2.0.1", "resolved": "https://registry.npmjs.org/@siemens/ix-echarts/-/ix-echarts-2.0.1.tgz", - "integrity": "sha512-cAhzGtC8xLBhqqGW2qpBZG5Sum//Hcbm7KD35rlKALGtYoTRqew9P/StQpNDSz6TclocCfT6lMjaarHeIK/+cQ==", - "requires": {} + "integrity": "sha512-cAhzGtC8xLBhqqGW2qpBZG5Sum//Hcbm7KD35rlKALGtYoTRqew9P/StQpNDSz6TclocCfT6lMjaarHeIK/+cQ==" }, "@siemens/ix-icons": { "version": "2.0.0", @@ -1816,22 +4888,19 @@ "version": "2.1.1", "resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-2.1.1.tgz", "integrity": "sha512-wy0mglZpDSiSS0XHrVR+BAdId2+yxPSoJW8fsna3ZpYSlufjvxnP4YbKTCBZnNIcGN4r6ZPXV55X4mYExOfLmw==", - "dev": true, - "requires": {} + "dev": true }, "@webpack-cli/info": { "version": "2.0.2", "resolved": "https://registry.npmjs.org/@webpack-cli/info/-/info-2.0.2.tgz", "integrity": "sha512-zLHQdI/Qs1UyT5UBdWNqsARasIA+AaF8t+4u2aS2nEpBQh2mWIVb8qAklq0eUENnC5mOItrIB4LiS9xMtph18A==", - "dev": true, - "requires": {} + "dev": true }, "@webpack-cli/serve": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/@webpack-cli/serve/-/serve-2.0.5.tgz", "integrity": "sha512-lqaoKnRYBdo1UgDX8uF24AfGMifWK19TxPmM5FHc2vAGxrJ/qtyUyFBWoY1tISZdelsQ5fBcOusifo5o5wSJxQ==", - "dev": true, - "requires": {} + "dev": true }, "@xtuc/ieee754": { "version": "1.2.0", @@ -1855,8 +4924,12 @@ "version": "1.9.0", "resolved": "https://registry.npmjs.org/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz", "integrity": "sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA==", - "dev": true, - "requires": {} + "dev": true + }, + "ag-grid-community": { + "version": "30.2.0", + "resolved": "https://registry.npmjs.org/ag-grid-community/-/ag-grid-community-30.2.0.tgz", + "integrity": "sha512-Gd6GXmtzEQSCDloBdRxxCDqnjTBRAOf/zzlaxxyyVBJgc+cePuNgGdplRUhT/rwIiDwvyuoynvxelVE/iYdXsA==" }, "ajv": { "version": "6.12.6", @@ -1874,21 +4947,13 @@ "version": "3.5.2", "resolved": "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz", "integrity": "sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==", - "dev": true, - "requires": {} + "dev": true }, "animejs": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/animejs/-/animejs-3.2.1.tgz", "integrity": "sha512-sWno3ugFryK5nhiDm/2BKeFCpZv7vzerWUcUPyAZLDhMek3+S/p418ldZJbJXo5ZUOpfm2kP2XRO4NJcULMy9A==" }, - "bootstrap": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.2.3.tgz", - "integrity": "sha512-cEKPM+fwb3cT8NzQZYEu4HilJ3anCrWqh3CHAok1p9jXqMPsPTBhU25fBckEJHJ/p+tTxTFTsFQGM+gaHpi3QQ==", - "peer": true, - "requires": {} - }, "browserslist": { "version": "4.21.9", "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz", @@ -2101,6 +5166,11 @@ "resolved": "https://registry.npmjs.org/hyperlist/-/hyperlist-1.0.0.tgz", "integrity": "sha512-1qAjO29EJW/mPyqY+9wFjruD2YWur1dPsPYmt9RvMX6P+8Cr2UmT75MCWjjK+1/4Jxc3sm/G3Kr8DzGgEDRG+Q==" }, + "i": { + "version": "0.3.7", + "resolved": "https://registry.npmjs.org/i/-/i-0.3.7.tgz", + "integrity": "sha512-FYz4wlXgkQwIPqhzC5TdNMLSE5+GS1IIDJZY/1ZiEPCT2S3COUVZeT5OW4BmW4r5LHLQuOosSwsvnroG9GR59Q==" + }, "import-local": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.1.0.tgz", @@ -2229,6 +5299,1970 @@ "integrity": "sha512-QzsYKWhXTWx8h1kIvqfnC++o0pEmpRQA/aenALsL2F4pqNVr7YzcdMlDij5WBnwftRbJCNJL/O7zdKaxKPHqgQ==", "dev": true }, + "npm": { + "version": "10.2.0", + "resolved": "https://registry.npmjs.org/npm/-/npm-10.2.0.tgz", + "integrity": "sha512-Auyq6d4cfg/SY4URjZE2aePLOPzK4lUD+qyMxY/7HbxAvCnOCKtMlyLPcbLSOq9lhEGBZN800S1o+UmfjA5dTg==", + "requires": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/arborist": "^7.2.0", + "@npmcli/config": "^8.0.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/map-workspaces": "^3.0.4", + "@npmcli/package-json": "^5.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.1", + "@sigstore/tuf": "^2.1.0", + "abbrev": "^2.0.0", + "archy": "~1.0.0", + "cacache": "^18.0.0", + "chalk": "^5.3.0", + "ci-info": "^3.8.0", + "cli-columns": "^4.0.0", + "cli-table3": "^0.6.3", + "columnify": "^1.6.0", + "fastest-levenshtein": "^1.0.16", + "fs-minipass": "^3.0.3", + "glob": "^10.3.10", + "graceful-fs": "^4.2.11", + "hosted-git-info": "^7.0.1", + "ini": "^4.1.1", + "init-package-json": "^6.0.0", + "is-cidr": "^4.0.2", + "json-parse-even-better-errors": "^3.0.0", + "libnpmaccess": "^8.0.1", + "libnpmdiff": "^6.0.2", + "libnpmexec": "^7.0.2", + "libnpmfund": "^5.0.0", + "libnpmhook": "^10.0.0", + "libnpmorg": "^6.0.1", + "libnpmpack": "^6.0.2", + "libnpmpublish": "^9.0.1", + "libnpmsearch": "^7.0.0", + "libnpmteam": "^6.0.0", + "libnpmversion": "^5.0.0", + "make-fetch-happen": "^13.0.0", + "minimatch": "^9.0.3", + "minipass": "^7.0.4", + "minipass-pipeline": "^1.2.4", + "ms": "^2.1.2", + "node-gyp": "^9.4.0", + "nopt": "^7.2.0", + "normalize-package-data": "^6.0.0", + "npm-audit-report": "^5.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.1", + "npm-pick-manifest": "^9.0.0", + "npm-profile": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npm-user-validate": "^2.0.0", + "npmlog": "^7.0.1", + "p-map": "^4.0.0", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.1", + "proc-log": "^3.0.0", + "qrcode-terminal": "^0.12.0", + "read": "^2.1.0", + "semver": "^7.5.4", + "spdx-expression-parse": "^3.0.1", + "ssri": "^10.0.5", + "strip-ansi": "^6.0.1", + "supports-color": "^9.4.0", + "tar": "^6.2.0", + "text-table": "~0.2.0", + "tiny-relative-date": "^1.3.0", + "treeverse": "^3.0.0", + "validate-npm-package-name": "^5.0.0", + "which": "^4.0.0", + "write-file-atomic": "^5.0.1" + }, + "dependencies": { + "@colors/colors": { + "version": "1.5.0", + "bundled": true, + "optional": true + }, + "@isaacs/cliui": { + "version": "8.0.2", + "bundled": true, + "requires": { + "string-width": "^5.1.2", + "string-width-cjs": "npm:string-width@^4.2.0", + "strip-ansi": "^7.0.1", + "strip-ansi-cjs": "npm:strip-ansi@^6.0.1", + "wrap-ansi": "^8.1.0", + "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "bundled": true + }, + "emoji-regex": { + "version": "9.2.2", + "bundled": true + }, + "string-width": { + "version": "5.1.2", + "bundled": true, + "requires": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + } + }, + "strip-ansi": { + "version": "7.1.0", + "bundled": true, + "requires": { + "ansi-regex": "^6.0.1" + } + } + } + }, + "@isaacs/string-locale-compare": { + "version": "1.1.0", + "bundled": true + }, + "@npmcli/agent": { + "version": "2.2.0", + "bundled": true, + "requires": { + "agent-base": "^7.1.0", + "http-proxy-agent": "^7.0.0", + "https-proxy-agent": "^7.0.1", + "lru-cache": "^10.0.1", + "socks-proxy-agent": "^8.0.1" + }, + "dependencies": { + "agent-base": { + "version": "7.1.0", + "bundled": true, + "requires": { + "debug": "^4.3.4" + } + }, + "http-proxy-agent": { + "version": "7.0.0", + "bundled": true, + "requires": { + "agent-base": "^7.1.0", + "debug": "^4.3.4" + } + }, + "https-proxy-agent": { + "version": "7.0.1", + "bundled": true, + "requires": { + "agent-base": "^7.0.2", + "debug": "4" + } + }, + "socks-proxy-agent": { + "version": "8.0.1", + "bundled": true, + "requires": { + "agent-base": "^7.0.1", + "debug": "^4.3.4", + "socks": "^2.7.1" + } + } + } + }, + "@npmcli/arborist": { + "version": "7.2.0", + "bundled": true, + "requires": { + "@isaacs/string-locale-compare": "^1.1.0", + "@npmcli/fs": "^3.1.0", + "@npmcli/installed-package-contents": "^2.0.2", + "@npmcli/map-workspaces": "^3.0.2", + "@npmcli/metavuln-calculator": "^7.0.0", + "@npmcli/name-from-folder": "^2.0.0", + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/package-json": "^5.0.0", + "@npmcli/query": "^3.0.1", + "@npmcli/run-script": "^7.0.1", + "bin-links": "^4.0.1", + "cacache": "^18.0.0", + "common-ancestor-path": "^1.0.1", + "hosted-git-info": "^7.0.1", + "json-parse-even-better-errors": "^3.0.0", + "json-stringify-nice": "^1.1.4", + "minimatch": "^9.0.0", + "nopt": "^7.0.0", + "npm-install-checks": "^6.2.0", + "npm-package-arg": "^11.0.1", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "parse-conflict-json": "^3.0.0", + "proc-log": "^3.0.0", + "promise-all-reject-late": "^1.0.0", + "promise-call-limit": "^1.0.2", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "ssri": "^10.0.5", + "treeverse": "^3.0.0", + "walk-up-path": "^3.0.1" + } + }, + "@npmcli/config": { + "version": "8.0.0", + "bundled": true, + "requires": { + "@npmcli/map-workspaces": "^3.0.2", + "ci-info": "^3.8.0", + "ini": "^4.1.0", + "nopt": "^7.0.0", + "proc-log": "^3.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.5", + "walk-up-path": "^3.0.1" + } + }, + "@npmcli/disparity-colors": { + "version": "3.0.0", + "bundled": true, + "requires": { + "ansi-styles": "^4.3.0" + } + }, + "@npmcli/fs": { + "version": "3.1.0", + "bundled": true, + "requires": { + "semver": "^7.3.5" + } + }, + "@npmcli/git": { + "version": "5.0.3", + "bundled": true, + "requires": { + "@npmcli/promise-spawn": "^7.0.0", + "lru-cache": "^10.0.1", + "npm-pick-manifest": "^9.0.0", + "proc-log": "^3.0.0", + "promise-inflight": "^1.0.1", + "promise-retry": "^2.0.1", + "semver": "^7.3.5", + "which": "^4.0.0" + } + }, + "@npmcli/installed-package-contents": { + "version": "2.0.2", + "bundled": true, + "requires": { + "npm-bundled": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + } + }, + "@npmcli/map-workspaces": { + "version": "3.0.4", + "bundled": true, + "requires": { + "@npmcli/name-from-folder": "^2.0.0", + "glob": "^10.2.2", + "minimatch": "^9.0.0", + "read-package-json-fast": "^3.0.0" + } + }, + "@npmcli/metavuln-calculator": { + "version": "7.0.0", + "bundled": true, + "requires": { + "cacache": "^18.0.0", + "json-parse-even-better-errors": "^3.0.0", + "pacote": "^17.0.0", + "semver": "^7.3.5" + } + }, + "@npmcli/name-from-folder": { + "version": "2.0.0", + "bundled": true + }, + "@npmcli/node-gyp": { + "version": "3.0.0", + "bundled": true + }, + "@npmcli/package-json": { + "version": "5.0.0", + "bundled": true, + "requires": { + "@npmcli/git": "^5.0.0", + "glob": "^10.2.2", + "hosted-git-info": "^7.0.0", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "proc-log": "^3.0.0", + "semver": "^7.5.3" + } + }, + "@npmcli/promise-spawn": { + "version": "7.0.0", + "bundled": true, + "requires": { + "which": "^4.0.0" + } + }, + "@npmcli/query": { + "version": "3.0.1", + "bundled": true, + "requires": { + "postcss-selector-parser": "^6.0.10" + } + }, + "@npmcli/run-script": { + "version": "7.0.1", + "bundled": true, + "requires": { + "@npmcli/node-gyp": "^3.0.0", + "@npmcli/promise-spawn": "^7.0.0", + "node-gyp": "^9.0.0", + "read-package-json-fast": "^3.0.0", + "which": "^4.0.0" + } + }, + "@pkgjs/parseargs": { + "version": "0.11.0", + "bundled": true, + "optional": true + }, + "@sigstore/bundle": { + "version": "2.1.0", + "bundled": true, + "requires": { + "@sigstore/protobuf-specs": "^0.2.1" + } + }, + "@sigstore/protobuf-specs": { + "version": "0.2.1", + "bundled": true + }, + "@sigstore/sign": { + "version": "2.1.0", + "bundled": true, + "requires": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "make-fetch-happen": "^13.0.0" + } + }, + "@sigstore/tuf": { + "version": "2.1.0", + "bundled": true, + "requires": { + "@sigstore/protobuf-specs": "^0.2.1", + "tuf-js": "^2.1.0" + } + }, + "@tootallnate/once": { + "version": "2.0.0", + "bundled": true + }, + "@tufjs/canonical-json": { + "version": "2.0.0", + "bundled": true + }, + "@tufjs/models": { + "version": "2.0.0", + "bundled": true, + "requires": { + "@tufjs/canonical-json": "2.0.0", + "minimatch": "^9.0.3" + } + }, + "abbrev": { + "version": "2.0.0", + "bundled": true + }, + "abort-controller": { + "version": "3.0.0", + "bundled": true, + "requires": { + "event-target-shim": "^5.0.0" + } + }, + "agent-base": { + "version": "6.0.2", + "bundled": true, + "requires": { + "debug": "4" + } + }, + "agentkeepalive": { + "version": "4.5.0", + "bundled": true, + "requires": { + "humanize-ms": "^1.2.1" + } + }, + "aggregate-error": { + "version": "3.1.0", + "bundled": true, + "requires": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + } + }, + "ansi-regex": { + "version": "5.0.1", + "bundled": true + }, + "ansi-styles": { + "version": "4.3.0", + "bundled": true, + "requires": { + "color-convert": "^2.0.1" + } + }, + "aproba": { + "version": "2.0.0", + "bundled": true + }, + "archy": { + "version": "1.0.0", + "bundled": true + }, + "are-we-there-yet": { + "version": "4.0.0", + "bundled": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^4.1.0" + } + }, + "balanced-match": { + "version": "1.0.2", + "bundled": true + }, + "base64-js": { + "version": "1.5.1", + "bundled": true + }, + "bin-links": { + "version": "4.0.2", + "bundled": true, + "requires": { + "cmd-shim": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "read-cmd-shim": "^4.0.0", + "write-file-atomic": "^5.0.0" + } + }, + "binary-extensions": { + "version": "2.2.0", + "bundled": true + }, + "brace-expansion": { + "version": "2.0.1", + "bundled": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "buffer": { + "version": "6.0.3", + "bundled": true, + "requires": { + "base64-js": "^1.3.1", + "ieee754": "^1.2.1" + } + }, + "builtins": { + "version": "5.0.1", + "bundled": true, + "requires": { + "semver": "^7.0.0" + } + }, + "cacache": { + "version": "18.0.0", + "bundled": true, + "requires": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^10.0.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + } + }, + "chalk": { + "version": "5.3.0", + "bundled": true + }, + "chownr": { + "version": "2.0.0", + "bundled": true + }, + "ci-info": { + "version": "3.8.0", + "bundled": true + }, + "cidr-regex": { + "version": "3.1.1", + "bundled": true, + "requires": { + "ip-regex": "^4.1.0" + } + }, + "clean-stack": { + "version": "2.2.0", + "bundled": true + }, + "cli-columns": { + "version": "4.0.0", + "bundled": true, + "requires": { + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1" + } + }, + "cli-table3": { + "version": "0.6.3", + "bundled": true, + "requires": { + "@colors/colors": "1.5.0", + "string-width": "^4.2.0" + } + }, + "clone": { + "version": "1.0.4", + "bundled": true + }, + "cmd-shim": { + "version": "6.0.1", + "bundled": true + }, + "color-convert": { + "version": "2.0.1", + "bundled": true, + "requires": { + "color-name": "~1.1.4" + } + }, + "color-name": { + "version": "1.1.4", + "bundled": true + }, + "color-support": { + "version": "1.1.3", + "bundled": true + }, + "columnify": { + "version": "1.6.0", + "bundled": true, + "requires": { + "strip-ansi": "^6.0.1", + "wcwidth": "^1.0.0" + } + }, + "common-ancestor-path": { + "version": "1.0.1", + "bundled": true + }, + "concat-map": { + "version": "0.0.1", + "bundled": true + }, + "console-control-strings": { + "version": "1.1.0", + "bundled": true + }, + "cross-spawn": { + "version": "7.0.3", + "bundled": true, + "requires": { + "path-key": "^3.1.0", + "shebang-command": "^2.0.0", + "which": "^2.0.1" + }, + "dependencies": { + "which": { + "version": "2.0.2", + "bundled": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "cssesc": { + "version": "3.0.0", + "bundled": true + }, + "debug": { + "version": "4.3.4", + "bundled": true, + "requires": { + "ms": "2.1.2" + }, + "dependencies": { + "ms": { + "version": "2.1.2", + "bundled": true + } + } + }, + "defaults": { + "version": "1.0.4", + "bundled": true, + "requires": { + "clone": "^1.0.2" + } + }, + "delegates": { + "version": "1.0.0", + "bundled": true + }, + "diff": { + "version": "5.1.0", + "bundled": true + }, + "eastasianwidth": { + "version": "0.2.0", + "bundled": true + }, + "emoji-regex": { + "version": "8.0.0", + "bundled": true + }, + "encoding": { + "version": "0.1.13", + "bundled": true, + "optional": true, + "requires": { + "iconv-lite": "^0.6.2" + } + }, + "env-paths": { + "version": "2.2.1", + "bundled": true + }, + "err-code": { + "version": "2.0.3", + "bundled": true + }, + "event-target-shim": { + "version": "5.0.1", + "bundled": true + }, + "events": { + "version": "3.3.0", + "bundled": true + }, + "exponential-backoff": { + "version": "3.1.1", + "bundled": true + }, + "fastest-levenshtein": { + "version": "1.0.16", + "bundled": true + }, + "foreground-child": { + "version": "3.1.1", + "bundled": true, + "requires": { + "cross-spawn": "^7.0.0", + "signal-exit": "^4.0.1" + } + }, + "fs-minipass": { + "version": "3.0.3", + "bundled": true, + "requires": { + "minipass": "^7.0.3" + } + }, + "fs.realpath": { + "version": "1.0.0", + "bundled": true + }, + "function-bind": { + "version": "1.1.1", + "bundled": true + }, + "gauge": { + "version": "5.0.1", + "bundled": true, + "requires": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^4.0.1", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + } + }, + "glob": { + "version": "10.3.10", + "bundled": true, + "requires": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.3.5", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + } + }, + "graceful-fs": { + "version": "4.2.11", + "bundled": true + }, + "has": { + "version": "1.0.3", + "bundled": true, + "requires": { + "function-bind": "^1.1.1" + } + }, + "has-unicode": { + "version": "2.0.1", + "bundled": true + }, + "hosted-git-info": { + "version": "7.0.1", + "bundled": true, + "requires": { + "lru-cache": "^10.0.1" + } + }, + "http-cache-semantics": { + "version": "4.1.1", + "bundled": true + }, + "http-proxy-agent": { + "version": "5.0.0", + "bundled": true, + "requires": { + "@tootallnate/once": "2", + "agent-base": "6", + "debug": "4" + } + }, + "https-proxy-agent": { + "version": "5.0.1", + "bundled": true, + "requires": { + "agent-base": "6", + "debug": "4" + } + }, + "humanize-ms": { + "version": "1.2.1", + "bundled": true, + "requires": { + "ms": "^2.0.0" + } + }, + "iconv-lite": { + "version": "0.6.3", + "bundled": true, + "optional": true, + "requires": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + } + }, + "ieee754": { + "version": "1.2.1", + "bundled": true + }, + "ignore-walk": { + "version": "6.0.3", + "bundled": true, + "requires": { + "minimatch": "^9.0.0" + } + }, + "imurmurhash": { + "version": "0.1.4", + "bundled": true + }, + "indent-string": { + "version": "4.0.0", + "bundled": true + }, + "inflight": { + "version": "1.0.6", + "bundled": true, + "requires": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "inherits": { + "version": "2.0.4", + "bundled": true + }, + "ini": { + "version": "4.1.1", + "bundled": true + }, + "init-package-json": { + "version": "6.0.0", + "bundled": true, + "requires": { + "npm-package-arg": "^11.0.0", + "promzard": "^1.0.0", + "read": "^2.0.0", + "read-package-json": "^7.0.0", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4", + "validate-npm-package-name": "^5.0.0" + } + }, + "ip": { + "version": "2.0.0", + "bundled": true + }, + "ip-regex": { + "version": "4.3.0", + "bundled": true + }, + "is-cidr": { + "version": "4.0.2", + "bundled": true, + "requires": { + "cidr-regex": "^3.1.1" + } + }, + "is-core-module": { + "version": "2.12.1", + "bundled": true, + "requires": { + "has": "^1.0.3" + } + }, + "is-fullwidth-code-point": { + "version": "3.0.0", + "bundled": true + }, + "is-lambda": { + "version": "1.0.1", + "bundled": true + }, + "isexe": { + "version": "2.0.0", + "bundled": true + }, + "jackspeak": { + "version": "2.3.6", + "bundled": true, + "requires": { + "@isaacs/cliui": "^8.0.2", + "@pkgjs/parseargs": "^0.11.0" + } + }, + "json-parse-even-better-errors": { + "version": "3.0.0", + "bundled": true + }, + "json-stringify-nice": { + "version": "1.1.4", + "bundled": true + }, + "jsonparse": { + "version": "1.3.1", + "bundled": true + }, + "just-diff": { + "version": "6.0.2", + "bundled": true + }, + "just-diff-apply": { + "version": "5.5.0", + "bundled": true + }, + "libnpmaccess": { + "version": "8.0.1", + "bundled": true, + "requires": { + "npm-package-arg": "^11.0.1", + "npm-registry-fetch": "^16.0.0" + } + }, + "libnpmdiff": { + "version": "6.0.2", + "bundled": true, + "requires": { + "@npmcli/arborist": "^7.2.0", + "@npmcli/disparity-colors": "^3.0.0", + "@npmcli/installed-package-contents": "^2.0.2", + "binary-extensions": "^2.2.0", + "diff": "^5.1.0", + "minimatch": "^9.0.0", + "npm-package-arg": "^11.0.1", + "pacote": "^17.0.4", + "tar": "^6.2.0" + } + }, + "libnpmexec": { + "version": "7.0.2", + "bundled": true, + "requires": { + "@npmcli/arborist": "^7.2.0", + "@npmcli/run-script": "^7.0.1", + "ci-info": "^3.7.1", + "npm-package-arg": "^11.0.1", + "npmlog": "^7.0.1", + "pacote": "^17.0.4", + "proc-log": "^3.0.0", + "read": "^2.0.0", + "read-package-json-fast": "^3.0.2", + "semver": "^7.3.7", + "walk-up-path": "^3.0.1" + } + }, + "libnpmfund": { + "version": "5.0.0", + "bundled": true, + "requires": { + "@npmcli/arborist": "^7.2.0" + } + }, + "libnpmhook": { + "version": "10.0.0", + "bundled": true, + "requires": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + } + }, + "libnpmorg": { + "version": "6.0.1", + "bundled": true, + "requires": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + } + }, + "libnpmpack": { + "version": "6.0.2", + "bundled": true, + "requires": { + "@npmcli/arborist": "^7.2.0", + "@npmcli/run-script": "^7.0.1", + "npm-package-arg": "^11.0.1", + "pacote": "^17.0.4" + } + }, + "libnpmpublish": { + "version": "9.0.1", + "bundled": true, + "requires": { + "ci-info": "^3.6.1", + "normalize-package-data": "^6.0.0", + "npm-package-arg": "^11.0.1", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7", + "sigstore": "^2.1.0", + "ssri": "^10.0.5" + } + }, + "libnpmsearch": { + "version": "7.0.0", + "bundled": true, + "requires": { + "npm-registry-fetch": "^16.0.0" + } + }, + "libnpmteam": { + "version": "6.0.0", + "bundled": true, + "requires": { + "aproba": "^2.0.0", + "npm-registry-fetch": "^16.0.0" + } + }, + "libnpmversion": { + "version": "5.0.0", + "bundled": true, + "requires": { + "@npmcli/git": "^5.0.3", + "@npmcli/run-script": "^7.0.1", + "json-parse-even-better-errors": "^3.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.7" + } + }, + "lru-cache": { + "version": "10.0.1", + "bundled": true + }, + "make-fetch-happen": { + "version": "13.0.0", + "bundled": true, + "requires": { + "@npmcli/agent": "^2.0.0", + "cacache": "^18.0.0", + "http-cache-semantics": "^4.1.1", + "is-lambda": "^1.0.1", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "ssri": "^10.0.0" + } + }, + "minimatch": { + "version": "9.0.3", + "bundled": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "minipass": { + "version": "7.0.4", + "bundled": true + }, + "minipass-collect": { + "version": "1.0.2", + "bundled": true, + "requires": { + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "minipass-fetch": { + "version": "3.0.4", + "bundled": true, + "requires": { + "encoding": "^0.1.13", + "minipass": "^7.0.3", + "minipass-sized": "^1.0.3", + "minizlib": "^2.1.2" + } + }, + "minipass-flush": { + "version": "1.0.5", + "bundled": true, + "requires": { + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "minipass-json-stream": { + "version": "1.0.1", + "bundled": true, + "requires": { + "jsonparse": "^1.3.1", + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "minipass-pipeline": { + "version": "1.2.4", + "bundled": true, + "requires": { + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "minipass-sized": { + "version": "1.0.3", + "bundled": true, + "requires": { + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "minizlib": { + "version": "2.1.2", + "bundled": true, + "requires": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "mkdirp": { + "version": "1.0.4", + "bundled": true + }, + "ms": { + "version": "2.1.3", + "bundled": true + }, + "mute-stream": { + "version": "1.0.0", + "bundled": true + }, + "negotiator": { + "version": "0.6.3", + "bundled": true + }, + "node-gyp": { + "version": "9.4.0", + "bundled": true, + "requires": { + "env-paths": "^2.2.0", + "exponential-backoff": "^3.1.1", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^11.0.3", + "nopt": "^6.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "dependencies": { + "abbrev": { + "version": "1.1.1", + "bundled": true + }, + "are-we-there-yet": { + "version": "3.0.1", + "bundled": true, + "requires": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + } + }, + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "cacache": { + "version": "17.1.4", + "bundled": true, + "requires": { + "@npmcli/fs": "^3.1.0", + "fs-minipass": "^3.0.0", + "glob": "^10.2.2", + "lru-cache": "^7.7.1", + "minipass": "^7.0.3", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "p-map": "^4.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11", + "unique-filename": "^3.0.0" + }, + "dependencies": { + "brace-expansion": { + "version": "2.0.1", + "bundled": true, + "requires": { + "balanced-match": "^1.0.0" + } + }, + "glob": { + "version": "10.3.3", + "bundled": true, + "requires": { + "foreground-child": "^3.1.0", + "jackspeak": "^2.0.3", + "minimatch": "^9.0.1", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0", + "path-scurry": "^1.10.1" + } + }, + "minimatch": { + "version": "9.0.3", + "bundled": true, + "requires": { + "brace-expansion": "^2.0.1" + } + }, + "minipass": { + "version": "7.0.3", + "bundled": true + } + } + }, + "gauge": { + "version": "4.0.4", + "bundled": true, + "requires": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + } + }, + "glob": { + "version": "7.2.3", + "bundled": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "lru-cache": { + "version": "7.18.3", + "bundled": true + }, + "make-fetch-happen": { + "version": "11.1.1", + "bundled": true, + "requires": { + "agentkeepalive": "^4.2.1", + "cacache": "^17.0.0", + "http-cache-semantics": "^4.1.1", + "http-proxy-agent": "^5.0.0", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^7.7.1", + "minipass": "^5.0.0", + "minipass-fetch": "^3.0.0", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.3", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^7.0.0", + "ssri": "^10.0.0" + } + }, + "minimatch": { + "version": "3.1.2", + "bundled": true, + "requires": { + "brace-expansion": "^1.1.7" + } + }, + "minipass": { + "version": "5.0.0", + "bundled": true + }, + "nopt": { + "version": "6.0.0", + "bundled": true, + "requires": { + "abbrev": "^1.0.0" + } + }, + "npmlog": { + "version": "6.0.2", + "bundled": true, + "requires": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + } + }, + "readable-stream": { + "version": "3.6.2", + "bundled": true, + "requires": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + } + }, + "signal-exit": { + "version": "3.0.7", + "bundled": true + }, + "which": { + "version": "2.0.2", + "bundled": true, + "requires": { + "isexe": "^2.0.0" + } + } + } + }, + "nopt": { + "version": "7.2.0", + "bundled": true, + "requires": { + "abbrev": "^2.0.0" + } + }, + "normalize-package-data": { + "version": "6.0.0", + "bundled": true, + "requires": { + "hosted-git-info": "^7.0.0", + "is-core-module": "^2.8.1", + "semver": "^7.3.5", + "validate-npm-package-license": "^3.0.4" + } + }, + "npm-audit-report": { + "version": "5.0.0", + "bundled": true + }, + "npm-bundled": { + "version": "3.0.0", + "bundled": true, + "requires": { + "npm-normalize-package-bin": "^3.0.0" + } + }, + "npm-install-checks": { + "version": "6.2.0", + "bundled": true, + "requires": { + "semver": "^7.1.1" + } + }, + "npm-normalize-package-bin": { + "version": "3.0.1", + "bundled": true + }, + "npm-package-arg": { + "version": "11.0.1", + "bundled": true, + "requires": { + "hosted-git-info": "^7.0.0", + "proc-log": "^3.0.0", + "semver": "^7.3.5", + "validate-npm-package-name": "^5.0.0" + } + }, + "npm-packlist": { + "version": "8.0.0", + "bundled": true, + "requires": { + "ignore-walk": "^6.0.0" + } + }, + "npm-pick-manifest": { + "version": "9.0.0", + "bundled": true, + "requires": { + "npm-install-checks": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0", + "npm-package-arg": "^11.0.0", + "semver": "^7.3.5" + } + }, + "npm-profile": { + "version": "9.0.0", + "bundled": true, + "requires": { + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0" + } + }, + "npm-registry-fetch": { + "version": "16.0.0", + "bundled": true, + "requires": { + "make-fetch-happen": "^13.0.0", + "minipass": "^7.0.2", + "minipass-fetch": "^3.0.0", + "minipass-json-stream": "^1.0.1", + "minizlib": "^2.1.2", + "npm-package-arg": "^11.0.0", + "proc-log": "^3.0.0" + } + }, + "npm-user-validate": { + "version": "2.0.0", + "bundled": true + }, + "npmlog": { + "version": "7.0.1", + "bundled": true, + "requires": { + "are-we-there-yet": "^4.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^5.0.0", + "set-blocking": "^2.0.0" + } + }, + "once": { + "version": "1.4.0", + "bundled": true, + "requires": { + "wrappy": "1" + } + }, + "p-map": { + "version": "4.0.0", + "bundled": true, + "requires": { + "aggregate-error": "^3.0.0" + } + }, + "pacote": { + "version": "17.0.4", + "bundled": true, + "requires": { + "@npmcli/git": "^5.0.0", + "@npmcli/installed-package-contents": "^2.0.1", + "@npmcli/promise-spawn": "^7.0.0", + "@npmcli/run-script": "^7.0.0", + "cacache": "^18.0.0", + "fs-minipass": "^3.0.0", + "minipass": "^7.0.2", + "npm-package-arg": "^11.0.0", + "npm-packlist": "^8.0.0", + "npm-pick-manifest": "^9.0.0", + "npm-registry-fetch": "^16.0.0", + "proc-log": "^3.0.0", + "promise-retry": "^2.0.1", + "read-package-json": "^7.0.0", + "read-package-json-fast": "^3.0.0", + "sigstore": "^2.0.0", + "ssri": "^10.0.0", + "tar": "^6.1.11" + } + }, + "parse-conflict-json": { + "version": "3.0.1", + "bundled": true, + "requires": { + "json-parse-even-better-errors": "^3.0.0", + "just-diff": "^6.0.0", + "just-diff-apply": "^5.2.0" + } + }, + "path-is-absolute": { + "version": "1.0.1", + "bundled": true + }, + "path-key": { + "version": "3.1.1", + "bundled": true + }, + "path-scurry": { + "version": "1.10.1", + "bundled": true, + "requires": { + "lru-cache": "^9.1.1 || ^10.0.0", + "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0" + } + }, + "postcss-selector-parser": { + "version": "6.0.13", + "bundled": true, + "requires": { + "cssesc": "^3.0.0", + "util-deprecate": "^1.0.2" + } + }, + "proc-log": { + "version": "3.0.0", + "bundled": true + }, + "process": { + "version": "0.11.10", + "bundled": true + }, + "promise-all-reject-late": { + "version": "1.0.1", + "bundled": true + }, + "promise-call-limit": { + "version": "1.0.2", + "bundled": true + }, + "promise-inflight": { + "version": "1.0.1", + "bundled": true + }, + "promise-retry": { + "version": "2.0.1", + "bundled": true, + "requires": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + } + }, + "promzard": { + "version": "1.0.0", + "bundled": true, + "requires": { + "read": "^2.0.0" + } + }, + "qrcode-terminal": { + "version": "0.12.0", + "bundled": true + }, + "read": { + "version": "2.1.0", + "bundled": true, + "requires": { + "mute-stream": "~1.0.0" + } + }, + "read-cmd-shim": { + "version": "4.0.0", + "bundled": true + }, + "read-package-json": { + "version": "7.0.0", + "bundled": true, + "requires": { + "glob": "^10.2.2", + "json-parse-even-better-errors": "^3.0.0", + "normalize-package-data": "^6.0.0", + "npm-normalize-package-bin": "^3.0.0" + } + }, + "read-package-json-fast": { + "version": "3.0.2", + "bundled": true, + "requires": { + "json-parse-even-better-errors": "^3.0.0", + "npm-normalize-package-bin": "^3.0.0" + } + }, + "readable-stream": { + "version": "4.4.0", + "bundled": true, + "requires": { + "abort-controller": "^3.0.0", + "buffer": "^6.0.3", + "events": "^3.3.0", + "process": "^0.11.10" + } + }, + "retry": { + "version": "0.12.0", + "bundled": true + }, + "rimraf": { + "version": "3.0.2", + "bundled": true, + "requires": { + "glob": "^7.1.3" + }, + "dependencies": { + "brace-expansion": { + "version": "1.1.11", + "bundled": true, + "requires": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "glob": { + "version": "7.2.3", + "bundled": true, + "requires": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + } + }, + "minimatch": { + "version": "3.1.2", + "bundled": true, + "requires": { + "brace-expansion": "^1.1.7" + } + } + } + }, + "safe-buffer": { + "version": "5.2.1", + "bundled": true + }, + "safer-buffer": { + "version": "2.1.2", + "bundled": true, + "optional": true + }, + "semver": { + "version": "7.5.4", + "bundled": true, + "requires": { + "lru-cache": "^6.0.0" + }, + "dependencies": { + "lru-cache": { + "version": "6.0.0", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "set-blocking": { + "version": "2.0.0", + "bundled": true + }, + "shebang-command": { + "version": "2.0.0", + "bundled": true, + "requires": { + "shebang-regex": "^3.0.0" + } + }, + "shebang-regex": { + "version": "3.0.0", + "bundled": true + }, + "signal-exit": { + "version": "4.0.2", + "bundled": true + }, + "sigstore": { + "version": "2.1.0", + "bundled": true, + "requires": { + "@sigstore/bundle": "^2.1.0", + "@sigstore/protobuf-specs": "^0.2.1", + "@sigstore/sign": "^2.1.0", + "@sigstore/tuf": "^2.1.0" + } + }, + "smart-buffer": { + "version": "4.2.0", + "bundled": true + }, + "socks": { + "version": "2.7.1", + "bundled": true, + "requires": { + "ip": "^2.0.0", + "smart-buffer": "^4.2.0" + } + }, + "socks-proxy-agent": { + "version": "7.0.0", + "bundled": true, + "requires": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + } + }, + "spdx-correct": { + "version": "3.2.0", + "bundled": true, + "requires": { + "spdx-expression-parse": "^3.0.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-exceptions": { + "version": "2.3.0", + "bundled": true + }, + "spdx-expression-parse": { + "version": "3.0.1", + "bundled": true, + "requires": { + "spdx-exceptions": "^2.1.0", + "spdx-license-ids": "^3.0.0" + } + }, + "spdx-license-ids": { + "version": "3.0.13", + "bundled": true + }, + "ssri": { + "version": "10.0.5", + "bundled": true, + "requires": { + "minipass": "^7.0.3" + } + }, + "string_decoder": { + "version": "1.3.0", + "bundled": true, + "requires": { + "safe-buffer": "~5.2.0" + } + }, + "string-width": { + "version": "4.2.3", + "bundled": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "string-width-cjs": { + "version": "npm:string-width@4.2.3", + "bundled": true, + "requires": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + } + }, + "strip-ansi": { + "version": "6.0.1", + "bundled": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "strip-ansi-cjs": { + "version": "npm:strip-ansi@6.0.1", + "bundled": true, + "requires": { + "ansi-regex": "^5.0.1" + } + }, + "supports-color": { + "version": "9.4.0", + "bundled": true + }, + "tar": { + "version": "6.2.0", + "bundled": true, + "requires": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "dependencies": { + "fs-minipass": { + "version": "2.1.0", + "bundled": true, + "requires": { + "minipass": "^3.0.0" + }, + "dependencies": { + "minipass": { + "version": "3.3.6", + "bundled": true, + "requires": { + "yallist": "^4.0.0" + } + } + } + }, + "minipass": { + "version": "5.0.0", + "bundled": true + } + } + }, + "text-table": { + "version": "0.2.0", + "bundled": true + }, + "tiny-relative-date": { + "version": "1.3.0", + "bundled": true + }, + "treeverse": { + "version": "3.0.0", + "bundled": true + }, + "tuf-js": { + "version": "2.1.0", + "bundled": true, + "requires": { + "@tufjs/models": "2.0.0", + "debug": "^4.3.4", + "make-fetch-happen": "^13.0.0" + } + }, + "unique-filename": { + "version": "3.0.0", + "bundled": true, + "requires": { + "unique-slug": "^4.0.0" + } + }, + "unique-slug": { + "version": "4.0.0", + "bundled": true, + "requires": { + "imurmurhash": "^0.1.4" + } + }, + "util-deprecate": { + "version": "1.0.2", + "bundled": true + }, + "validate-npm-package-license": { + "version": "3.0.4", + "bundled": true, + "requires": { + "spdx-correct": "^3.0.0", + "spdx-expression-parse": "^3.0.0" + } + }, + "validate-npm-package-name": { + "version": "5.0.0", + "bundled": true, + "requires": { + "builtins": "^5.0.0" + } + }, + "walk-up-path": { + "version": "3.0.1", + "bundled": true + }, + "wcwidth": { + "version": "1.0.1", + "bundled": true, + "requires": { + "defaults": "^1.0.3" + } + }, + "which": { + "version": "4.0.0", + "bundled": true, + "requires": { + "isexe": "^3.1.1" + }, + "dependencies": { + "isexe": { + "version": "3.1.1", + "bundled": true + } + } + }, + "wide-align": { + "version": "1.1.5", + "bundled": true, + "requires": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "wrap-ansi": { + "version": "8.1.0", + "bundled": true, + "requires": { + "ansi-styles": "^6.1.0", + "string-width": "^5.0.1", + "strip-ansi": "^7.0.1" + }, + "dependencies": { + "ansi-regex": { + "version": "6.0.1", + "bundled": true + }, + "ansi-styles": { + "version": "6.2.1", + "bundled": true + }, + "emoji-regex": { + "version": "9.2.2", + "bundled": true + }, + "string-width": { + "version": "5.1.2", + "bundled": true, + "requires": { + "eastasianwidth": "^0.2.0", + "emoji-regex": "^9.2.2", + "strip-ansi": "^7.0.1" + } + }, + "strip-ansi": { + "version": "7.1.0", + "bundled": true, + "requires": { + "ansi-regex": "^6.0.1" + } + } + } + }, + "wrap-ansi-cjs": { + "version": "npm:wrap-ansi@7.0.0", + "bundled": true, + "requires": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + } + }, + "wrappy": { + "version": "1.0.2", + "bundled": true + }, + "write-file-atomic": { + "version": "5.0.1", + "bundled": true, + "requires": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + } + }, + "yallist": { + "version": "4.0.0", + "bundled": true + } + } + }, "p-limit": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", diff --git a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package.json b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package.json index e7ac440..09709e1 100644 --- a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package.json +++ b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/package.json @@ -10,10 +10,15 @@ "author": "", "license": "ISC", "dependencies": { - "@siemens/ix": "2.0.1", - "@siemens/ix-echarts": "2.0.1", - "@siemens/ix-icons": "2.0.0", - "echarts": "5.4.3" + "@ag-grid-community/core": "^30.2.0", + "@siemens/ix": "^2.0.1", + "@siemens/ix-aggrid": "^2.0.3", + "@siemens/ix-echarts": "^2.0.1", + "@siemens/ix-icons": "^2.0.0", + "ag-grid-community": "^30.2.0", + "echarts": "5.4.3", + "i": "^0.3.7", + "npm": "^10.2.0" }, "devDependencies": { "webpack": "^5.75.0", diff --git a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js index a1ec1a1..ccae816 100644 --- a/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js +++ b/SiemensIXBlazor/SiemensIXBlazor_NpmJS/src/index.js @@ -4,6 +4,8 @@ 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 '@siemens/ix-aggrid/dist/index.js' defineCustomElements(); @@ -36,3 +38,15 @@ window.toggleSystemTheme = (useSystemTheme) => { themeSwitcher.setVariant(); } } + +// AGGrid +window.agGridInterop = { + createGrid: function (elementId, gridOptions) { + const grid = new Grid(document.getElementById(elementId), JSON.parse(gridOptions)) + console.log(JSON.parse(gridOptions)) + return grid; + }, + setData: function (grid, data) { + grid.api.setRowData(data); + } +} diff --git a/SiemensIXBlazor/wwwroot/css/siemens-ix/ix-aggrid.css b/SiemensIXBlazor/wwwroot/css/siemens-ix/ix-aggrid.css new file mode 100644 index 0000000..122174b --- /dev/null +++ b/SiemensIXBlazor/wwwroot/css/siemens-ix/ix-aggrid.css @@ -0,0 +1 @@ +[class*=ag-theme-ix]{--ag-background-color:transparent;--ag-foreground-color:var(--theme-color-std-text);--ag-secondary-foreground-color:var(--theme-color-std-text);--ag-header-background-color:transparent;--ag-odd-row-background-color:transparent;--ag-row-hover-color:var(--theme-table-data-row--background--hover);--ag-selected-row-background-color:var(--theme-table-data-row--background--selected);--ag-range-selection-background-color:var(--theme-table-data-row--background--selected);--ag-range-selection-border-color:var(--theme-input--border-color--focus);--ag-header-column-resize-handle-color:var(--theme-table-header-splitter--background);--ag-header-column-resize-handle-height:100%;--ag-header-column-resize-handle-width:1px;--ag-input-focus-box-shadow:none;--ag-input-focus-border-color:var(--theme-input--border-color--focus);--ag-checkbox-checked-color:var(--theme-input--border-color--focus);--ag-control-panel-background-color:var(--theme-color-1)}[class*=ag-theme-ix] .ag-input-wrapper input{clip:unset !important;clip-path:unset !important;height:inherit !important;width:inherit !important;overflow:inherit !important;position:inherit !important;white-space:inherit !important}[class*=ag-theme-ix] .ag-root-wrapper{border:none}[class*=ag-theme-ix] .ag-filter{color:var(--theme-color-std-text);background-color:var(--ag-control-panel-background-color)}[class*=ag-theme-ix] .ag-select-list{font-feature-settings:"clig" off, "liga" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;color:var(--theme-color-std-text);background-color:var(--ag-control-panel-background-color)}[class*=ag-theme-ix] .ag-header-cell .ag-header-cell-resize::after{background-color:transparent}[class*=ag-theme-ix] .ag-header-active .ag-header-cell-resize::after{background-color:var(--ag-header-column-resize-handle-color)}[class*=ag-theme-ix] .ag-icon{color:var(--theme-table-header-sort--color)}[class*=ag-theme-ix] .ag-paging-button{color:var(--theme-btn-invisible-primary--color)}[class*=ag-theme-ix] .ag-paging-button.ag-disabled{color:var(--theme-btn-invisible-primary--color--disabled)}[class*=ag-theme-ix] .ag-paging-button.ag-disabled .ag-icon{color:inherit}[class*=ag-theme-ix] .ag-cell-inline-editing{box-shadow:none}[class*=ag-theme-ix] .ag-header-cell-resize::after{transition:background-color 250ms linear}[class*=ag-theme-ix] .ag-header-cell-resize:hover::after{background-color:var(--theme-table-header-splitter--background--hover)}[class*=ag-theme-ix] .ag-row-focus::before{border:1px solid var(--theme-color-input--focus)}[class*=ag-theme-ix] .ag-row-hover:active{background-color:var(--theme-table-data-row--background--active)}[class*=ag-theme-ix] .ag-row-hover.ag-row-selected{background-color:var(--theme-table-data-row--background--selected-hover)}[class*=ag-theme-ix] .ag-row-hover.ag-row-selected:active{background-color:var(--theme-table-data-row--background--selected-active)}[class*=ag-theme-ix] .ag-header-cell{font-feature-settings:"clig" off, "liga" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;font-weight:700;color:var(--theme-table-header-cell--color)}[class*=ag-theme-ix] .ag-cell{font-feature-settings:"clig" off, "liga" off;font-family:Siemens Sans, Siemens Sans, Arial, Helvetica, sans-serif;font-style:normal;font-size:var(--theme-ms-0);line-height:var(--theme-line-height-md);font-weight:var(--theme-font-weight-normal);letter-spacing:var(--theme-letter-spacing-xl);text-decoration:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smooting:grayscale;color:var(--theme-table-data-cell--color);line-height:min(var(--ag-internal-calculated-line-height), var(--ag-internal-padded-row-height))}[class*=ag-theme-ix] .ag-filter-wrapper{background-color:var(--theme-color-1)}[class*=ag-theme-ix] .ag-filter-wrapper .ag-checkbox .ag-input-wrapper,[class*=ag-theme-ix] .ag-filter-wrapper .ag-radio-button .ag-input-wrapper{color:var(--theme-color-primary)} \ No newline at end of file diff --git a/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js b/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js index e1d459f..b013384 100644 --- a/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js +++ b/SiemensIXBlazor/wwwroot/js/siemens-ix/index.bundle.js @@ -1,2 +1,2 @@ /*! For license information please see index.bundle.js.LICENSE.txt */ -(()=>{var t,e,n,i,r={1617:(t,e,n)=>{"use strict";n.d(e,{A:()=>i});class i{}i.shortTime=0,i.defaultTime=150,i.mediumTime=300,i.slowTime=500,i.xSlowTime=1e3},9391:(t,e,n)=>{"use strict";var i;n.d(e,{F:()=>i}),function(t){t.None="none",t.Info="info",t.Warning="warning",t.Alarm="alarm",t.Primary="primary"}(i||(i={}))},4801:(t,e,n)=>{"use strict";n.d(e,{F:()=>J,H:()=>p,b:()=>K,c:()=>m,f:()=>V,g:()=>v,h:()=>c,p:()=>gt,r:()=>ot});let i,r,o=!1,a=!1;const s="http://www.w3.org/1999/xlink",l={},u=t=>"object"==(t=typeof t)||"function"===t;function h(t){var e,n,i;return null!==(i=null===(n=null===(e=t.head)||void 0===e?void 0:e.querySelector('meta[name="csp-nonce"]'))||void 0===n?void 0:n.getAttribute("content"))&&void 0!==i?i:void 0}const c=(t,e,...n)=>{let i=null,r=null,o=!1,a=!1;const s=[],l=e=>{for(let n=0;nt[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,s,f);const h=d(t,null);return h.$attrs$=e,s.length>0&&(h.$children$=s),h.$key$=r,h},d=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null}),p={},f={forEach:(t,e)=>t.map(g).forEach(e),map:(t,e)=>t.map(g).map(e).map(y)},g=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),y=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),c(t.vtag,e,...t.vchildren||[])}const e=d(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},v=t=>rt(t).$hostElement$,m=(t,e,n)=>{const i=v(t);return{emit:t=>x(i,e,{bubbles:!!(4&n),composed:!!(2&n),cancelable:!!(1&n),detail:t})}},x=(t,e,n)=>{const i=ft.ce(e,n);return t.dispatchEvent(i),i},_=new WeakMap,b=(t,e)=>"sc-"+t.$tagName$,w=(t,e,n,i,r,o)=>{if(n!==i){let a=st(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,r=M(n),o=M(i);e.remove(...r.filter((t=>t&&!o.includes(t)))),e.add(...o.filter((t=>t&&!r.includes(t))))}else if("style"===e){for(const e in n)i&&null!=i[e]||(e.includes("-")?t.style.removeProperty(e):t.style[e]="");for(const e in i)n&&i[e]===n[e]||(e.includes("-")?t.style.setProperty(e,i[e]):t.style[e]=i[e])}else if("key"===e);else if("ref"===e)i&&i(t);else if(a||"o"!==e[0]||"n"!==e[1]){const h=u(i);if((a||h&&null!==i)&&!r)try{if(t.tagName.includes("-"))t[e]=i;else{const r=null==i?"":i;"list"===e?a=!1:null!=n&&t[e]==r||(t[e]=r)}}catch(t){}let c=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(e=l,c=!0),null==i||!1===i?!1===i&&""!==t.getAttribute(e)||(c?t.removeAttributeNS(s,e):t.removeAttribute(e)):(!a||4&o||r)&&!h&&(i=!0===i?"":i,c?t.setAttributeNS(s,e,i):t.setAttribute(e,i))}else e="-"===e[2]?e.slice(3):st(dt,l)?l.slice(2):l[2]+e.slice(3),n&&ft.rel(t,e,n,!1),i&&ft.ael(t,e,i,!1)}},S=/\s/,M=t=>t?t.split(S):[],I=(t,e,n,i)=>{const r=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,o=t&&t.$attrs$||l,a=e.$attrs$||l;for(i in o)i in a||w(r,i,o[i],void 0,n,e.$flags$);for(i in a)w(r,i,o[i],a[i],n,e.$flags$)},C=(t,e,n,r)=>{const a=e.$children$[n];let s,l,u=0;if(null!==a.$text$)s=a.$elm$=pt.createTextNode(a.$text$);else{if(o||(o="svg"===a.$tag$),s=a.$elm$=pt.createElementNS(o?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",a.$tag$),o&&"foreignObject"===a.$tag$&&(o=!1),I(null,a,o),null!=i&&s["s-si"]!==i&&s.classList.add(s["s-si"]=i),a.$children$)for(u=0;u{let s,l=t;for(l.shadowRoot&&l.tagName===r&&(l=l.shadowRoot);o<=a;++o)i[o]&&(s=C(null,n,o),s&&(i[o].$elm$=s,l.insertBefore(s,e)))},A=(t,e,n)=>{for(let i=e;i<=n;++i){const e=t[i];if(e){const t=e.$elm$;L(e),t&&t.remove()}}},D=(t,e)=>t.$tag$===e.$tag$&&t.$key$===e.$key$,k=(t,e)=>{const n=e.$elm$=t.$elm$,i=t.$children$,r=e.$children$,a=e.$tag$,s=e.$text$;null===s?(o="svg"===a||"foreignObject"!==a&&o,"slot"===a||I(t,e,o),null!==i&&null!==r?((t,e,n,i)=>{let r,o,a=0,s=0,l=0,u=0,h=e.length-1,c=e[0],d=e[h],p=i.length-1,f=i[0],g=i[p];for(;a<=h&&s<=p;)if(null==c)c=e[++a];else if(null==d)d=e[--h];else if(null==f)f=i[++s];else if(null==g)g=i[--p];else if(D(c,f))k(c,f),c=e[++a],f=i[++s];else if(D(d,g))k(d,g),d=e[--h],g=i[--p];else if(D(c,g))k(c,g),t.insertBefore(c.$elm$,d.$elm$.nextSibling),c=e[++a],g=i[--p];else if(D(d,f))k(d,f),t.insertBefore(d.$elm$,c.$elm$),d=e[--h],f=i[++s];else{for(l=-1,u=a;u<=h;++u)if(e[u]&&null!==e[u].$key$&&e[u].$key$===f.$key$){l=u;break}l>=0?(o=e[l],o.$tag$!==f.$tag$?r=C(e&&e[s],n,l):(k(o,f),e[l]=void 0,r=o.$elm$),f=i[++s]):(r=C(e&&e[s],n,s),f=i[++s]),r&&c.$elm$.parentNode.insertBefore(r,c.$elm$)}a>h?T(t,null==i[p+1]?null:i[p+1].$elm$,n,i,s,p):s>p&&A(e,a,h)})(n,i,e,r):null!==r?(null!==t.$text$&&(n.textContent=""),T(n,null,e,r,0,r.length-1)):null!==i&&A(i,0,i.length-1),o&&"svg"===a&&(o=!1)):t.$text$!==s&&(n.data=s)},L=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(L)},P=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},O=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return P(t,t.$ancestorComponent$),St((()=>N(t,e)));t.$flags$|=512},N=(t,e)=>{const n=(t.$cmpMeta$.$tagName$,()=>{}),i=t.$lazyInstance$;let r;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map((([t,e])=>G(i,t,e))),t.$queuedListeners$=null),r=G(i,"componentWillLoad")),r=R(r,(()=>G(i,"componentWillRender"))),n(),R(r,(()=>E(t,i,e)))},R=(t,e)=>t instanceof Promise?t.then(e):e(),E=async(t,e,n)=>{const i=t.$hostElement$,r=(t.$cmpMeta$.$tagName$,()=>{}),o=i["s-rc"];n&&(t=>{const e=t.$cmpMeta$,n=t.$hostElement$,i=e.$flags$,r=(e.$tagName$,()=>{}),o=((t,e,n,i)=>{var r;let o=b(e);const a=ct.get(o);if(t=11===t.nodeType?t:pt,a)if("string"==typeof a){t=t.head||t;let e,n=_.get(t);if(n||_.set(t,n=new Set),!n.has(o)){{e=pt.createElement("style"),e.innerHTML=a;const n=null!==(r=ft.$nonce$)&&void 0!==r?r:h(pt);null!=n&&e.setAttribute("nonce",n),t.insertBefore(e,t.querySelector("link"))}n&&n.add(o)}}else t.adoptedStyleSheets.includes(a)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,a]);return o})(n.shadowRoot?n.shadowRoot:n.getRootNode(),e);10&i&&(n["s-sc"]=o,n.classList.add(o+"-h"),2&i&&n.classList.add(o+"-s")),r()})(t);const a=(t.$cmpMeta$.$tagName$,()=>{});z(t,e),o&&(o.map((t=>t())),i["s-rc"]=void 0),a(),r();{const e=i["s-p"],n=()=>B(t);0===e.length?n():(Promise.all(e).then(n),t.$flags$|=4,e.length=0)}},z=(t,e,n)=>{try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e)=>{const n=t.$hostElement$,o=t.$cmpMeta$,a=t.$vnode$||d(null,null),s=(l=e)&&l.$tag$===p?e:c(null,null,e);var l;r=n.tagName,o.$attrsToReflect$&&(s.$attrs$=s.$attrs$||{},o.$attrsToReflect$.map((([t,e])=>s.$attrs$[e]=n[t]))),s.$tag$=null,s.$flags$|=4,t.$vnode$=s,s.$elm$=a.$elm$=n.shadowRoot||n,i=n["s-sc"],k(a,s)})(t,e)}catch(e){lt(e,t.$hostElement$)}return null},B=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,n=t.$lazyInstance$,i=t.$ancestorComponent$;G(n,"componentDidRender"),64&t.$flags$||(t.$flags$|=64,W(e),G(n,"componentDidLoad"),t.$onReadyResolve$(e),i||F()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&wt((()=>O(t,!1))),t.$flags$&=-517},V=t=>{{const e=rt(t),n=e.$hostElement$.isConnected;return n&&2==(18&e.$flags$)&&O(e,!1),n}},F=t=>{W(pt.documentElement),wt((()=>x(dt,"appload",{detail:{namespace:"siemens-ix"}})))},G=(t,e,n)=>{if(t&&t[e])try{return t[e](n)}catch(t){lt(t)}},W=t=>t.classList.add("hydrated"),H=(t,e,n)=>{if(e.$members$){t.watchers&&(e.$watchers$=t.watchers);const i=Object.entries(e.$members$),r=t.prototype;if(i.map((([t,[i]])=>{31&i||2&n&&32&i?Object.defineProperty(r,t,{get(){return e=t,rt(this).$instanceValues$.get(e);var e},set(n){((t,e,n,i)=>{const r=rt(t),o=r.$hostElement$,a=r.$instanceValues$.get(e),s=r.$flags$,l=r.$lazyInstance$;var h,c;h=n,c=i.$members$[e][0],n=null==h||u(h)?h:4&c?"false"!==h&&(""===h||!!h):2&c?parseFloat(h):1&c?String(h):h;const d=Number.isNaN(a)&&Number.isNaN(n);if((!(8&s)||void 0===a)&&n!==a&&!d&&(r.$instanceValues$.set(e,n),l)){if(i.$watchers$&&128&s){const t=i.$watchers$[e];t&&t.map((t=>{try{l[t](n,a,e)}catch(t){lt(t,o)}}))}2==(18&s)&&O(r,!1)}})(this,t,n,e)},configurable:!0,enumerable:!0}):1&n&&64&i&&Object.defineProperty(r,t,{value(...e){const n=rt(this);return n.$onInstancePromise$.then((()=>n.$lazyInstance$[t](...e)))}})})),1&n){const n=new Map;r.attributeChangedCallback=function(t,e,i){ft.jmp((()=>{const e=n.get(t);if(this.hasOwnProperty(e))i=this[e],delete this[e];else if(r.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==i)return;this[e]=(null!==i||"boolean"!=typeof this[e])&&i}))},t.observedAttributes=i.filter((([t,e])=>15&e[0])).map((([t,i])=>{const r=i[1]||t;return n.set(r,t),512&i[0]&&e.$attrsToReflect$.push([t,r]),r}))}}return t},$=t=>{G(t,"connectedCallback")},j=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=X(t),n=Z(this.childNodes,e);if(n){const i=q(n,e),r=i[i.length-1];return r.parentNode.insertBefore(t,r.nextSibling)}return this.__appendChild(t)}},U=(t,e)=>{if(2&e.$flags$){const e=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(t,"__textContent",e),Object.defineProperty(t,"textContent",{get(){var t;const e=Z(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 n=Z(this.childNodes,"");if(3===(null===(e=null==n?void 0:n.nextSibling)||void 0===e?void 0:e.nodeType))n.nextSibling.textContent=t;else if(n)n.textContent=t;else{this.__textContent=t;const e=this["s-cr"];e&&this.insertBefore(e,this.firstChild)}}})}},Y=(t,e)=>{class n 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&ft.$flags$)&&2&rt(this).$flags$){const e=new n;for(let n=0;nt["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",Z=(t,e)=>{let n,i=0;for(;i{const n=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)n.push(t);return n},K=(t,e={})=>{var n;const i=[],r=e.exclude||[],o=dt.customElements,a=pt.head,s=a.querySelector("meta[charset]"),l=pt.createElement("style"),u=[];let c,d=!0;Object.assign(ft,e),ft.$resourcesUrl$=new URL(e.resourcesUrl||"./",pt.baseURI).href,t.map((t=>{t[1].map((e=>{const n={$flags$:e[0],$tagName$:e[1],$members$:e[2],$listeners$:e[3]};n.$members$=e[2],n.$listeners$=e[3],n.$attrsToReflect$=[],n.$watchers$={};const a=n.$tagName$,s=class extends HTMLElement{constructor(t){super(t),at(t=this,n),1&n.$flags$&&t.attachShadow({mode:"open"}),Y(t,n)}connectedCallback(){c&&(clearTimeout(c),c=null),d?u.push(this):ft.jmp((()=>(t=>{if(0==(1&ft.$flags$)){const e=rt(t),n=e.$cmpMeta$,i=(n.$tagName$,()=>{});if(1&e.$flags$)Q(t,e,n.$listeners$),$(e.$lazyInstance$);else{e.$flags$|=1;{let n=t;for(;n=n.parentNode||n.host;)if(n["s-p"]){P(e,e.$ancestorComponent$=n);break}}n.$members$&&Object.entries(n.$members$).map((([e,[n]])=>{if(31&n&&t.hasOwnProperty(e)){const n=t[e];delete t[e],t[e]=n}})),(async(t,e,n,i,r)=>{if(0==(32&e.$flags$)){e.$flags$|=32;{if((r=ht(n)).then){const t=()=>{};r=await r,t()}r.isProxied||(n.$watchers$=r.watchers,H(r,n,2),r.isProxied=!0);const t=(n.$tagName$,()=>{});e.$flags$|=8;try{new r(e)}catch(t){lt(t)}e.$flags$&=-9,e.$flags$|=128,t(),$(e.$lazyInstance$)}if(r.style){let t=r.style;const e=b(n);if(!ct.has(e)){const i=(n.$tagName$,()=>{});((t,e,n)=>{let i=ct.get(t);yt&&n?(i=i||new CSSStyleSheet,"string"==typeof i?i=e:i.replaceSync(e)):i=e,ct.set(t,i)})(e,t,!!(1&n.$flags$)),i()}}}const o=e.$ancestorComponent$,a=()=>O(e,!0);o&&o["s-rc"]?o["s-rc"].push(a):a()})(0,e,n)}i()}})(this)))}disconnectedCallback(){ft.jmp((()=>(t=>{if(0==(1&ft.$flags$)){const e=rt(t),n=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0),G(n,"disconnectedCallback")}})(this)))}componentOnReady(){return rt(this).$onReadyPromise$}};j(s.prototype),U(s.prototype,n),n.$lazyBundleId$=t[0],r.includes(a)||o.get(a)||(i.push(a),o.define(a,H(s,n,1)))}))}));{l.innerHTML=i+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles","");const t=null!==(n=ft.$nonce$)&&void 0!==n?n:h(pt);null!=t&&l.setAttribute("nonce",t),a.insertBefore(l,s?s.nextSibling:a.firstChild)}d=!1,u.length?u.map((t=>t.connectedCallback())):ft.jmp((()=>c=setTimeout(F,30)))},J=(t,e)=>e,Q=(t,e,n,i)=>{n&&n.map((([n,i,r])=>{const o=et(t,n),a=tt(e,r),s=nt(n);ft.ael(o,i,a,s),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>ft.rel(o,i,a,s)))}))},tt=(t,e)=>n=>{try{256&t.$flags$?t.$lazyInstance$[e](n):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,n])}catch(t){lt(t)}},et=(t,e)=>8&e?dt:t,nt=t=>0!=(2&t),it=new WeakMap,rt=t=>it.get(t),ot=(t,e)=>it.set(e.$lazyInstance$=t,e),at=(t,e)=>{const n={$flags$:0,$hostElement$:t,$cmpMeta$:e,$instanceValues$:new Map};return n.$onInstancePromise$=new Promise((t=>n.$onInstanceResolve$=t)),n.$onReadyPromise$=new Promise((t=>n.$onReadyResolve$=t)),t["s-p"]=[],t["s-rc"]=[],Q(t,n,e.$listeners$),it.set(t,n)},st=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),ut=new Map,ht=(t,e,i)=>{const r=t.$tagName$.replace(/-/g,"_"),o=t.$lazyBundleId$,a=ut.get(o);if(a)return a[r];if(!i||!BUILD.hotModuleReplacement){const t=t=>(ut.set(o,t),t[r]);switch(o){case"my-component":return n.e(3864).then(n.bind(n,3864)).then(t,lt);case"ix-action-card":return n.e(670).then(n.bind(n,670)).then(t,lt);case"ix-application":return n.e(3492).then(n.bind(n,3492)).then(t,lt);case"ix-application-sidebar":return Promise.all([n.e(8137),n.e(5179)]).then(n.bind(n,5179)).then(t,lt);case"ix-basic-navigation":return n.e(2216).then(n.bind(n,2216)).then(t,lt);case"ix-blind":return Promise.all([n.e(8137),n.e(2654)]).then(n.bind(n,2654)).then(t,lt);case"ix-breadcrumb":return n.e(3170).then(n.bind(n,3170)).then(t,lt);case"ix-card-list":return n.e(4369).then(n.bind(n,4369)).then(t,lt);case"ix-category-filter":return n.e(9478).then(n.bind(n,9478)).then(t,lt);case"ix-chip":return n.e(6954).then(n.bind(n,6954)).then(t,lt);case"ix-col":return n.e(7439).then(n.bind(n,7439)).then(t,lt);case"ix-content":return n.e(1394).then(n.bind(n,1394)).then(t,lt);case"ix-content-header":return n.e(1422).then(n.bind(n,1422)).then(t,lt);case"ix-css-grid":return n.e(7085).then(n.bind(n,7085)).then(t,lt);case"ix-css-grid-item":return n.e(753).then(n.bind(n,753)).then(t,lt);case"ix-datetime-picker":return n.e(9829).then(n.bind(n,9829)).then(t,lt);case"ix-drawer":return Promise.all([n.e(8137),n.e(6114)]).then(n.bind(n,6114)).then(t,lt);case"ix-dropdown-button":return n.e(9880).then(n.bind(n,9880)).then(t,lt);case"ix-dropdown-header":return n.e(2907).then(n.bind(n,2907)).then(t,lt);case"ix-dropdown-quick-actions":return n.e(1719).then(n.bind(n,1719)).then(t,lt);case"ix-empty-state":return n.e(4596).then(n.bind(n,4596)).then(t,lt);case"ix-event-list":return n.e(3169).then(n.bind(n,3169)).then(t,lt);case"ix-event-list-item":return n.e(7541).then(n.bind(n,7541)).then(t,lt);case"ix-expanding-search":return n.e(8865).then(n.bind(n,8865)).then(t,lt);case"ix-flip-tile":return n.e(1606).then(n.bind(n,1606)).then(t,lt);case"ix-flip-tile-content":return n.e(7262).then(n.bind(n,7262)).then(t,lt);case"ix-form-field":return n.e(3052).then(n.bind(n,3052)).then(t,lt);case"ix-group":return n.e(5374).then(n.bind(n,5374)).then(t,lt);case"ix-icon-toggle-button":return n.e(2632).then(n.bind(n,2632)).then(t,lt);case"ix-input-group":return n.e(6083).then(n.bind(n,6083)).then(t,lt);case"ix-key-value":return n.e(7510).then(n.bind(n,7510)).then(t,lt);case"ix-key-value-list":return n.e(4776).then(n.bind(n,4776)).then(t,lt);case"ix-kpi":return n.e(1985).then(n.bind(n,1985)).then(t,lt);case"ix-layout-grid":return n.e(8697).then(n.bind(n,8697)).then(t,lt);case"ix-link-button":return n.e(1993).then(n.bind(n,1993)).then(t,lt);case"ix-map-navigation":return Promise.all([n.e(8137),n.e(9929)]).then(n.bind(n,9929)).then(t,lt);case"ix-menu":return Promise.all([n.e(8137),n.e(8926)]).then(n.bind(n,8926)).then(t,lt);case"ix-menu-about":return n.e(8670).then(n.bind(n,8670)).then(t,lt);case"ix-menu-about-item":return n.e(8683).then(n.bind(n,8683)).then(t,lt);case"ix-menu-about-news":return n.e(9148).then(n.bind(n,9148)).then(t,lt);case"ix-menu-avatar":return n.e(7537).then(n.bind(n,7537)).then(t,lt);case"ix-menu-category":return Promise.all([n.e(8137),n.e(1952)]).then(n.bind(n,1952)).then(t,lt);case"ix-menu-settings":return n.e(5840).then(n.bind(n,5840)).then(t,lt);case"ix-menu-settings-item":return n.e(2668).then(n.bind(n,2668)).then(t,lt);case"ix-message-bar":return Promise.all([n.e(8137),n.e(4895)]).then(n.bind(n,4895)).then(t,lt);case"ix-modal":return Promise.all([n.e(8137),n.e(6802)]).then(n.bind(n,6802)).then(t,lt);case"ix-modal-content":return n.e(9559).then(n.bind(n,9559)).then(t,lt);case"ix-modal-example":return n.e(9700).then(n.bind(n,9700)).then(t,lt);case"ix-modal-footer":return n.e(5266).then(n.bind(n,5266)).then(t,lt);case"ix-modal-header":return n.e(9113).then(n.bind(n,9113)).then(t,lt);case"ix-modal-loading":return n.e(5592).then(n.bind(n,5592)).then(t,lt);case"ix-pagination":return n.e(5359).then(n.bind(n,5359)).then(t,lt);case"ix-pill":return n.e(8835).then(n.bind(n,8835)).then(t,lt);case"ix-push-card":return n.e(1051).then(n.bind(n,1051)).then(t,lt);case"ix-row":return n.e(333).then(n.bind(n,333)).then(t,lt);case"ix-slider":return n.e(6155).then(n.bind(n,6155)).then(t,lt);case"ix-split-button":return n.e(5075).then(n.bind(n,5075)).then(t,lt);case"ix-split-button-item":return n.e(1791).then(n.bind(n,1791)).then(t,lt);case"ix-tile":return n.e(6599).then(n.bind(n,6599)).then(t,lt);case"ix-toast-container":return n.e(4154).then(n.bind(n,4154)).then(t,lt);case"ix-toggle":return n.e(7731).then(n.bind(n,7731)).then(t,lt);case"ix-toggle-button":return n.e(1646).then(n.bind(n,1646)).then(t,lt);case"ix-tree":return n.e(3897).then(n.bind(n,3897)).then(t,lt);case"ix-upload":return n.e(2478).then(n.bind(n,2478)).then(t,lt);case"ix-validation-tooltip":return Promise.all([n.e(5297),n.e(7628)]).then(n.bind(n,7628)).then(t,lt);case"ix-workflow-step":return n.e(4707).then(n.bind(n,4707)).then(t,lt);case"ix-workflow-steps":return n.e(8005).then(n.bind(n,8005)).then(t,lt);case"ix-avatar_2":return n.e(9941).then(n.bind(n,9941)).then(t,lt);case"ix-breadcrumb-item":return Promise.all([n.e(8137),n.e(2643)]).then(n.bind(n,2643)).then(t,lt);case"ix-card-accordion_2":return n.e(2263).then(n.bind(n,2263)).then(t,lt);case"ix-date-picker_2":return n.e(5454).then(n.bind(n,5454)).then(t,lt);case"ix-divider":return n.e(4120).then(n.bind(n,4120)).then(t,lt);case"ix-group-context-menu_2":return n.e(4094).then(n.bind(n,4094)).then(t,lt);case"ix-map-navigation-overlay":return Promise.all([n.e(8137),n.e(5982)]).then(n.bind(n,5982)).then(t,lt);case"ix-select":return n.e(5465).then(n.bind(n,5465)).then(t,lt);case"ix-toast":return n.e(7292).then(n.bind(n,7292)).then(t,lt);case"ix-tooltip":return Promise.all([n.e(5297),n.e(6006)]).then(n.bind(n,6006)).then(t,lt);case"ix-tree-item":return n.e(6268).then(n.bind(n,6268)).then(t,lt);case"ix-application-header":return n.e(7585).then(n.bind(n,7585)).then(t,lt);case"ix-menu-item":return n.e(2653).then(n.bind(n,2653)).then(t,lt);case"ix-filter-chip_2":return n.e(3675).then(n.bind(n,3675)).then(t,lt);case"ix-tab-item_2":return n.e(8590).then(n.bind(n,8590)).then(t,lt);case"ix-card_2":return n.e(1754).then(n.bind(n,1754)).then(t,lt);case"ix-date-time-card":return n.e(2979).then(n.bind(n,2979)).then(t,lt);case"ix-burger-menu":return n.e(3691).then(n.bind(n,3691)).then(t,lt);case"ix-dropdown-item":return n.e(6857).then(n.bind(n,6857)).then(t,lt);case"ix-button":return n.e(6150).then(n.bind(n,6150)).then(t,lt);case"ix-dropdown":return Promise.all([n.e(5297),n.e(9451)]).then(n.bind(n,9451)).then(t,lt);case"ix-typography":return n.e(7744).then(n.bind(n,7744)).then(t,lt);case"ix-icon-button_2":return n.e(5207).then(n.bind(n,5207)).then(t,lt)}}return n(9200)(`./${o}.entry.js`).then((t=>(ut.set(o,t),t[r])),lt)},ct=new Map,dt="undefined"!=typeof window?window:{},pt=dt.document||{head:{}},ft={$flags$:0,$resourcesUrl$:"",jmp:t=>t(),raf:t=>requestAnimationFrame(t),ael:(t,e,n,i)=>t.addEventListener(e,n,i),rel:(t,e,n,i)=>t.removeEventListener(e,n,i),ce:(t,e)=>new CustomEvent(t,e)},gt=t=>Promise.resolve(t),yt=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),vt=[],mt=[],xt=(t,e)=>n=>{t.push(n),a||(a=!0,e&&4&ft.$flags$?wt(bt):ft.raf(bt))},_t=t=>{for(let e=0;e{_t(vt),_t(mt),(a=vt.length>0)&&ft.raf(bt)},wt=t=>gt().then(t),St=xt(mt,!0)},9249:(t,e,n)=>{"use strict";n.d(e,{I:()=>i,L:()=>r});class i{hasCategory(){return void 0!==this.category}constructor(t,e){this.token=t,this.category=e}}var r;!function(t){t.EQUAL="Equal",t.NOT_EQUAL="Not equal"}(r||(r={}))},2048:(t,e,n)=>{"use strict";n.d(e,{c:()=>l,d:()=>u});var i=n(1917);const r=new class{async attachView(t,e){var n;return(null!==(n=null==e?void 0:e.parentElement)&&void 0!==n?n:document.body).appendChild(t),t}async removeView(t){t.remove()}};function o(t,e,n,i){let r=[];return void 0!==e&&(r=[...r,{id:"cancel",text:e,type:"cancel",payload:i}]),[...r,{id:"okay",text:t,type:"okay",payload:n}]}async function a(t){const e=new i.T,n=document.createElement("ix-modal"),o=document.createElement("ix-modal-header"),a=document.createElement("ix-modal-content"),s=document.createElement("ix-modal-footer");!function(t,e){const n=e.ariaDescribedby,i=e.ariaLabelledby;delete e.ariaDescribedby,delete e.ariaLabelledby,n&&t.setAttribute("aria-describedby",n),i&&t.setAttribute("aria-labelledby",i)}(n,t),Object.assign(o,t),Object.assign(a,t),Object.assign(s,t),o.innerText=t.messageTitle,a.innerText=t.message,t.actions.forEach((({id:t,text:e,type:i,payload:r})=>{const o=document.createElement("ix-button");return o.innerText=e,s.appendChild(o),"okay"===i?(o.variant="primary",void o.addEventListener("click",(()=>n.closeModal({actionId:t,payload:r})))):"cancel"===i?(o.variant="primary",o.outline=!0,void o.addEventListener("click",(()=>n.dismissModal({actionId:t,payload:r})))):void 0})),n.appendChild(o),n.appendChild(a),n.appendChild(s);const l=await r.attachView(n);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 s(t){return t.closest("ix-modal")}function l(t,e){const n=s(t);n&&n.closeModal(e)}function u(t,e){const n=s(t);n&&n.dismissModal(e)}a.info=(t,e,n,i,r,s)=>a({message:e,messageTitle:t,icon:"info",actions:o(n,i,r,s)}),a.warning=(t,e,n,i,r,s)=>a({message:e,messageTitle:t,icon:"warning",iconColor:"color-warning",actions:o(n,i,r,s)}),a.error=(t,e,n,i,r,s)=>a({message:e,messageTitle:t,icon:"error",iconColor:"color-alarm",actions:o(n,i,r,s)}),a.success=(t,e,n,i,r,s)=>a({message:e,messageTitle:t,icon:"success",iconColor:"color-success",actions:o(n,i,r,s)}),a.question=(t,e,n,i,r,s)=>a({message:e,messageTitle:t,icon:"question",actions:o(n,i,r,s)})},489:(t,e,n)=>{"use strict";n.d(e,{t:()=>o});var i=n(1917);const r=()=>window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light",o=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=r();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=r()){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 n;this.isThemeClass(e)&&!(null===(n=t.oldValue)||void 0===n?void 0:n.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 i.T,this.registerMutationObserver()}}},1917:(t,e,n)=>{"use strict";n.d(e,{T:()=>i});class i{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)))}}},7612:(t,e,n)=>{"use strict";var i;n.d(e,{U:()=>i}),function(t){t.SELECT_FILE="SELECT_FILE",t.LOADING="LOADING",t.UPLOAD_FAILED="UPLOAD_FAILED",t.UPLOAD_SUCCESSED="UPLOAD_SUCCESSED"}(i||(i={}))},9200:(t,e,n)=>{var i={"./ix-action-card.entry.js":[670,670],"./ix-application-header.entry.js":[7585,7585],"./ix-application-sidebar.entry.js":[5179,8137,5179],"./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.entry.js":[7439,7439],"./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-picker_2.entry.js":[5454,5454],"./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-layout-grid.entry.js":[8697,8697],"./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":[1952,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.entry.js":[9559,9559],"./ix-modal-example.entry.js":[9700,9700],"./ix-modal-footer.entry.js":[5266,5266],"./ix-modal-header.entry.js":[9113,9113],"./ix-modal-loading.entry.js":[5592,5592],"./ix-modal.entry.js":[6802,8137,6802],"./ix-pagination.entry.js":[5359,5359],"./ix-pill.entry.js":[8835,8835],"./ix-push-card.entry.js":[1051,1051],"./ix-row.entry.js":[333,333],"./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-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":[3897,3897],"./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],"./my-component.entry.js":[3864,3864]};function r(t){if(!n.o(i,t))return Promise.resolve().then((()=>{var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}));var e=i[t],r=e[0];return Promise.all(e.slice(1).map(n.e)).then((()=>n(r)))}r.keys=()=>Object.keys(i),r.id=9200,t.exports=r}},o={};function a(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={exports:{}};return r[t](n,n.exports,a),n.exports}a.m=r,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,a.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);a.r(r);var o={};t=t||[null,e({}),e([]),e(e)];for(var s=2&i&&n;"object"==typeof s&&!~t.indexOf(s);s=e(s))Object.getOwnPropertyNames(s).forEach((t=>o[t]=()=>n[t]));return o.default=()=>n,a.d(r,o),r},a.d=(t,e)=>{for(var n in e)a.o(e,n)&&!a.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},a.f={},a.e=t=>Promise.all(Object.keys(a.f).reduce(((e,n)=>(a.f[n](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),n={},i="npmjs:",a.l=(t,e,r,o)=>{if(n[t])n[t].push(e);else{var s,l;if(void 0!==r)for(var u=document.getElementsByTagName("script"),h=0;h{s.onerror=s.onload=null,clearTimeout(p);var r=n[t];if(delete n[t],s.parentNode&&s.parentNode.removeChild(s),r&&r.forEach((t=>t(i))),e)return e(i)},p=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 n=e.getElementsByTagName("script");if(n.length)for(var i=n.length-1;i>-1&&!t;)t=n[i--].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,n)=>{var i=a.o(t,e)?t[e]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,r)=>i=t[e]=[n,r]));n.push(i[2]=r);var o=a.p+a.u(e),s=new Error;a.l(o,(n=>{if(a.o(t,e)&&(0!==(i=t[e])&&(t[e]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),o=n&&n.target&&n.target.src;s.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",s.name="ChunkLoadError",s.type=r,s.request=o,i[1](s)}}),"chunk-"+e,e)}};var e=(e,n)=>{var i,r,[o,s,l]=n,u=0;if(o.some((e=>0!==t[e]))){for(i in s)a.o(s,i)&&(a.m[i]=s[i]);l&&l(a)}for(e&&e(n);u{"use strict";var t={};a.r(t),a.d(t,{HashMap:()=>Ot,RADIAN_TO_DEGREE:()=>Ft,assert:()=>Ct,bind:()=>at,clone:()=>$,concatArray:()=>Rt,createCanvas:()=>Z,createHashMap:()=>Nt,createObject:()=>Et,curry:()=>st,defaults:()=>X,disableUserSelect:()=>zt,each:()=>tt,eqNaN:()=>_t,extend:()=>Y,filter:()=>it,find:()=>rt,guid:()=>W,hasOwn:()=>Bt,indexOf:()=>q,inherits:()=>K,isArray:()=>lt,isArrayLike:()=>Q,isBuiltInObject:()=>ft,isDom:()=>yt,isFunction:()=>ut,isGradientObject:()=>vt,isImagePatternObject:()=>mt,isNumber:()=>dt,isObject:()=>pt,isPrimitive:()=>kt,isRegExp:()=>xt,isString:()=>ht,isStringSafe:()=>ct,isTypedArray:()=>gt,keys:()=>ot,logError:()=>H,map:()=>et,merge:()=>j,mergeAll:()=>U,mixin:()=>J,noop:()=>Vt,normalizeCssArray:()=>It,reduce:()=>nt,retrieve:()=>bt,retrieve2:()=>wt,retrieve3:()=>St,setAsPrimitive:()=>Dt,slice:()=>Mt,trim:()=>Tt});var e={};a.r(e),a.d(e,{add:()=>jt,applyTransform:()=>ue,clone:()=>Ht,copy:()=>Wt,create:()=>Gt,dist:()=>re,distSquare:()=>ae,distance:()=>ie,distanceSquare:()=>oe,div:()=>Qt,dot:()=>te,len:()=>Xt,lenSquare:()=>qt,length:()=>Zt,lengthSquare:()=>Kt,lerp:()=>le,max:()=>ce,min:()=>he,mul:()=>Jt,negate:()=>se,normalize:()=>ne,scale:()=>ee,scaleAndAdd:()=>Ut,set:()=>$t,sub:()=>Yt});var n={};a.r(n),a.d(n,{clone:()=>Xe,copy:()=>We,create:()=>Fe,identity:()=>Ge,invert:()=>Ye,mul:()=>He,rotate:()=>je,scale:()=>Ue,translate:()=>$e});var i={};a.r(i),a.d(i,{fastLerp:()=>Ai,fastMapToColor:()=>Di,lerp:()=>ki,lift:()=>Ci,lum:()=>Ri,mapToColor:()=>Li,modifyAlpha:()=>Oi,modifyHSL:()=>Pi,parse:()=>Mi,random:()=>Ei,stringify:()=>Ni,toHex:()=>Ti});var r={};a.r(r),a.d(r,{dispose:()=>bo,disposeAll:()=>wo,getInstance:()=>So,init:()=>_o,registerPainter:()=>Mo,version:()=>Io});var o={};a.r(o),a.d(o,{Arc:()=>Zg,BezierCurve:()=>Ug,BoundingRect:()=>sn,Circle:()=>ug,CompoundPath:()=>Kg,Ellipse:()=>dg,Group:()=>yo,Image:()=>vl,IncrementalDisplayable:()=>uy,Line:()=>Gg,LinearGradient:()=>Qg,OrientedBoundingRect:()=>ay,Path:()=>hl,Point:()=>qe,Polygon:()=>Ng,Polyline:()=>zg,RadialGradient:()=>ty,Rect:()=>Il,Ring:()=>kg,Sector:()=>Tg,Text:()=>Gl,applyTransform:()=>Ty,clipPointsByRect:()=>Ly,clipRectByRect:()=>Py,createIcon:()=>Oy,extendPath:()=>gy,extendShape:()=>py,getShapeClass:()=>vy,getTransform:()=>Cy,groupTransition:()=>ky,initProps:()=>qu,isElementRemoved:()=>Ku,lineLineIntersect:()=>Ry,linePolygonIntersect:()=>Ny,makeImage:()=>xy,makePath:()=>my,mergePath:()=>by,registerShape:()=>yy,removeElement:()=>Ju,removeElementWithFadeOut:()=>th,resizePath:()=>wy,setTooltipConfig:()=>zy,subPixelOptimize:()=>Iy,subPixelOptimizeLine:()=>Sy,subPixelOptimizeRect:()=>My,transformDirection:()=>Ay,traverseElements:()=>Vy,updateProps:()=>Zu});var s={};a.r(s),a.d(s,{createDimensions:()=>j_,createList:()=>dw,createScale:()=>fw,createSymbol:()=>rm,createTextStyle:()=>yw,dataStack:()=>pw,enableHoverEmphasis:()=>Eu,getECData:()=>Wl,getLayoutRect:()=>Rc,mixinAxisModelCommonMethods:()=>gw});var l={};a.r(l),a.d(l,{MAX_SAFE_INTEGER:()=>Bo,asc:()=>Lo,getPercentWithPrecision:()=>Ro,getPixelPrecision:()=>No,getPrecision:()=>Po,getPrecisionSafe:()=>Oo,isNumeric:()=>Zo,isRadianAroundZero:()=>Fo,linearMap:()=>Ao,nice:()=>jo,numericToNumber:()=>Xo,parseDate:()=>Wo,quantile:()=>Uo,quantity:()=>Ho,quantityExponent:()=>$o,reformIntervals:()=>Yo,remRadian:()=>Vo,round:()=>ko});var u={};a.r(u),a.d(u,{format:()=>ec,parse:()=>Wo});var h={};a.r(h),a.d(h,{Arc:()=>Zg,BezierCurve:()=>Ug,BoundingRect:()=>sn,Circle:()=>ug,CompoundPath:()=>Kg,Ellipse:()=>dg,Group:()=>yo,Image:()=>vl,IncrementalDisplayable:()=>uy,Line:()=>Gg,LinearGradient:()=>Qg,Polygon:()=>Ng,Polyline:()=>zg,RadialGradient:()=>ty,Rect:()=>Il,Ring:()=>kg,Sector:()=>Tg,Text:()=>Gl,clipPointsByRect:()=>Ly,clipRectByRect:()=>Py,createIcon:()=>Oy,extendPath:()=>gy,extendShape:()=>py,getShapeClass:()=>vy,getTransform:()=>Cy,initProps:()=>qu,makeImage:()=>xy,makePath:()=>my,mergePath:()=>by,registerShape:()=>yy,resizePath:()=>wy,updateProps:()=>Zu});var c={};a.r(c),a.d(c,{addCommas:()=>mc,capitalFirst:()=>Tc,encodeHTML:()=>Ce,formatTime:()=>Cc,formatTpl:()=>Mc,getTextRect:()=>Lw,getTooltipMarker:()=>Ic,normalizeCssArray:()=>_c,toCamelCase:()=>xc,truncateText:()=>Ha});var d={};a.r(d),a.d(d,{bind:()=>at,clone:()=>$,curry:()=>st,defaults:()=>X,each:()=>tt,extend:()=>Y,filter:()=>it,indexOf:()=>q,inherits:()=>K,isArray:()=>lt,isFunction:()=>ut,isObject:()=>pt,isString:()=>ht,map:()=>et,merge:()=>j,reduce:()=>nt});var p={};a.r(p),a.d(p,{Axis:()=>Ww,ChartView:()=>Xy,ComponentModel:()=>Hc,ComponentView:()=>Vf,List:()=>$_,Model:()=>Lh,PRIORITY:()=>Zm,SeriesModel:()=>zf,color:()=>i,connect:()=>Wx,dataTool:()=>d_,dependencies:()=>Hm,disConnect:()=>$x,disconnect:()=>Hx,dispose:()=>jx,env:()=>b,extendChartView:()=>Uw,extendComponentModel:()=>Hw,extendComponentView:()=>$w,extendSeriesModel:()=>jw,format:()=>c,getCoordinateSystemDimensions:()=>n_,getInstanceByDom:()=>Ux,getInstanceById:()=>Yx,getMap:()=>h_,graphic:()=>h,helper:()=>s,init:()=>Gx,innerDrawElementOnCanvas:()=>km,matrix:()=>n,number:()=>l,parseGeoJSON:()=>kw,parseGeoJson:()=>kw,registerAction:()=>t_,registerCoordinateSystem:()=>e_,registerLayout:()=>i_,registerLoading:()=>s_,registerLocale:()=>Gh,registerMap:()=>u_,registerPostInit:()=>Kx,registerPostUpdate:()=>Jx,registerPreprocessor:()=>Zx,registerProcessor:()=>qx,registerTheme:()=>Xx,registerTransform:()=>c_,registerUpdateLifecycle:()=>Qx,registerVisual:()=>r_,setCanvasCreator:()=>l_,setPlatformAPI:()=>D,throttle:()=>Jy,time:()=>u,use:()=>g_,util:()=>d,vector:()=>e,version:()=>Wm,zrUtil:()=>t,zrender:()=>r});var f=a(4801);!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(9249),a(9391),a(7612),a(2048),a(1617);var g=a(489);async function y(t){const e=function(){const t=Array.from(document.querySelectorAll("ix-toast-container")),[e]=t;if(t.length>1)return console.warn("Multiple toast container are found. Only there first is used."),e;if(!e){const t=document.createElement("ix-toast-container");return document.body.appendChild(t),t}return e}();return await e.showToast(t)}y.info=t=>y(Object.assign(Object.assign({},t),{type:"info"})),y.error=t=>y(Object.assign(Object.assign({},t),{type:"error"})),y.success=t=>y(Object.assign(Object.assign({},t),{type:"success"})),y.warning=t=>y(Object.assign(Object.assign({},t),{type:"warning"}));var v=function(t,e){return v=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},v(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 n(){this.constructor=t}v(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var x=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},_=new function(){this.browser=new x,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?(_.wxa=!0,_.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?_.worker=!0:"undefined"==typeof navigator?(_.node=!0,_.svgSupported=!0):function(t,e){var n=e.browser,i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge?\/([\d.]+)/),a=/micromessenger/i.test(t);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,_);const b=_;var w,S,M=12,I="sans-serif",C=M+"px "+I,T=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),A={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!w){var n=A.createCanvas();w=n&&n.getContext("2d")}if(w)return S!==e&&(S=w.font=e||C),w.measureText(t);t=t||"";var i=/(\d+)px/.exec(e=e||C),r=i&&+i[1]||M,o=0;if(e.indexOf("mono")>=0)o=r*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",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,d=h.left,p=h.top;a.push(d,p),l=l&&o&&d===o[c]&&p===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?xe(s,a):xe(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function Se(t){return"CANVAS"===t.nodeName.toUpperCase()}var Me=/([&<>"'])/g,Ie={"&":"&","<":"<",">":">",'"':""","'":"'"};function Ce(t){return null==t?"":(t+"").replace(Me,(function(t,e){return Ie[e]}))}var Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Ae=[],De=b.browser.firefox&&+b.browser.version.split(".")[0]<39;function ke(t,e,n,i){return n=n||{},i?Le(t,e,n):De&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):Le(t,e,n),n}function Le(t,e,n){if(b.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(Se(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(we(Ae,t,i,r))return n.zrX=Ae[0],void(n.zrY=Ae[1])}n.zrX=n.zrY=0}function Pe(t){return t||window.event}function Oe(t,e,n){if(null!=(e=Pe(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&ke(t,r,e,n)}else{ke(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Te.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Ne(t,e,n,i){t.addEventListener(e,n,i)}var Re=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Ee(t){return 2===t.which||3===t.which}var ze=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o1&&r&&r.length>1){var a=Be(r)/Be(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Fe(){return[1,0,0,1,0,0]}function Ge(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 He(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function $e(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function je(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ue(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Ye(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Xe(t){var e=[1,0,0,1,0,0];return We(e,t),e}var Ze=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,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},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,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+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,n){t.x=e,t.y=n},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,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}();const qe=Ze;var Ke=Math.min,Je=Math.max,Qe=new qe,tn=new qe,en=new qe,nn=new qe,rn=new qe,on=new qe,an=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=Ke(t.x,this.x),n=Ke(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Je(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Je(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return $e(r,r,[-e.x,-e.y]),Ue(r,r,[n,i]),$e(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,d=!(of&&(f=x,gf&&(f=_,v=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.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,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}Qe.x=en.x=n.x,Qe.y=nn.y=n.y,tn.x=nn.x=n.x+n.width,tn.y=en.y=n.y+n.height,Qe.transform(i),nn.transform(i),tn.transform(i),en.transform(i),e.x=Ke(Qe.x,tn.x,en.x,nn.x),e.y=Ke(Qe.y,tn.y,en.y,nn.y);var l=Je(Qe.x,tn.x,en.x,nn.x),u=Je(Qe.y,tn.y,en.y,nn.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}();const sn=an;var ln="silent";function un(){Re(this.event)}var hn=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}(ye),cn=function(t,e){this.x=t,this.y=e},dn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],pn=new sn(0,0,0,0),fn=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new cn(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new hn,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new fe(a),a}return m(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(tt(dn,(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,n=t.zrY,i=vn(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new cn(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&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 cn(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.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,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:un}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new cn(t,e);if(yn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new sn(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(pn.copy(h.getBoundingRect()),h.transform&&pn.applyTransform(h.transform),pn.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=gn(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==ln)){e.target=a;break}}}function vn(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}tt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){fn.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=vn(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||re(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));const mn=fn;var xn=7;function _n(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r=0;)r++;return r-e}function bn(t,e,n,i,r){for(i===e&&i++;i>>1])<0?l=o:s=o+1;var u=i-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 wn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function Sn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function Mn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)bn(t,n,i,n+(o=_n(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=xn,o=0;t.length;var a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var d=Sn(t[h],t,l,u,0,e);l+=d,0!=(u-=d)&&0!==(c=wn(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l=xn||p>=xn);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l=0;l--)t[p+l]=t[d+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(y=s-wn(t[u],a,0,s,s-1,e))){for(s-=y,p=1+(c-=y),d=1+(h-=y),l=0;l=xn||y>=xn);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(p=1+(c-=i),d=1+(u-=i),l=i-1;l>=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else{if(0===s)throw new Error;for(d=c-(s-1),l=0;l=0;l--)t[p+l]=t[d+l];t[c]=a[h]}else for(d=c-(s-1),l=0;l1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=_n(t,n,i,e))s&&(l=s),bn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var In=1,Cn=4,Tn=!1;function An(){Tn||(Tn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Dn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var kn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Dn}return t.prototype.traverse=function(t,e){for(var n=0;n0&&(u.__clipPaths=[]),isNaN(u.z)&&(An(),u.z=0),isNaN(u.z2)&&(An(),u.z2=0),isNaN(u.zlevel)&&(An(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,e,n)}},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,n=t.length;e=0&&this._roots.splice(i,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 Ln=kn,Pn=b.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var On={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,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*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-On.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*On.bounceIn(2*t):.5*On.bounceOut(2*t-1)+.5}};const Nn=On;var Rn=Math.pow,En=Math.sqrt,zn=1e-8,Bn=1e-4,Vn=En(3),Fn=1/3,Gn=Gt(),Wn=Gt(),Hn=Gt();function $n(t){return t>-zn&&tzn||t<-zn}function Un(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function Yn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Xn(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,d=l*l-3*s*u,p=0;if($n(h)&&$n(c))$n(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[p++]=M);else{var f=c*c-4*h*d;if($n(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[p++]=M),y>=0&&y<=1&&(o[p++]=y)}else if(f>0){var v=En(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-Rn(-m,Fn):Rn(m,Fn))+(x=x<0?-Rn(-x,Fn):Rn(x,Fn))))/(3*a))>=0&&M<=1&&(o[p++]=M)}else{var _=(2*h*s-3*a*c)/(2*En(h*h*h)),b=Math.acos(_)/3,w=En(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+Vn*Math.sin(b)))/(3*a),(-s+w*(S-Vn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[p++]=M),y>=0&&y<=1&&(o[p++]=y),I>=0&&I<=1&&(o[p++]=I)}}return p}function Zn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if($n(a))jn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if($n(u))r[0]=-o/(2*a);else if(u>0){var h,c=En(u),d=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}function qn(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function Kn(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f,g,y=.005,v=1/0;Gn[0]=l,Gn[1]=u;for(var m=0;m<1;m+=.05)Wn[0]=Un(t,n,r,a,m),Wn[1]=Un(e,i,o,s,m),(f=ae(Gn,Wn))=0&&f=0&&y=1?1:Xn(0,i,o,1,t,s)&&Un(0,r,a,1,s[0])}}}const si=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 n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;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:Nn[t]||ai(t)},t}();var li=function(t){this.value=t},ui=function(){function t(){this._len=0}return t.prototype.insert=function(t){var e=new li(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,n=t.next;e?e.next=n:this.head=n,n?n.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}(),hi=function(){function t(t){this._list=new ui,this._maxSize=10,this._map={},this._maxSize=t}return t.prototype.put=function(t,e){var n=this._list,i=this._map,r=null;if(null==i[t]){var o=n.len(),a=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var s=n.head;n.remove(s),delete i[s.key],r=s.value,this._lastRemovedEntry=s}a?a.value=e:a=new li(e),a.key=t,n.insertEntry(a),i[t]=a}return r},t.prototype.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},t.prototype.clear=function(){this._list.clear(),this._map={}},t.prototype.len=function(){return this._list.len()},t}();const ci=hi;var di={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 pi(t){return(t=Math.round(t))<0?0:t>255?255:t}function fi(t){return t<0?0:t>1?1:t}function gi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?pi(parseFloat(e)/100*255):pi(parseInt(e,10))}function yi(t){var e=t;return e.length&&"%"===e.charAt(e.length-1)?fi(parseFloat(e)/100):fi(parseFloat(e))}function vi(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function mi(t,e,n){return t+(e-t)*n}function xi(t,e,n,i,r){return t[0]=e,t[1]=n,t[2]=i,t[3]=r,t}function _i(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t}var bi=new ci(20),wi=null;function Si(t,e){wi&&_i(wi,e),wi=bi.put(t,wi||e.slice())}function Mi(t,e){if(t){e=e||[];var n=bi.get(t);if(n)return _i(e,n);var i=(t+="").replace(/ /g,"").toLowerCase();if(i in di)return _i(e,di[i]),Si(t,e),e;var r,o=i.length;if("#"===i.charAt(0))return 4===o||5===o?(r=parseInt(i.slice(1,4),16))>=0&&r<=4095?(xi(e,(3840&r)>>4|(3840&r)>>8,240&r|(240&r)>>4,15&r|(15&r)<<4,5===o?parseInt(i.slice(4),16)/15:1),Si(t,e),e):void xi(e,0,0,0,1):7===o||9===o?(r=parseInt(i.slice(1,7),16))>=0&&r<=16777215?(xi(e,(16711680&r)>>16,(65280&r)>>8,255&r,9===o?parseInt(i.slice(7),16)/255:1),Si(t,e),e):void xi(e,0,0,0,1):void 0;var a=i.indexOf("("),s=i.indexOf(")");if(-1!==a&&s+1===o){var l=i.substr(0,a),u=i.substr(a+1,s-(a+1)).split(","),h=1;switch(l){case"rgba":if(4!==u.length)return 3===u.length?xi(e,+u[0],+u[1],+u[2],1):xi(e,0,0,0,1);h=yi(u.pop());case"rgb":return u.length>=3?(xi(e,gi(u[0]),gi(u[1]),gi(u[2]),3===u.length?h:yi(u[3])),Si(t,e),e):void xi(e,0,0,0,1);case"hsla":return 4!==u.length?void xi(e,0,0,0,1):(u[3]=yi(u[3]),Ii(u,e),Si(t,e),e);case"hsl":return 3!==u.length?void xi(e,0,0,0,1):(Ii(u,e),Si(t,e),e);default:return}}xi(e,0,0,0,1)}}function Ii(t,e){var n=(parseFloat(t[0])%360+360)%360/360,i=yi(t[1]),r=yi(t[2]),o=r<=.5?r*(i+1):r+i-r*i,a=2*r-o;return xi(e=e||[],pi(255*vi(a,o,n+1/3)),pi(255*vi(a,o,n)),pi(255*vi(a,o,n-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Ci(t,e){var n=Mi(t);if(n){for(var i=0;i<3;i++)n[i]=e<0?n[i]*(1-e)|0:(255-n[i])*e+n[i]|0,n[i]>255?n[i]=255:n[i]<0&&(n[i]=0);return Ni(n,4===n.length?"rgba":"rgb")}}function Ti(t){var e=Mi(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Ai(t,e,n){if(e&&e.length&&t>=0&&t<=1){n=n||[];var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=e[r],s=e[o],l=i-r;return n[0]=pi(mi(a[0],s[0],l)),n[1]=pi(mi(a[1],s[1],l)),n[2]=pi(mi(a[2],s[2],l)),n[3]=fi(mi(a[3],s[3],l)),n}}var Di=Ai;function ki(t,e,n){if(e&&e.length&&t>=0&&t<=1){var i=t*(e.length-1),r=Math.floor(i),o=Math.ceil(i),a=Mi(e[r]),s=Mi(e[o]),l=i-r,u=Ni([pi(mi(a[0],s[0],l)),pi(mi(a[1],s[1],l)),pi(mi(a[2],s[2],l)),fi(mi(a[3],s[3],l))],"rgba");return n?{color:u,leftIndex:r,rightIndex:o,value:i}:u}}var Li=ki;function Pi(t,e,n,i){var r=Mi(t);if(t)return r=function(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,c=((s-r)/6+l/2)/l,d=((s-o)/6+l/2)/l;i===s?e=d-c:r===s?e=1/3+h-d:o===s&&(e=2/3+c-h),e<0&&(e+=1),e>1&&(e-=1)}var p=[360*e,n,u];return null!=t[3]&&p.push(t[3]),p}}(r),null!=e&&(r[0]=function(t){return(t=Math.round(t))<0?0:t>360?360:t}(e)),null!=n&&(r[1]=yi(n)),null!=i&&(r[2]=yi(i)),Ni(Ii(r),"rgba")}function Oi(t,e){var n=Mi(t);if(n&&null!=e)return n[3]=fi(e),Ni(n,"rgba")}function Ni(t,e){if(t&&t.length){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}}function Ri(t,e){var n=Mi(t);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*e:0}function Ei(){return Ni([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var zi=Math.round;function Bi(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var n=Mi(t);n&&(t="rgb("+n[0]+","+n[1]+","+n[2]+")",e=n[3])}}else t="none";return{color:t,opacity:null==e?1:e}}var Vi=1e-4;function Fi(t){return t-Vi}function Gi(t){return zi(1e3*t)/1e3}function Wi(t){return zi(1e4*t)/1e4}var Hi={left:"start",right:"end",center:"middle",middle:"middle"};function $i(t){return t&&!!t.image}function ji(t){return $i(t)||function(t){return t&&!!t.svgElement}(t)}function Ui(t){return"linear"===t.type}function Yi(t){return"radial"===t.type}function Xi(t){return t&&("linear"===t.type||"radial"===t.type)}function Zi(t){return"url(#"+t+")"}function qi(t){var e=t.getGlobalScale(),n=Math.max(e[0],e[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function Ki(t){var e=t.x||0,n=t.y||0,i=(t.rotation||0)*Ft,r=wt(t.scaleX,1),o=wt(t.scaleY,1),a=t.skewX||0,s=t.skewY||0,l=[];return(e||n)&&l.push("translate("+e+"px,"+n+"px)"),i&&l.push("rotate("+i+")"),1===r&&1===o||l.push("scale("+r+","+o+")"),(a||s)&&l.push("skew("+zi(a*Ft)+"deg, "+zi(s*Ft)+"deg)"),l.join(" ")}var Ji=b.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},Qi=Array.prototype.slice;function tr(t,e,n){return(e-t)*n+t}function er(t,e,n,i){for(var r=e.length,o=0;oi?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;sa)i.length=a;else for(var s=o;s=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=6,s=e;if(Q(e)){var l=function(t){return Q(t&&t[0])?2:1}(e);a=l,(1===l&&!dt(e[0])||2===l&&!dt(e[0][0]))&&(o=!0)}else if(dt(e)&&!_t(e))a=0;else if(ht(e))if(isNaN(+e)){var u=Mi(e);u&&(s=u,a=3)}else a=0;else if(vt(e)){var h=Y({},s);h.colorStops=et(e.colorStops,(function(t){return{offset:t.offset,color:Mi(t.color)}})),Ui(e)?a=4:Yi(e)&&(a=5),s=h}0===r?this.valType=a:a===this.valType&&6!==a||(o=!0),this.discrete=this.discrete||o;var c={time:t,value:s,rawValue:e,percent:0};return n&&(c.easing=n,c.easingFunc=ut(n)?n:Nn[n]||ai(n)),i.push(c),c},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ur(i),l=lr(i),u=0;u=0&&!(l[n].percent<=e);n--);n=p(n,u-2)}else{for(n=d;ne);n++);n=p(n-1,u-2)}r=l[n+1],i=l[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var f=r.percent-i.percent,g=0===f?1:p((e-i.percent)/f,1);r.easingFunc&&(g=r.easingFunc(g));var y=o?this._additiveValue:c?hr:t[h];if(!ur(s)&&!c||y||(y=this._additiveValue=[]),this.discrete)t[h]=g<1?i.rawValue:r.rawValue;else if(ur(s))1===s?er(y,i[a],r[a],g):function(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a0&&s.addKeyframe(0,ar(l),i),this._trackKeys.push(a)}s.addKeyframe(t,ar(e[a]),i)}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,n=0;n0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}();const pr=dr;function fr(){return(new Date).getTime()}var gr=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}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,n=t.next;e?e.next=n:this._head=n,n?n.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=fr()-this._pausedTime,n=e-this._time,i=this._head;i;){var r=i.next;i.step(e,n)?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;this._running=!0,Pn((function e(){t._running&&(Pn(e),!t._paused&&t.update())}))},e.prototype.start=function(){this._running||(this._time=fr(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=fr(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=fr()-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 n=new pr(t,e.loop);return this.addAnimator(n),n},e}(ye);const yr=gr;var vr,mr,xr=b.domSupported,_r=(mr={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},{mouse:vr=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],touch:["touchstart","touchend","touchmove"],pointer:et(vr,(function(t){var e=t.replace("mouse","pointer");return mr.hasOwnProperty(e)?e:t}))}),br=["mousemove","mouseup"],wr=["pointermove","pointerup"],Sr=!1;function Mr(t){var e=t.pointerType;return"pen"===e||"touch"===e}function Ir(t){t&&(t.zrByTouch=!0)}function Cr(t,e){for(var n=e,i=!1;n&&9!==n.nodeType&&!(i=n.domBelongToZr||n!==e&&n===t.painterRoot);)n=n.parentNode;return i}var Tr=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},Ar={mousedown:function(t){t=Oe(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Oe(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=Oe(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Cr(this,(t=Oe(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Sr=!0,t=Oe(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Sr||(t=Oe(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){Ir(t=Oe(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Ar.mousemove.call(this,t),Ar.mousedown.call(this,t)},touchmove:function(t){Ir(t=Oe(this.dom,t)),this.handler.processGesture(t,"change"),Ar.mousemove.call(this,t)},touchend:function(t){Ir(t=Oe(this.dom,t)),this.handler.processGesture(t,"end"),Ar.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Ar.click.call(this,t)},pointerdown:function(t){Ar.mousedown.call(this,t)},pointermove:function(t){Mr(t)||Ar.mousemove.call(this,t)},pointerup:function(t){Ar.mouseup.call(this,t)},pointerout:function(t){Mr(t)||Ar.mouseout.call(this,t)}};tt(["click","dblclick","contextmenu"],(function(t){Ar[t]=function(e){e=Oe(this.dom,e),this.trigger(t,e)}}));var Dr={pointermove:function(t){Mr(t)||Dr.mousemove.call(this,t)},pointerup:function(t){Dr.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 kr(t,e,n,i){t.mounted[e]=n,t.listenerOpts[e]=i,Ne(t.domTarget,e,n,i)}function Lr(t){var e,n,i,r,o=t.mounted;for(var a in o)o.hasOwnProperty(a)&&(e=t.domTarget,n=a,i=o[a],r=t.listenerOpts[a],e.removeEventListener(n,i,r));t.mounted={}}var Pr=function(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e};const Or=function(t){function e(e,n){var i,r,o,a=t.call(this)||this;return a.__pointerCapturing=!1,a.dom=e,a.painterRoot=n,a._localHandlerScope=new Pr(e,Ar),xr&&(a._globalHandlerScope=new Pr(document,Dr)),i=a,r=a._localHandlerScope,o=r.domHandlers,b.pointerEventsSupported?tt(_r.pointer,(function(t){kr(r,t,(function(e){o[t].call(i,e)}))})):(b.touchEventsSupported&&tt(_r.touch,(function(t){kr(r,t,(function(e){o[t].call(i,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)}(r)}))})),tt(_r.mouse,(function(t){kr(r,t,(function(e){e=Pe(e),r.touching||o[t].call(i,e)}))}))),a}return m(e,t),e.prototype.dispose=function(){Lr(this._localHandlerScope),xr&&Lr(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,xr&&+this.__pointerCapturing^+t){this.__pointerCapturing=t;var e=this._globalHandlerScope;t?function(t,e){function n(n){kr(e,n,(function(i){i=Pe(i),Cr(t,i.target)||(i=function(t,e){return Oe(t.dom,new Tr(t,e),!0)}(t,i),e.domHandlers[n].call(t,i))}),{capture:!0})}b.pointerEventsSupported?tt(wr,n):b.touchEventsSupported||tt(br,n)}(this,e):Lr(e)}},e}(ye);var Nr=1;b.hasGlobalWindow&&(Nr=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var Rr=Nr,Er="#333",zr="#ccc",Br=Ge;function Vr(t){return t>5e-5||t<-5e-5}var Fr=[],Gr=[],Wr=[1,0,0,1,0,0],Hr=Math.abs,$r=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 Vr(this.rotation)||Vr(this.x)||Vr(this.y)||Vr(this.scaleX-1)||Vr(this.scaleY-1)||Vr(this.skewX)||Vr(this.skewY)},t.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),n=this.transform;e||t?(n=n||[1,0,0,1,0,0],e?this.getLocalTransform(n):Br(n),t&&(e?He(n,t,n):We(n,t)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&(Br(n),this.invTransform=null)},t.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(null!=e&&1!==e){this.getGlobalScale(Fr);var n=Fr[0]<0?-1:1,i=Fr[1]<0?-1:1,r=((Fr[0]-n)*e+n)/Fr[0]||0,o=((Fr[1]-i)*e+i)/Fr[1]||0;t[0]*=r,t[1]*=r,t[2]*=o,t[3]*=o}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],n=t[2]*t[2]+t[3]*t[3],i=Math.atan2(t[1],t[0]),r=Math.PI/2+i-Math.atan2(t[3],t[2]);n=Math.sqrt(n)*Math.cos(r),e=Math.sqrt(e),this.skewX=r,this.skewY=0,this.rotation=-i,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=n,this.originX=0,this.originY=0}},t.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(He(Gr,t.invTransform,e),e=Gr);var n=this.originX,i=this.originY;(n||i)&&(Wr[4]=n,Wr[5]=i,He(Gr,e,Wr),Gr[4]-=n,Gr[5]-=i,e=Gr),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 n=[t,e],i=this.invTransform;return i&&ue(n,n,i),n},t.prototype.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&ue(n,n,i),n},t.prototype.getLineScale=function(){var t=this.transform;return t&&Hr(t[0]-1)>1e-10&&Hr(t[3]-1)>1e-10?Math.sqrt(Hr(t[0]*t[3]-t[2]*t[1])):1},t.prototype.copyTransform=function(t){Ur(this,t)},t.getLocalTransform=function(t,e){e=e||[];var n=t.originX||0,i=t.originY||0,r=t.scaleX,o=t.scaleY,a=t.anchorX,s=t.anchorY,l=t.rotation||0,u=t.x,h=t.y,c=t.skewX?Math.tan(t.skewX):0,d=t.skewY?Math.tan(-t.skewY):0;if(n||i||a||s){var p=n+a,f=i+s;e[4]=-p*r-c*f*o,e[5]=-f*o-d*p*r}else e[4]=e[5]=0;return e[0]=r,e[3]=o,e[1]=d*r,e[2]=c*o,l&&je(e,e,l),e[4]+=n+u,e[5]+=i+h,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}(),jr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ur(t,e){for(var n=0;n=0?parseFloat(t)/100*e:parseFloat(t):t}function no(t,e,n){var i=e.position||"inside",r=null!=e.distance?e.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,u=n.y,h="left",c="top";if(i instanceof Array)l+=eo(i[0],n.width),u+=eo(i[1],n.height),h=null,c=null;else switch(i){case"left":l-=r,u+=s,h="right",c="middle";break;case"right":l+=r+a,u+=s,c="middle";break;case"top":l+=a/2,u-=r,h="center",c="bottom";break;case"bottom":l+=a/2,u+=o+r,h="center";break;case"inside":l+=a/2,u+=s,h="center",c="middle";break;case"insideLeft":l+=r,u+=s,c="middle";break;case"insideRight":l+=a-r,u+=s,h="right",c="middle";break;case"insideTop":l+=a/2,u+=r,h="center";break;case"insideBottom":l+=a/2,u+=o-r,h="center",c="bottom";break;case"insideTopLeft":l+=r,u+=r;break;case"insideTopRight":l+=a-r,u+=r,h="right";break;case"insideBottomLeft":l+=r,u+=o-r,c="bottom";break;case"insideBottomRight":l+=a-r,u+=o-r,h="right",c="bottom"}return(t=t||{}).x=l,t.y=u,t.align=h,t.verticalAlign=c,t}var io="__zr_normal__",ro=jr.concat(["ignore"]),oo=nt(jr,(function(t,e){return t[e]=!0,t}),{ignore:!1}),ao={},so=new sn(0,0,0,0),lo=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,n){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0}var i=this.transform;i||(i=this.transform=[1,0,0,1,0,0]),i[4]+=t,i[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 n=this.textConfig,i=n.local,r=e.innerTransformable,o=void 0,a=void 0,s=!1;r.parent=i?this:null;var l=!1;if(r.copyTransform(e),null!=n.position){var u=so;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),i||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(ao,n,u):no(ao,n,u),r.x=ao.x,r.y=ao.y,o=ao.align,a=ao.verticalAlign;var h=n.origin;if(h&&null!=n.rotation){var c=void 0,d=void 0;"center"===h?(c=.5*u.width,d=.5*u.height):(c=eo(h[0],u.width),d=eo(h[1],u.height)),l=!0,r.originX=-r.x+c+(i?0:u.x),r.originY=-r.y+d+(i?0:u.y)}}null!=n.rotation&&(r.rotation=n.rotation);var p=n.offset;p&&(r.x+=p[0],r.y+=p[1],l||(r.originX=-p[0],r.originY=-p[1]));var f=null==n.inside?"string"==typeof n.position&&n.position.indexOf("inside")>=0:n.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,v=void 0,m=void 0;f&&this.canBeInsideText()?(y=n.insideFill,v=n.insideStroke,null!=y&&"auto"!==y||(y=this.getInsideTextFill()),null!=v&&"auto"!==v||(v=this.getInsideTextStroke(y),m=!0)):(y=n.outsideFill,v=n.outsideStroke,null!=y&&"auto"!==y||(y=this.getOutsideFill()),null!=v&&"auto"!==v||(v=this.getOutsideStroke(y),m=!0)),(y=y||"#000")===g.fill&&v===g.stroke&&m===g.autoStroke&&o===g.align&&a===g.verticalAlign||(s=!0,g.fill=y,g.stroke=v,g.autoStroke=m,g.align=o,g.verticalAlign=a,e.setDefaultTextStyle(g)),e.__dirty|=In,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()?zr:Er},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),n="string"==typeof e&&Mi(e);n||(n=[255,255,255,1]);for(var i=n[3],r=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*i+(r?0:255)*(1-i);return n[3]=1,Ni(n,"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(pt(t))for(var n=ot(t),i=0;i0},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(io,!1,t)},t.prototype.useState=function(t,e,n,i){var r=t===io;if(this.hasState()||!r){var o=this.currentStates,a=this.stateTransition;if(!(q(o,t)>=0)||!e&&1!==o.length){var s;if(this.stateProxy&&!r&&(s=this.stateProxy(t)),s||(s=this.states&&this.states[t]),s||r){r||this.saveCurrentToNormalState(s);var l=!!(s&&s.hoverLayer||i);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,s,this._normalState,e,!n&&!this.__inHover&&a&&a.duration>0,a);var u=this._textContent,h=this._textGuide;return u&&u.useState(t,e,n,l),h&&h.useState(t,e,n,l),r?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~In),s}H("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,n){if(t.length){var i=[],r=this.currentStates,o=t.length,a=o===r.length;if(a)for(var s=0;s0,p);var f=this._textContent,g=this._textGuide;f&&f.useStates(t,e,c),g&&g.useStates(t,e,c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~In)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var n=this.currentStates.slice();n.splice(e,1),this.useStates(n)}},t.prototype.replaceState=function(t,e,n){var i=this.currentStates.slice(),r=q(i,t),o=q(i,e)>=0;r>=0?o?i.splice(r,1):i[r]=e:n&&!o&&i.push(e),this.useStates(i)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,n={},i=0;i=0&&e.splice(n,1)})),this.animators.push(t),n&&n.animation.addAnimator(t),n&&n.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var n=this.animators,i=n.length,r=[],o=0;o0&&n.during&&o[0].during((function(t,e){n.during(e)}));for(var d=0;d0||r.force&&!a.length){var w,S=void 0,M=void 0,I=void 0;if(s)for(M={},d&&(S={}),_=0;_=0&&(n.splice(i,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var n=q(this._children,t);return n>=0&&this.replaceAt(e,n),this},e.prototype.replaceAt=function(t,e){var n=this._children,i=n[e];if(t&&t!==this&&t.parent!==this&&t!==i){n[e]=t,i.parent=null;var r=this.__zr;r&&i.removeSelfFromZr(r),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,n=this._children,i=q(n,t);return i<0||(n.splice(i,1),t.parent=null,e&&t.removeSelfFromZr(e),e&&e.refresh()),this},e.prototype.removeAll=function(){for(var t=this._children,e=this.__zr,n=0;n0&&(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,n){return this.handler.on(t,e,n),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<=r)return a;if(t>=o)return s}else{if(t>=r)return a;if(t<=o)return s}else{if(t===r)return a;if(t===o)return s}return(t-r)/l*u+a}function Do(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 ht(t)?(n=t,n.replace(/^\s+|\s+$/g,"")).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t;var n}function ko(t,e,n){return null==e&&(e=10),e=Math.min(Math.max(0,e),To),t=(+t).toFixed(e),n?t:+t}function Lo(t){return t.sort((function(t,e){return t-e})),t}function Po(t){if(t=+t,isNaN(t))return 0;if(t>1e-14)for(var e=1,n=0;n<15;n++,e*=10)if(Math.round(t*e)/e===t)return n;return Oo(t)}function Oo(t){var e=t.toString().toLowerCase(),n=e.indexOf("e"),i=n>0?+e.slice(n+1):0,r=n>0?n:e.length,o=e.indexOf("."),a=o<0?0:r-1-o;return Math.max(0,a-i)}function No(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20}function Ro(t,e,n){return t[e]&&Eo(t,n)[e]||0}function Eo(t,e){var n=nt(t,(function(t,e){return t+(isNaN(e)?0:e)}),0);if(0===n)return[];for(var i=Math.pow(10,e),r=et(t,(function(t){return(isNaN(t)?0:t)/n*i*100})),o=100*i,a=et(r,(function(t){return Math.floor(t)})),s=nt(a,(function(t,e){return t+e}),0),l=et(r,(function(t,e){return t-a[e]}));su&&(u=l[c],h=c);++a[h],l[h]=0,++s}return et(a,(function(t){return t/i}))}function zo(t,e){var n=Math.max(Po(t),Po(e)),i=t+e;return n>To?i:ko(i,n)}var Bo=9007199254740991;function Vo(t){var e=2*Math.PI;return(t%e+e)%e}function Fo(t){return t>-Co&&t=10&&e++,e}function jo(t,e){var n=$o(t),i=Math.pow(10,n),r=t/i;return t=(e?r<1.5?1:r<2.5?2:r<4?3:r<7?5:10:r<1?1:r<2?2:r<3?3:r<5?5:10)*i,n>=-20?+t.toFixed(n<0?-n:0):t}function Uo(t,e){var n=(t.length-1)*e+1,i=Math.floor(n),r=+t[i-1],o=n-i;return o?r+o*(t[i]-r):r}function Yo(t){t.sort((function(t,e){return s(t,e,0)?-1:1}));for(var e=-1/0,n=1,i=0;i=0||r&&q(r,s)<0)){var l=n.getShallow(s,e);null!=l&&(o[t[a][0]]=l)}}return o}}var Ra=Na([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Ea=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ra(this,t,e)},t}(),za=new ci(50);function Ba(t){if("string"==typeof t){var e=za.get(t);return e&&e.image}return t}function Va(t,e,n,i,r){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!n)return e;var o=za.get(t),a={hostEl:n,cb:i,cbPayload:r};return o?!Ga(e=o.image)&&o.pending.push(a):((e=A.loadImage(t,Fa,Fa)).__zrImageSrc=t,za.put(t,e.__cachedImgObj={image:e,pending:[a]})),e}return t}return e}function Fa(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=a;l++)s-=a;var u=Zr(n,e);return u>s&&(n="",u=0),s=t-u,r.ellipsis=n,r.ellipsisWidth=u,r.contentWidth=s,r.containerWidth=t,r}function ja(t,e){var n=e.containerWidth,i=e.font,r=e.contentWidth;if(!n)return"";var o=Zr(t,i);if(o<=n)return t;for(var a=0;;a++){if(o<=r||a>=e.maxIterations){t+=e.ellipsis;break}var s=0===a?Ua(t,r,e.ascCharWidth,e.cnCharWidth):o>0?Math.floor(t.length*r/o):0;o=Zr(t=t.substr(0,s),i)}return""===t&&(t=e.placeholder),t}function Ua(t,e,n,i){for(var r=0,o=0,a=t.length;o0&&f+i.accumWidth>i.width&&(o=e.split("\n"),c=!0),i.accumWidth=f}else{var g=Qa(e,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+p,a=g.linesWidths,o=g.lines}}else o=e.split("\n");for(var y=0;y=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Ka[t]}function Qa(t,e,n,i,r){for(var o=[],a=[],s="",l="",u=0,h=0,c=0;cn:r+h+p>n)?h?(s||l)&&(f?(s||(s=l,l="",h=u=0),o.push(s),a.push(h-u),l+=d,s="",h=u+=p):(l&&(s+=l,l="",u=0),o.push(s),a.push(h),s=d,h=p)):f?(o.push(l),a.push(u),l=d,u=p):(o.push(d),a.push(p)):(h+=p,f?(l+=d,u+=p):(l&&(s+=l,l="",u=0),s+=d))}else l&&(s+=l,h+=u),o.push(s),a.push(h),s="",l="",u=0,h=0}return o.length||s||(s=t,l="",u=0),l&&(s+=l),s&&(o.push(s),a.push(h)),1===o.length&&(h+=r),{accumWidth:h,lines:o,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"},ns={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};es[ts]=!0;var is=["z","z2","invisible"],rs=["invisible"],os=function(t){function e(e){return t.call(this,e)||this}var n;return m(e,t),e.prototype._init=function(e){for(var n=ot(e),i=0;i1e-4)return s[0]=t-n,s[1]=e-i,l[0]=t+n,void(l[1]=e+i);if(fs[0]=ds(r)*n+t,fs[1]=cs(r)*i+e,gs[0]=ds(o)*n+t,gs[1]=cs(o)*i+e,u(s,fs,gs),h(l,fs,gs),(r%=ps)<0&&(r+=ps),(o%=ps)<0&&(o+=ps),r>o&&!a?o+=ps:rr&&(ys[0]=ds(p)*n+t,ys[1]=cs(p)*i+e,u(s,ys,s),h(l,ys,l))}var Ms={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Is=[],Cs=[],Ts=[],As=[],Ds=[],ks=[],Ls=Math.min,Ps=Math.max,Os=Math.cos,Ns=Math.sin,Rs=Math.abs,Es=Math.PI,zs=2*Es,Bs="undefined"!=typeof Float32Array,Vs=[];function Fs(t){return Math.round(t/Es*1e8)/1e8%2*Es}function Gs(t,e){var n=Fs(t[0]);n<0&&(n+=zs);var i=n-t[0],r=t[1];r+=i,!e&&r-n>=zs?r=n+zs:e&&n-r>=zs?r=n-zs:!e&&n>r?r=n+(zs-Fs(n-r)):e&&n0&&(this._ux=Rs(n/Rr/t)||0,this._uy=Rs(n/Rr/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(Ms.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 n=Rs(t-this._xi),i=Rs(e-this._yi),r=n>this._ux||i>this._uy;if(this.addData(Ms.L,t,e),this._ctx&&r&&this._ctx.lineTo(t,e),r)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=n*n+i*i;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},t.prototype.bezierCurveTo=function(t,e,n,i,r,o){return this._drawPendingPt(),this.addData(Ms.C,t,e,n,i,r,o),this._ctx&&this._ctx.bezierCurveTo(t,e,n,i,r,o),this._xi=r,this._yi=o,this},t.prototype.quadraticCurveTo=function(t,e,n,i){return this._drawPendingPt(),this.addData(Ms.Q,t,e,n,i),this._ctx&&this._ctx.quadraticCurveTo(t,e,n,i),this._xi=n,this._yi=i,this},t.prototype.arc=function(t,e,n,i,r,o){this._drawPendingPt(),Vs[0]=i,Vs[1]=r,Gs(Vs,o),i=Vs[0];var a=(r=Vs[1])-i;return this.addData(Ms.A,t,e,n,n,i,a,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=Os(r)*n+t,this._yi=Ns(r)*n+e,this},t.prototype.arcTo=function(t,e,n,i,r){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},t.prototype.rect=function(t,e,n,i){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,n,i),this.addData(Ms.R,t,e,n,i),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ms.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&t.closePath(),this._xi=e,this._yi=n,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||!Bs||(this.data=new Float32Array(e));for(var n=0;nu.length&&(this._expandData(),u=this.data);for(var h=0;h0&&(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(){Ts[0]=Ts[1]=Ds[0]=Ds[1]=Number.MAX_VALUE,As[0]=As[1]=ks[0]=ks[1]=-Number.MAX_VALUE;var t,e=this.data,n=0,i=0,r=0,o=0;for(t=0;tn||Rs(y)>i||c===e-1)&&(f=Math.sqrt(D*D+y*y),r=g,o=x);break;case Ms.C:var v=t[c++],m=t[c++],x=(g=t[c++],t[c++]),_=t[c++],b=t[c++];f=Jn(r,o,v,m,g,x,_,b,10),r=_,o=b;break;case Ms.Q:f=ri(r,o,v=t[c++],m=t[c++],g=t[c++],x=t[c++],10),r=g,o=x;break;case Ms.A:var w=t[c++],S=t[c++],M=t[c++],I=t[c++],C=t[c++],T=t[c++],A=T+C;c+=1,t[c++],p&&(a=Os(C)*M+w,s=Ns(C)*I+S),f=Ps(M,I)*Ls(zs,Math.abs(T)),r=Os(A)*M+w,o=Ns(A)*I+S;break;case Ms.R:a=r=t[c++],s=o=t[c++],f=2*t[c++]+2*t[c++];break;case Ms.Z:var D=a-r;y=s-o,f=Math.sqrt(D*D+y*y),r=a,o=s}f>=0&&(l[h++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var n,i,r,o,a,s,l,u,h,c,d=this.data,p=this._ux,f=this._uy,g=this._len,y=e<1,v=0,m=0,x=0;if(!y||(this._pathSegLen||this._calculateLength(),l=this._pathSegLen,u=e*this._pathLen))t:for(var _=0;_0&&(t.lineTo(h,c),x=0),b){case Ms.M:n=r=d[_++],i=o=d[_++],t.moveTo(r,o);break;case Ms.L:a=d[_++],s=d[_++];var S=Rs(a-r),M=Rs(s-o);if(S>p||M>f){if(y){if(v+(X=l[m++])>u){var I=(u-v)/X;t.lineTo(r*(1-I)+a*I,o*(1-I)+s*I);break t}v+=X}t.lineTo(a,s),r=a,o=s,x=0}else{var C=S*S+M*M;C>x&&(h=a,c=s,x=C)}break;case Ms.C:var T=d[_++],A=d[_++],D=d[_++],k=d[_++],L=d[_++],P=d[_++];if(y){if(v+(X=l[m++])>u){qn(r,T,D,L,I=(u-v)/X,Is),qn(o,A,k,P,I,Cs),t.bezierCurveTo(Is[1],Cs[1],Is[2],Cs[2],Is[3],Cs[3]);break t}v+=X}t.bezierCurveTo(T,A,D,k,L,P),r=L,o=P;break;case Ms.Q:if(T=d[_++],A=d[_++],D=d[_++],k=d[_++],y){if(v+(X=l[m++])>u){ni(r,T,D,I=(u-v)/X,Is),ni(o,A,k,I,Cs),t.quadraticCurveTo(Is[1],Cs[1],Is[2],Cs[2]);break t}v+=X}t.quadraticCurveTo(T,A,D,k),r=D,o=k;break;case Ms.A:var O=d[_++],N=d[_++],R=d[_++],E=d[_++],z=d[_++],B=d[_++],V=d[_++],F=!d[_++],G=R>E?R:E,W=Rs(R-E)>.001,H=z+B,$=!1;if(y&&(v+(X=l[m++])>u&&(H=z+B*(u-v)/X,$=!0),v+=X),W&&t.ellipse?t.ellipse(O,N,R,E,V,z,H,F):t.arc(O,N,G,z,H,F),$)break t;w&&(n=Os(z)*R+O,i=Ns(z)*E+N),r=Os(H)*R+O,o=Ns(H)*E+N;break;case Ms.R:n=r=d[_],i=o=d[_+1],a=d[_++],s=d[_++];var j=d[_++],U=d[_++];if(y){if(v+(X=l[m++])>u){var Y=u-v;t.moveTo(a,s),t.lineTo(a+Ls(Y,j),s),(Y-=j)>0&&t.lineTo(a+j,s+Ls(Y,U)),(Y-=U)>0&&t.lineTo(a+Ps(j-Y,0),s+U),(Y-=j)>0&&t.lineTo(a,s+Ps(U-Y,0));break t}v+=X}t.rect(a,s,j,U);break;case Ms.Z:if(y){var X;if(v+(X=l[m++])>u){I=(u-v)/X,t.lineTo(r*(1-I)+n*I,o*(1-I)+i*I);break t}v+=X}t.closePath(),r=n,o=i}}},t.prototype.clone=function(){var e=new t,n=this.data;return e.data=n.slice?n.slice():Array.prototype.slice.call(n),e._len=this._len,e},t.CMD=Ms,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const Hs=Ws;function $s(t,e,n,i,r,o,a){if(0===r)return!1;var s,l=r;if(a>e+l&&a>i+l||at+l&&o>n+l||oe+c&&h>i+c&&h>o+c&&h>s+c||ht+c&&u>n+c&&u>r+c&&u>a+c||ue+u&&l>i+u&&l>o+u||lt+u&&s>n+u&&s>r+u||sn||h+ur&&(r+=Zs);var d=Math.atan2(l,s);return d<0&&(d+=Zs),d>=i&&d<=r||d+Zs>=i&&d+Zs<=r}function Ks(t,e,n,i,r,o){if(o>e&&o>i||or?s:0}var Js=Hs.CMD,Qs=2*Math.PI,tl=[-1,-1,-1],el=[-1,-1];function nl(t,e,n,i,r,o,a,s,l,u){if(u>e&&u>i&&u>o&&u>s||u1&&(void 0,h=el[0],el[0]=el[1],el[1]=h),f=Un(e,i,o,s,el[0]),p>1&&(g=Un(e,i,o,s,el[1]))),2===p?ve&&s>i&&s>o||s=0&&h<=1&&(r[l++]=h);else{var u=a*a-4*o*s;if($n(u))(h=-a/(2*o))>=0&&h<=1&&(r[l++]=h);else if(u>0){var h,c=En(u),d=(-a-c)/(2*o);(h=(-a+c)/(2*o))>=0&&h<=1&&(r[l++]=h),d>=0&&d<=1&&(r[l++]=d)}}return l}(e,i,o,s,tl);if(0===l)return 0;var u=ei(e,i,o);if(u>=0&&u<=1){for(var h=0,c=Qn(e,i,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);tl[0]=-l,tl[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u>=Qs-1e-4){i=0,r=Qs;var h=o?1:-1;return a>=tl[0]+t&&a<=tl[1]+t?h:0}if(i>r){var c=i;i=r,r=c}i<0&&(i+=Qs,r+=Qs);for(var d=0,p=0;p<2;p++){var f=tl[p];if(f+t>a){var g=Math.atan2(s,f);h=o?1:-1,g<0&&(g=Qs+g),(g>=i&&g<=r||g+Qs>=i&&g+Qs<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(h=-h),d+=h)}}return d}function ol(t,e,n,i,r){for(var o,a,s,l,u=t.data,h=t.len(),c=0,d=0,p=0,f=0,g=0,y=0;y1&&(n||(c+=Ks(d,p,f,g,i,r))),m&&(f=d=u[y],g=p=u[y+1]),v){case Js.M:d=f=u[y++],p=g=u[y++];break;case Js.L:if(n){if($s(d,p,u[y],u[y+1],e,i,r))return!0}else c+=Ks(d,p,u[y],u[y+1],i,r)||0;d=u[y++],p=u[y++];break;case Js.C:if(n){if(js(d,p,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=nl(d,p,u[y++],u[y++],u[y++],u[y++],u[y],u[y+1],i,r)||0;d=u[y++],p=u[y++];break;case Js.Q:if(n){if(Us(d,p,u[y++],u[y++],u[y],u[y+1],e,i,r))return!0}else c+=il(d,p,u[y++],u[y++],u[y],u[y+1],i,r)||0;d=u[y++],p=u[y++];break;case Js.A:var x=u[y++],_=u[y++],b=u[y++],w=u[y++],S=u[y++],M=u[y++];y+=1;var I=!!(1-u[y++]);o=Math.cos(S)*b+x,a=Math.sin(S)*w+_,m?(f=o,g=a):c+=Ks(d,p,o,a,i,r);var C=(i-x)*w/b+x;if(n){if(qs(x,_,w,S,S+M,I,e,C,r))return!0}else c+=rl(x,_,w,S,S+M,I,C,r);d=Math.cos(S+M)*b+x,p=Math.sin(S+M)*w+_;break;case Js.R:if(f=d=u[y++],g=p=u[y++],o=f+u[y++],a=g+u[y++],n){if($s(f,g,o,g,e,i,r)||$s(o,g,o,a,e,i,r)||$s(o,a,f,a,e,i,r)||$s(f,a,f,g,e,i,r))return!0}else c+=Ks(o,g,o,a,i,r),c+=Ks(f,a,f,g,i,r);break;case Js.Z:if(n){if($s(d,p,f,g,e,i,r))return!0}else c+=Ks(d,p,f,g,i,r);d=f,p=g}}return n||(s=p,l=g,Math.abs(s-l)<1e-4)||(c+=Ks(d,p,f,g,i,r)||0),0!==c}var al=X({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:X({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},ns.style)},ll=jr.concat(["invisible","culling","z","z2","zlevel","parent"]),ul=function(t){function e(e){return t.call(this,e)||this}var n;return m(e,t),e.prototype.update=function(){var n=this;t.prototype.update.call(this);var i=this.style;if(i.decal){var r=this._decalEl=this._decalEl||new e;r.buildPath===e.prototype.buildPath&&(r.buildPath=function(t){n.buildPath(t,n.shape)}),r.silent=!0;var o=r.style;for(var a in i)o[a]!==i[a]&&(o[a]=i[a]);o.fill=i.fill?i.decal:null,o.decal=null,o.shadowColor=null,i.strokeFirst&&(o.stroke=null);for(var s=0;s.5?Er:e>.2?"#eee":zr}if(t)return zr}return Er},e.prototype.getInsideTextStroke=function(t){var e=this.style.fill;if(ht(e)){var n=this.__zr;if(!(!n||!n.isDarkMode())==Ri(t,0)<.4)return e}},e.prototype.buildPath=function(t,e,n){},e.prototype.pathUpdated=function(){this.__dirty&=~Cn},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 Hs(!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,n=!t;if(n){var i=!1;this.path||(i=!0,this.createPathProxy());var r=this.path;(i||this.__dirty&Cn)&&(r.beginPath(),this.buildPath(r,this.shape,!1),this.pathUpdated()),t=r.getBoundingRect()}if(this._rect=t,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=t.clone());if(this.__dirty||n){o.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&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return t},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path;if(this.hasStroke()){var a=r.lineWidth,s=r.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),function(t,e,n,i){return ol(t,e,!0,n,i)}(o,a/s,t,e)))return!0}if(this.hasFill())return function(t,e,n){return ol(t,0,!1,e,n)}(o,t,e)}return!1},e.prototype.dirtyShape=function(){this.__dirty|=Cn,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,n){"shape"===e?this.setShape(n):t.prototype.attrKV.call(this,e,n)},e.prototype.setShape=function(t,e){var n=this.shape;return n||(n=this.shape={}),"string"==typeof t?n[t]=e:Y(n,t),this.dirtyShape(),this},e.prototype.shapeChanged=function(){return!!(this.__dirty&Cn)},e.prototype.createStyle=function(t){return Et(al,t)},e.prototype._innerSaveToNormal=function(e){t.prototype._innerSaveToNormal.call(this,e);var n=this._normalState;e.shape&&!n.shape&&(n.shape=Y({},this.shape))},e.prototype._applyStateObj=function(e,n,i,r,o,a){t.prototype._applyStateObj.call(this,e,n,i,r,o,a);var s,l=!(n&&r);if(n&&n.shape?o?r?s=n.shape:(s=Y({},i.shape),Y(s,n.shape)):(s=Y({},r?this.shape:i.shape),Y(s,n.shape)):l&&(s=i.shape),s)if(o){this.shape=Y({},this.shape);for(var u={},h=ot(s),c=0;c0},e.prototype.hasFill=function(){var t=this.style.fill;return null!=t&&"none"!==t},e.prototype.createStyle=function(t){return Et(cl,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 n=Kr(e,t.font,t.textAlign,t.textBaseline);if(n.x+=t.x||0,n.y+=t.y||0,this.hasStroke()){var i=t.lineWidth;n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i}this._rect=n}return this._rect},e.initDefaultProps=void(e.prototype.dirtyRectTolerance=10),e}(ls);dl.prototype.type="tspan";const pl=dl;var fl=X({x:0,y:0},es),gl={style:X({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},ns.style)},yl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.createStyle=function(t){return Et(fl,t)},e.prototype._getSize=function(t){var e=this.style,n=e[t];if(null!=n)return n;var i,r=(i=e.image)&&"string"!=typeof i&&i.width&&i.height?e.image:this.__image;if(!r)return 0;var o="width"===t?"height":"width",a=e[o];return null==a?r[t]:r[t]/r[o]*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 sn(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(ls);yl.prototype.type="image";const vl=yl;var ml=Math.round;function xl(t,e,n){if(e){var i=e.x1,r=e.x2,o=e.y1,a=e.y2;t.x1=i,t.x2=r,t.y1=o,t.y2=a;var s=n&&n.lineWidth;return s?(ml(2*i)===ml(2*r)&&(t.x1=t.x2=bl(i,s,!0)),ml(2*o)===ml(2*a)&&(t.y1=t.y2=bl(o,s,!0)),t):t}}function _l(t,e,n){if(e){var i=e.x,r=e.y,o=e.width,a=e.height;t.x=i,t.y=r,t.width=o,t.height=a;var s=n&&n.lineWidth;return s?(t.x=bl(i,s,!0),t.y=bl(r,s,!0),t.width=Math.max(bl(i+o,s,!1)-t.x,0===o?0:1),t.height=Math.max(bl(r+a,s,!1)-t.y,0===a?0:1),t):t}}function bl(t,e,n){if(!e)return t;var i=ml(2*t);return(i+ml(e))%2==0?i/2:(i+(n?1:-1))/2}var wl=function(){this.x=0,this.y=0,this.width=0,this.height=0},Sl={},Ml=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new wl},e.prototype.buildPath=function(t,e){var n,i,r,o;if(this.subPixelOptimize){var a=_l(Sl,e,this.style);n=a.x,i=a.y,r=a.width,o=a.height,a.r=e.r,e=a}else n=e.x,i=e.y,r=e.width,o=e.height;e.r?function(t,e){var n,i,r,o,a,s=e.x,l=e.y,u=e.width,h=e.height,c=e.r;u<0&&(s+=u,u=-u),h<0&&(l+=h,h=-h),"number"==typeof c?n=i=r=o=c:c instanceof Array?1===c.length?n=i=r=o=c[0]:2===c.length?(n=r=c[0],i=o=c[1]):3===c.length?(n=c[0],i=o=c[1],r=c[2]):(n=c[0],i=c[1],r=c[2],o=c[3]):n=i=r=o=0,n+i>u&&(n*=u/(a=n+i),i*=u/a),r+o>u&&(r*=u/(a=r+o),o*=u/a),i+r>h&&(i*=h/(a=i+r),r*=h/a),n+o>h&&(n*=h/(a=n+o),o*=h/a),t.moveTo(s+n,l),t.lineTo(s+u-i,l),0!==i&&t.arc(s+u-i,l+i,i,-Math.PI/2,0),t.lineTo(s+u,l+h-r),0!==r&&t.arc(s+u-r,l+h-r,r,0,Math.PI/2),t.lineTo(s+o,l+h),0!==o&&t.arc(s+o,l+h-o,o,Math.PI/2,Math.PI),t.lineTo(s,l+n),0!==n&&t.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}(t,e):t.rect(n,i,r,o)},e.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},e}(hl);Ml.prototype.type="rect";const Il=Ml;var Cl={fill:"#000"},Tl={style:X({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},ns.style)},Al=function(t){function e(e){var n=t.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=Cl,n.attr(e),n}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;ep&&h){var f=Math.floor(p/l);n=n.slice(0,f)}if(t&&a&&null!=c)for(var g=$a(c,o,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y=0;y0,I=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=i.calculatedLineHeight,A=0;Al&&qa(n,t.substring(l,u),e,s),qa(n,i[2],e,s,i[1]),l=Wa.lastIndex}lo){b>0?(m.tokens=m.tokens.slice(0,b),y(m,_,x),n.lines=n.lines.slice(0,v+1)):n.lines=n.lines.slice(0,v);break t}var T=w.width,A=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))P.percentWidth=T,h.push(P),P.contentWidth=Zr(P.text,I);else{if(A){var D=w.backgroundColor,k=D&&D.image;k&&Ga(k=Ba(k))&&(P.width=Math.max(P.width,k.width*C/k.height))}var L=f&&null!=r?r-_:null;null!=L&&L=0&&"right"===(T=x[C]).align;)this._placeToken(T,t,b,f,I,"right",y),w-=T.width,I-=T.width,C--;for(M+=(n-(M-p)-(g-I)-w)/2;S<=C;)T=x[S],this._placeToken(T,t,b,f,M+T.width/2,"center",y),M+=T.width,S++;f+=b}},e.prototype._placeToken=function(t,e,n,i,r,o,a){var s=e.rich[t.styleName]||{};s.text=t.text;var l=t.verticalAlign,u=i+n/2;"top"===l?u=i+t.height/2:"bottom"===l&&(u=i+n-t.height/2),!t.isLineHolder&&Fl(s)&&this._renderBackground(s,e,"right"===o?r-t.width:"center"===o?r-t.width/2:r,u-t.height/2,t.width,t.height);var h=!!s.backgroundColor,c=t.textPadding;c&&(r=Bl(r,o,c),u-=t.height/2-c[0]-t.innerHeight/2);var d=this._getOrCreateChild(pl),p=d.createStyle();d.useStyle(p);var f=this._defaultStyle,g=!1,y=0,v=zl("fill"in s?s.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=El("stroke"in s?s.stroke:"stroke"in e?e.stroke:h||a||f.autoStroke&&!g?null:(y=2,f.stroke)),x=s.textShadowBlur>0||e.textShadowBlur>0;p.text=t.text,p.x=r,p.y=u,x&&(p.shadowBlur=s.textShadowBlur||e.textShadowBlur||0,p.shadowColor=s.textShadowColor||e.textShadowColor||"transparent",p.shadowOffsetX=s.textShadowOffsetX||e.textShadowOffsetX||0,p.shadowOffsetY=s.textShadowOffsetY||e.textShadowOffsetY||0),p.textAlign=o,p.textBaseline="middle",p.font=t.font||C,p.opacity=St(s.opacity,e.opacity,1),Ol(p,s),m&&(p.lineWidth=St(s.lineWidth,e.lineWidth,y),p.lineDash=wt(s.lineDash,e.lineDash),p.lineDashOffset=e.lineDashOffset||0,p.stroke=m),v&&(p.fill=v);var _=t.contentWidth,b=t.contentHeight;d.setBoundingRect(new sn(Jr(p.x,_,p.textAlign),Qr(p.y,b,p.textBaseline),_,b))},e.prototype._renderBackground=function(t,e,n,i,r,o){var a,s,l,u=t.backgroundColor,h=t.borderWidth,c=t.borderColor,d=u&&u.image,p=u&&!d,f=t.borderRadius,g=this;if(p||t.lineHeight||h&&c){(a=this._getOrCreateChild(Il)).useStyle(a.createStyle()),a.style.fill=null;var y=a.shape;y.x=n,y.y=i,y.width=r,y.height=o,y.r=f,a.dirtyShape()}if(p)(l=a.style).fill=u||null,l.fillOpacity=wt(t.fillOpacity,1);else if(d){(s=this._getOrCreateChild(vl)).onload=function(){g.dirtyStyle()};var v=s.style;v.image=u.image,v.x=n,v.y=i,v.width=r,v.height=o}h&&c&&((l=a.style).lineWidth=h,l.stroke=c,l.strokeOpacity=wt(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=St(t.opacity,e.opacity,1)},e.makeFont=function(t){var e="";return Nl(t)&&(e=[t.fontStyle,t.fontWeight,Pl(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Tt(e)||t.textFont||t.font},e}(ls),Dl={left:!0,right:1,center:1},kl={top:1,bottom:1,middle:1},Ll=["fontStyle","fontWeight","fontSize","fontFamily"];function Pl(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?M+"px":t+"px":t}function Ol(t,e){for(var n=0;n=0,o=!1;if(t instanceof hl){var a=Ul(t),s=r&&a.selectFill||a.normalFill,l=r&&a.selectStroke||a.normalStroke;if(au(s)||au(l)){var u=(i=i||{}).style||{};"inherit"===u.fill?(o=!0,i=Y({},i),(u=Y({},u)).fill=s):!au(u.fill)&&au(s)?(o=!0,i=Y({},i),(u=Y({},u)).fill=lu(s)):!au(u.stroke)&&au(l)&&(o||(i=Y({},i),u=Y({},u)),u.stroke=lu(l)),i.style=u}}if(i&&null==i.z2){o||(i=Y({},i));var h=t.z2EmphasisLift;i.z2=t.z2+(null!=h?h:Ql)}return i}(this,0,e,n);if("blur"===t)return function(t,e,n){var i=q(t.currentStates,e)>=0,r=t.style.opacity,o=i?null:function(t,e,n,i){for(var r=t.style,o={},a=0;a0){var o={dataIndex:r,seriesIndex:t.seriesIndex};null!=i&&(o.dataType=i),e.push(o)}}))})),e}function Eu(t,e,n){Wu(t,!0),vu(t,_u),Bu(t,e,n)}function zu(t,e,n,i){i?function(t){Wu(t,!1)}(t):Eu(t,e,n)}function Bu(t,e,n){var i=Wl(t);null!=e?(i.focus=e,i.blurScope=n):i.focus&&(i.focus=null)}var Vu=["emphasis","blur","select"],Fu={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function Gu(t,e,n,i){n=n||"itemStyle";for(var r=0;r0){var c={duration:h.duration,delay:h.delay||0,easing:h.easing,done:o,force:!!o||!!a,setToFinal:!u,scope:t,during:a};l?e.animateFrom(n,c):e.animateTo(n,c)}else e.stopAnimation(),!l&&e.attr(n),a&&a(1),o&&o()}function Zu(t,e,n,i,r,o){Xu("update",t,e,n,i,r,o)}function qu(t,e,n,i,r,o){Xu("enter",t,e,n,i,r,o)}function Ku(t){if(!t.__zr)return!0;for(var e=0;e-1?Rh:zh;function Gh(t,e){t=t.toUpperCase(),Vh[t]=new Lh(e),Bh[t]=e}function Wh(t){return Vh[t]}Gh(Eh,{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:". "}}}}),Gh(Rh,{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 Hh=1e3,$h=6e4,jh=36e5,Uh=864e5,Yh=31536e6,Xh={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}"},Zh="{yyyy}-{MM}-{dd}",qh={year:"{yyyy}",month:"{yyyy}-{MM}",day:Zh,hour:Zh+" "+Xh.hour,minute:Zh+" "+Xh.minute,second:Zh+" "+Xh.second,millisecond:Xh.none},Kh=["year","month","day","hour","minute","second","millisecond"],Jh=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Qh(t,e){return"0000".substr(0,e-(t+="").length)+t}function tc(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 ec(t,e,n,i){var r=Wo(t),o=r[rc(n)](),a=r[oc(n)]()+1,s=Math.floor((a-1)/3)+1,l=r[ac(n)](),u=r["get"+(n?"UTC":"")+"Day"](),h=r[sc(n)](),c=(h-1)%12+1,d=r[lc(n)](),p=r[uc(n)](),f=r[hc(n)](),g=(i instanceof Lh?i:Wh(i||Fh)||Vh[zh]).getModel("time"),y=g.get("month"),v=g.get("monthAbbr"),m=g.get("dayOfWeek"),x=g.get("dayOfWeekAbbr");return(e||"").replace(/{yyyy}/g,o+"").replace(/{yy}/g,Qh(o%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,y[a-1]).replace(/{MMM}/g,v[a-1]).replace(/{MM}/g,Qh(a,2)).replace(/{M}/g,a+"").replace(/{dd}/g,Qh(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,m[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Qh(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Qh(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Qh(d,2)).replace(/{m}/g,d+"").replace(/{ss}/g,Qh(p,2)).replace(/{s}/g,p+"").replace(/{SSS}/g,Qh(f,3)).replace(/{S}/g,f+"")}function nc(t,e){var n=Wo(t),i=n[oc(e)]()+1,r=n[ac(e)](),o=n[sc(e)](),a=n[lc(e)](),s=n[uc(e)](),l=0===n[hc(e)](),u=l&&0===s,h=u&&0===a,c=h&&0===o,d=c&&1===r;return d&&1===i?"year":d?"month":c?"day":h?"hour":u?"minute":l?"second":"millisecond"}function ic(t,e,n){var i=dt(t)?Wo(t):t;switch(e=e||nc(t,n)){case"year":return i[rc(n)]();case"half-year":return i[oc(n)]()>=6?1:0;case"quarter":return Math.floor((i[oc(n)]()+1)/4);case"month":return i[oc(n)]();case"day":return i[ac(n)]();case"half-day":return i[sc(n)]()/24;case"hour":return i[sc(n)]();case"minute":return i[lc(n)]();case"second":return i[uc(n)]();case"millisecond":return i[hc(n)]()}}function rc(t){return t?"getUTCFullYear":"getFullYear"}function oc(t){return t?"getUTCMonth":"getMonth"}function ac(t){return t?"getUTCDate":"getDate"}function sc(t){return t?"getUTCHours":"getHours"}function lc(t){return t?"getUTCMinutes":"getMinutes"}function uc(t){return t?"getUTCSeconds":"getSeconds"}function hc(t){return t?"getUTCMilliseconds":"getMilliseconds"}function cc(t){return t?"setUTCFullYear":"setFullYear"}function dc(t){return t?"setUTCMonth":"setMonth"}function pc(t){return t?"setUTCDate":"setDate"}function fc(t){return t?"setUTCHours":"setHours"}function gc(t){return t?"setUTCMinutes":"setMinutes"}function yc(t){return t?"setUTCSeconds":"setSeconds"}function vc(t){return t?"setUTCMilliseconds":"setMilliseconds"}function mc(t){if(!Zo(t))return ht(t)?t:"-";var e=(t+"").split(".");return e[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(e.length>1?"."+e[1]:"")}function xc(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 _c=It;function bc(t,e,n){function i(t){return t&&Tt(t)?t:"-"}function r(t){return!(null==t||isNaN(t)||!isFinite(t))}var o="time"===e,a=t instanceof Date;if(o||a){var s=o?Wo(t):t;if(!isNaN(+s))return ec(s,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",n);if(a)return"-"}if("ordinal"===e)return ct(t)?i(t):dt(t)&&r(t)?t+"":"-";var l=Xo(t);return r(l)?mc(l):ct(t)?i(t):"boolean"==typeof t?t+"":"-"}var wc=["a","b","c","d","e","f","g"],Sc=function(t,e){return"{"+t+(null==e?"":e)+"}"};function Mc(t,e,n){lt(e)||(e=[e]);var i=e.length;if(!i)return"";for(var r=e[0].$vars||[],o=0;o':'':{renderMode:o,content:"{"+(n.markerId||"markerX")+"|} ",style:"subItem"===r?{width:4,height:4,borderRadius:2,backgroundColor:i}:{width:10,height:10,borderRadius:5,backgroundColor:i}}:""}function Cc(t,e,n){"week"!==t&&"month"!==t&&"quarter"!==t&&"half-year"!==t&&"year"!==t||(t="MM-dd\nyyyy");var i=Wo(e),r=n?"getUTC":"get",o=i[r+"FullYear"](),a=i[r+"Month"]()+1,s=i[r+"Date"](),l=i[r+"Hours"](),u=i[r+"Minutes"](),h=i[r+"Seconds"](),c=i[r+"Milliseconds"]();return t.replace("MM",Qh(a,2)).replace("M",a).replace("yyyy",o).replace("yy",Qh(o%100+"",2)).replace("dd",Qh(s,2)).replace("d",s).replace("hh",Qh(l,2)).replace("h",l).replace("mm",Qh(u,2)).replace("m",u).replace("ss",Qh(h,2)).replace("s",h).replace("SSS",Qh(c,3))}function Tc(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Ac(t,e){return e=e||"transparent",ht(t)?t:pt(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Dc(t,e){if("_blank"===e||"blank"===e){var n=window.open();n.opener=null,n.location.href=t}else window.open(t,e)}var kc=tt,Lc=["left","right","top","bottom","width","height"],Pc=[["width","left","right"],["height","top","bottom"]];function Oc(t,e,n,i,r){var o=0,a=0;null==i&&(i=1/0),null==r&&(r=1/0);var s=0;e.eachChild((function(l,u){var h,c,d=l.getBoundingRect(),p=e.childAt(u+1),f=p&&p.getBoundingRect();if("horizontal"===t){var g=d.width+(f?-f.x+d.x:0);(h=o+g)>i||l.newline?(o=0,h=g,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var y=d.height+(f?-f.y+d.y:0);(c=a+y)>r||l.newline?(o+=s+n,a=0,c=y,s=d.width):s=Math.max(s,d.width)}l.newline||(l.x=o,l.y=a,l.markRedraw(),"horizontal"===t?o=h+n:a=c+n)}))}var Nc=Oc;function Rc(t,e,n){n=_c(n||0);var i=e.width,r=e.height,o=Do(t.left,i),a=Do(t.top,r),s=Do(t.right,i),l=Do(t.bottom,r),u=Do(t.width,i),h=Do(t.height,r),c=n[2]+n[0],d=n[1]+n[3],p=t.aspect;switch(isNaN(u)&&(u=i-s-d-o),isNaN(h)&&(h=r-l-c-a),null!=p&&(isNaN(u)&&isNaN(h)&&(p>i/r?u=.8*i:h=.8*r),isNaN(u)&&(u=p*h),isNaN(h)&&(h=u/p)),isNaN(o)&&(o=i-s-u-d),isNaN(a)&&(a=r-l-h-c),t.left||t.right){case"center":o=i/2-u/2-n[3];break;case"right":o=i-u-d}switch(t.top||t.bottom){case"middle":case"center":a=r/2-h/2-n[0];break;case"bottom":a=r-h-c}o=o||0,a=a||0,isNaN(u)&&(u=i-d-o-(s||0)),isNaN(h)&&(h=r-c-a-(l||0));var f=new sn(o+n[3],a+n[0],u,h);return f.margin=n,f}function Ec(t,e,n,i,r,o){var a,s=!r||!r.hv||r.hv[0],l=!r||!r.hv||r.hv[1],u=r&&r.boundingMode||"all";if((o=o||t).x=t.x,o.y=t.y,!s&&!l)return!1;if("raw"===u)a="group"===t.type?new sn(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(a=t.getBoundingRect(),t.needLocalTransform()){var h=t.getLocalTransform();(a=a.clone()).applyTransform(h)}var c=Rc(X({width:a.width,height:a.height},e),n,i),d=s?c.x-a.x:0,p=l?c.y-a.y:0;return"raw"===u?(o.x=d,o.y=p):(o.x+=d,o.y+=p),o===t&&t.markRedraw(),!0}function zc(t){var e=t.layoutMode||t.constructor.layoutMode;return pt(e)?e:e?{type:e}:null}function Bc(t,e,n){var i=n&&n.ignoreSize;!lt(i)&&(i=[i,i]);var r=a(Pc[0],0),o=a(Pc[1],1);function a(n,r){var o={},a=0,u={},h=0;if(kc(n,(function(e){u[e]=t[e]})),kc(n,(function(t){s(e,t)&&(o[t]=u[t]=e[t]),l(o,t)&&a++,l(u,t)&&h++})),i[r])return l(e,n[1])?u[n[2]]=null:l(e,n[2])&&(u[n[1]]=null),u;if(2!==h&&a){if(a>=2)return o;for(var c=0;c=0;a--)o=j(o,n[a],!0);e.defaultOption=o}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var n=t+"Index",i=t+"Id";return _a(this.ecModel,t,{index:this.get(n,!0),id:this.get(i,!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}(Lh);Da(Wc,Lh),Oa(Wc),function(t){var e={};t.registerSubTypeDefaulter=function(t,n){var i=Ta(t);e[i.main]=n},t.determineSubType=function(n,i){var r=i.type;if(!r){var o=Ta(n).main;t.hasSubTypes(n)&&e[o]&&(r=e[o](i))}return r}}(Wc),function(t,e){function n(t,e){return t[e]||(t[e]={predecessor:[],successor:[]}),t[e]}t.topologicalTravel=function(t,e,i,r){if(t.length){var o=function(t){var e={},i=[];return tt(t,(function(r){var o,a,s=n(e,r),l=function(t,e){var n=[];return tt(t,(function(t){q(e,t)>=0&&n.push(t)})),n}(s.originalDeps=(o=r,a=[],tt(Wc.getClassesByMainType(o),(function(t){a=a.concat(t.dependencies||t.prototype.dependencies||[])})),a=et(a,(function(t){return Ta(t).main})),"dataset"!==o&&q(a,"dataset")<=0&&a.unshift("dataset"),a),t);s.entryCount=l.length,0===s.entryCount&&i.push(r),tt(l,(function(t){q(s.predecessor,t)<0&&s.predecessor.push(t);var i=n(e,t);q(i.successor,t)<0&&i.successor.push(r)}))})),{graph:e,noEntryList:i}}(e),a=o.graph,s=o.noEntryList,l={};for(tt(t,(function(t){l[t]=!0}));s.length;){var u=s.pop(),h=a[u],c=!!l[u];c&&(i.call(r,u,h.originalDeps.slice()),delete l[u]),tt(h.successor,c?p:d)}tt(l,(function(){throw new Error("")}))}function d(t){a[t].entryCount--,0===a[t].entryCount&&s.push(t)}function p(t){l[t]=!0,d(t)}}}(Wc);const Hc=Wc;var $c="";"undefined"!=typeof navigator&&($c=navigator.platform||"");var jc="rgba(0, 0, 0, 0.2)";const Uc={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:jc,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:jc,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:jc,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:jc,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:jc,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:jc,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:$c.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 Yc=Nt(["tooltip","label","itemName","itemId","itemGroupId","seriesName"]),Xc="original",Zc="arrayRows",qc="objectRows",Kc="keyedColumns",Jc="typedArray",Qc="unknown",td="column",ed="row",nd={Must:1,Might:2,Not:3},id=fa();function rd(t,e,n){var i={},r=ad(e);if(!r||!t)return i;var o,a,s=[],l=[],u=e.ecModel,h=id(u).datasetMap,c=r.uid+"_"+n.seriesLayoutBy;tt(t=t.slice(),(function(e,n){var r=pt(e)?e:t[n]={name:e};"ordinal"===r.type&&null==o&&(o=n,a=f(r)),i[r.name]=[]}));var d=h.get(c)||h.set(c,{categoryWayDim:a,valueWayDim:0});function p(t,e,n){for(var i=0;ie)return t[i];return t[n-1]}(i,a):n;if((h=h||n)&&h.length){var c=h[l];return r&&(u[r]=c),s.paletteIdx=(l+1)%h.length,c}}var md="\0_ec_inner",xd=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.init=function(t,e,n,i,r,o){i=i||{},this.option=null,this._theme=new Lh(i),this._locale=new Lh(r),this._optionManager=o},e.prototype.setOption=function(t,e,n){var i=wd(e);this._optionManager.setOption(t,n,i),this._resetOption(null,i)},e.prototype.resetOption=function(t,e){return this._resetOption(t,wd(e))},e.prototype._resetOption=function(t,e){var n=!1,i=this._optionManager;if(!t||"recreate"===t){var r=i.mountOption("recreate"===t);this.option&&"recreate"!==t?(this.restoreData(),this._mergeOption(r,e)):cd(this,r),n=!0}if("timeline"!==t&&"media"!==t||this.restoreData(),!t||"recreate"===t||"timeline"===t){var o=i.getTimelineOption(this);o&&(n=!0,this._mergeOption(o,e))}if(!t||"recreate"===t||"media"===t){var a=i.getMediaOption(this);a.length&&tt(a,(function(t){n=!0,this._mergeOption(t,e)}),this)}return n},e.prototype.mergeOption=function(t){this._mergeOption(t,null)},e.prototype._mergeOption=function(t,e){var n=this.option,i=this._componentsMap,r=this._componentsCount,o=[],a=Nt(),s=e&&e.replaceMergeMainTypeMap;id(this).datasetMap=Nt(),tt(t,(function(t,e){null!=t&&(Hc.hasClass(e)?e&&(o.push(e),a.set(e,!0)):n[e]=null==n[e]?$(t):j(n[e],t,!0))})),s&&s.each((function(t,e){Hc.hasClass(e)&&!a.get(e)&&(o.push(e),a.set(e,!0))})),Hc.topologicalTravel(o,Hc.getAllClassMainTypes(),(function(e){var o=function(t,e,n){var i=dd.get(e);if(!i)return n;var r=i(t);return r?n.concat(r):n}(this,e,na(t[e])),a=i.get(e),l=sa(a,o,a?s&&s.get(e)?"replaceMerge":"normalMerge":"replaceAll");(function(t,e,n){tt(t,(function(t){var i=t.newOption;pt(i)&&(t.keyInfo.mainType=e,t.keyInfo.subType=function(t,e,n,i){return e.type?e.type:n?n.subType:i.determineSubType(t,e)}(e,i,t.existing,n))}))})(l,e,Hc),n[e]=null,i.set(e,null),r.set(e,0);var u,h=[],c=[],d=0;tt(l,(function(t,n){var i=t.existing,r=t.newOption;if(r){var o="series"===e,a=Hc.getClass(e,t.keyInfo.subType,!o);if(!a)return;if("tooltip"===e){if(u)return;u=!0}if(i&&i.constructor===a)i.name=t.keyInfo.name,i.mergeOption(r,this),i.optionUpdated(r,!1);else{var s=Y({componentIndex:n},t.keyInfo);Y(i=new a(r,this,this,s),s),t.brandNew&&(i.__requireNewView=!0),i.init(r,this,this),i.optionUpdated(null,!0)}}else i&&(i.mergeOption({},this),i.optionUpdated({},!1));i?(h.push(i.option),c.push(i),d++):(h.push(void 0),c.push(void 0))}),this),n[e]=h,i.set(e,c),r.set(e,d),"series"===e&&ud(this)}),this),this._seriesIndices||ud(this)},e.prototype.getOption=function(){var t=$(this.option);return tt(t,(function(e,n){if(Hc.hasClass(n)){for(var i=na(e),r=i.length,o=!1,a=r-1;a>=0;a--)i[a]&&!da(i[a])?o=!0:(i[a]=null,!o&&r--);i.length=r,t[n]=i}})),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 n=this._componentsMap.get(t);if(n){var i=n[e||0];if(i)return i;if(null==e)for(var r=0;r=e:"max"===n?t<=e:t===e})(i[a],t,o)||(r=!1)}})),r}const Pd=kd;var Od=tt,Nd=pt,Rd=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ed(t){var e=t&&t.itemStyle;if(e)for(var n=0,i=Rd.length;n=0;g--){var y=t[g];if(s||(d=y.data.rawIndexOf(y.stackedByDimension,c)),d>=0){var v=y.data.getByRawIndex(y.stackResultDimension,d);if("all"===l||"positive"===l&&v>0||"negative"===l&&v<0||"samesign"===l&&p>=0&&v>0||"samesign"===l&&p<=0&&v<0){p=zo(p,v),f=v;break}}}return i[0]=p,i[1]=f,i}))}))}var Qd,tp,ep,np,ip,rp=function(t){this.data=t.data||(t.sourceFormat===Kc?{}:[]),this.sourceFormat=t.sourceFormat||Qc,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 n=0;nu&&(u=p)}s[0]=l,s[1]=u}},i=function(){return this._data?this._data.length/this._dimSize:0};function r(t){for(var e=0;e=0&&(s=o.interpolatedValue[l])}return null!=s?s+"":""})):void 0},t.prototype.getRawValue=function(t,e){return Sp(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,n){},t}();function Cp(t){var e,n;return pt(t)?t.type&&(n=t):e=t,{text:e,frag:n}}function Tp(t){return new Ap(t)}var Ap=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,n=this._upstream,i=t&&t.skip;if(this._dirty&&n){var r=this.context;r.data=r.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this),this._plan&&!i&&(e=this._plan(this.context));var o,a=h(this._modBy),s=this._modDataCount||0,l=h(t&&t.modBy),u=t&&t.modDataCount||0;function h(t){return!(t>=1)&&(t=1),t}a===l&&s===u||(e="reset"),(this._dirty||"reset"===e)&&(this._dirty=!1,o=this._doReset(i)),this._modBy=l,this._modDataCount=u;var c=t&&t.step;if(this._dueEnd=n?n._outputDueEnd:this._count?this._count(this.context):1/0,this._progress){var d=this._dueIndex,p=Math.min(null!=c?this._dueIndex+c:1/0,this._dueEnd);if(!i&&(o||d1&&i>0?s:a}};return o;function a(){return e=t?null:oe},gte:function(t,e){return t>=e}},Rp=function(){function t(t,e){dt(e)||kp(""),this._opFn=Np[t],this._rvalFloat=Xo(e)}return t.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xo(t),this._rvalFloat)},t}(),Ep=function(){function t(t,e){var n="desc"===t;this._resultLT=n?1:-1,null==e&&(e=n?"min":"max"),this._incomparable="min"===e?-1/0:1/0}return t.prototype.evaluate=function(t,e){var n=dt(t)?t:Xo(t),i=dt(e)?e:Xo(e),r=isNaN(n),o=isNaN(i);if(r&&(n=this._incomparable),o&&(i=this._incomparable),r&&o){var a=ht(t),s=ht(e);a&&(n=s?t:0),s&&(i=a?e:0)}return ni?-this._resultLT:0},t}(),zp=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xo(e)}return t.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n===this._rvalTypeof||"number"!==n&&"number"!==this._rvalTypeof||(e=Xo(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function Bp(t,e){return"eq"===t||"ne"===t?new zp("eq"===t,e):Bt(Np,t)?new Rp(t,e):null}var Vp=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 Lp(t,e)},t}();function Fp(t){return Up(t.sourceFormat)||kp(""),t.data}function Gp(t){var e=t.sourceFormat,n=t.data;if(Up(e)||kp(""),e===Zc){for(var i=[],r=0,o=n.length;r65535?Zp:qp}function ef(t,e,n,i,r){var o=Qp[n||"float"];if(r){var a=t[e],s=a&&a.length;if(s!==i){for(var l=new o(i),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=s,{start:a,end:s}},t.prototype._initDataFromProvider=function(t,e,n){for(var i=this._provider,r=this._chunks,o=this._dimensions,a=o.length,s=this._rawExtent,l=et(o,(function(t){return t.property})),u=0;uy[1]&&(y[1]=g)}}!i.persistent&&i.clean&&i.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,n=e[t];if(null!=n&&nt))return o;r=o-1}}return-1},t.prototype.indicesOfNearest=function(t,e,n){var i=this._chunks[t],r=[];if(!i)return r;null==n&&(n=1/0);for(var o=1/0,a=-1,s=0,l=0,u=this.count();l=0&&a<0)&&(o=c,a=h,s=0),h===a&&(r[s++]=l))}return r.length=s,r},t.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,i=this._count;if(n===Array){t=new n(i);for(var r=0;r=u&&x<=h||isNaN(x))&&(a[s++]=p),p++;d=!0}else if(2===r){f=c[i[0]];var y=c[i[1]],v=t[i[1]][0],m=t[i[1]][1];for(g=0;g=u&&x<=h||isNaN(x))&&(_>=v&&_<=m||isNaN(_))&&(a[s++]=p),p++}d=!0}}if(!d)if(1===r)for(g=0;g=u&&x<=h||isNaN(x))&&(a[s++]=b)}else for(g=0;gt[M][1])&&(w=!1)}w&&(a[s++]=e.getRawIndex(g))}return sy[1]&&(y[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var n,i,r,o=this.clone([t],!0),a=o._chunks[t],s=this.count(),l=0,u=Math.floor(1/e),h=this.getRawIndex(0),c=new(tf(this._rawCount))(Math.min(2*(Math.ceil(s/u)+2),s));c[l++]=h;for(var d=1;dn&&(n=i,r=I)}M>0&&M<_-x&&(c[l++]=Math.min(S,r),r=Math.max(S,r)),c[l++]=r,h=r}return c[l++]=this.getRawIndex(s-1),o._count=l,o._indices=c,o.getRawIndex=this._getRawIdx,o},t.prototype.downSample=function(t,e,n,i){for(var r=this.clone([t],!0),o=r._chunks,a=[],s=Math.floor(1/e),l=o[t],u=this.count(),h=r._rawExtent[t]=[1/0,-1/0],c=new(tf(this._rawCount))(Math.ceil(u/s)),d=0,p=0;pu-p&&(s=u-p,a.length=s);for(var f=0;fh[1]&&(h[1]=y),c[d++]=v}return r._count=d,r._indices=c,r._updateGetRawIdx(),r},t.prototype.each=function(t,e){if(this._count)for(var n=t.length,i=this._chunks,r=0,o=this.count();ra&&(a=l)}return i=[o,a],this._extent[t]=i,i},t.prototype.getRawDataItem=function(t){var e=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(e);for(var n=[],i=this._chunks,r=0;r=0?this._indices[t]:-1},t.prototype._updateGetRawIdx=function(){this.getRawIndex=this._indices?this._getRawIdx:this._getRawIdxIdentity},t.internalField=function(){function t(t,e,n,i){return Lp(t[i],this._dimensions[i])}Yp={arrayRows:t,objectRows:function(t,e,n,i){return Lp(t[e],this._dimensions[i])},keyedColumns:t,original:function(t,e,n,i){var r=t&&(null==t.value?t:t.value);return Lp(r instanceof Array?r[i]:r,this._dimensions[i])},typedArray:function(t,e,n,i){return t[i]}}}(),t}();const rf=nf;var of=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,n=this._sourceHost,i=this._getUpstreamSourceManagers(),r=!!i.length;if(sf(n)){var o=n,a=void 0,s=void 0,l=void 0;if(r){var u=i[0];u.prepareSource(),a=(l=u.getSource()).data,s=l.sourceFormat,e=[u._getVersionSign()]}else s=gt(a=o.get("data",!0))?Jc:Xc,e=[];var h=this._getSourceMetaRawOption()||{},c=l&&l.metaRawOption||{},d=wt(h.seriesLayoutBy,c.seriesLayoutBy)||null,p=wt(h.sourceHeader,c.sourceHeader),f=wt(h.dimensions,c.dimensions);t=d!==c.seriesLayoutBy||!!p!=!!c.sourceHeader||f?[ap(a,{seriesLayoutBy:d,sourceHeader:p,dimensions:f},s)]:[]}else{var g=n;if(r){var y=this._applyTransform(i);t=y.sourceList,e=y.upstreamSignList}else t=[ap(g.get("source",!0),this._getSourceMetaRawOption(),null)],e=[]}this._setLocalSource(t,e)},t.prototype._applyTransform=function(t){var e,n=this._sourceHost,i=n.get("transform",!0),r=n.get("fromTransformResult",!0);null!=r&&1!==t.length&&lf("");var o,a=[],s=[];return tt(t,(function(t){t.prepareSource();var e=t.getSource(r||0);null==r||e||lf(""),a.push(e),s.push(t._getVersionSign())})),i?e=function(t,e,n){var i=na(t),r=i.length;r||kp("");for(var o=0,a=r;o1||n>0&&!t.noHeader;return tt(t.blocks,(function(t){var n=yf(t);n>=e&&(e=n+ +(i&&(!n||ff(t)&&!t.noHeader)))})),e}return 0}function vf(t,e,n,i){var r,o=e.noHeader,a=(r=yf(e),{html:cf[r],richText:df[r]}),s=[],l=e.blocks||[];Ct(!l||lt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var h={valueAsc:"asc",valueDesc:"desc"};if(Bt(h,u)){var c=new Ep(h[u],null);l.sort((function(t,e){return c.evaluate(t.sortParam,e.sortParam)}))}else"seriesDesc"===u&&l.reverse()}tt(l,(function(n,r){var o=e.valueFormatter,l=gf(n)(o?Y(Y({},t),{valueFormatter:o}):t,n,r>0?a.html:0,i);null!=l&&s.push(l)}));var d="richText"===t.renderMode?s.join(a.richText):_f(s.join(""),o?n:a.html);if(o)return d;var p=bc(e.header,"ordinal",t.useUTC),f=hf(i,t.renderMode).nameStyle;return"richText"===t.renderMode?bf(t,p,f)+a.richText+d:_f('
'+Ce(p)+"
"+d,n)}function mf(t,e,n,i){var r=t.renderMode,o=e.noName,a=e.noValue,s=!e.markerType,l=e.name,u=t.useUTC,h=e.valueFormatter||t.valueFormatter||function(t){return et(t=lt(t)?t:[t],(function(t,e){return bc(t,lt(p)?p[e]:p,u)}))};if(!o||!a){var c=s?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",r),d=o?"":bc(l,"ordinal",u),p=e.valueType,f=a?[]:h(e.value),g=!s||!o,y=!s&&o,v=hf(i,r),m=v.nameStyle,x=v.valueStyle;return"richText"===r?(s?"":c)+(o?"":bf(t,d,m))+(a?"":function(t,e,n,i,r){var o=[r],a=i?10:20;return n&&o.push({padding:[0,0,0,a],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(lt(e)?e.join(" "):e,o)}(t,f,g,y,x)):_f((s?"":c)+(o?"":function(t,e,n){return''+Ce(t)+""}(d,!s,m))+(a?"":function(t,e,n,i){return''+et(t=lt(t)?t:[t],(function(t){return Ce(t)})).join("  ")+""}(f,g,y,x)),n)}}function xf(t,e,n,i,r,o){if(t)return gf(t)({useUTC:r,renderMode:n,orderMode:i,markupStyleCreator:e,valueFormatter:t.valueFormatter},t,0,o)}function _f(t,e){return'
'+t+'
'}function bf(t,e,n){return t.markupStyleCreator.wrapRichTextStyle(e,n)}function wf(t,e){return Ac(t.getData().getItemVisual(e,"style")[t.visualDrawType])}function Sf(t,e){var n=t.get("padding");return null!=n?n:"richText"===e?[8,10]:10}var Mf=function(){function t(){this.richTextStyles={},this._nextStyleNameId=qo()}return t.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},t.prototype.makeTooltipMarker=function(t,e,n){var i="richText"===n?this._generateStyleName():null,r=Ic({color:e,type:t,renderMode:n,markerId:i});return ht(r)?r:(this.richTextStyles[i]=r.style,r.content)},t.prototype.wrapRichTextStyle=function(t,e){var n={};lt(e)?tt(e,(function(t){return Y(n,t)})):Y(n,e);var i=this._generateStyleName();return this.richTextStyles[i]=n,"{"+i+"|"+t+"}"},t}();function If(t){var e,n,i,r,o=t.series,a=t.dataIndex,s=t.multipleSeries,l=o.getData(),u=l.mapDimensionsAll("defaultedTooltip"),h=u.length,c=o.getRawValue(a),d=lt(c),p=wf(o,a);if(h>1||d&&!h){var f=function(t,e,n,i,r){var o=e.getData(),a=nt(t,(function(t,e,n){var i=o.getDimensionInfo(n);return t||i&&!1!==i.tooltip&&null!=i.displayName}),!1),s=[],l=[],u=[];function h(t,e){var n=o.getDimensionInfo(e);n&&!1!==n.otherDims.tooltip&&(a?u.push(pf("nameValue",{markerType:"subItem",markerColor:r,name:n.displayName,value:t,valueType:n.type})):(s.push(t),l.push(n.type)))}return i.length?tt(i,(function(t){h(Sp(o,n,t),t)})):tt(t,h),{inlineValues:s,inlineValueTypes:l,blocks:u}}(c,o,a,u,p);e=f.inlineValues,n=f.inlineValueTypes,i=f.blocks,r=f.inlineValues[0]}else if(h){var g=l.getDimensionInfo(u[0]);r=e=Sp(l,a,u[0]),n=g.type}else r=e=d?c[0]:c;var y=ca(o),v=y&&o.name||"",m=l.getName(a),x=s?v:m;return pf("section",{header:v,noHeader:s||!y,sortParam:r,blocks:[pf("nameValue",{markerType:"item",markerColor:p,name:x,noName:!Tt(x),value:e,valueType:n})].concat(i||[])})}var Cf=fa();function Tf(t,e){return t.getName(e)||t.getId(e)}var Af="__universalTransitionEnabled",Df=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,n){this.seriesIndex=this.componentIndex,this.dataTask=Tp({count:Lf,reset:Pf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,n),(Cf(this).sourceManager=new of(this)).prepareSource();var i=this.getInitialData(t,n);Nf(i,this),this.dataTask.context.data=i,Cf(this).dataBeforeProcessed=i,kf(this),this._initSelectedMapFromData(i)},e.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),i=n?Vc(t):{},r=this.subType;Hc.hasClass(r)&&(r+="Series"),j(t,e.getTheme().get(this.subType)),j(t,this.getDefaultOption()),ia(t,"label",["show"]),this.fillDataTextStyle(t.data),n&&Bc(t,i,n)},e.prototype.mergeOption=function(t,e){t=j(this.option,t,!0),this.fillDataTextStyle(t.data);var n=zc(this);n&&Bc(this.option,t,n);var i=Cf(this).sourceManager;i.dirty(),i.prepareSource();var r=this.getInitialData(t,e);Nf(r,this),this.dataTask.dirty(),this.dataTask.context.data=r,Cf(this).dataBeforeProcessed=r,kf(this),this._initSelectedMapFromData(r)},e.prototype.fillDataTextStyle=function(t){if(t&&!gt(t))for(var e=["show"],n=0;nthis.getShallow("animationThreshold")&&(e=!1),!!e},e.prototype.restoreData=function(){this.dataTask.dirty()},e.prototype.getColorFromPalette=function(t,e,n){var i=this.ecModel,r=gd.prototype.getColorFromPalette.call(this,t,e,n);return r||(r=i.getColorFromPalette(t,e,n)),r},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 n=this.option.selectedMap;if(n){var i=this.option.selectedMode,r=this.getData(e);if("series"===i||"all"===n)return this.option.selectedMap={},void(this._selectedDataIndicesMap={});for(var o=0;o=0&&n.push(r)}return n},e.prototype.isSelected=function(t,e){var n=this.option.selectedMap;if(!n)return!1;var i=this.getData(e);return("all"===n||n[Tf(i,t)])&&!i.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Af])return!0;var t=this.option.universalTransition;return!!t&&(!0===t||t&&t.enabled)},e.prototype._innerSelect=function(t,e){var n,i,r=this.option,o=r.selectedMode,a=e.length;if(o&&a)if("series"===o)r.selectedMap="all";else if("multiple"===o){pt(r.selectedMap)||(r.selectedMap={});for(var s=r.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return Hc.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}(Hc);function kf(t){var e=t.name;ca(t)||(t.name=function(t){var e=t.getRawData(),n=e.mapDimensionsAll("seriesName"),i=[];return tt(n,(function(t){var n=e.getDimensionInfo(t);n.displayName&&i.push(n.displayName)})),i.join(" ")}(t)||e)}function Lf(t){return t.model.getRawData().count()}function Pf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),Of}function Of(t,e){e.outputData&&t.end>e.outputData.count()&&e.model.getRawData().cloneShallow(e.outputData)}function Nf(t,e){tt(Rt(t.CHANGABLE_METHODS,t.DOWNSAMPLE_METHODS),(function(n){t.wrapMethod(n,st(Rf,e))}))}function Rf(t,e){var n=Ef(t);return n&&n.setOutputEnd((e||this).count()),e}function Ef(t){var e=(t.ecModel||{}).scheduler,n=e&&e.getPipeline(t.uid);if(n){var i=n.currentTask;if(i){var r=i.agentStubMap;r&&(i=r.get(t.uid))}return i}}J(Df,Ip),J(Df,gd),Da(Df,Hc);const zf=Df;var Bf=function(){function t(){this.group=new yo,this.uid=Oh("viewComponent")}return t.prototype.init=function(t,e){},t.prototype.render=function(t,e,n,i){},t.prototype.dispose=function(t,e){},t.prototype.updateView=function(t,e,n,i){},t.prototype.updateLayout=function(t,e,n,i){},t.prototype.updateVisual=function(t,e,n,i){},t.prototype.toggleBlurSeries=function(t,e,n){},t.prototype.eachRendered=function(t){var e=this.group;e&&e.traverse(t)},t}();Aa(Bf),Oa(Bf);const Vf=Bf;function Ff(){var t=fa();return function(e){var n=t(e),i=e.pipelineContext,r=!!n.large,o=!!n.progressiveRender,a=n.large=!(!i||!i.large),s=n.progressiveRender=!(!i||!i.progressiveRender);return!(r===a&&o===s)&&"reset"}}var Gf=Hs.CMD,Wf=[[],[],[]],Hf=Math.sqrt,$f=Math.atan2;function jf(t,e){if(e){var n,i,r,o,a,s,l=t.data,u=t.len(),h=Gf.M,c=Gf.C,d=Gf.L,p=Gf.R,f=Gf.A,g=Gf.Q;for(r=0,o=0;r1&&(a*=Uf(f),s*=Uf(f));var g=(r===o?-1:1)*Uf((a*a*(s*s)-a*a*(p*p)-s*s*(d*d))/(a*a*(p*p)+s*s*(d*d)))||0,y=g*a*p/s,v=g*-s*d/a,m=(t+n)/2+Xf(c)*y-Yf(c)*v,x=(e+i)/2+Yf(c)*y+Xf(c)*v,_=Jf([1,0],[(d-y)/a,(p-v)/s]),b=[(d-y)/a,(p-v)/s],w=[(-1*d-y)/a,(-1*p-v)/s],S=Jf(b,w);if(Kf(b,w)<=-1&&(S=Zf),Kf(b,w)>=1&&(S=0),S<0){var M=Math.round(S/Zf*1e6)/1e6;S=2*Zf+M%2*Zf}h.addData(u,m,x,a,s,_,S,c,o)}var tg=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,eg=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g,ng=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.applyTransform=function(t){},e}(hl);function ig(t){return null!=t.setData}function rg(t,e){var n=function(t){var e=new Hs;if(!t)return e;var n,i=0,r=0,o=i,a=r,s=Hs.CMD,l=t.match(tg);if(!l)return e;for(var u=0;uk*k+L*L&&(M=C,I=T),{cx:M,cy:I,x0:-h,y0:-c,x1:M*(r/b-1),y1:I*(r/b-1)}}var Ig=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},Cg=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Ig},e.prototype.buildPath=function(t,e){!function(t,e){var n,i=bg(e.r,0),r=bg(e.r0||0,0),o=i>0;if(o||r>0){if(o||(i=r,r=0),r>i){var a=i;i=r,r=a}var s=e.startAngle,l=e.endAngle;if(!isNaN(s)&&!isNaN(l)){var u=e.cx,h=e.cy,c=!!e.clockwise,d=xg(l-s),p=d>fg&&d%fg;if(p>Sg&&(d=p),i>Sg)if(d>fg-Sg)t.moveTo(u+i*yg(s),h+i*gg(s)),t.arc(u,h,i,s,l,!c),r>Sg&&(t.moveTo(u+r*yg(l),h+r*gg(l)),t.arc(u,h,r,l,s,c));else{var f=void 0,g=void 0,y=void 0,v=void 0,m=void 0,x=void 0,_=void 0,b=void 0,w=void 0,S=void 0,M=void 0,I=void 0,C=void 0,T=void 0,A=void 0,D=void 0,k=i*yg(s),L=i*gg(s),P=r*yg(l),O=r*gg(l),N=d>Sg;if(N){var R=e.cornerRadius;R&&(n=function(t){var e;if(lt(t)){var n=t.length;if(!n)return t;e=1===n?[t[0],t[0],0,0]:2===n?[t[0],t[0],t[1],t[1]]:3===n?t.concat(t[2]):t}else e=[t,t,t,t];return e}(R),f=n[0],g=n[1],y=n[2],v=n[3]);var E=xg(i-r)/2;if(m=wg(E,y),x=wg(E,v),_=wg(E,f),b=wg(E,g),M=w=bg(m,x),I=S=bg(_,b),(w>Sg||S>Sg)&&(C=i*yg(l),T=i*gg(l),A=r*yg(s),D=r*gg(s),dSg){var $=wg(y,M),j=wg(v,M),U=Mg(A,D,k,L,i,$,c),Y=Mg(C,T,P,O,i,j,c);t.moveTo(u+U.cx+U.x0,h+U.cy+U.y0),M0&&t.arc(u+U.cx,h+U.cy,$,mg(U.y0,U.x0),mg(U.y1,U.x1),!c),t.arc(u,h,i,mg(U.cy+U.y1,U.cx+U.x1),mg(Y.cy+Y.y1,Y.cx+Y.x1),!c),j>0&&t.arc(u+Y.cx,h+Y.cy,j,mg(Y.y1,Y.x1),mg(Y.y0,Y.x0),!c))}else t.moveTo(u+k,h+L),t.arc(u,h,i,s,l,!c);else t.moveTo(u+k,h+L);r>Sg&&N?I>Sg?($=wg(f,I),U=Mg(P,O,C,T,r,-(j=wg(g,I)),c),Y=Mg(k,L,A,D,r,-$,c),t.lineTo(u+U.cx+U.x0,h+U.cy+U.y0),I0&&t.arc(u+U.cx,h+U.cy,j,mg(U.y0,U.x0),mg(U.y1,U.x1),!c),t.arc(u,h,r,mg(U.cy+U.y1,U.cx+U.x1),mg(Y.cy+Y.y1,Y.cx+Y.x1),c),$>0&&t.arc(u+Y.cx,h+Y.cy,$,mg(Y.y1,Y.x1),mg(Y.y0,Y.x0),!c))):(t.lineTo(u+P,h+O),t.arc(u,h,r,l,s,c)):t.lineTo(u+P,h+O)}else t.moveTo(u,h);t.closePath()}}}(t,e)},e.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},e}(hl);Cg.prototype.type="sector";const Tg=Cg;var Ag=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Dg=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Ag},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)},e}(hl);Dg.prototype.type="ring";const kg=Dg;function Lg(t,e,n){var i=e.smooth,r=e.points;if(r&&r.length>=2){if(i){var o=function(t,e,n,i){var r,o,a,s,l=[],u=[],h=[],c=[];if(i){a=[1/0,1/0],s=[-1/0,-1/0];for(var d=0,p=t.length;dny[1]){if(a=!1,r)return a;var u=Math.abs(ny[0]-ey[1]),h=Math.abs(ey[0]-ny[1]);Math.min(u,h)>i.len()&&(uMath.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"}function Dy(t){return!t.isGroup}function ky(t,e,n){if(t&&e){var i,r=(i={},t.traverse((function(t){Dy(t)&&t.anid&&(i[t.anid]=t)})),i);e.traverse((function(t){if(Dy(t)&&t.anid){var e=r[t.anid];if(e){var i=o(t);t.attr(o(e)),Zu(t,i,n,Wl(t).dataIndex)}}}))}function o(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 Ly(t,e){return et(t,(function(t){var n=t[0];n=hy(n,e.x),n=cy(n,e.x+e.width);var i=t[1];return i=hy(i,e.y),[n,i=cy(i,e.y+e.height)]}))}function Py(t,e){var n=hy(t.x,e.x),i=cy(t.x+t.width,e.x+e.width),r=hy(t.y,e.y),o=cy(t.y+t.height,e.y+e.height);if(i>=n&&o>=r)return{x:n,y:r,width:i-n,height:o-r}}function Oy(t,e,n){var i=Y({rectHover:!0},e),r=i.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},t)return 0===t.indexOf("image://")?(r.image=t.slice(8),X(r,n),new vl(i)):my(t.replace("path://",""),i,n,"center")}function Ny(t,e,n,i,r){for(var o=0,a=r[r.length-1];o=-1e-6)return!1;var f=t-r,g=e-o,y=Ey(f,g,u,h)/p;if(y<0||y>1)return!1;var v=Ey(f,g,c,d)/p;return!(v<0||v>1)}function Ey(t,e,n,i){return t*i-n*e}function zy(t){var e=t.itemTooltipOption,n=t.componentModel,i=t.itemName,r=ht(e)?{formatter:e}:e,o=n.mainType,a=n.componentIndex,s={componentType:o,name:i,$vars:["name"]};s[o+"Index"]=a;var l=t.formatterParamsExtra;l&&tt(ot(l),(function(t){Bt(s,t)||(s[t]=l[t],s.$vars.push(t))}));var u=Wl(t.el);u.componentMainType=o,u.componentIndex=a,u.tooltipConfig={name:i,option:X({content:i,formatterParams:s},r)}}function By(t,e){var n;t.isGroup&&(n=e(t)),n||t.traverse(e)}function Vy(t,e){if(t)if(lt(t))for(var n=0;n=0?c():h=setTimeout(c,-r),l=i};return d.clear=function(){h&&(clearTimeout(h),h=null)},d.debounceNextCall=function(t){s=t},d}function Qy(t,e,n,i){var r=t[e];if(r){var o=r[Zy]||r,a=r[Ky];if(r[qy]!==n||a!==i){if(null==n||!i)return t[e]=o;(r=t[e]=Jy(o,n,"debounce"===i))[Zy]=o,r[Ky]=i,r[qy]=n}return r}}function tv(t,e){var n=t[e];n&&n[Zy]&&(n.clear&&n.clear(),t[e]=n[Zy])}var ev=fa(),nv={itemStyle:Na(Th,!0),lineStyle:Na(Mh,!0)},iv={lineStyle:"stroke",itemStyle:"fill"};function rv(t,e){return t.visualStyleMapper||nv[e]||(console.warn("Unknown style type '"+e+"'."),nv.itemStyle)}function ov(t,e){return t.visualDrawType||iv[e]||(console.warn("Unknown style type '"+e+"'."),"fill")}var av={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=t.getModel(i),o=rv(t,i)(r),a=r.getShallow("decal");a&&(n.setVisual("decal",a),a.dirty=!0);var s=ov(t,i),l=o[s],u=ut(l)?l:null,h="auto"===o.fill||"auto"===o.stroke;if(!o[s]||u||h){var c=t.getColorFromPalette(t.name,null,e.getSeriesCount());o[s]||(o[s]=c,n.setVisual("colorFromPalette",!0)),o.fill="auto"===o.fill||ut(o.fill)?c:o.fill,o.stroke="auto"===o.stroke||ut(o.stroke)?c:o.stroke}if(n.setVisual("style",o),n.setVisual("drawType",s),!e.isSeriesFiltered(t)&&u)return n.setVisual("colorFromPalette",!1),{dataEach:function(e,n){var i=t.getDataParams(n),r=Y({},o);r[s]=u(i),e.setItemVisual(n,"style",r)}}}},sv=new Lh,lv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){if(!t.ignoreStyleOnData&&!e.isSeriesFiltered(t)){var n=t.getData(),i=t.visualStyleAccessPath||"itemStyle",r=rv(t,i),o=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(t,e){var n=t.getRawDataItem(e);if(n&&n[i]){sv.option=n[i];var a=r(sv);Y(t.ensureUniqueItemVisual(e,"style"),a),sv.option.decal&&(t.setItemVisual(e,"decal",sv.option.decal),sv.option.decal.dirty=!0),o in a&&t.setItemVisual(e,"colorFromPalette",!1)}}:null}}}},uv={performRawSeries:!0,overallReset:function(t){var e=Nt();t.eachSeries((function(t){var n=t.getColorBy();if(!t.isColorBySeries()){var i=t.type+"-"+n,r=e.get(i);r||(r={},e.set(i,r)),ev(t).scope=r}})),t.eachSeries((function(e){if(!e.isColorBySeries()&&!t.isSeriesFiltered(e)){var n=e.getRawData(),i={},r=e.getData(),o=ev(e).scope,a=e.visualStyleAccessPath||"itemStyle",s=ov(e,a);r.each((function(t){var e=r.getRawIndex(t);i[e]=t})),n.each((function(t){var a=i[t];if(r.getItemVisual(a,"colorFromPalette")){var l=r.ensureUniqueItemVisual(a,"style"),u=n.getName(t)||t+"",h=n.count();l[s]=e.getColorFromPalette(u,o,h)}}))}}))}},hv=Math.PI,cv=function(){function t(t,e,n,i){this._stageTaskMap=Nt(),this.ecInstance=t,this.api=e,n=this._dataProcessorHandlers=n.slice(),i=this._visualHandlers=i.slice(),this._allHandlers=n.concat(i)}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 n=this._pipelineMap.get(t.__pipeline.id),i=n.context,r=!e&&n.progressiveEnabled&&(!i||i.progressiveRender)&&t.__idxInPipeline>n.blockIndex?n.step:null,o=i&&i.modDataCount;return{step:r,modBy:null!=o?Math.ceil(o/r):null,modDataCount:o}}},t.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},t.prototype.updateStreamModes=function(t,e){var n=this._pipelineMap.get(t.uid),i=t.getData().count(),r=n.progressiveEnabled&&e.incrementalPrepareRender&&i>=n.threshold,o=t.get("large")&&i>=t.get("largeThreshold"),a="mod"===t.get("progressiveChunkMode")?i:null;t.pipelineContext=n.context={progressiveRender:r,modDataCount:a,large:o}},t.prototype.restorePipelines=function(t){var e=this,n=e._pipelineMap=Nt();t.eachSeries((function(t){var i=t.getProgressive(),r=t.uid;n.set(r,{id:r,head:null,tail:null,threshold:t.getProgressiveThreshold(),progressiveEnabled:i&&!(t.preventIncremental&&t.preventIncremental()),blockIndex:-1,step:Math.round(i||700),count:0}),e._pipe(t,t.dataTask)}))},t.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,e=this.api.getModel(),n=this.api;tt(this._allHandlers,(function(i){var r=t.get(i.uid)||t.set(i.uid,{});Ct(!(i.reset&&i.overallReset),""),i.reset&&this._createSeriesStageTask(i,r,e,n),i.overallReset&&this._createOverallStageTask(i,r,e,n)}),this)},t.prototype.prepareView=function(t,e,n,i){var r=t.renderTask,o=r.context;o.model=e,o.ecModel=n,o.api=i,r.__block=!t.incrementalPrepareRender,this._pipe(e,r)},t.prototype.performDataProcessorTasks=function(t,e){this._performStageTasks(this._dataProcessorHandlers,t,e,{block:!0})},t.prototype.performVisualTasks=function(t,e,n){this._performStageTasks(this._visualHandlers,t,e,n)},t.prototype._performStageTasks=function(t,e,n,i){i=i||{};var r=!1,o=this;function a(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tt(t,(function(t,s){if(!i.visualType||i.visualType===t.visualType){var l=o._stageTaskMap.get(t.uid),u=l.seriesTaskMap,h=l.overallTask;if(h){var c,d=h.agentStubMap;d.each((function(t){a(i,t)&&(t.dirty(),c=!0)})),c&&h.dirty(),o.updatePayload(h,n);var p=o.getPerformArgs(h,i.block);d.each((function(t){t.perform(p)})),h.perform(p)&&(r=!0)}else u&&u.each((function(s,l){a(i,s)&&s.dirty();var u=o.getPerformArgs(s,i.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(s.context.model),o.updatePayload(s,n),s.perform(u)&&(r=!0)}))}})),this.unfinished=r||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,n,i){var r=this,o=e.seriesTaskMap,a=e.seriesTaskMap=Nt(),s=t.seriesType,l=t.getTargetSeries;function u(e){var s=e.uid,l=a.set(s,o&&o.get(s)||Tp({plan:yv,reset:vv,count:_v}));l.context={model:e,ecModel:n,api:i,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:r},r._pipe(e,l)}t.createOnAllSeries?n.eachRawSeries(u):s?n.eachRawSeriesByType(s,u):l&&l(n,i).each(u)},t.prototype._createOverallStageTask=function(t,e,n,i){var r=this,o=e.overallTask=e.overallTask||Tp({reset:dv});o.context={ecModel:n,api:i,overallReset:t.overallReset,scheduler:r};var a=o.agentStubMap,s=o.agentStubMap=Nt(),l=t.seriesType,u=t.getTargetSeries,h=!0,c=!1;function d(t){var e=t.uid,n=s.set(e,a&&a.get(e)||(c=!0,Tp({reset:pv,onDirty:gv})));n.context={model:t,overallProgress:h},n.agent=o,n.__block=h,r._pipe(t,n)}Ct(!t.createOnAllSeries,""),l?n.eachRawSeriesByType(l,d):u?u(n,i).each(d):(h=!1,tt(n.getSeries(),d)),c&&o.dirty()},t.prototype._pipe=function(t,e){var n=t.uid,i=this._pipelineMap.get(n);!i.head&&(i.head=e),i.tail&&i.tail.pipe(e),i.tail=e,e.__idxInPipeline=i.count++,e.__pipeline=i},t.wrapStageHandler=function(t,e){return ut(t)&&(t={overallReset:t,seriesType:bv(t)}),t.uid=Oh("stageHandler"),e&&(t.visualType=e),t},t}();function dv(t){t.overallReset(t.ecModel,t.api,t.payload)}function pv(t){return t.overallProgress&&fv}function fv(){this.agent.dirty(),this.getDownstream().dirty()}function gv(){this.agent&&this.agent.dirty()}function yv(t){return t.plan?t.plan(t.model,t.ecModel,t.api,t.payload):null}function vv(t){t.useClearVisual&&t.data.clearAllVisual();var e=t.resetDefines=na(t.reset(t.model,t.ecModel,t.api,t.payload));return e.length>1?et(e,(function(t,e){return xv(e)})):mv}var mv=xv(0);function xv(t){return function(e,n){var i=n.data,r=n.resetDefines[t];if(r&&r.dataEach)for(var o=e.start;o0&&h===r.length-u.length){var c=r.slice(0,h);"data"!==c&&(e.mainType=c,e[u.toLowerCase()]=t,s=!0)}}a.hasOwnProperty(r)&&(n[r]=t,s=!0),s||(i[r]=t)}))}return{cptQuery:e,dataQuery:n,otherQuery:i}},t.prototype.filter=function(t,e){var n=this.eventInfo;if(!n)return!0;var i=n.targetEl,r=n.packedEvent,o=n.model,a=n.view;if(!o||!a)return!0;var s=e.cptQuery,l=e.dataQuery;return u(s,o,"mainType")&&u(s,o,"subType")&&u(s,o,"index","componentIndex")&&u(s,o,"name")&&u(s,o,"id")&&u(l,r,"name")&&u(l,r,"dataIndex")&&u(l,r,"dataType")&&(!a.filterForExposedEvent||a.filterForExposedEvent(t,e.otherQuery,i,r));function u(t,e,n,i){return null==t[n]||e[i||n]===t[n]}},t.prototype.afterTrigger=function(){this.eventInfo=null},t}(),Ev=["symbol","symbolSize","symbolRotate","symbolOffset"],zv=Ev.concat(["symbolKeepAspect"]),Bv={createOnAllSeries:!0,performRawSeries:!0,reset:function(t,e){var n=t.getData();if(t.legendIcon&&n.setVisual("legendIcon",t.legendIcon),t.hasSymbolVisual){for(var i={},r={},o=!1,a=0;a=0&&sm(l)?l:.5,t.createRadialGradient(a,s,0,a,s,l)}(t,e,n):function(t,e,n){var i=null==e.x?0:e.x,r=null==e.x2?1:e.x2,o=null==e.y?0:e.y,a=null==e.y2?0:e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),i=sm(i)?i:0,r=sm(r)?r:1,o=sm(o)?o:0,a=sm(a)?a:0,t.createLinearGradient(i,o,r,a)}(t,e,n),r=e.colorStops,o=0;o0&&(e=i.lineDash,n=i.lineWidth,e&&"solid"!==e&&n>0?"dashed"===e?[4*n,2*n]:"dotted"===e?[n]:dt(e)?[e]:lt(e)?e:null:null),o=i.lineDashOffset;if(r){var a=i.strokeNoScale&&t.getLineScale?t.getLineScale():1;a&&1!==a&&(r=et(r,(function(t){return t/a})),o/=a)}return[r,o]}var dm=new Hs(!0);function pm(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 ym(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var n=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=n}else t.fill()}function vm(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var n=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=n}else t.stroke()}function mm(t,e,n){var i=Va(e.image,e.__image,n);if(Ga(i)){var r=t.createPattern(i,e.repeat||"repeat");if("function"==typeof DOMMatrix&&r&&r.setTransform){var o=new DOMMatrix;o.translateSelf(e.x||0,e.y||0),o.rotateSelf(0,0,(e.rotation||0)*Ft),o.scaleSelf(e.scaleX||1,e.scaleY||1),r.setTransform(o)}return r}}var xm=["shadowBlur","shadowOffsetX","shadowOffsetY"],_m=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function bm(t,e,n,i,r){var o=!1;if(!i&&e===(n=n||{}))return!1;if(i||e.opacity!==n.opacity){Am(t,r),o=!0;var a=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(a)?es.opacity:a}(i||e.blend!==n.blend)&&(o||(Am(t,r),o=!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,n){if(!this[qm])if(this._disposed)Ax(this.id);else{var i,r,o;if(pt(e)&&(n=e.lazyUpdate,i=e.silent,r=e.replaceMerge,o=e.transition,e=e.notMerge),this[qm]=!0,!this._model||e){var a=new Pd(this._api),s=this._theme,l=this._model=new Sd;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,s,this._locale,a)}this._model.setOption(t,{replaceMerge:r},Px);var u={seriesTransition:o,optionChanged:!0};if(n)this[Km]={silent:i,updateParams:u},this[qm]=!1,this.getZr().wakeUp();else{try{rx(this),sx.update.call(this,null,u)}catch(t){throw this[Km]=null,this[qm]=!1,t}this._ssr||this._zr.flush(),this[Km]=null,this[qm]=!1,cx.call(this,i),dx.call(this,i)}}},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||b.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(b.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,n=this._model,i=[],r=this;tt(e,(function(t){n.eachComponent({mainType:t},(function(t){var e=r._componentsMap[t.__viewId];e.group.ignore||(i.push(e),e.group.ignore=!0)}))}));var o="svg"===this._zr.painter.getType()?this.getSvgDataURL():this.renderToCanvas(t).toDataURL("image/"+(t&&t.type||"png"));return tt(i,(function(t){t.group.ignore=!1})),o}Ax(this.id)},e.prototype.getConnectedDataURL=function(t){if(!this._disposed){var e="svg"===t.type,n=this.group,i=Math.min,r=Math.max,o=1/0;if(zx[n]){var a=o,s=o,l=-1/0,u=-1/0,h=[],c=t&&t.pixelRatio||this.getDevicePixelRatio();tt(Ex,(function(o,c){if(o.group===n){var d=e?o.getZr().painter.getSvgDom().innerHTML:o.renderToCanvas($(t)),p=o.getDom().getBoundingClientRect();a=i(p.left,a),s=i(p.top,s),l=r(p.right,l),u=r(p.bottom,u),h.push({dom:d,left:p.left,top:p.top})}}));var d=(l*=c)-(a*=c),p=(u*=c)-(s*=c),f=A.createCanvas(),g=_o(f,{renderer:e?"svg":"canvas"});if(g.resize({width:d,height:p}),e){var y="";return tt(h,(function(t){var e=t.left-a,n=t.top-s;y+=''+t.dom+""})),g.painter.getSvgRoot().innerHTML=y,t.connectedBackgroundColor&&g.painter.setBackgroundColor(t.connectedBackgroundColor),g.refreshImmediately(),g.painter.toDataURL()}return t.connectedBackgroundColor&&g.add(new Il({shape:{x:0,y:0,width:d,height:p},style:{fill:t.connectedBackgroundColor}})),tt(h,(function(t){var e=new vl({style:{x:t.left*c-a,y:t.top*c-s,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}Ax(this.id)},e.prototype.convertToPixel=function(t,e){return lx(this,"convertToPixel",t,e)},e.prototype.convertFromPixel=function(t,e){return lx(this,"convertFromPixel",t,e)},e.prototype.containPixel=function(t,e){var n;if(!this._disposed)return tt(ya(this._model,t),(function(t,i){i.indexOf("Models")>=0&&tt(t,(function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n=n||!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint&&(n=n||o.containPoint(e,t))}}),this)}),this),!!n;Ax(this.id)},e.prototype.getVisual=function(t,e){var n=ya(this._model,t,{defaultMainType:"series"}),i=n.seriesModel.getData(),r=n.hasOwnProperty("dataIndexInside")?n.dataIndexInside:n.hasOwnProperty("dataIndex")?i.indexOfRawIndex(n.dataIndex):null;return null!=r?Fv(i,r,e):Gv(i,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,n,i=this;tt(Tx,(function(t){var e=function(e){var n,r=i.getModel(),o=e.target;if("globalout"===t?n={}:o&&jv(o,(function(t){var e=Wl(t);if(e&&null!=e.dataIndex){var i=e.dataModel||r.getSeriesByIndex(e.seriesIndex);return n=i&&i.getDataParams(e.dataIndex,e.dataType,o)||{},!0}if(e.eventData)return n=Y({},e.eventData),!0}),!0),n){var a=n.componentType,s=n.componentIndex;"markLine"!==a&&"markPoint"!==a&&"markArea"!==a||(a="series",s=n.seriesIndex);var l=a&&null!=s&&r.getComponent(a,s),u=l&&i["series"===l.mainType?"_chartsMap":"_componentsMap"][l.__viewId];n.event=e,n.type=t,i._$eventProcessor.eventInfo={targetEl:o,packedEvent:n,model:l,view:u},i.trigger(t,n)}};e.zrEventfulCallAtLast=!0,i._zr.on(t,e,i)})),tt(kx,(function(t,e){i._messageCenter.on(e,(function(t){this.trigger(e,t)}),i)})),tt(["selectchanged"],(function(t){i._messageCenter.on(t,(function(e){this.trigger(t,e)}),i)})),t=this._messageCenter,e=this,n=this._api,t.on("selectchanged",(function(t){var i=n.getModel();t.isFromClick?($v("map","selectchanged",e,i,t),$v("pie","selectchanged",e,i,t)):"select"===t.fromAction?($v("map","selected",e,i,t),$v("pie","selected",e,i,t)):"unselect"===t.fromAction&&($v("map","unselected",e,i,t),$v("pie","unselected",e,i,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?Ax(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)Ax(this.id);else{this._disposed=!0,this.getDom()&&ba(this.getDom(),Fx,"");var t=this,e=t._api,n=t._model;tt(t._componentsViews,(function(t){t.dispose(n,e)})),tt(t._chartsViews,(function(t){t.dispose(n,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 Ex[t.id]}},e.prototype.resize=function(t){if(!this[qm])if(this._disposed)Ax(this.id);else{this._zr.resize(t);var e=this._model;if(this._loadingFX&&this._loadingFX.resize(),e){var n=e.resetOption("media"),i=t&&t.silent;this[Km]&&(null==i&&(i=this[Km].silent),n=!0,this[Km]=null),this[qm]=!0;try{n&&rx(this),sx.update.call(this,{type:"resize",animation:Y({duration:0},t&&t.animation)})}catch(t){throw this[qm]=!1,t}this[qm]=!1,cx.call(this,i),dx.call(this,i)}}},e.prototype.showLoading=function(t,e){if(this._disposed)Ax(this.id);else if(pt(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),Rx[t]){var n=Rx[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)}},e.prototype.hideLoading=function(){this._disposed?Ax(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Y({},t);return e.type=kx[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)Ax(this.id);else if(pt(e)||(e={silent:!!e}),Dx[t.type]&&this._model)if(this[qm])this._pendingActions.push(t);else{var n=e.silent;hx.call(this,t,n);var i=e.flush;i?this._zr.flush():!1!==i&&b.browser.weChat&&this._throttledZrFlush(),cx.call(this,n),dx.call(this,n)}},e.prototype.updateLabelLayout=function(){Vm.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},e.prototype.appendData=function(t){if(this._disposed)Ax(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=[],n=t.currentStates,i=0;i0?{duration:o,delay:i.get("delay"),easing:i.get("easing")}:null;n.eachRendered((function(t){if(t.states&&t.states.emphasis){if(Ku(t))return;if(t instanceof hl&&function(t){var e=Ul(t);e.normalFill=t.style.fill,e.normalStroke=t.style.stroke;var n=t.states.select||{};e.selectFill=n.style&&n.style.fill||null,e.selectStroke=n.style&&n.style.stroke||null}(t),t.__dirty){var n=t.prevStates;n&&t.useStates(n)}if(r){t.stateTransition=a;var i=t.getTextContent(),o=t.getTextGuideLine();i&&(i.stateTransition=a),o&&(o.stateTransition=a)}t.__dirty&&e(t)}}))}rx=function(t){var e=t._scheduler;e.restorePipelines(t._model),e.prepareStageTasks(),ox(t,!0),ox(t,!1),e.plan()},ox=function(t,e){for(var n=t._model,i=t._scheduler,r=e?t._componentsViews:t._chartsViews,o=e?t._componentsMap:t._chartsMap,a=t._zr,s=t._api,l=0;le.get("hoverLayerThreshold")&&!b.node&&!b.worker&&e.eachSeries((function(e){if(!e.preventUsingHoverLayer){var n=t._chartsMap[e.__viewId];n.__alive&&n.eachRendered((function(t){t.states.emphasis&&(t.states.emphasis.hoverLayer=!0)}))}}))}(t,e),Vm.trigger("series:afterupdate",e,i,s)},_x=function(t){t[Jm]=!0,t.getZr().wakeUp()},bx=function(t){t[Jm]&&(t.getZr().storage.traverse((function(t){Ku(t)||e(t)})),t[Jm]=!1)},mx=function(t){return new(function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return m(n,e),n.prototype.getCoordinateSystems=function(){return t._coordSysMgr.getCoordinateSystems()},n.prototype.getComponentByElement=function(e){for(;e;){var n=e.__ecComponentInfo;if(null!=n)return t._model.getComponent(n.mainType,n.index);e=e.parent}},n.prototype.enterEmphasis=function(e,n){Su(e,n),_x(t)},n.prototype.leaveEmphasis=function(e,n){Mu(e,n),_x(t)},n.prototype.enterBlur=function(e){Iu(e),_x(t)},n.prototype.leaveBlur=function(e){Cu(e),_x(t)},n.prototype.enterSelect=function(e){Tu(e),_x(t)},n.prototype.leaveSelect=function(e){Au(e),_x(t)},n.prototype.getModel=function(){return t.getModel()},n.prototype.getViewOfComponentModel=function(e){return t.getViewOfComponentModel(e)},n.prototype.getViewOfSeriesModel=function(e){return t.getViewOfSeriesModel(e)},n}(Id))(t)},xx=function(t){function e(t,e){for(var n=0;n=0)){o_.push(n);var o=Cv.wrapStageHandler(n,r);o.__prio=e,o.__raw=n,t.push(o)}}function s_(t,e){Rx[t]=e}function l_(t){D({createCanvas:t})}function u_(t,e,n){var i=Gm("registerMap");i&&i(t,e,n)}function h_(t){var e=Gm("getMap");return e&&e(t)}var c_=function(t){var e=(t=$(t)).type;e||kp("");var n=e.split(":");2!==n.length&&kp("");var i=!1;"echarts"===n[0]&&(e=n[1],i=!0),t.__isBuiltIn=i,$p.set(e,t)};r_(Um,av),r_(Xm,lv),r_(Xm,uv),r_(Um,Bv),r_(Xm,Vv),r_(7e3,(function(t,e){t.eachRawSeries((function(n){if(!t.isSeriesFiltered(n)){var i=n.getData();i.hasItemVisual()&&i.each((function(t){var n=i.getItemVisual(t,"decal");n&&(i.ensureUniqueItemVisual(t,"style").decal=Rm(n,e))}));var r=i.getVisual("decal");r&&(i.getVisual("style").decal=Rm(r,e))}}))})),Zx(Kd),qx(900,(function(t){var e=Nt();t.eachSeries((function(t){var n=t.get("stack");if(n){var i=e.get(n)||e.set(n,[]),r=t.getData(),o={stackResultDimension:r.getCalculationInfo("stackResultDimension"),stackedOverDimension:r.getCalculationInfo("stackedOverDimension"),stackedDimension:r.getCalculationInfo("stackedDimension"),stackedByDimension:r.getCalculationInfo("stackedByDimension"),isStackedByIndex:r.getCalculationInfo("isStackedByIndex"),data:r,seriesModel:t};if(!o.stackedDimension||!o.isStackedByIndex&&!o.stackedByDimension)return;i.length&&r.setCalculationInfo("stackedOnSeries",i[i.length-1].seriesModel),i.push(o)}})),e.each(Jd)})),s_("default",(function(t,e){X(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 n=new yo,i=new Il({style:{fill:e.maskColor},zlevel:e.zlevel,z:1e4});n.add(i);var r,o=new Gl({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 Il({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return n.add(a),e.showSpinner&&((r=new Zg({shape:{startAngle:-hv/2,endAngle:-hv/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*hv/2}).start("circularInOut"),r.animateShape(!0).when(1e3,{startAngle:3*hv/2}).delay(300).start("circularInOut"),n.add(r)),n.resize=function(){var n=o.getBoundingRect().width,s=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*s-(e.showSpinner&&n?10:0)-n)/2-(e.showSpinner&&n?0:5+n/2)+(e.showSpinner?0:n/2)+(n?0:s),u=t.getHeight()/2;e.showSpinner&&r.setShape({cx:l,cy:u}),a.setShape({x:l-s,y:u-s,width:2*s,height:2*s}),i.setShape({x:0,y:0,width:t.getWidth(),height:t.getHeight()})},n.resize(),n})),t_({type:eu,event:eu,update:eu},Vt),t_({type:nu,event:nu,update:nu},Vt),t_({type:iu,event:iu,update:iu},Vt),t_({type:ru,event:ru,update:ru},Vt),t_({type:ou,event:ou,update:ou},Vt),Xx("light",Av),Xx("dark",Nv);var d_={},p_=[],f_={registerPreprocessor:Zx,registerProcessor:qx,registerPostInit:Kx,registerPostUpdate:Jx,registerUpdateLifecycle:Qx,registerAction:t_,registerCoordinateSystem:e_,registerLayout:i_,registerVisual:r_,registerTransform:c_,registerLoading:s_,registerMap:u_,registerImpl:function(t,e){Fm[t]=e},PRIORITY:Zm,ComponentModel:Hc,ComponentView:Vf,SeriesModel:zf,ChartView:Xy,registerComponentModel:function(t){Hc.registerClass(t)},registerComponentView:function(t){Vf.registerClass(t)},registerSeriesModel:function(t){zf.registerClass(t)},registerChartView:function(t){Xy.registerClass(t)},registerSubTypeDefaulter:function(t,e){Hc.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Mo(t,e)}};function g_(t){lt(t)?tt(t,(function(t){g_(t)})):q(p_,t)>=0||(p_.push(t),ut(t)&&(t={install:t}),t.install(f_))}function y_(t){return null==t?0:t.length||1}function v_(t){return t}var m_=function(){function t(t,e,n,i,r,o){this._old=t,this._new=e,this._oldKeyGetter=n||v_,this._newKeyGetter=i||v_,this.context=r,this._diffModeMultiple="multiple"===o}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,n={},i=new Array(t.length),r=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,n,r,"_newKeyGetter");for(var o=0;o1){var u=s.shift();1===s.length&&(n[a]=s[0]),this._update&&this._update(u,o)}else 1===l?(n[a]=null,this._update&&this._update(s,o)):this._remove&&this._remove(o)}this._performRestAdd(r,n)},t.prototype._executeMultiple=function(){var t=this._old,e=this._new,n={},i={},r=[],o=[];this._initIndexMap(t,n,r,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var a=0;a1&&1===c)this._updateManyToOne&&this._updateManyToOne(u,l),i[s]=null;else if(1===h&&c>1)this._updateOneToMany&&this._updateOneToMany(u,l),i[s]=null;else if(1===h&&1===c)this._update&&this._update(u,l),i[s]=null;else if(h>1&&c>1)this._updateManyToMany&&this._updateManyToMany(u,l),i[s]=null;else if(h>1)for(var d=0;d1)for(var a=0;a30}var L_,P_,O_,N_,R_,E_,z_,B_=pt,V_=et,F_="undefined"==typeof Int32Array?Array:Int32Array,G_=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],W_=["_approximateExtent"],H_=function(){function t(t,e){var n;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 i=!1;T_(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var r={},o=[],a={},s=!1,l={},u=0;u=e)){var n=this._store.getProvider();this._updateOrdinalMeta();var i=this._nameList,r=this._idList;if(n.getSource().sourceFormat===Xc&&!n.pure)for(var o=[],a=t;a0},t.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var r=i[e];return null==r&&(lt(r=this.getVisual(e))?r=r.slice():B_(r)&&(r=Y({},r)),i[e]=r),r},t.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,B_(e)?Y(i,e):i[e]=n},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){B_(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,n){this._itemLayouts[t]=n?Y(this._itemLayouts[t]||{},e):e},t.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},t.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Hl(n,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(n,i){n&&t&&t.call(e,n,i)}))},t.prototype.cloneShallow=function(e){return e||(e=new t(this._schema?this._schema:V_(this.dimensions,this._getDimInfo,this),this.hostModel)),R_(e,this),e._store=this._store,e},t.prototype.wrapMethod=function(t,e){var n=this[t];ut(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var t=n.apply(this,arguments);return e.apply(this,[t].concat(Mt(arguments)))})},t.internalField=(L_=function(t){var e=t._invertedIndicesMap;tt(e,(function(n,i){var r=t._dimInfos[i],o=r.ordinalMeta,a=t._store;if(o){n=e[i]=new F_(o.categories.length);for(var s=0;s1&&(s+="__ec__"+u),i[e]=s}})),t}();const $_=H_;function j_(t,e){return U_(t,e).dimensions}function U_(t,e){op(t)||(t=sp(t));var n=(e=e||{}).coordDimensions||[],i=e.dimensionsDefine||t.dimensionsDefine||[],r=Nt(),o=[],a=function(t,e,n,i){var r=Math.max(t.dimensionsDetectedCount||1,e.length,n.length,i||0);return tt(e,(function(t){var e;pt(t)&&(e=t.dimsDef)&&(r=Math.max(r,e.length))})),r}(t,n,i,e.dimensionsCount),s=e.canOmitUnusedDimensions&&k_(a),l=i===t.dimensionsDefine,u=l?D_(t):A_(i),h=e.encodeDefine;!h&&e.encodeDefaulter&&(h=e.encodeDefaulter(t,a));for(var c=Nt(h),d=new Kp(a),p=0;p0&&(i.name=r+(o-1)),o++,e.set(r,o)}}(o),new C_({source:t,dimensions:o,fullDimensionCount:a,dimensionOmitted:s})}function Y_(t,e,n){if(n||e.hasKey(t)){for(var i=0;e.hasKey(t+i);)i++;t+=i}return e.set(t,!0),t}var X_=function(t){this.coordSysDims=[],this.axisMap=Nt(),this.categoryAxisMap=Nt(),this.coordSysName=t},Z_={cartesian2d:function(t,e,n,i){var r=t.getReferringComponents("xAxis",ma).models[0],o=t.getReferringComponents("yAxis",ma).models[0];e.coordSysDims=["x","y"],n.set("x",r),n.set("y",o),q_(r)&&(i.set("x",r),e.firstCategoryDimIndex=0),q_(o)&&(i.set("y",o),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,n,i){var r=t.getReferringComponents("singleAxis",ma).models[0];e.coordSysDims=["single"],n.set("single",r),q_(r)&&(i.set("single",r),e.firstCategoryDimIndex=0)},polar:function(t,e,n,i){var r=t.getReferringComponents("polar",ma).models[0],o=r.findAxisModel("radiusAxis"),a=r.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],n.set("radius",o),n.set("angle",a),q_(o)&&(i.set("radius",o),e.firstCategoryDimIndex=0),q_(a)&&(i.set("angle",a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},geo:function(t,e,n,i){e.coordSysDims=["lng","lat"]},parallel:function(t,e,n,i){var r=t.ecModel,o=r.getComponent("parallel",t.get("parallelIndex")),a=e.coordSysDims=o.dimensions.slice();tt(o.parallelAxisIndex,(function(t,o){var s=r.getComponent("parallelAxis",t),l=a[o];n.set(l,s),q_(s)&&(i.set(l,s),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=o))}))}};function q_(t){return"category"===t.get("type")}function K_(t,e,n){var i,r,o,a=(n=n||{}).byIndex,s=n.stackedCoordDimension;!function(t){return!T_(t.schema)}(e)?(r=e.schema,i=r.dimensions,o=e.store):i=e;var l,u,h,c,d=!(!t||!t.get("stack"));if(tt(i,(function(t,e){ht(t)&&(i[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){h="__\0ecstackresult_"+t.id,c="__\0ecstackedover_"+t.id,l&&(l.createInvertedIndices=!0);var p=u.coordDim,f=u.type,g=0;tt(i,(function(t){t.coordDim===p&&g++}));var y={name:h,coordDim:p,coordDimIndex:g,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length},v={name:c,coordDim:c,coordDimIndex:g+1,type:f,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:i.length+1};r?(o&&(y.storeDimIndex=o.ensureCalculationDimension(c,f),v.storeDimIndex=o.ensureCalculationDimension(h,f)),r.appendCalculationDimension(y),r.appendCalculationDimension(v)):(i.push(y),i.push(v))}return{stackedDimension:u&&u.name,stackedByDimension:l&&l.name,isStackedByIndex:a,stackedOverDimension:c,stackResultDimension:h}}function J_(t,e){return!!e&&e===t.getCalculationInfo("stackedDimension")}function Q_(t,e){return J_(t,e)?t.getCalculationInfo("stackResultDimension"):e}const tb=function(t,e,n){n=n||{};var i,r=e.getSourceManager(),o=!1;t?(o=!0,i=sp(t)):o=(i=r.getSource()).sourceFormat===Xc;var a=function(t){var e=t.get("coordinateSystem"),n=new X_(e),i=Z_[e];if(i)return i(t,n,n.axisMap,n.categoryAxisMap),n}(e),s=function(t,e){var n,i=t.get("coordinateSystem"),r=Ad.get(i);return e&&e.coordSysDims&&(n=et(e.coordSysDims,(function(t){var n={name:t},i=e.axisMap.get(t);if(i){var r=i.get("type");n.type=w_(r)}return n}))),n||(n=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),n}(e,a),l=n.useEncodeDefaulter,u=ut(l)?l:l?st(rd,s,e):null,h=U_(i,{coordDimensions:s,generateCoord:n.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!o}),c=function(t,e,n){var i,r;return n&&tt(t,(function(t,o){var a=t.coordDim,s=n.categoryAxisMap.get(a);s&&(null==i&&(i=o),t.ordinalMeta=s.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(r=!0)})),r||null==i||(t[i].otherDims.itemName=0),i}(h.dimensions,n.createInvertedIndices,a),d=o?null:r.getSharedDataStore(h),p=K_(e,{schema:h,store:d}),f=new $_(h,e);f.setCalculationInfo(p);var g=null!=c&&function(t){if(t.sourceFormat===Xc){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 n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[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}();Oa(eb);const nb=eb;var ib=0;function rb(t){return pt(t)&&null!=t.value?t.value:t+""}const ob=function(){function t(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++ib}return t.createByAxisModel=function(e){var n=e.option,i=n.data,r=i&&et(i,rb);return new t({categories:r,needCollect:!r,deduplication:!1!==n.dedplication})},t.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},t.prototype.parseAndCollect=function(t){var e,n=this._needCollect;if(!ht(t)&&!n)return t;if(n&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,e;var i=this._getOrCreateMap();return null==(e=i.get(t))&&(n?(e=this.categories.length,this.categories[e]=t,i.set(t,e)):e=NaN),e},t.prototype._getOrCreateMap=function(){return this._map||(this._map=Nt(this.categories))},t}();function ab(t){return"interval"===t.type||"log"===t.type}function sb(t){var e=Math.pow(10,$o(t)),n=t/e;return n?2===n?n=3:3===n?n=5:n*=2:n=1,ko(n*e)}function lb(t){return Po(t)+2}function ub(t,e,n){t[e]=Math.max(Math.min(t[e],n[1]),n[0])}function hb(t,e){return t>=e[0]&&t<=e[1]}function cb(t,e){return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])}function db(t,e){return t*(e[1]-e[0])+e[0]}var pb=function(t){function e(e){var n=t.call(this,e)||this;n.type="ordinal";var i=n.getSetting("ordinalMeta");return i||(i=new ob({})),lt(i)&&(i=new ob({categories:et(i,(function(t){return pt(t)?t.value:t}))})),n._ordinalMeta=i,n._extent=n.getSetting("extent")||[0,i.categories.length-1],n}return m(e,t),e.prototype.parse=function(t){return null==t?NaN:ht(t)?this._ordinalMeta.getOrdinal(t):Math.round(t)},e.prototype.contain=function(t){return hb(t=this.parse(t),this._extent)&&null!=this._ordinalMeta.categories[t]},e.prototype.normalize=function(t){return cb(t=this._getTickNumber(this.parse(t)),this._extent)},e.prototype.scale=function(t){return t=Math.round(db(t,this._extent)),this.getRawOrdinalNumber(t)},e.prototype.getTicks=function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push({value:n}),n++;return t},e.prototype.getMinorTicks=function(t){},e.prototype.setSortInfo=function(t){if(null!=t){for(var e=t.ordinalNumbers,n=this._ordinalNumbersByTick=[],i=this._ticksByOrdinalNumber=[],r=0,o=this._ordinalMeta.categories.length,a=Math.min(o,e.length);r=0&&t=0&&t=t},e.prototype.getOrdinalMeta=function(){return this._ordinalMeta},e.prototype.calcNiceTicks=function(){},e.prototype.calcNiceExtent=function(){},e.type="ordinal",e}(nb);nb.registerClass(pb);const fb=pb;var gb=ko,yb=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 hb(t,this._extent)},e.prototype.normalize=function(t){return cb(t,this._extent)},e.prototype.scale=function(t){return db(t,this._extent)},e.prototype.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=parseFloat(t)),isNaN(e)||(n[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=lb(t)},e.prototype.getTicks=function(t){var e=this._interval,n=this._extent,i=this._niceExtent,r=this._intervalPrecision,o=[];if(!e)return o;n[0]1e4)return[];var s=o.length?o[o.length-1].value:i[1];return n[1]>s&&(t?o.push({value:gb(s+e,r)}):o.push({value:n[1]})),o},e.prototype.getMinorTicks=function(t){for(var e=this.getTicks(!0),n=[],i=this.getExtent(),r=1;ri[0]&&hi&&(a=r.interval=i);var s=r.intervalPrecision=lb(a);return function(t,e){!isFinite(t[0])&&(t[0]=e[0]),!isFinite(t[1])&&(t[1]=e[1]),ub(t,0,e),ub(t,1,e),t[0]>t[1]&&(t[0]=t[1])}(r.niceTickExtent=[ko(Math.ceil(t[0]/a)*a,s),ko(Math.floor(t[1]/a)*a,s)],t),r}(i,t,e,n);this._intervalPrecision=o.intervalPrecision,this._interval=o.interval,this._niceExtent=o.niceTickExtent}},e.prototype.calcNiceExtent=function(t){var e=this._extent;if(e[0]===e[1])if(0!==e[0]){var n=Math.abs(e[0]);t.fixMax||(e[1]+=n/2),e[0]-=n/2}else e[1]=1;var i=e[1]-e[0];isFinite(i)||(e[0]=0,e[1]=1),this.calcNiceTicks(t.splitNumber,t.minInterval,t.maxInterval);var r=this._interval;t.fixMin||(e[0]=gb(Math.floor(e[0]/r)*r)),t.fixMax||(e[1]=gb(Math.ceil(e[1]/r)*r))},e.prototype.setNiceExtent=function(t,e){this._niceExtent=[t,e]},e.type="interval",e}(nb);nb.registerClass(yb);const vb=yb;var mb="undefined"!=typeof Float32Array,xb=mb?Float32Array:Array;function _b(t){return lt(t)?mb?new Float32Array(t):t:new xb(t)}var bb="__ec_stack_";function wb(t){return t.get("stack")||bb+t.seriesIndex}function Sb(t){return t.dim+t.index}function Mb(t,e){var n=[];return e.eachSeriesByType(t,(function(t){Db(t)&&n.push(t)})),n}function Ib(t){var e=function(t){var e={};tt(t,(function(t){var n=t.coordinateSystem.getBaseAxis();if("time"===n.type||"value"===n.type)for(var i=t.getData(),r=n.dim+"_"+n.index,o=i.getDimensionIndex(i.mapDimension(n.dim)),a=i.getStore(),s=0,l=a.count();s0&&(o=null===o?s:Math.min(o,s))}n[i]=o}}return n}(t),n=[];return tt(t,(function(t){var i,r=t.coordinateSystem.getBaseAxis(),o=r.getExtent();if("category"===r.type)i=r.getBandWidth();else if("value"===r.type||"time"===r.type){var a=r.dim+"_"+r.index,s=e[a],l=Math.abs(o[1]-o[0]),u=r.scale.getExtent(),h=Math.abs(u[1]-u[0]);i=s?l/h*s:l}else{var c=t.getData();i=Math.abs(o[1]-o[0])/c.count()}var d=Do(t.get("barWidth"),i),p=Do(t.get("barMaxWidth"),i),f=Do(t.get("barMinWidth")||(kb(t)?.5:1),i),g=t.get("barGap"),y=t.get("barCategoryGap");n.push({bandWidth:i,barWidth:d,barMaxWidth:p,barMinWidth:f,barGap:g,barCategoryGap:y,axisKey:Sb(r),stackId:wb(t)})})),Cb(n)}function Cb(t){var e={};tt(t,(function(t,n){var i=t.axisKey,r=t.bandWidth,o=e[i]||{bandWidth:r,remainedWidth:r,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},a=o.stacks;e[i]=o;var s=t.stackId;a[s]||o.autoWidthCount++,a[s]=a[s]||{width:0,maxWidth:0};var l=t.barWidth;l&&!a[s].width&&(a[s].width=l,l=Math.min(o.remainedWidth,l),o.remainedWidth-=l);var u=t.barMaxWidth;u&&(a[s].maxWidth=u);var h=t.barMinWidth;h&&(a[s].minWidth=h);var c=t.barGap;null!=c&&(o.gap=c);var d=t.barCategoryGap;null!=d&&(o.categoryGap=d)}));var n={};return tt(e,(function(t,e){n[e]={};var i=t.stacks,r=t.bandWidth,o=t.categoryGap;if(null==o){var a=ot(i).length;o=Math.max(35-4*a,15)+"%"}var s=Do(o,r),l=Do(t.gap,1),u=t.remainedWidth,h=t.autoWidthCount,c=(u-s)/(h+(h-1)*l);c=Math.max(c,0),tt(i,(function(t){var e=t.maxWidth,n=t.minWidth;if(t.width)i=t.width,e&&(i=Math.min(i,e)),n&&(i=Math.max(i,n)),t.width=i,u-=i+l*i,h--;else{var i=c;e&&ei&&(i=n),i!==c&&(t.width=i,u-=i+l*i,h--)}})),c=(u-s)/(h+(h-1)*l),c=Math.max(c,0);var d,p=0;tt(i,(function(t,e){t.width||(t.width=c),d=t,p+=t.width*(1+l)})),d&&(p-=d.width*l);var f=-p/2;tt(i,(function(t,i){n[e][i]=n[e][i]||{bandWidth:r,offset:f,width:t.width},f+=t.width*(1+l)}))})),n}function Tb(t,e){var n=Mb(t,e),i=Ib(n);tt(n,(function(t){var e=t.getData(),n=t.coordinateSystem.getBaseAxis(),r=wb(t),o=i[Sb(n)][r],a=o.offset,s=o.width;e.setLayout({bandWidth:o.bandWidth,offset:a,size:s})}))}function Ab(t){return{seriesType:t,plan:Ff(),reset:function(t){if(Db(t)){var e=t.getData(),n=t.coordinateSystem,i=n.getBaseAxis(),r=n.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(r.dim)),a=e.getDimensionIndex(e.mapDimension(i.dim)),s=t.get("showBackground",!0),l=e.mapDimension(r.dim),u=e.getCalculationInfo("stackResultDimension"),h=J_(e,l)&&!!e.getCalculationInfo("stackedOnSeries"),c=r.isHorizontal(),d=function(t,e){return e.toGlobalCoord(e.dataToCoord("log"===e.type?1:0))}(0,r),p=kb(t),f=t.get("barMinHeight")||0,g=u&&e.getDimensionIndex(u),y=e.getLayout("size"),v=e.getLayout("offset");return{progress:function(t,e){for(var i,r=t.count,l=p&&_b(3*r),u=p&&s&&_b(3*r),m=p&&_b(r),x=n.master.getRect(),_=c?x.width:x.height,b=e.getStore(),w=0;null!=(i=t.next());){var S=b.get(h?g:o,i),M=b.get(a,i),I=d,C=void 0;h&&(C=+S-b.get(o,i));var T=void 0,A=void 0,D=void 0,k=void 0;if(c){var L=n.dataToPoint([S,M]);h&&(I=n.dataToPoint([C,M])[0]),T=I,A=L[1]+v,D=L[0]-I,k=y,Math.abs(D)0)for(var s=0;s=0;--s)if(l[u]){o=l[u];break}o=o||a.none}if(lt(o)){var h=null==t.level?0:t.level>=0?t.level:o.length+t.level;o=o[h=Math.min(h,o.length-1)]}}return ec(new Date(t.value),o,r,i)}(t,e,n,this.getSetting("locale"),i)},e.prototype.getTicks=function(){var t=this._interval,e=this._extent,n=[];if(!t)return n;n.push({value:e[0],level:0});var i=this.getSetting("useUTC"),r=function(t,e,n,i){var r,o=Jh,a=0;function s(t,e,n,r,o,a,s){for(var l=new Date(e),u=e,h=l[r]();u1&&0===u&&o.unshift({value:o[0].value-d})}}for(u=0;u=i[0]&&v<=i[1]&&c++)}var m=(i[1]-i[0])/e;if(c>1.5*m&&d>m/1.5)break;if(u.push(g),c>m||t===o[p])break}h=[]}}var x=it(et(u,(function(t){return it(t,(function(t){return t.value>=i[0]&&t.value<=i[1]&&!t.notAdd}))})),(function(t){return t.length>0})),_=[],b=x.length-1;for(p=0;pn&&(this._approxInterval=n);var o=Pb.length,a=Math.min(function(t,e,n,i){for(;n>>1;t[r][1]16?16:t>7.5?7:t>3.5?4:t>1.5?2:1}function Nb(t){return(t/=2592e6)>6?6:t>3?3:t>2?2:1}function Rb(t){return(t/=jh)>12?12:t>6?6:t>3.5?4:t>2?2:1}function Eb(t,e){return(t/=e?$h:Hh)>30?30:t>20?20:t>15?15:t>10?10:t>5?5:t>2?2:1}function zb(t){return jo(t,!0)}function Bb(t,e,n){var i=new Date(t);switch(tc(e)){case"year":case"month":i[dc(n)](0);case"day":i[pc(n)](1);case"hour":i[fc(n)](0);case"minute":i[gc(n)](0);case"second":i[yc(n)](0),i[vc(n)](0)}return i.getTime()}nb.registerClass(Lb);const Vb=Lb;var Fb=nb.prototype,Gb=vb.prototype,Wb=ko,Hb=Math.floor,$b=Math.ceil,jb=Math.pow,Ub=Math.log,Yb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="log",e.base=10,e._originalScale=new vb,e._interval=0,e}return m(e,t),e.prototype.getTicks=function(t){var e=this._originalScale,n=this._extent,i=e.getExtent();return et(Gb.getTicks.call(this,t),(function(t){var e=t.value,r=ko(jb(this.base,e));return r=e===n[0]&&this._fixMin?Zb(r,i[0]):r,{value:r=e===n[1]&&this._fixMax?Zb(r,i[1]):r}}),this)},e.prototype.setExtent=function(t,e){var n=Ub(this.base);t=Ub(Math.max(0,t))/n,e=Ub(Math.max(0,e))/n,Gb.setExtent.call(this,t,e)},e.prototype.getExtent=function(){var t=this.base,e=Fb.getExtent.call(this);e[0]=jb(t,e[0]),e[1]=jb(t,e[1]);var n=this._originalScale.getExtent();return this._fixMin&&(e[0]=Zb(e[0],n[0])),this._fixMax&&(e[1]=Zb(e[1],n[1])),e},e.prototype.unionExtent=function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=Ub(t[0])/Ub(e),t[1]=Ub(t[1])/Ub(e),Fb.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,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=Ho(n);for(t/n*i<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var r=[ko($b(e[0]/i)*i),ko(Hb(e[1]/i)*i)];this._interval=i,this._niceExtent=r}},e.prototype.calcNiceExtent=function(t){Gb.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 hb(t=Ub(t)/Ub(this.base),this._extent)},e.prototype.normalize=function(t){return cb(t=Ub(t)/Ub(this.base),this._extent)},e.prototype.scale=function(t){return t=db(t,this._extent),jb(this.base,t)},e.type="log",e}(nb),Xb=Yb.prototype;function Zb(t,e){return Wb(t,Po(e))}Xb.getMinorTicks=Gb.getMinorTicks,Xb.getLabel=Gb.getLabel,nb.registerClass(Yb);const qb=Yb;var Kb=function(){function t(t,e,n){this._prepareParams(t,e,n)}return t.prototype._prepareParams=function(t,e,n){n[1]0&&s>0&&!l&&(a=0),a<0&&s<0&&!u&&(s=0));var c=this._determinedMin,d=this._determinedMax;return null!=c&&(a=c,l=!0),null!=d&&(s=d,u=!0),{min:a,max:s,minFixed:l,maxFixed:u,isBlank:h}},t.prototype.modifyDataMinMax=function(t,e){this[Qb[t]]=e},t.prototype.setDeterminedMinMax=function(t,e){this[Jb[t]]=e},t.prototype.freeze=function(){this.frozen=!0},t}(),Jb={min:"_determinedMin",max:"_determinedMax"},Qb={min:"_dataMin",max:"_dataMax"};function tw(t,e,n){var i=t.rawExtentInfo;return i||(i=new Kb(t,e,n),t.rawExtentInfo=i,i)}function ew(t,e){return null==e?null:_t(e)?NaN:t.parse(e)}function nw(t,e){var n=t.type,i=tw(t,e,t.getExtent()).calculate();t.setBlank(i.isBlank);var r=i.min,o=i.max,a=e.ecModel;if(a&&"time"===n){var s=Mb("bar",a),l=!1;if(tt(s,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=Ib(s),h=function(t,e,n,i){var r=n.axis.getExtent(),o=r[1]-r[0],a=function(t,e,n){if(t&&e){var i=t[Sb(e)];return i}}(i,n.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,h=e-t,c=h/(1-(s+l)/o)-h;return{min:t-=c*(s/u),max:e+=c*(l/u)}}(r,o,e,u);r=h.min,o=h.max}}return{extent:[r,o],fixMin:i.minFixed,fixMax:i.maxFixed}}function iw(t,e){var n=e,i=nw(t,n),r=i.extent,o=n.get("splitNumber");t instanceof qb&&(t.base=n.get("logBase"));var a=t.type,s=n.get("interval"),l="interval"===a||"time"===a;t.setExtent(r[0],r[1]),t.calcNiceExtent({splitNumber:o,fixMin:i.fixMin,fixMax:i.fixMax,minInterval:l?n.get("minInterval"):null,maxInterval:l?n.get("maxInterval"):null}),null!=s&&t.setInterval&&t.setInterval(s)}function rw(t,e){if(e=e||t.get("type"))switch(e){case"category":return new fb({ordinalMeta:t.getOrdinalMeta?t.getOrdinalMeta():t.getCategories(),extent:[1/0,-1/0]});case"time":return new Vb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new(nb.getClass(e)||vb)}}function ow(t){var e,n,i=t.getLabelModel().get("formatter"),r="category"===t.type?t.scale.getExtent()[0]:null;return"time"===t.scale.type?(n=i,function(e,i){return t.scale.getFormattedLabel(e,i,n)}):ht(i)?function(e){return function(n){var i=t.scale.getLabel(n);return e.replace("{value}",null!=i?i:"")}}(i):ut(i)?(e=i,function(n,i){return null!=r&&(i=n.value-r),e(aw(t,n),i,null!=n.level?{level:n.level}:null)}):function(e){return t.scale.getLabel(e)}}function aw(t,e){return"category"===t.type?t.scale.getLabel(e):e.value}function sw(t,e){var n=e*Math.PI/180,i=t.width,r=t.height,o=i*Math.abs(Math.cos(n))+Math.abs(r*Math.sin(n)),a=i*Math.abs(Math.sin(n))+Math.abs(r*Math.cos(n));return new sn(t.x,t.y,o,a)}function lw(t){var e=t.get("interval");return null==e?"auto":e}function uw(t){return"category"===t.type&&0===lw(t.getLabelModel())}function hw(t,e){var n={};return tt(t.mapDimensionsAll(e),(function(e){n[Q_(t,e)]=!0})),ot(n)}var cw=function(){function t(){}return t.prototype.getNeedCrossZero=function(){return!this.option.scale},t.prototype.getCoordSysModel=function(){},t}();function dw(t){return tb(null,t)}var pw={isDimensionStacked:J_,enableDataStack:K_,getStackedDimension:Q_};function fw(t,e){var n=e;e instanceof Lh||(n=new Lh(e));var i=rw(n);return i.setExtent(t[0],t[1]),iw(i,n),i}function gw(t){J(t,cw)}function yw(t,e){return sh(t,null,null,"normal"!==(e=e||{}).state)}var vw=1e-8;function mw(t,e){return Math.abs(t-e)n&&(t=r,n=a)}if(t)return function(t){for(var e=0,n=0,i=0,r=t.length,o=t[r-1][0],a=t[r-1][1],s=0;s>1^-(1&s),l=l>>1^-(1&l),r=s+=r,o=l+=o,i.push([s/n,l/n])}return i}function kw(t,e){return et(it((t=function(t){if(!t.UTF8Encoding)return t;var e=t,n=e.UTF8Scale;return null==n&&(n=1024),tt(e.features,(function(t){var e=t.geometry,i=e.encodeOffsets,r=e.coordinates;if(i)switch(e.type){case"LineString":e.coordinates=Dw(r,i,n);break;case"Polygon":case"MultiLineString":Aw(r,i,n);break;case"MultiPolygon":tt(r,(function(t,e){return Aw(t,i[e],n)}))}})),e.UTF8Encoding=!1,e}(t)).features,(function(t){return t.geometry&&t.properties&&t.geometry.coordinates.length>0})),(function(t){var n=t.properties,i=t.geometry,r=[];switch(i.type){case"Polygon":var o=i.coordinates;r.push(new Mw(o[0],o.slice(1)));break;case"MultiPolygon":tt(i.coordinates,(function(t){t[0]&&r.push(new Mw(t[0],t.slice(1)))}));break;case"LineString":r.push(new Iw([i.coordinates]));break;case"MultiLineString":r.push(new Iw(i.coordinates))}var a=new Cw(n[e||"name"],r,n.cp);return a.properties=n,a}))}function Lw(t,e,n,i,r,o,a,s){return new Gl({style:{text:t,font:e,align:n,verticalAlign:i,padding:r,rich:o,overflow:a?"truncate":null,lineHeight:s}}).getBoundingRect()}var Pw=fa();function Ow(t,e){var n,i,r=Nw(t,"labels"),o=lw(e);return Rw(r,o)||(ut(o)?n=Bw(t,o):(i="auto"===o?function(t){var e=Pw(t).autoInterval;return null!=e?e:Pw(t).autoInterval=t.calculateCategoryInterval()}(t):o,n=zw(t,i)),Ew(r,o,{labels:n,labelCategoryInterval:i}))}function Nw(t,e){return Pw(t)[e]||(Pw(t)[e]=[])}function Rw(t,e){for(var n=0;n1&&h/l>2&&(u=Math.round(Math.ceil(u/l)*l));var c=uw(t),d=a.get("showMinLabel")||c,p=a.get("showMaxLabel")||c;d&&u!==o[0]&&g(o[0]);for(var f=u;f<=o[1];f+=l)g(f);function g(t){var e={value:t};s.push(n?t:{formattedLabel:i(e),rawLabel:r.getLabel(e),tickValue:t})}return p&&f-l!==o[1]&&g(o[1]),s}function Bw(t,e,n){var i=t.scale,r=ow(t),o=[];return tt(i.getTicks(),(function(t){var a=i.getLabel(t),s=t.value;e(t.value,a)&&o.push(n?s:{formattedLabel:r(t),rawLabel:a,tickValue:s})})),o}var Vw=[0,1],Fw=function(){function t(t,e,n){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=n||[0,0]}return t.prototype.contain=function(t){var e=this._extent,n=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=n&&t<=i},t.prototype.containData=function(t){return this.scale.contain(t)},t.prototype.getExtent=function(){return this._extent.slice()},t.prototype.getPixelPrecision=function(t){return No(t||this.scale.getExtent(),this._extent)},t.prototype.setExtent=function(t,e){var n=this._extent;n[0]=t,n[1]=e},t.prototype.dataToCoord=function(t,e){var n=this._extent,i=this.scale;return t=i.normalize(t),this.onBand&&"ordinal"===i.type&&Gw(n=n.slice(),i.count()),Ao(t,Vw,n,e)},t.prototype.coordToData=function(t,e){var n=this._extent,i=this.scale;this.onBand&&"ordinal"===i.type&&Gw(n=n.slice(),i.count());var r=Ao(t,n,Vw,e);return this.scale.scale(r)},t.prototype.pointToData=function(t,e){},t.prototype.getTicksCoords=function(t){var e=(t=t||{}).tickModel||this.getTickModel(),n=et(function(t,e){return"category"===t.type?function(t,e){var n,i,r=Nw(t,"ticks"),o=lw(e),a=Rw(r,o);if(a)return a;if(e.get("show")&&!t.scale.isBlank()||(n=[]),ut(o))n=Bw(t,o,!0);else if("auto"===o){var s=Ow(t,t.getLabelModel());i=s.labelCategoryInterval,n=et(s.labels,(function(t){return t.tickValue}))}else n=zw(t,i=o,!0);return Ew(r,o,{ticks:n,tickCategoryInterval:i})}(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,n,i){var r=e.length;if(t.onBand&&!n&&r){var o,a,s=t.getExtent();if(1===r)e[0].coord=s[0],o=e[1]={coord:s[1]};else{var l=e[r-1].tickValue-e[0].tickValue,u=(e[r-1].coord-e[0].coord)/l;tt(e,(function(t){t.coord-=u/2})),a=1+t.scale.getExtent()[1]-e[r-1].tickValue,o={coord:e[r-1].coord+u*a},e.push(o)}var h=s[0]>s[1];c(e[0].coord,s[0])&&(i?e[0].coord=s[0]:e.shift()),i&&c(s[0],e[0].coord)&&e.unshift({coord:s[0]}),c(s[1],o.coord)&&(i?o.coord=s[1]:e.pop()),i&&c(o.coord,s[1])&&e.push({coord:s[1]})}function c(t,e){return t=ko(t),e=ko(e),h?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(),n=Ow(t,e);return!e.get("show")||t.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}(t):function(t){var e=t.scale.getTicks(),n=ow(t);return{labels:et(e,(function(e,i){return{level:e.level,formattedLabel:n(e,i),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(),n=e[1]-e[0]+(this.onBand?1:0);0===n&&(n=1);var i=Math.abs(t[1]-t[0]);return Math.abs(i)/n},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),n=ow(t),i=(e.axisRotate-e.labelRotate)/180*Math.PI,r=t.scale,o=r.getExtent(),a=r.count();if(o[1]-o[0]<1)return 0;var s=1;a>40&&(s=Math.max(1,Math.floor(a/40)));for(var l=o[0],u=t.dataToCoord(l+1)-t.dataToCoord(l),h=Math.abs(u*Math.cos(i)),c=Math.abs(u*Math.sin(i)),d=0,p=0;l<=o[1];l+=s){var f,g,y=Kr(n({value:l}),e.font,"center","top");f=1.3*y.width,g=1.3*y.height,d=Math.max(d,f,7),p=Math.max(p,g,7)}var v=d/h,m=p/c;isNaN(v)&&(v=1/0),isNaN(m)&&(m=1/0);var x=Math.max(0,Math.floor(Math.min(v,m))),_=Pw(t.model),b=t.getExtent(),w=_.lastAutoInterval,S=_.lastTickCount;return null!=w&&null!=S&&Math.abs(w-x)<=1&&Math.abs(S-a)<=1&&w>x&&_.axisExtent0===b[0]&&_.axisExtent1===b[1]?x=w:(_.lastTickCount=a,_.lastAutoInterval=x,_.axisExtent0=b[0],_.axisExtent1=b[1]),x}(this)},t}();function Gw(t,e){var n=(t[1]-t[0])/e/2;t[0]+=n,t[1]-=n}const Ww=Fw;function Hw(t){var e=Hc.extend(t);return Hc.registerClass(e),e}function $w(t){var e=Vf.extend(t);return Vf.registerClass(e),e}function jw(t){var e=zf.extend(t);return zf.registerClass(e),e}function Uw(t){var e=Xy.extend(t);return Xy.registerClass(e),e}var Yw=2*Math.PI,Xw=Hs.CMD,Zw=["top","right","bottom","left"];function qw(t,e,n,i,r){var o=n.width,a=n.height;switch(t){case"top":i.set(n.x+o/2,n.y-e),r.set(0,-1);break;case"bottom":i.set(n.x+o/2,n.y+a+e),r.set(0,1);break;case"left":i.set(n.x-e,n.y+a/2),r.set(-1,0);break;case"right":i.set(n.x+o+e,n.y+a/2),r.set(1,0)}}function Kw(t,e,n,i,r,o,a,s,l){a-=t,s-=e;var u=Math.sqrt(a*a+s*s),h=(a/=u)*n+t,c=(s/=u)*n+e;if(Math.abs(i-r)%Yw<1e-4)return l[0]=h,l[1]=c,u-n;if(o){var d=i;i=Xs(r),r=Xs(d)}else i=Xs(i),r=Xs(r);i>r&&(r+=Yw);var p=Math.atan2(s,a);if(p<0&&(p+=Yw),p>=i&&p<=r||p+Yw>=i&&p+Yw<=r)return l[0]=h,l[1]=c,u-n;var f=n*Math.cos(i)+t,g=n*Math.sin(i)+e,y=n*Math.cos(r)+t,v=n*Math.sin(r)+e,m=(f-a)*(f-a)+(g-s)*(g-s),x=(y-a)*(y-a)+(v-s)*(v-s);return m0){e=e/180*Math.PI,iS.fromArray(t[0]),rS.fromArray(t[1]),oS.fromArray(t[2]),qe.sub(aS,iS,rS),qe.sub(sS,oS,rS);var n=aS.len(),i=sS.len();if(!(n<.001||i<.001)){aS.scale(1/n),sS.scale(1/i);var r=aS.dot(sS);if(Math.cos(e)1&&qe.copy(hS,oS),hS.toArray(t[1])}}}}function dS(t,e,n){if(n<=180&&n>0){n=n/180*Math.PI,iS.fromArray(t[0]),rS.fromArray(t[1]),oS.fromArray(t[2]),qe.sub(aS,rS,iS),qe.sub(sS,oS,rS);var i=aS.len(),r=sS.len();if(!(i<.001||r<.001)&&(aS.scale(1/i),sS.scale(1/r),aS.dot(e)=a)qe.copy(hS,oS);else{hS.scaleAndAdd(sS,o/Math.tan(Math.PI/2-s));var l=oS.x!==rS.x?(hS.x-rS.x)/(oS.x-rS.x):(hS.y-rS.y)/(oS.y-rS.y);if(isNaN(l))return;l<0?qe.copy(hS,rS):l>1&&qe.copy(hS,oS)}hS.toArray(t[1])}}}function pS(t,e,n,i){var r="normal"===n,o=r?t:t.ensureState(n);o.ignore=e;var a=i.get("smooth");a&&!0===a&&(a=.3),o.shape=o.shape||{},a>0&&(o.shape.smooth=a);var s=i.getModel("lineStyle").getLineStyle();r?t.useStyle(s):o.style=s}function fS(t,e){var n=e.smooth,i=e.points;if(i)if(t.moveTo(i[0][0],i[0][1]),n>0&&i.length>=3){var r=re(i[0],i[1]),o=re(i[1],i[2]);if(!r||!o)return t.lineTo(i[1][0],i[1][1]),void t.lineTo(i[2][0],i[2][1]);var a=Math.min(r,o)*n,s=le([],i[1],i[0],a/r),l=le([],i[1],i[2],a/o),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],i[2][0],i[2][1])}else for(var h=1;h0&&o&&w(-c/a,0,a);var y,v,m=t[0],x=t[a-1];return _(),y<0&&S(-y,.8),v<0&&S(v,.8),_(),b(y,v,1),b(v,y,-1),_(),y<0&&M(-y),v<0&&M(v),u}function _(){y=m.rect[e]-i,v=r-x.rect[e]-x.rect[n]}function b(t,e,n){if(t<0){var i=Math.min(e,-t);if(i>0){w(i*n,0,a);var r=i+t;r<0&&S(-r*n,1)}else S(-t*n,1)}}function w(n,i,r){0!==n&&(u=!0);for(var o=i;o0)for(l=0;l0;l--)w(-o[l-1]*c,l,a)}}function M(t){var e=t<0?-1:1;t=Math.abs(t);for(var n=Math.ceil(t/(a-1)),i=0;i0?w(n,0,i+1):w(-n,a-i-1,a),(t-=n)<=0)return}}function xS(t,e,n,i){return mS(t,"y","height",e,n,i)}function _S(t){var e=[];t.sort((function(t,e){return e.priority-t.priority}));var n=new sn(0,0,0,0);function i(t){if(!t.ignore){var e=t.ensureState("emphasis");null==e.ignore&&(e.ignore=!1)}t.ignore=!0}for(var r=0;r=0&&n.attr(p.oldLayoutSelect),q(u,"emphasis")>=0&&n.attr(p.oldLayoutEmphasis)),Zu(n,s,e,a)}else if(n.attr(s),!fh(n).valueAnimation){var h=wt(n.style.opacity,1);n.style.opacity=0,qu(n,{style:{opacity:h}},e,a)}if(p.oldLayout=s,n.states.select){var c=p.oldLayoutSelect={};TS(c,s,AS),TS(c,n.states.select,AS)}if(n.states.emphasis){var d=p.oldLayoutEmphasis={};TS(d,s,AS),TS(d,n.states.emphasis,AS)}yh(n,a,l,e,e)}if(i&&!i.ignore&&!i.invisible){r=(p=CS(i)).oldLayout;var p,f={points:i.shape.points};r?(i.attr({shape:r}),Zu(i,{shape:f},e)):(i.setShape(f),i.style.strokePercent=0,qu(i,{style:{strokePercent:1}},e)),p.oldLayout=f}},t}();const kS=DS;var LS=fa();function PS(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,n){var i=LS(e).labelManager;i||(i=LS(e).labelManager=new kS),i.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,n){var i=LS(e).labelManager;n.updatedSeries.forEach((function(t){i.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),i.updateLayoutConfig(e),i.layout(e),i.processLabelsOverall()}))}function OS(t,e,n){var i=A.createCanvas(),r=e.getWidth(),o=e.getHeight(),a=i.style;return a&&(a.position="absolute",a.left="0",a.top="0",a.width=r+"px",a.height=o+"px",i.setAttribute("data-zr-dom-id",t)),i.width=r*n,i.height=o*n,i}g_(PS);var NS=function(t){function e(e,n,i){var r,o=t.call(this)||this;o.motionBlur=!1,o.lastFrameAlpha=.7,o.dpr=1,o.virtual=!1,o.config={},o.incremental=!1,o.zlevel=0,o.maxRepaintRectCount=5,o.__dirty=!0,o.__firstTimePaint=!0,o.__used=!1,o.__drawIndex=0,o.__startIndex=0,o.__endIndex=0,o.__prevStartIndex=null,o.__prevEndIndex=null,i=i||Rr,"string"==typeof e?r=OS(e,n,i):pt(e)&&(e=(r=e).id),o.id=e,o.dom=r;var a=r.style;return a&&(zt(r),r.onselectstart=function(){return!1},a.padding="0",a.margin="0",a.borderWidth="0"),o.painter=n,o.dpr=i,o}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=OS("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,n,i){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var r,o=[],a=this.maxRepaintRectCount,s=!1,l=new sn(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===o.length)(e=new sn(0,0,0,0)).copy(t),o.push(e);else{for(var e,n=!1,i=1/0,r=0,u=0;u=a)}}for(var h=this.__startIndex;h15)break}n.prevElClipPaths&&c.restore()};if(p)if(0===p.length)s=l.__endIndex;else for(var _=d.dpr,b=0;b0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),n[t]=e,!e.virtual)if(a){var l=a.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}},t.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i0?BS:0),this._needsManuallyCompositing),u.__builtin__||H("ZLevel "+l+" has been used by unkown layer "+u.id),u!==o&&(u.__used=!0,u.__startIndex!==r&&(u.__dirty=!0),u.__startIndex=r,u.incremental?u.__drawIndex=-1:u.__drawIndex=r,e(r),o=u),s.__dirty&In&&!s.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=r))}e(r),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 n=this._layerConfig;n[t]?j(n[t],e,!0):n[t]=e;for(var i=0;i=$S:-u>=$S),p=u>0?u%$S:u%$S+$S;l=!!d||!Fi(c)&&p>=HS==!!h;var f=t+n*WS(o),g=e+i*GS(o);this._start&&this._add("M",f,g);var y=Math.round(r*jS);if(d){var v=1/this._p,m=(h?1:-1)*($S-v);this._add("A",n,i,y,1,+h,t+n*WS(o+m),e+i*GS(o+m)),v>.01&&this._add("A",n,i,y,0,+h,f,g)}else{var x=t+n*WS(a),_=e+i*GS(a);this._add("A",n,i,y,+l,+h,x,_)}},t.prototype.rect=function(t,e,n,i){this._add("M",t,e),this._add("l",n,0),this._add("l",0,i),this._add("l",-n,0),this._add("Z")},t.prototype.closePath=function(){this._d.length>0&&this._add("Z")},t.prototype._add=function(t,e,n,i,r,o,a,s,l){for(var u=[],h=this._p,c=1;c"}(r,o)+("style"!==r?Ce(a):a||"")+(i?""+n+et(i,(function(e){return t(e)})).join(n)+n:"")+""}(t)}function oM(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function aM(t,e,n,i){return iM("svg","root",{width:t,height:e,xmlns:JS,"xmlns:xlink":QS,version:"1.1",baseProfile:"full",viewBox:!!i&&"0 0 "+t+" "+e},n)}var sM={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"},lM="transform-origin";function uM(t,e,n){var i=Y({},t.shape);Y(i,e),t.buildPath(n,i);var r=new YS;return r.reset(qi(t)),n.rebuildPath(r,1),r.generateStr(),r.getStr()}function hM(t,e){var n=e.originX,i=e.originY;(n||i)&&(t[lM]=n+"px "+i+"px")}var cM={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function dM(t,e){var n=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[n]=t,n}function pM(t){return ht(t)?sM[t]?"cubic-bezier("+sM[t]+")":ai(t)?t:"":""}function fM(t,e,n,i){var r=t.animators,o=r.length,a=[];if(t instanceof Kg){var s=function(t,e,n){var i,r,o=t.shape.paths,a={};if(tt(o,(function(t){var e=oM(n.zrId);e.animation=!0,fM(t,{},e,!0);var o=e.cssAnims,s=e.cssNodes,l=ot(o),u=l.length;if(u){var h=o[r=l[u-1]];for(var c in h){var d=h[c];a[c]=a[c]||{d:""},a[c].d+=d.d||""}for(var p in s){var f=s[p].animation;f.indexOf(r)>=0&&(i=f)}}})),i){e.d=!1;var s=dM(a,n);return i.replace(r,s)}}(t,e,n);if(s)a.push(s);else if(!o)return}else if(!o)return;for(var l={},u=0;u0})).length)return dM(h,n)+" "+r[0]+" both"}for(var y in l)(s=g(l[y]))&&a.push(s);if(a.length){var v=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+v]={animation:a.join(",")},e.class=v}}var gM=Math.round;function yM(t){return t&&ht(t.src)}function vM(t){return t&&ut(t.toDataURL)}function mM(t,e,n,i){(function(t,e,n,i){var r=null==e.opacity?1:e.opacity;if(n instanceof vl)t("opacity",r);else{if(function(t){var e=t.fill;return null!=e&&e!==XS}(e)){var o=Bi(e.fill);t("fill",o.color);var a=null!=e.fillOpacity?e.fillOpacity*o.opacity*r:o.opacity*r;(i||a<1)&&t("fill-opacity",a)}else t("fill",XS);if(function(t){var e=t.stroke;return null!=e&&e!==XS}(e)){var s=Bi(e.stroke);t("stroke",s.color);var l=e.strokeNoScale?n.getLineScale():1,u=l?(e.lineWidth||0)/l:0,h=null!=e.strokeOpacity?e.strokeOpacity*s.opacity*r:s.opacity*r,c=e.strokeFirst;if((i||1!==u)&&t("stroke-width",u),(i||c)&&t("paint-order",c?"stroke":"fill"),(i||h<1)&&t("stroke-opacity",h),e.lineDash){var d=cm(n),p=d[0],f=d[1];p&&(f=ZS(f||0),t("stroke-dasharray",p.join(",")),(f||i)&&t("stroke-dashoffset",f))}else i&&t("stroke-dasharray",XS);for(var g=0;gl?UM(t,null==n[c+1]?null:n[c+1].elm,n,s,c):YM(t,e,a,l))}(n,i,r):WM(r)?(WM(t.text)&&zM(n,""),UM(n,null,r,0,r.length-1)):WM(i)?YM(n,i,0,i.length-1):WM(t.text)&&zM(n,""):t.text!==e.text&&(WM(i)&&YM(n,i,0,i.length-1),zM(n,e.text)))}var qM=0,KM=function(){function t(t,e,n){if(this.type="svg",this.refreshHover=function(){},this.configLayer=function(){},this.storage=e,this._opts=n=Y({},n),this.root=t,this._id="zr"+qM++,this._oldVNode=aM(n.width,n.height),t&&!n.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var r=this._svgDom=this._oldVNode.elm=nM("svg");XM(null,this._oldVNode),i.appendChild(r),t.appendChild(i)}this.resize(n.width,n.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($M(t,e))ZM(t,e);else{var n=t.elm,i=RM(n);jM(e),null!==i&&(PM(i,e.elm,EM(n)),YM(i,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return TM(t,oM(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),n=this._width,i=this._height,r=oM(this._id);r.animation=t.animation,r.willUpdate=t.willUpdate,r.compress=t.compress;var o=[],a=this._bgVNode=function(t,e,n,i){var r;if(n&&"none"!==n)if(r=iM("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),Xi(n))AM({fill:n},r.attrs,"fill",i);else if(ji(n))DM({style:{fill:n},dirty:Vt,getBoundingRect:function(){return{width:t,height:e}}},r.attrs,"fill",i);else{var o=Bi(n),a=o.color,s=o.opacity;r.attrs.fill=a,s<1&&(r.attrs["fill-opacity"]=s)}return r}(n,i,this._backgroundColor,r);a&&o.push(a);var s=t.compress?null:this._mainVNode=iM("g","main",{},[]);this._paintList(e,r,s?s.children:o),s&&o.push(s);var l=et(ot(r.defs),(function(t){return r.defs[t]}));if(l.length&&o.push(iM("defs","defs",{},l)),t.animation){var u=function(t,e,n){var i=(n=n||{}).newline?"\n":"",r=" {"+i,o=i+"}",a=et(ot(t),(function(e){return e+r+et(ot(t[e]),(function(n){return n+":"+t[e][n]+";"})).join(i)+o})).join(i),s=et(ot(e),(function(t){return"@keyframes "+t+r+et(ot(e[t]),(function(n){return n+r+et(ot(e[t][n]),(function(i){var r=e[t][n][i];return"d"===i&&(r='path("'+r+'")'),i+":"+r+";"})).join(i)+o})).join(i)+o})).join(i);return a||s?[""].join(i):""}(r.cssNodes,r.cssAnims,{newline:!0});if(u){var h=iM("style","stl",{},[],u);o.push(h)}}return aM(n,i,o,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},rM(this.renderToVNode({animation:wt(t.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:wt(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,n){for(var i,r,o=t.length,a=[],s=0,l=0,u=0;u=0&&(!c||!r||c[f]!==r[f]);f--);for(var g=p-1;g>f;g--)i=a[--s-1];for(var y=f+1;y-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}(zf);function tI(t,e){var n=t.mapDimensionsAll("defaultedLabel"),i=n.length;if(1===i){var r=Sp(t,e,n[0]);return null!=r?r+"":null}if(i){for(var o=[],a=0;a=0&&i.push(e[o])}return i.join(" ")}var nI=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.updateData(e,n,i,r),o}return m(e,t),e.prototype._createSymbol=function(t,e,n,i,r){this.removeAll();var o=rm(t,-1,-1,2,2,null,r);o.attr({z2:100,culling:!0,scaleX:i[0]/2,scaleY:i[1]/2}),o.drift=iI,this._symbolType=t,this.add(o)},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(){Su(this.childAt(0))},e.prototype.downplay=function(){Mu(this.childAt(0))},e.prototype.setZ=function(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},e.prototype.setDraggable=function(t,e){var n=this.childAt(0);n.draggable=t,n.cursor=!e&&t?"move":n.cursor},e.prototype.updateData=function(t,n,i,r){this.silent=!1;var o=t.getItemVisual(n,"symbol")||"circle",a=t.hostModel,s=e.getSymbolSize(t,n),l=o!==this._symbolType,u=r&&r.disableAnimation;if(l){var h=t.getItemVisual(n,"symbolKeepAspect");this._createSymbol(o,t,n,s,h)}else{(d=this.childAt(0)).silent=!1;var c={scaleX:s[0]/2,scaleY:s[1]/2};u?d.attr(c):Zu(d,c,a,n),eh(d)}if(this._updateCommon(t,n,s,i,r),l){var d=this.childAt(0);u||(c={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:d.style.opacity}},d.scaleX=d.scaleY=0,d.style.opacity=0,qu(d,c,a,n))}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,n,i,r){var o,a,s,l,u,h,c,d,p,f=this.childAt(0),g=t.hostModel;if(i&&(o=i.emphasisItemStyle,a=i.blurItemStyle,s=i.selectItemStyle,l=i.focus,u=i.blurScope,c=i.labelStatesModels,d=i.hoverScale,p=i.cursorStyle,h=i.emphasisDisabled),!i||t.hasItemOption){var y=i&&i.itemModel?i.itemModel:t.getItemModel(e),v=y.getModel("emphasis");o=v.getModel("itemStyle").getItemStyle(),s=y.getModel(["select","itemStyle"]).getItemStyle(),a=y.getModel(["blur","itemStyle"]).getItemStyle(),l=v.get("focus"),u=v.get("blurScope"),h=v.get("disabled"),c=ah(y),d=v.getShallow("scale"),p=y.getShallow("cursor")}var m=t.getItemVisual(e,"symbolRotate");f.attr("rotation",(m||0)*Math.PI/180||0);var x=am(t.getItemVisual(e,"symbolOffset"),n);x&&(f.x=x[0],f.y=x[1]),p&&f.attr("cursor",p);var _=t.getItemVisual(e,"style"),b=_.fill;if(f instanceof vl){var w=f.style;f.useStyle(Y({image:w.image,x:w.x,y:w.y,width:w.width,height:w.height},_))}else f.__isEmptyBrush?f.useStyle(Y({},_)):f.useStyle(_),f.style.decal=null,f.setColor(b,r&&r.symbolInnerColor),f.style.strokeNoScale=!0;var S=t.getItemVisual(e,"liftZ"),M=this._z2;null!=S?null==M&&(this._z2=f.z2,f.z2+=S):null!=M&&(f.z2=M,this._z2=null);var I=r&&r.useNameLabel;oh(f,c,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return I?t.getName(e):tI(t,e)},inheritColor:b,defaultOpacity:_.opacity}),this._sizeX=n[0]/2,this._sizeY=n[1]/2;var C=f.ensureState("emphasis");C.style=o,f.ensureState("select").style=s,f.ensureState("blur").style=a;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;C.scaleX=this._sizeX*T,C.scaleY=this._sizeY*T,this.setSymbolScale(1),zu(this,l,u,h)},e.prototype.setSymbolScale=function(t){this.scaleX=this.scaleY=t},e.prototype.fadeOut=function(t,e,n){var i=this.childAt(0),r=Wl(this).dataIndex,o=n&&n.animation;if(this.silent=i.silent=!0,n&&n.fadeLabel){var a=i.getTextContent();a&&Ju(a,{style:{opacity:0}},e,{dataIndex:r,removeOpt:o,cb:function(){i.removeTextContent()}})}else i.removeTextContent();Ju(i,{style:{opacity:0},scaleX:0,scaleY:0},e,{dataIndex:r,cb:t,removeOpt:o})},e.getSymbolSize=function(t,e){return om(t.getItemVisual(e,"symbolSize"))},e}(yo);function iI(t,e){this.parent.drift(t,e)}const rI=nI;function oI(t,e,n,i){return e&&!isNaN(e[0])&&!isNaN(e[1])&&!(i.isIgnore&&i.isIgnore(n))&&!(i.clipShape&&!i.clipShape.contain(e[0],e[1]))&&"none"!==t.getItemVisual(n,"symbol")}function aI(t){return null==t||pt(t)||(t={isIgnore:t}),t||{}}function sI(t){var e=t.hostModel,n=e.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:e.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:e.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:ah(e),cursorStyle:e.get("cursor")}}var lI=function(){function t(t){this.group=new yo,this._SymbolCtor=t||rI}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=aI(e);var n=this.group,i=t.hostModel,r=this._data,o=this._SymbolCtor,a=e.disableAnimation,s=sI(t),l={disableAnimation:a},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};r||n.removeAll(),t.diff(r).add((function(i){var r=u(i);if(oI(t,r,i,e)){var a=new o(t,i,s,l);a.setPosition(r),t.setItemGraphicEl(i,a),n.add(a)}})).update((function(h,c){var d=r.getItemGraphicEl(c),p=u(h);if(oI(t,p,h,e)){var f=t.getItemVisual(h,"symbol")||"circle",g=d&&d.getSymbolType&&d.getSymbolType();if(!d||g&&g!==f)n.remove(d),(d=new o(t,h,s,l)).setPosition(p);else{d.updateData(t,h,s,l);var y={x:p[0],y:p[1]};a?d.attr(y):Zu(d,y,i)}n.add(d),t.setItemGraphicEl(h,d)}else n.remove(d)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&e.fadeOut((function(){n.remove(e)}),i)})).execute(),this._getSymbolPoint=u,this._data=t},t.prototype.updateLayout=function(){var t=this,e=this._data;e&&e.eachItemGraphicEl((function(e,n){var i=t._getSymbolPoint(n);e.setPosition(i),e.markRedraw()}))},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=sI(t),this._data=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e,n){function i(t){t.isGroup||(t.incremental=!0,t.ensureState("emphasis").hoverLayer=!0)}this._progressiveEls=[],n=aI(n);for(var r=t.start;r0?n=i[0]:i[1]<0&&(n=i[1]),n}(r,n),a=i.dim,s=r.dim,l=e.mapDimension(s),u=e.mapDimension(a),h="x"===s||"radius"===s?1:0,c=et(t.dimensions,(function(t){return e.mapDimension(t)})),d=!1,p=e.getCalculationInfo("stackResultDimension");return J_(e,c[0])&&(d=!0,c[0]=p),J_(e,c[1])&&(d=!0,c[1]=p),{dataDimsForPoint:c,valueStart:o,valueAxisDim:s,baseAxisDim:a,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:h,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function cI(t,e,n,i){var r=NaN;t.stacked&&(r=n.get(n.getCalculationInfo("stackedOverDimension"),i)),isNaN(r)&&(r=t.valueStart);var o=t.baseDataOffset,a=[];return a[o]=n.get(t.baseDim,i),a[1-o]=r,e.dataToPoint(a)}var dI=Math.min,pI=Math.max;function fI(t,e){return isNaN(t)||isNaN(e)}function gI(t,e,n,i,r,o,a,s,l){for(var u,h,c,d,p,f,g=n,y=0;y=r||g<0)break;if(fI(v,m)){if(l){g+=o;continue}break}if(g===n)t[o>0?"moveTo":"lineTo"](v,m),c=v,d=m;else{var x=v-u,_=m-h;if(x*x+_*_<.5){g+=o;continue}if(a>0){for(var b=g+o,w=e[2*b],S=e[2*b+1];w===v&&S===m&&y=i||fI(w,S))p=v,f=m;else{C=w-u,T=S-h;var k=v-u,L=w-v,P=m-h,O=S-m,N=void 0,R=void 0;if("x"===s){var E=C>0?1:-1;p=v-E*(N=Math.abs(k))*a,f=m,A=v+E*(R=Math.abs(L))*a,D=m}else if("y"===s){var z=T>0?1:-1;p=v,f=m-z*(N=Math.abs(P))*a,A=v,D=m+z*(R=Math.abs(O))*a}else N=Math.sqrt(k*k+P*P),p=v-C*a*(1-(I=(R=Math.sqrt(L*L+O*O))/(R+N))),f=m-T*a*(1-I),D=m+T*a*I,A=dI(A=v+C*a*I,pI(w,v)),D=dI(D,pI(S,m)),A=pI(A,dI(w,v)),f=m-(T=(D=pI(D,dI(S,m)))-m)*N/R,p=dI(p=v-(C=A-v)*N/R,pI(u,v)),f=dI(f,pI(h,m)),A=v+(C=v-(p=pI(p,dI(u,v))))*R/N,D=m+(T=m-(f=pI(f,dI(h,m))))*R/N}t.bezierCurveTo(c,d,p,f,v,m),c=A,d=D}else t.lineTo(v,m)}u=v,h=m,g+=o}return y}var yI=function(){this.smooth=0,this.smoothConstraint=!0},vI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polyline",n}return m(e,t),e.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},e.prototype.getDefaultShape=function(){return new yI},e.prototype.buildPath=function(t,e){var n=e.points,i=0,r=n.length/2;if(e.connectNulls){for(;r>0&&fI(n[2*r-2],n[2*r-1]);r--);for(;i=0){var y=a?(h-i)*g+i:(u-n)*g+n;return a?[t,y]:[y,t]}n=u,i=h;break;case o.C:u=r[l++],h=r[l++],c=r[l++],d=r[l++],p=r[l++],f=r[l++];var v=a?Xn(n,u,c,p,t,s):Xn(i,h,d,f,t,s);if(v>0)for(var m=0;m=0)return y=a?Un(i,h,d,f,x):Un(n,u,c,p,x),a?[t,y]:[y,t]}n=p,i=f}}},e}(hl),mI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(yI),xI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="ec-polygon",n}return m(e,t),e.prototype.getDefaultShape=function(){return new mI},e.prototype.buildPath=function(t,e){var n=e.points,i=e.stackedOnPoints,r=0,o=n.length/2,a=e.smoothMonotone;if(e.connectNulls){for(;o>0&&fI(n[2*o-2],n[2*o-1]);o--);for(;ri)return!1;return!0}(o,e))){var a=e.mapDimension(o.dim),s={};return tt(o.getViewLabels(),(function(t){var e=o.scale.getRawOrdinalNumber(t.tickValue);s[e]=1})),function(t){return!s.hasOwnProperty(e.get(a,t))}}}}(t,a,r),M=this._data;M&&M.eachItemGraphicEl((function(t,e){t.__temp&&(o.remove(t),M.setItemGraphicEl(e,null))})),b||d.remove(),o.add(g);var I,C=!h&&t.get("step");r&&r.getArea&&t.get("clip",!0)&&(null!=(I=r.getArea()).width?(I.x-=.1,I.y-=.1,I.width+=.2,I.height+=.2):I.r0&&(I.r0-=.5,I.r+=.5)),this._clipShapeForSymbol=I;var T=function(t,e,n){var i=t.getVisual("visualMeta");if(i&&i.length&&t.count()&&"cartesian2d"===e.type){for(var r,o,a=i.length-1;a>=0;a--){var s=t.getDimensionInfo(i[a].dimension);if("x"===(r=s&&s.coordDim)||"y"===r){o=i[a];break}}if(o){var l=e.getAxis(r),u=et(o.stops,(function(t){return{coord:l.toGlobalCoord(l.dataToCoord(t.value)),color:t.color}})),h=u.length,c=o.outerColors.slice();h&&u[0].coord>u[h-1].coord&&(u.reverse(),c.reverse());var d=function(t,e){var n,i,r=[],o=t.length;function a(t,e,n){var i=t.coord;return{coord:n,color:ki((n-i)/(e.coord-i),[t.color,e.color])}}for(var s=0;se){i?r.push(a(i,l,e)):n&&r.push(a(n,l,0),a(n,l,e));break}n&&(r.push(a(n,l,0)),n=null),r.push(l),i=l}}return r}(u,"x"===r?n.getWidth():n.getHeight()),p=d.length;if(!p&&h)return u[0].coord<0?c[1]?c[1]:u[h-1].color:c[0]?c[0]:u[0].color;var f=d[0].coord-10,g=d[p-1].coord+10,y=g-f;if(y<.001)return"transparent";tt(d,(function(t){t.offset=(t.coord-f)/y})),d.push({offset:p?d[p-1].offset:.5,color:c[1]||"transparent"}),d.unshift({offset:p?d[0].offset:.5,color:c[0]||"transparent"});var v=new Qg(0,0,0,0,d,!0);return v[r]=f,v[r+"2"]=g,v}}}(a,r,n)||a.getVisual("style")[a.getVisual("drawType")];if(p&&c.type===r.type&&C===this._step){v&&!f?f=this._newPolygon(u,_):f&&!v&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,Ac(T));var A=g.getClipPath();A?qu(A,{shape:LI(this,r,!1,t).shape},t):g.setClipPath(LI(this,r,!0,t)),b&&d.updateData(a,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),MI(this._stackedOnPoints,_)&&MI(this._points,u)||(y?this._doUpdateAnimation(a,_,r,n,C,m,w):(C&&(u=AI(u,r,C,w),_&&(_=AI(_,r,C,w))),p.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:_})))}else b&&d.updateData(a,{isIgnore:S,clipShape:I,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),y&&this._initSymbolLabelAnimation(a,r,I),C&&(u=AI(u,r,C,w),_&&(_=AI(_,r,C,w))),p=this._newPolyline(u),v?f=this._newPolygon(u,_):f&&(g.remove(f),f=this._polygon=null),h||this._initOrUpdateEndLabel(t,r,Ac(T)),g.setClipPath(LI(this,r,!0,t));var D=t.getModel("emphasis"),k=D.get("focus"),L=D.get("blurScope"),P=D.get("disabled");p.useStyle(X(s.getLineStyle(),{fill:"none",stroke:T,lineJoin:"bevel"})),Gu(p,t,"lineStyle"),p.style.lineWidth>0&&"bolder"===t.get(["emphasis","lineStyle","width"])&&(p.getState("emphasis").style.lineWidth=+p.style.lineWidth+1),Wl(p).seriesIndex=t.seriesIndex,zu(p,k,L,P);var O=TI(t.get("smooth")),N=t.get("smoothMonotone");if(p.setShape({smooth:O,smoothMonotone:N,connectNulls:w}),f){var R=a.getCalculationInfo("stackedOnSeries"),E=0;f.useStyle(X(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:a.getVisual("style").decal})),R&&(E=TI(R.get("smooth"))),f.setShape({smooth:O,stackedOnSmooth:E,smoothMonotone:N,connectNulls:w}),Gu(f,t,"areaStyle"),Wl(f).seriesIndex=t.seriesIndex,zu(f,k,L,P)}var z=function(t){i._changePolyState(t)};a.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=z)})),this._polyline.onHoverStateChange=z,this._data=a,this._coordSys=r,this._stackedOnPoints=_,this._points=u,this._step=C,this._valueOrigin=m,t.get("triggerLineEvent")&&(this.packEventData(t,p),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,n,i){var r=t.getData(),o=pa(r,i);if(this._changePolyState("emphasis"),!(o instanceof Array)&&null!=o&&o>=0){var a=r.getLayout("points"),s=r.getItemGraphicEl(o);if(!s){var l=a[2*o],u=a[2*o+1];if(isNaN(l)||isNaN(u))return;if(this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(l,u))return;var h=t.get("zlevel")||0,c=t.get("z")||0;(s=new rI(r,o)).x=l,s.y=u,s.setZ(h,c);var d=s.getSymbolPath().getTextContent();d&&(d.zlevel=h,d.z=c,d.z2=this._polyline.z2+1),s.__temp=!0,r.setItemGraphicEl(o,s),s.stopSymbolAnimation(!0),this.group.add(s)}s.highlight()}else Xy.prototype.highlight.call(this,t,e,n,i)},e.prototype.downplay=function(t,e,n,i){var r=t.getData(),o=pa(r,i);if(this._changePolyState("normal"),null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else Xy.prototype.downplay.call(this,t,e,n,i)},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 vI({shape:{points:t},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(e),this._polyline=e,e},e.prototype._newPolygon=function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new xI({shape:{points:t,stackedOnPoints:e},segmentIgnoreThreshold:2}),this._lineGroup.add(n),this._polygon=n,n},e.prototype._initSymbolLabelAnimation=function(t,e,n){var i,r,o=e.getBaseAxis(),a=o.inverse;"cartesian2d"===e.type?(i=o.isHorizontal(),r=!1):"polar"===e.type&&(i="angle"===o.dim,r=!0);var s=t.hostModel,l=s.get("animationDuration");ut(l)&&(l=l(null));var u=s.get("animationDelay")||0,h=ut(u)?u(null):u;t.eachItemGraphicEl((function(t,o){var s=t;if(s){var c=[t.x,t.y],d=void 0,p=void 0,f=void 0;if(n)if(r){var g=n,y=e.pointToCoord(c);i?(d=g.startAngle,p=g.endAngle,f=-y[1]/180*Math.PI):(d=g.r0,p=g.r,f=y[0])}else{var v=n;i?(d=v.x,p=v.x+v.width,f=t.x):(d=v.y+v.height,p=v.y,f=t.y)}var m=p===d?0:(f-d)/(p-d);a&&(m=1-m);var x=ut(u)?u(o):l*m+h,_=s.getSymbolPath(),b=_.getTextContent();s.attr({scaleX:0,scaleY:0}),s.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:x}),b&&b.animateFrom({style:{opacity:0}},{duration:300,delay:x}),_.disableLabelAnimation=!0}}))},e.prototype._initOrUpdateEndLabel=function(t,e,n){var i=t.getModel("endLabel");if(kI(t)){var r=t.getData(),o=this._polyline,a=r.getLayout("points");if(!a)return o.removeTextContent(),void(this._endLabel=null);var s=this._endLabel;s||((s=this._endLabel=new Gl({z2:200})).ignoreClip=!0,o.setTextContent(this._endLabel),o.disableLabelAnimation=!0);var l=function(t){for(var e,n,i=t.length/2;i>0&&(e=t[2*i-2],n=t[2*i-1],isNaN(e)||isNaN(n));i--);return i-1}(a);l>=0&&(oh(o,ah(t,"endLabel"),{inheritColor:n,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,n){return null!=n?eI(r,n):tI(r,t)},enableTextSetter:!0},function(t,e){var n=e.getBaseAxis(),i=n.isHorizontal(),r=n.inverse,o=i?r?"right":"left":"center",a=i?"middle":r?"top":"bottom";return{normal:{align:t.get("align")||o,verticalAlign:t.get("verticalAlign")||a}}}(i,e)),o.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},e.prototype._endLabelOnDuring=function(t,e,n,i,r,o,a){var s=this._endLabel,l=this._polyline;if(s){t<1&&null==i.originalX&&(i.originalX=s.x,i.originalY=s.y);var u=n.getLayout("points"),h=n.hostModel,c=h.get("connectNulls"),d=o.get("precision"),p=o.get("distance")||0,f=a.getBaseAxis(),g=f.isHorizontal(),y=f.inverse,v=e.shape,m=y?g?v.x:v.y+v.height:g?v.x+v.width:v.y,x=(g?p:0)*(y?-1:1),_=(g?0:-p)*(y?-1:1),b=g?"x":"y",w=function(t,e,n){for(var i,r,o=t.length/2,a="x"===n?0:1,s=0,l=-1,u=0;u=e||i>=e&&r<=e){l=u;break}s=u,i=r}else i=r;return{range:[s,l],t:(e-i)/(r-i)}}(u,m,b),S=w.range,M=S[1]-S[0],I=void 0;if(M>=1){if(M>1&&!c){var C=DI(u,S[0]);s.attr({x:C[0]+x,y:C[1]+_}),r&&(I=h.getRawValue(S[0]))}else{(C=l.getPointOn(m,b))&&s.attr({x:C[0]+x,y:C[1]+_});var T=h.getRawValue(S[0]),A=h.getRawValue(S[1]);r&&(I=Sa(n,d,T,A,w.t))}i.lastFrameIndex=S[0]}else{var D=1===t||i.lastFrameIndex>0?S[0]:0;C=DI(u,D),r&&(I=h.getRawValue(D)),s.attr({x:C[0]+x,y:C[1]+_})}if(r){var k=fh(s);"function"==typeof k.setLabelText&&k.setLabelText(I)}}},e.prototype._doUpdateAnimation=function(t,e,n,i,r,o,a){var s=this._polyline,l=this._polygon,u=t.hostModel,h=function(t,e,n,i,r,o,a,s){for(var l=function(t,e){var n=[];return e.diff(t).add((function(t){n.push({cmd:"+",idx:t})})).update((function(t,e){n.push({cmd:"=",idx:e,idx1:t})})).remove((function(t){n.push({cmd:"-",idx:t})})).execute(),n}(t,e),u=[],h=[],c=[],d=[],p=[],f=[],g=[],y=hI(r,e,a),v=t.getLayout("points")||[],m=e.getLayout("points")||[],x=0;x3e3||l&&CI(d,f)>3e3)return s.stopAnimation(),s.setShape({points:p}),void(l&&(l.stopAnimation(),l.setShape({points:p,stackedOnPoints:f})));s.shape.__points=h.current,s.shape.points=c;var g={shape:{points:p}};h.current!==c&&(g.shape.__points=h.next),s.stopAnimation(),Zu(s,g,u),l&&(l.setShape({points:c,stackedOnPoints:d}),l.stopAnimation(),Zu(l,{shape:{stackedOnPoints:f}},u),s.shape.points!==l.shape.points&&(l.shape.points=s.shape.points));for(var y=[],v=h.status,m=0;me&&(e=t[n]);return isFinite(e)?e:NaN},min:function(t){for(var e=1/0,n=0;n10&&"cartesian2d"===o.type&&r){var s=o.getBaseAxis(),l=o.getOtherAxis(s),u=s.getExtent(),h=n.getDevicePixelRatio(),c=Math.abs(u[1]-u[0])*(h||1),d=Math.round(a/c);if(isFinite(d)&&d>1){"lttb"===r&&t.setData(i.lttbDownSample(i.mapDimension(l.dim),1/d));var p=void 0;ht(r)?p=RI[r]:ut(r)&&(p=r),p&&t.setData(i.downSample(i.mapDimension(l.dim),1/d,p,EI))}}}}}var BI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(t,e){return tb(null,this,{useEncodeDefaulter:!0})},e.prototype.getMarkerPosition=function(t,e,n){var i=this.coordinateSystem;if(i&&i.clampData){var r=i.clampData(t),o=i.dataToPoint(r);if(n)tt(i.getAxes(),(function(t,n){if("category"===t.type&&null!=e){var i=t.getTicksCoords(),a=r[n],s="x1"===e[n]||"y1"===e[n];if(s&&(a+=1),i.length<2)return;if(2===i.length)return void(o[n]=t.toGlobalCoord(t.getExtent()[s?1:0]));for(var l=void 0,u=void 0,h=1,c=0;ca){u=(d+l)/2;break}1===c&&(h=p-i[0].tickValue)}null==u&&(l?l&&(u=i[i.length-1].coord):u=i[0].coord),o[n]=t.toGlobalCoord(u)}}));else{var a=this.getData(),s=a.getLayout("offset"),l=a.getLayout("size"),u=i.getBaseAxis().isHorizontal()?0:1;o[u]+=s+l/2}return o}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}(zf);zf.registerClass(BI);const VI=BI,FI=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.getInitialData=function(){return tb(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,n){return n.rect(e.getItemLayout(t))},e.type="series.bar",e.dependencies=["grid","polar"],e.defaultOption=Nh(VI.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}(VI);var GI=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},WI=function(t){function e(e){var n=t.call(this,e)||this;return n.type="sausage",n}return m(e,t),e.prototype.getDefaultShape=function(){return new GI},e.prototype.buildPath=function(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r0||0,0),o=Math.max(e.r,0),a=.5*(o-r),s=r+a,l=e.startAngle,u=e.endAngle,h=e.clockwise,c=2*Math.PI,d=h?u-lo)return!0;o=u}return!1},e.prototype._isOrderDifferentInView=function(t,e){for(var n=e.scale,i=n.getExtent(),r=Math.max(0,i[0]),o=Math.min(i[1],n.getOrdinalMeta().categories.length-1);r<=o;++r)if(t.ordinalNumbers[r]!==n.getRawOrdinalNumber(r))return!0},e.prototype._updateSortWithinSameData=function(t,e,n,i){if(this._isOrderChangedWithinSameData(t,e,n)){var r=this._dataSort(t,n,e);this._isOrderDifferentInView(r,n)&&(this._removeOnRenderedListener(i),i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",axisId:n.index,sortInfo:r}))}},e.prototype._dispatchInitSort=function(t,e,n){var i=e.baseAxis,r=this._dataSort(t,i,(function(n){return t.get(t.mapDimension(e.otherAxis.dim),n)}));n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",isInitSort:!0,axisId:i.index,sortInfo:r})},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,n=this._data;t&&t.isAnimationEnabled()&&n&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],n.eachItemGraphicEl((function(e){th(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}(Xy),qI={cartesian2d:function(t,e){var n=e.width<0?-1:1,i=e.height<0?-1:1;n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height);var r=t.x+t.width,o=t.y+t.height,a=YI(e.x,t.x),s=XI(e.x+e.width,r),l=YI(e.y,t.y),u=XI(e.y+e.height,o),h=sr?s:a,e.y=c&&l>o?u:l,e.width=h?0:s-a,e.height=c?0:u-l,n<0&&(e.x+=e.width,e.width=-e.width),i<0&&(e.y+=e.height,e.height=-e.height),h||c},polar:function(t,e){var n=e.r0<=e.r?1:-1;if(n<0){var i=e.r;e.r=e.r0,e.r0=i}var r=XI(e.r,t.r),o=YI(e.r0,t.r0);e.r=r,e.r0=o;var a=r-o<0;return n<0&&(i=e.r,e.r=e.r0,e.r0=i),a}},KI={cartesian2d:function(t,e,n,i,r,o,a,s,l){var u=new Il({shape:Y({},i),z2:1});return u.__dataIndex=n,u.name="item",o&&(u.shape[r?"height":"width"]=0),u},polar:function(t,e,n,i,r,o,a,s,l){var u=!r&&l?HI:Tg,h=new u({shape:i,z2:1});h.name="item";var c,d,p=rC(r);if(h.calculateTextPosition=(c=p,d=({isRoundCap:u===HI}||{}).isRoundCap,function(t,e,n){var i=e.position;if(!i||i instanceof Array)return no(t,e,n);var r=c(i),o=null!=e.distance?e.distance:5,a=this.shape,s=a.cx,l=a.cy,u=a.r,h=a.r0,p=(u+h)/2,f=a.startAngle,g=a.endAngle,y=(f+g)/2,v=d?Math.abs(u-h)/2:0,m=Math.cos,x=Math.sin,_=s+u*m(f),b=l+u*x(f),w="left",S="top";switch(r){case"startArc":_=s+(h-o)*m(y),b=l+(h-o)*x(y),w="center",S="top";break;case"insideStartArc":_=s+(h+o)*m(y),b=l+(h+o)*x(y),w="center",S="bottom";break;case"startAngle":_=s+p*m(f)+$I(f,o+v,!1),b=l+p*x(f)+jI(f,o+v,!1),w="right",S="middle";break;case"insideStartAngle":_=s+p*m(f)+$I(f,-o+v,!1),b=l+p*x(f)+jI(f,-o+v,!1),w="left",S="middle";break;case"middle":_=s+p*m(y),b=l+p*x(y),w="center",S="middle";break;case"endArc":_=s+(u+o)*m(y),b=l+(u+o)*x(y),w="center",S="bottom";break;case"insideEndArc":_=s+(u-o)*m(y),b=l+(u-o)*x(y),w="center",S="top";break;case"endAngle":_=s+p*m(g)+$I(g,o+v,!0),b=l+p*x(g)+jI(g,o+v,!0),w="left",S="middle";break;case"insideEndAngle":_=s+p*m(g)+$I(g,-o+v,!0),b=l+p*x(g)+jI(g,-o+v,!0),w="right",S="middle";break;default:return no(t,e,n)}return(t=t||{}).x=_,t.y=b,t.align=w,t.verticalAlign=S,t}),o){var f=r?"r":"endAngle",g={};h.shape[f]=r?i.r0:i.startAngle,g[f]=i[f],(s?Zu:qu)(h,{shape:g},o)}return h}};function JI(t,e,n,i,r,o,a,s){var l,u;o?(u={x:i.x,width:i.width},l={y:i.y,height:i.height}):(u={y:i.y,height:i.height},l={x:i.x,width:i.width}),s||(a?Zu:qu)(n,{shape:l},e,r,null),(a?Zu:qu)(n,{shape:u},e?t.baseAxis.model:null,r)}function QI(t,e){for(var n=0;n0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}},polar:function(t,e,n){var i=t.getItemLayout(e);return{cx:i.cx,cy:i.cy,r0:i.r0,r:i.r,startAngle:i.startAngle,endAngle:i.endAngle,clockwise:i.clockwise}}};function rC(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 oC(t,e,n,i,r,o,a,s){var l=e.getItemVisual(n,"style");if(s){if(!o.get("roundCap")){var u=t.shape;Y(u,UI(i.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var h=i.get(["itemStyle","borderRadius"])||0;t.setShape("r",h)}t.useStyle(l);var c=i.getShallow("cursor");c&&t.attr("cursor",c);var d=s?a?r.r>=r.r0?"endArc":"startArc":r.endAngle>=r.startAngle?"endAngle":"startAngle":a?r.height>=0?"bottom":"top":r.width>=0?"right":"left",p=ah(i);oh(t,p,{labelFetcher:o,labelDataIndex:n,defaultText:tI(o.getData(),n),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=t.getTextContent();if(s&&f){var g=i.get(["label","position"]);t.textConfig.inside="middle"===g||null,function(t,e,n,i){if(dt(i))t.setTextConfig({rotation:i});else if(lt(e))t.setTextConfig({rotation:0});else{var r,o=t.shape,a=o.clockwise?o.startAngle:o.endAngle,s=o.clockwise?o.endAngle:o.startAngle,l=(a+s)/2,u=n(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":r=l;break;case"startAngle":case"insideStartAngle":r=a;break;case"endAngle":case"insideEndAngle":r=s;break;default:return void t.setTextConfig({rotation:0})}var h=1.5*Math.PI-r;"middle"===u&&h>Math.PI/2&&h<1.5*Math.PI&&(h-=Math.PI),t.setTextConfig({rotation:h})}}(t,"outside"===g?d:g,rC(a),i.get(["label","rotate"]))}gh(f,p,o.getRawValue(n),(function(t){return eI(e,t)}));var y=i.getModel(["emphasis"]);zu(t,y.get("focus"),y.get("blurScope"),y.get("disabled")),Gu(t,i),function(t){return null!=t.startAngle&&null!=t.endAngle&&t.startAngle===t.endAngle}(r)&&(t.style.fill="none",t.style.stroke="none",tt(t.states,(function(t){t.style&&(t.style.fill=t.style.stroke="none")})))}var aC=function(){},sC=function(t){function e(e){var n=t.call(this,e)||this;return n.type="largeBar",n}return m(e,t),e.prototype.getDefaultShape=function(){return new aC},e.prototype.buildPath=function(t,e){for(var n=e.points,i=this.baseDimIdx,r=1-this.baseDimIdx,o=[],a=[],s=this.barWidth,l=0;l=s[0]&&e<=s[0]+l[0]&&n>=s[1]&&n<=s[1]+l[1])return a[h]}return-1}(this,t.offsetX,t.offsetY);Wl(this).dataIndex=e>=0?e:null}),30,!1);function hC(t,e,n){if(SI(n,"cartesian2d")){var i=e,r=n.getArea();return{x:t?i.x:r.x,y:t?r.y:i.y,width:t?i.width:r.width,height:t?r.height:i.height}}var o=e;return{cx:(r=n.getArea()).cx,cy:r.cy,r0:t?r.r0:o.r0,r:t?r.r:o.r,startAngle:t?o.startAngle:0,endAngle:t?o.endAngle:2*Math.PI}}const cC=ZI;var dC=2*Math.PI,pC=Math.PI/180;function fC(t,e){return Rc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function gC(t,e){var n=fC(t,e),i=t.get("center"),r=t.get("radius");lt(r)||(r=[0,r]);var o,a,s=Do(n.width,e.getWidth()),l=Do(n.height,e.getHeight()),u=Math.min(s,l),h=Do(r[0],u/2),c=Do(r[1],u/2),d=t.coordinateSystem;if(d){var p=d.dataToPoint(i);o=p[0]||0,a=p[1]||0}else lt(i)||(i=[i,i]),o=Do(i[0],s)+n.x,a=Do(i[1],l)+n.y;return{cx:o,cy:a,r0:h,r:c}}function yC(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.getData(),i=e.mapDimension("value"),r=fC(t,n),o=gC(t,n),a=o.cx,s=o.cy,l=o.r,u=o.r0,h=-t.get("startAngle")*pC,c=t.get("minAngle")*pC,d=0;e.each(i,(function(t){!isNaN(t)&&d++}));var p=e.getSum(i),f=Math.PI/(p||d)*2,g=t.get("clockwise"),y=t.get("roseType"),v=t.get("stillShowZeroSum"),m=e.getDataExtent(i);m[0]=0;var x=dC,_=0,b=h,w=g?1:-1;if(e.setLayout({viewRect:r,r:l}),e.each(i,(function(t,n){var i;if(isNaN(t))e.setItemLayout(n,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:g,cx:a,cy:s,r0:u,r:y?NaN:l});else{(i="area"!==y?0===p&&v?f:t*f:dC/d)n?a:o,h=Math.abs(l.label.y-n);if(h>=u.maxY){var c=l.label.x-e-l.len2*r,d=i+l.len,f=Math.abs(c)t.unconstrainedWidth?null:p:null;i.setStyle("width",f)}var g=i.getBoundingRect();o.width=g.width;var y=(i.style.margin||0)+2.1;o.height=g.height+y,o.y-=(o.height-c)/2}}}function bC(t){return"center"===t.position}var wC=function(t){function e(e,n,i){var r=t.call(this)||this;r.z2=2;var o=new Gl;return r.setTextContent(o),r.updateData(e,n,i,!0),r}return m(e,t),e.prototype.updateData=function(t,e,n,i){var r=this,o=t.hostModel,a=t.getItemModel(e),s=a.getModel("emphasis"),l=t.getItemLayout(e),u=Y(UI(a.getModel("itemStyle"),l,!0),l);if(isNaN(u.startAngle))r.setShape(u);else{if(i){r.setShape(u);var h=o.getShallow("animationType");o.ecModel.ssr?(qu(r,{scaleX:0,scaleY:0},o,{dataIndex:e,isFrom:!0}),r.originX=u.cx,r.originY=u.cy):"scale"===h?(r.shape.r=l.r0,qu(r,{shape:{r:l.r}},o,e)):null!=n?(r.setShape({startAngle:n,endAngle:n}),qu(r,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},o,e)):(r.shape.endAngle=l.startAngle,Zu(r,{shape:{endAngle:l.endAngle}},o,e))}else eh(r),Zu(r,{shape:u},o,e);r.useStyle(t.getItemVisual(e,"style")),Gu(r,a);var c=(l.startAngle+l.endAngle)/2,d=o.get("selectedOffset"),p=Math.cos(c)*d,f=Math.sin(c)*d,g=a.getShallow("cursor");g&&r.attr("cursor",g),this._updateLabel(o,t,e),r.ensureState("emphasis").shape=Y({r:l.r+(s.get("scale")&&s.get("scaleSize")||0)},UI(s.getModel("itemStyle"),l)),Y(r.ensureState("select"),{x:p,y:f,shape:UI(a.getModel(["select","itemStyle"]),l)}),Y(r.ensureState("blur"),{shape:UI(a.getModel(["blur","itemStyle"]),l)});var y=r.getTextGuideLine(),v=r.getTextContent();y&&Y(y.ensureState("select"),{x:p,y:f}),Y(v.ensureState("select"),{x:p,y:f}),zu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))}},e.prototype._updateLabel=function(t,e,n){var i=this,r=e.getItemModel(n),o=r.getModel("labelLine"),a=e.getItemVisual(n,"style"),s=a&&a.fill,l=a&&a.opacity;oh(i,ah(r),{labelFetcher:e.hostModel,labelDataIndex:n,inheritColor:s,defaultOpacity:l,defaultText:t.getFormattedLabel(n,"normal")||e.getName(n)});var u=i.getTextContent();i.setTextConfig({position:null,rotation:null}),u.attr({z2:10});var h=t.get(["label","position"]);if("outside"!==h&&"outer"!==h)i.removeTextGuideLine();else{var c=this.getTextGuideLine();c||(c=new zg,this.setTextGuideLine(c)),gS(this,yS(r),{stroke:s,opacity:St(o.get(["lineStyle","opacity"]),l,1)})}},e}(Tg);const SC=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,n,i){var r,o=t.getData(),a=this._data,s=this.group;if(!a&&o.count()>0){for(var l=o.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":k>0?"left":"right"}var B=Math.PI,V=0,F=y.get("rotate");if(dt(F))V=F*(B/180);else if("center"===v)V=0;else if("radial"===F||!0===F)V=k<0?-D+B:-D;else if("tangential"===F&&"outside"!==v&&"outer"!==v){var G=Math.atan2(k,L);G<0&&(G=2*B+G),L>0&&(G=B+G),V=G-B}if(o=!!V,d.x=I,d.y=C,d.rotation=V,d.setStyle({verticalAlign:"middle"}),P){d.setStyle({align:A});var W=d.states.select;W&&(W.x+=d.x,W.y+=d.y)}else{var H=d.getBoundingRect().clone();H.applyTransform(d.getComputedTransform());var $=(d.style.margin||0)+2.1;H.y-=$/2,H.height+=$,r.push({label:d,labelLine:f,position:v,len:S,len2:M,minTurnAngle:w.get("minTurnAngle"),maxSurfaceAngle:w.get("maxSurfaceAngle"),surfaceNormal:new qe(k,L),linePoints:T,textAlign:A,labelDistance:m,labelAlignTo:x,edgeDistance:_,bleedMargin:b,rect:H,unconstrainedWidth:H.width,labelStyleWidth:d.style.width})}s.setTextConfig({inside:P})}})),!o&&t.get("avoidLabelOverlap")&&function(t,e,n,i,r,o,a,s){for(var l=[],u=[],h=Number.MAX_VALUE,c=-Number.MAX_VALUE,d=0;d=n.r0}},e.type="pie",e}(Xy);function MC(t,e,n){e=lt(e)&&{coordDimensions:e}||Y({encodeDefine:t.getEncode()},e);var i=t.getSource(),r=U_(i,e).dimensions,o=new $_(r,t);return o.initData(i,n),o}var IC=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 CC=IC;var TC=fa();const AC=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 CC(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 MC(this,{coordDimensions:["value"],encodeDefaulter:st(od,this)})},e.prototype.getDataParams=function(e){var n=this.getData(),i=TC(n),r=i.seats;if(!r){var o=[];n.each(n.mapDimension("value"),(function(t){o.push(t)})),r=i.seats=Eo(o,n.hostModel.get("percentPrecision"))}var a=t.prototype.getDataParams.call(this,e);return a.percent=r[e]||0,a.$vars.push("percent"),a},e.prototype._defaultLabelLine=function(t){ia(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.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}(zf),DC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){return tb(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,n){return n.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}(zf);var kC=function(){},LC=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}return m(e,t),e.prototype.getDefaultShape=function(){return new kC},e.prototype.reset=function(){this.notClear=!1,this._off=0},e.prototype.buildPath=function(t,e){var n,i=e.points,r=e.size,o=this.symbolProxy,a=o.shape,s=t.getContext?t.getContext():t,l=s&&r[0]<4,u=this.softClipShape;if(l)this._ctx=s;else{for(this._ctx=null,n=this._off;n=0;s--){var l=2*s,u=i[l]-o/2,h=i[l+1]-a/2;if(t>=u&&e>=h&&t<=u+o&&e<=h+a)return s}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.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,n=e.points,i=e.size,r=i[0],o=i[1],a=1/0,s=1/0,l=-1/0,u=-1/0,h=0;h=0&&(l.dataIndex=n+(t.startIndex||0))}))},t.prototype.remove=function(){this._clear()},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();const OC=PC,NC=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).updateData(i,{clipShape:this._getClipShape(t)}),this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateSymbolDraw(i,t).incrementalPrepareUpdate(i),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){this._symbolDraw.incrementalUpdate(t,e.getData(),{clipShape:this._getClipShape(e)}),this._finished=t.end===e.getData().count()},e.prototype.updateTransform=function(t,e,n){var i=t.getData();if(this.group.dirty(),!this._finished||i.count()>1e4)return{update:!0};var r=NI("").reset(t,e,n);r.progress&&r.progress({start:0,end:i.count(),count:i.count()},i),this._symbolDraw.updateLayout(i)},e.prototype.eachRendered=function(t){this._symbolDraw&&this._symbolDraw.eachRendered(t)},e.prototype._getClipShape=function(t){var e=t.coordinateSystem,n=e&&e.getArea&&e.getArea();return t.get("clip",!0)?n:null},e.prototype._updateSymbolDraw=function(t,e){var n=this._symbolDraw,i=e.pipelineContext.large;return n&&i===this._isLargeDraw||(n&&n.remove(),n=this._symbolDraw=i?new OC:new uI,this._isLargeDraw=i,this.group.removeAll()),this.group.add(n.group),n},e.prototype.remove=function(t,e){this._symbolDraw&&this._symbolDraw.remove(!0),this._symbolDraw=null},e.prototype.dispose=function(){},e.type="scatter",e}(Xy),RC=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}(Hc);var EC=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}(Hc);J(EC,cw);var zC={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)"]}}},BC=j({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},zC),VC=j({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}}},zC);const FC={category:BC,value:VC,time:j({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},VC),log:X({logBase:10},VC)};var GC={value:1,category:1,time:1,log:1};function WC(t,e,n,i){tt(GC,(function(r,o){var a=j(j({},FC[o],!0),i,!0),s=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e+"Axis."+o,n}return m(n,t),n.prototype.mergeDefaultAndTheme=function(t,e){var n=zc(this),i=n?Vc(t):{};j(t,e.getTheme().get(o+"Axis")),j(t,this.getDefaultOption()),t.type=HC(t),n&&Bc(t,i,n)},n.prototype.optionUpdated=function(){"category"===this.option.type&&(this.__ordinalMeta=ob.createByAxisModel(this))},n.prototype.getCategories=function(t){var e=this.option;if("category"===e.type)return t?e.data:this.__ordinalMeta.categories},n.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},n.type=e+"Axis."+o,n.defaultOption=a,n}(n);t.registerComponentModel(s)})),t.registerSubTypeDefaulter(e+"Axis",HC)}function HC(t){return t.type||(t.data?"category":"value")}var $C=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(),it(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}(),jC=["x","y"];function UC(t){return"interval"===t.type||"time"===t.type}var YC=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=jC,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(UC(t)&&UC(e)){var n=t.getExtent(),i=e.getExtent(),r=this.dataToPoint([n[0],i[0]]),o=this.dataToPoint([n[1],i[1]]),a=n[1]-n[0],s=i[1]-i[0];if(a&&s){var l=(o[0]-r[0])/a,u=(o[1]-r[1])/s,h=r[0]-n[0]*l,c=r[1]-i[0]*u,d=this._transform=[l,0,0,u,h,c];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"),n=this.getAxis("y");return e.contain(e.toLocalCoord(t[0]))&&n.contain(n.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 n=this.dataToPoint(t),i=this.dataToPoint(e),r=this.getArea(),o=new sn(n[0],n[1],i[0]-n[0],i[1]-n[1]);return r.intersect(o)},e.prototype.dataToPoint=function(t,e,n){n=n||[];var i=t[0],r=t[1];if(this._transform&&null!=i&&isFinite(i)&&null!=r&&isFinite(r))return ue(n,t,this._transform);var o=this.getAxis("x"),a=this.getAxis("y");return n[0]=o.toGlobalCoord(o.dataToCoord(i,e)),n[1]=a.toGlobalCoord(a.dataToCoord(r,e)),n},e.prototype.clampData=function(t,e){var n=this.getAxis("x").scale,i=this.getAxis("y").scale,r=n.getExtent(),o=i.getExtent(),a=n.parse(t[0]),s=i.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(r[0],r[1]),a),Math.max(r[0],r[1])),e[1]=Math.min(Math.max(Math.min(o[0],o[1]),s),Math.max(o[0],o[1])),e},e.prototype.pointToData=function(t,e){var n=[];if(this._invTransform)return ue(n,t,this._invTransform);var i=this.getAxis("x"),r=this.getAxis("y");return n[0]=i.coordToData(i.toLocalCoord(t[0]),e),n[1]=r.coordToData(r.toLocalCoord(t[1]),e),n},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(),n=Math.min(t[0],t[1]),i=Math.min(e[0],e[1]),r=Math.max(t[0],t[1])-n,o=Math.max(e[0],e[1])-i;return new sn(n,i,r,o)},e}($C);const XC=YC;var ZC=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.index=0,a.type=r||"value",a.position=o||"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}(Ww);const qC=ZC;function KC(t,e,n){n=n||{};var i=t.coordinateSystem,r=e.axis,o={},a=r.getAxesOnZeroOf()[0],s=r.position,l=a?"onZero":s,u=r.dim,h=i.getRect(),c=[h.x,h.x+h.width,h.y,h.y+h.height],d={left:0,right:1,top:0,bottom:1,onZero:2},p=e.get("offset")||0,f="x"===u?[c[2]-p,c[3]+p]:[c[0]-p,c[1]+p];if(a){var g=a.toGlobalCoord(a.dataToCoord(0));f[d.onZero]=Math.max(Math.min(g,f[1]),f[0])}o.position=["y"===u?f[d[l]]:c[0],"x"===u?f[d[l]]:c[3]],o.rotation=Math.PI/2*("x"===u?0:1),o.labelDirection=o.tickDirection=o.nameDirection={top:-1,bottom:1,left:-1,right:1}[s],o.labelOffset=a?f[d[s]]-f[d.onZero]:0,e.get(["axisTick","inside"])&&(o.tickDirection=-o.tickDirection),bt(n.labelInside,e.get(["axisLabel","inside"]))&&(o.labelDirection=-o.labelDirection);var y=e.get(["axisLabel","rotate"]);return o.labelRotate="top"===l?-y:y,o.z2=1,o}function JC(t){return"cartesian2d"===t.get("coordinateSystem")}function QC(t){var e={xAxisModel:null,yAxisModel:null};return tt(e,(function(n,i){var r=i.replace(/Model$/,""),o=t.getReferringComponents(r,ma).models[0];e[i]=o})),e}var tT=Math.log;function eT(t,e,n){var i=vb.prototype,r=i.getTicks.call(n),o=i.getTicks.call(n,!0),a=r.length-1,s=i.getInterval.call(n),l=nw(t,e),u=l.extent,h=l.fixMin,c=l.fixMax;if("log"===t.type){var d=tT(t.base);u=[tT(u[0])/d,tT(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:a,fixMin:h,fixMax:c});var p=i.getExtent.call(t);h&&(u[0]=p[0]),c&&(u[1]=p[1]);var f=i.getInterval.call(t),g=u[0],y=u[1];if(h&&c)f=(y-g)/a;else if(h)for(y=u[0]+f*a;yu[0]&&isFinite(g)&&isFinite(u[0]);)f=sb(f),g=u[1]-f*a;else{t.getTicks().length-1>a&&(f=sb(f));var v=f*a;(g=ko((y=Math.ceil(u[1]/f)*f)-v))<0&&u[0]>=0?(g=0,y=ko(v)):y>0&&u[1]<=0&&(y=0,g=-ko(v))}var m=(r[0].value-o[0].value)/s,x=(r[a].value-o[a].value)/s;i.setExtent.call(t,g+f*m,y+f*x),i.setInterval.call(t,f),(m||x)&&i.setNiceExtent.call(t,g+f,y-f)}var nT=function(){function t(t,e,n){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=jC,this._initCartesian(t,e,n),this.model=t}return t.prototype.getRect=function(){return this._rect},t.prototype.update=function(t,e){var n=this._axesMap;function i(t){var e,n=ot(t),i=n.length;if(i){for(var r=[],o=i-1;o>=0;o--){var a=t[+n[o]],s=a.model,l=a.scale;ab(l)&&s.get("alignTicks")&&null==s.get("interval")?r.push(a):(iw(l,s),ab(l)&&(e=a))}r.length&&(e||iw((e=r.pop()).scale,e.model),tt(r,(function(t){eT(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),i(n.x),i(n.y);var r={};tt(n.x,(function(t){rT(n,"y",t,r)})),tt(n.y,(function(t){rT(n,"x",t,r)})),this.resize(this.model,e)},t.prototype.resize=function(t,e,n){var i=t.getBoxLayoutParams(),r=!n&&t.get("containLabel"),o=Rc(i,{width:e.getWidth(),height:e.getHeight()});this._rect=o;var a=this._axesList;function s(){tt(a,(function(t){var e=t.isHorizontal(),n=e?[0,o.width]:[0,o.height],i=t.inverse?1:0;t.setExtent(n[i],n[1-i]),function(t,e){var n=t.getExtent(),i=n[0]+n[1];t.toGlobalCoord="x"===t.dim?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord="x"===t.dim?function(t){return t-e}:function(t){return i-t+e}}(t,e?o.x:o.y)}))}s(),r&&(tt(a,(function(t){if(!t.model.get(["axisLabel","inside"])){var e=function(t){var e=t.model,n=t.scale;if(e.get(["axisLabel","show"])&&!n.isBlank()){var i,r,o=n.getExtent();r=n instanceof fb?n.count():(i=n.getTicks()).length;var a,s=t.getLabelModel(),l=ow(t),u=1;r>40&&(u=Math.ceil(r/40));for(var h=0;h0&&i>0||n<0&&i<0)}(t)}const aT=nT;var sT=Math.PI,lT=function(){function t(t,e){this.group=new yo,this.opt=e,this.axisModel=t,X(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0,handleAutoShown:function(){return!0}});var n=new yo({x:e.position[0],y:e.position[1],rotation:e.rotation});n.updateTransform(),this._transformGroup=n}return t.prototype.hasBuilder=function(t){return!!uT[t]},t.prototype.add=function(t){uT[t](this.opt,this.axisModel,this.group,this._transformGroup)},t.prototype.getGroup=function(){return this.group},t.innerTextLayout=function(t,e,n){var i,r,o=Vo(e-t);return Fo(o)?(r=n>0?"top":"bottom",i="center"):Fo(o-sT)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,textVerticalAlign:r}},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}(),uT={axisLine:function(t,e,n,i){var r=e.get(["axisLine","show"]);if("auto"===r&&t.handleAutoShown&&(r=t.handleAutoShown("axisLine")),r){var o=e.axis.getExtent(),a=i.transform,s=[o[0],0],l=[o[1],0],u=s[0]>l[0];a&&(ue(s,s,a),ue(l,l,a));var h=Y({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),c=new Gg({shape:{x1:s[0],y1:s[1],x2:l[0],y2:l[1]},style:h,strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1});Sy(c.shape,c.style.lineWidth),c.anid="line",n.add(c);var d=e.get(["axisLine","symbol"]);if(null!=d){var p=e.get(["axisLine","symbolSize"]);ht(d)&&(d=[d,d]),(ht(p)||dt(p))&&(p=[p,p]);var f=am(e.get(["axisLine","symbolOffset"])||0,p),g=p[0],y=p[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,i){if("none"!==d[i]&&null!=d[i]){var r=rm(d[i],-g/2,-y/2,g,y,h.stroke,!0),o=e.r+e.offset,a=u?l:s;r.attr({rotation:e.rotate,x:a[0]+o*Math.cos(t.rotation),y:a[1]-o*Math.sin(t.rotation),silent:!0,z2:11}),n.add(r)}}))}}},axisTickLabel:function(t,e,n,i){var r=function(t,e,n,i){var r=n.axis,o=n.getModel("axisTick"),a=o.get("show");if("auto"===a&&i.handleAutoShown&&(a=i.handleAutoShown("axisTick")),a&&!r.scale.isBlank()){for(var s=o.getModel("lineStyle"),l=i.tickDirection*o.get("length"),u=pT(r.getTicksCoords(),e.transform,l,X(s.getLineStyle(),{stroke:n.get(["axisLine","lineStyle","color"])}),"ticks"),h=0;hc[1]?-1:1,p=["start"===s?c[0]-d*h:"end"===s?c[1]+d*h:(c[0]+c[1])/2,dT(s)?t.labelOffset+l*h:0],f=e.get("nameRotate");null!=f&&(f=f*sT/180),dT(s)?o=lT.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(o=function(t,e,n,i){var r,o,a=Vo(n-t),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return Fo(a-sT/2)?(o=l?"bottom":"top",r="center"):Fo(a-1.5*sT)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*sT&&a>sT/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,textVerticalAlign:o}}(t.rotation,s,f||0,c),null!=(a=t.axisNameAvailableWidth)&&(a=Math.abs(a/Math.sin(o.rotation)),!isFinite(a)&&(a=null)));var g=u.getFont(),y=e.get("nameTruncate",!0)||{},v=y.ellipsis,m=bt(t.nameTruncateMaxWidth,y.maxWidth,a),x=new Gl({x:p[0],y:p[1],rotation:o.rotation,silent:lT.isLabelSilent(e),style:sh(u,{text:r,font:g,overflow:"truncate",width:m,ellipsis:v,fill:u.getTextColor()||e.get(["axisLine","lineStyle","color"]),align:u.get("align")||o.textAlign,verticalAlign:u.get("verticalAlign")||o.textVerticalAlign}),z2:1});if(zy({el:x,componentModel:e,itemName:r}),x.__fullText=r,x.anid="name",e.get("triggerEvent")){var _=lT.makeAxisEventDataBase(e);_.targetType="axisName",_.name=r,Wl(x).eventData=_}i.add(x),x.updateTransform(),n.add(x),x.decomposeTransform()}}};function hT(t){t&&(t.ignore=!0)}function cT(t,e){var n=t&&t.getBoundingRect().clone(),i=e&&e.getBoundingRect().clone();if(n&&i){var r=Ge([]);return je(r,r,-t.rotation),n.applyTransform(He([],r,t.getLocalTransform())),i.applyTransform(He([],r,e.getLocalTransform())),n.intersect(i)}}function dT(t){return"middle"===t||"center"===t}function pT(t,e,n,i,r){for(var o=[],a=[],s=[],l=0;l=0||t===e}function yT(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mT(t)]}function vT(t){return!!t.get(["handle","show"])}function mT(t){return t.type+"||"+t.id}var xT={},_T=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(e,n,i,r){this.axisPointerClass&&function(t){var e=yT(t);if(e){var n=e.axisPointerModel,i=e.axis.scale,r=n.option,o=n.get("status"),a=n.get("value");null!=a&&(a=i.parse(a));var s=vT(n);null==o&&(r.status=s?"show":"hide");var l=i.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==a||a>l[1])&&(a=l[1]),a0&&!c.min?c.min=0:null!=c.min&&c.min<0&&!c.max&&(c.max=0);var d=a;null!=c.color&&(d=X({color:c.color},a));var p=j($(c),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:c.text,showName:s,nameLocation:"end",nameGap:u,nameTextStyle:d,triggerEvent:h},!1);if(ht(l)){var f=p.name;p.name=l.replace("{value}",null!=f?f:"")}else ut(l)&&(p.name=l(p.name,p));var g=new Lh(p,null,this.ecModel);return J(g,cw.prototype),g.mainType="radar",g.componentIndex=this.componentIndex,g}),this);this._indicatorModels=c},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:j({lineStyle:{color:"#bbb"}},WT.axisLine),axisLabel:HT(WT.axisLabel,!1),axisTick:HT(WT.axisTick,!1),splitLine:HT(WT.splitLine,!0),splitArea:HT(WT.splitArea,!0),indicator:[]},e}(Hc);const jT=$T;var UT=["axisLine","axisTickLabel","axisName"],YT=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){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 n=t.model.get("showName")?t.name:"";return new fT(t.model,{axisName:n,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){tt(UT,t.add,t),this.group.add(t.getGroup())}),this)},e.prototype._buildSplitLineAndArea=function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes();if(n.length){var i=t.get("shape"),r=t.getModel("splitLine"),o=t.getModel("splitArea"),a=r.getModel("lineStyle"),s=o.getModel("areaStyle"),l=r.get("show"),u=o.get("show"),h=a.get("color"),c=s.get("color"),d=lt(h)?h:[h],p=lt(c)?c:[c],f=[],g=[];if("circle"===i)for(var y=n[0].getTicksCoords(),v=e.cx,m=e.cy,x=0;x3?1.4:r>1?1.2:1.1;rA(this,"zoom","zoomOnMouseWheel",t,{scale:i>0?s:1/s,originX:o,originY:a,isAvailableBehavior:null})}if(n){var l=Math.abs(i);rA(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(i>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:o,originY:a,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){eA(this._zr,"globalPan")||rA(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(ye);function rA(t,e,n,i,r){t.pointerChecker&&t.pointerChecker(i,r.originX,r.originY)&&(Re(i.event),oA(t,e,n,i,r))}function oA(t,e,n,i,r){r.isAvailableBehavior=at(aA,null,n,i),t.trigger(e,r)}function aA(t,e,n){var i=n[t];return!t||i&&(!ht(i)||e.event[i+"Key"])}const sA=iA;function lA(t,e,n){var i=t.target;i.x+=e,i.y+=n,i.dirty()}function uA(t,e,n,i){var r=t.target,o=t.zoomLimit,a=t.zoom=t.zoom||1;if(a*=e,o){var s=o.min||0,l=o.max||1/0;a=Math.max(Math.min(l,a),s)}var u=a/t.zoom;t.zoom=a,r.x-=(n-r.x)*(u-1),r.y-=(i-r.y)*(u-1),r.scaleX*=u,r.scaleY*=u,r.dirty()}var hA,cA={axisPointer:1,tooltip:1,brush:1};function dA(t,e,n){var i=e.getComponentByElement(t.topTarget),r=i&&i.coordinateSystem;return i&&i!==n&&!cA.hasOwnProperty(i.mainType)&&r&&r.model!==n}function pA(t){ht(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 fA={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"},gA=ot(fA),yA={"alignment-baseline":"textBaseline","stop-color":"stopColor"},vA=ot(yA),mA=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var n=pA(t);this._defsUsePending=[];var i=new yo;this._root=i;var r=[],o=n.getAttribute("viewBox")||"",a=parseFloat(n.getAttribute("width")||e.width),s=parseFloat(n.getAttribute("height")||e.height);isNaN(a)&&(a=null),isNaN(s)&&(s=null),MA(n,i,null,!0,!1);for(var l,u,h=n.firstChild;h;)this._parseNode(h,i,r,null,!1,!1),h=h.nextSibling;if(function(t,e){for(var n=0;n=4&&(l={x:parseFloat(c[0]||0),y:parseFloat(c[1]||0),width:parseFloat(c[2]),height:parseFloat(c[3])})}if(l&&null!=a&&null!=s&&(u=OA(l,{x:0,y:0,width:a,height:s}),!e.ignoreViewBox)){var d=i;(i=new yo).add(d),d.scaleX=d.scaleY=u.scale,d.x=u.x,d.y=u.y}return e.ignoreRootClip||null==a||null==s||i.setClipPath(new Il({shape:{x:0,y:0,width:a,height:s}})),{root:i,width:a,height:s,viewBoxRect:l,viewBoxTransform:u,named:r}},t.prototype._parseNode=function(t,e,n,i,r,o){var a,s=t.nodeName.toLowerCase(),l=i;if("defs"===s&&(r=!0),"text"===s&&(o=!0),"defs"===s||"switch"===s)a=e;else{if(!r){var u=hA[s];if(u&&Bt(hA,s)){a=u.call(this,t,e);var h=t.getAttribute("name");if(h){var c={name:h,namedFrom:null,svgNodeTagLower:s,el:a};n.push(c),"g"===s&&(l=c)}else i&&n.push({name:i.name,namedFrom:i,svgNodeTagLower:s,el:a});e.add(a)}}var d=xA[s];if(d&&Bt(xA,s)){var p=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=p)}}if(a&&a.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,a,n,l,r,o):3===g.nodeType&&o&&this._parseText(g,a),g=g.nextSibling},t.prototype._parseText=function(t,e){var n=new pl({style:{text:t.textContent},silent:!0,x:this._textX||0,y:this._textY||0});wA(e,n),MA(t,n,this._defsUsePending,!1,!1),function(t,e){var n=e.__selfStyle;if(n){var i=n.textBaseline,r=i;i&&"auto"!==i?"baseline"===i?r="alphabetic":"before-edge"===i||"text-before-edge"===i?r="top":"after-edge"===i||"text-after-edge"===i?r="bottom":"central"!==i&&"mathematical"!==i||(r="middle"):r="alphabetic",t.style.textBaseline=r}var o=e.__inheritedStyle;if(o){var a=o.textAlign,s=a;a&&("middle"===a&&(s="center"),t.style.textAlign=s)}}(n,e);var i=n.style,r=i.fontSize;r&&r<9&&(i.fontSize=9,n.scaleX*=r/9,n.scaleY*=r/9);var o=(i.fontSize||i.fontFamily)&&[i.fontStyle,i.fontWeight,(i.fontSize||12)+"px",i.fontFamily||"sans-serif"].join(" ");i.font=o;var a=n.getBoundingRect();return this._textX+=a.width,e.add(n),n},t.internalField=void(hA={g:function(t,e){var n=new yo;return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n},rect:function(t,e){var n=new Il;return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},circle:function(t,e){var n=new ug;return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n.setShape({cx:parseFloat(t.getAttribute("cx")||"0"),cy:parseFloat(t.getAttribute("cy")||"0"),r:parseFloat(t.getAttribute("r")||"0")}),n.silent=!0,n},line:function(t,e){var n=new Gg;return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},ellipse:function(t,e){var n=new dg;return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},polygon:function(t,e){var n,i=t.getAttribute("points");i&&(n=SA(i));var r=new Ng({shape:{points:n||[]},silent:!0});return wA(e,r),MA(t,r,this._defsUsePending,!1,!1),r},polyline:function(t,e){var n,i=t.getAttribute("points");i&&(n=SA(i));var r=new zg({shape:{points:n||[]},silent:!0});return wA(e,r),MA(t,r,this._defsUsePending,!1,!1),r},image:function(t,e){var n=new vl;return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n.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")}),n.silent=!0,n},text:function(t,e){var n=t.getAttribute("x")||"0",i=t.getAttribute("y")||"0",r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0";this._textX=parseFloat(n)+parseFloat(r),this._textY=parseFloat(i)+parseFloat(o);var a=new yo;return wA(e,a),MA(t,a,this._defsUsePending,!1,!0),a},tspan:function(t,e){var n=t.getAttribute("x"),i=t.getAttribute("y");null!=n&&(this._textX=parseFloat(n)),null!=i&&(this._textY=parseFloat(i));var r=t.getAttribute("dx")||"0",o=t.getAttribute("dy")||"0",a=new yo;return wA(e,a),MA(t,a,this._defsUsePending,!1,!0),this._textX+=parseFloat(r),this._textY+=parseFloat(o),a},path:function(t,e){var n=og(t.getAttribute("d")||"");return wA(e,n),MA(t,n,this._defsUsePending,!1,!1),n.silent=!0,n}}),t}(),xA={lineargradient:function(t){var e=parseInt(t.getAttribute("x1")||"0",10),n=parseInt(t.getAttribute("y1")||"0",10),i=parseInt(t.getAttribute("x2")||"10",10),r=parseInt(t.getAttribute("y2")||"0",10),o=new Qg(e,n,i,r);return _A(t,o),bA(t,o),o},radialgradient:function(t){var e=parseInt(t.getAttribute("cx")||"0",10),n=parseInt(t.getAttribute("cy")||"0",10),i=parseInt(t.getAttribute("r")||"0",10),r=new ty(e,n,i);return _A(t,r),bA(t,r),r}};function _A(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function bA(t,e){for(var n=t.firstChild;n;){if(1===n.nodeType&&"stop"===n.nodeName.toLocaleLowerCase()){var i,r=n.getAttribute("offset");i=r&&r.indexOf("%")>0?parseInt(r,10)/100:r?parseFloat(r):0;var o={};PA(n,o,o);var a=o.stopColor||n.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:i,color:a})}n=n.nextSibling}}function wA(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),X(e.__inheritedStyle,t.__inheritedStyle))}function SA(t){for(var e=AA(t),n=[],i=0;i0;o-=2){var a=i[o],s=i[o-1],l=AA(a);switch(r=r||[1,0,0,1,0,0],s){case"translate":$e(r,r,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ue(r,r,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":je(r,r,-parseFloat(l[0])*kA);break;case"skewX":He(r,[1,0,Math.tan(parseFloat(l[0])*kA),1,0,0],r);break;case"skewY":He(r,[1,Math.tan(parseFloat(l[0])*kA),0,1,0,0],r);break;case"matrix":r[0]=parseFloat(l[0]),r[1]=parseFloat(l[1]),r[2]=parseFloat(l[2]),r[3]=parseFloat(l[3]),r[4]=parseFloat(l[4]),r[5]=parseFloat(l[5])}}e.setLocalTransform(r)}}(t,e),PA(t,a,s),i||function(t,e,n){for(var i=0;i0,f={api:n,geo:s,mapOrGeoModel:t,data:a,isVisualEncodedByVisualMap:p,isGeo:o,transformInfoRaw:c};"geoJSON"===s.resourceType?this._buildGeoJSON(f):"geoSVG"===s.resourceType&&this._buildSVG(f),this._updateController(t,e,n),this._updateMapSelectHandler(t,l,n,i)},t.prototype._buildGeoJSON=function(t){var e=this._regionsGroupByName=Nt(),n=Nt(),i=this._regionsGroup,r=t.transformInfoRaw,o=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]*r.scaleX+r.x,t[1]*r.scaleY+r.y]}function h(t){for(var e=[],n=!l&&s&&s.project,i=0;i=0)&&(d=r);var p=a?{normal:{align:"center",verticalAlign:"middle"}}:null;oh(e,ah(i),{labelFetcher:d,labelDataIndex:c,defaultText:n},p);var f=e.getTextContent();if(f&&(KA(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 iD(t,e,n,i,r,o){t.data?t.data.setItemGraphicEl(o,e):Wl(e).eventData={componentType:"geo",componentIndex:r.componentIndex,geoIndex:r.componentIndex,name:n,region:i&&i.option||{}}}function rD(t,e,n,i,r){t.data||zy({el:e,componentModel:r,itemName:n,itemTooltipOption:i.get("tooltip")})}function oD(t,e,n,i,r){e.highDownSilentOnTouch=!!r.get("selectedMode");var o=i.getModel("emphasis"),a=o.get("focus");return zu(e,a,o.get("blurScope"),o.get("disabled")),t.isGeo&&function(t,e,n){var i=Wl(t);i.componentMainType=e.mainType,i.componentIndex=e.componentIndex,i.componentHighDownName=n}(e,r,n),a}function aD(t,e,n){var i,r=[];function o(){i=[]}function a(){i.length&&(r.push(i),i=[])}var s=e({polygonStart:o,polygonEnd:a,lineStart:o,lineEnd:a,point:function(t,e){isFinite(t)&&isFinite(e)&&i.push([t,e])},sphere:function(){}});return!n&&s.polygonStart(),tt(t,(function(t){s.lineStart();for(var e=0;e-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n},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}(zf);const cD=hD;function dD(t){var e={};t.eachSeriesByType("map",(function(t){var n=t.getHostGeoModel(),i=n?"o"+n.id:"i"+t.getMapType();(e[i]=e[i]||[]).push(t)})),tt(e,(function(t,e){for(var n,i,r,o=(n=et(t,(function(t){return t.getData()})),i=t[0].get("mapValueCalculation"),r={},tt(n,(function(t){t.each(t.mapDimension("value"),(function(e,n){var i="ec-"+t.getName(n);r[i]=r[i]||[],isNaN(e)||r[i].push(e)}))})),n[0].map(n[0].mapDimension("value"),(function(t,e){for(var o="ec-"+n[0].getName(e),a=0,s=1/0,l=-1/0,u=r[o].length,h=0;h1?(p.width=d,p.height=d/x):(p.height=d,p.width=d*x),p.y=c[1]-p.height/2,p.x=c[0]-p.width/2;else{var b=t.getBoxLayoutParams();b.aspect=x,p=Rc(b,{width:v,height:m})}this.setViewRect(p.x,p.y,p.width,p.height),this.setCenter(t.get("center"),e),this.setZoom(t.get("zoom"))}var MD=function(){function t(){this.dimensions=xD}return t.prototype.create=function(t,e){var n=[];function i(t){return{nameProperty:t.get("nameProperty"),aspectScale:t.get("aspectScale"),projection:t.get("projection")}}t.eachComponent("geo",(function(t,r){var o=t.get("map"),a=new wD(o+r,o,Y({nameMap:t.get("nameMap")},i(t)));a.zoomLimit=t.get("scaleLimit"),n.push(a),t.coordinateSystem=a,a.model=t,a.resize=SD,a.resize(t,e)})),t.eachSeries((function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}}));var r={};return t.eachSeriesByType("map",(function(t){if(!t.getHostGeoModel()){var e=t.getMapType();r[e]=r[e]||[],r[e].push(t)}})),tt(r,(function(t,r){var o=et(t,(function(t){return t.get("nameMap")})),a=new wD(r,r,Y({nameMap:U(o)},i(t[0])));a.zoomLimit=bt.apply(null,et(t,(function(t){return t.get("scaleLimit")}))),n.push(a),a.resize=SD,a.resize(t[0],e),tt(t,(function(t){t.coordinateSystem=a,function(t,e){tt(e.get("geoCoord"),(function(e,n){t.addGeoCoord(n,e)}))}(a,t)}))})),n},t.prototype.getFilledRegions=function(t,e,n,i){for(var r=(t||[]).slice(),o=Nt(),a=0;a=0;){var o=e[n];o.hierNode.prelim+=i,o.hierNode.modifier+=i,r+=o.hierNode.change,i+=o.hierNode.shift+r}}(t);var o=(n[0].hierNode.prelim+n[n.length-1].hierNode.prelim)/2;r?(t.hierNode.prelim=r.hierNode.prelim+e(t,r),t.hierNode.modifier=t.hierNode.prelim-o):t.hierNode.prelim=o}else r&&(t.hierNode.prelim=r.hierNode.prelim+e(t,r));t.parentNode.hierNode.defaultAncestor=function(t,e,n,i){if(e){for(var r=t,o=t,a=o.parentNode.children[0],s=e,l=r.hierNode.modifier,u=o.hierNode.modifier,h=a.hierNode.modifier,c=s.hierNode.modifier;s=BD(s),o=VD(o),s&&o;){r=BD(r),a=VD(a),r.hierNode.ancestor=t;var d=s.hierNode.prelim+c-o.hierNode.prelim-u+i(s,o);d>0&&(GD(FD(s,t,n),t,d),u+=d,l+=d),c+=s.hierNode.modifier,u+=o.hierNode.modifier,l+=r.hierNode.modifier,h+=a.hierNode.modifier}s&&!BD(r)&&(r.hierNode.thread=s,r.hierNode.modifier+=c-l),o&&!VD(a)&&(a.hierNode.thread=o,a.hierNode.modifier+=u-h,n=t)}return n}(t,r,t.parentNode.hierNode.defaultAncestor||i[0],e)}function RD(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function ED(t){return arguments.length?t:WD}function zD(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function BD(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function VD(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function FD(t,e,n){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:n}function GD(t,e,n){var i=n/(e.hierNode.i-t.hierNode.i);e.hierNode.change-=i,e.hierNode.shift+=n,e.hierNode.modifier+=n,e.hierNode.prelim+=n,t.hierNode.change+=i}function WD(t,e){return t.parentNode===e.parentNode?1:2}var HD=function(){this.parentPoint=[],this.childPoints=[]},$D=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 HD},e.prototype.buildPath=function(t,e){var n=e.childPoints,i=n.length,r=e.parentPoint,o=n[0],a=n[i-1];if(1===i)return t.moveTo(r[0],r[1]),void t.lineTo(o[0],o[1]);var s=e.orient,l="TB"===s||"BT"===s?0:1,u=1-l,h=Do(e.forkPosition,1),c=[];c[l]=r[l],c[u]=r[u]+(a[u]-r[u])*h,t.moveTo(r[0],r[1]),t.lineTo(c[0],c[1]),t.moveTo(o[0],o[1]),c[l]=o[l],t.lineTo(c[0],c[1]),c[l]=a[l],t.lineTo(c[0],c[1]),t.lineTo(a[0],a[1]);for(var d=1;dm.x)||(_-=Math.PI);var S=b?"left":"right",M=s.getModel("label"),I=M.get("rotate"),C=I*(Math.PI/180),T=y.getTextContent();T&&(y.setTextConfig({position:M.get("position")||S,rotation:null==I?-_:C,origin:"center"}),T.setStyle("verticalAlign","middle"))}var A=s.get(["emphasis","focus"]),D="relative"===A?Rt(a.getAncestorsIndices(),a.getDescendantIndices()):"ancestor"===A?a.getAncestorsIndices():"descendant"===A?a.getDescendantIndices():null;D&&(Wl(n).focus=D),function(t,e,n,i,r,o,a,s){var l=e.getModel(),u=t.get("edgeShape"),h=t.get("layout"),c=t.getOrient(),d=t.get(["lineStyle","curveness"]),p=t.get("edgeForkPosition"),f=l.getModel("lineStyle").getLineStyle(),g=i.__edge;if("curve"===u)e.parentNode&&e.parentNode!==n&&(g||(g=i.__edge=new Ug({shape:KD(h,c,d,r,r)})),Zu(g,{shape:KD(h,c,d,o,a)},t));else if("polyline"===u&&"orthogonal"===h&&e!==n&&e.children&&0!==e.children.length&&!0===e.isExpand){for(var y=e.children,v=[],m=0;me&&(e=i.height)}this.height=e+1},t.prototype.getNodeById=function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.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 i=n.getData().tree.root,r=t.targetNode;if(ht(r)&&(r=i.getNodeById(r)),r&&i.contains(r))return{node:r};var o=t.targetNodeId;if(null!=o&&(r=i.getNodeById(o)))return{node:r}}}function dk(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function pk(t,e){return q(dk(t),e)>=0}function fk(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}var gk=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},n=t.leaves||{},i=new Lh(n,this,this.ecModel),r=hk.createTree(e,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e);return n&&n.children.length&&n.isExpand||(t.parentModel=i),t}))})),o=0;r.eachNode("preorder",(function(t){t.depth>o&&(o=t.depth)}));var a=t.expandAndCollapse&&t.initialTreeDepth>=0?t.initialTreeDepth:o;return r.root.eachNode("preorder",(function(t){var e=t.hostTree.data.getRawDataItem(t.dataIndex);t.isExpand=e&&null!=e.collapsed?!e.collapsed:t.depth<=a})),r.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,n){for(var i=this.getData().tree,r=i.root.children[0],o=i.getNodeByDataIndex(t),a=o.getValue(),s=o.name;o&&o!==r;)s=o.parentNode.name+"."+s,o=o.parentNode;return pf("nameValue",{name:s,value:a,noValue:isNaN(a)||null==a})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=fk(i,this),n.collapsed=!i.isExpand,n},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}(zf);const yk=gk;function vk(t,e){for(var n,i=[t];n=i.pop();)if(e(n),n.isExpand){var r=n.children;if(r.length)for(var o=r.length-1;o>=0;o--)i.push(r[o])}}function mk(t,e){t.eachSeriesByType("tree",(function(t){!function(t,e){var n=function(t,e){return Rc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=n;var i=t.get("layout"),r=0,o=0,a=null;"radial"===i?(r=2*Math.PI,o=Math.min(n.height,n.width)/2,a=ED((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(r=n.width,o=n.height,a=ED());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 n,i,r=[e];n=r.pop();)if(i=n.children,n.isExpand&&i.length)for(var o=i.length-1;o>=0;o--){var a=i[o];a.hierNode={defaultAncestor:null,ancestor:a,prelim:0,modifier:0,change:0,shift:0,i:o,thread:null},r.push(a)}}(s),function(t,e,n){for(var i,r=[t],o=[];i=r.pop();)if(o.push(i),i.isExpand){var a=i.children;if(a.length)for(var s=0;sh.getLayout().x&&(h=t),t.depth>c.depth&&(c=t)}));var d=u===h?1:a(u,h)/2,p=d-u.getLayout().x,f=0,g=0,y=0,v=0;if("radial"===i)f=r/(h.getLayout().x+d+p),g=o/(c.depth-1||1),vk(l,(function(t){y=(t.getLayout().x+p)*f,v=(t.depth-1)*g;var e=zD(y,v);t.setLayout({x:e.x,y:e.y,rawX:y,rawY:v},!0)}));else{var m=t.getOrient();"RL"===m||"LR"===m?(g=o/(h.getLayout().x+d+p),f=r/(c.depth-1||1),vk(l,(function(t){v=(t.getLayout().x+p)*g,y="LR"===m?(t.depth-1)*f:r-(t.depth-1)*f,t.setLayout({x:y,y:v},!0)}))):"TB"!==m&&"BT"!==m||(f=r/(h.getLayout().x+d+p),g=o/(c.depth-1||1),vk(l,(function(t){y=(t.getLayout().x+p)*f,v="TB"===m?(t.depth-1)*g:o-(t.depth-1)*g,t.setLayout({x:y,y:v},!0)})))}}}(t,e)}))}function xk(t){t.eachSeriesByType("tree",(function(t){var e=t.getData();e.tree.eachNode((function(t){var n=t.getModel().getModel("itemStyle").getItemStyle();Y(e.ensureUniqueItemVisual(t.dataIndex,"style"),n)}))}))}var _k=["treemapZoomToNode","treemapRender","treemapMove"];function bk(t){var e=t.getData().tree,n={};e.eachNode((function(e){for(var i=e;i&&i.depth>1;)i=i.parentNode;var r=yd(t.ecModel,i.name||i.dataIndex+"",n);e.setVisual("decal",r)}))}function wk(t){var e=0;tt(t.children,(function(t){wk(t);var n=t.value;lt(n)&&(n=n[0]),e+=n}));var n=t.value;lt(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),lt(t.value)?t.value[0]=n:t.value=n}const Sk=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.preventUsingHoverLayer=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};wk(n);var i=t.levels||[],r=this.designatedVisualItemStyle={},o=new Lh({itemStyle:r},this,e);i=t.levels=function(t,e){var n,i,r=na(e.get("color")),o=na(e.get(["aria","decal","decals"]));if(r){tt(t=t||[],(function(t){var e=new Lh(t),r=e.get("color"),o=e.get("decal");(e.get(["itemStyle","color"])||r&&"none"!==r)&&(n=!0),(e.get(["itemStyle","decal"])||o&&"none"!==o)&&(i=!0)}));var a=t[0]||(t[0]={});return n||(a.color=r.slice()),!i&&o&&(a.decal=o.slice()),t}}(i,e);var a=et(i||[],(function(t){return new Lh(t,o,e)}),this),s=hk.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=s.getNodeByDataIndex(e),i=n?a[n.depth]:null;return t.parentModel=i||o,t}))}));return s.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.formatTooltip=function(t,e,n){var i=this.getData(),r=this.getRawValue(t);return pf("nameValue",{name:i.getName(t),value:r})},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treeAncestors=fk(i,this),n.treePathInfo=n.treeAncestors,n},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=Nt(),this._idIndexMapCount=0);var n=e.get(t);return null==n&&e.set(t,n=this._idIndexMapCount++),n},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(){bk(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}(zf);var Mk=function(){function t(t){this.group=new yo,t.add(this.group)}return t.prototype.render=function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle"),s=r.getModel("emphasis"),l=a.getModel("textStyle"),u=s.getModel(["itemStyle","textStyle"]),h={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,h,l),this._renderContent(t,h,a,s,l,u,i),Ec(o,h.pos,h.box)}},t.prototype._prepare=function(t,e,n){for(var i=t;i;i=i.parentNode){var r=ha(i.getModel().get("name"),""),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+8,e.renderList.push({node:i,text:r,width:a})}},t.prototype._renderContent=function(t,e,n,i,r,o,a){for(var s,l,u,h,c,d,p,f,g,y=0,v=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),x=(s=e.pos,h=(l=e.box).width,c=l.height,d=Do(s.left,h),p=Do(s.top,c),f=Do(s.right,h),g=Do(s.bottom,c),(isNaN(d)||isNaN(parseFloat(s.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(s.right)))&&(f=h),(isNaN(p)||isNaN(parseFloat(s.top)))&&(p=0),(isNaN(g)||isNaN(parseFloat(s.bottom)))&&(g=c),u=_c(u||0),{width:Math.max(f-d-u[1]-u[3],0),height:Math.max(g-p-u[0]-u[2],0)}),_=e.totalWidth,b=e.renderList,w=i.getModel("itemStyle").getItemStyle(),S=b.length-1;S>=0;S--){var M=b[S],I=M.node,C=M.width,T=M.text;_>x.width&&(_-=C-v,C=v,T=null);var A=new Ng({shape:{points:Ik(y,0,C,m,S===b.length-1,0===S)},style:X(n.getItemStyle(),{lineJoin:"bevel"}),textContent:new Gl({style:sh(r,{text:T})}),textConfig:{position:"inside"},z2:1e4*Ql,onclick:st(a,I)});A.disableLabelAnimation=!0,A.getTextContent().ensureState("emphasis").style=sh(o,{text:T}),A.ensureState("emphasis").style=w,zu(A,i.get("focus"),i.get("blurScope"),i.get("disabled")),this.group.add(A),Ck(A,t,I),y+=C+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function Ik(t,e,n,i,r,o){var a=[[r?t:t-5,e],[t+n,e],[t+n,e+i],[r?t:t-5,e+i]];return!o&&a.splice(2,0,[t+n+5,e+i/2]),!r&&a.push([t,e+i/2]),a}function Ck(t,e,n){Wl(t).eventData={componentType:"series",componentSubType:"treemap",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&fk(n,e)}}const Tk=Mk;var Ak=function(){function t(){this._storage=[],this._elExistsMap={}}return t.prototype.add=function(t,e,n,i,r){return!this._elExistsMap[t.id]&&(this._elExistsMap[t.id]=!0,this._storage.push({el:t,target:e,duration:n,delay:i,easing:r}),!0)},t.prototype.finished=function(t){return this._finishedCallback=t,this},t.prototype.start=function(){for(var t=this,e=this._storage.length,n=function(){--e<=0&&(t._storage.length=0,t._elExistsMap={},t._finishedCallback&&t._finishedCallback())},i=0,r=this._storage.length;i3||Math.abs(t.dy)>3)){var e=this.seriesModel.getData().tree.root;if(!e)return;var n=e.getLayout();if(!n)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x+t.dx,y:n.y+t.dy,width:n.width,height:n.height}})}},e.prototype._onZoom=function(t){var e=t.originX,n=t.originY;if("animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new sn(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo,s=[1,0,0,1,0,0];$e(s,s,[-(e-=a.x),-(n-=a.y)]),Ue(s,s,[t.scale,t.scale]),$e(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},e.prototype._initEvents=function(t){var e=this;t.on("click",(function(t){if("ready"===e._state){var n=e.seriesModel.get("nodeClick",!0);if(n){var i=e.findTarget(t.offsetX,t.offsetY);if(i){var r=i.node;if(r.getLayout().isLeafRoot)e._rootToNode(i);else if("zoomToNode"===n)e._zoomToNode(i);else if("link"===n){var o=r.hostTree.data.getItemModel(r.dataIndex),a=o.get("link",!0),s=o.get("target",!0)||"blank";a&&Dc(a,s)}}}}}),this)},e.prototype._renderBreadcrumb=function(t,e,n){var i=this;n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2))||(n={node:t.getData().tree.root}),(this._breadcrumb||(this._breadcrumb=new Tk(this.group))).render(t,e,n.node,(function(e){"animating"!==i._state&&(pk(t.getViewRoot(),e)?i._rootToNode({node:e}):i._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 n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},(function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}}),this),n},e.type="treemap",e}(Xy);const Fk=Vk;var Gk=tt,Wk=pt,Hk=-1,$k=function(){function t(e){var n=e.mappingMethod,i=e.type,r=this.option=$(e);this.type=i,this.mappingMethod=n,this._normalizeData=tL[n];var o=t.visualHandlers[i];this.applyVisual=o.applyVisual,this.getColorMapper=o.getColorMapper,this._normalizedToVisual=o._normalizedToVisual[n],"piecewise"===n?(jk(r),function(t){var e=t.pieceList;t.hasSpecialVisual=!1,tt(e,(function(e,n){e.originIndex=n,null!=e.visual&&(t.hasSpecialVisual=!0)}))}(r)):"category"===n?r.categories?function(t){var e=t.categories,n=t.categoryMap={},i=t.visual;if(Gk(e,(function(t,e){n[t]=e})),!lt(i)){var r=[];pt(i)?Gk(i,(function(t,e){var i=n[e];r[null!=i?i:Hk]=t})):r[Hk]=i,i=Qk(t,r)}for(var o=e.length-1;o>=0;o--)null==i[o]&&(delete n[e[o]],e.pop())}(r):jk(r,!0):(Ct("linear"!==n||r.dataExtent),jk(r))}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 ot(t.visualHandlers)},t.isValidType=function(e){return t.visualHandlers.hasOwnProperty(e)},t.eachVisual=function(t,e,n){pt(t)?tt(t,e,n):e.call(n,t)},t.mapVisual=function(e,n,i){var r,o=lt(e)?[]:pt(e)?{}:(r=!0,null);return t.eachVisual(e,(function(t,e){var a=n.call(i,t,e);r?o=a:o[e]=a})),o},t.retrieveVisuals=function(e){var n,i={};return e&&Gk(t.visualHandlers,(function(t,r){e.hasOwnProperty(r)&&(i[r]=e[r],n=!0)})),n?i:null},t.prepareVisualTypes=function(t){if(lt(t))t=t.slice();else{if(!Wk(t))return[];var e=[];Gk(t,(function(t,n){e.push(n)})),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,n){for(var i,r=1/0,o=0,a=e.length;ou[1]&&(u[1]=l);var h=e.get("colorMappingBy"),c={type:a.name,dataExtent:u,visual:a.range};"color"!==c.type||"index"!==h&&"id"!==h?c.mappingMethod="linear":(c.mappingMethod="category",c.loop=!0);var d=new nL(c);return iL(d).drColorMappingBy=h,d}}}(0,r,o,0,u,p);tt(p,(function(t,e){if(t.depth>=n.length||t===n[t.depth]){var o=function(t,e,n,i,r,o){var a=Y({},e);if(r){var s=r.type,l="color"===s&&iL(r).drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}(r,u,t,e,f,i);oL(t,o,n,i)}}))}else s=aL(u),h.fill=s}}function aL(t){var e=sL(t,"color");if(e){var n=sL(t,"colorAlpha"),i=sL(t,"colorSaturation");return i&&(e=Pi(e,null,null,i)),n&&(e=Oi(e,n)),e}}function sL(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function lL(t,e){var n=t.get(e);return lt(n)&&n.length?{name:e,range:n}:null}var uL=Math.max,hL=Math.min,cL=bt,dL=tt,pL=["itemStyle","borderWidth"],fL=["itemStyle","gapWidth"],gL=["upperLabel","show"],yL=["upperLabel","height"];const vL={seriesType:"treemap",reset:function(t,e,n,i){var r=n.getWidth(),o=n.getHeight(),a=t.option,s=Rc(t.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()}),l=a.size||[],u=Do(cL(s.width,l[0]),r),h=Do(cL(s.height,l[1]),o),c=i&&i.type,d=ck(i,["treemapZoomToNode","treemapRootToNode"],t),p="treemapRender"===c||"treemapMove"===c?i.rootRect:null,f=t.getViewRoot(),g=dk(f);if("treemapMove"!==c){var y="treemapZoomToNode"===c?function(t,e,n,i,r){var o,a=(e||{}).node,s=[i,r];if(!a||a===n)return s;for(var l=i*r,u=l*t.option.zoomToNodeRatio;o=a.parentNode;){for(var h=0,c=o.children,d=0,p=c.length;dBo&&(u=Bo),a=o}ua[1]&&(a[1]=e)}))):a=[NaN,NaN],{sum:i,dataExtent:a}}(e,a,s);if(0===u.sum)return t.viewChildren=[];if(u.sum=function(t,e,n,i,r){if(!i)return n;for(var o=t.get("visibleMin"),a=r.length,s=a,l=a-1;l>=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ei&&(i=a));var l=t.area*t.area,u=e*e*n;return l?uL(u*i/l,l/(u*r)):1/0}function _L(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],h=e?t.area/e:0;(r||h>n[l[a]])&&(h=n[l[a]]);for(var c=0,d=t.length;ci&&(i=e);var o=i%2?i+2:i+3;r=[];for(var a=0;a0&&(m[0]=-m[0],m[1]=-m[1]);var _=v[0]<0?-1:1;if("start"!==i.__position&&"end"!==i.__position){var b=-Math.atan2(v[1],v[0]);u[0].8?"left":h[0]<-.8?"right":"center",d=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";break;case"start":i.x=-h[0]*f+l[0],i.y=-h[1]*g+l[1],c=h[0]>.8?"right":h[0]<-.8?"left":"center",d=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":i.x=f*_+l[0],i.y=l[1]+w,c=v[0]<0?"right":"left",i.originX=-f*_,i.originY=-w;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":i.x=x[0],i.y=x[1]+w,c="center",i.originY=-w;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":i.x=-f*_+u[0],i.y=u[1]+w,c=v[0]>=0?"right":"left",i.originX=f*_,i.originY=-w}i.scaleX=i.scaleY=r,i.setStyle({verticalAlign:i.__verticalAlign||d,align:i.__align||c})}}}function S(t,e){var n=t.__specifiedRotation;if(null==n){var i=a.tangentAt(e);t.attr("rotation",(1===e?-1:1)*Math.PI/2-Math.atan2(i[1],i[0]))}else t.attr("rotation",n)}},e}(yo);const lP=sP;function uP(t){var e=t.hostModel,n=e.getModel("emphasis");return{lineStyle:e.getModel("lineStyle").getLineStyle(),emphasisLineStyle:n.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:e.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:e.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:n.get("disabled"),blurScope:n.get("blurScope"),focus:n.get("focus"),labelStatesModels:ah(e)}}function hP(t){return isNaN(t[0])||isNaN(t[1])}function cP(t){return t&&!hP(t[0])&&!hP(t[1])}const dP=function(){function t(t){this.group=new yo,this._LineCtor=t||lP}return t.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var n=this,i=n.group,r=n._lineData;n._lineData=t,r||i.removeAll();var o=uP(t);t.diff(r).add((function(n){e._doAdd(t,n,o)})).update((function(n,i){e._doUpdate(r,t,i,n,o)})).remove((function(t){i.remove(r.getItemGraphicEl(t))})).execute()},t.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl((function(e,n){e.updateLayout(t,n)}),this)},t.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=uP(t),this._lineData=null,this.group.removeAll()},t.prototype.incrementalUpdate=function(t,e){function n(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 i=t.start;i=0?i+=u:i-=u:f>=0?i-=u:i+=u}return i}function _P(t,e){var n=[],i=ni,r=[[],[],[]],o=[[],[]],a=[];e/=2,t.eachEdge((function(t,s){var l=t.getLayout(),u=t.getVisual("fromSymbol"),h=t.getVisual("toSymbol");l.__original||(l.__original=[Ht(l[0]),Ht(l[1])],l[2]&&l.__original.push(Ht(l[2])));var c=l.__original;if(null!=l[2]){if(Wt(r[0],c[0]),Wt(r[1],c[2]),Wt(r[2],c[1]),u&&"none"!==u){var d=FL(t.node1),p=xP(r,c[0],d*e);i(r[0][0],r[1][0],r[2][0],p,n),r[0][0]=n[3],r[1][0]=n[4],i(r[0][1],r[1][1],r[2][1],p,n),r[0][1]=n[3],r[1][1]=n[4]}h&&"none"!==h&&(d=FL(t.node2),p=xP(r,c[1],d*e),i(r[0][0],r[1][0],r[2][0],p,n),r[1][0]=n[1],r[2][0]=n[2],i(r[0][1],r[1][1],r[2][1],p,n),r[1][1]=n[1],r[2][1]=n[2]),Wt(l[0],r[0]),Wt(l[1],r[2]),Wt(l[2],r[1])}else Wt(o[0],c[0]),Wt(o[1],c[1]),Yt(a,o[1],o[0]),ne(a,a),u&&"none"!==u&&(d=FL(t.node1),Ut(o[0],o[0],a,d*e)),h&&"none"!==h&&(d=FL(t.node2),Ut(o[1],o[1],a,-d*e)),Wt(l[0],o[0]),Wt(l[1],o[1])}))}function bP(t){return"view"===t.type}var wP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){var n=new uI,i=new dP,r=this.group;this._controller=new sA(e.getZr()),this._controllerHost={target:r},r.add(n.group),r.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._firstRender=!0},e.prototype.render=function(t,e,n){var i=this,r=t.coordinateSystem;this._model=t;var o=this._symbolDraw,a=this._lineDraw,s=this.group;if(bP(r)){var l={x:r.x,y:r.y,scaleX:r.scaleX,scaleY:r.scaleY};this._firstRender?s.attr(l):Zu(s,l,t)}_P(t.getGraph(),VL(t));var u=t.getData();o.updateData(u);var h=t.getEdgeData();a.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,e,n),clearTimeout(this._layoutTimeout);var c=t.forceLayout,d=t.get(["force","layoutAnimation"]);c&&this._startForceLayoutIteration(c,d);var p=t.get("layout");u.graph.eachNode((function(e){var n=e.dataIndex,r=e.getGraphicEl(),o=e.getModel();if(r){r.off("drag").off("dragend");var a=o.get("draggable");a&&r.on("drag",(function(o){switch(p){case"force":c.warmUp(),!i._layouting&&i._startForceLayoutIteration(c,d),c.setFixed(n),u.setItemLayout(n,[r.x,r.y]);break;case"circular":u.setItemLayout(n,[r.x,r.y]),e.setLayout({fixed:!0},!0),HL(t,"symbolSize",e,[o.offsetX,o.offsetY]),i.updateLayout(t);break;default:u.setItemLayout(n,[r.x,r.y]),zL(t.getGraph(),t),i.updateLayout(t)}})).on("dragend",(function(){c&&c.setUnfixed(n)})),r.setDraggable(a,!!o.get("cursor")),"adjacency"===o.get(["emphasis","focus"])&&(Wl(r).focus=e.getAdjacentDataIndices())}})),u.graph.eachEdge((function(t){var e=t.getGraphicEl(),n=t.getModel().get(["emphasis","focus"]);e&&"adjacency"===n&&(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"),y=u.getLayout("cy");u.graph.eachNode((function(t){jL(t,f,g,y)})),this._firstRender=!1},e.prototype.dispose=function(){this._controller&&this._controller.dispose(),this._controllerHost=null},e.prototype._startForceLayoutIteration=function(t,e){var n=this;!function i(){t.step((function(t){n.updateLayout(n._model),(n._layouting=!t)&&(e?n._layoutTimeout=setTimeout(i,16):i())}))}()},e.prototype._updateController=function(t,e,n){var i=this,r=this._controller,o=this._controllerHost,a=this.group;r.setPointerChecker((function(e,i,r){var o=a.getBoundingRect();return o.applyTransform(a.transform),o.contain(i,r)&&!dA(e,n,t)})),bP(t.coordinateSystem)?(r.enable(t.get("roam")),o.zoomLimit=t.get("scaleLimit"),o.zoom=t.coordinateSystem.getZoom(),r.off("pan").off("zoom").on("pan",(function(e){lA(o,e.dx,e.dy),n.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uA(o,e.scale,e.originX,e.originY),n.dispatchAction({seriesId:t.id,type:"graphRoam",zoom:e.scale,originX:e.originX,originY:e.originY}),i._updateNodeAndLinkScale(),_P(t.getGraph(),VL(t)),i._lineDraw.updateLayout(),n.updateLabelLayout()}))):r.disable()},e.prototype._updateNodeAndLinkScale=function(){var t=this._model,e=t.getData(),n=VL(t);e.eachItemGraphicEl((function(t,e){t&&t.setSymbolScale(n)}))},e.prototype.updateLayout=function(t){_P(t.getGraph(),VL(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}(Xy);const SP=wP;function MP(t){return"_EC_"+t}var IP=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 n=this._nodesMap;if(!n[MP(t)]){var i=new CP(t,e);return i.hostGraph=this,this.nodes.push(i),n[MP(t)]=i,i}},t.prototype.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},t.prototype.getNodeById=function(t){return this._nodesMap[MP(t)]},t.prototype.addEdge=function(t,e,n){var i=this._nodesMap,r=this._edgesMap;if(dt(t)&&(t=this.nodes[t]),dt(e)&&(e=this.nodes[e]),t instanceof CP||(t=i[MP(t)]),e instanceof CP||(e=i[MP(e)]),t&&e){var o=t.id+"-"+e.id,a=new TP(t,e,n);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),r[o]=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 CP&&(t=t.id),e instanceof CP&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},t.prototype.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},t.prototype.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},t.prototype.breadthFirstTraverse=function(t,e,n,i){if(e instanceof CP||(e=this._nodesMap[MP(e)]),e){for(var r="out"===n?"outEdges":"in"===n?"inEdges":"edges",o=0;o=0&&n.node2.dataIndex>=0})),r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n){return this[t][e].getItemVisual(this.dataIndex,n)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},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)}}}J(CP,AP("hostGraph","data")),J(TP,AP("hostGraph","edgeData"));const DP=IP;function kP(t,e,n,i,r){for(var o=new DP(i),a=0;a "+d)),u++)}var p,f=n.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)p=tb(t,n);else{var g=Ad.get(f),y=g&&g.dimensions||[];q(y,"value")<0&&y.concat(["value"]);var v=U_(t,{coordDimensions:y,encodeDefine:n.getEncode()}).dimensions;(p=new $_(v,n)).initData(t)}var m=new $_(["value"],n);return m.initData(l,s),r&&r(p,m),sk({mainData:p,struct:o,structAttr:"graph",datas:{node:p,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),o.update(),o}var LP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments);var n=this;function i(){return n._categoriesData}this.legendVisualProvider=new CC(i,i),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),ia(e,"edgeLabel",["show"])},e.prototype.getInitialData=function(t,e){var n,i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i){AL(n=this)&&(n.__curvenessList=[],n.__edgeMap={},DL(n));var a=kP(r,i,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t){var e=o._categoriesModels[t.getShallow("category")];return e&&(e.parentModel=t.parentModel,t.parentModel=e),t}));var n=Lh.prototype.getModel;function i(t,e){var i=n.call(this,t,e);return i.resolveParentPath=r,i}function r(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=r,t.getModel=i,t}))}));return tt(a.edges,(function(t){!function(t,e,n,i){if(AL(n)){var r=kL(t,e,n),o=n.__edgeMap,a=o[LL(r)];o[r]&&!a?o[r].isForward=!0:a&&o[r]&&(a.isForward=!0,o[r].isForward=!1),o[r]=o[r]||[],o[r].push(i)}}(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,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),s=i.getName(o.node2.dataIndex),l=[];return null!=a&&l.push(a),null!=s&&l.push(s),pf("nameValue",{name:l.join(" > "),value:r.value,noValue:null==r.value})}return If({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 $_(["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}(zf);const PP=LP;var OP={type:"graphRoam",event:"graphRoam",update:"none"},NP=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},RP=function(t){function e(e){var n=t.call(this,e)||this;return n.type="pointer",n}return m(e,t),e.prototype.getDefaultShape=function(){return new NP},e.prototype.buildPath=function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)},e}(hl);const EP=RP;function zP(t,e){var n=null==t?"":t+"";return e&&(ht(e)?n=e.replace("{value}",n):ut(e)&&(n=e(t))),n}var BP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeAll();var i=t.get(["axisLine","lineStyle","color"]),r=function(t,e){var n=t.get("center"),i=e.getWidth(),r=e.getHeight(),o=Math.min(i,r);return{cx:Do(n[0],e.getWidth()),cy:Do(n[1],e.getHeight()),r:Do(t.get("radius"),o/2)}}(t,n);this._renderMain(t,e,n,i,r),this._data=t.getData()},e.prototype.dispose=function(){},e.prototype._renderMain=function(t,e,n,i,r){var o=this.group,a=t.get("clockwise"),s=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),h=u.get("roundCap")?HI:Tg,c=u.get("show"),d=u.getModel("lineStyle"),p=d.get("width"),f=[s,l];Gs(f,!a);for(var g=(l=f[1])-(s=f[0]),y=s,v=[],m=0;c&&m=t&&(0===e?0:i[e-1][0])Math.PI/2&&(B+=Math.PI):"tangential"===z?B=-M-Math.PI/2:dt(z)&&(B=z*Math.PI/180),0===B?c.add(new Gl({style:sh(x,{text:O,x:R,y:E,verticalAlign:h<-.8?"top":h>.8?"bottom":"middle",align:u<-.4?"left":u>.4?"right":"center"},{inheritColor:N}),silent:!0})):c.add(new Gl({style:sh(x,{text:O,x:R,y:E,verticalAlign:"middle",align:"center"},{inheritColor:N}),silent:!0,originX:R,originY:E,rotation:B}))}if(m.get("show")&&k!==_){P=(P=m.get("distance"))?P+l:l;for(var V=0;V<=b;V++){u=Math.cos(M),h=Math.sin(M);var F=new Gg({shape:{x1:u*(f-P)+d,y1:h*(f-P)+p,x2:u*(f-S-P)+d,y2:h*(f-S-P)+p},silent:!0,style:A});"auto"===A.stroke&&F.setStyle({stroke:i((k+V/b)/_)}),c.add(F),M+=C}M-=C}else M+=I}},e.prototype._renderPointer=function(t,e,n,i,r,o,a,s,l){var u=this.group,h=this._data,c=this._progressEls,d=[],p=t.get(["pointer","show"]),f=t.getModel("progress"),g=f.get("show"),y=t.getData(),v=y.mapDimension("value"),m=+t.get("min"),x=+t.get("max"),_=[m,x],b=[o,a];function w(e,n){var i,o=y.getItemModel(e).getModel("pointer"),a=Do(o.get("width"),r.r),s=Do(o.get("length"),r.r),l=t.get(["pointer","icon"]),u=o.get("offsetCenter"),h=Do(u[0],r.r),c=Do(u[1],r.r),d=o.get("keepAspect");return(i=l?rm(l,h-a/2,c-s,a,s,null,d):new EP({shape:{angle:-Math.PI/2,width:a,r:s,x:h,y:c}})).rotation=-(n+Math.PI/2),i.x=r.cx,i.y=r.cy,i}function S(t,e){var n=f.get("roundCap")?HI:Tg,i=f.get("overlap"),a=i?f.get("width"):l/y.count(),u=i?r.r-a:r.r-(t+1)*a,h=i?r.r:r.r-t*a,c=new n({shape:{startAngle:o,endAngle:e,cx:r.cx,cy:r.cy,clockwise:s,r0:u,r:h}});return i&&(c.z2=x-y.get(v,t)%x),c}(g||p)&&(y.diff(h).add((function(e){var n=y.get(v,e);if(p){var i=w(e,o);qu(i,{rotation:-((isNaN(+n)?b[0]:Ao(n,_,b,!0))+Math.PI/2)},t),u.add(i),y.setItemGraphicEl(e,i)}if(g){var r=S(e,o),a=f.get("clip");qu(r,{shape:{endAngle:Ao(n,_,b,a)}},t),u.add(r),Hl(t.seriesIndex,y.dataType,e,r),d[e]=r}})).update((function(e,n){var i=y.get(v,e);if(p){var r=h.getItemGraphicEl(n),a=r?r.rotation:o,s=w(e,a);s.rotation=a,Zu(s,{rotation:-((isNaN(+i)?b[0]:Ao(i,_,b,!0))+Math.PI/2)},t),u.add(s),y.setItemGraphicEl(e,s)}if(g){var l=c[n],m=S(e,l?l.shape.endAngle:o),x=f.get("clip");Zu(m,{shape:{endAngle:Ao(i,_,b,x)}},t),u.add(m),Hl(t.seriesIndex,y.dataType,e,m),d[e]=m}})).execute(),y.each((function(t){var e=y.getItemModel(t),n=e.getModel("emphasis"),r=n.get("focus"),o=n.get("blurScope"),a=n.get("disabled");if(p){var s=y.getItemGraphicEl(t),l=y.getItemVisual(t,"style"),u=l.fill;if(s instanceof vl){var h=s.style;s.useStyle(Y({image:h.image,x:h.x,y:h.y,width:h.width,height:h.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",i(Ao(y.get(v,t),_,[0,1],!0))),s.z2EmphasisLift=0,Gu(s,e),zu(s,r,o,a)}if(g){var c=d[t];c.useStyle(y.getItemVisual(t,"style")),c.setStyle(e.getModel(["progress","itemStyle"]).getItemStyle()),c.z2EmphasisLift=0,Gu(c,e),zu(c,r,o,a)}})),this._progressEls=d)},e.prototype._renderAnchor=function(t,e){var n=t.getModel("anchor");if(n.get("show")){var i=n.get("size"),r=n.get("icon"),o=n.get("offsetCenter"),a=n.get("keepAspect"),s=rm(r,e.cx-i/2+Do(o[0],e.r),e.cy-i/2+Do(o[1],e.r),i,i,null,a);s.z2=n.get("showAbove")?1:0,s.setStyle(n.getModel("itemStyle").getItemStyle()),this.group.add(s)}},e.prototype._renderTitleAndDetail=function(t,e,n,i,r){var o=this,a=t.getData(),s=a.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),h=new yo,c=[],d=[],p=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);a.diff(this._data).add((function(t){c[t]=new Gl({silent:!0}),d[t]=new Gl({silent:!0})})).update((function(t,e){c[t]=o._titleEls[e],d[t]=o._detailEls[e]})).execute(),a.each((function(e){var n=a.getItemModel(e),o=a.get(s,e),g=new yo,y=i(Ao(o,[l,u],[0,1],!0)),v=n.getModel("title");if(v.get("show")){var m=v.get("offsetCenter"),x=r.cx+Do(m[0],r.r),_=r.cy+Do(m[1],r.r);(A=c[e]).attr({z2:f?0:2,style:sh(v,{x,y:_,text:a.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:y})}),g.add(A)}var b=n.getModel("detail");if(b.get("show")){var w=b.get("offsetCenter"),S=r.cx+Do(w[0],r.r),M=r.cy+Do(w[1],r.r),I=Do(b.get("width"),r.r),C=Do(b.get("height"),r.r),T=t.get(["progress","show"])?a.getItemVisual(e,"style").fill:y,A=d[e],D=b.get("formatter");A.attr({z2:f?0:2,style:sh(b,{x:S,y:M,text:zP(o,D),width:isNaN(I)?null:I,height:isNaN(C)?null:C,align:"center",verticalAlign:"middle"},{inheritColor:T})}),gh(A,{normal:b},o,(function(t){return zP(t,D)})),p&&yh(A,e,a,t,{getFormattedLabel:function(t,e,n,i,r,a){return zP(a?a.interpolatedValue:o,D)}}),g.add(A)}h.add(g)})),this.group.add(h),this._titleEls=c,this._detailEls=d},e.type="gauge",e}(Xy);const VP=BP,FP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="itemStyle",n}return m(e,t),e.prototype.getInitialData=function(t,e){return MC(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}(zf);var GP=["itemStyle","opacity"],WP=function(t){function e(e,n){var i=t.call(this)||this,r=i,o=new zg,a=new Gl;return r.setTextContent(a),i.setTextGuideLine(o),i.updateData(e,n,!0),i}return m(e,t),e.prototype.updateData=function(t,e,n){var i=this,r=t.hostModel,o=t.getItemModel(e),a=t.getItemLayout(e),s=o.getModel("emphasis"),l=o.get(GP);l=null==l?1:l,n||eh(i),i.useStyle(t.getItemVisual(e,"style")),i.style.lineJoin="round",n?(i.setShape({points:a.points}),i.style.opacity=0,qu(i,{style:{opacity:l}},r,e)):Zu(i,{style:{opacity:l},shape:{points:a.points}},r,e),Gu(i,o),this._updateLabel(t,e),zu(this,s.get("focus"),s.get("blurScope"),s.get("disabled"))},e.prototype._updateLabel=function(t,e){var n=this,i=this.getTextGuideLine(),r=n.getTextContent(),o=t.hostModel,a=t.getItemModel(e),s=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;oh(r,ah(a),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:s.textAlign,verticalAlign:s.verticalAlign}}),n.setTextConfig({local:!0,inside:!!s.inside,insideStroke:u,outsideFill:u});var h=s.linePoints;i.setShape({points:h}),n.textGuideLineConfig={anchor:h?new qe(h[0][0],h[0][1]):null},Zu(r,{style:{x:s.x,y:s.y}},o,e),r.attr({rotation:s.rotation,originX:s.x,originY:s.y,z2:10}),gS(n,yS(a),{stroke:u})},e}(Ng);const HP=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreLabelLineUpdate=!0,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this._data,o=this.group;i.diff(r).add((function(t){var e=new WP(i,t);i.setItemGraphicEl(t,e),o.add(e)})).update((function(t,e){var n=r.getItemGraphicEl(e);n.updateData(i,t),o.add(n),i.setItemGraphicEl(t,n)})).remove((function(e){th(r.getItemGraphicEl(e),t,e)})).execute(),this._data=i},e.prototype.remove=function(){this.group.removeAll(),this._data=null},e.prototype.dispose=function(){},e.type="funnel",e}(Xy);var $P=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e){t.prototype.init.apply(this,arguments),this.legendVisualProvider=new CC(at(this.getData,this),at(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return MC(this,{coordDimensions:["value"],encodeDefaulter:st(od,this)})},e.prototype._defaultLabelLine=function(t){ia(t,"labelLine",["show"]);var e=t.labelLine,n=t.emphasis.labelLine;e.show=e.show&&t.label.show,n.show=n.show&&t.emphasis.label.show},e.prototype.getDataParams=function(e){var n=this.getData(),i=t.prototype.getDataParams.call(this,e),r=n.mapDimension("value"),o=n.getSum(r);return i.percent=o?+(n.get(r,e)/o*100).toFixed(2):0,i.$vars.push("percent"),i},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}(zf);const jP=$P;function UP(t,e){t.eachSeriesByType("funnel",(function(t){var n=t.getData(),i=n.mapDimension("value"),r=t.get("sort"),o=function(t,e){return Rc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e),a=t.get("orient"),s=o.width,l=o.height,u=function(t,e){for(var n=t.mapDimension("value"),i=t.mapArray(n,(function(t){return t})),r=[],o="ascending"===e,a=0,s=t.count();a5)return;var i=this._model.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]);"none"!==i.behavior&&this._dispatchExpand({axisExpandWindow:i.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(t){if(!this._mouseDownPoint&&aO(this,"mousemove")){var e=this._model,n=e.coordinateSystem.getSlidedAxisExpandWindow([t.offsetX,t.offsetY]),i=n.behavior;"jump"===i&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand("none"===i?null:{axisExpandWindow:n.axisExpandWindow,animation:"jump"===i?null:{duration:0}})}}};function aO(t,e){var n=t._model;return n.get("axisExpandable")&&n.get("axisExpandTriggerOn")===e}const sO=rO,lO=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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&&j(e,t,!0),this._initDimensions()},e.prototype.contains=function(t,e){var n=t.get("parallelIndex");return null!=n&&e.getComponent("parallel",n)===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(it(this.ecModel.queryComponents({mainType:"parallelAxis"}),(function(t){return(t.get("parallelIndex")||0)===this.componentIndex}),this),(function(n){t.push("dim"+n.get("dim")),e.push(n.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}(Hc);var uO=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i)||this;return a.type=r||"value",a.axisIndex=o,a}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Ww);const hO=uO;function cO(t,e,n,i,r,o){t=t||0;var a=n[1]-n[0];if(null!=r&&(r=pO(r,[0,a])),null!=o&&(o=Math.max(o,null!=r?r:0)),"all"===i){var s=Math.abs(e[1]-e[0]);s=pO(s,[0,a]),r=o=pO(s,[r,o]),i=0}e[0]=pO(e[0],n),e[1]=pO(e[1],n);var l=dO(e,i);e[i]+=t;var u,h=r||0,c=n.slice();return l.sign<0?c[0]+=h:c[1]-=h,e[i]=pO(e[i],c),u=dO(e,i),null!=r&&(u.sign!==l.sign||u.spano&&(e[1-i]=e[i]+u.sign*o),e}function dO(t,e){var n=t[e]-t[1-e];return{span:Math.abs(n),sign:n>0?-1:n<0?1:e?-1:1}}function pO(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fO=tt,gO=Math.min,yO=Math.max,vO=Math.floor,mO=Math.ceil,xO=ko,_O=Math.PI,bO=function(){function t(t,e,n){this.type="parallel",this._axesMap=Nt(),this._axesLayout={},this.dimensions=t.dimensions,this._model=t,this._init(t,e,n)}return t.prototype._init=function(t,e,n){var i=t.dimensions,r=t.parallelAxisIndex;fO(i,(function(t,n){var i=r[n],o=e.getComponent("parallelAxis",i),a=this._axesMap.set(t,new hO(t,rw(o),[0,0],o.get("type"),i)),s="category"===a.type;a.onBand=s&&o.get("boundaryGap"),a.inverse=o.get("inverse"),o.axis=a,a.model=o,a.coordinateSystem=o.coordinateSystem=this}),this)},t.prototype.update=function(t,e){this._updateAxesFromSeries(this._model,t)},t.prototype.containPoint=function(t){var e=this._makeLayoutInfo(),n=e.axisBase,i=e.layoutBase,r=e.pixelDimIndex,o=t[1-r],a=t[r];return o>=n&&o<=n+e.axisLength&&a>=i&&a<=i+e.layoutLength},t.prototype.getModel=function(){return this._model},t.prototype._updateAxesFromSeries=function(t,e){e.eachSeries((function(n){if(t.contains(n,e)){var i=n.getData();fO(this.dimensions,(function(t){var e=this._axesMap.get(t);e.scale.unionExtentFromData(i,i.mapDimension(t)),iw(e.scale,e.model)}),this)}}),this)},t.prototype.resize=function(t,e){this._rect=Rc(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,n=this._rect,i=["x","y"],r=["width","height"],o=e.get("layout"),a="horizontal"===o?0:1,s=n[r[a]],l=[0,s],u=this.dimensions.length,h=wO(e.get("axisExpandWidth"),l),c=wO(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>c&&c>1&&h>0&&s>0,p=e.get("axisExpandWindow");p?(t=wO(p[1]-p[0],l),p[1]=p[0]+t):(t=wO(h*(c-1),l),(p=[h*(e.get("axisExpandCenter")||vO(u/2))-t/2])[1]=p[0]+t);var f=(s-t)/(u-c);f<3&&(f=0);var g=[vO(xO(p[0]/h,1))+1,mO(xO(p[1]/h,1))-1],y=f/h*p[0];return{layout:o,pixelDimIndex:a,layoutBase:n[i[a]],layoutLength:s,axisBase:n[i[1-a]],axisLength:n[r[1-a]],axisExpandable:d,axisExpandWidth:h,axisCollapseWidth:f,axisExpandWindow:p,axisCount:u,winInnerIndices:g,axisExpandWindow0Pos:y}},t.prototype._layoutAxes=function(){var t=this._rect,e=this._axesMap,n=this.dimensions,i=this._makeLayoutInfo(),r=i.layout;e.each((function(t){var e=[0,i.axisLength],n=t.inverse?1:0;t.setExtent(e[n],e[1-n])})),fO(n,(function(e,n){var o=(i.axisExpandable?MO:SO)(n,i),a={horizontal:{x:o.position,y:i.axisLength},vertical:{x:0,y:o.position}},s={horizontal:_O/2,vertical:0},l=[a[r].x+t.x,a[r].y+t.y],u=s[r],h=[1,0,0,1,0,0];je(h,h,u),$e(h,h,l),this._axesLayout[e]={position:l,rotation:u,transform:h,axisNameAvailableWidth:o.axisNameAvailableWidth,axisLabelShow:o.axisLabelShow,nameTruncateMaxWidth:o.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,n,i){null==n&&(n=0),null==i&&(i=t.count());var r=this._axesMap,o=this.dimensions,a=[],s=[];tt(o,(function(e){a.push(t.mapDimension(e)),s.push(r.get(e).model)}));for(var l=this.hasAxisBrushed(),u=n;ur*(1-h[0])?(l="jump",a=s-r*(1-h[2])):(a=s-r*h[1])>=0&&(a=s-r*(1-h[1]))<=0&&(a=0),(a*=e.axisExpandWidth/u)?cO(a,i,o,"all"):l="none";else{var d=i[1]-i[0];(i=[yO(0,o[1]*s/d-d/2)])[1]=gO(o[1],i[0]+d),i[0]=i[1]-d}return{axisExpandWindow:i,behavior:l}},t}();function wO(t,e){return gO(yO(t,e[0]),e[1])}function SO(t,e){var n=e.layoutLength/(e.axisCount-1);return{position:n*t,axisNameAvailableWidth:n,axisLabelShow:!0}}function MO(t,e){var n,i,r=e.layoutLength,o=e.axisExpandWidth,a=e.axisCount,s=e.axisCollapseWidth,l=e.winInnerIndices,u=s,h=!1;return t=0;n--)Lo(e[n])},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 n=e[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,r=e.length;iNO}(t)||o){if(a&&!o){"single"===s.brushMode&&qO(t);var l=$(s);l.brushType=pN(l.brushType,a),l.panelId=a===DO?null:a.panelId,o=t._creatingCover=WO(t,l),t._covers.push(o)}if(o){var u=yN[pN(t._brushType,a)];o.__brushOption.range=u.getCreatingRange(uN(t,o,t._track)),i&&(HO(t,o),u.updateCommon(t,o)),$O(t,o),r={isEnd:i}}}else i&&"single"===s.brushMode&&s.removeOnClick&&XO(t,e,n)&&qO(t)&&(r={isEnd:i,removeOnClick:!0});return r}function pN(t,e){return"auto"===t?e.defaultBrushType:t}var fN={mousedown:function(t){if(this._dragging)gN(this,t);else if(!t.target||!t.target.draggable){hN(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=XO(this,t,e))&&(this._dragging=!0,this._track=[e.slice()])}},mousemove:function(t){var e=t.offsetX,n=t.offsetY,i=this.group.transformCoordToLocal(e,n);if(function(t,e,n){if(t._brushType&&!function(t,e,n){var i=t._zr;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}(t,e.offsetX,e.offsetY)){var i=t._zr,r=t._covers,o=XO(t,e,n);if(!t._dragging)for(var a=0;a=0&&(o[r[a].depth]=new Lh(r[a],this,e));if(i&&n){var s=kP(i,n,this,!0,(function(t,e){t.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getData().getItemLayout(e);if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t})),e.wrapMethod("getItemModel",(function(t,e){var n=t.parentModel,i=n.getGraph().getEdgeByIndex(e).node1.getLayout();if(i){var r=i.depth,o=n.levelModels[r];o&&(t.parentModel=o)}return t}))}));return s.data}},e.prototype.setNodePosition=function(t,e){var n=(this.option.data||this.option.nodes)[t];n.localX=e[0],n.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,n){function i(t){return isNaN(t)||null==t}if("edge"===n){var r=this.getDataParams(t,n),o=r.data,a=r.value;return pf("nameValue",{name:o.source+" -- "+o.target,value:a,noValue:i(a)})}var s=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,n).data.name;return pf("nameValue",{name:null!=l?l+"":null,value:s,noValue:i(s)})},e.prototype.optionUpdated=function(){},e.prototype.getDataParams=function(e,n){var i=t.prototype.getDataParams.call(this,e,n);if(null==i.value&&"node"===n){var r=this.getGraph().getNodeByIndex(e).getLayout().value;i.value=r}return i},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}(zf);const RN=NN;function EN(t,e){t.eachSeriesByType("sankey",(function(t){var n=t.get("nodeWidth"),i=t.get("nodeGap"),r=function(t,e){return Rc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}(t,e);t.layoutInfo=r;var o=r.width,a=r.height,s=t.getGraph(),l=s.nodes,u=s.edges;!function(t){tt(t,(function(t){var e=UN(t.outEdges,jN),n=UN(t.inEdges,jN),i=t.getValue()||0,r=Math.max(e,n,i);t.setLayout({value:r},!0)}))}(l),function(t,e,n,i,r,o,a,s,l){(function(t,e,n,i,r,o,a){for(var s=[],l=[],u=[],h=[],c=0,d=0;d=0;v&&y.depth>p&&(p=y.depth),g.setLayout({depth:v?y.depth:c},!0),"vertical"===o?g.setLayout({dy:n},!0):g.setLayout({dx:n},!0);for(var m=0;mc-1?p:c-1;a&&"left"!==a&&function(t,e,n,i){if("right"===e){for(var r=[],o=t,a=0;o.length;){for(var s=0;s0;o--)VN(s,l*=.99,a),BN(s,r,n,i,a),YN(s,l,a),BN(s,r,n,i,a)}(t,e,o,r,i,a,s),function(t,e){var n="vertical"===e?"x":"y";tt(t,(function(t){t.outEdges.sort((function(t,e){return t.node2.getLayout()[n]-e.node2.getLayout()[n]})),t.inEdges.sort((function(t,e){return t.node1.getLayout()[n]-e.node1.getLayout()[n]}))})),tt(t,(function(t){var e=0,n=0;tt(t.outEdges,(function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy})),tt(t.inEdges,(function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy}))}))}(t,s)}(l,u,n,i,o,a,0!==it(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function zN(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function BN(t,e,n,i,r){var o="vertical"===r?"x":"y";tt(t,(function(t){var a,s,l;t.sort((function(t,e){return t.getLayout()[o]-e.getLayout()[o]}));for(var u=0,h=t.length,c="vertical"===r?"dx":"dy",d=0;d0&&(a=s.getLayout()[o]+l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]+s.getLayout()[c]+e;if((l=u-e-("vertical"===r?i:n))>0)for(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0),u=a,d=h-2;d>=0;--d)(l=(s=t[d]).getLayout()[o]+s.getLayout()[c]+e-u)>0&&(a=s.getLayout()[o]-l,"vertical"===r?s.setLayout({x:a},!0):s.setLayout({y:a},!0)),u=s.getLayout()[o]}))}function VN(t,e,n){tt(t.slice().reverse(),(function(t){tt(t,(function(t){if(t.outEdges.length){var i=UN(t.outEdges,FN,n)/UN(t.outEdges,jN);if(isNaN(i)){var r=t.outEdges.length;i=r?UN(t.outEdges,GN,n)/r:0}if("vertical"===n){var o=t.getLayout().x+(i-$N(t,n))*e;t.setLayout({x:o},!0)}else{var a=t.getLayout().y+(i-$N(t,n))*e;t.setLayout({y:a},!0)}}}))}))}function FN(t,e){return $N(t.node2,e)*t.getValue()}function GN(t,e){return $N(t.node2,e)}function WN(t,e){return $N(t.node1,e)*t.getValue()}function HN(t,e){return $N(t.node1,e)}function $N(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function jN(t){return t.getValue()}function UN(t,e,n){for(var i=0,r=t.length,o=-1;++oo&&(o=e)})),tt(n,(function(e){var n=new nL({type:"color",mappingMethod:"linear",dataExtent:[r,o],visual:t.get("color")}).mapValueToVisual(e.getLayout().value),i=e.getModel().get(["itemStyle","color"]);null!=i?(e.setVisual("color",i),e.setVisual("style",{fill:i})):(e.setVisual("color",n),e.setVisual("style",{fill:n}))}))}i.length&&tt(i,(function(t){var e=t.getModel().get("lineStyle");t.setVisual("style",e)}))}))}var ZN=function(){function t(){}return t.prototype.getInitialData=function(t,e){var n,i,r=e.getComponent("xAxis",this.get("xAxisIndex")),o=e.getComponent("yAxis",this.get("yAxisIndex")),a=r.get("type"),s=o.get("type");"category"===a?(t.layout="horizontal",n=r.getOrdinalMeta(),i=!0):"category"===s?(t.layout="vertical",n=o.getOrdinalMeta(),i=!0):t.layout=t.layout||"horizontal";var l=["x","y"],u="horizontal"===t.layout?0:1,h=this._baseAxisDim=l[u],c=l[1-u],d=[r,o],p=d[u].get("type"),f=d[1-u].get("type"),g=t.data;if(g&&i){var y=[];tt(g,(function(t,e){var n;lt(t)?(n=t.slice(),t.unshift(e)):lt(t.value)?((n=Y({},t)).value=n.value.slice(),t.value.unshift(e)):n=t,y.push(n)})),t.data=y}var v=this.defaultValueDimensions,m=[{name:h,type:w_(p),ordinalMeta:n,otherDims:{tooltip:!1,itemName:0},dimsDef:["base"]},{name:c,type:w_(f),dimsDef:v.slice()}];return MC(this,{coordDimensions:m,dimensionsCount:v.length+1,encodeDefaulter:st(rd,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),qN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"min",defaultTooltip:!0},{name:"Q1",defaultTooltip:!0},{name:"median",defaultTooltip:!0},{name:"Q3",defaultTooltip:!0},{name:"max",defaultTooltip:!0}],n.visualDrawType="stroke",n}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}(zf);J(qN,ZN,!0);const KN=qN;var JN=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this.group,o=this._data;this._data||r.removeAll();var a="horizontal"===t.get("layout")?1:0;i.diff(o).add((function(t){if(i.hasValue(t)){var e=eR(i.getItemLayout(t),i,t,a,!0);i.setItemGraphicEl(t,e),r.add(e)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(i.hasValue(t)){var s=i.getItemLayout(t);n?(eh(n),nR(s,n,i,t)):n=eR(s,i,t,a),r.add(n),i.setItemGraphicEl(t,n)}else r.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&r.remove(e)})).execute(),this._data=i},e.prototype.remove=function(t){var e=this.group,n=this._data;this._data=null,n&&n.eachItemGraphicEl((function(t){t&&e.remove(t)}))},e.type="boxplot",e}(Xy),QN=function(){},tR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="boxplotBoxPath",n}return m(e,t),e.prototype.getDefaultShape=function(){return new QN},e.prototype.buildPath=function(t,e){var n=e.points,i=0;for(t.moveTo(n[i][0],n[i][1]),i++;i<4;i++)t.lineTo(n[i][0],n[i][1]);for(t.closePath();ig){var _=[v,x];i.push(_)}}}return{boxData:n,outliers:i}}(e.getRawData(),t.config);return[{dimensions:["ItemName","Low","Q1","Q2","Q3","High"],data:n.boxData},{data:n.outliers}]}},lR=["color","borderColor"],uR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){this.group.removeClipPath(),this._progressiveEls=null,this._updateDrawMode(t),this._isLargeDraw?this._renderLarge(t):this._renderNormal(t)},e.prototype.incrementalPrepareRender=function(t,e,n){this._clear(),this._updateDrawMode(t)},e.prototype.incrementalRender=function(t,e,n,i){this._progressiveEls=[],this._isLargeDraw?this._incrementalRenderLarge(t,e):this._incrementalRenderNormal(t,e)},e.prototype.eachRendered=function(t){Vy(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(),n=this._data,i=this.group,r=e.getLayout("isSimpleBox"),o=t.get("clip",!0),a=t.coordinateSystem,s=a.getArea&&a.getArea();this._data||i.removeAll(),e.diff(n).add((function(n){if(e.hasValue(n)){var a=e.getItemLayout(n);if(o&&pR(s,a))return;var l=dR(a,0,!0);qu(l,{shape:{points:a.ends}},t,n),fR(l,e,n,r),i.add(l),e.setItemGraphicEl(n,l)}})).update((function(a,l){var u=n.getItemGraphicEl(l);if(e.hasValue(a)){var h=e.getItemLayout(a);o&&pR(s,h)?i.remove(u):(u?(Zu(u,{shape:{points:h.ends}},t,a),eh(u)):u=dR(h),fR(u,e,a,r),i.add(u),e.setItemGraphicEl(a,u))}else i.remove(u)})).remove((function(t){var e=n.getItemGraphicEl(t);e&&i.remove(e)})).execute(),this._data=e},e.prototype._renderLarge=function(t){this._clear(),mR(t,this.group);var e=t.get("clip",!0)?wI(t.coordinateSystem,!1,t):null;e?this.group.setClipPath(e):this.group.removeClipPath()},e.prototype._incrementalRenderNormal=function(t,e){for(var n,i=e.getData(),r=i.getLayout("isSimpleBox");null!=(n=t.next());){var o=dR(i.getItemLayout(n));fR(o,i,n,r),o.incremental=!0,this.group.add(o),this._progressiveEls.push(o)}},e.prototype._incrementalRenderLarge=function(t,e){mR(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}(Xy),hR=function(){},cR=function(t){function e(e){var n=t.call(this,e)||this;return n.type="normalCandlestickBox",n}return m(e,t),e.prototype.getDefaultShape=function(){return new hR},e.prototype.buildPath=function(t,e){var n=e.points;this.__simpleBox?(t.moveTo(n[4][0],n[4][1]),t.lineTo(n[6][0],n[6][1])):(t.moveTo(n[0][0],n[0][1]),t.lineTo(n[1][0],n[1][1]),t.lineTo(n[2][0],n[2][1]),t.lineTo(n[3][0],n[3][1]),t.closePath(),t.moveTo(n[4][0],n[4][1]),t.lineTo(n[5][0],n[5][1]),t.moveTo(n[6][0],n[6][1]),t.lineTo(n[7][0],n[7][1]))},e}(hl);function dR(t,e,n){var i=t.ends;return new cR({shape:{points:n?gR(i,t):i},z2:100})}function pR(t,e){for(var n=!0,i=0;i0?"borderColor":"borderColor0"])||n.get(["itemStyle",t>0?"color":"color0"]);0===t&&(r=n.get(["itemStyle","borderColorDoji"]));var o=n.getModel("itemStyle").getItemStyle(lR);e.useStyle(o),e.style.fill=null,e.style.stroke=r}const _R=uR;var bR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.defaultValueDimensions=[{name:"open",defaultTooltip:!0},{name:"close",defaultTooltip:!0},{name:"lowest",defaultTooltip:!0},{name:"highest",defaultTooltip:!0}],n}return m(e,t),e.prototype.getShadowDim=function(){return"open"},e.prototype.brushSelector=function(t,e,n){var i=e.getItemLayout(t);return i&&n.rect(i.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}(zf);J(bR,ZN,!0);const wR=bR;function SR(t){t&<(t.series)&&tt(t.series,(function(t){pt(t)&&"k"===t.type&&(t.type="candlestick")}))}var MR=["itemStyle","borderColor"],IR=["itemStyle","borderColor0"],CR=["itemStyle","borderColorDoji"],TR=["itemStyle","color"],AR=["itemStyle","color0"];const DR={seriesType:"candlestick",plan:Ff(),performRawSeries:!0,reset:function(t,e){function n(t,e){return e.get(t>0?TR:AR)}function i(t,e){return e.get(0===t?CR:t>0?MR:IR)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var r;null!=(r=t.next());){var o=e.getItemModel(r),a=e.getItemLayout(r).sign,s=o.getItemStyle();s.fill=n(a,o),s.stroke=i(a,o)||s.fill,Y(e.ensureUniqueItemVisual(r,"style"),s)}}}}};var kR={seriesType:"candlestick",plan:Ff(),reset:function(t){var e=t.coordinateSystem,n=t.getData(),i=function(t,e){var n,i=t.getBaseAxis(),r="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),o=Do(wt(t.get("barMaxWidth"),r),r),a=Do(wt(t.get("barMinWidth"),1),r),s=t.get("barWidth");return null!=s?Do(s,r):Math.max(Math.min(r/2,o),a)}(t,n),r=["x","y"],o=n.getDimensionIndex(n.mapDimension(r[0])),a=et(n.mapDimensionsAll(r[1]),n.getDimensionIndex,n),s=a[0],l=a[1],u=a[2],h=a[3];if(n.setLayout({candleWidth:i,isSimpleBox:i<=1.3}),!(o<0||a.length<4))return{progress:t.pipelineContext.large?function(n,i){for(var r,a,c=_b(4*n.count),d=0,p=[],f=[],g=i.getStore(),y=!!t.get(["itemStyle","borderColorDoji"]);null!=(a=n.next());){var v=g.get(o,a),m=g.get(s,a),x=g.get(l,a),_=g.get(u,a),b=g.get(h,a);isNaN(v)||isNaN(_)||isNaN(b)?(c[d++]=NaN,d+=3):(c[d++]=LR(g,a,m,x,l,y),p[0]=v,p[1]=_,r=e.dataToPoint(p,null,f),c[d++]=r?r[0]:NaN,c[d++]=r?r[1]:NaN,p[1]=b,r=e.dataToPoint(p,null,f),c[d++]=r?r[1]:NaN)}i.setLayout("largePoints",c)}:function(t,n){for(var r,a=n.getStore();null!=(r=t.next());){var c=a.get(o,r),d=a.get(s,r),p=a.get(l,r),f=a.get(u,r),g=a.get(h,r),y=Math.min(d,p),v=Math.max(d,p),m=M(y,c),x=M(v,c),_=M(f,c),b=M(g,c),w=[];I(w,x,0),I(w,m,1),w.push(T(b),T(x),T(_),T(m));var S=!!n.getItemModel(r).get(["itemStyle","borderColorDoji"]);n.setItemLayout(r,{sign:LR(a,r,d,p,l,S),initBaseline:d>p?x[1]:m[1],ends:w,brushRect:C(f,g,c)})}function M(t,n){var i=[];return i[0]=n,i[1]=t,isNaN(n)||isNaN(t)?[NaN,NaN]:e.dataToPoint(i)}function I(t,e,n){var r=e.slice(),o=e.slice();r[0]=Iy(r[0]+i/2,1,!1),o[0]=Iy(o[0]-i/2,1,!0),n?t.push(r,o):t.push(o,r)}function C(t,e,n){var r=M(t,n),o=M(e,n);return r[0]-=i/2,o[0]-=i/2,{x:r[0],y:r[1],width:i,height:o[1]-r[1]}}function T(t){return t[0]=Iy(t[0],1),t}}}}};function LR(t,e,n,i,r,o){return n>i?-1:n0?t.get(r,e-1)<=i?1:-1:1}const PR=kR;function OR(t,e){var n=e.rippleEffectColor||e.color;t.eachChild((function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?n:null,fill:"fill"===e.brushType?n:null}})}))}var NR=function(t){function e(e,n){var i=t.call(this)||this,r=new rI(e,n),o=new yo;return i.add(r),i.add(o),i.updateData(e,n),i}return m(e,t),e.prototype.stopEffectAnimation=function(){this.childAt(1).removeAll()},e.prototype.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=t.rippleNumber,r=this.childAt(1),o=0;o0&&(o=this._getLineLength(i)/l*1e3),o!==this._period||a!==this._loop||s!==this._roundTrip){i.stopAnimation();var h=void 0;h=ut(u)?u(n):u,i.__t>0&&(h=-o*i.__t),this._animateSymbol(i,o,h,a,s)}this._period=o,this._loop=a,this._roundTrip=s}},e.prototype._animateSymbol=function(t,e,n,i,r){if(e>0){t.__t=0;var o=this,a=t.animate("",i).when(r?2*e:e,{__t:r?2:1}).delay(n).during((function(){o._updateSymbolPosition(t)}));i||a.done((function(){o.remove(t)})),a.start()}},e.prototype._getLineLength=function(t){return re(t.__p1,t.__cp1)+re(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,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},e.prototype._updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t<1?t.__t:2-t.__t,o=[t.x,t.y],a=o.slice(),s=Qn,l=ti;o[0]=s(e[0],i[0],n[0],r),o[1]=s(e[1],i[1],n[1],r);var u=t.__t<1?l(e[0],i[0],n[0],r):l(n[0],i[0],e[0],1-r),h=t.__t<1?l(e[1],i[1],n[1],r):l(n[1],i[1],e[1],1-r);t.rotation=-Math.atan2(h,u)-Math.PI/2,"line"!==this._symbolType&&"rect"!==this._symbolType&&"roundRect"!==this._symbolType||(void 0!==t.__lastT&&t.__lastT=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(o=a;oe);o++);o=Math.min(o-1,r-2)}var s=(e-i[o])/(i[o+1]-i[o]),l=n[o],u=n[o+1];t.x=l[0]*(1-s)+s*u[0],t.y=l[1]*(1-s)+s*u[1];var h=t.__t<1?u[0]-l[0]:l[0]-u[0],c=t.__t<1?u[1]-l[1]:l[1]-u[1];t.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},e}(VR);const HR=WR;var $R=function(){this.polyline=!1,this.curveness=0,this.segs=[]},jR=function(t){function e(e){var n=t.call(this,e)||this;return n._off=0,n.hoverDataIdx=-1,n}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 $R},e.prototype.buildPath=function(t,e){var n,i=e.segs,r=e.curveness;if(e.polyline)for(n=this._off;n0){t.moveTo(i[n++],i[n++]);for(var a=1;a0){var c=(s+u)/2-(l-h)*r,d=(l+h)/2-(u-s)*r;t.quadraticCurveTo(c,d,u,h)}else t.lineTo(u,h)}this.incremental&&(this._off=n,this.notClear=!0)},e.prototype.findDataIndex=function(t,e){var n=this.shape,i=n.segs,r=n.curveness,o=this.style.lineWidth;if(n.polyline)for(var a=0,s=0;s0)for(var u=i[s++],h=i[s++],c=1;c0){if(Us(u,h,(u+d)/2-(h-p)*r,(h+p)/2-(d-u)*r,d,p,o,t,e))return a}else if($s(u,h,d,p,o,t,e))return a;a++}return-1},e.prototype.contain=function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect();return t=n[0],e=n[1],i.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,n=1/0,i=1/0,r=-1/0,o=-1/0,a=0;a0&&(o.dataIndex=n+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var YR={seriesType:"lines",plan:Ff(),reset:function(t){var e=t.coordinateSystem;if(e){var n=t.get("polyline"),i=t.pipelineContext.large;return{progress:function(r,o){var a=[];if(i){var s=void 0,l=r.end-r.start;if(n){for(var u=0,h=r.start;h0&&(l||s.configLayer(o,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(a/10+.9,1),0)})),r.updateData(i);var u=t.get("clip",!0)&&wI(t.coordinateSystem,!1,t);u?this.group.setClipPath(u):this.group.removeClipPath(),this._lastZlevel=o,this._finished=!0},e.prototype.incrementalPrepareRender=function(t,e,n){var i=t.getData();this._updateLineDraw(i,t).incrementalPrepareUpdate(i),this._clearLayer(n),this._finished=!1},e.prototype.incrementalRender=function(t,e,n){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,n){var i=t.getData(),r=t.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var o=XR.reset(t,e,n);o.progress&&o.progress({start:0,end:i.count(),count:i.count()},i),this._lineDraw.updateLayout(),this._clearLayer(n)},e.prototype._updateLineDraw=function(t,e){var n=this._lineDraw,i=this._showEffect(e),r=!!e.get("polyline"),o=e.pipelineContext.large;return n&&i===this._hasEffet&&r===this._isPolyline&&o===this._isLargeDraw||(n&&n.remove(),n=this._lineDraw=o?new UR:new dP(r?i?HR:GR:i?VR:lP),this._hasEffet=i,this._isPolyline=r,this._isLargeDraw=o),this.group.add(n.group),n},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}(Xy);var qR="undefined"==typeof Uint32Array?Array:Uint32Array,KR="undefined"==typeof Float64Array?Array:Float64Array;function JR(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),U([e,t[0],t[1]])})))}var QR=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.visualStyleAccessPath="lineStyle",n.visualDrawType="stroke",n}return m(e,t),e.prototype.init=function(e){e.data=e.data||[],JR(e);var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count)),t.prototype.init.apply(this,arguments)},e.prototype.mergeOption=function(e){if(JR(e),e.data){var n=this._processFlatCoordsArray(e.data);this._flatCoords=n.flatCoords,this._flatCoordsOffset=n.flatCoordsOffset,n.flatCoords&&(e.data=new Float32Array(n.count))}t.prototype.mergeOption.apply(this,arguments)},e.prototype.appendData=function(t){var e=this._processFlatCoordsArray(t.data);e.flatCoords&&(this._flatCoords?(this._flatCoords=Rt(this._flatCoords,e.flatCoords),this._flatCoordsOffset=Rt(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 n=this._flatCoordsOffset[2*t],i=this._flatCoordsOffset[2*t+1],r=0;r ")})},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}(zf);const tE=QR;function eE(t){return t instanceof Array||(t=[t,t]),t}const nE={seriesType:"lines",reset:function(t){var e=eE(t.get("symbol")),n=eE(t.get("symbolSize")),i=t.getData();return i.setVisual("fromSymbol",e&&e[0]),i.setVisual("toSymbol",e&&e[1]),i.setVisual("fromSymbolSize",n&&n[0]),i.setVisual("toSymbolSize",n&&n[1]),{dataEach:i.hasItemOption?function(t,e){var n=t.getItemModel(e),i=eE(n.getShallow("symbol",!0)),r=eE(n.getShallow("symbolSize",!0));i[0]&&t.setItemVisual(e,"fromSymbol",i[0]),i[1]&&t.setItemVisual(e,"toSymbol",i[1]),r[0]&&t.setItemVisual(e,"fromSymbolSize",r[0]),r[1]&&t.setItemVisual(e,"toSymbolSize",r[1])}:null}}};var iE=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=A.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,n,i,r,o){var a=this._getBrush(),s=this._getGradient(r,"inRange"),l=this._getGradient(r,"outOfRange"),u=this.pointSize+this.blurSize,h=this.canvas,c=h.getContext("2d"),d=t.length;h.width=e,h.height=n;for(var p=0;p0){var I=o(v)?s:l;v>0&&(v=v*S+w),x[_++]=I[M],x[_++]=I[M+1],x[_++]=I[M+2],x[_++]=I[M+3]*v*256}else _+=4}return c.putImageData(m,0,0),h},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=A.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},t.prototype._getGradient=function(t,e){for(var n=this._gradientPixels,i=n[e]||(n[e]=new Uint8ClampedArray(1024)),r=[0,0,0,0],o=0,a=0;a<256;a++)t[e](a/255,!0,r),i[o++]=r[0],i[o++]=r[1],i[o++]=r[2],i[o++]=r[3];return i},t}();const rE=iE;function oE(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var aE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i;e.eachComponent("visualMap",(function(e){e.eachTargetSeries((function(n){n===t&&(i=e)}))})),this._progressiveEls=null,this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type||"calendar"===r.type?this._renderOnCartesianAndCalendar(t,n,0,t.getData().count()):oE(r)&&this._renderOnGeo(r,t,i,n)},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll()},e.prototype.incrementalRender=function(t,e,n,i){var r=e.coordinateSystem;r&&(oE(r)?this.render(e,n,i):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(e,i,t.start,t.end,!0)))},e.prototype.eachRendered=function(t){Vy(this._progressiveEls||this.group,t)},e.prototype._renderOnCartesianAndCalendar=function(t,e,n,i,r){var o,a,s,l,u=t.coordinateSystem,h=SI(u,"cartesian2d");if(h){var c=u.getAxis("x"),d=u.getAxis("y");o=c.getBandWidth()+.5,a=d.getBandWidth()+.5,s=c.scale.getExtent(),l=d.scale.getExtent()}for(var p=this.group,f=t.getData(),g=t.getModel(["emphasis","itemStyle"]).getItemStyle(),y=t.getModel(["blur","itemStyle"]).getItemStyle(),v=t.getModel(["select","itemStyle"]).getItemStyle(),m=t.get(["itemStyle","borderRadius"]),x=ah(t),_=t.getModel("emphasis"),b=_.get("focus"),w=_.get("blurScope"),S=_.get("disabled"),M=h?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],I=n;Is[1]||Dl[1])continue;var k=u.dataToPoint([A,D]);C=new Il({shape:{x:k[0]-o/2,y:k[1]-a/2,width:o,height:a},style:T})}else{if(isNaN(f.get(M[1],I)))continue;C=new Il({z2:1,shape:u.dataToRect([f.get(M[0],I)]).contentShape,style:T})}if(f.hasItemOption){var L=f.getItemModel(I),P=L.getModel("emphasis");g=P.getModel("itemStyle").getItemStyle(),y=L.getModel(["blur","itemStyle"]).getItemStyle(),v=L.getModel(["select","itemStyle"]).getItemStyle(),m=L.get(["itemStyle","borderRadius"]),b=P.get("focus"),w=P.get("blurScope"),S=P.get("disabled"),x=ah(L)}C.shape.r=m;var O=t.getRawValue(I),N="-";O&&null!=O[2]&&(N=O[2]+""),oh(C,x,{labelFetcher:t,labelDataIndex:I,defaultOpacity:T.opacity,defaultText:N}),C.ensureState("emphasis").style=g,C.ensureState("blur").style=y,C.ensureState("select").style=v,zu(C,b,w,S),C.incremental=r,r&&(C.states.emphasis.hoverLayer=!0),p.add(C),f.setItemGraphicEl(I,C),this._progressiveEls&&this._progressiveEls.push(C)}},e.prototype._renderOnGeo=function(t,e,n,i){var r=n.targetVisuals.inRange,o=n.targetVisuals.outOfRange,a=e.getData(),s=this._hmLayer||this._hmLayer||new rE;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 h=Math.max(l.x,0),c=Math.max(l.y,0),d=Math.min(l.width+l.x,i.getWidth()),p=Math.min(l.height+l.y,i.getHeight()),f=d-h,g=p-c,y=[a.mapDimension("lng"),a.mapDimension("lat"),a.mapDimension("value")],v=a.mapArray(y,(function(e,n,i){var r=t.dataToPoint([e,n]);return r[0]-=h,r[1]-=c,r.push(i),r})),m=n.getExtent(),x="visualMap.continuous"===n.type?function(t,e){var n=t[1]-t[0];return e=[(e[0]-t[0])/n,(e[1]-t[0])/n],function(t){return t>=e[0]&&t<=e[1]}}(m,n.option.range):function(t,e,n){var i=t[1]-t[0],r=(e=et(e,(function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}}))).length,o=0;return function(t){var i;for(i=o;i=0;i--){var a;if((a=e[i].interval)[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i0?1:-1}(n,o,r,i,c),function(t,e,n,i,r,o,a,s,l,u){var h,c=l.valueDim,d=l.categoryDim,p=Math.abs(n[d.wh]),f=t.getItemVisual(e,"symbolSize");(h=lt(f)?f.slice():null==f?["100%","100%"]:[f,f])[d.index]=Do(h[d.index],p),h[c.index]=Do(h[c.index],i?p:Math.abs(o)),u.symbolSize=h,(u.symbolScale=[h[0]/s,h[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}(t,e,r,o,0,c.boundingLength,c.pxSign,u,i,c),function(t,e,n,i,r){var o=t.get(uE)||0;o&&(cE.attr({scaleX:e[0],scaleY:e[1],rotation:n}),cE.updateTransform(),o/=cE.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o||0}(n,c.symbolScale,l,i,c);var d=c.symbolSize,p=am(n.get("symbolOffset"),d);return function(t,e,n,i,r,o,a,s,l,u,h,c){var d=h.categoryDim,p=h.valueDim,f=c.pxSign,g=Math.max(e[p.index]+s,0),y=g;if(i){var v=Math.abs(l),m=bt(t.get("symbolMargin"),"15%")+"",x=!1;m.lastIndexOf("!")===m.length-1&&(x=!0,m=m.slice(0,m.length-1));var _=Do(m,e[p.index]),b=Math.max(g+2*_,0),w=x?0:2*_,S=Zo(i),M=S?i:AE((v+w)/b);b=g+2*(_=(v-M*g)/2/(x?M:Math.max(M-1,1))),w=x?0:2*_,S||"fixed"===i||(M=u?AE((Math.abs(u)+w)/b):0),y=M*b-w,c.repeatTimes=M,c.symbolMargin=_}var I=f*(y/2),C=c.pathPosition=[];C[d.index]=n[d.wh]/2,C[p.index]="start"===a?I:"end"===a?l-I:l/2,o&&(C[0]+=o[0],C[1]+=o[1]);var T=c.bundlePosition=[];T[d.index]=n[d.xy],T[p.index]=n[p.xy];var A=c.barRectShape=Y({},n);A[p.wh]=f*Math.max(Math.abs(n[p.wh]),Math.abs(C[p.index]+I)),A[d.wh]=n[d.wh];var D=c.clipShape={};D[d.xy]=-n[d.xy],D[d.wh]=h.ecSize[d.wh],D[p.xy]=0,D[p.wh]=n[p.wh]}(n,d,r,o,0,p,s,c.valueLineWidth,c.boundingLength,c.repeatCutLength,i,c),c}function pE(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function fE(t){var e=t.symbolPatternSize,n=rm(t.symbolType,-e/2,-e/2,e,e);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function gE(t,e,n,i){var r=t.__pictorialBundle,o=n.symbolSize,a=n.valueLineWidth,s=n.pathPosition,l=e.valueDim,u=n.repeatTimes||0,h=0,c=o[e.valueDim.index]+a+2*n.symbolMargin;for(IE(t,(function(t){t.__pictorialAnimationIndex=h,t.__pictorialRepeatTimes=u,h0:i<0)&&(r=u-1-t),e[l.index]=c*(r-u/2+.5)+s[l.index],{x:e[0],y:e[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation}}}function yE(t,e,n,i){var r=t.__pictorialBundle,o=t.__pictorialMainPath;o?CE(o,null,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:n.symbolScale[0],scaleY:n.symbolScale[1],rotation:n.rotation},n,i):(o=t.__pictorialMainPath=fE(n),r.add(o),CE(o,{x:n.pathPosition[0],y:n.pathPosition[1],scaleX:0,scaleY:0,rotation:n.rotation},{scaleX:n.symbolScale[0],scaleY:n.symbolScale[1]},n,i))}function vE(t,e,n){var i=Y({},e.barRectShape),r=t.__pictorialBarRect;r?CE(r,null,{shape:i},e,n):((r=t.__pictorialBarRect=new Il({z2:2,shape:i,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(r))}function mE(t,e,n,i){if(n.symbolClip){var r=t.__pictorialClipPath,a=Y({},n.clipShape),s=e.valueDim,l=n.animationModel,u=n.dataIndex;if(r)Zu(r,{shape:a},l,u);else{a[s.wh]=0,r=new Il({shape:a}),t.__pictorialBundle.setClipPath(r),t.__pictorialClipPath=r;var h={};h[s.wh]=n.clipShape[s.wh],o[i?"updateProps":"initProps"](r,{shape:h},l,u)}}}function xE(t,e){var n=t.getItemModel(e);return n.getAnimationDelayParams=_E,n.isAnimationEnabled=bE,n}function _E(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function bE(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function wE(t,e,n,i){var r=new yo,o=new yo;return r.add(o),r.__pictorialBundle=o,o.x=n.bundlePosition[0],o.y=n.bundlePosition[1],n.symbolRepeat?gE(r,e,n):yE(r,0,n),vE(r,n,i),mE(r,e,n,i),r.__pictorialShapeStr=ME(t,n),r.__pictorialSymbolMeta=n,r}function SE(t,e,n,i){var r=i.__pictorialBarRect;r&&r.removeTextContent();var o=[];IE(i,(function(t){o.push(t)})),i.__pictorialMainPath&&o.push(i.__pictorialMainPath),i.__pictorialClipPath&&(n=null),tt(o,(function(t){Ju(t,{scaleX:0,scaleY:0},n,e,(function(){i.parent&&i.parent.remove(i)}))})),t.setItemGraphicEl(e,null)}function ME(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function IE(t,e,n){tt(t.__pictorialBundle.children(),(function(i){i!==t.__pictorialBarRect&&e.call(n,i)}))}function CE(t,e,n,i,r,a){e&&t.attr(e),i.symbolClip&&!r?n&&t.attr(n):n&&o[r?"updateProps":"initProps"](t,n,i.animationModel,i.dataIndex,a)}function TE(t,e,n){var i=n.dataIndex,r=n.itemModel,o=r.getModel("emphasis"),a=o.getModel("itemStyle").getItemStyle(),s=r.getModel(["blur","itemStyle"]).getItemStyle(),l=r.getModel(["select","itemStyle"]).getItemStyle(),u=r.getShallow("cursor"),h=o.get("focus"),c=o.get("blurScope"),d=o.get("scale");IE(t,(function(t){if(t instanceof vl){var e=t.style;t.useStyle(Y({image:e.image,x:e.x,y:e.y,width:e.width,height:e.height},n.style))}else t.useStyle(n.style);var i=t.ensureState("emphasis");i.style=a,d&&(i.scaleX=1.1*t.scaleX,i.scaleY=1.1*t.scaleY),t.ensureState("blur").style=s,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=n.z2}));var p=e.valueDim.posDesc[+(n.boundingLength>0)];oh(t.__pictorialBarRect,ah(r),{labelFetcher:e.seriesModel,labelDataIndex:i,defaultText:tI(e.seriesModel.getData(),i),inheritColor:n.style.fill,defaultOpacity:n.style.opacity,defaultOutsidePosition:p}),zu(t,h,c,o.get("disabled"))}function AE(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}const DE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group,r=t.getData(),o=this._data,a=t.coordinateSystem,s=a.getBaseAxis().isHorizontal(),l=a.master.getRect(),u={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:a,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:s,valueDim:hE[+s],categoryDim:hE[1-+s]};return r.diff(o).add((function(t){if(r.hasValue(t)){var e=xE(r,t),n=dE(r,t,e,u),o=wE(r,u,n);r.setItemGraphicEl(t,o),i.add(o),TE(o,u,n)}})).update((function(t,e){var n=o.getItemGraphicEl(e);if(r.hasValue(t)){var a=xE(r,t),s=dE(r,t,a,u),l=ME(r,s);n&&l!==n.__pictorialShapeStr&&(i.remove(n),r.setItemGraphicEl(t,null),n=null),n?function(t,e,n){var i=n.animationModel,r=n.dataIndex;Zu(t.__pictorialBundle,{x:n.bundlePosition[0],y:n.bundlePosition[1]},i,r),n.symbolRepeat?gE(t,e,n,!0):yE(t,0,n,!0),vE(t,n,!0),mE(t,e,n,!0)}(n,u,s):n=wE(r,u,s,!0),r.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=s,i.add(n),TE(n,u,s)}else i.remove(n)})).remove((function(t){var e=o.getItemGraphicEl(t);e&&SE(o,t,e.__pictorialSymbolMeta.animationModel,e)})).execute(),this._data=r,this.group},e.prototype.remove=function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl((function(e){SE(i,Wl(e).dataIndex,t,e)})):n.removeAll()},e.type="pictorialBar",e}(Xy),kE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.hasSymbolVisual=!0,n.defaultSymbol="roundRect",n}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=Nh(VI.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}(VI);var LE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._layers=[],n}return m(e,t),e.prototype.render=function(t,e,n){var i=t.getData(),r=this,o=this.group,a=t.getLayerSeries(),s=i.getLayout("layoutInfo"),l=s.rect,u=s.boundaryGap;function h(t){return t.name}o.x=0,o.y=l.y+u[0];var c=new x_(this._layersSeries||[],a,h,h),d=[];function p(e,n,s){var l=r._layers;if("remove"!==e){for(var u,h,c=[],p=[],f=a[n].indices,g=0;go&&(o=s),i.push(s)}for(var u=0;uo&&(o=c)}return{y0:r,max:o}}(l),h=u.y0,c=n/u.max,d=o.length,p=o[0].indices.length,f=0;fMath.PI/2?"right":"left"):S&&"center"!==S?"left"===S?(m=r.r0+w,a>Math.PI/2&&(S="right")):"right"===S&&(m=r.r-w,a>Math.PI/2&&(S="left")):(m=o===2*Math.PI&&0===r.r0?0:(r.r+r.r0)/2,S="center"),g.style.align=S,g.style.verticalAlign=f(d,"verticalAlign")||"middle",g.x=m*s+r.cx,g.y=m*l+r.cy;var M=f(d,"rotate"),I=0;"radial"===M?(I=Xs(-a))>Math.PI/2&&I<1.5*Math.PI&&(I+=Math.PI):"tangential"===M?(I=Math.PI/2-a)>Math.PI/2?I-=Math.PI:I<-Math.PI/2&&(I+=Math.PI):dt(M)&&(I=M*Math.PI/180),g.rotation=Xs(I)})),h.dirtyStyle()},e}(Tg);const BE=zE;var VE="sunburstRootToNode",FE="sunburstHighlight",GE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this;this.seriesModel=t,this.api=n,this.ecModel=e;var o=t.getData(),a=o.tree.root,s=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),h=[];s.eachNode((function(t){h.push(t)}));var c=this._oldChildren||[];!function(i,r){function s(t){return t.getId()}function h(s,h){!function(i,r){if(u||!i||i.getValue()||(i=null),i!==a&&r!==a)if(r&&r.piece)i?(r.piece.updateData(!1,i,t,e,n),o.setItemGraphicEl(i.dataIndex,r.piece)):(h=r)&&h.piece&&(l.remove(h.piece),h.piece=null);else if(i){var s=new BE(i,t,e,n);l.add(s),o.setItemGraphicEl(i.dataIndex,s)}var h}(null==s?null:i[s],null==h?null:r[h])}0===i.length&&0===r.length||new x_(r,i,s,s).add(h).update(h).remove(st(h,null)).execute()}(h,c),function(i,o){o.depth>0?(r.virtualPiece?r.virtualPiece.updateData(!1,i,t,e,n):(r.virtualPiece=new BE(i,t,e,n),l.add(r.virtualPiece)),o.piece.off("click"),r.virtualPiece.on("click",(function(t){r._rootToNode(o.parentNode)}))):r.virtualPiece&&(l.remove(r.virtualPiece),r.virtualPiece=null)}(a,s),this._initEvents(),this._oldChildren=h},e.prototype._initEvents=function(){var t=this;this.group.off("click"),this.group.on("click",(function(e){var n=!1;t.seriesModel.getViewRoot().eachNode((function(i){if(!n&&i.piece&&i.piece===e.target){var r=i.getModel().get("nodeClick");if("rootToNode"===r)t._rootToNode(i);else if("link"===r){var o=i.getModel(),a=o.get("link");a&&Dc(a,o.get("target",!0)||"_blank")}n=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:VE,from:this.uid,seriesId:this.seriesModel.id,targetNode:t})},e.prototype.containPoint=function(t,e){var n=e.getData().getItemLayout(0);if(n){var i=t[0]-n.cx,r=t[1]-n.cy,o=Math.sqrt(i*i+r*r);return o<=n.r&&o>=n.r0}},e.type="sunburst",e}(Xy);const WE=GE;function HE(t){var e=0;tt(t.children,(function(t){HE(t);var n=t.value;lt(n)&&(n=n[0]),e+=n}));var n=t.value;lt(n)&&(n=n[0]),(null==n||isNaN(n))&&(n=e),n<0&&(n=0),lt(t.value)?t.value[0]=n:t.value=n}const $E=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.ignoreStyleOnData=!0,n}return m(e,t),e.prototype.getInitialData=function(t,e){var n={name:t.name,children:t.data};HE(n);var i=this._levelModels=et(t.levels||[],(function(t){return new Lh(t,this,e)}),this),r=hk.createTree(n,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var n=r.getNodeByDataIndex(e),o=i[n.depth];return o&&(t.parentModel=o),t}))}));return r.data},e.prototype.optionUpdated=function(){this.resetViewRoot()},e.prototype.getDataParams=function(e){var n=t.prototype.getDataParams.apply(this,arguments),i=this.getData().tree.getNodeByDataIndex(e);return n.treePathInfo=fk(i,this),n},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(){bk(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}(zf);var jE=Math.PI/180;function UE(t,e,n){e.eachSeriesByType(t,(function(t){var e=t.get("center"),i=t.get("radius");lt(i)||(i=[0,i]),lt(e)||(e=[e,e]);var r=n.getWidth(),o=n.getHeight(),a=Math.min(r,o),s=Do(e[0],r),l=Do(e[1],o),u=Do(i[0],a/2),h=Do(i[1],a/2),c=-t.get("startAngle")*jE,d=t.get("minAngle")*jE,p=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,y=t.get("sort");null!=y&&YE(f,y);var v=0;tt(f.children,(function(t){!isNaN(t.getValue())&&v++}));var m=f.getValue(),x=Math.PI/(m||v)*2,_=f.depth>0,b=f.height-(_?-1:1),w=(h-u)/(b||1),S=t.get("clockwise"),M=t.get("stillShowZeroSum"),I=S?1:-1,C=function(e,n){if(e){var i=n;if(e!==p){var r=e.getValue(),o=0===m&&M?x:r*x;o1;)r=r.parentNode;var o=n.getColorFromPalette(r.name||r.dataIndex+"",e);return t.depth>1&&ht(o)&&(o=Ci(o,(t.depth-1)/(i-1)*.5)),o}(r,t,i.root.height)),Y(n.ensureUniqueItemVisual(r.dataIndex,"style"),o)}))}))}var ZE={color:"fill",borderColor:"stroke"},qE={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},KE=fa();const JE=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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 tb(null,this)},e.prototype.getDataParams=function(e,n,i){var r=t.prototype.getDataParams.call(this,e,n);return i&&(r.info=KE(i).info),r},e.type="series.custom",e.dependencies=["grid","polar","geo","singleAxis","calendar"],e.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},e}(zf);function QE(t,e){return e=e||[0,0],et(["x","y"],(function(n,i){var r=this.getAxis(n),o=e[i],a=t[i]/2;return"category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a))}),this)}function tz(t,e){return e=e||[0,0],et([0,1],(function(n){var i=e[n],r=t[n]/2,o=[],a=[];return o[n]=i-r,a[n]=i+r,o[1-n]=a[1-n]=e[1-n],Math.abs(this.dataToPoint(o)[n]-this.dataToPoint(a)[n])}),this)}function ez(t,e){var n=this.getAxis(),i=e instanceof Array?e[0]:e,r=(t instanceof Array?t[0]:t)/2;return"category"===n.type?n.getBandWidth():Math.abs(n.dataToCoord(i-r)-n.dataToCoord(i+r))}function nz(t,e){return e=e||[0,0],et(["Radius","Angle"],(function(n,i){var r=this["get"+n+"Axis"](),o=e[i],a=t[i]/2,s="category"===r.type?r.getBandWidth():Math.abs(r.dataToCoord(o-a)-r.dataToCoord(o+a));return"Angle"===n&&(s=s*Math.PI/180),s}),this)}function iz(t,e,n,i){return t&&(t.legacy||!1!==t.legacy&&!n&&!i&&"tspan"!==e&&("text"===e||Bt(t,"text")))}function rz(t,e,n){var i,r,o,a=t;if("text"===e)o=a;else{o={},Bt(a,"text")&&(o.text=a.text),Bt(a,"rich")&&(o.rich=a.rich),Bt(a,"textFill")&&(o.fill=a.textFill),Bt(a,"textStroke")&&(o.stroke=a.textStroke),Bt(a,"fontFamily")&&(o.fontFamily=a.fontFamily),Bt(a,"fontSize")&&(o.fontSize=a.fontSize),Bt(a,"fontStyle")&&(o.fontStyle=a.fontStyle),Bt(a,"fontWeight")&&(o.fontWeight=a.fontWeight),r={type:"text",style:o,silent:!0},i={};var s=Bt(a,"textPosition");n?i.position=s?a.textPosition:"inside":s&&(i.position=a.textPosition),Bt(a,"textPosition")&&(i.position=a.textPosition),Bt(a,"textOffset")&&(i.offset=a.textOffset),Bt(a,"textRotation")&&(i.rotation=a.textRotation),Bt(a,"textDistance")&&(i.distance=a.textDistance)}return oz(o,t),tt(o.rich,(function(t){oz(t,t)})),{textConfig:i,textContent:r}}function oz(t,e){e&&(e.font=e.textFont||e.font,Bt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),Bt(e,"textAlign")&&(t.align=e.textAlign),Bt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),Bt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),Bt(e,"textWidth")&&(t.width=e.textWidth),Bt(e,"textHeight")&&(t.height=e.textHeight),Bt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),Bt(e,"textPadding")&&(t.padding=e.textPadding),Bt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),Bt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),Bt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),Bt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),Bt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),Bt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),Bt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function az(t,e,n){var i=t;i.textPosition=i.textPosition||n.position||"inside",null!=n.offset&&(i.textOffset=n.offset),null!=n.rotation&&(i.textRotation=n.rotation),null!=n.distance&&(i.textDistance=n.distance);var r=i.textPosition.indexOf("inside")>=0,o=t.fill||"#000";sz(i,e);var a=null==i.textFill;return r?a&&(i.textFill=n.insideFill||"#fff",!i.textStroke&&n.insideStroke&&(i.textStroke=n.insideStroke),!i.textStroke&&(i.textStroke=o),null==i.textStrokeWidth&&(i.textStrokeWidth=2)):(a&&(i.textFill=t.fill||n.outsideFill||"#000"),!i.textStroke&&n.outsideStroke&&(i.textStroke=n.outsideStroke)),i.text=e.text,i.rich=e.rich,tt(e.rich,(function(t){sz(t,t)})),i}function sz(t,e){e&&(Bt(e,"fill")&&(t.textFill=e.fill),Bt(e,"stroke")&&(t.textStroke=e.fill),Bt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),Bt(e,"font")&&(t.font=e.font),Bt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),Bt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),Bt(e,"fontSize")&&(t.fontSize=e.fontSize),Bt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),Bt(e,"align")&&(t.textAlign=e.align),Bt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),Bt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),Bt(e,"width")&&(t.textWidth=e.width),Bt(e,"height")&&(t.textHeight=e.height),Bt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),Bt(e,"padding")&&(t.textPadding=e.padding),Bt(e,"borderColor")&&(t.textBorderColor=e.borderColor),Bt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),Bt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),Bt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),Bt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),Bt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),Bt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),Bt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),Bt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),Bt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),Bt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var lz={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},uz=ot(lz),hz=(nt(jr,(function(t,e){return t[e]=1,t}),{}),jr.join(", "),["","style","shape","extra"]),cz=fa();function dz(t,e,n,i,r){var o=t+"Animation",a=Yu(t,i,r)||{},s=cz(e).userDuring;return a.duration>0&&(a.during=s?at(xz,{el:e,userDuring:s}):null,a.setToFinal=!0,a.scope=t),Y(a,n[o]),a}function pz(t,e,n,i){var r=(i=i||{}).dataIndex,o=i.isInit,a=i.clearStyle,s=n.isAnimationEnabled(),l=cz(t),u=e.style;l.userDuring=e.during;var h={},c={};if(function(t,e,n){for(var i=0;i=0)){var c=t.getAnimationStyleProps(),d=c?c.style:null;if(d){!r&&(r=i.style={});var p=ot(n);for(u=0;u0&&t.animateFrom(d,p)}else!function(t,e,n,i,r){if(r){var o=dz("update",t,e,i,n);o.duration>0&&t.animateFrom(r,o)}}(t,e,r||0,n,h);fz(t,e),u?t.dirty():t.markRedraw()}function fz(t,e){for(var n=cz(t).leaveToProps,i=0;i=0){!o&&(o=i[t]={});var d=ot(a);for(h=0;hi[1]&&i.reverse(),{coordSys:{type:"polar",cx:t.cx,cy:t.cy,r:i[1],r0:i[0]},api:{coord:function(i){var r=e.dataToRadius(i[0]),o=n.dataToAngle(i[1]),a=t.coordToPoint([r,o]);return a.push(r,o*Math.PI/180),a},size:at(nz,t)}}},calendar:function(t){var e=t.getRect(),n=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:n.start,end:n.end,weeks:n.weeks,dayCount:n.allDay}},api:{coord:function(e,n){return t.dataToPoint(e,n)}}}}};function Bz(t){return t instanceof hl}function Vz(t){return t instanceof ls}const Fz=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n,i){this._progressiveEls=null;var r=this._data,o=t.getData(),a=this.group,s=jz(t,o,e,n);r||a.removeAll(),o.diff(r).add((function(e){Yz(n,null,e,s(e,i),t,a,o)})).remove((function(e){var n=r.getItemGraphicEl(e);n&&gz(n,KE(n).option,t)})).update((function(e,l){var u=r.getItemGraphicEl(l);Yz(n,u,e,s(e,i),t,a,o)})).execute();var l=t.get("clip",!0)?wI(t.coordinateSystem,!1,t):null;l?a.setClipPath(l):a.removeClipPath(),this._data=o},e.prototype.incrementalPrepareRender=function(t,e,n){this.group.removeAll(),this._data=null},e.prototype.incrementalRender=function(t,e,n,i,r){var o=e.getData(),a=jz(e,o,n,i),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(r,n):void 0}var o=e.get(i.name,n),a=i&&i.ordinalMeta;return a?a.categories[o]:o},styleEmphasis:function(n,i){null==i&&(i=s);var r=m(i,Tz).getItemStyle(),o=x(i,Tz),a=sh(o,null,null,!0,!0);a.text=o.getShallow("show")?St(t.getFormattedLabel(i,Tz),t.getFormattedLabel(i,Az),tI(e,i)):null;var l=lh(o,null,!0);return b(n,r),r=az(r,a,l),n&&_(r,n),r.legacy=!0,r},visual:function(t,n){if(null==n&&(n=s),Bt(ZE,t)){var i=e.getItemVisual(n,"style");return i?i[ZE[t]]:null}if(Bt(qE,t))return e.getItemVisual(n,t)},barLayout:function(t){if("cartesian2d"===o.type)return function(t){var e=[],n=t.axis,i="axis0";if("category"===n.type){for(var r=n.getBandWidth(),o=0;o=c;f--){var g=e.childAt(f);Qz(e,g,r)}}}(t,c,n,i,r),a>=0?o.replaceAt(c,a):o.add(c),c}function Zz(t,e,n){var i,r=KE(t),o=e.type,a=e.shape,s=e.style;return n.isUniversalTransitionEnabled()||null!=o&&o!==r.customGraphicType||"path"===o&&(i=a)&&(Bt(i,"pathData")||Bt(i,"d"))&&iB(a)!==r.customPathData||"image"===o&&Bt(s,"image")&&s.image!==r.customImagePath}function qz(t,e,n){var i=e?Kz(t,e):t,r=e?Jz(t,i,Tz):t.style,o=t.type,a=i?i.textConfig:null,s=t.textContent,l=s?e?Kz(s,e):s:null;if(r&&(n.isLegacy||iz(r,o,!!a,!!l))){n.isLegacy=!0;var u=rz(r,o,!e);!a&&u.textConfig&&(a=u.textConfig),!l&&u.textContent&&(l=u.textContent)}if(!e&&l){var h=l;!h.type&&(h.type="text")}var c=e?n[e]:n.normal;c.cfg=a,c.conOpt=l}function Kz(t,e){return e?t?t[e]:null:t}function Jz(t,e,n){var i=e&&e.style;return null==i&&n===Tz&&t&&(i=t.styleEmphasis),i}function Qz(t,e,n){e&&gz(e,KE(t).option,n)}function tB(t,e){var n=t&&t.name;return null!=n?n:Rz+e}function eB(t,e){var n=this.context,i=null!=t?n.newChildren[t]:null,r=null!=e?n.oldChildren[e]:null;Xz(n.api,r,n.dataIndex,i,n.seriesModel,n.group)}function nB(t){var e=this.context,n=e.oldChildren[t];n&&gz(n,KE(n).option,e.seriesModel)}function iB(t){return t&&(t.pathData||t.d)}var rB=fa(),oB=$,aB=at,sB=function(){function t(){this._dragging=!1,this.animationThreshold=15}return t.prototype.render=function(t,e,n,i){var r=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=n,i||this._lastValue!==r||this._lastStatus!==o){this._lastValue=r,this._lastStatus=o;var a=this._group,s=this._handle;if(!o||"hide"===o)return a&&a.hide(),void(s&&s.hide());a&&a.show(),s&&s.show();var l={};this.makeElOption(l,r,t,e,n);var u=l.graphicKey;u!==this._lastGraphicKey&&this.clear(n),this._lastGraphicKey=u;var h=this._moveAnimation=this.determineAnimation(t,e);if(a){var c=st(lB,e,h);this.updatePointerEl(a,l,c),this.updateLabelEl(a,l,c,e)}else a=this._group=new yo,this.createPointerEl(a,l,t,e),this.createLabelEl(a,l,t,e),n.getZr().add(a);dB(a,e,!0),this._renderHandle(r)}},t.prototype.remove=function(t){this.clear(t)},t.prototype.dispose=function(t){this.clear(t)},t.prototype.determineAnimation=function(t,e){var n=e.get("animation"),i=t.axis,r="category"===i.type,o=e.get("snap");if(!o&&!r)return!1;if("auto"===n||null==n){var a=this.animationThreshold;if(r&&i.getBandWidth()>a)return!0;if(o){var s=yT(t).seriesDataCount,l=i.getExtent();return Math.abs(l[0]-l[1])/s>a}return!1}return!0===n},t.prototype.makeElOption=function(t,e,n,i,r){},t.prototype.createPointerEl=function(t,e,n,i){var r=e.pointer;if(r){var a=rB(t).pointerEl=new o[r.type](oB(e.pointer));t.add(a)}},t.prototype.createLabelEl=function(t,e,n,i){if(e.label){var r=rB(t).labelEl=new Gl(oB(e.label));t.add(r),hB(r,i)}},t.prototype.updatePointerEl=function(t,e,n){var i=rB(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),n(i,{shape:e.pointer.shape}))},t.prototype.updateLabelEl=function(t,e,n,i){var r=rB(t).labelEl;r&&(r.setStyle(e.label.style),n(r,{x:e.label.x,y:e.label.y}),hB(r,i))},t.prototype._renderHandle=function(t){if(!this._dragging&&this.updateHandleTransform){var e,n=this._axisPointerModel,i=this._api.getZr(),r=this._handle,o=n.getModel("handle"),a=n.get("status");if(!o.get("show")||!a||"hide"===a)return r&&i.remove(r),void(this._handle=null);this._handle||(e=!0,r=this._handle=Oy(o.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Re(t.event)},onmousedown:aB(this._onHandleDragMove,this,0,0),drift:aB(this._onHandleDragMove,this),ondragend:aB(this._onHandleDragEnd,this)}),i.add(r)),dB(r,n,!1),r.setStyle(o.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var s=o.get("size");lt(s)||(s=[s,s]),r.scaleX=s[0]/2,r.scaleY=s[1]/2,Qy(this,"_doDispatchAxisPointer",o.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){lB(this._axisPointerModel,!e&&this._moveAnimation,this._handle,cB(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},t.prototype._onHandleDragMove=function(t,e){var n=this._handle;if(n){this._dragging=!0;var i=this.updateHandleTransform(cB(n),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,n.stopAnimation(),n.attr(cB(i)),rB(n).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(),n=this._group,i=this._handle;e&&n&&(this._lastGraphicKey=null,n&&e.remove(n),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),tv(this,"_doDispatchAxisPointer")},t.prototype.doClear=function(){},t.prototype.buildLabel=function(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}},t}();function lB(t,e,n,i){uB(rB(n).lastProp,i)||(rB(n).lastProp=i,e?Zu(n,i,t):(n.stopAnimation(),n.attr(i)))}function uB(t,e){if(pt(t)&&pt(e)){var n=!0;return tt(e,(function(e,i){n=n&&uB(t[i],e)})),!!n}return t===e}function hB(t,e){t[e.get(["label","show"])?"show":"hide"]()}function cB(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function dB(t,e,n){var i=e.get("z"),r=e.get("zlevel");t&&t.traverse((function(t){"group"!==t.type&&(null!=i&&(t.z=i),null!=r&&(t.zlevel=r),t.silent=n)}))}const pB=sB;function fB(t){var e,n=t.get("type"),i=t.getModel(n+"Style");return"line"===n?(e=i.getLineStyle()).fill=null:"shadow"===n&&((e=i.getAreaStyle()).stroke=null),e}function gB(t,e,n,i,r){var o=yB(n.get("value"),e.axis,e.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),a=n.getModel("label"),s=_c(a.get("padding")||0),l=a.getFont(),u=Kr(o,l),h=r.position,c=u.width+s[1]+s[3],d=u.height+s[0]+s[2],p=r.align;"right"===p&&(h[0]-=c),"center"===p&&(h[0]-=c/2);var f=r.verticalAlign;"bottom"===f&&(h[1]-=d),"middle"===f&&(h[1]-=d/2),function(t,e,n,i){var r=i.getWidth(),o=i.getHeight();t[0]=Math.min(t[0]+e,r)-e,t[1]=Math.min(t[1]+n,o)-n,t[0]=Math.max(t[0],0),t[1]=Math.max(t[1],0)}(h,c,d,i);var g=a.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:h[0],y:h[1],style:sh(a,{text:o,font:l,fill:a.getTextColor(),padding:s,backgroundColor:g}),z2:10}}function yB(t,e,n,i,r){t=e.scale.parse(t);var o=e.scale.getLabel({value:t},{precision:r.precision}),a=r.formatter;if(a){var s={value:aw(e,{value:t}),axisDimension:e.dim,axisIndex:e.index,seriesData:[]};tt(i,(function(t){var e=n.getSeriesByIndex(t.seriesIndex),i=t.dataIndexInside,r=e&&e.getDataParams(i);r&&s.seriesData.push(r)})),ht(a)?o=a.replace("{value}",o):ut(a)&&(o=a(s))}return o}function vB(t,e,n){var i=[1,0,0,1,0,0];return je(i,i,n.rotation),$e(i,i,n.position),Ty([t.dataToCoord(e),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],i)}function mB(t,e,n,i,r,o){var a=fT.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=r.get(["label","margin"]),gB(e,i,r,o,{position:vB(i.axis,t,n),align:a.textAlign,verticalAlign:a.textVerticalAlign})}function xB(t,e,n){return{x1:t[n=n||0],y1:t[1-n],x2:e[n],y2:e[1-n]}}function _B(t,e,n){return{x:t[n=n||0],y:t[1-n],width:e[n],height:e[1-n]}}function bB(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}var wB=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.grid,s=i.get("type"),l=SB(a,o).getOtherAxis(o).getGlobalExtent(),u=o.toGlobalCoord(o.dataToCoord(e,!0));if(s&&"none"!==s){var h=fB(i),c=MB[s](o,u,l);c.style=h,t.graphicKey=c.type,t.pointer=c}mB(e,t,KC(a.model,n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=KC(e.axis.grid.model,e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=vB(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.grid,a=r.getGlobalExtent(!0),s=SB(o,r).getOtherAxis(r).getGlobalExtent(),l="x"===r.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 h=(s[1]+s[0])/2,c=[h,h];return c[l]=u[l],{x:u[0],y:u[1],rotation:t.rotation,cursorPoint:c,tooltipOption:[{verticalAlign:"middle"},{align:"center"}][l]}},e}(pB);function SB(t,e){var n={};return n[e.dim+"AxisIndex"]=e.index,t.getCartesian(n)}var MB={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:xB([e,n[0]],[e,n[1]],IB(t))}},shadow:function(t,e,n){var i=Math.max(1,t.getBandWidth()),r=n[1]-n[0];return{type:"Rect",shape:_B([e-i/2,n[0]],[i,r],IB(t))}}};function IB(t){return"x"===t.dim?0:1}const CB=wB,TB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="axisPointer",e.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!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}(Hc);var AB=fa(),DB=tt;function kB(t,e,n){if(!b.node){var i=e.getZr();AB(i).records||(AB(i).records={}),function(t,e){function n(n,i){t.on(n,(function(n){var r=function(t){var e={showTip:[],hideTip:[]},n=function(i){var r=e[i.type];r?r.push(i):(i.dispatchAction=n,t.dispatchAction(i))};return{dispatchAction:n,pendings:e}}(e);DB(AB(t).records,(function(t){t&&i(t,n,r.dispatchAction)})),function(t,e){var n,i=t.showTip.length,r=t.hideTip.length;i?n=t.showTip[i-1]:r&&(n=t.hideTip[r-1]),n&&(n.dispatchAction=null,e.dispatchAction(n))}(r.pendings,e)}))}AB(t).initialized||(AB(t).initialized=!0,n("click",st(PB,"click")),n("mousemove",st(PB,"mousemove")),n("globalout",LB))}(i,e),(AB(i).records[t]||(AB(i).records[t]={})).handler=n}}function LB(t,e,n){t.handler("leave",null,n)}function PB(t,e,n,i){e.handler(t,n,i)}function OB(t,e){if(!b.node){var n=e.getZr();(AB(n).records||{})[t]&&(AB(n).records[t]=null)}}var NB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=e.getComponent("tooltip"),r=t.get("triggerOn")||i&&i.get("triggerOn")||"mousemove|click";kB("axisPointer",n,(function(t,e,n){"none"!==r&&("leave"===t||r.indexOf(t)>=0)&&n({type:"updateAxisPointer",currTrigger:t,x:e&&e.offsetX,y:e&&e.offsetY})}))},e.prototype.remove=function(t,e){OB("axisPointer",e)},e.prototype.dispose=function(t,e){OB("axisPointer",e)},e.type="axisPointer",e}(Vf);const RB=NB;function EB(t,e){var n,i=[],r=t.seriesIndex;if(null==r||!(n=e.getSeriesByIndex(r)))return{point:[]};var o=n.getData(),a=pa(o,t);if(null==a||a<0||lt(a))return{point:[]};var s=o.getItemGraphicEl(a),l=n.coordinateSystem;if(n.getTooltipPosition)i=n.getTooltipPosition(a)||[];else if(l&&l.dataToPoint)if(t.isStacked){var u=l.getBaseAxis(),h=l.getOtherAxis(u).dim,c=u.dim,d="x"===h||"radius"===h?1:0,p=o.mapDimension(c),f=[];f[d]=o.get(p,a),f[1-d]=o.get(o.getCalculationInfo("stackResultDimension"),a),i=l.dataToPoint(f)||[]}else i=l.dataToPoint(o.getValues(et(l.dimensions,(function(t){return o.mapDimension(t)})),a))||[];else if(s){var g=s.getBoundingRect().clone();g.applyTransform(s.transform),i=[g.x+g.width/2,g.y+g.height/2]}return{point:i,el:s}}var zB=fa();function BB(t,e,n){var i=t.currTrigger,r=[t.x,t.y],o=t,a=t.dispatchAction||at(n.dispatchAction,n),s=e.getComponent("axisPointer").coordSysAxesInfo;if(s){HB(r)&&(r=EB({seriesIndex:o.seriesIndex,dataIndex:o.dataIndex},e).point);var l=HB(r),u=o.axesInfo,h=s.axesInfo,c="leave"===i||HB(r),d={},p={},f={list:[],map:{}},g={showPointer:st(FB,p),showTooltip:st(GB,f)};tt(s.coordSysMap,(function(t,e){var n=l||t.containPoint(r);tt(s.coordSysAxesInfo[e],(function(t,e){var i=t.axis,o=function(t,e){for(var n=0;n<(t||[]).length;n++){var i=t[n];if(e.axis.dim===i.axisDim&&e.axis.model.componentIndex===i.axisIndex)return i}}(u,t);if(!c&&n&&(!u||o)){var a=o&&o.value;null!=a||l||(a=i.pointToData(r)),null!=a&&VB(t,a,g,!1,d)}}))}));var y={};return tt(h,(function(t,e){var n=t.linkGroup;n&&!p[e]&&tt(n.axesInfo,(function(e,i){var r=p[i];if(e!==t&&r){var o=r.value;n.mapper&&(o=t.axis.scale.parse(n.mapper(o,WB(e),WB(t)))),y[t.key]=o}}))})),tt(y,(function(t,e){VB(h[e],t,g,!0,d)})),function(t,e,n){var i=n.axesInfo=[];tt(e,(function(e,n){var r=e.axisPointerModel.option,o=t[n];o?(!e.useHandle&&(r.status="show"),r.value=o.value,r.seriesDataIndices=(o.payloadBatch||[]).slice()):!e.useHandle&&(r.status="hide"),"show"===r.status&&i.push({axisDim:e.axis.dim,axisIndex:e.axis.model.componentIndex,value:r.value})}))}(p,h,d),function(t,e,n,i){if(!HB(e)&&t.list.length){var r=((t.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};i({type:"showTip",escapeConnect:!0,x:e[0],y:e[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:r.dataIndexInside,dataIndex:r.dataIndex,seriesIndex:r.seriesIndex,dataByCoordSys:t.list})}else i({type:"hideTip"})}(f,r,t,a),function(t,e,n){var i=n.getZr(),r="axisPointerLastHighlights",o=zB(i)[r]||{},a=zB(i)[r]={};tt(t,(function(t,e){var n=t.axisPointerModel.option;"show"===n.status&&t.triggerEmphasis&&tt(n.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;a[e]=t}))}));var s=[],l=[];tt(o,(function(t,e){!a[e]&&l.push(t)})),tt(a,(function(t,e){!o[e]&&s.push(t)})),l.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}(h,0,n),d}}function VB(t,e,n,i,r){var o=t.axis;if(!o.scale.isBlank()&&o.containData(e))if(t.involveSeries){var a=function(t,e){var n=e.axis,i=n.dim,r=t,o=[],a=Number.MAX_VALUE,s=-1;return tt(e.seriesModels,(function(e,l){var u,h,c=e.getData().mapDimensionsAll(i);if(e.getAxisTooltipData){var d=e.getAxisTooltipData(c,t,n);h=d.dataIndices,u=d.nestestValue}else{if(!(h=e.getData().indicesOfNearest(c[0],t,"category"===n.type?.5:null)).length)return;u=e.getData().get(c[0],h[0])}if(null!=u&&isFinite(u)){var p=t-u,f=Math.abs(p);f<=a&&((f=0&&s<0)&&(a=f,s=p,r=u,o.length=0),tt(h,(function(t){o.push({seriesIndex:e.seriesIndex,dataIndexInside:t,dataIndex:e.getData().getRawIndex(t)})})))}})),{payloadBatch:o,snapToValue:r}}(e,t),s=a.payloadBatch,l=a.snapToValue;s[0]&&null==r.seriesIndex&&Y(r,s[0]),!i&&t.snap&&o.containData(l)&&null!=l&&(e=l),n.showPointer(t,e,s),n.showTooltip(t,a,l)}else n.showPointer(t,e)}function FB(t,e,n,i){t[e.key]={value:n,payloadBatch:i}}function GB(t,e,n,i){var r=n.payloadBatch,o=e.axis,a=o.model,s=e.axisPointerModel;if(e.triggerTooltip&&r.length){var l=e.coordSys.model,u=mT(l),h=t.map[u];h||(h=t.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},t.list.push(h)),h.dataByAxis.push({axisDim:o.dim,axisIndex:a.componentIndex,axisType:a.type,axisId:a.id,value:i,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:r.slice()})}}function WB(t){var e=t.axis.model,n={},i=n.axisDim=t.axis.dim;return n.axisIndex=n[i+"AxisIndex"]=e.componentIndex,n.axisName=n[i+"AxisName"]=e.name,n.axisId=n[i+"AxisId"]=e.id,n}function HB(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function $B(t){bT.registerAxisPointerClass("CartesianAxisPointer",CB),t.registerComponentModel(TB),t.registerComponentView(RB),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 n={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return function(t,e,n){var i=e.getComponent("tooltip"),r=e.getComponent("axisPointer"),o=r.get("link",!0)||[],a=[];tt(n.getCoordinateSystems(),(function(n){if(n.axisPointerEnabled){var s=mT(n.model),l=t.coordSysAxesInfo[s]={};t.coordSysMap[s]=n;var u=n.model.getModel("tooltip",i);if(tt(n.getAxes(),st(p,!1,null)),n.getTooltipAxes&&i&&u.get("show")){var h="axis"===u.get("trigger"),c="cross"===u.get(["axisPointer","type"]),d=n.getTooltipAxes(u.get(["axisPointer","axis"]));(h||c)&&tt(d.baseAxes,st(p,!c||"cross",h)),c&&tt(d.otherAxes,st(p,"cross",!1))}}function p(i,s,h){var c=h.model.getModel("axisPointer",r),d=c.get("show");if(d&&("auto"!==d||i||vT(c))){null==s&&(s=c.get("triggerTooltip")),c=i?function(t,e,n,i,r,o){var a=e.getModel("axisPointer"),s={};tt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){s[t]=$(a.get(t))})),s.snap="category"!==t.type&&!!o,"cross"===a.get("type")&&(s.type="line");var l=s.label||(s.label={});if(null==l.show&&(l.show=!1),"cross"===r){var u=a.get(["label","show"]);if(l.show=null==u||u,!o){var h=s.lineStyle=a.get("crossStyle");h&&X(l,h.textStyle)}}return t.model.getModel("axisPointer",new Lh(s,n,i))}(h,u,r,e,i,s):c;var p=c.get("snap"),f=c.get("triggerEmphasis"),g=mT(h.model),y=s||p||"category"===h.type,v=t.axesInfo[g]={key:g,axis:h,coordSys:n,axisPointerModel:c,triggerTooltip:s,triggerEmphasis:f,involveSeries:y,snap:p,useHandle:vT(c),seriesModels:[],linkGroup:null};l[g]=v,t.seriesInvolved=t.seriesInvolved||y;var m=function(t,e){for(var n=e.model,i=e.dim,r=0;ry?"left":"right",h=Math.abs(l[1]-v)/g<.3?"middle":l[1]>v?"top":"bottom"}return{position:l,align:u,verticalAlign:h}}(e,n,0,a,i.get(["label","margin"]));gB(t,n,i,r,d)},e}(pB),UB={line:function(t,e,n,i){return"angle"===t.dim?{type:"Line",shape:xB(e.coordToPoint([i[0],n]),e.coordToPoint([i[1],n]))}:{type:"Circle",shape:{cx:e.cx,cy:e.cy,r:n}}},shadow:function(t,e,n,i){var r=Math.max(1,t.getBandWidth()),o=Math.PI/180;return"angle"===t.dim?{type:"Sector",shape:bB(e.cx,e.cy,i[0],i[1],(-n-r/2)*o,(r/2-n)*o)}:{type:"Sector",shape:bB(e.cx,e.cy,n-r/2,n+r/2,0,2*Math.PI)}}};const YB=jB,XB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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}(Hc);var ZB=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}(Hc);J(ZB,cw);var qB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="angleAxis",e}(ZB),KB=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="radiusAxis",e}(ZB),JB=function(t){function e(e,n){return t.call(this,"radius",e,n)||this}return m(e,t),e.prototype.pointToData=function(t,e){return this.polar.pointToData(t,e)["radius"===this.dim?0:1]},e}(Ww);JB.prototype.dataToRadius=Ww.prototype.dataToCoord,JB.prototype.radiusToData=Ww.prototype.coordToData;const QB=JB;var tV=fa(),eV=function(t){function e(e,n){return t.call(this,"angle",e,n||[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(),n=t.scale,i=n.getExtent(),r=n.count();if(i[1]-i[0]<1)return 0;var o=i[0],a=t.dataToCoord(o+1)-t.dataToCoord(o),s=Math.abs(a),l=Kr(null==o?"":o+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/s;isNaN(u)&&(u=1/0);var h=Math.max(0,Math.floor(u)),c=tV(t.model),d=c.lastAutoInterval,p=c.lastTickCount;return null!=d&&null!=p&&Math.abs(d-h)<=1&&Math.abs(p-r)<=1&&d>h?h=d:(c.lastTickCount=r,c.lastAutoInterval=h),h},e}(Ww);eV.prototype.dataToAngle=Ww.prototype.dataToCoord,eV.prototype.angleToData=Ww.prototype.coordToData;const nV=eV;var iV=["radius","angle"],rV=function(){function t(t){this.dimensions=iV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new QB,this._angleAxis=new nV,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=[],n=this._angleAxis,i=this._radiusAxis;return n.scale.type===t&&e.push(n),i.scale.type===t&&e.push(i),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 n=this.pointToCoord(t);return[this._radiusAxis.radiusToData(n[0],e),this._angleAxis.angleToData(n[1],e)]},t.prototype.pointToCoord=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=this.getAngleAxis(),r=i.getExtent(),o=Math.min(r[0],r[1]),a=Math.max(r[0],r[1]);i.inverse?o=a-360:a=o+360;var s=Math.sqrt(e*e+n*n);e/=s,n/=s;for(var l=Math.atan2(-n,e)/Math.PI*180,u=la;)l+=360*u;return[s,l]},t.prototype.coordToPoint=function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]},t.prototype.getArea=function(){var t=this.getAngleAxis(),e=this.getRadiusAxis().getExtent().slice();e[0]>e[1]&&e.reverse();var n=t.getExtent(),i=Math.PI/180;return{cx:this.cx,cy:this.cy,r0:e[0],r:e[1],startAngle:-n[0]*i,endAngle:-n[1]*i,clockwise:t.inverse,contain:function(t,e){var n=t-this.cx,i=e-this.cy,r=n*n+i*i-1e-4,o=this.r,a=this.r0;return r<=o*o&&r>=a*a}}},t.prototype.convertToPixel=function(t,e,n){return oV(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return oV(e)===this?this.pointToData(n):null},t}();function oV(t){var e=t.seriesModel,n=t.polarModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const aV=rV;function sV(t,e){var n=this,i=n.getAngleAxis(),r=n.getRadiusAxis();if(i.scale.setExtent(1/0,-1/0),r.scale.setExtent(1/0,-1/0),t.eachSeries((function(t){if(t.coordinateSystem===n){var e=t.getData();tt(hw(e,"radius"),(function(t){r.scale.unionExtentFromData(e,t)})),tt(hw(e,"angle"),(function(t){i.scale.unionExtentFromData(e,t)}))}})),iw(i.scale,i.model),iw(r.scale,r.model),"category"===i.type&&!i.onBand){var o=i.getExtent(),a=360/i.scale.count();i.inverse?o[1]+=a:o[1]-=a,i.setExtent(o[0],o[1])}}function lV(t,e){if(t.type=e.get("type"),t.scale=rw(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 n=e.get("startAngle");t.setExtent(n,n+(t.inverse?-360:360))}e.axis=t,t.model=e}const uV={dimensions:iV,create:function(t,e){var n=[];return t.eachComponent("polar",(function(t,i){var r=new aV(i+"");r.update=sV;var o=r.getRadiusAxis(),a=r.getAngleAxis(),s=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");lV(o,s),lV(a,l),function(t,e,n){var i=e.get("center"),r=n.getWidth(),o=n.getHeight();t.cx=Do(i[0],r),t.cy=Do(i[1],o);var a=t.getRadiusAxis(),s=Math.min(r,o)/2,l=e.get("radius");null==l?l=[0,"100%"]:lt(l)||(l=[0,l]);var u=[Do(l[0],s),Do(l[1],s)];a.inverse?a.setExtent(u[1],u[0]):a.setExtent(u[0],u[1])}(r,t,e),n.push(r),t.coordinateSystem=r,r.model=t})),t.eachSeries((function(t){if("polar"===t.get("coordinateSystem")){var e=t.getReferringComponents("polar",ma).models[0];t.coordinateSystem=e.coordinateSystem}})),n}};var hV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function cV(t,e,n){e[1]>e[0]&&(e=e.slice().reverse());var i=t.coordToPoint([e[0],n]),r=t.coordToPoint([e[1],n]);return{x1:i[0],y1:i[1],x2:r[0],y2:r[1]}}function dV(t){return t.getRadiusAxis().inverse?0:1}function pV(t){var e=t[0],n=t[t.length-1];e&&n&&Math.abs(Math.abs(e.coord-n.coord)-360)<1e-4&&t.pop()}var fV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="PolarAxisPointer",n}return m(e,t),e.prototype.render=function(t,e){if(this.group.removeAll(),t.get("show")){var n=t.axis,i=n.polar,r=i.getRadiusAxis().getExtent(),o=n.getTicksCoords(),a=n.getMinorTicksCoords(),s=et(n.getViewLabels(),(function(t){t=$(t);var e=n.scale,i="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=n.dataToCoord(i),t}));pV(s),pV(o),tt(hV,(function(e){!t.get([e,"show"])||n.scale.isBlank()&&"axisLine"!==e||gV[e](this.group,t,i,o,a,r,s)}),this)}},e.type="angleAxis",e}(bT),gV={axisLine:function(t,e,n,i,r,o){var a,s=e.getModel(["axisLine","lineStyle"]),l=dV(n),u=l?0:1;(a=0===o[u]?new ug({shape:{cx:n.cx,cy:n.cy,r:o[l]},style:s.getLineStyle(),z2:1,silent:!0}):new kg({shape:{cx:n.cx,cy:n.cy,r:o[l],r0:o[u]},style:s.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(a)},axisTick:function(t,e,n,i,r,o){var a=e.getModel("axisTick"),s=(a.get("inside")?-1:1)*a.get("length"),l=o[dV(n)],u=et(i,(function(t){return new Gg({shape:cV(n,[l,l+s],t.coord)})}));t.add(by(u,{style:X(a.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,n,i,r,o){if(r.length){for(var a=e.getModel("axisTick"),s=e.getModel("minorTick"),l=(a.get("inside")?-1:1)*s.get("length"),u=o[dV(n)],h=[],c=0;cf?"left":"right",v=Math.abs(p[1]-g)/d<.3?"middle":p[1]>g?"top":"bottom";if(s&&s[c]){var m=s[c];pt(m)&&m.textStyle&&(a=new Lh(m.textStyle,l,l.ecModel))}var x=new Gl({silent:fT.isLabelSilent(e),style:sh(a,{x:p[0],y:p[1],fill:a.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:i.formattedLabel,align:y,verticalAlign:v})});if(t.add(x),h){var _=fT.makeAxisEventDataBase(e);_.targetType="axisLabel",_.value=i.rawLabel,Wl(x).eventData=_}}),this)},splitLine:function(t,e,n,i,r,o){var a=e.getModel("splitLine").getModel("lineStyle"),s=a.get("color"),l=0;s=s instanceof Array?s:[s];for(var u=[],h=0;h=0?"p":"n",C=_;m&&(i[s][M]||(i[s][M]={p:_,n:_}),C=i[s][M][I]);var T=void 0,A=void 0,D=void 0,k=void 0;if("radius"===c.dim){var L=c.dataToCoord(S)-_,P=o.dataToCoord(M);Math.abs(L)=k})}}}))};var IV={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},CV={splitNumber:5},TV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="polar",e}(Vf);function AV(t,e){e=e||{};var n=t.coordinateSystem,i=t.axis,r={},o=i.position,a=i.orient,s=n.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]}};r.position=["vertical"===a?u.vertical[o]:l[0],"horizontal"===a?u.horizontal[o]:l[3]],r.rotation=Math.PI/2*{horizontal:0,vertical:1}[a],r.labelDirection=r.tickDirection=r.nameDirection={top:-1,bottom:1,right:1,left:-1}[o],t.get(["axisTick","inside"])&&(r.tickDirection=-r.tickDirection),bt(e.labelInside,t.get(["axisLabel","inside"]))&&(r.labelDirection=-r.labelDirection);var h=e.rotate;return null==h&&(h=t.get(["axisLabel","rotate"])),r.labelRotation="top"===o?-h:h,r.z2=1,r}var DV=["axisLine","axisTickLabel","axisName"],kV=["splitArea","splitLine"],LV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.axisPointerClass="SingleAxisPointer",n}return m(e,t),e.prototype.render=function(e,n,i,r){var o=this.group;o.removeAll();var a=this._axisGroup;this._axisGroup=new yo;var s=AV(e),l=new fT(e,s);tt(DV,l.add,l),o.add(this._axisGroup),o.add(l.getGroup()),tt(kV,(function(t){e.get([t,"show"])&&PV[t](this,this.group,this._axisGroup,e)}),this),ky(a,this._axisGroup,e),t.prototype.render.call(this,e,n,i,r)},e.prototype.remove=function(){MT(this)},e.type="singleAxis",e}(bT),PV={splitLine:function(t,e,n,i){var r=i.axis;if(!r.scale.isBlank()){var o=i.getModel("splitLine"),a=o.getModel("lineStyle"),s=a.get("color");s=s instanceof Array?s:[s];for(var l=a.get("width"),u=i.coordinateSystem.getRect(),h=r.isHorizontal(),c=[],d=0,p=r.getTicksCoords({tickModel:o}),f=[],g=[],y=0;y=e.y&&t[1]<=e.y+e.height:n.contain(n.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(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return t instanceof Array&&(t=t[0]),i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i},t.prototype.convertToPixel=function(t,e,n){return FV(e)===this?this.dataToPoint(n):null},t.prototype.convertFromPixel=function(t,e,n){return FV(e)===this?this.pointToData(n):null},t}();function FV(t){var e=t.seriesModel,n=t.singleAxisModel;return n&&n.coordinateSystem||e&&e.coordinateSystem}const GV=VV,WV={create:function(t,e){var n=[];return t.eachComponent("singleAxis",(function(i,r){var o=new GV(i,t,e);o.name="single_"+r,o.resize(i,e),i.coordinateSystem=o,n.push(o)})),t.eachSeries((function(t){if("singleAxis"===t.get("coordinateSystem")){var e=t.getReferringComponents("singleAxis",ma).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),n},dimensions:BV};var HV=["x","y"],$V=["width","height"],jV=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.makeElOption=function(t,e,n,i,r){var o=n.axis,a=o.coordinateSystem,s=XV(a,1-YV(o)),l=a.dataToPoint(e)[0],u=i.get("type");if(u&&"none"!==u){var h=fB(i),c=UV[u](o,l,s);c.style=h,t.graphicKey=c.type,t.pointer=c}mB(e,t,AV(n),n,i,r)},e.prototype.getHandleTransform=function(t,e,n){var i=AV(e,{labelInside:!1});i.labelMargin=n.get(["handle","margin"]);var r=vB(e.axis,t,i);return{x:r[0],y:r[1],rotation:i.rotation+(i.labelDirection<0?Math.PI:0)}},e.prototype.updateHandleTransform=function(t,e,n,i){var r=n.axis,o=r.coordinateSystem,a=YV(r),s=XV(o,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=XV(o,1-a),h=(u[1]+u[0])/2,c=[h,h];return c[a]=l[a],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:c,tooltipOption:{verticalAlign:"middle"}}},e}(pB),UV={line:function(t,e,n){return{type:"Line",subPixelOptimize:!0,shape:xB([e,n[0]],[e,n[1]],YV(t))}},shadow:function(t,e,n){var i=t.getBandWidth(),r=n[1]-n[0];return{type:"Rect",shape:_B([e-i/2,n[0]],[i,r],YV(t))}}};function YV(t){return t.isHorizontal()?0:1}function XV(t,e){var n=t.getRect();return[n[HV[e]],n[HV[e]]+n[$V[e]]]}const ZV=jV;var qV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="single",e}(Vf);function KV(t,e){var n,i=t.cellSize;1===(n=lt(i)?i:t.cellSize=[i,i]).length&&(n[1]=n[0]);var r=et([0,1],(function(t){return function(t,e){return null!=t[Pc[e][0]]||null!=t[Pc[e][1]]&&null!=t[Pc[e][2]]}(e,t)&&(n[t]="auto"),null!=n[t]&&"auto"!==n[t]}));Bc(t,e,{type:"box",ignoreSize:r})}const JV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(e,n,i){var r=Vc(e);t.prototype.init.apply(this,arguments),KV(e,r)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),KV(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}(Hc);var QV=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){var i=this.group;i.removeAll();var r=t.coordinateSystem,o=r.getRangeInfo(),a=r.getOrient(),s=e.getLocaleModel();this._renderDayRect(t,o,i),this._renderLines(t,o,a,i),this._renderYearText(t,o,a,i),this._renderMonthText(t,s,a,i),this._renderWeekText(t,s,o,a,i)},e.prototype._renderDayRect=function(t,e,n){for(var i=t.coordinateSystem,r=t.getModel("itemStyle").getItemStyle(),o=i.getCellWidth(),a=i.getCellHeight(),s=e.start.time;s<=e.end.time;s=i.getNextNDay(s,1).time){var l=i.dataToRect([s],!1).tl,u=new Il({shape:{x:l[0],y:l[1],width:o,height:a},cursor:"default",style:r});n.add(u)}},e.prototype._renderLines=function(t,e,n,i){var r=this,o=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,h=0;u.time<=e.end.time;h++){d(u.formatedDate),0===h&&(u=o.getDateInfo(e.start.y+"-"+e.start.m));var c=u.date;c.setMonth(c.getMonth()+1),u=o.getDateInfo(c)}function d(e){r._firstDayOfMonth.push(o.getDateInfo(e)),r._firstDayPoints.push(o.dataToRect([e],!1).tl);var l=r._getLinePointsOfOneWeek(t,e,n);r._tlpoints.push(l[0]),r._blpoints.push(l[l.length-1]),s&&r._drawSplitline(l,a,i)}d(o.getNextNDay(e.end.time,1).formatedDate),s&&this._drawSplitline(r._getEdgesPoints(r._tlpoints,l,n),a,i),s&&this._drawSplitline(r._getEdgesPoints(r._blpoints,l,n),a,i)},e.prototype._getEdgesPoints=function(t,e,n){var i=[t[0].slice(),t[t.length-1].slice()],r="horizontal"===n?0:1;return i[0][r]=i[0][r]-e/2,i[1][r]=i[1][r]+e/2,i},e.prototype._drawSplitline=function(t,e,n){var i=new zg({z2:20,shape:{points:t},style:e});n.add(i)},e.prototype._getLinePointsOfOneWeek=function(t,e,n){for(var i=t.coordinateSystem,r=i.getDateInfo(e),o=[],a=0;a<7;a++){var s=i.getNextNDay(r.time,a),l=i.dataToRect([s.time],!1);o[2*s.day]=l.tl,o[2*s.day+1]=l["horizontal"===n?"bl":"tr"]}return o},e.prototype._formatterLabel=function(t,e){return ht(t)&&t?(n=t,tt(e,(function(t,e){n=n.replace("{"+e+"}",t)})),n):ut(t)?t(e):e.nameMap;var n},e.prototype._yearTextPositionControl=function(t,e,n,i,r){var o=e[0],a=e[1],s=["center","bottom"];"bottom"===i?(a+=r,s=["center","top"]):"left"===i?o-=r:"right"===i?(o+=r,s=["center","top"]):a-=r;var l=0;return"left"!==i&&"right"!==i||(l=Math.PI/2),{rotation:l,x:o,y:a,style:{align:s[0],verticalAlign:s[1]}}},e.prototype._renderYearText=function(t,e,n,i){var r=t.getModel("yearLabel");if(r.get("show")){var o=r.get("margin"),a=r.get("position");a||(a="horizontal"!==n?"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,h="horizontal"===n?0:1,c={top:[l,s[h][1]],bottom:[l,s[1-h][1]],left:[s[1-h][0],u],right:[s[h][0],u]},d=e.start.y;+e.end.y>+e.start.y&&(d=d+"-"+e.end.y);var p=r.get("formatter"),f={start:e.start.y,end:e.end.y,nameMap:d},g=this._formatterLabel(p,f),y=new Gl({z2:30,style:sh(r,{text:g})});y.attr(this._yearTextPositionControl(y,c[a],n,a,o)),i.add(y)}},e.prototype._monthTextPositionControl=function(t,e,n,i,r){var o="left",a="top",s=t[0],l=t[1];return"horizontal"===n?(l+=r,e&&(o="center"),"start"===i&&(a="bottom")):(s+=r,e&&(a="middle"),"start"===i&&(o="right")),{x:s,y:l,align:o,verticalAlign:a}},e.prototype._renderMonthText=function(t,e,n,i){var r=t.getModel("monthLabel");if(r.get("show")){var o=r.get("nameMap"),a=r.get("margin"),s=r.get("position"),l=r.get("align"),u=[this._tlpoints,this._blpoints];o&&!ht(o)||(o&&(e=Wh(o)||e),o=e.get(["time","monthAbbr"])||[]);var h="start"===s?0:1,c="horizontal"===n?0:1;a="start"===s?-a:a;for(var d="center"===l,p=0;p=i.start.time&&n.timea.end.time&&t.reverse(),t},t.prototype._getRangeInfo=function(t){var e,n=[this.getDateInfo(t[0]),this.getDateInfo(t[1])];n[0].time>n[1].time&&(e=!0,n.reverse());var i=Math.floor(n[1].time/eF)-Math.floor(n[0].time/eF)+1,r=new Date(n[0].time),o=r.getDate(),a=n[1].date.getDate();r.setDate(o+i-1);var s=r.getDate();if(s!==a)for(var l=r.getTime()-n[1].time>0?1:-1;(s=r.getDate())!==a&&(r.getTime()-n[1].time)*l>0;)i-=l,r.setDate(s-l);var u=Math.floor((i+n[0].day+6)/7),h=e?1-u:u-1;return e&&n.reverse(),{range:[n[0].formatedDate,n[1].formatedDate],start:n[0],end:n[1],allDay:i,weeks:u,nthWeek:h,fweek:n[0].day,lweek:n[1].day}},t.prototype._getDateByWeeksAndDay=function(t,e,n){var i=this._getRangeInfo(n);if(t>i.weeks||0===t&&ei.lweek)return null;var r=7*(t-1)-i.fweek+e,o=new Date(i.start.time);return o.setDate(+i.start.d+r),this.getDateInfo(o)},t.create=function(e,n){var i=[];return e.eachComponent("calendar",(function(r){var o=new t(r,e,n);i.push(o),r.coordinateSystem=o})),e.eachSeries((function(t){"calendar"===t.get("coordinateSystem")&&(t.coordinateSystem=i[t.get("calendarIndex")||0])})),i},t.dimensions=["time","value"],t}();function iF(t){var e=t.calendarModel,n=t.seriesModel;return e?e.coordinateSystem:n?n.coordinateSystem:null}const rF=nF;function oF(t,e){var n;return tt(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(n=!0)})),n}var aF=["transition","enterFrom","leaveTo"],sF=aF.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function lF(t,e,n){if(n&&(!t[n]&&e[n]&&(t[n]={}),t=t[n],e=e[n]),t&&e)for(var i=n?aF:sF,r=0;r=0;l--){var d,p,f;if(f=null!=(p=ha((d=n[l]).id,null))?r.get(p):null){var g=f.parent,y=(c=cF(g),{}),v=Ec(f,d,g===i?{width:o,height:a}:{width:c.width,height:c.height},null,{hv:d.hv,boundingMode:d.bounding},y);if(!cF(f).isNew&&v){for(var m=d.transition,x={},_=0;_=0)?x[b]=w:f[b]=w}Zu(f,x,t,0)}else f.attr(y)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(n){gF(n,cF(n).option,e,t._lastGraphicModel)})),this._elMap=Nt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Vf);function pF(t){var e=new(Bt(hF,t)?hF[t]:vy(t))({});return cF(e).type=t,e}function fF(t,e,n,i){var r=pF(n);return e.add(r),i.set(t,r),cF(r).id=t,cF(r).isNew=!0,r}function gF(t,e,n,i){t&&t.parent&&("group"===t.type&&t.traverse((function(t){gF(t,e,n,i)})),gz(t,e,i),n.removeKey(cF(t).id))}function yF(t,e,n,i){t.isGroup||tt([["cursor",ls.prototype.cursor],["zlevel",i||0],["z",n||0],["z2",0]],(function(n){var i=n[0];Bt(e,i)?t[i]=wt(e[i],n[1]):null==t[i]&&(t[i]=n[1])})),tt(ot(e),(function(n){if(0===n.indexOf("on")){var i=e[n];t[n]=ut(i)?i:null}})),Bt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var vF=["x","y","radius","angle","single"],mF=["cartesian2d","polar","singleAxis"];function xF(t){return t+"Axis"}function _F(t){var e=t.ecModel,n={infoList:[],infoMap:Nt()};return t.eachTargetAxis((function(t,i){var r=e.getComponent(xF(t),i);if(r){var o=r.getCoordSysModel();if(o){var a=o.uid,s=n.infoMap.get(a);s||(s={model:o,axisModels:[]},n.infoList.push(s),n.infoMap.set(a,s)),s.axisModels.push(r)}}})),n}var bF=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}(),wF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._autoThrottle=!0,n._noTarget=!0,n._rangePropMode=["percent","percent"],n}return m(e,t),e.prototype.init=function(t,e,n){var i=SF(t);this.settledOption=i,this.mergeDefaultAndTheme(t,n),this._doInit(i)},e.prototype.mergeOption=function(t){var e=SF(t);j(this.option,t,!0),j(this.settledOption,e,!0),this._doInit(e)},e.prototype._doInit=function(t){var e=this.option;this._setDefaultThrottle(t),this._updateRangeUse(t);var n=this.settledOption;tt([["start","startValue"],["end","endValue"]],(function(t,i){"value"===this._rangePropMode[i]&&(e[t[0]]=n[t[0]]=null)}),this),this._resetTarget()},e.prototype._resetTarget=function(){var t=this.get("orient",!0),e=this._targetAxisInfoMap=Nt();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(vF,(function(n){var i=this.getReferringComponents(xF(n),xa);if(i.specified){e=!0;var r=new bF;tt(i.models,(function(t){r.add(t.componentIndex)})),t.set(n,r)}}),this),e},e.prototype._fillAutoTargetAxisByOrient=function(t,e){var n=this.ecModel,i=!0;if(i){var r="vertical"===e?"y":"x";o(n.findComponents({mainType:r+"Axis"}),r)}function o(e,n){var r=e[0];if(r){var o=new bF;if(o.add(r.componentIndex),t.set(n,o),i=!1,"x"===n||"y"===n){var a=r.getReferringComponents("grid",ma).models[0];a&&tt(e,(function(t){r.componentIndex!==t.componentIndex&&a===t.getReferringComponents("grid",ma).models[0]&&o.add(t.componentIndex)}))}}}i&&o(n.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),i&&tt(vF,(function(e){if(i){var r=n.findComponents({mainType:xF(e),filter:function(t){return"category"===t.get("type",!0)}});if(r[0]){var o=new bF;o.add(r[0].componentIndex),t.set(e,o),i=!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,n=this.get("rangeMode");tt([["start","startValue"],["end","endValue"]],(function(i,r){var o=null!=t[i[0]],a=null!=t[i[1]];o&&!a?e[r]="percent":!o&&a?e[r]="value":n?e[r]=n[r]:o&&(e[r]="percent")}))},e.prototype.noTarget=function(){return this._noTarget},e.prototype.getFirstTargetAxisModel=function(){var t;return this.eachTargetAxis((function(e,n){null==t&&(t=this.ecModel.getComponent(xF(e),n))}),this),t},e.prototype.eachTargetAxis=function(t,e){this._targetAxisInfoMap.each((function(n,i){tt(n.indexList,(function(n){t.call(e,i,n)}))}))},e.prototype.getAxisProxy=function(t,e){var n=this.getAxisModel(t,e);if(n)return n.__dzAxisProxy},e.prototype.getAxisModel=function(t,e){var n=this._targetAxisInfoMap.get(t);if(n&&n.indexMap[e])return this.ecModel.getComponent(xF(t),e)},e.prototype.setRawRange=function(t){var e=this.option,n=this.settledOption;tt([["start","startValue"],["end","endValue"]],(function(i){null==t[i[0]]&&null==t[i[1]]||(e[i[0]]=n[i[0]]=t[i[0]],e[i[1]]=n[i[1]]=t[i[1]])}),this),this._updateRangeUse(t)},e.prototype.setCalculatedRange=function(t){var e=this.option;tt(["start","startValue","end","endValue"],(function(n){e[n]=t[n]}))},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 n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},e.prototype.findRepresentativeAxisProxy=function(t){if(t)return t.__dzAxisProxy;for(var e,n=this._targetAxisInfoMap.keys(),i=0;i=0}(e)){var n=xF(this._dimName),i=e.getReferringComponents(n,ma).models[0];i&&this._axisIndex===i.componentIndex&&t.push(e)}}),this),t},t.prototype.getAxisModel=function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},t.prototype.getMinMaxSpan=function(){return $(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,n=this._dataExtent,i=this.getAxisModel().axis.scale,r=this._dataZoomModel.getRangePropMode(),o=[0,100],a=[],s=[];AF(["start","end"],(function(l,u){var h=t[l],c=t[l+"Value"];"percent"===r[u]?(null==h&&(h=o[u]),c=i.parse(Ao(h,o,n))):(e=!0,h=Ao(c=null==c?n[u]:i.parse(c),n,o)),s[u]=null==c||isNaN(c)?n[u]:c,a[u]=null==h||isNaN(h)?o[u]:h})),DF(s),DF(a);var l=this._minMaxSpan;function u(t,e,n,r,o){var a=o?"Span":"ValueSpan";cO(0,t,n,"all",l["min"+a],l["max"+a]);for(var s=0;s<2;s++)e[s]=Ao(t[s],n,r,!0),o&&(e[s]=i.parse(e[s]))}return e?u(s,a,n,o,!1):u(a,s,o,n,!0),{valueWindow:s,percentWindow:a}},t.prototype.reset=function(t){if(t===this._dataZoomModel){var e=this.getTargetSeriesModels();this._dataExtent=function(t,e,n){var i=[1/0,-1/0];AF(n,(function(t){!function(t,e,n){e&&tt(hw(e,n),(function(n){var i=e.getApproximateExtent(n);i[0]t[1]&&(t[1]=i[1])}))}(i,t.getData(),e)}));var r=t.getAxisModel(),o=tw(r.axis.scale,r,i).calculate();return[o.min,o.max]}(this,this._dimName,e),this._updateMinMaxSpan();var n=this.calculateDataWindow(t.settledOption);this._valueWindow=n.valueWindow,this._percentWindow=n.percentWindow,this._setAxisModel()}},t.prototype.filterData=function(t,e){if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow;"none"!==r&&AF(i,(function(t){var e=t.getData(),i=e.mapDimensionsAll(n);if(i.length){if("weakFilter"===r){var a=e.getStore(),s=et(i,(function(t){return e.getDimensionIndex(t)}),e);e.filterSelf((function(t){for(var e,n,r,l=0;lo[1];if(h&&!c&&!d)return!0;h&&(r=!0),c&&(e=!0),d&&(n=!0)}return r&&e&&n}))}else AF(i,(function(n){if("empty"===r)t.setData(e=e.map(n,(function(t){return function(t){return t>=o[0]&&t<=o[1]}(t)?t:NaN})));else{var i={};i[n]=o,e.selectRange(i)}}));AF(i,(function(t){e.setApproximateExtent(o,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,n=this._dataExtent;AF(["min","max"],(function(i){var r=e.get(i+"Span"),o=e.get(i+"ValueSpan");null!=o&&(o=this.getAxisModel().axis.scale.parse(o)),null!=o?r=Ao(n[0]+o,n,[0,100],!0):null!=r&&(o=Ao(r,[0,100],n,!0)-n[0]),t[i+"Span"]=r,t[i+"ValueSpan"]=o}),this)},t.prototype._setAxisModel=function(){var t=this.getAxisModel(),e=this._percentWindow,n=this._valueWindow;if(e){var i=No(n,[0,500]);i=Math.min(i,20);var r=t.axis.scale.rawExtentInfo;0!==e[0]&&r.setDeterminedMinMax("min",+n[0].toFixed(i)),100!==e[1]&&r.setDeterminedMinMax("max",+n[1].toFixed(i)),r.freeze()}},t}();const LF=kF,PF={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(n){n.eachTargetAxis((function(i,r){var o=t.getComponent(xF(i),r);e(i,r,o,n)}))}))}e((function(t,e,n,i){n.__dzAxisProxy=null}));var n=[];e((function(e,i,r,o){r.__dzAxisProxy||(r.__dzAxisProxy=new LF(e,i,o,t),n.push(r.__dzAxisProxy))}));var i=Nt();return tt(n,(function(t){tt(t.getTargetSeriesModels(),(function(t){i.set(t.uid,t)}))})),i},overallReset:function(t,e){t.eachComponent("dataZoom",(function(t){t.eachTargetAxis((function(e,n){t.getAxisProxy(e,n).reset(t)})),t.eachTargetAxis((function(n,i){t.getAxisProxy(n,i).filterData(t,e)}))})),t.eachComponent("dataZoom",(function(t){var e=t.findRepresentativeAxisProxy();if(e){var n=e.getDataPercentWindow(),i=e.getDataValueWindow();t.setCalculatedRange({start:n[0],end:n[1],startValue:i[0],endValue:i[1]})}}))}};var OF=!1;function NF(t){OF||(OF=!0,t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,PF),function(t){t.registerAction("dataZoom",(function(t,e){tt(function(t,e){var n,i=Nt(),r=[],o=Nt();t.eachComponent({mainType:"dataZoom",query:e},(function(t){o.get(t.uid)||s(t)}));do{n=!1,t.eachComponent("dataZoom",a)}while(n);function a(t){!o.get(t.uid)&&function(t){var e=!1;return t.eachTargetAxis((function(t,n){var r=i.get(t);r&&r[n]&&(e=!0)})),e}(t)&&(s(t),n=!0)}function s(t){o.set(t.uid,!0),r.push(t),t.eachTargetAxis((function(t,e){(i.get(t)||i.set(t,[]))[e]=!0}))}return r}(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 RF(t){t.registerComponentModel(IF),t.registerComponentView(TF),NF(t)}var EF=function(){},zF={};function BF(t,e){zF[t]=e}function VF(t){return zF[t]}const FF=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(){t.prototype.optionUpdated.apply(this,arguments);var e=this.ecModel;tt(this.option.feature,(function(t,n){var i=VF(n);i&&(i.getDefaultOption&&(i.defaultOption=i.getDefaultOption(e)),j(t,i.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}(Hc);function GF(t,e){var n=_c(e.get("padding")),i=e.getItemStyle(["color","opacity"]);return i.fill=e.get("backgroundColor"),new Il({shape:{x:t.x-n[3],y:t.y-n[0],width:t.width+n[1]+n[3],height:t.height+n[0]+n[2],r:e.get("borderRadius")},style:i,silent:!0,z2:-1})}var WF=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){var r=this.group;if(r.removeAll(),t.get("show")){var o=+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 x_(this._featureNames||[],u).add(h).update(h).remove(st(h,null)).execute(),this._featureNames=u,function(t,e,n){var i=e.getBoxLayoutParams(),r=e.get("padding"),o={width:n.getWidth(),height:n.getHeight()},a=Rc(i,o,r);Nc(e.get("orient"),t,e.get("itemGap"),a.width,a.height),Ec(t,i,o,r)}(r,t,n),r.add(GF(r.getBoundingRect(),t)),a||r.eachChild((function(t){var e=t.__title,i=t.ensureState("emphasis"),a=i.textConfig||(i.textConfig={}),s=t.getTextContent(),l=s&&s.ensureState("emphasis");if(l&&!ut(l)&&e){var u=l.style||(l.style={}),h=Kr(e,Gl.makeFont(u)),c=t.x+r.x,d=!1;t.y+r.y+o+h.height>n.getHeight()&&(a.position="top",d=!0);var p=d?-5-h.height:o+10;c+h.width/2>n.getWidth()?(a.position=["100%",p],u.align="right"):c-h.width/2<0&&(a.position=[0,p],u.align="left")}}))}function h(h,c){var d,p=u[h],f=u[c],g=s[p],y=new Lh(g,t,t.ecModel);if(i&&null!=i.newTitle&&i.featureName===p&&(g.title=i.newTitle),p&&!f){if(function(t){return 0===t.indexOf("my")}(p))d={onclick:y.option.onclick,featureName:p};else{var v=VF(p);if(!v)return;d=new v}l[p]=d}else if(!(d=l[f]))return;d.uid=Oh("toolbox-feature"),d.model=y,d.ecModel=e,d.api=n;var m=d instanceof EF;p||!f?!y.get("show")||m&&d.unusable?m&&d.remove&&d.remove(e,n):(function(i,s,l){var u,h,c=i.getModel("iconStyle"),d=i.getModel(["emphasis","iconStyle"]),p=s instanceof EF&&s.getIcons?s.getIcons():i.get("icon"),f=i.get("title")||{};ht(p)?(u={})[l]=p:u=p,ht(f)?(h={})[l]=f:h=f;var g=i.iconPaths={};tt(u,(function(l,u){var p=Oy(l,{},{x:-o/2,y:-o/2,width:o,height:o});p.setStyle(c.getItemStyle()),p.ensureState("emphasis").style=d.getItemStyle();var f=new Gl({style:{text:h[u],align:d.get("textAlign"),borderRadius:d.get("textBorderRadius"),padding:d.get("textPadding"),fill:null},ignore:!0});p.setTextContent(f),zy({el:p,componentModel:t,itemName:u,formatterParamsExtra:{title:h[u]}}),p.__title=h[u],p.on("mouseover",(function(){var e=d.getItemStyle(),i=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")}),p.setTextConfig({position:d.get("textPosition")||i}),f.ignore=!t.get("showTitle"),n.enterEmphasis(this)})).on("mouseout",(function(){"emphasis"!==i.get(["iconStatus",u])&&n.leaveEmphasis(this),f.hide()})),("emphasis"===i.get(["iconStatus",u])?Su:Mu)(p),r.add(p),p.on("click",at(s.onclick,s,e,n,u)),g[u]=p}))}(y,d,p),y.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&("emphasis"===e?Su:Mu)(i[t])},d instanceof EF&&d.render&&d.render(y,e,n,i)):m&&d.dispose&&d.dispose(e,n)}},e.prototype.updateView=function(t,e,n,i){tt(this._features,(function(t){t instanceof EF&&t.updateView&&t.updateView(t.model,e,n,i)}))},e.prototype.remove=function(t,e){tt(this._features,(function(n){n instanceof EF&&n.remove&&n.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){tt(this._features,(function(n){n instanceof EF&&n.dispose&&n.dispose(t,e)}))},e.type="toolbox",e}(Vf);const HF=WF,$F=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",r="svg"===e.getZr().painter.getType(),o=r?"svg":n.get("type",!0)||"png",a=e.getConnectedDataURL({type:o,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",connectedBackgroundColor:n.get("connectedBackgroundColor"),excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")}),s=b.browser;if(ut(MouseEvent)&&(s.newEdge||!s.ie&&!s.edge)){var l=document.createElement("a");l.download=i+"."+o,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||r){var h=a.split(","),c=h[0].indexOf("base64")>-1,d=r?decodeURIComponent(h[1]):h[1];c&&(d=window.atob(d));var p=i+"."+o;if(window.navigator.msSaveOrOpenBlob){for(var f=d.length,g=new Uint8Array(f);f--;)g[f]=d.charCodeAt(f);var y=new Blob([g]);window.navigator.msSaveOrOpenBlob(y,p)}else{var v=document.createElement("iframe");document.body.appendChild(v);var m=v.contentWindow,x=m.document;x.open("image/svg+xml","replace"),x.write(d),x.close(),m.focus(),x.execCommand("SaveAs",!0,p),document.body.removeChild(v)}}else{var _=n.get("lang"),w='',S=window.open();S.document.write(w),S.document.title=i}},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}(EF);var jF="__ec_magicType_stack__",UF=[["line","bar"],["stack"]],YF=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"),n={};return tt(t.get("type"),(function(t){e[t]&&(n[t]=e[t])})),n},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,n){var i=this.model,r=i.get(["seriesIndex",n]);if(XF[n]){var o,a={series:[]};tt(UF,(function(t){q(t,n)>=0&&tt(t,(function(t){i.setIconStatus(t,"normal")}))})),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==r?null:{seriesIndex:r}},(function(t){var e=t.subType,r=t.id,o=XF[n](e,r,t,i);o&&(X(o,t.option),a.series.push(o));var s=t.coordinateSystem;if(s&&"cartesian2d"===s.type&&("line"===n||"bar"===n)){var l=s.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",h=t.getReferringComponents(u,ma).models[0].componentIndex;a[u]=a[u]||[];for(var c=0;c<=h;c++)a[u][h]=a[u][h]||{};a[u][h].boundaryGap="bar"===n}}}));var s=n;"stack"===n&&(o=j({stack:i.option.title.tiled,tiled:i.option.title.stack},i.option.title),"emphasis"!==i.get(["iconStatus",n])&&(s="tiled")),e.dispatchAction({type:"changeMagicType",currentType:s,newOption:a,newTitle:o,featureName:"magicType"})}},e}(EF),XF={line:function(t,e,n,i){if("bar"===t)return j({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","line"])||{},!0)},bar:function(t,e,n,i){if("line"===t)return j({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get(["option","bar"])||{},!0)},stack:function(t,e,n,i){var r=n.get("stack")===jF;if("line"===t||"bar"===t)return i.setIconStatus("stack",r?"normal":"emphasis"),j({id:e,stack:r?"":jF},i.get(["option","stack"])||{},!0)}};t_({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const ZF=YF;var qF=new Array(60).join("-"),KF="\t";function JF(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var QF=new RegExp("[\t]+","g");var tG=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 n=e.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var r=document.createElement("div");r.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",r.style.backgroundColor=i.get("backgroundColor")||"#fff";var o=document.createElement("h4"),a=i.get("lang")||[];o.innerHTML=a[0]||i.get("title"),o.style.cssText="margin:10px 20px",o.style.color=i.get("textColor");var s=document.createElement("div"),l=document.createElement("textarea");s.style.cssText="overflow:auto";var u=i.get("optionToContent"),h=i.get("contentToOption"),c=function(t){var e,n,i,r=function(t){var e={},n=[],i=[];return t.eachRawSeries((function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}})),{seriesGroupByCategoryAxis:e,other:n,meta:i}}(t);return{value:it([(n=r.seriesGroupByCategoryAxis,i=[],tt(n,(function(t,e){var n=t.categoryAxis,r=t.valueAxis.dim,o=[" "].concat(et(t.series,(function(t){return t.name}))),a=[n.model.getCategories()];tt(t.series,(function(t){var e=t.getRawData();a.push(t.getRawData().mapArray(e.mapDimension(r),(function(t){return t})))}));for(var s=[o.join(KF)],l=0;l=0)return!0}(t)){var r=function(t){for(var e=t.split(/\n+/g),n=[],i=et(JF(e.shift()).split(QF),(function(t){return{name:t,data:[]}})),r=0;r=0)&&t(r,i._targetInfoList)}))}return t.prototype.setOutputRanges=function(t,e){return this.matchOutputRanges(t,e,(function(t,e,n){if((t.coordRanges||(t.coordRanges=[])).push(e),!t.coordRange){t.coordRange=e;var i=gG[t.brushType](0,n,e);t.__rangeOffset={offset:vG[t.brushType](i.values,t.range,[1,1]),xyMinMax:i.xyMinMax}}})),t},t.prototype.matchOutputRanges=function(t,e,n){tt(t,(function(t){var i=this.findTargetInfo(t,e);i&&!0!==i&&tt(i.coordSyses,(function(i){var r=gG[t.brushType](1,i,t.range,!0);n(t,r.values,i,e)}))}),this)},t.prototype.setInputRanges=function(t,e){tt(t,(function(t){var n,i,r,o,a,s=this.findTargetInfo(t,e);if(t.range=t.range||[],s&&!0!==s){t.panelId=s.panelId;var l=gG[t.brushType](0,s.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?vG[t.brushType](l.values,u.offset,(n=l.xyMinMax,i=u.xyMinMax,r=xG(n),o=xG(i),a=[r[0]/o[0],r[1]/o[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(n){var i=n.getPanelRect();return{panelId:n.panelId,defaultBrushType:e?e(n):null,clipPath:xN(i),isTargetByCursor:bN(i,t,n.coordSysModel),getLinearBrushOtherExtent:_N(i)}}))},t.prototype.controlSeries=function(t,e,n){var i=this.findTargetInfo(t,n);return!0===i||i&&q(i.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var n=this._targetInfoList,i=cG(e,t),r=0;rt[1]&&t.reverse(),t}function cG(t,e){return ya(t,e,{includeMainTypes:lG})}var dG={grid:function(t,e){var n=t.xAxisModels,i=t.yAxisModels,r=t.gridModels,o=Nt(),a={},s={};(n||i||r)&&(tt(n,(function(t){var e=t.axis.grid.model;o.set(e.id,e),a[e.id]=!0})),tt(i,(function(t){var e=t.axis.grid.model;o.set(e.id,e),s[e.id]=!0})),tt(r,(function(t){o.set(t.id,t),a[t.id]=!0,s[t.id]=!0})),o.each((function(t){var r=t.coordinateSystem,o=[];tt(r.getCartesians(),(function(t,e){(q(n,t.getAxis("x").model)>=0||q(i,t.getAxis("y").model)>=0)&&o.push(t)})),e.push({panelId:"grid--"+t.id,gridModel:t,coordSysModel:t,coordSys:o[0],coordSyses:o,getPanelRect:fG.grid,xAxisDeclared:a[t.id],yAxisDeclared:s[t.id]})})))},geo:function(t,e){tt(t.geoModels,(function(t){var n=t.coordinateSystem;e.push({panelId:"geo--"+t.id,geoModel:t,coordSysModel:t,coordSys:n,coordSyses:[n],getPanelRect:fG.geo})}))}},pG=[function(t,e){var n=t.xAxisModel,i=t.yAxisModel,r=t.gridModel;return!r&&n&&(r=n.axis.grid.model),!r&&i&&(r=i.axis.grid.model),r&&r===e.gridModel},function(t,e){var n=t.geoModel;return n&&n===e.geoModel}],fG={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(Cy(t)),e}},gG={lineX:st(yG,0),lineY:st(yG,1),rect:function(t,e,n,i){var r=t?e.pointToData([n[0][0],n[1][0]],i):e.dataToPoint([n[0][0],n[1][0]],i),o=t?e.pointToData([n[0][1],n[1][1]],i):e.dataToPoint([n[0][1],n[1][1]],i),a=[hG([r[0],o[0]]),hG([r[1],o[1]])];return{values:a,xyMinMax:a}},polygon:function(t,e,n,i){var r=[[1/0,-1/0],[1/0,-1/0]];return{values:et(n,(function(n){var o=t?e.pointToData(n,i):e.dataToPoint(n,i);return r[0][0]=Math.min(r[0][0],o[0]),r[1][0]=Math.min(r[1][0],o[1]),r[0][1]=Math.max(r[0][1],o[0]),r[1][1]=Math.max(r[1][1],o[1]),o})),xyMinMax:r}}};function yG(t,e,n,i){var r=n.getAxis(["x","y"][t]),o=hG(et([0,1],(function(t){return e?r.coordToData(r.toLocalCoord(i[t]),!0):r.toGlobalCoord(r.dataToCoord(i[t]))}))),a=[];return a[t]=o,a[1-t]=[NaN,NaN],{values:o,xyMinMax:a}}var vG={lineX:st(mG,0),lineY:st(mG,1),rect:function(t,e,n){return[[t[0][0]-n[0]*e[0][0],t[0][1]-n[0]*e[0][1]],[t[1][0]-n[1]*e[1][0],t[1][1]-n[1]*e[1][1]]]},polygon:function(t,e,n){return et(t,(function(t,i){return[t[0]-n[0]*e[i][0],t[1]-n[1]*e[i][1]]}))}};function mG(t,e,n,i){return[e[0]-i[t]*n[0],e[1]-i[t]*n[1]]}function xG(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const _G=uG;var bG,wG,SG=tt,MG=ea+"toolbox-dataZoom_",IG=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n,i){this._brushController||(this._brushController=new mN(n.getZr()),this._brushController.on("brush",at(this._onBrush,this)).mount()),function(t,e,n,i,r){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=new _G(TG(t),e,{include:["grid"]}).makePanelOpts(r,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));n._brushController.setPanels(a).enableBrush(!(!o||!a.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,i,n),function(t,e){t.setIconStatus("back",function(t){return oG(t).length}(e)>1?"emphasis":"normal")}(t,e)},e.prototype.onclick=function(t,e,n){CG[n].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 n={},i=this.ecModel;this._brushController.updateCovers([]),new _G(TG(this.model),i,{include:["grid"]}).matchOutputRanges(e,i,(function(t,e,n){if("cartesian2d"===n.type){var i=t.brushType;"rect"===i?(r("x",n,e[0]),r("y",n,e[1])):r({lineX:"x",lineY:"y"}[i],n,e)}})),function(t,e){var n=oG(t);iG(e,(function(e,i){for(var r=n.length-1;r>=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}})),n.push(e)}(i,n),this._dispatchZoomAction(n)}function r(t,e,r){var o=e.getAxis(t),a=o.model,s=function(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},(function(n){n.getAxisModel(t,e.componentIndex)&&(i=n)})),i}(t,a,i),l=s.findRepresentativeAxisProxy(a).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(r=cO(0,r.slice(),o.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),s&&(n[s.id]={dataZoomId:s.id,startValue:r[0],endValue:r[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];SG(t,(function(t,n){e.push($(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}(EF),CG={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=oG(t),n=e[e.length-1];e.length>1&&e.pop();var i={};return iG(n,(function(t,n){for(var r=e.length-1;r>=0;r--)if(t=e[r][n]){i[n]=t;break}})),i}(this.ecModel))}};function TG(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}bG="dataZoom",wG=function(t){var e=t.getComponent("toolbox",0),n=["feature","dataZoom"];if(e&&null!=e.get(n)){var i=e.getModel(n),r=[],o=ya(t,TG(i));return SG(o.xAxisModels,(function(t){return a(t,"xAxis","xAxisIndex")})),SG(o.yAxisModels,(function(t){return a(t,"yAxis","yAxisIndex")})),r}function a(t,e,n){var o=t.componentIndex,a={type:"select",$fromToolbox:!0,filterMode:i.get("filterMode",!0)||"filter",id:MG+e+o};a[n]=o,r.push(a)}},Ct(null==dd.get(bG)&&wG),dd.set(bG,wG);const AG=IG,DG=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}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}(Hc);function kG(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function LG(t){if(b.domSupported)for(var e=document.documentElement.style,n=0,i=t.length;n-1?(u+="top:50%",h+="translateY(-50%) rotate("+(a="left"===s?-225:-45)+"deg)"):(u+="left:50%",h+="translateX(-50%) rotate("+(a="top"===s?225:45)+"deg)");var c=a*Math.PI/180,d=l+r,p=d*Math.abs(Math.cos(c))+d*Math.abs(Math.sin(c)),f=e+" solid "+r+"px;";return'
'}(n,i,r)),ht(t))o.innerHTML=t+a;else if(t){o.innerHTML="",lt(t)||(t=[t]);for(var s=0;s=0?this._tryShow(n,i):"leave"===e&&this._hide(i))}),this))},e.prototype._keepShow=function(){var t=this._tooltipModel,e=this._ecModel,n=this._api,i=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==i&&"click"!==i){var r=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout((function(){!n.isDisposed()&&r.manuallyShowTip(t,e,n,{x:r._lastX,y:r._lastY,dataByCoordSys:r._lastDataByCoordSys})}))}},e.prototype.manuallyShowTip=function(t,e,n,i){if(i.from!==this.uid&&!b.node&&n.getDom()){var r=XG(i,n);this._ticket="";var o=i.dataByCoordSys,a=function(t,e,n){var i=va(t).queryOptionMap,r=i.keys()[0];if(r&&"series"!==r){var o,a=_a(e,r,i.get(r),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(a)return n.getViewOfComponentModel(a).group.traverse((function(e){var n=Wl(e).tooltipConfig;if(n&&n.name===t.name)return o=e,!0})),o?{componentMainType:r,componentIndex:a.componentIndex,el:o}:void 0}}(i,e,n);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:i.position,positionDefault:"bottom"},r)}else if(i.tooltip&&null!=i.x&&null!=i.y){var l=jG;l.x=i.x,l.y=i.y,l.update(),Wl(l).tooltipConfig={name:null,option:i.tooltip},this._tryShow({offsetX:i.x,offsetY:i.y,target:l},r)}else if(o)this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,dataByCoordSys:o,tooltipOption:i.tooltipOption},r);else if(null!=i.seriesIndex){if(this._manuallyAxisShowTip(t,e,n,i))return;var u=EB(i,e),h=u.point[0],c=u.point[1];null!=h&&null!=c&&this._tryShow({offsetX:h,offsetY:c,target:u.el,position:i.position,positionDefault:"bottom"},r)}else null!=i.x&&null!=i.y&&(n.dispatchAction({type:"updateAxisPointer",x:i.x,y:i.y}),this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:n.getZr().findHover(i.x,i.y).target},r))}},e.prototype.manuallyHideTip=function(t,e,n,i){var r=this._tooltipContent;this._tooltipModel&&r.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,i.from!==this.uid&&this._hide(XG(i,n))},e.prototype._manuallyAxisShowTip=function(t,e,n,i){var r=i.seriesIndex,o=i.dataIndex,a=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=r&&null!=o&&null!=a){var s=e.getSeriesByIndex(r);if(s&&"axis"===YG([s.getData().getItemModel(o),s,(s.coordinateSystem||{}).model],this._tooltipModel).get("trigger"))return n.dispatchAction({type:"updateAxisPointer",seriesIndex:r,dataIndex:o,position:i.position}),!0}},e.prototype._tryShow=function(t,e){var n=t.target;if(this._tooltipModel){this._lastX=t.offsetX,this._lastY=t.offsetY;var i=t.dataByCoordSys;if(i&&i.length)this._showAxisTooltip(i,t);else if(n){var r,o;this._lastDataByCoordSys=null,jv(n,(function(t){return null!=Wl(t).dataIndex?(r=t,!0):null!=Wl(t).tooltipConfig?(o=t,!0):void 0}),!0),r?this._showSeriesItemTooltip(t,r,e):o?this._showComponentItemTooltip(t,o,e):this._hide(e)}else this._lastDataByCoordSys=null,this._hide(e)}},e.prototype._showOrMove=function(t,e){var n=t.get("showDelay");e=at(e,this),clearTimeout(this._showTimout),n>0?this._showTimout=setTimeout(e,n):e()},e.prototype._showAxisTooltip=function(t,e){var n=this._ecModel,i=this._tooltipModel,r=[e.offsetX,e.offsetY],o=YG([e.tooltipOption],i),a=this._renderMode,s=[],l=pf("section",{blocks:[],noHeader:!0}),u=[],h=new Mf;tt(t,(function(t){tt(t.dataByAxis,(function(t){var e=n.getComponent(t.axisDim+"Axis",t.axisIndex),r=t.value;if(e&&null!=r){var o=yB(r,e.axis,n,t.seriesDataIndices,t.valueLabelOpt),c=pf("section",{header:o,noHeader:!Tt(o),sortBlocks:!0,blocks:[]});l.blocks.push(c),tt(t.seriesDataIndices,(function(l){var d=n.getSeriesByIndex(l.seriesIndex),p=l.dataIndexInside,f=d.getDataParams(p);if(!(f.dataIndex<0)){f.axisDim=t.axisDim,f.axisIndex=t.axisIndex,f.axisType=t.axisType,f.axisId=t.axisId,f.axisValue=aw(e.axis,{value:r}),f.axisValueLabel=o,f.marker=h.makeTooltipMarker("item",Ac(f.color),a);var g=Cp(d.formatTooltip(p,!0,null)),y=g.frag;if(y){var v=YG([d],i).get("valueFormatter");c.blocks.push(v?Y({valueFormatter:v},y):y)}g.text&&u.push(g.text),s.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var c=e.position,d=o.get("order"),p=xf(l,h,a,d,n.get("useUTC"),o.get("textStyle"));p&&u.unshift(p);var f="richText"===a?"\n\n":"
",g=u.join(f);this._showOrMove(o,(function(){this._updateContentNotChangedOnAxis(t,s)?this._updatePosition(o,c,r[0],r[1],this._tooltipContent,s):this._showTooltipContent(o,g,s,Math.random()+"",r[0],r[1],c,null,h)}))},e.prototype._showSeriesItemTooltip=function(t,e,n){var i=this._ecModel,r=Wl(e),o=r.seriesIndex,a=i.getSeriesByIndex(o),s=r.dataModel||a,l=r.dataIndex,u=r.dataType,h=s.getData(u),c=this._renderMode,d=t.positionDefault,p=YG([h.getItemModel(l),s,a&&(a.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=p.get("trigger");if(null==f||"item"===f){var g=s.getDataParams(l,u),y=new Mf;g.marker=y.makeTooltipMarker("item",Ac(g.color),c);var v=Cp(s.formatTooltip(l,!1,u)),m=p.get("order"),x=p.get("valueFormatter"),_=v.frag,b=_?xf(x?Y({valueFormatter:x},_):_,y,c,m,i.get("useUTC"),p.get("textStyle")):v.text,w="item_"+s.name+"_"+l;this._showOrMove(p,(function(){this._showTooltipContent(p,b,g,w,t.offsetX,t.offsetY,t.position,t.target,y)})),n({type:"showTip",dataIndexInside:l,dataIndex:h.getRawIndex(l),seriesIndex:o,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,e,n){var i=Wl(e),r=i.tooltipConfig.option||{};ht(r)&&(r={content:r,formatter:r});var o=[r],a=this._ecModel.getComponent(i.componentMainType,i.componentIndex);a&&o.push(a),o.push({formatter:r.content});var s=t.positionDefault,l=YG(o,this._tooltipModel,s?{position:s}:null),u=l.get("content"),h=Math.random()+"",c=new Mf;this._showOrMove(l,(function(){var n=$(l.get("formatterParams")||{});this._showTooltipContent(l,u,n,h,t.offsetX,t.offsetY,t.position,e,c)})),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var h=t.get("formatter");a=a||t.get("position");var c=e,d=this._getNearestPoint([r,o],n,t.get("trigger"),t.get("borderColor")).color;if(h)if(ht(h)){var p=t.ecModel.get("useUTC"),f=lt(n)?n[0]:n;c=h,f&&f.axisType&&f.axisType.indexOf("time")>=0&&(c=ec(f.axisValue,c,p)),c=Mc(c,n,!0)}else if(ut(h)){var g=at((function(e,i){e===this._ticket&&(u.setContent(i,l,t,d,a),this._updatePosition(t,a,r,o,u,n,s))}),this);this._ticket=i,c=h(n,i,g)}else c=h;u.setContent(c,l,t,d,a),u.show(t,d),this._updatePosition(t,a,r,o,u,n,s)}},e.prototype._getNearestPoint=function(t,e,n,i){return"axis"===n||lt(e)?{color:i||("html"===this._renderMode?"#fff":"none")}:lt(e)?void 0:{color:i||e.color||e.borderColor}},e.prototype._updatePosition=function(t,e,n,i,r,o,a){var s=this._api.getWidth(),l=this._api.getHeight();e=e||t.get("position");var u=r.getSize(),h=t.get("align"),c=t.get("verticalAlign"),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),ut(e)&&(e=e([n,i],o,r.el,d,{viewSize:[s,l],contentSize:u.slice()})),lt(e))n=Do(e[0],s),i=Do(e[1],l);else if(pt(e)){var p=e;p.width=u[0],p.height=u[1];var f=Rc(p,{width:s,height:l});n=f.x,i=f.y,h=null,c=null}else if(ht(e)&&a){var g=function(t,e,n,i){var r=n[0],o=n[1],a=Math.ceil(Math.SQRT2*i)+8,s=0,l=0,u=e.width,h=e.height;switch(t){case"inside":s=e.x+u/2-r/2,l=e.y+h/2-o/2;break;case"top":s=e.x+u/2-r/2,l=e.y-o-a;break;case"bottom":s=e.x+u/2-r/2,l=e.y+h+a;break;case"left":s=e.x-r-a,l=e.y+h/2-o/2;break;case"right":s=e.x+u+a,l=e.y+h/2-o/2}return[s,l]}(e,d,u,t.get("borderWidth"));n=g[0],i=g[1]}else g=function(t,e,n,i,r,o,a){var s=n.getSize(),l=s[0],u=s[1];return null!=o&&(t+l+o+2>i?t-=l+o:t+=o),null!=a&&(e+u+a>r?e-=u+a:e+=a),[t,e]}(n,i,r,s,l,h?null:20,c?null:20),n=g[0],i=g[1];h&&(n-=ZG(h)?u[0]/2:"right"===h?u[0]:0),c&&(i-=ZG(c)?u[1]/2:"bottom"===c?u[1]:0),kG(t)&&(g=function(t,e,n,i,r){var o=n.getSize(),a=o[0],s=o[1];return t=Math.min(t+a,i)-a,e=Math.min(e+s,r)-s,[t=Math.max(t,0),e=Math.max(e,0)]}(n,i,r,s,l),n=g[0],i=g[1]),r.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,e){var n=this._lastDataByCoordSys,i=this._cbParamsList,r=!!n&&n.length===t.length;return r&&tt(n,(function(n,o){var a=n.dataByAxis||[],s=(t[o]||{}).dataByAxis||[];(r=r&&a.length===s.length)&&tt(a,(function(t,n){var o=s[n]||{},a=t.seriesDataIndices||[],l=o.seriesDataIndices||[];(r=r&&t.value===o.value&&t.axisType===o.axisType&&t.axisId===o.axisId&&a.length===l.length)&&tt(a,(function(t,e){var n=l[e];r=r&&t.seriesIndex===n.seriesIndex&&t.dataIndex===n.dataIndex})),i&&tt(t.seriesDataIndices,(function(t){var n=t.seriesIndex,o=e[n],a=i[n];o&&a&&a.data!==o.data&&(r=!1)}))}))})),this._lastDataByCoordSys=t,this._cbParamsList=e,!!r},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:this.uid})},e.prototype.dispose=function(t,e){!b.node&&e.getDom()&&(tv(this,"_updatePosition"),this._tooltipContent.dispose(),OB("itemTooltip",e))},e.type="tooltip",e}(Vf);function YG(t,e,n){var i,r=e.ecModel;n?(i=new Lh(n,r,r),i=new Lh(e.option,i,r)):i=e;for(var o=t.length-1;o>=0;o--){var a=t[o];a&&(a instanceof Lh&&(a=a.get("tooltip",!0)),ht(a)&&(a={formatter:a}),a&&(i=new Lh(a,i,r)))}return i}function XG(t,e){return t.dispatchAction||at(e.dispatchAction,e)}function ZG(t){return"center"===t||"middle"===t}const qG=UG;var KG=["rect","polygon","keep","clear"];function JG(t,e){var n=na(t?t.brush:[]);if(n.length){var i=[];tt(n,(function(t){var e=t.hasOwnProperty("toolbox")?t.toolbox:[];e instanceof Array&&(i=i.concat(e))}));var r=t&&t.toolbox;lt(r)&&(r=r[0]),r||(r={feature:{}},t.toolbox=[r]);var o=r.feature||(r.feature={}),a=o.brush||(o.brush={}),s=a.type||(a.type=[]);s.push.apply(s,i),function(t){var e={};tt(t,(function(t){e[t]=1})),t.length=0,tt(e,(function(e,n){t.push(n)}))}(s),e&&!s.length&&s.push.apply(s,KG)}}var QG=tt;function tW(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function eW(t,e,n){var i={};return QG(e,(function(e){var r,o=i[e]=((r=function(){}).prototype.__hidden=r.prototype,new r);QG(t[e],(function(t,i){if(nL.isValidType(i)){var r={type:i,visual:t};n&&n(r,e),o[i]=new nL(r),"opacity"===i&&((r=$(r)).type="colorAlpha",o.__hidden.__alphaForOpacity=new nL(r))}}))})),i}function nW(t,e,n){var i;tt(n,(function(t){e.hasOwnProperty(t)&&tW(e[t])&&(i=!0)})),i&&tt(n,(function(n){e.hasOwnProperty(n)&&tW(e[n])?t[n]=$(e[n]):delete t[n]}))}var iW={lineX:rW(0),lineY:rW(1),rect:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return t&&n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return t&&n.boundingRect.contain(t[0],t[1])&&xw(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(!t||i.length<=1)return!1;var r=t.x,o=t.y,a=t.width,s=t.height,l=i[0];return!!(xw(i,r,o)||xw(i,r+a,o)||xw(i,r,o+s)||xw(i,r+a,o+s)||sn.create(t).contain(l[0],l[1])||Ny(r,o,r+a,o,i)||Ny(r,o,r,o+s,i)||Ny(r+a,o,r+a,o+s,i)||Ny(r,o+s,r+a,o+s,i))||void 0}}};function rW(t){var e=["x","y"],n=["width","height"];return{point:function(e,n,i){if(e){var r=i.range;return oW(e[t],r)}},rect:function(i,r,o){if(i){var a=o.range,s=[i[e[t]],i[e[t]]+i[n[t]]];return s[1]e[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&fW(e)}};function fW(t){return new sn(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const gW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.ecModel=t,this.api=e,this.model,(this._brushController=new mN(e.getZr())).on("brush",at(this._onBrush,this)).mount()},e.prototype.render=function(t,e,n,i){this.model=t,this._updateController(t,e,n,i)},e.prototype.updateTransform=function(t,e,n,i){uW(e),this._updateController(t,e,n,i)},e.prototype.updateVisual=function(t,e,n,i){this.updateTransform(t,e,n,i)},e.prototype.updateView=function(t,e,n,i){this._updateController(t,e,n,i)},e.prototype._updateController=function(t,e,n,i){(!i||i.$from!==t.id)&&this._brushController.setPanels(t.brushTargetManager.makePanelOpts(n)).enableBrush(t.brushOption).updateCovers(t.areas.slice())},e.prototype.dispose=function(){this._brushController.dispose()},e.prototype._onBrush=function(t){var e=this.model.id,n=this.model.brushTargetManager.setOutputRanges(t.areas,this.ecModel);(!t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"brush",brushId:e,areas:$(n),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:$(n),$from:e})},e.type="brush",e}(Vf);function yW(t,e){return j({brushType:t.brushType,brushMode:t.brushMode,transformable:t.transformable,brushStyle:new Lh(t.brushStyle).getItemStyle(),removeOnClick:t.removeOnClick,z:t.z},e,!0)}const vW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.areas=[],n.brushOption={},n}return m(e,t),e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&nW(n,t,["inBrush","outOfBrush"]);var i=n.inBrush=n.inBrush||{};n.outOfBrush=n.outOfBrush||{color:"#ddd"},i.hasOwnProperty("liftZ")||(i.liftZ=5)},e.prototype.setAreas=function(t){t&&(this.areas=et(t,(function(t){return yW(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=yW(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}(Hc);var mW=["rect","polygon","lineX","lineY","keep","clear"];const xW=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.render=function(t,e,n){var i,r,o;e.eachComponent({mainType:"brush"},(function(t){i=t.brushType,r=t.brushOption.brushMode||"single",o=o||!!t.areas.length})),this._brushType=i,this._brushMode=r,tt(t.get("type",!0),(function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?o:e===i)?"emphasis":"normal")}))},e.prototype.updateView=function(t,e,n){this.render(t,e,n)},e.prototype.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return tt(t.get("type",!0),(function(t){e[t]&&(n[t]=e[t])})),n},e.prototype.onclick=function(t,e,n){var i=this._brushType,r=this._brushMode;"clear"===n?(e.dispatchAction({type:"axisAreaSelect",intervals:[]}),e.dispatchAction({type:"brush",command:"clear",areas:[]})):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},e.getDefaultOption=function(t){return{show:!0,type:mW.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}(EF);var _W=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode={type:"box",ignoreSize:!0},n}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}(Hc),bW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.render=function(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,r=t.getModel("textStyle"),o=t.getModel("subtextStyle"),a=t.get("textAlign"),s=wt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Gl({style:sh(r,{text:t.get("text"),fill:r.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),h=t.get("subtext"),c=new Gl({style:sh(o,{text:h,fill:o.getTextColor(),y:u.height+t.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=t.get("link"),p=t.get("sublink"),f=t.get("triggerEvent",!0);l.silent=!d&&!f,c.silent=!p&&!f,d&&l.on("click",(function(){Dc(d,"_"+t.get("target"))})),p&&c.on("click",(function(){Dc(p,"_"+t.get("subtarget"))})),Wl(l).eventData=Wl(c).eventData=f?{componentType:"title",componentIndex:t.componentIndex}:null,i.add(l),h&&i.add(c);var g=i.getBoundingRect(),y=t.getBoxLayoutParams();y.width=g.width,y.height=g.height;var v=Rc(y,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));a||("middle"===(a=t.get("left")||t.get("right"))&&(a="center"),"right"===a?v.x+=v.width:"center"===a&&(v.x+=v.width/2)),s||("center"===(s=t.get("top")||t.get("bottom"))&&(s="middle"),"bottom"===s?v.y+=v.height:"middle"===s&&(v.y+=v.height/2),s=s||"top"),i.x=v.x,i.y=v.y,i.markRedraw();var m={align:a,verticalAlign:s};l.setStyle(m),c.setStyle(m),g=i.getBoundingRect();var x=v.margin,_=t.getItemStyle(["color","opacity"]);_.fill=t.get("backgroundColor");var b=new Il({shape:{x:g.x-x[3],y:g.y-x[0],width:g.width+x[1]+x[3],height:g.height+x[0]+x[2],r:t.get("borderRadius")},style:_,subPixelOptimize:!0,silent:!0});i.add(b)}},e.type="title",e}(Vf),wW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.layoutMode="box",n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n),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,n=e.data||[],i=e.axisType,r=this._names=[];"category"===i?(t=[],tt(n,(function(e,n){var i,o=ha(oa(e),"");pt(e)?(i=$(e)).value=n:i=n,t.push(i),r.push(o)}))):t=n;var o={category:"ordinal",time:"time",value:"number"}[i]||"number";(this._data=new $_([{name:"value",type:o}],this)).initData(t,r)},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}(Hc);const SW=wW;var MW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline.slider",e.defaultOption=Nh(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);J(MW,Ip.prototype);const IW=MW,CW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="timeline",e}(Vf);var TW=function(t){function e(e,n,i,r){var o=t.call(this,e,n,i)||this;return o.type=r||"value",o}return m(e,t),e.prototype.getLabelModel=function(){return this.model.getModel("label")},e.prototype.isHorizontal=function(){return"horizontal"===this.model.get("orient")},e}(Ww);const AW=TW;var DW=Math.PI,kW=fa(),LW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(t,e){this.api=e},e.prototype.render=function(t,e,n){if(this.model=t,this.api=n,this.ecModel=e,this.group.removeAll(),t.get("show",!0)){var i=this._layout(t,n),r=this._createGroup("_mainGroup"),o=this._createGroup("_labelGroup"),a=this._axis=this._createAxis(i,t);t.formatTooltip=function(t){return pf("nameValue",{noName:!0,value:a.scale.getLabel({value:t})})},tt(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](i,r,a,t)}),this),this._renderAxisLabel(i,o,a,t),this._position(i,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 n,i,r,o,a=t.get(["label","position"]),s=t.get("orient"),l=function(t,e){return Rc(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()},t.get("padding"))}(t,e),u={horizontal:"center",vertical:(n=null==a||"auto"===a?"horizontal"===s?l.y+l.height/2=0||"+"===n?"left":"right"},h={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},c={horizontal:0,vertical:DW/2},d="vertical"===s?l.height:l.width,p=t.getModel("controlStyle"),f=p.get("show",!0),g=f?p.get("itemSize"):0,y=f?p.get("itemGap"):0,v=g+y,m=t.get(["label","rotate"])||0;m=m*DW/180;var x=p.get("position",!0),_=f&&p.get("showPlayBtn",!0),b=f&&p.get("showPrevBtn",!0),w=f&&p.get("showNextBtn",!0),S=0,M=d;"left"===x||"bottom"===x?(_&&(i=[0,0],S+=v),b&&(r=[S,0],S+=v),w&&(o=[M-g,0],M-=v)):(_&&(i=[M-g,0],M-=v),b&&(r=[0,0],S+=v),w&&(o=[M-g,0],M-=v));var I=[S,M];return t.get("inverse")&&I.reverse(),{viewRect:l,mainLength:d,orient:s,rotation:c[s],labelRotation:m,labelPosOpt:n,labelAlign:t.get(["label","align"])||u[s],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||h[s],playPosition:i,prevBtnPosition:r,nextBtnPosition:o,axisExtent:I,controlSize:g,controlGap:y}},e.prototype._position=function(t,e){var n=this._mainGroup,i=this._labelGroup,r=t.viewRect;if("vertical"===t.orient){var o=[1,0,0,1,0,0],a=r.x,s=r.y+r.height;$e(o,o,[-a,-s]),je(o,o,-DW/2),$e(o,o,[a,s]),(r=r.clone()).applyTransform(o)}var l=y(r),u=y(n.getBoundingRect()),h=y(i.getBoundingRect()),c=[n.x,n.y],d=[i.x,i.y];d[0]=c[0]=l[0][0];var p,f=t.labelPosOpt;function g(t){t.originX=l[0][0]-t.x,t.originY=l[1][0]-t.y}function y(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function v(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}null==f||ht(f)?(v(c,u,l,1,p="+"===f?0:1),v(d,h,l,1,1-p)):(v(c,u,l,1,p=f>=0?0:1),d[1]=c[1]+f),n.setPosition(c),i.setPosition(d),n.rotation=i.rotation=t.rotation,g(n),g(i)},e.prototype._createAxis=function(t,e){var n=e.getData(),i=e.get("axisType"),r=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new fb({ordinalMeta:t.getCategories(),extent:[1/0,-1/0]});case"time":return new Vb({locale:t.ecModel.getLocaleModel(),useUTC:t.ecModel.get("useUTC")});default:return new vb}}(e,i);r.getTicks=function(){return n.mapArray(["value"],(function(t){return{value:t}}))};var o=n.getDataExtent("value");r.setExtent(o[0],o[1]),r.calcNiceTicks();var a=new AW("value",r,t.axisExtent,i);return a.model=e,a},e.prototype._createGroup=function(t){var e=this[t]=new yo;return this.group.add(e),e},e.prototype._renderAxisLine=function(t,e,n,i){var r=n.getExtent();if(i.get(["lineStyle","show"])){var o=new Gg({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:Y({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1});e.add(o);var a=this._progressLine=new Gg({shape:{x1:r[0],x2:this._currentPointer?this._currentPointer.x:r[0],y1:0,y2:0},style:X({lineCap:"round",lineWidth:o.style.lineWidth},i.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(a)}},e.prototype._renderAxisTick=function(t,e,n,i){var r=this,o=i.getData(),a=n.scale.getTicks();this._tickSymbols=[],tt(a,(function(t){var a=n.dataToCoord(t.value),s=o.getItemModel(t.value),l=s.getModel("itemStyle"),u=s.getModel(["emphasis","itemStyle"]),h=s.getModel(["progress","itemStyle"]),c={x:a,y:0,onclick:at(r._changeTimeline,r,t.value)},d=PW(s,l,e,c);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=h.getItemStyle(),Eu(d);var p=Wl(d);s.get("tooltip")?(p.dataIndex=t.value,p.dataModel=i):p.dataIndex=p.dataModel=null,r._tickSymbols.push(d)}))},e.prototype._renderAxisLabel=function(t,e,n,i){var r=this;if(n.getLabelModel().get("show")){var o=i.getData(),a=n.getViewLabels();this._tickLabels=[],tt(a,(function(i){var a=i.tickValue,s=o.getItemModel(a),l=s.getModel("label"),u=s.getModel(["emphasis","label"]),h=s.getModel(["progress","label"]),c=n.dataToCoord(i.tickValue),d=new Gl({x:c,y:0,rotation:t.labelRotation-t.rotation,onclick:at(r._changeTimeline,r,a),silent:!1,style:sh(l,{text:i.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=sh(u),d.ensureState("progress").style=sh(h),e.add(d),Eu(d),kW(d).dataIndex=a,r._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,n,i){var r=t.controlSize,o=t.rotation,a=i.getModel("controlStyle").getItemStyle(),s=i.getModel(["emphasis","controlStyle"]).getItemStyle(),l=i.getPlayState(),u=i.get("inverse",!0);function h(t,n,l,u){if(t){var h=eo(wt(i.get(["controlStyle",n+"BtnSize"]),r),r),c=function(t,e,n,i){var r=i.style,o=Oy(t.get(["controlStyle",e]),i||{},new sn(n[0],n[1],n[2],n[3]));return r&&o.setStyle(r),o}(i,n+"Icon",[0,-h/2,h,h],{x:t[0],y:t[1],originX:r/2,originY:0,rotation:u?-o:0,rectHover:!0,style:a,onclick:l});c.ensureState("emphasis").style=s,e.add(c),Eu(c)}}h(t.nextBtnPosition,"next",at(this._changeTimeline,this,u?"-":"+")),h(t.prevBtnPosition,"prev",at(this._changeTimeline,this,u?"+":"-")),h(t.playPosition,l?"stop":"play",at(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,n,i){var r=i.getData(),o=i.getCurrentIndex(),a=r.getItemModel(o).getModel("checkpointStyle"),s=this,l={onCreate:function(t){t.draggable=!0,t.drift=at(s._handlePointerDrag,s),t.ondragend=at(s._handlePointerDragend,s),OW(t,s._progressLine,o,n,i,!0)},onUpdate:function(t){OW(t,s._progressLine,o,n,i)}};this._currentPointer=PW(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,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},e.prototype._handlePointerDragend=function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},e.prototype._pointerChangeTimeline=function(t,e){var n=this._toAxisCoord(t)[0],i=Lo(this._axis.getExtent().slice());n>i[1]&&(n=i[1]),n=0&&(a[o]=+a[o].toFixed(c)),[a,h]}var UW={min:st(jW,"min"),max:st(jW,"max"),average:st(jW,"average"),median:st(jW,"median")};function YW(t,e){if(e){var n=t.getData(),i=t.coordinateSystem,r=i&&i.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!lt(e.coord)&<(r)){var o=XW(e,n,i,t);if((e=$(e)).type&&UW[e.type]&&o.baseAxis&&o.valueAxis){var a=q(r,o.baseAxis.dim),s=q(r,o.valueAxis.dim),l=UW[e.type](n,o.baseDataDim,o.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&<(r))for(var u=e.coord,h=0;h<2;h++)UW[u[h]]&&(u[h]=KW(n,n.mapDimension(r[h]),u[h]));else e.coord=[];return e}}function XW(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(function(t,e){var n=t.getData().getDimensionInfo(e);return n&&n.coordDim}(i,r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim)):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=e.mapDimension(r.baseAxis.dim),r.valueDataDim=e.mapDimension(r.valueAxis.dim)),r}function ZW(t,e){return!(t&&t.containData&&e.coord&&!$W(e))||t.containData(e.coord)}function qW(t,e){return t?function(t,n,i,r){return Lp(r<2?t.coord&&t.coord[r]:t.value,e[r])}:function(t,n,i,r){return Lp(t.value,e[r])}}function KW(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,(function(t,e){isNaN(t)||(i+=t,r++)})),i/r}return"median"===n?t.getMedian(e):t.getDataExtent(e)["max"===n?1:0]}var JW=fa();const QW=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.init=function(){this.markerGroupMap=Nt()},e.prototype.render=function(t,e,n){var i=this,r=this.markerGroupMap;r.each((function(t){JW(t).keep=!1})),e.eachSeries((function(t){var r=WW.getMarkerModelFromSeries(t,i.type);r&&i.renderSeries(t,r,e,n)})),r.each((function(t){!JW(t).keep&&i.group.remove(t.group)}))},e.prototype.markKeep=function(t){JW(t).keep=!0},e.prototype.toggleBlurSeries=function(t,e){var n=this;tt(t,(function(t){var i=WW.getMarkerModelFromSeries(t,n.type);i&&i.getData().eachItemGraphicEl((function(t){t&&(e?Iu(t):Cu(t))}))}))},e.type="marker",e}(Vf);function tH(t,e,n){var i=e.coordinateSystem;t.each((function(r){var o,a=t.getItemModel(r),s=Do(a.get("x"),n.getWidth()),l=Do(a.get("y"),n.getHeight());if(isNaN(s)||isNaN(l)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var u=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([u,h])}}else o=[s,l];isNaN(s)||(o[0]=s),isNaN(l)||(o[1]=l),t.setItemLayout(r,o)}))}const eH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=WW.getMarkerModelFromSeries(t,"markPoint");e&&(tH(e.getData(),t,n),this.markerGroupMap.get(t.id).updateLayout())}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new uI),u=function(t,e,n){var i;i=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 r=new $_(i,n),o=et(n.get("data"),st(YW,e));t&&(o=it(o,st(ZW,t)));var a=qW(!!t,i);return r.initData(o,null,a),r}(r,t,e);e.setData(u),tH(e.getData(),t,i),u.each((function(t){var n=u.getItemModel(t),i=n.getShallow("symbol"),r=n.getShallow("symbolSize"),o=n.getShallow("symbolRotate"),s=n.getShallow("symbolOffset"),l=n.getShallow("symbolKeepAspect");if(ut(i)||ut(r)||ut(o)||ut(s)){var h=e.getRawValue(t),c=e.getDataParams(t);ut(i)&&(i=i(h,c)),ut(r)&&(r=r(h,c)),ut(o)&&(o=o(h,c)),ut(s)&&(s=s(h,c))}var d=n.getModel("itemStyle").getItemStyle(),p=Gv(a,"color");d.fill||(d.fill=p),u.setItemVisual(t,{symbol:i,symbolSize:r,symbolRotate:o,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}(QW),nH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(WW);var iH=fa(),rH=function(t,e,n,i){var r,o=t.getData();if(lt(i))r=i;else{var a=i.type;if("min"===a||"max"===a||"average"===a||"median"===a||null!=i.xAxis||null!=i.yAxis){var s=void 0,l=void 0;if(null!=i.yAxis||null!=i.xAxis)s=e.getAxis(null!=i.yAxis?"y":"x"),l=bt(i.yAxis,i.xAxis);else{var u=XW(i,o,e,t);s=u.valueAxis,l=KW(o,Q_(o,u.valueDataDim),a)}var h="x"===s.dim?0:1,c=1-h,d=$(i),p={coord:[]};d.type=null,d.coord=[],d.coord[c]=-1/0,p.coord[c]=1/0;var f=n.get("precision");f>=0&&dt(l)&&(l=+l.toFixed(Math.min(f,20))),d.coord[h]=p.coord[h]=l,r=[d,p,{type:a,valueIndex:i.valueIndex,value:l}]}else r=[]}var g=[YW(t,r[0]),YW(t,r[1]),Y({},r[2])];return g[2].type=g[2].type||null,j(g[2],g[0]),j(g[2],g[1]),g};function oH(t){return!isNaN(t)&&!isFinite(t)}function aH(t,e,n,i){var r=1-t,o=i.dimensions[t];return oH(e[r])&&oH(n[r])&&e[t]===n[t]&&i.getAxis(o).containData(e[t])}function sH(t,e){if("cartesian2d"===t.type){var n=e[0].coord,i=e[1].coord;if(n&&i&&(aH(1,n,i,t)||aH(0,n,i,t)))return!0}return ZW(t,e[0])&&ZW(t,e[1])}function lH(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Do(s.get("x"),r.getWidth()),u=Do(s.get("y"),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition)o=i.getMarkerPosition(t.getValues(t.dimensions,e));else{var h=a.dimensions,c=t.get(h[0],e),d=t.get(h[1],e);o=a.dataToPoint([c,d])}if(SI(a,"cartesian2d")){var p=a.getAxis("x"),f=a.getAxis("y");h=a.dimensions,oH(t.get(h[0],e))?o[0]=p.toGlobalCoord(p.getExtent()[n?0:1]):oH(t.get(h[1],e))&&(o[1]=f.toGlobalCoord(f.getExtent()[n?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];t.setItemLayout(e,o)}const uH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=WW.getMarkerModelFromSeries(t,"markLine");if(e){var i=e.getData(),r=iH(e).from,o=iH(e).to;r.each((function(e){lH(r,e,!0,t,n),lH(o,e,!1,t,n)})),i.each((function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])})),this.markerGroupMap.get(t.id).updateLayout()}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,new dP);this.group.add(l.group);var u=function(t,e,n){var i;i=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 r=new $_(i,n),o=new $_(i,n),a=new $_([],n),s=et(n.get("data"),st(rH,e,t,n));t&&(s=it(s,st(sH,t)));var l=qW(!!t,i);return r.initData(et(s,(function(t){return t[0]})),null,l),o.initData(et(s,(function(t){return t[1]})),null,l),a.initData(et(s,(function(t){return t[2]}))),a.hasItemOption=!0,{from:r,to:o,line:a}}(r,t,e),h=u.from,c=u.to,d=u.line;iH(e).from=h,iH(e).to=c,e.setData(d);var p=e.get("symbol"),f=e.get("symbolSize"),g=e.get("symbolRotate"),y=e.get("symbolOffset");function v(e,n,r){var o=e.getItemModel(n);lH(e,n,r,t,i);var s=o.getModel("itemStyle").getItemStyle();null==s.fill&&(s.fill=Gv(a,"color")),e.setItemVisual(n,{symbolKeepAspect:o.get("symbolKeepAspect"),symbolOffset:wt(o.get("symbolOffset",!0),y[r?0:1]),symbolRotate:wt(o.get("symbolRotate",!0),g[r?0:1]),symbolSize:wt(o.get("symbolSize"),f[r?0:1]),symbol:wt(o.get("symbol",!0),p[r?0:1]),style:s})}lt(p)||(p=[p,p]),lt(f)||(f=[f,f]),lt(g)||(g=[g,g]),lt(y)||(y=[y,y]),u.from.each((function(t){v(h,t,!0),v(c,t,!1)})),d.each((function(t){var e=d.getItemModel(t).getModel("lineStyle").getLineStyle();d.setItemLayout(t,[h.getItemLayout(t),c.getItemLayout(t)]),null==e.stroke&&(e.stroke=h.getItemVisual(t,"style").fill),d.setItemVisual(t,{fromSymbolKeepAspect:h.getItemVisual(t,"symbolKeepAspect"),fromSymbolOffset:h.getItemVisual(t,"symbolOffset"),fromSymbolRotate:h.getItemVisual(t,"symbolRotate"),fromSymbolSize:h.getItemVisual(t,"symbolSize"),fromSymbol:h.getItemVisual(t,"symbol"),toSymbolKeepAspect:c.getItemVisual(t,"symbolKeepAspect"),toSymbolOffset:c.getItemVisual(t,"symbolOffset"),toSymbolRotate:c.getItemVisual(t,"symbolRotate"),toSymbolSize:c.getItemVisual(t,"symbolSize"),toSymbol:c.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}(QW),hH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.createMarkerModelFromSeries=function(t,n,i){return new e(t,n,i)},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}(WW);var cH=fa(),dH=function(t,e,n,i){var r=i[0],o=i[1];if(r&&o){var a=YW(t,r),s=YW(t,o),l=a.coord,u=s.coord;l[0]=bt(l[0],-1/0),l[1]=bt(l[1],-1/0),u[0]=bt(u[0],1/0),u[1]=bt(u[1],1/0);var h=U([{},a,s]);return h.coord=[a.coord,s.coord],h.x0=a.x,h.y0=a.y,h.x1=s.x,h.y1=s.y,h}};function pH(t){return!isNaN(t)&&!isFinite(t)}function fH(t,e,n,i){var r=1-t;return pH(e[r])&&pH(n[r])}function gH(t,e){var n=e.coord[0],i=e.coord[1],r={coord:n,x:e.x0,y:e.y0},o={coord:i,x:e.x1,y:e.y1};return SI(t,"cartesian2d")?!(!n||!i||!fH(1,n,i)&&!fH(0,n,i))||function(t,e,n){return!(t&&t.containZone&&e.coord&&n.coord&&!$W(e)&&!$W(n))||t.containZone(e.coord,n.coord)}(t,r,o):ZW(t,r)||ZW(t,o)}function yH(t,e,n,i,r){var o,a=i.coordinateSystem,s=t.getItemModel(e),l=Do(s.get(n[0]),r.getWidth()),u=Do(s.get(n[1]),r.getHeight());if(isNaN(l)||isNaN(u)){if(i.getMarkerPosition){var h=t.getValues(["x0","y0"],e),c=t.getValues(["x1","y1"],e),d=a.clampData(h),p=a.clampData(c),f=[];"x0"===n[0]?f[0]=d[0]>p[0]?c[0]:h[0]:f[0]=d[0]>p[0]?h[0]:c[0],"y0"===n[1]?f[1]=d[1]>p[1]?c[1]:h[1]:f[1]=d[1]>p[1]?h[1]:c[1],o=i.getMarkerPosition(f,n,!0)}else{var g=[m=t.get(n[0],e),x=t.get(n[1],e)];a.clampData&&a.clampData(g,g),o=a.dataToPoint(g,!0)}if(SI(a,"cartesian2d")){var y=a.getAxis("x"),v=a.getAxis("y"),m=t.get(n[0],e),x=t.get(n[1],e);pH(m)?o[0]=y.toGlobalCoord(y.getExtent()["x0"===n[0]?0:1]):pH(x)&&(o[1]=v.toGlobalCoord(v.getExtent()["y0"===n[1]?0:1]))}isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u)}else o=[l,u];return o}var vH=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.updateTransform=function(t,e,n){e.eachSeries((function(t){var e=WW.getMarkerModelFromSeries(t,"markArea");if(e){var i=e.getData();i.each((function(e){var r=et(vH,(function(r){return yH(i,e,r,t,n)}));i.setItemLayout(e,r),i.getItemGraphicEl(e).setShape("points",r)}))}}),this)},e.prototype.renderSeries=function(t,e,n,i){var r=t.coordinateSystem,o=t.id,a=t.getData(),s=this.markerGroupMap,l=s.get(o)||s.set(o,{group:new yo});this.group.add(l.group),this.markKeep(l);var u=function(t,e,n){var i,r;if(t){var o=et(t&&t.dimensions,(function(t){var n=e.getData();return Y(Y({},n.getDimensionInfo(n.mapDimension(t))||{}),{name:t,ordinalMeta:null})}));r=et(["x0","y0","x1","y1"],(function(t,e){return{name:t,type:o[e%2].type}})),i=new $_(r,n)}else i=new $_(r=[{name:"value",type:"float"}],n);var a=et(n.get("data"),st(dH,e,t,n));t&&(a=it(a,st(gH,t)));var s=t?function(t,e,n,i){return Lp(t.coord[Math.floor(i/2)][i%2],r[i])}:function(t,e,n,i){return Lp(t.value,r[i])};return i.initData(a,null,s),i.hasItemOption=!0,i}(r,t,e);e.setData(u),u.each((function(e){var n=et(vH,(function(n){return yH(u,e,n,t,i)})),o=r.getAxis("x").scale,s=r.getAxis("y").scale,l=o.getExtent(),h=s.getExtent(),c=[o.parse(u.get("x0",e)),o.parse(u.get("x1",e))],d=[s.parse(u.get("y0",e)),s.parse(u.get("y1",e))];Lo(c),Lo(d);var p=!!(l[0]>c[1]||l[1]d[1]||h[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}(Hc);const bH=_H;var wH=st,SH=tt,MH=yo,IH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.newlineDisabled=!1,n}return m(e,t),e.prototype.init=function(){this.group.add(this._contentGroup=new MH),this.group.add(this._selectorGroup=new MH),this._isFirstRender=!0},e.prototype.getContentGroup=function(){return this._contentGroup},e.prototype.getSelectorGroup=function(){return this._selectorGroup},e.prototype.render=function(t,e,n){var i=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),t.get("show",!0)){var r=t.get("align"),o=t.get("orient");r&&"auto"!==r||(r="right"===t.get("left")&&"vertical"===o?"right":"left");var a=t.get("selector",!0),s=t.get("selectorPosition",!0);!a||s&&"auto"!==s||(s="horizontal"===o?"end":"start"),this.renderInner(r,t,e,n,a,o,s);var l=t.getBoxLayoutParams(),u={width:n.getWidth(),height:n.getHeight()},h=t.get("padding"),c=Rc(l,u,h),d=this.layoutInner(t,r,c,i,a,s),p=Rc(X({width:d.width,height:d.height},l),u,h);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=GF(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,n,i,r,o,a){var s=this.getContentGroup(),l=Nt(),u=e.get("selectedMode"),h=[];n.eachRawSeries((function(t){!t.get("legendHoverLink")&&h.push(t.id)})),SH(e.getData(),(function(r,o){var a=r.get("name");if(!this.newlineDisabled&&(""===a||"\n"===a)){var c=new MH;return c.newline=!0,void s.add(c)}var d=n.getSeriesByName(a)[0];if(!l.get(a))if(d){var p=d.getData(),f=p.getVisual("legendLineStyle")||{},g=p.getVisual("legendIcon"),y=p.getVisual("style");this._createItem(d,a,o,r,e,t,f,y,g,u,i).on("click",wH(CH,a,null,i,h)).on("mouseover",wH(AH,d.name,null,i,h)).on("mouseout",wH(DH,d.name,null,i,h)),l.set(a,!0)}else n.eachRawSeries((function(n){if(!l.get(a)&&n.legendVisualProvider){var s=n.legendVisualProvider;if(!s.containName(a))return;var c=s.indexOfName(a),d=s.getItemVisual(c,"style"),p=s.getItemVisual(c,"legendIcon"),f=Mi(d.fill);f&&0===f[3]&&(f[3]=.2,d=Y(Y({},d),{fill:Ni(f,"rgba")})),this._createItem(n,a,o,r,e,t,{},d,p,u,i).on("click",wH(CH,null,a,i,h)).on("mouseover",wH(AH,null,a,i,h)).on("mouseout",wH(DH,null,a,i,h)),l.set(a,!0)}}),this)}),this),r&&this._createSelector(r,e,i,o,a)},e.prototype._createSelector=function(t,e,n,i,r){var o=this.getSelectorGroup();SH(t,(function(t){var i=t.type,r=new Gl({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:"all"===i?"legendAllSelect":"legendInverseSelect"})}});o.add(r),oh(r,{normal:e.getModel("selectorLabel"),emphasis:e.getModel(["emphasis","selectorLabel"])},{defaultText:t.title}),Eu(r)}))},e.prototype._createItem=function(t,e,n,i,r,o,a,s,l,u,h){var c,d,p,f=t.visualDrawType,g=r.get("itemWidth"),y=r.get("itemHeight"),v=r.isSelected(e),m=i.get("symbolRotate"),x=i.get("symbolKeepAspect"),_=i.get("icon"),b=function(t,e,n,i,r,o,a){function s(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),SH(t,(function(n,i){"inherit"===t[i]&&(t[i]=e[i])}))}var l=e.getModel("itemStyle"),u=l.getItemStyle(),h=0===t.lastIndexOf("empty",0)?"fill":"stroke",c=l.getShallow("decal");u.decal=c&&"inherit"!==c?Rm(c,a):i.decal,"inherit"===u.fill&&(u.fill=i[r]),"inherit"===u.stroke&&(u.stroke=i[h]),"inherit"===u.opacity&&(u.opacity=("fill"===r?i:n).opacity),s(u,i);var d=e.getModel("lineStyle"),p=d.getLineStyle();if(s(p,n),"auto"===u.fill&&(u.fill=i.fill),"auto"===u.stroke&&(u.stroke=i.fill),"auto"===p.stroke&&(p.stroke=i.fill),!o){var f=e.get("inactiveBorderWidth"),g=u[h];u.lineWidth="auto"===f?i.lineWidth>0&&g?2:0:u.lineWidth,u.fill=e.get("inactiveColor"),u.stroke=e.get("inactiveBorderColor"),p.stroke=d.get("inactiveColor"),p.lineWidth=d.get("inactiveWidth")}return{itemStyle:u,lineStyle:p}}(l=_||l||"roundRect",i,a,s,f,v,h),w=new MH,S=i.getModel("textStyle");if(!ut(t.getLegendIcon)||_&&"inherit"!==_){var M="inherit"===_&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;w.add((c={itemWidth:g,itemHeight:y,icon:l,iconRotate:M,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:x},(p=rm(d=c.icon||"roundRect",0,0,c.itemWidth,c.itemHeight,c.itemStyle.fill,c.symbolKeepAspect)).setStyle(c.itemStyle),p.rotation=(c.iconRotate||0)*Math.PI/180,p.setOrigin([c.itemWidth/2,c.itemHeight/2]),d.indexOf("empty")>-1&&(p.style.stroke=p.style.fill,p.style.fill="#fff",p.style.lineWidth=2),p))}else w.add(t.getLegendIcon({itemWidth:g,itemHeight:y,icon:l,iconRotate:m,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:x}));var I="left"===o?g+5:-5,C=o,T=r.get("formatter"),A=e;ht(T)&&T?A=T.replace("{name}",null!=e?e:""):ut(T)&&(A=T(e));var D=v?S.getTextColor():i.get("inactiveColor");w.add(new Gl({style:sh(S,{text:A,x:I,y:y/2,fill:D,align:C,verticalAlign:"middle"},{inheritColor:D})}));var k=new Il({shape:w.getBoundingRect(),invisible:!0}),L=i.getModel("tooltip");return L.get("show")&&zy({el:k,componentModel:r,itemName:e,itemTooltipOption:L.option}),w.add(k),w.eachChild((function(t){t.silent=!0})),k.silent=!u,this.getContentGroup().add(w),Eu(w),w.__legendDataIndex=n,w},e.prototype.layoutInner=function(t,e,n,i,r,o){var a=this.getContentGroup(),s=this.getSelectorGroup();Nc(t.get("orient"),a,t.get("itemGap"),n.width,n.height);var l=a.getBoundingRect(),u=[-l.x,-l.y];if(s.markRedraw(),a.markRedraw(),r){Nc("horizontal",s,t.get("selectorItemGap",!0));var h=s.getBoundingRect(),c=[-h.x,-h.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,f=0===p?"width":"height",g=0===p?"height":"width",y=0===p?"y":"x";"end"===o?c[p]+=l[f]+d:u[p]+=h[f]+d,c[1-p]+=l[g]/2-h[g]/2,s.x=c[0],s.y=c[1],a.x=u[0],a.y=u[1];var v={x:0,y:0};return v[f]=l[f]+d+h[f],v[g]=Math.max(l[g],h[g]),v[y]=Math.min(0,h[y]+c[1-p]),v}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 CH(t,e,n,i){DH(t,e,n,i),n.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),AH(t,e,n,i)}function TH(t){for(var e,n=t.getZr().storage.getDisplayList(),i=0,r=n.length;in[r],f=[-c.x,-c.y];e||(f[i]=l[s]);var g=[0,0],y=[-d.x,-d.y],v=wt(t.get("pageButtonGap",!0),t.get("itemGap",!0));p&&("end"===t.get("pageButtonPosition",!0)?y[i]+=n[r]-d[r]:g[i]+=d[r]+v),y[1-i]+=c[o]/2-d[o]/2,l.setPosition(f),u.setPosition(g),h.setPosition(y);var m={x:0,y:0};if(m[r]=p?n[r]:c[r],m[o]=Math.max(c[o],d[o]),m[a]=Math.min(0,d[a]+y[1-i]),u.__rectSize=n[r],p){var x={x:0,y:0};x[r]=Math.max(n[r]-d[r]-v,0),x[o]=m[o],u.setClipPath(new Il({shape:x})),u.__rectSize=x[r]}else h.eachChild((function(t){t.attr({invisible:!0,silent:!0})}));var _=this._getPageInfo(t);return null!=_.pageIndex&&Zu(l,{x:_.contentPosition[0],y:_.contentPosition[1]},p?t:null),this._updatePageInfoView(t,_),m},e.prototype._pageGo=function(t,e,n){var i=this._getPageInfo(e)[t];null!=i&&n.dispatchAction({type:"legendScroll",scrollDataIndex:i,legendId:e.id})},e.prototype._updatePageInfoView=function(t,e){var n=this._controllerGroup;tt(["pagePrev","pageNext"],(function(i){var r=null!=e[i+"DataIndex"],o=n.childOfName(i);o&&(o.setStyle("fill",r?t.get("pageIconColor",!0):t.get("pageIconInactiveColor",!0)),o.cursor=r?"pointer":"default")}));var i=n.childOfName("pageText"),r=t.get("pageFormatter"),o=e.pageIndex,a=null!=o?o+1:0,s=e.pageCount;i&&r&&i.setStyle("text",ht(r)?r.replace("{current}",null==a?"":a+"").replace("{total}",null==s?"":s+""):r({current:a,total:s}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),n=this.getContentGroup(),i=this._containerGroup.__rectSize,r=t.getOrient().index,o=zH[r],a=BH[r],s=this._findTargetItemIndex(e),l=n.children(),u=l[s],h=l.length,c=h?1:0,d={contentPosition:[n.x,n.y],pageCount:c,pageIndex:c-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!u)return d;var p=m(u);d.contentPosition[r]=-p.s;for(var f=s+1,g=p,y=p,v=null;f<=h;++f)(!(v=m(l[f]))&&y.e>g.s+i||v&&!x(v,g.s))&&(g=y.i>g.i?y:v)&&(null==d.pageNextDataIndex&&(d.pageNextDataIndex=g.i),++d.pageCount),y=v;for(f=s-1,g=p,y=p,v=null;f>=-1;--f)(v=m(l[f]))&&x(y,v.s)||!(g.i=e&&t.s<=e+i}},e.prototype._findTargetItemIndex=function(t){return this._showController?(this.getContentGroup().eachChild((function(i,r){var o=i.__legendDataIndex;null==n&&null!=o&&(n=r),o===t&&(e=r)})),null!=e?e:n):0;var e,n},e.type="legend.scroll",e}(kH);const FH=VH;function GH(t){g_(OH),t.registerComponentModel(RH),t.registerComponentView(FH),function(t){t.registerAction("legendScroll","legendscroll",(function(t,e){var n=t.scrollDataIndex;null!=n&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},(function(t){t.setScrollDataIndex(n)}))}))}(t)}const WH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.inside",e.defaultOption=Nh(MF.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(MF);var HH=fa();function $H(t,e){if(e){t.removeKey(e.model.uid);var n=e.controller;n&&n.dispose()}}function jH(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function UH(t,e,n,i){return t.coordinateSystem.containPoint([n,i])}var YH=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,n,i){t.prototype.render.apply(this,arguments),e.noTarget()?this._clear():(this.range=e.getPercentRange(),function(t,e,n){HH(t).coordSysRecordMap.each((function(t){var i=t.dataZoomInfoMap.get(e.uid);i&&(i.getRange=n)}))}(i,e,{pan:at(XH.pan,this),zoom:at(XH.zoom,this),scrollMove:at(XH.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var n=HH(t).coordSysRecordMap,i=n.keys(),r=0;r0?s.pixelStart+s.pixelLength-s.pixel:s.pixel-s.pixelStart)/s.pixelLength*(o[1]-o[0])+o[0],u=Math.max(1/i.scale,0);o[0]=(o[0]-l)*u+l,o[1]=(o[1]-l)*u+l;var h=this.dataZoomModel.findRepresentativeAxisProxy().getMinMaxSpan();return cO(0,o,[0,100],0,h.minSpan,h.maxSpan),this.range=o,r[0]!==o[0]||r[1]!==o[1]?o:void 0}},pan:ZH((function(t,e,n,i,r,o){var a=qH[i]([o.oldX,o.oldY],[o.newX,o.newY],e,r,n);return a.signal*(t[1]-t[0])*a.pixel/a.pixelLength})),scrollMove:ZH((function(t,e,n,i,r,o){return qH[i]([0,0],[o.scrollDelta,o.scrollDelta],e,r,n).signal*(t[1]-t[0])*o.scrollDelta}))};function ZH(t){return function(e,n,i,r){var o=this.range,a=o.slice(),s=e.axisModels[0];if(s)return cO(t(a,s,e,n,i,r),a,[0,100],"all"),this.range=a,o[0]!==a[0]||o[1]!==a[1]?a:void 0}}var qH={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};const KH=YH;function JH(t){NF(t),t.registerComponentModel(WH),t.registerComponentView(KH),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var n=HH(e),i=n.coordSysRecordMap||(n.coordSysRecordMap=Nt());i.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){tt(_F(t).infoList,(function(n){var r=n.model.uid,o=i.get(r)||i.set(r,function(t,e){var n={model:e,containsPoint:st(UH,e),dispatchAction:st(jH,t),dataZoomInfoMap:null,controller:null},i=n.controller=new sA(t.getZr());return tt(["pan","zoom","scrollMove"],(function(t){i.on(t,(function(e){var i=[];n.dataZoomInfoMap.each((function(r){if(e.isAvailableBehavior(r.model.option)){var o=(r.getRange||{})[t],a=o&&o(r.dzReferCoordSysInfo,n.model.mainType,n.controller,e);!r.model.get("disabled",!0)&&a&&i.push({dataZoomId:r.model.id,start:a[0],end:a[1]})}})),i.length&&n.dispatchAction(i)}))})),n}(e,n.model));(o.dataZoomInfoMap||(o.dataZoomInfoMap=Nt())).set(t.uid,{dzReferCoordSysInfo:n,model:t,getRange:null})}))})),i.each((function(t){var e,n=t.controller,r=t.dataZoomInfoMap;if(r){var o=r.keys()[0];null!=o&&(e=r.get(o))}if(e){var a=function(t){var e,n="type_",i={type_true:2,type_move:1,type_false:0,type_undefined:-1},r=!0;return t.each((function(t){var o=t.model,a=!o.get("disabled",!0)&&(!o.get("zoomLock",!0)||"move");i[n+a]>i[n+e]&&(e=a),r=r&&o.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!r}}}(r);n.enable(a.controlType,a.opt),n.setPointerChecker(t.containsPoint),Qy(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else $H(i,t)}))}))}(t)}const QH=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.type="dataZoom.slider",e.layoutMode="box",e.defaultOption=Nh(MF.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}(MF);var t$=Il,e$="horizontal",n$="vertical",i$=["line","bar","candlestick","scatter"],r$={easing:"cubicOut",duration:100,delay:0},o$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._displayables={},n}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,n,i,r){if(t.prototype.render.apply(this,arguments),Qy(this,"_dispatchZoomAction",e.get("throttle"),"fixRate"),this._orient=e.getOrient(),!1!==e.get("show")){if(e.noTarget())return this._clear(),void this.group.removeAll();r&&"dataZoom"===r.type&&r.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(){tv(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 yo;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},e.prototype._resetLocation=function(){var t=this.dataZoomModel,e=this.api,n=t.get("brushSelect")?7:0,i=this._findCoordRect(),r={width:e.getWidth(),height:e.getHeight()},o=this._orient===e$?{right:r.width-i.x-i.width,top:r.height-30-7-n,width:i.width,height:30}:{right:7,top:i.y,width:30,height:i.height},a=Vc(t.option);tt(["right","top","width","height"],(function(t){"ph"===a[t]&&(a[t]=o[t])}));var s=Rc(a,r);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===n$&&this._size.reverse()},e.prototype._positionGroup=function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.sliderGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==e$||r?n===e$&&r?{scaleY:a?1:-1,scaleX:-1}:n!==n$||r?{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([o]);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,n=this._displayables.sliderGroup,i=t.get("brushSelect");n.add(new t$({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var r=new t$({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:at(this._onClickPanel,this)}),o=this.api.getZr();i?(r.on("mousedown",this._onBrushStart,this),r.cursor="crosshair",o.on("mousemove",this._onBrush),o.on("mouseup",this._onBrushEnd)):(o.off("mousemove",this._onBrush),o.off("mouseup",this._onBrushEnd)),n.add(r)},e.prototype._renderDataShadow=function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(this._displayables.dataShadowSegs=[],t){var e=this._size,n=this._shadowSize||[],i=t.series,r=i.getRawData(),o=i.getShadowDim&&i.getShadowDim(),a=o&&r.getDimensionInfo(o)?i.getShadowDim():t.otherDim;if(null!=a){var s=this._shadowPolygonPts,l=this._shadowPolylinePts;if(r!==this._shadowData||a!==this._shadowDim||e[0]!==n[0]||e[1]!==n[1]){var u=r.getDataExtent(a),h=.3*(u[1]-u[0]);u=[u[0]-h,u[1]+h];var c,d=[0,e[1]],p=[0,e[0]],f=[[e[0],0],[0,0]],g=[],y=p[1]/(r.count()-1),v=0,m=Math.round(r.count()/e[0]);r.each([a],(function(t,e){if(m>0&&e%m)v+=y;else{var n=null==t||isNaN(t)||""===t,i=n?0:Ao(t,u,d,!0);n&&!c&&e?(f.push([f[f.length-1][0],0]),g.push([g[g.length-1][0],0])):!n&&c&&(f.push([v,0]),g.push([v,0])),f.push([v,i]),g.push([v,i]),v+=y,c=n}})),s=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=r,this._shadowDim=a,this._shadowSize=[e[0],e[1]];for(var x=this.dataZoomModel,_=0;_<3;_++){var b=w(1===_);this._displayables.sliderGroup.add(b),this._displayables.dataShadowSegs.push(b)}}}function w(t){var e=x.getModel(t?"selectedDataBackground":"dataBackground"),n=new yo,i=new Ng({shape:{points:s},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),r=new zg({shape:{points:l},segmentIgnoreThreshold:1,style:e.getModel("lineStyle").getLineStyle(),silent:!0,z2:-19});return n.add(i),n.add(r),n}},e.prototype._prepareDataShadowInfo=function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(!1!==e){var n,i=this.ecModel;return t.eachTargetAxis((function(r,o){tt(t.getAxisProxy(r,o).getTargetSeriesModels(),(function(t){if(!(n||!0!==e&&q(i$,t.get("type"))<0)){var a,s=i.getComponent(xF(r),o).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[r],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(a=u.getOtherAxis(s).inverse),l=t.getData().mapDimension(l),n={thisAxis:s,series:t,thisDim:r,otherDim:l,otherAxisInverse:a}}}),this)}),this),n}},e.prototype._renderHandle=function(){var t=this.group,e=this._displayables,n=e.handles=[null,null],i=e.handleLabels=[null,null],r=this._displayables.sliderGroup,o=this._size,a=this.dataZoomModel,s=this.api,l=a.get("borderRadius")||0,u=a.get("brushSelect"),h=e.filler=new t$({silent:u,style:{fill:a.get("fillerColor")},textConfig:{position:"inside"}});r.add(h),r.add(new t$({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:o[0],height:o[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 o=a.get("handleIcon");!em[o]&&o.indexOf("path://")<0&&o.indexOf("image://")<0&&(o="path://"+o);var s=rm(o,-1,0,2,2,null,!0);s.attr({cursor:a$(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=Do(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(),Eu(s);var h=a.get("handleColor");null!=h&&(s.style.fill=h),r.add(n[e]=s);var c=a.getModel("textStyle");t.add(i[e]=new Gl({silent:!0,invisible:!0,style:sh(c,{x:0,y:0,text:"",verticalAlign:"middle",align:"center",fill:c.getTextColor(),font:c.getFont()}),z2:10}))}),this);var c=h;if(u){var d=Do(a.get("moveHandleSize"),o[1]),p=e.moveHandle=new Il({style:a.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:o[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=rm(a.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=o[1]+d/2-.5,p.ensureState("emphasis").style=a.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var y=Math.min(o[1]/2,Math.max(d,10));(c=e.moveZone=new Il({invisible:!0,shape:{y:o[1]-y,height:d+y}})).on("mouseover",(function(){s.enterEmphasis(p)})).on("mouseout",(function(){s.leaveEmphasis(p)})),r.add(p),r.add(g),r.add(c)}c.attr({draggable:!0,cursor:a$(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=[Ao(t[0],[0,100],e,!0),Ao(t[1],[0,100],e,!0)]},e.prototype._updateInterval=function(t,e){var n=this.dataZoomModel,i=this._handleEnds,r=this._getViewExtent(),o=n.findRepresentativeAxisProxy().getMinMaxSpan(),a=[0,100];cO(e,i,r,n.get("zoomLock")?"all":t,null!=o.minSpan?Ao(o.minSpan,a,r,!0):null,null!=o.maxSpan?Ao(o.maxSpan,a,r,!0):null);var s=this._range,l=this._range=Lo([Ao(i[0],r,a,!0),Ao(i[1],r,a,!0)]);return!s||s[0]!==l[0]||s[1]!==l[1]},e.prototype._updateView=function(t){var e=this._displayables,n=this._handleEnds,i=Lo(n.slice()),r=this._size;tt([0,1],(function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scaleX:o/2,scaleY:o/2,x:n[t]+(t?-1:1),y:r[1]/2-o/2})}),this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]});var o={x:i[0],width:i[1]-i[0]};e.moveHandle&&(e.moveHandle.setShape(o),e.moveZone.setShape(o),e.moveZone.getBoundingRect(),e.moveHandleIcon&&e.moveHandleIcon.attr("x",o.x+o.width/2));for(var a=e.dataShadowSegs,s=[0,i[0],i[1],r[0]],l=0;le[0]||n[1]<0||n[1]>e[1])){var i=this._handleEnds,r=(i[0]+i[1])/2,o=this._updateInterval("all",n[0]-r);this._updateView(),o&&this._dispatchZoomAction(!1)}},e.prototype._onBrushStart=function(t){var e=t.offsetX,n=t.offsetY;this._brushStart=new qe(e,n),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 n=e.shape;if(!(+new Date-this._brushStartTime<200&&Math.abs(n.width)<5)){var i=this._getViewExtent(),r=[0,100];this._range=Lo([Ao(n.x,i,r,!0),Ao(n.x+n.width,i,r,!0)]),this._handleEnds=[n.x,n.x+n.width],this._updateView(),this._dispatchZoomAction(!1)}}}},e.prototype._onBrush=function(t){this._brushing&&(Re(t.event),this._updateBrushRect(t.offsetX,t.offsetY))},e.prototype._updateBrushRect=function(t,e){var n=this._displayables,i=this.dataZoomModel,r=n.brushRect;r||(r=n.brushRect=new t$({silent:!0,style:i.getModel("brushStyle").getItemStyle()}),n.sliderGroup.add(r)),r.attr("ignore",!1);var o=this._brushStart,a=this._displayables.sliderGroup,s=a.transformCoordToLocal(t,e),l=a.transformCoordToLocal(o.x,o.y),u=this._size;s[0]=Math.max(Math.min(u[0],s[0]),0),r.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?r$:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=_F(this.dataZoomModel).infoList;if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}if(!t){var i=this.api.getWidth(),r=this.api.getHeight();t={x:.2*i,y:.2*r,width:.6*i,height:.6*r}}return t},e.type="dataZoom.slider",e}(CF);function a$(t){return"vertical"===t?"ns-resize":"ew-resize"}const s$=o$;function l$(t){t.registerComponentModel(QH),t.registerComponentView(s$),NF(t)}var u$={get:function(t,e,n){var i=$((h$[t]||{})[e]);return n&<(i)?i[i.length-1]:i}},h$={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 c$=u$;var d$=nL.mapVisual,p$=nL.eachVisual,f$=lt,g$=tt,y$=Lo,v$=Ao,m$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n.stateList=["inRange","outOfRange"],n.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],n.layoutMode={type:"box",ignoreSize:!0},n.dataBound=[-1/0,1/0],n.targetVisuals={},n.controllerVisuals={},n}return m(e,t),e.prototype.init=function(t,e,n){this.mergeDefaultAndTheme(t,n)},e.prototype.optionUpdated=function(t,e){var n=this.option;!e&&nW(n,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=eW(this.option.controller,e,t),this.targetVisuals=eW(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,n){e.push(n)})):e=na(t),e},e.prototype.eachTargetSeries=function(t,e){tt(this.getTargetSeriesIndices(),(function(n){var i=this.ecModel.getSeriesByIndex(n);i&&t.call(e,i)}),this)},e.prototype.isTargetSeries=function(t){var e=!1;return this.eachTargetSeries((function(n){n===t&&(e=!0)})),e},e.prototype.formatValueText=function(t,e,n){var i,r=this.option,o=r.precision,a=this.dataBound,s=r.formatter;n=n||["<",">"],lt(t)&&(t=t.slice(),i=!0);var l=e?t:i?[u(t[0]),u(t[1])]:u(t);return ht(s)?s.replace("{value}",i?l[0]:l).replace("{value2}",i?l[1]:l):ut(s)?i?s(t[0],t[1]):s(t):i?t[0]===a[0]?n[0]+" "+l[1]:t[1]===a[1]?n[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===a[0]?"min":t===a[1]?"max":(+t).toFixed(Math.min(o,20))}},e.prototype.resetExtent=function(){var t=this.option,e=y$([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 n=t.dimensions,i=n.length-1;i>=0;i--){var r=n[i],o=t.getDimensionInfo(r);if(!o.isCalculationCoord)return o.storeDimIndex}},e.prototype.getExtent=function(){return this._dataExtent.slice()},e.prototype.completeVisualOption=function(){var t=this.ecModel,e=this.option,n={inRange:e.inRange,outOfRange:e.outOfRange},i=e.target||(e.target={}),r=e.controller||(e.controller={});j(i,n),j(r,n);var o=this.isCategory();function a(n){f$(e.color)&&!n.inRange&&(n.inRange={color:e.color.slice().reverse()}),n.inRange=n.inRange||{color:t.get("gradientColor")}}a.call(this,i),a.call(this,r),function(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},g$(i,(function(t,e){if(nL.isValidType(e)){var n=c$.get(e,"inactive",o);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}})))}.call(this,i,"inRange","outOfRange"),function(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor"),r=this.getItemSymbol()||"roundRect";g$(this.stateList,(function(a){var s=this.itemSize,l=t[a];l||(l=t[a]={color:o?i:[i]}),null==l.symbol&&(l.symbol=e&&$(e)||(o?r:[r])),null==l.symbolSize&&(l.symbolSize=n&&$(n)||(o?s[0]:[s[0],s[0]])),l.symbol=d$(l.symbol,(function(t){return"none"===t?r:t}));var u=l.symbolSize;if(null!=u){var h=-1/0;p$(u,(function(t){t>h&&(h=t)})),l.symbolSize=d$(u,(function(t){return v$(t,[0,h],[0,s[0]],!0)}))}}),this)}.call(this,r)},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}(Hc);const x$=m$;var _$=[20,140],b$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.optionUpdated=function(e,n){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]=_$[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=_$[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=Lo((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[];return this.eachTargetSeries((function(n){var i=[],r=n.getData();r.each(this.getDataDimensionIndex(r),(function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)}),this),e.push({seriesId:n.id,dataIndex:i})}),this),e},e.prototype.getVisualMeta=function(t){var e=w$(0,0,this.getExtent()),n=w$(0,0,this.option.range.slice()),i=[];function r(e,n){i.push({value:e,color:t(e,n)})}for(var o=0,a=0,s=n.length,l=e.length;at[1])break;n.push({color:this.getControllerVisual(o,"color",e),offset:r/100})}return n.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),n},e.prototype._createBarPoints=function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},e.prototype._createBarGroup=function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new yo("horizontal"!==e||n?"horizontal"===e&&n?{scaleX:"bottom"===t?-1:1,rotation:-Math.PI/2}:"vertical"!==e||n?{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 n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels,a=i.itemSize,s=i.getExtent();D$([0,1],(function(l){var u=r[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var h=A$(t[l],[0,a[1]],s,!0),c=this.getControllerVisual(h,"symbolSize");u.scaleX=u.scaleY=c/a[0],u.x=a[0]-c/2;var d=Ty(n.handleLabelPoints[l],Cy(u,this.group));o[l].setStyle({x:d[0],y:d[1],text:i.formatValueText(this._dataInterval[l]),verticalAlign:"middle",align:"vertical"===this._orient?this._applyTransform("left",n.mainGroup):"center"})}),this)}},e.prototype._showIndicator=function(t,e,n,i){var r=this.visualMapModel,o=r.getExtent(),a=r.itemSize,s=[0,a[1]],l=this._shapes,u=l.indicator;if(u){u.attr("invisible",!1);var h=this.getControllerVisual(t,"color",{convertOpacityToAlpha:!0}),c=this.getControllerVisual(t,"symbolSize"),d=A$(t,o,s,!0),p=a[0]-c/2,f={x:u.x,y:u.y};u.y=d,u.x=p;var g=Ty(l.indicatorLabelPoint,Cy(u,this.group)),y=l.indicatorLabel;y.attr("invisible",!1);var v=this._applyTransform("left",l.mainGroup),m="horizontal"===this._orient;y.setStyle({text:(n||"")+r.formatValueText(e),verticalAlign:m?v:"middle",align:m?"center":v});var x={x:p,y:d,style:{fill:h}},_={style:{x:g[0],y:g[1]}};if(r.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var b={duration:100,easing:"cubicInOut",additive:!0};u.x=f.x,u.y=f.y,u.animateTo(x,b),y.animateTo(_,b)}else u.attr(x),y.attr(_);this._firstShowIndicator=!1;var w=this._shapes.handleLabels;if(w)for(var S=0;Sr[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 h=this._hoverLinkDataIndices,c=[];(e||N$(n))&&(c=this._hoverLinkDataIndices=n.findTargetDataIndices(u));var d=function(t,e){var n={},i={};return r(t||[],n),r(e||[],i,n),[o(n),o(i)];function r(t,e,n){for(var i=0,r=t.length;i=0&&(r.dimension=o,i.push(r))}})),t.getData().setVisual("visualMeta",i)}}];function F$(t,e,n,i){for(var r=e.targetVisuals[i],o=nL.prepareVisualTypes(r),a={color:Gv(t.getData(),"color")},s=0,l=o.length;s0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(z$,B$),tt(V$,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(W$))}function U$(t){t.registerComponentModel(S$),t.registerComponentView(E$),j$(t)}var Y$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n._pieceList=[],n}return m(e,t),e.prototype.optionUpdated=function(e,n){t.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],X$[this._mode].call(this,this._pieceList),this._resetSelected(e,n);var r=this.option.categories;this.resetVisual((function(t,e){"categories"===i?(t.mappingMethod="category",t.categories=$(r)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=et(this._pieceList,(function(t){return t=$(t),"inRange"!==e&&(t.visual=null),t})))}))},e.prototype.completeVisualOption=function(){var e=this.option,n={},i=nL.listVisualTypes(),r=this.isCategory();function o(t,e,n){return t&&t[e]&&t[e].hasOwnProperty(n)}tt(e.pieces,(function(t){tt(i,(function(e){t.hasOwnProperty(e)&&(n[e]=1)}))})),tt(n,(function(t,n){var i=!1;tt(this.stateList,(function(t){i=i||o(e,t,n)||o(e.target,t,n)}),this),!i&&tt(this.stateList,(function(t){(e[t]||(e[t]={}))[n]=c$.get(n,"inRange"===t?"active":"inactive",r)}))}),this),t.prototype.completeVisualOption.apply(this,arguments)},e.prototype._resetSelected=function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,tt(i,(function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)}),this),"single"===n.selectedMode){var o=!1;tt(i,(function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(o?r[n]=!1:o=!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=$(t)},e.prototype.getValueState=function(t){var e=nL.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},e.prototype.findTargetDataIndices=function(t){var e=[],n=this._pieceList;return this.eachTargetSeries((function(i){var r=[],o=i.getData();o.each(this.getDataDimensionIndex(o),(function(e,i){nL.findPieceIndex(e,n)===t&&r.push(i)}),this),e.push({seriesId:i.id,dataIndex:r})}),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 n=t.interval||[];e=n[0]===-1/0&&n[1]===1/0?0:(n[0]+n[1])/2}return e},e.prototype.getVisualMeta=function(t){if(!this.isCategory()){var e=[],n=["",""],i=this,r=this._pieceList.slice();if(r.length){var o=r[0].interval[0];o!==-1/0&&r.unshift({interval:[-1/0,o]}),(o=r[r.length-1].interval[1])!==1/0&&r.push({interval:[o,1/0]})}else r.push({interval:[-1/0,1/0]});var a=-1/0;return tt(r,(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:n}}function s(r,o){var a=i.getRepresentValue({interval:r});o||(o=i.getValueState(a));var s=t(a,o);r[0]===-1/0?n[0]=s:r[1]===1/0?n[1]=s:e.push({value:r[0],color:s},{value:r[1],color:s})}},e.type="visualMap.piecewise",e.defaultOption=Nh(x$.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}(x$),X$={splitNumber:function(t){var e=this.option,n=Math.min(e.precision,20),i=this.getExtent(),r=e.splitNumber;r=Math.max(parseInt(r,10),1),e.splitNumber=r;for(var o=(i[1]-i[0])/r;+o.toFixed(n)!==o&&n<5;)n++;e.precision=n,o=+o.toFixed(n),e.minOpen&&t.push({interval:[-1/0,i[0]],close:[0,0]});for(var a=0,s=i[0];a","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)}),this)}};function Z$(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}const q$=Y$,K$=function(t){function e(){var n=null!==t&&t.apply(this,arguments)||this;return n.type=e.type,n}return m(e,t),e.prototype.doRender=function(){var t=this.group;t.removeAll();var e=this.visualMapModel,n=e.get("textGap"),i=e.textStyleModel,r=i.getFont(),o=i.getTextColor(),a=this._getItemAlign(),s=e.itemSize,l=this._getViewData(),u=l.endsText,h=bt(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],s,h,a),tt(l.viewPieceList,(function(i){var l=i.piece,u=new yo;u.onclick=at(this._onItemClick,this,l),this._enableHoverLink(u,i.indexInModelPieceList);var c=e.getRepresentValue(l);if(this._createItemSymbol(u,c,[0,0,s[0],s[1]]),h){var d=this.visualMapModel.getValueState(c);u.add(new Gl({style:{x:"right"===a?-n:s[0]+n,y:s[1]/2,text:l.text,verticalAlign:"middle",align:a,font:r,fill:o,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],s,h,a),Nc(e.get("orient"),t,e.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},e.prototype._enableHoverLink=function(t,e){var n=this;t.on("mouseover",(function(){return i("highlight")})).on("mouseout",(function(){return i("downplay")}));var i=function(t){var i=n.visualMapModel;i.option.hoverLink&&n.api.dispatchAction({type:t,batch:T$(i.findTargetDataIndices(e),i)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return C$(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},e.prototype._renderEndsText=function(t,e,n,i,r){if(e){var o=new yo,a=this.visualMapModel.textStyleModel;o.add(new Gl({style:sh(a,{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,verticalAlign:"middle",align:i?r:"center",text:e})})),t.add(o)}},e.prototype._getViewData=function(){var t=this.visualMapModel,e=et(t.getPieceList(),(function(t,e){return{piece:t,indexInModelPieceList:e}})),n=t.get("text"),i=t.get("orient"),r=t.get("inverse");return("horizontal"===i?r:!r)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},e.prototype._createItemSymbol=function(t,e,n){t.add(rm(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},e.prototype._onItemClick=function(t){var e=this.visualMapModel,n=e.option,i=n.selectedMode;if(i){var r=$(n.selected),o=e.getSelectedMapKey(t);"single"===i||!0===i?(r[o]=!0,tt(r,(function(t,e){r[e]=e===o}))):r[o]=!r[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:r})}},e.type="visualMap.piecewise",e}(M$);function J$(t){t.registerComponentModel(q$),t.registerComponentView(K$),j$(t)}var Q$={label:{enabled:!0},decal:{show:!1}},tj=fa(),ej={};function nj(t,e){var n=t.getModel("aria");if(n.get("enabled")){var i=$(Q$);j(i.label,t.getLocaleModel().get("aria"),!1),j(n.option,i,!1),function(){if(n.getModel("decal").get("show")){var e=Nt();t.eachSeries((function(t){if(!t.isColorBySeries()){var n=e.get(t.type);n||(n={},e.set(t.type,n)),tj(t).scope=n}})),t.eachRawSeries((function(e){if(!t.isSeriesFiltered(e))if(ut(e.enableAriaDecal))e.enableAriaDecal();else{var n=e.getData();if(e.isColorBySeries()){var i=yd(e.ecModel,e.name,ej,t.getSeriesCount()),r=n.getVisual("decal");n.setVisual("decal",u(r,i))}else{var o=e.getRawData(),a={},s=tj(e).scope;n.each((function(t){var e=n.getRawIndex(t);a[e]=t}));var l=o.count();o.each((function(t){var i=a[t],r=o.getName(t)||t+"",h=yd(e.ecModel,r,s,l),c=n.getItemVisual(i,"decal");n.setItemVisual(i,"decal",u(c,h))}))}}function u(t,e){var n=t?Y(Y({},e),t):e;return n.dirty=!0,n}}))}}(),function(){var i=t.getLocaleModel().get("aria"),o=n.getModel("label");if(o.option=X(o.option,i),o.get("enabled")){var a=e.getZr().dom;if(o.get("description"))a.setAttribute("aria-label",o.get("description"));else{var s,l=t.getSeriesCount(),u=o.get(["data","maxCount"])||10,h=o.get(["series","maxCount"])||10,c=Math.min(l,h);if(!(l<1)){var d=function(){var e=t.get("title");return e&&e.length&&(e=e[0]),e&&e.text}();s=d?r(o.get(["general","withTitle"]),{title:d}):o.get(["general","withoutTitle"]);var p=[];s+=r(l>1?o.get(["series","multiple","prefix"]):o.get(["series","single","prefix"]),{seriesCount:l}),t.eachSeries((function(e,n){if(n1?o.get(["series","multiple",a]):o.get(["series","single",a]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(x=e.subType,t.getLocaleModel().get(["series","typeNames"])[x]||"自定义图")});var s=e.getData();s.count()>u?i+=r(o.get(["data","partialData"]),{displayCnt:u}):i+=o.get(["data","allData"]);for(var h=o.get(["data","separator","middle"]),d=o.get(["data","separator","end"]),f=[],g=0;g":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},oj=function(){function t(t){null==(this._condVal=ht(t)?new RegExp(t):xt(t)?t:null)&&kp("")}return t.prototype.evaluate=function(t){var e=typeof t;return ht(e)?this._condVal.test(t):!!dt(e)&&this._condVal.test(t+"")},t}(),aj=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),sj=function(){function t(){}return t.prototype.evaluate=function(){for(var t=this.children,e=0;e2&&l.push(e),e=[t,n]}function f(t,n,i,r){_j(t,i)&&_j(n,r)||e.push(t,n,i,r,i,r)}function g(t,n,i,r,o,a){var s=Math.abs(n-t),l=4*Math.tan(s/4)/3,u=nM:T2&&l.push(e),l}function wj(t,e,n,i,r,o,a,s,l,u){if(_j(t,n)&&_j(e,i)&&_j(r,a)&&_j(o,s))l.push(a,s);else{var h=2/u,c=h*h,d=a-t,p=s-e,f=Math.sqrt(d*d+p*p);d/=f,p/=f;var g=n-t,y=i-e,v=r-a,m=o-s,x=g*g+y*y,_=v*v+m*m;if(x=0&&_-w*w=0)l.push(a,s);else{var S=[],M=[];qn(t,n,r,a,.5,S),qn(e,i,o,s,.5,M),wj(S[0],M[0],S[1],M[1],S[2],M[2],S[3],M[3],l,u),wj(S[4],M[4],S[5],M[5],S[6],M[6],S[7],M[7],l,u)}}}}function Sj(t,e,n){var i=t[e],r=t[1-e],o=Math.abs(i/r),a=Math.ceil(Math.sqrt(o*n)),s=Math.floor(n/a);0===s&&(s=1,a=n);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),c=Sj([l,u],h?0:1,e),d=(h?s:u)/c.length,p=0;p1?null:new qe(p*l+t,p*u+e)}function Tj(t,e,n){var i=new qe;qe.sub(i,n,e),i.normalize();var r=new qe;return qe.sub(r,t,e),r.dot(i)}function Aj(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function Dj(t){var e=t.points,n=[],i=[];vs(e,n,i);var r=new sn(n[0],n[1],i[0]-n[0],i[1]-n[1]),o=r.width,a=r.height,s=r.x,l=r.y,u=new qe,h=new qe;return o>a?(u.x=h.x=s+o/2,u.y=l,h.y=l+a):(u.y=h.y=l+a/2,u.x=s,h.x=s+o),function(t,e,n){for(var i=t.length,r=[],o=0;o0;l/=2){var u=0,h=0;(t&l)>0&&(u=1),(e&l)>0&&(h=1),s+=l*l*(3*u^h),0===h&&(1===u&&(t=l-1-t,e=l-1-e),a=t,t=e,e=a)}return s}function jj(t){var e=1/0,n=1/0,i=-1/0,r=-1/0,o=et(t,(function(t){var o=t.getBoundingRect(),a=t.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return e=Math.min(s,e),n=Math.min(l,n),i=Math.max(s,i),r=Math.max(l,r),[s,l]}));return et(o,(function(o,a){return{cp:o,z:$j(o[0],o[1],e,n,i,r),path:t[a]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function Uj(t){return function(t,e){var n,i=[],r=t.shape;switch(t.type){case"rect":!function(t,e,n){for(var i=t.width,r=t.height,o=i>r,a=Sj([i,r],o?0:1,e),s=o?"width":"height",l=o?"height":"width",u=o?"x":"y",h=o?"y":"x",c=t[s]/a.length,d=0;d=0;r--)if(!n[r].many.length){var l=n[s].many;if(l.length<=1){if(!s)return n;s=0}o=l.length;var u=Math.ceil(o/2);n[r].many=l.slice(u,o),n[s].many=l.slice(0,u),s++}return n}var Zj={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),i=0;i0){var s,l,u=i.getModel("universalTransition").get("delay"),h=Object.assign({setToFinal:!0},a);Yj(t)&&(s=t,l=e),Yj(e)&&(s=e,l=t);for(var c=s?s===t:t.length>e.length,d=s?Xj(l,s):Xj(c?e:t,[c?t:e]),p=0,f=0;fJj))for(var i=n.getIndices(),r=function(t){for(var e=t.dimensions,n=0;n0&&i.group.traverse((function(t){t instanceof hl&&!t.animators.length&&t.animateFrom({style:{opacity:0}},r)}))}))}function oU(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function aU(t){return lt(t)?t.sort().join(","):t}function sU(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function lU(t,e){for(var n=0;n=0&&r.push({dataGroupId:e.oldDataGroupIds[n],data:e.oldData[n],divide:sU(e.oldData[n]),dim:t.dimension})})),tt(na(t.to),(function(t){var i=lU(n.updatedSeries,t);if(i>=0){var r=n.updatedSeries[i].getData();o.push({dataGroupId:e.oldDataGroupIds[i],data:r,divide:sU(r),dim:t.dimension})}})),r.length>0&&o.length>0&&rU(r,o,i)}(t,i,n,e)}));else{var o=function(t,e){var n=Nt(),i=Nt(),r=Nt();return tt(t.oldSeries,(function(e,n){var o=t.oldDataGroupIds[n],a=t.oldData[n],s=oU(e),l=aU(s);i.set(l,{dataGroupId:o,data:a}),lt(s)&&tt(s,(function(t){r.set(t,{key:l,dataGroupId:o,data:a})}))})),tt(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),o=t.getData(),a=oU(t),s=aU(a),l=i.get(s);if(l)n.set(s,{oldSeries:[{dataGroupId:l.dataGroupId,divide:sU(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:sU(o),data:o}]});else if(lt(a)){var u=[];tt(a,(function(t){var e=i.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:sU(e.data),data:e.data})})),u.length&&n.set(s,{oldSeries:u,newSeries:[{dataGroupId:e,data:o,divide:sU(o)}]})}else{var h=r.get(a);if(h){var c=n.get(h.key);c||(c={oldSeries:[{dataGroupId:h.dataGroupId,data:h.data,divide:sU(h.data)}],newSeries:[]},n.set(h.key,c)),c.newSeries.push({dataGroupId:e,data:o,divide:sU(o)})}}}})),n}(i,n);tt(o.keys(),(function(t){var n=o.get(t);rU(n.oldSeries,n.newSeries,e)}))}tt(n.updatedSeries,(function(t){t[Af]&&(t[Af]=!1)}))}for(var a=t.getSeries(),s=i.oldSeries=[],l=i.oldDataGroupIds=[],u=i.oldData=[],h=0;h{e.registerTheme(t.themeName,t.theme)}))}pU(),"undefined"==typeof window?Promise.resolve():(0,f.p)().then((()=>(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 a.e(1326).then(a.bind(a,1326)).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"],"eventDelimiter":[1,"event-delimiter"],"timeReference":[1,"time-reference"],"textSelectDate":[1,"text-select-date"]}]]],["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-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-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]}]]],["ix-basic-navigation",[[1,"ix-basic-navigation",{"applicationName":[1,"application-name"],"hideHeader":[4,"hide-header"],"forceBreakpoint":[1,"force-breakpoint"],"breakpoints":[16],"breakpoint":[32]}]]],["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]}]]],["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"],"textInput":[32],"hasFocus":[32],"categoryLogicalOperator":[32],"inputValue":[32],"category":[32],"filterTokens":[32]}]]],["ix-dropdown-button",[[1,"ix-dropdown-button",{"variant":[1],"outline":[4],"ghost":[4],"disabled":[4],"label":[1],"icon":[1],"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"]]]]],["ix-menu-about",[[1,"ix-menu-about",{"activeTabLabel":[1025,"active-tab-label"],"label":[1],"show":[4],"labels":[32]}]]],["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-avatar",[[1,"ix-menu-avatar",{"top":[1],"bottom":[1],"image":[1],"initials":[1],"i18nLogout":[1,"i-1-8n-logout"]}]]],["ix-menu-settings",[[1,"ix-menu-settings",{"activeTabLabel":[1025,"active-tab-label"],"label":[1],"show":[4]}]]],["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-modal-header",[[1,"ix-modal-header",{"hideClose":[4,"hide-close"],"icon":[1],"iconColor":[1,"icon-color"]}]]],["ix-toast-container",[[1,"ix-toast-container",{"containerId":[1,"container-id"],"containerClass":[1,"container-class"],"position":[1],"showToast":[64]}]]],["ix-chip",[[1,"ix-chip",{"variant":[513],"active":[4],"closable":[4],"icon":[1],"background":[1],"color":[1],"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]}]]],["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]},[[9,"pointerup","onPointerUp"]]]]],["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]}]]],["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]}]]],["ix-modal-loading",[[1,"ix-modal-loading"]]],["ix-split-button-item",[[1,"ix-split-button-item",{"icon":[1],"label":[1]}]]],["ix-toggle-button",[[1,"ix-toggle-button",{"variant":[1],"outline":[4],"ghost":[4],"disabled":[516],"loading":[4],"icon":[1],"pressed":[4]}]]],["ix-tree",[[1,"ix-tree",{"root":[1],"model":[16],"renderItem":[16],"context":[1040]}]]],["ix-application",[[1,"ix-application",{"theme":[1],"themeSystemAppearance":[4,"theme-system-appearance"],"forceBreakpoint":[1,"force-breakpoint"],"breakpoints":[16],"breakpoint":[32],"applicationSidebarSlotted":[32]}]]],["ix-application-sidebar",[[1,"ix-application-sidebar",{"visible":[32]},[[8,"application-sidebar-toggle","listenToggleEvent"]]]]],["ix-col",[[1,"ix-col",{"size":[1],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"]},[[9,"resize","onResize"]]]]],["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]}]]],["ix-event-list-item",[[1,"ix-event-list-item",{"color":[1],"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-layout-grid",[[1,"ix-layout-grid",{"noMargin":[4,"no-margin"],"gap":[1],"columns":[2]}]]],["ix-link-button",[[1,"ix-link-button",{"disabled":[4],"url":[1],"target":[1]}]]],["ix-menu-about-item",[[1,"ix-menu-about-item",{"label":[513]}]]],["ix-menu-settings-item",[[1,"ix-menu-settings-item",{"label":[1]}]]],["ix-modal",[[1,"ix-modal",{"size":[1],"animation":[4],"backdrop":[4],"closeOnBackdropClick":[4,"close-on-backdrop-click"],"beforeDismiss":[16],"centered":[4],"keyboard":[4],"showModal":[64],"dismissModal":[64],"closeModal":[64]}]]],["ix-modal-content",[[1,"ix-modal-content"]]],["ix-modal-footer",[[1,"ix-modal-footer"]]],["ix-pill",[[1,"ix-pill",{"variant":[513],"outline":[4],"icon":[1],"background":[1],"color":[1],"alignLeft":[4,"align-left"]}]]],["ix-row",[[1,"ix-row"]]],["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]}]]],["ix-workflow-step",[[1,"ix-workflow-step",{"vertical":[4],"disabled":[4],"status":[1],"clickable":[4],"selected":[4],"position":[1],"iconName":[32],"iconColor":[32]}]]],["ix-workflow-steps",[[1,"ix-workflow-steps",{"vertical":[4],"clickable":[4],"selectedIndex":[2,"selected-index"]},[[0,"selectedChanged","onStepSelectionChanged"]]]]],["my-component",[[2,"my-component"]]],["ix-icon-button_2",[[1,"ix-icon-button",{"variant":[1],"outline":[4],"ghost":[4],"oval":[4],"icon":[1],"size":[1],"color":[1],"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"],[8,"keydown","onKeyDown"]]]]],["ix-map-navigation-overlay",[[1,"ix-map-navigation-overlay",{"name":[1],"icon":[1],"color":[1]}]]],["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"]}]]],["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-divider",[[1,"ix-divider"]]],["ix-tree-item",[[1,"ix-tree-item",{"text":[1],"hasChildren":[4,"has-children"],"context":[16]}]]],["ix-date-time-card",[[1,"ix-date-time-card",{"individual":[4],"corners":[1]}]]],["ix-date-picker_2",[[1,"ix-date-picker",{"format":[1],"range":[4],"individual":[4],"corners":[1],"from":[1],"to":[1],"minDate":[1,"min-date"],"maxDate":[1,"max-date"],"eventDelimiter":[1,"event-delimiter"],"textSelectDate":[1,"text-select-date"],"yearValue":[32],"today":[32],"monthValue":[32],"calendar":[32],"years":[32],"tempYear":[32],"tempMonth":[32],"start":[32],"end":[32],"dropdownButtonRef":[32],"yearContainerRef":[32],"getCurrentDate":[64]}],[1,"ix-time-picker",{"format":[1],"corners":[1],"individual":[4],"showHour":[4,"show-hour"],"showMinutes":[4,"show-minutes"],"showSeconds":[4,"show-seconds"],"time":[1],"showTimeReference":[1032,"show-time-reference"],"timeReference":[1025,"time-reference"],"textSelectTime":[1,"text-select-time"],"hourInputRef":[32],"minuteInputRef":[32],"secondInputRef":[32],"referenceInputRef":[32],"getCurrentTime":[64]}]]],["ix-application-header",[[1,"ix-application-header",{"name":[1],"breakpoint":[32],"menuExpanded":[32]}]]],["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-avatar_2",[[1,"ix-menu-avatar-item",{"icon":[1],"label":[1]}],[1,"ix-avatar",{"image":[1],"initials":[1]}]]],["ix-card-accordion_2",[[1,"ix-card-accordion",{"expandContent":[32]}],[1,"ix-card-title"]]],["ix-menu-item",[[1,"ix-menu-item",{"home":[4],"bottom":[4],"tabIcon":[1,"tab-icon"],"icon":[1],"notifications":[2],"active":[4],"disabled":[4],"title":[32]}]]],["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],"styleNextArrow":[32],"stylePreviousArrow":[32],"scrollActionAmount":[32]},[[9,"resize","onWindowResize"],[0,"tabClick","onTabClick"]]]]],["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]}]]],["ix-filter-chip_2",[[1,"ix-select-item",{"label":[513],"value":[520],"selected":[4],"hover":[4],"onItemClick":[64]}],[1,"ix-filter-chip",{"disabled":[4],"readonly":[4]}]]],["ix-card_2",[[1,"ix-card",{"variant":[1]}],[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-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],"triggerEvent":[1,"trigger-event"],"overwriteDropdownStyle":[16],"updatePosition":[64]},[[8,"click","clickOutside"],[8,"keydown","keydown"]]]]],["ix-typography",[[1,"ix-typography",{"variant":[1],"format":[1],"color":[1],"bold":[4],"textDecoration":[1,"text-decoration"]}]]]]'),undefined)))),window.showMessage=t=>{y(JSON.parse(t))},window.initializeChart=(t,e)=>{pU(p),Gx(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()}})()})(); \ No newline at end of file +(()=>{var t,e,o,n,i={1617:(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},9391:(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={}))},4801:(t,e,o)=>{"use strict";o.d(e,{F:()=>Q,H:()=>h,b:()=>Z,c:()=>m,f:()=>V,g:()=>y,h:()=>p,p:()=>gt,r:()=>rt});let n,i,r=!1,s=!1;const a="http://www.w3.org/1999/xlink",l={},u=t=>"object"==(t=typeof t)||"function"===t;function c(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 p=(t,e,...o)=>{let n=null,i=null,r=!1,s=!1;const a=[],l=e=>{for(let o=0;ot[e])).join(" "))}}if("function"==typeof t)return t(null===e?{}:e,a,f);const c=d(t,null);return c.$attrs$=e,a.length>0&&(c.$children$=a),c.$key$=i,c},d=(t,e)=>({$flags$:0,$tag$:t,$text$:e,$elm$:null,$children$:null,$attrs$:null,$key$:null}),h={},f={forEach:(t,e)=>t.map(g).forEach(e),map:(t,e)=>t.map(g).map(e).map(v)},g=t=>({vattrs:t.$attrs$,vchildren:t.$children$,vkey:t.$key$,vname:t.$name$,vtag:t.$tag$,vtext:t.$text$}),v=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),p(t.vtag,e,...t.vchildren||[])}const e=d(t.vtag,t.vtext);return e.$attrs$=t.vattrs,e.$children$=t.vchildren,e.$key$=t.vkey,e.$name$=t.vname,e},y=t=>it(t).$hostElement$,m=(t,e,o)=>{const n=y(t);return{emit:t=>C(n,e,{bubbles:!!(4&o),composed:!!(2&o),cancelable:!!(1&o),detail:t})}},C=(t,e,o)=>{const n=ft.ce(e,o);return t.dispatchEvent(n),n},w=new WeakMap,S=(t,e)=>"sc-"+t.$tagName$,b=(t,e,o,n,i,r)=>{if(o!==n){let s=at(t,e),l=e.toLowerCase();if("class"===e){const e=t.classList,i=E(o),r=E(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(s||"o"!==e[0]||"n"!==e[1]){const c=u(n);if((s||c&&null!==n)&&!i)try{if(t.tagName.includes("-"))t[e]=n;else{const i=null==n?"":n;"list"===e?s=!1:null!=o&&t[e]==i||(t[e]=i)}}catch(t){}let p=!1;l!==(l=l.replace(/^xlink\:?/,""))&&(e=l,p=!0),null==n||!1===n?!1===n&&""!==t.getAttribute(e)||(p?t.removeAttributeNS(a,e):t.removeAttribute(e)):(!s||4&r||i)&&!c&&(n=!0===n?"":n,p?t.setAttributeNS(a,e,n):t.setAttribute(e,n))}else e="-"===e[2]?e.slice(3):at(dt,l)?l.slice(2):l[2]+e.slice(3),o&&ft.rel(t,e,o,!1),n&&ft.ael(t,e,n,!1)}},_=/\s/,E=t=>t?t.split(_):[],R=(t,e,o,n)=>{const i=11===e.$elm$.nodeType&&e.$elm$.host?e.$elm$.host:e.$elm$,r=t&&t.$attrs$||l,s=e.$attrs$||l;for(n in r)n in s||b(i,n,r[n],void 0,o,e.$flags$);for(n in s)b(i,n,r[n],s[n],o,e.$flags$)},x=(t,e,o,i)=>{const s=e.$children$[o];let a,l,u=0;if(null!==s.$text$)a=s.$elm$=ht.createTextNode(s.$text$);else{if(r||(r="svg"===s.$tag$),a=s.$elm$=ht.createElementNS(r?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",s.$tag$),r&&"foreignObject"===s.$tag$&&(r=!1),R(null,s,r),null!=n&&a["s-si"]!==n&&a.classList.add(a["s-si"]=n),s.$children$)for(u=0;u{let a,l=t;for(l.shadowRoot&&l.tagName===i&&(l=l.shadowRoot);r<=s;++r)n[r]&&(a=x(null,o,r),a&&(n[r].$elm$=a,l.insertBefore(a,e)))},O=(t,e,o)=>{for(let n=e;n<=o;++n){const e=t[n];if(e){const t=e.$elm$;A(e),t&&t.remove()}}},D=(t,e)=>t.$tag$===e.$tag$&&t.$key$===e.$key$,P=(t,e)=>{const o=e.$elm$=t.$elm$,n=t.$children$,i=e.$children$,s=e.$tag$,a=e.$text$;null===a?(r="svg"===s||"foreignObject"!==s&&r,"slot"===s||R(t,e,r),null!==n&&null!==i?((t,e,o,n)=>{let i,r,s=0,a=0,l=0,u=0,c=e.length-1,p=e[0],d=e[c],h=n.length-1,f=n[0],g=n[h];for(;s<=c&&a<=h;)if(null==p)p=e[++s];else if(null==d)d=e[--c];else if(null==f)f=n[++a];else if(null==g)g=n[--h];else if(D(p,f))P(p,f),p=e[++s],f=n[++a];else if(D(d,g))P(d,g),d=e[--c],g=n[--h];else if(D(p,g))P(p,g),t.insertBefore(p.$elm$,d.$elm$.nextSibling),p=e[++s],g=n[--h];else if(D(d,f))P(d,f),t.insertBefore(d.$elm$,p.$elm$),d=e[--c],f=n[++a];else{for(l=-1,u=s;u<=c;++u)if(e[u]&&null!==e[u].$key$&&e[u].$key$===f.$key$){l=u;break}l>=0?(r=e[l],r.$tag$!==f.$tag$?i=x(e&&e[a],o,l):(P(r,f),e[l]=void 0,i=r.$elm$),f=n[++a]):(i=x(e&&e[a],o,a),f=n[++a]),i&&p.$elm$.parentNode.insertBefore(i,p.$elm$)}s>c?T(t,null==n[h+1]?null:n[h+1].$elm$,o,n,a,h):a>h&&O(e,s,c)})(o,n,e,i):null!==i?(null!==t.$text$&&(o.textContent=""),T(o,null,e,i,0,i.length-1)):null!==n&&O(n,0,n.length-1),r&&"svg"===s&&(r=!1)):t.$text$!==a&&(o.data=a)},A=t=>{t.$attrs$&&t.$attrs$.ref&&t.$attrs$.ref(null),t.$children$&&t.$children$.map(A)},M=(t,e)=>{e&&!t.$onRenderResolve$&&e["s-p"]&&e["s-p"].push(new Promise((e=>t.$onRenderResolve$=e)))},I=(t,e)=>{if(t.$flags$|=16,!(4&t.$flags$))return M(t,t.$ancestorComponent$),_t((()=>L(t,e)));t.$flags$|=512},L=(t,e)=>{const o=(t.$cmpMeta$.$tagName$,()=>{}),n=t.$lazyInstance$;let i;return e&&(t.$flags$|=256,t.$queuedListeners$&&(t.$queuedListeners$.map((([t,e])=>B(n,t,e))),t.$queuedListeners$=null),i=B(n,"componentWillLoad")),i=N(i,(()=>B(n,"componentWillRender"))),o(),N(i,(()=>F(t,n,e)))},N=(t,e)=>t instanceof Promise?t.then(e):e(),F=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=S(e);const s=pt.get(r);if(t=11===t.nodeType?t:ht,s)if("string"==typeof s){t=t.head||t;let e,o=w.get(t);if(o||w.set(t,o=new Set),!o.has(r)){{e=ht.createElement("style"),e.innerHTML=s;const o=null!==(i=ft.$nonce$)&&void 0!==i?i:c(ht);null!=o&&e.setAttribute("nonce",o),t.insertBefore(e,t.querySelector("link"))}o&&o.add(r)}}else t.adoptedStyleSheets.includes(s)||(t.adoptedStyleSheets=[...t.adoptedStyleSheets,s]);return r})(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$,()=>{});G(t,e),r&&(r.map((t=>t())),n["s-rc"]=void 0),s(),i();{const e=n["s-p"],o=()=>k(t);0===e.length?o():(Promise.all(e).then(o),t.$flags$|=4,e.length=0)}},G=(t,e,o)=>{try{e=e.render(),t.$flags$&=-17,t.$flags$|=2,((t,e)=>{const o=t.$hostElement$,r=t.$cmpMeta$,s=t.$vnode$||d(null,null),a=(l=e)&&l.$tag$===h?e:p(null,null,e);var l;i=o.tagName,r.$attrsToReflect$&&(a.$attrs$=a.$attrs$||{},r.$attrsToReflect$.map((([t,e])=>a.$attrs$[e]=o[t]))),a.$tag$=null,a.$flags$|=4,t.$vnode$=a,a.$elm$=s.$elm$=o.shadowRoot||o,n=o["s-sc"],P(s,a)})(t,e)}catch(e){lt(e,t.$hostElement$)}return null},k=t=>{t.$cmpMeta$.$tagName$;const e=t.$hostElement$,o=t.$lazyInstance$,n=t.$ancestorComponent$;B(o,"componentDidRender"),64&t.$flags$||(t.$flags$|=64,W(e),B(o,"componentDidLoad"),t.$onReadyResolve$(e),n||H()),t.$onInstanceResolve$(e),t.$onRenderResolve$&&(t.$onRenderResolve$(),t.$onRenderResolve$=void 0),512&t.$flags$&&bt((()=>I(t,!1))),t.$flags$&=-517},V=t=>{{const e=it(t),o=e.$hostElement$.isConnected;return o&&2==(18&e.$flags$)&&I(e,!1),o}},H=t=>{W(ht.documentElement),bt((()=>C(dt,"appload",{detail:{namespace:"siemens-ix"}})))},B=(t,e,o)=>{if(t&&t[e])try{return t[e](o)}catch(t){lt(t)}},W=t=>t.classList.add("hydrated"),j=(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,it(this).$instanceValues$.get(e);var e},set(o){((t,e,o,n)=>{const i=it(t),r=i.$hostElement$,s=i.$instanceValues$.get(e),a=i.$flags$,l=i.$lazyInstance$;var c,p;c=o,p=n.$members$[e][0],o=null==c||u(c)?c:4&p?"false"!==c&&(""===c||!!c):2&p?parseFloat(c):1&p?String(c):c;const d=Number.isNaN(s)&&Number.isNaN(o);if((!(8&a)||void 0===s)&&o!==s&&!d&&(i.$instanceValues$.set(e,o),l)){if(n.$watchers$&&128&a){const t=n.$watchers$[e];t&&t.map((t=>{try{l[t](o,s,e)}catch(t){lt(t,r)}}))}2==(18&a)&&I(i,!1)}})(this,t,o,e)},configurable:!0,enumerable:!0}):1&o&&64&n&&Object.defineProperty(i,t,{value(...e){const o=it(this);return o.$onInstancePromise$.then((()=>o.$lazyInstance$[t](...e)))}})})),1&o){const o=new Map;i.attributeChangedCallback=function(t,e,n){ft.jmp((()=>{const e=o.get(t);if(this.hasOwnProperty(e))n=this[e],delete this[e];else if(i.hasOwnProperty(e)&&"number"==typeof this[e]&&this[e]==n)return;this[e]=(null!==n||"boolean"!=typeof this[e])&&n}))},t.observedAttributes=n.filter((([t,e])=>15&e[0])).map((([t,n])=>{const i=n[1]||t;return o.set(i,t),512&n[0]&&e.$attrsToReflect$.push([t,i]),i}))}}return t},z=t=>{B(t,"connectedCallback")},U=t=>{t.__appendChild=t.appendChild,t.appendChild=function(t){const e=t["s-sn"]=X(t),o=q(this.childNodes,e);if(o){const n=$(o,e),i=n[n.length-1];return i.parentNode.insertBefore(t,i.nextSibling)}return this.__appendChild(t)}},K=(t,e)=>{if(2&e.$flags$){const e=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(t,"__textContent",e),Object.defineProperty(t,"textContent",{get(){var t;const e=q(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=q(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)}}})}},Y=(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&ft.$flags$)&&2&it(this).$flags$){const e=new o;for(let o=0;ot["s-sn"]||1===t.nodeType&&t.getAttribute("slot")||"",q=(t,e)=>{let o,n=0;for(;n{const o=[t];for(;(t=t.nextSibling)&&t["s-sn"]===e;)o.push(t);return o},Z=(t,e={})=>{var o;const n=[],i=e.exclude||[],r=dt.customElements,s=ht.head,a=s.querySelector("meta[charset]"),l=ht.createElement("style"),u=[];let p,d=!0;Object.assign(ft,e),ft.$resourcesUrl$=new URL(e.resourcesUrl||"./",ht.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.$listeners$=e[3],o.$attrsToReflect$=[],o.$watchers$={};const s=o.$tagName$,a=class extends HTMLElement{constructor(t){super(t),st(t=this,o),1&o.$flags$&&t.attachShadow({mode:"open"}),Y(t,o)}connectedCallback(){p&&(clearTimeout(p),p=null),d?u.push(this):ft.jmp((()=>(t=>{if(0==(1&ft.$flags$)){const e=it(t),o=e.$cmpMeta$,n=(o.$tagName$,()=>{});if(1&e.$flags$)J(t,e,o.$listeners$),z(e.$lazyInstance$);else{e.$flags$|=1;{let o=t;for(;o=o.parentNode||o.host;)if(o["s-p"]){M(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$)){e.$flags$|=32;{if((i=ct(o)).then){const t=()=>{};i=await i,t()}i.isProxied||(o.$watchers$=i.watchers,j(i,o,2),i.isProxied=!0);const t=(o.$tagName$,()=>{});e.$flags$|=8;try{new i(e)}catch(t){lt(t)}e.$flags$&=-9,e.$flags$|=128,t(),z(e.$lazyInstance$)}if(i.style){let t=i.style;const e=S(o);if(!pt.has(e)){const n=(o.$tagName$,()=>{});((t,e,o)=>{let n=pt.get(t);vt&&o?(n=n||new CSSStyleSheet,"string"==typeof n?n=e:n.replaceSync(e)):n=e,pt.set(t,n)})(e,t,!!(1&o.$flags$)),n()}}}const r=e.$ancestorComponent$,s=()=>I(e,!0);r&&r["s-rc"]?r["s-rc"].push(s):s()})(0,e,o)}n()}})(this)))}disconnectedCallback(){ft.jmp((()=>(t=>{if(0==(1&ft.$flags$)){const e=it(t),o=e.$lazyInstance$;e.$rmListeners$&&(e.$rmListeners$.map((t=>t())),e.$rmListeners$=void 0),B(o,"disconnectedCallback")}})(this)))}componentOnReady(){return it(this).$onReadyPromise$}};U(a.prototype),K(a.prototype,o),o.$lazyBundleId$=t[0],i.includes(s)||r.get(s)||(n.push(s),r.define(s,j(a,o,1)))}))}));{l.innerHTML=n+"{visibility:hidden}.hydrated{visibility:inherit}",l.setAttribute("data-styles","");const t=null!==(o=ft.$nonce$)&&void 0!==o?o:c(ht);null!=t&&l.setAttribute("nonce",t),s.insertBefore(l,a?a.nextSibling:s.firstChild)}d=!1,u.length?u.map((t=>t.connectedCallback())):ft.jmp((()=>p=setTimeout(H,30)))},Q=(t,e)=>e,J=(t,e,o,n)=>{o&&o.map((([o,n,i])=>{const r=et(t,o),s=tt(e,i),a=ot(o);ft.ael(r,n,s,a),(e.$rmListeners$=e.$rmListeners$||[]).push((()=>ft.rel(r,n,s,a)))}))},tt=(t,e)=>o=>{try{256&t.$flags$?t.$lazyInstance$[e](o):(t.$queuedListeners$=t.$queuedListeners$||[]).push([e,o])}catch(t){lt(t)}},et=(t,e)=>8&e?dt:t,ot=t=>0!=(2&t),nt=new WeakMap,it=t=>nt.get(t),rt=(t,e)=>nt.set(e.$lazyInstance$=t,e),st=(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"]=[],J(t,o,e.$listeners$),nt.set(t,o)},at=(t,e)=>e in t,lt=(t,e)=>(0,console.error)(t,e),ut=new Map,ct=(t,e,n)=>{const i=t.$tagName$.replace(/-/g,"_"),r=t.$lazyBundleId$,s=ut.get(r);if(s)return s[i];if(!n||!BUILD.hotModuleReplacement){const t=t=>(ut.set(r,t),t[i]);switch(r){case"my-component":return o.e(3864).then(o.bind(o,3864)).then(t,lt);case"ix-action-card":return o.e(670).then(o.bind(o,670)).then(t,lt);case"ix-application":return o.e(3492).then(o.bind(o,3492)).then(t,lt);case"ix-application-sidebar":return Promise.all([o.e(8137),o.e(5179)]).then(o.bind(o,5179)).then(t,lt);case"ix-basic-navigation":return o.e(2216).then(o.bind(o,2216)).then(t,lt);case"ix-blind":return Promise.all([o.e(8137),o.e(2654)]).then(o.bind(o,2654)).then(t,lt);case"ix-breadcrumb":return o.e(3170).then(o.bind(o,3170)).then(t,lt);case"ix-card-list":return o.e(4369).then(o.bind(o,4369)).then(t,lt);case"ix-category-filter":return o.e(9478).then(o.bind(o,9478)).then(t,lt);case"ix-chip":return o.e(6954).then(o.bind(o,6954)).then(t,lt);case"ix-col":return o.e(7439).then(o.bind(o,7439)).then(t,lt);case"ix-content":return o.e(1394).then(o.bind(o,1394)).then(t,lt);case"ix-content-header":return o.e(1422).then(o.bind(o,1422)).then(t,lt);case"ix-css-grid":return o.e(7085).then(o.bind(o,7085)).then(t,lt);case"ix-css-grid-item":return o.e(753).then(o.bind(o,753)).then(t,lt);case"ix-datetime-picker":return o.e(9829).then(o.bind(o,9829)).then(t,lt);case"ix-drawer":return Promise.all([o.e(8137),o.e(6114)]).then(o.bind(o,6114)).then(t,lt);case"ix-dropdown-button":return o.e(9880).then(o.bind(o,9880)).then(t,lt);case"ix-dropdown-header":return o.e(2907).then(o.bind(o,2907)).then(t,lt);case"ix-dropdown-quick-actions":return o.e(1719).then(o.bind(o,1719)).then(t,lt);case"ix-empty-state":return o.e(4596).then(o.bind(o,4596)).then(t,lt);case"ix-event-list":return o.e(3169).then(o.bind(o,3169)).then(t,lt);case"ix-event-list-item":return o.e(7541).then(o.bind(o,7541)).then(t,lt);case"ix-expanding-search":return o.e(8865).then(o.bind(o,8865)).then(t,lt);case"ix-flip-tile":return o.e(1606).then(o.bind(o,1606)).then(t,lt);case"ix-flip-tile-content":return o.e(7262).then(o.bind(o,7262)).then(t,lt);case"ix-form-field":return o.e(3052).then(o.bind(o,3052)).then(t,lt);case"ix-group":return o.e(5374).then(o.bind(o,5374)).then(t,lt);case"ix-icon-toggle-button":return o.e(2632).then(o.bind(o,2632)).then(t,lt);case"ix-input-group":return o.e(6083).then(o.bind(o,6083)).then(t,lt);case"ix-key-value":return o.e(7510).then(o.bind(o,7510)).then(t,lt);case"ix-key-value-list":return o.e(4776).then(o.bind(o,4776)).then(t,lt);case"ix-kpi":return o.e(1985).then(o.bind(o,1985)).then(t,lt);case"ix-layout-grid":return o.e(8697).then(o.bind(o,8697)).then(t,lt);case"ix-link-button":return o.e(1993).then(o.bind(o,1993)).then(t,lt);case"ix-map-navigation":return Promise.all([o.e(8137),o.e(9929)]).then(o.bind(o,9929)).then(t,lt);case"ix-menu":return Promise.all([o.e(8137),o.e(8926)]).then(o.bind(o,8926)).then(t,lt);case"ix-menu-about":return o.e(8670).then(o.bind(o,8670)).then(t,lt);case"ix-menu-about-item":return o.e(8683).then(o.bind(o,8683)).then(t,lt);case"ix-menu-about-news":return o.e(9148).then(o.bind(o,9148)).then(t,lt);case"ix-menu-avatar":return o.e(7537).then(o.bind(o,7537)).then(t,lt);case"ix-menu-category":return Promise.all([o.e(8137),o.e(1952)]).then(o.bind(o,1952)).then(t,lt);case"ix-menu-settings":return o.e(5840).then(o.bind(o,5840)).then(t,lt);case"ix-menu-settings-item":return o.e(2668).then(o.bind(o,2668)).then(t,lt);case"ix-message-bar":return Promise.all([o.e(8137),o.e(4895)]).then(o.bind(o,4895)).then(t,lt);case"ix-modal":return Promise.all([o.e(8137),o.e(6802)]).then(o.bind(o,6802)).then(t,lt);case"ix-modal-content":return o.e(9559).then(o.bind(o,9559)).then(t,lt);case"ix-modal-example":return o.e(9700).then(o.bind(o,9700)).then(t,lt);case"ix-modal-footer":return o.e(5266).then(o.bind(o,5266)).then(t,lt);case"ix-modal-header":return o.e(9113).then(o.bind(o,9113)).then(t,lt);case"ix-modal-loading":return o.e(5592).then(o.bind(o,5592)).then(t,lt);case"ix-pagination":return o.e(5359).then(o.bind(o,5359)).then(t,lt);case"ix-pill":return o.e(8835).then(o.bind(o,8835)).then(t,lt);case"ix-push-card":return o.e(1051).then(o.bind(o,1051)).then(t,lt);case"ix-row":return o.e(333).then(o.bind(o,333)).then(t,lt);case"ix-slider":return o.e(6155).then(o.bind(o,6155)).then(t,lt);case"ix-split-button":return o.e(5075).then(o.bind(o,5075)).then(t,lt);case"ix-split-button-item":return o.e(1791).then(o.bind(o,1791)).then(t,lt);case"ix-tile":return o.e(6599).then(o.bind(o,6599)).then(t,lt);case"ix-toast-container":return o.e(4154).then(o.bind(o,4154)).then(t,lt);case"ix-toggle":return o.e(7731).then(o.bind(o,7731)).then(t,lt);case"ix-toggle-button":return o.e(1646).then(o.bind(o,1646)).then(t,lt);case"ix-tree":return o.e(3897).then(o.bind(o,3897)).then(t,lt);case"ix-upload":return o.e(2478).then(o.bind(o,2478)).then(t,lt);case"ix-validation-tooltip":return Promise.all([o.e(5297),o.e(7628)]).then(o.bind(o,7628)).then(t,lt);case"ix-workflow-step":return o.e(4707).then(o.bind(o,4707)).then(t,lt);case"ix-workflow-steps":return o.e(8005).then(o.bind(o,8005)).then(t,lt);case"ix-avatar_2":return o.e(9941).then(o.bind(o,9941)).then(t,lt);case"ix-breadcrumb-item":return Promise.all([o.e(8137),o.e(2643)]).then(o.bind(o,2643)).then(t,lt);case"ix-card-accordion_2":return o.e(2263).then(o.bind(o,2263)).then(t,lt);case"ix-date-picker_2":return o.e(5454).then(o.bind(o,5454)).then(t,lt);case"ix-divider":return o.e(4120).then(o.bind(o,4120)).then(t,lt);case"ix-group-context-menu_2":return o.e(4094).then(o.bind(o,4094)).then(t,lt);case"ix-map-navigation-overlay":return Promise.all([o.e(8137),o.e(5982)]).then(o.bind(o,5982)).then(t,lt);case"ix-select":return o.e(5465).then(o.bind(o,5465)).then(t,lt);case"ix-toast":return o.e(7292).then(o.bind(o,7292)).then(t,lt);case"ix-tooltip":return Promise.all([o.e(5297),o.e(6006)]).then(o.bind(o,6006)).then(t,lt);case"ix-tree-item":return o.e(6268).then(o.bind(o,6268)).then(t,lt);case"ix-application-header":return o.e(7585).then(o.bind(o,7585)).then(t,lt);case"ix-menu-item":return o.e(2653).then(o.bind(o,2653)).then(t,lt);case"ix-filter-chip_2":return o.e(3675).then(o.bind(o,3675)).then(t,lt);case"ix-tab-item_2":return o.e(8590).then(o.bind(o,8590)).then(t,lt);case"ix-card_2":return o.e(1754).then(o.bind(o,1754)).then(t,lt);case"ix-date-time-card":return o.e(2979).then(o.bind(o,2979)).then(t,lt);case"ix-burger-menu":return o.e(3691).then(o.bind(o,3691)).then(t,lt);case"ix-dropdown-item":return o.e(6857).then(o.bind(o,6857)).then(t,lt);case"ix-button":return o.e(6150).then(o.bind(o,6150)).then(t,lt);case"ix-dropdown":return Promise.all([o.e(5297),o.e(9451)]).then(o.bind(o,9451)).then(t,lt);case"ix-typography":return o.e(7744).then(o.bind(o,7744)).then(t,lt);case"ix-icon-button_2":return o.e(5207).then(o.bind(o,5207)).then(t,lt)}}return o(9200)(`./${r}.entry.js`).then((t=>(ut.set(r,t),t[i])),lt)},pt=new Map,dt="undefined"!=typeof window?window:{},ht=dt.document||{head:{}},ft={$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)},gt=t=>Promise.resolve(t),vt=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch(t){}return!1})(),yt=[],mt=[],Ct=(t,e)=>o=>{t.push(o),s||(s=!0,e&&4&ft.$flags$?bt(St):ft.raf(St))},wt=t=>{for(let e=0;e{wt(yt),wt(mt),(s=yt.length>0)&&ft.raf(St)},bt=t=>gt().then(t),_t=Ct(mt,!0)},9249:(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={}))},2048:(t,e,o)=>{"use strict";o.d(e,{c:()=>l,d:()=>u});var n=o(1917);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()}};function r(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 s(t){const e=new n.T,o=document.createElement("ix-modal"),r=document.createElement("ix-modal-header"),s=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(r,t),Object.assign(s,t),Object.assign(a,t),r.innerText=t.messageTitle,s.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(r),o.appendChild(s),o.appendChild(a);const l=await i.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 a(t){return t.closest("ix-modal")}function l(t,e){const o=a(t);o&&o.closeModal(e)}function u(t,e){const o=a(t);o&&o.dismissModal(e)}s.info=(t,e,o,n,i,a)=>s({message:e,messageTitle:t,icon:"info",actions:r(o,n,i,a)}),s.warning=(t,e,o,n,i,a)=>s({message:e,messageTitle:t,icon:"warning",iconColor:"color-warning",actions:r(o,n,i,a)}),s.error=(t,e,o,n,i,a)=>s({message:e,messageTitle:t,icon:"error",iconColor:"color-alarm",actions:r(o,n,i,a)}),s.success=(t,e,o,n,i,a)=>s({message:e,messageTitle:t,icon:"success",iconColor:"color-success",actions:r(o,n,i,a)}),s.question=(t,e,o,n,i,a)=>s({message:e,messageTitle:t,icon:"question",actions:r(o,n,i,a)})},489:(t,e,o)=>{"use strict";o.d(e,{t:()=>r});var n=o(1917);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()}}},1917:(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)))}}},7612:(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={}))},9200:(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.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.entry.js":[7439,7439],"./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-picker_2.entry.js":[5454,5454],"./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-layout-grid.entry.js":[8697,8697],"./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":[1952,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.entry.js":[9559,9559],"./ix-modal-example.entry.js":[9700,9700],"./ix-modal-footer.entry.js":[5266,5266],"./ix-modal-header.entry.js":[9113,9113],"./ix-modal-loading.entry.js":[5592,5592],"./ix-modal.entry.js":[6802,8137,6802],"./ix-pagination.entry.js":[5359,5359],"./ix-pill.entry.js":[8835,8835],"./ix-push-card.entry.js":[1051,1051],"./ix-row.entry.js":[333,333],"./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-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":[3897,3897],"./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],"./my-component.entry.js":[3864,3864]};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=9200,t.exports=i}},r={};function s(t){var e=r[t];if(void 0!==e)return e.exports;var o=r[t]={exports:{}};return i[t](o,o.exports,s),o.exports}s.m=i,e=Object.getPrototypeOf?t=>Object.getPrototypeOf(t):t=>t.__proto__,s.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);s.r(i);var r={};t=t||[null,e({}),e([]),e(e)];for(var a=2&n&&o;"object"==typeof a&&!~t.indexOf(a);a=e(a))Object.getOwnPropertyNames(a).forEach((t=>r[t]=()=>o[t]));return r.default=()=>o,s.d(i,r),i},s.d=(t,e)=>{for(var o in e)s.o(e,o)&&!s.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,o)=>(s.f[o](t,e),e)),[])),s.u=t=>t+".index.bundle.js",s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),o={},n="npmjs:",s.l=(t,e,i,r)=>{if(o[t])o[t].push(e);else{var a,l;if(void 0!==i)for(var u=document.getElementsByTagName("script"),c=0;c{a.onerror=a.onload=null,clearTimeout(h);var i=o[t];if(delete o[t],a.parentNode&&a.parentNode.removeChild(a),i&&i.forEach((t=>t(n))),e)return e(n)},h=setTimeout(d.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=d.bind(null,a.onerror),a.onload=d.bind(null,a.onload),l&&document.head.appendChild(a)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.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(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{var t={179:0};s.f.j=(e,o)=>{var n=s.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=s.p+s.u(e),a=new Error;s.l(r,(o=>{if(s.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;a.message="Loading chunk "+e+" failed.\n("+i+": "+r+")",a.name="ChunkLoadError",a.type=i,a.request=r,n[1](a)}}),"chunk-"+e,e)}};var e=(e,o)=>{var n,i,[r,a,l]=o,u=0;if(r.some((e=>0!==t[e]))){for(n in a)s.o(a,n)&&(s.m[n]=a[n]);l&&l(s)}for(e&&e(o);u{"use strict";var t={};s.r(t),s.d(t,{HashMap:()=>It,RADIAN_TO_DEGREE:()=>Ht,assert:()=>xt,bind:()=>st,clone:()=>z,concatArray:()=>Nt,createCanvas:()=>q,createHashMap:()=>Lt,createObject:()=>Ft,curry:()=>at,defaults:()=>X,disableUserSelect:()=>Gt,each:()=>tt,eqNaN:()=>wt,extend:()=>Y,filter:()=>nt,find:()=>it,guid:()=>W,hasOwn:()=>kt,indexOf:()=>$,inherits:()=>Z,isArray:()=>lt,isArrayLike:()=>J,isBuiltInObject:()=>ft,isDom:()=>vt,isFunction:()=>ut,isGradientObject:()=>yt,isImagePatternObject:()=>mt,isNumber:()=>dt,isObject:()=>ht,isPrimitive:()=>Pt,isRegExp:()=>Ct,isString:()=>ct,isStringSafe:()=>pt,isTypedArray:()=>gt,keys:()=>rt,logError:()=>j,map:()=>et,merge:()=>U,mergeAll:()=>K,mixin:()=>Q,noop:()=>Vt,normalizeCssArray:()=>Rt,reduce:()=>ot,retrieve:()=>St,retrieve2:()=>bt,retrieve3:()=>_t,setAsPrimitive:()=>Dt,slice:()=>Et,trim:()=>Tt});var e={};s.r(e),s.d(e,{add:()=>Ut,applyTransform:()=>ue,clone:()=>jt,copy:()=>Wt,create:()=>Bt,dist:()=>ie,distSquare:()=>se,distance:()=>ne,distanceSquare:()=>re,div:()=>Jt,dot:()=>te,len:()=>Xt,lenSquare:()=>$t,length:()=>qt,lengthSquare:()=>Zt,lerp:()=>le,max:()=>pe,min:()=>ce,mul:()=>Qt,negate:()=>ae,normalize:()=>oe,scale:()=>ee,scaleAndAdd:()=>Kt,set:()=>zt,sub:()=>Yt});var o={};s.r(o),s.d(o,{clone:()=>Xe,copy:()=>We,create:()=>He,identity:()=>Be,invert:()=>Ye,mul:()=>je,rotate:()=>Ue,scale:()=>Ke,translate:()=>ze});var n={};s.r(n),s.d(n,{fastLerp:()=>Dn,fastMapToColor:()=>Pn,lerp:()=>An,lift:()=>Tn,lum:()=>Fn,mapToColor:()=>Mn,modifyAlpha:()=>Ln,modifyHSL:()=>In,parse:()=>Rn,random:()=>Gn,stringify:()=>Nn,toHex:()=>On});var i={};s.r(i),s.d(i,{dispose:()=>Sr,disposeAll:()=>br,getInstance:()=>_r,init:()=>wr,registerPainter:()=>Er,version:()=>Rr});var r={};s.r(r),s.d(r,{Arc:()=>qg,BezierCurve:()=>Kg,BoundingRect:()=>so,Circle:()=>ug,CompoundPath:()=>Zg,Ellipse:()=>dg,Group:()=>vr,Image:()=>yl,IncrementalDisplayable:()=>uv,Line:()=>Bg,LinearGradient:()=>Jg,OrientedBoundingRect:()=>sv,Path:()=>cl,Point:()=>$e,Polygon:()=>Lg,Polyline:()=>Gg,RadialGradient:()=>tv,Rect:()=>Rl,Ring:()=>Pg,Sector:()=>Tg,Text:()=>Bl,applyTransform:()=>Tv,clipPointsByRect:()=>Av,clipRectByRect:()=>Mv,createIcon:()=>Iv,extendPath:()=>gv,extendShape:()=>hv,getShapeClass:()=>yv,getTransform:()=>xv,groupTransition:()=>Pv,initProps:()=>$u,isElementRemoved:()=>Zu,lineLineIntersect:()=>Nv,linePolygonIntersect:()=>Lv,makeImage:()=>Cv,makePath:()=>mv,mergePath:()=>Sv,registerShape:()=>vv,removeElement:()=>Qu,removeElementWithFadeOut:()=>tc,resizePath:()=>bv,setTooltipConfig:()=>Gv,subPixelOptimize:()=>Rv,subPixelOptimizeLine:()=>_v,subPixelOptimizeRect:()=>Ev,transformDirection:()=>Ov,traverseElements:()=>Vv,updateProps:()=>qu});var a={};s.r(a),s.d(a,{createDimensions:()=>zw,createList:()=>pb,createScale:()=>hb,createSymbol:()=>im,createTextStyle:()=>gb,dataStack:()=>db,enableHoverEmphasis:()=>Fu,getECData:()=>Wl,getLayoutRect:()=>Np,mixinAxisModelCommonMethods:()=>fb});var l={};s.r(l),s.d(l,{MAX_SAFE_INTEGER:()=>kr,asc:()=>Ar,getPercentWithPrecision:()=>Nr,getPixelPrecision:()=>Lr,getPrecision:()=>Mr,getPrecisionSafe:()=>Ir,isNumeric:()=>qr,isRadianAroundZero:()=>Hr,linearMap:()=>Or,nice:()=>Ur,numericToNumber:()=>Xr,parseDate:()=>Wr,quantile:()=>Kr,quantity:()=>jr,quantityExponent:()=>zr,reformIntervals:()=>Yr,remRadian:()=>Vr,round:()=>Pr});var u={};s.r(u),s.d(u,{format:()=>ep,parse:()=>Wr});var c={};s.r(c),s.d(c,{Arc:()=>qg,BezierCurve:()=>Kg,BoundingRect:()=>so,Circle:()=>ug,CompoundPath:()=>Zg,Ellipse:()=>dg,Group:()=>vr,Image:()=>yl,IncrementalDisplayable:()=>uv,Line:()=>Bg,LinearGradient:()=>Jg,Polygon:()=>Lg,Polyline:()=>Gg,RadialGradient:()=>tv,Rect:()=>Rl,Ring:()=>Pg,Sector:()=>Tg,Text:()=>Bl,clipPointsByRect:()=>Av,clipRectByRect:()=>Mv,createIcon:()=>Iv,extendPath:()=>gv,extendShape:()=>hv,getShapeClass:()=>yv,getTransform:()=>xv,initProps:()=>$u,makeImage:()=>Cv,makePath:()=>mv,mergePath:()=>Sv,registerShape:()=>vv,resizePath:()=>bv,updateProps:()=>qu});var p={};s.r(p),s.d(p,{addCommas:()=>mp,capitalFirst:()=>Tp,encodeHTML:()=>xe,formatTime:()=>xp,formatTpl:()=>Ep,getTextRect:()=>Pb,getTooltipMarker:()=>Rp,normalizeCssArray:()=>wp,toCamelCase:()=>Cp,truncateText:()=>js});var d={};s.r(d),s.d(d,{bind:()=>st,clone:()=>z,curry:()=>at,defaults:()=>X,each:()=>tt,extend:()=>Y,filter:()=>nt,indexOf:()=>$,inherits:()=>Z,isArray:()=>lt,isFunction:()=>ut,isObject:()=>ht,isString:()=>ct,map:()=>et,merge:()=>U,reduce:()=>ot});var h={};s.r(h),s.d(h,{Axis:()=>Bb,ChartView:()=>Xv,ComponentModel:()=>jp,ComponentView:()=>Vf,List:()=>jw,Model:()=>Ac,PRIORITY:()=>qm,SeriesModel:()=>Gf,color:()=>n,connect:()=>BC,dataTool:()=>pw,dependencies:()=>jm,disConnect:()=>jC,disconnect:()=>WC,dispose:()=>zC,env:()=>S,extendChartView:()=>Ub,extendComponentModel:()=>Wb,extendComponentView:()=>jb,extendSeriesModel:()=>zb,format:()=>p,getCoordinateSystemDimensions:()=>ew,getInstanceByDom:()=>UC,getInstanceById:()=>KC,getMap:()=>uw,graphic:()=>c,helper:()=>a,init:()=>HC,innerDrawElementOnCanvas:()=>Pm,matrix:()=>o,number:()=>l,parseGeoJSON:()=>Db,parseGeoJson:()=>Db,registerAction:()=>JC,registerCoordinateSystem:()=>tw,registerLayout:()=>ow,registerLoading:()=>sw,registerLocale:()=>Bc,registerMap:()=>lw,registerPostInit:()=>$C,registerPostUpdate:()=>ZC,registerPreprocessor:()=>XC,registerProcessor:()=>qC,registerTheme:()=>YC,registerTransform:()=>cw,registerUpdateLifecycle:()=>QC,registerVisual:()=>nw,setCanvasCreator:()=>aw,setPlatformAPI:()=>D,throttle:()=>Qv,time:()=>u,use:()=>fw,util:()=>d,vector:()=>e,version:()=>Wm,zrUtil:()=>t,zrender:()=>i});var f=s(4801);!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)}}(),s(9249),s(9391),s(7612),s(2048),s(1617);var g=s(489);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 container are found. Only there first is 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.]+)/),s=/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),s&&(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 a=document.documentElement.style;e.transform3dSupported=(o.ie&&"transition"in a||o.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in a)&&!("OTransition"in a),e.transformSupported=e.transform3dSupported||o.ie&&+o.version>=9}(navigator.userAgent,w);const S=w;var b,_,E=12,R="sans-serif",x=E+"px "+R,T=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"),O={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!b){var o=O.createCanvas();b=o&&o.getContext("2d")}if(b)return _!==e&&(_=b.font=e||x),b.measureText(t);t=t||"";var n=/(\d+)px/.exec(e=e||x),i=n&&+n[1]||E,r=0;if(e.indexOf("mono")>=0)r=i*t.length;else for(var s=0;s>1)%2;s.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[a]+":0",i[l]+":0",n[1-a]+":auto",i[1-l]+":auto",""].join("!important;"),t.appendChild(s),o.push(s)}return o}(e,r),a=function(t,e,o){for(var n=o?"invTrans":"trans",i=e[n],r=e.srcCoords,s=[],a=[],l=!0,u=0;u<4;u++){var c=t[u].getBoundingClientRect(),p=2*u,d=c.left,h=c.top;s.push(d,h),l=l&&r&&d===r[p]&&h===r[p+1],a.push(t[u].offsetLeft,t[u].offsetTop)}return l&&i?i:(e.srcCoords=s,e[n]=o?Ce(a,s):Ce(s,a))}(s,r,i);if(a)return a(t,o,n),!0}return!1}function _e(t){return"CANVAS"===t.nodeName.toUpperCase()}var Ee=/([&<>"'])/g,Re={"&":"&","<":"<",">":">",'"':""","'":"'"};function xe(t){return null==t?"":(t+"").replace(Ee,(function(t,e){return Re[e]}))}var Te=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Oe=[],De=S.browser.firefox&&+S.browser.version.split(".")[0]<39;function Pe(t,e,o,n){return o=o||{},n?Ae(t,e,o):De&&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(Oe,t,n,i))return o.zrX=Oe[0],void(o.zrY=Oe[1])}o.zrX=o.zrY=0}function Me(t){return t||window.event}function Ie(t,e,o){if(null!=(e=Me(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&&Pe(t,i,e,o)}else{Pe(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 s=e.button;return null==e.which&&void 0!==s&&Te.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?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 Ge=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,s=n.length;r1&&i&&i.length>1){var s=ke(i)/ke(r);!isFinite(s)&&(s=1),e.pinchScale=s;var a=[((n=i)[0][0]+n[1][0])/2,(n[0][1]+n[1][1])/2];return e.pinchX=a[0],e.pinchY=a[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 je(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],s=e[1]*o[2]+e[3]*o[3],a=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]=s,t[4]=a,t[5]=l,t}function ze(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],s=e[1],a=e[3],l=e[5],u=Math.sin(o),c=Math.cos(o);return t[0]=n*c+s*u,t[1]=-n*u+s*c,t[2]=i*c+a*u,t[3]=-i*u+c*a,t[4]=c*r+u*l,t[5]=c*l-u*r,t}function Ke(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],s=e[3],a=e[5],l=o*s-r*n;return l?(l=1/l,t[0]=s*l,t[1]=-r*l,t[2]=-n*l,t[3]=o*l,t[4]=(n*a-s*i)*l,t[5]=(r*i-o*a)*l,t):null}function Xe(t){var e=[1,0,0,1,0,0];return We(e,t),e}var qe=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 $e=qe;var Ze=Math.min,Qe=Math.max,Je=new $e,to=new $e,eo=new $e,oo=new $e,no=new $e,io=new $e,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 ze(i,i,[-e.x,-e.y]),Ke(i,i,[o,n]),ze(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,s=n.y,a=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],s=n[4],a=n[5];return e.x=o.x*i+s,e.y=o.y*r+a,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 so=ro;var ao="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 so(0,0,0,0),fo=function(t){function e(e,o,n,i,r){var s=t.call(this)||this;return s._hovered=new co(0,0),s.storage=e,s.painter=o,s.painterRoot=i,s._pointerSize=r,n=n||new uo,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new fe(s),s}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 s=this._hovered=n?new co(e,o):this.findHover(e,o),a=s.target,l=this.proxy;l.setCursor&&l.setCursor(a?a.cursor:"default"),r&&a!==r&&this.dispatchToElement(i,"mouseout",t),this.dispatchToElement(s,"mousemove",t),a&&a!==r&&this.dispatchToElement(s,"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=[],s=this._pointerSize,a=s/2,l=new so(t-a,e-a,s,s),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 s=t[r],a=void 0;if(s!==i&&!s.ignore&&(a=go(s,o,n))&&(!e.topTarget&&(e.topTarget=s),a!==ao)){e.target=s;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,s=yo(this,i,r);if("mouseup"===t&&s||(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:a=r+1;var u=n-a;switch(u){case 3:t[a+3]=t[a+2];case 2:t[a+2]=t[a+1];case 1:t[a+1]=t[a];break;default:for(;u>0;)t[a+u]=t[a+u-1],u--}t[a]=s}}function bo(t,e,o,n,i,r){var s=0,a=0,l=1;if(r(t,e[o+i])>0){for(a=n-i;l0;)s=l,(l=1+(l<<1))<=0&&(l=a);l>a&&(l=a),s+=i,l+=i}else{for(a=i+1;la&&(l=a);var u=s;s=i-l,l=i-u}for(s++;s>>1);r(t,e[o+c])>0?s=c+1:l=c}return l}function _o(t,e,o,n,i,r){var s=0,a=0,l=1;if(r(t,e[o+i])<0){for(a=i+1;la&&(l=a);var u=s;s=i-l,l=i-u}else{for(a=n-i;l=0;)s=l,(l=1+(l<<1))<=0&&(l=a);l>a&&(l=a),s+=i,l+=i}for(s++;s>>1);r(t,e[o+c])<0?l=c:s=c+1}return l}function Eo(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 s=function(t,e){var o,n,i=Co,r=0;t.length;var s=[];function a(a){var l=o[a],u=n[a],c=o[a+1],p=n[a+1];n[a]=u+p,a===r-3&&(o[a+1]=o[a+2],n[a+1]=n[a+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,a){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--]=s[c--],1==--a){y=!0;break}if(0!=(v=a-bo(t[u],s,0,a,a-1,e))){for(a-=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===a){for(h=1+(p-=n),d=1+(u-=n),l=n-1;l>=0;l--)t[h+l]=t[d+l];t[p]=s[c]}else{if(0===a)throw new Error;for(d=p-(a-1),l=0;l=0;l--)t[h+l]=t[d+l];t[p]=s[c]}else for(d=p-(a-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;a(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))a&&(l=a),So(t,o,o+l,o+r,e),r=l}s.pushRun(o,r),s.mergeRuns(),i-=r,o+=r}while(0!==i);s.forceMergeRuns()}}}var Ro=1,xo=4,To=!1;function Oo(){To||(To=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Do(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Po=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Do}return t.prototype.traverse=function(t,e){for(var o=0;o0&&(u.__clipPaths=[]),isNaN(u.z)&&(Oo(),u.z=0),isNaN(u.z2)&&(Oo(),u.z2=0),isNaN(u.zlevel)&&(Oo(),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=Po,Mo=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 Io={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-Io.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*Io.bounceIn(2*t):.5*Io.bounceOut(2*t-1)+.5}};const Lo=Io;var No=Math.pow,Fo=Math.sqrt,Go=1e-8,ko=1e-4,Vo=Fo(3),Ho=1/3,Bo=Bt(),Wo=Bt(),jo=Bt();function zo(t){return t>-Go&&tGo||t<-Go}function Ko(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 Xo(t,e,o,n,i,r){var s=n+3*(e-o)-t,a=3*(o-2*e+t),l=3*(e-t),u=t-i,c=a*a-3*s*l,p=a*l-9*s*u,d=l*l-3*a*u,h=0;if(zo(c)&&zo(p))zo(a)?r[0]=0:(E=-l/a)>=0&&E<=1&&(r[h++]=E);else{var f=p*p-4*c*d;if(zo(f)){var g=p/c,v=-g/2;(E=-a/s+g)>=0&&E<=1&&(r[h++]=E),v>=0&&v<=1&&(r[h++]=v)}else if(f>0){var y=Fo(f),m=c*a+1.5*s*(-p+y),C=c*a+1.5*s*(-p-y);(E=(-a-((m=m<0?-No(-m,Ho):No(m,Ho))+(C=C<0?-No(-C,Ho):No(C,Ho))))/(3*s))>=0&&E<=1&&(r[h++]=E)}else{var w=(2*c*a-3*s*p)/(2*Fo(c*c*c)),S=Math.acos(w)/3,b=Fo(c),_=Math.cos(S),E=(-a-2*b*_)/(3*s),R=(v=(-a+b*(_+Vo*Math.sin(S)))/(3*s),(-a+b*(_-Vo*Math.sin(S)))/(3*s));E>=0&&E<=1&&(r[h++]=E),v>=0&&v<=1&&(r[h++]=v),R>=0&&R<=1&&(r[h++]=R)}}return h}function qo(t,e,o,n,i){var r=6*o-12*e+6*t,s=9*e+3*n-3*t-9*o,a=3*e-3*t,l=0;if(zo(s))Uo(r)&&(c=-a/r)>=0&&c<=1&&(i[l++]=c);else{var u=r*r-4*s*a;if(zo(u))i[0]=-r/(2*s);else if(u>0){var c,p=Fo(u),d=(-r-p)/(2*s);(c=(-r+p)/(2*s))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}function $o(t,e,o,n,i,r){var s=(e-t)*i+t,a=(o-e)*i+e,l=(n-o)*i+o,u=(a-s)*i+s,c=(l-a)*i+a,p=(c-u)*i+u;r[0]=t,r[1]=s,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,s,a,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]=Ko(t,o,i,s,m),Wo[1]=Ko(e,n,r,a,m),(f=se(Bo,Wo))=0&&f=0&&v=1?1:Xo(0,n,r,1,t,a)&&Ko(0,i,s,1,a[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,s=r?r(i):i;if(this.onframe(s),1===i){if(!this.loop)return!0;var a=n%o;this._startTime=t-a,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]||an(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(),s=this._lastRemovedEntry;if(r>=this._maxSize&&r>0){var a=o.head;o.remove(a),delete n[a.key],i=a.value,this._lastRemovedEntry=a}s?s.value=e:s=new un(e),s.key=t,o.insertEntry(s),n[t]=s}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 En(t,e){_n&&Sn(_n,e),_n=bn.put(t,_n||e.slice())}function Rn(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]),En(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),En(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),En(t,e),e):void wn(e,0,0,0,1):void 0;var s=n.indexOf("("),a=n.indexOf(")");if(-1!==s&&a+1===r){var l=n.substr(0,s),u=n.substr(s+1,a-(s+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])),En(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]),xn(u,e),En(t,e),e);case"hsl":return 3!==u.length?void wn(e,0,0,0,1):(xn(u,e),En(t,e),e);default:return}}wn(e,0,0,0,1)}}function xn(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,s=2*i-r;return wn(e=e||[],fn(255*mn(s,r,o+1/3)),fn(255*mn(s,r,o)),fn(255*mn(s,r,o-1/3)),1),4===t.length&&(e[3]=t[3]),e}function Tn(t,e){var o=Rn(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 On(t){var e=Rn(t);if(e)return((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1)}function Dn(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),s=e[i],a=e[r],l=n-i;return o[0]=fn(Cn(s[0],a[0],l)),o[1]=fn(Cn(s[1],a[1],l)),o[2]=fn(Cn(s[2],a[2],l)),o[3]=gn(Cn(s[3],a[3],l)),o}}var Pn=Dn;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),s=Rn(e[i]),a=Rn(e[r]),l=n-i,u=Nn([fn(Cn(s[0],a[0],l)),fn(Cn(s[1],a[1],l)),fn(Cn(s[2],a[2],l)),gn(Cn(s[3],a[3],l))],"rgba");return o?{color:u,leftIndex:i,rightIndex:r,value:n}:u}}var Mn=An;function In(t,e,o,n){var i=Rn(t);if(t)return i=function(t){if(t){var e,o,n=t[0]/255,i=t[1]/255,r=t[2]/255,s=Math.min(n,i,r),a=Math.max(n,i,r),l=a-s,u=(a+s)/2;if(0===l)e=0,o=0;else{o=u<.5?l/(a+s):l/(2-a-s);var c=((a-n)/6+l/2)/l,p=((a-i)/6+l/2)/l,d=((a-r)/6+l/2)/l;n===a?e=d-p:i===a?e=1/3+c-d:r===a&&(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(xn(i),"rgba")}function Ln(t,e){var o=Rn(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=Rn(t);return o?(.299*o[0]+.587*o[1]+.114*o[2])*o[3]/255+(1-o[3])*e:0}function Gn(){return Nn([Math.round(255*Math.random()),Math.round(255*Math.random()),Math.round(255*Math.random())],"rgb")}var kn=Math.round;function Vn(t){var e;if(t&&"transparent"!==t){if("string"==typeof t&&t.indexOf("rgba")>-1){var o=Rn(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 kn(1e3*t)/1e3}function jn(t){return kn(1e4*t)/1e4}var zn={left:"start",right:"end",center:"middle",middle:"middle"};function Un(t){return t&&!!t.image}function Kn(t){return Un(t)||function(t){return t&&!!t.svgElement}(t)}function Yn(t){return"linear"===t.type}function Xn(t){return"radial"===t.type}function qn(t){return t&&("linear"===t.type||"radial"===t.type)}function $n(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),s=t.skewX||0,a=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+")"),(s||a)&&l.push("skew("+kn(s*Ht)+"deg, "+kn(a*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),s=i[r-1]||{color:[0,0,0,0],offset:0},a=r;as)n.length=s;else for(var a=r;a=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,s=6,a=e;if(J(e)){var l=function(t){return J(t&&t[0])?2:1}(e);s=l,(1===l&&!dt(e[0])||2===l&&!dt(e[0][0]))&&(r=!0)}else if(dt(e)&&!wt(e))s=0;else if(ct(e))if(isNaN(+e)){var u=Rn(e);u&&(a=u,s=3)}else s=0;else if(yt(e)){var c=Y({},a);c.colorStops=et(e.colorStops,(function(t){return{offset:t.offset,color:Rn(t.color)}})),Yn(e)?s=4:Xn(e)&&(s=5),a=c}0===i?this.valType=s:s===this.valType&&6!==s||(r=!0),this.discrete=this.discrete||r;var p={time:t,value:a,rawValue:e,percent:0};return o&&(p.easing=o,p.easingFunc=ut(o)?o:Lo[o]||an(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],s=this.discrete,a=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(a)&&!p||v||(v=this._additiveValue=[]),this.discrete)t[c]=g<1?n.rawValue:i.rawValue;else if(ci(a))1===a?oi(v,n[s],i[s],g):function(t,e,o,n){for(var i=e.length,r=i&&e[0].length,s=0;s0&&a.addKeyframe(0,ai(l),n),this._trackKeys.push(s)}a.addKeyframe(t,ai(e[s]),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 s=r.pop();i.addKeyframe(s.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,Mo((function e(){t._running&&(Mo(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"],Ei=!1;function Ri(t){var e=t.pointerType;return"pen"===e||"touch"===e}function xi(t){t&&(t.zrByTouch=!0)}function Ti(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 Oi=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},Di={mousedown:function(t){t=Ie(this.dom,t),this.__mayPointerCapture=[t.zrX,t.zrY],this.trigger("mousedown",t)},mousemove:function(t){t=Ie(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=Ie(this.dom,t),this.__togglePointerCapture(!1),this.trigger("mouseup",t)},mouseout:function(t){Ti(this,(t=Ie(this.dom,t)).toElement||t.relatedTarget)||(this.__pointerCapturing&&(t.zrEventControl="no_globalout"),this.trigger("mouseout",t))},wheel:function(t){Ei=!0,t=Ie(this.dom,t),this.trigger("mousewheel",t)},mousewheel:function(t){Ei||(t=Ie(this.dom,t),this.trigger("mousewheel",t))},touchstart:function(t){xi(t=Ie(this.dom,t)),this.__lastTouchMoment=new Date,this.handler.processGesture(t,"start"),Di.mousemove.call(this,t),Di.mousedown.call(this,t)},touchmove:function(t){xi(t=Ie(this.dom,t)),this.handler.processGesture(t,"change"),Di.mousemove.call(this,t)},touchend:function(t){xi(t=Ie(this.dom,t)),this.handler.processGesture(t,"end"),Di.mouseup.call(this,t),+new Date-+this.__lastTouchMoment<300&&Di.click.call(this,t)},pointerdown:function(t){Di.mousedown.call(this,t)},pointermove:function(t){Ri(t)||Di.mousemove.call(this,t)},pointerup:function(t){Di.mouseup.call(this,t)},pointerout:function(t){Ri(t)||Di.mouseout.call(this,t)}};tt(["click","dblclick","contextmenu"],(function(t){Di[t]=function(e){e=Ie(this.dom,e),this.trigger(t,e)}}));var Pi={pointermove:function(t){Ri(t)||Pi.mousemove.call(this,t)},pointerup:function(t){Pi.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 Mi(t){var e,o,n,i,r=t.mounted;for(var s in r)r.hasOwnProperty(s)&&(e=t.domTarget,o=s,n=r[s],i=t.listenerOpts[s],e.removeEventListener(o,n,i));t.mounted={}}var Ii=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,s=t.call(this)||this;return s.__pointerCapturing=!1,s.dom=e,s.painterRoot=o,s._localHandlerScope=new Ii(e,Di),wi&&(s._globalHandlerScope=new Ii(document,Pi)),n=s,i=s._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=Me(e),i.touching||r[t].call(n,e)}))}))),s}return m(e,t),e.prototype.dispose=function(){Mi(this._localHandlerScope),wi&&Mi(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=Me(n),Ti(t,n.target)||(n=function(t,e){return Ie(t.dom,new Oi(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):Mi(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,Gi="#333",ki="#ccc",Vi=Be;function Hi(t){return t>5e-5||t<-5e-5}var Bi=[],Wi=[],ji=[1,0,0,1,0,0],zi=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?je(o,t,o):We(o,t)),this.transform=o,this._resolveGlobalScaleRatio(o)):o&&(Vi(o),this.invTransform=null)},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&&(je(Wi,t.invTransform,e),e=Wi);var o=this.originX,n=this.originY;(o||n)&&(ji[4]=o,ji[5]=n,je(Wi,e,ji),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&&zi(t[0]-1)>1e-10&&zi(t[3]-1)>1e-10?Math.sqrt(zi(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,s=t.anchorX,a=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||s||a){var h=o+s,f=n+a;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}(),Ki=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Yi(t,e){for(var o=0;o=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,s=o.width,a=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+=a,c="right",p="middle";break;case"right":l+=i+s,u+=a,p="middle";break;case"top":l+=s/2,u-=i,c="center",p="bottom";break;case"bottom":l+=s/2,u+=r+i,c="center";break;case"inside":l+=s/2,u+=a,c="center",p="middle";break;case"insideLeft":l+=i,u+=a,p="middle";break;case"insideRight":l+=s-i,u+=a,c="right",p="middle";break;case"insideTop":l+=s/2,u+=i,c="center";break;case"insideBottom":l+=s/2,u+=r-i,c="center",p="bottom";break;case"insideTopLeft":l+=i,u+=i;break;case"insideTopRight":l+=s-i,u+=i,c="right";break;case"insideBottomLeft":l+=i,u+=r-i,p="bottom";break;case"insideBottomRight":l+=s-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=Ki.concat(["ignore"]),sr=ot(Ki,(function(t,e){return t[e]=!0,t}),{ignore:!1}),ar={},lr=new so(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,s=void 0,a=!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(ar,o,u):nr(ar,o,u),i.x=ar.x,i.y=ar.y,r=ar.align,s=ar.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&&s===g.verticalAlign||(a=!0,g.fill=v,g.stroke=y,g.autoStroke=m,g.align=r,g.verticalAlign=s,e.setDefaultTextStyle(g)),e.__dirty|=Ro,a&&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()?ki:Gi},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),o="string"==typeof e&&Rn(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,s=this.stateTransition;if(!($(r,t)>=0)||!e&&1!==r.length){var a;if(this.stateProxy&&!i&&(a=this.stateProxy(t)),a||(a=this.states&&this.states[t]),a||i){i||this.saveCurrentToNormalState(a);var l=!!(a&&a.hoverLayer||n);l&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,a,this._normalState,e,!o&&!this.__inHover&&s&&s.duration>0,s);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&=~Ro),a}j("State "+t+" not exists.")}}},t.prototype.useStates=function(t,e,o){if(t.length){var n=[],i=this.currentStates,r=t.length,s=r===i.length;if(s)for(var a=0;a0,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&=~Ro)}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=$(n,t),r=$(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&&!s.length){var b,_=void 0,E=void 0,R=void 0;if(a)for(E={},d&&(_={}),w=0;w=0&&(o.splice(n,0,t),this._doAdd(t))}return this},e.prototype.replace=function(t,e){var o=$(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=$(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 s;if(t>=r)return a}else{if(t>=i)return s;if(t<=r)return a}else{if(t===i)return s;if(t===r)return a}return(t-i)/l*u+s}function Dr(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 Pr(t,e,o){return null==e&&(e=10),e=Math.min(Math.max(0,e),Tr),t=(+t).toFixed(e),o?t:+t}function Ar(t){return t.sort((function(t,e){return t-e})),t}function Mr(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 Ir(t)}function Ir(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("."),s=r<0?0:i-1-r;return Math.max(0,s-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),s=Math.min(Math.max(-i+r,0),20);return isFinite(s)?s: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,s=et(i,(function(t){return Math.floor(t)})),a=ot(s,(function(t,e){return t+e}),0),l=et(i,(function(t,e){return t-s[e]}));au&&(u=l[p],c=p);++s[c],l[c]=0,++a}return et(s,(function(t){return t/n}))}function Gr(t,e){var o=Math.max(Mr(t),Mr(e)),n=t+e;return o>Tr?n:Pr(n,o)}var kr=9007199254740991;function Vr(t){var e=2*Math.PI;return(t%e+e)%e}function Hr(t){return t>-xr&&t=10&&e++,e}function Ur(t,e){var o=zr(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 Kr(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 a(t,e,0)?-1:1}));for(var e=-1/0,o=1,n=0;n=0||i&&$(i,a)<0)){var l=o.getShallow(a,e);null!=l&&(r[t[s][0]]=l)}}return r}}var Ns=Ls([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]]),Fs=function(){function t(){}return t.prototype.getAreaStyle=function(t,e){return Ns(this,t,e)},t}(),Gs=new dn(50);function ks(t){if("string"==typeof t){var e=Gs.get(t);return e&&e.image}return t}function Vs(t,e,o,n,i){if(t){if("string"==typeof t){if(e&&e.__zrImageSrc===t||!o)return e;var r=Gs.get(t),s={hostEl:o,cb:n,cbPayload:i};return r?!Bs(e=r.image)&&r.pending.push(s):((e=O.loadImage(t,Hs,Hs)).__zrImageSrc=t,Gs.put(t,e.__cachedImgObj={image:e,pending:[s]})),e}return t}return e}function Hs(){var t=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var e=0;e=s;l++)a-=s;var u=$i(o,e);return u>a&&(o="",u=0),a=t-u,i.ellipsis=o,i.ellipsisWidth=u,i.contentWidth=a,i.containerWidth=t,i}function Us(t,e){var o=e.containerWidth,n=e.font,i=e.contentWidth;if(!o)return"";var r=$i(t,n);if(r<=o)return t;for(var s=0;;s++){if(r<=i||s>=e.maxIterations){t+=e.ellipsis;break}var a=0===s?Ks(t,i,e.ascCharWidth,e.cnCharWidth):r>0?Math.floor(t.length*i/r):0;r=$i(t=t.substr(0,a),n)}return""===t&&(t=e.placeholder),t}function Ks(t,e,o,n){for(var i=0,r=0,s=t.length;r0&&f+n.accumWidth>n.width&&(r=e.split("\n"),p=!0),n.accumWidth=f}else{var g=Js(e,c,n.width,n.breakAll,n.accumWidth);n.accumWidth=g.accumWidth+h,s=g.linesWidths,r=g.lines}}else r=e.split("\n");for(var v=0;v=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}(t)||!!Zs[t]}function Js(t,e,o,n,i){for(var r=[],s=[],a="",l="",u=0,c=0,p=0;po:i+c+h>o)?c?(a||l)&&(f?(a||(a=l,l="",c=u=0),r.push(a),s.push(c-u),l+=d,a="",c=u+=h):(l&&(a+=l,l="",u=0),r.push(a),s.push(c),a=d,c=h)):f?(r.push(l),s.push(u),l=d,u=h):(r.push(d),s.push(h)):(c+=h,f?(l+=d,u+=h):(l&&(a+=l,l="",u=0),a+=d))}else l&&(a+=l,c+=u),r.push(a),s.push(c),a="",l="",u=0,c=0}return r.length||a||(a=t,l="",u=0),l&&(a+=l),a&&(r.push(a),s.push(c)),1===r.length&&(c+=i),{accumWidth:c,lines:r,linesWidths:s}}var ta="__zr_style_"+Math.round(10*Math.random()),ea={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},oa={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ea[ta]=!0;var na=["z","z2","invisible"],ia=["invisible"],ra=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 a[0]=t-o,a[1]=e-n,l[0]=t+o,void(l[1]=e+n);if(fa[0]=da(i)*o+t,fa[1]=pa(i)*n+e,ga[0]=da(r)*o+t,ga[1]=pa(r)*n+e,u(a,fa,ga),c(l,fa,ga),(i%=ha)<0&&(i+=ha),(r%=ha)<0&&(r+=ha),i>r&&!s?r+=ha:ii&&(va[0]=da(h)*o+t,va[1]=pa(h)*n+e,u(a,va,a),c(l,va,l))}var Ea={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},Ra=[],xa=[],Ta=[],Oa=[],Da=[],Pa=[],Aa=Math.min,Ma=Math.max,Ia=Math.cos,La=Math.sin,Na=Math.abs,Fa=Math.PI,Ga=2*Fa,ka="undefined"!=typeof Float32Array,Va=[];function Ha(t){return Math.round(t/Fa*1e8)/1e8%2*Fa}function Ba(t,e){var o=Ha(t[0]);o<0&&(o+=Ga);var n=o-t[0],i=t[1];i+=n,!e&&i-o>=Ga?i=o+Ga:e&&o-i>=Ga?i=o-Ga:!e&&o>i?i=o+(Ga-Ha(o-i)):e&&o0&&(this._ux=Na(o/Fi/t)||0,this._uy=Na(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(Ea.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=Na(t-this._xi),n=Na(e-this._yi),i=o>this._ux||n>this._uy;if(this.addData(Ea.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(Ea.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(Ea.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(),Va[0]=n,Va[1]=i,Ba(Va,r),n=Va[0];var s=(i=Va[1])-n;return this.addData(Ea.A,t,e,o,o,n,s,0,r?0:1),this._ctx&&this._ctx.arc(t,e,o,n,i,r),this._xi=Ia(i)*o+t,this._yi=La(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(Ea.R,t,e,o,n),this},t.prototype.closePath=function(){this._drawPendingPt(),this.addData(Ea.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||!ka||(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(){Ta[0]=Ta[1]=Da[0]=Da[1]=Number.MAX_VALUE,Oa[0]=Oa[1]=Pa[0]=Pa[1]=-Number.MAX_VALUE;var t,e=this.data,o=0,n=0,i=0,r=0;for(t=0;to||Na(v)>n||p===e-1)&&(f=Math.sqrt(D*D+v*v),i=g,r=C);break;case Ea.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 Ea.Q:f=rn(i,r,y=t[p++],m=t[p++],g=t[p++],C=t[p++],10),i=g,r=C;break;case Ea.A:var b=t[p++],_=t[p++],E=t[p++],R=t[p++],x=t[p++],T=t[p++],O=T+x;p+=1,t[p++],h&&(s=Ia(x)*E+b,a=La(x)*R+_),f=Ma(E,R)*Aa(Ga,Math.abs(T)),i=Ia(O)*E+b,r=La(O)*R+_;break;case Ea.R:s=i=t[p++],a=r=t[p++],f=2*t[p++]+2*t[p++];break;case Ea.Z:var D=s-i;v=a-r,f=Math.sqrt(D*D+v*v),i=s,r=a}f>=0&&(l[c++]=f,u+=f)}return this._pathLen=u,u},t.prototype.rebuildPath=function(t,e){var o,n,i,r,s,a,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 Ea.M:o=i=d[w++],n=r=d[w++],t.moveTo(i,r);break;case Ea.L:s=d[w++],a=d[w++];var _=Na(s-i),E=Na(a-r);if(_>h||E>f){if(v){if(y+(X=l[m++])>u){var R=(u-y)/X;t.lineTo(i*(1-R)+s*R,r*(1-R)+a*R);break t}y+=X}t.lineTo(s,a),i=s,r=a,C=0}else{var x=_*_+E*E;x>C&&(c=s,p=a,C=x)}break;case Ea.C:var T=d[w++],O=d[w++],D=d[w++],P=d[w++],A=d[w++],M=d[w++];if(v){if(y+(X=l[m++])>u){$o(i,T,D,A,R=(u-y)/X,Ra),$o(r,O,P,M,R,xa),t.bezierCurveTo(Ra[1],xa[1],Ra[2],xa[2],Ra[3],xa[3]);break t}y+=X}t.bezierCurveTo(T,O,D,P,A,M),i=A,r=M;break;case Ea.Q:if(T=d[w++],O=d[w++],D=d[w++],P=d[w++],v){if(y+(X=l[m++])>u){on(i,T,D,R=(u-y)/X,Ra),on(r,O,P,R,xa),t.quadraticCurveTo(Ra[1],xa[1],Ra[2],xa[2]);break t}y+=X}t.quadraticCurveTo(T,O,D,P),i=D,r=P;break;case Ea.A:var I=d[w++],L=d[w++],N=d[w++],F=d[w++],G=d[w++],k=d[w++],V=d[w++],H=!d[w++],B=N>F?N:F,W=Na(N-F)>.001,j=G+k,z=!1;if(v&&(y+(X=l[m++])>u&&(j=G+k*(u-y)/X,z=!0),y+=X),W&&t.ellipse?t.ellipse(I,L,N,F,V,G,j,H):t.arc(I,L,B,G,j,H),z)break t;b&&(o=Ia(G)*N+I,n=La(G)*F+L),i=Ia(j)*N+I,r=La(j)*F+L;break;case Ea.R:o=i=d[w],n=r=d[w+1],s=d[w++],a=d[w++];var U=d[w++],K=d[w++];if(v){if(y+(X=l[m++])>u){var Y=u-y;t.moveTo(s,a),t.lineTo(s+Aa(Y,U),a),(Y-=U)>0&&t.lineTo(s+U,a+Aa(Y,K)),(Y-=K)>0&&t.lineTo(s+Ma(U-Y,0),a+K),(Y-=U)>0&&t.lineTo(s,a+Ma(K-Y,0));break t}y+=X}t.rect(s,a,U,K);break;case Ea.Z:if(v){var X;if(y+(X=l[m++])>u){R=(u-y)/X,t.lineTo(i*(1-R)+o*R,r*(1-R)+n*R);break t}y+=X}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=Ea,t.initDefaultProps=function(){var e=t.prototype;e._saveData=!0,e._ux=0,e._uy=0,e._pendingPtDist=0,e._version=0}(),t}();const ja=Wa;function za(t,e,o,n,i,r,s){if(0===i)return!1;var a,l=i;if(s>e+l&&s>n+l||st+l&&r>o+l||re+p&&c>n+p&&c>r+p&&c>a+p||ct+p&&u>o+p&&u>i+p&&u>s+p||ue+u&&l>n+u&&l>r+u||lt+u&&a>o+u&&a>i+u||ao||c+ui&&(i+=qa);var d=Math.atan2(l,a);return d<0&&(d+=qa),d>=n&&d<=i||d+qa>=n&&d+qa<=i}function Za(t,e,o,n,i,r){if(r>e&&r>n||ri?a:0}var Qa=ja.CMD,Ja=2*Math.PI,tl=[-1,-1,-1],el=[-1,-1];function ol(t,e,o,n,i,r,s,a,l,u){if(u>e&&u>n&&u>r&&u>a||u1&&(void 0,c=el[0],el[0]=el[1],el[1]=c),f=Ko(e,n,r,a,el[0]),h>1&&(g=Ko(e,n,r,a,el[1]))),2===h?ye&&a>n&&a>r||a=0&&c<=1&&(i[l++]=c);else{var u=s*s-4*r*a;if(zo(u))(c=-s/(2*r))>=0&&c<=1&&(i[l++]=c);else if(u>0){var c,p=Fo(u),d=(-s-p)/(2*r);(c=(-s+p)/(2*r))>=0&&c<=1&&(i[l++]=c),d>=0&&d<=1&&(i[l++]=d)}}return l}(e,n,r,a,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||a<-o)return 0;var l=Math.sqrt(o*o-a*a);tl[0]=-l,tl[1]=l;var u=Math.abs(n-i);if(u<1e-4)return 0;if(u>=Ja-1e-4){n=0,i=Ja;var c=r?1:-1;return s>=tl[0]+t&&s<=tl[1]+t?c:0}if(n>i){var p=n;n=i,i=p}n<0&&(n+=Ja,i+=Ja);for(var d=0,h=0;h<2;h++){var f=tl[h];if(f+t>s){var g=Math.atan2(a,f);c=r?1:-1,g<0&&(g=Ja+g),(g>=n&&g<=i||g+Ja>=n&&g+Ja<=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,s,a,l,u=t.data,c=t.len(),p=0,d=0,h=0,f=0,g=0,v=0;v1&&(o||(p+=Za(d,h,f,g,n,i))),m&&(f=d=u[v],g=h=u[v+1]),y){case Qa.M:d=f=u[v++],h=g=u[v++];break;case Qa.L:if(o){if(za(d,h,u[v],u[v+1],e,n,i))return!0}else p+=Za(d,h,u[v],u[v+1],n,i)||0;d=u[v++],h=u[v++];break;case Qa.C:if(o){if(Ua(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 Qa.Q:if(o){if(Ka(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 Qa.A:var C=u[v++],w=u[v++],S=u[v++],b=u[v++],_=u[v++],E=u[v++];v+=1;var R=!!(1-u[v++]);r=Math.cos(_)*S+C,s=Math.sin(_)*b+w,m?(f=r,g=s):p+=Za(d,h,r,s,n,i);var x=(n-C)*b/S+C;if(o){if($a(C,w,b,_,_+E,R,e,x,i))return!0}else p+=il(C,w,b,_,_+E,R,x,i);d=Math.cos(_+E)*S+C,h=Math.sin(_+E)*b+w;break;case Qa.R:if(f=d=u[v++],g=h=u[v++],r=f+u[v++],s=g+u[v++],o){if(za(f,g,r,g,e,n,i)||za(r,g,r,s,e,n,i)||za(r,s,f,s,e,n,i)||za(f,s,f,g,e,n,i))return!0}else p+=Za(r,g,r,s,n,i),p+=Za(f,s,f,g,n,i);break;case Qa.Z:if(o){if(za(d,h,f,g,e,n,i))return!0}else p+=Za(d,h,f,g,n,i);d=f,h=g}}return o||(a=h,l=g,Math.abs(a-l)<1e-4)||(p+=Za(d,h,f,g,n,i)||0),0!==p}var sl=X({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},ea),al={style:X({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},oa.style)},ll=Ki.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 s in n)r[s]!==n[s]&&(r[s]=n[s]);r.fill=n.fill?n.decal:null,r.decal=null,r.shadowColor=null,n.strokeFirst&&(r.stroke=null);for(var a=0;a.5?Gi:e>.2?"#eee":ki}if(t)return ki}return Gi},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&=~xo},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 ja(!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&xo)&&(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 s=e.strokeNoScale?this.getLineScale():1,a=e.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;a=Math.max(a,null==l?4:l)}s>1e-10&&(r.width+=a/s,r.height+=a/s,r.x-=a/s/2,r.y-=a/s/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 s=i.lineWidth,a=i.strokeNoScale?this.getLineScale():1;if(a>1e-10&&(this.hasFill()||(s=Math.max(s,this.strokeContainThreshold)),function(t,e,o,n){return rl(t,e,!0,o,n)}(r,s/a,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|=xo,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&xo)},e.prototype.createStyle=function(t){return Ft(sl,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,s){t.prototype._applyStateObj.call(this,e,o,n,i,r,s);var a,l=!(o&&i);if(o&&o.shape?r?i?a=o.shape:(a=Y({},n.shape),Y(a,o.shape)):(a=Y({},i?this.shape:n.shape),Y(a,o.shape)):l&&(a=n.shape),a)if(r){this.shape=Y({},this.shape);for(var u={},c=rt(a),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}(la);dl.prototype.type="tspan";const hl=dl;var fl=X({x:0,y:0},ea),gl={style:X({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},oa.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",s=e[r];return null==s?i[t]:i[t]/i[r]*s},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 so(t.x||0,t.y||0,this.getWidth(),this.getHeight())),this._rect},e}(la);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,s=e.y2;t.x1=n,t.x2=i,t.y1=r,t.y2=s;var a=o&&o.lineWidth;return a?(ml(2*n)===ml(2*i)&&(t.x1=t.x2=Sl(n,a,!0)),ml(2*r)===ml(2*s)&&(t.y1=t.y2=Sl(r,a,!0)),t):t}}function wl(t,e,o){if(e){var n=e.x,i=e.y,r=e.width,s=e.height;t.x=n,t.y=i,t.width=r,t.height=s;var a=o&&o.lineWidth;return a?(t.x=Sl(n,a,!0),t.y=Sl(i,a,!0),t.width=Math.max(Sl(n+r,a,!1)-t.x,0===r?0:1),t.height=Math.max(Sl(i+s,a,!1)-t.y,0===s?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={},El=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 s=wl(_l,e,this.style);o=s.x,n=s.y,i=s.width,r=s.height,s.r=e.r,e=s}else o=e.x,n=e.y,i=e.width,r=e.height;e.r?function(t,e){var o,n,i,r,s,a=e.x,l=e.y,u=e.width,c=e.height,p=e.r;u<0&&(a+=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/(s=o+n),n*=u/s),i+r>u&&(i*=u/(s=i+r),r*=u/s),n+i>c&&(n*=c/(s=n+i),i*=c/s),o+r>c&&(o*=c/(s=o+r),r*=c/s),t.moveTo(a+o,l),t.lineTo(a+u-n,l),0!==n&&t.arc(a+u-n,l+n,n,-Math.PI/2,0),t.lineTo(a+u,l+c-i),0!==i&&t.arc(a+u-i,l+c-i,i,0,Math.PI/2),t.lineTo(a+r,l+c),0!==r&&t.arc(a+r,l+c-r,r,Math.PI/2,Math.PI),t.lineTo(a,l+o),0!==o&&t.arc(a+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);El.prototype.type="rect";const Rl=El;var xl={fill:"#000"},Tl={style:X({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},oa.style)},Ol=function(t){function e(e){var o=t.call(this)||this;return o.type="text",o._children=[],o._defaultStyle=xl,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&&s&&null!=p)for(var g=zs(p,r,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),v=0;v0,R=null!=t.width&&("truncate"===t.overflow||"break"===t.overflow||"breakAll"===t.overflow),T=n.calculatedLineHeight,O=0;Ol&&$s(o,t.substring(l,u),e,a),$s(o,n[2],e,a,n[1]),l=Ws.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 T=b.width,O=null==T||"auto"===T;if("string"==typeof T&&"%"===T.charAt(T.length-1))M.percentWidth=T,c.push(M),M.contentWidth=$i(M.text,R);else{if(O){var D=b.backgroundColor,P=D&&D.image;P&&Bs(P=ks(P))&&(M.width=Math.max(M.width,P.width*x/P.height))}var A=f&&null!=i?i-w:null;null!=A&&A=0&&"right"===(T=C[x]).align;)this._placeToken(T,t,S,f,R,"right",v),b-=T.width,R-=T.width,x--;for(E+=(o-(E-h)-(g-R)-b)/2;_<=x;)T=C[_],this._placeToken(T,t,S,f,E+T.width/2,"center",v),E+=T.width,_++;f+=S}},e.prototype._placeToken=function(t,e,o,n,i,r,s){var a=e.rich[t.styleName]||{};a.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(a)&&this._renderBackground(a,e,"right"===r?i-t.width:"center"===r?i-t.width/2:i,u-t.height/2,t.width,t.height);var c=!!a.backgroundColor,p=t.textPadding;p&&(i=kl(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=Gl("fill"in a?a.fill:"fill"in e?e.fill:(g=!0,f.fill)),m=Fl("stroke"in a?a.stroke:"stroke"in e?e.stroke:c||s||f.autoStroke&&!g?null:(v=2,f.stroke)),C=a.textShadowBlur>0||e.textShadowBlur>0;h.text=t.text,h.x=i,h.y=u,C&&(h.shadowBlur=a.textShadowBlur||e.textShadowBlur||0,h.shadowColor=a.textShadowColor||e.textShadowColor||"transparent",h.shadowOffsetX=a.textShadowOffsetX||e.textShadowOffsetX||0,h.shadowOffsetY=a.textShadowOffsetY||e.textShadowOffsetY||0),h.textAlign=r,h.textBaseline="middle",h.font=t.font||x,h.opacity=_t(a.opacity,e.opacity,1),Il(h,a),m&&(h.lineWidth=_t(a.lineWidth,e.lineWidth,v),h.lineDash=bt(a.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 so(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 s,a,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){(s=this._getOrCreateChild(Rl)).useStyle(s.createStyle()),s.style.fill=null;var v=s.shape;v.x=o,v.y=n,v.width=i,v.height=r,v.r=f,s.dirtyShape()}if(h)(l=s.style).fill=u||null,l.fillOpacity=bt(t.fillOpacity,1);else if(d){(a=this._getOrCreateChild(yl)).onload=function(){g.dirtyStyle()};var y=a.style;y.image=u.image,y.x=o,y.y=n,y.width=i,y.height=r}c&&p&&((l=s.style).lineWidth=c,l.stroke=p,l.strokeOpacity=bt(t.strokeOpacity,1),l.lineDash=t.borderDash,l.lineDashOffset=t.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(l.strokeFirst=!0,l.lineWidth*=2));var m=(s||a).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,Ml(t.fontSize),t.fontFamily||"sans-serif"].join(" ")),e&&Tt(e)||t.textFont||t.font},e}(la),Dl={left:!0,right:1,center:1},Pl={top:1,bottom:1,middle:1},Al=["fontStyle","fontWeight","fontSize","fontFamily"];function Ml(t){return"string"!=typeof t||-1===t.indexOf("px")&&-1===t.indexOf("rem")&&-1===t.indexOf("em")?isNaN(+t)?E+"px":t+"px":t}function Il(t,e){for(var o=0;o=0,r=!1;if(t instanceof cl){var s=Kl(t),a=i&&s.selectFill||s.normalFill,l=i&&s.selectStroke||s.normalStroke;if(su(a)||su(l)){var u=(n=n||{}).style||{};"inherit"===u.fill?(r=!0,n=Y({},n),(u=Y({},u)).fill=a):!su(u.fill)&&su(a)?(r=!0,n=Y({},n),(u=Y({},u)).fill=lu(a)):!su(u.stroke)&&su(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=$(t.currentStates,e)>=0,i=t.style.opacity,r=n?null:function(t,e,o,n){for(var i=t.style,r={},s=0;s0){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),ku(t,e,o)}function Gu(t,e,o,n){n?function(t){Wu(t,!1)}(t):Fu(t,e,o)}function ku(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||!!s,setToFinal:!u,scope:t,during:s};l?e.animateFrom(o,p):e.animateTo(o,p)}else e.stopAnimation(),!l&&e.attr(o),s&&s(1),r&&r()}function qu(t,e,o,n,i,r){Xu("update",t,e,o,n,i,r)}function $u(t,e,o,n,i,r){Xu("enter",t,e,o,n,i,r)}function Zu(t){if(!t.__zr)return!0;for(var e=0;e-1?Nc:Gc;function Bc(t,e){t=t.toUpperCase(),Vc[t]=new Ac(e),kc[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 jc=1e3,zc=6e4,Uc=36e5,Kc=864e5,Yc=31536e6,Xc={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}"},qc="{yyyy}-{MM}-{dd}",$c={year:"{yyyy}",month:"{yyyy}-{MM}",day:qc,hour:qc+" "+Xc.hour,minute:qc+" "+Xc.minute,second:qc+" "+Xc.second,millisecond:Xc.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)](),s=i[rp(o)]()+1,a=Math.floor((s-1)/3)+1,l=i[sp(o)](),u=i["get"+(o?"UTC":"")+"Day"](),c=i[ap(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[Gc]).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,Jc(r%100+"",2)).replace(/{Q}/g,a+"").replace(/{MMMM}/g,v[s-1]).replace(/{MMM}/g,y[s-1]).replace(/{MM}/g,Jc(s,2)).replace(/{M}/g,s+"").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[sp(e)](),r=o[ap(e)](),s=o[lp(e)](),a=o[up(e)](),l=0===o[cp(e)](),u=l&&0===a,c=u&&0===s,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[sp(o)]();case"half-day":return n[ap(o)]()/24;case"hour":return n[ap(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 sp(t){return t?"getUTCDate":"getDate"}function ap(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(!qr(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=Rt;function Sp(t,e,o){function n(t){return t&&Tt(t)?t:"-"}function i(t){return!(null==t||isNaN(t)||!isFinite(t))}var r="time"===e,s=t instanceof Date;if(r||s){var a=r?Wr(t):t;if(!isNaN(+a))return ep(a,"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}",o);if(s)return"-"}if("ordinal"===e)return pt(t)?n(t):dt(t)&&i(t)?t+"":"-";var l=Xr(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 Ep(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 xp(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"](),s=n[i+"Month"]()+1,a=n[i+"Date"](),l=n[i+"Hours"](),u=n[i+"Minutes"](),c=n[i+"Seconds"](),p=n[i+"Milliseconds"]();return t.replace("MM",Jc(s,2)).replace("M",s).replace("yyyy",r).replace("yy",Jc(r%100+"",2)).replace("dd",Jc(a,2)).replace("d",a).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 Tp(t){return t?t.charAt(0).toUpperCase()+t.substr(1):t}function Op(t,e){return e=e||"transparent",ct(t)?t:ht(t)&&t.colorStops&&(t.colorStops[0]||{}).color||e}function Dp(t,e){if("_blank"===e||"blank"===e){var o=window.open();o.opener=null,o.location.href=t}else window.open(t,e)}var Pp=tt,Ap=["left","right","top","bottom","width","height"],Mp=[["width","left","right"],["height","top","bottom"]];function Ip(t,e,o,n,i){var r=0,s=0;null==n&&(n=1/0),null==i&&(i=1/0);var a=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,s+=a+o,a=d.height):a=Math.max(a,d.height)}else{var v=d.height+(f?-f.y+d.y:0);(p=s+v)>i||l.newline?(r+=a+o,s=0,p=v,a=d.width):a=Math.max(a,d.width)}l.newline||(l.x=r,l.y=s,l.markRedraw(),"horizontal"===t?r=c+o:s=p+o)}))}var Lp=Ip;function Np(t,e,o){o=wp(o||0);var n=e.width,i=e.height,r=Dr(t.left,n),s=Dr(t.top,i),a=Dr(t.right,n),l=Dr(t.bottom,i),u=Dr(t.width,n),c=Dr(t.height,i),p=o[2]+o[0],d=o[1]+o[3],h=t.aspect;switch(isNaN(u)&&(u=n-a-d-r),isNaN(c)&&(c=i-l-p-s),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-a-u-d),isNaN(s)&&(s=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":s=i/2-c/2-o[0];break;case"bottom":s=i-c-p}r=r||0,s=s||0,isNaN(u)&&(u=n-d-r-(a||0)),isNaN(c)&&(c=i-p-s-(l||0));var f=new so(r+o[3],s+o[0],u,c);return f.margin=o,f}function Fp(t,e,o,n,i,r){var s,a=!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,!a&&!l)return!1;if("raw"===u)s="group"===t.type?new so(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(s=t.getBoundingRect(),t.needLocalTransform()){var c=t.getLocalTransform();(s=s.clone()).applyTransform(c)}var p=Np(X({width:s.width,height:s.height},e),o,n),d=a?p.x-s.x:0,h=l?p.y-s.y:0;return"raw"===u?(r.x=d,r.y=h):(r.x+=d,r.y+=h),r===t&&t.markRedraw(),!0}function Gp(t){var e=t.layoutMode||t.constructor.layoutMode;return ht(e)?e:e?{type:e}:null}function kp(t,e,o){var n=o&&o.ignoreSize;!lt(n)&&(n=[n,n]);var i=s(Mp[0],0),r=s(Mp[1],1);function s(o,i){var r={},s=0,u={},c=0;if(Pp(o,(function(e){u[e]=t[e]})),Pp(o,(function(t){a(e,t)&&(r[t]=u[t]=e[t]),l(r,t)&&s++,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&&s){if(s>=2)return r;for(var p=0;p=0;s--)r=U(r,o[s],!0);e.defaultOption=r}return e.defaultOption},e.prototype.getReferringComponents=function(t,e){var o=t+"Index",n=t+"Id";return ws(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);Ds(Wp,Ac),Is(Wp),function(t){var e={};t.registerSubTypeDefaulter=function(t,o){var n=Ts(t);e[n.main]=o},t.determineSubType=function(o,n){var i=n.type;if(!i){var r=Ts(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,s,a=o(e,i),l=function(t,e){var o=[];return tt(t,(function(t){$(e,t)>=0&&o.push(t)})),o}(a.originalDeps=(r=i,s=[],tt(Wp.getClassesByMainType(r),(function(t){s=s.concat(t.dependencies||t.prototype.dependencies||[])})),s=et(s,(function(t){return Ts(t).main})),"dataset"!==r&&$(s,"dataset")<=0&&s.unshift("dataset"),s),t);a.entryCount=l.length,0===a.entryCount&&n.push(i),tt(l,(function(t){$(a.predecessor,t)<0&&a.predecessor.push(t);var n=o(e,t);$(n.successor,t)<0&&n.successor.push(i)}))})),{graph:e,noEntryList:n}}(e),s=r.graph,a=r.noEntryList,l={};for(tt(t,(function(t){l[t]=!0}));a.length;){var u=a.pop(),c=s[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){s[t].entryCount--,0===s[t].entryCount&&a.push(t)}function h(t){l[t]=!0,d(t)}}}(Wp);const jp=Wp;var zp="";"undefined"!=typeof navigator&&(zp=navigator.platform||"");var Up="rgba(0, 0, 0, 0.2)";const Kp={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:zp.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"]),Xp="original",qp="arrayRows",$p="objectRows",Zp="keyedColumns",Qp="typedArray",Jp="unknown",td="column",ed="row",od={Must:1,Might:2,Not:3},nd=fs();function id(t,e,o){var n={},i=sd(e);if(!i||!t)return n;var r,s,a=[],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,s=f(i)),n[i.name]=[]}));var d=c.get(p)||c.set(p,{categoryWayDim:s,valueWayDim:0});function h(t,e,o){for(var n=0;ne)return t[n];return t[o-1]}(n,s):o;if((c=c||o)&&c.length){var p=c[l];return i&&(u[i]=p),a.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 s=n.getMediaOption(this);s.length&&tt(s,(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=[],s=Lt(),a=e&&e.replaceMergeMainTypeMap;nd(this).datasetMap=Lt(),tt(t,(function(t,e){null!=t&&(jp.hasClass(e)?e&&(r.push(e),s.set(e,!0)):o[e]=null==o[e]?z(t):U(o[e],t,!0))})),a&&a.each((function(t,e){jp.hasClass(e)&&!s.get(e)&&(r.push(e),s.set(e,!0))})),jp.topologicalTravel(r,jp.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,os(t[e])),s=n.get(e),l=as(s,r,s?a&&a.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,jp),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,s=jp.getClass(e,t.keyInfo.subType,!r);if(!s)return;if("tooltip"===e){if(u)return;u=!0}if(n&&n.constructor===s)n.name=t.keyInfo.name,n.mergeOption(i,this),n.optionUpdated(i,!1);else{var a=Y({componentIndex:o},t.keyInfo);Y(n=new s(i,this,this,a),a),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=z(this.option);return tt(t,(function(e,o){if(jp.hasClass(o)){for(var n=os(e),i=n.length,r=!1,s=i-1;s>=0;s--)n[s]&&!ds(n[s])?r=!0:(n[s]=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[s],t,r)||(i=!1)}})),i}const Md=Pd;var Id=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(a||(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=Gr(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)}a[0]=l,a[1]=u}},n=function(){return this._data?this._data.length/this._dimSize:0};function i(t){for(var e=0;e=0&&(a=r.interpolatedValue[l])}return null!=a?a+"":""})):void 0},t.prototype.getRawValue=function(t,e){return _h(this.getData(e),t)},t.prototype.formatTooltip=function(t,e,o){},t}();function xh(t){var e,o;return ht(t)?t.type&&(o=t):e=t,{text:e,frag:o}}function Th(t){return new Oh(t)}var Oh=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,s=c(this._modBy),a=this._modDataCount||0,l=c(t&&t.modBy),u=t&&t.modDataCount||0;function c(t){return!(t>=1)&&(t=1),t}s===l&&a===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?a:s}};return r;function s(){return e=t?null:re},gte:function(t,e){return t>=e}},Nh=function(){function t(t,e){dt(e)||Ph(""),this._opFn=Lh[t],this._rvalFloat=Xr(e)}return t.prototype.evaluate=function(t){return dt(t)?this._opFn(t,this._rvalFloat):this._opFn(Xr(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:Xr(t),n=dt(e)?e:Xr(e),i=isNaN(o),r=isNaN(n);if(i&&(o=this._incomparable),r&&(n=this._incomparable),i&&r){var s=ct(t),a=ct(e);s&&(o=a?t:0),a&&(n=s?e:0)}return on?-this._resultLT:0},t}(),Gh=function(){function t(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=Xr(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=Xr(t)===this._rvalFloat)}return this._isEQ?e:!e},t}();function kh(t,e){return"eq"===t||"ne"===t?new Gh("eq"===t,e):kt(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 Kh(t.sourceFormat)||Ph(""),t.data}function Bh(t){var e=t.sourceFormat,o=t.data;if(Kh(e)||Ph(""),e===qp){for(var n=[],i=0,r=o.length;i65535?qh:$h}function ef(t,e,o,n,i){var r=Jh[o||"float"];if(i){var s=t[e],a=s&&s.length;if(a!==n){for(var l=new r(n),u=0;ug[1]&&(g[1]=f)}return this._rawCount=this._count=a,{start:s,end:a}},t.prototype._initDataFromProvider=function(t,e,o){for(var n=this._provider,i=this._chunks,r=this._dimensions,s=r.length,a=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,s=-1,a=0,l=0,u=this.count();l=0&&s<0)&&(r=p,s=c,a=0),c===s&&(i[a++]=l))}return i.length=a,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))&&(s[a++]=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))&&(s[a++]=h),h++}d=!0}}if(!d)if(1===i)for(g=0;g=u&&C<=c||isNaN(C))&&(s[a++]=S)}else for(g=0;gt[E][1])&&(b=!1)}b&&(s[a++]=e.getRawIndex(g))}return av[1]&&(v[1]=g)}}},t.prototype.lttbDownSample=function(t,e){var o,n,i,r=this.clone([t],!0),s=r._chunks[t],a=this.count(),l=0,u=Math.floor(1/e),c=this.getRawIndex(0),p=new(tf(this._rawCount))(Math.min(2*(Math.ceil(a/u)+2),a));p[l++]=c;for(var d=1;do&&(o=n,i=R)}E>0&&Eu-h&&(a=u-h,s.length=a);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();is&&(s=l)}return n=[r,s],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(af(o)){var r=o,s=void 0,a=void 0,l=void 0;if(i){var u=n[0];u.prepareSource(),s=(l=u.getSource()).data,a=l.sourceFormat,e=[u._getVersionSign()]}else a=gt(s=r.get("data",!0))?Qp:Xp,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?[sh(s,{seriesLayoutBy:d,sourceHeader:h,dimensions:f},a)]:[]}else{var g=o;if(i){var v=this._applyTransform(n);t=v.sourceList,e=v.upstreamSignList}else t=[sh(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,s=[],a=[];return tt(t,(function(t){t.prepareSource();var e=t.getSource(i||0);null==i||e||lf(""),s.push(e),a.push(t._getVersionSign())})),n?e=function(t,e,o){var n=os(t),i=n.length;i||Ph("");for(var r=0,s=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,s=(i=vf(e),{html:pf[i],richText:df[i]}),a=[],l=e.blocks||[];xt(!l||lt(l)),l=l||[];var u=t.orderMode;if(e.sortBlocks&&u){l=l.slice();var c={valueAsc:"asc",valueDesc:"desc"};if(kt(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?s.html:0,n);null!=l&&a.push(l)}));var d="richText"===t.renderMode?a.join(s.richText):wf(a.join(""),r?o:s.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)+s.richText+d:wf('
'+xe(h)+"
"+d,o)}function mf(t,e,o,n){var i=t.renderMode,r=e.noName,s=e.noValue,a=!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||!s){var p=a?"":t.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",i),d=r?"":Sp(l,"ordinal",u),h=e.valueType,f=s?[]:c(e.value),g=!a||!r,v=!a&&r,y=cf(n,i),m=y.nameStyle,C=y.valueStyle;return"richText"===i?(a?"":p)+(r?"":Sf(t,d,m))+(s?"":function(t,e,o,n,i){var r=[i],s=n?10:20;return o&&r.push({padding:[0,0,0,s],align:"right"}),t.markupStyleCreator.wrapRichTextStyle(lt(e)?e.join(" "):e,r)}(t,f,g,v,C)):wf((a?"":p)+(r?"":function(t,e,o){return''+xe(t)+""}(d,!a,m))+(s?"":function(t,e,o,n){return''+et(t=lt(t)?t:[t],(function(t){return xe(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 Op(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 Ef=function(){function t(){this.richTextStyles={},this._nextStyleNameId=$r()}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=Rp({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 Rf(t){var e,o,n,i,r=t.series,s=t.dataIndex,a=t.multipleSeries,l=r.getData(),u=l.mapDimensionsAll("defaultedTooltip"),c=u.length,p=r.getRawValue(s),d=lt(p),h=bf(r,s);if(c>1||d&&!c){var f=function(t,e,o,n,i){var r=e.getData(),s=ot(t,(function(t,e,o){var n=r.getDimensionInfo(o);return t||n&&!1!==n.tooltip&&null!=n.displayName}),!1),a=[],l=[],u=[];function c(t,e){var o=r.getDimensionInfo(e);o&&!1!==o.otherDims.tooltip&&(s?u.push(hf("nameValue",{markerType:"subItem",markerColor:i,name:o.displayName,value:t,valueType:o.type})):(a.push(t),l.push(o.type)))}return n.length?tt(n,(function(t){c(_h(r,o,t),t)})):tt(t,c),{inlineValues:a,inlineValueTypes:l,blocks:u}}(p,r,s,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,s,u[0]),o=g.type}else i=e=d?p[0]:p;var v=ps(r),y=v&&r.name||"",m=l.getName(s),C=a?y:m;return hf("section",{header:y,noHeader:a||!v,sortParam:i,blocks:[hf("nameValue",{markerType:"item",markerColor:h,name:C,noName:!Tt(C),value:e,valueType:o})].concat(n||[])})}var xf=fs();function Tf(t,e){return t.getName(e)||t.getId(e)}var Of="__universalTransitionEnabled",Df=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=Th({count:Af,reset:Mf}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(t,o),(xf(this).sourceManager=new rf(this)).prepareSource();var n=this.getInitialData(t,o);Lf(n,this),this.dataTask.context.data=n,xf(this).dataBeforeProcessed=n,Pf(this),this._initSelectedMapFromData(n)},e.prototype.mergeDefaultAndTheme=function(t,e){var o=Gp(this),n=o?Vp(t):{},i=this.subType;jp.hasClass(i)&&(i+="Series"),U(t,e.getTheme().get(this.subType)),U(t,this.getDefaultOption()),ns(t,"label",["show"]),this.fillDataTextStyle(t.data),o&&kp(t,n,o)},e.prototype.mergeOption=function(t,e){t=U(this.option,t,!0),this.fillDataTextStyle(t.data);var o=Gp(this);o&&kp(this.option,t,o);var n=xf(this).sourceManager;n.dirty(),n.prepareSource();var i=this.getInitialData(t,e);Lf(i,this),this.dataTask.dirty(),this.dataTask.context.data=i,xf(this).dataBeforeProcessed=i,Pf(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[Tf(n,t)])&&!n.getItemModel(t).get(["select","disabled"])},e.prototype.isUniversalTransitionEnabled=function(){if(this[Of])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,s=e.length;if(r&&s)if("series"===r)i.selectedMap="all";else if("multiple"===r){ht(i.selectedMap)||(i.selectedMap={});for(var a=i.selectedMap,l=0;l0&&this._innerSelect(t,e)}},e.registerClass=function(t){return jp.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}(jp);function Pf(t){var e=t.name;ps(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 Mf(t){var e=t.model;return e.setData(e.getRawData().cloneShallow()),If}function If(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,at(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(Df,Rh),Q(Df,gd),Ds(Df,jp);const Gf=Df;var kf=function(){function t(){this.group=new vr,this.uid=Ic("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}();Os(kf),Is(kf);const Vf=kf;function Hf(){var t=fs();return function(e){var o=t(e),n=e.pipelineContext,i=!!o.large,r=!!o.progressiveRender,s=o.large=!(!n||!n.large),a=o.progressiveRender=!(!n||!n.progressiveRender);return!(i===s&&r===a)&&"reset"}}var Bf=ja.CMD,Wf=[[],[],[]],jf=Math.sqrt,zf=Math.atan2;function Uf(t,e){if(e){var o,n,i,r,s,a,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&&(s*=Kf(f),a*=Kf(f));var g=(i===r?-1:1)*Kf((s*s*(a*a)-s*s*(h*h)-a*a*(d*d))/(s*s*(h*h)+a*a*(d*d)))||0,v=g*s*h/a,y=g*-a*d/s,m=(t+o)/2+Xf(p)*v-Yf(p)*y,C=(e+n)/2+Yf(p)*v+Xf(p)*y,w=Qf([1,0],[(d-v)/s,(h-y)/a]),S=[(d-v)/s,(h-y)/a],b=[(-1*d-v)/s,(-1*h-y)/a],_=Qf(S,b);if(Zf(S,b)<=-1&&(_=qf),Zf(S,b)>=1&&(_=0),_<0){var E=Math.round(_/qf*1e6)/1e6;_=2*qf+E%2*qf}c.addData(u,m,C,s,a,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 ja;if(!t)return e;var o,n=0,i=0,r=n,s=i,a=ja.CMD,l=t.match(tg);if(!l)return e;for(var u=0;uP*P+A*A&&(E=x,R=T),{cx:E,cy:R,x0:-c,y0:-p,x1:E*(i/S-1),y1:R*(i/S-1)}}var Rg=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},xg=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){!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 s=n;n=i,i=s}var a=e.startAngle,l=e.endAngle;if(!isNaN(a)&&!isNaN(l)){var u=e.cx,c=e.cy,p=!!e.clockwise,d=Cg(l-a),h=d>fg&&d%fg;if(h>_g&&(d=h),n>_g)if(d>fg-_g)t.moveTo(u+n*vg(a),c+n*gg(a)),t.arc(u,c,n,a,l,!p),i>_g&&(t.moveTo(u+i*vg(l),c+i*gg(l)),t.arc(u,c,i,l,a,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,E=void 0,R=void 0,x=void 0,T=void 0,O=void 0,D=void 0,P=n*vg(a),A=n*gg(a),M=i*vg(l),I=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),E=b=Sg(m,C),R=_=Sg(w,S),(b>_g||_>_g)&&(x=n*vg(l),T=n*gg(l),O=i*vg(a),D=i*gg(a),d_g){var z=bg(v,E),U=bg(y,E),K=Eg(O,D,P,A,n,z,p),Y=Eg(x,T,M,I,n,U,p);t.moveTo(u+K.cx+K.x0,c+K.cy+K.y0),E0&&t.arc(u+K.cx,c+K.cy,z,mg(K.y0,K.x0),mg(K.y1,K.x1),!p),t.arc(u,c,n,mg(K.cy+K.y1,K.cx+K.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+P,c+A),t.arc(u,c,n,a,l,!p);else t.moveTo(u+P,c+A);i>_g&&L?R>_g?(z=bg(f,R),K=Eg(M,I,x,T,i,-(U=bg(g,R)),p),Y=Eg(P,A,O,D,i,-z,p),t.lineTo(u+K.cx+K.x0,c+K.cy+K.y0),R<_&&z===U?t.arc(u+K.cx,c+K.cy,R,mg(K.y0,K.x0),mg(Y.y0,Y.x0),!p):(U>0&&t.arc(u+K.cx,c+K.cy,U,mg(K.y0,K.x0),mg(K.y1,K.x1),!p),t.arc(u,c,i,mg(K.cy+K.y1,K.cx+K.x1),mg(Y.cy+Y.y1,Y.cx+Y.x1),p),z>0&&t.arc(u+Y.cx,c+Y.cy,z,mg(Y.y1,Y.x1),mg(Y.y0,Y.x0),!p))):(t.lineTo(u+M,c+I),t.arc(u,c,i,l,a,p)):t.lineTo(u+M,c+I)}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);xg.prototype.type="sector";const Tg=xg;var Og=function(){this.cx=0,this.cy=0,this.r=0,this.r0=0},Dg=function(t){function e(e){return t.call(this,e)||this}return m(e,t),e.prototype.getDefaultShape=function(){return new Og},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);Dg.prototype.type="ring";const Pg=Dg;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,s,a,l=[],u=[],c=[],p=[];if(n){s=[1/0,1/0],a=[-1/0,-1/0];for(var d=0,h=t.length;dov[1]){if(s=!1,i)return s;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 Dv(t){return!t.isGroup}function Pv(t,e,o){if(t&&e){var n,i=(n={},t.traverse((function(t){Dv(t)&&t.anid&&(n[t.anid]=t)})),n);e.traverse((function(t){if(Dv(t)&&t.anid){var e=i[t.anid];if(e){var n=r(t);t.attr(r(e)),qu(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 Mv(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 Iv(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),X(i,o),new yl(n)):mv(t.replace("path://",""),n,o,"center")}function Lv(t,e,o,n,i){for(var r=0,s=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 Gv(t){var e=t.itemTooltipOption,o=t.componentModel,n=t.itemName,i=ct(e)?{formatter:e}:e,r=o.mainType,s=o.componentIndex,a={componentType:r,name:n,$vars:["name"]};a[r+"Index"]=s;var l=t.formatterParamsExtra;l&&tt(rt(l),(function(t){kt(a,t)||(a[t]=l[t],a.$vars.push(t))}));var u=Wl(t.el);u.componentMainType=r,u.componentIndex=s,u.tooltipConfig={name:n,option:X({content:n,formatterParams:a},i)}}function kv(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){a=t},d}function Jv(t,e,o,n){var i=t[e];if(i){var r=i[qv]||i,s=i[Zv];if(i[$v]!==o||s!==n){if(null==o||!n)return t[e]=r;(i=t[e]=Qv(r,o,"debounce"===n))[qv]=r,i[Zv]=n,i[$v]=o}return i}}function ty(t,e){var o=t[e];o&&o[qv]&&(o.clear&&o.clear(),t[e]=o[qv])}var ey=fs(),oy={itemStyle:Ls(Tc,!0),lineStyle:Ls(Ec,!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 sy={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),s=i.getShallow("decal");s&&(o.setVisual("decal",s),s.dirty=!0);var a=ry(t,n),l=r[a],u=ut(l)?l:null,c="auto"===r.fill||"auto"===r.stroke;if(!r[a]||u||c){var p=t.getColorFromPalette(t.name,null,e.getSeriesCount());r[a]||(r[a]=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",a),!e.isSeriesFiltered(t)&&u)return o.setVisual("colorFromPalette",!1),{dataEach:function(e,o){var n=t.getDataParams(o),i=Y({},r);i[a]=u(n),e.setItemVisual(o,"style",i)}}}},ay=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]){ay.option=o[n];var s=i(ay);Y(t.ensureUniqueItemVisual(e,"style"),s),ay.option.decal&&(t.setItemVisual(e,"decal",ay.option.decal),ay.option.decal.dirty=!0),r in s&&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,s=e.visualStyleAccessPath||"itemStyle",a=ry(e,s);i.each((function(t){var e=i.getRawIndex(t);n[e]=t})),o.each((function(t){var s=n[t];if(i.getItemVisual(s,"colorFromPalette")){var l=i.ensureUniqueItemVisual(s,"style"),u=o.getName(t)||t+"",c=o.count();l[a]=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"),s="mod"===t.get("progressiveChunkMode")?n:null;t.pipelineContext=o.context={progressiveRender:i,modDataCount:s,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,{});xt(!(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 s(t,e){return t.setDirty&&(!t.dirtyMap||t.dirtyMap.get(e.__pipeline.id))}tt(t,(function(t,a){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){s(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(a,l){s(n,a)&&a.dirty();var u=r.getPerformArgs(a,n.block);u.skip=!t.performRawSeries&&e.isSeriesFiltered(a.context.model),r.updatePayload(a,o),a.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,s=e.seriesTaskMap=Lt(),a=t.seriesType,l=t.getTargetSeries;function u(e){var a=e.uid,l=s.set(a,r&&r.get(a)||Th({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):a?o.eachRawSeriesByType(a,u):l&&l(o,n).each(u)},t.prototype._createOverallStageTask=function(t,e,o,n){var i=this,r=e.overallTask=e.overallTask||Th({reset:dy});r.context={ecModel:o,api:n,overallReset:t.overallReset,scheduler:i};var s=r.agentStubMap,a=r.agentStubMap=Lt(),l=t.seriesType,u=t.getTargetSeries,c=!0,p=!1;function d(t){var e=t.uid,o=a.set(e,s&&s.get(e)||(p=!0,Th({reset:hy,onDirty:gy})));o.context={model:t,overallProgress:c},o.agent=r,o.__block=c,i._pipe(t,o)}xt(!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=Ic("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=os(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,a=!0)}}s.hasOwnProperty(i)&&(o[i]=t,a=!0),a||(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,s=o.view;if(!r||!s)return!0;var a=e.cptQuery,l=e.dataQuery;return u(a,r,"mainType")&&u(a,r,"subType")&&u(a,r,"index","componentIndex")&&u(a,r,"name")&&u(a,r,"id")&&u(l,i,"name")&&u(l,i,"dataIndex")&&u(l,i,"dataType")&&(!s.filterForExposedEvent||s.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"],Gy=Fy.concat(["symbolKeepAspect"]),ky={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,s=0;s=0&&am(l)?l:.5,t.createRadialGradient(s,a,0,s,a,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,s=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,s=s*o.height+o.y),n=am(n)?n:0,i=am(i)?i:1,r=am(r)?r:0,s=am(s)?s:0,t.createLinearGradient(n,r,i,s)}(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 s=n.strokeNoScale&&t.getLineScale?t.getLineScale():1;s&&1!==s&&(i=et(i,(function(t){return t/s})),r/=s)}return[i,r]}var dm=new ja(!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=Vs(e.image,e.__image,o);if(Bs(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){Om(t,i),r=!0;var s=Math.max(Math.min(e.opacity,1),0);t.globalAlpha=isNaN(s)?ea.opacity:s}(n||e.blend!==o.blend)&&(r||(Om(t,i),r=!0),t.globalCompositeOperation=e.blend||ea.blend);for(var a=0;a0&&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[$m])if(this._disposed)TC(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[$m]=!0,!this._model||e){var s=new Md(this._api),a=this._theme,l=this._model=new _d;l.scheduler=this._scheduler,l.ssr=this._ssr,l.init(null,null,null,a,this._locale,s)}this._model.setOption(t,{replaceMerge:i},AC);var u={seriesTransition:r,optionChanged:!0};if(o)this[Zm]={silent:n,updateParams:u},this[$m]=!1,this.getZr().wakeUp();else{try{iC(this),aC.update.call(this,null,u)}catch(t){throw this[Zm]=null,this[$m]=!1,t}this._ssr||this._zr.flush(),this[Zm]=null,this[$m]=!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}TC(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 s=r,a=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(z(t)),h=r.getDom().getBoundingClientRect();s=n(h.left,s),a=n(h.top,a),l=i(h.right,l),u=i(h.bottom,u),c.push({dom:d,left:h.left,top:h.top})}}));var d=(l*=p)-(s*=p),h=(u*=p)-(a*=p),f=O.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-s,o=t.top-a;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 Rl({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-s,y:t.top*p-a,image:t.dom}});g.add(e)})),g.refreshImmediately(),f.toDataURL("image/"+(t&&t.type||"png"))}return this.getDataURL(t)}TC(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(vs(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;TC(this.id)},e.prototype.getVisual=function(t,e){var o=vs(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(xC,(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,r)||{},!0}if(e.eventData)return o=Y({},e.eventData),!0}),!0),o){var s=o.componentType,a=o.componentIndex;"markLine"!==s&&"markPoint"!==s&&"markArea"!==s||(s="series",a=o.seriesIndex);var l=s&&null!=a&&i.getComponent(s,a),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(DC,(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?(zy("map","selectchanged",e,n,t),zy("pie","selectchanged",e,n,t)):"select"===t.fromAction?(zy("map","selected",e,n,t),zy("pie","selected",e,n,t)):"unselect"===t.fromAction&&(zy("map","unselected",e,n,t),zy("pie","unselected",e,n,t))}))},e.prototype.isDisposed=function(){return this._disposed},e.prototype.clear=function(){this._disposed?TC(this.id):this.setOption({series:[]},!0)},e.prototype.dispose=function(){if(this._disposed)TC(this.id);else{this._disposed=!0,this.getDom()&&Ss(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[$m])if(this._disposed)TC(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[$m]=!0;try{o&&iC(this),aC.update.call(this,{type:"resize",animation:Y({duration:0},t&&t.animation)})}catch(t){throw this[$m]=!1,t}this[$m]=!1,pC.call(this,n),dC.call(this,n)}}},e.prototype.showLoading=function(t,e){if(this._disposed)TC(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?TC(this.id):(this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null)},e.prototype.makeActionFromEvent=function(t){var e=Y({},t);return e.type=DC[t.type],e},e.prototype.dispatchAction=function(t,e){if(this._disposed)TC(this.id);else if(ht(e)||(e={silent:!!e}),OC[t.type]&&this._model)if(this[$m])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)TC(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=Kl(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=s;var n=t.getTextContent(),r=t.getTextGuideLine();n&&(n.stateTransition=s),r&&(r.stateTransition=s)}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,s=t._zr,a=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,a)},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){Eu(e,o),wC(t)},o.prototype.enterBlur=function(e){Ru(e),wC(t)},o.prototype.leaveBlur=function(e){xu(e),wC(t)},o.prototype.enterSelect=function(e){Tu(e),wC(t)},o.prototype.leaveSelect=function(e){Ou(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}(Rd))(t)},CC=function(t){function e(t,e){for(var o=0;o=0)){iw.push(o);var r=xy.wrapStageHandler(o,i);r.__prio=e,r.__raw=o,t.push(r)}}function sw(t,e){LC[t]=e}function aw(t){D({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=z(t)).type;e||Ph("");var o=e.split(":");2!==o.length&&Ph("");var n=!1;"echarts"===o[0]&&(e=o[1],n=!0),t.__isBuiltIn=n,zh.set(e,t)};nw(Km,sy),nw(Xm,ly),nw(Xm,uy),nw(Km,ky),nw(Xm,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))}}))})),XC(Zd),qC(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)})),sw("default",(function(t,e){X(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 Rl({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}),s=new Rl({style:{fill:"none"},textContent:r,textConfig:{position:"right",distance:10},zlevel:e.zlevel,z:10001});return o.add(s),e.showSpinner&&((i=new qg({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,a=e.showSpinner?e.spinnerRadius:0,l=(t.getWidth()-2*a-(e.showSpinner&&o?10:0)-o)/2-(e.showSpinner&&o?0:5+o/2)+(e.showSpinner?0:o/2)+(o?0:a),u=t.getHeight()/2;e.showSpinner&&i.setShape({cx:l,cy:u}),s.setShape({x:l-a,y:u-a,width:2*a,height:2*a}),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",Oy),YC("dark",Ly);var pw={},dw=[],hw={registerPreprocessor:XC,registerProcessor:qC,registerPostInit:$C,registerPostUpdate:ZC,registerUpdateLifecycle:QC,registerAction:JC,registerCoordinateSystem:tw,registerLayout:ow,registerVisual:nw,registerTransform:cw,registerLoading:sw,registerMap:lw,registerImpl:function(t,e){Hm[t]=e},PRIORITY:qm,ComponentModel:jp,ComponentView:Vf,SeriesModel:Gf,ChartView:Xv,registerComponentModel:function(t){jp.registerClass(t)},registerComponentView:function(t){Vf.registerClass(t)},registerSeriesModel:function(t){Gf.registerClass(t)},registerChartView:function(t){Xv.registerClass(t)},registerSubTypeDefaulter:function(t,e){jp.registerSubTypeDefaulter(t,e)},registerPainter:function(t,e){Er(t,e)}};function fw(t){lt(t)?tt(t,(function(t){fw(t)})):$(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=a.shift();1===a.length&&(o[s]=a[0]),this._update&&this._update(u,r)}else 1===l?(o[s]=null,this._update&&this._update(a,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 s=0;s1&&1===p)this._updateManyToOne&&this._updateManyToOne(u,l),n[a]=null;else if(1===c&&p>1)this._updateOneToMany&&this._updateOneToMany(u,l),n[a]=null;else if(1===c&&1===p)this._update&&this._update(u,l),n[a]=null;else if(c>1&&p>1)this._updateManyToMany&&this._updateManyToMany(u,l),n[a]=null;else if(c>1)for(var d=0;d1)for(var s=0;s30}var Pw,Aw,Mw,Iw,Lw,Nw,Fw,Gw=ht,kw=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;xw(t)?(o=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(n=!0,o=t),o=o||["x","y"];for(var i={},r=[],s={},a=!1,l={},u=0;u=e)){var o=this._store.getProvider();this._updateOrdinalMeta();var n=this._nameList,i=this._idList;if(o.getSource().sourceFormat===Xp&&!o.pure)for(var r=[],s=t;s0},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():Gw(i)&&(i=Y({},i)),n[e]=i),i},t.prototype.setItemVisual=function(t,e,o){var n=this._itemVisuals[t]||{};this._itemVisuals[t]=n,Gw(e)?Y(n,e):n[e]=o},t.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},t.prototype.setLayout=function(t,e){Gw(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;jl(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:kw(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(Et(arguments)))})},t.internalField=(Pw=function(t){var e=t._invertedIndicesMap;tt(e,(function(o,n){var i=t._dimInfos[n],r=i.ordinalMeta,s=t._store;if(r){o=e[n]=new Vw(r.categories.length);for(var a=0;a1&&(a+="__ec__"+u),n[e]=a}})),t}();const jw=Ww;function zw(t,e){return Uw(t,e).dimensions}function Uw(t,e){rh(t)||(t=ah(t));var o=(e=e||{}).coordDimensions||[],n=e.dimensionsDefine||t.dimensionsDefine||[],i=Lt(),r=[],s=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),a=e.canOmitUnusedDimensions&&Dw(s),l=n===t.dimensionsDefine,u=l?Ow(t):Tw(n),c=e.encodeDefine;!c&&e.encodeDefaulter&&(c=e.encodeDefaulter(t,s));for(var p=Lt(c),d=new Zh(s),h=0;h0&&(n.name=i+(r-1)),r++,e.set(i,r)}}(r),new Rw({source:t,dimensions:r,fullDimensionCount:s,dimensionOmitted:a})}function Kw(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},Xw={cartesian2d:function(t,e,o,n){var i=t.getReferringComponents("xAxis",ms).models[0],r=t.getReferringComponents("yAxis",ms).models[0];e.coordSysDims=["x","y"],o.set("x",i),o.set("y",r),qw(i)&&(n.set("x",i),e.firstCategoryDimIndex=0),qw(r)&&(n.set("y",r),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=1))},singleAxis:function(t,e,o,n){var i=t.getReferringComponents("singleAxis",ms).models[0];e.coordSysDims=["single"],o.set("single",i),qw(i)&&(n.set("single",i),e.firstCategoryDimIndex=0)},polar:function(t,e,o,n){var i=t.getReferringComponents("polar",ms).models[0],r=i.findAxisModel("radiusAxis"),s=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],o.set("radius",r),o.set("angle",s),qw(r)&&(n.set("radius",r),e.firstCategoryDimIndex=0),qw(s)&&(n.set("angle",s),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")),s=e.coordSysDims=r.dimensions.slice();tt(r.parallelAxisIndex,(function(t,r){var a=i.getComponent("parallelAxis",t),l=s[r];o.set(l,a),qw(a)&&(n.set(l,a),null==e.firstCategoryDimIndex&&(e.firstCategoryDimIndex=r))}))}};function qw(t){return"category"===t.get("type")}function $w(t,e,o){var n,i,r,s=(o=o||{}).byIndex,a=o.stackedCoordDimension;!function(t){return!xw(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&&(s||l||!t.ordinalMeta||(l=t),u||"ordinal"===t.type||"time"===t.type||a&&a!==t.coordDim||(u=t))})),!u||s||l||(s=!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:s,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=ah(t)):r=(n=i.getSource()).sourceFormat===Xp;var s=function(t){var e=t.get("coordinateSystem"),o=new Yw(e),n=Xw[e];if(n)return n(t,o,o.axisMap,o.categoryAxisMap),o}(e),a=function(t,e){var o,n=t.get("coordinateSystem"),i=Od.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,s),l=o.useEncodeDefaulter,u=ut(l)?l:l?at(id,a,e):null,c=Uw(n,{coordDimensions:a,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 s=t.coordDim,a=o.categoryAxisMap.get(s);a&&(null==n&&(n=r),t.ordinalMeta=a.getOrdinalMeta(),e&&(t.createInvertedIndices=!0)),null!=t.otherDims.itemName&&(i=!0)})),i||null==n||(t[n].otherDims.itemName=0),n}(c.dimensions,o.createInvertedIndices,s),d=r?null:i.getSharedDataStore(c),h=$w(e,{schema:c,store:d}),f=new jw(c,e);f.setCalculationInfo(h);var g=null!=p&&function(t){if(t.sourceFormat===Xp){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}();Is(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 sS(t){var e=Math.pow(10,zr(t)),o=t/e;return o?2===o?o=3:3===o?o=5:o*=2:o=1,Pr(o*e)}function aS(t){return Mr(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,s=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=Pr,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=aS(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 a=r.length?r[r.length-1].value:n[1];return o[1]>a&&(t?r.push({value:fS(a+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&&(s=i.interval=n);var a=i.intervalPrecision=aS(s);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=[Pr(Math.ceil(t[0]/s)*s,a),Pr(Math.floor(t[1]/s)*s,a)],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){OS(t)&&o.push(t)})),o}function ES(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)),s=n.getStore(),a=0,l=s.count();a0&&(r=null===r?a:Math.min(r,a))}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 s=i.dim+"_"+i.index,a=e[s],l=Math.abs(r[1]-r[0]),u=i.scale.getExtent(),c=Math.abs(u[1]-u[0]);n=a?l/c*a:l}else{var p=t.getData();n=Math.abs(r[1]-r[0])/p.count()}var d=Dr(t.get("barWidth"),n),h=Dr(t.get("barMaxWidth"),n),f=Dr(t.get("barMinWidth")||(DS(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)})})),RS(o)}function RS(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:{}},s=r.stacks;e[n]=r;var a=t.stackId;s[a]||r.autoWidthCount++,s[a]=s[a]||{width:0,maxWidth:0};var l=t.barWidth;l&&!s[a].width&&(s[a].width=l,l=Math.min(r.remainedWidth,l),r.remainedWidth-=l);var u=t.barMaxWidth;u&&(s[a].maxWidth=u);var c=t.barMinWidth;c&&(s[a].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 s=rt(n).length;r=Math.max(35-4*s,15)+"%"}var a=Dr(r,i),l=Dr(t.gap,1),u=t.remainedWidth,c=t.autoWidthCount,p=(u-a)/(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-a)/(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 xS(t,e){var o=_S(t,e),n=ES(o);tt(o,(function(t){var e=t.getData(),o=t.coordinateSystem.getBaseAxis(),i=SS(t),r=n[bS(o)][i],s=r.offset,a=r.width;e.setLayout({bandWidth:r.bandWidth,offset:s,size:a})}))}function TS(t){return{seriesType:t,plan:Hf(),reset:function(t){if(OS(t)){var e=t.getData(),o=t.coordinateSystem,n=o.getBaseAxis(),i=o.getOtherAxis(n),r=e.getDimensionIndex(e.mapDimension(i.dim)),s=e.getDimensionIndex(e.mapDimension(n.dim)),a=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=DS(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&&a&&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),E=S.get(s,n),R=d,x=void 0;c&&(x=+_-S.get(r,n));var T=void 0,O=void 0,D=void 0,P=void 0;if(p){var A=o.dataToPoint([_,E]);c&&(R=o.dataToPoint([x,E])[0]),T=R,O=A[1]+y,D=A[0]-R,P=v,Math.abs(D)0)for(var a=0;a=0;--a)if(l[u]){r=l[u];break}r=r||s.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,s=0;function a(t,e,o,i,r,s,a){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,s=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 IS(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?zc:jc)>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 GS(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(PS);const kS=PS;var VS=eS.prototype,HS=vS.prototype,BS=Pr,WS=Math.floor,jS=Math.ceil,zS=Math.pow,US=Math.log,KS=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=Pr(zS(this.base,e));return i=e===o[0]&&this._fixMin?XS(i,n[0]):i,{value:i=e===o[1]&&this._fixMax?XS(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]=zS(t,e[0]),e[1]=zS(t,e[1]);var o=this._originalScale.getExtent();return this._fixMin&&(e[0]=XS(e[0],o[0])),this._fixMax&&(e[1]=XS(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=jr(o);for(t/o*n<=.5&&(n*=10);!isNaN(n)&&Math.abs(n)<1&&Math.abs(n)>0;)n*=10;var i=[Pr(jS(e[0]/n)*n),Pr(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),zS(this.base,t)},e.type="log",e}(eS),YS=KS.prototype;function XS(t,e){return BS(t,Mr(e))}YS.getMinorTicks=HS.getMinorTicks,YS.getLabel=HS.getLabel,eS.registerClass(KS);const qS=KS;var $S=function(){function t(t,e,o){this._prepareParams(t,e,o)}return t.prototype._prepareParams=function(t,e,o){o[1]0&&a>0&&!l&&(s=0),s<0&&a<0&&!u&&(a=0));var p=this._determinedMin,d=this._determinedMax;return null!=p&&(s=p,l=!0),null!=d&&(a=d,u=!0),{min:s,max:a,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 $S(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,s=e.ecModel;if(s&&"time"===o){var a=_S("bar",s),l=!1;if(tt(a,(function(t){l=l||t.getBaseAxis()===e.axis})),l){var u=ES(a),c=function(t,e,o,n){var i=o.axis.getExtent(),r=i[1]-i[0],s=function(t,e,o){if(t&&e){var n=t[bS(e)];return n}}(n,o.axis);if(void 0===s)return{min:t,max:e};var a=1/0;tt(s,(function(t){a=Math.min(t.offset,a)}));var l=-1/0;tt(s,(function(t){l=Math.max(t.offset+t.width,l)})),a=Math.abs(a),l=Math.abs(l);var u=a+l,c=e-t,p=c/(1-(a+l)/r)-c;return{min:t-=p*(a/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 qS&&(t.base=o.get("logBase"));var s=t.type,a=o.get("interval"),l="interval"===s||"time"===s;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!=a&&t.setInterval&&t.setInterval(a)}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 kS({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 sb(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)),s=n*Math.abs(Math.sin(o))+Math.abs(i*Math.cos(o));return new so(t.x,t.y,r,s)}function ab(t){var e=t.get("interval");return null==e?"auto":e}function lb(t){return"category"===t.type&&0===ab(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:$w,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 ac(t,null,null,"normal"!==(e=e||{}).state)}var vb=1e-8;function yb(t,e){return Math.abs(t-e)o&&(t=i,o=s)}if(t)return function(t){for(var e=0,o=0,n=0,i=t.length,r=t[i-1][0],s=t[i-1][1],a=0;a>1^-(1&a),l=l>>1^-(1&l),i=a+=i,r=l+=r,n.push([a/o,l/o])}return n}function Db(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=Ob(i,n,o);break;case"Polygon":case"MultiLineString":Tb(i,n,o);break;case"MultiPolygon":tt(i,(function(t,e){return Tb(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 Eb([n.coordinates]));break;case"MultiLineString":i.push(new Eb(n.coordinates))}var s=new Rb(o[e||"name"],i,o.cp);return s.properties=o,s}))}function Pb(t,e,o,n,i,r,s,a){return new Bl({style:{text:t,font:e,align:o,verticalAlign:n,padding:i,rich:r,overflow:s?"truncate":null,lineHeight:a}}).getBoundingRect()}var Ab=fs();function Mb(t,e){var o,n,i=Ib(t,"labels"),r=ab(e);return Lb(i,r)||(ut(r)?o=Gb(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 Ib(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=s.get("showMinLabel")||p,h=s.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};a.push(o?t:{formattedLabel:n(e),rawLabel:i.getLabel(e),tickValue:t})}return h&&f-l!==r[1]&&g(r[1]),a}function Gb(t,e,o){var n=t.scale,i=ib(t),r=[];return tt(n.getTicks(),(function(t){var s=n.getLabel(t),a=t.value;e(t.value,s)&&r.push(o?a:{formattedLabel:i(t),rawLabel:s,tickValue:a})})),r}var kb=[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()),Or(t,kb,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=Or(t,o,kb,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=Ib(t,"ticks"),r=ab(e),s=Lb(i,r);if(s)return s;if(e.get("show")&&!t.scale.isBlank()||(o=[]),ut(r))o=Gb(t,r,!0);else if("auto"===r){var a=Mb(t,t.getLabelModel());n=a.labelCategoryInterval,o=et(a.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,s,a=t.getExtent();if(1===i)e[0].coord=a[0],r=e[1]={coord:a[1]};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})),s=1+t.scale.getExtent()[1]-e[i-1].tickValue,r={coord:e[i-1].coord+u*s},e.push(r)}var c=a[0]>a[1];p(e[0].coord,a[0])&&(n?e[0].coord=a[0]:e.shift()),n&&p(a[0],e[0].coord)&&e.unshift({coord:a[0]}),p(a[1],r.coord)&&(n?r.coord=a[1]:e.pop()),n&&p(r.coord,a[1])&&e.push({coord:a[1]})}function p(t,e){return t=Pr(t),e=Pr(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=Mb(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(),s=i.count();if(r[1]-r[0]<1)return 0;var a=1;s>40&&(a=Math.max(1,Math.floor(s/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+=a){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(_-s)<=1&&b>C&&w.axisExtent0===S[0]&&w.axisExtent1===S[1]?C=b:(w.lastTickCount=s,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=jp.extend(t);return jp.registerClass(e),e}function jb(t){var e=Vf.extend(t);return Vf.registerClass(e),e}function zb(t){var e=Gf.extend(t);return Gf.registerClass(e),e}function Ub(t){var e=Xv.extend(t);return Xv.registerClass(e),e}var Kb=2*Math.PI,Yb=ja.CMD,Xb=["top","right","bottom","left"];function qb(t,e,o,n,i){var r=o.width,s=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+s+e),i.set(0,1);break;case"left":n.set(o.x-e,o.y+s/2),i.set(-1,0);break;case"right":n.set(o.x+r+e,o.y+s/2),i.set(1,0)}}function $b(t,e,o,n,i,r,s,a,l){s-=t,a-=e;var u=Math.sqrt(s*s+a*a),c=(s/=u)*o+t,p=(a/=u)*o+e;if(Math.abs(n-i)%Kb<1e-4)return l[0]=c,l[1]=p,u-o;if(r){var d=n;n=Xa(i),i=Xa(d)}else n=Xa(n),i=Xa(i);n>i&&(i+=Kb);var h=Math.atan2(a,s);if(h<0&&(h+=Kb),h>=n&&h<=i||h+Kb>=n&&h+Kb<=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-s)*(f-s)+(g-a)*(g-a),C=(v-s)*(v-s)+(y-a)*(y-a);return m0){e=e/180*Math.PI,o_.fromArray(t[0]),n_.fromArray(t[1]),i_.fromArray(t[2]),$e.sub(r_,o_,n_),$e.sub(s_,i_,n_);var o=r_.len(),n=s_.len();if(!(o<.001||n<.001)){r_.scale(1/o),s_.scale(1/n);var i=r_.dot(s_);if(Math.cos(e)1&&$e.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]),$e.sub(r_,n_,o_),$e.sub(s_,i_,n_);var n=r_.len(),i=s_.len();if(!(n<.001||i<.001)&&(r_.scale(1/n),s_.scale(1/i),r_.dot(e)=s)$e.copy(u_,i_);else{u_.scaleAndAdd(s_,r/Math.tan(Math.PI/2-a));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?$e.copy(u_,n_):l>1&&$e.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 s=n.get("smooth");s&&!0===s&&(s=.3),r.shape=r.shape||{},s>0&&(r.shape.smooth=s);var a=n.getModel("lineStyle").getLineStyle();i?t.useStyle(a):r.style=a}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 s=Math.min(i,r)*o,a=le([],n[1],n[0],s/i),l=le([],n[1],n[2],s/r),u=le([],a,l,.5);t.bezierCurveTo(a[0],a[1],a[0],a[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/s,0,s);var v,y,m=t[0],C=t[s-1];return w(),v<0&&_(-v,.8),y<0&&_(y,.8),w(),S(v,y,1),S(y,v,-1),w(),v<0&&E(-v),y<0&&E(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,s);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,s)}}function E(t){var e=t<0?-1:1;t=Math.abs(t);for(var o=Math.ceil(t/(s-1)),n=0;n0?b(o,0,n+1):b(-o,s-n-1,s),(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 so(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),$(u,"emphasis")>=0&&o.attr(h.oldLayoutEmphasis)),qu(o,a,e,s)}else if(o.attr(a),!fc(o).valueAnimation){var c=bt(o.style.opacity,1);o.style.opacity=0,$u(o,{style:{opacity:c}},e,s)}if(h.oldLayout=a,o.states.select){var p=h.oldLayoutSelect={};x_(p,a,T_),x_(p,o.states.select,T_)}if(o.states.emphasis){var d=h.oldLayoutEmphasis={};x_(d,a,T_),x_(d,o.states.emphasis,T_)}vc(o,s,l,e,e)}if(n&&!n.ignore&&!n.invisible){i=(h=R_(n)).oldLayout;var h,f={points:n.shape.points};i?(n.attr({shape:i}),qu(n,{shape:f},e)):(n.setShape(f),n.style.strokePercent=0,$u(n,{style:{strokePercent:1}},e)),h.oldLayout=f}},t}();const D_=O_;var P_=fs();function A_(t){t.registerUpdateLifecycle("series:beforeupdate",(function(t,e,o){var n=P_(e).labelManager;n||(n=P_(e).labelManager=new D_),n.clearLabels()})),t.registerUpdateLifecycle("series:layoutlabels",(function(t,e,o){var n=P_(e).labelManager;o.updatedSeries.forEach((function(t){n.addLabelsOfSeries(e.getViewOfSeriesModel(t))})),n.updateLayoutConfig(e),n.layout(e),n.processLabelsOverall()}))}function M_(t,e,o){var n=O.createCanvas(),i=e.getWidth(),r=e.getHeight(),s=n.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=i+"px",s.height=r+"px",n.setAttribute("data-zr-dom-id",t)),n.width=i*o,n.height=r*o,n}fw(A_);var I_=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=M_(e,o,n):ht(e)&&(e=(i=e).id),r.id=e,r.dom=i;var s=i.style;return s&&(Gt(i),i.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.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=M_("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=[],s=this.maxRepaintRectCount,a=!1,l=new so(0,0,0,0);function u(t){if(t.isFinite()&&!t.isZero())if(0===r.length)(e=new so(0,0,0,0)).copy(t),r.push(e);else{for(var e,o=!1,n=1/0,i=0,u=0;u=s)}}for(var c=this.__startIndex;c15)break}o.prevElClipPaths&&p.restore()};if(h)if(0===h.length)a=l.__endIndex;else for(var w=d.dpr,S=0;S0&&t>n[0]){for(a=0;at);a++);s=o[n[a]]}if(n.splice(a+1,0,t),o[t]=e,!e.virtual)if(s){var l=s.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?G_:0),this._needsManuallyCompositing),u.__builtin__||j("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),a.__dirty&Ro&&!a.__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=j_:-u>=j_),h=u>0?u%j_:u%j_+j_;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*z_);if(d){var y=1/this._p,m=(c?1:-1)*(j_-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_(s),w=e+n*H_(s);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,s,a,l){for(var u=[],c=this._p,p=1;p"}(i,r)+("style"!==i?xe(s):s||"")+(n?""+o+et(n,(function(e){return t(e)})).join(o)+o:"")+""}(t)}function iE(t){return{zrId:t,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function rE(t,e,o,n){return oE("svg","root",{width:t,height:e,xmlns:Z_,"xmlns:xlink":Q_,version:"1.1",baseProfile:"full",viewBox:!!n&&"0 0 "+t+" "+e},o)}var sE={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"},aE="transform-origin";function lE(t,e,o){var n=Y({},t.shape);Y(n,e),t.buildPath(o,n);var i=new K_;return i.reset(Zn(t)),o.rebuildPath(i,1),i.generateStr(),i.getStr()}function uE(t,e){var o=e.originX,n=e.originY;(o||n)&&(t[aE]=o+"px "+n+"px")}var cE={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function pE(t,e){var o=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[o]=t,o}function dE(t){return ct(t)?sE[t]?"cubic-bezier("+sE[t]+")":an(t)?t:"":""}function hE(t,e,o,n){var i=t.animators,r=i.length,s=[];if(t instanceof Zg){var a=function(t,e,o){var n,i,r=t.shape.paths,s={};if(tt(r,(function(t){var e=iE(o.zrId);e.animation=!0,hE(t,{},e,!0);var r=e.cssAnims,a=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];s[p]=s[p]||{d:""},s[p].d+=d.d||""}for(var h in a){var f=a[h].animation;f.indexOf(i)>=0&&(n=f)}}})),n){e.d=!1;var a=pE(s,o);return n.replace(i,a)}}(t,e,o);if(a)s.push(a);else if(!r)return}else if(!r)return;for(var l={},u=0;u0})).length)return pE(c,o)+" "+i[0]+" both"}for(var v in l)(a=g(l[v]))&&s.push(a);if(s.length){var y=o.zrId+"-cls-"+o.cssClassIdx++;o.cssNodes["."+y]={animation:s.join(",")},e.class=y}}var fE=Math.round;function gE(t){return t&&ct(t.src)}function vE(t){return t&&ut(t.toDataURL)}function yE(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 s=null!=e.fillOpacity?e.fillOpacity*r.opacity*i:r.opacity*i;(n||s<1)&&t("fill-opacity",s)}else t("fill",Y_);if(function(t){var e=t.stroke;return null!=e&&e!==Y_}(e)){var a=Vn(e.stroke);t("stroke",a.color);var l=e.strokeNoScale?o.getLineScale():1,u=l?(e.lineWidth||0)/l:0,c=null!=e.strokeOpacity?e.strokeOpacity*a.opacity*i:a.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=X_(f||0),t("stroke-dasharray",h.join(",")),(f||n)&&t("stroke-dashoffset",f))}else n&&t("stroke-dasharray",Y_);for(var g=0;gl?UE(t,null==o[p+1]?null:o[p+1].elm,o,a,p):KE(t,e,s,l))}(o,n,i):BE(i)?(BE(t.text)&&FE(o,""),UE(o,null,i,0,i.length-1)):BE(n)?KE(o,n,0,n.length-1):BE(t.text)&&FE(o,""):t.text!==e.text&&(BE(n)&&KE(o,n,0,n.length-1),FE(o,e.text)))}var qE=0,$E=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"+qE++,this._oldVNode=rE(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=eE("svg");YE(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(jE(t,e))XE(t,e);else{var o=t.elm,n=LE(o);zE(e),null!==n&&(AE(n,e.elm,NE(o)),KE(n,[t],0,0))}}(this._oldVNode,t),this._oldVNode=t}},t.prototype.renderOneToVNode=function(t){return xE(t,iE(this._id))},t.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),o=this._width,n=this._height,i=iE(this._id);i.animation=t.animation,i.willUpdate=t.willUpdate,i.compress=t.compress;var r=[],s=this._bgVNode=function(t,e,o,n){var i;if(o&&"none"!==o)if(i=oE("rect","bg",{width:t,height:e,x:"0",y:"0",id:"0"}),qn(o))TE({fill:o},i.attrs,"fill",n);else if(Kn(o))OE({style:{fill:o},dirty:Vt,getBoundingRect:function(){return{width:t,height:e}}},i.attrs,"fill",n);else{var r=Vn(o),s=r.color,a=r.opacity;i.attrs.fill=s,a<1&&(i.attrs["fill-opacity"]=a)}return i}(o,n,this._backgroundColor,i);s&&r.push(s);var a=t.compress?null:this._mainVNode=oE("g","main",{},[]);this._paintList(e,i,a?a.children:r),a&&r.push(a);var l=et(rt(i.defs),(function(t){return i.defs[t]}));if(l.length&&r.push(oE("defs","defs",{},l)),t.animation){var u=function(t,e,o){var n=(o=o||{}).newline?"\n":"",i=" {"+n,r=n+"}",s=et(rt(t),(function(e){return e+i+et(rt(t[e]),(function(o){return o+":"+t[e][o]+";"})).join(n)+r})).join(n),a=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 s||a?[""].join(n):""}(i.cssNodes,i.cssAnims,{newline:!0});if(u){var c=oE("style","stl",{},[],u);r.push(c)}}return rE(o,n,r,t.useViewBox)},t.prototype.renderToString=function(t){return t=t||{},nE(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,s=[],a=0,l=0,u=0;u=0&&(!p||!i||p[f]!==i[f]);f--);for(var g=h-1;g>f;g--)n=s[--a-1];for(var v=f+1;v-1&&(a.style.stroke=a.style.fill,a.style.fill="#fff",a.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}(Gf);function JE(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=[],s=0;s=0&&n.push(e[r])}return n.join(" ")}var eR=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=oR,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(){Eu(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",s=t.hostModel,a=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,a,c)}else{(d=this.childAt(0)).silent=!1;var p={scaleX:a[0]/2,scaleY:a[1]/2};u?d.attr(p):qu(d,p,s,o),ec(d)}if(this._updateCommon(t,o,a,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,$u(d,p,s,o))}u&&this.childAt(0).stopAnimation("leave")},e.prototype._updateCommon=function(t,e,o,n,i){var r,s,a,l,u,c,p,d,h,f=this.childAt(0),g=t.hostModel;if(n&&(r=n.emphasisItemStyle,s=n.blurItemStyle,a=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(),a=v.getModel(["select","itemStyle"]).getItemStyle(),s=v.getModel(["blur","itemStyle"]).getItemStyle(),l=y.get("focus"),u=y.get("blurScope"),c=y.get("disabled"),p=sc(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=sm(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"),E=this._z2;null!=_?null==E&&(this._z2=f.z2,f.z2+=_):null!=E&&(f.z2=E,this._z2=null);var R=i&&i.useNameLabel;rc(f,p,{labelFetcher:g,labelDataIndex:e,defaultText:function(e){return R?t.getName(e):JE(t,e)},inheritColor:S,defaultOpacity:w.opacity}),this._sizeX=o[0]/2,this._sizeY=o[1]/2;var x=f.ensureState("emphasis");x.style=r,f.ensureState("select").style=a,f.ensureState("blur").style=s;var T=null==d||!0===d?Math.max(1.1,3/this._sizeY):isFinite(d)&&d>0?+d:1;x.scaleX=this._sizeX*T,x.scaleY=this._sizeY*T,this.setSymbolScale(1),Gu(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 s=n.getTextContent();s&&Qu(s,{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 oR(t,e){this.parent.drift(t,e)}const nR=eR;function iR(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 rR(t){return null==t||ht(t)||(t={isIgnore:t}),t||{}}function sR(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:sc(e),cursorStyle:e.get("cursor")}}var aR=function(){function t(t){this.group=new vr,this._SymbolCtor=t||nR}return t.prototype.updateData=function(t,e){this._progressiveEls=null,e=rR(e);var o=this.group,n=t.hostModel,i=this._data,r=this._SymbolCtor,s=e.disableAnimation,a=sR(t),l={disableAnimation:s},u=e.getSymbolPoint||function(e){return t.getItemLayout(e)};i||o.removeAll(),t.diff(i).add((function(n){var i=u(n);if(iR(t,i,n,e)){var s=new r(t,n,a,l);s.setPosition(i),t.setItemGraphicEl(n,s),o.add(s)}})).update((function(c,p){var d=i.getItemGraphicEl(p),h=u(c);if(iR(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,a,l)).setPosition(h);else{d.updateData(t,c,a,l);var v={x:h[0],y:h[1]};s?d.attr(v):qu(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=sR(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=rR(o);for(var i=t.start;i0?o=n[0]:n[1]<0&&(o=n[1]),o}(i,o),s=n.dim,a=i.dim,l=e.mapDimension(a),u=e.mapDimension(s),c="x"===a||"radius"===a?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:a,baseAxisDim:s,stacked:!!d,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:e.getCalculationInfo("stackedOverDimension")}}function cR(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,s=[];return s[r]=o.get(t.baseDim,n),s[1-r]=i,e.dataToPoint(s)}var pR=Math.min,dR=Math.max;function hR(t,e){return isNaN(t)||isNaN(e)}function fR(t,e,o,n,i,r,s,a,l){for(var u,c,p,d,h,f,g=o,v=0;v=i||g<0)break;if(hR(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(s>0){for(var S=g+r,b=e[2*S],_=e[2*S+1];b===y&&_===m&&v=n||hR(b,_))h=y,f=m;else{x=b-u,T=_-c;var P=y-u,A=b-y,M=m-c,I=_-m,L=void 0,N=void 0;if("x"===a){var F=x>0?1:-1;h=y-F*(L=Math.abs(P))*s,f=m,O=y+F*(N=Math.abs(A))*s,D=m}else if("y"===a){var G=T>0?1:-1;h=y,f=m-G*(L=Math.abs(M))*s,O=y,D=m+G*(N=Math.abs(I))*s}else L=Math.sqrt(P*P+M*M),h=y-x*s*(1-(R=(N=Math.sqrt(A*A+I*I))/(N+L))),f=m-T*s*(1-R),D=m+T*s*R,O=pR(O=y+x*s*R,dR(b,y)),D=pR(D,dR(_,m)),O=dR(O,pR(b,y)),f=m-(T=(D=dR(D,pR(_,m)))-m)*L/N,h=pR(h=y-(x=O-y)*L/N,dR(u,y)),f=pR(f,dR(c,m)),O=y+(x=y-(h=dR(h,pR(u,y))))*N/L,D=m+(T=m-(f=dR(f,pR(c,m))))*N/L}t.bezierCurveTo(p,d,h,f,y,m),p=O,d=D}else t.lineTo(y,m)}u=y,c=m,g+=r}return v}var gR=function(){this.smooth=0,this.smoothConstraint=!0},vR=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 gR},e.prototype.buildPath=function(t,e){var o=e.points,n=0,i=o.length/2;if(e.connectNulls){for(;i>0&&hR(o[2*i-2],o[2*i-1]);i--);for(;n=0){var v=s?(c-n)*g+n:(u-o)*g+o;return s?[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=s?Xo(o,u,p,h,t,a):Xo(n,c,d,f,t,a);if(y>0)for(var m=0;m=0)return v=s?Ko(n,c,d,f,C):Ko(o,u,p,h,C),s?[t,v]:[v,t]}o=h,n=f}}},e}(cl),yR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e}(gR),mR=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 yR},e.prototype.buildPath=function(t,e){var o=e.points,n=e.stackedOnPoints,i=0,r=o.length/2,s=e.smoothMonotone;if(e.connectNulls){for(;r>0&&hR(o[2*r-2],o[2*r-1]);r--);for(;in)return!1;return!0}(r,e))){var s=e.mapDimension(r.dim),a={};return tt(r.getViewLabels(),(function(t){var e=r.scale.getRawOrdinalNumber(t.tickValue);a[e]=1})),function(t){return!a.hasOwnProperty(e.get(s,t))}}}}(t,s,i),E=this._data;E&&E.eachItemGraphicEl((function(t,e){t.__temp&&(r.remove(t),E.setItemGraphicEl(e,null))})),S||d.remove(),r.add(g);var R,x=!c&&t.get("step");i&&i.getArea&&t.get("clip",!0)&&(null!=(R=i.getArea()).width?(R.x-=.1,R.y-=.1,R.width+=.2,R.height+=.2):R.r0&&(R.r0-=.5,R.r+=.5)),this._clipShapeForSymbol=R;var T=function(t,e,o){var n=t.getVisual("visualMeta");if(n&&n.length&&t.count()&&"cartesian2d"===e.type){for(var i,r,s=n.length-1;s>=0;s--){var a=t.getDimensionInfo(n[s].dimension);if("x"===(i=a&&a.coordDim)||"y"===i){r=n[s];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 s(t,e,o){var n=t.coord;return{coord:o,color:An((o-n)/(e.coord-n),[t.color,e.color])}}for(var a=0;ae){n?i.push(s(n,l,e)):o&&i.push(s(o,l,0),s(o,l,e));break}o&&(i.push(s(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}}}(s,i,o)||s.getVisual("style")[s.getVisual("drawType")];if(h&&p.type===i.type&&x===this._step){y&&!f?f=this._newPolygon(u,w):f&&!y&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Op(T));var O=g.getClipPath();O?$u(O,{shape:PR(this,i,!1,t).shape},t):g.setClipPath(PR(this,i,!0,t)),S&&d.updateData(s,{isIgnore:_,clipShape:R,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),_R(this._stackedOnPoints,w)&&_R(this._points,u)||(v?this._doUpdateAnimation(s,w,i,o,x,m,b):(x&&(u=TR(u,i,x,b),w&&(w=TR(w,i,x,b))),h.setShape({points:u}),f&&f.setShape({points:u,stackedOnPoints:w})))}else S&&d.updateData(s,{isIgnore:_,clipShape:R,disableAnimation:!0,getSymbolPoint:function(t){return[u[2*t],u[2*t+1]]}}),v&&this._initSymbolLabelAnimation(s,i,R),x&&(u=TR(u,i,x,b),w&&(w=TR(w,i,x,b))),h=this._newPolyline(u),y?f=this._newPolygon(u,w):f&&(g.remove(f),f=this._polygon=null),c||this._initOrUpdateEndLabel(t,i,Op(T)),g.setClipPath(PR(this,i,!0,t));var D=t.getModel("emphasis"),P=D.get("focus"),A=D.get("blurScope"),M=D.get("disabled");h.useStyle(X(a.getLineStyle(),{fill:"none",stroke:T,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,Gu(h,P,A,M);var I=xR(t.get("smooth")),L=t.get("smoothMonotone");if(h.setShape({smooth:I,smoothMonotone:L,connectNulls:b}),f){var N=s.getCalculationInfo("stackedOnSeries"),F=0;f.useStyle(X(l.getAreaStyle(),{fill:T,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),N&&(F=xR(N.get("smooth"))),f.setShape({smooth:I,stackedOnSmooth:F,smoothMonotone:L,connectNulls:b}),Bu(f,t,"areaStyle"),Wl(f).seriesIndex=t.seriesIndex,Gu(f,P,A,M)}var G=function(t){n._changePolyState(t)};s.eachItemGraphicEl((function(t){t&&(t.onHoverStateChange=G)})),this._polyline.onHoverStateChange=G,this._data=s,this._coordSys=i,this._stackedOnPoints=w,this._points=u,this._step=x,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=hs(i,n);if(this._changePolyState("emphasis"),!(r instanceof Array)&&null!=r&&r>=0){var s=i.getLayout("points"),a=i.getItemGraphicEl(r);if(!a){var l=s[2*r],u=s[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;(a=new nR(i,r)).x=l,a.y=u,a.setZ(c,p);var d=a.getSymbolPath().getTextContent();d&&(d.zlevel=c,d.z=p,d.z2=this._polyline.z2+1),a.__temp=!0,i.setItemGraphicEl(r,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else Xv.prototype.highlight.call(this,t,e,o,n)},e.prototype.downplay=function(t,e,o,n){var i=t.getData(),r=hs(i,n);if(this._changePolyState("normal"),null!=r&&r>=0){var s=i.getItemGraphicEl(r);s&&(s.__temp?(i.setItemGraphicEl(r,null),this.group.remove(s)):s.downplay())}else Xv.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 vR({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 mR({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(),s=r.inverse;"cartesian2d"===e.type?(n=r.isHorizontal(),i=!1):"polar"===e.type&&(n="angle"===r.dim,i=!0);var a=t.hostModel,l=a.get("animationDuration");ut(l)&&(l=l(null));var u=a.get("animationDelay")||0,c=ut(u)?u(null):u;t.eachItemGraphicEl((function(t,r){var a=t;if(a){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);s&&(m=1-m);var C=ut(u)?u(r):l*m+c,w=a.getSymbolPath(),S=w.getTextContent();a.attr({scaleX:0,scaleY:0}),a.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(DR(t)){var i=t.getData(),r=this._polyline,s=i.getLayout("points");if(!s)return r.removeTextContent(),void(this._endLabel=null);var a=this._endLabel;a||((a=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}(s);l>=0&&(rc(r,sc(t,"endLabel"),{inheritColor:o,labelFetcher:t,labelDataIndex:l,defaultText:function(t,e,o){return null!=o?tR(i,o):JE(i,t)},enableTextSetter:!0},function(t,e){var o=e.getBaseAxis(),n=o.isHorizontal(),i=o.inverse,r=n?i?"right":"left":"center",s=n?"middle":i?"top":"bottom";return{normal:{align:t.get("align")||r,verticalAlign:t.get("verticalAlign")||s}}}(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,s){var a=this._endLabel,l=this._polyline;if(a){t<1&&null==n.originalX&&(n.originalX=a.x,n.originalY=a.y);var u=o.getLayout("points"),c=o.hostModel,p=c.get("connectNulls"),d=r.get("precision"),h=r.get("distance")||0,f=s.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,s="x"===o?0:1,a=0,l=-1,u=0;u=e||n>=e&&i<=e){l=u;break}a=u,n=i}else n=i;return{range:[a,l],t:(e-n)/(i-n)}}(u,m,S),_=b.range,E=_[1]-_[0],R=void 0;if(E>=1){if(E>1&&!p){var x=OR(u,_[0]);a.attr({x:x[0]+C,y:x[1]+w}),i&&(R=c.getRawValue(_[0]))}else{(x=l.getPointOn(m,S))&&a.attr({x:x[0]+C,y:x[1]+w});var T=c.getRawValue(_[0]),O=c.getRawValue(_[1]);i&&(R=_s(o,d,T,O,b.t))}n.lastFrameIndex=_[0]}else{var D=1===t||n.lastFrameIndex>0?_[0]:0;x=OR(u,D),i&&(R=c.getRawValue(D)),a.attr({x:x[0]+C,y:x[1]+w})}if(i){var P=fc(a);"function"==typeof P.setLabelText&&P.setLabelText(R)}}},e.prototype._doUpdateAnimation=function(t,e,o,n,i,r,s){var a=this._polyline,l=this._polygon,u=t.hostModel,c=function(t,e,o,n,i,r,s,a){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=uR(i,e,s),y=t.getLayout("points")||[],m=e.getLayout("points")||[],C=0;C3e3||l&&RR(d,f)>3e3)return a.stopAnimation(),a.setShape({points:h}),void(l&&(l.stopAnimation(),l.setShape({points:h,stackedOnPoints:f})));a.shape.__points=c.current,a.shape.points=p;var g={shape:{points:h}};c.current!==p&&(g.shape.__points=c.next),a.stopAnimation(),qu(a,g,u),l&&(l.setShape({points:p,stackedOnPoints:d}),l.stopAnimation(),qu(l,{shape:{stackedOnPoints:f}},u),a.shape.points!==l.shape.points&&(l.shape.points=a.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 a=r.getBaseAxis(),l=r.getOtherAxis(a),u=a.getExtent(),c=o.getDevicePixelRatio(),p=Math.abs(u[1]-u[0])*(c||1),d=Math.round(s/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=LR[i]:ut(i)&&(h=i),h&&t.setData(n.downSample(n.mapDimension(l.dim),1/d,h,NR))}}}}}var GR=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.clampData(t),r=n.dataToPoint(i);if(o)tt(n.getAxes(),(function(t,o){if("category"===t.type&&null!=e){var n=t.getTicksCoords(),s=i[o],a="x1"===e[o]||"y1"===e[o];if(a&&(s+=1),n.length<2)return;if(2===n.length)return void(r[o]=t.toGlobalCoord(t.getExtent()[a?1:0]));for(var l=void 0,u=void 0,c=1,p=0;ps){u=(d+l)/2;break}1===p&&(c=h-n[0].tickValue)}null==u&&(l?l&&(u=n[n.length-1].coord):u=n[0].coord),r[o]=t.toGlobalCoord(u)}}));else{var s=this.getData(),a=s.getLayout("offset"),l=s.getLayout("size"),u=n.getBaseAxis().isHorizontal()?0:1;r[u]+=a+l/2}return r}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}(Gf);Gf.registerClass(GR);const kR=GR,VR=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(kR.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}(kR);var HR=function(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0},BR=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 HR},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),s=.5*(r-i),a=i+s,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}(Xv),qR={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,s=KR(e.x,t.x),a=YR(e.x+e.width,i),l=KR(e.y,t.y),u=YR(e.y+e.height,r),c=ai?a:s,e.y=p&&l>r?u:l,e.width=c?0:a-s,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=YR(e.r,t.r),r=KR(e.r0,t.r0);e.r=i,e.r0=r;var s=i-r<0;return o<0&&(n=e.r,e.r=e.r0,e.r0=n),s}},$R={cartesian2d:function(t,e,o,n,i,r,s,a,l){var u=new Rl({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,s,a,l){var u=!i&&l?WR:Tg,c=new u({shape:n,z2:1});c.name="item";var p,d,h=nx(i);if(c.calculateTextPosition=(p=h,d=({isRoundCap:u===WR}||{}).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,s=this.shape,a=s.cx,l=s.cy,u=s.r,c=s.r0,h=(u+c)/2,f=s.startAngle,g=s.endAngle,v=(f+g)/2,y=d?Math.abs(u-c)/2:0,m=Math.cos,C=Math.sin,w=a+u*m(f),S=l+u*C(f),b="left",_="top";switch(i){case"startArc":w=a+(c-r)*m(v),S=l+(c-r)*C(v),b="center",_="top";break;case"insideStartArc":w=a+(c+r)*m(v),S=l+(c+r)*C(v),b="center",_="bottom";break;case"startAngle":w=a+h*m(f)+jR(f,r+y,!1),S=l+h*C(f)+zR(f,r+y,!1),b="right",_="middle";break;case"insideStartAngle":w=a+h*m(f)+jR(f,-r+y,!1),S=l+h*C(f)+zR(f,-r+y,!1),b="left",_="middle";break;case"middle":w=a+h*m(v),S=l+h*C(v),b="center",_="middle";break;case"endArc":w=a+(u+r)*m(v),S=l+(u+r)*C(v),b="center",_="bottom";break;case"insideEndArc":w=a+(u-r)*m(v),S=l+(u-r)*C(v),b="center",_="top";break;case"endAngle":w=a+h*m(g)+jR(g,r+y,!0),S=l+h*C(g)+zR(g,r+y,!0),b="left",_="middle";break;case"insideEndAngle":w=a+h*m(g)+jR(g,-r+y,!0),S=l+h*C(g)+zR(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?n.r0:n.startAngle,g[f]=n[f],(a?qu:$u)(c,{shape:g},r)}return c}};function ZR(t,e,o,n,i,r,s,a){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}),a||(s?qu:$u)(o,{shape:l},e,i,null),(s?qu:$u)(o,{shape:u},e?t.baseAxis.model:null,i)}function QR(t,e){for(var o=0;o0?1:-1,s=n.height>0?1:-1;return{x:n.x+r*i/2,y:n.y+s*i/2,width:n.width-r*i,height:n.height-s*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 nx(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 ix(t,e,o,n,i,r,s,a){var l=e.getItemVisual(o,"style");if(a){if(!r.get("roundCap")){var u=t.shape;Y(u,UR(n.getModel("itemStyle"),u,!0)),t.setShape(u)}}else{var c=n.get(["itemStyle","borderRadius"])||0;t.setShape("r",c)}t.useStyle(l);var p=n.getShallow("cursor");p&&t.attr("cursor",p);var d=a?s?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":s?i.height>=0?"bottom":"top":i.width>=0?"right":"left",h=sc(n);rc(t,h,{labelFetcher:r,labelDataIndex:o,defaultText:JE(r.getData(),o),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:d});var f=t.getTextContent();if(a&&f){var g=n.get(["label","position"]);t.textConfig.inside="middle"===g||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,s=r.clockwise?r.startAngle:r.endAngle,a=r.clockwise?r.endAngle:r.startAngle,l=(s+a)/2,u=o(e);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":i=l;break;case"startAngle":case"insideStartAngle":i=s;break;case"endAngle":case"insideEndAngle":i=a;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"===g?d:g,nx(s),n.get(["label","rotate"]))}gc(f,h,r.getRawValue(o),(function(t){return tR(e,t)}));var v=n.getModel(["emphasis"]);Gu(t,v.get("focus"),v.get("blurScope"),v.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 rx=function(){},sx=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 rx},e.prototype.buildPath=function(t,e){for(var o=e.points,n=this.baseDimIdx,i=1-this.baseDimIdx,r=[],s=[],a=this.barWidth,l=0;l=a[0]&&e<=a[0]+l[0]&&o>=a[1]&&o<=a[1]+l[1])return s[c]}return-1}(this,t.offsetX,t.offsetY);Wl(this).dataIndex=e>=0?e:null}),30,!1);function ux(t,e,o){if(bR(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 cx=XR;var px=2*Math.PI,dx=Math.PI/180;function hx(t,e){return Np(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function fx(t,e){var o=hx(t,e),n=t.get("center"),i=t.get("radius");lt(i)||(i=[0,i]);var r,s,a=Dr(o.width,e.getWidth()),l=Dr(o.height,e.getHeight()),u=Math.min(a,l),c=Dr(i[0],u/2),p=Dr(i[1],u/2),d=t.coordinateSystem;if(d){var h=d.dataToPoint(n);r=h[0]||0,s=h[1]||0}else lt(n)||(n=[n,n]),r=Dr(n[0],a)+o.x,s=Dr(n[1],l)+o.y;return{cx:r,cy:s,r0:c,r:p}}function gx(t,e,o){e.eachSeriesByType(t,(function(t){var e=t.getData(),n=e.mapDimension("value"),i=hx(t,o),r=fx(t,o),s=r.cx,a=r.cy,l=r.r,u=r.r0,c=-t.get("startAngle")*dx,p=t.get("minAngle")*dx,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=px,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:s,cy:a,r0:u,r:v?NaN:l});else{(n="area"!==v?0===h&&y?f:t*f:px/d)o?s: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 Sx(t){return"center"===t.position}var bx=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,s=t.getItemModel(e),a=s.getModel("emphasis"),l=t.getItemLayout(e),u=Y(UR(s.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?($u(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,$u(i,{shape:{r:l.r}},r,e)):null!=o?(i.setShape({startAngle:o,endAngle:o}),$u(i,{shape:{startAngle:l.startAngle,endAngle:l.endAngle}},r,e)):(i.shape.endAngle=l.startAngle,qu(i,{shape:{endAngle:l.endAngle}},r,e))}else ec(i),qu(i,{shape:u},r,e);i.useStyle(t.getItemVisual(e,"style")),Bu(i,s);var p=(l.startAngle+l.endAngle)/2,d=r.get("selectedOffset"),h=Math.cos(p)*d,f=Math.sin(p)*d,g=s.getShallow("cursor");g&&i.attr("cursor",g),this._updateLabel(r,t,e),i.ensureState("emphasis").shape=Y({r:l.r+(a.get("scale")&&a.get("scaleSize")||0)},UR(a.getModel("itemStyle"),l)),Y(i.ensureState("select"),{x:h,y:f,shape:UR(s.getModel(["select","itemStyle"]),l)}),Y(i.ensureState("blur"),{shape:UR(s.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}),Gu(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))}},e.prototype._updateLabel=function(t,e,o){var n=this,i=e.getItemModel(o),r=i.getModel("labelLine"),s=e.getItemVisual(o,"style"),a=s&&s.fill,l=s&&s.opacity;rc(n,sc(i),{labelFetcher:e.hostModel,labelDataIndex:o,inheritColor:a,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 Gg,this.setTextGuideLine(p)),f_(this,g_(i),{stroke:a,opacity:_t(r.get(["lineStyle","opacity"]),l,1)})}},e}(Tg);const _x=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(),s=this._data,a=this.group;if(!s&&r.count()>0){for(var l=r.getItemLayout(0),u=1;isNaN(l&&l.startAngle)&&u0?"right":"left":P>0?"left":"right"}var k=Math.PI,V=0,H=v.get("rotate");if(dt(H))V=H*(k/180);else if("center"===y)V=0;else if("radial"===H||!0===H)V=P<0?-D+k:-D;else if("tangential"===H&&"outside"!==y&&"outer"!==y){var B=Math.atan2(P,A);B<0&&(B=2*k+B),A>0&&(B=k+B),V=B-k}if(r=!!V,d.x=R,d.y=x,d.rotation=V,d.setStyle({verticalAlign:"middle"}),M){d.setStyle({align:O});var W=d.states.select;W&&(W.x+=d.x,W.y+=d.y)}else{var j=d.getBoundingRect().clone();j.applyTransform(d.getComputedTransform());var z=(d.style.margin||0)+2.1;j.y-=z/2,j.height+=z,i.push({label:d,labelLine:f,position:y,len:_,len2:E,minTurnAngle:b.get("minTurnAngle"),maxSurfaceAngle:b.get("maxSurfaceAngle"),surfaceNormal:new $e(P,A),linePoints:T,textAlign:O,labelDistance:m,labelAlignTo:C,edgeDistance:w,bleedMargin:S,rect:j,unconstrainedWidth:j.width,labelStyleWidth:d.style.width})}a.setTextConfig({inside:M})}})),!r&&t.get("avoidLabelOverlap")&&function(t,e,o,n,i,r,s,a){for(var l=[],u=[],c=Number.MAX_VALUE,p=-Number.MAX_VALUE,d=0;d=o.r0}},e.type="pie",e}(Xv);function Ex(t,e,o){e=lt(e)&&{coordDimensions:e}||Y({encodeDefine:t.getEncode()},e);var n=t.getSource(),i=Uw(n,e).dimensions,r=new jw(i,t);return r.initData(n,o),r}var Rx=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 xx=Rx;var Tx=fs();const Ox=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 xx(st(this.getData,this),st(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.mergeOption=function(){t.prototype.mergeOption.apply(this,arguments)},e.prototype.getInitialData=function(){return Ex(this,{coordDimensions:["value"],encodeDefaulter:at(rd,this)})},e.prototype.getDataParams=function(e){var o=this.getData(),n=Tx(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 s=t.prototype.getDataParams.call(this,e);return s.percent=i[e]||0,s.$vars.push("percent"),s},e.prototype._defaultLabelLine=function(t){ns(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}(Gf),Dx=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}(Gf);var Px=function(){},Ax=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 Px},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,s=r.shape,a=t.getContext?t.getContext():t,l=a&&i[0]<4,u=this.softClipShape;if(l)this._ctx=a;else{for(this._ctx=null,o=this._off;o=0;a--){var l=2*a,u=n[l]-r/2,c=n[l+1]-s/2;if(t>=u&&e>=c&&t<=u+r&&e<=c+s)return 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,o=e.points,n=e.size,i=n[0],r=n[1],s=1/0,a=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 Ix=Mx,Lx=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=IR("").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 Ix:new lR,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}(Xv),Nx=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}(jp);var Fx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",ms).models[0]},e.type="cartesian2dAxis",e}(jp);Q(Fx,cb);var Gx={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)"]}}},kx=U({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},Gx),Vx=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}}},Gx);const Hx={category:kx,value:Vx,time:U({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},Vx),log:X({logBase:10},Vx)};var Bx={value:1,category:1,time:1,log:1};function Wx(t,e,o,n){tt(Bx,(function(i,r){var s=U(U({},Hx[r],!0),n,!0),a=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=Gp(this),n=o?Vp(t):{};U(t,e.getTheme().get(r+"Axis")),U(t,this.getDefaultOption()),t.type=jx(t),o&&kp(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=s,o}(o);t.registerComponentModel(a)})),t.registerSubTypeDefaulter(e+"Axis",jx)}function jx(t){return t.type||(t.data?"category":"value")}var zx=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}(),Ux=["x","y"];function Kx(t){return"interval"===t.type||"time"===t.type}var Yx=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="cartesian2d",e.dimensions=Ux,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(Kx(t)&&Kx(e)){var o=t.getExtent(),n=e.getExtent(),i=this.dataToPoint([o[0],n[0]]),r=this.dataToPoint([o[1],n[1]]),s=o[1]-o[0],a=n[1]-n[0];if(s&&a){var l=(r[0]-i[0])/s,u=(r[1]-i[1])/a,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 so(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"),s=this.getAxis("y");return o[0]=r.toGlobalCoord(r.dataToCoord(n,e)),o[1]=s.toGlobalCoord(s.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(),s=o.parse(t[0]),a=n.parse(t[1]);return(e=e||[])[0]=Math.min(Math.max(Math.min(i[0],i[1]),s),Math.max(i[0],i[1])),e[1]=Math.min(Math.max(Math.min(r[0],r[1]),a),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 so(o,n,i,r)},e}(zx);const Xx=Yx;var qx=function(t){function e(e,o,n,i,r){var s=t.call(this,e,o,n)||this;return s.index=0,s.type=i||"value",s.position=r||"bottom",s}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 $x=qx;function Zx(t,e,o){o=o||{};var n=t.coordinateSystem,i=e.axis,r={},s=i.getAxesOnZeroOf()[0],a=i.position,l=s?"onZero":a,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(s){var g=s.toGlobalCoord(s.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}[a],r.labelOffset=s?f[d[a]]-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 Qx(t){return"cartesian2d"===t.get("coordinateSystem")}function Jx(t){var e={xAxisModel:null,yAxisModel:null};return tt(e,(function(o,n){var i=n.replace(/Model$/,""),r=t.getReferringComponents(i,ms).models[0];e[n]=r})),e}var tT=Math.log;function eT(t,e,o){var n=vS.prototype,i=n.getTicks.call(o),r=n.getTicks.call(o,!0),s=i.length-1,a=n.getInterval.call(o),l=eb(t,e),u=l.extent,c=l.fixMin,p=l.fixMax;if("log"===t.type){var d=tT(t.base);u=[tT(u[0])/d,tT(u[1])/d]}t.setExtent(u[0],u[1]),t.calcNiceExtent({splitNumber:s,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)/s;else if(c)for(v=u[0]+f*s;vu[0]&&isFinite(g)&&isFinite(u[0]);)f=sS(f),g=u[1]-f*s;else{t.getTicks().length-1>s&&(f=sS(f));var y=f*s;(g=Pr((v=Math.ceil(u[1]/f)*f)-y))<0&&u[0]>=0?(g=0,v=Pr(y)):v>0&&u[1]<=0&&(v=0,g=-Pr(y))}var m=(i[0].value-r[0].value)/a,C=(i[s].value-r[s].value)/a;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 oT=function(){function t(t,e,o){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=Ux,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 s=t[+o[r]],a=s.model,l=s.scale;rS(l)&&a.get("alignTicks")&&null==a.get("interval")?i.push(s):(ob(l,a),rS(l)&&(e=s))}i.length&&(e||ob((e=i.pop()).scale,e.model),tt(i,(function(t){eT(t.scale,t.model,e.scale)})))}}this._updateScale(t,this.model),n(o.x),n(o.y);var i={};tt(o.x,(function(t){iT(o,"y",t,i)})),tt(o.y,(function(t){iT(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 s=this._axesList;function a(){tt(s,(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)}))}a(),i&&(tt(s,(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 s,a=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 sT=oT;var aT=Math.PI,lT=function(){function t(t,e){this.group=new vr,this.opt=e,this.axisModel=t,X(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!!uT[t]},t.prototype.add=function(t){uT[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-aT)?(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}(),uT={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(),s=n.transform,a=[r[0],0],l=[r[1],0],u=a[0]>l[0];s&&(ue(a,a,s),ue(l,l,s));var c=Y({lineCap:"round"},e.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new Bg({shape:{x1:a[0],y1:a[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=sm(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((a[0]-l[0])*(a[0]-l[0])+(a[1]-l[1])*(a[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,s=u?l:a;i.attr({rotation:e.rotate,x:s[0]+r*Math.cos(t.rotation),y:s[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"),s=r.get("show");if("auto"===s&&n.handleAutoShown&&(s=n.handleAutoShown("axisTick")),s&&!i.scale.isBlank()){for(var a=r.getModel("lineStyle"),l=n.tickDirection*r.get("length"),u=hT(i.getTicksCoords(),e.transform,l,X(a.getLineStyle(),{stroke:o.get(["axisLine","lineStyle","color"])}),"ticks"),c=0;cp[1]?-1:1,h=["start"===a?p[0]-d*c:"end"===a?p[1]+d*c:(p[0]+p[1])/2,dT(a)?t.labelOffset+l*c:0],f=e.get("nameRotate");null!=f&&(f=f*aT/180),dT(a)?r=lT.innerTextLayout(t.rotation,null!=f?f:t.rotation,l):(r=function(t,e,o,n){var i,r,s=Vr(o-t),a=n[0]>n[1],l="start"===e&&!a||"start"!==e&&a;return Hr(s-aT/2)?(r=l?"bottom":"top",i="center"):Hr(s-1.5*aT)?(r=l?"top":"bottom",i="center"):(r="middle",i=s<1.5*aT&&s>aT/2?l?"left":"right":l?"right":"left"),{rotation:s,textAlign:i,textVerticalAlign:r}}(t.rotation,a,f||0,p),null!=(s=t.axisNameAvailableWidth)&&(s=Math.abs(s/Math.sin(r.rotation)),!isFinite(s)&&(s=null)));var g=u.getFont(),v=e.get("nameTruncate",!0)||{},y=v.ellipsis,m=St(t.nameTruncateMaxWidth,v.maxWidth,s),C=new Bl({x:h[0],y:h[1],rotation:r.rotation,silent:lT.isLabelSilent(e),style:ac(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(Gv({el:C,componentModel:e,itemName:i}),C.__fullText=i,C.anid="name",e.get("triggerEvent")){var w=lT.makeAxisEventDataBase(e);w.targetType="axisName",w.name=i,Wl(C).eventData=w}n.add(C),C.updateTransform(),o.add(C),C.decomposeTransform()}}};function cT(t){t&&(t.ignore=!0)}function pT(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(je([],i,t.getLocalTransform())),n.applyTransform(je([],i,e.getLocalTransform())),o.intersect(n)}}function dT(t){return"middle"===t||"center"===t}function hT(t,e,o,n,i){for(var r=[],s=[],a=[],l=0;l=0||t===e}function vT(t){var e=(t.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return e&&e.axesInfo[mT(t)]}function yT(t){return!!t.get(["handle","show"])}function mT(t){return t.type+"||"+t.id}var CT={},wT=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=vT(t);if(e){var o=e.axisPointerModel,n=e.axis.scale,i=o.option,r=o.get("status"),s=o.get("value");null!=s&&(s=n.parse(s));var a=yT(o);null==r&&(i.status=a?"show":"hide");var l=n.getExtent().slice();l[0]>l[1]&&l.reverse(),(null==s||s>l[1])&&(s=l[1]),s0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0);var d=s;null!=p.color&&(d=X({color:p.color},s));var h=U(z(p),{boundaryGap:t,splitNumber:e,scale:o,axisLine:n,axisTick:i,axisLabel:r,name:p.text,showName:a,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"}},WT.axisLine),axisLabel:jT(WT.axisLabel,!1),axisTick:jT(WT.axisTick,!1),splitLine:jT(WT.splitLine,!0),splitArea:jT(WT.splitArea,!0),indicator:[]},e}(jp);const UT=zT;var KT=["axisLine","axisTickLabel","axisName"],YT=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 fT(t.model,{axisName:o,position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})})),(function(t){tt(KT,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"),s=i.getModel("lineStyle"),a=r.getModel("areaStyle"),l=i.get("show"),u=r.get("show"),c=s.get("color"),p=a.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;iO(this,"zoom","zoomOnMouseWheel",t,{scale:n>0?a:1/a,originX:r,originY:s,isAvailableBehavior:null})}if(o){var l=Math.abs(n);iO(this,"scrollMove","moveOnMouseWheel",t,{scrollDelta:(n>0?1:-1)*(l>3?.4:l>1?.15:.05),originX:r,originY:s,isAvailableBehavior:null})}}},e.prototype._pinchHandler=function(t){eO(this._zr,"globalPan")||iO(this,"zoom",null,t,{scale:t.pinchScale>1?1.1:1/1.1,originX:t.pinchX,originY:t.pinchY,isAvailableBehavior:null})},e}(ve);function iO(t,e,o,n,i){t.pointerChecker&&t.pointerChecker(n,i.originX,i.originY)&&(Ne(n.event),rO(t,e,o,n,i))}function rO(t,e,o,n,i){i.isAvailableBehavior=st(sO,null,o,n),t.trigger(e,i)}function sO(t,e,o){var n=o[t];return!t||n&&(!ct(n)||e.event[n+"Key"])}const aO=nO;function lO(t,e,o){var n=t.target;n.x+=e,n.y+=o,n.dirty()}function uO(t,e,o,n){var i=t.target,r=t.zoomLimit,s=t.zoom=t.zoom||1;if(s*=e,r){var a=r.min||0,l=r.max||1/0;s=Math.max(Math.min(l,s),a)}var u=s/t.zoom;t.zoom=s,i.x-=(o-i.x)*(u-1),i.y-=(n-i.y)*(u-1),i.scaleX*=u,i.scaleY*=u,i.dirty()}var cO,pO={axisPointer:1,tooltip:1,brush:1};function dO(t,e,o){var n=e.getComponentByElement(t.topTarget),i=n&&n.coordinateSystem;return n&&n!==o&&!pO.hasOwnProperty(n.mainType)&&i&&i.model!==o}function hO(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 fO={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"},gO=rt(fO),vO={"alignment-baseline":"textBaseline","stop-color":"stopColor"},yO=rt(vO),mO=function(){function t(){this._defs={},this._root=null}return t.prototype.parse=function(t,e){e=e||{};var o=hO(t);this._defsUsePending=[];var n=new vr;this._root=n;var i=[],r=o.getAttribute("viewBox")||"",s=parseFloat(o.getAttribute("width")||e.width),a=parseFloat(o.getAttribute("height")||e.height);isNaN(s)&&(s=null),isNaN(a)&&(a=null),EO(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!=s&&null!=a&&(u=IO(l,{x:0,y:0,width:s,height:a}),!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==s||null==a||n.setClipPath(new Rl({shape:{x:0,y:0,width:s,height:a}})),{root:n,width:s,height:a,viewBoxRect:l,viewBoxTransform:u,named:i}},t.prototype._parseNode=function(t,e,o,n,i,r){var s,a=t.nodeName.toLowerCase(),l=n;if("defs"===a&&(i=!0),"text"===a&&(r=!0),"defs"===a||"switch"===a)s=e;else{if(!i){var u=cO[a];if(u&&kt(cO,a)){s=u.call(this,t,e);var c=t.getAttribute("name");if(c){var p={name:c,namedFrom:null,svgNodeTagLower:a,el:s};o.push(p),"g"===a&&(l=p)}else n&&o.push({name:n.name,namedFrom:n,svgNodeTagLower:a,el:s});e.add(s)}}var d=CO[a];if(d&&kt(CO,a)){var h=d.call(this,t),f=t.getAttribute("id");f&&(this._defs[f]=h)}}if(s&&s.isGroup)for(var g=t.firstChild;g;)1===g.nodeType?this._parseNode(g,s,o,l,i,r):3===g.nodeType&&r&&this._parseText(g,s),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});bO(e,o),EO(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 s=r.textAlign,a=s;s&&("middle"===s&&(a="center"),t.style.textAlign=a)}}(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 s=o.getBoundingRect();return this._textX+=s.width,e.add(o),o},t.internalField=void(cO={g:function(t,e){var o=new vr;return bO(e,o),EO(t,o,this._defsUsePending,!1,!1),o},rect:function(t,e){var o=new Rl;return bO(e,o),EO(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 bO(e,o),EO(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 bO(e,o),EO(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 bO(e,o),EO(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=_O(n));var i=new Lg({shape:{points:o||[]},silent:!0});return bO(e,i),EO(t,i,this._defsUsePending,!1,!1),i},polyline:function(t,e){var o,n=t.getAttribute("points");n&&(o=_O(n));var i=new Gg({shape:{points:o||[]},silent:!0});return bO(e,i),EO(t,i,this._defsUsePending,!1,!1),i},image:function(t,e){var o=new yl;return bO(e,o),EO(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 s=new vr;return bO(e,s),EO(t,s,this._defsUsePending,!1,!0),s},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",s=new vr;return bO(e,s),EO(t,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(r),s},path:function(t,e){var o=rg(t.getAttribute("d")||"");return bO(e,o),EO(t,o,this._defsUsePending,!1,!1),o.silent=!0,o}}),t}(),CO={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 wO(t,r),SO(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 wO(t,i),SO(t,i),i}};function wO(t,e){"userSpaceOnUse"===t.getAttribute("gradientUnits")&&(e.global=!0)}function SO(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={};MO(o,r,r);var s=r.stopColor||o.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:s})}o=o.nextSibling}}function bO(t,e){t&&t.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),X(e.__inheritedStyle,t.__inheritedStyle))}function _O(t){for(var e=OO(t),o=[],n=0;n0;r-=2){var s=n[r],a=n[r-1],l=OO(s);switch(i=i||[1,0,0,1,0,0],a){case"translate":ze(i,i,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Ke(i,i,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Ue(i,i,-parseFloat(l[0])*PO);break;case"skewX":je(i,[1,0,Math.tan(parseFloat(l[0])*PO),1,0,0],i);break;case"skewY":je(i,[1,Math.tan(parseFloat(l[0])*PO),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),MO(t,s,a),n||function(t,e,o){for(var n=0;n0,f={api:o,geo:a,mapOrGeoModel:t,data:s,isVisualEncodedByVisualMap:h,isGeo:r,transformInfoRaw:p};"geoJSON"===a.resourceType?this._buildGeoJSON(f):"geoSVG"===a.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,s=t.data,a=t.geo.projection,l=a&&a.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&&a&&a.project,n=0;n=0)&&(d=i);var h=s?{normal:{align:"center",verticalAlign:"middle"}}:null;rc(e,sc(n),{labelFetcher:d,labelDataIndex:p,defaultText:o},h);var f=e.getTextContent();if(f&&(ZO(f).ignore=f.ignore,e.textConfig&&s)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(s[0]-g.x)/g.width*100+"%",(s[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function nD(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 iD(t,e,o,n,i){t.data||Gv({el:e,componentModel:i,itemName:o,itemTooltipOption:n.get("tooltip")})}function rD(t,e,o,n,i){e.highDownSilentOnTouch=!!i.get("selectedMode");var r=n.getModel("emphasis"),s=r.get("focus");return Gu(e,s,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),s}function sD(t,e,o){var n,i=[];function r(){n=[]}function s(){n.length&&(i.push(n),n=[])}var a=e({polygonStart:r,polygonEnd:s,lineStart:r,lineEnd:s,point:function(t,e){isFinite(t)&&isFinite(e)&&n.push([t,e])},sphere:function(){}});return!o&&a.polygonStart(),tt(t,(function(t){a.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}(Gf);const pD=cD;function dD(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),s=0,a=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 ED=function(){function t(){this.dimensions=CD}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"),s=new bD(r+i,r,Y({nameMap:t.get("nameMap")},n(t)));s.zoomLimit=t.get("scaleLimit"),o.push(s),t.coordinateSystem=s,s.model=t,s.resize=_D,s.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")})),s=new bD(i,i,Y({nameMap:K(r)},n(t[0])));s.zoomLimit=St.apply(null,et(t,(function(t){return t.get("scaleLimit")}))),o.push(s),s.resize=_D,s.resize(t[0],e),tt(t,(function(t){t.coordinateSystem=s,function(t,e){tt(e.get("geoCoord"),(function(e,o){t.addGeoCoord(o,e)}))}(s,t)}))})),o},t.prototype.getFilledRegions=function(t,e,o,n){for(var i=(t||[]).slice(),r=Lt(),s=0;s=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,s=r.parentNode.children[0],a=e,l=i.hierNode.modifier,u=r.hierNode.modifier,c=s.hierNode.modifier,p=a.hierNode.modifier;a=kD(a),r=VD(r),a&&r;){i=kD(i),s=VD(s),i.hierNode.ancestor=t;var d=a.hierNode.prelim+p-r.hierNode.prelim-u+n(a,r);d>0&&(BD(HD(a,t,o),t,d),u+=d,l+=d),p+=a.hierNode.modifier,u+=r.hierNode.modifier,l+=i.hierNode.modifier,c+=s.hierNode.modifier}a&&!kD(i)&&(i.hierNode.thread=a,i.hierNode.modifier+=p-l),r&&!VD(s)&&(s.hierNode.thread=r,s.hierNode.modifier+=u-c,o=t)}return o}(t,i,t.parentNode.hierNode.defaultAncestor||n[0],e)}function ND(t){var e=t.hierNode.prelim+t.parentNode.hierNode.modifier;t.setLayout({x:e},!0),t.hierNode.modifier+=t.parentNode.hierNode.modifier}function FD(t){return arguments.length?t:WD}function GD(t,e){return t-=Math.PI/2,{x:e*Math.cos(t),y:e*Math.sin(t)}}function kD(t){var e=t.children;return e.length&&t.isExpand?e[e.length-1]:t.hierNode.thread}function VD(t){var e=t.children;return e.length&&t.isExpand?e[0]:t.hierNode.thread}function HD(t,e,o){return t.hierNode.ancestor.parentNode===e.parentNode?t.hierNode.ancestor:o}function BD(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 WD(t,e){return t.parentNode===e.parentNode?1:2}var jD=function(){this.parentPoint=[],this.childPoints=[]},zD=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 jD},e.prototype.buildPath=function(t,e){var o=e.childPoints,n=o.length,i=e.parentPoint,r=o[0],s=o[n-1];if(1===n)return t.moveTo(i[0],i[1]),void t.lineTo(r[0],r[1]);var a=e.orient,l="TB"===a||"BT"===a?0:1,u=1-l,c=Dr(e.forkPosition,1),p=[];p[l]=i[l],p[u]=i[u]+(s[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]=s[l],t.lineTo(p[0],p[1]),t.lineTo(s[0],s[1]);for(var d=1;dm.x)||(w-=Math.PI);var _=S?"left":"right",E=a.getModel("label"),R=E.get("rotate"),x=R*(Math.PI/180),T=v.getTextContent();T&&(v.setTextConfig({position:E.get("position")||_,rotation:null==R?-w:x,origin:"center"}),T.setStyle("verticalAlign","middle"))}var O=a.get(["emphasis","focus"]),D="relative"===O?Nt(s.getAncestorsIndices(),s.getDescendantIndices()):"ancestor"===O?s.getAncestorsIndices():"descendant"===O?s.getDescendantIndices():null;D&&(Wl(o).focus=D),function(t,e,o,n,i,r,s,a){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 Kg({shape:ZD(c,p,d,i,i)})),qu(g,{shape:ZD(c,p,d,r,s)},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 dP(t){for(var e=[];t;)(t=t.parentNode)&&e.push(t);return e.reverse()}function hP(t,e){return $(dP(t),e)>=0}function fP(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 gP=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=cP.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 s=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<=s})),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),s=r.getValue(),a=r.name;r&&r!==i;)a=r.parentNode.name+"."+a,r=r.parentNode;return hf("nameValue",{name:a,value:s,noValue:isNaN(s)||null==s})},e.prototype.getDataParams=function(e){var o=t.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(e);return o.treeAncestors=fP(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}(Gf);const vP=gP;function yP(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 mP(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,s=null;"radial"===n?(i=2*Math.PI,r=Math.min(o.height,o.width)/2,s=FD((function(t,e){return(t.parentNode===e.parentNode?1:2)/t.depth}))):(i=o.width,r=o.height,s=FD());var a=t.getData().tree.root,l=a.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 s=n[r];s.hierNode={defaultAncestor:null,ancestor:s,prelim:0,modifier:0,change:0,shift:0,i:r,thread:null},i.push(s)}}(a),function(t,e,o){for(var n,i=[t],r=[];n=i.pop();)if(r.push(n),n.isExpand){var s=n.children;if(s.length)for(var a=0;ac.getLayout().x&&(c=t),t.depth>p.depth&&(p=t)}));var d=u===c?1:s(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),yP(l,(function(t){v=(t.getLayout().x+h)*f,y=(t.depth-1)*g;var e=GD(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),yP(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),yP(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 CP(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 wP=["treemapZoomToNode","treemapRender","treemapMove"];function SP(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 bP(t){var e=0;tt(t.children,(function(t){bP(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 _P=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};bP(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=os(e.get("color")),r=os(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 s=t[0]||(t[0]={});return o||(s.color=i.slice()),!n&&r&&(s.decal=r.slice()),t}}(n,e);var s=et(n||[],(function(t){return new Ac(t,r,e)}),this),a=cP.createTree(o,this,(function(t){t.wrapMethod("getItemModel",(function(t,e){var o=a.getNodeByDataIndex(e),n=o?s[o.depth]:null;return t.parentModel=n||r,t}))}));return a.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=fP(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(){SP(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}(Gf);var EP=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 s=i.getModel("itemStyle"),a=i.getModel("emphasis"),l=s.getModel("textStyle"),u=a.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,s,a,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=cs(n.getModel().get("name"),""),r=o.getTextRect(i),s=Math.max(r.width+16,e.emptyItemWidth);e.totalWidth+=s+8,e.renderList.push({node:n,text:i,width:s})}},t.prototype._renderContent=function(t,e,o,n,i,r,s){for(var a,l,u,c,p,d,h,f,g,v=0,y=e.emptyItemWidth,m=t.get(["breadcrumb","height"]),C=(a=e.pos,c=(l=e.box).width,p=l.height,d=Dr(a.left,c),h=Dr(a.top,p),f=Dr(a.right,c),g=Dr(a.bottom,p),(isNaN(d)||isNaN(parseFloat(a.left)))&&(d=0),(isNaN(f)||isNaN(parseFloat(a.right)))&&(f=c),(isNaN(h)||isNaN(parseFloat(a.top)))&&(h=0),(isNaN(g)||isNaN(parseFloat(a.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 E=S[_],R=E.node,x=E.width,T=E.text;w>C.width&&(w-=x-y,x=y,T=null);var O=new Lg({shape:{points:RP(v,0,x,m,_===S.length-1,0===_)},style:X(o.getItemStyle(),{lineJoin:"bevel"}),textContent:new Bl({style:ac(i,{text:T})}),textConfig:{position:"inside"},z2:1e4*Jl,onclick:at(s,R)});O.disableLabelAnimation=!0,O.getTextContent().ensureState("emphasis").style=ac(r,{text:T}),O.ensureState("emphasis").style=b,Gu(O,n.get("focus"),n.get("blurScope"),n.get("disabled")),this.group.add(O),xP(O,t,R),v+=x+8}},t.prototype.remove=function(){this.group.removeAll()},t}();function RP(t,e,o,n,i,r){var s=[[i?t:t-5,e],[t+o,e],[t+o,e+n],[i?t:t-5,e+n]];return!r&&s.splice(2,0,[t+o+5,e+n/2]),!i&&s.push([t,e+n/2]),s}function xP(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&&fP(o,e)}}const TP=EP;var OP=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 so(i.x,i.y,i.width,i.height),s=this.seriesModel.layoutInfo,a=[1,0,0,1,0,0];ze(a,a,[-(e-=s.x),-(o-=s.y)]),Ke(a,a,[t.scale,t.scale]),ze(a,a,[e,o]),r.applyTransform(a),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),s=r.get("link",!0),a=r.get("target",!0)||"blank";s&&Dp(s,a)}}}}}),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 TP(this.group))).render(t,e,o.node,(function(e){"animating"!==n._state&&(hP(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),s=i.shape;if(!(s.x<=r[0]&&r[0]<=s.x+s.width&&s.y<=r[1]&&r[1]<=s.y+s.height))return!1;o={node:n,offsetX:r[0],offsetY:r[1]}}}),this),o},e.type="treemap",e}(Xv);const HP=VP;var BP=tt,WP=ht,jP=-1,zP=function(){function t(e){var o=e.mappingMethod,n=e.type,i=this.option=z(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?(UP(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(BP(e,(function(t,e){o[t]=e})),!lt(n)){var i=[];ht(n)?BP(n,(function(t,e){var n=o[e];i[null!=n?n:jP]=t})):i[jP]=n,n=JP(t,i)}for(var r=e.length-1;r>=0;r--)null==n[r]&&(delete o[e[r]],e.pop())}(i):UP(i,!0):(xt("linear"!==o||i.dataExtent),UP(i))}return t.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},t.prototype.getNormalizer=function(){return st(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 s=o.call(n,t,e);i?r=s:r[e]=s})),r},t.retrieveVisuals=function(e){var o,n={};return e&&BP(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(!WP(t))return[];var e=[];BP(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,s=e.length;ru[1]&&(u[1]=l);var c=e.get("colorMappingBy"),p={type:s.name,dataExtent:u,visual:s.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 s=Y({},e);if(i){var a=i.type,l="color"===a&&nA(i).drColorMappingBy,u="index"===l?n:"id"===l?r.mapIdToIndex(o.getId()):o.getValue(t.get("visualDimension"));s[a]=i.mapValueToVisual(u)}return s}(i,u,t,e,f,n);rA(t,r,o,n)}}))}else a=sA(u),c.fill=a}}function sA(t){var e=aA(t,"color");if(e){var o=aA(t,"colorAlpha"),n=aA(t,"colorSaturation");return n&&(e=In(e,null,null,n)),o&&(e=Ln(e,o)),e}}function aA(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(),s=t.option,a=Np(t.getBoxLayoutParams(),{width:o.getWidth(),height:o.getHeight()}),l=s.size||[],u=Dr(pA(a.width,l[0]),i),c=Dr(pA(a.height,l[1]),r),p=n&&n.type,d=pP(n,["treemapZoomToNode","treemapRootToNode"],t),h="treemapRender"===p||"treemapMove"===p?n.rootRect:null,f=t.getViewRoot(),g=dP(f);if("treemapMove"!==p){var v="treemapZoomToNode"===p?function(t,e,o,n,i){var r,s=(e||{}).node,a=[n,i];if(!s||s===o)return a;for(var l=n*i,u=l*t.option.zoomToNodeRatio;r=s.parentNode;){for(var c=0,p=r.children,d=0,h=p.length;dkr&&(u=kr),s=r}us[1]&&(s[1]=e)}))):s=[NaN,NaN],{sum:n,dataExtent:s}}(e,s,a);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"),s=i.length,a=s,l=s-1;l>=0;l--){var u=i["asc"===n?s-l-1:l].getValue();u/o*en&&(n=s));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,s=1-r,a=["x","y"],l=["width","height"],u=o[a[r]],c=e?t.area/e:0;(i||c>o[l[s]])&&(c=o[l[s]]);for(var p=0,d=t.length;pn&&(n=e);var r=n%2?n+2:n+3;i=[];for(var s=0;s0&&(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=s.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 lM=aM;function uM(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:sc(e)}}function cM(t){return isNaN(t[0])||isNaN(t[1])}function pM(t){return t&&!cM(t[0])&&!cM(t[1])}const dM=function(){function t(t){this.group=new vr,this._LineCtor=t||lM}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=uM(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=uM(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 wM(t,e){var o=[],n=on,i=[[],[],[]],r=[[],[]],s=[];e/=2,t.eachEdge((function(t,a){var l=t.getLayout(),u=t.getVisual("fromSymbol"),c=t.getVisual("toSymbol");l.__original||(l.__original=[jt(l[0]),jt(l[1])],l[2]&&l.__original.push(jt(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=CM(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=CM(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(s,r[1],r[0]),oe(s,s),u&&"none"!==u&&(d=HA(t.node1),Kt(r[0],r[0],s,d*e)),c&&"none"!==c&&(d=HA(t.node2),Kt(r[1],r[1],s,-d*e)),Wt(l[0],r[0]),Wt(l[1],r[1])}))}function SM(t){return"view"===t.type}var bM=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 lR,n=new dM,i=this.group;this._controller=new aO(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,s=this._lineDraw,a=this.group;if(SM(i)){var l={x:i.x,y:i.y,scaleX:i.scaleX,scaleY:i.scaleY};this._firstRender?a.attr(l):qu(a,l,t)}wM(t.getGraph(),VA(t));var u=t.getData();r.updateData(u);var c=t.getEdgeData();s.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 s=r.get("draggable");s&&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),jA(t,"symbolSize",e,[r.offsetX,r.offsetY]),n.updateLayout(t);break;default:u.setItemLayout(o,[i.x,i.y]),GA(t.getGraph(),t),n.updateLayout(t)}})).on("dragend",(function(){p&&p.setUnfixed(o)})),i.setDraggable(s,!!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,s=this.group;i.setPointerChecker((function(e,n,i){var r=s.getBoundingRect();return r.applyTransform(s.transform),r.contain(n,i)&&!dO(e,o,t)})),SM(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){lO(r,e.dx,e.dy),o.dispatchAction({seriesId:t.id,type:"graphRoam",dx:e.dx,dy:e.dy})})).on("zoom",(function(e){uO(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(),wM(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){wM(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}(Xv);const _M=bM;function EM(t){return"_EC_"+t}var RM=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[EM(t)]){var n=new xM(t,e);return n.hostGraph=this,this.nodes.push(n),o[EM(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[EM(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 xM||(t=n[EM(t)]),e instanceof xM||(e=n[EM(e)]),t&&e){var r=t.id+"-"+e.id,s=new TM(t,e,o);return s.hostGraph=this,this._directed&&(t.outEdges.push(s),e.inEdges.push(s)),t.edges.push(s),t!==e&&e.edges.push(s),this.edges.push(s),i[r]=s,s}},t.prototype.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},t.prototype.getEdge=function(t,e){t instanceof xM&&(t=t.id),e instanceof xM&&(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 xM||(e=this._nodesMap[EM(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(xM,OM("hostGraph","data")),Q(TM,OM("hostGraph","edgeData"));const DM=RM;function PM(t,e,o,n,i){for(var r=new DM(n),s=0;s "+d)),u++)}var h,f=o.get("coordinateSystem");if("cartesian2d"===f||"polar"===f)h=Jw(t,o);else{var g=Od.get(f),v=g&&g.dimensions||[];$(v,"value")<0&&v.concat(["value"]);var y=Uw(t,{coordDimensions:v,encodeDefine:o.getEncode()}).dimensions;(h=new jw(y,o)).initData(t)}var m=new jw(["value"],o);return m.initData(l,a),i&&i(h,m),aP({mainData:h,struct:r,structAttr:"graph",datas:{node:h,edge:m},datasAttr:{node:"data",edge:"edgeData"}}),r.update(),r}var AM=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 xx(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),ns(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){OA(o=this)&&(o.__curvenessList=[],o.__edgeMap={},DA(o));var s=PM(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(s.edges,(function(t){!function(t,e,o,n){if(OA(o)){var i=PA(t,e,o),r=o.__edgeMap,s=r[AA(i)];r[i]&&!s?r[i].isForward=!0:s&&r[i]&&(s.isForward=!0,r[i].isForward=!1),r[i]=r[i]||[],r[i].push(n)}}(t.node1,t.node2,this,t.dataIndex)}),this),s.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),s=n.getName(r.node1.dataIndex),a=n.getName(r.node2.dataIndex),l=[];return null!=s&&l.push(s),null!=a&&l.push(a),hf("nameValue",{name:l.join(" > "),value:i.value,noValue:null==i.value})}return Rf({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 jw(["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}(Gf);const MM=AM;var IM={type:"graphRoam",event:"graphRoam",update:"none"},LM=function(){this.angle=0,this.width=10,this.r=10,this.x=0,this.y=0},NM=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 LM},e.prototype.buildPath=function(t,e){var o=Math.cos,n=Math.sin,i=e.r,r=e.width,s=e.angle,a=e.x-o(s)*r*(r>=i/3?1:2),l=e.y-n(s)*r*(r>=i/3?1:2);s=e.angle-Math.PI/2,t.moveTo(a,l),t.lineTo(e.x+o(s)*r,e.y+n(s)*r),t.lineTo(e.x+o(e.angle)*i,e.y+n(e.angle)*i),t.lineTo(e.x-o(s)*r,e.y-n(s)*r),t.lineTo(a,l)},e}(cl);const FM=NM;function GM(t,e){var o=null==t?"":t+"";return e&&(ct(e)?o=e.replace("{value}",o):ut(e)&&(o=e(t))),o}var kM=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:Dr(o[0],e.getWidth()),cy:Dr(o[1],e.getHeight()),r:Dr(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,s=t.get("clockwise"),a=-t.get("startAngle")/180*Math.PI,l=-t.get("endAngle")/180*Math.PI,u=t.getModel("axisLine"),c=u.get("roundCap")?WR:Tg,p=u.get("show"),d=u.getModel("lineStyle"),h=d.get("width"),f=[a,l];Ba(f,!s);for(var g=(l=f[1])-(a=f[0]),v=a,y=[],m=0;p&&m=t&&(0===e?0:n[e-1][0])Math.PI/2&&(k+=Math.PI):"tangential"===G?k=-E-Math.PI/2:dt(G)&&(k=G*Math.PI/180),0===k?p.add(new Bl({style:ac(C,{text:I,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:ac(C,{text:I,x:N,y:F,verticalAlign:"middle",align:"center"},{inheritColor:L}),silent:!0,originX:N,originY:F,rotation:k}))}if(m.get("show")&&P!==w){M=(M=m.get("distance"))?M+l:l;for(var V=0;V<=S;V++){u=Math.cos(E),c=Math.sin(E);var H=new Bg({shape:{x1:u*(f-M)+d,y1:c*(f-M)+h,x2:u*(f-_-M)+d,y2:c*(f-_-M)+h},silent:!0,style:O});"auto"===O.stroke&&H.setStyle({stroke:n((P+V/S)/w)}),p.add(H),E+=x}E-=x}else E+=R}},e.prototype._renderPointer=function(t,e,o,n,i,r,s,a,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,s];function b(e,o){var n,r=v.getItemModel(e).getModel("pointer"),s=Dr(r.get("width"),i.r),a=Dr(r.get("length"),i.r),l=t.get(["pointer","icon"]),u=r.get("offsetCenter"),c=Dr(u[0],i.r),p=Dr(u[1],i.r),d=r.get("keepAspect");return(n=l?im(l,c-s/2,p-a,s,a,null,d):new FM({shape:{angle:-Math.PI/2,width:s,r:a,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")?WR:Tg,n=f.get("overlap"),s=n?f.get("width"):l/v.count(),u=n?i.r-s:i.r-(t+1)*s,c=n?i.r:i.r-t*s,p=new o({shape:{startAngle:r,endAngle:e,cx:i.cx,cy:i.cy,clockwise:a,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);$u(n,{rotation:-((isNaN(+o)?S[0]:Or(o,w,S,!0))+Math.PI/2)},t),u.add(n),v.setItemGraphicEl(e,n)}if(g){var i=_(e,r),s=f.get("clip");$u(i,{shape:{endAngle:Or(o,w,S,s)}},t),u.add(i),jl(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),s=i?i.rotation:r,a=b(e,s);a.rotation=s,qu(a,{rotation:-((isNaN(+n)?S[0]:Or(n,w,S,!0))+Math.PI/2)},t),u.add(a),v.setItemGraphicEl(e,a)}if(g){var l=p[o],m=_(e,l?l.shape.endAngle:r),C=f.get("clip");qu(m,{shape:{endAngle:Or(n,w,S,C)}},t),u.add(m),jl(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"),s=o.get("disabled");if(h){var a=v.getItemGraphicEl(t),l=v.getItemVisual(t,"style"),u=l.fill;if(a instanceof yl){var c=a.style;a.useStyle(Y({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},l))}else a.useStyle(l),"pointer"!==a.type&&a.setColor(u);a.setStyle(e.getModel(["pointer","itemStyle"]).getItemStyle()),"auto"===a.style.fill&&a.setStyle("fill",n(Or(v.get(y,t),w,[0,1],!0))),a.z2EmphasisLift=0,Bu(a,e),Gu(a,i,r,s)}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),Gu(p,i,r,s)}})),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"),s=o.get("keepAspect"),a=im(i,e.cx-n/2+Dr(r[0],e.r),e.cy-n/2+Dr(r[1],e.r),n,n,null,s);a.z2=o.get("showAbove")?1:0,a.setStyle(o.getModel("itemStyle").getItemStyle()),this.group.add(a)}},e.prototype._renderTitleAndDetail=function(t,e,o,n,i){var r=this,s=t.getData(),a=s.mapDimension("value"),l=+t.get("min"),u=+t.get("max"),c=new vr,p=[],d=[],h=t.isAnimationEnabled(),f=t.get(["pointer","showAbove"]);s.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(),s.each((function(e){var o=s.getItemModel(e),r=s.get(a,e),g=new vr,v=n(Or(r,[l,u],[0,1],!0)),y=o.getModel("title");if(y.get("show")){var m=y.get("offsetCenter"),C=i.cx+Dr(m[0],i.r),w=i.cy+Dr(m[1],i.r);(O=p[e]).attr({z2:f?0:2,style:ac(y,{x:C,y:w,text:s.getName(e),align:"center",verticalAlign:"middle"},{inheritColor:v})}),g.add(O)}var S=o.getModel("detail");if(S.get("show")){var b=S.get("offsetCenter"),_=i.cx+Dr(b[0],i.r),E=i.cy+Dr(b[1],i.r),R=Dr(S.get("width"),i.r),x=Dr(S.get("height"),i.r),T=t.get(["progress","show"])?s.getItemVisual(e,"style").fill:v,O=d[e],D=S.get("formatter");O.attr({z2:f?0:2,style:ac(S,{x:_,y:E,text:GM(r,D),width:isNaN(R)?null:R,height:isNaN(x)?null:x,align:"center",verticalAlign:"middle"},{inheritColor:T})}),gc(O,{normal:S},r,(function(t){return GM(t,D)})),h&&vc(O,e,s,t,{getFormattedLabel:function(t,e,o,n,i,s){return GM(s?s.interpolatedValue:r,D)}}),g.add(O)}c.add(g)})),this.group.add(c),this._titleEls=p,this._detailEls=d},e.type="gauge",e}(Xv);const VM=kM,HM=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 Ex(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}(Gf);var BM=["itemStyle","opacity"],WM=function(t){function e(e,o){var n=t.call(this)||this,i=n,r=new Gg,s=new Bl;return i.setTextContent(s),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),s=t.getItemLayout(e),a=r.getModel("emphasis"),l=r.get(BM);l=null==l?1:l,o||ec(n),n.useStyle(t.getItemVisual(e,"style")),n.style.lineJoin="round",o?(n.setShape({points:s.points}),n.style.opacity=0,$u(n,{style:{opacity:l}},i,e)):qu(n,{style:{opacity:l},shape:{points:s.points}},i,e),Bu(n,r),this._updateLabel(t,e),Gu(this,a.get("focus"),a.get("blurScope"),a.get("disabled"))},e.prototype._updateLabel=function(t,e){var o=this,n=this.getTextGuideLine(),i=o.getTextContent(),r=t.hostModel,s=t.getItemModel(e),a=t.getItemLayout(e).label,l=t.getItemVisual(e,"style"),u=l.fill;rc(i,sc(s),{labelFetcher:t.hostModel,labelDataIndex:e,defaultOpacity:l.opacity,defaultText:t.getName(e)},{normal:{align:a.textAlign,verticalAlign:a.verticalAlign}}),o.setTextConfig({local:!0,inside:!!a.inside,insideStroke:u,outsideFill:u});var c=a.linePoints;n.setShape({points:c}),o.textGuideLineConfig={anchor:c?new $e(c[0][0],c[0][1]):null},qu(i,{style:{x:a.x,y:a.y}},r,e),i.attr({rotation:a.rotation,originX:a.x,originY:a.y,z2:10}),f_(o,g_(s),{stroke:u})},e}(Lg);const jM=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 WM(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}(Xv);var zM=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 xx(st(this.getData,this),st(this.getRawData,this)),this._defaultLabelLine(e)},e.prototype.getInitialData=function(t,e){return Ex(this,{coordDimensions:["value"],encodeDefaulter:at(rd,this)})},e.prototype._defaultLabelLine=function(t){ns(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}(Gf);const UM=zM;function KM(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),s=t.get("orient"),a=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,s=0,a=t.count();s5)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&&sI(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 sI(t,e){var o=t._model;return o.get("axisExpandable")&&o.get("axisExpandTriggerOn")===e}const aI=iI,lI=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}(jp);var uI=function(t){function e(e,o,n,i,r){var s=t.call(this,e,o,n)||this;return s.type=i||"value",s.axisIndex=r,s}return m(e,t),e.prototype.isHorizontal=function(){return"horizontal"!==this.coordinateSystem.getModel().get("layout")},e}(Bb);const cI=uI;function pI(t,e,o,n,i,r){t=t||0;var s=o[1]-o[0];if(null!=i&&(i=hI(i,[0,s])),null!=r&&(r=Math.max(r,null!=i?i:0)),"all"===n){var a=Math.abs(e[1]-e[0]);a=hI(a,[0,s]),i=r=hI(a,[i,r]),n=0}e[0]=hI(e[0],o),e[1]=hI(e[1],o);var l=dI(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]=hI(e[n],p),u=dI(e,n),null!=i&&(u.sign!==l.sign||u.spanr&&(e[1-n]=e[n]+u.sign*r),e}function dI(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 hI(t,e){return Math.min(null!=e[1]?e[1]:1/0,Math.max(null!=e[0]?e[0]:-1/0,t))}var fI=tt,gI=Math.min,vI=Math.max,yI=Math.floor,mI=Math.ceil,CI=Pr,wI=Math.PI,SI=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;fI(n,(function(t,o){var n=i[o],r=e.getComponent("parallelAxis",n),s=this._axesMap.set(t,new cI(t,nb(r),[0,0],r.get("type"),n)),a="category"===s.type;s.onBand=a&&r.get("boundaryGap"),s.inverse=r.get("inverse"),r.axis=s,s.model=r,s.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],s=t[i];return r>=o&&r<=o+e.axisLength&&s>=n&&s<=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();fI(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"),s="horizontal"===r?0:1,a=o[i[s]],l=[0,a],u=this.dimensions.length,c=bI(e.get("axisExpandWidth"),l),p=bI(e.get("axisExpandCount")||0,[0,u]),d=e.get("axisExpandable")&&u>3&&u>p&&p>1&&c>0&&a>0,h=e.get("axisExpandWindow");h?(t=bI(h[1]-h[0],l),h[1]=h[0]+t):(t=bI(c*(p-1),l),(h=[c*(e.get("axisExpandCenter")||yI(u/2))-t/2])[1]=h[0]+t);var f=(a-t)/(u-p);f<3&&(f=0);var g=[yI(CI(h[0]/c,1))+1,mI(CI(h[1]/c,1))-1],v=f/c*h[0];return{layout:r,pixelDimIndex:s,layoutBase:o[n[s]],layoutLength:a,axisBase:o[n[1-s]],axisLength:o[i[1-s]],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])})),fI(o,(function(e,o){var r=(n.axisExpandable?EI:_I)(o,n),s={horizontal:{x:r.position,y:n.axisLength},vertical:{x:0,y:r.position}},a={horizontal:wI/2,vertical:0},l=[s[i].x+t.x,s[i].y+t.y],u=a[i],c=[1,0,0,1,0,0];Ue(c,c,u),ze(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,s=[],a=[];tt(r,(function(e){s.push(t.mapDimension(e)),a.push(i.get(e).model)}));for(var l=this.hasAxisBrushed(),u=o;ui*(1-c[0])?(l="jump",s=a-i*(1-c[2])):(s=a-i*c[1])>=0&&(s=a-i*(1-c[1]))<=0&&(s=0),(s*=e.axisExpandWidth/u)?pI(s,n,r,"all"):l="none";else{var d=n[1]-n[0];(n=[vI(0,r[1]*a/d-d/2)])[1]=gI(r[1],n[0]+d),n[0]=n[1]-d}return{axisExpandWindow:n,behavior:l}},t}();function bI(t,e){return gI(vI(t,e[0]),e[1])}function _I(t,e){var o=e.layoutLength/(e.axisCount-1);return{position:o*t,axisNameAvailableWidth:o,axisLabelShow:!0}}function EI(t,e){var o,n,i=e.layoutLength,r=e.axisExpandWidth,s=e.axisCount,a=e.axisCollapseWidth,l=e.winInnerIndices,u=a,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;nLI}(t)||r){if(s&&!r){"single"===a.brushMode&&$I(t);var l=z(a);l.brushType=hL(l.brushType,s),l.panelId=s===DI?null:s.panelId,r=t._creatingCover=WI(t,l),t._covers.push(r)}if(r){var u=vL[hL(t._brushType,s)];r.__brushOption.range=u.getCreatingRange(uL(t,r,t._track)),n&&(jI(t,r),u.updateCommon(t,r)),zI(t,r),i={isEnd:n}}}else n&&"single"===a.brushMode&&a.removeOnClick&&XI(t,e,o)&&$I(t)&&(i={isEnd:n,removeOnClick:!0});return i}function hL(t,e){return"auto"===t?e.defaultBrushType:t}var fL={mousedown:function(t){if(this._dragging)gL(this,t);else if(!t.target||!t.target.draggable){cL(t);var e=this.group.transformCoordToLocal(t.offsetX,t.offsetY);this._creatingCover=null,(this._creatingPanel=XI(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=XI(t,e,o);if(!t._dragging)for(var s=0;s=0&&(r[i[s].depth]=new Ac(i[s],this,e));if(n&&o){var a=PM(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 a.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,s=i.value;return hf("nameValue",{name:r.source+" -- "+r.target,value:s,noValue:n(s)})}var a=this.getGraph().getNodeByIndex(t).getLayout().value,l=this.getDataParams(t,o).data.name;return hf("nameValue",{name:null!=l?l+"":null,value:a,noValue:n(a)})},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}(Gf);const NL=LL;function FL(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,s=i.height,a=t.getGraph(),l=a.nodes,u=a.edges;!function(t){tt(t,(function(t){var e=KL(t.outEdges,UL),o=KL(t.inEdges,UL),n=t.getValue()||0,i=Math.max(e,o,n);t.setLayout({value:i},!0)}))}(l),function(t,e,o,n,i,r,s,a,l){(function(t,e,o,n,i,r,s){for(var a=[],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;s&&"left"!==s&&function(t,e,o,n){if("right"===e){for(var i=[],r=t,s=0;r.length;){for(var a=0;a0;r--)VL(a,l*=.99,s),kL(a,i,o,n,s),YL(a,l,s),kL(a,i,o,n,s)}(t,e,r,i,n,s,a),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,a)}(l,u,o,n,r,s,0!==nt(l,(function(t){return 0===t.getLayout().value})).length?0:t.get("layoutIterations"),t.get("orient"),t.get("nodeAlign"))}))}function GL(t){var e=t.hostGraph.data.getRawDataItem(t.dataIndex);return null!=e.depth&&e.depth>=0}function kL(t,e,o,n,i){var r="vertical"===i?"x":"y";tt(t,(function(t){var s,a,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&&(s=a.getLayout()[r]+l,"vertical"===i?a.setLayout({x:s},!0):a.setLayout({y:s},!0)),u=a.getLayout()[r]+a.getLayout()[p]+e;if((l=u-e-("vertical"===i?n:o))>0)for(s=a.getLayout()[r]-l,"vertical"===i?a.setLayout({x:s},!0):a.setLayout({y:s},!0),u=s,d=c-2;d>=0;--d)(l=(a=t[d]).getLayout()[r]+a.getLayout()[p]+e-u)>0&&(s=a.getLayout()[r]-l,"vertical"===i?a.setLayout({x:s},!0):a.setLayout({y:s},!0)),u=a.getLayout()[r]}))}function VL(t,e,o){tt(t.slice().reverse(),(function(t){tt(t,(function(t){if(t.outEdges.length){var n=KL(t.outEdges,HL,o)/KL(t.outEdges,UL);if(isNaN(n)){var i=t.outEdges.length;n=i?KL(t.outEdges,BL,o)/i:0}if("vertical"===o){var r=t.getLayout().x+(n-zL(t,o))*e;t.setLayout({x:r},!0)}else{var s=t.getLayout().y+(n-zL(t,o))*e;t.setLayout({y:s},!0)}}}))}))}function HL(t,e){return zL(t.node2,e)*t.getValue()}function BL(t,e){return zL(t.node2,e)}function WL(t,e){return zL(t.node1,e)*t.getValue()}function jL(t,e){return zL(t.node1,e)}function zL(t,e){return"vertical"===e?t.getLayout().x+t.getLayout().dx/2:t.getLayout().y+t.getLayout().dy/2}function UL(t){return t.getValue()}function KL(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 qL=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")),s=i.get("type"),a=r.get("type");"category"===s?(t.layout="horizontal",o=i.getOrdinalMeta(),n=!0):"category"===a?(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 Ex(this,{coordDimensions:m,dimensionsCount:y.length+1,encodeDefaulter:at(id,m,this)})},t.prototype.getBaseAxis=function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis},t}(),$L=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}(Gf);Q($L,qL,!0);const ZL=$L;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 s="horizontal"===t.get("layout")?1:0;n.diff(r).add((function(t){if(n.hasValue(t)){var e=eN(n.getItemLayout(t),n,t,s,!0);n.setItemGraphicEl(t,e),i.add(e)}})).update((function(t,e){var o=r.getItemGraphicEl(e);if(n.hasValue(t)){var a=n.getItemLayout(t);o?(ec(o),oN(a,o,n,t)):o=eN(a,n,t,s),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}(Xv),JL=function(){},tN=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 JL},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}]}},lN=["color","borderColor"],uN=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),s=t.coordinateSystem,a=s.getArea&&s.getArea();this._data||n.removeAll(),e.diff(o).add((function(o){if(e.hasValue(o)){var s=e.getItemLayout(o);if(r&&hN(a,s))return;var l=dN(s,0,!0);$u(l,{shape:{points:s.ends}},t,o),fN(l,e,o,i),n.add(l),e.setItemGraphicEl(o,l)}})).update((function(s,l){var u=o.getItemGraphicEl(l);if(e.hasValue(s)){var c=e.getItemLayout(s);r&&hN(a,c)?n.remove(u):(u?(qu(u,{shape:{points:c.ends}},t,s),ec(u)):u=dN(c),fN(u,e,s,i),n.add(u),e.setItemGraphicEl(s,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(),mN(t,this.group);var e=t.get("clip",!0)?SR(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=dN(n.getItemLayout(o));fN(r,n,o,i),r.incremental=!0,this.group.add(r),this._progressiveEls.push(r)}},e.prototype._incrementalRenderLarge=function(t,e){mN(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}(Xv),cN=function(){},pN=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 cN},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 dN(t,e,o){var n=t.ends;return new pN({shape:{points:o?gN(n,t):n},z2:100})}function hN(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(lN);e.useStyle(r),e.style.fill=null,e.style.stroke=i}const wN=uN;var SN=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}(Gf);Q(SN,qL,!0);const bN=SN;function _N(t){t&<(t.series)&&tt(t.series,(function(t){ht(t)&&"k"===t.type&&(t.type="candlestick")}))}var EN=["itemStyle","borderColor"],RN=["itemStyle","borderColor0"],xN=["itemStyle","borderColorDoji"],TN=["itemStyle","color"],ON=["itemStyle","color0"];const DN={seriesType:"candlestick",plan:Hf(),performRawSeries:!0,reset:function(t,e){function o(t,e){return e.get(t>0?TN:ON)}function n(t,e){return e.get(0===t?xN:t>0?EN:RN)}if(!e.isSeriesFiltered(t))return!t.pipelineContext.large&&{progress:function(t,e){for(var i;null!=(i=t.next());){var r=e.getItemModel(i),s=e.getItemLayout(i).sign,a=r.getItemStyle();a.fill=o(s,r),a.stroke=n(s,r)||a.fill,Y(e.ensureUniqueItemVisual(i,"style"),a)}}}}};var PN={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=Dr(bt(t.get("barMaxWidth"),i),i),s=Dr(bt(t.get("barMinWidth"),1),i),a=t.get("barWidth");return null!=a?Dr(a,i):Math.max(Math.min(i/2,r),s)}(t,o),i=["x","y"],r=o.getDimensionIndex(o.mapDimension(i[0])),s=et(o.mapDimensionsAll(i[1]),o.getDimensionIndex,o),a=s[0],l=s[1],u=s[2],c=s[3];if(o.setLayout({candleWidth:n,isSimpleBox:n<=1.3}),!(r<0||s.length<4))return{progress:t.pipelineContext.large?function(o,n){for(var i,s,p=CS(4*o.count),d=0,h=[],f=[],g=n.getStore(),v=!!t.get(["itemStyle","borderColorDoji"]);null!=(s=o.next());){var y=g.get(r,s),m=g.get(a,s),C=g.get(l,s),w=g.get(u,s),S=g.get(c,s);isNaN(y)||isNaN(w)||isNaN(S)?(p[d++]=NaN,d+=3):(p[d++]=AN(g,s,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,s=o.getStore();null!=(i=t.next());){var p=s.get(r,i),d=s.get(a,i),h=s.get(l,i),f=s.get(u,i),g=s.get(c,i),v=Math.min(d,h),y=Math.max(d,h),m=E(v,p),C=E(y,p),w=E(f,p),S=E(g,p),b=[];R(b,C,0),R(b,m,1),b.push(T(S),T(C),T(w),T(m));var _=!!o.getItemModel(i).get(["itemStyle","borderColorDoji"]);o.setItemLayout(i,{sign:AN(s,i,d,h,l,_),initBaseline:d>h?C[1]:m[1],ends:b,brushRect:x(f,g,p)})}function E(t,o){var n=[];return n[0]=o,n[1]=t,isNaN(o)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function R(t,e,o){var i=e.slice(),r=e.slice();i[0]=Rv(i[0]+n/2,1,!1),r[0]=Rv(r[0]-n/2,1,!0),o?t.push(i,r):t.push(r,i)}function x(t,e,o){var i=E(t,o),r=E(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 T(t){return t[0]=Rv(t[0],1),t}}}}};function AN(t,e,o,n,i,r){return o>n?-1:o0?t.get(i,e-1)<=n?1:-1:1}const MN=PN;function IN(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 LN=function(t){function e(e,o){var n=t.call(this)||this,i=new nR(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||s!==this._loop||a!==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,s,a)}this._period=r,this._loop=s,this._roundTrip=a}},e.prototype._animateSymbol=function(t,e,o,n,i){if(e>0){t.__t=0;var r=this,s=t.animate("",n).when(i?2*e:e,{__t:i?2:1}).delay(o).during((function(){r._updateSymbolPosition(t)}));n||s.done((function(){r.remove(t)})),s.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],s=r.slice(),a=Jo,l=tn;r[0]=a(e[0],n[0],o[0],i),r[1]=a(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=s;re);r++);r=Math.min(r-1,i-2)}var a=(e-n[r])/(n[r+1]-n[r]),l=o[r],u=o[r+1];t.x=l[0]*(1-a)+a*u[0],t.y=l[1]*(1-a)+a*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}(VN);const jN=WN;var zN=function(){this.polyline=!1,this.curveness=0,this.segs=[]},UN=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 zN},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 s=1;s0){var p=(a+u)/2-(l-c)*i,d=(l+c)/2-(u-a)*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 s=0,a=0;a0)for(var u=n[a++],c=n[a++],p=1;p0){if(Ka(u,c,(u+d)/2-(c-h)*i,(c+h)/2-(d-u)*i,d,h,r,t,e))return s}else if(za(u,c,d,h,r,t,e))return s;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.segs,o=1/0,n=1/0,i=-1/0,r=-1/0,s=0;s0&&(r.dataIndex=o+t.__startIndex)}))},t.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},t}();var YN={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 s=[];if(n){var a=void 0,l=i.end-i.start;if(o){for(var u=0,c=i.start;c0&&(l||a.configLayer(r,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),i.updateData(n);var u=t.get("clip",!0)&&SR(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=XN.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 KN:new dM(i?n?jN:BN:n?VN:lM),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}(Xv);var $N="undefined"==typeof Uint32Array?Array:Uint32Array,ZN="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),K([e,t[0],t[1]])})))}var JN=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}(Gf);const tF=JN;function eF(t){return t instanceof Array||(t=[t,t]),t}const oF={seriesType:"lines",reset:function(t){var e=eF(t.get("symbol")),o=eF(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=eF(o.getShallow("symbol",!0)),i=eF(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 nF=function(){function t(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=O.createCanvas();this.canvas=t}return t.prototype.update=function(t,e,o,n,i,r){var s=this._getBrush(),a=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 R=r(y)?a:l;y>0&&(y=y*_+b),C[w++]=R[E],C[w++]=R[E+1],C[w++]=R[E+2],C[w++]=R[E+3]*y*256}else w+=4}return p.putImageData(m,0,0),c},t.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=O.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,s=0;s<256;s++)t[e](s/255,!0,i),n[r++]=i[0],n[r++]=i[1],n[r++]=i[2],n[r++]=i[3];return n},t}();const iF=nF;function rF(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var sF=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()):rF(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&&(rF(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,s,a,l,u=t.coordinateSystem,c=bR(u,"cartesian2d");if(c){var p=u.getAxis("x"),d=u.getAxis("y");r=p.getBandWidth()+.5,s=d.getBandWidth()+.5,a=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=sc(t),w=t.getModel("emphasis"),S=w.get("focus"),b=w.get("blurScope"),_=w.get("disabled"),E=c?[f.mapDimension("x"),f.mapDimension("y"),f.mapDimension("value")]:[f.mapDimension("time"),f.mapDimension("value")],R=o;Ra[1]||Dl[1])continue;var P=u.dataToPoint([O,D]);x=new Rl({shape:{x:P[0]-r/2,y:P[1]-s/2,width:r,height:s},style:T})}else{if(isNaN(f.get(E[1],R)))continue;x=new Rl({z2:1,shape:u.dataToRect([f.get(E[0],R)]).contentShape,style:T})}if(f.hasItemOption){var A=f.getItemModel(R),M=A.getModel("emphasis");g=M.getModel("itemStyle").getItemStyle(),v=A.getModel(["blur","itemStyle"]).getItemStyle(),y=A.getModel(["select","itemStyle"]).getItemStyle(),m=A.get(["itemStyle","borderRadius"]),S=M.get("focus"),b=M.get("blurScope"),_=M.get("disabled"),C=sc(A)}x.shape.r=m;var I=t.getRawValue(R),L="-";I&&null!=I[2]&&(L=I[2]+""),rc(x,C,{labelFetcher:t,labelDataIndex:R,defaultOpacity:T.opacity,defaultText:L}),x.ensureState("emphasis").style=g,x.ensureState("blur").style=v,x.ensureState("select").style=y,Gu(x,S,b,_),x.incremental=i,i&&(x.states.emphasis.hoverLayer=!0),h.add(x),f.setItemGraphicEl(R,x),this._progressiveEls&&this._progressiveEls.push(x)}},e.prototype._renderOnGeo=function(t,e,o,n){var i=o.targetVisuals.inRange,r=o.targetVisuals.outOfRange,s=e.getData(),a=this._hmLayer||this._hmLayer||new iF;a.blurSize=e.get("blurSize"),a.pointSize=e.get("pointSize"),a.minOpacity=e.get("minOpacity"),a.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=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],y=s.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 s;if((s=e[n].interval)[0]<=t&&t<=s[1]){r=n;break}}return n>=0&&n0?1:-1}(o,r,i,n,p),function(t,e,o,n,i,r,s,a,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]=Dr(c[d.index],h),c[p.index]=Dr(c[p.index],n?h:Math.abs(r)),u.symbolSize=c,(u.symbolScale=[c[0]/a,c[1]/a])[p.index]*=(l.isHorizontal?-1:1)*s}(t,e,i,r,0,p.boundingLength,p.pxSign,u,n,p),function(t,e,o,n,i){var r=t.get(uF)||0;r&&(pF.attr({scaleX:e[0],scaleY:e[1],rotation:o}),pF.updateTransform(),r/=pF.getLineScale(),r*=e[n.valueDim.index]),i.valueLineWidth=r||0}(o,p.symbolScale,l,n,p);var d=p.symbolSize,h=sm(o.get("symbolOffset"),d);return function(t,e,o,n,i,r,s,a,l,u,c,p){var d=c.categoryDim,h=c.valueDim,f=p.pxSign,g=Math.max(e[h.index]+a,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=Dr(m,e[h.index]),S=Math.max(g+2*w,0),b=C?0:2*w,_=qr(n),E=_?n:OF((y+b)/S);S=g+2*(w=(y-E*g)/2/(C?E:Math.max(E-1,1))),b=C?0:2*w,_||"fixed"===n||(E=u?OF((Math.abs(u)+b)/S):0),v=E*S-b,p.repeatTimes=E,p.symbolMargin=w}var R=f*(v/2),x=p.pathPosition=[];x[d.index]=o[d.wh]/2,x[h.index]="start"===s?R:"end"===s?l-R:l/2,r&&(x[0]+=r[0],x[1]+=r[1]);var T=p.bundlePosition=[];T[d.index]=o[d.xy],T[h.index]=o[h.xy];var O=p.barRectShape=Y({},o);O[h.wh]=f*Math.max(Math.abs(o[h.wh]),Math.abs(x[h.index]+R)),O[d.wh]=o[d.wh];var D=p.clipShape={};D[d.xy]=-o[d.xy],D[d.wh]=c.ecSize[d.wh],D[h.xy]=0,D[h.wh]=o[h.wh]}(o,d,i,r,0,h,a,p.valueLineWidth,p.boundingLength,p.repeatCutLength,n,p),p}function hF(t,e){return t.toGlobalCoord(t.dataToCoord(t.scale.parse(e)))}function fF(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 gF(t,e,o,n){var i=t.__pictorialBundle,r=o.symbolSize,s=o.valueLineWidth,a=o.pathPosition,l=e.valueDim,u=o.repeatTimes||0,c=0,p=r[e.valueDim.index]+s+2*o.symbolMargin;for(RF(t,(function(t){t.__pictorialAnimationIndex=c,t.__pictorialRepeatTimes=u,c0:n<0)&&(i=u-1-t),e[l.index]=p*(i-u/2+.5)+a[l.index],{x:e[0],y:e[1],scaleX:o.symbolScale[0],scaleY:o.symbolScale[1],rotation:o.rotation}}}function vF(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=fF(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 yF(t,e,o){var n=Y({},e.barRectShape),i=t.__pictorialBarRect;i?xF(i,null,{shape:n},e,o):((i=t.__pictorialBarRect=new Rl({z2:2,shape:n,silent:!0,style:{stroke:"transparent",fill:"transparent",lineWidth:0}})).disableMorphing=!0,t.add(i))}function mF(t,e,o,n){if(o.symbolClip){var i=t.__pictorialClipPath,s=Y({},o.clipShape),a=e.valueDim,l=o.animationModel,u=o.dataIndex;if(i)qu(i,{shape:s},l,u);else{s[a.wh]=0,i=new Rl({shape:s}),t.__pictorialBundle.setClipPath(i),t.__pictorialClipPath=i;var c={};c[a.wh]=o.clipShape[a.wh],r[n?"updateProps":"initProps"](i,{shape:c},l,u)}}}function CF(t,e){var o=t.getItemModel(e);return o.getAnimationDelayParams=wF,o.isAnimationEnabled=SF,o}function wF(t){return{index:t.__pictorialAnimationIndex,count:t.__pictorialRepeatTimes}}function SF(){return this.parentModel.isAnimationEnabled()&&!!this.getShallow("animation")}function bF(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?gF(i,e,o):vF(i,0,o),yF(i,o,n),mF(i,e,o,n),i.__pictorialShapeStr=EF(t,o),i.__pictorialSymbolMeta=o,i}function _F(t,e,o,n){var i=n.__pictorialBarRect;i&&i.removeTextContent();var r=[];RF(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 EF(t,e){return[t.getItemVisual(e.dataIndex,"symbol")||"none",!!e.symbolRepeat,!!e.symbolClip].join(":")}function RF(t,e,o){tt(t.__pictorialBundle.children(),(function(n){n!==t.__pictorialBarRect&&e.call(o,n)}))}function xF(t,e,o,n,i,s){e&&t.attr(e),n.symbolClip&&!i?o&&t.attr(o):o&&r[i?"updateProps":"initProps"](t,o,n.animationModel,n.dataIndex,s)}function TF(t,e,o){var n=o.dataIndex,i=o.itemModel,r=i.getModel("emphasis"),s=r.getModel("itemStyle").getItemStyle(),a=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");RF(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=s,d&&(n.scaleX=1.1*t.scaleX,n.scaleY=1.1*t.scaleY),t.ensureState("blur").style=a,t.ensureState("select").style=l,u&&(t.cursor=u),t.z2=o.z2}));var h=e.valueDim.posDesc[+(o.boundingLength>0)];rc(t.__pictorialBarRect,sc(i),{labelFetcher:e.seriesModel,labelDataIndex:n,defaultText:JE(e.seriesModel.getData(),n),inheritColor:o.style.fill,defaultOpacity:o.style.opacity,defaultOutsidePosition:h}),Gu(t,c,p,r.get("disabled"))}function OF(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,s=t.coordinateSystem,a=s.getBaseAxis().isHorizontal(),l=s.master.getRect(),u={ecSize:{width:o.getWidth(),height:o.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[l.x,l.x+l.width],[l.y,l.y+l.height]],isHorizontal:a,valueDim:cF[+a],categoryDim:cF[1-+a]};return i.diff(r).add((function(t){if(i.hasValue(t)){var e=CF(i,t),o=dF(i,t,e,u),r=bF(i,u,o);i.setItemGraphicEl(t,r),n.add(r),TF(r,u,o)}})).update((function(t,e){var o=r.getItemGraphicEl(e);if(i.hasValue(t)){var s=CF(i,t),a=dF(i,t,s,u),l=EF(i,a);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;qu(t.__pictorialBundle,{x:o.bundlePosition[0],y:o.bundlePosition[1]},n,i),o.symbolRepeat?gF(t,e,o,!0):vF(t,0,o,!0),yF(t,o,!0),mF(t,e,o,!0)}(o,u,a):o=bF(i,u,a,!0),i.setItemGraphicEl(t,o),o.__pictorialSymbolMeta=a,n.add(o),TF(o,u,a)}else n.remove(o)})).remove((function(t){var e=r.getItemGraphicEl(t);e&&_F(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){_F(n,Wl(e).dataIndex,t,e)})):o.removeAll()},e.type="pictorialBar",e}(Xv),PF=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(kR.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}(kR);var AF=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,s=t.getLayerSeries(),a=n.getLayout("layoutInfo"),l=a.rect,u=a.boundaryGap;function c(t){return t.name}r.x=0,r.y=l.y+u[0];var p=new mw(this._layersSeries||[],s,c,c),d=[];function h(e,o,a){var l=i._layers;if("remove"!==e){for(var u,c,p=[],h=[],f=s[o].indices,g=0;gr&&(r=a),n.push(a)}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,s>Math.PI/2&&(_="right")):"right"===_&&(m=i.r-b,s>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*a+i.cx,g.y=m*l+i.cy;var E=f(d,"rotate"),R=0;"radial"===E?(R=Xa(-s))>Math.PI/2&&R<1.5*Math.PI&&(R+=Math.PI):"tangential"===E?(R=Math.PI/2-s)>Math.PI/2?R-=Math.PI:R<-Math.PI/2&&(R+=Math.PI):dt(E)&&(R=E*Math.PI/180),g.rotation=Xa(R)})),c.dirtyStyle()},e}(Tg);const kF=GF;var VF="sunburstRootToNode",HF="sunburstHighlight",BF=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(),s=r.tree.root,a=t.getViewRoot(),l=this.group,u=t.get("renderLabelForZeroData"),c=[];a.eachNode((function(t){c.push(t)}));var p=this._oldChildren||[];!function(n,i){function a(t){return t.getId()}function c(a,c){!function(n,i){if(u||!n||n.getValue()||(n=null),n!==s&&i!==s)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 a=new kF(n,t,e,o);l.add(a),r.setItemGraphicEl(n.dataIndex,a)}var c}(null==a?null:n[a],null==c?null:i[c])}0===n.length&&0===i.length||new mw(i,n,a,a).add(c).update(c).remove(at(c,null)).execute()}(c,p),function(n,r){r.depth>0?(i.virtualPiece?i.virtualPiece.updateData(!1,n,t,e,o):(i.virtualPiece=new kF(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)}(s,a),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(),s=r.get("link");s&&Dp(s,r.get("target",!0)||"_blank")}o=!0}}))}))},e.prototype._rootToNode=function(t){t!==this.seriesModel.getViewRoot()&&this.api.dispatchAction({type:VF,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}(Xv);const WF=BF;function jF(t){var e=0;tt(t.children,(function(t){jF(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 zF=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};jF(o);var n=this._levelModels=et(t.levels||[],(function(t){return new Ac(t,this,e)}),this),i=cP.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=fP(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(){SP(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}(Gf);var UF=Math.PI/180;function KF(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(),s=Math.min(i,r),a=Dr(e[0],i),l=Dr(e[1],r),u=Dr(n[0],s/2),c=Dr(n[1],s/2),p=-t.get("startAngle")*UF,d=t.get("minAngle")*UF,h=t.getData().tree.root,f=t.getViewRoot(),g=f.depth,v=t.get("sort");null!=v&&YF(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"),E=t.get("stillShowZeroSum"),R=_?1:-1,x=function(e,o){if(e){var n=o;if(e!==h){var i=e.getValue(),r=0===m&&E?C:i*C;r1;)i=i.parentNode;var r=o.getColorFromPalette(i.name||i.dataIndex+"",e);return t.depth>1&&ct(r)&&(r=Tn(r,(t.depth-1)/(n-1)*.5)),r}(i,t,n.root.height)),Y(o.ensureUniqueItemVisual(i.dataIndex,"style"),r)}))}))}var qF={color:"fill",borderColor:"stroke"},$F={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},ZF=fs();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=ZF(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}(Gf);function JF(t,e){return e=e||[0,0],et(["x","y"],(function(o,n){var i=this.getAxis(o),r=e[n],s=t[n]/2;return"category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(r-s)-i.dataToCoord(r+s))}),this)}function tG(t,e){return e=e||[0,0],et([0,1],(function(o){var n=e[o],i=t[o]/2,r=[],s=[];return r[o]=n-i,s[o]=n+i,r[1-o]=s[1-o]=e[1-o],Math.abs(this.dataToPoint(r)[o]-this.dataToPoint(s)[o])}),this)}function eG(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 oG(t,e){return e=e||[0,0],et(["Radius","Angle"],(function(o,n){var i=this["get"+o+"Axis"](),r=e[n],s=t[n]/2,a="category"===i.type?i.getBandWidth():Math.abs(i.dataToCoord(r-s)-i.dataToCoord(r+s));return"Angle"===o&&(a=a*Math.PI/180),a}),this)}function nG(t,e,o,n){return t&&(t.legacy||!1!==t.legacy&&!o&&!n&&"tspan"!==e&&("text"===e||kt(t,"text")))}function iG(t,e,o){var n,i,r,s=t;if("text"===e)r=s;else{r={},kt(s,"text")&&(r.text=s.text),kt(s,"rich")&&(r.rich=s.rich),kt(s,"textFill")&&(r.fill=s.textFill),kt(s,"textStroke")&&(r.stroke=s.textStroke),kt(s,"fontFamily")&&(r.fontFamily=s.fontFamily),kt(s,"fontSize")&&(r.fontSize=s.fontSize),kt(s,"fontStyle")&&(r.fontStyle=s.fontStyle),kt(s,"fontWeight")&&(r.fontWeight=s.fontWeight),i={type:"text",style:r,silent:!0},n={};var a=kt(s,"textPosition");o?n.position=a?s.textPosition:"inside":a&&(n.position=s.textPosition),kt(s,"textPosition")&&(n.position=s.textPosition),kt(s,"textOffset")&&(n.offset=s.textOffset),kt(s,"textRotation")&&(n.rotation=s.textRotation),kt(s,"textDistance")&&(n.distance=s.textDistance)}return rG(r,t),tt(r.rich,(function(t){rG(t,t)})),{textConfig:n,textContent:i}}function rG(t,e){e&&(e.font=e.textFont||e.font,kt(e,"textStrokeWidth")&&(t.lineWidth=e.textStrokeWidth),kt(e,"textAlign")&&(t.align=e.textAlign),kt(e,"textVerticalAlign")&&(t.verticalAlign=e.textVerticalAlign),kt(e,"textLineHeight")&&(t.lineHeight=e.textLineHeight),kt(e,"textWidth")&&(t.width=e.textWidth),kt(e,"textHeight")&&(t.height=e.textHeight),kt(e,"textBackgroundColor")&&(t.backgroundColor=e.textBackgroundColor),kt(e,"textPadding")&&(t.padding=e.textPadding),kt(e,"textBorderColor")&&(t.borderColor=e.textBorderColor),kt(e,"textBorderWidth")&&(t.borderWidth=e.textBorderWidth),kt(e,"textBorderRadius")&&(t.borderRadius=e.textBorderRadius),kt(e,"textBoxShadowColor")&&(t.shadowColor=e.textBoxShadowColor),kt(e,"textBoxShadowBlur")&&(t.shadowBlur=e.textBoxShadowBlur),kt(e,"textBoxShadowOffsetX")&&(t.shadowOffsetX=e.textBoxShadowOffsetX),kt(e,"textBoxShadowOffsetY")&&(t.shadowOffsetY=e.textBoxShadowOffsetY))}function sG(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";aG(n,e);var s=null==n.textFill;return i?s&&(n.textFill=o.insideFill||"#fff",!n.textStroke&&o.insideStroke&&(n.textStroke=o.insideStroke),!n.textStroke&&(n.textStroke=r),null==n.textStrokeWidth&&(n.textStrokeWidth=2)):(s&&(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){aG(t,t)})),n}function aG(t,e){e&&(kt(e,"fill")&&(t.textFill=e.fill),kt(e,"stroke")&&(t.textStroke=e.fill),kt(e,"lineWidth")&&(t.textStrokeWidth=e.lineWidth),kt(e,"font")&&(t.font=e.font),kt(e,"fontStyle")&&(t.fontStyle=e.fontStyle),kt(e,"fontWeight")&&(t.fontWeight=e.fontWeight),kt(e,"fontSize")&&(t.fontSize=e.fontSize),kt(e,"fontFamily")&&(t.fontFamily=e.fontFamily),kt(e,"align")&&(t.textAlign=e.align),kt(e,"verticalAlign")&&(t.textVerticalAlign=e.verticalAlign),kt(e,"lineHeight")&&(t.textLineHeight=e.lineHeight),kt(e,"width")&&(t.textWidth=e.width),kt(e,"height")&&(t.textHeight=e.height),kt(e,"backgroundColor")&&(t.textBackgroundColor=e.backgroundColor),kt(e,"padding")&&(t.textPadding=e.padding),kt(e,"borderColor")&&(t.textBorderColor=e.borderColor),kt(e,"borderWidth")&&(t.textBorderWidth=e.borderWidth),kt(e,"borderRadius")&&(t.textBorderRadius=e.borderRadius),kt(e,"shadowColor")&&(t.textBoxShadowColor=e.shadowColor),kt(e,"shadowBlur")&&(t.textBoxShadowBlur=e.shadowBlur),kt(e,"shadowOffsetX")&&(t.textBoxShadowOffsetX=e.shadowOffsetX),kt(e,"shadowOffsetY")&&(t.textBoxShadowOffsetY=e.shadowOffsetY),kt(e,"textShadowColor")&&(t.textShadowColor=e.textShadowColor),kt(e,"textShadowBlur")&&(t.textShadowBlur=e.textShadowBlur),kt(e,"textShadowOffsetX")&&(t.textShadowOffsetX=e.textShadowOffsetX),kt(e,"textShadowOffsetY")&&(t.textShadowOffsetY=e.textShadowOffsetY))}var lG={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},uG=rt(lG),cG=(ot(Ki,(function(t,e){return t[e]=1,t}),{}),Ki.join(", "),["","style","shape","extra"]),pG=fs();function dG(t,e,o,n,i){var r=t+"Animation",s=Yu(t,n,i)||{},a=pG(e).userDuring;return s.duration>0&&(s.during=a?st(CG,{el:e,userDuring:a}):null,s.setToFinal=!0,s.scope=t),Y(s,o[r]),s}function hG(t,e,o,n){var i=(n=n||{}).dataIndex,r=n.isInit,s=n.clearStyle,a=o.isAnimationEnabled(),l=pG(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=dG("update",t,e,n,o);r.duration>0&&t.animateFrom(i,r)}}(t,e,i||0,o,c);fG(t,e),u?t.dirty():t.markRedraw()}function fG(t,e){for(var o=pG(t).leaveToProps,n=0;n=0){!r&&(r=n[t]={});var d=rt(s);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]),s=t.coordToPoint([i,r]);return s.push(i,r*Math.PI/180),s},size:st(oG,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 kG(t){return t instanceof cl}function VG(t){return t instanceof la}const HG=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(),s=this.group,a=UG(t,r,e,o);i||s.removeAll(),r.diff(i).add((function(e){YG(o,null,e,a(e,n),t,s,r)})).remove((function(e){var o=i.getItemGraphicEl(e);o&&gG(o,ZF(o).option,t)})).update((function(e,l){var u=i.getItemGraphicEl(l);YG(o,u,e,a(e,n),t,s,r)})).execute();var l=t.get("clip",!0)?SR(t.coordinateSystem,!1,t):null;l?s.setClipPath(l):s.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(),s=UG(e,r,o,n),a=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),s=n&&n.ordinalMeta;return s?s.categories[r]:r},styleEmphasis:function(o,n){null==n&&(n=a);var i=m(n,TG).getItemStyle(),r=C(n,TG),s=ac(r,null,null,!0,!0);s.text=r.getShallow("show")?_t(t.getFormattedLabel(n,TG),t.getFormattedLabel(n,OG),JE(e,n)):null;var l=lc(r,null,!0);return S(o,i),i=sG(i,s,l),o&&w(i,o),i.legacy=!0,i},visual:function(t,o){if(null==o&&(o=a),kt(qF,t)){var n=e.getItemVisual(o,"style");return n?n[qF[t]]:null}if(kt($F,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);JG(e,g,i)}}}(t,p,o,n,i),s>=0?r.replaceAt(p,s):r.add(p),p}function qG(t,e,o){var n,i=ZF(t),r=e.type,s=e.shape,a=e.style;return o.isUniversalTransitionEnabled()||null!=r&&r!==i.customGraphicType||"path"===r&&(n=s)&&(kt(n,"pathData")||kt(n,"d"))&&nk(s)!==i.customPathData||"image"===r&&kt(a,"image")&&a.image!==i.customImagePath}function $G(t,e,o){var n=e?ZG(t,e):t,i=e?QG(t,n,TG):t.style,r=t.type,s=n?n.textConfig:null,a=t.textContent,l=a?e?ZG(a,e):a:null;if(i&&(o.isLegacy||nG(i,r,!!s,!!l))){o.isLegacy=!0;var u=iG(i,r,!e);!s&&u.textConfig&&(s=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=s,p.conOpt=l}function ZG(t,e){return e?t?t[e]:null:t}function QG(t,e,o){var n=e&&e.style;return null==n&&o===TG&&t&&(n=t.styleEmphasis),n}function JG(t,e,o){e&&gG(e,ZF(t).option,o)}function tk(t,e){var o=t&&t.name;return null!=o?o:NG+e}function ek(t,e){var o=this.context,n=null!=t?o.newChildren[t]:null,i=null!=e?o.oldChildren[e]:null;XG(o.api,i,o.dataIndex,n,o.seriesModel,o.group)}function ok(t){var e=this.context,o=e.oldChildren[t];o&&gG(o,ZF(o).option,e.seriesModel)}function nk(t){return t&&(t.pathData||t.d)}var ik=fs(),rk=z,sk=st,ak=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 s=this._group,a=this._handle;if(!r||"hide"===r)return s&&s.hide(),void(a&&a.hide());s&&s.show(),a&&a.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(s){var p=at(lk,e,c);this.updatePointerEl(s,l,p),this.updateLabelEl(s,l,p,e)}else s=this._group=new vr,this.createPointerEl(s,l,t,e),this.createLabelEl(s,l,t,e),o.getZr().add(s);dk(s,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 s=this.animationThreshold;if(i&&n.getBandWidth()>s)return!0;if(r){var a=vT(t).seriesDataCount,l=n.getExtent();return Math.abs(l[0]-l[1])/a>s}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 s=ik(t).pointerEl=new r[i.type](rk(e.pointer));t.add(s)}},t.prototype.createLabelEl=function(t,e,o,n){if(e.label){var i=ik(t).labelEl=new Bl(rk(e.label));t.add(i),ck(i,n)}},t.prototype.updatePointerEl=function(t,e,o){var n=ik(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=ik(t).labelEl;i&&(i.setStyle(e.label.style),o(i,{x:e.label.x,y:e.label.y}),ck(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"),s=o.get("status");if(!r.get("show")||!s||"hide"===s)return i&&n.remove(i),void(this._handle=null);this._handle||(e=!0,i=this._handle=Iv(r.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(t){Ne(t.event)},onmousedown:sk(this._onHandleDragMove,this,0,0),drift:sk(this._onHandleDragMove,this),ondragend:sk(this._onHandleDragEnd,this)}),n.add(i)),dk(i,o,!1),i.setStyle(r.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var a=r.get("size");lt(a)||(a=[a,a]),i.scaleX=a[0]/2,i.scaleY=a[1]/2,Jv(this,"_doDispatchAxisPointer",r.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,e)}},t.prototype._moveHandleToValue=function(t,e){lk(this._axisPointerModel,!e&&this._moveAnimation,this._handle,pk(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(pk(o),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=n,o.stopAnimation(),o.attr(pk(n)),ik(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 lk(t,e,o,n){uk(ik(o).lastProp,n)||(ik(o).lastProp=n,e?qu(o,n,t):(o.stopAnimation(),o.attr(n)))}function uk(t,e){if(ht(t)&&ht(e)){var o=!0;return tt(e,(function(e,n){o=o&&uk(t[n],e)})),!!o}return t===e}function ck(t,e){t[e.get(["label","show"])?"show":"hide"]()}function pk(t){return{x:t.x||0,y:t.y||0,rotation:t.rotation||0}}function dk(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 hk=ak;function fk(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 gk(t,e,o,n,i){var r=vk(o.get("value"),e.axis,e.ecModel,o.get("seriesDataIndices"),{precision:o.get(["label","precision"]),formatter:o.get(["label","formatter"])}),s=o.getModel("label"),a=wp(s.get("padding")||0),l=s.getFont(),u=Qi(r,l),c=i.position,p=u.width+a[1]+a[3],d=u.height+a[0]+a[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=s.get("backgroundColor");g&&"auto"!==g||(g=e.get(["axisLine","lineStyle","color"])),t.label={x:c[0],y:c[1],style:ac(s,{text:r,font:l,fill:s.getTextColor(),padding:a,backgroundColor:g}),z2:10}}function vk(t,e,o,n,i){t=e.scale.parse(t);var r=e.scale.getLabel({value:t},{precision:i.precision}),s=i.formatter;if(s){var a={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&&a.seriesData.push(i)})),ct(s)?r=s.replace("{value}",r):ut(s)&&(r=s(a))}return r}function yk(t,e,o){var n=[1,0,0,1,0,0];return Ue(n,n,o.rotation),ze(n,n,o.position),Tv([t.dataToCoord(e),(o.labelOffset||0)+(o.labelDirection||1)*(o.labelMargin||0)],n)}function mk(t,e,o,n,i,r){var s=fT.innerTextLayout(o.rotation,0,o.labelDirection);o.labelMargin=i.get(["label","margin"]),gk(e,n,i,r,{position:yk(n.axis,t,o),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function Ck(t,e,o){return{x1:t[o=o||0],y1:t[1-o],x2:e[o],y2:e[1-o]}}function wk(t,e,o){return{x:t[o=o||0],y:t[1-o],width:e[o],height:e[1-o]}}function Sk(t,e,o,n,i,r){return{cx:t,cy:e,r0:o,r:n,startAngle:i,endAngle:r,clockwise:!0}}var bk=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,s=r.grid,a=n.get("type"),l=_k(s,r).getOtherAxis(r).getGlobalExtent(),u=r.toGlobalCoord(r.dataToCoord(e,!0));if(a&&"none"!==a){var c=fk(n),p=Ek[a](r,u,l);p.style=c,t.graphicKey=p.type,t.pointer=p}mk(e,t,Zx(s.model,o),o,n,i)},e.prototype.getHandleTransform=function(t,e,o){var n=Zx(e.axis.grid.model,e,{labelInside:!1});n.labelMargin=o.get(["handle","margin"]);var i=yk(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,s=i.getGlobalExtent(!0),a=_k(r,i).getOtherAxis(i).getGlobalExtent(),l="x"===i.dim?0:1,u=[t.x,t.y];u[l]+=e[l],u[l]=Math.min(s[1],u[l]),u[l]=Math.max(s[0],u[l]);var c=(a[1]+a[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}(hk);function _k(t,e){var o={};return o[e.dim+"AxisIndex"]=e.index,t.getCartesian(o)}var Ek={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:Ck([e,o[0]],[e,o[1]],Rk(t))}},shadow:function(t,e,o){var n=Math.max(1,t.getBandWidth()),i=o[1]-o[0];return{type:"Rect",shape:wk([e-n/2,o[0]],[n,i],Rk(t))}}};function Rk(t){return"x"===t.dim?0:1}const xk=bk,Tk=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,triggerEmphasis:!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}(jp);var Ok=fs(),Dk=tt;function Pk(t,e,o){if(!S.node){var n=e.getZr();Ok(n).records||(Ok(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);Dk(Ok(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)}))}Ok(t).initialized||(Ok(t).initialized=!0,o("click",at(Mk,"click")),o("mousemove",at(Mk,"mousemove")),o("globalout",Ak))}(n,e),(Ok(n).records[t]||(Ok(n).records[t]={})).handler=o}}function Ak(t,e,o){t.handler("leave",null,o)}function Mk(t,e,o,n){e.handler(t,o,n)}function Ik(t,e){if(!S.node){var o=e.getZr();(Ok(o).records||{})[t]&&(Ok(o).records[t]=null)}}var Lk=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";Pk("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){Ik("axisPointer",e)},e.prototype.dispose=function(t,e){Ik("axisPointer",e)},e.type="axisPointer",e}(Vf);const Nk=Lk;function Fk(t,e){var o,n=[],i=t.seriesIndex;if(null==i||!(o=e.getSeriesByIndex(i)))return{point:[]};var r=o.getData(),s=hs(r,t);if(null==s||s<0||lt(s))return{point:[]};var a=r.getItemGraphicEl(s),l=o.coordinateSystem;if(o.getTooltipPosition)n=o.getTooltipPosition(s)||[];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,s),f[1-d]=r.get(r.getCalculationInfo("stackResultDimension"),s),n=l.dataToPoint(f)||[]}else n=l.dataToPoint(r.getValues(et(l.dimensions,(function(t){return r.mapDimension(t)})),s))||[];else if(a){var g=a.getBoundingRect().clone();g.applyTransform(a.transform),n=[g.x+g.width/2,g.y+g.height/2]}return{point:n,el:a}}var Gk=fs();function kk(t,e,o){var n=t.currTrigger,i=[t.x,t.y],r=t,s=t.dispatchAction||st(o.dispatchAction,o),a=e.getComponent("axisPointer").coordSysAxesInfo;if(a){jk(i)&&(i=Fk({seriesIndex:r.seriesIndex,dataIndex:r.dataIndex},e).point);var l=jk(i),u=r.axesInfo,c=a.axesInfo,p="leave"===n||jk(i),d={},h={},f={list:[],map:{}},g={showPointer:at(Hk,h),showTooltip:at(Bk,f)};tt(a.coordSysMap,(function(t,e){var o=l||t.containPoint(i);tt(a.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 s=r&&r.value;null!=s||l||(s=n.pointToData(i)),null!=s&&Vk(t,s,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,Wk(e),Wk(t)))),v[t.key]=r}}))})),tt(v,(function(t,e){Vk(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(!jk(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,s),function(t,e,o){var n=o.getZr(),i="axisPointerLastHighlights",r=Gk(n)[i]||{},s=Gk(n)[i]={};tt(t,(function(t,e){var o=t.axisPointerModel.option;"show"===o.status&&t.triggerEmphasis&&tt(o.seriesDataIndices,(function(t){var e=t.seriesIndex+" | "+t.dataIndex;s[e]=t}))}));var a=[],l=[];tt(r,(function(t,e){!s[e]&&l.push(t)})),tt(s,(function(t,e){!r[e]&&a.push(t)})),l.length&&o.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),a.length&&o.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:a})}(c,0,o),d}}function Vk(t,e,o,n,i){var r=t.axis;if(!r.scale.isBlank()&&r.containData(e))if(t.involveSeries){var s=function(t,e){var o=e.axis,n=o.dim,i=t,r=[],s=Number.MAX_VALUE,a=-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<=s&&((f=0&&a<0)&&(s=f,a=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),a=s.payloadBatch,l=s.snapToValue;a[0]&&null==i.seriesIndex&&Y(i,a[0]),!n&&t.snap&&r.containData(l)&&null!=l&&(e=l),o.showPointer(t,e,a),o.showTooltip(t,s,l)}else o.showPointer(t,e)}function Hk(t,e,o,n){t[e.key]={value:o,payloadBatch:n}}function Bk(t,e,o,n){var i=o.payloadBatch,r=e.axis,s=r.model,a=e.axisPointerModel;if(e.triggerTooltip&&i.length){var l=e.coordSys.model,u=mT(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:s.componentIndex,axisType:s.type,axisId:s.id,value:n,valueLabelOpt:{precision:a.get(["label","precision"]),formatter:a.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function Wk(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 jk(t){return!t||null==t[0]||isNaN(t[0])||null==t[1]||isNaN(t[1])}function zk(t){ST.registerAxisPointerClass("CartesianAxisPointer",xk),t.registerComponentModel(Tk),t.registerComponentView(Nk),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)||[],s=[];tt(o.getCoordinateSystems(),(function(o){if(o.axisPointerEnabled){var a=mT(o.model),l=t.coordSysAxesInfo[a]={};t.coordSysMap[a]=o;var u=o.model.getModel("tooltip",n);if(tt(o.getAxes(),at(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,at(h,!p||"cross",c)),p&&tt(d.otherAxes,at(h,"cross",!1))}}function h(n,a,c){var p=c.model.getModel("axisPointer",i),d=p.get("show");if(d&&("auto"!==d||n||yT(p))){null==a&&(a=p.get("triggerTooltip")),p=n?function(t,e,o,n,i,r){var s=e.getModel("axisPointer"),a={};tt(["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],(function(t){a[t]=z(s.get(t))})),a.snap="category"!==t.type&&!!r,"cross"===s.get("type")&&(a.type="line");var l=a.label||(a.label={});if(null==l.show&&(l.show=!1),"cross"===i){var u=s.get(["label","show"]);if(l.show=null==u||u,!r){var c=a.lineStyle=s.get("crossStyle");c&&X(l,c.textStyle)}}return t.model.getModel("axisPointer",new Ac(a,o,n))}(c,u,i,e,n,a):p;var h=p.get("snap"),f=p.get("triggerEmphasis"),g=mT(c.model),v=a||h||"category"===c.type,y=t.axesInfo[g]={key:g,axis:c,coordSys:o,axisPointerModel:p,triggerTooltip:a,triggerEmphasis:f,involveSeries:v,snap:h,useHandle:yT(p),seriesModels:[],linkGroup:null};l[g]=y,t.seriesInvolved=t.seriesInvolved||v;var m=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,s,n.get(["label","margin"]));gk(t,o,n,i,d)},e}(hk),Kk={line:function(t,e,o,n){return"angle"===t.dim?{type:"Line",shape:Ck(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:Sk(e.cx,e.cy,n[0],n[1],(-o-i/2)*r,(i/2-o)*r)}:{type:"Sector",shape:Sk(e.cx,e.cy,o-i/2,o+i/2,0,2*Math.PI)}}};const Yk=Uk,Xk=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}(jp);var qk=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m(e,t),e.prototype.getCoordSysModel=function(){return this.getReferringComponents("polar",ms).models[0]},e.type="polarAxis",e}(jp);Q(qk,cb);var $k=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}(qk),Zk=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}(qk),Qk=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);Qk.prototype.dataToRadius=Bb.prototype.dataToCoord,Qk.prototype.radiusToData=Bb.prototype.coordToData;const Jk=Qk;var tV=fs(),eV=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],s=t.dataToCoord(r+1)-t.dataToCoord(r),a=Math.abs(s),l=Qi(null==r?"":r+"",e.getFont(),"center","top"),u=Math.max(l.height,7)/a;isNaN(u)&&(u=1/0);var c=Math.max(0,Math.floor(u)),p=tV(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);eV.prototype.dataToAngle=Bb.prototype.dataToCoord,eV.prototype.angleToData=Bb.prototype.coordToData;const oV=eV;var nV=["radius","angle"],iV=function(){function t(t){this.dimensions=nV,this.type="polar",this.cx=0,this.cy=0,this._radiusAxis=new Jk,this._angleAxis=new oV,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]),s=Math.max(i[0],i[1]);n.inverse?r=s-360:s=r+360;var a=Math.sqrt(e*e+o*o);e/=a,o/=a;for(var l=Math.atan2(-o,e)/Math.PI*180,u=ls;)l+=360*u;return[a,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,s=this.r0;return i<=r*r&&i>=s*s}}},t.prototype.convertToPixel=function(t,e,o){return rV(e)===this?this.dataToPoint(o):null},t.prototype.convertFromPixel=function(t,e,o){return rV(e)===this?this.pointToData(o):null},t}();function rV(t){var e=t.seriesModel,o=t.polarModel;return o&&o.coordinateSystem||e&&e.coordinateSystem}const sV=iV;function aV(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(),s=360/n.scale.count();n.inverse?r[1]+=s:r[1]-=s,n.setExtent(r[0],r[1])}}function lV(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 uV={dimensions:nV,create:function(t,e){var o=[];return t.eachComponent("polar",(function(t,n){var i=new sV(n+"");i.update=aV;var r=i.getRadiusAxis(),s=i.getAngleAxis(),a=t.findAxisModel("radiusAxis"),l=t.findAxisModel("angleAxis");lV(r,a),lV(s,l),function(t,e,o){var n=e.get("center"),i=o.getWidth(),r=o.getHeight();t.cx=Dr(n[0],i),t.cy=Dr(n[1],r);var s=t.getRadiusAxis(),a=Math.min(i,r)/2,l=e.get("radius");null==l?l=[0,"100%"]:lt(l)||(l=[0,l]);var u=[Dr(l[0],a),Dr(l[1],a)];s.inverse?s.setExtent(u[1],u[0]):s.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",ms).models[0];t.coordinateSystem=e.coordinateSystem}})),o}};var cV=["axisLine","axisLabel","axisTick","minorTick","splitLine","minorSplitLine","splitArea"];function pV(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 dV(t){return t.getRadiusAxis().inverse?0:1}function hV(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 fV=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(),s=o.getMinorTicksCoords(),a=et(o.getViewLabels(),(function(t){t=z(t);var e=o.scale,n="ordinal"===e.type?e.getRawOrdinalNumber(t.tickValue):t.tickValue;return t.coord=o.dataToCoord(n),t}));hV(a),hV(r),tt(cV,(function(e){!t.get([e,"show"])||o.scale.isBlank()&&"axisLine"!==e||gV[e](this.group,t,n,r,s,i,a)}),this)}},e.type="angleAxis",e}(ST),gV={axisLine:function(t,e,o,n,i,r){var s,a=e.getModel(["axisLine","lineStyle"]),l=dV(o),u=l?0:1;(s=0===r[u]?new ug({shape:{cx:o.cx,cy:o.cy,r:r[l]},style:a.getLineStyle(),z2:1,silent:!0}):new Pg({shape:{cx:o.cx,cy:o.cy,r:r[l],r0:r[u]},style:a.getLineStyle(),z2:1,silent:!0})).style.fill=null,t.add(s)},axisTick:function(t,e,o,n,i,r){var s=e.getModel("axisTick"),a=(s.get("inside")?-1:1)*s.get("length"),l=r[dV(o)],u=et(n,(function(t){return new Bg({shape:pV(o,[l,l+a],t.coord)})}));t.add(Sv(u,{style:X(s.getModel("lineStyle").getLineStyle(),{stroke:e.get(["axisLine","lineStyle","color"])})}))},minorTick:function(t,e,o,n,i,r){if(i.length){for(var s=e.getModel("axisTick"),a=e.getModel("minorTick"),l=(s.get("inside")?-1:1)*a.get("length"),u=r[dV(o)],c=[],p=0;pf?"left":"right",y=Math.abs(h[1]-g)/d<.3?"middle":h[1]>g?"top":"bottom";if(a&&a[p]){var m=a[p];ht(m)&&m.textStyle&&(s=new Ac(m.textStyle,l,l.ecModel))}var C=new Bl({silent:fT.isLabelSilent(e),style:ac(s,{x:h[0],y:h[1],fill:s.getTextColor()||e.get(["axisLine","lineStyle","color"]),text:n.formattedLabel,align:v,verticalAlign:y})});if(t.add(C),c){var w=fT.makeAxisEventDataBase(e);w.targetType="axisLabel",w.value=n.rawLabel,Wl(C).eventData=w}}),this)},splitLine:function(t,e,o,n,i,r){var s=e.getModel("splitLine").getModel("lineStyle"),a=s.get("color"),l=0;a=a instanceof Array?a:[a];for(var u=[],c=0;c=0?"p":"n",x=w;m&&(n[a][E]||(n[a][E]={p:w,n:w}),x=n[a][E][R]);var T=void 0,O=void 0,D=void 0,P=void 0;if("radius"===p.dim){var A=p.dataToCoord(_)-w,M=r.dataToCoord(E);Math.abs(A)=P})}}}))};var RV={startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:0}},xV={splitNumber:5},TV=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 OV(t,e){e=e||{};var o=t.coordinateSystem,n=t.axis,i={},r=n.position,s=n.orient,a=o.getRect(),l=[a.x,a.x+a.width,a.y,a.y+a.height],u={horizontal:{top:l[2],bottom:l[3]},vertical:{left:l[0],right:l[1]}};i.position=["vertical"===s?u.vertical[r]:l[0],"horizontal"===s?u.horizontal[r]:l[3]],i.rotation=Math.PI/2*{horizontal:0,vertical:1}[s],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"],PV=["splitArea","splitLine"],AV=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 s=this._axisGroup;this._axisGroup=new vr;var a=OV(e),l=new fT(e,a);tt(DV,l.add,l),r.add(this._axisGroup),r.add(l.getGroup()),tt(PV,(function(t){e.get([t,"show"])&&MV[t](this,this.group,this._axisGroup,e)}),this),Pv(s,this._axisGroup,e),t.prototype.render.call(this,e,o,n,i)},e.prototype.remove=function(){ET(this)},e.type="singleAxis",e}(ST),MV={splitLine:function(t,e,o,n){var i=n.axis;if(!i.scale.isBlank()){var r=n.getModel("splitLine"),s=r.getModel("lineStyle"),a=s.get("color");a=a instanceof Array?a:[a];for(var l=s.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 HV(e)===this?this.dataToPoint(o):null},t.prototype.convertFromPixel=function(t,e,o){return HV(e)===this?this.pointToData(o):null},t}();function HV(t){var e=t.seriesModel,o=t.singleAxisModel;return o&&o.coordinateSystem||e&&e.coordinateSystem}const BV=VV,WV={create:function(t,e){var o=[];return t.eachComponent("singleAxis",(function(n,i){var r=new BV(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",ms).models[0];t.coordinateSystem=e&&e.coordinateSystem}})),o},dimensions:kV};var jV=["x","y"],zV=["width","height"],UV=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,s=r.coordinateSystem,a=XV(s,1-YV(r)),l=s.dataToPoint(e)[0],u=n.get("type");if(u&&"none"!==u){var c=fk(n),p=KV[u](r,l,a);p.style=c,t.graphicKey=p.type,t.pointer=p}mk(e,t,OV(o),o,n,i)},e.prototype.getHandleTransform=function(t,e,o){var n=OV(e,{labelInside:!1});n.labelMargin=o.get(["handle","margin"]);var i=yk(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,s=YV(i),a=XV(r,s),l=[t.x,t.y];l[s]+=e[s],l[s]=Math.min(a[1],l[s]),l[s]=Math.max(a[0],l[s]);var u=XV(r,1-s),c=(u[1]+u[0])/2,p=[c,c];return p[s]=l[s],{x:l[0],y:l[1],rotation:t.rotation,cursorPoint:p,tooltipOption:{verticalAlign:"middle"}}},e}(hk),KV={line:function(t,e,o){return{type:"Line",subPixelOptimize:!0,shape:Ck([e,o[0]],[e,o[1]],YV(t))}},shadow:function(t,e,o){var n=t.getBandWidth(),i=o[1]-o[0];return{type:"Rect",shape:wk([e-n/2,o[0]],[n,i],YV(t))}}};function YV(t){return t.isHorizontal()?0:1}function XV(t,e){var o=t.getRect();return[o[jV[e]],o[jV[e]]+o[zV[e]]]}const qV=UV;var $V=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 ZV(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[Mp[e][0]]||null!=t[Mp[e][1]]&&null!=t[Mp[e][2]]}(e,t)&&(o[t]="auto"),null!=o[t]&&"auto"!==o[t]}));kp(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),ZV(e,i)},e.prototype.mergeOption=function(e){t.prototype.mergeOption.apply(this,arguments),ZV(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}(jp);var JV=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(),s=i.getOrient(),a=e.getLocaleModel();this._renderDayRect(t,r,n),this._renderLines(t,r,s,n),this._renderYearText(t,r,s,n),this._renderMonthText(t,a,s,n),this._renderWeekText(t,a,r,s,n)},e.prototype._renderDayRect=function(t,e,o){for(var n=t.coordinateSystem,i=t.getModel("itemStyle").getItemStyle(),r=n.getCellWidth(),s=n.getCellHeight(),a=e.start.time;a<=e.end.time;a=n.getNextNDay(a,1).time){var l=n.dataToRect([a],!1).tl,u=new Rl({shape:{x:l[0],y:l[1],width:r,height:s},cursor:"default",style:i});o.add(u)}},e.prototype._renderLines=function(t,e,o,n){var i=this,r=t.coordinateSystem,s=t.getModel(["splitLine","lineStyle"]).getLineStyle(),a=t.get(["splitLine","show"]),l=s.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]),a&&i._drawSplitline(l,s,n)}d(r.getNextNDay(e.end.time,1).formatedDate),a&&this._drawSplitline(i._getEdgesPoints(i._tlpoints,l,o),s,n),a&&this._drawSplitline(i._getEdgesPoints(i._blpoints,l,o),s,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 Gg({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=[],s=0;s<7;s++){var a=n.getNextNDay(i.time,s),l=n.dataToRect([a.time],!1);r[2*a.day]=l.tl,r[2*a.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],s=e[1],a=["center","bottom"];"bottom"===n?(s+=i,a=["center","top"]):"left"===n?r-=i:"right"===n?(r+=i,a=["center","top"]):s-=i;var l=0;return"left"!==n&&"right"!==n||(l=Math.PI/2),{rotation:l,x:r,y:s,style:{align:a[0],verticalAlign:a[1]}}},e.prototype._renderYearText=function(t,e,o,n){var i=t.getModel("yearLabel");if(i.get("show")){var r=i.get("margin"),s=i.get("position");s||(s="horizontal"!==o?"top":"left");var a=[this._tlpoints[this._tlpoints.length-1],this._blpoints[0]],l=(a[0][0]+a[1][0])/2,u=(a[0][1]+a[1][1])/2,c="horizontal"===o?0:1,p={top:[l,a[c][1]],bottom:[l,a[1-c][1]],left:[a[1-c][0],u],right:[a[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:ac(i,{text:g})});v.attr(this._yearTextPositionControl(v,p[s],o,s,r)),n.add(v)}},e.prototype._monthTextPositionControl=function(t,e,o,n,i){var r="left",s="top",a=t[0],l=t[1];return"horizontal"===o?(l+=i,e&&(r="center"),"start"===n&&(s="bottom")):(a+=i,e&&(s="middle"),"start"===n&&(r="right")),{x:a,y:l,align:r,verticalAlign:s}},e.prototype._renderMonthText=function(t,e,o,n){var i=t.getModel("monthLabel");if(i.get("show")){var r=i.get("nameMap"),s=i.get("margin"),a=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"===a?0:1,p="horizontal"===o?0:1;s="start"===a?-s:s;for(var d="center"===l,h=0;h=n.start.time&&o.times.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/eH)-Math.floor(o[0].time/eH)+1,i=new Date(o[0].time),r=i.getDate(),s=o[1].date.getDate();i.setDate(r+n-1);var a=i.getDate();if(a!==s)for(var l=i.getTime()-o[1].time>0?1:-1;(a=i.getDate())!==s&&(i.getTime()-o[1].time)*l>0;)n-=l,i.setDate(a-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 nH(t){var e=t.calendarModel,o=t.seriesModel;return e?e.coordinateSystem:o?o.coordinateSystem:null}const iH=oH;function rH(t,e){var o;return tt(e,(function(e){null!=t[e]&&"auto"!==t[e]&&(o=!0)})),o}var sH=["transition","enterFrom","leaveTo"],aH=sH.concat(["enterAnimation","updateAnimation","leaveAnimation"]);function lH(t,e,o){if(o&&(!t[o]&&e[o]&&(t[o]={}),t=t[o],e=e[o]),t&&e)for(var n=o?sH:aH,i=0;i=0;l--){var d,h,f;if(f=null!=(h=cs((d=o[l]).id,null))?i.get(h):null){var g=f.parent,v=(p=pH(g),{}),y=Fp(f,d,g===n?{width:r,height:s}:{width:p.width,height:p.height},null,{hv:d.hv,boundingMode:d.bounding},v);if(!pH(f).isNew&&y){for(var m=d.transition,C={},w=0;w=0)?C[S]=b:f[S]=b}qu(f,C,t,0)}else f.attr(v)}}},e.prototype._clear=function(){var t=this,e=this._elMap;e.each((function(o){gH(o,pH(o).option,e,t._lastGraphicModel)})),this._elMap=Lt()},e.prototype.dispose=function(){this._clear()},e.type="graphic",e}(Vf);function hH(t){var e=new(kt(cH,t)?cH[t]:yv(t))({});return pH(e).type=t,e}function fH(t,e,o,n){var i=hH(o);return e.add(i),n.set(t,i),pH(i).id=t,pH(i).isNew=!0,i}function gH(t,e,o,n){t&&t.parent&&("group"===t.type&&t.traverse((function(t){gH(t,e,o,n)})),gG(t,e,n),o.removeKey(pH(t).id))}function vH(t,e,o,n){t.isGroup||tt([["cursor",la.prototype.cursor],["zlevel",n||0],["z",o||0],["z2",0]],(function(o){var n=o[0];kt(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}})),kt(e,"draggable")&&(t.draggable=e.draggable),null!=e.name&&(t.name=e.name),null!=e.id&&(t.id=e.id)}var yH=["x","y","radius","angle","single"],mH=["cartesian2d","polar","singleAxis"];function CH(t){return t+"Axis"}function wH(t){var e=t.ecModel,o={infoList:[],infoMap:Lt()};return t.eachTargetAxis((function(t,n){var i=e.getComponent(CH(t),n);if(i){var r=i.getCoordSysModel();if(r){var s=r.uid,a=o.infoMap.get(s);a||(a={model:r,axisModels:[]},o.infoList.push(a),o.infoMap.set(s,a)),a.axisModels.push(i)}}})),o}var SH=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}(),bH=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=_H(t);this.settledOption=n,this.mergeDefaultAndTheme(t,o),this._doInit(n)},e.prototype.mergeOption=function(t){var e=_H(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(yH,(function(o){var n=this.getReferringComponents(CH(o),Cs);if(n.specified){e=!0;var i=new SH;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 SH;if(r.add(i.componentIndex),t.set(o,r),n=!1,"x"===o||"y"===o){var s=i.getReferringComponents("grid",ms).models[0];s&&tt(e,(function(t){i.componentIndex!==t.componentIndex&&s===t.getReferringComponents("grid",ms).models[0]&&r.add(t.componentIndex)}))}}}n&&r(o.findComponents({mainType:"singleAxis",filter:function(t){return t.get("orient",!0)===e}}),"single"),n&&tt(yH,(function(e){if(n){var i=o.findComponents({mainType:CH(e),filter:function(t){return"category"===t.get("type",!0)}});if(i[0]){var r=new SH;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]],s=null!=t[n[1]];r&&!s?e[i]="percent":!r&&s?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(CH(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(CH(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=CH(this._dimName),n=e.getReferringComponents(o,ms).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 z(this._minMaxSpan)},t.prototype.calculateDataWindow=function(t){var e,o=this._dataExtent,n=this.getAxisModel().axis.scale,i=this._dataZoomModel.getRangePropMode(),r=[0,100],s=[],a=[];OH(["start","end"],(function(l,u){var c=t[l],p=t[l+"Value"];"percent"===i[u]?(null==c&&(c=r[u]),p=n.parse(Or(c,r,o))):(e=!0,c=Or(p=null==p?o[u]:n.parse(p),o,r)),a[u]=null==p||isNaN(p)?o[u]:p,s[u]=null==c||isNaN(c)?r[u]:c})),DH(a),DH(s);var l=this._minMaxSpan;function u(t,e,o,i,r){var s=r?"Span":"ValueSpan";pI(0,t,o,"all",l["min"+s],l["max"+s]);for(var a=0;a<2;a++)e[a]=Or(t[a],o,i,!0),r&&(e[a]=n.parse(e[a]))}return e?u(a,s,o,r,!1):u(s,a,r,o,!0),{valueWindow:a,percentWindow:s}},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];OH(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&&OH(n,(function(t){var e=t.getData(),n=e.mapDimensionsAll(o);if(n.length){if("weakFilter"===i){var s=e.getStore(),a=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 OH(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)}}));OH(n,(function(t){e.setApproximateExtent(r,t)}))}}))}},t.prototype._updateMinMaxSpan=function(){var t=this._minMaxSpan={},e=this._dataZoomModel,o=this._dataExtent;OH(["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=Or(o[0]+r,o,[0,100],!0):null!=i&&(r=Or(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 AH=PH,MH={getTargetSeries:function(t){function e(e){t.eachComponent("dataZoom",(function(o){o.eachTargetAxis((function(n,i){var r=t.getComponent(CH(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 AH(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 IH=!1;function LH(t){IH||(IH=!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)||a(t)}));do{o=!1,t.eachComponent("dataZoom",s)}while(o);function s(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)&&(a(t),o=!0)}function a(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 NH(t){t.registerComponentModel(RH),t.registerComponentView(TH),LH(t)}var FH=function(){},GH={};function kH(t,e){GH[t]=e}function VH(t){return GH[t]}const HH=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=VH(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}(jp);function BH(t,e){var o=wp(e.get("padding")),n=e.getItemStyle(["color","opacity"]);return n.fill=e.get("backgroundColor"),new Rl({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 WH=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"),s="vertical"===t.get("orient"),a=t.get("feature")||{},l=this._features||(this._features={}),u=[];tt(a,(function(t,e){u.push(e)})),new mw(this._featureNames||[],u).add(c).update(c).remove(at(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()},s=Np(n,r,i);Lp(e.get("orient"),t,e.get("itemGap"),s.width,s.height),Fp(t,n,r,i)}(i,t,o),i.add(BH(i.getBoundingRect(),t)),s||i.eachChild((function(t){var e=t.__title,n=t.ensureState("emphasis"),s=n.textConfig||(n.textConfig={}),a=t.getTextContent(),l=a&&a.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()&&(s.position="top",d=!0);var h=d?-5-c.height:r+10;p+c.width/2>o.getWidth()?(s.position=["100%",h],u.align="right"):p-c.width/2<0&&(s.position=[0,h],u.align="left")}}))}function c(c,p){var d,h=u[c],f=u[p],g=a[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=VH(h);if(!y)return;d=new y}l[h]=d}else if(!(d=l[f]))return;d.uid=Ic("toolbox-feature"),d.model=v,d.ecModel=e,d.api=o;var m=d instanceof FH;h||!f?!v.get("show")||m&&d.unusable?m&&d.remove&&d.remove(e,o):(function(n,a,l){var u,c,p=n.getModel("iconStyle"),d=n.getModel(["emphasis","iconStyle"]),h=a instanceof FH&&a.getIcons?a.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=Iv(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),Gv({el:h,componentModel:t,itemName:u,formatterParamsExtra:{title:c[u]}}),h.__title=c[u],h.on("mouseover",(function(){var e=d.getItemStyle(),n=s?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:Eu)(h),i.add(h),h.on("click",st(a.onclick,a,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:Eu)(n[t])},d instanceof FH&&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 FH&&t.updateView&&t.updateView(t.model,e,o,n)}))},e.prototype.remove=function(t,e){tt(this._features,(function(o){o instanceof FH&&o.remove&&o.remove(t,e)})),this.group.removeAll()},e.prototype.dispose=function(t,e){tt(this._features,(function(o){o instanceof FH&&o.dispose&&o.dispose(t,e)}))},e.type="toolbox",e}(Vf);const jH=WH,zH=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",s=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")}),a=S.browser;if(ut(MouseEvent)&&(a.newEdge||!a.ie&&!a.edge)){var l=document.createElement("a");l.download=n+"."+r,l.target="_blank",l.href=s;var u=new MouseEvent("click",{view:document.defaultView,bubbles:!0,cancelable:!1});l.dispatchEvent(u)}else if(window.navigator.msSaveOrOpenBlob||i){var c=s.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}(FH);var UH="__ec_magicType_stack__",KH=[["line","bar"],["stack"]],YH=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(XH[o]){var r,s={series:[]};tt(KH,(function(t){$(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=XH[o](e,i,t,n);r&&(X(r,t.option),s.series.push(r));var a=t.coordinateSystem;if(a&&"cartesian2d"===a.type&&("line"===o||"bar"===o)){var l=a.getAxesByScale("ordinal")[0];if(l){var u=l.dim+"Axis",c=t.getReferringComponents(u,ms).models[0].componentIndex;s[u]=s[u]||[];for(var p=0;p<=c;p++)s[u][c]=s[u][c]||{};s[u][c].boundaryGap="bar"===o}}}));var a=o;"stack"===o&&(r=U({stack:n.option.title.tiled,tiled:n.option.title.stack},n.option.title),"emphasis"!==n.get(["iconStatus",o])&&(a="tiled")),e.dispatchAction({type:"changeMagicType",currentType:a,newOption:s,newTitle:r,featureName:"magicType"})}},e}(FH),XH={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")===UH;if("line"===t||"bar"===t)return n.setIconStatus("stack",i?"normal":"emphasis"),U({id:e,stack:i?"":UH},n.get(["option","stack"])||{},!0)}};JC({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},(function(t,e){e.mergeOption(t.newOption)}));const qH=YH;var $H=new Array(60).join("-"),ZH="\t";function QH(t){return t.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}var JH=new RegExp("[\t]+","g");var tB=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"),s=n.get("lang")||[];r.innerHTML=s[0]||n.get("title"),r.style.cssText="margin:10px 20px",r.style.color=n.get("textColor");var a=document.createElement("div"),l=document.createElement("textarea");a.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 s=r.dim+"_"+r.index;e[s]||(e[s]={categoryAxis:r,valueAxis:i.getOtherAxis(r),series:[]},n.push({axisDim:r.dim,axisIndex:r.index})),e[s].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}))),s=[o.model.getCategories()];tt(t.series,(function(t){var e=t.getRawData();s.push(t.getRawData().mapArray(e.mapDimension(i),(function(t){return t})))}));for(var a=[r.join(ZH)],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(JH),(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=gB[t.brushType](0,o,e);t.__rangeOffset={offset:yB[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=gB[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,s,a=this.findTargetInfo(t,e);if(t.range=t.range||[],a&&!0!==a){t.panelId=a.panelId;var l=gB[t.brushType](0,a.coordSys,t.coordRange),u=t.__rangeOffset;t.range=u?yB[t.brushType](l.values,u.offset,(o=l.xyMinMax,n=u.xyMinMax,i=CB(o),r=CB(n),s=[i[0]/r[0],i[1]/r[1]],isNaN(s[0])&&(s[0]=1),isNaN(s[1])&&(s[1]=1),s)):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:CL(n),isTargetByCursor:SL(n,t,o.coordSysModel),getLinearBrushOtherExtent:wL(n)}}))},t.prototype.controlSeries=function(t,e,o){var n=this.findTargetInfo(t,o);return!0===n||n&&$(n.coordSyses,e.coordinateSystem)>=0},t.prototype.findTargetInfo=function(t,e){for(var o=this._targetInfoList,n=pB(e,t),i=0;it[1]&&t.reverse(),t}function pB(t,e){return vs(t,e,{includeMainTypes:lB})}var dB={grid:function(t,e){var o=t.xAxisModels,n=t.yAxisModels,i=t.gridModels,r=Lt(),s={},a={};(o||n||i)&&(tt(o,(function(t){var e=t.axis.grid.model;r.set(e.id,e),s[e.id]=!0})),tt(n,(function(t){var e=t.axis.grid.model;r.set(e.id,e),a[e.id]=!0})),tt(i,(function(t){r.set(t.id,t),s[t.id]=!0,a[t.id]=!0})),r.each((function(t){var i=t.coordinateSystem,r=[];tt(i.getCartesians(),(function(t,e){($(o,t.getAxis("x").model)>=0||$(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:fB.grid,xAxisDeclared:s[t.id],yAxisDeclared:a[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:fB.geo})}))}},hB=[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}],fB={grid:function(){return this.coordSys.master.getRect().clone()},geo:function(){var t=this.coordSys,e=t.getBoundingRect().clone();return e.applyTransform(xv(t)),e}},gB={lineX:at(vB,0),lineY:at(vB,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),s=[cB([i[0],r[0]]),cB([i[1],r[1]])];return{values:s,xyMinMax:s}},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 vB(t,e,o,n){var i=o.getAxis(["x","y"][t]),r=cB(et([0,1],(function(t){return e?i.coordToData(i.toLocalCoord(n[t]),!0):i.toGlobalCoord(i.dataToCoord(n[t]))}))),s=[];return s[t]=r,s[1-t]=[NaN,NaN],{values:r,xyMinMax:s}}var yB={lineX:at(mB,0),lineY:at(mB,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 mB(t,e,o,n){return[e[0]-n[t]*o[0],e[1]-n[t]*o[1]]}function CB(t){return t?[t[0][1]-t[0][0],t[1][1]-t[1][0]]:[NaN,NaN]}const wB=uB;var SB,bB,_B=tt,EB=es+"toolbox-dataZoom_",RB=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 mL(o.getZr()),this._brushController.on("brush",st(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 s=new wB(TB(t),e,{include:["grid"]}).makePanelOpts(i,(function(t){return t.xAxisDeclared&&!t.yAxisDeclared?"lineX":!t.xAxisDeclared&&t.yAxisDeclared?"lineY":"rect"}));o._brushController.setPanels(s).enableBrush(!(!r||!s.length)&&{brushType:"auto",brushStyle:t.getModel("brushStyle").getItemStyle()})}(t,e,this,n,o),function(t,e){t.setIconStatus("back",function(t){return rB(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 wB(TB(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=rB(t);nB(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 s=r.getPercentRange();o[0][n]={dataZoomId:n,start:s[0],end:s[1]}}}})),o.push(e)}(n,o),this._dispatchZoomAction(o)}function i(t,e,i){var r=e.getAxis(t),s=r.model,a=function(t,e,o){var n;return o.eachComponent({mainType:"dataZoom",subType:"select"},(function(o){o.getAxisModel(t,e.componentIndex)&&(n=o)})),n}(t,s,n),l=a.findRepresentativeAxisProxy(s).getMinMaxSpan();null==l.minValueSpan&&null==l.maxValueSpan||(i=pI(0,i.slice(),r.scale.getExtent(),0,l.minValueSpan,l.maxValueSpan)),a&&(o[a.id]={dataZoomId:a.id,startValue:i[0],endValue:i[1]})}},e.prototype._dispatchZoomAction=function(t){var e=[];_B(t,(function(t,o){e.push(z(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}(FH),xB={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(function(t){var e=rB(t),o=e[e.length-1];e.length>1&&e.pop();var n={};return nB(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 TB(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}SB="dataZoom",bB=function(t){var e=t.getComponent("toolbox",0),o=["feature","dataZoom"];if(e&&null!=e.get(o)){var n=e.getModel(o),i=[],r=vs(t,TB(n));return _B(r.xAxisModels,(function(t){return s(t,"xAxis","xAxisIndex")})),_B(r.yAxisModels,(function(t){return s(t,"yAxis","yAxisIndex")})),i}function s(t,e,o){var r=t.componentIndex,s={type:"select",$fromToolbox:!0,filterMode:n.get("filterMode",!0)||"filter",id:EB+e+r};s[o]=r,i.push(s)}},xt(null==dd.get(SB)&&bB),dd.set(SB,bB);const OB=RB,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}(jp);function PB(t){var e=t.get("confine");return null!=e?!!e:"richText"===t.get("renderMode")}function AB(t){if(S.domSupported)for(var e=document.documentElement.style,o=0,n=t.length;o-1?(u+="top:50%",c+="translateY(-50%) rotate("+(s="left"===a?-225:-45)+"deg)"):(u+="left:50%",c+="translateX(-50%) rotate("+(s="top"===a?225:45)+"deg)");var p=s*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+s;else if(t){r.innerHTML="",lt(t)||(t=[t]);for(var a=0;a=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=XB(n,o);this._ticket="";var r=n.dataByCoordSys,s=function(t,e,o){var n=ys(t).queryOptionMap,i=n.keys()[0];if(i&&"series"!==i){var r,s=ws(e,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}).models[0];if(s)return o.getViewOfComponentModel(s).group.traverse((function(e){var o=Wl(e).tooltipConfig;if(o&&o.name===t.name)return r=e,!0})),r?{componentMainType:i,componentIndex:s.componentIndex,el:r}:void 0}}(n,e,o);if(s){var a=s.el.getBoundingRect().clone();a.applyTransform(s.el.transform),this._tryShow({offsetX:a.x+a.width/2,offsetY:a.y+a.height/2,target:s.el,position:n.position,positionDefault:"bottom"},i)}else if(n.tooltip&&null!=n.x&&null!=n.y){var l=UB;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=Fk(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._tooltipModel&&i.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,n.from!==this.uid&&this._hide(XB(n,o))},e.prototype._manuallyAxisShowTip=function(t,e,o,n){var i=n.seriesIndex,r=n.dataIndex,s=e.getComponent("axisPointer").coordSysAxesInfo;if(null!=i&&null!=r&&null!=s){var a=e.getSeriesByIndex(i);if(a&&"axis"===YB([a.getData().getItemModel(r),a,(a.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=st(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=YB([e.tooltipOption],n),s=this._renderMode,a=[],l=hf("section",{blocks:[],noHeader:!0}),u=[],c=new Ef;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=vk(i,e.axis,o,t.seriesDataIndices,t.valueLabelOpt),p=hf("section",{header:r,noHeader:!Tt(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",Op(f.color),s);var g=xh(d.formatTooltip(h,!0,null)),v=g.frag;if(v){var y=YB([d],n).get("valueFormatter");p.blocks.push(y?Y({valueFormatter:y},v):v)}g.text&&u.push(g.text),a.push(f)}}))}}))})),l.blocks.reverse(),u.reverse();var p=e.position,d=r.get("order"),h=Cf(l,c,s,d,o.get("useUTC"),r.get("textStyle"));h&&u.unshift(h);var f="richText"===s?"\n\n":"
",g=u.join(f);this._showOrMove(r,(function(){this._updateContentNotChangedOnAxis(t,a)?this._updatePosition(r,p,i[0],i[1],this._tooltipContent,a):this._showTooltipContent(r,g,a,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,s=n.getSeriesByIndex(r),a=i.dataModel||s,l=i.dataIndex,u=i.dataType,c=a.getData(u),p=this._renderMode,d=t.positionDefault,h=YB([c.getItemModel(l),a,s&&(s.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),f=h.get("trigger");if(null==f||"item"===f){var g=a.getDataParams(l,u),v=new Ef;g.marker=v.makeTooltipMarker("item",Op(g.color),p);var y=xh(a.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_"+a.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],s=this._ecModel.getComponent(n.componentMainType,n.componentIndex);s&&r.push(s),r.push({formatter:i.content});var a=t.positionDefault,l=YB(r,this._tooltipModel,a?{position:a}:null),u=l.get("content"),c=Math.random()+"",p=new Ef;this._showOrMove(l,(function(){var o=z(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,s,a,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent;u.setEnterable(t.get("enterable"));var c=t.get("formatter");s=s||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=Ep(p,o,!0)}else if(ut(c)){var g=st((function(e,n){e===this._ticket&&(u.setContent(n,l,t,d,s),this._updatePosition(t,s,i,r,u,o,a))}),this);this._ticket=n,p=c(o,n,g)}else p=c;u.setContent(p,l,t,d,s),u.show(t,d),this._updatePosition(t,s,i,r,u,o,a)}},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,s){var a=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=s&&s.getBoundingRect().clone();if(s&&d.applyTransform(s.transform),ut(e)&&(e=e([o,n],r,i.el,d,{viewSize:[a,l],contentSize:u.slice()})),lt(e))o=Dr(e[0],a),n=Dr(e[1],l);else if(ht(e)){var h=e;h.width=u[0],h.height=u[1];var f=Np(h,{width:a,height:l});o=f.x,n=f.y,c=null,p=null}else if(ct(e)&&s){var g=function(t,e,o,n){var i=o[0],r=o[1],s=Math.ceil(Math.SQRT2*n)+8,a=0,l=0,u=e.width,c=e.height;switch(t){case"inside":a=e.x+u/2-i/2,l=e.y+c/2-r/2;break;case"top":a=e.x+u/2-i/2,l=e.y-r-s;break;case"bottom":a=e.x+u/2-i/2,l=e.y+c+s;break;case"left":a=e.x-i-s,l=e.y+c/2-r/2;break;case"right":a=e.x+u+s,l=e.y+c/2-r/2}return[a,l]}(e,d,u,t.get("borderWidth"));o=g[0],n=g[1]}else g=function(t,e,o,n,i,r,s){var a=o.getSize(),l=a[0],u=a[1];return null!=r&&(t+l+r+2>n?t-=l+r:t+=r),null!=s&&(e+u+s>i?e-=u+s:e+=s),[t,e]}(o,n,i,a,l,c?null:20,p?null:20),o=g[0],n=g[1];c&&(o-=qB(c)?u[0]/2:"right"===c?u[0]:0),p&&(n-=qB(p)?u[1]/2:"bottom"===p?u[1]:0),PB(t)&&(g=function(t,e,o,n,i){var r=o.getSize(),s=r[0],a=r[1];return t=Math.min(t+s,n)-s,e=Math.min(e+a,i)-a,[t=Math.max(t,0),e=Math.max(e,0)]}(o,n,i,a,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 s=o.dataByAxis||[],a=(t[r]||{}).dataByAxis||[];(i=i&&s.length===a.length)&&tt(s,(function(t,o){var r=a[o]||{},s=t.seriesDataIndices||[],l=r.seriesDataIndices||[];(i=i&&t.value===r.value&&t.axisType===r.axisType&&t.axisId===r.axisId&&s.length===l.length)&&tt(s,(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],s=n[o];r&&s&&s.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(),Ik("itemTooltip",e))},e.type="tooltip",e}(Vf);function YB(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 s=t[r];s&&(s instanceof Ac&&(s=s.get("tooltip",!0)),ct(s)&&(s={formatter:s}),s&&(n=new Ac(s,n,i)))}return n}function XB(t,e){return t.dispatchAction||st(e.dispatchAction,e)}function qB(t){return"center"===t||"middle"===t}const $B=KB;var ZB=["rect","polygon","keep","clear"];function QB(t,e){var o=os(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={}),s=r.brush||(r.brush={}),a=s.type||(s.type=[]);a.push.apply(a,n),function(t){var e={};tt(t,(function(t){e[t]=1})),t.length=0,tt(e,(function(e,o){t.push(o)}))}(a),e&&!a.length&&a.push.apply(a,ZB)}}var JB=tt;function tW(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}function eW(t,e,o){var n={};return JB(e,(function(e){var i,r=n[e]=((i=function(){}).prototype.__hidden=i.prototype,new i);JB(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=z(i)).type="colorAlpha",r.__hidden.__alphaForOpacity=new oA(i))}}))})),n}function oW(t,e,o){var n;tt(o,(function(t){e.hasOwnProperty(t)&&tW(e[t])&&(n=!0)})),n&&tt(o,(function(o){e.hasOwnProperty(o)&&tW(e[o])?t[o]=z(e[o]):delete t[o]}))}var nW={lineX:iW(0),lineY:iW(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,s=t.width,a=t.height,l=n[0];return!!(mb(n,i,r)||mb(n,i+s,r)||mb(n,i,r+a)||mb(n,i+s,r+a)||so.create(t).contain(l[0],l[1])||Lv(i,r,i+s,r,n)||Lv(i,r,i,r+a,n)||Lv(i+s,r,i+s,r+a,n)||Lv(i,r+a,i+s,r+a,n))||void 0}}};function iW(t){var e=["x","y"],o=["width","height"];return{point:function(e,o,n){if(e){var i=n.range;return rW(e[t],i)}},rect:function(n,i,r){if(n){var s=r.range,a=[n[e[t]],n[e[t]]+n[o[t]]];return a[1]e[0][1]&&(e[0][1]=r[0]),r[1]e[1][1]&&(e[1][1]=r[1])}return e&&fW(e)}};function fW(t){return new so(t[0][0],t[1][0],t[0][1]-t[0][0],t[1][1]-t[1][0])}const gW=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 mL(e.getZr())).on("brush",st(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){uW(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:z(o),$from:e}),t.isEnd&&this.api.dispatchAction({type:"brushEnd",brushId:e,areas:z(o),$from:e})},e.type="brush",e}(Vf);function vW(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 yW=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&&oW(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 vW(this.option,t)}),this))},e.prototype.setBrushOption=function(t){this.brushOption=vW(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}(jp);var mW=["rect","polygon","lineX","lineY","keep","clear"];const CW=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:mW.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}(FH);var wW=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}(jp),SW=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"),s=t.get("textAlign"),a=bt(t.get("textBaseline"),t.get("textVerticalAlign")),l=new Bl({style:ac(i,{text:t.get("text"),fill:i.getTextColor()},{disableBox:!0}),z2:10}),u=l.getBoundingRect(),c=t.get("subtext"),p=new Bl({style:ac(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(){Dp(d,"_"+t.get("target"))})),h&&p.on("click",(function(){Dp(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"));s||("middle"===(s=t.get("left")||t.get("right"))&&(s="center"),"right"===s?y.x+=y.width:"center"===s&&(y.x+=y.width/2)),a||("center"===(a=t.get("top")||t.get("bottom"))&&(a="middle"),"bottom"===a?y.y+=y.height:"middle"===a&&(y.y+=y.height/2),a=a||"top"),n.x=y.x,n.y=y.y,n.markRedraw();var m={align:s,verticalAlign:a};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 Rl({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),bW=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=cs(rs(e),"");ht(e)?(n=z(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 jw([{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}(jp);const _W=bW;var EW=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(_W.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}(_W);Q(EW,Rh.prototype);const RW=EW,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 TW=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 OW=TW;var DW=Math.PI,PW=fs(),AW=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"),s=this._axis=this._createAxis(n,t);t.formatTooltip=function(t){return hf("nameValue",{noName:!0,value:s.scale.getLabel({value:t})})},tt(["AxisLine","AxisTick","Control","CurrentPointer"],(function(e){this["_render"+e](n,i,s,t)}),this),this._renderAxisLabel(n,r,s,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,s=t.get(["label","position"]),a=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==s||"auto"===s?"horizontal"===a?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"===a?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,E=d;"left"===C||"bottom"===C?(w&&(n=[0,0],_+=y),S&&(i=[_,0],_+=y),b&&(r=[E-g,0],E-=y)):(w&&(n=[E-g,0],E-=y),S&&(i=[0,0],_+=y),b&&(r=[E-g,0],E-=y));var R=[_,E];return t.get("inverse")&&R.reverse(),{viewRect:l,mainLength:d,orient:a,rotation:p[a],labelRotation:m,labelPosOpt:o,labelAlign:t.get(["label","align"])||u[a],labelBaseline:t.get(["label","verticalAlign"])||t.get(["label","baseline"])||c[a],playPosition:n,prevBtnPosition:i,nextBtnPosition:r,axisExtent:R,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],s=i.x,a=i.y+i.height;ze(r,r,[-s,-a]),Ue(r,r,-DW/2),ze(r,r,[s,a]),(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 kS({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 s=new OW("value",i,t.axisExtent,n);return s.model=e,s},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 s=this._progressLine=new Bg({shape:{x1:i[0],x2:this._currentPointer?this._currentPointer.x:i[0],y1:0,y2:0},style:X({lineCap:"round",lineWidth:r.style.lineWidth},n.getModel(["progress","lineStyle"]).getLineStyle()),silent:!0,z2:1});e.add(s)}},e.prototype._renderAxisTick=function(t,e,o,n){var i=this,r=n.getData(),s=o.scale.getTicks();this._tickSymbols=[],tt(s,(function(t){var s=o.dataToCoord(t.value),a=r.getItemModel(t.value),l=a.getModel("itemStyle"),u=a.getModel(["emphasis","itemStyle"]),c=a.getModel(["progress","itemStyle"]),p={x:s,y:0,onclick:st(i._changeTimeline,i,t.value)},d=MW(a,l,e,p);d.ensureState("emphasis").style=u.getItemStyle(),d.ensureState("progress").style=c.getItemStyle(),Fu(d);var h=Wl(d);a.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(),s=o.getViewLabels();this._tickLabels=[],tt(s,(function(n){var s=n.tickValue,a=r.getItemModel(s),l=a.getModel("label"),u=a.getModel(["emphasis","label"]),c=a.getModel(["progress","label"]),p=o.dataToCoord(n.tickValue),d=new Bl({x:p,y:0,rotation:t.labelRotation-t.rotation,onclick:st(i._changeTimeline,i,s),silent:!1,style:ac(l,{text:n.formattedLabel,align:t.labelAlign,verticalAlign:t.labelBaseline})});d.ensureState("emphasis").style=ac(u),d.ensureState("progress").style=ac(c),e.add(d),Fu(d),PW(d).dataIndex=s,i._tickLabels.push(d)}))}},e.prototype._renderControl=function(t,e,o,n){var i=t.controlSize,r=t.rotation,s=n.getModel("controlStyle").getItemStyle(),a=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=Iv(t.get(["controlStyle",e]),n||{},new so(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:s,onclick:l});p.ensureState("emphasis").style=a,e.add(p),Fu(p)}}c(t.nextBtnPosition,"next",st(this._changeTimeline,this,u?"-":"+")),c(t.prevBtnPosition,"prev",st(this._changeTimeline,this,u?"+":"-")),c(t.playPosition,l?"stop":"play",st(this._handlePlayClick,this,!l),!0)},e.prototype._renderCurrentPointer=function(t,e,o,n){var i=n.getData(),r=n.getCurrentIndex(),s=i.getItemModel(r).getModel("checkpointStyle"),a=this,l={onCreate:function(t){t.draggable=!0,t.drift=st(a._handlePointerDrag,a),t.ondragend=st(a._handlePointerDragend,a),IW(t,a._progressLine,r,o,n,!0)},onUpdate:function(t){IW(t,a._progressLine,r,o,n)}};this._currentPointer=MW(s,s,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&&(s[r]=+s[r].toFixed(p)),[s,c]}var KW={min:at(UW,"min"),max:at(UW,"max"),average:at(UW,"average"),median:at(UW,"median")};function YW(t,e){if(e){var o=t.getData(),n=t.coordinateSystem,i=n&&n.dimensions;if(!function(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}(e)&&!lt(e.coord)&<(i)){var r=XW(e,o,n,t);if((e=z(e)).type&&KW[e.type]&&r.baseAxis&&r.valueAxis){var s=$(i,r.baseAxis.dim),a=$(i,r.valueAxis.dim),l=KW[e.type](o,r.baseDataDim,r.valueDataDim,s,a);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&<(i))for(var u=e.coord,c=0;c<2;c++)KW[u[c]]&&(u[c]=ZW(o,o.mapDimension(i[c]),u[c]));else e.coord=[];return e}}function XW(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 qW(t,e){return!(t&&t.containData&&e.coord&&!zW(e))||t.containData(e.coord)}function $W(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 ZW(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=fs();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.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=WW.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=WW.getMarkerModelFromSeries(t,o.type);n&&n.getData().eachItemGraphicEl((function(t){t&&(e?Ru(t):xu(t))}))}))},e.type="marker",e}(Vf);function tj(t,e,o){var n=e.coordinateSystem;t.each((function(i){var r,s=t.getItemModel(i),a=Dr(s.get("x"),o.getWidth()),l=Dr(s.get("y"),o.getHeight());if(isNaN(a)||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=[a,l];isNaN(a)||(r[0]=a),isNaN(l)||(r[1]=l),t.setItemLayout(i,r)}))}const ej=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=WW.getMarkerModelFromSeries(t,"markPoint");e&&(tj(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,s=t.getData(),a=this.markerGroupMap,l=a.get(r)||a.set(r,new lR),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 jw(n,o),r=et(o.get("data"),at(YW,e));t&&(r=nt(r,at(qW,t)));var s=$W(!!t,n);return i.initData(r,null,s),i}(i,t,e);e.setData(u),tj(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"),a=o.getShallow("symbolOffset"),l=o.getShallow("symbolKeepAspect");if(ut(n)||ut(i)||ut(r)||ut(a)){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(a)&&(a=a(c,p))}var d=o.getModel("itemStyle").getItemStyle(),h=By(s,"color");d.fill||(d.fill=h),u.setItemVisual(t,{symbol:n,symbolSize:i,symbolRotate:r,symbolOffset:a,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}(JW),oj=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}(WW);var nj=fs(),ij=function(t,e,o,n){var i,r=t.getData();if(lt(n))i=n;else{var s=n.type;if("min"===s||"max"===s||"average"===s||"median"===s||null!=n.xAxis||null!=n.yAxis){var a=void 0,l=void 0;if(null!=n.yAxis||null!=n.xAxis)a=e.getAxis(null!=n.yAxis?"y":"x"),l=St(n.yAxis,n.xAxis);else{var u=XW(n,r,e,t);a=u.valueAxis,l=ZW(r,Qw(r,u.valueDataDim),s)}var c="x"===a.dim?0:1,p=1-c,d=z(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:s,valueIndex:n.valueIndex,value:l}]}else i=[]}var g=[YW(t,i[0]),YW(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 rj(t){return!isNaN(t)&&!isFinite(t)}function sj(t,e,o,n){var i=1-t,r=n.dimensions[t];return rj(e[i])&&rj(o[i])&&e[t]===o[t]&&n.getAxis(r).containData(e[t])}function aj(t,e){if("cartesian2d"===t.type){var o=e[0].coord,n=e[1].coord;if(o&&n&&(sj(1,o,n,t)||sj(0,o,n,t)))return!0}return qW(t,e[0])&&qW(t,e[1])}function lj(t,e,o,n,i){var r,s=n.coordinateSystem,a=t.getItemModel(e),l=Dr(a.get("x"),i.getWidth()),u=Dr(a.get("y"),i.getHeight());if(isNaN(l)||isNaN(u)){if(n.getMarkerPosition)r=n.getMarkerPosition(t.getValues(t.dimensions,e));else{var c=s.dimensions,p=t.get(c[0],e),d=t.get(c[1],e);r=s.dataToPoint([p,d])}if(bR(s,"cartesian2d")){var h=s.getAxis("x"),f=s.getAxis("y");c=s.dimensions,rj(t.get(c[0],e))?r[0]=h.toGlobalCoord(h.getExtent()[o?0:1]):rj(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 uj=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=WW.getMarkerModelFromSeries(t,"markLine");if(e){var n=e.getData(),i=nj(e).from,r=nj(e).to;i.each((function(e){lj(i,e,!0,t,o),lj(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,s=t.getData(),a=this.markerGroupMap,l=a.get(r)||a.set(r,new dM);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 jw(n,o),r=new jw(n,o),s=new jw([],o),a=et(o.get("data"),at(ij,e,t,o));t&&(a=nt(a,at(aj,t)));var l=$W(!!t,n);return i.initData(et(a,(function(t){return t[0]})),null,l),r.initData(et(a,(function(t){return t[1]})),null,l),s.initData(et(a,(function(t){return t[2]}))),s.hasItemOption=!0,{from:i,to:r,line:s}}(i,t,e),c=u.from,p=u.to,d=u.line;nj(e).from=c,nj(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);lj(e,o,i,t,n);var a=r.getModel("itemStyle").getItemStyle();null==a.fill&&(a.fill=By(s,"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:a})}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}(JW),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.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}(WW);var pj=fs(),dj=function(t,e,o,n){var i=n[0],r=n[1];if(i&&r){var s=YW(t,i),a=YW(t,r),l=s.coord,u=a.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=K([{},s,a]);return c.coord=[s.coord,a.coord],c.x0=s.x,c.y0=s.y,c.x1=a.x,c.y1=a.y,c}};function hj(t){return!isNaN(t)&&!isFinite(t)}function fj(t,e,o,n){var i=1-t;return hj(e[i])&&hj(o[i])}function gj(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 bR(t,"cartesian2d")?!(!o||!n||!fj(1,o,n)&&!fj(0,o,n))||function(t,e,o){return!(t&&t.containZone&&e.coord&&o.coord&&!zW(e)&&!zW(o))||t.containZone(e.coord,o.coord)}(t,i,r):qW(t,i)||qW(t,r)}function vj(t,e,o,n,i){var r,s=n.coordinateSystem,a=t.getItemModel(e),l=Dr(a.get(o[0]),i.getWidth()),u=Dr(a.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=s.clampData(c),h=s.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)];s.clampData&&s.clampData(g,g),r=s.dataToPoint(g,!0)}if(bR(s,"cartesian2d")){var v=s.getAxis("x"),y=s.getAxis("y"),m=t.get(o[0],e),C=t.get(o[1],e);hj(m)?r[0]=v.toGlobalCoord(v.getExtent()["x0"===o[0]?0:1]):hj(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 yj=[["x0","y0"],["x1","y0"],["x1","y1"],["x0","y1"]],mj=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=WW.getMarkerModelFromSeries(t,"markArea");if(e){var n=e.getData();n.each((function(e){var i=et(yj,(function(i){return vj(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,s=t.getData(),a=this.markerGroupMap,l=a.get(r)||a.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 jw(i,o)}else n=new jw(i=[{name:"value",type:"float"}],o);var s=et(o.get("data"),at(dj,e,t,o));t&&(s=nt(s,at(gj,t)));var a=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(s,null,a),n.hasItemOption=!0,n}(i,t,e);e.setData(u),u.each((function(e){var o=et(yj,(function(o){return vj(u,e,o,t,n)})),r=i.getAxis("x").scale,a=i.getAxis("y").scale,l=r.getExtent(),c=a.getExtent(),p=[r.parse(u.get("x0",e)),r.parse(u.get("x1",e))],d=[a.parse(u.get("y0",e)),a.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}(jp);const Sj=wj;var bj=at,_j=tt,Ej=vr,Rj=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 Ej),this.group.add(this._selectorGroup=new Ej),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 s=t.get("selector",!0),a=t.get("selectorPosition",!0);!s||a&&"auto"!==a||(a="horizontal"===r?"end":"start"),this.renderInner(i,t,e,o,s,r,a);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,s,a),h=Np(X({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=BH(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,s){var a=this.getContentGroup(),l=Lt(),u=e.get("selectedMode"),c=[];o.eachRawSeries((function(t){!t.get("legendHoverLink")&&c.push(t.id)})),_j(e.getData(),(function(i,r){var s=i.get("name");if(!this.newlineDisabled&&(""===s||"\n"===s)){var p=new Ej;return p.newline=!0,void a.add(p)}var d=o.getSeriesByName(s)[0];if(!l.get(s))if(d){var h=d.getData(),f=h.getVisual("legendLineStyle")||{},g=h.getVisual("legendIcon"),v=h.getVisual("style");this._createItem(d,s,r,i,e,t,f,v,g,u,n).on("click",bj(xj,s,null,n,c)).on("mouseover",bj(Oj,d.name,null,n,c)).on("mouseout",bj(Dj,d.name,null,n,c)),l.set(s,!0)}else o.eachRawSeries((function(o){if(!l.get(s)&&o.legendVisualProvider){var a=o.legendVisualProvider;if(!a.containName(s))return;var p=a.indexOfName(s),d=a.getItemVisual(p,"style"),h=a.getItemVisual(p,"legendIcon"),f=Rn(d.fill);f&&0===f[3]&&(f[3]=.2,d=Y(Y({},d),{fill:Nn(f,"rgba")})),this._createItem(o,s,r,i,e,t,{},d,h,u,n).on("click",bj(xj,null,s,n,c)).on("mouseover",bj(Oj,null,s,n,c)).on("mouseout",bj(Dj,null,s,n,c)),l.set(s,!0)}}),this)}),this),i&&this._createSelector(i,e,n,r,s)},e.prototype._createSelector=function(t,e,o,n,i){var r=this.getSelectorGroup();_j(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,s,a,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,s){function a(t,e){"auto"===t.lineWidth&&(t.lineWidth=e.lineWidth>0?2:0),_j(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,s):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),a(u,n);var d=e.getModel("lineStyle"),h=d.getLineStyle();if(a(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,s,a,f,y,c),b=new Ej,_=n.getModel("textStyle");if(!ut(t.getLegendIcon)||w&&"inherit"!==w){var E="inherit"===w&&t.getData().getVisual("symbol")?"inherit"===m?t.getData().getVisual("symbolRotate"):m:0;b.add((p={itemWidth:g,itemHeight:v,icon:l,iconRotate:E,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 R="left"===r?g+5:-5,x=r,T=i.get("formatter"),O=e;ct(T)&&T?O=T.replace("{name}",null!=e?e:""):ut(T)&&(O=T(e));var D=y?_.getTextColor():n.get("inactiveColor");b.add(new Bl({style:ac(_,{text:O,x:R,y:v/2,fill:D,align:x,verticalAlign:"middle"},{inheritColor:D})}));var P=new Rl({shape:b.getBoundingRect(),invisible:!0}),A=n.getModel("tooltip");return A.get("show")&&Gv({el:P,componentModel:i,itemName:e,itemTooltipOption:A.option}),b.add(P),b.eachChild((function(t){t.silent=!0})),P.silent=!u,this.getContentGroup().add(b),Fu(b),b.__legendDataIndex=o,b},e.prototype.layoutInner=function(t,e,o,n,i,r){var s=this.getContentGroup(),a=this.getSelectorGroup();Lp(t.get("orient"),s,t.get("itemGap"),o.width,o.height);var l=s.getBoundingRect(),u=[-l.x,-l.y];if(a.markRedraw(),s.markRedraw(),i){Lp("horizontal",a,t.get("selectorItemGap",!0));var c=a.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,a.x=p[0],a.y=p[1],s.x=u[0],s.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 s.x=u[0],s.y=u[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Vf);function xj(t,e,o,n){Dj(t,e,o,n),o.dispatchAction({type:"legendToggleSelect",name:null!=t?t:e}),Oj(t,e,o,n)}function Tj(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[a]);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[s]=Math.min(0,d[s]+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 Rl({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&&qu(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,s=null!=r?r+1:0,a=e.pageCount;n&&i&&n.setStyle("text",ct(i)?i.replace("{current}",null==s?"":s+"").replace("{total}",null==a?"":a+""):i({current:s,total:a}))},e.prototype._getPageInfo=function(t){var e=t.get("scrollDataIndex",!0),o=this.getContentGroup(),n=this._containerGroup.__rectSize,i=t.getOrient().index,r=Gj[i],s=kj[i],a=this._findTargetItemIndex(e),l=o.children(),u=l[a],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=a+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=a-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}(Pj);const Hj=Vj;function Bj(t){fw(Ij),t.registerComponentModel(Nj),t.registerComponentView(Hj),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 Wj=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(EH.defaultOption,{disabled:!1,zoomLock:!1,zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!1,preventDefaultMouseMove:!0}),e}(EH);var jj=fs();function zj(t,e){if(e){t.removeKey(e.model.uid);var o=e.controller;o&&o.dispose()}}function Uj(t,e){t.isDisposed()||t.dispatchAction({type:"dataZoom",animation:{easing:"cubicOut",duration:100},batch:e})}function Kj(t,e,o,n){return t.coordinateSystem.containPoint([o,n])}var Yj=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){jj(t).coordSysRecordMap.each((function(t){var n=t.dataZoomInfoMap.get(e.uid);n&&(n.getRange=o)}))}(n,e,{pan:st(Xj.pan,this),zoom:st(Xj.zoom,this),scrollMove:st(Xj.scrollMove,this)}))},e.prototype.dispose=function(){this._clear(),t.prototype.dispose.apply(this,arguments)},e.prototype._clear=function(){!function(t,e){for(var o=jj(t).coordSysRecordMap,n=o.keys(),i=0;i0?a.pixelStart+a.pixelLength-a.pixel:a.pixel-a.pixelStart)/a.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 pI(0,r,[0,100],0,c.minSpan,c.maxSpan),this.range=r,i[0]!==r[0]||i[1]!==r[1]?r:void 0}},pan:qj((function(t,e,o,n,i,r){var s=$j[n]([r.oldX,r.oldY],[r.newX,r.newY],e,i,o);return s.signal*(t[1]-t[0])*s.pixel/s.pixelLength})),scrollMove:qj((function(t,e,o,n,i,r){return $j[n]([0,0],[r.scrollDelta,r.scrollDelta],e,i,o).signal*(t[1]-t[0])*r.scrollDelta}))};function qj(t){return function(e,o,n,i){var r=this.range,s=r.slice(),a=e.axisModels[0];if(a)return pI(t(s,a,e,o,n,i),s,[0,100],"all"),this.range=s,r[0]!==s[0]||r[1]!==s[1]?s:void 0}}var $j={grid:function(t,e,o,n,i){var r=o.axis,s={},a=i.model.coordinateSystem.getRect();return t=t||[0,0],"x"===r.dim?(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},polar:function(t,e,o,n,i){var r=o.axis,s={},a=i.model.coordinateSystem,l=a.getRadiusAxis().getExtent(),u=a.getAngleAxis().getExtent();return t=t?a.pointToCoord(t):[0,0],e=a.pointToCoord(e),"radiusAxis"===o.mainType?(s.pixel=e[0]-t[0],s.pixelLength=l[1]-l[0],s.pixelStart=l[0],s.signal=r.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=u[1]-u[0],s.pixelStart=u[0],s.signal=r.inverse?-1:1),s},singleAxis:function(t,e,o,n,i){var r=o.axis,s=i.model.coordinateSystem.getRect(),a={};return t=t||[0,0],"horizontal"===r.orient?(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}};const Zj=Yj;function Qj(t){LH(t),t.registerComponentModel(Wj),t.registerComponentView(Zj),function(t){t.registerProcessor(t.PRIORITY.PROCESSOR.FILTER,(function(t,e){var o=jj(e),n=o.coordSysRecordMap||(o.coordSysRecordMap=Lt());n.each((function(t){t.dataZoomInfoMap=null})),t.eachComponent({mainType:"dataZoom",subType:"inside"},(function(t){tt(wH(t).infoList,(function(o){var i=o.model.uid,r=n.get(i)||n.set(i,function(t,e){var o={model:e,containsPoint:at(Kj,e),dispatchAction:at(Uj,t),dataZoomInfoMap:null,controller:null},n=o.controller=new aO(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],s=r&&r(i.dzReferCoordSysInfo,o.model.mainType,o.controller,e);!i.model.get("disabled",!0)&&s&&n.push({dataZoomId:i.model.id,start:s[0],end:s[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 s=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,s=!r.get("disabled",!0)&&(!r.get("zoomLock",!0)||"move");n[o+s]>n[o+e]&&(e=s),i=i&&r.get("preventDefaultMouseMove",!0)})),{controlType:e,opt:{zoomOnMouseWheel:!0,moveOnMouseMove:!0,moveOnMouseWheel:!0,preventDefaultMouseMove:!!i}}}(i);o.enable(s.controlType,s.opt),o.setPointerChecker(t.containsPoint),Jv(t,"dispatchAction",e.model.get("throttle",!0),"fixRate")}else zj(n,t)}))}))}(t)}const Jj=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(EH.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}(EH);var tz=Rl,ez="horizontal",oz="vertical",nz=["line","bar","candlestick","scatter"],iz={easing:"cubicOut",duration:100,delay:0},rz=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=st(this._onBrush,this),this._onBrushEnd=st(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===ez?{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},s=Vp(t.option);tt(["right","top","width","height"],(function(t){"ph"===s[t]&&(s[t]=r[t])}));var a=Np(s,i);this._location={x:a.x,y:a.y},this._size=[a.width,a.height],this._orient===oz&&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,s=(this._dataShadowInfo||{}).otherAxisInverse;r.attr(o!==ez||i?o===ez&&i?{scaleY:s?1:-1,scaleX:-1}:o!==oz||i?{scaleY:s?-1:1,scaleX:-1,rotation:Math.PI/2}:{scaleY:s?-1:1,scaleX:1,rotation:Math.PI/2}:{scaleY:s?1:-1,scaleX:1});var a=t.getBoundingRect([r]);t.x=e.x-a.x,t.y=e.y-a.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 tz({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}));var i=new tz({shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:"transparent"},z2:0,onclick:st(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(),s=r&&i.getDimensionInfo(r)?n.getShadowDim():t.otherDim;if(null!=s){var a=this._shadowPolygonPts,l=this._shadowPolylinePts;if(i!==this._shadowData||s!==this._shadowDim||e[0]!==o[0]||e[1]!==o[1]){var u=i.getDataExtent(s),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([s],(function(t,e){if(m>0&&e%m)y+=v;else{var o=null==t||isNaN(t)||""===t,n=o?0:Or(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}})),a=this._shadowPolygonPts=f,l=this._shadowPolylinePts=g}this._shadowData=i,this._shadowDim=s,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:a},segmentIgnoreThreshold:1,style:e.getModel("areaStyle").getAreaStyle(),silent:!0,z2:-20}),i=new Gg({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&&$(nz,t.get("type"))<0)){var s,a=n.getComponent(CH(i),r).axis,l={x:"y",y:"x",radius:"angle",angle:"radius"}[i],u=t.coordinateSystem;null!=l&&u.getOtherAxis&&(s=u.getOtherAxis(a).inverse),l=t.getData().mapDimension(l),o={thisAxis:a,series:t,thisDim:i,otherDim:l,otherAxisInverse:s}}}),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,s=this.dataZoomModel,a=this.api,l=s.get("borderRadius")||0,u=s.get("brushSelect"),c=e.filler=new tz({silent:u,style:{fill:s.get("fillerColor")},textConfig:{position:"inside"}});i.add(c),i.add(new tz({silent:!0,subPixelOptimize:!0,shape:{x:0,y:0,width:r[0],height:r[1],r:l},style:{stroke:s.get("dataBackgroundColor")||s.get("borderColor"),lineWidth:1,fill:"rgba(0,0,0,0)"}})),tt([0,1],(function(e){var r=s.get("handleIcon");!em[r]&&r.indexOf("path://")<0&&r.indexOf("image://")<0&&(r="path://"+r);var a=im(r,-1,0,2,2,null,!0);a.attr({cursor:sz(this._orient),draggable:!0,drift:st(this._onDragMove,this,e),ondragend:st(this._onDragEnd,this),onmouseover:st(this._showDataInfo,this,!0),onmouseout:st(this._showDataInfo,this,!1),z2:5});var l=a.getBoundingRect(),u=s.get("handleSize");this._handleHeight=Dr(u,this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,a.setStyle(s.getModel("handleStyle").getItemStyle()),a.style.strokeNoScale=!0,a.rectHover=!0,a.ensureState("emphasis").style=s.getModel(["emphasis","handleStyle"]).getItemStyle(),Fu(a);var c=s.get("handleColor");null!=c&&(a.style.fill=c),i.add(o[e]=a);var p=s.getModel("textStyle");t.add(n[e]=new Bl({silent:!0,invisible:!0,style:ac(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=Dr(s.get("moveHandleSize"),r[1]),h=e.moveHandle=new Rl({style:s.getModel("moveHandleStyle").getItemStyle(),silent:!0,shape:{r:[0,0,2,2],y:r[1]-.5,height:d}}),f=.8*d,g=e.moveHandleIcon=im(s.get("moveHandleIcon"),-f/2,-f/2,f,f,"#fff",!0);g.silent=!0,g.y=r[1]+d/2-.5,h.ensureState("emphasis").style=s.getModel(["emphasis","moveHandleStyle"]).getItemStyle();var v=Math.min(r[1]/2,Math.max(d,10));(p=e.moveZone=new Rl({invisible:!0,shape:{y:r[1]-v,height:d+v}})).on("mouseover",(function(){a.enterEmphasis(h)})).on("mouseout",(function(){a.leaveEmphasis(h)})),i.add(h),i.add(g),i.add(p)}p.attr({draggable:!0,cursor:sz(this._orient),drift:st(this._onDragMove,this,"all"),ondragstart:st(this._showDataInfo,this,!0),ondragend:st(this._onDragEnd,this),onmouseover:st(this._showDataInfo,this,!0),onmouseout:st(this._showDataInfo,this,!1)})},e.prototype._resetInterval=function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[Or(t[0],[0,100],e,!0),Or(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(),s=[0,100];pI(e,n,i,o.get("zoomLock")?"all":t,null!=r.minSpan?Or(r.minSpan,s,i,!0):null,null!=r.maxSpan?Or(r.maxSpan,s,i,!0):null);var a=this._range,l=this._range=Ar([Or(n[0],i,s,!0),Or(n[1],i,s,!0)]);return!a||a[0]!==l[0]||a[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 s=e.dataShadowSegs,a=[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 $e(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([Or(o.x,n,i,!0),Or(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 tz({silent:!0,style:n.getModel("brushStyle").getItemStyle()}),o.sliderGroup.add(i)),i.attr("ignore",!1);var r=this._brushStart,s=this._displayables.sliderGroup,a=s.transformCoordToLocal(t,e),l=s.transformCoordToLocal(r.x,r.y),u=this._size;a[0]=Math.max(Math.min(u[0],a[0]),0),i.setShape({x:l[0],y:0,width:a[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?iz:null,start:e[0],end:e[1]})},e.prototype._findCoordRect=function(){var t,e=wH(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 sz(t){return"vertical"===t?"ns-resize":"ew-resize"}const az=rz;function lz(t){t.registerComponentModel(Jj),t.registerComponentView(az),LH(t)}var uz={get:function(t,e,o){var n=z((cz[t]||{})[e]);return o&<(n)?n[n.length-1]:n}},cz={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 pz=uz;var dz=oA.mapVisual,hz=oA.eachVisual,fz=lt,gz=tt,vz=Ar,yz=Or,mz=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&&oW(o,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},e.prototype.resetVisual=function(t){var e=this.stateList;t=st(t,this),this.controllerVisuals=eW(this.option.controller,e,t),this.targetVisuals=eW(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=os(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,s=this.dataBound,a=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(a)?a.replace("{value}",n?l[0]:l).replace("{value2}",n?l[1]:l):ut(a)?n?a(t[0],t[1]):a(t):n?t[0]===s[0]?o[0]+" "+l[1]:t[1]===s[1]?o[1]+" "+l[0]:l[0]+" - "+l[1]:l;function u(t){return t===s[0]?"min":t===s[1]?"max":(+t).toFixed(Math.min(r,20))}},e.prototype.resetExtent=function(){var t=this.option,e=vz([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 s(o){fz(e.color)&&!o.inRange&&(o.inRange={color:e.color.slice().reverse()}),o.inRange=o.inRange||{color:t.get("gradientColor")}}s.call(this,n),s.call(this,i),function(t,e,o){var n=t[e],i=t[o];n&&!i&&(i=t[o]={},gz(n,(function(t,e){if(oA.isValidType(e)){var o=pz.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";gz(this.stateList,(function(s){var a=this.itemSize,l=t[s];l||(l=t[s]={color:r?n:[n]}),null==l.symbol&&(l.symbol=e&&z(e)||(r?i:[i])),null==l.symbolSize&&(l.symbolSize=o&&z(o)||(r?a[0]:[a[0],a[0]])),l.symbol=dz(l.symbol,(function(t){return"none"===t?i:t}));var u=l.symbolSize;if(null!=u){var c=-1/0;hz(u,(function(t){t>c&&(c=t)})),l.symbolSize=dz(u,(function(t){return yz(t,[0,c],[0,a[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}(jp);const Cz=mz;var wz=[20,140],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.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]=wz[0]),(null==e[1]||isNaN(e[1]))&&(e[1]=wz[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=bz(0,0,this.getExtent()),o=bz(0,0,this.option.range.slice()),n=[];function i(e,o){n.push({value:e,color:t(e,o)})}for(var r=0,s=0,a=o.length,l=e.length;st[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,s=n.itemSize,a=n.getExtent();Dz([0,1],(function(l){var u=i[l];u.setStyle("fill",e.handlesColor[l]),u.y=t[l];var c=Oz(t[l],[0,s[1]],a,!0),p=this.getControllerVisual(c,"symbolSize");u.scaleX=u.scaleY=p/s[0],u.x=s[0]-p/2;var d=Tv(o.handleLabelPoints[l],xv(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(),s=i.itemSize,a=[0,s[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=Oz(t,r,a,!0),h=s[0]-p/2,f={x:u.x,y:u.y};u.y=d,u.x=h;var g=Tv(l.indicatorLabelPoint,xv(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],"< ",s):u[1]===1/0?this._showIndicator(l,u[0],"> ",s):this._showIndicator(l,l,"≈ ",s));var c=this._hoverLinkDataIndices,p=[];(e||Lz(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 Hz(t,e,o,n){for(var i=e.targetVisuals[n],r=oA.prepareVisualTypes(i),s={color:By(t.getData(),"color")},a=0,l=r.length;a0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})),t.registerAction(Gz,kz),tt(Vz,(function(e){t.registerVisual(t.PRIORITY.VISUAL.COMPONENT,e)})),t.registerPreprocessor(Wz))}function Kz(t){t.registerComponentModel(_z),t.registerComponentView(Fz),Uz(t)}var Yz=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=[],Xz[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=z(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=et(this._pieceList,(function(t){return t=z(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]=pz.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=z(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 s=-1/0;return tt(i,(function(t){var e=t.interval;e&&(e[0]>s&&a([s,e[0]],"outOfRange"),a(e.slice()),s=e[1])}),this),{stops:e,outerColors:o}}function a(i,r){var s=n.getRepresentValue({interval:i});r||(r=n.getValueState(s));var a=t(s,r);i[0]===-1/0?o[0]=a:i[1]===1/0?o[1]=a:e.push({value:i[0],color:a},{value:i[1],color:a})}},e.type="visualMap.piecewise",e.defaultOption=Lc(Cz.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}(Cz),Xz={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 s=0,a=n[0];s","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,o)}),this)}};function qz(t,e){var o=t.inverse;("vertical"===t.orient?!o:o)&&e.reverse()}const $z=Yz,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.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(),s=this._getItemAlign(),a=e.itemSize,l=this._getViewData(),u=l.endsText,c=St(e.get("showLabel",!0),!u);u&&this._renderEndsText(t,u[0],a,c,s),tt(l.viewPieceList,(function(n){var l=n.piece,u=new vr;u.onclick=st(this._onItemClick,this,l),this._enableHoverLink(u,n.indexInModelPieceList);var p=e.getRepresentValue(l);if(this._createItemSymbol(u,p,[0,0,a[0],a[1]]),c){var d=this.visualMapModel.getValueState(p);u.add(new Bl({style:{x:"right"===s?-o:a[0]+o,y:a[1]/2,text:l.text,verticalAlign:"middle",align:s,font:i,fill:r,opacity:"outOfRange"===d?.5:1}}))}t.add(u)}),this),u&&this._renderEndsText(t,u[1],a,c,s),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:Tz(n.findTargetDataIndices(e),n)})}},e.prototype._getItemAlign=function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return xz(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,s=this.visualMapModel.textStyleModel;r.add(new Bl({style:ac(s,{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=z(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}(Ez);function Qz(t){t.registerComponentModel($z),t.registerComponentView(Zz),Uz(t)}var Jz={label:{enabled:!0},decal:{show:!1}},tU=fs(),eU={};function oU(t,e){var o=t.getModel("aria");if(o.get("enabled")){var n=z(Jz);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)),tU(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,eU,t.getSeriesCount()),i=o.getVisual("decal");o.setVisual("decal",u(i,n))}else{var r=e.getRawData(),s={},a=tU(e).scope;o.each((function(t){var e=o.getRawIndex(t);s[e]=t}));var l=r.count();r.each((function(t){var n=s[t],i=r.getName(t)||t+"",c=vd(e.ecModel,i,a,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=X(r.option,n),r.get("enabled")){var s=e.getZr().dom;if(r.get("description"))s.setAttribute("aria-label",r.get("description"));else{var a,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}();a=d?i(r.get(["general","withTitle"]),{title:d}):r.get(["general","withoutTitle"]);var h=[];a+=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",s]):r.get(["series","single",s]),{seriesId:e.seriesIndex,seriesName:e.get("name"),seriesType:(C=e.subType,t.getLocaleModel().get(["series","typeNames"])[C]||"自定义图")});var a=e.getData();a.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"},rU=function(){function t(t){null==(this._condVal=ct(t)?new RegExp(t):Ct(t)?t:null)&&Ph("")}return t.prototype.evaluate=function(t){var e=typeof t;return ct(e)?this._condVal.test(t):!!dt(e)&&this._condVal.test(t+"")},t}(),sU=function(){function t(){}return t.prototype.evaluate=function(){return this.value},t}(),aU=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){wU(t,n)&&wU(o,i)||e.push(t,o,n,i,n,i)}function g(t,o,n,i,r,s){var a=Math.abs(o-t),l=4*Math.tan(a/4)/3,u=oE:T2&&l.push(e),l}function bU(t,e,o,n,i,r,s,a,l,u){if(wU(t,o)&&wU(e,n)&&wU(i,s)&&wU(r,a))l.push(s,a);else{var c=2/u,p=c*c,d=s-t,h=a-e,f=Math.sqrt(d*d+h*h);d/=f,h/=f;var g=o-t,v=n-e,y=i-s,m=r-a,C=g*g+v*v,w=y*y+m*m;if(C=0&&w-b*b=0)l.push(s,a);else{var _=[],E=[];$o(t,o,i,s,.5,_),$o(e,n,r,a,.5,E),bU(_[0],E[0],_[1],E[1],_[2],E[2],_[3],E[3],l,u),bU(_[4],E[4],_[5],E[5],_[6],E[6],_[7],E[7],l,u)}}}}function _U(t,e,o){var n=t[e],i=t[1-e],r=Math.abs(n/i),s=Math.ceil(Math.sqrt(r*o)),a=Math.floor(o/s);0===a&&(a=1,s=o);for(var l=[],u=0;u0)for(u=0;uMath.abs(u),p=_U([l,u],c?0:1,e),d=(c?a:u)/p.length,h=0;h1?null:new $e(h*l+t,h*u+e)}function TU(t,e,o){var n=new $e;$e.sub(n,o,e),n.normalize();var i=new $e;return $e.sub(i,t,e),i.dot(n)}function OU(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=[];ya(e,o,n);var i=new so(o[0],o[1],n[0]-o[0],n[1]-o[1]),r=i.width,s=i.height,a=i.x,l=i.y,u=new $e,c=new $e;return r>s?(u.x=c.x=a+r/2,u.y=l,c.y=l+s):(u.y=c.y=l+s/2,u.x=a,c.x=a+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),a+=l*l*(3*u^c),0===c&&(1===u&&(t=l-1-t,e=l-1-e),s=t,t=e,e=s)}return a}function UU(t){var e=1/0,o=1/0,n=-1/0,i=-1/0,r=et(t,(function(t){var r=t.getBoundingRect(),s=t.getComputedTransform(),a=r.x+r.width/2+(s?s[4]:0),l=r.y+r.height/2+(s?s[5]:0);return e=Math.min(a,e),o=Math.min(l,o),n=Math.max(a,n),i=Math.max(l,i),[a,l]}));return et(r,(function(r,s){return{cp:r,z:zU(r[0],r[1],e,o,n,i),path:t[s]}})).sort((function(t,e){return t.z-e.z})).map((function(t){return t.path}))}function KU(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,s=_U([n,i],r?0:1,e),a=r?"width":"height",l=r?"height":"width",u=r?"x":"y",c=r?"y":"x",p=t[a]/s.length,d=0;d=0;i--)if(!o[i].many.length){var l=o[a].many;if(l.length<=1){if(!a)return o;a=0}r=l.length;var u=Math.ceil(r/2);o[i].many=l.slice(u,r),o[a].many=l.slice(0,u),a++}return o}var qU={clone:function(t){for(var e=[],o=1-Math.pow(1-t.path.style.opacity,1/t.count),n=0;n0){var a,l,u=n.getModel("universalTransition").get("delay"),c=Object.assign({setToFinal:!0},s);YU(t)&&(a=t,l=e),YU(e)&&(a=e,l=t);for(var p=a?a===t:t.length>e.length,d=a?XU(l,a):XU(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 rK(t){return t.getModel("universalTransition").get("seriesKey")||t.id}function sK(t){return lt(t)?t.sort().join(","):t}function aK(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function lK(t,e){for(var o=0;o=0&&i.push({dataGroupId:e.oldDataGroupIds[o],data:e.oldData[o],divide:aK(e.oldData[o]),dim:t.dimension})})),tt(os(t.to),(function(t){var n=lK(o.updatedSeries,t);if(n>=0){var i=o.updatedSeries[n].getData();r.push({dataGroupId:e.oldDataGroupIds[n],data:i,divide:aK(i),dim:t.dimension})}})),i.length>0&&r.length>0&&iK(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],s=t.oldData[o],a=rK(e),l=sK(a);n.set(l,{dataGroupId:r,data:s}),lt(a)&&tt(a,(function(t){i.set(t,{key:l,dataGroupId:r,data:s})}))})),tt(e.updatedSeries,(function(t){if(t.isUniversalTransitionEnabled()&&t.isAnimationEnabled()){var e=t.get("dataGroupId"),r=t.getData(),s=rK(t),a=sK(s),l=n.get(a);if(l)o.set(a,{oldSeries:[{dataGroupId:l.dataGroupId,divide:aK(l.data),data:l.data}],newSeries:[{dataGroupId:e,divide:aK(r),data:r}]});else if(lt(s)){var u=[];tt(s,(function(t){var e=n.get(t);e.data&&u.push({dataGroupId:e.dataGroupId,divide:aK(e.data),data:e.data})})),u.length&&o.set(a,{oldSeries:u,newSeries:[{dataGroupId:e,data:r,divide:aK(r)}]})}else{var c=i.get(s);if(c){var p=o.get(c.key);p||(p={oldSeries:[{dataGroupId:c.dataGroupId,data:c.data,divide:aK(c.data)}],newSeries:[]},o.set(c.key,p)),p.newSeries.push({dataGroupId:e,data:r,divide:aK(r)})}}}})),o}(n,o);tt(r.keys(),(function(t){var o=r.get(t);iK(o.oldSeries,o.newSeries,e)}))}tt(o.updatedSeries,(function(t){t[Of]&&(t[Of]=!1)}))}for(var s=t.getSeries(),a=n.oldSeries=[],l=n.oldDataGroupIds=[],u=n.oldData=[],c=0;c{e.registerTheme(t.themeName,t.theme)}))}function fK(t){return null==t||""===t?null:t}function gK(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function vK(t){return!gK(t)}function yK(t){return null==t||0===t.length}function mK(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function CK(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 wK(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function SK(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.values(t)}hK();var bK=Object.freeze({__proto__:null,makeNull:fK,exists:gK,missing:vK,missingOrEmpty:yK,toStringOrNull:mK,attrToNumber:CK,attrToBoolean:wK,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.")},RK=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s};function xK(t,e){var o,n;if(null!=t)if(Array.isArray(t))for(var i=0;i=0)){var i=o[t],r=GK(i)&&i.constructor===Object;n[t]=r?OK(i):i}})),n}}function DK(t,e){return t[e]}function PK(t,e,o){t[e]=o}function AK(t,e,o,n){var i=DK(t,o);void 0!==i&&PK(e,o,n?n(i):i)}function MK(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 IK(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 LK(t,e,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),gK(e)&&xK(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),GK(i)&&GK(r)&&!Array.isArray(r)?LK(r,i,o,n):(o||void 0!==i)&&(t[e]=i))}))}function NK(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 XK(t,e){var o;return function(){for(var n=[],i=0;io;(t()||a)&&(e(),s=!0,null!=r&&(window.clearInterval(r),r=null),a&&n&&console.warn(n))};a(),s||(r=window.setInterval(a,10))}function ZK(t){t&&t()}var QK,JK=Object.freeze({__proto__:null,doOnce:HK,getFunctionName:BK,isFunction:WK,executeInAWhile:jK,executeNextVMTurn:KK,executeAfter:YK,debounce:XK,throttle:qK,waitUntil:$K,compose:function(){for(var t=[],e=0;e0)&&!(n=r.next()).done;)s.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 s},eY=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 a=null===(i=Object.entries(QK).find((function(t){var o=tY(t,2);return o[0],o[1]===e})))||void 0===i?void 0:i[0];r="AG Grid: unable to use "+o+" as the "+a+" 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 { "+a+" } from '"+e+"';\n \n ModuleRegistry.registerModules([ "+a+" ]);\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 HK((function(){console.warn(r)}),s),!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 eY(eY([],tY(SK(t.globalModulesMap))),tY(SK(t.gridModulesMap[e]||{})))},t.__getGridRegisteredModules=function(e){var o;return SK(null!==(o=t.gridModulesMap[e])&&void 0!==o?o:{})||[]},t.__isPackageBased=function(){return!t.moduleBased},t.globalModulesMap={},t.gridModulesMap={},t.areGridScopedModules=!1,t}(),nY=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 SK(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"),gK(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),xK(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;)s.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 s}(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?BK(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){xK(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&&xK(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,oY.__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 iY(t,e,o){var n=dY(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(e)}function rY(t,e,o){var n=dY(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(e)}function sY(t,e,o){var n=dY(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(e)}function aY(t){return function(e){dY(e).beanName=t}}function lY(t){return function(e,o,n){cY(e,t,!1,0,o,null)}}function uY(t){return function(e,o,n){cY(e,t,!0,0,o,null)}}function cY(t,e,o,n,i,r){if(null!==e)if("number"!=typeof r){var s=dY(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.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 pY(t){return function(e,o,n){var i,r="function"==typeof e?e:e.constructor;if("number"==typeof n){var s=void 0;o?(i=dY(r),s=o):(i=dY(r),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][n]=t}}}function dY(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}var hY=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},fY=function(t,e){return function(o,n){e(o,n,t)}},gY=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()}))},hY([fY(0,pY("loggerFactory")),fY(1,pY("gridOptionsService")),fY(2,pY("frameworkOverrides")),fY(3,pY("globalEventListener")),fY(4,pY("globalSyncEventListener"))],t.prototype,"setBeans",null),hY([aY("eventService")],t)}(),vY=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},yY=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},mY=function(t,e){for(var o=0,n=e.length,i=t.length;o=0&&!t,this.tooltipFieldContainsDots=gK(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=gK(this.colDef.tooltipField)||gK(this.colDef.tooltipValueGetter)||gK(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(vK(this.colDef)||vK(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){HK((function(){o?console.warn(t,o):HK((function(){return console.warn(t)}),e)}),e)}if(this.gridOptionsService.isRowModelType("clientSide")&&!oY.__isRegistered(QK.RowGroupingModule,this.gridOptionsService.getGridId())&&(o=["enableRowGroup","rowGroup","rowGroupIndex","enablePivot","enableValue","pivot","pivotIndex","aggFunc"].filter((function(e){return gK(t[e])}))).length>0&&oY.__assertRegistered(QK.RowGroupingModule,o.map((function(t){return"colDef."+t})).join(", "),this.gridOptionsService.getGridId()),"agRichSelect"!==this.colDef.cellEditor&&"agRichSelectCellEditor"!==this.colDef.cellEditor||oY.__assertRegistered(QK.RichSelectModule,this.colDef.cellEditor,this.gridOptionsService.getGridId()),this.gridOptionsService.is("treeData")&&(o=["rowGroup","rowGroupIndex","pivot","pivotIndex"].filter((function(e){return gK(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"),gK(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&&oY.__assertRegistered(QK.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: "+mY(mY([],yY(n)),yY(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");gK(t.columnsMenuParams)&&oY.__assertRegistered(QK.MenuModule,"columnsMenuParams",this.gridOptionsService.getGridId()),gK(t.columnsMenuParams)&&oY.__assertRegistered(QK.ColumnsToolPanelModule,"columnsMenuParams",this.gridOptionsService.getGridId()),gK(this.colDef.width)&&"number"!=typeof this.colDef.width&&e("AG Grid: colDef.width should be a number, not "+typeof this.colDef.width,"ColumnCheck"),gK(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!!wK(this.colDef.suppressFillHandle)},t.prototype.isAutoHeight=function(){return!!wK(this.colDef.autoHeight)},t.prototype.isAutoHeaderHeight=function(){return!!wK(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!!wK(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 vK(this.sort)},t.prototype.isSorting=function(){return gK(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&&LK(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(vK(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(vK(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"),gK(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",vY([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),vY([lY("columnUtils")],t.prototype,"columnUtils",void 0),vY([lY("columnHoverService")],t.prototype,"columnHoverService",void 0),vY([rY],t.prototype,"initialise",null),t}(),bY=function(){function t(t,e,o,n){this.localEventService=new gY,this.expandable=!1,this.instanceId=wY(),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 SY?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,s=i.length;r=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([sY],t.prototype,"destroy",null),t}(),_Y={numericColumn:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"},rightAligned:{headerClass:"ag-right-aligned-header",cellClass:"ag-right-aligned-cell"}};function EY(){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 PY(t,e){for(var o=0;o-1}function NY(t){return[].concat.apply([],t)}function FY(t,e){null!=e&&null!=t&&e.forEach((function(e){return t.push(e)}))}var GY=Object.freeze({__proto__:null,firstExistingValue:EY,existsAndNotEmpty:function(t){return null!=t&&t.length>0},last:RY,areEqual:xY,shallowCompare:function(t,e){return xY(t,e)},sortNumerically:TY,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:OY,removeFromArray:DY,removeAllFromUnorderedArray:PY,removeAllFromArray:AY,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:IY,includes:LY,flatten:NY,pushAll:FY,toStrings:function(t){return t.map(mK)},forEachReverse:function(t,e){if(null!=t)for(var o=t.length-1;o>=0;o--)e(t[o],o)}}),kY="__ag_Grid_Stop_Propagation",VY=["touchstart","touchend","touchmove","touchcancel","scroll"],HY={};function BY(t){t[kY]=!0}function WY(t){return!0===t[kY]}var jY,zY=(jY={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){if("boolean"==typeof HY[t])return HY[t];var e=document.createElement(jY[t]||"div");return HY[t="on"+t]=t in e});function UY(t,e,o){for(var n=e;n;){var i=t.getDomData(n,o);if(i)return i;n=n.parentElement}return null}function KY(t,e){return!(!e||!t)&&XY(e).indexOf(t)>=0}function YY(t){for(var e=[],o=t.target;o;)e.push(o),o=o.parentElement;return e}function XY(t){var e=t;return e.path?e.path:e.composedPath?e.composedPath():YY(e)}function qY(t,e,o,n){var i=LY(VY,o)?{passive:!0}:void 0;t&&t.addEventListener&&t.addEventListener(e,o,n,i)}var $Y=Object.freeze({__proto__:null,stopPropagationForAgGrid:BY,isStopPropagationForAgGrid:WY,isEventSupported:zY,getCtrlForEventTarget:UY,isElementInEventPath:KY,createEventPath:YY,getEventPath:XY,addSafePassiveEventListener:qY}),ZY=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},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 gY),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?qY(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",ZY([lY("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),ZY([lY("context")],t.prototype,"context",void 0),ZY([lY("eventService")],t.prototype,"eventService",void 0),ZY([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),ZY([lY("localeService")],t.prototype,"localeService",void 0),ZY([lY("environment")],t.prototype,"environment",void 0),ZY([sY],t.prototype,"destroy",null),t}(),JY=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)}}(),tX=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},eX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return JY(e,t),e.prototype.setBeans=function(t){this.logger=t.create("ColumnFactory")},e.prototype.createColumnTree=function(t,e,o){var n=new _K,i=this.extractExistingTreeData(o),r=i.existingCols,s=i.existingGroups,a=i.existingColKeys;n.addExistingKeys(a);var l=this.recursivelyCreateColumns(t,0,e,r,n,s),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 bY&&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 bY){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 bY(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 bY;)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 bY(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 bY}))){c.setChildren([s]);continue}c.setChildren(t);break}i.push(s)}}return i},e.prototype.findMaxDept=function(t,e){for(var o=e,n=0;n0)if(this.gridOptionsService.is("enableRtl")){var e=RY(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 SY?e.push(o):o instanceof t&&o.addDisplayedLeafColumns(e)}))},t.prototype.addLeafColumns=function(e){this.children.forEach((function(o){o instanceof SY?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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),nX=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}(),iX=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}(),rX=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)}}(),sX=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},aX="ag-Grid-AutoColumn",lX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return rX(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?aX+"-"+t.getId():aX;var n=this.createAutoGroupColDef(o,t,e);n.colId=o;var i=new SY(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);LK(n,this.gridOptionsService.get("autoGroupColumnDef")),n=this.columnFactory.addColumnDefaultAndTypes(n,t),this.gridOptionsService.is("treeData")||vK(n.field)&&vK(n.valueGetter)&&vK(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},sX([lY("columnModel")],e.prototype,"columnModel",void 0),sX([lY("columnFactory")],e.prototype,"columnFactory",void 0),sX([aY("autoGroupColService")],e)}(QY),uX=/[&<>"']/g,cX={"&":"&","<":"<",">":">",'"':""","'":"'"};function pX(t,e){if(null==t)return null;var o=t.toString().toString();return e?o:o.replace(uX,(function(t){return cX[t]}))}function dX(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 hX(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLocaleLowerCase()}))}var fX=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;)s.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 s},CX=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)s.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 s},_X=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 xX(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]=TX(t,o).values})),n}function TX(t,e,o,n){var i,r,s=e.map((function(e,o){return{value:e,relevance:OX(t.toLowerCase(),e.toLocaleLowerCase()),idx:o}}));if(s.sort((function(t,e){return e.relevance-t.relevance})),o&&(s=s.filter((function(t){return 0!==t.relevance}))),s.length>0&&n&&n>0){var a=s[0].relevance*n;s=s.filter((function(t){return a-t.relevance<0}))}var l=[],u=[];try{for(var c=RX(s),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 OX(t,e){for(var o=t.replace(/\s/g,""),n=e.replace(/\s/g,""),i=0,r=-1,s=0;s=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},AX=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},MX=function(t,e){for(var o=0,n=e.length,i=t.length;o0&&HK((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=AX(e,2),i=n[0],r=n[1],s=t[i];s&&(IX(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:s))})),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."))},PX([lY("gridOptions")],t.prototype,"gridOptions",void 0),PX([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),PX([rY],t.prototype,"init",null),PX([aY("gridOptionsValidator")],t)}();function FX(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 GX=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)}}(),kX=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},VX=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},HX=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.")},WX=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 GX(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,s=this.columnFactory.createColumnTree(this.columnDefs,!0,r);this.destroyOldColumns(this.primaryColumnTree,s.columnTree),this.primaryColumnTree=s.columnTree,this.primaryHeaderRowCount=s.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 a=void 0===this.gridColsArePrimary;(this.gridColsArePrimary||a||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:nX.EVENT_NEW_COLUMNS_LOADED,source:t};this.eventService.dispatchEvent(e)},e.prototype.dispatchEverythingChanged=function(t){void 0===t&&(t="api");var e={type:nX.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=HX(HX([],VX(n)),VX(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:nX.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:nX.EVENT_COLUMN_PIVOT_MODE_CHANGED};this.eventService.dispatchEvent(o)}},e.prototype.getSecondaryPivotColumn=function(t,e){if(vK(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?RY(this.displayedColumnsRight):null):(e=this.displayedColumnsLeft?RY(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,s=t.source,a=void 0===s?"api":s;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,a),l.push(t),u++}return!0}),a);p||this.autoSizeColumnGroupsByColumns(o,a,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:nX.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:nX.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:nX.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:nX.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,s,a,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=BX(l),c=u.next();!c.done;c=u.next()){var p=c.value;try{for(var d=(r=void 0,BX(this.ctrlsService.getHeaderRowContainerCtrls())),h=d.next();!h.done&&!(a=h.value.getHeaderCtrlForColumn(p));h=d.next());}catch(t){r={error:t}}finally{try{h&&!h.done&&(s=d.return)&&s.call(d)}finally{if(r)throw r.error}}a&&a.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=[],s=null,a=function(a){var l,u=e[a],c=e.length-a,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[a+f]);a+=h}o?(l=!1,d.forEach((function(t){o(t)&&(l=!0)}))):l=!0,l&&(0===r.length&&s&&n&&n(u)&&r.push(s),r.push(u)),s=u,i=a},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 s=this;if(void 0===r&&(r="api"),t&&!yK(t)){var a=!1;if(t.forEach((function(t){var i=s.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),a=!0}})),a){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,nX.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),nX.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),nX.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)}),nX.EVENT_COLUMN_PIVOT_CHANGED,e)},e.prototype.setPivotColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.pivotColumns,nX.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)}),nX.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 s=this,a=new Map;e.forEach((function(t,e){return a.set(t,e)})),e.length=0,gK(t)&&t.forEach((function(t){var o=s.getPrimaryColumn(t);o&&e.push(o)})),e.forEach((function(t,e){var o=a.get(t);void 0!==o?n&&o!==e||a.delete(t):a.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,HX([],VX(a.keys())),r)},e.prototype.setValueColumns=function(t,e){void 0===e&&(e="api"),this.setPrimaryColumnList(t,this.valueColumns,nX.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),nX.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),nX.EVENT_COLUMN_VALUE_CHANGED,e)},e.prototype.normaliseColumnWidth=function(t,e){var o=t.getMinWidth();gK(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=[],s=[];o.forEach((function(t){var e=t.width,o=t.columns,n=t.ratios,a={},l={};o.forEach((function(t){return s.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-=a[e.getId()];else{t.push(e);var s=n[o];i+=s}}));var s=1/i;t.forEach((function(o,i){var c;i===t.length-1?c=r:(c=Math.round(n[i]*e*s),r-=c);var p=o.getMinWidth(),d=o.getMaxWidth();gK(p)&&c0&&c>d&&(c=d,l[o.getId()]=!0,u=!0),a[o.getId()]=c}))};u&&"break"!==p(););o.forEach((function(t){var e=a[t.getId()];t.getActualWidth()!==e&&(t.setActualWidth(e,i),r.push(t))}))}));var a=r.length>0,l=[];a&&(l=this.refreshFlexedColumns({resizingCols:s,skipSetLeft:!0}),this.setLeftValues(i),this.updateBodyWidths(),this.checkViewportColumns());var u=s.concat(l);(a||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(nX.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:nX.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)||(IY(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 IY(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:nX.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 yK(this.gridColumns)},e.prototype.isRowGroupEmpty=function(){return yK(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:nX.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(!yK(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),gK(n)&&n)){var s=n();s.columns=r,s.column=1===r.length?r[0]:null,this.eventService.dispatchEvent(s)}}},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,s=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:s}},e.prototype.getColumnState=function(){if(vK(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=gX(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,s=[];this.groupAutoColumns&&(s=s.concat(this.groupAutoColumns)),o&&(s=s.concat(o)),s.forEach((function(t){var o=e.getColumnStateFromColDef(t);vK(o.rowGroupIndex)&&o.rowGroup&&(o.rowGroupIndex=i++),vK(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),s=e(o.pinned,o.initialPinned),a=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:s,width:a,flex:l,rowGroup:c,rowGroupIndex:u,pivot:d,pivotIndex:p,aggFunc:h}},e.prototype.applyColumnState=function(t,e){var o=this;if(yK(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 s=o.compareColumnStatesAndDispatchEvents(e);o.autoGroupsNeedBuilding=!0;var a=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(aX))return c.push(n),void p.push(n);var s=r(i);s?(o.syncColumnWithStateItem(s,n,t.defaultState,l,u,!1,e),DY(a,s)):(p.push(n),d+=1)}));var g=function(n){return o.syncColumnWithStateItem(n,null,t.defaultState,l,u,!1,e)};a.forEach(g);var v=function(t,e,o,n){var i=t[o.getId()],r=t[n.getId()],s=null!=i,a=null!=r;if(s&&a)return i-r;if(s)return-1;if(a)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),s(),{unmatchedAndAutoStates:p,unmatchedCount:d}};this.columnAnimationService.start();var i=n(t.state||[],this.primaryColumns||[],(function(t){return o.getPrimaryColumn(t)})),r=i.unmatchedAndAutoStates,s=i.unmatchedCount;return(r.length>0||gK(t.defaultState))&&(s=n(r,this.secondaryColumns||[],(function(t){return o.getSecondaryColumn(t)})).unmatchedCount),this.columnAnimationService.finish(),0===s},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(aX)?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(),s=function(o,n,i,r){if(!xY(n.map(r),i.map(r))){var s=new Set(n);i.forEach((function(t){s.delete(t)||s.add(t)}));var a=HX([],VX(s)),l={type:o,columns:a,column:1===a.length?a[0]:null,source:t};e.eventService.dispatchEvent(l)}},a=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()};s(nX.EVENT_COLUMN_ROW_GROUP_CHANGED,o.rowGroupColumns,e.rowGroupColumns,l),s(nX.EVENT_COLUMN_PIVOT_CHANGED,o.pivotColumns,e.pivotColumns,l);var u=a((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(nX.EVENT_COLUMN_VALUE_CHANGED,u,t),e.dispatchColumnResizedEvent(a((function(t,e){return t.width!=e.getActualWidth()})),!0,t),e.dispatchColumnPinnedEvent(a((function(t,e){return t.pinned!=e.getPinned()})),t),e.dispatchColumnVisibleEvent(a((function(t,e){return t.hide==e.isVisible()})),t),a((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,s)}var h=a("sort").value1;void 0!==h&&("desc"===h||"asc"===h?t.setSort(h,s):t.setSort(void 0,s));var f=a("sortIndex").value1;if(void 0!==f&&t.setSortIndex(f),!r&&t.isPrimary()){var g=a("aggFunc").value1;void 0!==g&&("string"==typeof g?(t.setAggFunc(g),t.isValueActive()||(t.setValueActive(!0,s),this.valueColumns.push(t))):(gK(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,s),DY(this.valueColumns,t))));var v=a("rowGroup","rowGroupIndex"),y=v.value1,m=v.value2;void 0===y&&void 0===m||("number"==typeof m||y?(t.isRowGroupActive()||(t.setRowGroupActive(!0,s),this.rowGroupColumns.push(t)),n&&"number"==typeof m&&(n[t.getId()]=m)):t.isRowGroupActive()&&(t.setRowGroupActive(!1,s),DY(this.rowGroupColumns,t)));var C=a("pivot","pivotIndex"),w=C.value1,S=C.value2;void 0===w&&void 0===S||("number"==typeof S||w?(t.isPivotActive()||(t.setPivotActive(!0,s),this.pivotColumns.push(t)),i&&"number"==typeof S&&(i[t.getId()]=S)):t.isPivotActive()&&(t.setPivotActive(!1,s),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)?a.push(o):l.push(o))}));var u=function(t){var e=n(t.getColDef()),o=i(t.getColDef());return null!=e?e:o};a.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 bY){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 bY&&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:nX.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 bY?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 bY&&o.getId()===t&&(e=o)})),e},e.prototype.calculateColumnsForDisplay=function(){var t=this;return this.pivotMode&&vK(this.secondaryColumns)?this.gridColumns.filter((function(e){var o=t.groupAutoColumns&&LY(t.groupAutoColumns,e),n=t.valueColumns&&LY(t.valueColumns,e);return o||n})):this.gridColumns.filter((function(e){return t.groupAutoColumns&&LY(t.groupAutoColumns,e)||e.isVisible()}))},e.prototype.checkColSpanActiveInCols=function(t){var e=!1;return t.forEach((function(t){gK(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&&gK(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 gK(this.secondaryColumns)},e.prototype.setSecondaryColumns=function(t,e){var o=this;void 0===e&&(e="api");var n=t&&t.length>0;if(n||!vK(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(gK(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=gX(this.groupAutoColumns.map((function(t){return[t,!0]})));t=t.filter((function(t){return!i.has(t)})),t=HX(HX([],VX(this.groupAutoColumns)),VX(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:nX.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"))||HK((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(!vK(t)){var e=gX(t.map((function(t,e){return[t,e]}))),o=!0;if(this.gridColumns.forEach((function(t){e.has(t)&&(o=!1)})),!o){var n=gX(this.gridColumns.map((function(t){return[t,!0]}))),i=t.filter((function(t){return n.has(t)})),r=gX(i.map((function(t){return[t,!0]}))),s=this.gridColumns.filter((function(t){return!r.has(t)})),a=i.slice();s.forEach((function(t){var e=t.getOriginalParent();if(e){for(var o=[];!o.length&&e;)e.getLeafColumns().forEach((function(t){var e=a.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 a.indexOf(t)})),i=Math.max.apply(Math,HX([],VX(n)));MY(a,t,i+1)}else a.push(t)}else a.push(t)})),this.gridColumns=a}}},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)})),HX(HX(HX([],VX(e)),VX(o)),VX(n))},e.prototype.addAutoGroupToGridColumns=function(){if(vK(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:nX.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 s=0;i.forEach((function(e){e.setLeft(s,t),s+=e.getActualWidth()}))}PY(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 oX&&t.checkLeft()}))}))},e.prototype.derivedDisplayedColumnsFromDisplayedTree=function(t,e){e.length=0,this.columnUtils.depthFirstDisplayedColumnTreeSearch(t,(function(t){t instanceof SY&&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 vK(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,s=0;s=0;s--)if(i.has(r[s])){n=s;break}var a=0,l=[],u=0,c=0;for(s=0;sn?(l.push(this.displayedColumnsCenter[s]),c+=this.displayedColumnsCenter[s].getFlex(),u+=null!==(e=this.displayedColumnsCenter[s].getMinWidth())&&void 0!==e?e:0):a+=this.displayedColumnsCenter[s].getActualWidth();if(!l.length)return[];var p=[];a+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-a)/c;for(s=0;sC&&(y=C),y){g.setActualWidth(y,o),OY(l,g),c-=g.getFlex(),p.push(g),a+=g.getActualWidth();continue t}h[s]=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,s,a,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);ia&&t.setActualWidth(a,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()],E=null!==(r=null==_?void 0:_.minWidth)&&void 0!==r?r:null==n?void 0:n.defaultMinWidth,R=null!==(s=null==_?void 0:_.maxWidth)&&void 0!==s?s:null==n?void 0:n.defaultMaxWidth,x=null!==(a=b.getMinWidth())&&void 0!==a?a:0,T=null!==(l=b.getMaxWidth())&&void 0!==l?l:Number.MAX_VALUE,O="number"==typeof E&&E>x?E:b.getMinWidth(),D="number"==typeof R&&RD?(P=D,y(b),v=!1):0===S&&(P=w),b.setActualWidth(P,e,!0),w-=P}}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 iX;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 oX&&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&&FX("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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("columnUtils")],e)}(QY),UX=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)}}(),KX=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return UX(e,t),e.prototype.createDisplayedGroups=function(t,e,o,n){for(var i=this,r=this.mapOldGroupsById(n),s=[],a=t,l=function(){var t=a;a=[];for(var n=0,l=function(l){var u=n;n=l;var c=t[u],p=(c instanceof oX?c.getProvidedColumnGroup():c).getOriginalParent();if(null!=p){var d=i.createColumnGroup(p,e,r,o);for(h=u;h=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("displayedGroupCreator")],e)}(QY),YX=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)}}(),XX=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.componentsMappedByName={},e}return YX(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("agStackComponentsRegistry")],e)}(QY);function qX(t,e,o){null==o||""==o?ZX(t,e):$X(t,e,o)}function $X(t,e,o){t.setAttribute(QX(e),o.toString())}function ZX(t,e){t.removeAttribute(QX(e))}function QX(t){return"aria-"+t}function JX(t,e){e?t.setAttribute("role",e):t.removeAttribute("role")}function tq(t){return"asc"===t?"ascending":"desc"===t?"descending":"mixed"===t?"other":"none"}function eq(t){return parseInt(t.getAttribute("aria-level"),10)}function oq(t){return parseInt(t.getAttribute("aria-posinset"),10)}function nq(t,e){qX(t,"label",e)}function iq(t,e){qX(t,"labelledby",e)}function rq(t,e){qX(t,"description",e)}function sq(t,e){qX(t,"describedby",e)}function aq(t,e){qX(t,"live",e)}function lq(t,e){qX(t,"level",e)}function uq(t,e){qX(t,"disabled",e)}function cq(t,e){qX(t,"hidden",e)}function pq(t,e){qX(t,"activedescendant",e)}function dq(t,e){$X(t,"expanded",e)}function hq(t){ZX(t,"expanded")}function fq(t,e){$X(t,"setsize",e)}function gq(t,e){$X(t,"posinset",e)}function vq(t,e){$X(t,"multiselectable",e)}function yq(t,e){$X(t,"rowcount",e)}function mq(t,e){$X(t,"rowindex",e)}function Cq(t,e){$X(t,"colcount",e)}function wq(t,e){$X(t,"colindex",e)}function Sq(t,e){$X(t,"colspan",e)}function bq(t,e){$X(t,"sort",e)}function _q(t){ZX(t,"sort")}function Eq(t,e){qX(t,"selected",e)}function Rq(t,e){$X(t,"checked",void 0===e?"mixed":e)}function xq(t,e){qX(t,"controls",e.id),iq(e,t.id)}function Tq(t,e){return void 0===e?t("ariaIndeterminate","indeterminate"):!0===e?t("ariaChecked","checked"):t("ariaUnchecked","unchecked")}var Oq,Dq,Pq,Aq,Mq,Iq,Lq,Nq,Fq=Object.freeze({__proto__:null,setAriaRole:JX,getAriaSortState:tq,getAriaLevel:eq,getAriaPosInSet:oq,getAriaDescribedBy:function(t){return t.getAttribute("aria-describedby")||""},setAriaLabel:nq,setAriaLabelledBy:iq,setAriaDescription:rq,setAriaDescribedBy:sq,setAriaLive:aq,setAriaLevel:lq,setAriaDisabled:uq,setAriaHidden:cq,setAriaActiveDescendant:pq,setAriaExpanded:dq,removeAriaExpanded:hq,setAriaSetSize:fq,setAriaPosInSet:gq,setAriaMultiSelectable:vq,setAriaRowCount:yq,setAriaRowIndex:mq,setAriaColCount:Cq,setAriaColIndex:wq,setAriaColSpan:Sq,setAriaSort:bq,removeAriaSort:_q,setAriaSelected:Eq,setAriaChecked:Rq,setAriaControls:xq,getAriaCheckboxStateName:Tq});function Gq(){return void 0===Oq&&(Oq=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)),Oq}function kq(){if(void 0===Dq)if(Gq()){var t=navigator.userAgent.match(/version\/(\d+)/i);t&&(Dq=null!=t[1]?parseFloat(t[1]):0)}else Dq=0;return Dq}function Vq(){if(void 0===Pq){var t=window;Pq=!!t.chrome&&(!!t.chrome.webstore||!!t.chrome.runtime)||/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor)}return Pq}function Hq(){return void 0===Aq&&(Aq=/(firefox)/i.test(navigator.userAgent)),Aq}function Bq(){return void 0===Mq&&(Mq=/(Mac|iPhone|iPod|iPad)/i.test(navigator.platform)),Mq}function Wq(){return void 0===Iq&&(Iq=/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1),Iq}function jq(){return!Gq()||kq()>=15}function zq(t){if(!t)return null;var e=t.tabIndex,o=t.getAttribute("tabIndex");return-1!==e||null!==o&&(""!==o||Hq())?e.toString():null}function Uq(){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 Kq(){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 Yq(){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 Xq(){return null==Nq&&qq(),Nq}function qq(){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&&(Nq=o,Lq=0===o)}function $q(){return null==Lq&&qq(),Lq}var Zq=Object.freeze({__proto__:null,isBrowserSafari:Gq,getSafariVersion:kq,isBrowserChrome:Vq,isBrowserFirefox:Hq,isMacOsUserAgent:Bq,isIOSUserAgent:Wq,browserSupportsPreventScroll:jq,getTabIndex:zq,getMaxDivHeight:Uq,getBodyWidth:Kq,getBodyHeight:Yq,getScrollbarWidth:Xq,isInvisibleScrollbar:$q});function Qq(t,e){return t.toString().padStart(e,"0")}function Jq(t,e){for(var o=[],n=t;n<=e;n++)o.push(n);return o}function t$(t,e,o){return"number"!=typeof t?"":t.toString().replace(".",o).replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+e)}var e$=Object.freeze({__proto__:null,padStartWidthZeros:Qq,createArrayOfNumbers:Jq,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?"":t$(Math.round(100*t)/100,e,o)},formatNumberCommas:t$,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}}),o$=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s};function n$(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 Qq(t,2)})).join(o);return e&&(n+=" "+[t.getHours(),t.getMinutes(),t.getSeconds()].map((function(t){return Qq(t,2)})).join(":")),n}var i$=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 r$(t,e){void 0===e&&(e="YYYY-MM-DD");var o=Qq(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 Qq(t.getMonth()+1,2)},Mo:function(){return""+(t.getMonth()+1)+i$(t.getMonth()+1)},M:function(){return""+(t.getMonth()+1)},Do:function(){return""+t.getDate()+i$(t.getDate())},DD:function(){return Qq(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()+i$(t.getDay())},d:function(){return""+t.getDay()}},s=new RegExp(Object.keys(r).join("|"),"g");return e.replace(s,(function(t){return t in r?r[t]():t}))}function s$(t){if(!t)return null;var e=o$(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=o$(i,3),s=r[0],a=r[1],l=r[2],u=new Date(s,a-1,l);if(u.getFullYear()!==s||u.getMonth()!==a-1||u.getDate()!==l)return null;if(!n||"00:00:00"===n)return u;var c=o$(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 a$,l$=Object.freeze({__proto__:null,serialiseDate:n$,dateToFormattedString:r$,parseDateTimeFromString:s$}),u$=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s};function c$(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 p$="[tabindex], input, select, button, textarea, [href]",d$=".ag-hidden, .ag-hidden *, [disabled], .ag-disabled:not(.ag-button), .ag-disabled *";function h$(t){var e=Element.prototype.matches||Element.prototype.msMatchesSelector,o=e.call(t,"input, select, button, textarea"),n=e.call(t,d$),i=D$(t);return o&&!n&&i}function f$(t,e,o){void 0===o&&(o={});var n=o.skipAriaHidden;t.classList.toggle("ag-hidden",!e),n||cq(t,!e)}function g$(t,e,o){void 0===o&&(o={});var n=o.skipAriaHidden;t.classList.toggle("ag-invisible",!e),n||cq(t,!e)}function v$(t,e){var o="disabled",n=e?function(t){return t.setAttribute(o,"")}:function(t){return t.removeAttribute(o)};n(t),Y$(t.querySelectorAll("input"),(function(t){return n(t)}))}function y$(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 m$(t){var e=window.getComputedStyle(t),o=e.height,n=e.width,i=e.borderTopWidth,r=e.borderRightWidth,s=e.borderBottomWidth,a=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(s),borderLeftWidth:parseFloat(a),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 C$(t){var e=m$(t);return"border-box"===e.boxSizing?e.height-e.paddingTop-e.paddingBottom:e.height}function w$(t){var e=m$(t);return"border-box"===e.boxSizing?e.width-e.paddingLeft-e.paddingRight:e.width}function S$(t){var e=m$(t),o=e.marginBottom+e.marginTop;return Math.ceil(t.offsetHeight+o)}function b$(t){var e=m$(t),o=e.marginLeft+e.marginRight;return Math.ceil(t.offsetWidth+o)}function _$(t){var e=t.getBoundingClientRect(),o=m$(t),n=o.borderTopWidth,i=o.borderLeftWidth,r=o.borderRightWidth,s=o.borderBottomWidth;return{top:e.top+(n||0),left:e.left+(i||0),right:e.right+(r||0),bottom:e.bottom+(s||0)}}function E$(){if("boolean"==typeof a$)return a$;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,a$=0===Math.floor(t.scrollLeft),document.body.removeChild(t),a$}function R$(t,e){var o=t.scrollLeft;return e&&(o=Math.abs(o),Vq()&&!E$()&&(o=t.scrollWidth-t.clientWidth-o)),o}function x$(t,e,o){o&&(E$()?e*=-1:(Gq()||Vq())&&(e=t.scrollWidth-t.clientWidth-e)),t.scrollLeft=e}function T$(t){for(;t&&t.firstChild;)t.removeChild(t.firstChild)}function O$(t){t&&t.parentNode&&t.parentNode.removeChild(t)}function D$(t){return null!==t.offsetParent}function P$(t){var e=document.createElement("div");return e.innerHTML=(t||"").trim(),e.firstChild}function A$(t){return t&&t.clientHeight?t.clientHeight:0}function M$(t){return t&&t.clientWidth?t.clientWidth:0}function I$(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&&jq()&&n.focus({preventScroll:!0})}}function L$(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 s=u$(r.value,2),a=s[0],l=s[1];if(a&&a.length&&null!=l){var u=hX(a),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 G$(t){return t.clientWidth-1||"object"==typeof i&&i["ag-icon"])return n}var r=document.createElement("span");return r.appendChild(n),r}function Q$(t,e,o,n){var i=null,r=o&&o.getColDef().icons;if(r&&(i=r[t]),e&&!i){var s=e.get("icons");s&&(i=s[t])}if(!i){var a=document.createElement("span"),l=$$[t];return l||(n?l=t:(console.warn("AG Grid: Did not find icon "+t),l="")),a.setAttribute("class","ag-icon ag-icon-"+l),a.setAttribute("unselectable","on"),JX(a,"presentation"),a}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?P$(u):j$(u)?u:void console.warn("AG Grid: iconRenderer should return back a string or a dom object")}var J$=Object.freeze({__proto__:null,iconNameClassMap:$$,createIcon:Z$,createIconNoSpan:Q$}),tZ=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 eZ(t){return!(t.altKey||t.ctrlKey||t.metaKey)&&1===t.key.length}function oZ(t,e,o,n,i){var r=n?n.getColDef().suppressKeyboardEvent:void 0;if(!r)return!1;var s={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(s))}function nZ(t,e,o,n){var i=n.getDefinition(),r=i&&i.suppressHeaderKeyboardEvent;return!!gK(r)&&!!r({api:t.api,columnApi:t.columnApi,context:t.context,colDef:i,column:n,headerRowIndex:o,event:e})}function iZ(t){var e;switch(t.keyCode){case 65:e=tZ.A;break;case 67:e=tZ.C;break;case 86:e=tZ.V;break;case 68:e=tZ.D;break;case 90:e=tZ.Z;break;case 89:e=tZ.Y;break;default:e=t.code}return e}function rZ(t,e){return void 0===e&&(e=!1),t===tZ.DELETE||!e&&t===tZ.BACKSPACE&&Bq()}var sZ=Object.freeze({__proto__:null,isEventFromPrintableCharacter:eZ,isUserSuppressingKeyboardEvent:oZ,isUserSuppressingHeaderKeyboardEvent:nZ,normaliseQwertyAzerty:iZ,isDeleteKey:rZ});function aZ(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 lZ=Object.freeze({__proto__:null,areEventsNear:aZ}),uZ=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,s=void 0!==i;return r&&s?n-i:r||s?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 cZ(t){var e=new Set;return t.forEach((function(t){return e.add(t)})),e}var pZ,dZ=Object.freeze({__proto__:null,convertToSet:cZ}),hZ=function(){return hZ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.NOTHING=0]="NOTHING",t[t.WAITING_TO_SHOW=1]="WAITING_TO_SHOW",t[t.SHOWING=2]="SHOWING"}(vZ||(vZ={})),function(t){t[t.HOVER=0]="HOVER",t[t.FOCUS=1]="FOCUS"}(yZ||(yZ={}));var bZ=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=vZ.NOTHING,i.tooltipInstanceCount=0,i.tooltipMouseTrack=!1,i}return CZ(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===yZ.HOVER&&(this.addManagedListener(t,"mouseenter",this.onMouseEnter.bind(this)),this.addManagedListener(t,"mouseleave",this.onMouseLeave.bind(this))),this.tooltipTrigger===yZ.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(gK(e))return e<0&&HK((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?yZ.FOCUS:yZ.HOVER},e.prototype.onMouseEnter=function(t){var o=this;this.interactionEnabled&&this.interactiveTooltipTimeoutId&&(this.unlockService(),this.startHideTimeout()),Wq()||(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===vZ.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!=vZ.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=vZ.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}(),EZ=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)}}(),RZ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},xZ=new gZ,TZ=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 _Z((function(){return o.eGui})),e&&o.setTemplate(e),o}return EZ(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 bZ(n,e,o)))))},e.prototype.createChildComponentsFromTags=function(t,e){var o=this;z$(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,s=this.agStackComponentsRegistry.getComponentClass(i);if(s){e.elementGettingCreated=t;var a=new s(r);return a.setParentComponent(this),this.createBean(a,null,o),a}return null},e.prototype.copyAttributesFromNode=function(t,e){U$(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=BK(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=P$(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),j$(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;g$(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;f$(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",RZ([lY("agStackComponentsRegistry")],e.prototype,"agStackComponentsRegistry",void 0),RZ([iY],e.prototype,"preConstructOnComponent",null),RZ([iY],e.prototype,"createChildComponentsPreConstruct",null),e}(QY);function OZ(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,BK(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 PZ=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)}}(),AZ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},MZ=function(t){function e(){return t.call(this,'\n ')||this}return PZ(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)},AZ([OZ("eFloatingFilterText")],e.prototype,"eFloatingFilterText",void 0),AZ([lY("columnModel")],e.prototype,"columnModel",void 0),e}(TZ),IZ=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){f$(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}(),LZ=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}(),NZ={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"},FZ=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)}}(),GZ=function(){return GZ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},VZ=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=GZ({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 FZ(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||WY(t)||(e.callbacks.shouldStopEventPropagation(t)?BY(t):t.key===tZ.TAB?e.callbacks.onTabKeyDown(t):e.callbacks.handleKeyDown&&e.callbacks.handleKeyDown(t))}))},e.FOCUS_MANAGED_CLASS="ag-focus-managed",kZ([lY("focusService")],e.prototype,"focusService",void 0),kZ([rY],e.prototype,"postConstruct",null),e}(QY),HZ=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)}}(),BZ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},WZ="ag-resizer-wrapper",jZ='
\n
\n
\n
\n
\n
\n
\n
\n
\n
',zZ=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 HZ(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,s=t.height,a=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),s&&this.setHeight(s),i&&s||this.refreshSize(),e)this.center();else if(a||l)this.offsetElement(a,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("%"))B$(o,t),t=S$(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?B$(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(),s=e?this.position.y:i.top,a=e?0:r.top,l=0;if(o){var u=this.element.parentElement;u&&(l=u.getBoundingClientRect().bottom-i.bottom)}return n+a-s-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("%"))H$(e,t),t=b$(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?H$(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,s=e.clientX-this.dragStartPosition.x,a=e.clientY-this.dragStartPosition.y;return{movementX:this.shouldSkipX(e,!!o,!!i,s)?0:s,movementY:this.shouldSkipY(e,!!n,r,a)?0:a}},e.prototype.shouldSkipX=function(t,e,o,n){var i=this.element.getBoundingClientRect(),r=this.offsetParent.getBoundingClientRect(),s=this.boundaryEl.getBoundingClientRect(),a=this.config.popup?this.position.x:i.left,l=a<=0&&r.left>=t.clientX||r.right<=t.clientX&&r.right<=s.right;return!!l||(e?n<0&&t.clientX>a+r.left||n>0&&t.clientXs.right||n>0&&t.clientXs.right||n>0&&t.clientX=t.clientY||r.bottom<=t.clientY&&r.bottom<=s.bottom;return!!l||(e?n<0&&t.clientY>a+r.top+o||n>0&&t.clientYs.bottom||n>0&&t.clientYthis.element.parentElement.offsetHeight&&(E=!0),E||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}),s=r.movementX,a=r.movementY;this.offsetElement(n+s,i+a),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()},BZ([lY("popupService")],e.prototype,"popupService",void 0),BZ([lY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),BZ([lY("dragService")],e.prototype,"dragService",void 0),e}(QY),UZ=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)}}(),KZ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},YZ=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 UZ(e,t),e.prototype.postConstruct=function(){this.resetTemplate(),this.createManagedBean(new VZ(this.getFocusableElement(),{handleKeyDown:this.handleKeyDown.bind(this)})),this.positionableFeature=new zZ(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"),cZ(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=P$(''+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=XK(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());v$(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,NZ[t])},e.prototype.getCellValue=function(t){var e=this.providedFilterParams,o=e.api,n=e.colDef,i=e.column,r=e.columnApi,s=e.context;return this.providedFilterParams.valueGetter({api:o,colDef:n,column:i,columnApi:r,context:s,data:t.data,getValue:function(e){return t.data[e]},node:t})},e.prototype.getPositionableElement=function(){return this.eFilterBody},KZ([lY("rowModel")],e.prototype,"rowModel",void 0),KZ([OZ("eFilterBody")],e.prototype,"eFilterBody",void 0),KZ([rY],e.prototype,"postConstruct",null),e}(TZ),XZ=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)}}(),qZ=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 XZ(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(){T$(this.eLabel),"string"==typeof this.label?this.eLabel.innerText=this.label+this.labelSeparator:this.label&&this.eLabel.appendChild(this.label),""===this.label?(f$(this.eLabel,!1),JX(this.eLabel,"presentation")):(f$(this.eLabel,!0),JX(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||V$(this.eLabel,t),this},e.prototype.setDisabled=function(t){t=!!t;var e=this.getGui();return v$(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(TZ),$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)}}(),ZZ=function(t){function e(e,o,n){var i=t.call(this,e,o)||this;return i.className=n,i}return $Z(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,nX.EVENT_FIELD_VALUE_CHANGED,(function(){return t(e.getValue())})),this},e.prototype.getWidth=function(){return this.getGui().clientWidth},e.prototype.setWidth=function(t){return H$(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:nX.EVENT_FIELD_VALUE_CHANGED})),this},e}(qZ),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)}}(),JZ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},tQ=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,s=e.minPickerWidth,a=e.maxPickerWidth;return null!=n&&(o.pickerGap=n),o.variableWidth=!!r,null!=i&&o.setPickerMaxHeight(i),null!=s&&o.setPickerMinWidth(s),null!=a&&o.setPickerMaxWidth(a),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();sq(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=Q$(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()),dq(t,!1),this.ariaRole&&JX(t,this.ariaRole)},e.prototype.refreshLabel=function(){var e;iq(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 tZ.UP:case tZ.DOWN:case tZ.ENTER:case tZ.SPACE:t.preventDefault(),this.onLabelOrWrapperMouseDown();break;case tZ.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,s=i.pickerAriaLabelKey,a=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(s,a)},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=W$(b$(this.eWrapper)),f&&(o.style.maxWidth=f)):V$(o,null!=f?f:b$(this.eWrapper));var v=null!=d?d:C$(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()&&(dq(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 nq(this.getAriaElement(),t),this},e.prototype.setInputWidth=function(t){return V$(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)},JZ([lY("popupService")],e.prototype,"popupService",void 0),JZ([OZ("eLabel")],e.prototype,"eLabel",void 0),JZ([OZ("eWrapper")],e.prototype,"eWrapper",void 0),JZ([OZ("eDisplayField")],e.prototype,"eDisplayField",void 0),JZ([OZ("eIcon")],e.prototype,"eIcon",void 0),e}(ZZ),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(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 eQ(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 tZ.ENTER:if(this.highlightedEl){var o=this.itemEls.indexOf(this.highlightedEl);this.setValueByIndex(o)}else this.setValue(this.getValue());break;case tZ.DOWN:case tZ.UP:var n=e===tZ.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=pX(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){gq(e,o+1),fq(e,t.length)}))},e.prototype.renderOption=function(t,e){var o=this,n=document.createElement("div");JX(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),Eq(this.highlightedEl,!0),this.highlightedEl.focus())},e.prototype.clearHighlighted=function(){this.highlightedEl&&this.highlightedEl.offsetParent&&(this.highlightedEl.classList.remove(e.ACTIVE_CLASS),Eq(this.highlightedEl,!1),this.highlightedEl=null)},e.prototype.fireChangeEvent=function(){this.dispatchEvent({type:nX.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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"init",null),e}(TZ),nQ=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)}}(),iQ=function(){return iQ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},lQ=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 sQ(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(){gK(this.getLabel())?iq(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 V$(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 K$(this.eInput,"placeholder",t),this},e.prototype.setInputAriaLabel=function(t){return nq(this.eInput,t),this},e.prototype.setDisabled=function(e){return v$(this.eInput,e),t.prototype.setDisabled.call(this,e)},e.prototype.setAutoComplete=function(t){if(!0===t)K$(this.eInput,"autocomplete",null);else{var e="string"==typeof t?t:"off";K$(this.eInput,"autocomplete",e)}return this},aQ([OZ("eLabel")],e.prototype,"eLabel",void 0),aQ([OZ("eWrapper")],e.prototype,"eWrapper",void 0),aQ([OZ("eInput")],e.prototype,"eInput",void 0),e}(ZZ),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,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 uQ(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:nX.EVENT_FIELD_VALUE_CHANGED,selected:t,previousValue:e,event:o});var n=this.getInputElement(),i={type:nX.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}(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(t){function e(e){return t.call(this,e,"ag-radio-button","radio")||this}return pQ(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,nX.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}(cQ),hQ=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)}}(),fQ=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 s=r.map((function(t){return e.getModelAsString(t)})),a="AND"===i.operator?"andCondition":"orCondition";return s.join(" "+n(a,NZ[a])+" ")}if(t.type===gQ.BLANK||t.type===gQ.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}(),gQ=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 hQ(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 s=t,a=e;n=this.areSimpleModelsEqual(s,a)}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(a.type,!0),this.setConditionIntoUi(a,0)}return this.lastUiCompletePosition=this.getNumConditions()-1,this.createMissingConditionsAndOperators(),this.onUiChanged(),mZ.resolve()},e.prototype.validateAndUpdateConditions=function(t){var e=t.length;return e>this.maxNumConditions&&(t.splice(this.maxNumConditions),HK((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 s=n;r.push.apply(r,function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)s.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 s}(null!==(e=s.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 LZ,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&&HK((function(){return console.warn('AG Grid: Since v29.2 "filterParams.suppressAndOrCondition" is deprecated. Use "filterParams.maxNumConditions = 1" instead.')}),"simpleFilterSuppressAndOrCondition"),null!=t.alwaysShowBothConditions&&HK((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&&(HK((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&&(HK((function(){return console.warn('AG Grid: "filterParams.numAlwaysVisibleConditions" must be greater than or equal to zero.')}),"simpleFilterNumAlwaysVisibleConditions"),this.numAlwaysVisibleConditions=1),this.numAlwaysVisibleConditions>this.maxNumConditions&&(HK((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 rQ);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 dQ);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,s),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&&(v$(o.eJoinOperatorPanels[0],i),o.eJoinOperatorsAnd[0].setDisabled(i),o.eJoinOperatorsOr[0].setDisabled(i))})),this.eConditionBodies.forEach((function(t,e){f$(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 O$(t)}))},e.prototype.removeComponents=function(t,e,o){var n=this;this.removeItems(t,e,o).forEach((function(t){O$(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 lQ&&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(),s=this.getNumConditions()-1;s>=0;s--)if(this.isConditionUiComplete(s))-1===o&&(o=s,n=s);else{var a=s=this.numAlwaysVisibleConditions&&!this.isConditionUiComplete(s-1)||a)&&(this.removeConditionsAndOperators(s,1),i=!0,a&&n--)}var l=!1;this.getNumConditions()1?"inRangeStart":0===n?"filterOoo":"inRangeEnd",a=0===n&&r>1?e("ariaFilterFromValue","Filter from value"):0===n?e("ariaFilterValue","Filter Value"):e("ariaFilterToValue","Filter to Value");o.setInputPlaceholder(t.getPlaceholderText(s,i)),o.setInputAriaLabel(a)}}))},e.prototype.setElementValue=function(t,e,o){t instanceof lQ&&t.setValue(null!=e?String(e):null,!0)},e.prototype.setElementDisplayed=function(t,e){t instanceof TZ&&f$(t.getGui(),e)},e.prototype.setElementDisabled=function(t,e){t instanceof TZ&&v$(t.getGui(),e)},e.prototype.attachElementOnChange=function(t,e){t instanceof lQ&&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,s){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}(YZ),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(t){function e(){return null!==t&&t.apply(this,arguments)||this}return vQ(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 s=i(t[1],o);return this.scalarFilterParams.inRangeInclusive?r>=0&&s<=0:r>0&&s<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}(gQ),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)}}(),CQ=function(){return CQ=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",wQ),this.minValidYear>this.maxValidYear&&console.warn("AG Grid: DateFilter minValidYear should be <= maxValidYear"),e.minValidDate?this.minValidDate=e.minValidDate instanceof Date?e.minValidDate:s$(e.minValidDate):this.minValidDate=null,e.maxValidDate?this.maxValidDate=e.maxValidDate instanceof Date?e.maxValidDate:s$(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 SQ(this.dateFilterParams,this.localeService,this.optionsFactory)},e.prototype.createDateCompWrapper=function(t){var e=this,o=new IZ(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,s){r!==e||!n||i>=s||(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=n$(n[0])),n.length>1&&(o.dateTo=n$(n[1])),CQ({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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([lY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),e}(yQ),_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)}}(),EQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return _Q(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 LZ,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=[gQ.IN_RANGE,gQ.EMPTY,gQ.BLANK,gQ.NOT_BLANK];return!!t&&!this.isReadOnly()&&this.doesFilterHaveSingleInput(t)&&e.indexOf(t)<0},e}(TZ),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)}}(),xQ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},TQ=function(t){function e(){return t.call(this,'\n ')||this}return RQ(e,t),e.prototype.getDefaultFilterOptions=function(){return bQ.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 SQ(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){f$(this.eDateWrapper,t),f$(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(s$(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=n$(this.dateComp.getDate());this.params.parentFilterInstance((function(o){if(o){var n=s$(e);o.onFloatingFilterChanged(t.getLastType()||null,n)}}))},e.prototype.getDateComponentParams=function(){var t=YZ.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs());return{onDateChanged:XK(this.onDateChanged.bind(this),t),filterParams:this.params.column.getColDef().filterParams}},e.prototype.createDateComponent=function(){var t=this;this.dateComp=new IZ(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([lY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),xQ([OZ("eReadOnlyText")],e.prototype,"eReadOnlyText",void 0),xQ([OZ("eDateWrapper")],e.prototype,"eDateWrapper",void 0),e}(EQ),OQ=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 OQ(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&&Gq(),e.type=o?"date":"text";var n=t.filterParams||{},i=n.minValidYear,r=n.maxValidYear,s=n.minValidDate,a=n.maxValidDate;if(s&&i&&HK((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"),a&&r&&HK((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"),s&&a){var l=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s}([s,a].map((function(t){return t instanceof Date?t:s$(t)})),2),u=l[0],c=l[1];u&&c&&u.getTime()>c.getTime()&&HK((function(){return console.warn("AG Grid: DateFilter parameter minValidDate should always be lower than or equal to parameter maxValidDate.")}),"DateFilter.minValidDateAndMaxValidDateWarning")}s?s instanceof Date?e.min=r$(s):e.min=s:i&&(e.min=i+"-01-01"),a?a instanceof Date?e.max=r$(a):e.max=a:r&&(e.max=r+"-12-31")},e.prototype.onParamsUpdated=function(t){this.params=t,this.setParams(t)},e.prototype.getDate=function(){return s$(this.eDateInput.getValue())},e.prototype.setDate=function(t){this.eDateInput.setValue(n$(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:Vq()||Hq()||Gq()&&kq()>=14.1},function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([OZ("eDateInput")],e.prototype,"eDateInput",void 0),e}(TZ),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)}}(),AQ=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 PQ(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=gK(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){eZ(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}(lQ),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)}}(),IQ=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,K$(this.eInput,"min",t)),this},e.prototype.setMax=function(t){return this.max===t||(this.max=t,K$(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,K$(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(gK(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}(AQ),LQ=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)}}(),NQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return LQ(e,t),e.prototype.conditionToString=function(t,e){var o=(e||{}).numberOfInputs;return t.type==gQ.IN_RANGE||2===o?this.formatValue(t.filter)+"-"+this.formatValue(t.filterTo):null!=t.filter?this.formatValue(t.filter):""+t.type},e}(fQ);function FQ(t){var e=(null!=t?t:{}).allowedCharPattern;return null!=e?e:null}var GQ,kQ,VQ,HQ=function(t){function e(){var e=t.call(this,"numberFilter")||this;return e.eValuesFrom=[],e.eValuesTo=[],e}return LQ(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=[yQ.EQUALS,yQ.NOT_EQUAL,yQ.LESS_THAN,yQ.LESS_THAN_OR_EQUAL,yQ.GREATER_THAN,yQ.GREATER_THAN_OR_EQUAL,yQ.IN_RANGE,yQ.BLANK,yQ.NOT_BLANK],e}(yQ),BQ=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)}}(),WQ=function(){return WQ=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,s,a){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)}))||[],s=this.formatter(e),a=this.textFilterParams,l=a.api,u=a.colDef,c=a.column,p=a.columnApi,d=a.context,h=a.textFormatter;if(o.type===gQ.BLANK)return this.isBlank(e);if(o.type===gQ.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:s,textFormatter:h};return r.some((function(t){return i.matcher(WQ(WQ({},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=[gQ.CONTAINS,gQ.NOT_CONTAINS,gQ.EQUALS,gQ.NOT_EQUAL,gQ.STARTS_WITH,gQ.ENDS_WITH,gQ.BLANK,gQ.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}(gQ),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)}}(),KQ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},YQ=function(t){function e(e){var o=t.call(this)||this;return o.params=e,o.valueChangedListener=function(){},o}return UQ(e,t),e.prototype.setupGui=function(t){var e,o=this;this.eFloatingFilterTextInput=this.createManagedBean(new AQ(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),XQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return UQ(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=YZ.isUseApplyButton(this.params.filterParams),!this.isReadOnly()){var n=YZ.getDebounceMs(this.params.filterParams,this.getDefaultDebounceMs()),i=XK(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();T$(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===tZ.ENTER;if(!this.applyActive||o){var n=this.floatingFilterInputService.getValue();this.params.filterParams.trimInput&&(n=zQ.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)},KQ([lY("columnModel")],e.prototype,"columnModel",void 0),KQ([OZ("eFloatingFilterInputContainer")],e.prototype,"eFloatingFilterInputContainer",void 0),KQ([rY],e.prototype,"postConstruct",null),e}(EQ),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)}}(),$Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.valueChangedListener=function(){},e.numberInputActive=!0,e}return qQ(e,t),e.prototype.setupGui=function(t){var e=this;this.eFloatingFilterNumberInput=this.createManagedBean(new IQ),this.eFloatingFilterTextInput=this.createManagedBean(new AQ),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),ZQ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return qQ(e,t),e.prototype.init=function(e){var o;t.prototype.init.call(this,e),this.filterModelFormatter=new NQ(this.localeService,this.optionsFactory,null===(o=e.filterParams)||void 0===o?void 0:o.numberFormatter)},e.prototype.onParamsUpdated=function(e){FQ(e.filterParams)!==this.allowedCharPattern&&this.recreateFloatingFilterInputService(e),t.prototype.onParamsUpdated.call(this,e),this.filterModelFormatter.updateParams({optionsFactory:this.optionsFactory})},e.prototype.getDefaultFilterOptions=function(){return HQ.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(t){return this.allowedCharPattern=FQ(t.filterParams),this.allowedCharPattern?this.createManagedBean(new YQ({config:{allowedCharPattern:this.allowedCharPattern}})):this.createManagedBean(new $Q)},e}(XQ),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)}}(),JQ=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 jQ(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 zQ.DEFAULT_FILTER_OPTIONS},e.prototype.getFilterModelFormatter=function(){return this.filterModelFormatter},e.prototype.createFloatingFilterInputService=function(){return this.createManagedBean(new YQ)},e}(XQ),tJ=function(){function t(t,e){var o=this;void 0===e&&(e=!1),this.destroyFuncs=[],this.touching=!1,this.eventService=new gY,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}(),eJ=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)}}(),oJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},nJ=function(t){function e(o){var n=t.call(this)||this;return o||n.setTemplate(e.TEMPLATE),n}return eJ(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,nX.EVENT_SORT_CHANGED,(function(){return o.onSortChanged()})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return o.onSortChanged()})),this.onSortChanged())},e.prototype.addInIcon=function(t,e,o){if(null!=e){var n=Q$(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;f$(this.eSortAsc,e,{skipAriaHidden:!0})}if(this.eSortDesc){var o="desc"===t;f$(this.eSortDesc,o,{skipAriaHidden:!0})}if(this.eSortNone){var n=!this.column.getColDef().unSortIcon&&!this.gridOptionsService.is("unSortIcon"),i=null==t;f$(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,nX.EVENT_SORT_CHANGED,(function(){return t.updateMultiSortIndicator()})),this.addManagedListener(this.eventService,nX.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);f$(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;f$(this.eSortOrder,r,{skipAriaHidden:!0}),n>=0?this.eSortOrder.innerHTML=(n+1).toString():T$(this.eSortOrder)}},e.TEMPLATE='\n \n \n \n \n \n ',oJ([OZ("eSortOrder")],e.prototype,"eSortOrder",void 0),oJ([OZ("eSortAsc")],e.prototype,"eSortAsc",void 0),oJ([OZ("eSortDesc")],e.prototype,"eSortDesc",void 0),oJ([OZ("eSortMixed")],e.prototype,"eSortMixed",void 0),oJ([OZ("eSortNone")],e.prototype,"eSortNone",void 0),oJ([lY("columnModel")],e.prototype,"columnModel",void 0),oJ([lY("sortController")],e.prototype,"sortController",void 0),e}(TZ),iJ=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)}}(),rJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},sJ=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.lastMovingChanged=0,e}return iJ(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=EY(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=pX(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=Q$(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 tJ(this.getGui(),!0),n=e.is("suppressMenuHide"),i=n&&gK(this.eMenu),r=i?new tJ(this.eMenu,!0):o;if(this.params.enableMenu){var s=i?"EVENT_TAP":"EVENT_LONG_TAP";this.addManagedListener(r,tJ[s],(function(o){e.api.showColumnMenuAfterMouseClick(t.params.column,o.touchStart)}))}this.params.enableSorting&&this.addManagedListener(o,tJ.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=Wq()&&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 O$(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 nJ(!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,SY.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,nX.EVENT_SORT_CHANGED,o),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,o)}},e.prototype.setupFilterIcon=function(){this.eFilter&&(this.addManagedListener(this.params.column,SY.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.onFilterChanged())},e.prototype.onFilterChanged=function(){var t=this.params.column.isFilterActive();f$(this.eFilter,t,{skipAriaHidden:!0})},e.TEMPLATE='',rJ([lY("sortController")],e.prototype,"sortController",void 0),rJ([lY("menuFactory")],e.prototype,"menuFactory",void 0),rJ([lY("columnModel")],e.prototype,"columnModel",void 0),rJ([OZ("eFilter")],e.prototype,"eFilter",void 0),rJ([OZ("eSortIndicator")],e.prototype,"eSortIndicator",void 0),rJ([OZ("eMenu")],e.prototype,"eMenu",void 0),rJ([OZ("eLabel")],e.prototype,"eLabel",void 0),rJ([OZ("eText")],e.prototype,"eText",void 0),rJ([OZ("eSortOrder")],e.prototype,"eSortOrder",void 0),rJ([OZ("eSortAsc")],e.prototype,"eSortAsc",void 0),rJ([OZ("eSortDesc")],e.prototype,"eSortDesc",void 0),rJ([OZ("eSortMixed")],e.prototype,"eSortMixed",void 0),rJ([OZ("eSortNone")],e.prototype,"eSortNone",void 0),e}(TZ),aJ=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)}}(),lJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},uJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return aJ(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&&HK((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(!WY(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){BY(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,bY.EVENT_EXPANDED_CHANGED,this.updateIconVisibility.bind(this)),this.addManagedListener(n,bY.EVENT_EXPANDABLE_CHANGED,this.updateIconVisibility.bind(this))},e.prototype.addTouchAndClickListeners=function(t,e){var o=new tJ(t,!0);this.addManagedListener(o,tJ.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();f$(this.eOpenIcon,t),f$(this.eCloseIcon,!t)}else f$(this.eOpenIcon,!1),f$(this.eCloseIcon,!1)},e.prototype.addInIcon=function(t,e){var o=Q$(t,this.gridOptionsService,null);o&&this.getRefElement(e).appendChild(o)},e.prototype.addGroupExpandIcon=function(){if(!this.params.columnGroup.isExpandable())return f$(this.eOpenIcon,!1),void f$(this.eCloseIcon,!1)},e.prototype.setupLabel=function(){var t,e=this.params,o=e.displayName,n=e.columnGroup;if(gK(o)){var i=pX(o);this.getRefElement("agLabel").innerHTML=i}this.addOrRemoveCssClass("ag-sticky-label",!(null===(t=n.getColGroupDef())||void 0===t?void 0:t.suppressStickyLabel))},e.TEMPLATE='',lJ([lY("columnModel")],e.prototype,"columnModel",void 0),lJ([OZ("agOpened")],e.prototype,"eOpenIcon",void 0),lJ([OZ("agClosed")],e.prototype,"eCloseIcon",void 0),e}(TZ),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 null!==t&&t.apply(this,arguments)||this}return cJ(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}(TZ),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){function e(){return t.call(this,e.TEMPLATE)||this}return dJ(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),gK(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===tZ.LEFT||e===tZ.UP||e===tZ.RIGHT||e===tZ.DOWN||t.shiftKey&&e===tZ.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 gK(t)||gK(this.params.value)?this.params.parseValue(t):this.params.value},e.TEMPLATE='
\n \n
',function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([OZ("eTextArea")],e.prototype,"eTextArea",void 0),e}(pJ),fJ=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)}}(),gJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},vJ=function(t){function e(){var e=t.call(this,'
\n \n
')||this;return e.startedByEnter=!1,e}return fJ(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,s=t.value,a=t.eventKey;if(vK(r))console.warn("AG Grid: no values found for select cellEditor");else{this.startedByEnter=null!=a&&a===tZ.ENTER;var l=!1;r.forEach((function(e){var i={value:e},r=n.formatValue(t.column,null,e),a=null!=r;i.text=a?r:e,o.addOption(i),l=l||s===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,rQ.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},gJ([lY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),gJ([OZ("eSelect")],e.prototype,"eSelect",void 0),e}(pJ),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(t){function e(e){var o=t.call(this,'\n
\n '+e.getTemplate()+"\n
")||this;return o.cellEditorInput=e,o}return yJ(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===tZ.BACKSPACE||t.eventKey===tZ.DELETE?e="":n&&1===n.length?e=n:(e=this.cellEditorInput.getStartValue(),n!==tZ.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!==tZ.PAGE_UP&&e!==tZ.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){Gq()||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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([OZ("eInput")],e.prototype,"eInput",void 0),e}(pJ),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)}}(),wJ=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 gK(t)||gK(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=gK(t)&&t.length||0;e&&this.eInput.getInputElement().setSelectionRange(e,e)},t}(),SJ=function(t){function e(){return t.call(this,new wJ)||this}return CJ(e,t),e}(mJ),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}return bJ(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=gK(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"),T$(this.eDelta)},e.prototype.refresh=function(t){var e=t.value;if(e===this.lastValue)return!1;if(gK(t.valueFormatted)?this.eValue.innerHTML=t.valueFormatted:gK(t.value)?this.eValue.innerHTML=e:T$(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([lY("filterManager")],e.prototype,"filterManager",void 0),e}(TZ),EJ=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)}}(),RJ=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 EJ(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=P$(''),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 vK(e)&&(e=""),e!==this.lastValue&&!this.filterManager.isSuppressFlashingCellsBecauseFiltering()&&(this.addSlideAnimation(),this.lastValue=e,gK(t.valueFormatted)?this.eCurrent.innerHTML=t.valueFormatted:gK(t.value)?this.eCurrent.innerHTML=e:T$(this.eCurrent),!0)},e.TEMPLATE='\n \n ',function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([lY("filterManager")],e.prototype,"filterManager",void 0),e}(TZ),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!(!gK(this.rowTop)||!gK(this.rowHeight))&&t>=this.rowTop&&tn&&(n=s)})),!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(nX.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 s=this.beans.valueService.setValue(this,i,e,o);return this.dispatchCellChangedEvent(i,e,r),this.checkRowSelectable(),s},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:nX.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);vK(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=MK([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&&yK(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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},AJ=function(t){function e(){return t.call(this,'\n ')||this}return OJ(e,t),e.prototype.postConstruct=function(){this.eCheckbox.setPassive(!0),aq(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=Tq(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){BY(t)})),this.addManagedListener(this.eCheckbox.getInputElement(),"click",(function(t){BY(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,TJ.EVENT_ROW_SELECTED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_DATA_CHANGED,this.onDataChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.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,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.rowNode,TJ.EVENT_DATA_CHANGED,o),this.addManagedListener(this.rowNode,TJ.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 s=null===(t=this.overrides)||void 0===t?void 0:t.callbackParams,a=null===(e=this.column)||void 0===e?void 0:e.createColumnFunctionCallbackParams(this.rowNode);i=!!a&&r(DJ(DJ({},s),a))}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},PJ([OZ("eCheckbox")],e.prototype,"eCheckbox",void 0),PJ([rY],e.prototype,"postConstruct",null),e}(TZ),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)}}(),IJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},LJ=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"}(GQ||(GQ={})),function(t){t[t.Up=0]="Up",t[t.Down=1]="Down"}(kQ||(kQ={})),function(t){t[t.Left=0]="Left",t[t.Right=1]="Right"}(VQ||(VQ={}));var NJ,FJ=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=Z$("columnMovePin",this.gridOptionsService,null),this.eHideIcon=Z$("columnMoveHide",this.gridOptionsService,null),this.eMoveIcon=Z$("columnMoveMove",this.gridOptionsService,null),this.eLeftIcon=Z$("columnMoveLeft",this.gridOptionsService,null),this.eRightIcon=Z$("columnMoveRight",this.gridOptionsService,null),this.eGroupIcon=Z$("columnMoveGroup",this.gridOptionsService,null),this.eAggregateIcon=Z$("columnMoveValue",this.gridOptionsService,null),this.ePivotIcon=Z$("columnMovePivot",this.gridOptionsService,null),this.eDropNotAllowedIcon=Z$("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,s=this,a=this.getHorizontalDirection(t),l=this.getVerticalDirection(t);this.eventLastTime=t,this.positionGhost(t);var u=this.dropTargets.filter((function(e){return s.isMouseOnDropTarget(t,e)})),c=this.findCurrentDropTarget(t,u);if(c!==this.lastDropTarget)this.leaveLastTargetIfExists(t,a,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,a,l,e),this.lastDropTarget=c;else if(c&&c.onDragging){var p=this.createDropTargetEvent(c,t,a,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=LJ(e),r=i.next();!r.done;r=i.next()){var s=r.value.getBoundingClientRect();if(0===s.width||0===s.height)return!1;var a=t.clientX>=s.left&&t.clientX=s.top&&t.clientYo?VQ.Left:VQ.Right},e.prototype.getVerticalDirection=function(t){var e=this.eventLastTime&&this.eventLastTime.clientY,o=t.clientY;return e===o?null:e>o?kQ.Up:kQ.Down},e.prototype.createDropTargetEvent=function(t,e,o,n,i){var r=t.getContainer(),s=r.getBoundingClientRect(),a=this,l=a.gridApi,u=a.columnApi,c=a.dragItem,p=a.dragSource;return{event:e,x:e.clientX-s.left,y:e.clientY-s.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=Kq()-2,i=Yq()-2,r=_$(e.offsetParent),s=t.clientY,a=t.clientX,l=s-r.top-o/2,u=a-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=P$(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;WK(n)&&(n=n()),e.innerHTML=pX(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 s=this.gridOptionsService.getRootNode();r=s.querySelector("body")||(s instanceof ShadowRoot?s:null==s?void 0:s.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),T$(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
',IJ([lY("dragService")],e.prototype,"dragService",void 0),IJ([lY("mouseEventService")],e.prototype,"mouseEventService",void 0),IJ([lY("columnApi")],e.prototype,"columnApi",void 0),IJ([lY("gridApi")],e.prototype,"gridApi",void 0),IJ([rY],e.prototype,"init",null),IJ([sY],e.prototype,"clearDragSourceParamsList",null),o=IJ([aY("dragAndDropService")],e)}(QY),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)}}(),kJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},VJ=function(t){function e(e,o,n,i,r,s){var a=t.call(this)||this;return a.cellValueFn=e,a.rowNode=o,a.column=n,a.customGui=i,a.dragStartPixels=r,a.suppressVisibilityChange=s,a.dragSource=null,a}return GJ(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(Q$("rowDrag",this.gridOptionsService,null)),this.addDragSource()),this.checkCompatibility(),!this.suppressVisibilityChange){var t=this.gridOptionsService.is("rowDragManaged")?new WJ(this,this.beans,this.rowNode,this.column):new BJ(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&&HK((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:GQ.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},kJ([lY("beans")],e.prototype,"beans",void 0),kJ([rY],e.prototype,"postConstruct",null),kJ([sY],e.prototype,"removeDragSource",null),e}(TZ),HJ=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 GJ(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=WK(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),BJ=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return GJ(e,t),e.prototype.postConstruct=function(){this.addManagedPropertyListener("suppressRowDrag",this.onSuppressRowDrag.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_CELL_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,nX.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)},kJ([rY],e.prototype,"postConstruct",null),e}(HJ),WJ=function(t){function e(e,o,n,i){var r=t.call(this,e,n,i)||this;return r.beans=o,r}return GJ(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.beans.eventService,nX.EVENT_SORT_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,nX.EVENT_FILTER_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.beans.eventService,nX.EVENT_NEW_COLUMNS_LOADED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_DATA_CHANGED,this.workOutVisibility.bind(this)),this.addManagedListener(this.rowNode,TJ.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)},kJ([rY],e.prototype,"postConstruct",null),e}(HJ),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)}}(),zJ=function(){return zJ=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},KJ=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return jJ(e,t),e.prototype.init=function(t,e,o,n,i,r,s){this.params=s,this.eGui=e,this.eCheckbox=o,this.eExpanded=n,this.eContracted=i,this.comp=t,this.compClass=r;var a=s.node,l=s.value,u=s.colDef;if(!this.isTopLevelFooter()){if(this.isEmbeddedRowMismatch())return;var c=!0===(null==u?void 0:u.showRowGroup),p=null==l&&!a.master;if(!c&&p)return;if(a.footer&&this.gridOptionsService.is("groupHideOpenParents")&&(u&&u.showRowGroup)!==(a.rowGroupColumn&&a.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(){dq(o,!!e.expanded)};this.expandListener=this.addManagedListener(e,TJ.EVENT_EXPANDED_CHANGED,n)||null,n()}else hq(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}vK(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,s=this.valueFormatterService.formatValue(t,r,i);return zJ(zJ({},o),{valueFormatted:s})},e.prototype.addFooterValue=function(){var t=this.params.footerValueGetter,e="";if(t){var o=TK(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 s=this.userComponentFactory.getCellRendererDetails(r,t);if(s&&!n(s))return s;if(n(s)&&r.cellRendererParams&&r.cellRendererParams.innerRenderer)return this.userComponentFactory.getInnerRendererDetails(r.cellRendererParams,t)}},e.prototype.addChildCount=function(){this.params.suppressCount||(this.addManagedListener(this.displayedGroupNode,TJ.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=Q$("groupExpanded",this.gridOptionsService,null),n=Q$("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,TJ.EVENT_EXPANDED_CHANGED,this.showExpandAndContractIcons.bind(this)),this.showExpandAndContractIcons();var r=this.onRowNodeIsExpandableChanged.bind(this);this.addManagedListener(this.displayedGroupNode,TJ.EVENT_ALL_CHILDREN_COUNT_CHANGED,r),this.addManagedListener(this.displayedGroupNode,TJ.EVENT_MASTER_CHANGED,r),this.addManagedListener(this.displayedGroupNode,TJ.EVENT_GROUP_CHANGED,r),this.addManagedListener(this.displayedGroupNode,TJ.EVENT_HAS_CHILDREN_CHANGED,r)},e.prototype.onExpandClicked=function(t){WY(t)||(BY(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 s=!!this.showingValueForOpenedParent||i.expanded;this.comp.setExpandedDisplayed(s),this.comp.setContractedDisplayed(!s)}else this.comp.setExpandedDisplayed(!1),this.comp.setContractedDisplayed(!1);var a=n.isPivotMode(),l=a&&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),a?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,TJ.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 VJ((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 AJ;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!==tZ.ENTER||this.params.suppressEnterExpand||this.params.column&&this.params.column.isCellEditable(this.params.node)||this.onExpandOrContract(t)},e.prototype.onCellDblClicked=function(t){WY(t)||KY(this.eExpanded,t)||KY(this.eContracted,t)||this.onExpandOrContract(t)},UJ([lY("expressionService")],e.prototype,"expressionService",void 0),UJ([lY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),UJ([lY("columnModel")],e.prototype,"columnModel",void 0),UJ([lY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),UJ([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),e}(QY),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)}}(),XJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},qJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return YJ(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 f$(e.eContracted,t)},setExpandedDisplayed:function(t){return f$(e.eExpanded,t)},setCheckboxVisible:function(t){return e.eCheckbox.classList.toggle("ag-invisible",!t)}},n=this.createManagedBean(new KJ),i=!t.colDef,r=this.getGui();n.init(o,r,this.eCheckbox,this.eExpanded,this.eContracted,this.constructor,t),i&&JX(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 ',XJ([OZ("eExpanded")],e.prototype,"eExpanded",void 0),XJ([OZ("eContracted")],e.prototype,"eContracted",void 0),XJ([OZ("eCheckbox")],e.prototype,"eCheckbox",void 0),XJ([OZ("eValue")],e.prototype,"eValue",void 0),XJ([OZ("eChildCount")],e.prototype,"eChildCount",void 0),e}(TZ),$J=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)}}(),ZJ=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},QJ=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return $J(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=Q$("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
',ZJ([OZ("eLoadingIcon")],e.prototype,"eLoadingIcon",void 0),ZJ([OZ("eLoadingText")],e.prototype,"eLoadingText",void 0),e}(TZ),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("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}(TZ),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.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}(TZ),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(t){function e(){return t.call(this,'
')||this}return n0(e,t),e.prototype.init=function(t){var e=t.value;this.getGui().innerHTML=pX(e)},e}(pJ),r0=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.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(!gK(t)&&!gK(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}(),a0=function(t){function e(){return t.call(this,new s0)||this}return r0(e,t),e}(mJ),l0=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(){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 gK(t)||gK(this.params.value)?null!=t?t:null:this.params.value},t.prototype.getStartValue=function(){var t=this.params.value;if(t instanceof Date)return n$(t,!1)},t}(),c0=function(t){function e(){return t.call(this,new u0)||this}return l0(e,t),e}(mJ),p0=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)}}(),d0=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 gK(t)||gK(this.params.value)?this.params.parseValue(null!=t?t:""):this.params.value},t.prototype.getStartValue=function(){var t,e;return n$(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}(),h0=function(t){function e(){var e=t.call(this,new d0((function(){return e.dataTypeService})))||this;return e}return p0(e,t),function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([lY("dataTypeService")],e.prototype,"dataTypeService",void 0),e}(mJ),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,e.TEMPLATE)||this}return f0(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(BY(t),!e.eCheckbox.isDisabled()){var o=e.eCheckbox.getValue();e.onCheckboxChanged(o)}})),this.addManagedListener(this.eCheckbox.getInputElement(),"dblclick",(function(t){BY(t)}));var o=this.gridOptionsService.getDocument();this.addManagedListener(this.params.eGridCell,"keydown",(function(t){if(t.key===tZ.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 s=t.column.getColId();s.startsWith(aX)?i=null==t.value||""===t.value?void 0:"true"===t.value:t.node.aggData&&void 0!==t.node.aggData[s]?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 a=null!=t.disabled?t.disabled:!(null===(n=t.column)||void 0===n?void 0:n.isCellEditable(t.node));this.eCheckbox.setDisabled(a);var l=this.localeService.getLocaleTextFunc(),u=Tq(l,i),c=a?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,s={type:nX.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(s);var a=this.params.node.setDataValue(this.params.column,t,"edit"),l={type:nX.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:a};this.eventService.dispatchEvent(l)},e.TEMPLATE='\n ',function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([OZ("eCheckbox")],e.prototype,"eCheckbox",void 0),e}(TZ),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){function e(){return t.call(this,'\n
\n \n
')||this}return v0(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,nX.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=Tq(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([OZ("eCheckbox")],e.prototype,"eCheckbox",void 0),e}(pJ),m0=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(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},w0=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},S0=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/")},C0([lY("gridOptions")],e.prototype,"gridOptions",void 0),C0([rY],e.prototype,"init",null),C0([aY("userComponentRegistry")],e)}(QY),_0={propertyName:"dateComponent",cellRenderer:!1},E0={propertyName:"headerComponent",cellRenderer:!1},R0={propertyName:"headerGroupComponent",cellRenderer:!1},x0={propertyName:"cellRenderer",cellRenderer:!0},T0={propertyName:"cellEditor",cellRenderer:!1},O0={propertyName:"innerRenderer",cellRenderer:!0},D0={propertyName:"loadingOverlayComponent",cellRenderer:!1},P0={propertyName:"noRowsOverlayComponent",cellRenderer:!1},A0={propertyName:"tooltipComponent",cellRenderer:!1},M0={propertyName:"filter",cellRenderer:!1},I0={propertyName:"floatingFilterComponent",cellRenderer:!1},L0={propertyName:"toolPanel",cellRenderer:!1},N0={propertyName:"statusPanel",cellRenderer:!1},F0={propertyName:"fullWidthCellRenderer",cellRenderer:!0},G0={propertyName:"loadingCellRenderer",cellRenderer:!0},k0={propertyName:"groupRowRenderer",cellRenderer:!0},V0={propertyName:"detailCellRenderer",cellRenderer:!0},H0=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}(),B0=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)}}(),W0=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},j0=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B0(e,t),e.prototype.getHeaderCompDetails=function(t,e){return this.getCompDetails(t,E0,"agColumnHeader",e)},e.prototype.getHeaderGroupCompDetails=function(t){var e=t.columnGroup.getColGroupDef();return this.getCompDetails(e,R0,"agColumnGroupHeader",t)},e.prototype.getFullWidthCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,F0,null,t,!0)},e.prototype.getFullWidthLoadingCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,G0,"agLoadingCellRenderer",t,!0)},e.prototype.getFullWidthGroupCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,k0,"agGroupRowRenderer",t,!0)},e.prototype.getFullWidthDetailCellRendererDetails=function(t){return this.getCompDetails(this.gridOptions,V0,"agDetailCellRenderer",t,!0)},e.prototype.getInnerRendererDetails=function(t,e){return this.getCompDetails(t,O0,null,e)},e.prototype.getFullWidthGroupRowInnerCellRenderer=function(t,e){return this.getCompDetails(t,O0,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,T0,"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,_0,"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,P0,"agNoRowsOverlay",t,!0)},e.prototype.getTooltipCompDetails=function(t){return this.getCompDetails(t.colDef,A0,"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,I0,o,e)},e.prototype.getToolPanelCompDetails=function(t,e){return this.getCompDetails(t,L0,null,e,!0)},e.prototype.getStatusPanelCompDetails=function(t,e){return this.getCompDetails(t,N0,null,e,!0)},e.prototype.getCompDetails=function(t,e,o,n,i){var r=this;void 0===i&&(i=!1);var s=e.propertyName,a=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(s,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&&a&&!this.agComponentUtils.doesImplementIComponent(c)&&(c=this.agComponentUtils.adaptFunction(s,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,s,a,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),s=h.params,a=h.popup,l=h.popupPosition):f(p[c])}return{compName:n,jsComp:i,fwComp:r,paramsFromSelector:s,popupFromSelector:a,popupPositionFromSelector:l}},e.prototype.newAgStackInstance=function(t,e,o,n){var i,r=n.propertyName;if(e){var s=this.componentMetadataProvider.retrieve(r);i=this.frameworkComponentWrapper.wrap(t,s.mandatoryMethodList,s.optionalMethodList,n)}else i=new t;var a=this.initComponent(i,o);return null==a?mZ.resolve(i):a.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};LK(i,o);var r=t&&t[e.propertyName+"Params"];return"function"==typeof r?LK(i,r(o)):"object"==typeof r&&LK(i,r),LK(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,s=n.fwComp;return i?o=H0.getFloatingFilterType(i):null==r&&null==s&&!0===t.filter&&(o=e()),o},W0([lY("gridOptions")],e.prototype,"gridOptions",void 0),W0([lY("agComponentUtils")],e.prototype,"agComponentUtils",void 0),W0([lY("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),W0([lY("userComponentRegistry")],e.prototype,"userComponentRegistry",void 0),W0([uY("frameworkComponentWrapper")],e.prototype,"frameworkComponentWrapper",void 0),W0([aY("userComponentFactory")],e)}(QY);!function(t){t[t.SINGLE_SHEET=0]="SINGLE_SHEET",t[t.MULTI_SHEET=1]="MULTI_SHEET"}(NJ||(NJ={}));var z0,U0,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)}}(),Y0=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},X0=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.dragEndFunctions=[],e.dragSources=[],e}return K0(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 s=null,a=this.gridOptionsService.is("suppressTouch");i&&!a&&(s=function(o){h$(o.target)||(o.cancelable&&(o.preventDefault(),r&&o.stopPropagation()),e.onTouchStart(t,o))},n.addEventListener("touchstart",s,{passive:!1})),this.dragSources.push({dragSource:t,mouseDownListener:o,touchStartListener:s,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,s=[{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(s),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 aZ(t,e,gK(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}(),$0=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)}}(),Z0=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},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}$0(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 FJ[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 q0({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,c$(n,Q0),c$(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),s=this.params.getNumRows(this.comp)-1,a=0|Math.min(s,r);return{rowIndex:a,position:Math.round(r)>r||r>s?"bottom":"top",component:this.virtualList.getComponentAt(a)}},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},Z0([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Z0([rY],e.prototype,"postConstruct",null)}(QY),function(t){t[t.Above=0]="Above",t[t.Below=1]="Below"}(z0||(z0={})),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"}(U0||(U0={}));var J0=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};function t1(t){var e=t;return null!=e&&null!=e.getFrameworkComponentInstance?e.getFrameworkComponentInstance():t}var e1,o1=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;xK(this.detailGridInfoMap,(function(o,n){gK(n)&&(t(n,e),e++)}))},t.prototype.getDataAsCsv=function(t){if(oY.__assertRegistered(QK.CsvExportModule,"api.getDataAsCsv",this.context.getGridId()))return this.csvCreator.getDataAsCsv(t)},t.prototype.exportDataAsCsv=function(t){oY.__assertRegistered(QK.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(!oY.__assertRegistered(QK.ExcelExportModule,"api."+t,this.context.getGridId()))return!1;var o=this.getExcelExportMode(e);return this.excelCreator.getFactoryMode(o)!==NJ.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(oY.__assertRegistered(QK.ExcelExportModule,"api.getSheetDataForExcel",this.context.getGridId())){var e=this.getExcelExportMode(t);return this.excelCreator.setFactoryMode(NJ.MULTI_SHEET,e),this.excelCreator.getSheetDataForExcel(t)}},t.prototype.getMultipleSheetsAsExcel=function(t){if(oY.__assertRegistered(QK.ExcelExportModule,"api.getMultipleSheetsAsExcel",this.context.getGridId()))return this.excelCreator.getMultipleSheetsAsExcel(t)},t.prototype.exportMultipleSheetsAsExcel=function(t){if(oY.__assertRegistered(QK.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 IX("28.0","refreshServerSideStore","refreshServerSide"),this.refreshServerSide(t)},t.prototype.getServerSideStoreState=function(){return IX("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)},J0([uY("immutableService")],t.prototype,"immutableService",void 0),J0([uY("csvCreator")],t.prototype,"csvCreator",void 0),J0([uY("excelCreator")],t.prototype,"excelCreator",void 0),J0([lY("rowRenderer")],t.prototype,"rowRenderer",void 0),J0([lY("navigationService")],t.prototype,"navigationService",void 0),J0([lY("filterManager")],t.prototype,"filterManager",void 0),J0([lY("columnModel")],t.prototype,"columnModel",void 0),J0([lY("selectionService")],t.prototype,"selectionService",void 0),J0([lY("gridOptionsService")],t.prototype,"gos",void 0),J0([lY("valueService")],t.prototype,"valueService",void 0),J0([lY("alignedGridsService")],t.prototype,"alignedGridsService",void 0),J0([lY("eventService")],t.prototype,"eventService",void 0),J0([lY("pinnedRowModel")],t.prototype,"pinnedRowModel",void 0),J0([lY("context")],t.prototype,"context",void 0),J0([lY("rowModel")],t.prototype,"rowModel",void 0),J0([lY("sortController")],t.prototype,"sortController",void 0),J0([lY("paginationProxy")],t.prototype,"paginationProxy",void 0),J0([lY("focusService")],t.prototype,"focusService",void 0),J0([lY("dragAndDropService")],t.prototype,"dragAndDropService",void 0),J0([uY("rangeService")],t.prototype,"rangeService",void 0),J0([uY("clipboardService")],t.prototype,"clipboardService",void 0),J0([uY("aggFuncService")],t.prototype,"aggFuncService",void 0),J0([lY("menuFactory")],t.prototype,"menuFactory",void 0),J0([uY("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),J0([lY("valueCache")],t.prototype,"valueCache",void 0),J0([lY("animationFrameService")],t.prototype,"animationFrameService",void 0),J0([uY("statusBarService")],t.prototype,"statusBarService",void 0),J0([uY("chartService")],t.prototype,"chartService",void 0),J0([uY("undoRedoService")],t.prototype,"undoRedoService",void 0),J0([uY("rowNodeBlockLoader")],t.prototype,"rowNodeBlockLoader",void 0),J0([uY("ssrmTransactionManager")],t.prototype,"serverSideTransactionManager",void 0),J0([lY("ctrlsService")],t.prototype,"ctrlsService",void 0),J0([rY],t.prototype,"init",null),J0([sY],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),J0([aY("gridApi")],t)}(),n1=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)}}(),i1=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},r1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.quickFilter=null,e.quickFilterParts=null,e}var o;return n1(e,t),o=e,e.prototype.postConstruct=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,nX.EVENT_NEW_COLUMNS_LOADED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,(function(){return t.resetQuickFilterCache()})),this.addManagedListener(this.eventService,nX.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 gK(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 gK(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 gK(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);gK(i)&&n.push(i)})),n.join(o.QUICK_FILTER_SEPARATOR)},e.EVENT_QUICK_FILTER_CHANGED="quickFilterChanged",e.QUICK_FILTER_SEPARATOR="\n",i1([lY("valueService")],e.prototype,"valueService",void 0),i1([lY("columnModel")],e.prototype,"columnModel",void 0),i1([lY("rowModel")],e.prototype,"rowModel",void 0),i1([rY],e.prototype,"postConstruct",null),o=i1([aY("quickFilterService")],e)}(QY),s1=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)}}(),a1=function(){return a1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},u1=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 s1(e,t),e.prototype.init=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_GRID_COLUMNS_CHANGED,(function(){return t.onColumnsChanged()})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_VALUE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_MODE_CHANGED,(function(){return t.refreshFiltersForAggregations()})),this.addManagedListener(this.eventService,nX.EVENT_NEW_COLUMNS_LOADED,(function(){return t.updateAdvancedFilterColumns()})),this.addManagedListener(this.eventService,nX.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,nX.EVENT_ADVANCED_FILTER_ENABLED_CHANGED,(function(e){var o=e.enabled;return t.onAdvancedFilterEnabledChanged(o)})),this.addManagedListener(this.eventService,nX.EVENT_DATA_TYPES_INFERRED,(function(){return t.processFilterModelUpdateQueue()})),this.addManagedListener(this.quickFilterService,r1.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=cZ(Object.keys(t));this.allColumnFilters.forEach((function(n,r){var s=t[r];o.push(e.setModelOnFilterWrapper(n.filterPromise,s)),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))}));mZ.all(o).then((function(){var t=e.getFilterModel(),o=[];e.allColumnFilters.forEach((function(e,i){var r=n?n[i]:null,s=t?t[i]:null;fZ.jsonEquals(r,s)||o.push(e.column)})),o.length>0&&e.onFilterChanged({columns:o,source:"api"})}))}},e.prototype.setModelOnFilterWrapper=function(t,e){return new mZ((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)||mZ.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();gK(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,s=o?i:n,a=0;a0?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),s=this.userComponentFactory.getDefaultFloatingFilterType(n,(function(){return o.getDefaultFloatingFilter(t)}));null==s&&(s="agReadOnlyFloatingFilter");var a={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(t1(t))}))},showParentFilter:e,suppressFilterButton:!1};return this.userComponentFactory.getFloatingFilterCompDetails(n,a,s)},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)||mZ.resolve()).then((function(){o.getContext().destroyBean(n),t.column.setFilterActive(!1,"filterDestroyed"),o.allColumnFilters.delete(t.column.getColId());var i={type:nX.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=t1(t);e(o)}}));return t1(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(){HK((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()},l1([lY("valueService")],e.prototype,"valueService",void 0),l1([lY("columnModel")],e.prototype,"columnModel",void 0),l1([lY("rowModel")],e.prototype,"rowModel",void 0),l1([lY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),l1([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),l1([lY("dataTypeService")],e.prototype,"dataTypeService",void 0),l1([lY("quickFilterService")],e.prototype,"quickFilterService",void 0),l1([uY("advancedFilterService")],e.prototype,"advancedFilterService",void 0),l1([rY],e.prototype,"init",null),l1([aY("filterManager")],e)}(QY),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){function e(e,o){var n=t.call(this,e)||this;return n.ctrl=o,n}return c1(e,t),e.prototype.getCtrl=function(){return this.ctrl},e}(TZ),d1=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)}}(),h1=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},f1=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return d1(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 f$(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
',h1([OZ("eFloatingFilterBody")],e.prototype,"eFloatingFilterBody",void 0),h1([OZ("eButtonWrapper")],e.prototype,"eButtonWrapper",void 0),h1([OZ("eButtonShowMainFilter")],e.prototype,"eButtonShowMainFilter",void 0),h1([rY],e.prototype,"postConstruct",null),h1([sY],e.prototype,"destroyFloatingFilterComp",null),e}(p1),g1=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"}(e1||(e1={}));var v1,y1,m1=function(t){function e(e){var o=t.call(this)||this;return o.view=e,o}return g1(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?e1.AUTO_HEIGHT:e.print?e1.PRINT:e1.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)?(HK((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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(QY),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)}}(),w1=function(){return w1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.Vertical=0]="Vertical",t[t.Horizontal=1]="Horizontal"}(v1||(v1={})),function(t){t[t.Container=0]="Container",t[t.FakeContainer=1]="FakeContainer"}(y1||(y1={}));var b1,_1=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=XK((function(){return o.lastScrollSource[v1.Horizontal]=null}),500),o.resetLastVScrollDebounced=XK((function(){return o.lastScrollSource[v1.Vertical]=null}),500),o}return C1(e,t),e.prototype.postConstruct=function(){var t=this;this.enableRtl=this.gridOptionsService.is("enableRtl"),this.addManagedListener(this.eventService,nX.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?XK(this.onVScroll.bind(this),100):this.onVScroll.bind(this),i=o?XK(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 s=this.centerRowContainerCtrl.getViewportElement(),a=this.lastScrollSource[v1.Horizontal]===y1.Container;t=Math.abs(t),a?r.setScrollPosition(t):x$(s,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(y1.FakeContainer,v1.Horizontal)&&this.onHScrollCommon(y1.FakeContainer)},e.prototype.onHScroll=function(){this.isControllingScroll(y1.Container,v1.Horizontal)&&this.onHScrollCommon(y1.Container)},e.prototype.onHScrollCommon=function(t){var e,o=this.centerRowContainerCtrl.getViewportElement(),n=o.scrollLeft;this.shouldBlockScrollUpdate(v1.Horizontal,n,!0)||(e=t===y1.Container?R$(o,this.enableRtl):this.ctrlsService.getFakeHScrollComp().getScrollPosition(),this.doHorizontalScroll(Math.round(e)),this.resetLastHScrollDebounced())},e.prototype.onFakeVScroll=function(){this.isControllingScroll(y1.FakeContainer,v1.Vertical)&&this.onVScrollCommon(y1.FakeContainer)},e.prototype.onVScroll=function(){this.isControllingScroll(y1.Container,v1.Vertical)&&this.onVScrollCommon(y1.Container)},e.prototype.onVScrollCommon=function(t){var e;e=t===y1.Container?this.eBodyViewport.scrollTop:this.ctrlsService.getFakeVScrollComp().getScrollPosition(),this.shouldBlockScrollUpdate(v1.Vertical,e,!0)||(this.animationFrameService.setScrollTop(e),this.nextScrollTop=e,t===y1.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(v1.Horizontal),this.horizontallyScrollHeaderCenterAndFloatingCenter(t),this.centerRowContainerCtrl.onHorizontalViewportChanged(!0))},e.prototype.fireScrollEvent=function(t){var e=this,o={type:nX.EVENT_BODY_SCROLL,direction:t===v1.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=w1(w1({},o),{type:nX.EVENT_BODY_SCROLL_END});e.eventService.dispatchEvent(t)}),100)},e.prototype.shouldBlockScrollUpdate=function(t,e,o){return void 0===o&&(o=!1),!(o&&!Wq())&&(t===v1.Vertical?this.shouldBlockVerticalScroll(e):this.shouldBlockHorizontalScroll(e))},e.prototype.shouldBlockVerticalScroll=function(t){var e=C$(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&&E$()){if(t>0)return!0}else if(t<0)return!0;return Math.abs(t)+e>o},e.prototype.redrawRowsAfterScroll=function(){this.fireScrollEvent(v1.Vertical)},e.prototype.checkScrollLeft=function(){this.scrollLeft!==this.centerRowContainerCtrl.getCenterViewportScrollLeft()&&this.onHScrollCommon(y1.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(v1.Horizontal,t)&&(t=this.enableRtl&&E$()?t>0?0:o:Math.min(Math.max(t,0),o)),x$(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 s=r.rowTop,a=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:fs:nr}},e.prototype.getColumnBounds=function(t){var e=this.enableRtl,o=this.columnModel.getBodyContainerWidth(),n=t.getActualWidth(),i=t.getLeft(),r=e?-1:1,s=e?o-i:i;return{colLeft:s,colMiddle:s+n/2*r,colRight:s+n*r}},e.prototype.getViewportBounds=function(){var t=this.centerRowContainerCtrl.getCenterWidth(),e=this.centerRowContainerCtrl.getCenterViewportScrollLeft();return{start:e,end:t+e,width:t}},S1([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),S1([lY("animationFrameService")],e.prototype,"animationFrameService",void 0),S1([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),S1([lY("rowModel")],e.prototype,"rowModel",void 0),S1([lY("rowContainerHeightService")],e.prototype,"heightScaler",void 0),S1([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),S1([lY("columnModel")],e.prototype,"columnModel",void 0),S1([rY],e.prototype,"postConstruct",null),e}(QY),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)}}(),R1=function(){return R1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},T1=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 E1(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,nX.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_MODEL_UPDATED,(function(){e()})),e(),this.ctrlsService.whenReady((function(){var e=t.ctrlsService.getGridBodyCtrl();t.autoScrollService=new q0({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=!yK(t)},e.prototype.getContainer=function(){return this.eContainer},e.prototype.isInterestedIn=function(t){return t===GQ.RowDrag},e.prototype.getIconName=function(){return this.gridOptionsService.is("rowDragManaged")&&this.shouldPreventRowMove()?FJ.ICON_NOT_ALLOWED:FJ.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;)s.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 s}(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(nX.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(nX.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(RY(t.getRowIndexString().split("-")),10)},e.prototype.moveRowAndClearHighlight=function(t){var e=this,o=this.clientSideRowModel.getLastHighlightedRowNode(),n=o&&o.highlighted===z0.Below,i=this.mouseEventService.getNormalisedPosition(t).y,r=t.dragItem.rowNodes,s=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 kQ.Down:n="down";break;case kQ.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(nX.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(nX.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([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),x1([lY("rowModel")],e.prototype,"rowModel",void 0),x1([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),x1([lY("columnModel")],e.prototype,"columnModel",void 0),x1([lY("focusService")],e.prototype,"focusService",void 0),x1([lY("sortController")],e.prototype,"sortController",void 0),x1([lY("filterManager")],e.prototype,"filterManager",void 0),x1([lY("selectionService")],e.prototype,"selectionService",void 0),x1([lY("mouseEventService")],e.prototype,"mouseEventService",void 0),x1([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),x1([uY("rangeService")],e.prototype,"rangeService",void 0),x1([rY],e.prototype,"postConstruct",null),e}(QY),O1=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.ANIMATION_ON="ag-row-animation",t.ANIMATION_OFF="ag-row-no-animation"}(b1||(b1={}));var P1,A1,M1="ag-force-vertical-scroll",I1=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.stickyTopHeight=0,e}return O1(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 m1(this.comp)),this.bodyScrollFeature=this.createManagedBean(new _1(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,nX.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedListener(this.eventService,nX.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=y$(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=y$(n,"ag-root",t);y$(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)+($q()?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!==zq(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&&k$(this.eBodyViewport)},e.prototype.setupRowAnimationCssClass=function(){var t=this,e=function(){var e=t.gridOptionsService.isAnimateRows()&&!t.rowContainerHeightService.isStretching(),o=e?b1.ANIMATION_ON:b1.ANIMATION_OFF;t.comp.setRowAnimationCssOnBodyViewport(o,e)};e(),this.addManagedListener(this.eventService,nX.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(Wq()){var e=new tJ(this.eBodyViewport);this.addManagedListener(e,tJ.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 T1(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=w$(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([lY("animationFrameService")],e.prototype,"animationFrameService",void 0),D1([lY("rowContainerHeightService")],e.prototype,"rowContainerHeightService",void 0),D1([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),D1([lY("columnModel")],e.prototype,"columnModel",void 0),D1([lY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),D1([uY("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),D1([lY("headerNavigationService")],e.prototype,"headerNavigationService",void 0),D1([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),D1([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),D1([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),D1([lY("popupService")],e.prototype,"popupService",void 0),D1([lY("mouseEventService")],e.prototype,"mouseEventService",void 0),D1([lY("rowModel")],e.prototype,"rowModel",void 0),D1([lY("filterManager")],e.prototype,"filterManager",void 0),e}(QY);!function(t){t[t.FILL=0]="FILL",t[t.RANGE=1]="RANGE"}(P1||(P1={})),function(t){t[t.VALUE=0]="VALUE",t[t.DIMENSION=1]="DIMENSION"}(A1||(A1={}));var L1,N1="ag-cell-range-selected",F1=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(N1,0!==this.rangeCount),this.cellComp.addOrRemoveCssClass(N1+"-1",1===this.rangeCount),this.cellComp.addOrRemoveCssClass(N1+"-2",2===this.rangeCount),this.cellComp.addOrRemoveCssClass(N1+"-3",3===this.rangeCount),this.cellComp.addOrRemoveCssClass(N1+"-4",this.rangeCount>=4),this.cellComp.addOrRemoveCssClass("ag-cell-range-chart",this.hasChartRange),Eq(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 LY([A1.DIMENSION,A1.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,s=!1,a=!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||(a=!0),e||(r=!0);for(var h=0;h=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},z1=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)},j1([lY("resizeObserverService")],t.prototype,"resizeObserverService",void 0),j1([lY("paginationProxy")],t.prototype,"paginationProxy",void 0),j1([lY("context")],t.prototype,"context",void 0),j1([lY("columnApi")],t.prototype,"columnApi",void 0),j1([lY("gridApi")],t.prototype,"gridApi",void 0),j1([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),j1([lY("expressionService")],t.prototype,"expressionService",void 0),j1([lY("environment")],t.prototype,"environment",void 0),j1([lY("rowRenderer")],t.prototype,"rowRenderer",void 0),j1([lY("templateService")],t.prototype,"templateService",void 0),j1([lY("valueService")],t.prototype,"valueService",void 0),j1([lY("eventService")],t.prototype,"eventService",void 0),j1([lY("columnModel")],t.prototype,"columnModel",void 0),j1([lY("headerNavigationService")],t.prototype,"headerNavigationService",void 0),j1([lY("navigationService")],t.prototype,"navigationService",void 0),j1([lY("columnAnimationService")],t.prototype,"columnAnimationService",void 0),j1([uY("rangeService")],t.prototype,"rangeService",void 0),j1([lY("focusService")],t.prototype,"focusService",void 0),j1([uY("contextMenuFactory")],t.prototype,"contextMenuFactory",void 0),j1([lY("popupService")],t.prototype,"popupService",void 0),j1([lY("valueFormatterService")],t.prototype,"valueFormatterService",void 0),j1([lY("stylingService")],t.prototype,"stylingService",void 0),j1([lY("columnHoverService")],t.prototype,"columnHoverService",void 0),j1([lY("userComponentFactory")],t.prototype,"userComponentFactory",void 0),j1([lY("userComponentRegistry")],t.prototype,"userComponentRegistry",void 0),j1([lY("animationFrameService")],t.prototype,"animationFrameService",void 0),j1([lY("dragService")],t.prototype,"dragService",void 0),j1([lY("dragAndDropService")],t.prototype,"dragAndDropService",void 0),j1([lY("sortController")],t.prototype,"sortController",void 0),j1([lY("filterManager")],t.prototype,"filterManager",void 0),j1([lY("rowContainerHeightService")],t.prototype,"rowContainerHeightService",void 0),j1([lY("frameworkOverrides")],t.prototype,"frameworkOverrides",void 0),j1([lY("cellPositionUtils")],t.prototype,"cellPositionUtils",void 0),j1([lY("rowPositionUtils")],t.prototype,"rowPositionUtils",void 0),j1([lY("selectionService")],t.prototype,"selectionService",void 0),j1([uY("selectionHandleFactory")],t.prototype,"selectionHandleFactory",void 0),j1([lY("rowCssClassCalculator")],t.prototype,"rowCssClassCalculator",void 0),j1([lY("rowModel")],t.prototype,"rowModel",void 0),j1([lY("ctrlsService")],t.prototype,"ctrlsService",void 0),j1([lY("ctrlsFactory")],t.prototype,"ctrlsFactory",void 0),j1([lY("agStackComponentsRegistry")],t.prototype,"agStackComponentsRegistry",void 0),j1([lY("valueCache")],t.prototype,"valueCache",void 0),j1([lY("rowNodeEventThrottle")],t.prototype,"rowNodeEventThrottle",void 0),j1([lY("localeService")],t.prototype,"localeService",void 0),j1([lY("valueParserService")],t.prototype,"valueParserService",void 0),j1([rY],t.prototype,"postConstruct",null),j1([aY("beans")],t)}(),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)}}(),K1=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 U1(e,t),e.prototype.onMouseEvent=function(t,e){if(!WY(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 s=this.cellCtrl.createEvent(t,nX.EVENT_CELL_CLICKED);o.dispatchEvent(s);var a=this.column.getColDef();a.onCellClicked&&window.setTimeout((function(){return a.onCellClicked(s)}),0),!i.is("singleClickEdit")&&!a.singleClickEdit||i.is("suppressClickEdit")||t.shiftKey&&0!=(null==n?void 0:n.getCellRanges().length)||this.cellCtrl.startRowOrCellEdit()},e.prototype.isDoubleClickOnIPad=function(){if(!Wq()||zY("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,nX.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,s=this.beans,a=s.eventService,l=s.rangeService,u=s.focusService;if(!this.isRightClickInExistingRange(t)){var c=l&&0!=l.getCellRanges().length;if(!n||!c){var p=Gq()&&!r.isEditing()&&!h$(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=s.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)}}a.dispatchEvent(this.cellCtrl.createEvent(t,nX.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 y$(t,"ag-selection-checkbox",3)},e.prototype.onMouseOut=function(t){if(!this.mouseStayingInsideCell(t)){var e=this.cellCtrl.createEvent(t,nX.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,nX.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}(z1),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)}}(),X1=function(t){function e(e,o,n,i,r){var s=t.call(this)||this;return s.cellCtrl=e,s.beans=o,s.rowNode=i,s.rowCtrl=r,s}return Y1(e,t),e.prototype.setComp=function(t){this.eGui=t},e.prototype.onKeyDown=function(t){var e=t.key;switch(e){case tZ.ENTER:this.onEnterKeyDown(t);break;case tZ.F2:this.onF2KeyDown(t);break;case tZ.ESCAPE:this.onEscapeKeyDown(t);break;case tZ.TAB:this.onTabKeyDown(t);break;case tZ.BACKSPACE:case tZ.DELETE:this.onBackspaceOrDeleteKeyDown(e,t);break;case tZ.DOWN:case tZ.UP:case tZ.RIGHT:case tZ.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,s=i.gridOptionsService,a=i.rangeService,l=i.eventService;n.isEditing()||(l.dispatchEvent({type:nX.EVENT_KEY_SHORTCUT_CHANGED_CELL_START}),rZ(t,s.is("enableCellEditingOnBackspace"))?a&&s.is("enableRangeSelection")?a.clearCellRangeCellValues({dispatchWrapperEvents:!0,wrapperEventSource:"deleteKey"}):n.isCellEditable()&&r.setDataValue(n.getColumn(),null,"cellClear"):n.startRowOrCellEdit(t,e),l.dispatchEvent({type:nX.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?tZ.UP:tZ.DOWN;this.beans.navigationService.navigateToNextCell(null,e,this.cellCtrl.getCellPosition(),!1)}else this.cellCtrl.startRowOrCellEdit(tZ.ENTER,t),this.cellCtrl.isEditing()&&t.preventDefault()},e.prototype.onF2KeyDown=function(t){this.cellCtrl.isEditing()||this.cellCtrl.startRowOrCellEdit(tZ.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),q1=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){var i=t.call(this,'
')||this;return i.rowNode=e,i.column=o,i.eCell=n,i}return q1(e,t),e.prototype.postConstruct=function(){this.getGui().appendChild(Q$("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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(TZ),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)}}(),Q1=function(){return Q1=Object.assign||function(t){for(var e,o=1,n=arguments.length;o0)&&!(n=r.next()).done;)s.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 s},n2=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=gK(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!==L1.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,TJ.EVENT_HEIGHT_CHANGED,(function(){return t.onRowHeightChanged()})),this.addManagedListener(this.rowNode,TJ.EVENT_ROW_SELECTED,(function(){return t.onRowSelected()})),this.addManagedListener(this.rowNode,TJ.EVENT_ROW_INDEX_CHANGED,this.onRowIndexChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_TOP_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_EXPANDED_CHANGED,this.updateExpandedCss.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_HAS_CHILDREN_CHANGED,this.updateExpandedCss.bind(this)),this.rowNode.detail&&this.addManagedListener(this.rowNode.parent,TJ.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_DATA_CHANGED,this.onRowNodeDataChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_CELL_CHANGED,this.onRowNodeCellChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_HIGHLIGHT_CHANGED,this.onRowNodeHighlightChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_DRAGGING_CHANGED,this.onRowNodeDraggingChanged.bind(this)),this.addManagedListener(this.rowNode,TJ.EVENT_UI_LEVEL_CHANGED,this.onUiLevelChanged.bind(this));var e=this.beans.eventService;this.addManagedListener(e,nX.EVENT_PAGINATION_PIXEL_OFFSET_CHANGED,this.onPaginationPixelOffsetChanged.bind(this)),this.addManagedListener(e,nX.EVENT_HEIGHT_SCALE_CHANGED,this.onTopChanged.bind(this)),this.addManagedListener(e,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(e,nX.EVENT_VIRTUAL_COLUMNS_CHANGED,this.onVirtualColumnsChanged.bind(this)),this.addManagedListener(e,nX.EVENT_CELL_FOCUSED,this.onCellFocused.bind(this)),this.addManagedListener(e,nX.EVENT_CELL_FOCUS_CLEARED,this.onCellFocusCleared.bind(this)),this.addManagedListener(e,nX.EVENT_PAGINATION_CHANGED,this.onPaginationChanged.bind(this)),this.addManagedListener(e,nX.EVENT_MODEL_UPDATED,this.onModelUpdated.bind(this)),this.addManagedListener(e,nX.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,TJ.EVENT_ROW_INDEX_CHANGED,(function(){t.getAllCellCtrls().forEach((function(t){return t.onRowIndexChanged()}))})),this.addManagedListener(this.rowNode,TJ.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===z0.Above,n=t===z0.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),dq(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:fK(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&&!WY(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(!WY(t)){var e=this.createRowEventWithSource(nX.EVENT_ROW_DOUBLE_CLICKED,t);this.beans.eventService.dispatchEvent(e)}},e.prototype.onRowMouseDown=function(t){if(this.lastMouseDownOnDragger=y$(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(!WY(t)&&!this.lastMouseDownOnDragger){var e=this.createRowEventWithSource(nX.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"),s="rowClicked";if(this.rowNode.isSelected())i?this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):o?r&&this.rowNode.setSelectedParams({newValue:!1,event:t,source:s}):this.rowNode.setSelectedParams({newValue:!0,clearSelection:!n,rangeSelect:n,event:t,source:s});else{var a=!i&&!o;this.rowNode.setSelectedParams({newValue:!0,clearSelection:a,rangeSelect:n,event:t,source:s})}}}},e.prototype.setupDetailRowAutoHeight=function(t){var e=this;if(this.rowType===L1.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 VJ((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 s=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),a=s.next();!a.done;a=s.next()){var l=a.value.stopEditing(t);i&&!t&&!r&&l&&(r=!0)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(e)throw e.error}}if(r){var u=this.createRowEvent(nX.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(nX.EVENT_ROW_EDITING_STARTED):this.createRowEvent(nX.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:n2(n2(n2([],o2(this.centerCellCtrls.list)),o2(this.leftCellCtrls.list)),o2(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===r2.LEFT?"left":t===r2.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),Eq(t.element,!!o||void 0);var n=e.createAriaLabel();nq(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,TJ.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,TJ.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(nX.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&&gK(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),mq(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),l2=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)}}(),u2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},c2=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return l2(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",zY("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)&&!WY(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(Wq()){var e=new tJ(this.element);this.addManagedListener(e,tJ.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,a2.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,s=null;if(r){var a=t||e;n.dispatchCellContextMenuEvent(a),s=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,s,u)},e.prototype.getControlsForEventTarget=function(t){return{cellCtrl:UY(this.gridOptionsService,t,t2.DOM_DATA_KEY_CELL_CTRL),rowCtrl:UY(this.gridOptionsService,t,a2.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(oZ(this.gridOptionsService,o,n,i,r)||"keydown"===e&&(!r&&this.navigationService.handlePageScrollingKey(o)||t.onKeyDown(o),this.doGridOperations(o,t.isEditing()),eZ(o)&&t.processCharacter(o)),"keydown"===e){var s=t.createEvent(o,nX.EVENT_CELL_KEY_DOWN);this.eventService.dispatchEvent(s)}},e.prototype.processFullWidthRowKeyboardEvent=function(t,e,o){var n=t.getRowNode(),i=this.focusService.getFocusedCell(),r=i&&i.column;if(!oZ(this.gridOptionsService,o,n,r,!1)){var s=o.key;if("keydown"===e)switch(s){case tZ.PAGE_HOME:case tZ.PAGE_END:case tZ.PAGE_UP:case tZ.PAGE_DOWN:this.navigationService.handlePageScrollingKey(o,!0);break;case tZ.UP:case tZ.DOWN:t.onKeyboardNavigate(o);break;case tZ.TAB:t.onTabKeyDown(o)}}if("keydown"===e){var a=t.createRowEvent(nX.EVENT_CELL_KEY_DOWN,o);this.eventService.dispatchEvent(a)}},e.prototype.doGridOperations=function(t,e){if((t.ctrlKey||t.metaKey)&&!e&&this.mouseEventService.isEventFromThisGrid(t)){var o=iZ(t);return o===tZ.A?this.onCtrlAndA(t):o===tZ.C?this.onCtrlAndC(t):o===tZ.D?this.onCtrlAndD(t):o===tZ.V?this.onCtrlAndV(t):o===tZ.X?this.onCtrlAndX(t):o===tZ.Y?this.onCtrlAndY():o===tZ.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),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s}([o.isEmpty("top"),o.isEmpty("bottom")],2),s=r[0]?null:"top",a=void 0,l=void 0;r[1]?(a=null,l=this.paginationProxy.getRowCount()-1):(a="bottom",l=o.getPinnedBottomRowData().length-1);var u=this.columnModel.getAllDisplayedColumns();if(yK(u))return;i.setCellRange({rowStartIndex:0,rowStartPinned:s,rowEndIndex:l,rowEndPinned:a,columnStart:u[0],columnEnd:RY(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")},u2([lY("mouseEventService")],e.prototype,"mouseEventService",void 0),u2([lY("valueService")],e.prototype,"valueService",void 0),u2([uY("contextMenuFactory")],e.prototype,"contextMenuFactory",void 0),u2([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),u2([lY("navigationService")],e.prototype,"navigationService",void 0),u2([lY("focusService")],e.prototype,"focusService",void 0),u2([lY("undoRedoService")],e.prototype,"undoRedoService",void 0),u2([lY("columnModel")],e.prototype,"columnModel",void 0),u2([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),u2([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),u2([uY("rangeService")],e.prototype,"rangeService",void 0),u2([uY("clipboardService")],e.prototype,"clipboardService",void 0),u2([rY],e.prototype,"postConstruct",null),e}(QY),p2=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)}}(),d2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},h2=function(t){function e(e){var o=t.call(this)||this;return o.centerContainerCtrl=e,o}return p2(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(){t.gridBodyCtrl=t.ctrlsService.getGridBodyCtrl(),t.listenForResize()})),this.addManagedListener(this.eventService,nX.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=C$(this.gridBodyCtrl.getBodyViewportElement());if(this.bodyHeight!==t){this.bodyHeight=t;var e={type:nX.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)},d2([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),d2([lY("columnModel")],e.prototype,"columnModel",void 0),d2([lY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),d2([rY],e.prototype,"postConstruct",null),e}(QY),f2=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)}}(),g2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},v2=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return f2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,nX.EVENT_LEFT_PINNED_WIDTH_CHANGED,this.onPinnedLeftWidthChanged.bind(this))},e.prototype.onPinnedLeftWidthChanged=function(){var t=this.pinnedWidthService.getPinnedLeftWidth(),e=t>0;f$(this.element,e),H$(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedLeftWidth()},g2([lY("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),g2([rY],e.prototype,"postConstruct",null),e}(QY),y2=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)}}(),m2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},C2=function(t){function e(e){var o=t.call(this)||this;return o.element=e,o}return y2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,nX.EVENT_RIGHT_PINNED_WIDTH_CHANGED,this.onPinnedRightWidthChanged.bind(this))},e.prototype.onPinnedRightWidthChanged=function(){var t=this.pinnedWidthService.getPinnedRightWidth(),e=t>0;f$(this.element,e),H$(this.element,t)},e.prototype.getWidth=function(){return this.pinnedWidthService.getPinnedRightWidth()},m2([lY("pinnedWidthService")],e.prototype,"pinnedWidthService",void 0),m2([rY],e.prototype,"postConstruct",null),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)}}(),S2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},b2=function(t){function e(e,o){var n=t.call(this)||this;return n.eContainer=e,n.eViewport=o,n}return w2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,nX.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)},S2([lY("rowContainerHeightService")],e.prototype,"maxDivHeightScaler",void 0),S2([rY],e.prototype,"postConstruct",null),e}(QY),_2=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},R2=function(t){function e(e){var o=t.call(this)||this;return o.eContainer=e,o}return _2(e,t),e.prototype.postConstruct=function(){var t=this;if(this.gridOptionsService.is("enableRangeSelection")&&!vK(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)}))}},E2([uY("rangeService")],e.prototype,"rangeService",void 0),E2([lY("dragService")],e.prototype,"dragService",void 0),E2([rY],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)}}(),T2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},O2=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,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,nX.EVENT_LEFT_PINNED_WIDTH_CHANGED,t),this.addSpacer&&(this.addManagedListener(this.eventService,nX.EVENT_RIGHT_PINNED_WIDTH_CHANGED,t),this.addManagedListener(this.eventService,nX.EVENT_SCROLL_VISIBILITY_CHANGED,t),this.addManagedListener(this.eventService,nX.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)},T2([lY("columnModel")],e.prototype,"columnModel",void 0),T2([lY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),T2([rY],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)}}(),P2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},A2=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},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 c2(this.eContainer)),this.addPreventScrollWhileDragging(),this.listenOnDomOrder(),this.stopHScrollOnPinnedRows();var i=[i2.TOP_CENTER,i2.TOP_LEFT,i2.TOP_RIGHT],r=[i2.STICKY_TOP_CENTER,i2.STICKY_TOP_LEFT,i2.STICKY_TOP_RIGHT],s=[i2.BOTTOM_CENTER,i2.BOTTOM_LEFT,i2.BOTTOM_RIGHT],a=[i2.CENTER,i2.LEFT,i2.RIGHT],l=M2(M2(M2(M2([],A2(i)),A2(s)),A2(a)),A2(r)),u=[i2.CENTER,i2.LEFT,i2.RIGHT,i2.FULL_WIDTH],c=[i2.CENTER,i2.TOP_CENTER,i2.STICKY_TOP_CENTER,i2.BOTTOM_CENTER],p=[i2.LEFT,i2.BOTTOM_LEFT,i2.TOP_LEFT,i2.STICKY_TOP_LEFT],d=[i2.RIGHT,i2.BOTTOM_RIGHT,i2.TOP_RIGHT,i2.STICKY_TOP_RIGHT];this.forContainers(p,(function(){n.pinnedWidthFeature=n.createManagedBean(new v2(n.eContainer)),n.addManagedListener(n.eventService,nX.EVENT_LEFT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(d,(function(){n.pinnedWidthFeature=n.createManagedBean(new C2(n.eContainer)),n.addManagedListener(n.eventService,nX.EVENT_RIGHT_PINNED_WIDTH_CHANGED,(function(){return n.onPinnedWidthChanged()}))})),this.forContainers(u,(function(){return n.createManagedBean(new b2(n.eContainer,n.name===i2.CENTER?o:void 0))})),this.forContainers(l,(function(){return n.createManagedBean(new R2(n.eContainer))})),this.forContainers(c,(function(){return n.createManagedBean(new O2((function(t){return n.comp.setContainerWidth(t+"px")})))})),$q()&&(this.forContainers([i2.CENTER],(function(){var t=n.enableRtl?nX.EVENT_LEFT_PINNED_WIDTH_CHANGED:nX.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?i2.LEFT:i2.RIGHT;this.forContainers([i2.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,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,(function(){return t.onDisplayedColumnsChanged()})),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,(function(){return t.onDisplayedColumnsWidthChanged()})),this.addManagedListener(this.eventService,nX.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([i2.STICKY_TOP_CENTER,i2.STICKY_TOP_LEFT,i2.STICKY_TOP_RIGHT,i2.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([i2.TOP_CENTER,i2.STICKY_TOP_CENTER,i2.BOTTOM_CENTER],(function(){t.addManagedListener(t.eViewport,"scroll",(function(){return t.eViewport.scrollLeft=0}))}))},e.prototype.onDisplayedColumnsChanged=function(){var t=this;this.forContainers([i2.CENTER],(function(){return t.onHorizontalViewportChanged()}))},e.prototype.onDisplayedColumnsWidthChanged=function(){var t=this;this.forContainers([i2.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 w$(this.eViewport)},e.prototype.getCenterViewportScrollLeft=function(){return R$(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 D$(this.eViewport)},e.prototype.getViewportScrollLeft=function(){return R$(this.eViewport,this.enableRtl)},e.prototype.isHorizontalScrollShowing=function(){return this.gridOptionsService.is("alwaysShowHorizontalScroll")||G$(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){x$(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()),$q()&&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 i2.TOP_CENTER:case i2.TOP_LEFT:case i2.TOP_RIGHT:case i2.TOP_FULL_WIDTH:return this.rowRenderer.getTopRowCtrls();case i2.STICKY_TOP_CENTER:case i2.STICKY_TOP_LEFT:case i2.STICKY_TOP_RIGHT:case i2.STICKY_TOP_FULL_WIDTH:return this.rowRenderer.getStickyTopRowCtrls();case i2.BOTTOM_CENTER:case i2.BOTTOM_LEFT:case i2.BOTTOM_RIGHT:case i2.BOTTOM_FULL_WIDTH:return this.rowRenderer.getBottomRowCtrls();default:return this.rowRenderer.getCentreRowCtrls()}},P2([lY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),P2([lY("dragService")],e.prototype,"dragService",void 0),P2([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),P2([lY("columnModel")],e.prototype,"columnModel",void 0),P2([lY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),P2([lY("animationFrameService")],e.prototype,"animationFrameService",void 0),P2([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),P2([rY],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)}}(),k2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},V2='
\n \n \n \n \n \n \n \n
',H2=function(t){function e(){return t.call(this,V2)||this}return G2(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 Cq(t.getGui(),e)},setRowCount:function(e){return yq(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(e1.AUTO_HEIGHT,o.autoHeight),t.toggle(e1.NORMAL,o.normal),t.toggle(e1.PRINT,o.print)})),t.addOrRemoveCssClass(e1.AUTO_HEIGHT,o.autoHeight),t.addOrRemoveCssClass(e1.NORMAL,o.normal),t.addOrRemoveCssClass(e1.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 I1),this.ctrl.setComp(o,this.getGui(),this.eBodyViewport,this.eTop,this.eBottom,this.eStickyTop),(this.rangeService||"multiple"===this.gridOptionsService.get("rowSelection"))&&vq(this.getGui(),!0)},e.prototype.setRowAnimationCssOnBodyViewport=function(t,e){var o=this.eBodyViewport.classList;o.toggle(b1.ANIMATION_ON,e),o.toggle(b1.ANIMATION_OFF,!e)},e.prototype.getFloatingTopBottom=function(){return[this.eTop,this.eBottom]},k2([lY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),k2([uY("rangeService")],e.prototype,"rangeService",void 0),k2([OZ("eBodyViewport")],e.prototype,"eBodyViewport",void 0),k2([OZ("eStickyTop")],e.prototype,"eStickyTop",void 0),k2([OZ("eTop")],e.prototype,"eTop",void 0),k2([OZ("eBottom")],e.prototype,"eBottom",void 0),k2([OZ("gridHeader")],e.prototype,"headerRootComp",void 0),k2([OZ("eBody")],e.prototype,"eBody",void 0),k2([rY],e.prototype,"init",null),e}(TZ),B2=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)}}(),W2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},j2=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B2(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,nX.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:nX.EVENT_SCROLL_VISIBILITY_CHANGED};this.eventService.dispatchEvent(e)}},e.prototype.isHorizontalScrollShowing=function(){return this.horizontalScrollShowing},e.prototype.isVerticalScrollShowing=function(){return this.verticalScrollShowing},W2([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),W2([rY],e.prototype,"postConstruct",null),W2([aY("scrollVisibleService")],e)}(QY),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)}}(),U2=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},K2=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.gridInstanceId=o.gridInstanceSequence.next(),e}var o;return z2(e,t),o=e,e.prototype.stampTopLevelGridCompWithGridInstance=function(t){t[o.GRID_DOM_KEY]=this.gridInstanceId},e.prototype.getRenderedCellForEvent=function(t){return UY(this.gridOptionsService,t.target,t2.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(gK(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(),s=r.getScrollFeature().getVScrollPosition();e+=r.getScrollFeature().getHScrollPosition().left,o+=s.top}return{x:e,y:o}},e.gridInstanceSequence=new gZ,e.GRID_DOM_KEY="__ag_grid_instance",U2([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),o=U2([aY("mouseEventService")],e)}(QY),Y2=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)}}(),X2=function(){return X2=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$2=function(t){function e(){var e=t.call(this)||this;return e.onPageDown=qK(e.onPageDown,100),e.onPageUp=qK(e.onPageUp,100),e}return Y2(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,s=this.mouseEventService.getCellPositionForEvent(t),a=!1;switch(o){case tZ.PAGE_HOME:case tZ.PAGE_END:i||n||(this.onHomeOrEndKey(o),a=!0);break;case tZ.LEFT:case tZ.RIGHT:case tZ.UP:case tZ.DOWN:if(!s)return!1;!i||n||r||(this.onCtrlUpDownLeftRight(o,s),a=!0);break;case tZ.PAGE_DOWN:case tZ.PAGE_UP:i||n||(a=this.handlePageUpDown(o,s,e))}return a&&t.preventDefault(),a},e.prototype.handlePageUpDown=function(t,e,o){return o&&(e=this.focusService.getFocusedCell()),!!e&&(t===tZ.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(gK(n)&&!n.isPinned()&&this.gridBodyCon.getScrollFeature().ensureColumnVisible(n),gK(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 s={rowIndex:i,rowPinned:null,column:r};this.rangeService.setRangeToCell(s)}},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(),s=this.paginationProxy.getPageLastRow(),a=this.paginationProxy.getPixelOffset(),l=this.paginationProxy.getRow(t.rowIndex),u=o?(null==l?void 0:l.rowHeight)-i-a:i-a,c=(null==l?void 0:l.rowTop)+u,p=this.paginationProxy.getRowIndexAtPixel(c+a);if(p===t.rowIndex){var d=o?-1:1;e=p=t.rowIndex+d}o?(n="bottom",ps&&(p=s),e>s&&(e=s)),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(),s=0,a=t.rowIndex;a>=0&&a<=r;){var l=this.paginationProxy.getRow(a);if(l){var u=null!==(o=l.rowHeight)&&void 0!==o?o:0;if(s+u>i)break;s+=u}a+=n}return Math.max(0,Math.min(a,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===tZ.PAGE_HOME,o=this.columnModel.getAllDisplayedColumns(),n=e?o[0]:RY(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 t2&&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 t2){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(),s=this.isCellEditable(n),a=this.isCellEditable(r),l=r&&n.rowIndex===r.rowIndex&&n.rowPinned===r.rowPinned;return s&&t.setFocusOutOnEditor(),l||(t.getRowCtrl().stopEditing(),i.getRowCtrl().startRowEditing(void 0,void 0,o)),a?(i.setFocusInOnEditor(),i.focusCell()):i.focusCell(!0),!0},e.prototype.moveToNextCellNotEditing=function(t,e){var o,n=this.columnModel.getAllDisplayedColumns();o=t instanceof a2?X2(X2({},t.getRowPosition()),{column:e?n[0]:RY(n)}):t.getCellPosition();var i=this.findNextCellToFocusOn(o,e,!1);if(i instanceof t2)i.focusCell(!0);else if(i)return this.tryToFocusFullWidthRow(i.getRowPosition(),e);return gK(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(gK(i)){var r=i({backwards:e,editing:o,previousCellPosition:t,nextCellPosition:n||null});gK(r)?(r.floating&&(HK((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 s=this.headerNavigationService.getHeaderRowCount();return this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:s+n.rowIndex,column:n.column},fromCell:!0}),null}var a="fullRow"===this.gridOptionsService.get("editType");if(!o||a||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===tZ.LEFT&&(i=this.getLastCellOfColSpan(i)):e===tZ.RIGHT&&(i=this.getLastCellOfColSpan(i)),r=vK(i=this.cellNavigationService.getNextCellToFocus(e,i));if(r&&t&&t.key===tZ.UP&&(i={rowIndex:-1,rowPinned:null,column:o.column}),n){var s=this.gridOptionsService.getCallback("navigateToNextCell");if(gK(s)){var a=s({key:e,previousCellPosition:o,nextCellPosition:i||null,event:t});gK(a)?(a.floating&&(HK((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"),a.rowPinned=a.floating),i={rowPinned:a.rowPinned,rowIndex:a.rowIndex,column:a.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?RY(o):o[0])};this.focusPosition(r);var s=null!=i&&this.rowPositionUtils.before(r,i),a={type:nX.EVENT_FULL_WIDTH_ROW_FOCUSED,rowIndex:r.rowIndex,rowPinned:r.rowPinned,column:r.column,isFullWidthCell:!0,floating:r.rowPinned,fromBelow:s};return this.eventService.dispatchEvent(a),!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:RY(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))&&vK(t.rowPinned)&&this.gridBodyCon.getScrollFeature().ensureIndexVisible(t.rowIndex),t.column.isPinned()||this.gridBodyCon.getScrollFeature().ensureColumnVisible(t.column)},q2([lY("mouseEventService")],e.prototype,"mouseEventService",void 0),q2([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),q2([lY("focusService")],e.prototype,"focusService",void 0),q2([uY("rangeService")],e.prototype,"rangeService",void 0),q2([lY("columnModel")],e.prototype,"columnModel",void 0),q2([lY("rowModel")],e.prototype,"rowModel",void 0),q2([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),q2([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),q2([lY("headerNavigationService")],e.prototype,"headerNavigationService",void 0),q2([lY("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),q2([lY("cellNavigationService")],e.prototype,"cellNavigationService",void 0),q2([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),q2([rY],e.prototype,"postConstruct",null),q2([aY("navigationService")],e)}(QY),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){var o=t.call(this,'
')||this;return o.params=e,o}return Z2(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){oZ(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(pJ),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,i,r){var s=t.call(this)||this;s.rendererVersion=0,s.editorVersion=0,s.beans=e,s.column=o.getColumn(),s.rowNode=o.getRowNode(),s.rowCtrl=o.getRowCtrl(),s.eRow=i,s.cellCtrl=o,s.setTemplate('
');var a=s.getGui();s.forceWrapper=o.isForceWrapper(),s.refreshWrapper(!1);var l=function(t,e){null!=e&&""!=e?a.setAttribute(t,e):a.removeAttribute(t)};JX(a,"gridcell"),l("col-id",o.getColumnIdSanitised());var u=o.getTabIndex();void 0!==u&&l("tabindex",u.toString());var c={addOrRemoveCssClass:function(t,e){return s.addOrRemoveCssClass(t,e)},setUserStyles:function(t){return F$(a,t)},getFocusableElement:function(){return s.getFocusableElement()},setIncludeSelection:function(t){return s.includeSelection=t},setIncludeRowDrag:function(t){return s.includeRowDrag=t},setIncludeDndSource:function(t){return s.includeDndSource=t},setRenderDetails:function(t,e,o){return s.setRenderDetails(t,e,o)},setEditDetails:function(t,e,o){return s.setEditDetails(t,e,o)},getCellEditor:function(){return s.cellEditor||null},getCellRenderer:function(){return s.cellRenderer||null},getParentOfValue:function(){return s.getParentOfValue()}};return o.setComp(c,s.getGui(),s.eCellWrapper,n,r),s}return J2(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=P$(''),this.getGui().appendChild(this.eCellWrapper));var i=!o&&null!=this.eCellWrapper;i&&(O$(this.eCellWrapper),this.eCellWrapper=void 0),this.addOrRemoveCssClass("ag-cell-value",!o);var r=!t&&o,s=r&&null==this.eCellValue;s&&(this.eCellValue=P$(''),this.eCellWrapper.appendChild(this.eCellValue));var a=!r&&null!=this.eCellValue;a&&(O$(this.eCellValue),this.eCellValue=void 0);var l=n||i||s||a;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 s=t.params;r.then((function(t){return n.afterCellEditorCreated(i,t,s,e,o)})),vK(this.cellEditor)&&s.cellStartedEdit&&this.cellCtrl.focusCell(!0)}},e.prototype.insertValueWithoutCellRenderer=function(t){var e=this.getParentOfValue();T$(e);var o=null!=t?pX(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),O$(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),O$(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();T$(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,s=this.beans.gridOptionsService.is("stopEditingWhenCellsLoseFocus"),a=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:a,alignSide:l?"right":"left",keepWithinBounds:!0},c=r.positionPopupByComponent.bind(r,u),p=this.beans.localeService.getLocaleTextFunc(),d=r.addPopup({modal:s,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)&&jq()&&t.focus({preventScroll:!0}),T$(this.getParentOfValue())},e}(TZ),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(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(),s=r.style;i.domOrder=i.rowCtrl.getDomOrder(),JX(r,"row");var a=i.rowCtrl.getTabIndex();null!=a&&r.setAttribute("tabindex",a.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 F$(r,t)},setTop:function(t){return s.top=t},setTransform:function(t){return s.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 e3(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=IK(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())})),L$(this.getGui(),o)}},e.prototype.newCellComp=function(t){var e=new t3(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=IK(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}(TZ),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)}}(),i3=function(){return i3=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},s3=function(t){function e(){var e,o,n=t.call(this,(e=TZ.elementGettingCreated.getAttribute("name"),o=F2.getRowContainerCssClasses(e),e===i2.CENTER||e===i2.TOP_CENTER||e===i2.STICKY_TOP_CENTER||e===i2.BOTTOM_CENTER?'':'
'))||this;return n.rowComps={},n.name=TZ.elementGettingCreated.getAttribute("name"),n.type=function(t){switch(t){case i2.CENTER:case i2.TOP_CENTER:case i2.STICKY_TOP_CENTER:case i2.BOTTOM_CENTER:return r2.CENTER;case i2.LEFT:case i2.TOP_LEFT:case i2.STICKY_TOP_LEFT:case i2.BOTTOM_LEFT:return r2.LEFT;case i2.RIGHT:case i2.TOP_RIGHT:case i2.STICKY_TOP_RIGHT:case i2.BOTTOM_RIGHT:return r2.RIGHT;case i2.FULL_WIDTH:case i2.TOP_FULL_WIDTH:case i2.STICKY_TOP_FULL_WIDTH:case i2.BOTTOM_FULL_WIDTH:return r2.FULL_WIDTH;default:throw Error("Invalid Row Container Type")}}(n.name),n}return n3(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 F2(this.name)).setComp(e,this.eContainer,this.eViewport)},e.prototype.preDestroy=function(){this.setRowCtrls([])},e.prototype.setRowCtrls=function(t){var e=this,o=i3({},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 o3(t,e.beans,e.type);e.rowComps[n]=r,e.appendRow(r.getGui())}})),IK(o).forEach((function(t){e.eContainer.removeChild(t.getGui()),t.destroy()})),JX(this.eContainer,t.length?"rowgroup":"presentation")},e.prototype.appendRow=function(t){this.domOrder?N$(this.eContainer,t,this.lastPlacedElement):this.eContainer.appendChild(t),this.lastPlacedElement=t},e.prototype.ensureDomOrder=function(t){this.domOrder&&(I$(this.eContainer,t,this.lastPlacedElement),this.lastPlacedElement=t)},r3([lY("beans")],e.prototype,"beans",void 0),r3([OZ("eViewport")],e.prototype,"eViewport",void 0),r3([OZ("eContainer")],e.prototype,"eContainer",void 0),r3([rY],e.prototype,"postConstruct",null),r3([sY],e.prototype,"preDestroy",null),e}(TZ),a3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},l3=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?FJ.ICON_PINNED:FJ.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")},a3([lY("columnModel")],t.prototype,"columnModel",void 0),a3([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),t}(),u3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},c3=function(){function t(t,e){this.needToMoveLeft=!1,this.needToMoveRight=!1,this.lastMovedInfo=null,this.pinned=t,this.eContainer=e,this.centerContainer=!gK(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?FJ.ICON_PINNED:FJ.ICON_MOVE},t.prototype.onDragEnter=function(t){var e=t.dragItem.columns;if(t.dragSource.type===GQ.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 s=this.lastMovedInfo,a=s.columns,l=s.toIndex;this.moveColumns(a,l,"uiColumnMoved",!0)}}else if(this.lastDraggingEvent=t,!vK(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 VQ.Left:return VQ.Right;case VQ.Right:return VQ.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,s=o===VQ.Left,a=o===VQ.Right,l=t.allMovingColumns;if(e===GQ.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,a,n),d=this.calculateOldIndex(c);if(0!==p.length){var h=p[0],f=null!==d&&!i;if(e==GQ.HeaderCell&&(f=null!==d),f&&!r){if(s&&h>=d)return;if(a&&h<=d)return}for(var g=this.columnModel.getAllDisplayedColumns(),v=[],y=null,m=0;m0)&&!(n=r.next()).done;)s.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 s}(r.length>s.length?[r,s]:[s,r],2))[0],s=i[1],r.forEach((function(t){-1===s.indexOf(t)&&o++}))},i=0;i0){for(var d=0;d0){var h=a[u-1];n=l.indexOf(h)+1}else-1===(n=l.indexOf(a[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(FJ.ICON_LEFT,!0):this.dragAndDropService.setGhostIcon(FJ.ICON_RIGHT,!0))},t.prototype.ensureIntervalCleared=function(){this.movingIntervalId&&(window.clearInterval(this.movingIntervalId),this.movingIntervalId=null,this.dragAndDropService.setGhostIcon(FJ.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(FJ.ICON_PINNED),this.failedMoveAttempts>7)){var i=this.needToMoveLeft?"left":"right";this.setColumnsPinned(n,i,"uiColumnDragged"),this.dragAndDropService.nudge()}}},u3([lY("columnModel")],t.prototype,"columnModel",void 0),u3([lY("dragAndDropService")],t.prototype,"dragAndDropService",void 0),u3([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),u3([lY("ctrlsService")],t.prototype,"ctrlsService",void 0),u3([rY],t.prototype,"init",null),t}(),p3=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)}}(),d3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},h3=function(t){function e(e,o){var n=t.call(this)||this;return n.pinned=e,n.eContainer=o,n}return p3(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===GQ.HeaderCell||t===GQ.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 c3(this.pinned,this.eContainer)),this.bodyDropPivotTarget=this.createManagedBean(new l3(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===GQ.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)},d3([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),d3([lY("columnModel")],e.prototype,"columnModel",void 0),d3([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),d3([rY],e.prototype,"postConstruct",null),d3([rY],e.prototype,"init",null),e}(QY),f3=function(){function t(){}return t.getHeaderClassesFromColDef=function(t,e,o,n){return vK(t)?[]:this.getColumnClassesFromCollDef(t.headerClass,t,e,o,n)},t.getToolPanelClassesFromColDef=function(t,e,o,n){return vK(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 vK(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;)s.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 s}(r)):[];var r},t}(),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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},y3=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 g3(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 rq(n,t)},setAriaSort:function(t){return t?bq(n,t):_q(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
',v3([OZ("eResize")],e.prototype,"eResize",void 0),v3([OZ("eHeaderCompWrapper")],e.prototype,"eHeaderCompWrapper",void 0),v3([rY],e.prototype,"postConstruct",null),v3([sY],e.prototype,"destroyHeaderComp",null),e}(p1),m3=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},w3=function(t){function e(o){return t.call(this,e.TEMPLATE,o)||this}return m3(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 f$(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
',C3([lY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),C3([OZ("eResize")],e.prototype,"eResize",void 0),C3([rY],e.prototype,"postConstruct",null),e}(p1),S3=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)}}(),b3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.COLUMN_GROUP="group",t.COLUMN="column",t.FLOATING_FILTER="filter"}(I2||(I2={}));var _3,E3=function(t){function e(e){var o=t.call(this)||this;return o.headerComps={},o.ctrl=e,o.setTemplate('
'),o}return S3(e,t),e.prototype.init=function(){var t=this;this.getGui().style.transform=this.ctrl.getTransform(),mq(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})),xK(n,(function(t,e){o.getGui().removeChild(e.getGui()),o.destroyBean(e)})),e){var i=IK(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()}));L$(this.getGui(),r)}}},e.prototype.createHeaderComp=function(t){var e;switch(this.ctrl.getType()){case I2.COLUMN_GROUP:e=new w3(t);break;case I2.FLOATING_FILTER:e=new f1(t);break;default:e=new y3(t)}return this.createBean(e),e.setParentComponent(this),e},b3([rY],e.prototype,"init",null),b3([sY],e.prototype,"destroyHeaderCtrls",null),e}(TZ),R3=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},T3=0,O3=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()+"-"+T3++,n}return R3(e,t),e.prototype.shouldStopEventPropagation=function(t){var e=this.focusService.getFocusedHeader(),o=e.headerRowIndex,n=e.column;return nZ(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 tZ.PAGE_DOWN:case tZ.PAGE_UP:case tZ.PAGE_HOME:case tZ.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([lY("focusService")],e.prototype,"focusService",void 0),x3([lY("beans")],e.prototype,"beans",void 0),x3([lY("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)}}(),P3=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?RY(this.colsSpanning):this.columnOrGroup},e.prototype.postConstruct=function(){this.addManagedListener(this.columnOrGroup,SY.EVENT_LEFT_CHANGED,this.onLeftChanged.bind(this)),this.setLeftFirstTime(),this.addManagedListener(this.eventService,nX.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=gK(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(gK(t)&&(this.eCell.style.left=t+"px"),this.columnOrGroup instanceof SY)e=this.columnOrGroup;else{var o=this.columnOrGroup.getLeafColumns();if(!o.length)return;o.length>1&&Sq(this.ariaEl,o.length),e=o[0]}var n=this.beans.columnModel.getAriaColumnIndex(e);wq(this.ariaEl,n)},function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(QY),A3=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},I3=function(t){function e(e,o){var n=t.call(this)||this;return n.columns=e,n.element=o,n}return A3(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([lY("columnHoverService")],e.prototype,"columnHoverService",void 0),M3([rY],e.prototype,"postConstruct",null),e}(QY),L3=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)}}(),N3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},F3=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.iconCreated=!1,n.column=e,n}return L3(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,SY.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=Q$("filter",this.gridOptionsService,this.column);t&&(this.iconCreated=!0,this.eButtonShowMainFilter.appendChild(t))}},e.prototype.setupFocus=function(){this.createManagedBean(new VZ(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();nq(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 tZ.UP:case tZ.DOWN:o||e.preventDefault();case tZ.LEFT:case tZ.RIGHT:if(o)return;e.stopPropagation();case tZ.ENTER:o&&this.focusService.focusInto(this.eGui)&&e.preventDefault();break;case tZ.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&&y$(t.relatedTarget,"ag-floating-filter");if(e&&o&&t.target===this.eGui){var n=this.lastFocusEvent,i=!(!n||n.key!==tZ.TAB);if(n&&i){var r=n.shiftKey;this.focusService.focusInto(this.eGui,r)}}var s=this.getRowIndex();this.beans.focusService.setFocusedHeader(s,this.column)}},e.prototype.setupHover=function(){var t=this;this.createManagedBean(new I3([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,nX.EVENT_COLUMN_HOVER_CHANGED,e),e()},e.prototype.setupLeft=function(){var t=new P3(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,SY.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,SY.EVENT_WIDTH_CHANGED,e),e()},e.prototype.setupFilterChangedListener=function(){this.active&&(this.destroyFilterChangedListener=this.addManagedListener(this.column,SY.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,s=this.comp.getFloatingFilterComp();s&&r?s.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)}))}},N3([lY("filterManager")],e.prototype,"filterManager",void 0),N3([lY("columnHoverService")],e.prototype,"columnHoverService",void 0),N3([lY("menuFactory")],e.prototype,"menuFactory",void 0),e}(O3),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)}}(),k3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},V3=function(t){function e(e,o,n,i,r){var s=t.call(this)||this;return s.pinned=e,s.column=o,s.eResize=n,s.comp=i,s.ctrl=r,s}return G3(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},s=function(){var s=o.column.isResizable(),a=!o.gridOptionsService.is("suppressAutoSize")&&!n.suppressAutoSize;(s!==t||a!==e)&&(t=s,e=a,r(),function(){if(f$(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"),s=function(){o.columnModel.autoSizeColumn(o.column,r,"uiColumnResized")};o.eResize.addEventListener("dblclick",s);var a=new tJ(o.eResize);a.addEventListener(tJ.EVENT_DOUBLE_TAP,s),o.addDestroyFunc((function(){o.eResize.removeEventListener("dblclick",s),a.removeEventListener(tJ.EVENT_DOUBLE_TAP,s),a.destroy()}))}}}())};s(),this.addDestroyFunc(r),this.ctrl.addRefreshFunction(s)},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},k3([lY("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),k3([lY("columnModel")],e.prototype,"columnModel",void 0),k3([rY],e.prototype,"postConstruct",null),e}(QY),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)}}(),B3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},W3=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 H3(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 cQ),this.cbSelectAll.addCssClass("ag-header-select-all"),JX(this.cbSelectAll.getGui(),"presentation"),this.showOrHideSelectAll(),this.addManagedListener(this.eventService,nX.EVENT_NEW_COLUMNS_LOADED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,this.showOrHideSelectAll.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_SELECTION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_PAGINATION_CHANGED,this.onSelectionChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_MODEL_UPDATED,this.onModelChanged.bind(this)),this.addManagedListener(this.cbSelectAll,nX.EVENT_FIELD_VALUE_CHANGED,this.onCbSelectAll.bind(this)),cq(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")},B3([lY("gridApi")],e.prototype,"gridApi",void 0),B3([lY("columnApi")],e.prototype,"columnApi",void 0),B3([lY("rowModel")],e.prototype,"rowModel",void 0),B3([lY("selectionService")],e.prototype,"selectionService",void 0),e}(QY),j3=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)}}(),z3=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t.TAB_GUARD="ag-tab-guard",t.TAB_GUARD_TOP="ag-tab-guard-top",t.TAB_GUARD_BOTTOM="ag-tab-guard-bottom"}(_3||(_3={}));var U3,K3=function(t){function e(e){var o=t.call(this)||this;o.skipTabGuardFocus=!1;var n=e.comp,i=e.eTopGuard,r=e.eBottomGuard,s=e.focusInnerElement,a=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=s,o.eFocusableElement=d,o.providedFocusIn=a,o.providedFocusOut=l,o.providedShouldStopEventPropagation=u,o.providedOnTabKeyDown=c,o.providedHandleKeyDown=p,o}return j3(e,t),e.prototype.postConstruct=function(){var t=this;this.createManagedBean(new VZ(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()},z3([lY("focusService")],e.prototype,"focusService",void 0),z3([rY],e.prototype,"postConstruct",null),e}(QY),Y3=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(){return X3=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$3=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}var o;return Y3(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;)s.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 s}(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?nX.EVENT_KEYBOARD_FOCUS:nX.EVENT_MOUSE_FOCUS})}))}}},e.prototype.init=function(){var t=this,e=this.clearFocusedCell.bind(this);this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_MODE_CHANGED,e),this.addManagedListener(this.eventService,nX.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverythingChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_GROUP_OPENED,e),this.addManagedListener(this.eventService,nX.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,a2.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,O3.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=X3({type:nX.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,s=t.preventScrollOnBrowserFocus,a=void 0!==s&&s,l=this.columnModel.getGridColumn(e);if(l){this.focusedCellPosition=l?{rowIndex:o,rowPinned:fK(n),column:l}:null;var u=X3(X3({type:nX.EVENT_CELL_FOCUSED},this.getFocusEventParams()),{forceBrowserFocus:r,preventScrollOnBrowserFocus:a,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,s=i.headerRowIndex;return e===r&&o===s&&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,s=t.headerPosition;if(r&&this.filterManager.isAdvancedFilterHeaderActive())return this.focusAdvancedFilter(s);if(n){var a,l=this.getFocusedHeader(),u=this.headerNavigationService.getHeaderRowCount();o?(a=this.gridOptionsService.getCallback("tabToNextHeader"))&&(s=a({backwards:"Before"===e,previousHeaderPosition:l,nextHeaderPosition:s,headerRowCount:u})):(a=this.gridOptionsService.getCallback("navigateToNextHeader"))&&i&&(s=a({key:i.key,previousHeaderPosition:l,nextHeaderPosition:s,headerRowCount:u,event:i}))}return!!s&&(-1===s.headerRowIndex?this.filterManager.isAdvancedFilterHeaderActive()?this.focusAdvancedFilter(s):this.focusGridView(s.column):(this.headerNavigationService.scrollToColumn(s.column,e),this.ctrlsService.getHeaderRowContainerCtrl(s.column.getPinned()).focusHeader(s.headerRowIndex,s.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=RY(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===fK(e)},e.prototype.findFocusableElements=function(t,e,o){void 0===o&&(o=!1);var n=p$,i=d$;e&&(i+=", "+e),o&&(i+=', [tabindex="-1"]');var r,s=Array.prototype.slice.apply(t.querySelectorAll(n)),a=Array.prototype.slice.apply(t.querySelectorAll(i));return a.length?(r=a,s.filter((function(t){return-1===r.indexOf(t)}))):s},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?RY(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(_3.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("."+VZ.FOCUS_MANAGED_CLASS);if(!o.length)return!1;for(var n=0;n=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},J3=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 Z3(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 V3(this.getPinned(),this.column,n,e,this)),this.createManagedBean(new I3([this.column],o)),this.createManagedBean(new P3(this.column,o,this.beans)),this.createManagedBean(new VZ(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,SY.EVENT_COL_DEF_CHANGED,this.onColDefChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_VALUE_CHANGED,this.onColumnValueChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,this.onColumnRowGroupChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_CHANGED,this.onColumnPivotChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_HEADER_HEIGHT_CHANGED,this.onHeaderHeightChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onHeaderHeightChanged.bind(this))},e.prototype.addMouseDownListenerIfNeeded=function(t){var e=this;if(Gq()){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(),$3.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 W3(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===tZ.SPACE&&this.selectAllFeature.onSpaceKeyDown(e),e.key===tZ.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 W1(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=f3.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:GQ.HeaderCell,eElement:t,getDefaultIconName:function(){return o?FJ.ICON_HIDE:FJ.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,SY.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,SY.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,SY.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,SY.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 s=this.getColumnGroupPaddingInfo(),a=s.numberOfParents,l=s.isSpanningTotal;n.addOrRemoveCssClass("ag-header-span-height",a>0);var u=i.getColumnHeaderRowHeight();if(0===a)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=a*(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=m$(o.getGui()),r=i.paddingTop+i.paddingBottom+i.borderBottomWidth+i.borderTopWidth,s=t.offsetHeight+r;if(e<5){var a=o.beans.gridOptionsService.getDocument();if(!a||!a.contains(t)||0==s)return void o.beans.frameworkOverrides.setTimeout((function(){return n(e+1)}),0)}o.columnModel.setColumnHeaderHeight(o.column,s)}},i=!1,r=function(){var t=o.column.isAutoHeaderHeight();t&&!i&&s(),!t&&i&&a()},s=function(){i=!0,n(0),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!0),e=o.resizeObserverService.observeResize(t,(function(){return n(0)}))},a=function(){i=!1,e&&e(),o.comp.addOrRemoveCssClass("ag-header-cell-auto-height",!1),e=void 0};r(),this.addDestroyFunc((function(){return a()})),this.addManagedListener(this.column,SY.EVENT_WIDTH_CHANGED,(function(){return i&&n(0)})),this.addManagedListener(this.eventService,SY.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(tq(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,nX.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,SY.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([lY("columnModel")],e.prototype,"columnModel",void 0),Q3([lY("columnHoverService")],e.prototype,"columnHoverService",void 0),Q3([lY("sortController")],e.prototype,"sortController",void 0),Q3([lY("menuFactory")],e.prototype,"menuFactory",void 0),Q3([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),Q3([lY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),Q3([lY("gridApi")],e.prototype,"gridApi",void 0),Q3([lY("columnApi")],e.prototype,"columnApi",void 0),Q3([sY],e.prototype,"removeDragSource",null),e}(O3),t5=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)}}(),e5=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},o5=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 t5(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},e5([lY("horizontalResizeService")],e.prototype,"horizontalResizeService",void 0),e5([lY("autoWidthCalculator")],e.prototype,"autoWidthCalculator",void 0),e5([lY("columnModel")],e.prototype,"columnModel",void 0),e5([rY],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){function e(e,o){var n=t.call(this)||this;return n.removeChildListenersFuncs=[],n.columnGroup=o,n.comp=e,n}return n5(e,t),e.prototype.postConstruct=function(){this.addListenersToChildrenColumns(),this.addManagedListener(this.columnGroup,oX.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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(QY),r5=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},a5=function(t){function e(e,o){var n=t.call(this,e,o)||this;return n.columnGroup=e,n}return r5(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 I3(r,o)),this.createManagedBean(new P3(this.columnGroup,o,this.beans)),this.createManagedBean(new i5(e,this.columnGroup)),this.groupResizeFeature=this.createManagedBean(new o5(e,n,i,this.columnGroup)),this.createManagedBean(new VZ(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 s=this.userComponentFactory.getHeaderGroupCompDetails(o);this.comp.setUserCompDetails(s)},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 W1(o,this.beans)).setComp(this.eGui)},e.prototype.setupExpandable=function(){var t=this.columnGroup.getProvidedColumnGroup();this.refreshExpanded(),this.addManagedListener(t,bY.EVENT_EXPANDABLE_CHANGED,this.refreshExpanded.bind(this)),this.addManagedListener(t,bY.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=f3.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,SY.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===tZ.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:GQ.HeaderCell,eElement:t,getDefaultIconName:function(){return n?FJ.ICON_HIDE:FJ.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")},s5([lY("columnModel")],e.prototype,"columnModel",void 0),s5([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),s5([lY("gridApi")],e.prototype,"gridApi",void 0),s5([lY("columnApi")],e.prototype,"columnApi",void 0),e}(O3),l5=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)}}(),u5=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},c5=0,p5=function(t){function e(e,o,n){var i=t.call(this)||this;i.instanceId=c5++,i.headerCellCtrls={},i.rowIndex=e,i.pinned=o,i.type=n;var r=n==I2.COLUMN_GROUP?"ag-header-row-column-group":n==I2.FLOATING_FILTER?"ag-header-row-column-filter":"ag-header-row-column";return i.headerRowClass="ag-header-row "+r,i}return l5(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(Gq())return"translateZ(0)"},e.prototype.addEventListeners=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_COLUMN_RESIZED,this.onColumnResized.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_VIRTUAL_COLUMNS_CHANGED,(function(e){return t.onVirtualColumnsChanged(e.afterScroll)})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_GRID_STYLES_CHANGED,this.onRowHeightChanged.bind(this)),this.addManagedListener(this.eventService,nX.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 SK(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),s=0;s=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},f5=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 d5(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,nX.EVENT_GRID_COLUMNS_CHANGED,this.onGridColumnsChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,this.onDisplayedColumnsChanged.bind(this)),this.addManagedListener(this.eventService,nX.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 h3(this.pinned,t);this.createManagedBean(e)},e.prototype.refresh=function(t){var e=this;void 0===t&&(t=!1);var o,n,i=new gZ,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;)s.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 s}(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 O2((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,s=t.gridOptionsService.is("enableRtl"),a=t.gridOptionsService.getScrollbarWidth(),l=t.scrollVisibleService.isVerticalScrollShowing()&&(s&&e||!s&&o)?n+a:n;t.comp.setPinnedContainerWidth(l+"px"),t.comp.setDisplayed(!i),r&&(t.hidden=i,t.refresh())}};this.addManagedListener(this.eventService,nX.EVENT_LEFT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,nX.EVENT_RIGHT_PINNED_WIDTH_CHANGED,n),this.addManagedListener(this.eventService,nX.EVENT_SCROLL_VISIBILITY_CHANGED,n),this.addManagedListener(this.eventService,nX.EVENT_SCROLLBAR_WIDTH_CHANGED,n)}},e.prototype.getHeaderCtrlForColumn=function(t){if(t instanceof SY){if(!this.columnsRowCtrl)return;return this.columnsRowCtrl.getHeaderCellCtrl(t)}if(0!==this.groupsRowCtrls.length)for(var e=0;e=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},y5=function(t){function e(e){var o=t.call(this)||this;return o.headerRowComps={},o.rowCompsList=[],o.pinned=e,o}return g5(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 f5(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 s=r||o.createBean(new E3(t));o.headerRowComps[i]=s,o.rowCompsList.push(s),function(t){var n=t.getGui();n.parentElement!=o.eRowContainer&&o.eRowContainer.appendChild(n),e&&I$(o.eRowContainer,n,e),e=n}(s)})),IK(n).forEach((function(t){return o.destroyRowComp(t)}))},e.PINNED_LEFT_TEMPLATE='',e.PINNED_RIGHT_TEMPLATE='',e.CENTER_TEMPLATE='',v5([OZ("eCenterContainer")],e.prototype,"eCenterContainer",void 0),v5([rY],e.prototype,"init",null),v5([sY],e.prototype,"destroyRowComps",null),e}(TZ),m5=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)}}(),C5=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.UP=0]="UP",t[t.DOWN=1]="DOWN",t[t.LEFT=2]="LEFT",t[t.RIGHT=3]="RIGHT"}(U3||(U3={}));var w5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m5(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(),s=t===U3.UP?this.headerPositionUtils.getColumnVisibleParent(i,n):this.headerPositionUtils.getColumnVisibleChild(i,n),a=s.nextRow,l=s.nextFocusColumn,u=!1;return a<0&&(a=0,l=i,u=!0),a>=r&&(a=-1),!(!u&&!l)&&this.focusService.focusHeaderPosition({headerPosition:{headerRowIndex:a,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===U3.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 oX){var n=t.getDisplayedLeafColumns();o="Before"===e?RY(n):n[0]}else o=t;this.gridBodyCon.getScrollFeature().ensureColumnVisible(o)}},C5([lY("focusService")],e.prototype,"focusService",void 0),C5([lY("headerPositionUtils")],e.prototype,"headerPositionUtils",void 0),C5([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),C5([rY],e.prototype,"postConstruct",null),C5([aY("headerNavigationService")],e)}(QY),S5=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)}}(),b5=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_5=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S5(e,t),e.prototype.setComp=function(t,e,o){this.comp=t,this.eGui=e,this.createManagedBean(new VZ(o,{onTabKeyDown:this.onTabKeyDown.bind(this),handleKeyDown:this.handleKeyDown.bind(this),onFocusOut:this.onFocusOut.bind(this)})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.onPivotModeChanged.bind(this)),this.addManagedListener(this.eventService,nX.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,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_HEADER_HEIGHT_CHANGED,t),this.addManagedListener(this.eventService,nX.EVENT_GRID_STYLES_CHANGED,t),this.addManagedListener(this.eventService,nX.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(),s=n-(1+o);if(t=o*e.getFloatingFiltersHeight(),t+=s*i,t+=r,this.headerHeight!==t){this.headerHeight=t;var a=t+1+"px";this.comp.setHeightAndMinHeight(a),this.eventService.dispatchEvent({type:nX.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?U3.LEFT:U3.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 tZ.LEFT:e=U3.LEFT;case tZ.RIGHT:gK(e)||(e=U3.RIGHT),this.headerNavigationService.navigateHorizontally(e,!1,t);break;case tZ.UP:e=U3.UP;case tZ.DOWN:gK(e)||(e=U3.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()},b5([lY("headerNavigationService")],e.prototype,"headerNavigationService",void 0),b5([lY("focusService")],e.prototype,"focusService",void 0),b5([lY("columnModel")],e.prototype,"columnModel",void 0),b5([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),b5([lY("filterManager")],e.prototype,"filterManager",void 0),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)}}(),R5=function(t){function e(){return t.call(this,e.TEMPLATE)||this}return E5(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 _5).setComp(e,this.getGui(),this.getFocusableElement());var o=function(e){t.createManagedBean(e),t.appendChild(e)};o(new y5("left")),o(new y5(null)),o(new y5("right"))},e.TEMPLATE='')||this;return e.hasHighlighting=!1,e}return c6(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(gK(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=pX(this.value.slice(0,n)),s=pX(this.value.slice(n,i)),a=pX(this.value.slice(i));this.getGui().lastElementChild.innerHTML=r+""+s+""+a}}!o&&this.hasHighlighting&&(this.hasHighlighting=!1,this.render())},e.prototype.render=function(){var t;this.getGui().lastElementChild.innerHTML=null!==(t=pX(this.value))&&void 0!==t?t:" "},e}(TZ),d6=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)}}(),h6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},f6=function(t){function e(o){var n=t.call(this,e.TEMPLATE)||this;return n.params=o,n.searchString="",n}return d6(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===tZ.UP?o-1:o+1;this.checkSetSelectedValue(n)},e.prototype.setSearch=function(t){this.searchString=t,gK(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,s=e>=0;return s&&(!o||!n&&r||n===r&&t.length=0&&t\n
\n
',h6([OZ("eList")],e.prototype,"eList",void 0),h6([rY],e.prototype,"init",null),e}(pJ),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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},y6=function(t){function e(){var e=t.call(this,'\n ')||this;return e.isListOpen=!1,e.lastPosition=0,e.valid=!0,e}return g6(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=fK(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 s=this.autocompleteListParams.searchString;this.autocompleteList.setSearch(null!=s?s:"")}else this.isListOpen&&this.closeList()},e.prototype.onKeyDown=function(t){var e=this,o=t.key;switch(this.updateLastPosition(),o){case tZ.ENTER:this.onEnterKeyDown(t);break;case tZ.TAB:this.onTabKeyDown(t);break;case tZ.DOWN:case tZ.UP:this.onUpDownKeyDown(t,o);break;case tZ.LEFT:case tZ.RIGHT:case tZ.PAGE_HOME:case tZ.PAGE_END:setTimeout((function(){e.updatePositionAndList()}));break;case tZ.ESCAPE:this.onEscapeKeyDown(t);break;case tZ.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 f6({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 fK(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",v6([lY("popupService")],e.prototype,"popupService",void 0),v6([OZ("eAutocompleteInput")],e.prototype,"eAutocompleteInput",void 0),v6([rY],e.prototype,"postConstruct",null),e}(TZ),m6=["mouseover","mouseout","mouseenter","mouseleave","mousemove"],C6=["touchstart","touchend","touchmove","touchcancel"],w6=function(){function t(){this.renderingEngine="vanilla",this.isOutsideAngular=function(t){return LY(m6,t)}}return t.prototype.setTimeout=function(t,e){window.setTimeout(t,e)},t.prototype.setInterval=function(t,e){return new mZ((function(o){o(window.setInterval(t,e))}))},t.prototype.addEventListener=function(t,e,o,n){var i=LY(C6,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}(),S6=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)}}(),b6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return S6(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===tZ.UP,r=t===tZ.DOWN,s=t===tZ.LEFT;if(i||r)n=i?this.paginationProxy.getPageFirstRow():this.paginationProxy.getPageLastRow(),o=e.column;else{var a=this.columnModel.getAllDisplayedColumns(),l=this.gridOptionsService.is("enableRtl");n=e.rowIndex,o=s!==l?a[0]:RY(a)}return{rowIndex:n,rowPinned:null,column:o}},e.prototype.getNextCellToFocusWithoutCtrlPressed=function(t,e){for(var o=e,n=!1;!n;){switch(t){case tZ.UP:o=this.getCellAbove(o);break;case tZ.DOWN:o=this.getCellBelow(o);break;case tZ.RIGHT:o=this.gridOptionsService.is("enableRtl")?this.getCellToLeft(o):this.getCellToRight(o);break;case tZ.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;)s.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 s}(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(vK(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=RY(e);var r=this.getRowAbove({rowIndex:t.rowIndex,rowPinned:t.rowPinned});if(vK(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}},b6([lY("columnModel")],e.prototype,"columnModel",void 0),b6([lY("rowModel")],e.prototype,"rowModel",void 0),b6([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),b6([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),b6([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),b6([aY("cellNavigationService")],e)}(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)}}(),R6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},x6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.consuming=!1,e}return E6(e,t),e.prototype.setBeans=function(t){this.logger=t.create("AlignedGridsService")},e.prototype.init=function(){this.addManagedListener(this.eventService,nX.EVENT_COLUMN_MOVED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_VISIBLE,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PINNED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_GROUP_OPENED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_RESIZED,this.fireColumnEvent.bind(this)),this.addManagedListener(this.eventService,nX.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 nX.EVENT_COLUMN_MOVED:case nX.EVENT_COLUMN_VISIBLE:case nX.EVENT_COLUMN_PINNED:case nX.EVENT_COLUMN_RESIZED:var o=t;e.processColumnEvent(o);break;case nX.EVENT_COLUMN_GROUP_OPENED:var n=t;e.processGroupOpenedEvent(n);break;case nX.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 nX.EVENT_COLUMN_MOVED:var s=t,a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId}}));this.columnModel.applyColumnState({state:a,applyOrder:!0},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" toIndex = "+s.toIndex);break;case nX.EVENT_COLUMN_VISIBLE:var l=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,hide:t.hide}})),this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" visible = "+l.visible);break;case nX.EVENT_COLUMN_PINNED:var u=t;a=t.columnApi.getColumnState().map((function(t){return{colId:t.colId,pinned:t.pinned}})),this.columnModel.applyColumnState({state:a},"alignedGridChanged"),this.logger.log("onColumnEvent-> processing "+t.type+" pinned = "+u.pinned);break;case nX.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)}))}},R6([lY("columnModel")],e.prototype,"columnModel",void 0),R6([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),R6([(o=0,n=pY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),R6([rY],e.prototype,"init",null),R6([aY("alignedGridsService")],e);var o,n}(QY),T6=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)}}(),O6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},D6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return T6(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,nX.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 s=t.source,a=void 0===s?"api":s;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,a);return this.setLastSelectedNode(f),p}}for(var d=0,h=0;h0){this.updateGroupsFromChildrenSelections(a);var g={type:nX.EVENT_SELECTION_CHANGED,source:a};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),s=0;r.forEach((function(e){e.group&&i.groupSelectsChildren||!1===o&&t===e||e.selectThisNode(o,void 0,n)&&s++})),this.updateGroupsFromChildrenSelections(n);var a={type:nX.EVENT_SELECTION_CHANGED,source:n};return this.eventService.dispatchEvent(a),s},e.prototype.selectChildren=function(t,e,o,n){var i=o?t.childrenAfterAggFilter:t.childrenAfterGroup;return fZ.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 xK(this.selectedNodes,(function(e,o){o&&t.push(o)})),t},e.prototype.getSelectedRows=function(){var t=[];return xK(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),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s}(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 r4(!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 xK(this.selectedNodes,(function(r,s){if(s&&s.id!==t.id){var a=o.selectedNodes[s.id];i+=a.setSelectedParams({newValue:!1,clearSelection:!1,suppressFinishActions:!0,source:e}),o.groupSelectsChildren&&s.parent&&(n[s.parent.id]=s.parent)}})),xK(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(gK(e)&&t.id!==e.id&&e){var o=e.id;this.selectedNodes[o]==t&&(this.selectedNodes[e.id]=e)}},e.prototype.syncInNewRowNode=function(t){gK(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:nX.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(i)},e.prototype.getServerSideSelectionState=function(){return null},e.prototype.setServerSideSelectionState=function(t){},O6([lY("rowModel")],e.prototype,"rowModel",void 0),O6([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),O6([(o=0,n=pY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),O6([rY],e.prototype,"init",null),O6([aY("selectionService")],e);var o,n}(QY),P6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},A6=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(fZ.removeAllReferences.bind(window,this,"Column API"),100)},t.prototype.getAllColumns=function(){return IX("28.0","getAllColumns","getColumns"),this.getColumns()},t.prototype.getPrimaryColumns=function(){return IX("28.0","getPrimaryColumns","getColumns"),this.getColumns()},t.prototype.getSecondaryColumns=function(){return IX("28.0","getSecondaryColumns","getPivotResultColumns"),this.getPivotResultColumns()},t.prototype.setSecondaryColumns=function(t){IX("28.0","setSecondaryColumns","setPivotResultColumns"),this.setPivotResultColumns(t)},t.prototype.getSecondaryPivotColumn=function(t,e){return IX("28.0","getSecondaryPivotColumn","getPivotResultColumn"),this.getPivotResultColumn(t,e)},P6([lY("columnModel")],t.prototype,"columnModel",void 0),P6([sY],t.prototype,"cleanDownReferencesToAvoidMemoryLeakInCaseApplicationIsKeepingReferenceToDestroyedGrid",null),P6([aY("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)}}(),I6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},L6=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(nX.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(),s=r.field,a=t.getColId(),l=e.data,u=e.groupData&&void 0!==e.groupData[a],c=!n&&e.aggData&&void 0!==e.aggData[a],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[a]:this.isTreeData&&r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):this.isTreeData&&s&&l?i=NK(l,s,t.isFieldContainsDots()):u?i=e.groupData[a]:c?i=e.aggData[a]:r.valueGetter?i=this.executeValueGetter(r.valueGetter,l,t,e):d?i=NK(l,e.field,t.isFieldContainsDots()):s&&l&&!p&&(i=NK(l,s,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;vK(t.data)&&(t.data={});var r=i.getColDef(),s=r.field,a=r.valueSetter;if(vK(s)&&vK(a))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=gK(a)?"function"==typeof a?a(u):this.expressionService.evaluate(a,u):this.setValueUsingField(t.data,s,o,i.isFieldContainsDots()))&&(l=!0),!l)return!1;t.resetQuickFilterAggregateText(),this.valueCache.onDataChanged(),u.newValue=this.getValue(i,t);var c={type:nX.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("."),s=t;r.length>0&&s;){var a=r.shift();0===r.length?(i=s[a]===o)||(s[a]=o):s=s[a]}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 s,a={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 s="function"==typeof t?t(a):this.expressionService.evaluate(t,a),this.valueCache.setValue(n,i,s),s},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))&&HK((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},I6([lY("expressionService")],e.prototype,"expressionService",void 0),I6([lY("columnModel")],e.prototype,"columnModel",void 0),I6([lY("valueCache")],e.prototype,"valueCache",void 0),I6([lY("dataTypeService")],e.prototype,"dataTypeService",void 0),I6([rY],e.prototype,"init",null),I6([aY("valueService")],e)}(QY),N6=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},G6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.expressionToFunctionCache={},e}return N6(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+";"},F6([(o=0,n=pY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),F6([aY("expressionService")],e);var o,n}(QY),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)}}(),V6=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.templateCache={},e.waitingCallbacks={},e}return k6(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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("templateService")],e)}(QY),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)}}(),B6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},W6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return H6(e,t),e.prototype.setBeans=function(t){this.logging=t.is("debug")},e.prototype.create=function(t){return new j6(t,this.isLogging.bind(this))},e.prototype.isLogging=function(){return this.logging},B6([(o=0,n=pY("gridOptionsService"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),B6([aY("loggerFactory")],e);var o,n}(QY),j6=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}(),z6=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)}}(),U6=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},K6=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return z6(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===GQ.HeaderCell||t===GQ.ToolPanel},getIconName:function(){return FJ.ICON_NOT_ALLOWED}}),this.mouseEventService.stampTopLevelGridCompWithGridInstance(e),this.createManagedBean(new m1(this.view)),this.addRtlSupport(),this.addManagedListener(this,nX.EVENT_KEYBOARD_FOCUS,(function(){n.view.addOrRemoveKeyboardFocusClass(!0)})),this.addManagedListener(this,nX.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 oY.__isRegistered(QK.RowGroupingModule,this.context.getGridId())},e.prototype.showSideBar=function(){return oY.__isRegistered(QK.SideBarModule,this.context.getGridId())},e.prototype.showStatusBar=function(){return oY.__isRegistered(QK.StatusBarModule,this.context.getGridId())},e.prototype.showWatermark=function(){return oY.__isRegistered(QK.EnterpriseCoreModule,this.context.getGridId())},e.prototype.onGridSizeChanged=function(){var t={type:nX.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(RY(e),!0);var n=RY(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)},U6([lY("focusService")],e.prototype,"focusService",void 0),U6([lY("resizeObserverService")],e.prototype,"resizeObserverService",void 0),U6([lY("columnModel")],e.prototype,"columnModel",void 0),U6([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),U6([lY("mouseEventService")],e.prototype,"mouseEventService",void 0),U6([lY("dragAndDropService")],e.prototype,"dragAndDropService",void 0),e}(QY),Y6=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},q6=function(t){function e(e){var o=t.call(this)||this;return o.eGridDiv=e,o}return Y6(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($3.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 K6);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(e1.AUTO_HEIGHT,e.autoHeight),o.toggle(e1.NORMAL,e.normal),o.toggle(e1.PRINT,e.print),this.addOrRemoveCssClass(e1.AUTO_HEIGHT,e.autoHeight),this.addOrRemoveCssClass(e1.NORMAL,e.normal),this.addOrRemoveCssClass(e1.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 D$(t)}))},X6([lY("loggerFactory")],e.prototype,"loggerFactory",void 0),X6([OZ("gridBody")],e.prototype,"gridBodyComp",void 0),X6([OZ("sideBar")],e.prototype,"sideBarComp",void 0),X6([OZ("rootWrapperBody")],e.prototype,"eRootWrapperBody",void 0),X6([rY],e.prototype,"postConstruct",null),e}(D4),$6=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Q6=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},J6=function(t,e){for(var o=0,n=e.length,i=t.length;o0},e.prototype.dispatchSortChangedEvents=function(t){var e={type:nX.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,s=i==e.length-1;return n=r||s?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=J6([],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 s=new Map;return e.forEach((function(t,e){return s.set(t,e)})),i&&n.forEach((function(e){var o=t.columnModel.getGroupDisplayColumnForGroup(e.getId());s.set(e,s.get(o))})),s},e.prototype.getColumnsWithSortingOrdered=function(){return J6([],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?J6([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],Z6([lY("columnModel")],e.prototype,"columnModel",void 0),o=Z6([aY("sortController")],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){function e(){return null!==t&&t.apply(this,arguments)||this}return e7(e,t),e.prototype.setMouseOver=function(t){this.selectedColumns=t;var e={type:nX.EVENT_COLUMN_HOVER_CHANGED};this.eventService.dispatchEvent(e)},e.prototype.clearMouseOver=function(){this.selectedColumns=null;var t={type:nX.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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("columnHoverService")],e)}(QY),n7=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)}}(),i7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},r7=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 n7(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))},i7([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),i7([rY],e.prototype,"postConstruct",null),i7([aY("columnAnimationService")],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)}}(),a7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},l7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s7(e,t),e.prototype.postConstruct=function(){var t=this;this.ctrlsService.whenReady((function(e){t.centerRowContainerCon=e.centerRowContainerCtrl,t.addManagedListener(t.eventService,nX.EVENT_BODY_HEIGHT_CHANGED,t.checkPageSize.bind(t)),t.addManagedListener(t.eventService,nX.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?XK((function(){return o()}),50)():(o(),this.isBodyRendered=!0)}else this.isBodyRendered=!1}},a7([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),a7([rY],e.prototype,"postConstruct",null),a7([aY("paginationAutoPageSizeService")],e)}(QY),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)}}(),c7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},p7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.cacheVersion=0,e}return u7(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]},c7([rY],e.prototype,"init",null),c7([aY("valueCache")],e)}(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)}}(),h7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},f7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return d7(e,t),e.prototype.init=function(){"clientSide"===this.rowModel.getType()&&(this.clientSideRowModel=this.rowModel),this.addManagedListener(this.eventService,nX.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 r4(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})}},h7([lY("rowModel")],e.prototype,"rowModel",void 0),h7([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),h7([rY],e.prototype,"init",null),h7([aY("changeDetectionService")],e)}(QY),g7=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)}}(),v7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},y7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return g7(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:P$(""):P$(""+o+"")},e}()},e.prototype.doesImplementIComponent=function(t){return!!t&&t.prototype&&"getGui"in t.prototype},v7([lY("componentMetadataProvider")],e.prototype,"componentMetadataProvider",void 0),v7([aY("agComponentUtils")],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)}}(),C7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},w7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m7(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]},C7([lY("agComponentUtils")],e.prototype,"agComponentUtils",void 0),C7([rY],e.prototype,"postConstruct",null),C7([aY("componentMetadataProvider")],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)}}(),b7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},_7={"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}},E7={headerHeight:["ag-header-row"],headerCellMinWidth:["ag-header-cell"],listItemHeight:["ag-virtual-list-item"],rowHeight:["ag-row"],chartMenuPanelWidth:["ag-chart-docked-container"]},R7=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.calculatedSizes={},e}return S7(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:nX.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=_7[i][t],s=this.gridOptionsService.getDocument();if(o||(o=this.eGridDiv),!E7[t])return r;var a=E7[t],l=s.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;)s.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 s}(u))),l.style.position="absolute";var c=a.reduce((function(t,e){var o=s.createElement("div");return o.style.position="static",o.classList.add(e),t.appendChild(o),o}),l),p=0;if(s.body){s.body.appendChild(l);var d=-1!==t.toLowerCase().indexOf("height")?"height":"width";p=parseInt(window.getComputedStyle(c)[d],10),s.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 gK(t)?Math.max(t,10):10},e.prototype.destroy=function(){this.calculatedSizes=null,this.mutationObserver&&this.mutationObserver.disconnect(),t.prototype.destroy.call(this)},b7([lY("eGridDiv")],e.prototype,"eGridDiv",void 0),b7([rY],e.prototype,"postConstruct",null),b7([aY("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)}}(),T7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},O7=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,nX.EVENT_BODY_HEIGHT_CHANGED,this.updateOffset.bind(this)),this.maxDivHeight=Uq(),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:nX.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:nX.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},T7([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),T7([(o=0,n=pY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"agWire",null),T7([rY],e.prototype,"postConstruct",null),T7([aY("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)}}(),P7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},A7=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?gK((e(t)||[]).find((function(t){return!0===t.selectable}))):!!o.isRowSelectableFunc&&o.isRowSelectableFunc(t),t.setRowSelectable(n))}))},P7([rY],e.prototype,"init",null),P7([aY("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)}}(),I7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},L7=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",Q$(t?"last":"first",this.gridOptionsService)),n.insertAdjacentElement("afterbegin",Q$(t?"next":"previous",this.gridOptionsService)),i.insertAdjacentElement("afterbegin",Q$(t?"previous":"next",this.gridOptionsService)),r.insertAdjacentElement("afterbegin",Q$(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,nX.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!==tZ.ENTER&&t.key!==tZ.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 t$(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"),s=t("nextPage","Next Page"),a=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){uq(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 s=this.localeService.getLocaleTextFunc();this.lbLastRowOnPage.innerHTML=s("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)},I7([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),I7([lY("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),I7([OZ("btFirst")],e.prototype,"btFirst",void 0),I7([OZ("btPrevious")],e.prototype,"btPrevious",void 0),I7([OZ("btNext")],e.prototype,"btNext",void 0),I7([OZ("btLast")],e.prototype,"btLast",void 0),I7([OZ("lbRecordCount")],e.prototype,"lbRecordCount",void 0),I7([OZ("lbFirstRowOnPage")],e.prototype,"lbFirstRowOnPage",void 0),I7([OZ("lbLastRowOnPage")],e.prototype,"lbLastRowOnPage",void 0),I7([OZ("lbCurrent")],e.prototype,"lbCurrent",void 0),I7([OZ("lbTotal")],e.prototype,"lbTotal",void 0),I7([rY],e.prototype,"postConstruct",null),e}(TZ),N7=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.Loading=0]="Loading",t[t.NoRows=1]="NoRows"}(a6||(a6={}));var G7=function(t){function e(){var o=t.call(this,e.TEMPLATE)||this;return o.inProgress=!1,o.destroyRequested=!1,o.manuallyDisplayed=!1,o}return N7(e,t),e.prototype.updateLayoutClasses=function(t,e){var o=this.eOverlayWrapper.classList;o.toggle(e1.AUTO_HEIGHT,e.autoHeight),o.toggle(e1.NORMAL,e.normal),o.toggle(e1.PRINT,e.print)},e.prototype.postConstruct=function(){this.createManagedBean(new m1(this)),this.setDisplayed(!1,{skipAriaHidden:!0}),this.addManagedListener(this.eventService,nX.EVENT_ROW_DATA_UPDATED,this.onRowDataUpdated.bind(this)),this.addManagedListener(this.eventService,nX.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===a6.Loading),e.toggle("ag-overlay-no-rows-wrapper",t===a6.NoRows)},e.prototype.showLoadingOverlay=function(){if(!this.gridOptionsService.is("suppressLoadingOverlay")){var t=this.userComponentFactory.getLoadingOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,a6.Loading)}},e.prototype.showNoRowsOverlay=function(){if(!this.gridOptionsService.is("suppressNoRowsOverlay")){var t=this.userComponentFactory.getNoRowsOverlayCompDetails({}).newAgStackInstance();this.showOverlay(t,a6.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),T$(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 ',F7([lY("userComponentFactory")],e.prototype,"userComponentFactory",void 0),F7([lY("paginationProxy")],e.prototype,"paginationProxy",void 0),F7([lY("gridApi")],e.prototype,"gridApi",void 0),F7([lY("columnModel")],e.prototype,"columnModel",void 0),F7([OZ("eOverlayWrapper")],e.prototype,"eOverlayWrapper",void 0),F7([rY],e.prototype,"postConstruct",null),e}(TZ),k7=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)}}(),V7=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},H7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return k7(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(gK(e.rowPinned))return"top"!==e.rowPinned}return t.rowIndex=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("cellPositionUtils")],e)}(QY),j7=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)}}(),z7=function(t){this.cellValueChanges=t},U7=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 j7(e,t),e}(z7),K7=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}(),Y7=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)}}(),X7=function(){return X7=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},$7=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,s=t.rowIndex,a=t.column,l=t.oldValue,u=t.value,c={rowPinned:r,rowIndex:s,columnId:a.getColId(),newValue:u,oldValue:l};e.cellValueChanges.push(c)}},e.clearStacks=function(){e.undoStack.clear(),e.redoStack.clear()},e}return Y7(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 K7(e),this.redoStack=new K7(e),this.addRowEditingListeners(),this.addCellEditingListeners(),this.addPasteListeners(),this.addFillListeners(),this.addCellKeyListeners(),this.addManagedListener(this.eventService,nX.EVENT_CELL_VALUE_CHANGED,this.onCellValueChanged),this.addManagedListener(this.eventService,nX.EVENT_MODEL_UPDATED,(function(e){e.keepUndoRedoStack||t.clearStacks()})),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PIVOT_MODE_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,nX.EVENT_NEW_COLUMNS_LOADED,this.clearStacks),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_GROUP_OPENED,this.clearStacks),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_ROW_GROUP_CHANGED,this.clearStacks),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_MOVED,this.clearStacks),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_PINNED,this.clearStacks),this.addManagedListener(this.eventService,nX.EVENT_COLUMN_VISIBLE,this.clearStacks),this.addManagedListener(this.eventService,nX.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:nX.EVENT_UNDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.undoStack,this.redoStack,"initialRange","oldValue","undo"),n={type:nX.EVENT_UNDO_ENDED,source:t,operationPerformed:o};this.eventService.dispatchEvent(n)},e.prototype.redo=function(t){var e={type:nX.EVENT_REDO_STARTED,source:t};this.eventService.dispatchEvent(e);var o=this.undoRedo(this.redoStack,this.undoStack,"finalRange","newValue","redo"),n={type:nX.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 U7?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,s=t.columnId,a={rowIndex:i,rowPinned:r},l=n.getRowNode(a);l.displayed&&l.setDataValue(s,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,s=n.endRow;i===t.length-1&&(e={rowPinned:r.rowPinned,rowIndex:r.rowIndex,columnId:n.startColumn.getColId()},o.setLastFocusedCell(e));var a={rowStartIndex:r.rowIndex,rowStartPinned:r.rowPinned,rowEndIndex:s.rowIndex,rowEndPinned:s.rowPinned,columnStart:n.startColumn,columns:n.columns};o.rangeService.addCellRange(a)}}))},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(),s=this.columnModel.getGridColumn(n);if(s){r.ensureIndexVisible(o),r.ensureColumnVisible(s);var a={rowIndex:o,column:s,rowPinned:i};this.focusService.setFocusedCell(X7(X7({},a),{forceBrowserFocus:!0})),e&&this.rangeService.setRangeToCell(a)}},e.prototype.addRowEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_ROW_EDITING_STARTED,(function(e){t.activeRowEdit={rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,nX.EVENT_ROW_EDITING_STOPPED,(function(){var e=new z7(t.cellValueChanges);t.pushActionsToUndoStack(e),t.activeRowEdit=null}))},e.prototype.addCellEditingListeners=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_CELL_EDITING_STARTED,(function(e){t.activeCellEdit={column:e.column,rowIndex:e.rowIndex,rowPinned:e.rowPinned}})),this.addManagedListener(this.eventService,nX.EVENT_CELL_EDITING_STOPPED,(function(e){if(t.activeCellEdit=null,e.valueChanged&&!t.activeRowEdit&&!t.isPasting&&!t.isRangeInAction){var o=new z7(t.cellValueChanges);t.pushActionsToUndoStack(o)}}))},e.prototype.addPasteListeners=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_PASTE_START,(function(){t.isPasting=!0})),this.addManagedListener(this.eventService,nX.EVENT_PASTE_END,(function(){var e=new z7(t.cellValueChanges);t.pushActionsToUndoStack(e),t.isPasting=!1}))},e.prototype.addFillListeners=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_FILL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,nX.EVENT_FILL_END,(function(e){var o=new U7(t.cellValueChanges,e.initialRange,e.finalRange);t.pushActionsToUndoStack(o),t.isRangeInAction=!1}))},e.prototype.addCellKeyListeners=function(){var t=this;this.addManagedListener(this.eventService,nX.EVENT_KEY_SHORTCUT_CHANGED_CELL_START,(function(){t.isRangeInAction=!0})),this.addManagedListener(this.eventService,nX.EVENT_KEY_SHORTCUT_CHANGED_CELL_END,(function(){var e;e=t.rangeService&&t.gridOptionsService.is("enableRangeSelection")?new U7(t.cellValueChanges,void 0,void 0,function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)s.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 s}(t.rangeService.getCellRanges()))):new z7(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)}},q7([lY("focusService")],e.prototype,"focusService",void 0),q7([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),q7([lY("rowModel")],e.prototype,"rowModel",void 0),q7([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),q7([lY("cellPositionUtils")],e.prototype,"cellPositionUtils",void 0),q7([lY("rowPositionUtils")],e.prototype,"rowPositionUtils",void 0),q7([lY("columnModel")],e.prototype,"columnModel",void 0),q7([uY("rangeService")],e.prototype,"rangeService",void 0),q7([rY],e.prototype,"init",null),q7([aY("undoRedoService")],e)}(QY),Z7=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},J7=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Z7(e,t),e.prototype.findHeader=function(t,e){var o,n,i;if(t.column instanceof oX?(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)===I2.COLUMN_GROUP){var s=o;if(s.isPadding()&&this.isAnyChildSpanningHeaderHeight(s)){var a=this.getColumnVisibleChild(s,r,e),l=a.nextFocusColumn,u=a.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===I2.FLOATING_FILTER,i=o===I2.COLUMN,r=n?t:t.getParent(),s=e-1;if(i&&this.isAnyChildSpanningHeaderHeight(t.getParent())){for(;r&&r.isPadding();)r=r.getParent(),s--;s<0&&(r=t,s=e)}return{nextFocusColumn:r,nextRow:s}},e.prototype.getColumnVisibleChild=function(t,e,o){void 0===o&&(o="After");var n=t,i=e+1;if(this.getHeaderRowType(e)===I2.COLUMN_GROUP){var r=t.getLeafColumns(),s="After"===o?r[0]:RY(r);if(this.isAnyChildSpanningHeaderHeight(s.getParent())){n=s;for(var a=s.getParent();a&&a!==t;)a=a.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==I2.COLUMN_GROUP?{headerRowIndex:t,column:this.columnModel.getColumnGroupAtLevel(n,t)}:{headerRowIndex:null==i?-1:t,column:n}}},Q7([lY("columnModel")],e.prototype,"columnModel",void 0),Q7([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),Q7([aY("headerPositionUtils")],e)}(QY),t8=function(){function t(){}return t.prototype.buildColumnDefs=function(t,e,o){var n=this,i=[],r={};return t.forEach((function(t){for(var s=!0,a=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(a),s=!1;break}if((c=n.createDefFromGroup(l))&&(c.children=[a],r[c.groupId]=c,a=c,l=l.getOriginalParent()),null!=l&&u===l){s=!1;break}u=l}}s&&i.push(a)})),i},t.prototype.createDefFromGroup=function(t){var e=OK(t.getColGroupDef(),["children"]);return e&&(e.groupId=t.getGroupId()),e},t.prototype.createDefFromColumn=function(t,e,o){var n=OK(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("columnDefFactory")],t)}(),e8=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},o8=function(){function t(){}return t.prototype.getInitialRowClasses=function(t){var e=[];return gK(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"),FY(e,this.processClassesFromGridOptions(t.rowNode)),FY(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},e8([lY("stylingService")],t.prototype,"stylingService",void 0),e8([lY("gridOptionsService")],t.prototype,"gridOptionsService",void 0),e8([aY("rowCssClassCalculator")],t)}(),n8=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)}}(),i8=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},r8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return n8(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,s=t.length;r=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY(o.NAME)],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){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.registry={},e}return l8(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("ctrlsFactory")],e)}(QY),c8=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(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},d8=function(t){function e(e,o){var n=t.call(this,e)||this;return n.direction=o,n.hideTimeout=null,n}return c8(e,t),e.prototype.postConstruct=function(){this.addManagedListener(this.eventService,nX.EVENT_SCROLL_VISIBILITY_CHANGED,this.onScrollVisibilityChanged.bind(this)),this.onScrollVisibilityChanged(),this.addOrRemoveCssClass("ag-apple-scrollbar",Bq()||Wq())},e.prototype.initialiseInvisibleScrollbar=function(){void 0===this.invisibleScrollbar&&(this.invisibleScrollbar=$q(),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,nX.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,nX.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 D$(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)},p8([OZ("eViewport")],e.prototype,"eViewport",void 0),p8([OZ("eContainer")],e.prototype,"eContainer",void 0),p8([lY("scrollVisibleService")],e.prototype,"scrollVisibleService",void 0),p8([lY("ctrlsService")],e.prototype,"ctrlsService",void 0),p8([lY("animationFrameService")],e.prototype,"animationFrameService",void 0),e}(TZ),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)}}(),f8=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},g8=function(t){function e(){return t.call(this,e.TEMPLATE,"horizontal")||this}return h8(e,t),e.prototype.postConstruct=function(){var e=this;t.prototype.postConstruct.call(this);var o=this.setFakeHScrollSpacerWidths.bind(this);this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,o),this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_WIDTH_CHANGED,o),this.addManagedListener(this.eventService,nX.EVENT_PINNED_ROW_DATA_CHANGED,this.onPinnedRowDataChanged.bind(this)),this.addManagedPropertyListener("domLayout",o),this.ctrlsService.registerFakeHScrollComp(this),this.createManagedBean(new O2((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),H$(this.eRightSpacer,e),this.eRightSpacer.classList.toggle("ag-scroller-corner",e<=n);var i=this.columnModel.getDisplayedColumnsLeftWidth();this.enableRtl&&t&&(i+=n),H$(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),B$(this.getGui(),i),B$(this.eViewport,i),B$(this.eContainer,i),this.setDisplayed(t,{skipAriaHidden:!0})},e.prototype.getScrollPosition=function(){return R$(this.getViewport(),this.enableRtl)},e.prototype.setScrollPosition=function(t){D$(this.getViewport())||this.attemptSettingScrollPosition(t),x$(this.getViewport(),t,this.enableRtl)},e.TEMPLATE='',f8([OZ("eLeftSpacer")],e.prototype,"eLeftSpacer",void 0),f8([OZ("eRightSpacer")],e.prototype,"eRightSpacer",void 0),f8([lY("columnModel")],e.prototype,"columnModel",void 0),f8([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),f8([rY],e.prototype,"postConstruct",null),e}(d8),v8=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)}}(),y8=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},m8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v8(e,t),e.prototype.postConstruct=function(){var t=this.checkContainerWidths.bind(this);this.addManagedListener(this.eventService,nX.EVENT_DISPLAYED_COLUMNS_CHANGED,t),this.addManagedListener(this.eventService,nX.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:nX.EVENT_LEFT_PINNED_WIDTH_CHANGED})),o!=this.rightWidth&&(this.rightWidth=o,this.eventService.dispatchEvent({type:nX.EVENT_RIGHT_PINNED_WIDTH_CHANGED}))},e.prototype.getPinnedRightWidth=function(){return this.rightWidth},e.prototype.getPinnedLeftWidth=function(){return this.leftWidth},y8([lY("columnModel")],e.prototype,"columnModel",void 0),y8([rY],e.prototype,"postConstruct",null),y8([aY("pinnedWidthService")],e)}(QY),C8=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)}}(),w8=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},S8=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.events=[],e}return C8(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)},w8([lY("animationFrameService")],e.prototype,"animationFrameService",void 0),w8([lY("rowModel")],e.prototype,"rowModel",void 0),w8([rY],e.prototype,"postConstruct",null),w8([aY("rowNodeEventThrottle")],e)}(QY),b8=function(){return b8=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},E8=function(t,e){return function(o,n){e(o,n,t)}},R8=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},x8=function(t,e){for(var o=0,n=e.length,i=t.length;o=0?this.gridOptions.scrollbarWidth:Xq();null!=t&&(this.scrollbarWidth=t,this.eventService.dispatchEvent({type:nX.EVENT_SCROLLBAR_WIDTH_CHANGED}))}return this.scrollbarWidth},t.prototype.isRowModelType=function(t){return this.gridOptions.rowModelType===t||"clientSide"===t&&vK(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&&HK((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||vK(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];vK(i)&&(i={},t[n]=i),i[e]=o},t.prototype.getDocument=function(){var t=null;return this.gridOptions.getDocument&&gK(this.gridOptions.getDocument)?t=this.gridOptions.getDocument():this.eGridDiv&&(t=this.eGridDiv.ownerDocument),t&&gK(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 gK(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"):T8(t)?function(){return!0}:void 0},t.prototype.isGroupIncludeFooterTrueOrCallback=function(){var t=this.gridOptions.groupIncludeFooter;return T8(t)||"function"==typeof t},t.prototype.getGroupIncludeFooter=function(){var t=this.gridOptions.groupIncludeFooter;return"function"==typeof t?this.getCallback("groupIncludeFooter"):T8(t)?function(){return!0}:function(){return!1}},t.prototype.isGroupMultiAutoColumn=function(){return this.gridOptions.groupDisplayType?FX("multipleColumns",this.gridOptions.groupDisplayType):this.is("groupHideOpenParents")},t.prototype.isGroupUseEntireRow=function(t){return!t&&!!this.gridOptions.groupDisplayType&&FX("groupRows",this.gridOptions.groupDisplayType)},t.alwaysSyncGlobalEvents=new Set([nX.EVENT_GRID_PRE_DESTROYED]),_8([lY("gridOptions")],t.prototype,"gridOptions",void 0),_8([lY("eventService")],t.prototype,"eventService",void 0),_8([lY("environment")],t.prototype,"environment",void 0),_8([lY("eGridDiv")],t.prototype,"eGridDiv",void 0),_8([E8(0,pY("gridApi")),E8(1,pY("columnApi"))],t.prototype,"agWire",null),_8([rY],t.prototype,"init",null),_8([sY],t.prototype,"destroy",null),e=_8([aY("gridOptionsService")],t)}(),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)}}(),A8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return P8(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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s}([aY("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)}}(),I8=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 b2(this.eContainer)),this.ctrlsService.registerFakeVScrollComp(this),this.addManagedListener(this.eventService,nX.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),H$(this.getGui(),n),H$(this.eViewport,n),H$(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){D$(this.getViewport())||this.attemptSettingScrollPosition(t),this.getViewport().scrollTop=t},e.TEMPLATE='',function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);r>3&&s&&Object.defineProperty(e,o,s)}([rY],e.prototype,"postConstruct",null),e}(d8),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)}}(),N8=function(){return N8=Object.assign||function(t){for(var e,o=1,n=arguments.length;o=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},G8=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},k8=function(t,e){for(var o=0,n=e.length,i=t.length;o=0&&!this.gridOptionsService.is("suppressFieldDotNotation");n=NK(i,t,r)}else this.initWaitForRowData(e);if(null!=n)return G8(null!==(o=Object.entries(this.dataTypeMatchers).find((function(t){var e=G8(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,nX.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:nX.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 s=G8(t,2),a=s[0],l=s[1],u=o.columnModel.getGridColumn(a);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[a]=d),d.pivot&&null==d.pivotIndex&&(r[a]=d),n.push(d)}}}})),e&&n.push.apply(n,k8([],G8(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||HK((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&&HK((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=oY.__isRegistered(QK.SetFilterModule,this.context.getGridId()),s=this.localeService.getLocaleTextFunc(),a=function(e){var o=t.filterParams;t.filterParams="object"==typeof o?N8(N8({},o),e):e};switch(t.useValueFormatterForExport=!0,t.useValueParserForImport=!0,e.baseDataType){case"number":t.cellEditor="agNumberCellEditor",r&&a({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===tZ.SPACE},a(r?{valueFormatter:function(t){return gK(t.value)?s(String(t.value),t.value?"True":"False"):s("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&&a({valueFormatter:function(t){var e=i(t.column,t.node,t.value);return gK(e)?e:s("blanks","(Blanks)")},treeList:!0,treeListFormatter:function(t,e){if(1===e&&null!=t){var o=H8[Number(t)-1];return s(o,V8[o])}return null!=t?t:s("blanks","(Blanks)")}});break;case"dateString":t.cellEditor="agDateStringCellEditor",t.keyCreator=function(t){return i(t.column,t.node,t.value)};var l=this.getDateParserFunction();a(r?{valueFormatter:function(t){var e=i(t.column,t.node,t.value);return gK(e)?e:s("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=H8[Number(t)-1];return s(o,V8[o])}return null!=t?t:s("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),s=null==r?void 0:r.getColDef();if(!r||!s)return 0;var a=null==t?"":i(r,null,t),l=null==e?"":i(r,null,e);return a===l?0:a>l?1:-1},t.keyCreator=function(t){return i(t.column,t.node,t.value)},r?a({valueFormatter:function(t){var e=i(t.column,t.node,t.value);return gK(e)?e:s("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:mK(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 s$(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=n$(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=s$(t))&&void 0!==e?e:void 0},dateFormatter:function(t){var e;return null!==(e=n$(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=mK(t.value))&&void 0!==e?e:""}}}},F8([lY("rowModel")],e.prototype,"rowModel",void 0),F8([lY("columnModel")],e.prototype,"columnModel",void 0),F8([lY("columnUtils")],e.prototype,"columnUtils",void 0),F8([lY("valueService")],e.prototype,"valueService",void 0),F8([lY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),F8([rY],e.prototype,"init",null),F8([aY("dataTypeService")],e)}(QY),W8=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)}}(),j8=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},z8=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return W8(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},s=i.valueParser;return gK(s)?"function"==typeof s?s(r):this.expressionService.evaluate(s,r):o},j8([lY("expressionService")],e.prototype,"expressionService",void 0),j8([aY("valueParserService")],e)}(QY),U8=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},K8=function(t,e){for(var o=0,n=e.length,i=t.length;o0)&&!(n=r.next()).done;)s.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 s},J8=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:nX.EVENT_SELECTION_CHANGED,source:e};this.eventService.dispatchEvent(n)}},t.prototype.executeAdd=function(e,o){var n,i=this,r=e.add,s=e.addIndex;if(!fZ.missingOrEmpty(r)){var a=r.map((function(e){return i.createNode(e,i.rootNode,t.TOP_LEVEL)}));if("number"==typeof s&&s>=0){var l=this.rootNode.allLeafChildren,u=l.length,c=s;if(this.gridOptionsService.is("treeData")&&s>0&&u>0)for(var p=0;p=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},n9=function(t,e){var o="function"==typeof Symbol&&t[Symbol.iterator];if(!o)return t;var n,i,r=o.call(t),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s},i9=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(fZ.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:U0.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()}))?U0.FILTER:U0.FILTER_AGGREGATES;this.refreshModel({step:o,keepRenderedRows:!0,animate:e})}},e.prototype.onSortChanged=function(){var t=this.gridOptionsService.isAnimateRows();this.refreshModel({step:U0.SORT,keepRenderedRows:!0,animate:t,keepEditingRows:!0})},e.prototype.getType=function(){return"clientSide"},e.prototype.onValueChanged=function(){this.columnModel.isPivotActive()?this.refreshModel({step:U0.PIVOT}):this.refreshModel({step:U0.AGGREGATE})},e.prototype.createChangePath=function(t){var e=fZ.missingOrEmpty(t),o=new r4(!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=U0.EVERYTHING,o={everything:U0.EVERYTHING,group:U0.EVERYTHING,filter:U0.FILTER,map:U0.MAP,aggregate:U0.AGGREGATE,sort:U0.SORT,pivot:U0.PIVOT};if(fZ.exists(t)&&(e=o[t]),!fZ.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 U0.EVERYTHING:this.doRowGrouping(e.groupState,e.rowNodeTransactions,e.rowNodeOrder,o,!!e.afterColumnsChanged);case U0.FILTER:this.doFilter(o);case U0.PIVOT:this.doPivot(o);case U0.AGGREGATE:this.doAggregate(o);case U0.FILTER_AGGREGATES:this.doFilterAggregates(o);case U0.SORT:this.doSort(e.rowNodeTransactions,o);case U0.MAP:this.doRowsToDisplay()}var n=this.setRowTopAndRowIndex();this.clearRowTopAndRowIndex(o,n);var i={type:nX.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=fZ.missing(this.rootNode.allLeafChildren)||0===this.rootNode.allLeafChildren.length;return fZ.missing(this.rootNode)||t||!this.columnModel.isReady()},e.prototype.isRowsToRender=function(){return fZ.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(s){if(!n)if(o&&(s===e||s===t)&&(n=!0,s.group&&r))i.push.apply(i,i9([],n9(s.allLeafChildren)));else{if(!o){if(s!==e&&s!==t)return;o=!0}(!s.group||!r)&&i.push(s)}})),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(fZ.last(this.rowsToDisplay).rowTop<=t)return this.rowsToDisplay.length-1;for(var n=-1,i=-1;;){var r=Math.floor((e+o)/2),s=this.rowsToDisplay[r];if(this.isRowInPixel(s,t))return r;if(s.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:i9([],n9(this.rootNode.childrenAfterGroup||[])),callback:t,recursionType:Z8.Normal,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilter=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:i9([],n9(this.rootNode.childrenAfterAggFilter||[])),callback:t,recursionType:Z8.AfterFilter,index:0,includeFooterNodes:e})},e.prototype.forEachNodeAfterFilterAndSort=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:i9([],n9(this.rootNode.childrenAfterSort||[])),callback:t,recursionType:Z8.AfterFilterAndSort,index:0,includeFooterNodes:e})},e.prototype.forEachPivotNode=function(t,e){void 0===e&&(e=!1),this.recursivelyWalkNodesAndCallback({nodes:[this.rootNode],callback:t,recursionType:Z8.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,s=t.index,a=0;a0&&window.setTimeout((function(){e.forEach((function(t){return t()}))}),0),o.length>0){var i={type:nX.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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},u9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return a9(e,t),e.prototype.execute=function(t){var e=t.changedPath;this.filterService.filter(e)},l9([lY("filterService")],e.prototype,"filterService",void 0),l9([aY("filterStage")],e)}(QY),c9=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)}}(),p9=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},d9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c9(e,t),e.prototype.execute=function(t){var e=this,o=this.sortController.getSortOptions(),n=fZ.exists(o)&&o.length>0,i=n&&fZ.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)},p9([lY("sortService")],e.prototype,"sortService",void 0),p9([lY("sortController")],e.prototype,"sortController",void 0),p9([lY("columnModel")],e.prototype,"columnModel",void 0),p9([aY("sortStage")],e)}(QY),h9=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)}}(),f9=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},g9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return h9(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,s=this.getFlattenDetails();return this.recursivelyAddToRowsToDisplay(s,r,o,n,0),!i&&o.length>0&&s.groupIncludeTotalFooter&&(e.createFooter(),this.addRowNodeToRowsToDisplay(s,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(!fZ.missingOrEmpty(e))for(var r=0;r=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},m9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v9(e,t),e.prototype.init=function(){this.postSortFunc=this.gridOptionsService.getCallback("postSortRows")},e.prototype.sort=function(t,e,o,n,i,r){var s=this,a=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){s.pullDownGroupDataForHideOpenParents(n.childrenAfterAggFilter,!0);var p=c&&n.leafGroup;if(a&&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?s.doDeltaSort(n,u,i,t):s.rowNodeSorter.doFullSort(n.childrenAfterAggFilter,t);if(n.sibling&&(n.sibling.childrenAfterSort=n.childrenAfterSort),s.updateChildIndexes(n),s.postSortFunc){var f={nodes:n.childrenAfterSort};s.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,s=t.childrenAfterSort;if(!s)return this.rowNodeSorter.doFullSort(r,n);var a={},l=[];r.forEach((function(t){e[t.id]||!o.canSkip(t)?l.push(t):a[t.id]=!0}));var u=s.filter((function(t){return a[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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},S9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return C9(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;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},E9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b9(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),s=[];try{for(;(void 0===e||e-- >0)&&!(n=r.next()).done;)s.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 s}(e,2),n=o[0],i=o[1];this.clientSideRowModel.updateRowData(n,i)}},e.prototype.createTransactionForRowData=function(t){if(fZ.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 fZ.exists(t)&&t.forEach((function(t,r){var s=e({data:t,level:0}),a=n[s];i&&(i[s]=r),a?(a.data!==t&&o.update.push(t),n[s]=void 0):o.add.push(t)})),fZ.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!")}},_9([lY("rowModel")],e.prototype,"rowModel",void 0),_9([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),_9([rY],e.prototype,"postConstruct",null),_9([aY("immutableService")],e)}(QY),R9={version:"30.2.0",moduleName:QK.ClientSideRowModelModule,rowModel:"clientSide",beans:[s9,u9,d9,g9,m9,S9,E9]},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)}}(),T9=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},O9=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){fZ.exists(e)?t.setDataAndId(e,o.toString()):t.setDataAndId(void 0,void 0)},e.prototype.loadFromDatasource=function(){var t=this,e=this.createLoadParams();fZ.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()}))},T9([lY("beans")],e.prototype,"beans",void 0),T9([rY],e.prototype,"postConstruct",null),T9([sY],e.prototype,"destroyRowNodes",null),e}(a4),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)}}(),P9=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},A9=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 O9(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,s=e.MAX_EMPTY_BLOCKS_TO_KEEP-1;n.forEach((function(t,e){if(t.getState()===O9.STATE_WAITING_TO_LOAD&&e>=s||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,s=new gZ;fZ.missing(t)&&(r=!0);var a=!1;return this.getBlocksInOrder().forEach((function(l){a||(r&&i+1!==l.getId()?a=!0:(i=l.getId(),l.forEachNode((function(o){var i=o===t||o===e;(r||i)&&n.push(o),i&&(r=!r)}),s,o.rowCount)))})),a||r?[]:n},e.MAX_EMPTY_BLOCKS_TO_KEEP=2,P9([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),P9([lY("focusService")],e.prototype,"focusService",void 0),P9([(o=0,n=pY("loggerFactory"),function(t,e){n(t,e,o)})],e.prototype,"setBeans",null),P9([sY],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)}}(),I9=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},L9=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")&&fZ.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,nX.EVENT_FILTER_CHANGED,this.onFilterChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_SORT_CHANGED,this.onSortChanged.bind(this)),this.addManagedListener(this.eventService,nX.EVENT_NEW_COLUMNS_LOADED,this.onColumnEverything.bind(this)),this.addManagedListener(this.eventService,nX.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!fZ.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:nX.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 gZ},this.infiniteCache=this.createBean(new A9(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)},I9([lY("filterManager")],e.prototype,"filterManager",void 0),I9([lY("sortController")],e.prototype,"sortController",void 0),I9([lY("selectionService")],e.prototype,"selectionService",void 0),I9([lY("rowRenderer")],e.prototype,"rowRenderer",void 0),I9([lY("rowNodeBlockLoader")],e.prototype,"rowNodeBlockLoader",void 0),I9([rY],e.prototype,"init",null),I9([sY],e.prototype,"destroyDatasource",null),I9([aY("rowModel")],e)}(QY),N9={version:"30.2.0",moduleName:QK.InfiniteRowModelModule,rowModel:"infinite",beans:[L9]},F9=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}(),G9=function(){function t(t){this.groupColumns=[];var e=t.columnModel,o=t.valueService,n=t.gridOptionsService,i=t.valueFormatterService,r=t.valueParserService,s=t.processCellCallback,a=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=s,this.processHeaderCallback=a,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,s=t.value,a=t.processCellCallback,l=t.type;return a?{value:null!==(e=a({accumulatedRowIndex:n,column:r,node:i,value:s,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!=s?s:"",valueFormatted:this.valueFormatterService.formatValue(r,i,s)}:{value:null!=s?s:""}},t}(),k9=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}(),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){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 V9(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}(G9),B9=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)}}(),W9=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},j9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return B9(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 k9.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,s=e.valueParserService,a=t,l=a.processCellCallback,u=a.processHeaderCallback,c=a.processGroupHeaderCallback,p=a.processRowGroupCallback,d=a.suppressQuotes,h=a.columnSeparator;return new H9({columnModel:o,valueService:n,gridOptionsService:i,valueFormatterService:r,valueParserService:s,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")},W9([lY("columnModel")],e.prototype,"columnModel",void 0),W9([lY("valueService")],e.prototype,"valueService",void 0),W9([lY("gridSerializer")],e.prototype,"gridSerializer",void 0),W9([lY("gridOptionsService")],e.prototype,"gridOptionsService",void 0),W9([lY("valueFormatterService")],e.prototype,"valueFormatterService",void 0),W9([lY("valueParserService")],e.prototype,"valueParserService",void 0),W9([rY],e.prototype,"postConstruct",null),W9([aY("csvCreator")],e)}(F9),z9=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,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s};!function(t){t[t.HEADER_GROUPING=0]="HEADER_GROUPING",t[t.HEADER=1]="HEADER",t[t.BODY=2]="BODY"}(r9||(r9={}));var K9=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return z9(e,t),e.prototype.serialize=function(t,e){void 0===e&&(e={});var o=this.getColumnsToExport(e.allColumns,e.columnKeys);return fZ.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,s=this.gridOptionsService.api,a=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&&fZ.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:s,columnApi:a,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:s,columnApi:a,context:r});m&&t.addCustomContent(m)}}},e.prototype.appendContent=function(t){return function(e){var o=t.customFooter||t.appendContent;return o&&(t.customFooter&&fZ.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&&fZ.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&&fZ.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 iX,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&&fZ.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(),s="clientSide"===r,a="serverSide"===r,l=!s&&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())s?i.forEachPivotNode(u,!0):a?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):s||a?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,s,a,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===(s=i.parent)||void 0===s?void 0:s.id)?e.rowNodeSorter.compareRowNodes(o,{rowNode:t,currentPos:null!==(a=t.rowIndex)&&void 0!==a?a:-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([aX]):[]).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 oX&&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,s=t;e=o?o({columnGroup:s,api:n.gridOptionsService.api,columnApi:n.gridOptionsService.columnApi,context:n.gridOptionsService.context}):n.columnModel.getDisplayNameForColumnGroup(s,"header");var a=s.getLeafColumns().reduce((function(t,e,o,n){var i=fZ.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(s,e||"",r++,s.getLeafColumns().length-1,a)}))},U9([lY("displayedGroupCreator")],e.prototype,"displayedGroupCreator",void 0),U9([lY("columnModel")],e.prototype,"columnModel",void 0),U9([lY("rowModel")],e.prototype,"rowModel",void 0),U9([lY("pinnedRowModel")],e.prototype,"pinnedRowModel",void 0),U9([lY("selectionService")],e.prototype,"selectionService",void 0),U9([lY("rowNodeSorter")],e.prototype,"rowNodeSorter",void 0),U9([lY("sortController")],e.prototype,"sortController",void 0),U9([aY("gridSerializer")],e)}(QY),Y9={version:"30.2.0",moduleName:QK.CsvExportModule,beans:[j9,K9]},X9="\r\n",q9=(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+""+X9:(i+=">\r\n",t.children&&t.children.forEach((function(t){i+=o.createXml(t,e)})),i+""+X9):i+"/>"+X9},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.")}),$9=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]),Z9=(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="",s=0,a=0;try{for(var l=q9(n),u=l.next();!u.done;u=l.next()){var c=u.value,p=this.getHeader(c,s),d=p.fileHeader,h=p.folderHeader,f=p.content;s+=d.length+f.length,a+=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,a,s)},t.getHeader=function(t,e){var o=t.content,n=t.path,i=t.created,r=t.isBase64,s=fZ.utf8_encode,a=fZ.decToHex,l=s(n),u=l!==n,c=this.convertTime(i),p=this.convertDate(i),d="";if(u){var h=a(1,1)+a(this.getFromCrc32Table(l),4)+l;d="up"+a(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"+a(c,2)+a(p,2)+a(g?this.getFromCrc32Table(v):0,4)+a(g,4)+a(g,4)+a(l.length,2)+a(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")+a(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=fZ.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^$9[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=[]}(),[R9,N9,Y9]);function Q9(t){return null==t||""===t?null:t}function J9(t,e){return void 0===e&&(e=!1),null!=t&&(""!==t||e)}function ttt(t){return!J9(t)}function ett(t){return null==t||0===t.length}function ott(t){return null!=t&&"function"==typeof t.toString?t.toString():null}function ntt(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 itt(t){if(void 0!==t)return null!==t&&""!==t&&("boolean"==typeof t?t:/true/i.test(t))}function rtt(t){if(t instanceof Set||t instanceof Map){var e=[];return t.forEach((function(t){return e.push(t)})),e}return Object.values(t)}oY.registerModules(Z9);var stt=Object.freeze({__proto__:null,makeNull:Q9,exists:J9,missing:ttt,missingOrEmpty:ett,toStringOrNull:ott,attrToNumber:ntt,attrToBoolean:itt,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=0)){var i=o[t],r=Ctt(i)&&i.constructor===Object;n[t]=r?ctt(i):i}})),n}}function ptt(t,e){return t[e]}function dtt(t,e,o){t[e]=o}function htt(t,e,o,n){var i=ptt(t,o);void 0!==i&&dtt(e,o,n?n(i):i)}function ftt(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 gtt(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 vtt(t,e,o,n){void 0===o&&(o=!0),void 0===n&&(n=!1),J9(e)&<t(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),Ctt(i)&&Ctt(r)&&!Array.isArray(r)?vtt(r,i,o,n):(o||void 0!==i)&&(t[e]=i))}))}function ytt(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 Ptt(t,e){var o;return function(){for(var n=[],i=0;io;(t()||a)&&(e(),s=!0,null!=r&&(window.clearInterval(r),r=null),a&&n&&console.warn(n))};a(),s||(r=window.setInterval(a,10))}function Itt(t){t&&t()}var Ltt=Object.freeze({__proto__:null,doOnce:btt,getFunctionName:_tt,isFunction:Ett,executeInAWhile:Rtt,executeNextVMTurn:Ott,executeAfter:Dtt,debounce:Ptt,throttle:Att,waitUntil:Mtt,compose:function(){for(var t=[],e=0;e0)&&!(n=r.next()).done;)s.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 s},Ftt=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 rtt(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"),J9(e)&&t.forEach(e),this.callLifeCycleMethods(t,"postConstructMethods")},t.prototype.createBeans=function(){var t=this;this.contextParams.beanClasses.forEach(this.createBeanWrapper.bind(this)),ltt(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(){for(var t=[],e=0;e> Shutting down ag-Application Context");var t=this.getBeanInstances();this.destroyBeans(t),this.contextParams.providedBeanInstances=null,this.destroyed=!0,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}();function Gtt(t,e,o){var n=Utt(t.constructor);n.preConstructMethods||(n.preConstructMethods=[]),n.preConstructMethods.push(e)}function ktt(t,e,o){var n=Utt(t.constructor);n.postConstructMethods||(n.postConstructMethods=[]),n.postConstructMethods.push(e)}function Vtt(t,e,o){var n=Utt(t.constructor);n.preDestroyMethods||(n.preDestroyMethods=[]),n.preDestroyMethods.push(e)}function Htt(t){return function(e){Utt(e).beanName=t}}function Btt(t){return function(e,o,n){jtt(e,t,!1,0,o,null)}}function Wtt(t){return function(e,o,n){jtt(e,t,!0,0,o,null)}}function jtt(t,e,o,n,i,r){if(null!==e)if("number"!=typeof r){var s=Utt(t.constructor);s.agClassAttributes||(s.agClassAttributes=[]),s.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 ztt(t){return function(e,o,n){var i,r="function"==typeof e?e:e.constructor;if("number"==typeof n){var s=void 0;o?(i=Utt(r),s=o):(i=Utt(r),s="agConstructor"),i.autowireMethods||(i.autowireMethods={}),i.autowireMethods[s]||(i.autowireMethods[s]={}),i.autowireMethods[s][n]=t}}}function Utt(t){return t.hasOwnProperty("__agBeanMetaData")||(t.__agBeanMetaData={}),t.__agBeanMetaData}var Ktt,Ytt=function(t,e,o,n){var i,r=arguments.length,s=r<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,n);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(s=(r<3?i(s):r>3?i(e,o,s):i(e,o))||s);return r>3&&s&&Object.defineProperty(e,o,s),s},Xtt=function(t,e){return function(o,n){e(o,n,t)}},qtt=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){if(void 0===n&&(n=null),this.frameworkOverrides=o,this.gridOptionsService=e,n){var i=e.useAsyncEvents();this.addGlobalListener(n,i)}},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=this.getListeners(n,e,!1);r&&function(n){n.forEach((function(n){e?o.dispatchAsync((function(){return n(t)})):n(t)}))}(r),(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()}))},Ytt([Xtt(0,ztt("loggerFactory")),Xtt(1,ztt("gridOptionsService")),Xtt(2,ztt("frameworkOverrides")),Xtt(3,ztt("globalEventListener"))],t.prototype,"setBeans",null),Ytt([Htt("eventService")],t)}();!function(t){t.CommunityCoreModule="@ag-grid-community/core",t.CommunityAllModules="@ag-grid-community/all",t.InfiniteRowModelModule="@ag-grid-community/infinite-row-model",t.ClientSideRowModelModule="@ag-grid-community/client-side-row-model",t.CsvExportModule="@ag-grid-community/csv-export",t.EnterpriseCoreModule="@ag-grid-enterprise/core",t.EnterpriseAllModules="@ag-grid-enterprise/all",t.RowGroupingModule="@ag-grid-enterprise/row-grouping",t.ColumnToolPanelModule="@ag-grid-enterprise/column-tool-panel",t.FiltersToolPanelModule="@ag-grid-enterprise/filter-tool-panel",t.MenuModule="@ag-grid-enterprise/menu",t.SetFilterModule="@ag-grid-enterprise/set-filter",t.MultiFilterModule="@ag-grid-enterprise/multi-filter",t.StatusBarModule="@ag-grid-enterprise/status-bar",t.SideBarModule="@ag-grid-enterprise/side-bar",t.RangeSelectionModule="@ag-grid-enterprise/range-selection",t.MasterDetailModule="@ag-grid-enterprise/master-detail",t.RichSelectModule="@ag-grid-enterprise/rich-select",t.GridChartsModule="@ag-grid-enterprise/charts",t.ViewportRowModelModule="@ag-grid-enterprise/viewport-row-model",t.ServerSideRowModelModule="@ag-grid-enterprise/server-side-row-model",t.ExcelExportModule="@ag-grid-enterprise/excel-export",t.ClipboardModule="@ag-grid-enterprise/clipboard",t.SparklinesModule="@ag-grid-enterprise/sparklines",t.AngularModule="@ag-grid-community/angular",t.ReactModule="@ag-grid-community/react",t.VueModule="@ag-grid-community/vue",t.PolymerModule="@ag-grid-community/polymer"}(Ktt||(Ktt={}));var $tt=function(){function t(){}return t.register=function(e,o){void 0===o&&(o=!0),t.runVersionChecks(e),t.modulesMap[e.moduleName]=e,t.setModuleBased(o)},t.runVersionChecks=function(e){if(t.currentModuleVersion||(t.currentModuleVersion=e.version),e.version?e.version!==t.currentModuleVersion&&console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is version "+e.version+" but the other modules are version "+this.currentModuleVersion+". Please update all modules to the same version."):console.error("AG Grid: You are using incompatible versions of AG Grid modules. Major and minor versions should always match across modules. '"+e.moduleName+"' is incompatible. Please update all modules to the same version."),e.validate){var o=e.validate();if(!o.isValid){var n=o;console.error("AG Grid: "+n.message)}}},t.setModuleBased=function(e){void 0===t.moduleBased?t.moduleBased=e:t.moduleBased!==e&&btt((function(){console.warn("AG Grid: You are mixing modules (i.e. @ag-grid-community/core) and packages (ag-grid-community) - you can only use one or the other of these mechanisms."),console.warn("Please see https://www.ag-grid.com/javascript-grid/packages-modules/ for more information.")}),"ModulePackageCheck")},t.setIsBundled=function(){t.isBundled=!0},t.registerModules=function(e,o){void 0===o&&(o=!0),t.setModuleBased(o),e&&e.forEach((function(e){return t.register(e,o)}))},t.assertRegistered=function(e,o){var n;if(this.isRegistered(e))return!0;var i,r=o+e;if(t.isBundled)i="AG Grid: unable to use "+o+" as 'ag-grid-enterprise' has not been loaded. Check you are using the Enterprise bundle:\n \n